:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-solid: #0f172a;
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(148, 163, 184, 0.34);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --accent: #f8fafc;
  --accent-dark: #111827;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.55);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(51, 65, 85, 0.45), transparent 36rem),
    linear-gradient(135deg, #020617 0%, #0f172a 48%, #020617 100%);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #e2e8f0;
  font-weight: 900;
  background: linear-gradient(135deg, #334155, #0f172a);
  border: 1px solid var(--line-strong);
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.38);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.78);
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-button span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #cbd5e1;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.95);
}

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

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 600;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #ffffff;
  background: rgba(51, 65, 85, 0.7);
}

.hero-section {
  position: relative;
  min-height: calc(85vh - 68px);
  overflow: hidden;
}

.hero-bg,
.hero-bg img,
.hero-mask {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  filter: saturate(0.95) contrast(1.05);
}

.hero-mask {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.72) 46%, rgba(2, 6, 23, 0.25) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.1) 42%, rgba(2, 6, 23, 0.6) 100%);
}

.hero-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(85vh - 68px);
  margin: 0 auto;
  padding: 70px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: 42px;
}

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

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

.hero-badges span,
.detail-badges span {
  padding: 6px 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 700;
}

.hero-eyebrow {
  margin: 0 0 12px;
  color: #e2e8f0;
  letter-spacing: 0.18em;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero-desc {
  max-width: 680px;
  margin: 22px 0 0;
  color: #cbd5e1;
  font-size: clamp(17px, 2.1vw, 21px);
}

.hero-search,
.search-panel,
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-search {
  width: min(580px, 100%);
  margin-top: 30px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(18px);
}

.hero-search input,
.search-panel input,
.filter-bar input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #f8fafc;
  background: transparent;
}

.hero-search input {
  padding: 12px 14px;
}

.hero-search button,
.primary-button,
.ghost-button,
.filter-chip {
  border: 0;
  cursor: pointer;
  border-radius: 13px;
  font-weight: 800;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.hero-search button,
.primary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 22px;
  color: #020617;
  background: #f8fafc;
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.36);
}

.hero-search button:hover,
.primary-button:hover,
.ghost-button:hover,
.filter-chip:hover {
  transform: translateY(-2px);
}

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

.ghost-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 22px;
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.68);
}

.ghost-button.slim {
  padding: 10px 16px;
  white-space: nowrap;
}

.hero-category-row,
.subnav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-category-row a,
.subnav-row a {
  padding: 8px 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.54);
  font-size: 13px;
  font-weight: 700;
}

.hero-panel {
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.hero-panel-title {
  margin-bottom: 12px;
  color: #e2e8f0;
  font-size: 15px;
  font-weight: 900;
}

.hero-mini-card,
.compact-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-mini-card:hover,
.compact-card:hover {
  background: rgba(51, 65, 85, 0.62);
  transform: translateY(-2px);
}

.hero-mini-card img,
.compact-card img {
  width: 76px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 auto;
}

.hero-mini-card span,
.compact-card span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.hero-mini-card strong,
.compact-card strong {
  color: #f8fafc;
  font-size: 14px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-mini-card em,
.compact-card em {
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
}

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

.section-tinted {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  padding-right: max(16px, calc((100vw - 1180px) / 2));
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.42), rgba(2, 6, 23, 0));
}

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

.section-title h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.section-title p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-title a {
  color: #e2e8f0;
  font-weight: 800;
  white-space: nowrap;
}

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

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

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

.movie-card {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-card);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  background: rgba(15, 23, 42, 0.94);
  box-shadow: 0 26px 70px rgba(2, 6, 23, 0.42);
}

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

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

.movie-card:hover .poster-wrap img,
.wide-card:hover img,
.category-card:hover img,
.category-overview-card:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 56%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.95), transparent);
}

.duration-badge,
.score-badge {
  position: absolute;
  top: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.74);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.duration-badge {
  left: 10px;
}

.score-badge {
  right: 10px;
}

.movie-card-body {
  display: grid;
  gap: 6px;
  padding: 15px;
}

.movie-card-body strong {
  color: #f8fafc;
  font-size: 16px;
  line-height: 1.35;
}

.movie-meta,
.movie-desc {
  color: var(--muted);
  font-size: 13px;
}

.line-2,
.line-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-2 {
  -webkit-line-clamp: 2;
}

.line-3 {
  -webkit-line-clamp: 3;
}

.wide-list {
  display: grid;
  gap: 22px;
}

.wide-card {
  display: grid;
  grid-template-columns: 38% minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.48);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.wide-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: rgba(15, 23, 42, 0.82);
}

.wide-image {
  min-height: 220px;
  overflow: hidden;
}

.wide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.wide-copy {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 28px;
}

.kicker {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 800;
}

.wide-copy strong {
  color: #f8fafc;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.12;
}

.wide-copy span:not(.kicker):not(.tag-row) {
  color: #cbd5e1;
}

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

.tag-row span {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(51, 65, 85, 0.42);
  font-size: 12px;
  font-weight: 700;
}

.large-tags span {
  padding: 8px 12px;
  font-size: 13px;
}

.scroll-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar {
  display: none;
}

.scroll-card {
  width: 230px;
  flex: 0 0 230px;
  scroll-snap-align: start;
}

.category-card,
.category-overview-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.7);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  transition: transform 0.7s ease, opacity 0.3s ease;
}

.category-card:hover img {
  opacity: 0.72;
}

.category-card-copy {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 24px;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.12));
}

.category-card-copy strong,
.category-overview-copy strong {
  font-size: 24px;
  line-height: 1.12;
}

.category-card-copy em,
.category-overview-copy em {
  color: #cbd5e1;
  font-style: normal;
  font-size: 14px;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 28px;
}

.compact-wide-list .wide-card {
  grid-template-columns: 210px minmax(0, 1fr);
}

.compact-wide-list .wide-image {
  min-height: 142px;
}

.compact-wide-list .wide-copy {
  padding: 18px;
}

.compact-wide-list .tag-row {
  display: none;
}

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

.rank-list,
.ranking-list {
  display: grid;
  gap: 12px;
}

.rank-row,
.ranking-feature {
  display: grid;
  grid-template-columns: 54px 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.58);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.rank-row:hover,
.ranking-feature:hover {
  transform: translateY(-3px);
  background: rgba(15, 23, 42, 0.88);
  border-color: var(--line-strong);
}

.rank-no,
.ranking-position {
  color: #f8fafc;
  font-size: 22px;
  font-weight: 900;
}

.rank-row img,
.ranking-feature img {
  width: 86px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-copy,
.ranking-feature-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rank-copy strong,
.ranking-feature-copy strong {
  overflow: hidden;
  color: #f8fafc;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy em,
.ranking-feature-copy em {
  color: #94a3b8;
  font-style: normal;
  font-size: 13px;
}

.rank-score,
.ranking-score {
  color: #f8fafc;
  font-size: 20px;
  font-weight: 900;
}

.page-main,
.detail-main {
  min-height: 70vh;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(51, 65, 85, 0.7), transparent 34rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(2, 6, 23, 0.26));
}

.small-hero {
  padding: 70px 0;
}

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

.page-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.page-hero p:not(.hero-eyebrow) {
  max-width: 740px;
  margin: 18px 0 0;
  color: #cbd5e1;
  font-size: 18px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 180px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.category-overview-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: rgba(15, 23, 42, 0.95);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  overflow: hidden;
}

.category-thumbs img {
  width: 100%;
  height: 100%;
  min-height: 89px;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.category-overview-copy {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 24px;
}

.filter-bar,
.search-panel {
  margin-bottom: 28px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
}

.search-panel {
  display: grid;
  gap: 14px;
}

.search-panel input,
.filter-bar input {
  min-height: 44px;
  padding: 0 12px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  padding: 8px 12px;
  border: 1px solid var(--line);
  color: #cbd5e1;
  background: rgba(51, 65, 85, 0.35);
}

.filter-chip.active {
  color: #020617;
  background: #f8fafc;
}

.ranking-feature {
  grid-template-columns: 70px 132px minmax(0, 1fr) auto;
  padding: 18px;
  border-radius: 22px;
}

.ranking-feature img {
  width: 132px;
  height: 86px;
}

.ranking-feature-copy span {
  color: #cbd5e1;
}

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

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

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.9fr);
  gap: 28px;
}

.player-card,
.detail-card,
.sticky-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.64);
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.28);
}

.player-card {
  margin-bottom: 22px;
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  border: 0;
  color: #f8fafc;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.38), rgba(2, 6, 23, 0.78));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-orb {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #020617;
  background: #f8fafc;
  font-size: 28px;
  box-shadow: 0 22px 60px rgba(2, 6, 23, 0.5);
}

.player-overlay span:last-child {
  max-width: min(560px, calc(100% - 48px));
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 900;
  text-align: center;
}

.detail-card {
  padding: 28px;
}

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

.lead-text {
  margin: 0 0 26px;
  color: #cbd5e1;
  font-size: 18px;
}

.detail-block {
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.detail-block h2,
.sticky-panel h2 {
  margin: 0 0 12px;
  color: #e2e8f0;
  font-size: 20px;
}

.detail-block p {
  margin: 0;
  color: #cbd5e1;
}

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

.sticky-panel {
  position: sticky;
  top: 92px;
  padding: 18px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.92);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.footer-grid h2 {
  margin: 0 0 12px;
  color: #f8fafc;
  font-size: 18px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: #94a3b8;
  font-size: 14px;
}

.footer-grid p {
  margin: 0;
}

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

.footer-grid a:hover {
  color: #f8fafc;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1080px) {
  .hero-shell,
  .detail-layout,
  .two-column-section {
    grid-template-columns: 1fr;
  }

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

  .hero-panel-title {
    grid-column: 1 / -1;
  }

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

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

  .category-overview-grid {
    grid-template-columns: 1fr;
  }
}

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

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

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

  .hero-shell {
    padding: 54px 0 42px;
  }

  .hero-section,
  .hero-shell {
    min-height: auto;
  }

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

  .hero-search,
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-search button,
  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .content-section {
    padding: 48px 0;
  }

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

  .featured-grid,
  .category-grid,
  .poster-grid,
  .large-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .wide-image {
    min-height: auto;
    aspect-ratio: 16 / 9;
  }

  .rank-row,
  .ranking-feature {
    grid-template-columns: 42px 74px minmax(0, 1fr);
  }

  .rank-row img,
  .ranking-feature img {
    width: 74px;
    height: 56px;
  }

  .rank-score,
  .ranking-score {
    grid-column: 3;
    font-size: 14px;
  }

  .detail-card {
    padding: 20px;
  }

  .footer-grid {
    gap: 22px;
  }
}

@media (max-width: 520px) {
  .nav-shell,
  .mobile-nav,
  .hero-shell,
  .content-section,
  .page-hero-shell,
  .detail-shell,
  .footer-shell {
    width: min(100% - 22px, 1180px);
  }

  .brand-subtitle {
    display: none;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .featured-grid,
  .category-grid,
  .poster-grid,
  .large-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .scroll-card {
    width: 210px;
    flex-basis: 210px;
  }

  .small-hero {
    padding: 48px 0;
  }

  .player-overlay span:last-child {
    font-size: 18px;
  }

  .play-orb {
    width: 64px;
    height: 64px;
    font-size: 24px;
  }
}
