/* ===== 防错乱基线 ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100%; overflow-x: hidden; }
img, video, iframe, embed, object { max-width: 100%; height: auto; display: block; }
img { object-fit: cover; }
table { max-width: 100%; }
pre, code { white-space: pre-wrap; word-break: break-word; overflow: auto; max-width: 100%; }
a, p, h1, h2, h3, li, span { overflow-wrap: anywhere; word-break: break-word; }
.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 16px; }
main, section, article, aside { position: relative; }

/* ===== 变量与基础（暗黑 · 莫兰迪低饱和 · 轻拟物） ===== */
:root {
  --bg: #23262b;
  --bg2: #2a2e35;
  --surface: #31363e;
  --surface2: #3a4049;
  --text: #e7e4de;
  --muted: #a6a39b;
  --line: rgba(255,255,255,.06);
  --rose: #c2a3a0;
  --sage: #9aa78f;
  --haze: #8fa3b0;
  --sand: #cbb289;
  --shadow: 0 10px 24px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04);
  --shadow-soft: 0 6px 14px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04);
  --radius: 14px;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
}
a { color: var(--text); text-decoration: none; }
h1, h2, h3, .block-title, .side-title, .hero-title { font-family: var(--serif); }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 .6em; }

/* 链接下划线滑入动效 */
.u-underline, .site-nav a, .footer-links a, .text-item, .item-title a {
  position: relative;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: left calc(100% - 1px);
  transition: background-size .3s ease, color .25s ease;
}
.u-underline:hover, .site-nav a:hover, .footer-links a:hover, .text-item:hover, .item-title a:hover {
  background-size: 100% 1px;
  color: var(--rose);
}

/* ===== 头部：大头图 Banner 叠加导航 ===== */
.site-header { background: var(--bg2); box-shadow: var(--shadow-soft); }
.header-hero {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: var(--bg2);
  padding: 18px 0 26px;
}
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(35,38,43,.82) 0%, rgba(35,38,43,.9) 55%, rgba(42,46,53,.97) 100%);
}
.header-inner {
  position: relative; z-index: 2;
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
}
.site-logo { flex-shrink: 0; display: flex; flex-direction: column; min-width: 0; }
.site-logo strong { font-family: var(--serif); font-size: 26px; letter-spacing: 2px; color: var(--text); }
.logo-sub { font-size: 12px; color: var(--muted); letter-spacing: 4px; }
.header-search {
  display: flex; flex: 1 1 320px; min-width: 0; max-width: 480px; margin-left: auto;
  background: var(--surface);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.search-input {
  flex: 1 1 auto; min-width: 0;
  background: transparent; border: 0; outline: 0;
  color: var(--text); font-size: 16px;
  padding: 10px 18px;
}
.search-input::placeholder { color: var(--muted); }
.search-btn {
  flex-shrink: 0; border: 0; cursor: pointer;
  background: linear-gradient(145deg, var(--rose), #a98884);
  color: #23262b; font-weight: 700; font-size: 14px;
  padding: 10px 22px; border-radius: 999px;
  transition: filter .25s;
}
.search-btn:hover { filter: brightness(1.08); }
.hero-copy { position: relative; z-index: 2; padding-top: 22px; }
.hero-kicker { color: var(--sand); font-size: 13px; letter-spacing: 3px; margin-bottom: 4px; }
.hero-title { font-size: clamp(22px, 3vw, 34px); font-weight: 700; margin: 0 0 6px; }
.hero-desc {
  color: var(--muted); max-width: 640px; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 导航 */
.nav-toggle { display: none; }
.site-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px;
  max-width: 1220px; margin: 0 auto; padding: 10px 16px;
}
.site-nav a {
  padding: 7px 14px; border-radius: 10px;
  color: var(--text); font-size: 14px;
  background-position: 14px calc(100% - 6px);
}
.site-nav a:hover { background-color: var(--surface); }
.site-nav .nav-home { color: var(--sand); font-weight: 700; }
.nav-backdrop { display: none; }

/* ===== 主体 ===== */
.site-main { min-height: 50vh; }
.page-body { padding: 26px 16px 40px; }
.page-h1 { font-size: clamp(20px, 2.4vw, 28px); margin: 0 0 20px; padding-left: 14px; border-left: 4px solid var(--rose); }
.block { margin-bottom: 34px; }
.block-title {
  font-size: 20px; margin: 0 0 16px; display: flex; align-items: center; gap: 10px;
}
.block-title::before { content: ""; width: 10px; height: 22px; border-radius: 4px; background: linear-gradient(160deg, var(--rose), var(--haze)); flex-shrink: 0; }

/* 海报卡片（大图压底标题 + 渐变蒙版） */
.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 16px; }
.poster-grid-dense { grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 14px; }
.poster-grid > * { min-width: 0; }
.movie-card { min-width: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.movie-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-thumb {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 2 / 3; background: var(--surface2);
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.movie-card:hover .card-thumb img { transform: scale(1.05); }
.card-shade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 62%;
  background: linear-gradient(180deg, rgba(20,22,26,0) 0%, rgba(20,22,26,.85) 100%);
  pointer-events: none;
}
.card-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; z-index: 2; display: block; }
.card-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-family: var(--serif); font-size: 15px; font-weight: 700; color: #f3f0ea; line-height: 1.4;
}
.card-sub {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 12px; color: rgba(231,228,222,.8); margin-top: 4px;
}
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 11px; min-width: 0; }
.card-meta time { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 彩色类型标签胶囊 */
.pill {
  display: inline-block; padding: 3px 11px; border-radius: 999px;
  font-size: 12px; line-height: 1.5;
  background: rgba(194,163,160,.18); color: #ddc3bf;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: filter .25s;
}
.pill:hover { filter: brightness(1.2); }
.pill-mini { padding: 1px 9px; font-size: 11px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud .pill:nth-child(3n) { background: rgba(143,163,176,.18); color: #b9c9d3; }
.tag-cloud .pill:nth-child(3n+1) { background: rgba(154,167,143,.18); color: #bfcab3; }
.tag-cloud .pill:nth-child(4n) { background: rgba(203,178,137,.18); color: #dccba9; }

/* 焦点组合：左大右小 */
.focus-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; grid-auto-flow: dense; }
.focus-grid > * { min-width: 0; }
.focus-grid .movie-card:first-child { grid-column: span 2; grid-row: span 2; }
.focus-grid .movie-card:first-child .card-title { font-size: 20px; }

/* 高分榜单双列行卡 */
.score-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; counter-reset: sc; }
.score-item {
  min-width: 0; display: flex; gap: 12px; align-items: center;
  background: var(--surface); border-radius: var(--radius); padding: 10px 12px;
  box-shadow: var(--shadow-soft); transition: transform .3s;
  counter-increment: sc;
}
.score-item::before {
  content: counter(sc, decimal-leading-zero);
  font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--sand);
  flex-shrink: 0; width: 34px; text-align: center;
}
.score-item:hover { transform: translateY(-3px); }
.score-thumb { position: relative; overflow: hidden; flex-shrink: 0; width: 62px; aspect-ratio: 3 / 4; border-radius: 8px; background: var(--surface2); }
.score-thumb img { width: 100%; height: 100%; object-fit: cover; }
.score-info { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; }
.score-title { font-family: var(--serif); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score-sub { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.score-intro { font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* 双栏布局 */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(280px, 24vw, 340px); gap: 28px; align-items: start; }
.layout-main, .layout-side { min-width: 0; }

/* 侧栏 */
.side-box { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 16px; margin-bottom: 20px; }
.side-title { font-size: 17px; margin: 0 0 12px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.rank-list { counter-reset: rk; display: flex; flex-direction: column; }
.rank-item { display: flex; align-items: center; gap: 10px; padding: 7px 0; min-width: 0; counter-increment: rk; border-bottom: 1px dashed var(--line); }
.rank-item:last-child { border-bottom: 0; }
.rank-item::before {
  content: counter(rk, decimal-leading-zero);
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface2);
}
.rank-item:nth-child(1)::before { background: var(--rose); color: #23262b; }
.rank-item:nth-child(2)::before { background: var(--sand); color: #23262b; }
.rank-item:nth-child(3)::before { background: var(--haze); color: #23262b; }
.rank-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.rank-item:hover .rank-name { color: var(--rose); }
.side-cards { display: flex; flex-direction: column; gap: 10px; }
.side-card { display: flex; gap: 10px; align-items: center; min-width: 0; border-radius: 10px; padding: 6px; transition: background .25s; }
.side-card:hover { background: var(--surface2); }
.side-thumb { position: relative; overflow: hidden; flex-shrink: 0; width: 56px; aspect-ratio: 3 / 4; border-radius: 8px; background: var(--surface2); }
.side-thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.side-name { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-date { font-size: 12px; color: var(--muted); }
.text-list { display: flex; flex-direction: column; }
.text-item { display: block; padding: 7px 0; font-size: 14px; border-bottom: 1px dashed var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.text-item:last-child { border-bottom: 0; }
.side-search { display: flex; background: var(--bg2); border-radius: 999px; overflow: hidden; box-shadow: var(--shadow-soft); }

/* 播放排行大卡 */
.rank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; counter-reset: rg; }
.rank-card { min-width: 0; counter-increment: rg; position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-soft); }
.rank-thumb { position: relative; overflow: hidden; display: block; aspect-ratio: 2 / 3; background: var(--surface2); }
.rank-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.rank-card:hover .rank-thumb img { transform: scale(1.05); }
.rank-card::after {
  content: counter(rg, decimal-leading-zero);
  position: absolute; top: 8px; left: 8px; z-index: 3;
  background: rgba(35,38,43,.85); color: var(--sand);
  font-family: var(--serif); font-weight: 700; font-size: 13px;
  padding: 2px 8px; border-radius: 8px;
}
.rank-card-name { display: block; padding: 9px 11px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 列表页横向条目 */
.film-list { display: flex; flex-direction: column; gap: 16px; }
.list-item {
  display: flex; gap: 16px; min-width: 0;
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); padding: 14px; transition: transform .3s;
}
.list-item:hover { transform: translateY(-3px); }
.item-thumb { position: relative; overflow: hidden; flex-shrink: 0; width: 128px; aspect-ratio: 2 / 3; border-radius: 10px; background: var(--surface2); display: block; }
.item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.item-body { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; }
.item-title { margin: 0; font-size: 17px; }
.item-title a { display: inline; }
.item-intro { color: var(--muted); font-size: 13px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.item-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; font-size: 12px; color: var(--muted); }
.item-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.item-tags a { font-size: 12px; color: var(--haze); background: rgba(143,163,176,.12); padding: 2px 9px; border-radius: 999px; }
.item-tags a:hover { color: var(--text); }

/* 面包屑 */
.breadcrumb { margin-bottom: 18px; font-size: 13px; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.breadcrumb li { display: flex; align-items: center; min-width: 0; }
.breadcrumb li + li::before { content: "›"; margin: 0 7px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--rose); }
.breadcrumb li[aria-current] { color: var(--text); max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 分页 */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.pagination a {
  min-width: 38px; padding: 8px 13px; text-align: center;
  background: var(--surface); border-radius: 10px; font-size: 14px;
  box-shadow: var(--shadow-soft); transition: background .25s, color .25s;
}
.pagination a:hover { background: var(--rose); color: #23262b; }

/* ===== 视频详情 ===== */
.player-module { background: var(--surface); border-radius: 16px; padding: 12px; box-shadow: var(--shadow); margin-bottom: 26px; }
.player-wrap { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #101216; }
.hls-player { width: 100%; height: 100%; object-fit: contain; display: block; }
.player-tip { margin: 10px 4px 0; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.detail-head { display: grid; grid-template-columns: minmax(160px, 220px) minmax(0, 1fr); gap: 22px; margin-bottom: 30px; }
.detail-head > * { min-width: 0; }
.detail-poster { position: relative; overflow: hidden; aspect-ratio: 2 / 3; border-radius: var(--radius); background: var(--surface2); box-shadow: var(--shadow-soft); }
.detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.score-badge {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  background: linear-gradient(145deg, var(--sand), #b09a72);
  color: #23262b; font-weight: 700; font-family: var(--serif);
  padding: 4px 11px; border-radius: 999px; font-size: 14px;
}
.detail-info h1 { font-size: clamp(20px, 2.6vw, 30px); margin: 0 0 16px; }
.info-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.info-list li { min-width: 0; font-size: 14px; color: var(--text); display: flex; gap: 8px; }
.info-list li span { flex-shrink: 0; color: var(--muted); }
.info-list li em { font-style: normal; color: var(--sand); font-weight: 700; }
.info-list .info-wide { grid-column: 1 / -1; }
.detail-intro { color: var(--text); line-height: 1.85; }
.rich-text { line-height: 1.9; color: var(--text); }
.rich-text img { border-radius: 10px; margin: 12px auto; }
.rich-text table { display: block; overflow-x: auto; }
.rich-text a { color: var(--haze); }
.rich-text blockquote { margin: 12px 0; padding: 10px 16px; border-left: 3px solid var(--rose); background: var(--surface); border-radius: 0 10px 10px 0; }

/* ===== 关于我们 ===== */
.about-panel { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: clamp(20px, 4vw, 40px); }
.about-panel h1 { margin: 0 0 22px; font-size: clamp(22px, 2.8vw, 30px); }
.about-section { margin-bottom: 26px; }
.about-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.about-stats li { min-width: 0; background: var(--bg2); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 20px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.about-stats strong { font-family: var(--serif); font-size: 28px; color: var(--sand); }
.about-stats span { color: var(--muted); font-size: 13px; }
.about-contact li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.about-contact li:last-child { border-bottom: 0; }

/* ===== 搜索空结果 ===== */
.empty-tip { text-align: center; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 46px 20px; margin-top: 10px; }
.empty-title { font-family: var(--serif); font-size: 20px; margin-bottom: 8px; }
.empty-text { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.empty-btn { display: inline-block; background: linear-gradient(145deg, var(--rose), #a98884); color: #23262b; font-weight: 700; padding: 9px 26px; border-radius: 999px; }

/* ===== 页脚 ===== */
.site-footer { background: var(--bg2); margin-top: 40px; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 26px; padding-top: 34px; padding-bottom: 26px; }
.footer-col { min-width: 0; }
.footer-title { font-family: var(--serif); font-size: 17px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.footer-text { color: var(--muted); font-size: 13px; }
.footer-links li { padding: 4px 0; color: var(--muted); font-size: 13px; }
.footer-links a { color: var(--muted); }
.footer-bar { border-top: 1px solid var(--line); }
.footer-bar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 14px; padding-bottom: 14px; font-size: 12px; color: var(--muted); }
.footer-bar-inner p { margin: 0; }
.footer-bar-inner a { color: var(--muted); }
.footer-bar-inner a:hover { color: var(--rose); }

/* ===== 404 ===== */
.error-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.error-page { width: 100%; max-width: 460px; text-align: center; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 46px 30px; }
.error-code { font-family: var(--serif); font-size: 74px; font-weight: 700; color: var(--rose); margin: 0 0 6px; line-height: 1; }
.error-title { font-family: var(--serif); font-size: 20px; margin-bottom: 8px; }
.error-text { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.error-search { display: flex; background: var(--bg2); border-radius: 999px; overflow: hidden; margin-bottom: 18px; box-shadow: var(--shadow-soft); }
.error-home { display: inline-block; background: linear-gradient(145deg, var(--rose), #a98884); color: #23262b; font-weight: 700; padding: 10px 30px; border-radius: 999px; }

/* ===== 回到顶部 ===== */
.back-top {
  position: fixed; right: 18px; bottom: 24px; z-index: 900;
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--surface2); color: var(--text); font-size: 18px;
  box-shadow: var(--shadow-soft); display: none;
}
.back-top.is-show { display: block; }
.back-top:hover { background: var(--rose); color: #23262b; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .focus-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .header-inner { align-items: center; }
  .site-logo { margin-right: auto; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    flex-shrink: 0; order: 2;
    width: 44px; height: 40px; padding: 0 10px;
    background: var(--surface); border: 0; border-radius: 10px; cursor: pointer;
    box-shadow: var(--shadow-soft);
  }
  .nav-toggle .bar { display: block; width: 100%; height: 2px; background: var(--text); border-radius: 2px; }
  .header-search { order: 3; flex: 1 1 100%; width: 100%; max-width: none; margin-left: 0; }
  .site-nav { display: none; }
  .site-nav.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 1200;
    width: min(78vw, 300px); max-width: 100%;
    max-height: 100vh; overflow-y: auto;
    background: var(--bg2); box-shadow: 8px 0 24px rgba(0,0,0,.45);
    padding: 26px 16px; margin: 0; gap: 4px;
  }
  .site-nav.is-open a { width: 100%; padding: 12px 14px; border-bottom: 1px dashed var(--line); border-radius: 8px; }
  .nav-backdrop.is-open { display: block; position: fixed; inset: 0; z-index: 1100; background: rgba(15,17,20,.6); }
  .hero-copy { padding-top: 14px; }
  .focus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .focus-grid .movie-card:first-child { grid-column: span 2; grid-row: auto; }
  .score-grid { grid-template-columns: minmax(0, 1fr); }
  .poster-grid, .poster-grid-dense { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; }
  .detail-head { grid-template-columns: minmax(0, 1fr); }
  .detail-poster { max-width: 240px; margin: 0 auto; }
  .info-list { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .list-item { flex-direction: row; }
  .item-thumb { width: 104px; }
}
@media (max-width: 480px) {
  .rank-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .list-item { flex-direction: column; }
  .item-thumb { width: 100%; aspect-ratio: 16 / 10; }
  .breadcrumb li[aria-current] { max-width: 180px; }
}
