* {
  box-sizing: border-box;
}

:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-500: #f97316;
  --orange-700: #c2410c;
  --rose-500: #f43f5e;
  --pink-500: #ec4899;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --cyan-500: #06b6d4;
  --blue-600: #2563eb;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.10);
  --shadow-xl: 0 24px 60px rgba(15, 23, 42, 0.18);
  --radius-xl: 22px;
  --container: 1180px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--slate-800);
  background: linear-gradient(135deg, var(--slate-50), var(--amber-50));
}

body.no-scroll {
  overflow: hidden;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

img.image-missing {
  opacity: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.92), rgba(124, 45, 18, 0.92));
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.nav-shell {
  width: min(100% - 32px, var(--container));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  border-radius: 50%;
  box-shadow: 0 0 26px rgba(252, 211, 77, 0.45);
}

.brand-text {
  font-size: 24px;
  color: transparent;
  background: linear-gradient(90deg, var(--amber-200), #fff7ed);
  background-clip: text;
  -webkit-background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  position: relative;
  color: #fff7ed;
  font-weight: 700;
  line-height: 1;
  padding: 28px 0;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 2px;
  background: var(--amber-300);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--amber-200);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #fff7ed;
  border-radius: 999px;
}

main {
  min-height: 60vh;
  padding-top: 72px;
}

.hero-slider {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: var(--slate-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 42%, rgba(251, 191, 36, 0.34), transparent 28%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(120, 53, 15, 0.78), rgba(15, 23, 42, 0.30)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.92), transparent 46%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--container));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  align-items: center;
  gap: 60px;
  color: #fff;
}

.hero-copy {
  max-width: 740px;
}

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

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  color: transparent;
  background: linear-gradient(90deg, var(--amber-200), #fff, #ffedd5);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.04;
  font-weight: 950;
}

.hero-copy h2 + p,
.hero-copy h1 + h2 + p {
  margin-top: 22px;
}

.hero-copy h1 + h2 {
  margin-top: 10px;
  color: #fff7ed;
  background: none;
  -webkit-text-fill-color: initial;
  font-size: clamp(24px, 3vw, 38px);
}

.hero-copy p {
  max-width: 650px;
  margin: 0;
  color: #ffedd5;
  font-size: 20px;
  line-height: 1.8;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 14px 32px rgba(245, 158, 11, 0.32);
}

.btn.ghost {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: rotate(2deg);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.92), transparent);
}

.hero-poster span {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  color: #fff;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 900;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  color: #fff;
  font-size: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-dots {
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dot.is-active {
  width: 28px;
  border-radius: 999px;
  background: var(--amber-300);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: linear-gradient(90deg, var(--teal-600), var(--cyan-500));
  color: #fff;
}

.strip-item {
  padding: 34px 28px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.strip-item strong {
  display: block;
  font-size: 24px;
  margin-bottom: 8px;
}

.strip-item span {
  color: #cffafe;
  font-size: 14px;
}

.section {
  padding: 72px max(16px, calc((100vw - var(--container)) / 2));
}

.white-section {
  background: #fff;
}

.soft-section {
  background: linear-gradient(135deg, var(--slate-50), var(--amber-50));
}

.rank-section {
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
  color: #fff;
}

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

.section-head h2 {
  margin: 0 0 8px;
  color: var(--slate-800);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
}

.section-head p {
  margin: 0;
  max-width: 660px;
  color: var(--slate-600);
  line-height: 1.7;
}

.section-head.light h2,
.section-head.light p {
  color: #fff;
}

.section-head.light p {
  color: var(--slate-300);
}

.section-kicker.teal {
  color: var(--teal-600);
}

.section-kicker.rose {
  color: #fda4af;
}

.section-kicker.amber {
  color: var(--amber-600);
}

.section-more {
  color: var(--orange-700);
  font-weight: 900;
}

.section-more.teal {
  color: var(--teal-600);
}

.section-more.light {
  color: var(--amber-200);
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-500));
}

.poster-link img {
  transition: transform 0.45s ease;
}

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.72), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-gradient {
  opacity: 1;
}

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  color: #fff;
  background: linear-gradient(90deg, var(--orange-500), var(--rose-500));
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.movie-card-body {
  padding: 18px;
}

.card-meta {
  margin-bottom: 8px;
  color: var(--teal-600);
  font-size: 13px;
  font-weight: 800;
}

.movie-card h3 {
  min-height: 48px;
  margin: 0 0 10px;
  color: var(--slate-800);
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--teal-600);
}

.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.58;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--slate-500);
  font-size: 13px;
}

.card-foot a {
  flex: 0 0 auto;
  color: var(--orange-700);
  font-weight: 900;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 112px 1fr;
  align-items: center;
  gap: 16px;
  min-height: 104px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.16);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  font-weight: 950;
}

.rank-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: var(--slate-700);
}

.rank-info strong {
  display: -webkit-box;
  margin-bottom: 6px;
  overflow: hidden;
  color: #fff;
  font-size: 17px;
  line-height: 1.35;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.rank-info small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--slate-300);
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.category-card img {
  position: absolute;
  inset: 0;
  transition: transform 0.4s ease;
}

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

.category-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.22));
}

.category-card strong,
.category-card em {
  position: absolute;
  left: 22px;
  right: 22px;
  z-index: 2;
}

.category-card strong {
  bottom: 64px;
  font-size: 24px;
  font-style: normal;
  font-weight: 950;
}

.category-card em {
  bottom: 22px;
  color: var(--slate-200);
  font-size: 14px;
  font-style: normal;
  line-height: 1.5;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 92px max(16px, calc((100vw - var(--container)) / 2));
  color: #fff;
}

.page-hero::after {
  content: "";
  position: absolute;
  top: -20%;
  right: 12%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(4px);
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.08;
}

.page-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.75;
}

.amber-hero {
  background: linear-gradient(135deg, #92400e, #ea580c, #be123c);
}

.teal-hero {
  background: linear-gradient(135deg, #0f766e, #0891b2, #1d4ed8);
}

.rose-hero {
  background: linear-gradient(135deg, #9f1239, #be185d, #7e22ce);
}

.blue-hero {
  background: linear-gradient(135deg, #1d4ed8, #0891b2, #0f766e);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.category-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
  background: var(--amber-100);
}

.category-copy strong {
  display: block;
  margin-bottom: 10px;
  color: var(--slate-800);
  font-size: 22px;
}

.category-copy em {
  color: var(--slate-600);
  font-style: normal;
  line-height: 1.6;
}

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

.rank-page-section {
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

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

.filter-panel {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.filter-input,
.filter-select {
  display: grid;
  gap: 8px;
  color: var(--slate-700);
  font-weight: 900;
}

.filter-input input,
.filter-select select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--slate-800);
  border: 2px solid var(--slate-200);
  border-radius: 14px;
  background: #fff;
  outline: none;
  font: inherit;
}

.filter-input input:focus,
.filter-select select:focus {
  border-color: var(--teal-500);
}

.empty-state {
  display: none;
  padding: 56px 24px;
  text-align: center;
  color: var(--slate-500);
  font-size: 20px;
  font-weight: 900;
}

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

.detail-hero {
  position: relative;
  min-height: 620px;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.detail-hero-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(245, 158, 11, 0.28), transparent 28%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.76), rgba(15, 23, 42, 0.38));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 46px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
  color: var(--slate-200);
  font-size: 14px;
}

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

.detail-hero-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 46px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-xl);
}

.detail-copy {
  max-width: 760px;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-badges span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--amber-100);
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
}

.detail-copy p {
  margin: 0;
  color: #ffedd5;
  font-size: 20px;
  line-height: 1.75;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  width: min(100% - 32px, var(--container));
  margin: -54px auto 0;
  padding-bottom: 72px;
  position: relative;
  z-index: 5;
}

.detail-main,
.detail-side {
  display: grid;
  gap: 24px;
  align-content: start;
}

.player-section,
.detail-panel,
.side-panel {
  padding: 26px;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.player-section h2,
.detail-panel h2,
.side-panel h2 {
  margin: 0 0 18px;
  color: var(--slate-800);
  font-size: 24px;
}

.player-card {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  background: #000;
  box-shadow: var(--shadow-xl);
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #000;
}

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  gap: 14px;
  color: #fff;
  border: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.76), rgba(15, 23, 42, 0.22));
  cursor: pointer;
}

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

.play-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  padding-left: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.5);
  font-size: 30px;
}

.play-cover strong {
  font-size: 20px;
}

.detail-panel p {
  margin: 0 0 16px;
  color: var(--slate-700);
  line-height: 1.9;
}

.detail-panel p:last-child {
  margin-bottom: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-chip {
  display: inline-flex;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--teal-700, #0f766e);
  background: linear-gradient(90deg, #ccfbf1, #cffafe);
  font-size: 14px;
  font-weight: 800;
}

.detail-side {
  position: sticky;
  top: 96px;
}

.side-recommend {
  display: grid;
  gap: 16px;
}

.compact-card {
  display: grid;
  grid-template-columns: 126px 1fr;
  min-height: 116px;
}

.compact-card .poster-link {
  aspect-ratio: auto;
  height: 100%;
}

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

.compact-card h3 {
  min-height: 0;
  font-size: 15px;
}

.compact-card p {
  min-height: 0;
  margin-bottom: 8px;
  font-size: 12px;
}

.compact-card .card-foot {
  font-size: 12px;
}

.site-footer {
  color: var(--slate-300);
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

.footer-inner {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 48px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer-logo {
  margin-bottom: 12px;
  color: var(--amber-300);
  font-size: 24px;
  font-weight: 950;
}

.footer-brand p {
  max-width: 540px;
  margin: 0;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 800;
}

.footer-links a:hover {
  color: var(--amber-300);
}

.footer-bottom {
  padding: 18px 16px 28px;
  text-align: center;
  color: var(--slate-400);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1080px) {
  .movie-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .detail-side {
    position: static;
  }

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

@media (max-width: 840px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border-radius: 18px;
    background: rgba(120, 53, 15, 0.96);
    box-shadow: var(--shadow-xl);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-link {
    padding: 16px;
    border-radius: 12px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link.is-active,
  .nav-link:hover {
    background: rgba(255, 255, 255, 0.10);
  }

  .hero-slider,
  .hero-content {
    min-height: 780px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 44px 0 100px;
  }

  .hero-poster {
    max-width: 260px;
    justify-self: center;
  }

  .feature-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head {
    display: block;
  }

  .section-more {
    display: inline-flex;
    margin-top: 16px;
  }

  .movie-grid,
  .category-grid,
  .category-overview-grid,
  .rank-list,
  .large-rank-list,
  .filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-input {
    grid-column: 1 / -1;
  }

  .detail-hero-grid {
    grid-template-columns: 180px 1fr;
    gap: 24px;
  }
}

@media (max-width: 620px) {
  .brand-text {
    font-size: 20px;
  }

  .hero-copy p,
  .detail-copy p,
  .page-hero p {
    font-size: 17px;
  }

  .hero-content {
    gap: 28px;
  }

  .hero-actions,
  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .feature-strip,
  .movie-grid,
  .category-grid,
  .category-overview-grid,
  .rank-list,
  .large-rank-list,
  .filter-panel,
  .side-recommend {
    grid-template-columns: 1fr;
  }

  .strip-item {
    padding: 24px 18px;
  }

  .section {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .category-overview-card,
  .rank-row,
  .compact-card {
    grid-template-columns: 1fr;
  }

  .rank-row {
    align-items: start;
  }

  .detail-hero {
    min-height: 760px;
  }

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

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

  .detail-layout {
    margin-top: -32px;
  }

  .footer-inner {
    display: block;
  }

  .footer-links {
    margin-top: 24px;
  }
}
