:root {
  --color-red: #dc2626;
  --color-deep-red: #991b1b;
  --color-orange: #ea580c;
  --color-amber: #d97706;
  --color-indigo: #4f46e5;
  --color-purple: #7e22ce;
  --color-pink: #db2777;
  --color-cyan: #0891b2;
  --color-blue: #2563eb;
  --color-emerald: #059669;
  --color-lime: #65a30d;
  --color-zinc: #27272a;
  --color-stone: #57534e;
  --text-dark: #1f2937;
  --text-soft: #6b7280;
  --line: #e5e7eb;
  --paper: #ffffff;
  --page: #f7f7f8;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-dark);
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 50%, #fafafa 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-red), var(--color-deep-red));
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.25);
}

.brand-copy {
  display: grid;
  gap: 0;
}

.brand-copy strong,
.footer-brand {
  font-size: 24px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--color-red), var(--color-deep-red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small {
  color: var(--text-soft);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.desktop-nav > a,
.nav-dropdown > a {
  position: relative;
  color: #374151;
  font-weight: 700;
  padding: 28px 0;
  transition: color 0.25s ease;
}

.desktop-nav > a::after,
.nav-dropdown > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 20px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-red), var(--color-deep-red));
  transition: width 0.25s ease;
}

.desktop-nav > a:hover,
.desktop-nav > a.is-active,
.nav-dropdown:hover > a,
.nav-dropdown > a.is-active {
  color: var(--color-red);
}

.desktop-nav > a:hover::after,
.desktop-nav > a.is-active::after,
.nav-dropdown:hover > a::after,
.nav-dropdown > a.is-active::after {
  width: 100%;
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: 68px;
  left: -16px;
  width: 230px;
  display: grid;
  gap: 4px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: 0.25s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  padding: 9px 12px;
  color: #4b5563;
  border-radius: 10px;
  font-size: 14px;
  transition: 0.2s ease;
}

.dropdown-panel a:hover {
  color: var(--color-red);
  background: linear-gradient(90deg, #fff1f2, #fee2e2);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.search-strip input,
.filter-panel input,
.filter-panel select {
  border: 2px solid #e5e7eb;
  outline: none;
  background: rgba(255, 255, 255, 0.82);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.header-search input:focus,
.search-strip input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--color-red);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.10);
}

.header-search input {
  width: 220px;
  height: 42px;
  border-radius: 999px;
  padding: 0 16px;
}

.header-search button,
.search-strip button,
.primary-button {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-red), var(--color-deep-red));
  box-shadow: 0 14px 24px rgba(220, 38, 38, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.header-search button {
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
}

.header-search button:hover,
.search-strip button:hover,
.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(220, 38, 38, 0.30);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: #fee2e2;
  border-radius: 12px;
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--color-red);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.mobile-nav.is-open {
  display: grid;
}

.mobile-nav a {
  padding: 12px;
  border-radius: 10px;
  color: #374151;
  font-weight: 700;
}

.mobile-nav a:hover {
  color: var(--color-red);
  background: #fef2f2;
}

.hero {
  position: relative;
  height: min(680px, calc(100vh - 80px));
  min-height: 560px;
  overflow: hidden;
  background: #111827;
}

.hero-stage,
.hero-slide,
.hero-slide img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08);
}

.hero-overlay {
  background:
    radial-gradient(circle at 15% 25%, rgba(220, 38, 38, 0.58), transparent 34%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(127, 29, 29, 0.72) 46%, rgba(15, 23, 42, 0.45) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 120px;
  color: #ffffff;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #fecaca;
}

.hero-content h1 {
  max-width: 720px;
  margin: 18px 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 660px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.hero-tags,
.detail-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  color: var(--color-red);
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags .pill {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
}

.ghost-button {
  color: #ffffff;
  font-weight: 800;
  border: 2px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  transition: 0.25s ease;
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.ghost-button.red {
  color: var(--color-red);
  border-color: #fecaca;
  background: #ffffff;
}

.hero-side-card {
  position: absolute;
  right: max(32px, calc((100% - 1240px) / 2));
  bottom: 92px;
  z-index: 4;
  width: 330px;
  padding: 20px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  backdrop-filter: blur(20px);
}

.hero-side-card strong {
  display: block;
  margin-bottom: 14px;
  font-size: 18px;
}

.hero-mini-list {
  display: grid;
  gap: 10px;
}

.hero-mini-list a {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 14px;
  transition: background 0.25s ease;
}

.hero-mini-list a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero-mini-list img {
  width: 58px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  font-size: 34px;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

.hero-control.prev {
  left: 24px;
}

.hero-control.next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 6;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 32px;
  background: #ffffff;
}

.search-strip,
.section-wrap,
.page-hero,
.breadcrumb,
.detail-layout {
  width: min(1240px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.search-strip {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 470px);
  gap: 24px;
  align-items: center;
  margin-top: -58px;
  position: relative;
  z-index: 10;
  padding: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.search-strip h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.search-strip p {
  margin: 0;
  color: var(--text-soft);
}

.search-strip form {
  display: flex;
  gap: 10px;
}

.search-strip input {
  flex: 1;
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
}

.search-strip button {
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
}

.section-wrap {
  padding-top: 72px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-heading h2,
.page-hero h1,
.detail-heading h1 {
  margin: 4px 0 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--text-soft);
}

.section-heading > a {
  color: var(--color-red);
  font-weight: 900;
}

.compact-heading {
  align-items: center;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.small-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #111827;
}

.movie-card.compact .poster-link {
  aspect-ratio: 16 / 11;
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.08);
}

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 55%);
  opacity: 0.78;
}

.rating-badge,
.play-chip {
  position: absolute;
  z-index: 2;
  color: #ffffff;
  font-weight: 900;
  border-radius: 999px;
}

.rating-badge {
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  background: linear-gradient(135deg, var(--color-red), var(--color-orange));
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.card-body h2 {
  margin: 8px 0 8px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
}

.movie-card.compact .card-body h2 {
  font-size: 17px;
}

.card-body h2 a:hover {
  color: var(--color-red);
}

.card-body p {
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--text-soft);
  font-size: 14px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  color: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 28px 58px rgba(15, 23, 42, 0.18);
}

.category-card img,
.category-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-card img {
  object-fit: cover;
  opacity: 0.55;
  mix-blend-mode: luminosity;
  transition: transform 0.45s ease;
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-shade {
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.92), rgba(17, 24, 39, 0.52));
}

.category-copy {
  position: absolute;
  inset: auto 20px 20px 20px;
  z-index: 2;
}

.category-copy strong {
  display: block;
  margin-bottom: 6px;
  font-size: 24px;
  font-weight: 950;
}

.category-copy small {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 42px;
}

.rank-list {
  display: grid;
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 54px 72px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  transition: 0.25s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.rank-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 20px;
  font-weight: 950;
  background: linear-gradient(135deg, var(--color-red), var(--color-deep-red));
  border-radius: 14px;
}

.rank-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-copy {
  display: grid;
  gap: 4px;
}

.rank-copy strong {
  font-size: 17px;
  font-weight: 900;
}

.rank-copy small {
  color: var(--text-soft);
}

.rank-score {
  color: var(--color-red);
  font-size: 22px;
  font-weight: 950;
}

.full-rank-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.full-rank-list .rank-item {
  grid-template-columns: 58px 96px 1fr auto;
}

.full-rank-list .rank-item img {
  width: 96px;
  height: 76px;
}

.page-main {
  padding-bottom: 40px;
}

.page-hero {
  margin-top: 36px;
  padding: 58px;
  color: #ffffff;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, var(--color-red), var(--color-deep-red));
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.page-hero h1,
.page-hero .section-kicker,
.page-hero p {
  color: #ffffff;
}

.slim-hero {
  min-height: 260px;
  display: grid;
  align-items: center;
}

.channel-hero {
  min-height: 320px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
}

.empty-state {
  display: none;
  padding: 42px;
  text-align: center;
  color: var(--text-soft);
  background: #ffffff;
  border: 1px dashed #d1d5db;
  border-radius: 22px;
}

.empty-state.is-visible {
  display: block;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 28px;
  color: var(--text-soft);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--color-red);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  margin-top: 22px;
}

.player-card,
.detail-card,
.side-card {
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
  padding: 12px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020617;
  border-radius: 18px;
}

.player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0.16));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-ring {
  position: absolute;
  width: 104px;
  height: 104px;
  border: 2px solid rgba(255, 255, 255, 0.44);
  border-radius: 50%;
  animation: pulseRing 1.8s ease infinite;
}

.play-button {
  position: relative;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  color: #ffffff;
  font-size: 34px;
  background: linear-gradient(135deg, var(--color-red), var(--color-orange));
  border-radius: 50%;
  box-shadow: 0 18px 36px rgba(220, 38, 38, 0.35);
}

@keyframes pulseRing {
  0% {
    transform: scale(0.86);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.28);
    opacity: 0;
  }
}

.detail-card {
  margin-top: 22px;
  padding: 28px;
}

.detail-heading {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: start;
}

.detail-score {
  min-width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 28px;
  font-weight: 950;
  background: linear-gradient(135deg, var(--color-red), var(--color-orange));
  border-radius: 20px;
  box-shadow: 0 16px 32px rgba(220, 38, 38, 0.24);
}

.detail-tags {
  margin: 18px 0;
}

.lead-text {
  color: #374151;
  font-size: 18px;
  font-weight: 700;
}

.detail-card h2,
.side-card h2 {
  margin: 26px 0 10px;
  color: #111827;
  font-size: 22px;
  font-weight: 950;
}

.detail-card p {
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 16px;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.side-card {
  margin-top: 18px;
  padding: 22px;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}

.info-list dt {
  color: var(--text-soft);
  font-weight: 800;
}

.info-list dd {
  margin: 0;
  color: #111827;
  font-weight: 800;
}

.side-tags {
  margin-top: 18px;
}

.related-section {
  padding-top: 58px;
}

.site-footer {
  margin-top: 82px;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #27272a 55%, #111827);
}

.footer-grid {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 42px;
  padding: 48px 0 32px;
}

.footer-grid p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.66);
}

.footer-grid h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.66);
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 24px;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

.from-red .category-shade,
.from-red.to-deep-red .category-shade {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.92), rgba(127, 29, 29, 0.76));
}

.from-orange .category-shade {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.92), rgba(220, 38, 38, 0.70));
}

.from-indigo .category-shade {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.92), rgba(126, 34, 206, 0.68));
}

.from-pink .category-shade {
  background: linear-gradient(135deg, rgba(219, 39, 119, 0.92), rgba(185, 28, 28, 0.66));
}

.from-amber .category-shade {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.92), rgba(234, 88, 12, 0.68));
}

.from-cyan .category-shade {
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.92), rgba(79, 70, 229, 0.68));
}

.from-zinc .category-shade {
  background: linear-gradient(135deg, rgba(39, 39, 42, 0.92), rgba(185, 28, 28, 0.68));
}

.from-emerald .category-shade {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.92), rgba(8, 145, 178, 0.68));
}

.from-stone .category-shade {
  background: linear-gradient(135deg, rgba(87, 83, 78, 0.92), rgba(39, 39, 42, 0.68));
}

.from-blue .category-shade {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(79, 70, 229, 0.68));
}

.from-lime .category-shade {
  background: linear-gradient(135deg, rgba(101, 163, 13, 0.92), rgba(5, 150, 105, 0.68));
}

@media (max-width: 1120px) {
  .header-search {
    display: none;
  }

  .movie-grid,
  .small-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split-section,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-side-card {
    display: none;
  }
}

@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: block;
    margin-left: auto;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding-top: 90px;
  }

  .hero-control {
    display: none;
  }

  .search-strip {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .search-strip form {
    flex-direction: column;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .movie-grid,
  .small-grid,
  .category-grid,
  .full-rank-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 36px 24px;
  }
}

@media (max-width: 560px) {
  .header-inner {
    height: 70px;
  }

  .brand-copy strong {
    font-size: 20px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .movie-grid,
  .small-grid,
  .category-grid,
  .full-rank-list {
    grid-template-columns: 1fr;
  }

  .rank-item,
  .full-rank-list .rank-item {
    grid-template-columns: 48px 68px 1fr;
  }

  .rank-score {
    grid-column: 3;
  }

  .detail-card,
  .side-card {
    padding: 20px;
  }

  .detail-heading {
    flex-direction: column;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}
