:root {
  color-scheme: light;
  --amber-950: #401609;
  --amber-900: #713f12;
  --amber-800: #92400e;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-300: #fcd34d;
  --rose-600: #e11d48;
  --teal-600: #0d9488;
  --cyan-600: #0891b2;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --shadow-soft: 0 20px 55px rgba(15, 23, 42, 0.14);
  --shadow-strong: 0 24px 80px rgba(15, 23, 42, 0.26);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--slate-800);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 34%, #fff7ed 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
  background: linear-gradient(90deg, rgba(113, 63, 18, 0.82), rgba(154, 52, 18, 0.82));
}

.site-header.scrolled {
  background: linear-gradient(90deg, rgba(113, 63, 18, 0.96), rgba(154, 52, 18, 0.96));
  box-shadow: 0 12px 36px rgba(64, 22, 9, 0.24);
  backdrop-filter: blur(14px);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--amber-950);
  background: linear-gradient(135deg, var(--amber-300), #fff7ed);
  box-shadow: 0 0 32px rgba(252, 211, 77, 0.34);
}

.brand-text {
  font-size: 1.32rem;
  background: linear-gradient(90deg, #fde68a, #fff7ed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex: 1;
}

.nav-link {
  color: rgba(255, 247, 237, 0.86);
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 0.94rem;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff7ed;
  border-radius: 99px;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 760px;
  color: #fff;
  background: var(--slate-950);
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.9s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 24%, rgba(245, 158, 11, 0.45), transparent 30%),
    radial-gradient(circle at 16% 70%, rgba(13, 148, 136, 0.36), transparent 30%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(64, 22, 9, 0.80) 45%, rgba(2, 6, 23, 0.44));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 150px 0 210px;
  max-width: 780px;
  justify-self: center;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-300);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.08em;
  max-width: 900px;
  background: linear-gradient(90deg, #fde68a, #fff7ed, #fed7aa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  color: #fffbeb;
}

.hero p {
  max-width: 720px;
  margin: 0 0 22px;
  color: rgba(255, 247, 237, 0.86);
  font-size: clamp(1rem, 1.8vw, 1.24rem);
  line-height: 1.86;
}

.hero-tags,
.tag-row,
.tag-cloud,
.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span,
.tag-cloud span,
.meta-pills span {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.82rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  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(135deg, var(--amber-500), #ea580c);
  box-shadow: 0 16px 36px rgba(245, 158, 11, 0.32);
}

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

.btn-soft {
  color: #78350f;
  background: #fffbeb;
}

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

.hero-dot {
  width: 42px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 68px;
  background: var(--amber-300);
}

.hero-thumbs {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 34px;
  width: min(100% - 32px, var(--max));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.hero-thumb {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 86px;
  border-radius: 18px;
  overflow: hidden;
  padding: 8px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(15, 23, 42, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.hero-thumb.active {
  background: rgba(245, 158, 11, 0.24);
  border-color: rgba(252, 211, 77, 0.62);
}

.hero-thumb img {
  width: 74px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
}

.hero-thumb span {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}

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

.stats-strip div {
  padding: 30px 16px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-strip strong {
  display: block;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1;
}

.stats-strip span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
}

.section {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 72px 0;
}

.section-warm {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - var(--max)) / 2));
  padding-right: max(16px, calc((100% - var(--max)) / 2));
  background: linear-gradient(90deg, #fff7ed, #fef2f2);
}

.section-rank {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - var(--max)) / 2));
  padding-right: max(16px, calc((100% - var(--max)) / 2));
  background: linear-gradient(135deg, #431407, #7f1d1d 52%, #0f172a);
}

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

.section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--slate-800);
  letter-spacing: -0.04em;
}

.section-head a {
  color: var(--amber-800);
  font-weight: 800;
}

.section-head.light h2,
.section-head.light a {
  color: #fff7ed;
}

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

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  color: var(--slate-800);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transform: translateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #451a03, #0f172a);
}

.movie-card-compact .poster-wrap {
  aspect-ratio: 4 / 5;
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.70), transparent);
}

.play-dot {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(245, 158, 11, 0.92);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.rank-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--rose-600);
}

.movie-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
}

.movie-body strong {
  font-size: 1.08rem;
  color: var(--slate-800);
  line-height: 1.36;
}

.movie-body em {
  font-style: normal;
  color: var(--amber-800);
  font-size: 0.9rem;
  font-weight: 700;
}

.movie-line {
  color: var(--slate-600);
  font-size: 0.92rem;
  line-height: 1.62;
}

.tag-row span {
  background: #fff7ed;
  color: var(--amber-800);
  font-weight: 700;
}

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

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

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.10));
}

.category-card span {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 18px;
}

.category-card strong,
.category-card em {
  display: block;
}

.category-card strong {
  font-size: 1.22rem;
  margin-bottom: 8px;
}

.category-card em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  line-height: 1.55;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.search-box {
  position: relative;
}

.search-box span {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-500);
  font-size: 1.2rem;
}

.search-box input,
.filter-panel select {
  width: 100%;
  height: 48px;
  border: 2px solid var(--slate-200);
  border-radius: 14px;
  background: #fff;
  color: var(--slate-800);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input {
  padding: 0 16px 0 46px;
}

.filter-panel select {
  padding: 0 14px;
}

.search-box input:focus,
.filter-panel select:focus {
  border-color: var(--teal-600);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 128px 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 120px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.rank-num {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--rose-600);
  font-weight: 900;
}

.rank-row img {
  width: 128px;
  height: 82px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-info {
  display: grid;
  gap: 5px;
}

.rank-info strong {
  font-size: 1.08rem;
}

.rank-info em,
.rank-info span {
  font-style: normal;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.rank-action {
  border-radius: 999px;
  padding: 10px 18px;
  color: #78350f;
  background: #fef3c7;
  font-weight: 900;
}

.sub-hero {
  min-height: 430px;
  display: grid;
  align-items: end;
  color: #fff;
  padding: 130px max(16px, calc((100% - var(--max)) / 2)) 72px;
  background:
    radial-gradient(circle at 85% 20%, rgba(245, 158, 11, 0.42), transparent 30%),
    linear-gradient(135deg, #431407, #7c2d12 52%, #0f172a);
}

.sub-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  letter-spacing: -0.06em;
}

.sub-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 247, 237, 0.82);
  font-size: 1.12rem;
  line-height: 1.8;
}

.small-actions {
  margin-top: 24px;
}

.overview-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.overview-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.overview-images img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
}

.overview-info strong,
.overview-info em {
  display: block;
}

.overview-info strong {
  margin-bottom: 8px;
  color: var(--slate-800);
  font-size: 1.18rem;
}

.overview-info em {
  font-style: normal;
  color: var(--slate-600);
  line-height: 1.62;
  font-size: 0.92rem;
}

.detail-hero {
  position: relative;
  min-height: 720px;
  padding: 118px max(16px, calc((100% - var(--max)) / 2)) 70px;
  color: #fff;
  background: #0f172a;
}

.detail-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(1.12);
  transform: scale(1.08);
  opacity: 0.40;
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 18%, rgba(245, 158, 11, 0.38), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(67, 20, 7, 0.78));
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.44fr) minmax(320px, 0.72fr);
  gap: 30px;
  align-items: center;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.video-frame {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.24), rgba(2, 6, 23, 0.62));
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-shell.playing .player-overlay {
  opacity: 0;
  visibility: hidden;
}

.big-play {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  border-radius: 50%;
  color: #7c2d12;
  background: #fef3c7;
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.34);
  font-size: 2rem;
}

.detail-info {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: rgba(255, 247, 237, 0.74);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #fde68a;
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.detail-line {
  color: rgba(255, 247, 237, 0.84);
  line-height: 1.8;
  font-size: 1.04rem;
}

.meta-pills {
  margin: 22px 0 14px;
}

.meta-pills span,
.tag-cloud span {
  background: rgba(255, 255, 255, 0.14);
}

.detail-section {
  padding-top: 60px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: start;
}

.cover-card,
.story-card {
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.cover-card {
  overflow: hidden;
  padding: 14px;
}

.cover-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
}

.full-btn {
  width: 100%;
  margin-top: 14px;
}

.story-card {
  padding: clamp(22px, 4vw, 38px);
}

.story-card h2 {
  margin: 0 0 12px;
  color: var(--slate-800);
  font-size: 1.55rem;
}

.story-card p {
  margin: 0 0 28px;
  color: var(--slate-600);
  line-height: 2;
  font-size: 1.02rem;
}

.story-card p:last-child {
  margin-bottom: 0;
}

.site-footer {
  color: rgba(255, 247, 237, 0.78);
  background: linear-gradient(135deg, #1c1917, #431407);
}

.footer-grid {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 54px 0;
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1.1fr;
  gap: 36px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 14px;
  color: #fde68a;
  font-size: 1.55rem;
  font-weight: 900;
}

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

.site-footer p {
  line-height: 1.8;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: rgba(255, 247, 237, 0.82);
}

.footer-cats {
  columns: 2;
}

.footer-bottom {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 20px 0 28px;
  color: rgba(255, 247, 237, 0.58);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hide-card {
  display: none !important;
}

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

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

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

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

  .cover-card {
    max-width: 340px;
  }

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

  .hero-thumb:nth-child(n + 4) {
    display: none;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 22px;
    background: rgba(67, 20, 7, 0.96);
    box-shadow: var(--shadow-strong);
  }

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

  .nav-link {
    padding: 13px 14px;
  }

  .hero {
    min-height: 740px;
  }

  .hero-content {
    padding-top: 130px;
    padding-bottom: 190px;
  }

  .hero h1 {
    letter-spacing: -0.05em;
  }

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

  .hero-thumb:nth-child(n + 2) {
    display: none;
  }

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

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

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

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

  .rank-row {
    grid-template-columns: 42px 96px 1fr;
  }

  .rank-row img {
    width: 96px;
    height: 72px;
  }

  .rank-action {
    display: none;
  }

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

@media (max-width: 560px) {
  .nav-shell {
    width: min(100% - 24px, var(--max));
  }

  .brand-text {
    font-size: 1.08rem;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    width: min(100% - 24px, var(--max));
  }

  .hero-actions .btn {
    width: 100%;
  }

  .movie-grid,
  .compact-grid,
  .featured-grid,
  .category-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-row {
    grid-template-columns: 40px 1fr;
  }

  .rank-row img {
    display: none;
  }

  .sub-hero {
    min-height: 360px;
    padding-top: 116px;
  }

  .detail-hero {
    padding-top: 96px;
  }

  .detail-info {
    padding: 20px;
  }

  .big-play {
    width: 70px;
    height: 70px;
  }
}
