/* 场记 SceneRove · 全站共用样式
   布局：顶栏和首屏共用一张剧照背景，剧照从上往下渐隐；整页铺一层由剧照生成的模糊氛围图；片名信息和快速答案放在毛玻璃卡片里；
   下面一条吸顶的毛玻璃目录；正文左栏按搜索意图分段，「在哪看」按国家切换；右栏放基本信息。
   每部片的配色（底色、强调色、氛围图）由生成程序从海报和剧照算出，写在 <html> 的 style 里（--bg-l、--accent-d 这类变量）；
   没有写的页面用下面的默认值。 */
:root {
  --tint: 40 110 120;
  --bg: var(--bg-l, #F3F5F7);
  --surface: #FFFFFF;
  --panel: rgba(255, 255, 255, .8);
  --surface-2: var(--s2-l, #F6F8FA);
  --ink: #12161C;
  --ink-2: #37404B;
  --muted: #5E6875;
  --line: var(--line-l, #E2E7EC);
  --accent: var(--accent-l, #0A6B6B);
  --on-accent: var(--on-accent-l, #FFFFFF);
  --accent-soft: var(--accent-soft-l, #E2F1F0);
  --ambient: var(--amb-l, none);
  --sub: #13704A;
  --sub-soft: #E2F3EA;
  --free: #1B5CA5;
  --free-soft: #E3EEFA;
  --rent: #885200;
  --rent-soft: #FBEED8;
  --buy: #4A5462;
  --buy-soft: #ECEFF3;
  --glass: rgba(255, 255, 255, .58);
  --glass-strong: rgba(255, 255, 255, .74);
  --glass-line: rgba(255, 255, 255, .7);
  --glass-edge: rgba(18, 22, 28, .08);
  --sheen: .55;
  --demo: #7A4AB8;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 14px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 6px rgba(16, 24, 40, .05);
  --shadow-lg: 0 24px 60px -28px rgba(10, 20, 30, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --top-h: 60px;     /* 顶栏总高 */
  --top-v: 60px;     /* 吸顶时看得见的那部分（手机上搜索那一行会收起） */
  --first-gap: 12px; /* 顶栏底 → 首屏第一块卡片：logo 底（44）到卡片 28（原来 16 太挤，用户选了这一版；标志放大到 28 高后底边下移 3，这里跟着加 3） */
  --nav-h: calc(var(--top-v) + 48px);   /* 吸住的顶栏 + 吸住的目录一行 */
  --scrim: color-mix(in srgb, var(--bg) 80%, transparent);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--bg-d, #0C0F12); --surface: #14181D; --panel: rgba(18, 22, 27, .78); --surface-2: var(--s2-d, #1A1F25); --ink: #E9ECF0; --ink-2: #C4CBD3; --muted: #98A2AD; --line: var(--line-d, #252B33);
    --accent: var(--accent-d, #4DBDB5); --on-accent: var(--on-accent-d, #06211F); --accent-soft: var(--accent-soft-d, #14302E); --ambient: var(--amb-d, none);
    --sub: #55C690; --sub-soft: #13281E; --free: #7FB5F2; --free-soft: #142339;
    --rent: #E4A84A; --rent-soft: #2D2312; --buy: #AFB7C2; --buy-soft: #21272E;
    --glass: rgba(14, 17, 21, .45); --glass-strong: rgba(18, 22, 27, .6); --glass-line: rgba(255, 255, 255, .1); --glass-edge: rgba(255, 255, 255, .06); --sheen: .12;
    --demo: #B795E8; --shadow: none; --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .8);
    --scrim: rgba(6, 8, 11, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: var(--bg-d, #0C0F12); --surface: #14181D; --panel: rgba(18, 22, 27, .78); --surface-2: var(--s2-d, #1A1F25); --ink: #E9ECF0; --ink-2: #C4CBD3; --muted: #98A2AD; --line: var(--line-d, #252B33);
  --accent: var(--accent-d, #4DBDB5); --on-accent: var(--on-accent-d, #06211F); --accent-soft: var(--accent-soft-d, #14302E); --ambient: var(--amb-d, none);
  --sub: #55C690; --sub-soft: #13281E; --free: #7FB5F2; --free-soft: #142339;
  --rent: #E4A84A; --rent-soft: #2D2312; --buy: #AFB7C2; --buy-soft: #21272E;
  --glass: rgba(14, 17, 21, .45); --glass-strong: rgba(18, 22, 27, .6); --glass-line: rgba(255, 255, 255, .1); --glass-edge: rgba(255, 255, 255, .06); --sheen: .12;
  --demo: #B795E8; --shadow: none; --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .8);
  --scrim: rgba(6, 8, 11, .6);
  color-scheme: dark;
}

/* 整页氛围层：由剧照生成的模糊小图铺满并固定在最底层，卡片半透明，能透出这层颜色 */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--ambient) center / cover no-repeat; transform: scale(1.15); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
/* 中文只在词与词之间换行（生成时插了 <wbr>），实在放不下的长词再强制断开 */
body { word-break: keep-all; overflow-wrap: break-word; line-break: strict; }
/* 换行后以「（」「《」这类括号开头的行，去掉括号左边那半格空白，不然看着像多缩进了半个字 */
body { text-spacing-trim: trim-start; }
/* 页脚永远在屏幕最底下：内容少的页面（搜索没结果、404、片单总页）中间留空，页脚不悬在半中间、下面不露出一截背景（用户要求）。
   首屏背后的剧照（700 高）和底色（980 高）是绝对定位的，会把整页撑高、页脚下面多出一截能滚的空白，所以 body 把超出的部分裁掉；
   body 的 overflow 会被浏览器当成整页的滚动设置，所以先让 html 自己管滚动（overflow-y: auto），body 的 clip 才只裁它自己 */
html { overflow-y: auto; scrollbar-gutter: stable; }   /* scrollbar-gutter：短页面（片单总页、搜索没结果、404）不出滚动条时也留出它的位置，在长短页面之间跳转，内容不会左右挪半个滚动条宽（用户指出片单页往右移） */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; overflow: clip; }
body > .body { flex: 1 0 auto; }
/* 内容很少的页面上下视觉居中（用户要求）：多出来的空白上面分 4 份、下面分 5 份——放在正中间看着偏低，略往上才显得居中；内容超过一屏时没有多出来的空白，跟原来一样
   ① 404（body.vc）：首屏卡片、搜索框、去别处看看这一整块，夹在顶栏和页脚之间居中 */
body.vc > .stage { flex: 4 0 auto; display: flex; flex-direction: column; justify-content: flex-end; }
body.vc > .body { flex-grow: 5; }
/* ② 电影、剧集筛选没结果：筛选面板和「全部电影 · 共 0 部」不动，「没有符合条件……」放在它下面那片空白的中间，「本页数据更新于」照旧贴着页脚 */
body:has(.browse > .rnone:not([hidden])) > .body { display: flex; flex-direction: column; }
body:has(.browse > .rnone:not([hidden])) > .body > .wrap { flex: 1 0 auto; width: 100%; align-items: stretch; }   /* width：.wrap 左右 margin 是 auto，放进竖排 flex 里不会自动撑满一行，会缩成最窄 */
body:has(.browse > .rnone:not([hidden])) .browse { display: flex; flex-direction: column; }
.browse > .rnone:not([hidden]) { flex: 1 0 auto; display: flex; flex-direction: column; }
.browse > .rnone:not([hidden])::before { content: ""; flex: 4; }
.browse > .rnone:not([hidden])::after { content: ""; flex: 5; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.num { font-variant-numeric: tabular-nums; }

/* 毛玻璃：半透明底色 + 背景模糊 + 顶部一道高光 */
.glass { position: relative; isolation: isolate; background: var(--glass-strong); border: 1px solid var(--glass-line); box-shadow: 0 0 0 1px var(--glass-edge), var(--shadow-lg); -webkit-backdrop-filter: blur(26px) saturate(170%); backdrop-filter: blur(26px) saturate(170%); }
.glass::before { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; pointer-events: none; opacity: var(--sheen);
  background: linear-gradient(150deg, rgba(255,255,255,.7) 0%, rgba(255,255,255,0) 38%); }

/* ── 动效 ── */
/* 入场动效只做位移，不从透明开始：动画没播放时内容也照样看得见 */
@keyframes rise { from { transform: translateY(18px) scale(.985); } to { transform: none; } }
@keyframes reveal { from { opacity: .2; } to { opacity: 1; } }
@keyframes fade { from { opacity: .35; } to { opacity: 1; } }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }

/* ── 舞台：顶栏 + 首屏共用的背景 ── */
.stage { position: relative; isolation: isolate; }
.stage::before { content: ""; position: absolute; z-index: -3; inset: 0 0 auto; height: 980px; pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% 8%, rgb(var(--tint) / .45), transparent 70%),
    radial-gradient(700px 420px at 8% 30%, rgb(var(--tint) / .22), transparent 70%); }
.backdrop-box { position: absolute; z-index: -2; inset: 0 0 auto; height: 700px; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.92) 28%, rgba(0,0,0,.45) 62%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.92) 28%, rgba(0,0,0,.45) 62%, transparent 100%); }
.backdrop-box img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; animation: fade 1.2s ease-out both, drift 22s var(--ease) both; }
/* 列表类页面（电影、剧集、片单、本周新上线、在哪看）：剧照做成磨砂玻璃，看不出是哪部片、只留颜色（用户要求）；
   模糊后边缘会发虚变透明，放大一点盖住；上面再蒙一层薄薄的底色，像隔着一块毛玻璃 */
.backdrop-box.frost img { filter: blur(44px) saturate(1.25); transform: scale(1.3); animation: fade 1.2s ease-out both; }
.backdrop-box.frost::before { content: ""; position: absolute; z-index: 1; inset: 0; background: color-mix(in srgb, var(--bg) 22%, transparent); }   /* z-index 1：图片有 transform（放大 1.3）会画在没写层级的这层上面，原来这层薄纱一直被图片盖住、没起作用（2026-11-17 查对比度时发现） */
/* 磨砂剧照上直接压着的字要看得清（2026-11-17 用户：剧照暗的那天「共 N 部 · 按热度」几乎看不见，「修一下」）。
   量过：剧照换成纯黑、纯白都要过 4.5（小字）/ 3（大字）。做法：剧照只留在顶栏、页面标题、筛选按钮、标题卡片后面，往下比原来早淡掉（结果行、段标题、海报下面的小字处已经基本没有剧照）；
   颜色氛围还在（整页氛围层 body::before 和 .stage::before 色调都跟首屏走）。深色模式薄纱 32%（纯白剧照时「找电影」也看得清）；
   直接压在页面底色上的灰字、强调色链接加深一点（色调渐变上原来的灰字只有 3～4.4） */
.backdrop-box.frost { -webkit-mask-image: linear-gradient(180deg, #000 0, rgba(0,0,0,.92) 140px, rgba(0,0,0,.37) 250px, rgba(0,0,0,.1) 300px, rgba(0,0,0,.04) 380px, transparent 440px);
  mask-image: linear-gradient(180deg, #000 0, rgba(0,0,0,.92) 140px, rgba(0,0,0,.37) 250px, rgba(0,0,0,.1) 300px, rgba(0,0,0,.04) 380px, transparent 440px); }
@media (max-width: 680px) {
  .backdrop-box.frost { -webkit-mask-image: linear-gradient(180deg, #000 0, rgba(0,0,0,.92) 100px, rgba(0,0,0,.37) 190px, rgba(0,0,0,.05) 230px, transparent 270px);
    mask-image: linear-gradient(180deg, #000 0, rgba(0,0,0,.92) 100px, rgba(0,0,0,.37) 190px, rgba(0,0,0,.05) 230px, transparent 270px); }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .backdrop-box.frost::before { background: color-mix(in srgb, var(--bg) 32%, transparent); } }
:root[data-theme="dark"] .backdrop-box.frost::before { background: color-mix(in srgb, var(--bg) 32%, transparent); }
body:has(.backdrop-box.frost) .body :is(.rhead .rm, .recs small, .stills small) { color: var(--ink-2); }
body:has(.backdrop-box.frost) .body :is(.rhead .rclear, .sec-head .more, .prose a) { color: color-mix(in srgb, var(--accent) 65%, var(--ink)); }

/* ── 顶栏：一直吸顶。页面最顶上时透明、直接压在剧照上（下面一层往下渐淡的底色保证字看得清，不再是一块玻璃：
   玻璃顶栏和下面的标题卡片之间会夹着一条清晰的剧照，亮的剧照看着像多出来的一栏）；往下滚、内容从它下面经过时变成磨砂玻璃 ── */
.top { position: sticky; top: 0; z-index: 40; }
.top::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; transition: opacity .3s var(--ease);
  background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); box-shadow: 0 10px 28px -18px rgba(0, 0, 0, .45); }
.js .top:not(.solid)::after { opacity: 0; }
.top.instant::after { transition: none; }   /* 刷新后恢复到原来位置等一下跳很远时：玻璃直接出现，不淡入（脚本加 .instant） */
/* 页面最顶上顶栏下面那层往下渐淡的底色：放在剧照上面、卡片下面（放在顶栏里会盖到卡片），拉长、分段渐淡，看不出边 */
.backdrop-box::after { content: ""; position: absolute; inset: 0 0 auto; height: calc(var(--top-h) + 110px); pointer-events: none;
  background: linear-gradient(180deg, var(--scrim) 0%, color-mix(in srgb, var(--scrim) 84%, transparent) 22%, color-mix(in srgb, var(--scrim) 55%, transparent) 48%,
    color-mix(in srgb, var(--scrim) 24%, transparent) 74%, color-mix(in srgb, var(--scrim) 6%, transparent) 92%, transparent 100%); }
/* 顶栏在 .stage 外面（这样才能一路吸顶），.stage 往上提一个顶栏高度，剧照照旧从页面最顶上铺起 */
.top + .stage { margin-top: calc(-1 * var(--top-h)); padding-top: calc(var(--top-h) + var(--first-gap)); }
.menu-btn, .menu, .menu-scrim { display: none; }   /* 手机、平板上的三条横线菜单（脚本生成），电脑上不用 */
/* 目录吸住时：顶栏的玻璃往下延伸盖住目录那一行，两行是同一块玻璃、一起模糊（各自一块玻璃时，模糊在交界处断开，看着像两层） */
body:has(.secnav.stuck) .top::after { bottom: -48px; }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 60px; }
.brand { display: flex; align-items: baseline; gap: 10px; color: var(--ink); flex: none; }
.brand:hover { text-decoration: none; }
.brand img { display: block; width: auto; }
.brand .logo { height: 28px; }   /* 顶栏标志 28 高（原来 22，用户嫌小） */
/* ── 本站标志：用哪张图、宽高比都只写在这里（用户 2026-11-18：改一处全站生效，网页里只有空的 <span class="logo"> / <a class="foot-logo">）。
   换图：同名覆盖 assets/brand/ 里的文件；样式和标志图浏览器只缓存 10 分钟（nginx），不用改网页、不用重新生成 ── */
.brand .logo { display: block; aspect-ratio: 401 / 84; background: url("brand/logo.png") left center / contain no-repeat; }
:lang(zh) .brand .logo { aspect-ratio: 175 / 84; background-image: url("brand/logo-zh.png"); }   /* 中文页：橙色「场记」 */
.brand span { font-size: 12px; color: var(--muted); }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--ink-2); padding-block: 4px; transition: color .2s; white-space: nowrap; }   /* 每项不折行（英文 961–1080 宽时原来每项折成两行） */
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a[aria-current] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
.search { margin-left: auto; display: flex; gap: 10px; align-items: center; min-width: 0; }
.search input { width: 210px; height: 36px; padding: 0 14px; border: 1px solid var(--glass-line); border-radius: 999px; background: var(--glass-strong); color: var(--ink); font: inherit; font-size: 14px; transition: width .3s var(--ease), background-color .2s; }
.search input:focus { width: 260px; background: var(--surface); }
@media (min-width: 961px) { .top > .wrap > .search input { flex: 0 1 auto; min-width: 120px; } }   /* 电脑上顶栏放不下时搜索框先变窄让位（最窄 120），导航不折行、语言切换不被挤出去 */
@media (min-width: 961px) and (max-width: 1100px) { html[lang="en"] .nav { gap: 16px; } html[lang="en"] .top .wrap { gap: 22px; } }   /* 英文导航长：加了「HD stills」后这段宽度再收紧一点间距 */
.search input::placeholder { color: var(--muted); }
.lang { display: flex; height: 36px; padding: 3px; border: 1px solid var(--glass-line); border-radius: 999px; background: var(--glass-strong); font-size: 13px; }
.lang a, .lang span { display: flex; align-items: center; padding: 0 12px; border-radius: 999px; color: var(--muted); }
.lang a:hover { color: var(--ink); text-decoration: none; }
.lang span { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }

/* ── 首屏 ── */
.hero-inner { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 0 36px; padding-block: 0 12px; align-items: start; }   /* 顶栏下面的距离由 --first-gap 统一管 */
@media (min-width: 681px) { .hero-inner:not(.home-hero) { align-items: center; } }   /* 电脑平板的详情页、演员页：左边海报跟右边卡片上下居中（用户要求；原来顶部对齐，卡片高时海报偏上）。首页首屏另有排法；手机上下叠放，都不动 */
.poster { width: 236px; aspect-ratio: 2 / 3; height: auto; border-radius: 14px; background: #1d2329; box-shadow: 0 34px 60px -24px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.14); animation: rise .8s var(--ease) both; }
.info { min-width: 0; padding: 22.5px 28px 19.5px; border-radius: 20px; animation: rise .8s .08s var(--ease) both; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.hero h1 { margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.2; font-weight: 800; letter-spacing: .01em; text-wrap: balance; }
.hero h1 .year { margin-left: 12px; font-size: .5em; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.aka { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.score, .status, .flag { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: 12px; font-size: 13px; white-space: nowrap; }
.score { background: var(--surface); color: var(--muted); box-shadow: 0 0 0 1px var(--line); }
.score b { font-size: 23px; font-weight: 800; color: var(--ink); }
.score em { margin-left: -6px; font-style: normal; font-size: 12px; color: var(--muted); }
.status { background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 600; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 22%, transparent); }
.flag { background: var(--free-soft); color: var(--free); font-size: 14px; font-weight: 600; }

/* 首屏卡片里的快速答案 */
.answer { margin-top: 20px; padding-top: 4px; border-top: 1px solid var(--line); }
.answer h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 12px 0 4px; font-size: 15px; }
.answer h2 small { font-size: 12px; font-weight: 400; color: var(--muted); }
.answer dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); font-size: 14px; }
.answer dt, .answer dd { padding: 9px 0; }
.answer dt + dd ~ dt, .answer dt + dd ~ dt + dd { border-top: 1px solid var(--line); }
.answer dt { padding-right: 18px; color: var(--muted); font-size: 13px; }
.answer dd { margin: 0; color: var(--ink); }
.answer dl > :nth-last-child(-n+2) { padding-bottom: 2px; }

/* ── 本页目录：平时是首屏下面一个毛玻璃小胶囊；往下滚吸到顶栏下面时（.stuck）变成一整行，和顶栏连成一块玻璃 ── */
.secnav { position: sticky; top: var(--top-v); z-index: 30; margin-top: 4px; pointer-events: none; }   /* 首屏底 → 目录 16（首屏下边距 12 + 4） */
.secnav.stuck { z-index: 41; }   /* 盖在顶栏延伸下来的玻璃上面 */
.secnav.stuck .secnav-box { background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  border-top-width: 0; padding-top: 0; padding-bottom: 11px; }   /* 吸住时目录项紧贴顶栏（中间那 12 是顶栏自己下面的），下面留 12；总高还是 48，正文不跳 */
.secnav.stuck a[aria-current="true"] { background: none; border-radius: 0; box-shadow: none; }
/* 吸住时当前项下面的横线单独画成一根直线：原来用贴内边的阴影画，切换的一瞬间旧项圆角先变回 11、阴影还没淡完，横线两头跟着弯成 U 形（用户指出） */
.secnav.stuck a { position: relative; }
.secnav.stuck a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); opacity: 0; transition: opacity .2s; pointer-events: none; }
.secnav.stuck a[aria-current="true"]::after { opacity: 1; }
/* 间距分层（用户 2026-11-15 选的乙）：块和块之间宽、标题贴近自己的内容。电脑平板 / 手机：
   首屏 → 目录 16 / 16；首屏或目录 → 第一个标题 40 / 32；标题 → 内容 20 / 16；段 → 段 60 / 48；
   最后内容 → 「本页数据更新于」40 / 32；它 → 页脚线 24 / 24；页脚线 → 页脚第一行 28 / 24（手机的值在文件末尾） */
.secnav + .body > .wrap { padding-top: 36px; }   /* 目录底 → 第一个标题的字 40（字上面还有约 4） */
.stage + .body > .wrap { padding-top: 24px; }    /* 首屏下边距 12 + 24 + 字上面约 4 = 40 */
.stage:not(:has(.hero-inner)) + .body > .wrap { padding-top: 0; }   /* 电影页、剧集页没有首屏：logo 底 → 「找电影」由 --first-gap 管 */
/* 正文压在首屏剧照和底色上面：剧照（700 高）和底色（980 高）会伸到正文区，.stage 是定位层，不加这句会画在正文的标题和文字上面，字发灰 */
.body { position: relative; z-index: 1; }
.secnav-box { pointer-events: auto; display: flex; gap: 2px; width: fit-content; max-width: 100%; padding: 5px; overflow-x: auto; scrollbar-width: none; border-radius: 16px;
  background: var(--glass-strong); border: 1px solid var(--glass-line); box-shadow: 0 0 0 1px var(--glass-edge), 0 14px 34px -20px rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%); }
.secnav-box::-webkit-scrollbar { display: none; }
.secnav a { flex: none; display: flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 11px; font-size: 14px; color: var(--muted); white-space: nowrap; transition: background-color .2s, color .2s, box-shadow .2s; }
.secnav a:hover { color: var(--ink); text-decoration: none; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.secnav a[aria-current="true"] { color: var(--ink); font-weight: 600; background: var(--surface); box-shadow: 0 1px 3px rgba(16, 24, 40, .14), 0 0 0 1px var(--line); }

/* ── 正文 ── */
.body .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; padding-block: 36px 20px; align-items: start; }   /* 下边 20：「更新于」的字底 → 页脚线 24 */
main { min-width: 0; display: grid; gap: 56px; container-type: inline-size; }
main > section { min-width: 0; scroll-margin-top: calc(var(--nav-h) + 12px); }
@supports (animation-timeline: view()) {
  main > section, aside .card { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 28%; }
}
section h2 { margin: 0; font-size: 22px; line-height: 1.35; font-weight: 700; text-wrap: balance; }
main > section > h2 { margin-bottom: 15px; }   /* 标题的字底 → 内容 20（字下面还有约 5） */
main > section > h2 + .sub { margin: -11px 0 20px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 20px; margin-bottom: 15px; }
.sub { margin: 4px 0 0; font-size: 13px; color: var(--muted); text-wrap: pretty; }
section p { margin: 0 0 12px; text-wrap: pretty; }
.prose > p:last-child { margin-bottom: -6px; }   /* 关于本站这类纯文字段：字下面行高里还有约 6 的空白，抵掉后段与段之间按笔画算还是 60（手机 48） */
.prose > p:has(+ .updated:last-child) { margin-bottom: -7px; }   /* 最后一段文字 → 「本页数据更新于」40（手机 32） */
.prose p, .editor p { max-width: 44em; }
/* 不可拆开的词组：日期、价格、数字加单位、平台名、片名、每个「又名」 */
.nw { white-space: nowrap; }
.prose p { color: var(--ink-2); }
.src { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.wt + .src { margin-top: 14px; }
.empty-note + .src { margin-top: 6px; }

/* ── 在哪看：按国家切换 ── */
.wt { overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.wt-tabs { display: flex; gap: 4px; padding: 6px; overflow-x: auto; scrollbar-width: none; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.wt-tabs::-webkit-scrollbar { display: none; }
.wt-tabs button { flex: none; display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; }
.wt-tabs button:hover { color: var(--ink); }
.wt-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(16,24,40,.08), 0 0 0 1px var(--line); }
.wt-tabs .cnt { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--line); color: var(--muted); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.wt-tabs button[aria-selected="true"] .cnt { background: var(--accent-soft); color: var(--accent); }
/* 8 个国家一行放不下（英文名长、带部数时电脑 1280 宽也放不下），滚动条又是隐藏的：电脑平板折成两行，全部看得见、不用滑；
   手机仍一行左右滑，脚本把选中的国家滚到中间（记住的国家是靠后的新西兰时原来被截在框外） */
@media (min-width: 681px) { .wt-tabs { flex-wrap: wrap; overflow-x: visible; } }
.wt-panel { padding: 8px 8px 0; }
.wt-panel:not([hidden]) { animation: rise .4s var(--ease) both; }
.wt-panel h3 { margin: 6px 12px 2px; font-size: 14px; color: var(--muted); font-weight: 600; }
.js .wt-panel h3 { display: none; }
.offers { list-style: none; margin: 0; padding: 0 0 10px; }
.offer { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; transition: background-color .2s; }
.offer + .offer { margin-top: 2px; }
@media (max-width: 359px) { .o-act { flex-wrap: wrap; row-gap: 8px; } }   /* 320 宽：英文长价格「From US$10.99/mo」+「Visit」一行放不下，按钮换到下一行，不撑出框 */
.offer:hover { background: var(--surface-2); }
.offer > img { width: 46px; height: 46px; border-radius: 11px; box-shadow: 0 0 0 1px var(--line); }
.o-main { min-width: 0; }
.o-name { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; }
.o-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 3px; font-size: 13px; color: var(--muted); }
.t { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.t-sub { background: var(--sub-soft); color: var(--sub); }
.t-free { background: var(--free-soft); color: var(--free); }
.t-rent { background: var(--rent-soft); color: var(--rent); }
.t-buy { background: var(--buy-soft); color: var(--buy); }
.ss { display: inline-flex; gap: 4px; }
.ss > span { padding: 0 6px; border-radius: 5px; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line); font-size: 12px; color: var(--ink-2); }
.ss > .unk { color: var(--muted); box-shadow: 0 0 0 1px var(--line) inset; background: none; }
/* 价格标签 + 官网按钮 */
.o-act { display: flex; align-items: center; gap: 10px; }
.price-tag { display: inline-flex; align-items: center; height: 34px; padding: 0 11px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.price-tag.free { color: var(--free); background: var(--free-soft); box-shadow: none; }
.price-tag.unk { font-weight: 400; color: var(--muted); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.go { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; height: 34px; padding: 0 16px; border-radius: 10px; font-size: 14px; font-weight: 600; white-space: nowrap; background: var(--accent-soft); color: var(--accent); transition: background-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s; }
.go:hover { text-decoration: none; background: var(--accent); color: var(--on-accent); transform: translateY(-1px); box-shadow: 0 8px 18px -10px var(--accent); }
.wt-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 0 -8px; padding: 13px 22px 15px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.empty-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.empty-note b { color: var(--ink-2); font-weight: 600; }
.price-note { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.price-note summary { cursor: pointer; width: fit-content; }
.price-note ul { margin: 8px 0 0; padding-left: 18px; }

/* 表格 */
.tablebox { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
tbody tr:last-child > * { border-bottom: 0; }
thead th { padding-block: 10px; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--surface-2); white-space: nowrap; }
tbody th { font-weight: 600; white-space: nowrap; color: var(--ink); }
tbody tr { transition: background-color .2s; }
tbody tr:hover > * { background: var(--surface-2); }
.dates { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(7.5em, max-content) auto; gap: 3px 8px; }
.dates li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; }   /* 说明一栏按这个国家最长的说明定宽（原来固定 7.5 字宽，「首映（Cinepocalypse）」被折成三行），日期仍然对齐 */
.dates span { color: var(--muted); }

/* 剧情段落里的宽幅剧照：滚动时图片在框里缓慢错位 */
.still { margin: 0 0 22px; }
.still-frame { position: relative; overflow: hidden; aspect-ratio: 21 / 9; border-radius: 18px; background: var(--surface-2); box-shadow: var(--shadow-lg); }
.still-frame img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; }
.still-frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); pointer-events: none; }
@keyframes parallax { from { transform: translateY(-7%); } to { transform: translateY(7%); } }
@supports (animation-timeline: view()) { .still-frame img { animation: parallax linear both; animation-timeline: view(); } }

/* 编辑点评（示例） */
/* 编辑点评：加粗实线框，颜色跟着每部片的主色走 */
.editor { padding: 18px 20px; border: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); border-radius: var(--r); background: color-mix(in srgb, var(--accent) 7%, var(--panel)); }
.editor p:last-child { margin-bottom: 0; }

/* 系列 */
.series { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; counter-reset: s; }
@container (min-width: 680px) { .series { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
.series li { counter-increment: s; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s; }
.series li:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.series li.here { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.series img { width: 56px; aspect-ratio: 2 / 3; height: auto; border-radius: 6px; background: var(--line); }
.series .n { min-width: 0; }
.series .n::before { content: "第 " counter(s) " 部"; display: block; font-size: 12px; color: var(--muted); }
.series li.here .n::before { content: "第 " counter(s) " 部 · 本片"; color: var(--accent); font-weight: 600; }
.series b { display: block; font-size: 15px; line-height: 1.4; }
.series small { font-size: 13px; color: var(--muted); }
/* 没有海报：画一个和海报一样大的框，写「暂无海报」（用户要求，原来是空白） */
.no-poster { display: flex; align-items: center; justify-content: center; aspect-ratio: 2 / 3; padding: 0 4px; border-radius: 6px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted); font-size: 11px; line-height: 1.3; text-align: center; }
.series .no-poster { width: 56px; }
.tl-year ul .no-poster { grid-row: 1 / 3; width: 46px; height: 69px; aspect-ratio: auto; padding: 0 2px; font-size: 10px; }
/* 系列片单页（build_lists.py）：国家面板里每部一行：海报、第几部、片名、这个国家怎么看；宽屏两列 */

/* 分季（剧集） */
.seasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.season { display: grid; grid-template-columns: 76px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 4px 18px; align-items: start; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); scroll-margin-top: calc(var(--nav-h) + 20px); }
.season > img { width: 76px; aspect-ratio: 2 / 3; height: auto; border-radius: 6px; background: var(--line); grid-row: span 2; }
.season h3, .season > p { grid-column: 2; }
.season h3 { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; font-size: 17px; }
.season h3 small { font-size: 13px; font-weight: 400; color: var(--muted); }
.season > p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.season > p.note { font-size: 12px; color: var(--muted); }
.season.upcoming { border: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: none; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--accent); }
.eps { grid-column: 1 / -1; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.eps summary { cursor: pointer; font-size: 14px; color: var(--accent); width: fit-content; }
.eps .tablebox { margin-top: 12px; max-height: 420px; overflow-y: auto; box-shadow: none; }
.eps table { font-size: 13px; }
.eps th, .eps td { padding: 8px 14px; }
.eps thead th { position: sticky; top: 0; z-index: 1; }
.eps td:first-child, .eps td:last-child { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }

/* 演员 */
.crew { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.crew b { color: var(--ink); font-weight: 600; }

/* 预告片 */
.videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.video { min-width: 0; }
.video .frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video .frame img, .video .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; transition: transform .5s var(--ease); }
.video:hover .frame img { transform: scale(1.04); }
.video button { position: absolute; inset: 0; width: 100%; border: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.45)); color: #fff; font: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.video button svg { width: 56px; height: 56px; transition: transform .25s var(--ease); }
.video button:hover svg { transform: scale(1.08); }
.video p { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }

/* 常见问题 */
.faq { border-top: 1px solid var(--line); }
.faq h3 { margin: 0; padding-top: 18px; font-size: 16px; line-height: 1.5; }
.faq p { margin: 6px 0 0; padding-bottom: 18px; border-bottom: 1px solid var(--line); max-width: none; color: var(--ink-2); }

/* 推荐 */
.recs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.recs li { min-width: 0; }
.recs a { color: var(--ink); }
.recs a:hover { text-decoration: none; }
.recs img { width: 100%; aspect-ratio: 2 / 3; height: auto; object-fit: cover; border-radius: var(--r-sm); background: var(--line); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.recs a:hover img { transform: translateY(-4px); box-shadow: var(--shadow-lg); }   /* 没有脚本、或减少动态效果时只浮起 */
/* 海报立体倾斜（用户选的）：鼠标在海报上时浮起放大、跟着鼠标倾斜（脚本在 enrich.py JS_TOP）；表面原来有一块白色反光跟着走，用户嫌太亮，去掉了；
   倾斜时评分角标、名次淡出（它们不跟着转，留着会错位）；片名变强调色；按下去缩一点（手机上点的时候也有） */
.recs a { display: block; }
.recs li.tilt img { transition: transform .12s linear, box-shadow .35s; box-shadow: 0 28px 46px -20px rgba(10, 14, 20, .6); }
.recs .rb, .recs.ranked li::before { transition: opacity .2s; }
.recs li.tilt .rb, .recs.ranked li.tilt::before { opacity: 0; }
.recs b { transition: color .2s; }
@media (hover: hover) { .recs li:hover b { color: var(--accent); } }
.recs a:active img { transform: scale(.97); transition-duration: .12s; }
.recs b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; font-size: 14px; font-weight: 500; line-height: 1.4; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }   /* 窄手机上英文片名里特别长的单词（Counterattack）比海报宽时断开（真实浏览器会加连字符），不超出 */
.recs small { font-size: 12px; color: var(--muted); }
/* 详情页、演员页的推荐片：按正文实际宽度排列数——961–1099 宽右栏把正文挤窄时一行 6 张只有 80px，片名被挤成竖条（汇总页 .body.hub .recs 优先级更高，不受影响） */
@container (max-width: 719px) { .recs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container (max-width: 479px) { .recs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ── 侧栏 ── */
aside { display: grid; gap: 16px; position: sticky; top: calc(var(--nav-h) + 20px); }
.card { padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card h2 { margin: 0 0 6px; font-size: 15px; }
.card dl { margin: 0; display: grid; grid-template-columns: 5.5em minmax(0, 1fr); font-size: 14px; }
.card dt, .card dd { padding: 8px 0; border-top: 1px solid var(--line); }
.card dt:first-of-type, .card dt:first-of-type + dd { border-top: 0; }
.card dt { color: var(--muted); }
.card dd { margin: 0; }
.card dd a.hp { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }   /* 官网域名一行写完，太长的末尾省略（不在词中间折行） */
.card .src { margin-top: 6px; }
.links { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.links li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.links li:first-child { border-top: 0; }
.links small { color: var(--muted); font-size: 12px; }
.updated { margin: 0; font-size: 13px; color: var(--muted); }
/* 页面底部（乙）：最后一块内容 → 「本页数据更新于」40 → 页脚上边线 24 → 页脚第一行 28（手机 32 / 24 / 24） */
main > section > .updated:last-child { margin-top: 35px; }   /* 生成时放在最后一段末尾；字上面还有约 5 */
aside > .updated, .seg-in > .updated { margin-top: -5px; }
/* 详情页「更新于」在右栏卡片下面：卡片之间隔 16，字上面还有约 5，往上提 5 看上去是 16 */
@media (min-width: 961px) { .body:not(.hub) > .wrap { padding-bottom: 40px; } }   /* 电脑上详情页正文最后是卡片的框边（不是文字），离页脚线 40 */

/* ── 页脚 ── */
footer { border-top: 1px solid var(--line); background: var(--panel); font-size: 13px; color: var(--muted); }
/* 页脚永远深色底（用户 2026-11-18：logo 用白色的英文 SCENEROVE，页脚要黑底）：浅色模式也用和手机深色顶栏同一套深色（底色同 .top，跟着每部片的深色走） */
footer { background: var(--bg-d, #0B0D10); color-scheme: dark;
  --surface: #14181D; --panel: rgba(18, 22, 27, .78); --ink: #E9ECF0; --ink-2: #C4CBD3; --muted: #98A2AD; --line: var(--line-d, #252B33);
  --accent: var(--accent-d, #4DBDB5); --on-accent: var(--on-accent-d, #06211F); --accent-soft: var(--accent-soft-d, #14302E); }
footer .wrap { display: grid; gap: 12px; padding-block: 30px 26px; }   /* 上下视觉居中（用户 2026-11-18）：页脚线 → 标志顶、最后一行字底 → 页脚底都约 32（中英文、手机电脑量过） */
.attrib { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.attrib img { width: auto; height: 12px; }
.attrib > a { display: flex; align-items: center; height: 22px; }   /* 和文字一行一样高：手机上文字折到第二行时，logo 也还在 22 高的一行里居中，离页脚上边线不变 */
footer p { margin: 0; max-width: 62em; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer nav a { color: var(--muted); }


/* ── 平板 ── */
@media (max-width: 960px) {
  .nav { gap: 16px; }
  .search input, .search input:focus { width: 150px; }
  .body .wrap { grid-template-columns: minmax(0, 1fr); }
  aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  aside .updated { grid-column: 1 / -1; }
  .recs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* ── 手机 ── */
@media (max-width: 680px) {
  .nav, .brand span { display: none; }
  .top .wrap { gap: 12px; min-height: 56px; }
  .search { flex: 1; justify-content: flex-end; }
  .search input, .search input:focus { width: 0; flex: 1; min-width: 0; padding: 0 10px; }
  .search { gap: 8px; min-width: 0; }
  .brand .logo { height: 19px; }
  .lang { padding: 2px; }
  .lang a, .lang span { padding: 0 8px; font-size: 12px; }
  .backdrop-box { height: 520px; }
  .still-frame { aspect-ratio: 16 / 9; border-radius: 14px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding-block: 0 4px; }
  .poster { width: 132px; margin: 0 auto -44px; position: relative; z-index: 1; }
  .info { padding: 56px 18px 9px; border-radius: 18px; }   /* 上面 56 是给压在卡片上的海报留的；海报下沿到第一行字顶 = 最后一行字底到卡片下沿（20 / 20） */
  .crumbs { text-align: center; }
  .crumbs ol { justify-content: center; }
  .hero h1 { text-align: center; }
  .hero h1 .year { display: block; margin: 2px 0 0; font-size: .5em; }
  .aka { text-align: center; }
  .facts { justify-content: center; gap: 4px 14px; font-size: 13px; }
  .badges { justify-content: center; }
  .answer dl { grid-template-columns: minmax(0, 1fr); }
  .answer dt { padding-bottom: 0; }
  .answer dd { padding-top: 2px; }
  .answer dt + dd ~ dt + dd { border-top: 0; }
  .secnav { margin-top: 12px; }
  .body .wrap { padding-block: 28px 20px; }
  .stage + .body > .wrap { padding-top: 24px; }   /* 首屏下边距 4 + 24 + 字上面约 4 = 32 */
  main { gap: 44px; }
  section h2 { font-size: 20px; }
  .offer { grid-template-columns: 40px minmax(0, 1fr); gap: 10px 12px; padding: 12px 10px; }
  .offer > img { width: 40px; height: 40px; border-radius: 10px; }
  .offer .o-act { grid-column: 2; }
  .offer .go { height: 32px; font-size: 13px; }
  .wt-foot { padding: 12px 18px 14px; }
  .price-tag, .offer .go { height: 32px; }
  aside { grid-template-columns: minmax(0, 1fr); }
  .videos { grid-template-columns: minmax(0, 1fr); }
  .season { grid-template-columns: 60px minmax(0, 1fr); padding: 14px; gap: 4px 14px; }
  .season > img { width: 60px; }
  .stack thead { display: none; }
  .stack tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .stack tbody tr:last-child { border-bottom: 0; }
  .stack th, .stack td { padding: 0; border: 0; }
  .stack tbody th { font-size: 15px; }
  .stack td { display: flex; gap: 10px; }
  .stack td::before { content: attr(data-label); flex: none; width: 4.5em; padding-top: 1px; font-size: 12px; color: var(--muted); }
  .stack td.nil { display: none; }
  tbody tr:hover > * { background: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ───────── 新增组件 ───────── */
.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; }

/* 片名 logo：浅色模式用深色字，深色模式用浅色字（<picture> 按系统深浅色切换） */
.hero h1.has-logo { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 14px; }
.title-logo img { display: block; height: auto; max-height: 92px; width: auto; max-width: min(100%, 360px); filter: drop-shadow(0 2px 10px rgba(0,0,0,.18)); }
.title-logo { max-width: min(100%, 360px); }   /* 很扁的横向 logo 被限宽到 360 时，外层 picture 也一起限宽，不然它按图片原始宽度 500 占位，年份被推到右边一大截（千与千寻英文页） */
.hero h1.has-logo .year { margin: 0 0 6px; }
/* 只有一种深浅的片名 logo（enrich.choose_logo）：太亮的在浅色模式（ink）、太暗的在深色模式（paper）明暗反过来、色相不变——白字变黑字，
   框里的字、彩色细节都还在（直接涂成纯黑/纯白会把《绝命毒师》方块里的字、《忘却之岛》的光效糊成一团） */
.title-logo.ink img { filter: invert(1) hue-rotate(180deg) drop-shadow(0 2px 10px rgba(0,0,0,.18)); }
@media (prefers-color-scheme: dark) {
  .title-logo.ink img { filter: drop-shadow(0 2px 10px rgba(0,0,0,.18)); }
  .title-logo.paper img { filter: invert(1) hue-rotate(180deg) drop-shadow(0 2px 10px rgba(0,0,0,.18)); }
}

/* 系列简介 */
.series-intro { margin: 0 0 16px; color: var(--ink-2); }

/* 更多演员 */
.more-cast { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.more-cast summary { cursor: pointer; width: fit-content; font-size: 14px; color: var(--accent); }
.more-cast .people { margin-top: 14px; }

/* 更多视频 */
.more-videos { margin-top: 22px; }
.more-videos h3 { margin: 0 0 12px; font-size: 16px; }
.vlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.vlist a { display: grid; gap: 8px; color: var(--ink); }
.vlist a:hover { text-decoration: none; }
.vlist .vt { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-sm); background: #000; box-shadow: var(--shadow); }
.vlist .vt img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.vlist a:hover .vt img { transform: scale(1.05); }
.vlist .vt i { position: absolute; left: 8px; top: 8px; padding: 1px 7px; border-radius: 6px; font-style: normal; font-size: 12px; font-weight: 600; color: #fff; background: rgba(0,0,0,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vlist b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; font-weight: 500; line-height: 1.45; }
.vlist small { font-size: 12px; color: var(--muted); }

/* 剧照与海报相册 */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.gallery.posters { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.gallery a { position: relative; display: block; overflow: hidden; border-radius: var(--r-sm); background: var(--surface-2); box-shadow: var(--shadow); }
.gallery img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s var(--ease); }
.gallery.posters img { aspect-ratio: 2 / 3; }
.gallery a:hover img { transform: scale(1.05); }
.gallery-sub { margin: 22px 0 10px; font-size: 16px; }
.more-gallery { margin-top: 12px; }
.more-gallery summary { cursor: pointer; width: fit-content; font-size: 14px; color: var(--accent); margin-bottom: 12px; }
.lightbox { max-width: min(1200px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 14px; background: #000; box-shadow: 0 40px 120px rgba(0,0,0,.6); }
.lightbox::backdrop { background: rgba(5, 7, 10, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox img { display: block; max-width: min(1200px, 94vw); max-height: 92vh; width: auto; height: auto; }
.lightbox button { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }

/* 标签 */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; color: var(--ink-2); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s, color .2s; }
.tags a:hover { text-decoration: none; color: var(--accent); background: var(--accent-soft); }
/* 还没有页面的标签、演员：写成不带 href 的 <a>（不算链接），悬停时不变色、不浮起，免得看着能点 */
a:not([href]) { cursor: default; }
.tags a:not([href]):hover { color: var(--ink-2); background: var(--surface-2); }

/* 分集：每集剧照 + 简介 */
.ep-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; max-height: 640px; overflow-y: auto; overscroll-behavior: contain; }
.ep-more { margin: 10px 0 0; font-size: 13px; color: var(--muted); }   /* 集数太多只列最近 60 集时，下面一行「其余各集见 TMDB」 */
.ep { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 14px; padding: 10px; border-radius: 12px; transition: background-color .2s; }
.ep:hover { background: var(--surface-2); }
.ep img, .ep .ep-ph { width: 168px; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.ep h4 { margin: 0; font-size: 15px; line-height: 1.45; }
.ep h4 .epn { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.ep .ep-meta { margin: 2px 0 4px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ep p { margin: 0; font-size: 14px; color: var(--ink-2); max-width: none; }

/* 演员页 / 标签页 */
.person-photo { border-radius: 14px; }
.kind { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 5px; font-size: 11px; font-weight: 600; color: var(--muted); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); vertical-align: 1px; }
.recs .rt { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); }
.tag-hero { grid-template-columns: minmax(0, 1fr); }
.tag-hero .info { max-width: 760px; padding-bottom: 21.5px; }
.tag-hero .lead { margin-bottom: 0; }   /* 列表类页面的标题卡片：上下空隙一样（量过 30.5 / 30.5，结尾是简介段落的也一样） */

@media (max-width: 680px) {
  .title-logo img { max-height: 76px; margin: 0 auto; }
  .hero h1.has-logo { justify-content: center; }
  .hero h1.has-logo .year { flex-basis: 100%; text-align: center; margin: 0; }
  .vlist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gallery.posters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ep { grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding: 8px 4px; }
  .ep img, .ep .ep-ph { width: 112px; }
  .ep h4 { font-size: 14px; }
  .ep p { font-size: 13px; }
}
.lead { margin: 14px 0 4px; font-size: 15px; color: var(--ink-2); max-width: 40em; }
.known { margin: 4px 0 2px; font-size: 14px; }   /* 演员页卡片最后一行：下面少留 8，和上面空隙一样 */
.known a { font-weight: 600; }
.ep h4 .epn { display: block; margin: 0 0 1px; font-size: 12px; }
/* 首屏「看预告」按钮和播放弹窗 */
.play-cta { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px 0 14px; border-radius: 12px; font-size: 14px; font-weight: 700; background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px -12px var(--accent); transition: transform .2s var(--ease), box-shadow .2s; }
.play-cta svg { width: 16px; height: 16px; fill: currentColor; }
.play-cta:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 14px 30px -12px var(--accent); }
.vbox .vframe { width: min(1100px, 92vw); aspect-ratio: 16 / 9; }
.vbox iframe { display: block; width: 100%; height: 100%; border: 0; }

/* 演员：每人一张卡片——头像 + 名字 + 角色，整张卡可以点进演员页 */
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.people li { min-width: 0; }
.people a { display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: 12px; height: 100%; padding: 10px 12px; border-radius: 14px; color: inherit; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, transform .2s var(--ease); }
.people a:hover { text-decoration: none; transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--accent), var(--shadow); }
.people img, .people .ph { grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: center 20%; background: var(--surface-2); }
.people .ph { display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--muted); }
.people b { align-self: end; font-size: 15px; font-weight: 600; line-height: 1.35; }
.people a > span:not(.ph) { align-self: start; font-size: 13px; line-height: 1.45; color: var(--muted); }
.people a:hover b { color: var(--accent); }
.people a:not([href]):hover { transform: none; box-shadow: inset 0 0 0 1px var(--line); }
.people a:not([href]):hover b { color: inherit; }
.people.compact { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.people.compact a { grid-template-columns: 40px minmax(0, 1fr); padding: 8px 10px; background: transparent; box-shadow: none; }
.people.compact a:hover { background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.people.compact img, .people.compact .ph { width: 40px; height: 40px; }
.people.compact b { font-size: 14px; }
.people.compact a > span:not(.ph) { font-size: 12px; }
@media (max-width: 680px) {
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .people a { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; justify-items: center; text-align: center; row-gap: 2px; padding: 14px 8px 12px; }
  .people img, .people .ph { grid-row: auto; width: 60px; height: 60px; margin-bottom: 6px; }
  .people b, .people a > span:not(.ph) { align-self: auto; }
  .people.compact a { grid-template-columns: 36px minmax(0, 1fr); grid-template-rows: auto auto; justify-items: start; text-align: left; padding: 8px; }
  .people.compact img, .people.compact .ph { grid-row: span 2; width: 36px; height: 36px; margin: 0; }
  .people.compact b, .people.compact a > span:not(.ph) { align-self: auto; }
}
.people.compact a > span:not(.ph) { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
/* 手机上长列表先显示一部分，「展开全部」看其余（内容都在网页里） */
.fold-btn { display: none; }
@media (max-width: 680px) {
  .js .fold-btn { display: block; width: 100%; height: 42px; line-height: 42px; text-align: center; margin: 12px 0 0; border: 0; border-radius: 12px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); color: var(--accent); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
  .js .wt-panel .fold-btn { width: calc(100% - 8px); margin: 0 4px 12px; }
  .js [data-fold="3"]:not(.open) > :nth-child(n+4),
  .js [data-fold="5"]:not(.open) > :nth-child(n+6),
  .js [data-fold="6"]:not(.open) > :nth-child(n+7),
  .js [data-fold="10"]:not(.open) > :nth-child(n+11) { display: none; }
}

/* 英文页：系列序号用英文，字体先用系统英文字体 */
html:lang(en) { --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif; }
html:lang(en) .series .n::before { content: "Part " counter(s); }
html:lang(en) .series li.here .n::before { content: "Part " counter(s) " · This film"; }

/* 英文页：中文原版的片标题放中文 logo，下面一行写英文名和年份 */
.hero h1.logo-plus { flex-direction: column; align-items: flex-start; gap: 8px; }
.hero h1.logo-plus .t-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; font-size: .6em; font-weight: 700; line-height: 1.25; }
.hero h1.logo-plus .t-line .year { margin: 0; font-size: .75em; white-space: nowrap; }

/* 演员页作品时间线：电脑上左边一列年份、手机上吸在顶部的一排年份，点了跳到那一年，滚动时跟着高亮 */
.tl { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 14px; }
.tl-years { position: sticky; top: calc(var(--nav-h) + 20px); z-index: 2; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - var(--nav-h) - 40px); overflow: auto; scrollbar-width: none;
  padding: 5px; border-radius: 14px; background: var(--glass-strong); border: 1px solid var(--glass-line); box-shadow: 0 0 0 1px var(--glass-edge), 0 14px 34px -20px rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%); }
.tl-years::-webkit-scrollbar { display: none; }
.tl-years a { flex: none; display: flex; align-items: center; justify-content: center; height: 30px; padding: 0 8px; border-radius: 9px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; transition: background-color .2s, color .2s, box-shadow .2s; }
.tl-years a:hover { color: var(--ink); text-decoration: none; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.tl-years a[aria-current="true"] { color: var(--ink); font-weight: 700; background: var(--surface); box-shadow: 0 1px 3px rgba(16, 24, 40, .14), 0 0 0 1px var(--line); }
.tl-list { position: relative; list-style: none; margin: 0; padding: 0 0 0 24px; min-width: 0; }
.tl-list::before { content: ""; position: absolute; left: 5px; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.tl-year { scroll-margin-top: calc(var(--nav-h) + 20px); }
.tl-year + .tl-year { margin-top: 24px; }
.tl-year h3 { position: relative; display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; font-size: 20px; font-weight: 800; line-height: 1.3; }
.tl-year h3::before { content: ""; position: absolute; left: -24px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.tl-year h3 small { font-size: 13px; font-weight: 500; color: var(--muted); }
.tl-year ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tl-year ul a { display: grid; grid-template-columns: 46px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 3px 12px; align-items: start; height: 100%; padding: 8px; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow); transition: border-color .2s, transform .25s var(--ease); }
.tl-year ul a:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); transform: translateY(-2px); }
.tl-year ul img, .tl-year ul .ph { grid-row: 1 / 3; width: 46px; height: 69px; object-fit: cover; border-radius: 6px; background: var(--surface-2); }
.tl-year ul .ph { display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--muted); }
.tl-year ul b { min-width: 0; padding-top: 2px; font-size: 14px; font-weight: 600; line-height: 1.4; }
.tl-year ul small { min-width: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.tl-year ul small .kind { margin: 0 6px 0 0; }
@media (max-width: 960px) {
  .tl { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tl-years { top: calc(var(--nav-h) + 6px); z-index: 29; flex-direction: row; width: fit-content; max-width: 100%; max-height: none; border-radius: 14px; }
  .tl-year { scroll-margin-top: calc(var(--nav-h) + 62px); }
}
@media (max-width: 680px) {
  .hero h1.logo-plus { align-items: center; }
  .hero h1.logo-plus .t-line { justify-content: center; }
  .hero h1.logo-plus .t-line .year { flex-basis: auto; }
  .tl-year ul { grid-template-columns: minmax(0, 1fr); }
  .tl-year h3 { font-size: 18px; }
  .tl-year h3::before { top: 7px; }
}
/* 片单（系列观看顺序 #order、奖项获奖名单 #winners）的时间线：每年基本只有 1 部，一年一行右半边空着、奥斯卡那页拉得很长，
   电脑平板上两年并排（从左到右、再下一行）；不画竖线（两列各一条竖线看着像一列一列往下读），只留年份前的圆点；手机仍是一列带竖线 */
@media (min-width: 761px) {
  :is(#order, #winners) .tl-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; padding-left: 0; }
  :is(#order, #winners) .tl-list::before { display: none; }
  :is(#order, #winners) .tl-year { padding-left: 24px; }
  :is(#order, #winners) .tl-year + .tl-year { margin-top: 0; }
  :is(#order, #winners) .tl-year ul { grid-template-columns: minmax(0, 1fr); }
}

/* 单行小块（按钮、标签、胶囊、输入框）用整数行高，文字才在框里上下居中：
   Chrome 把行距上下平分时上面那一半向下取整，正文 1.7 倍行高在这些小块里算出来是小数，文字会偏上约 1px。
   按苹方（中文页）和苹果系统字体（英文页）实测，字号 × 1.43 取整（14→20、13→19、12→17、11→16）两种字体都落在正中，误差不到 0.5px。 */
.search input, .lang a, .lang span, .score, .score b, .score em, .score span, .status, .flag, .secnav a, .wt-tabs button, .wt-tabs .cnt,
.t, .ss > span, .price-tag, .go, .tag, .tags a, .kind, .play-cta, .tl-years a {
  line-height: 1.43; line-height: round(1.43em, 1px);
}
.js .fold-btn { line-height: 42px; }

/* 搜索框：没在输入时提示字放在胶囊正中，点进去输入时回到左边；
   搜索框右边默认给清除按钮（×）留了位置，空着的时候藏起来，提示字才真正居中 */
.search input:placeholder-shown:not(:focus) { text-align: center; }
.search input:placeholder-shown::-webkit-search-cancel-button { display: none; }

/* 时间线选中的年份：白底黑字，深色模式下也一样，更醒目 */
.tl-years a[aria-current="true"], .tl-years a[aria-current="true"]:hover { color: #12161C; background: #FFFFFF; font-weight: 700; box-shadow: 0 1px 3px rgba(16, 24, 40, .2), 0 0 0 1px rgba(16, 24, 40, .1); }

/* 回到顶部：往下滚过大半屏后出现在右下角 */
.to-top { position: fixed; right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--glass-line); border-radius: 50%; background: var(--glass-strong); color: var(--ink); cursor: pointer;
  box-shadow: 0 0 0 1px var(--glass-edge), 0 14px 34px -16px rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .3s var(--ease), visibility .25s, background-color .2s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--surface); }
.to-top svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 961px) { .to-top { right: 28px; bottom: 28px; width: 48px; height: 48px; } }

/* 右栏分段：右栏和正文一样高、平均分成几段，每张卡片只在自己那段里吸顶，
   滚到页面上部看「基本信息」，中部换成「其他网站」，底部换成「标签」，不再一直停在第一张 */
.seg-in { display: grid; gap: 16px; }
@media (min-width: 961px) {
  aside { position: static; align-self: stretch; display: flex; flex-direction: column; gap: 16px; }
  .seg { flex: 1 1 0; }
  .seg-in { position: sticky; top: calc(var(--nav-h) + 20px); }
}

/* 剩下几处上下居中的微调（4 倍放大实测）：
   「展开全部」去掉浏览器给按钮的默认上下内边距；手机上语言切换 12px 字配 30px 高，行高用 18px 才能上下平分；
   时间线年份 13px 字配 19px 行高，框高 29 才能上下平分；英文搜索框的系统字体本身偏低约 0.9px，底部留 1.75px 抵消 */
.js .fold-btn { padding: 0; }
.tl-years a { height: 29px; }
html:lang(en) .search input { padding-bottom: 1.75px; }
@media (max-width: 680px) { .lang a, .lang span { line-height: 18px; } }

/* 评分：「8.2」和「/10」放在同一行、共用基线（以前各自居中，「/10」像飘在半空） */
.score .sc { white-space: nowrap; }
.score .sc em { margin-left: 3px; }
/* 时间线圆点和年份数字对齐 */
.tl-year h3::before { top: 7px; }
@media (max-width: 680px) { .tl-year h3::before { top: 6px; } }
/* 在哪看：平台名字和标签这一块的笔画整体偏上约 1px，往下挪一点和平台图标对齐 */
:lang(zh-Hans) .o-main { padding-top: 2px; }
/* 评分大数字：23px 字配 32px 行高，数字笔画落在正中（4 倍实测中文 +0.1px、英文 -0.5px） */
.score b { line-height: 32px; }
@media (max-width: 680px) { :lang(zh-Hans) .tl-year h3::before { top: 5px; } }
/* 中文「会员 / 租 / 买」小标签：行高 18px 笔画才在正中（英文页保持 17px） */
:lang(zh-Hans) .t { line-height: 18px; }

/* ───── 汇总页（首页、电影、剧集、在哪看、本周新上线、片单）───── */
.body.hub .wrap { grid-template-columns: minmax(0, 1fr); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.sec-head h2 { margin: 0; }
.sec-head .more { flex: none; font-size: 14px; font-weight: 600; color: var(--accent); }
.body.hub .recs { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px 16px; }
/* 首页首屏：本周热门第一名 */
.eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--accent); }
.feat-title { margin: 0; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.2; font-weight: 800; text-wrap: balance; }
.feat-title a { color: var(--ink); }
.feat-title a:hover { text-decoration: none; color: var(--accent); }
.feat-title .year { margin-left: 12px; font-size: .5em; font-weight: 500; color: var(--muted); }
.play-cta.plain { padding: 0 20px; }
/* 平台卡片 */
.plats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.plats a { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; min-height: 64px; padding: 12px; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow); transition: border-color .2s, transform .25s var(--ease); }
.plats a:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); transform: translateY(-2px); }
.plats img { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.plats .pl-name { min-width: 0; font-size: 14px; font-weight: 600; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plats .pl-price { font-size: 12px; line-height: 17px; color: var(--muted); }
.plats a:not(:has(.pl-price)) .pl-name { grid-row: 1 / 3; }
.wt-panel .plats, .wt-panel .recs { padding: 8px 8px 16px; }
.js .wt-panel h3.sub-h { display: block; margin: 14px 8px 4px; font-size: 15px; color: var(--ink); }
/* 平台页首屏 */
.plat-title { display: flex; align-items: center; gap: 16px; }
.plat-title img { flex: none; width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
.plat-title h1 .year { margin-left: 12px; }
.tag-hero .o-act { justify-content: flex-start; margin: 16px 0 8px; }   /* 平台页卡片结尾是按钮，比文字少了行距的留白，补 8 */
/* 片单：排名数字、片单卡片 */
.recs.ranked { counter-reset: rk; }
.recs.ranked li { position: relative; counter-increment: rk; }
.recs.ranked li::before { content: counter(rk); position: absolute; top: 6px; left: 6px; z-index: 1; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 8px;
  background: rgba(10, 12, 16, .78); color: #fff; font-size: 13px; font-weight: 700; line-height: 26px; text-align: center; font-variant-numeric: tabular-nums; }
.lcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.lcards a { display: block; padding: 16px; text-align: center; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); transition: border-color .2s, transform .25s var(--ease); }
.lcards a:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); transform: translateY(-2px); }
.lc-posters { display: flex; justify-content: center; margin-bottom: 12px; }   /* 三张海报叠在一起不占满卡片宽，居中放（原来靠左，手机上右边空一大块）；下面的名字和小字也居中 */
.lc-posters img { width: 30%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5); }
.lc-posters img + img { margin-left: -8%; }
.lcards b { display: block; font-size: 16px; line-height: 1.4; }
.lcards small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
@media (max-width: 680px) {
  .body.hub .recs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
  .plats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plat-title { justify-content: flex-start; }
  .tag-hero .o-act { justify-content: flex-start; }
}
@media (max-width: 480px) { .plats { grid-template-columns: minmax(0, 1fr); } }
/* 在哪看总页：平台卡片三行（名字、月费或看法、电影剧集部数）；生成了平台页的才是链接，其余卡片样子一样但不能点 */
#services .plats li > div { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 12px; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow); }
#services .plats li > :is(a, div) { grid-template-rows: auto auto auto; row-gap: 1px; min-height: 76px; }
#services .plats img { grid-row: 1 / 4; }
#services .plats .pl-n { font-size: 12px; line-height: 17px; color: var(--muted); font-variant-numeric: tabular-nums; }
#services .plats .pl-name, #services .plats .pl-name .nw { white-space: normal; overflow: visible; }   /* 长名字（Fandango at Home）在空格处折行，不截成「…」 */
#services .plats { grid-template-columns: repeat(4, minmax(0, 1fr)); }   /* 一行 4 个，卡片里部数那一行放得下 */
@media (max-width: 1099px) { #services .plats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* 列表类页面（在哪看、本周新上线、片单、平台页）的标题卡片：手机上也靠左，和电影页、剧集页一致（详情页首屏手机上仍居中） */
@media (max-width: 680px) {
  .tag-hero .info, .tag-hero h1, .tag-hero .crumbs, .tag-hero .aka { text-align: left; }
  .tag-hero .info { padding: 14px 18px 13px; }   /* 手机上没有海报压在上面，不用留 56；上下空隙一样（22 / 22，用户指出原来上 64 下 15） */
  .tag-hero .crumbs ol, .tag-hero .facts, .tag-hero .badges { justify-content: flex-start; }
  /* 手机上平台卡片一行两张（用户要求）：左边图标，右边名字、月费、电影部数、剧集部数各一行（部数拆成两行，右边一列窄也放得下），图标和文字上下居中。
     量过：最宽的「Paramount+」82、「US$10.99/月起」83，图标 32、面板左右边距收到 4，360 宽右边一列还有 85 放得下；英文长价格、「20,000+ movies」在空格处折行 */
  #services .wt-panel .plats { padding-inline: 4px; }
  #services .plats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #services .plats li > :is(a, div) { grid-template-columns: 32px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 8px; padding: 10px 8px; height: 100%; }   /* 同一行两张一样高 */
  #services .plats img { width: 32px; height: 32px; border-radius: 8px; }
  #services .plats .pl-n .sep { display: none; }
  #services .plats .pl-n .nw { display: block; }
  #services .plats :is(.pl-price, .pl-n) .nw { white-space: normal; }
}
@media (max-width: 359px) {   /* 最窄的手机（320、340）：图标和文字并排放不下 Paramount+，图标放到上面，文字占满卡片宽 */
  #services .plats li > :is(a, div) { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; align-content: start; }
  #services .plats img { grid-row: auto; margin-bottom: 6px; }
  #services .plats .pl-name { font-size: 13px; }
}
/* 汇总页卡片：评分角标放在海报右上角 */
.body.hub .recs li { position: relative; }
.recs .rb { position: absolute; top: 6px; right: 6px; z-index: 1; height: 22px; padding: 0 6px; border-radius: 7px; background: rgba(10, 12, 16, .74); color: #fff;
  font-size: 12px; font-weight: 700; line-height: 22px; font-variant-numeric: tabular-nums; pointer-events: none; }

/* ───── 首页 ───── */
/* 首屏：左边海报，玻璃卡片里左边是选中的片子、右边是本周热门榜；点榜单换片子（几部片叠在同一格，切换时高度不跳） */
.home-hero { align-items: stretch; }
.home-hero .hh-posters { display: grid; align-self: start; }
.home-hero .hh-posters > a { grid-area: 1 / 1; visibility: hidden; }
.home-hero .hh-posters > a.on { visibility: visible; }
.hh-card { display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 0 28px; padding-block: 22.5px 29.5px; }   /* 上下合计不变；卡片上沿到眉题字顶 = 最后一行到卡片下沿（量过） */
.hh-main { display: grid; min-width: 0; }
.hh-panel { grid-area: 1 / 1; min-width: 0; visibility: hidden; display: flex; flex-direction: column; }
.hh-panel.on { visibility: visible; }
.hh-head { display: flex; flex-direction: column; }
.hh-panel .facts { margin-top: 12px; }
.feat-ov { margin: 14px 0 0; max-width: 36em; font-size: 15px; line-height: 1.75; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
/* 简介下面「美国在哪看」一行 + 按钮，一起压在卡片底部（平台图标 + 名字 + 详情页同款看法标签；没有平台时写上映日期） */
.hh-act { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: auto; padding-top: 18px; }
.hh-act .badges { margin: 0; }
.hh-where { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; font-size: 14px; line-height: 22px; }
.hh-where .hw-cc { font-size: 13px; color: var(--muted); }
.hw-logos { display: flex; gap: 4px; }
.hw-logos img { width: 24px; height: 24px; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); }
.hh-where .hw-n { font-weight: 600; color: var(--ink); }
.hw-short { display: none; }
/* 片名长的，电脑上简介也只留 3 行，免得加了「在哪看」这行后把卡片撑得比海报高 */
@media (min-width: 1100px) { .hh-panel.long .feat-ov { -webkit-line-clamp: 3; } }
/* 片名长的（超过大约 9 个字宽）字号小一号，免得折成三行把卡片撑高 */
.hh-panel.long .feat-title { font-size: clamp(24px, 2.6vw, 32px); }
.hh-side { min-width: 0; padding-left: 24px; border-left: 1px solid var(--line); }
.hh-rail-h { margin: 0 0 8px 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.hh-rail { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.hh-rail a { display: grid; grid-template-columns: 20px 32px minmax(0, 1fr); align-items: center; gap: 12px; padding: 6px 8px; border-radius: 10px; color: var(--ink); transition: transform .5s var(--ease), background-color .2s, box-shadow .3s; transform-origin: 0 50%; }
.hh-rail a:hover { text-decoration: none; background: color-mix(in srgb, var(--ink) 6%, transparent); }
/* 轮到的那一项放大一点、缩略图也放大，换下一部时旧的平滑缩回（用户要求） */
.hh-rail a[aria-current="true"] { z-index: 1; transform: scale(1.045); background: var(--surface); box-shadow: 0 12px 28px -14px rgba(16, 24, 40, .5), 0 0 0 1px var(--line); }
.hh-rail a[aria-current="true"] img { transform: scale(1.1); }
.hh-rail .hr-n { font-size: 16px; font-weight: 800; line-height: 20px; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.hh-rail a[aria-current="true"] .hr-n { color: var(--accent); }
.hh-rail img { width: 32px; height: 48px; border-radius: 6px; object-fit: cover; background: var(--surface-2); transition: transform .5s var(--ease); }
.hh-rail .hr-t { min-width: 0; }
.hh-rail b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; text-wrap: balance; font-size: 14px; font-weight: 600; line-height: 20px; }
.hh-rail small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 17px; color: var(--muted); }
/* 按平台找：一行 6 个，12 个正好两行 */
:is(#platforms, #others) .plats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
/* 961–1099 宽一行 6 个放不下平台名，改成 4 个、排 3 行 */
@media (min-width: 961px) and (max-width: 1099px) { :is(#platforms, #others) .plats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* 热门题材：带剧照的卡片，一行 4 张 */
.gtiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gtiles a { position: relative; isolation: isolate; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-sm); color: #fff; box-shadow: var(--shadow); }
.gtiles a:hover { text-decoration: none; }
.gtiles img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gtiles a:hover img { transform: scale(1.05); }
.gtiles a::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8, 10, 14, .78) 0, rgba(8, 10, 14, .56) 60px, rgba(8, 10, 14, .1) 100%); }   /* 底下 60px（两行字的高度）够暗，再往上淡掉：原来按格子高度 65% 淡掉，手机上格子只有 99 高、字占下半，「4K 剧照 N 张」只有 1.7 的对比度（2026-11-17 用户「也修一下」；剧照换纯白量过，最低 5.0） */
/* 小字和名字从底部往上排：名字太长折成两行时，小字跟着往上挪，不会压在一起；右边也留边距 */
.gtiles a { display: flex; flex-direction: column; justify-content: flex-end; padding: 0 16px 14px; }
.gtiles .gt-k { margin-bottom: 1px; font-size: 12px; line-height: 17px; color: #fff; }
.gtiles b { font-size: 18px; font-weight: 700; line-height: 25px; text-shadow: 0 1px 10px rgba(0, 0, 0, .45); }
/* 首屏（电脑，1100 以上）：海报 262 宽、393 高，正好和右边玻璃卡片（榜单五行）一样高 */
@media (min-width: 1100px) {
  .home-hero { grid-template-columns: 262px minmax(0, 1fr); }
  .home-hero .poster { width: 262px; }
  /* 榜单五行撑满卡片高度：最后一行的底边和左边「在哪看」按钮的底边齐平 */
  .hh-side { display: flex; flex-direction: column; }
  .hh-rail { flex: 1; align-content: space-between; }
}
/* 兜底：万一卡片比海报高（英文长片名、窄平板），海报跟着拉到一样高，多出来的只裁掉一点边 */
@media (min-width: 681px) {
  .home-hero .hh-posters { align-self: stretch; }
  .home-hero .hh-posters .poster { height: 100%; object-fit: cover; }
}
@media (max-width: 1099px) {
  .hh-card { grid-template-columns: minmax(0, 1fr); }
  .hh-side { padding: 18px 0 0; margin-top: 20px; border-left: 0; border-top: 1px solid var(--line); }
  .hh-rail { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .hh-rail::-webkit-scrollbar { display: none; }
  .hh-rail li { flex: none; }
  .hh-rail a { grid-template-columns: 16px 28px auto; gap: 10px; padding: 6px 12px 6px 8px; }
  .hh-rail img { width: 28px; height: 42px; }
  .hh-rail b { max-width: 12em; }
  .hh-rail small { display: none; }
  .hh-rail { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); padding-right: 20px; }
  .hh-rail.moved { -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
  /* 横条可以左右滑，会把选中那一项的阴影切掉：四周留一点内边距，再用负外边距抵掉，位置不变 */
  .hh-rail { padding-block: 4px; padding-left: 4px; margin-block: -4px; margin-left: -4px; }
  .hh-rail a { transform-origin: 50% 50%; }   /* 横排时从中间放大，左右各多出一点，不贴着边被切 */
}
/* 首屏（平板，681–1099）：榜单从卡片里拿出来，在海报和卡片下面单独一条玻璃横条；上面一行卡片拉伸到和海报一样高 */
@media (min-width: 681px) and (max-width: 1099px) {
  .home-hero { row-gap: 16px; }
  .hh-card { display: contents; }
  .hh-card::before { display: none; }
  .hh-main, .hh-side { position: relative; isolation: isolate; min-width: 0; border-radius: 20px; background: var(--glass-strong); border: 1px solid var(--glass-line);
    box-shadow: 0 0 0 1px var(--glass-edge), var(--shadow-lg); -webkit-backdrop-filter: blur(26px) saturate(170%); backdrop-filter: blur(26px) saturate(170%); animation: rise .8s .08s var(--ease) both; }
  .hh-main::before, .hh-side::before { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; pointer-events: none; opacity: var(--sheen);
    background: linear-gradient(150deg, rgba(255,255,255,.7) 0%, rgba(255,255,255,0) 38%); }
  .hh-main { padding: 20.5px 28px 27.5px; }   /* 平板：上下空隙一样（量过） */
  .hh-side { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; margin: 0; padding: 10px 10px 10px 22px; }
  .hh-rail-h { flex: none; margin: 0; }
  .hh-rail { flex: 1; min-width: 0; }
  .hh-panel.long .feat-ov { -webkit-line-clamp: 3; }
  /* 平板上按钮在左、「在哪看」在右，同一行省高度；放不下时自动退回上下两行（「在哪看」在上） */
  .hh-act { flex-direction: row-reverse; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 12px 8px; }
  .hh-where { gap: 5px; }
  .hw-logos img { width: 22px; height: 22px; border-radius: 5px; }
}
/* 平板和手机上多个平台只写「3 个平台」（图标已经能认出是哪几家），一行放得下；电脑上写全平台名 */
@media (max-width: 1099px) {
  .hw-full { display: none; }
  .hw-short { display: inline; }
}
@media (max-width: 960px) {
  :is(#platforms, #others) .plats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 顶栏（平板、手机）：一行 56 高，左边 logo、右边三条横线；点开的菜单（搜索、导航、简繁英）在顶栏这块玻璃里往下展开（用户要求重新设计）。
     顶栏固定在屏幕顶上、不占文档位置，.stage 留出顶栏的高度 */
  :root { --top-h: 56px; --top-v: 56px; --first-gap: 10px; }   /* logo 底在 42，第一块卡片放 66，间距 24 */
  .top { position: fixed; top: 0; left: 0; right: 0; }
  .top + .stage { margin-top: 0; padding-top: calc(var(--top-h) + var(--first-gap)); }
  .top .wrap { min-height: 56px; gap: 12px; }
  .brand .logo { height: 28px; }
  .js .top > .wrap > .nav, .js .top > .wrap > .search { display: none; }   /* 只藏顶栏那一行里的，菜单里那份要显示 */
  .js .menu-btn { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; margin: 0 -10px 0 auto; padding: 0;
    border: 0; background: none; color: var(--ink); cursor: pointer; }
  .menu-btn i { display: block; width: 22px; height: 2px; border-radius: 1px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; }
  .top.menu-on .menu-btn i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .top.menu-on .menu-btn i:nth-child(2) { opacity: 0; }
  .top.menu-on .menu-btn i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .top.menu-on .menu { display: block; max-height: calc(100dvh - var(--top-h)); overflow-y: auto; overscroll-behavior: contain; }
  .menu .wrap { display: block; min-height: 0; padding-top: 4px; padding-bottom: 20px; }
  .menu .search { display: flex; margin: 0 0 6px; }
  .menu .search input, .menu .search input:focus { flex: 1; width: auto; min-width: 0; height: 44px; padding: 0 16px; font-size: 16px; text-align: left; }
  .menu-nav { display: flex; flex-direction: column; }
  .menu-nav a { display: flex; align-items: center; height: 52px; font-size: 17px; line-height: 24px; color: var(--ink); border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
  .menu-nav a:hover { text-decoration: none; color: var(--accent); }
  .menu-nav a[aria-current] { color: var(--accent); font-weight: 600; }
  .menu-lang { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; }
  .menu-lang .ml { font-size: 14px; line-height: 20px; color: var(--muted); }
  /* 菜单开着：顶栏这块玻璃更实一点、盖住菜单（不往下接目录那一行），下面的页面压暗、不能滚 */
  .js .top.menu-on::after { opacity: 1; bottom: 0; background: var(--glass-strong); }
  html.menu-open .menu-scrim { display: block; position: fixed; inset: 0; z-index: 39; background: rgba(0, 0, 0, .38); }
  html.menu-open { overflow: hidden; }
  /* 吸住的目录、已选条件条：上、中、下三段和 logo 上下一样都是 17（顶栏 56、logo 22）；目录总高还是 48，吸住时正文不跳 */
  .secnav.stuck a { height: 31px; }
  .secnav.stuck .secnav-box { padding-bottom: 16px; }
  html .fdock, html .fdock .wrap { height: 47px; }   /* 加 html 提高优先级：通用的 42 写在文件后面 */
  html body:has(.fdock.on) .top::after { bottom: -47px; }
}
@media (max-width: 680px) {
  .hh-panel .eyebrow { margin-bottom: 4px; font-size: 12px; }
  .home-hero .feat-title { font-size: 24px; }
  .home-hero .feat-title .year { margin-left: 8px; }
  /* 类型和评分连成一行写、用「·」隔开（右边一列窄，一项一行会把这一列挤得很高）；片种、评分、每个类型名都不从中间拆开 */
  .hh-panel .facts { display: block; margin-top: 6px; font-size: 13px; line-height: 20px; }
  .hh-panel .facts li { display: inline; white-space: nowrap; }
  .hh-panel .facts li.g { white-space: normal; }
  .hh-panel .facts .gn { white-space: nowrap; }
  .hh-panel .facts li + li::before { content: " ·\00a0"; color: var(--muted); }
  .home-hero .feat-ov { -webkit-line-clamp: 3; margin-top: 12px; }
  /* 按钮在左、「在哪看」在右同一行；放不下时「在哪看」挪到按钮上面 */
  .hh-act { flex-direction: row-reverse; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; padding-top: 14px; }
  .hh-where { gap: 5px; }
  .home-hero .badges { justify-content: flex-start; }
  .feat-ov { font-size: 14px; }
  .hh-side { margin-top: 16px; padding-top: 14px; }
  .hh-rail-h { margin-left: 0; }
  :is(#platforms, #others) .plats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gtiles { gap: 10px; }
  .gtiles a { padding: 0 12px 10px; }
  .gtiles .gt-k { margin-bottom: 2px; }
  .gtiles b { font-size: 16px; line-height: 22px; }
}
@media (max-width: 680px) {
  /* 手机首屏也是左边海报、右边片名：海报叠在卡片左上角，右边那一块（hh-head）让出海报的宽、至少和海报一样高 */
  .home-hero > .hh-posters { grid-area: 1 / 1; z-index: 2; align-self: start; justify-self: start; margin: 18px 0 0 16px; }
  .home-hero > .hh-card { grid-area: 1 / 1; padding: 18px 16px 14px; }   /* 手机：卡片上沿到海报顶 18 = 最后一行到卡片下沿 18 */
  .home-hero .poster { width: 104px; margin: 0; border-radius: 10px; }
  .hh-head { margin-left: 118px; min-height: 156px; }
}
/* 手机上首屏也按 5 部里最高的那部留高度：首屏会自动换片，高度一变下面的内容就会跟着跳 */
/* 首屏榜单（电脑上）：片名两行文字整体比数字和小海报低约 0.75px，往上挪一点 */
@media (min-width: 1100px) { .hh-rail .hr-t { margin-top: -1.5px; } }
/* 按平台找（手机）：三列，图标在上、名字在下，12 个平台 4 行放完 */
@media (max-width: 680px) {
  :is(#platforms, #others) .plats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  :is(#platforms, #others) .plats a { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; justify-items: center; row-gap: 8px; min-height: 0; padding: 14px 6px 12px; text-align: center; }
  :is(#platforms, #others) .plats img { grid-row: auto; }
  :is(#platforms, #others) .plats .pl-name { grid-row: auto; max-width: 100%; font-size: 13px; line-height: 18px; }
}
/* 首页「按平台找」：平板上一行 4 个、3 行放完（再窄平台名放不下，退回一行 3 个）；最窄的手机上平台名小一号 */
@media (min-width: 740px) and (max-width: 960px) { :is(#platforms, #others) .plats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 360px) { :is(#platforms, #others) .plats .pl-name { font-size: 12px; } }
/* 平台名长的（The Roku Channel）折成两行，不截成「…」；平台页底部「其他平台」和首页「按平台找」同一套排法 */
:is(#platforms, #others) .plats .pl-name { white-space: normal; overflow: visible; text-overflow: clip; text-wrap: balance; }
:is(#platforms, #others) .plats a { height: 100%; align-content: center; }   /* 同一行卡片一样高（有的多一行价格或「免费」） */
:lang(en) :is(#platforms, #others) .plats .pl-price .nw { white-space: normal; }   /* 英文「From US$10.99/mo」窄卡片里放不下时在空格处折行；中文「US$10.99/月起」整个不拆 */
@media (max-width: 360px) { :is(#platforms, #others) .plats .pl-price { font-size: 11px; } }   /* 最窄的手机上价格小一号，一行放得下 */
@media (max-width: 360px) { :lang(en) .recs b .nw { white-space: normal; } }   /* 最窄的手机上（一行 3 张，卡片只有 86 宽）英文片名里不拆的短语（Seven Havens）放不下时在空格处折行，不伸出卡片；中文片名不放开（放开后本来放得下的也会被从中间拆开） */
@media (max-width: 680px) { :is(#platforms, #others) .plats a { align-content: start; } }

/* ───── 首页首屏：片名 logo、自动切换、换片时整页配色和剧照跟着换 ───── */
/* 片名用片方做的 logo，旁边小字写英文名和年份。logo 的框固定高（换片时这一行不跳），logo 在框里上下居中、靠左：
   扁长的 logo 按宽度缩小后只占框中间一条（原来靠框底放，小字却对着整个框的中线，《奥德赛》这种扁 logo 看着比小字低 20 像素）。
   框对框居中以后，再按 logo 实际笔画的中线把 logo 挪一点（--ink-l/--ink-d 是笔画中线偏离图片中线的比例，生成时算好；
   用 % 按图片实际画出来的高度算，浅色、深色两张 logo 各一个） */
.feat-title.has-logo { --lh: 72px; display: flex; align-items: center; gap: 16px; margin-top: 3.5px; }   /* 3.5：logo 笔画到上面眉题、到下面类型那行一样远（量过） */
.feat-title.has-logo > a { flex: 0 1 auto; min-width: 0; max-width: 64%; }
.feat-title.has-logo picture { display: flex; align-items: center; height: var(--lh); }
.feat-title.has-logo img { width: auto; height: auto; max-width: 100%; max-height: var(--lh); transform: translateY(calc(var(--ink-l, 0) * -100%)); filter: drop-shadow(0 1px 8px rgba(0, 0, 0, .14)); }
.tl-meta { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--muted); text-wrap: balance; }
.feat-title.has-logo .tl-meta .year { margin: 0; font-size: inherit; font-weight: 500; }
/* 英文 logo 旁边的中文片名：中文页读者主要看它，比英文小字大一号、颜色深一些 */
.tl-meta .tl-zh { font-size: 16px; line-height: 22px; font-weight: 700; color: var(--ink); }
@media (prefers-color-scheme: dark) { .feat-title.has-logo img { transform: translateY(calc(var(--ink-d, 0) * -100%)); } }
@media (min-width: 681px) and (max-width: 1099px) { .feat-title.has-logo { --lh: 56px; } }
/* 有 logo 的片，电脑和平板上简介留 3 行（logo 比文字片名高，不然卡片会比海报高） */
@media (min-width: 681px) { .hh-panel.has-logo .feat-ov { -webkit-line-clamp: 3; } }
@media (max-width: 680px) {
  /* 手机上小字在 logo 下面。logo 框仍固定 48 高（换片时不跳），logo 在框里按笔画上下居中（原来贴框底放，《奥德赛》这种扁 logo 缩小后上面空出 20 像素） */
  .feat-title.has-logo { --lh: 48px; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: -4px; }   /* 上移 6：眉题到 logo 框比 logo 框到小字多 6，量过各宽度都一样 */
  .feat-title.has-logo > a { max-width: 100%; }
  .tl-meta { flex-direction: row; flex-wrap: wrap; gap: 0 8px; padding: 0; }
  .feat-title.has-logo .tl-meta .year { display: inline; margin: 0; }
}
/* 自动切换的进度：选中那项底边一条浅色轨道，实色那段走满就换下一部；暂停（鼠标停在首屏上等）时停在原处，轨道一直看得见 */
.hh-rail a { position: relative; }
.hr-prog { display: none; }
.home-hero.auto .hh-rail a[aria-current="true"] .hr-prog { display: block; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; border-radius: 1px; overflow: hidden;
  background: color-mix(in srgb, var(--accent) 24%, transparent); }
.home-hero.auto .hh-rail a[aria-current="true"] .hr-prog::after { content: ""; position: absolute; inset: 0; background: var(--accent);
  transform-origin: left center; transform: scaleX(0); animation: hh-prog 7s linear forwards; }
.home-hero.paused .hr-prog::after { animation-play-state: paused !important; }
@keyframes hh-prog { to { transform: scaleX(1); } }
/* 换片：新剧照叠在上面淡入；整页氛围图把旧的盖在上面淡出；配色变量（脚本里登记成颜色类型）平滑过渡 */
.backdrop-box img.bd-next { position: absolute; inset: 0; opacity: 0; animation: none; transition: opacity .9s var(--ease); }
.backdrop-box img.bd-next.in { opacity: 1; }
.amb-veil { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0; background: center / cover no-repeat; transform: scale(1.15); transition: opacity .9s var(--ease); }
:root:has(.home-hero) { transition: --bg-l .9s, --bg-d .9s, --s2-l .9s, --s2-d .9s, --line-l .9s, --line-d .9s, --accent-l .9s, --accent-d .9s,
  --accent-soft-l .9s, --accent-soft-d .9s, --on-accent-l .9s, --on-accent-d .9s, --tint .9s; }
@media (prefers-reduced-motion: reduce) {
  :root:has(.home-hero), .amb-veil, .backdrop-box img.bd-next { transition: none; }
}

/* ───── 电影页、剧集页（汇总页）：没有首屏，开头直接是「找电影 / 找剧集」（页面主标题，样子和各段标题一样） ───── */
#browse > h1 { margin: -5px 0 15px; font-size: 26px; line-height: 1.35; font-weight: 700; text-wrap: balance; }   /* 字上面还有约 5：logo 底到字 28，字底到筛选面板 20（手机 16） */
@media (max-width: 680px) {
  #browse > h1 { margin: -4px 0 10.5px; font-size: 23px; }
}
/* ── 电影页、剧集页的筛选：一行一个条件，只有字，选中的那项实色；手机上每行左右滑 ── */
.flt { padding: 6px 20px; border-radius: var(--r); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.fr { display: flex; align-items: flex-start; gap: 12px; padding: 9px 0; }
.fr + .fr { border-top: 1px solid var(--line); }
.fl { flex: none; width: 56px; padding-top: 5px; font-size: 13px; line-height: 19px; color: var(--muted); }
:lang(en) .fl { width: 76px; }
.fo { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; }
.fo a { flex: none; display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border-radius: 8px; font-size: 14px; line-height: 20px; color: var(--ink-2); white-space: nowrap;
  transition: background-color .15s, color .15s; }
.fo a:hover { text-decoration: none; color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.fo a[aria-current="true"] { color: #fff; background: var(--accent); font-weight: 600; }   /* 选中项文字用白色（深色模式原来是深色字，用户要求改白） */
/* 深色模式下强调色偏亮，白字只有 2.7 的对比度：保持色相，把底色亮度压到固定值（OKLCH 亮度 0.52），各页、每天换的配色都能到 4.5 以上（用户同意压深）；
   不支持这种写法的旧浏览器用第一行（和黑色混一点） */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fo a[aria-current="true"] { background: color-mix(in srgb, var(--accent) 62%, #000); background: oklch(from var(--accent) 0.52 c h); }
}
:root[data-theme="dark"] .fo a[aria-current="true"] { background: color-mix(in srgb, var(--accent) 62%, #000); background: oklch(from var(--accent) 0.52 c h); }
.fo .note { flex: none; margin-left: 4px; font-size: 12px; line-height: 17px; color: var(--muted); }
.rhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 36px 0 16px; }   /* 筛选面板 → 「全部电影」40，它 → 海报 20（手机 32 / 16） */
.rhead .rt { font-size: 16px; line-height: 23px; }
.rhead .rm { font-size: 13px; line-height: 19px; color: var(--muted); }
.rhead .rclear { margin-left: auto; font-size: 13px; line-height: 19px; }
.rnone { margin: 8px 0 0; padding: 28px 0; text-align: center; color: var(--muted); }
.rmore { display: none; }
.js .rmore:not([hidden]) { display: block; width: 280px; max-width: 100%; height: 42px; margin: 16px auto 0; padding: 0; border: 0; border-radius: 12px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--accent); font: inherit; font-size: 14px; line-height: 42px; font-weight: 600; cursor: pointer; }
/* 滚到结果里时顶栏下面的已选条件条：和顶栏连成一块玻璃（顶栏的玻璃往下延伸，这条本身透明） */
/* 顶栏玻璃里三段一样高（用户要求）：顶栏里按钮上面 12、顶栏按钮到这一行按钮 12（就是顶栏自己下面那 12，这一行不再留上边距）、这一行按钮下面 12 */
.fdock { position: fixed; z-index: 41; top: var(--top-v); left: 0; right: 0; height: 42px; visibility: hidden; opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s; }
.fdock.on { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition: opacity .2s var(--ease), transform .2s var(--ease); }
body:has(.fdock.on) .top::after { bottom: -42px; }
.fdock .wrap { display: flex; align-items: flex-start; gap: 8px; height: 42px; }
/* 已选条件多了只让这一段左右滑，「修改筛选」一直留在右边 */
.fd-sel { display: flex; gap: 8px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.fd-sel::-webkit-scrollbar { display: none; }
.fdock .sel { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 999px; font: inherit; font-size: 13px; line-height: 19px;
  font-weight: 600; color: var(--accent); background: var(--accent-soft); cursor: pointer; }
.fdock .sel.srt { cursor: default; }
.fdock .sel i { font-style: normal; font-weight: 400; opacity: .7; }
.fd-cnt { flex: none; display: flex; align-items: center; height: 30px; font-size: 13px; line-height: 19px; color: var(--muted); }   /* 和按钮一样高，字跟按钮居中 */
.fd-edit { flex: none; margin-left: auto; height: 30px; padding: 0 14px; border: 0; border-radius: 999px; font: inherit; font-size: 13px; line-height: 19px; color: var(--ink);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
@media (max-width: 680px) {
  .flt { padding: 2px 14px; }
  .fr { align-items: center; gap: 8px; padding: 7px 0; }
  .fl { width: 30px; padding: 0; }
  :lang(en) .fl { width: 64px; font-size: 12px; }
  .fo { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -14px; padding-right: 14px; }
  .fo::-webkit-scrollbar { display: none; }
  .fo a { padding: 0 10px; }
  .fd-cnt { display: none; }   /* 手机上条里放不下部数，结果上方已经写了 */
  .js .rmore:not([hidden]) { width: 100%; }   /* 电脑平板上是居中的 280 宽按钮（用户嫌整行太宽），手机上整行好点 */
  /* 默认状态手机上先显示 12 部，「加载更多」再加 */
  .js .rgrid:not(.x) > li:nth-child(n + 13) { display: none; }
}
/* ── 手机（≤680）筛选：一组一个大按钮（平常一行 3 个、44 高），点开从屏幕底部弹出这一组的选项（大格子，一行 3 个、44 高）。
   用户 2026-11-17 嫌原来一行一组、按钮 30 高 14 号字太迷你、不方便，选了这个；电脑平板不变。
   只在页面里有按钮（.fb，build_hubs 生成）时才换样子：样式先上线、页面还是旧的也不会把筛选藏没；不开脚本时照旧一行一组 ── */
.fb, .fsheet { display: none; }
@media (max-width: 680px) {
  /* 按钮至少占一行的三分之一（平常一行 3 个），选了长的（Prime Video、Action & Adventure）这个按钮自己变宽、其余挤到下一行，字不会被截掉；每行按钮一起撑满整行 */
  .js .flt:has(.fb) { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .js .flt:has(.fb) > .fr { flex: 1 1 auto; min-width: calc((100% - 16px) / 3); padding: 0; border: 0; }
  .js .flt:has(.fb) > .fr > :is(.fl, .fo) { display: none; }
  .js .fb { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; height: 44px; padding: 0 12px; border: 0; border-radius: 12px;
    font: inherit; font-size: 15px; line-height: 21px; color: var(--ink); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); cursor: pointer; }
  .fb > span:not(.sr-only) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .fb::after { content: ""; flex: none; width: 6px; height: 6px; margin-top: -4px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); opacity: .55; }   /* 向下的小箭头 */
  .js .fb.on { color: var(--accent); font-weight: 600; background: var(--accent-soft); box-shadow: none; }   /* 选了条件的按钮：强调色 */
  .fsheet:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 60; }
  .fs-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .38); opacity: 0; transition: opacity .25s var(--ease); }
  .fs-box { position: absolute; left: 0; right: 0; bottom: 0; max-height: 82dvh; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px calc(24px + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0; background: var(--surface); box-shadow: 0 -10px 30px rgba(0, 0, 0, .18), 0 160px 0 var(--surface); transform: translateY(100%); transition: transform .25s var(--ease); }
  /* iPhone Safari 底部工具栏那一块不算在屏幕里（固定定位的 bottom: 0 在它上面）：暗底往下多画一截；弹层用往下错开 160 的同色阴影接一截（弹层自己能滚，伪元素会被算进滚动范围），工具栏后面也是弹层的白底 */
  .fs-scrim::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 160px; background: inherit; }
  .fsheet.in .fs-scrim { opacity: 1; }
  .fsheet.in .fs-box { transform: none; }
  .fs-h { display: flex; align-items: center; justify-content: space-between; height: 56px; }
  .fs-t { font-size: 17px; line-height: 24px; font-weight: 600; color: var(--ink); }
  .fs-x { width: 44px; height: 44px; margin-right: -12px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 28px; line-height: 44px; cursor: pointer; }
  .fsheet .fo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; overflow: visible; }
  .fsheet .fo a { justify-content: center; min-height: 44px; height: auto; padding: 8px 6px; border-radius: 12px; font-size: 16px; line-height: 22px; text-align: center; white-space: normal; }
  .fsheet .fo a:not([aria-current="true"]) { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
  html.sheet-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .fs-scrim, .fs-box { transition: none; } }
/* 手机上标题条里的面包屑跟大标题一样靠左（详情页手机上面包屑是居中的） */

/* 本周新上线：国家框里每组先显示两行（脚本按一行几张给多出来的加 .cut），「展开全部」按钮和「加载更多」一个样子 */
.js .recs:not(.open) > li.cut { display: none; }
.js .fold-btn.f2 { display: block; width: 280px; max-width: 100%; height: 42px; margin: 16px auto 0; padding: 0; border: 0; border-radius: 12px;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); color: var(--accent); font: inherit; font-size: 14px; line-height: 42px; font-weight: 600; text-align: center; cursor: pointer; }   /* 平台页这类不在国家框里的分组 */
.js .fold-btn.f2[hidden] { display: none; }
@media (max-width: 680px) { .js .fold-btn.f2 { width: 100%; } }
.js .wt-panel .fold-btn.f2 { display: block; width: 280px; max-width: calc(100% - 16px); height: 42px; margin: 0 auto 16px; padding: 0; border: 0; border-radius: 12px;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); color: var(--accent); font: inherit; font-size: 14px; line-height: 42px; font-weight: 600; text-align: center; cursor: pointer; }
.js .wt-panel .fold-btn.f2[hidden] { display: none; }
@media (max-width: 680px) { .js .wt-panel .fold-btn.f2 { width: calc(100% - 16px); max-width: none; } }
/* 本周新上线国家框里的小标题（院线上映 / 线上上映）：国家标签 → 小标题 24，小标题 → 海报 20，上一组 → 下一组小标题 40（手机 24 / 16 / 32） */
.js #releases .wt-panel h3.sub-h { margin: 10px 8px 6px; }
.js #releases .wt-panel .recs + h3.sub-h, .js #releases .wt-panel .fold-btn[hidden] + h3.sub-h { margin-top: 11px; }
.js #releases .wt-panel .fold-btn:not([hidden]) + h3.sub-h { margin-top: 34px; }
@media (max-width: 680px) {
  .js #releases .wt-panel h3.sub-h { margin-bottom: 2px; }
  .js #releases .wt-panel .recs + h3.sub-h, .js #releases .wt-panel .fold-btn[hidden] + h3.sub-h { margin-top: 3px; }
  .js #releases .wt-panel .fold-btn:not([hidden]) + h3.sub-h { margin-top: 26px; }
}

/* 搜索页、404 页正文里的搜索框（顶栏的搜索框在手机上收进菜单里了，这两页要一眼看到） */
.ssearch { display: flex; gap: 8px; max-width: 560px; }
.ssearch input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); font: inherit; font-size: 16px; }   /* 16 号：iPhone 上点进去不会自动放大 */
.ssearch input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.ssearch button { flex: none; height: 44px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--accent); color: var(--on-accent); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
/* 搜索页：搜索框在顶部卡片里；这一页顶栏（和手机菜单里）的搜索框藏起来，免得一页两个；没搜到的提示靠左；结果第一行贴着正文顶（首屏 → 它 40） */
.search-hero .ssearch { margin-top: 20px; max-width: none; }
body:has(#results) header.top > .wrap > .search input, body:has(#results) #site-menu .search { display: none; }
#results > .rhead:first-child { margin-top: 0; }
#results .rnone { margin: 0; padding: 0; text-align: left; }
#trend-fb > h2 { margin: 16px 0 15px; }   /* 没输入时：「输入片名搜索」→「大家都在看」40（上面那行自己下面还有 16）；它 → 海报 20 */
#results .rnone:not([hidden]) + #trend-fb > h2 { margin-top: 27px; }   /* 没搜到时：提示文字 → 「大家都在看」40 */
@media (max-width: 680px) {
  #trend-fb > h2 { margin: 12px 0 11px; }   /* 手机 32 / 16 */
  #results .rnone:not([hidden]) + #trend-fb > h2 { margin-top: 19px; }
}

/* 间距分层（乙）手机部分：放在最后，盖过前面同名规则 */
@media (max-width: 680px) {
  .secnav + .body > .wrap { padding-top: 28px; }   /* 目录 → 第一个标题 32 */
  main > section > h2, .sec-head { margin-bottom: 11px; }   /* 标题 → 内容 16 */
  main > section > h2 + .sub { margin: -7px 0 16px; }
  .rhead { margin: 28px 0 12px; }
  main > section > .updated:last-child { margin-top: 27px; }   /* 最后内容 → 「更新于」32 */
  aside > .updated, .seg-in > .updated { margin-top: 11px; }   /* 详情页：右栏排到正文下面以后，「更新于」在页面最底下，离上面的卡片 32 */
}
@media (min-width: 681px) and (max-width: 960px) { aside > .updated, .seg-in > .updated { margin-top: 19px; } }   /* 平板同理，40 */

/* 卡片片名、名字：各行长度尽量均衡，不让最后一行只剩一两个字（「Final Destination / 2」→「Final / Destination 2」） */
.recs b, .series b, .lcards b, .vlist b, .people b { text-wrap: balance; }
/* 最窄的手机（320、340 宽）：一行 3 张时卡片只有 83 宽，长片名被挤成窄条，改成一行 2 张 */
@media (max-width: 351px) { .recs, .body.hub .recs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ───── 剧照：清晰度角标、大图下面的分辨率和「去 TMDB 下载原图」、底部同类型剧照页链接（用户要求做剧照页，下载交给 TMDB） ───── */
.gallery .res { position: absolute; top: 6px; right: 6px; height: 18px; padding: 0 6px; border-radius: 5px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; letter-spacing: .02em; pointer-events: none; }
.gallery-more { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 14px 0 0; font-size: 14px; }
.gallery-more a { font-weight: 600; }
/* 每部片的高清剧照页：大一点的格子（电脑一行 3 张），手机窄屏一行 1 张 */
.gallery.wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
@media (max-width: 680px) { .gallery.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
@media (max-width: 480px) { .gallery.wide { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
/* 搜索页：电影剧集结果下面的「剧照」（和「大家都在看」同样的间距） */
#still-res > h2 { margin: 40px 0 15px; }
@media (max-width: 680px) { #still-res > h2 { margin: 32px 0 11px; } }
.lightbox .lb-cap { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 24px 16px 12px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px;
  font-size: 13px; color: rgba(255, 255, 255, .85); background: linear-gradient(transparent, rgba(0, 0, 0, .72)); border-radius: 0 0 14px 14px; }
.lightbox .lb-cap a { color: #fff; font-weight: 600; }
.lightbox .lb-cap[hidden], .lightbox .lb-cap a[hidden] { display: none; }
/* 剧照页（build_stills.py）：每部片一张 16:9 代表剧照，角上标清晰度，下面片名和 4K 剧照张数 */
.stills { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px 16px; }
.stills a { display: block; color: var(--ink); }
.stills a:hover { text-decoration: none; }
.stills .st-img { position: relative; display: block; overflow: hidden; border-radius: var(--r-sm); background: var(--surface-2); box-shadow: var(--shadow); }
.stills img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s var(--ease); }
.stills a:hover img { transform: scale(1.04); }
.stills .res { position: absolute; top: 8px; right: 8px; height: 20px; padding: 0 7px; border-radius: 6px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; }
.stills b { display: block; margin-top: 8px; font-size: 15px; font-weight: 600; line-height: 1.4; text-wrap: balance; }
.stills small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
@media (hover: hover) { .stills a:hover b { color: var(--accent); } }
@media (max-width: 680px) { .stills { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; } .stills b { font-size: 14px; } }

/* ── 手机、平板（≤960）：顶栏实心深色（用户 2026-11-16 要求：手机 Safari 顶部那条要是深色、跟首屏颜色走）。
   iOS 26 的 Safari 不认 theme-color，只按页面顶上固定元素的底色给状态栏上色（模拟器实测 theme-color、html 底色、1 像素细条都无效），
   所以顶栏本身要有底色：用这部片配色里的深色（--bg-d，接近黑、带首屏剧照的色调），汇总页没有就用近黑；顶栏里的图标、菜单按深色配。
   吸住的目录条、筛选条跟顶栏连成同一条深色（11-17 用户指出浅色那条和深色顶栏不搭） ── */
@media (max-width: 960px) {
  .top, .secnav.stuck, html .fdock.on { background-color: var(--bg-d, #0B0D10); color-scheme: dark;
    --surface: #14181D; --panel: rgba(18, 22, 27, .78); --surface-2: var(--s2-d, #1A1F25); --ink: #E9ECF0; --ink-2: #C4CBD3; --muted: #98A2AD; --line: var(--line-d, #252B33);
    --accent: var(--accent-d, #4DBDB5); --on-accent: var(--on-accent-d, #06211F); --accent-soft: var(--accent-soft-d, #14302E);
    --glass: rgba(14, 17, 21, .45); --glass-strong: rgba(18, 22, 27, .6); --glass-line: rgba(255, 255, 255, .1); --glass-edge: rgba(255, 255, 255, .06); --shadow: none; }
  /* 目录、筛选条吸住时自己铺深色底（顶栏往下延伸的那层是半透明玻璃，跟实心的顶栏颜色对不上），阴影画在这一条下面 */
  html body:has(.secnav.stuck) .top::after, html body:has(.fdock.on) .top::after { bottom: 0; }
  .secnav.stuck, html .fdock.on { box-shadow: 0 10px 28px -18px rgba(0, 0, 0, .45); }
  html.menu-open .secnav.stuck, html.menu-open .fdock.on { visibility: hidden; }   /* 菜单打开时，吸住的目录条、筛选条（层级比顶栏高）别压在菜单上面挡住搜索框 */
  /* 顶栏底边 → 第一块卡片 20，和左右边距一样（原来 10 是按透明顶栏 logo 底量的，顶栏变深色后边界清楚，10 显得挤） */
  :root { --first-gap: 20px; }
  /* 顶栏下面那层往下渐淡的浅色底是给透明顶栏的字垫的，顶栏实心以后不需要，留着会在深色顶栏下面多出一条白边。
     电影页、剧集页、类型页（#browse）例外：「找电影」直接压在剧照上，剧照暗的时候靠它垫着才看得清（量过：去掉后对比度 4.29 → 1.35） */
  body:not(:has(#browse)) .backdrop-box::after { display: none; }
}

/* ── 语言提示（enrich.JS_TOP 生成，用户 2026-11-17 要求）：浏览器首选语言和本页不同时，底部一张小卡片提示另一语言版；
   电脑在右下角、手机占满宽度，不挡内容、可关。卡片在的时候「回到顶部」按钮挪到卡片上面 ── */
.lang-tip { position: fixed; z-index: 45; right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); width: 400px; max-width: calc(100vw - 32px);
  display: flex; align-items: center; gap: 12px; padding: 10px 6px 10px 16px; border-radius: 16px; background: var(--surface); color: var(--ink);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, .28), inset 0 0 0 1px var(--line);
  opacity: 0; transform: translateY(14px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.lang-tip.in { opacity: 1; transform: none; }
.lang-tip p { flex: 1; min-width: 0; margin: 0; font-size: 14px; line-height: 20px; }
.lang-tip a { flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 10px; font-size: 14px; line-height: 20px; font-weight: 600;
  background: var(--accent); color: var(--on-accent); white-space: nowrap; }
.lang-tip a:hover { text-decoration: none; filter: brightness(1.06); }
.lang-tip button { flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--muted); font: inherit; font-size: 22px; line-height: 36px; cursor: pointer; }
.lang-tip button:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
body:has(.lang-tip.in) .to-top { bottom: calc(88px + env(safe-area-inset-bottom)); }
@media (max-width: 680px) {
  .lang-tip { left: calc(12px + env(safe-area-inset-left)); right: calc(12px + env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; max-width: none; }
  body:has(.lang-tip.in) .to-top { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .lang-tip { transition: none; } }

/* 页脚最上面放本站 logo（用户 2026-11-17 要求）：中文页「场记」、英文页 SCENEROVE，都是白色（2026-11-18 用户给了新的中文标志；页脚一直是深色底）。
   比下面 TMDB 的 logo（12 高）显眼，符合 TMDB 对标志的要求（它的 logo 要比本站的不显眼） */
footer .foot-logo { display: block; width: auto; height: 24px; aspect-ratio: 229 / 48; margin-bottom: 4px; background: url("brand/footer-en.png") left center / contain no-repeat; }
:lang(zh) footer .foot-logo { height: 28px; aspect-ratio: 116 / 56; background-image: url("brand/footer-zh.png"); }   /* 中文页：白色「场记」（用户 2026-11-18 给的） */

