/* FRAME 会员端 v2 · 三版风格
 * A 风向标：米白底、黑字、金橄榄点缀、宋体标题、白色面板、列表优先
 * B 放映厅：深色、钨丝灯琥珀、英文衬线片名、海报优先、胶片进度条
 * C 账本：  纯白、黑墨、等宽数字、硬边、表格式行，盈亏绿红是唯一颜色
 * 结构规则共用；每版只改 token 和少量排版规则。
 */
@font-face { font-family: "Inter"; src: url("../assets/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/Fraunces-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/Fraunces-Italic-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

/* ---------- Tokens ---------- */
:root, :root[data-v="a"] {
  --bg: #f4f1e9; --bg-2: #faf8f3; --raised: #ffffff; --raised-2: #f0ece1; --film: #1a1912;
  --line: #e6e1d3; --line-2: #cfc8b4;
  --ink: #1a1912; --ink-2: #4a4738; --muted: #847e6c;
  --accent: #8c7532; --accent-ink: #ffffff; --accent-soft: #f3edd9;
  --rec: #b9452f; --signal: #2f7a4f; --up: #2f7a4f; --down: #b9452f;
  --bar-mid: #8c7532; --bar-pending: #d6d0bf;
  --stage-funding: var(--accent); --stage-production: var(--rec); --stage-live: var(--signal);
  --display: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --title: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --mono: "Inter", system-ui, sans-serif;
  --r: 12px; --r-s: 8px; --r-pill: 999px;
  --bar-bg: rgba(244, 241, 233, .92); --tab-bg: rgba(255, 255, 255, .96);
  --shadow: 0 1px 2px rgba(26, 25, 18, .05);
  --appw: 440px; --tab-h: 62px; --bar-h: 56px;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
:root[data-v="b"] {
  --bg: #111418; --bg-2: #161a20; --raised: #1a1f26; --raised-2: #232932; --film: #0a0c0f;
  --line: rgba(236, 231, 221, .085); --line-2: rgba(236, 231, 221, .18);
  --ink: #ece7dd; --ink-2: #bdb9b0; --muted: #878c94;
  --accent: #f2b75b; --accent-ink: #241906; --accent-soft: rgba(242, 183, 91, .13);
  --rec: #ff6153; --signal: #5cd0b5; --up: #5cd0b5; --down: #c9b9a8;
  --bar-mid: #f2b75b; --bar-pending: rgba(236, 231, 221, .22);
  --display: "Fraunces", Georgia, serif; --title: "Fraunces", Georgia, serif;
  --mono: "Inter", system-ui, sans-serif;
  --r: 16px; --r-s: 10px;
  --bar-bg: rgba(17, 20, 24, .9); --tab-bg: rgba(17, 20, 24, .94);
  --shadow: none;
  color-scheme: dark;
}
:root[data-v="c"] {
  --bg: #ffffff; --bg-2: #ffffff; --raised: #ffffff; --raised-2: #f2f2ef; --film: #0b0b0c;
  --line: #e3e3de; --line-2: #0b0b0c;
  --ink: #0b0b0c; --ink-2: #3b3b38; --muted: #7a7a72;
  --accent: #0b0b0c; --accent-ink: #ffffff; --accent-soft: #efefeb;
  --rec: #c2410c; --signal: #15803d; --up: #15803d; --down: #b91c1c;
  --bar-mid: #7a7a72; --bar-pending: #d9d9d4;
  --stage-funding: #0b0b0c; --stage-production: #c2410c; --stage-live: #15803d;
  --display: "IBM Plex Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --title: "IBM Plex Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --sans: "IBM Plex Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --r: 4px; --r-s: 2px; --r-pill: 3px;
  --bar-bg: rgba(255, 255, 255, .94); --tab-bg: #ffffff;
  --shadow: none;
  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p, dl, dd, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[data-v="b"] body { background: #0b0d10; }
[data-v="a"] body { background: #ebe7dc; }
[data-v="c"] body { background: #f4f4f1; }

/* ---------- Shell ---------- */
.app { position: relative; max-width: var(--appw); min-height: 100dvh; margin: 0 auto; background: var(--bg); }
#view { min-height: 100dvh; padding-bottom: calc(var(--tab-h) + var(--safe-b) + 28px); outline: none; }
body.no-tab #view { padding-bottom: calc(84px + var(--safe-b) + 24px); }
body.sub #view { padding-bottom: calc(var(--safe-b) + 32px); }
body.bare #view { padding-bottom: 0; }
@media (min-width: 480px) { .app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); box-shadow: 0 0 60px rgba(0, 0, 0, .18); } }
.desk-note { display: none; }
@media (min-width: 1000px) {
  .desk-note { display: block; position: fixed; top: 50%; transform: translateY(-50%); right: calc(50% + var(--appw) / 2 + 48px); width: 240px; color: var(--ink-2); font-size: 13px; }
  .desk-brand { font-family: var(--display); font-size: 30px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
  .desk-muted { color: var(--muted); margin-top: 10px; font-size: 12px; line-height: 1.6; }
  .desk-vs { margin-top: 18px; display: grid; gap: 6px; }
  .desk-vs button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--raised); color: var(--ink); text-align: left; font-size: 13px; }
  .desk-vs button b { font-family: var(--mono); width: 18px; }
  .desk-vs button small { display: block; color: var(--muted); font-size: 11.5px; }
  .desk-vs button[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
}
/* 风格切换（原型评审用） */
.vswitch { position: fixed; top: calc(var(--safe-t) + 12px); left: 50%; transform: translateX(-50%); z-index: 60; display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: rgba(20, 20, 20, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.vswitch button { width: 26px; height: 22px; border: 0; border-radius: 999px; background: transparent; color: rgba(255, 255, 255, .7); font: 600 11px/1 var(--mono); }
.vswitch button[aria-pressed="true"] { background: #fff; color: #111; }
@media (min-width: 1000px) { .vswitch { display: none; } }

/* ---------- Tab bar ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; max-width: var(--appw); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: var(--tab-bg); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-top: 1px solid var(--line); }
body.no-tab .tabbar, body.bare .tabbar, body.sub .tabbar { display: none; }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 500; }
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar a[aria-current="page"] svg { stroke: var(--accent); }
[data-v="c"] .tabbar a[aria-current="page"]::after { content: ""; position: absolute; top: -1px; left: 22%; right: 22%; height: 2px; background: var(--ink); }
.tab-badge { position: absolute; top: 6px; left: calc(50% + 7px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center; box-shadow: 0 0 0 2px var(--bg); }

/* ---------- Top bar ---------- */
.bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 4px; height: calc(var(--bar-h) + var(--safe-t)); padding: var(--safe-t) 8px 0 16px; background: var(--bar-bg); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid transparent; transition: border-color .2s; }
body.scrolled .bar { border-bottom-color: var(--line); }
.bar.sub { padding-left: 4px; }
.bar h1 { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: .01em; }
[data-v="b"] .bar h1 { font-family: var(--sans); font-weight: 650; }
[data-v="c"] .bar h1 { font-weight: 600; letter-spacing: 0; }
.bar.sub h1 { font-size: 17px; }
.bar .grow { flex: 1; min-width: 0; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; font-family: var(--title); font-size: 23px; font-weight: 500; letter-spacing: -.01em; }
[data-v="a"] .wordmark { font-family: var(--display); font-weight: 700; }
[data-v="c"] .wordmark { font-family: var(--mono); font-weight: 600; font-size: 19px; letter-spacing: .04em; }
.wordmark svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.demo { flex: none; font-size: 11px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r-pill); padding: 2px 8px; margin-right: 2px; }
.icon-btn { position: relative; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); }
.icon-btn:active { background: var(--raised-2); }
svg.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
svg.ic.fill { fill: currentColor; }

/* ---------- Common ---------- */
.sec { padding: 0 16px; margin-top: 28px; }
.sec.flush { padding: 0; }
.sec.tight { margin-top: 16px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sec.flush .sec-head { padding: 0 16px; }
.sec-head h2 { font-family: var(--display); font-size: 17px; font-weight: 700; }
[data-v="b"] .sec-head h2 { font-family: var(--sans); font-size: 16px; font-weight: 640; }
[data-v="c"] .sec-head h2 { font-size: 15px; font-weight: 600; }
.sec-head .sub { font-size: 12px; color: var(--muted); margin-left: 8px; font-weight: 400; font-family: var(--sans); }
.sec-head .link, .link { font-size: 13px; color: var(--ink-2); background: none; border: 0; padding: 6px 0; }
.muted { color: var(--muted); }
.note { color: var(--muted); font-size: 12px; line-height: 1.6; }
.film { font-family: var(--title); font-weight: 650; letter-spacing: -.01em; }
[data-v="b"] .film { font-weight: 440; font-optical-sizing: auto; letter-spacing: -.005em; }
[data-v="c"] .film { font-weight: 600; letter-spacing: -.01em; }
.tagline { font-family: var(--title); font-style: italic; color: var(--ink-2); }
[data-v="a"] .tagline, [data-v="c"] .tagline { font-style: normal; font-weight: 400; font-family: var(--sans); }
.page-pad { padding: 0 16px; }
.divider { height: 1px; background: var(--line); margin: 0 16px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 18px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--raised); color: var(--ink); font-size: 15px; font-weight: 600; white-space: nowrap; transition: transform .12s, background .2s; }
[data-v="b"] .btn { background: var(--raised-2); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.quiet { background: transparent; border-color: transparent; }
.btn.block { width: 100%; }
.btn.sm { height: 36px; padding: 0 12px; font-size: 13px; border-radius: var(--r-s); }
.btn.danger { color: var(--down); }
.btn.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
[data-v="c"] .btn.on { background: var(--accent-soft); color: var(--ink); }
.btn-row { display: flex; gap: 10px; }
.btn-row > .btn { flex: 1; }

.stage { --c: var(--stage-funding, var(--accent)); display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: var(--r-pill); background: rgba(10, 12, 15, .64); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 12px; font-weight: 560; color: #fff; white-space: nowrap; }
.stage::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.stage.flat { background: var(--raised-2); backdrop-filter: none; color: var(--ink); }
.funding { --c: var(--stage-funding, var(--accent)); }
.production { --c: var(--stage-production, var(--rec)); }
.live { --c: var(--stage-live, var(--signal)); }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 560; background: var(--raised-2); color: var(--ink-2); white-space: nowrap; }
[data-v="c"] .pill { border-radius: 2px; }
.pill.warm { background: var(--accent-soft); color: var(--accent); }
[data-v="c"] .pill.warm { background: var(--ink); color: #fff; }
.pill.ok { background: rgba(47, 122, 79, .12); color: var(--up); }
.pill.bad { background: rgba(185, 69, 47, .1); color: var(--down); }
.pill.pending { background: transparent; border: 1px dashed var(--line-2); color: var(--muted); }
.chg { font-family: var(--mono); font-size: 12.5px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chg.up { color: var(--up); }
.chg.down { color: var(--down); }
.pnl { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 650; }
.pnl.up { color: var(--up); }
.pnl.down { color: var(--down); }

.track { height: 4px; border-radius: 2px; background: var(--raised-2); overflow: hidden; }
[data-v="b"] .track { background: rgba(236, 231, 221, .1); }
[data-v="c"] .track { border-radius: 0; background: #e9e9e4; }
.track > i { display: block; height: 100%; border-radius: 2px; background: var(--c, var(--accent)); }
[data-v="c"] .track > i { border-radius: 0; }

/* 平台标 */
.pmark { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--raised-2); color: var(--ink-2); font: 700 10px/1 var(--mono); letter-spacing: .02em; flex: none; }
[data-v="c"] .pmark { border-radius: 2px; border: 1px solid var(--ink); background: #fff; color: var(--ink); }
[data-v="a"] .pmark { background: var(--ink); color: #fff; }
.pmarks { display: inline-flex; gap: 4px; }
.pmarks .pmark { width: 20px; height: 20px; font-size: 9px; }
.pmarks .more { display: inline-grid; place-items: center; height: 20px; padding: 0 5px; border-radius: 6px; background: var(--raised-2); color: var(--muted); font-size: 10px; }

/* 阶段：B 胶片 / A C 六段条 */
.segbar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.segbar i { position: relative; height: 6px; border-radius: 2px; background: var(--raised-2); overflow: hidden; }
[data-v="b"] .segbar i { background: rgba(236, 231, 221, .1); }
[data-v="c"] .segbar i { border-radius: 0; background: #e9e9e4; height: 5px; }
.segbar i.done { background: var(--c); }
.segbar i.now::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--c); }
.segbar.big i { height: 10px; }
.seg-labels { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 8px; text-align: center; }
.seg-labels span { font-size: 12px; color: var(--ink); line-height: 1.35; }
.seg-labels span.future { color: var(--muted); }
.seg-labels small { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.seg-labels span.now small { color: var(--c); }
.reel { position: relative; padding: 13px 10px; background: var(--film); border-radius: 12px; border: 1px solid var(--line); }
.reel::before, .reel::after { content: ""; position: absolute; left: 12px; right: 12px; height: 5px; background-image: linear-gradient(90deg, rgba(236, 231, 221, .14) 0 7px, transparent 7px 13px); background-size: 13px 5px; }
.reel::before { top: 4px; }
.reel::after { bottom: 4px; }
.reel-frames { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.reel-frames > span { position: relative; height: 58px; border-radius: 3px; overflow: hidden; background-size: cover; background-repeat: no-repeat; }
.reel-frames > span.future { background: #161a21; }
.reel-frames > span.future::after { content: attr(data-n); position: absolute; top: 5px; left: 7px; font-size: 10px; color: rgba(236, 231, 221, .25); font-variant-numeric: tabular-nums; }
.reel-frames > span.now::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(100% - var(--p)); background: rgba(22, 26, 33, .9); }
.reel-frames > span.now::after { content: ""; position: absolute; top: 6px; left: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px rgba(10, 12, 15, .6); }
.reel.big .reel-frames > span { height: 74px; }
.reel-labels { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 10px; text-align: center; }
.reel-labels span { font-size: 12px; color: var(--ink); line-height: 1.35; }
.reel-labels span.future { color: var(--muted); }
.reel-labels small { display: block; font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.reel-labels span.now small { color: var(--c); }

/* ---------- 首页 ---------- */
.hello { padding: 10px 16px 0; }
.hello h1 { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: .01em; }
[data-v="b"] .hello h1 { font-family: var(--sans); font-weight: 650; }
[data-v="c"] .hello h1 { font-size: 22px; font-weight: 600; }
.hello p { color: var(--ink-2); margin-top: 4px; }
/* 收益一行概览 */
.estrip { display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: center; gap: 10px; margin: 16px 16px 0; padding: 12px 14px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.estrip > div span { display: block; font-size: 11.5px; color: var(--muted); }
.estrip > div b { display: block; font-family: var(--mono); font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.estrip .go { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--raised-2); color: var(--ink-2); }
[data-v="c"] .estrip { border-color: var(--ink); border-radius: var(--r); }
[data-v="c"] .estrip .go { border-radius: 2px; background: var(--ink); color: #fff; }

/* 热播 A：排名列表 */
.hits-a li { display: grid; grid-template-columns: 20px 50px 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hits-a li:last-child { border-bottom: 0; }
.hits-a .rank { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 12px/1 var(--mono); }
.hits-a .rank.r4, .hits-a .rank.r5 { background: var(--raised-2); color: var(--ink-2); }
.hits-a img { width: 50px; height: 66px; border-radius: 8px; object-fit: cover; background: var(--film); }
.hits-a .info { min-width: 0; }
.hits-a .info .film { display: block; font-size: 15px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hits-a .info p { font-size: 12px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hits-a .info .pmarks { margin-top: 6px; }
.hits-a .val { text-align: right; }
.hits-a .val b { display: block; font-family: var(--display); font-size: 18px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
[data-v="b"] .hits-a .val b { font-family: var(--mono); font-size: 18px; }
.hits-a .val small { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
/* 热播 B：海报横滑 */
.hits-b { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 6px; scroll-snap-type: x mandatory; scroll-padding-left: 16px; scrollbar-width: none; }
.hits-b::-webkit-scrollbar { display: none; }
.hits-b a { position: relative; flex: 0 0 150px; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; background: var(--film); scroll-snap-align: start; }
.hits-b img { width: 100%; height: 100%; object-fit: cover; }
.hits-b .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 15, 0) 40%, rgba(10, 12, 15, .92)); }
.hits-b .rank { position: absolute; top: 2px; left: 10px; font-family: var(--title); font-size: 56px; font-weight: 500; line-height: 1; color: #fff; opacity: .9; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.hits-b .txt { position: absolute; left: 12px; right: 12px; bottom: 12px; color: #fff; }
.hits-b .txt .film { display: block; font-size: 17px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hits-b .txt small { display: block; font-size: 11px; color: rgba(255, 255, 255, .75); margin-top: 3px; }
.hits-b .txt b { display: block; font-family: var(--mono); font-size: 14px; font-weight: 650; color: var(--accent); margin-top: 6px; font-variant-numeric: tabular-nums; }
/* 热播 C：表格 */
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th { font-size: 11px; font-weight: 500; color: var(--muted); text-align: left; padding: 0 0 8px; border-bottom: 1px solid var(--ink); }
.tbl th.r, .tbl td.r { text-align: right; }
.tbl td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl .n { font-family: var(--mono); font-size: 13px; }
.tbl .rk { font-family: var(--mono); font-size: 12px; color: var(--muted); width: 22px; }
.tbl .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tbl .who img { width: 34px; height: 34px; border-radius: 2px; object-fit: cover; flex: none; }
.tbl .who .film { display: block; font-size: 14px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.tbl .who small { display: block; font-size: 11px; color: var(--muted); }
.tbl .big { font-family: var(--mono); font-size: 15px; font-weight: 600; }

/* 横滑 */
.rail { display: flex; gap: 12px; overflow-x: auto; padding: 0 16px 6px; scroll-snap-type: x mandatory; scroll-padding-left: 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 80%; scroll-snap-align: start; }
[data-v="c"] .rail > * { flex-basis: 72%; }

/* 作品卡片 */
.pcard { position: relative; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
[data-v="c"] .pcard { border-color: var(--line-2); }
.pcard .poster { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--film); }
.pcard .poster img { width: 100%; height: 100%; object-fit: cover; }
.pcard .poster-tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.pcard .save { position: absolute; top: 6px; right: 6px; background: rgba(10, 12, 15, .55); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pcard .body { padding: 13px 14px 14px; }
.pcard .body > a { display: block; }
.title-line { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.title-line .film { font-size: 20px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-v="c"] .title-line .film { font-size: 17px; }
.title-line .cn { flex: none; font-size: 13px; color: var(--ink-2); }
.byline { margin-top: 3px; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metric { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 14px; }
.metric .big { font-family: var(--mono); font-size: 19px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.metric .big small { margin-left: 3px; font-family: var(--sans); font-size: 12px; font-weight: 450; color: var(--muted); }
.metric .side { font-family: var(--mono); font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pcard .track, .pcard .segbar, .pcard .spark { margin-top: 9px; }
.foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.foot span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.foot span:last-child { flex: none; }
.foot .warm, .prow .val .warm { color: var(--accent); }
[data-v="c"] .foot .warm, [data-v="c"] .prow .val .warm { color: var(--rec); }
.spark { display: block; width: 100%; height: 28px; overflow: visible; }

/* 表现行（首页 / 发现列表） */
.perf-rows li { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.perf-rows li:last-child { border-bottom: 0; }
.perf-rows img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--film); }
[data-v="c"] .perf-rows img { border-radius: 2px; }
.perf-rows .info { min-width: 0; }
.perf-rows .info .film { display: block; font-size: 15px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.perf-rows .info .pmarks { margin-top: 5px; }
.perf-rows .val { text-align: right; }
.perf-rows .val b { display: block; font-family: var(--mono); font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.perf-rows .val b small { font-family: var(--sans); font-size: 11px; font-weight: 450; color: var(--muted); margin-left: 2px; }
.perf-rows .val .chg { display: block; margin-top: 2px; }
.perf-rows .val .spark { width: 72px; height: 22px; margin: 3px 0 0 auto; }
.perf-cols { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; padding: 0 0 6px; border-bottom: 1px solid var(--ink); font-size: 11px; color: var(--muted); }
.perf-cols span:last-child { text-align: right; }

.prow { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.prow:last-child { border-bottom: 0; }
.prow .thumb { width: 56px; height: 74px; border-radius: 8px; object-fit: cover; background: var(--film); }
[data-v="c"] .prow .thumb { width: 48px; height: 48px; border-radius: 2px; }
[data-v="c"] .prow { grid-template-columns: 48px 1fr auto; padding: 10px 0; }
.prow .info { min-width: 0; }
.prow .film { display: block; font-size: 17px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-v="c"] .prow .film { font-size: 15px; }
.prow .info p { font-size: 12px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow .info .stage { margin-top: 6px; height: 20px; font-size: 11px; padding: 0 7px; }
.prow .info .pmarks { margin: 6px 0 0 6px; vertical-align: top; }
.prow .val { text-align: right; font-family: var(--mono); font-size: 15px; font-weight: 620; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prow .val small { display: block; font-family: var(--sans); font-size: 11.5px; font-weight: 450; color: var(--muted); margin-top: 2px; }
.prow .val .spark { width: 64px; height: 22px; margin: 4px 0 0 auto; }
.prow .val .chg { display: block; margin-top: 2px; }
.list-wrap { padding: 0 16px; margin-top: 4px; }
[data-v="a"] .list-wrap.panel, [data-v="a"] .panel { margin: 10px 16px 0; padding: 2px 14px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }

/* ---------- 发现 ---------- */
.search { display: flex; align-items: center; gap: 8px; height: 44px; margin: 6px 16px 0; padding: 0 12px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); color: var(--muted); }
[data-v="c"] .search { border-color: var(--ink); }
.search:focus-within { border-color: var(--line-2); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--ink); font-size: 16px; outline: none; }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { display: none; }
.search .clear { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--raised-2); color: var(--ink-2); }
.search .go { flex: none; height: 32px; padding: 0 12px; border: 0; border-radius: var(--r-s); background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 600; }
/* 平台筛选行 */
.plats { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px; margin-top: 12px; scrollbar-width: none; }
.plats::-webkit-scrollbar { display: none; }
.plats button { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 10px 0 6px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--raised); color: var(--ink); font-size: 13px; box-shadow: var(--shadow); }
.plats button .cnt { font-family: var(--mono); font-size: 11px; color: var(--muted); background: var(--raised-2); border-radius: 999px; padding: 1px 7px; }
[data-v="c"] .plats button .cnt { border-radius: 2px; }
.plats button[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
[data-v="c"] .plats button[aria-pressed="true"] { background: var(--ink); color: #fff; }
[data-v="c"] .plats button[aria-pressed="true"] .pmark { border-color: #fff; background: #fff; color: var(--ink); }
[data-v="c"] .plats button[aria-pressed="true"] .cnt { background: rgba(255, 255, 255, .18); color: #fff; }
.plats-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 16px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.seg { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px; margin-top: 12px; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font-size: 13.5px; }
.seg button small { font-family: var(--mono); font-size: 11.5px; opacity: .7; font-variant-numeric: tabular-nums; }
.seg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); font-weight: 600; }
[data-v="b"] .seg button[aria-pressed="true"] { color: var(--bg); }
.toolrow { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-left: 16px; }
.chips { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; height: 30px; padding: 0 11px; border-radius: var(--r-s); border: 1px solid transparent; background: var(--raised-2); color: var(--ink-2); font-size: 13px; }
[data-v="a"] .chips button { background: transparent; border-color: var(--line); }
.chips button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
[data-v="c"] .chips button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.sort-btn { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 16px 0 10px; border: 0; background: none; color: var(--ink-2); font-size: 13px; border-left: 1px solid var(--line); }
.result-meta { display: flex; justify-content: space-between; align-items: center; padding: 0 16px; margin-top: 16px; font-size: 12px; color: var(--muted); }
.cards { display: grid; gap: 14px; padding: 0 16px; margin-top: 10px; }

/* ---------- 收益 ---------- */
.esum { margin: 6px 16px 0; padding: 16px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
[data-v="c"] .esum { border: 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); border-radius: 0; padding: 14px 0; margin: 6px 16px 0; }
.esum .lab { font-size: 12px; color: var(--muted); }
.esum .hero { display: flex; align-items: baseline; gap: 10px; margin-top: 2px; flex-wrap: wrap; }
.esum .hero b { font-family: var(--mono); font-size: 32px; font-weight: 650; line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
[data-v="a"] .esum .hero b { font-family: var(--display); font-weight: 700; }
.esum .hero .pnl.big { font-size: 32px; font-weight: 650; line-height: 1.15; letter-spacing: -.01em; }
[data-v="a"] .esum .hero .pnl.big { font-family: var(--display); font-weight: 700; }
.esum .hero .chg { font-size: 14px; }
.esum .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.esum .grid b { display: block; font-family: var(--mono); font-size: 15px; font-weight: 620; font-variant-numeric: tabular-nums; }
.esum .grid span { font-size: 11.5px; color: var(--muted); }
.esum .bar2 { display: flex; height: 6px; margin-top: 12px; border-radius: 3px; overflow: hidden; background: var(--raised-2); }
[data-v="c"] .esum .bar2 { border-radius: 0; }
.esum .bar2 i { display: block; height: 100%; }
.esum .legend { display: flex; gap: 14px; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.esum .legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: 0; }
.pos { margin: 0 16px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.pos + .pos { margin-top: 10px; }
[data-v="c"] .pos { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
[data-v="c"] .pos + .pos { margin-top: 0; }
.pos-row { list-style: none; cursor: pointer; display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; width: 100%; padding: 13px 14px; border: 0; background: none; text-align: left; color: var(--ink); }
[data-v="c"] .pos-row { padding: 12px 0; }
.pos-row img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--film); }
[data-v="c"] .pos-row img { border-radius: 2px; }
.pos-row .info { min-width: 0; }
.pos-row .film { display: block; font-size: 15.5px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pos-row .info p { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.pos-row::-webkit-details-marker { display: none; }
.pos-row .val { text-align: right; }
.pos-row .val .pnl { display: block; font-size: 16px; }
.pos-row .val small { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.pos-bar { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; margin-top: 2px; font-size: 11.5px; color: var(--muted); font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pos-bar .track { display: block; }
.pos-detail { padding: 0 14px 14px; border-top: 1px solid var(--line); }
[data-v="c"] .pos-detail { padding: 0 0 14px; }
.pos-detail .kv { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; padding: 12px 0 0; font-size: 13px; }
.pos-detail .kv dt { color: var(--muted); }
.pos-detail .kv dd { font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.pos-detail .kv dd.strong { font-weight: 650; }
.pos-detail h4 { font-size: 12px; font-weight: 600; color: var(--muted); margin: 12px 0 4px; }
.pos-detail .pl { display: grid; grid-template-columns: 24px 1fr auto auto; gap: 8px 10px; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.pos-detail .pl:last-of-type { border-bottom: 0; }
.pos-detail .pl .n { font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.pos-detail .pl .n small { color: var(--muted); font-size: 11px; }
.pos-detail .pl .pct { font-family: var(--mono); font-size: 11.5px; color: var(--muted); min-width: 34px; text-align: right; }
.pos-detail .formula { margin-top: 12px; padding: 10px 12px; border-radius: var(--r-s); background: var(--raised-2); font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.pos-detail .formula code { font-family: var(--mono); font-size: 11.5px; }
.pos-detail .btn-row { margin-top: 12px; }
.pos-row .chev { transition: transform .2s; color: var(--muted); }
.pos[open] .pos-row .chev { transform: rotate(180deg); }

/* ---------- 我的 ---------- */
.profile { display: flex; align-items: center; gap: 14px; padding: 10px 16px 0; }
.avatar { flex: none; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--raised-2); border: 1.5px solid var(--accent); color: var(--accent); font-family: var(--mono); font-size: 21px; font-weight: 640; letter-spacing: .02em; }
[data-v="c"] .avatar { border-radius: 4px; color: var(--ink); }
.profile h1 { font-family: var(--display); font-size: 21px; font-weight: 700; line-height: 1.3; }
[data-v="b"] .profile h1 { font-family: var(--sans); font-weight: 650; }
.profile p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.profile .pill { margin-top: 6px; }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); margin: 18px 16px 0; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
[data-v="c"] .summary { border-color: var(--ink); }
.summary a { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 14px 13px; }
.summary a + a::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
.summary b { font-family: var(--mono); font-size: 24px; font-weight: 640; line-height: 1.2; font-variant-numeric: tabular-nums; }
.summary b.hot { color: var(--accent); }
[data-v="c"] .summary b.hot { color: var(--ink); }
.summary span { font-size: 12px; color: var(--muted); }
.menu { margin: 0 16px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.sec .menu { margin: 0; }
.menu > a, .menu > button, .menu > label { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 10px 14px 10px 16px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font-size: 15px; text-align: left; }
.menu > :last-child { border-bottom: 0; }
.menu .lead { width: 20px; height: 20px; color: var(--ink-2); }
.menu .end { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; font-family: var(--mono); }
.menu .txt { flex: 1; min-width: 0; }
.menu .txt small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; font-family: var(--sans); }
.menu .danger { color: var(--down); }
.icard { padding: 14px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; box-shadow: var(--shadow); }
.icard-head { display: flex; align-items: center; gap: 12px; }
.icard-head img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.icard-head .who { flex: 1; min-width: 0; }
.icard-head .film { display: block; font-size: 17px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icard-head .who small { font-size: 12px; color: var(--muted); }
.kv { display: grid; grid-template-columns: 76px 1fr; gap: 8px 12px; margin-top: 14px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { color: var(--ink); word-break: break-word; }
.icard .btn-row { margin-top: 14px; }
.notice { display: flex; gap: 10px; padding: 12px 13px; border-radius: var(--r-s); background: var(--accent-soft); color: var(--ink-2); font-size: 13px; line-height: 1.55; }
.notice svg { color: var(--accent); margin-top: 1px; }
[data-v="b"] .notice { color: #f3d6a4; }
.notice.cool { background: var(--raised); color: var(--ink-2); border: 1px solid var(--line); }
.notice.cool svg { color: var(--ink-2); }
.empty { margin: 16px; padding: 30px 22px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r); }
.empty h3 { font-size: 16px; font-weight: 620; }
.empty p { color: var(--muted); margin: 6px auto 16px; max-width: 30em; }

/* 动态（铃铛页） */
.fgroup { margin-top: 20px; padding: 0 16px; }
.fgroup > h3 { font-size: 13px; font-weight: 560; color: var(--muted); margin-bottom: 10px; }
.fitem { position: relative; display: block; padding: 14px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; box-shadow: var(--shadow); }
.fitem.unread { border-color: var(--accent); }
.fitem-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fitem-head img { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; flex: none; }
.fitem-head .who { min-width: 0; flex: 1; }
.fitem-head .film { display: block; font-size: 15px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fitem-head .who small { display: block; font-size: 12px; color: var(--muted); }
.fitem-head time { flex: none; font-size: 12px; color: var(--muted); font-family: var(--mono); font-variant-numeric: tabular-nums; }
.fitem h4 { font-size: 15.5px; font-weight: 600; line-height: 1.45; margin-top: 12px; }
.fitem p { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; }
.fitem .unread-dot { position: absolute; top: 14px; right: 14px; }
.fitem.unread time { margin-right: 14px; }
.unread-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.upd { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.upd:last-child { border-bottom: 0; }
.upd img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.upd-meta { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12px; color: var(--muted); }
.upd-meta .film { font-size: 14px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upd-meta time { margin-left: auto; flex: none; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.upd h3 { font-size: 15px; font-weight: 560; line-height: 1.45; margin-top: 2px; }

/* ---------- 作品详情 ---------- */
.d-top { position: fixed; top: 0; left: 0; right: 0; z-index: 35; max-width: var(--appw); margin: 0 auto; display: flex; align-items: center; gap: 6px; height: calc(var(--bar-h) + var(--safe-t)); padding: var(--safe-t) 8px 0; transition: background .2s, border-color .2s; border-bottom: 1px solid transparent; }
.d-top .icon-btn { background: rgba(10, 12, 15, .5); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.d-top .d-title { flex: 1; min-width: 0; opacity: 0; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity .2s; }
.d-top.solid { background: var(--bar-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.d-top.solid .d-title { opacity: 1; }
.d-top.solid .icon-btn { background: transparent; color: var(--ink); backdrop-filter: none; }
.d-hero { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--film); }
.d-hero img { width: 100%; height: 100%; object-fit: cover; }
.d-hero::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0), var(--bg) 97%); }
.d-hero .pending-tag { position: absolute; right: 12px; bottom: 44px; z-index: 1; background: rgba(10, 12, 15, .6); color: #ddd; border-color: rgba(255, 255, 255, .35); }
.d-head { position: relative; z-index: 1; margin-top: -40px; padding: 0 16px; }
.d-head .film { font-size: 32px; line-height: 1.1; margin-top: 10px; }
[data-v="b"] .d-head .film { font-size: 34px; font-variation-settings: "opsz" 144; }
.d-head .cn-line { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 13.5px; color: var(--ink-2); }
.d-head .tagline { margin-top: 10px; font-size: 16px; line-height: 1.4; }
.d-head .pos-tag { margin-top: 10px; }
.d-tabs { position: sticky; top: calc(var(--bar-h) + var(--safe-t)); z-index: 20; display: flex; gap: 24px; margin-top: 20px; padding: 0 16px; background: var(--bg); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.d-tabs::-webkit-scrollbar { display: none; }
.d-tabs button { position: relative; flex: none; height: 46px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 15px; }
.d-tabs button[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.d-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 1px; background: var(--accent); }
.d-tabs .new { display: inline-block; width: 6px; height: 6px; margin-left: 4px; border-radius: 50%; background: var(--accent); vertical-align: 3px; }
.d-pane { padding: 18px 16px 0; }
.d-pane > * + * { margin-top: 26px; }
.d-pane h2 { font-family: var(--display); font-size: 16px; font-weight: 700; margin-bottom: 10px; }
[data-v="b"] .d-pane h2 { font-family: var(--sans); font-weight: 640; }
[data-v="c"] .d-pane h2 { font-size: 15px; font-weight: 600; }
.d-pane .story { font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.keypanel { padding: 16px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
[data-v="c"] .keypanel { border-color: var(--ink); }
.keypanel .kp-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.keypanel .kp-label { font-size: 12px; color: var(--muted); }
.keypanel .kp-num { font-family: var(--mono); font-size: 28px; font-weight: 650; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
[data-v="a"] .keypanel .kp-num { font-family: var(--display); font-weight: 700; }
.keypanel .kp-num small { font-family: var(--sans); font-size: 13px; font-weight: 450; color: var(--muted); margin-left: 4px; }
.keypanel .kp-pct { font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--c); font-variant-numeric: tabular-nums; }
.keypanel .track { margin-top: 12px; height: 6px; border-radius: 3px; }
.kp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.kp-grid b { display: block; font-family: var(--mono); font-size: 16px; font-weight: 620; font-variant-numeric: tabular-nums; }
.kp-grid span { font-size: 12px; color: var(--muted); }
.facts { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--raised); }
.facts > div { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.facts > div:nth-child(odd) { border-right: 1px solid var(--line); }
.facts > div:nth-last-child(-n + 2) { border-bottom: 0; }
.facts > div.wide { grid-column: 1 / -1; border-right: 0; }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { font-size: 14px; margin-top: 2px; }
.plat-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.plat-list span { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px 0 3px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--bg-2); font-size: 12.5px; }
.plat-list span.planned { border-style: dashed; color: var(--muted); }
.alloc li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; padding: 8px 0; }
.alloc li span { font-size: 14px; }
.alloc li b { font-family: var(--mono); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.alloc li .track { grid-column: 1 / -1; height: 4px; }
.alloc li .track > i { background: var(--accent); opacity: .8; }
.now-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.now-card .ring { --c: var(--accent); flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--raised-2) 0); position: relative; }
.now-card .ring::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--raised); }
.now-card .ring span { position: relative; }
.now-card h3 { font-size: 15px; font-weight: 600; }
.now-card p { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.tl li { position: relative; padding: 0 0 22px 22px; }
.tl li::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: -6px; width: 1px; background: var(--line-2); }
.tl li:last-child::before { display: none; }
.tl li::after { content: ""; position: absolute; left: 0; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--muted); }
.tl li.unread::after { background: var(--accent); border-color: var(--accent); }
.tl .tl-meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tl h3 { font-size: 15px; font-weight: 600; margin-top: 4px; line-height: 1.45; }
.tl p { font-size: 13.5px; color: var(--ink-2); margin-top: 3px; }
.team li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.team li:last-child { border-bottom: 0; }
.team .ini { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--raised-2); color: var(--ink-2); font-family: var(--mono); font-size: 13px; font-weight: 640; }
.team b { display: block; font-size: 15px; font-weight: 600; }
.team span { font-size: 12.5px; color: var(--muted); }
.studio-card { padding: 16px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.studio-card .film { font-size: 22px; }
.studio-card p { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.actbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; max-width: var(--appw); margin: 0 auto; display: flex; gap: 10px; padding: 10px 16px calc(10px + var(--safe-b)); background: var(--tab-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.actbar .btn { height: 50px; }
.actbar .follow { flex: none; padding: 0 14px; }
.actbar .follow[aria-pressed="true"] { color: var(--accent); }
[data-v="c"] .actbar .follow[aria-pressed="true"] { color: var(--ink); background: var(--accent-soft); }
.actbar .main { flex: 1; min-width: 0; }
.perf-head { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.perf-head > div { padding: 14px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.perf-head span { font-size: 12px; color: var(--muted); }
.perf-head b { display: block; font-family: var(--mono); font-size: 24px; font-weight: 650; line-height: 1.25; font-variant-numeric: tabular-nums; }
.perf-head b small { font-family: var(--sans); font-size: 12px; font-weight: 450; color: var(--muted); margin-left: 3px; }
.perf-head .chg { display: block; margin-top: 2px; }
.updated { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.updated::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }
.chart-card { padding: 14px 14px 10px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.chart-card .cc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chart-card h3 { font-size: 15px; font-weight: 600; }
.chart-card .cc-head p { font-size: 12px; color: var(--muted); }
.mini-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-s); background: var(--bg-2); border: 1px solid var(--line); }
.mini-seg button { height: 28px; padding: 0 10px; border: 0; border-radius: calc(var(--r-s) - 2px); background: none; color: var(--ink-2); font-size: 12.5px; }
.mini-seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); font-weight: 600; }
.chart { position: relative; height: 170px; margin: 44px 34px 0 0; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: crosshair; }
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart .ylab { position: absolute; right: -34px; transform: translateY(-50%); font-family: var(--mono); font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chart .cross { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line-2); pointer-events: none; }
.chart .hdot, .chart .enddot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 2px var(--raised); pointer-events: none; }
.chart .tip { position: absolute; top: -38px; transform: translateX(-50%); padding: 5px 8px; border-radius: var(--r-s); background: var(--ink); color: var(--bg); font-family: var(--mono); font-size: 12px; white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; }
.chart .tip b { font-weight: 640; }
.xlabs { display: flex; justify-content: space-between; margin: 8px 34px 0 0; font-family: var(--mono); font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chan li { padding: 13px 0; border-bottom: 1px solid var(--line); }
.chan li:last-child { border-bottom: 0; }
.chan .row { display: flex; align-items: center; gap: 10px; }
.chan .row .pmark { width: 32px; height: 32px; font-size: 11px; border-radius: 8px; }
[data-v="c"] .chan .row .pmark { border-radius: 2px; }
.chan .nm { flex: 1; min-width: 0; }
.chan .nm b { display: block; font-size: 14.5px; font-weight: 600; }
.chan .nm small { font-family: var(--mono); font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chan .v { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.chan .v b { display: block; font-size: 15px; font-weight: 620; }
.chan .v small { font-size: 12px; color: var(--muted); }
.chan .share { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chan .share .track { flex: 1; }
.chan .share .track > i { background: var(--signal); opacity: .8; }
.eps li { display: grid; grid-template-columns: 34px 1fr auto; gap: 4px 10px; align-items: baseline; padding: 9px 0; }
.eps .no { font-family: var(--mono); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.eps .t { font-size: 14px; }
.eps .v { font-family: var(--mono); font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.eps .track { grid-column: 2 / -1; height: 3px; }
.eps .track > i { background: var(--signal); opacity: .6; }
.locked { padding: 22px 18px; text-align: center; background: var(--raised); border: 1px dashed var(--line-2); border-radius: var(--r); }
.locked h3 { font-size: 16px; font-weight: 620; }
.locked p { color: var(--ink-2); font-size: 13.5px; margin: 6px 0 14px; }
.ghost-chart { height: 70px; margin: 0 auto 14px; max-width: 240px; opacity: .35; }

/* ---------- 弹层 ---------- */
.sheet { width: 100%; max-width: var(--appw); max-height: 90dvh; margin: auto auto 0; padding: 0; border: 0; border-radius: var(--r) var(--r) 0 0; background: var(--bg-2); color: var(--ink); box-shadow: 0 -10px 50px rgba(0, 0, 0, .35); }
[data-v="b"] .sheet { border-radius: 22px 22px 0 0; }
.sheet[open] { display: flex; flex-direction: column; animation: sheet-in .24s cubic-bezier(.2, .8, .2, 1); }
.sheet::backdrop { background: rgba(4, 5, 7, .55); }
@keyframes sheet-in { from { transform: translateY(40px); opacity: .4; } }
.sheet-grab { flex: none; width: 40px; height: 5px; margin: 8px auto 2px; border-radius: 3px; background: var(--line-2); }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 10px 16px calc(20px + var(--safe-b)); }
.sheet-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.sheet-head .grow { flex: 1; min-width: 0; }
.sheet-head h2 { font-family: var(--display); font-size: 20px; font-weight: 700; line-height: 1.3; }
[data-v="b"] .sheet-head h2 { font-family: var(--sans); font-weight: 650; }
.sheet-head p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.sheet-head .icon-btn { margin: -6px -8px 0 0; }
.sheet fieldset, .form fieldset { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
.sheet legend, .form legend, .field > span { display: block; padding: 0; margin-bottom: 9px; font-size: 14px; font-weight: 600; }
.sheet legend small, .form legend small, .field > span small { font-weight: 400; color: var(--muted); margin-left: 4px; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin-bottom: 8px; background: var(--raised); border: 1px solid var(--line-2); border-radius: var(--r); cursor: pointer; }
.opt input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.opt > span { display: block; color: var(--ink); }
.opt b { display: block; font-size: 15px; font-weight: 600; }
.opt b + span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.chipset label { position: relative; }
.chipset input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chipset span { display: inline-flex; align-items: center; height: 36px; padding: 0 13px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--raised); font-size: 14px; color: var(--ink-2); }
.chipset input:checked + span { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
[data-v="c"] .chipset input:checked + span { background: var(--ink); color: #fff; }
.chipset input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field { display: block; margin-top: 16px; }
.field input, .field textarea, .field select { display: block; width: 100%; height: 48px; padding: 0 14px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--raised); color: var(--ink); font-size: 16px; outline: none; }
.field textarea { height: 96px; padding: 12px 14px; resize: none; line-height: 1.5; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field .count { display: block; text-align: right; font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.check { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.sheet .submit { margin-top: 20px; }
.sheet .fine { text-align: center; margin-top: 10px; }
.done-mark { display: grid; place-items: center; width: 56px; height: 56px; margin: 10px auto 14px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
[data-v="c"] .done-mark { background: var(--ink); color: #fff; border-radius: 4px; }
.done-mark svg { width: 28px; height: 28px; }
.done { text-align: center; }
.done h2 { font-family: var(--display); font-size: 20px; font-weight: 700; }
[data-v="b"] .done h2 { font-family: var(--sans); font-weight: 650; }
.done p { color: var(--ink-2); margin-top: 6px; }
.done .kv { text-align: left; margin: 18px 0 20px; padding: 14px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); }
.optlist button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 50px; padding: 0 4px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font-size: 15px; text-align: left; }
.optlist button:last-child { border-bottom: 0; }
.optlist button[aria-checked="true"] { color: var(--accent); font-weight: 600; }
[data-v="c"] .optlist button[aria-checked="true"] { color: var(--ink); }
.tgl { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 46px; height: 28px; margin: 0; border-radius: 14px; background: var(--raised-2); border: 1px solid var(--line-2); cursor: pointer; transition: background .2s; }
.tgl::before { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink-2); transition: transform .2s, background .2s; }
.tgl:checked { background: var(--accent); border-color: transparent; }
.tgl:checked::before { transform: translateX(18px); background: var(--accent-ink); }
[data-v="c"] .tgl, [data-v="c"] .tgl::before { border-radius: 3px; }

/* ---------- 提示 ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 14px); z-index: 80; max-width: min(400px, calc(100% - 32px)); padding: 11px 16px; border-radius: var(--r-s); background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 500; text-align: center; opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: opacity .2s, transform .2s; }
body.no-tab .toast { bottom: calc(84px + var(--safe-b)); }
body.bare .toast, body.sub .toast { bottom: calc(24px + var(--safe-b)); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 登录（演示状态） ---------- */
.login { display: flex; flex-direction: column; min-height: 100dvh; padding: calc(28px + var(--safe-t)) 20px calc(28px + var(--safe-b)); }
.login .wordmark { font-size: 26px; }
.login .reel, .login .segbar { margin-top: 40px; }
.login h1 { font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1.25; margin-top: 34px; }
.login .lede { color: var(--ink-2); margin-top: 8px; }
.login form { margin-top: 10px; }
.login .grow { flex: 1; min-height: 24px; }
.login .fine { text-align: center; margin-top: 14px; }

@media (max-width: 359px) {
  .summary a { padding: 12px 10px; }
  .summary b { font-size: 21px; }
  .d-head .film { font-size: 29px; }
  .d-tabs { gap: 18px; }
  .kp-grid b { font-size: 15px; }
  .perf-head b { font-size: 21px; }
  .esum .hero b { font-size: 27px; }
  .estrip { grid-template-columns: 1fr 1fr 1fr; }
  .estrip .go { display: none; }
  .estrip > div b { font-size: 14.5px; }
  .seg-labels small, .reel-labels small { font-size: 9.5px; }
  .rail > * { flex-basis: 86%; }
  .hits-b a { flex-basis: 132px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
