:root {
  --bg-950: #020617;
  --bg-900: #0f172a;
  --bg-850: #111c33;
  --bg-800: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --amber: #f59e0b;
  --orange: #f97316;
  --blue: #2563eb;
  --green: #22c55e;
  --ring: rgba(245, 158, 11, 0.35);
  --card: rgba(15, 23, 42, 0.72);
  --line: rgba(255, 255, 255, 0.10);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 0%, rgba(37, 99, 235, 0.30), transparent 26rem),
    radial-gradient(circle at 86% 8%, rgba(245, 158, 11, 0.16), transparent 26rem),
    linear-gradient(180deg, #020617 0%, #0f1b35 42%, #020617 100%);
  line-height: 1.7;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 58, 138, 0.92), rgba(15, 23, 42, 0.96));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1240px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-weight: 800;
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #f59e0b, #fb923c);
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.58);
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(4deg);
}

.brand-text {
  font-size: clamp(1rem, 2vw, 1.25rem);
  background: linear-gradient(90deg, #fde68a, #f59e0b, #fdba74);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link,
.mobile-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #d1d5db;
  font-weight: 650;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
  color: #ffffff;
  background: rgba(245, 158, 11, 0.85);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.25);
  transform: translateY(-1px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.global-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
}

.global-search-input,
.filter-controls input,
.filter-controls select {
  width: 210px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  padding: 10px 15px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.48);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.global-search-input:focus,
.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px var(--ring);
  background: rgba(2, 6, 23, 0.75);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 9px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8px 0 16px;
  border-top: 1px solid var(--line);
}

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

.global-search-panel {
  position: absolute;
  right: max(16px, calc((100% - 1240px) / 2));
  top: 74px;
  z-index: 55;
  width: min(460px, calc(100% - 32px));
  max-height: min(70vh, 560px);
  overflow: auto;
  display: none;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.global-search-panel.is-open {
  display: block;
}

.search-result {
  display: grid;
  gap: 4px;
  padding: 13px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.search-result:hover {
  background: rgba(255, 255, 255, 0.06);
}

.search-result strong {
  color: #ffffff;
}

.search-result span {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.75s ease, transform 1.1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.78) 46%, rgba(2, 6, 23, 0.22) 100%),
    linear-gradient(0deg, #020617 0%, transparent 34%, transparent 64%, rgba(2, 6, 23, 0.52) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(900px, calc(100% - 32px));
  margin-left: max(16px, calc((100% - 1240px) / 2));
  padding: 48px 0;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(245, 158, 11, 0.42);
  border-radius: 999px;
  padding: 7px 12px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.10);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 820px;
  margin: 22px 0 18px;
  font-size: clamp(2.8rem, 7vw, 6.6rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.06em;
  background: linear-gradient(90deg, #fff7ed, #f59e0b 52%, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.hero-content p {
  max-width: 760px;
  margin: 0 0 20px;
  color: #dbeafe;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #cbd5e1;
}

.hero-meta span,
.detail-meta span,
.card-meta span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.08);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.35);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(245, 158, 11, 0.85);
  transform: translateY(-50%) scale(1.08);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

.hero-dot {
  width: 42px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

.hero-dot.is-active {
  background: linear-gradient(90deg, #f59e0b, #fb923c);
}

.intro-strip {
  width: min(1240px, calc(100% - 32px));
  margin: -34px auto 0;
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.intro-strip div {
  min-height: 110px;
  display: grid;
  align-content: center;
  justify-items: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.intro-strip strong {
  font-size: 2.1rem;
  line-height: 1;
  color: #fbbf24;
}

.intro-strip span {
  color: var(--muted);
  font-weight: 650;
}

.section-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0;
}

.section-contrast {
  width: 100%;
  padding-inline: max(16px, calc((100% - 1240px) / 2));
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.20), rgba(88, 28, 135, 0.18));
}

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

.section-heading.centered {
  justify-content: center;
  text-align: center;
}

.section-heading h2,
.filter-panel h1,
.page-hero h1,
.detail-copy h1 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p,
.filter-panel p {
  color: var(--muted);
  margin: 10px 0 0;
}

.section-heading a,
.player-section a,
.info-list a {
  color: #fbbf24;
  font-weight: 800;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.84), rgba(15, 23, 42, 0.88));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.movie-card:hover {
  transform: translateY(-7px) scale(1.015);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(245, 158, 11, 0.10);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background:
    radial-gradient(circle at 24% 18%, rgba(245, 158, 11, 0.26), transparent 28%),
    linear-gradient(135deg, #1e293b, #020617);
}

.movie-card-compact .poster-wrap {
  aspect-ratio: 16 / 10;
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.58s ease, opacity 0.25s ease;
}

.movie-card:hover .poster-wrap img {
  transform: scale(1.09);
}

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 38% 0 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), transparent);
  pointer-events: none;
}

.cover-missing img {
  opacity: 0.18;
}

.play-chip,
.rank-badge,
.score-badge {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  background: rgba(239, 68, 68, 0.86);
}

.rank-badge {
  left: 12px;
  top: 12px;
  padding: 6px 9px;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.25);
}

.score-badge {
  right: 12px;
  top: 12px;
  min-width: 38px;
  min-height: 38px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 18px;
}

.movie-card-compact .card-body {
  padding: 14px;
}

.card-meta {
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}

.card-meta span {
  padding: 3px 7px;
}

.card-body h3 {
  margin: 11px 0 8px;
  font-size: 1.08rem;
  line-height: 1.35;
  color: #ffffff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 999px;
  padding: 3px 8px;
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.09);
  font-size: 0.78rem;
  font-weight: 700;
}

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

.category-tile {
  position: relative;
  min-height: 160px;
  overflow: hidden;
  display: grid;
  align-content: end;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  background: rgba(15, 23, 42, 0.68);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: -20%;
  opacity: 0.18;
  background: radial-gradient(circle at 30% 10%, currentColor, transparent 36%);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.40);
  background: rgba(30, 41, 59, 0.84);
}

.category-tile:hover::before {
  opacity: 0.35;
  transform: scale(1.08);
}

.category-count {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 900;
}

.category-name {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 850;
}

.category-more {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  color: var(--soft);
  font-weight: 700;
}

.accent-orange { color: #fb923c; }
.accent-amber { color: #f59e0b; }
.accent-rose { color: #fb7185; }
.accent-yellow { color: #facc15; }
.accent-blue { color: #60a5fa; }
.accent-green { color: #4ade80; }
.accent-teal { color: #2dd4bf; }
.accent-pink { color: #f472b6; }
.accent-purple { color: #a78bfa; }
.accent-cyan { color: #22d3ee; }
.accent-lime { color: #a3e635; }
.accent-indigo { color: #818cf8; }

.page-hero {
  min-height: 320px;
  display: grid;
  place-items: center;
  padding: 74px 16px;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.28), #020617),
    radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.35), transparent 36rem);
  text-align: center;
}

.page-hero-content {
  width: min(820px, 100%);
  display: grid;
  justify-items: center;
}

.category-page-hero {
  background:
    radial-gradient(circle at 50% 0%, currentColor, transparent 34rem),
    linear-gradient(180deg, rgba(2, 6, 23, 0.20), #020617);
}

.ranking-hero {
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.36), transparent 34rem),
    linear-gradient(180deg, rgba(2, 6, 23, 0.20), #020617);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: end;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  background: rgba(15, 23, 42, 0.70);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.20);
  backdrop-filter: blur(14px);
}

.filter-panel h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 10px;
}

.filter-controls input,
.filter-controls select {
  width: 250px;
  border-radius: 14px;
}

.filter-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--soft);
}

.movie-card.is-hidden {
  display: none;
}

.breadcrumb {
  width: min(1240px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.breadcrumb a {
  color: #fbbf24;
  font-weight: 750;
}

.detail-hero {
  position: relative;
  min-height: 590px;
  margin-top: 24px;
  display: grid;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.82) 54%, rgba(2, 6, 23, 0.42) 100%),
    linear-gradient(0deg, #020617 0%, transparent 40%);
  backdrop-filter: blur(1px);
}

.detail-hero-content {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 42px;
  align-items: center;
  padding: 70px 0;
}

.detail-poster {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.detail-copy h1 {
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  background: linear-gradient(90deg, #ffffff, #fbbf24 62%, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.detail-one-line {
  max-width: 850px;
  color: #dbeafe;
  font-size: 1.2rem;
}

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

.player-section {
  padding-top: 42px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-overlay-button {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.20), transparent 28%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 900;
}

.player-overlay-button.is-hidden {
  display: none;
}

.player-play-icon {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #f59e0b, #fb923c);
  box-shadow: 0 0 54px rgba(245, 158, 11, 0.45);
  font-size: 2rem;
}

.player-message {
  position: absolute;
  left: 16px;
  bottom: 12px;
  z-index: 3;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 22px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.detail-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  background: rgba(15, 23, 42, 0.68);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.detail-panel h2 {
  margin: 0 0 14px;
  font-size: 1.55rem;
}

.detail-panel p {
  margin: 0;
  color: #cbd5e1;
  font-size: 1.03rem;
}

.wide-panel {
  width: 100%;
}

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

.info-list div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

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

.info-list dd {
  margin: 0;
  color: #ffffff;
}

.category-preview {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0;
}

.sitemap-shell {
  display: grid;
  gap: 24px;
}

.index-group {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  background: rgba(15, 23, 42, 0.62);
}

.index-group h2 {
  margin: 0 0 16px;
  color: #fbbf24;
}

.index-list {
  margin: 0;
  padding-left: 20px;
  columns: 3 280px;
  column-gap: 34px;
}

.index-list li {
  break-inside: avoid;
  margin-bottom: 8px;
  color: var(--soft);
}

.index-list a:hover {
  color: #fbbf24;
}

.site-footer {
  margin-top: 40px;
  padding: 56px 0 24px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), #000000);
}

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

.site-footer h2 {
  margin: 0 0 14px;
  color: #fbbf24;
  font-size: 1.1rem;
}

.site-footer p,
.site-footer li,
.footer-bottom {
  color: var(--muted);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer a:hover {
  color: #fbbf24;
}

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
}

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

  .menu-toggle {
    display: inline-flex;
  }

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

  .category-grid,
  .intro-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .nav-shell {
    min-height: 62px;
  }

  .brand-text {
    max-width: 52vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .global-search-input {
    width: 150px;
  }

  .hero-carousel {
    min-height: 640px;
  }

  .hero-content {
    margin: 0 auto;
    padding: 80px 0 48px;
  }

  .hero-arrow {
    display: none;
  }

  .intro-strip,
  .category-grid,
  .movie-grid,
  .compact-grid,
  .filter-panel,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .intro-strip {
    margin-top: 16px;
  }

  .section-shell,
  .section-contrast {
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .filter-controls {
    justify-content: stretch;
  }

  .filter-controls input,
  .filter-controls select {
    width: 100%;
  }

  .detail-hero-content {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 260px;
  }

  .footer-bottom {
    display: grid;
  }
}
