:root {
  --ink: #0b1f3a;
  --ink-2: #123056;
  --ink-3: #1a3d66;
  --amber: #e8a317;
  --amber-deep: #c4840a;
  --amber-soft: #fff6d8;
  --mist: #eef2f6;
  --paper: #f4f1ea;
  --text: #1c2430;
  --muted: #5a6573;
  --line: #d4dce6;
  --panel: #ffffff;
  --rose: #e8a317;
  --pink: #c4840a;
  --soft: #eef2f6;
  --shadow: 0 10px 28px rgba(11, 31, 58, 0.1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: light; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--mist);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}
a { text-decoration: none; color: inherit; -webkit-tap-highlight-color: rgba(11, 31, 58, 0.12); touch-action: manipulation; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1220px; margin: 0 auto; padding: 0 20px; }

/* ========== Header: navy bar, amber active chips ========== */
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  padding: 8px 12px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 800;
  border-radius: 3px;
}
.skip-link:focus { top: calc(8px + env(safe-area-inset-top, 0px)); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 3px solid var(--amber);
  box-shadow: 0 8px 24px rgba(11, 31, 58, 0.28);
  padding-top: env(safe-area-inset-top, 0px);
}
.nav-wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 3px;
  color: var(--ink);
  background: var(--amber);
  font-size: 14px;
  flex-shrink: 0;
}
.brand strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
}
.brand em {
  display: block;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.nav-link {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 3px;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.nav-link:hover {
  color: #fff;
  border-color: rgba(232, 163, 23, 0.45);
}
.nav-link.active {
  color: var(--ink);
  background: var(--amber);
}
.menu-btn {
  display: none;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 3px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav {
  display: none;
  padding: 8px 20px 16px;
  background: var(--ink-2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mobile-nav a:hover { color: var(--amber); }
.mobile-nav.open { display: block; }

/* ========== Hero: left-aligned navy band ========== */
.hero-top {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  background:
    linear-gradient(115deg, rgba(11, 31, 58, 0.94) 0%, rgba(18, 48, 86, 0.88) 55%, rgba(11, 31, 58, 0.78) 100%),
    var(--ink);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: left;
}
.hero-glow {
  position: absolute;
  border-radius: 0;
  filter: blur(70px);
  opacity: 0.35;
}
.hero-glow.a { width: 280px; height: 180px; background: #2a5a8c; left: -40px; top: -40px; }
.hero-glow.b { width: 320px; height: 200px; background: #e8a317; right: -60px; bottom: -80px; opacity: 0.18; }
.hero-title {
  position: relative;
  z-index: 1;
  max-width: 1220px;
  width: 100%;
  margin: 0 auto;
  padding: 42px 20px 36px;
}
.hero-brand {
  display: block;
}
.hero-brand span { display: none; }
.hero-title h1 {
  margin: 0;
  font-size: clamp(26px, 4.2vw, 42px);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  border-left: 4px solid var(--amber);
  padding-left: 14px;
  line-height: 1.25;
}
.hero-title p {
  max-width: 760px;
  margin: 14px 0 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.75;
}

/* ========== Featured: list left, poster right ========== */
.featured-wrap {
  max-width: 1220px;
  margin: 28px auto 48px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}
.featured-card {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  align-items: stretch;
  background: var(--ink);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 0;
}
.featured-poster { order: 2; }
.featured-list { order: 1; }
.featured-poster {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #071422;
}
.featured-poster > a {
  position: absolute;
  inset: 0;
  display: block;
}
.featured-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.featured-poster:hover img { transform: scale(1.05); }
.featured-poster:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(11, 31, 58, 0.82) 0%, rgba(11, 31, 58, 0.2) 46%, transparent 70%);
}
.featured-copy {
  position: absolute;
  z-index: 1;
  left: 28px;
  right: 28px;
  bottom: 28px;
  color: #fff;
}
.featured-copy span {
  display: inline-block;
  background: var(--amber);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.featured-copy h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-copy p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.7;
  max-width: 560px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  background: var(--amber);
  color: var(--ink);
  padding: 11px 20px;
  border-radius: 3px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.btn-light:hover { background: #fff; color: var(--ink); }
.featured-list {
  padding: 22px 18px;
  background: var(--ink-2);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.featured-list h2,
.rank-main h2,
.rank-side h2 {
  margin: 0 0 16px;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--amber);
  font-weight: 800;
}
.rank-row {
  display: grid;
  grid-template-columns: 24px 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-radius: 3px;
  min-width: 0;
  transition: background 0.18s;
}
.rank-row > span { min-width: 0; overflow: hidden; }
.featured-list .rank-row:hover { background: rgba(232, 163, 23, 0.12); }
.rank-row img {
  width: 56px;
  height: 40px;
  object-fit: cover;
  border-radius: 2px;
  background: #071422;
}
.rank-row strong {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-row em {
  display: block;
  font-style: normal;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.featured-list .rank-row small { color: var(--amber); font-weight: 700; }
.rank-num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 2px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 800;
  font-size: 12px;
}

/* ========== Mid: category chips + search ========== */
main > .cat-strip:not(.cat-strip-bottom) { display: none; }
.cat-strip-bottom {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 52px;
}
.cat-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 22px;
}
.pill,
.quick-chips a {
  display: inline-flex;
  align-items: center;
  border-radius: 2px;
  background: var(--panel);
  color: var(--ink);
  padding: 8px 14px;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid var(--line);
  box-shadow: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.pill:hover,
.quick-chips a:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: none;
}
.search-panel {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 12px 16px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink);
  border-radius: 3px;
  padding: 16px 18px;
  box-shadow: none;
  margin-bottom: 32px;
}
.search-panel strong { display: block; font-size: 16px; color: var(--ink); }
.search-panel span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.search-panel input {
  width: 100%;
  border: 1px solid var(--line);
  outline: 0;
  border-radius: 3px;
  padding: 12px 14px;
  font-size: 16px;
  background: var(--paper);
}
.search-panel input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(232, 163, 23, 0.2);
  background: #fff;
}
.quick-chips {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.quick-chips a { padding: 6px 12px; font-size: 12px; }

/* ========== Sections + movie cards ========== */
.section-block { margin-bottom: 52px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}
.section-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.section-head a,
.text-link { color: var(--amber-deep); font-weight: 800; }
.movie-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.movie-card {
  background: var(--panel);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: none;
  transition: border-color 0.2s, transform 0.2s;
}
.movie-card:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: var(--shadow);
}
.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  background: #071422;
  overflow: hidden;
}
.movie-card.large .poster-link { aspect-ratio: 3 / 4; }
.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.movie-card:hover img { transform: scale(1.06); }
.poster-link:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 31, 58, 0.55), transparent 52%);
  opacity: 0.9;
}
.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 1;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  opacity: 0;
  transition: 0.2s;
}
.movie-card:hover .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.movie-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  background: var(--ink);
  color: var(--amber);
  border-radius: 2px;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 700;
}
.card-body { padding: 12px 12px 14px; }
.card-title {
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}
.card-title:hover { color: var(--amber-deep); }
.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
  max-height: 48px;
  overflow: hidden;
}
.card-meta span:nth-child(n+4) { display: none; }
.card-meta span,
.tag-list span,
.detail-meta span {
  display: inline-flex;
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
}

/* ========== Ranking blocks ========== */
.ranking-section {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  margin-bottom: 52px;
}
.rank-main,
.rank-side {
  background: var(--panel);
  border-radius: 3px;
  padding: 22px;
  border: 1px solid var(--line);
  box-shadow: none;
}
.rank-main h2,
.rank-side h2 { color: var(--ink); }
.rank-main .rank-row em { color: var(--muted); }
.rank-main .rank-row small { color: var(--amber-deep); font-weight: 700; }
.rank-main .rank-row:hover { background: var(--paper); }
.rank-side { background: var(--ink); color: #fff; }
.rank-side h2 { color: var(--amber); }
.rank-side a {
  display: block;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  padding: 13px 14px;
  margin-bottom: 10px;
  border-left: 3px solid var(--amber);
  transition: background 0.18s, transform 0.18s;
}
.rank-side a:hover {
  transform: translateX(3px);
  background: rgba(232, 163, 23, 0.14);
}
.rank-side strong { display: block; color: var(--amber); margin-bottom: 4px; }
.rank-side span { color: rgba(255, 255, 255, 0.68); font-size: 13px; line-height: 1.55; }

.cta {
  margin-bottom: 56px;
  text-align: left;
  border-radius: 3px;
  padding: 36px 28px;
  color: #fff;
  background: var(--ink);
  border-left: 6px solid var(--amber);
  box-shadow: none;
}
.cta h2 { margin: 0 0 10px; font-size: 26px; }
.cta p { margin: 0; color: rgba(255, 255, 255, 0.7); }

/* ========== Inner pages ========== */
.page-hero {
  position: relative;
  overflow: hidden;
  text-align: left;
  padding: 40px 20px 32px;
  background: var(--ink);
  margin-bottom: 28px;
}
.page-hero h1 {
  max-width: 1180px;
  margin: 0 auto 10px;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: #fff;
  border-left: 4px solid var(--amber);
  padding-left: 14px;
  line-height: 1.3;
}
.page-hero p {
  max-width: 1180px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.75;
  padding-left: 18px;
  box-sizing: border-box;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 56px;
}
.category-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: none;
}
.category-card:hover { border-color: var(--ink); }
.cat-cover {
  position: relative;
  min-height: 0;
  aspect-ratio: 16 / 9;
  background: #071422;
}
.cat-cover img { width: 100%; height: 100%; object-fit: cover; }
.cat-cover:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 31, 58, 0.78), transparent 55%);
}
.cat-cover span {
  position: absolute;
  z-index: 1;
  left: 14px;
  bottom: 12px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}
.category-card > div {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.category-card p { color: var(--muted); line-height: 1.7; margin: 0 0 10px; font-size: 13px; }
.category-card .btn-light { margin-top: auto; align-self: flex-start; }
.category-card ul { padding: 0; margin: 0 0 14px; list-style: none; }
.category-card li a {
  display: block;
  padding: 5px 0;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom: 1px dashed var(--line);
}
.category-card li a:hover { color: var(--amber-deep); }
.rank-page {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 56px;
}
.ranking-card {
  background: var(--panel);
  border-radius: 3px;
  border: 1px solid var(--line);
  box-shadow: none;
}
.ranking-card .rank-row { padding: 10px 12px; }
.ranking-card .rank-row em { color: var(--muted); }
.ranking-card .rank-row small { color: var(--amber-deep); font-weight: 700; }
.ranking-card:hover { border-color: var(--ink); }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  margin: 22px 0;
}
.breadcrumb a { color: var(--ink); font-weight: 750; }
.breadcrumb a:hover { color: var(--amber-deep); }

.detail-page { margin-bottom: 40px; }
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
}
.detail-main,
.detail-side .side-panel {
  background: var(--panel);
  border-radius: 3px;
  padding: 20px;
  border: 1px solid var(--line);
  box-shadow: none;
}
.player-box {
  position: relative;
  background: #000;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(11, 31, 58, 0.28);
  margin-bottom: 20px;
  border-bottom: 3px solid var(--amber);
}
.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
  object-fit: contain;
}
.detail-main h1 { margin: 0 0 12px; font-size: 28px; font-weight: 800; color: var(--ink); }
.detail-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.lead { font-size: 16px; line-height: 1.85; color: var(--muted); margin: 0 0 14px; }
.tag-list { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 24px; }
.content-block {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 18px;
}
.content-block h2 { margin: 0 0 10px; font-size: 20px; color: var(--ink); }
.content-block p { margin: 0; color: var(--muted); line-height: 1.9; font-size: 15px; }
.side-poster {
  width: 100%;
  border-radius: 3px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #071422;
  box-shadow: none;
  margin-bottom: 16px;
  border: 1px solid var(--line);
}
.detail-side { position: relative; }
.detail-side .side-panel { position: sticky; top: 78px; }
.detail-side h2 { margin: 0 0 12px; font-size: 18px; color: var(--ink); }
.related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ========== Footer ========== */
.site-footer {
  border-top: 0;
  background: var(--ink);
  padding: 44px 0 calc(22px + env(safe-area-inset-bottom, 0px));
  color: rgba(255, 255, 255, 0.7);
}
.footer-grid {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 1fr;
  gap: 32px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--amber);
  font-size: 18px;
  font-weight: 800;
}
.footer-grid p,
.footer-grid a { color: rgba(255, 255, 255, 0.62); font-size: 14px; line-height: 1.8; }
.footer-grid h3 {
  font-size: 13px;
  margin: 0 0 12px;
  color: var(--amber);
  letter-spacing: 0.1em;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 7px 0; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  max-width: 1220px;
  margin: 28px auto 0;
  padding: 18px 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
}
.hidden-by-search { display: none !important; }

@media (min-width: 1025px) {
  .featured-card { min-height: 420px; }
}

@media (max-width: 1100px) {
  .movie-grid,
  .related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .categories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .featured-card,
  .ranking-section,
  .detail-layout { grid-template-columns: 1fr; }
  .featured-poster,
  .featured-list { order: unset; }
  .featured-poster { height: 320px; }
  .featured-poster > a { position: absolute; inset: 0; }
  .detail-side .side-panel { position: static; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .desktop-nav { display: none; }
  .menu-btn { display: block; }
  .brand strong { font-size: 17px; }
  .hero-title { padding: 32px 16px 28px; }
  .featured-wrap { margin-top: 18px; }
  .featured-card { border-radius: 3px; }
  .featured-poster { height: 260px; }
  .featured-copy { left: 16px; right: 16px; bottom: 16px; }
  .featured-copy h2 { font-size: 22px; }
  .featured-list { padding: 18px 16px; }
  .movie-grid,
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .search-panel { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; gap: 8px; flex-direction: column; }
  .categories-grid { grid-template-columns: 1fr; }
  .detail-main { padding: 14px; }
  .detail-main h1 { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .rank-row { grid-template-columns: 24px 52px 1fr; }
  .rank-row small { display: none; }
  .cta { padding: 28px 18px; }
}

@media (max-width: 520px) {
  .movie-grid,
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-wrap { padding: 10px 14px; }
  .container { padding: 0 14px; }
  .featured-wrap { padding: 0 14px; }
  .featured-poster { height: 220px; }
  .page-hero { padding: 28px 14px 22px; }
  .page-hero h1,
  .page-hero p { max-width: none; }
  .hero-title h1 { font-size: 24px; }
  .hero-title p { font-size: 14px; }
  .section-head h2 { font-size: 20px; }
  .rank-row img { width: 52px; height: 36px; }
  .card-title { white-space: normal; }
  .card-body p { min-height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
