:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --green: #10b981;
  --green-dark: #059669;
  --teal: #0d9488;
  --orange: #f97316;
  --blue: #2563eb;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 45%, #eefcf8 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled,
.site-header:hover {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

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

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

.site-header.is-scrolled .brand,
.site-header:hover .brand,
.brand-dark {
  color: var(--ink);
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-size: 23px;
  background: linear-gradient(135deg, var(--green), var(--teal));
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.32);
}

.brand-name {
  font-size: 21px;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-header.is-scrolled .nav-link,
.site-header:hover .nav-link {
  color: #334155;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--green), var(--teal));
  transform: translateY(-1px);
}

.nav-link-soft {
  background: rgba(255, 255, 255, 0.12);
}

.site-header.is-scrolled .nav-link-soft,
.site-header:hover .nav-link-soft {
  background: #f1f5f9;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

.site-header.is-scrolled .nav-toggle,
.site-header:hover .nav-toggle {
  background: #f1f5f9;
}

.site-header.is-scrolled .nav-toggle span,
.site-header:hover .nav-toggle span {
  background: var(--ink);
}

.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  background: #020617;
}

.hero-slider,
.hero-slide {
  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-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  filter: saturate(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.58) 44%, rgba(2, 6, 23, 0.1)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.1) 52%, rgba(2, 6, 23, 0.46));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #ffffff;
  padding-top: 76px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), var(--teal));
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.section-kicker.orange {
  background: linear-gradient(135deg, var(--orange), #dc2626);
}

.section-kicker.blue {
  background: linear-gradient(135deg, var(--blue), #4f46e5);
}

.hero h1,
.hero-title-spacer {
  margin: 24px 0 0;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-title-spacer {
  visibility: hidden;
  height: 0;
  margin: 0;
}

.hero h2 {
  margin: 18px 0 0;
  max-width: 820px;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2.1vw, 22px);
}

.hero-meta,
.card-meta,
.rank-meta,
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-meta span,
.hero-meta strong {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
}

.hero-meta strong {
  color: #bbf7d0;
}

.hero-actions,
.detail-actions,
.center-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.center-actions {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 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);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), var(--teal));
  box-shadow: 0 16px 34px rgba(16, 185, 129, 0.28);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

.btn-light {
  color: #334155;
  background: #f1f5f9;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  font-size: 36px;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(16, 185, 129, 0.86);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: max(24px, calc((100vw - 1180px) / 2 - 72px));
}

.hero-next {
  right: max(24px, calc((100vw - 1180px) / 2 - 72px));
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #ffffff;
}

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

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

.section-heading.no-link {
  align-items: flex-start;
}

.section-heading h2,
.page-hero h1 {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-link {
  color: var(--green-dark);
  font-weight: 800;
}

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

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

.movie-card,
.masonry-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-poster {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #020617;
}

.movie-grid.compact .card-poster {
  aspect-ratio: 4 / 3;
}

.card-poster img,
.category-showcase img,
.category-tile img,
.compact-card img,
.rank-row img,
.related-card img,
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .card-poster img,
.masonry-card:hover .card-poster img,
.category-showcase:hover img,
.category-tile:hover img,
.compact-card:hover img,
.rank-row:hover img,
.related-card:hover img,
.category-card:hover img {
  transform: scale(1.08);
}

.card-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-poster::after,
.masonry-card:hover .card-poster::after {
  opacity: 1;
}

.card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), var(--teal));
  font-size: 12px;
  font-weight: 800;
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .card-play,
.masonry-card:hover .card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 20px;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span,
.detail-tags span {
  padding: 4px 9px;
  border-radius: 999px;
  color: #047857;
  background: #d1fae5;
  font-size: 12px;
  font-weight: 700;
}

.card-body h3,
.compact-card h3,
.rank-info h3,
.related-card h3,
.category-showcase h3,
.category-tile h3,
.category-card h2 {
  margin: 10px 0 0;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 900;
}

.card-body p,
.compact-card p,
.rank-info p,
.category-showcase p,
.category-tile p,
.category-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.card-meta {
  justify-content: space-between;
  margin-top: 16px;
  color: #64748b;
  font-size: 13px;
}

.card-meta strong,
.rank-score,
.related-card span {
  color: #047857;
}

.split-section {
  background: linear-gradient(135deg, #ecfdf5, #eff6ff);
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.rank-row img {
  width: 96px;
  height: 68px;
  border-radius: 12px;
  overflow: hidden;
}

.rank-index {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), #dc2626);
  font-weight: 900;
}

.rank-info h3 {
  margin: 0;
  font-size: 17px;
}

.rank-meta {
  gap: 8px;
  margin-top: 7px;
  color: #64748b;
  font-size: 12px;
}

.rank-score {
  font-size: 22px;
  font-weight: 900;
}

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

.category-tile {
  position: relative;
  min-height: 214px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: #ffffff;
  background: #020617;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.category-tile img,
.category-showcase img {
  position: absolute;
  inset: 0;
  opacity: 0.54;
}

.category-tile::after,
.category-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.08));
}

.category-tile div,
.category-showcase div {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
}

.category-tile p,
.category-showcase p {
  color: rgba(255, 255, 255, 0.78);
}

.category-tile span,
.category-showcase span {
  color: #bbf7d0;
  font-weight: 800;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 16px;
  background: #f8fafc;
}

.search-box input,
.filter-bar select {
  width: 100%;
  height: 48px;
  border: 0;
  outline: none;
  color: var(--ink);
  background: transparent;
}

.filter-bar select {
  padding: 0 14px;
  border-radius: 16px;
  background: #f8fafc;
}

.empty-state {
  display: none;
  margin: 30px 0 0;
  padding: 26px;
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
}

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

.dark-showcase {
  color: #ffffff;
  background: linear-gradient(135deg, #020617, #111827 60%, #0f172a);
}

.section-heading.inverse h2,
.section-heading.inverse .section-link {
  color: #ffffff;
}

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

.category-showcase {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #020617;
}

.masonry-grid {
  columns: 3 280px;
  column-gap: 24px;
}

.masonry-card {
  display: inline-flex;
  width: 100%;
  margin: 0 0 24px;
  break-inside: avoid;
}

.page-main {
  padding-top: 94px;
}

.page-hero {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0 28px;
  text-align: center;
}

.page-hero p {
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 18px;
}

.category-page-hero {
  width: min(1060px, calc(100% - 32px));
  padding-bottom: 44px;
}

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

.category-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: 180px;
  overflow: hidden;
}

.category-card-body {
  padding: 22px;
}

.category-card-body span {
  color: #047857;
  font-weight: 800;
  font-size: 13px;
}

.category-card-body strong {
  display: inline-flex;
  margin-top: 18px;
  color: #047857;
}

.compact-list {
  display: grid;
  gap: 16px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.compact-card img {
  width: 112px;
  height: 84px;
  border-radius: 12px;
}

.compact-card h3 {
  margin-top: 4px;
  font-size: 16px;
}

.compact-card span {
  display: inline-flex;
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
}

.ranking-page .page-hero {
  padding-bottom: 18px;
}

.full-rank .rank-row {
  grid-template-columns: 62px 126px minmax(0, 1fr) 70px;
  padding: 14px;
}

.full-rank .rank-row img {
  width: 126px;
  height: 82px;
}

.detail-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 104px 0 72px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  color: #64748b;
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 28px;
  align-items: start;
}

.detail-content {
  min-width: 0;
}

.player-card,
.movie-detail-card,
.sidebar-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: 0 18px 52px rgba(15, 23, 42, 0.1);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #020617;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.74), rgba(2, 6, 23, 0.25));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.94);
  font-size: 34px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

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

.movie-detail-card h1 {
  margin: 18px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-lead {
  margin: 18px 0 0;
  color: #475569;
  font-size: 18px;
}

.detail-meta {
  margin-top: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  color: #64748b;
}

.detail-meta span,
.detail-meta strong {
  padding: 7px 12px;
  border-radius: 999px;
  background: #f1f5f9;
}

.content-block {
  margin-top: 28px;
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.content-block h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.content-block p {
  margin: 0;
  color: #334155;
  white-space: pre-line;
}

.detail-sidebar {
  position: sticky;
  top: 94px;
}

.sidebar-card {
  padding: 22px;
}

.sidebar-card h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding: 8px;
  border-radius: 16px;
  background: #f8fafc;
  overflow: hidden;
  transition: background 0.2s ease, transform 0.2s ease;
}

.related-card:hover {
  background: #ecfdf5;
  transform: translateY(-2px);
}

.related-card img {
  width: 112px;
  height: 76px;
  border-radius: 12px;
}

.related-card h3 {
  margin: 3px 0 0;
  font-size: 15px;
}

.related-card p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 12px;
}

.related-card span {
  display: inline-flex;
  margin-top: 4px;
  font-weight: 900;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, #020617, #111827);
}

.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 220px 220px;
  gap: 32px;
}

.footer-brand p {
  max-width: 440px;
  margin: 18px 0 0;
  color: #94a3b8;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 18px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 14px;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  font-size: 13px;
}

@media (max-width: 1080px) {
  .movie-grid,
  .movie-grid.compact,
  .showcase-grid,
  .category-cards-grid,
  .compact-list.four-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-shell {
    width: min(100% - 24px, 1180px);
    height: 68px;
  }

  .brand-name {
    font-size: 18px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
  }

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

  .nav-link,
  .site-header .nav-link,
  .site-header.is-scrolled .nav-link {
    color: #334155;
  }

  .hero {
    height: 88vh;
    min-height: 620px;
  }

  .hero-content {
    width: min(100% - 28px, 1180px);
    padding-top: 72px;
  }

  .hero h1,
  .hero-title-spacer {
    font-size: 42px;
  }

  .hero h2 {
    font-size: 34px;
  }

  .hero-control {
    display: none;
  }

  .section-shell {
    width: min(100% - 28px, 1180px);
    padding: 50px 0;
  }

  .section-heading {
    display: grid;
    gap: 14px;
  }

  .movie-grid,
  .movie-grid.compact,
  .category-grid-small,
  .showcase-grid,
  .category-cards-grid,
  .compact-list.four-cols {
    grid-template-columns: 1fr;
  }

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

  .rank-row,
  .full-rank .rank-row {
    grid-template-columns: 44px 80px minmax(0, 1fr);
  }

  .rank-row img,
  .full-rank .rank-row img {
    width: 80px;
    height: 62px;
  }

  .rank-score {
    grid-column: 3;
    justify-self: start;
    font-size: 18px;
  }

  .page-hero {
    padding-top: 48px;
  }

  .detail-main {
    width: min(100% - 24px, 1180px);
    padding-top: 88px;
  }

  .movie-detail-card {
    padding: 20px;
  }

  .related-card,
  .compact-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .related-card img,
  .compact-card img {
    width: 96px;
    height: 72px;
  }

  .footer-shell {
    width: min(100% - 28px, 1180px);
  }
}
