:root {
  --bg: #030712;
  --panel: #111827;
  --panel-soft: rgba(31, 41, 55, 0.52);
  --line: rgba(75, 85, 99, 0.52);
  --text: #f9fafb;
  --muted: #9ca3af;
  --muted-2: #6b7280;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --danger: #ef4444;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #020617 0%, #111827 48%, #020617 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(10px);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

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

.brand-icon,
.footer-brand span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--amber);
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.32);
  font-size: 14px;
}

.brand-text strong,
.footer-brand strong {
  display: block;
  font-size: 20px;
  line-height: 1.05;
  color: #fff;
}

.brand-text em {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

.desktop-nav {
  margin-left: auto;
}

.category-nav {
  padding-left: 16px;
  border-left: 1px solid rgba(75, 85, 99, 0.5);
}

.nav-link,
.nav-chip {
  border-radius: 12px;
  color: #d1d5db;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 700;
}

.nav-chip {
  padding: 7px 11px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.nav-link:hover,
.nav-chip:hover,
.nav-link.active {
  color: #fff;
  background: rgba(245, 158, 11, 0.95);
}

.nav-chip:hover {
  background: rgba(31, 41, 55, 0.95);
  color: #fff;
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.mobile-menu-button:hover {
  color: #fff;
  background: rgba(31, 41, 55, 0.95);
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0 16px;
  border-top: 1px solid rgba(75, 85, 99, 0.35);
}

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

.mobile-link {
  display: block;
  padding: 11px 14px;
  border-radius: 12px;
  color: #d1d5db;
  background: rgba(31, 41, 55, 0.5);
}

.mobile-link.active {
  background: var(--amber);
  color: #fff;
}

.mobile-link.subtle {
  color: var(--muted);
  background: rgba(17, 24, 39, 0.55);
}

.hero {
  position: relative;
  height: 680px;
  min-height: 560px;
  overflow: hidden;
  background: #000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.96) 0%, rgba(0,0,0,0.72) 42%, rgba(0,0,0,0.16) 100%),
    linear-gradient(0deg, rgba(2,6,23,1) 0%, rgba(2,6,23,0) 42%);
}

.hero-content {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: min(1280px, calc(100% - 32px));
  transform: translate(-50%, -50%);
}

.hero-copy {
  width: min(680px, 100%);
}

.hero-kicker,
.section-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--amber-light);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0 0 24px;
  color: #d1d5db;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.hero-meta,
.detail-tags,
.filter-row,
.card-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta {
  margin-bottom: 28px;
}

.meta-pill,
.tag-badge,
.card-type {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  font-weight: 800;
}

.meta-pill {
  padding: 8px 12px;
  background: rgba(31, 41, 55, 0.86);
  color: #e5e7eb;
  border: 1px solid rgba(75, 85, 99, 0.54);
}

.meta-pill.hot {
  background: var(--amber);
  color: #fff;
  border-color: transparent;
}

.hero-actions,
.page-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-button,
.secondary-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.primary-button {
  padding: 13px 22px;
  color: #fff;
  background: var(--amber);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.25);
}

.secondary-button {
  padding: 12px 20px;
  color: #fff;
  background: rgba(17, 24, 39, 0.55);
  border: 1px solid rgba(229, 231, 235, 0.18);
}

.primary-button:hover,
.secondary-button:hover,
.section-link:hover {
  transform: translateY(-2px);
}

.primary-button:hover {
  background: #d97706;
}

.secondary-button:hover {
  background: rgba(31, 41, 55, 0.92);
}

.hero-control {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.78);
  transform: translateY(-50%) scale(1.04);
}

.hero-control.prev {
  left: 24px;
  transform: translateY(-50%);
}

.hero-control.next {
  right: 24px;
  transform: translateY(-50%);
}

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

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

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

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

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

.page-shell {
  padding: 42px 0 56px;
}

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

.section-heading h2,
.page-heading h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p,
.page-heading p {
  margin: 10px 0 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

.section-link {
  padding: 10px 14px;
  color: var(--amber-light);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.24);
  white-space: nowrap;
}

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

.movie-card,
.compact-card,
.wide-card,
.category-card,
.rank-card,
.info-panel,
.filter-panel {
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid rgba(31, 41, 55, 0.8);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover,
.compact-card:hover,
.wide-card:hover,
.category-card:hover,
.rank-card:hover {
  border-color: rgba(245, 158, 11, 0.82);
  box-shadow: 0 22px 58px rgba(245, 158, 11, 0.12);
  transform: translateY(-3px);
}

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

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

.movie-card:hover img,
.compact-card:hover img,
.wide-card:hover img,
.rank-card:hover img {
  transform: scale(1.06);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.85) 100%);
}

.score-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 8px;
  border-radius: 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.68);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(6px);
}

.play-badge,
.compact-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(245, 158, 11, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.play-badge {
  width: 54px;
  height: 54px;
}

.compact-play {
  width: 36px;
  height: 36px;
}

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

.movie-card-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.card-type {
  width: fit-content;
  padding: 4px 8px;
  color: #fff;
  background: var(--amber);
  font-size: 12px;
}

.movie-card strong,
.compact-card strong,
.wide-card strong,
.rank-card strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card:hover strong,
.compact-card:hover strong,
.wide-card:hover strong,
.rank-card:hover strong {
  color: var(--amber-light);
}

.card-line,
.compact-body span,
.wide-body span,
.rank-card p {
  color: var(--muted);
  line-height: 1.65;
}

.card-line {
  display: -webkit-box;
  min-height: 3.2em;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px;
}

.card-meta {
  color: var(--muted-2);
  font-size: 12px;
}

.horizontal-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 220px;
  gap: 18px;
  overflow-x: auto;
  padding: 2px 2px 20px;
  scrollbar-width: none;
}

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

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

.category-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 22px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.category-card span {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--amber);
  font-weight: 900;
}

.category-card strong {
  color: #fff;
  font-size: 20px;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 14px;
}

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

.compact-card {
  display: flex;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.compact-poster {
  position: relative;
  flex: 0 0 128px;
  height: 82px;
  overflow: hidden;
  border-radius: 12px;
  background: #0f172a;
}

.compact-body {
  min-width: 0;
  display: grid;
  gap: 5px;
  align-content: center;
}

.compact-body strong,
.compact-body span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.compact-body strong {
  -webkit-line-clamp: 1;
}

.compact-body span {
  -webkit-line-clamp: 2;
  font-size: 13px;
}

.compact-body em,
.wide-body em {
  color: var(--amber-light);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

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

.wide-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 18px;
  border-radius: 22px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.wide-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  background: #0f172a;
}

.wide-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}

.wide-body strong {
  font-size: 24px;
}

.wide-body span:not(.card-type) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.filter-panel {
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 22px;
}

.filter-row {
  gap: 12px;
}

.search-input,
.filter-select {
  min-height: 46px;
  border: 1px solid rgba(75, 85, 99, 0.7);
  border-radius: 14px;
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  outline: 0;
}

.search-input {
  flex: 1 1 280px;
  padding: 0 16px;
}

.filter-select {
  flex: 0 1 170px;
  padding: 0 13px;
}

.search-input:focus,
.filter-select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.empty-message {
  display: none;
  margin: 30px 0;
  padding: 34px;
  border: 1px solid rgba(75, 85, 99, 0.64);
  border-radius: 22px;
  text-align: center;
  color: var(--muted);
  background: rgba(17, 24, 39, 0.65);
}

.empty-message.show {
  display: block;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 72px 116px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.rank-no {
  color: var(--amber-light);
  font-size: 28px;
  font-weight: 950;
  text-align: center;
}

.rank-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: #0f172a;
}

.rank-card h2,
.rank-card h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 20px;
}

.rank-card p {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-score {
  padding: 9px 13px;
  border-radius: 14px;
  color: #fff;
  background: var(--amber);
  font-weight: 900;
  white-space: nowrap;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

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

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

.player-panel {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  border: 1px solid rgba(31, 41, 55, 0.9);
}

.player-panel video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.big-play {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(245, 158, 11, 0.96);
  box-shadow: 0 20px 48px rgba(245, 158, 11, 0.28);
  font-size: 26px;
}

.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0));
  transition: opacity 0.2s ease;
}

.player-panel:hover .player-controls,
.player-panel.is-active .player-controls {
  opacity: 1;
}

.player-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(31, 41, 55, 0.95);
  cursor: pointer;
}

.player-button.main {
  background: var(--amber);
}

.player-spacer {
  flex: 1;
}

.detail-title {
  margin: 26px 0 12px;
  color: #fff;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.14;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.detail-lead {
  margin: 0 0 20px;
  color: #d1d5db;
  font-size: 18px;
  line-height: 1.85;
}

.tag-badge {
  padding: 8px 12px;
  color: #d1d5db;
  background: rgba(31, 41, 55, 0.88);
  border: 1px solid rgba(75, 85, 99, 0.45);
  font-size: 13px;
}

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

.stat-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(31, 41, 55, 0.5);
  border: 1px solid rgba(75, 85, 99, 0.32);
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 5px;
}

.stat-card strong {
  color: #fff;
  font-size: 18px;
}

.stat-card .highlight {
  color: var(--amber-light);
  font-size: 24px;
}

.info-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
  border-radius: 22px;
}

.info-panel h2,
.article-panel h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 24px;
}

.info-panel dl {
  margin: 0;
  display: grid;
  gap: 14px;
}

.info-panel dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
}

.info-panel dd {
  margin: 0;
  color: #fff;
  font-weight: 700;
  line-height: 1.6;
}

.article-panel {
  margin-top: 22px;
  padding: 26px;
  border-radius: 22px;
  background: rgba(31, 41, 55, 0.35);
  border: 1px solid rgba(75, 85, 99, 0.35);
}

.article-panel p {
  margin: 0;
  color: #d1d5db;
  line-height: 2;
  font-size: 17px;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(17, 24, 39, 0.9);
}

.footer-grid {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-grid p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.footer-grid h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 16px;
}

.footer-grid a {
  display: block;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.footer-grid a:hover {
  color: var(--amber-light);
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(75, 85, 99, 0.4);
  color: var(--muted-2);
  font-size: 13px;
}

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

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

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

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

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

  .info-panel {
    position: static;
  }
}

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

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    height: 590px;
  }

  .hero-control {
    display: none;
  }

  .hero-content {
    top: auto;
    bottom: 86px;
    transform: translateX(-50%);
  }

  .section-heading,
  .page-heading {
    display: block;
  }

  .section-link {
    margin-top: 16px;
  }

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

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

  .wide-card {
    grid-template-columns: 130px 1fr;
  }

  .rank-card {
    grid-template-columns: 46px 88px 1fr;
  }

  .rank-score {
    grid-column: 3;
    width: fit-content;
  }

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

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

@media (max-width: 520px) {
  .header-inner,
  .mobile-nav,
  .content-section,
  .page-shell,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, 1280px);
  }

  .brand-text strong {
    font-size: 17px;
  }

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

  .hero-copy p {
    font-size: 15px;
  }

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

  .compact-poster {
    flex-basis: 108px;
  }

  .wide-card {
    grid-template-columns: 1fr;
  }

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

  .rank-cover {
    display: none;
  }

  .rank-score {
    grid-column: 2;
  }
}
