/* 下一集 NextEp — 设计令牌与全局样式 (2026-10-02). 依据 .drama_1002/research/art_direction.md §6.3 (深色影院默认).
   原则: 只动 transform/opacity 做动画; 玻璃层 ≤2; 文字 ≥13pt; 点击区 ≥44pt; 安全区用 env(). */
:root {
  --bg: #0B0D12; --bg-el: #14161C; --bg-sheet: #1A1D25; --bg-card: #171A22;
  --fg: #F5F6F8; --fg-2: rgba(245,246,248,.72); --fg-3: rgba(245,246,248,.56); --fg-4: rgba(245,246,248,.38);
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --accent: #FF4D6D; --accent-2: #FF8A5B; --gold: #FFD27A; --blue: #5B8CFF; --cyan: #00F5FF; --pink: #FF6EC7;
  --glass: rgba(255,255,255,.08); --glass-line: rgba(255,255,255,.14);
  --r-pill: 999px; --r-thumb: 12px; --r-card: 16px; --r-sheet: 24px;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --tab-h: 56px; --tab-total: calc(var(--tab-h) + var(--safe-b));
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Noto Sans SC", sans-serif;
  --ease-out: cubic-bezier(.2,.8,.2,1); --ease-std: cubic-bezier(.4,0,.2,1);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 17px; line-height: 1.45; overscroll-behavior: none; -webkit-text-size-adjust: 100%; }
body { position: fixed; inset: 0; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
img { display: block; }
a { color: inherit; text-decoration: none; }
::-webkit-scrollbar { display: none; }
.hide { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- App frame ---------- */
#app { position: fixed; inset: 0; overflow: hidden; }
.view { position: absolute; inset: 0; background: var(--bg); overflow: hidden; transform: translate3d(0,0,0); }
.view.scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; }
.view.enter { animation: viewIn .32s var(--ease-out) both; }
.view.leave { animation: viewOut .26s var(--ease-std) both; }
.view.fade-enter { animation: fadeIn .22s ease both; }
@keyframes viewIn { from { transform: translate3d(12%,0,0); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes viewOut { from { transform: none; opacity: 1; } to { transform: translate3d(14%,0,0); opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .view.enter, .view.leave { animation-duration: .01s; } }
.page { padding: calc(var(--safe-t) + 8px) 16px calc(var(--tab-total) + 24px); min-height: 100%; }
.page.no-tab { padding-bottom: calc(var(--safe-b) + 24px); }

/* ---------- Tab bar ---------- */
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: var(--tab-total); padding-bottom: var(--safe-b);
  display: flex; align-items: stretch; z-index: 40; background: rgba(11,13,18,.82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line); transition: transform .3s var(--ease-out), opacity .3s; }
.tabbar.over { background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.55)); backdrop-filter: none; -webkit-backdrop-filter: none; border-top-color: transparent; }
.tabbar.gone { transform: translateY(110%); opacity: 0; pointer-events: none; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--fg-3); font-size: 11px; font-weight: 600; letter-spacing: .02em; position: relative; }
.tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease-out); }
.tab.on { color: var(--fg); }
.tab.on svg { transform: translateY(-1px) scale(1.06); }
.tab .dot { position: absolute; top: 8px; right: calc(50% - 16px); width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); }

/* ---------- Common bits ---------- */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; padding: calc(var(--safe-t) + 6px) 16px 10px; background: linear-gradient(var(--bg) 70%, rgba(11,13,18,0)); margin: 0 -16px; }
.topbar h1 { font-family: var(--font-display); font-size: 28px; font-weight: 800; letter-spacing: -.01em; flex: 1; }
.topbar .sub { font-size: 13px; color: var(--fg-3); font-weight: 500; margin-top: 2px; }
.iconbtn { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--glass); border: 1px solid var(--glass-line); color: var(--fg); flex: none; }
.iconbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.iconbtn:active { transform: scale(.94); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--r-pill); background: var(--glass); border: 1px solid var(--glass-line); font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill.on { background: var(--fg); color: #0B0D12; border-color: var(--fg); }
.pill.accent { background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-color: transparent; color: #fff; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 10px; margin: 0 -16px; scroll-snap-type: x proximity; }
.chips .pill { scroll-snap-align: start; flex: none; }
.sec { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 0 12px; }
.sec h2 { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.sec h2 .emo { font-size: 18px; }
.sec .more { font-size: 13px; color: var(--fg-3); font-weight: 600; display: inline-flex; align-items: center; gap: 2px; min-height: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 14px; font-size: 16px; font-weight: 700; letter-spacing: .01em; transition: transform .12s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 10px 28px rgba(255,77,109,.32); }
.btn.ghost { background: var(--glass); border: 1px solid var(--glass-line); color: var(--fg); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }
.badge { position: absolute; top: 8px; left: 8px; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .02em; display: inline-flex; align-items: center; color: #fff; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.badge.hot { background: linear-gradient(90deg, #FF4D6D, #FFB347); color: #1A0B1E; }
.badge.new { background: #3756C8; }
.badge.done { background: #2A2E39; }
.badge.rank { background: var(--gold); color: #2A1B00; font-weight: 900; }
.skel { background: linear-gradient(100deg, #161922 30%, #1F232E 50%, #161922 70%); background-size: 200% 100%; animation: skel 1.4s linear infinite; }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.toast { position: fixed; left: 50%; top: calc(var(--safe-t) + 70px); transform: translate(-50%, -8px); z-index: 90; padding: 10px 16px; border-radius: var(--r-pill);
  background: rgba(26,29,37,.92); border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 14px; font-weight: 600; opacity: 0; transition: .25s var(--ease-out); pointer-events: none; max-width: 86vw; text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.empty { text-align: center; padding: 56px 24px; color: var(--fg-3); }
.empty .ico { font-size: 44px; margin-bottom: 12px; }
.empty h3 { color: var(--fg); font-size: 17px; margin-bottom: 6px; font-weight: 700; }
.empty p { font-size: 14px; line-height: 1.5; }
.empty .btn { margin-top: 18px; }

/* ---------- Sheets ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 60; opacity: 0; transition: opacity .25s; }
.scrim.on { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: var(--bg-sheet); border-radius: var(--r-sheet) var(--r-sheet) 0 0; max-height: 82vh; display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform .34s var(--ease-out); box-shadow: 0 -20px 60px rgba(0,0,0,.5); padding-bottom: var(--safe-b); }
.sheet.on { transform: none; }
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 10px auto 4px; }
.sheet .sh-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 18px 12px; }
.sheet .sh-head h3 { font-size: 17px; font-weight: 700; }
.sheet .sh-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 16px 16px; flex: 1; }

/* ---------- Cards / grids ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 10px; }
.card { position: relative; }
.card .cov { position: relative; aspect-ratio: 3/4; border-radius: var(--r-thumb); overflow: hidden; background: var(--bg-el); }
.card .cov img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; opacity: 0; transition: opacity .35s; }
.card .cov img.ok { opacity: 1; }
.card .cov .plays { position: absolute; left: 8px; bottom: 7px; font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.8); display: flex; align-items: center; gap: 3px; }
.card .cov .eps { position: absolute; right: 8px; bottom: 7px; font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.card .cov::after { content: ""; position: absolute; inset: auto 0 0 0; height: 42%; background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.6)); pointer-events: none; }
.card .t { margin-top: 7px; font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card .g { margin-top: 3px; font-size: 11px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scroll-snap-type: x proximity; }
.rail .card { flex: none; width: 118px; scroll-snap-align: start; }
.rail .card.big { width: 150px; }
.rail .card .rk { position: absolute; left: -2px; top: -6px; font-family: var(--font-display); font-size: 40px; font-weight: 900; font-style: italic; line-height: 1; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.6); -webkit-text-stroke: 1px rgba(0,0,0,.25); z-index: 2; }
.rail .card.r1 .rk { color: var(--gold); } .rail .card.r2 .rk { color: #E6E8EE; } .rail .card.r3 .rk { color: #E7A977; }

/* ---------- Hero ---------- */
.hero { position: relative; margin: 6px -16px 0; height: 300px; overflow: hidden; }
.hero .track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; }
.hero .slide { flex: none; width: 100%; height: 100%; position: relative; scroll-snap-align: center; }
.hero .slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero .slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,13,18,.1) 0%, rgba(11,13,18,0) 30%, rgba(11,13,18,.92) 100%); }
.hero .cap { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; }
.hero .cap .k { font-size: 11px; font-weight: 800; letter-spacing: .18em; color: var(--gold); margin-bottom: 6px; }
.hero .cap h3 { font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.hero .cap p { margin-top: 6px; font-size: 13px; color: var(--fg-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero .cap .row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.hero .dots { position: absolute; right: 18px; top: calc(var(--safe-t) + 10px); display: flex; gap: 5px; z-index: 2; }
.hero .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.4); transition: .25s; }
.hero .dots i.on { width: 18px; border-radius: 3px; background: #fff; }

/* ---------- Feed / player overlays ---------- */
.feed { position: absolute; inset: 0; overflow-y: scroll; scroll-snap-type: y mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; background: #000; }
.fcard { position: relative; height: 100%; width: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #000; }
.fcard .poster { position: absolute; inset: 0; background-size: cover; background-position: 50% 30%; filter: brightness(.9); transform: scale(1.02); }
.fcard .stage { position: absolute; inset: 0; }
.ov-top { position: absolute; left: 0; right: 0; top: 0; padding: calc(var(--safe-t) + 8px) 12px 28px; z-index: 6; display: flex; align-items: center; gap: 10px; background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,0)); pointer-events: none; }
.ov-top > * { pointer-events: auto; }
.ov-top .seg { display: flex; gap: 18px; flex: 1; justify-content: center; }
.ov-top .seg b { font-size: 17px; font-weight: 700; color: rgba(255,255,255,.6); position: relative; padding: 4px 2px; }
.ov-top .seg b.on { color: #fff; }
.ov-top .seg b.on::after { content: ""; position: absolute; left: 50%; bottom: -3px; width: 18px; height: 3px; border-radius: 2px; background: #fff; transform: translateX(-50%); }
.ov-top .epchip { height: 32px; padding: 0 12px; border-radius: var(--r-pill); background: rgba(0,0,0,.3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.14); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.ov-rail { position: absolute; right: 8px; bottom: calc(var(--safe-b) + var(--rail-off, 150px)); display: flex; flex-direction: column; gap: 14px; align-items: center; z-index: 6; }
.ov-rail .act { width: 56px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.85); color: #fff; }
.ov-rail .act .ico { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.08); transition: transform .15s var(--ease-out); }
.ov-rail .act .ico svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.ov-rail .act:active .ico { transform: scale(.88); }
.ov-rail .act.on .ico svg { fill: var(--accent); stroke: var(--accent); }
.ov-rail .act.fol.on .ico svg { fill: var(--gold); stroke: var(--gold); }
.ov-rail .act .ico.av { padding: 0; overflow: hidden; border: 2px solid #fff; background: var(--bg-el); }
.ov-rail .act .ico.av img { width: 100%; height: 100%; object-fit: cover; }
.ov-bottom { position: absolute; left: 0; right: 76px; bottom: calc(var(--safe-b) + var(--bot-off, 56px)); padding: 0 14px 12px; z-index: 6; background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.05)); }
.ov-bottom .ttl { display: flex; align-items: center; gap: 10px; }
.ov-bottom .ttl img { width: 36px; height: 48px; border-radius: 6px; object-fit: cover; flex: none; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.ov-bottom .ttl .tx { min-width: 0; }
.ov-bottom .ttl h3 { font-size: 16px; font-weight: 800; text-shadow: 0 1px 4px rgba(0,0,0,.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 4px; }
.ov-bottom .ttl h3 svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2.4; flex: none; opacity: .8; }
.ov-bottom .ttl .ep { font-size: 12px; color: rgba(255,255,255,.78); margin-top: 2px; text-shadow: 0 1px 4px rgba(0,0,0,.8); display: flex; gap: 6px; align-items: center; }
.ov-bottom .ttl .ep .tagx { background: rgba(255,255,255,.16); border-radius: 4px; padding: 0 5px; font-weight: 700; font-size: 11px; }
.ov-bottom .desc { margin-top: 8px; font-size: 13px; color: rgba(255,255,255,.88); text-shadow: 0 1px 4px rgba(0,0,0,.8); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ov-bottom .desc.open { -webkit-line-clamp: unset; }
.ov-bottom .desc b { color: #fff; font-weight: 700; margin-left: 4px; }
.ov-prog { position: absolute; left: 12px; right: 12px; bottom: calc(var(--safe-b) + var(--prog-off, 44px)); display: flex; gap: 3px; height: 14px; align-items: flex-end; z-index: 6; }
.ov-prog i { flex: 1; height: 2.5px; background: rgba(255,255,255,.28); border-radius: 2px; overflow: hidden; position: relative; transition: height .15s; }
.ov-prog i b { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #fff; border-radius: 2px; }
.ov-prog i.done b { width: 100%; }
.ov-prog.drag i { height: 5px; }
.ov-gate { position: absolute; inset: 0; z-index: 12; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, rgba(0,0,0,.05), rgba(0,0,0,.45)); }
.ov-gate .play { width: 86px; height: 86px; border-radius: 50%; background: rgba(255,255,255,.14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1.5px solid rgba(255,255,255,.4); display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 40px rgba(0,0,0,.45); animation: pulse 1.8s ease-in-out infinite; }
.ov-gate .play svg { width: 36px; height: 36px; fill: #fff; margin-left: 6px; }
.ov-gate .hint { position: absolute; left: 0; right: 0; bottom: calc(var(--safe-b) + 190px); text-align: center; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-shadow: 0 1px 6px rgba(0,0,0,.9); }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.ov-paused { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; border-radius: 50%; transform: translate(-50%,-50%) scale(.9); opacity: 0; transition: .18s; z-index: 7; pointer-events: none; background: rgba(0,0,0,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; }
.ov-paused.on { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.ov-paused svg { width: 32px; height: 32px; fill: #fff; margin-left: 4px; }
.ov-sound { position: absolute; left: 14px; top: calc(var(--safe-t) + 58px); z-index: 7; height: 34px; padding: 0 12px; border-radius: var(--r-pill); background: rgba(0,0,0,.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.14); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; animation: fadeIn .4s both; }
.heart-pop { position: absolute; z-index: 9; pointer-events: none; font-size: 76px; animation: heart .9s ease-out forwards; filter: drop-shadow(0 4px 12px rgba(0,0,0,.5)); }
@keyframes heart { 0% { transform: scale(.4) rotate(-14deg); opacity: 0; } 25% { transform: scale(1.18) rotate(6deg); opacity: 1; } 100% { transform: scale(1) translateY(-70px); opacity: 0; } }
.speed-ind { position: absolute; left: 50%; top: calc(var(--safe-t) + 60px); transform: translateX(-50%); z-index: 8; height: 30px; padding: 0 12px; border-radius: var(--r-pill); background: rgba(0,0,0,.45); font-size: 13px; font-weight: 800; display: none; align-items: center; gap: 6px; }
.speed-ind.on { display: inline-flex; }

/* 结尾钩子卡 */
.hook { position: absolute; left: 16px; right: 16px; bottom: calc(var(--safe-b) + 108px); z-index: 14; background: linear-gradient(135deg, rgba(44,12,32,.9), rgba(12,12,22,.9)); border: 1px solid rgba(255,210,122,.35); border-radius: 18px; padding: 16px 16px 14px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transform: translateY(26px); opacity: 0; transition: .4s var(--ease-out); box-shadow: 0 20px 60px rgba(0,0,0,.5); pointer-events: none; }
.hook.on { transform: none; opacity: 1; pointer-events: auto; }
.hook .k { font-size: 11px; letter-spacing: .2em; color: var(--gold); font-weight: 800; margin-bottom: 6px; display: flex; justify-content: space-between; }
.hook .h { font-size: 16px; line-height: 1.5; font-weight: 700; }
.hook .row { display: flex; gap: 10px; margin-top: 12px; align-items: center; }
.hook .cta { flex: 1; height: 46px; border-radius: 12px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; box-shadow: 0 8px 24px rgba(255,77,109,.35); }
.hook .alt { height: 46px; padding: 0 14px; border-radius: 12px; background: var(--glass); border: 1px solid var(--glass-line); font-weight: 700; font-size: 13px; display: flex; align-items: center; }
.hook .ring { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); border-top-color: #fff; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 选集抽屉 */
.epgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding-bottom: 8px; }
.epgrid .e { aspect-ratio: 1; border-radius: 12px; background: var(--bg-el); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; position: relative; }
.epgrid .e.cur { border-color: var(--accent); color: var(--accent); background: rgba(255,77,109,.1); }
.epgrid .e.seen { color: var(--fg-3); }
.epgrid .e.lock { color: var(--fg-4); }
.epgrid .e.lock small { font-size: 9px; font-weight: 600; margin-top: 2px; color: var(--fg-4); }
.epgrid .e .bar { position: absolute; left: 10px; right: 10px; bottom: 7px; height: 2px; border-radius: 1px; background: var(--line-2); overflow: hidden; }
.epgrid .e .bar b { display: block; height: 100%; background: var(--accent); }
.epgrid .e.cur .eq { position: absolute; right: 6px; top: 6px; display: flex; gap: 2px; align-items: flex-end; height: 10px; }
.epgrid .e.cur .eq i { width: 2px; background: var(--accent); animation: eq .8s ease-in-out infinite; }
.epgrid .e.cur .eq i:nth-child(2) { animation-delay: .2s; } .epgrid .e.cur .eq i:nth-child(3) { animation-delay: .4s; }
@keyframes eq { 0%,100% { height: 3px; } 50% { height: 10px; } }
.eprange { display: flex; gap: 8px; margin-bottom: 12px; overflow-x: auto; }

/* 评论 / 弹幕 */
.cmt { display: flex; gap: 10px; padding: 10px 0; }
.cmt .av { width: 34px; height: 34px; border-radius: 50%; background: var(--bg-el); flex: none; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; color: #fff; overflow: hidden; }
.cmt .av img { width: 100%; height: 100%; object-fit: cover; }
.cmt .bd { flex: 1; min-width: 0; }
.cmt .u { font-size: 12px; color: var(--fg-3); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.cmt .u .role { background: rgba(255,210,122,.16); color: var(--gold); border-radius: 4px; padding: 0 5px; font-size: 10px; }
.cmt .u .t { font-weight: 400; }
.cmt .x { font-size: 15px; margin-top: 2px; line-height: 1.45; }
.cmt .lk { font-size: 12px; color: var(--fg-3); display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.cmt.reply { margin-left: 44px; padding-top: 6px; animation: viewIn .3s var(--ease-out) both; }
.cmt.reply .bd { background: var(--bg-el); border-radius: 12px; padding: 8px 10px; }
.cmtbar { display: flex; gap: 8px; padding: 10px 16px 6px; border-top: 1px solid var(--line); background: var(--bg-sheet); }
.cmtbar input { flex: 1; height: 42px; border-radius: 12px; background: var(--bg-el); border: 1px solid var(--line); padding: 0 14px; font-size: 15px; outline: none; color: var(--fg); }
.cmtbar input::placeholder { color: var(--fg-4); }
.cmtbar button { height: 42px; padding: 0 16px; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 800; font-size: 14px; }
.cmtbar button:disabled { opacity: .4; }
.dm-layer { position: absolute; left: 0; right: 0; top: calc(var(--safe-t) + 56px); height: 22%; z-index: 5; pointer-events: none; overflow: hidden; }
.dm { position: absolute; right: -40%; white-space: nowrap; font-size: 14px; font-weight: 600; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 0 6px rgba(0,0,0,.5); padding: 3px 10px; border-radius: var(--r-pill); background: rgba(0,0,0,.28); animation: dm 9s linear forwards; will-change: transform; }
.dm.me { background: rgba(255,77,109,.5); border: 1px solid rgba(255,255,255,.5); }
@keyframes dm { from { transform: translateX(0); } to { transform: translateX(calc(-100vw - 100%)); } }

/* ---------- Detail ---------- */
.dhero { position: relative; height: 62vh; min-height: 420px; margin: 0 -16px; overflow: hidden; }
.dhero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.dhero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,13,18,.35) 0%, rgba(11,13,18,0) 25%, rgba(11,13,18,.35) 60%, var(--bg) 100%); }
.dhero .nav { position: absolute; left: 12px; right: 12px; top: calc(var(--safe-t) + 6px); display: flex; justify-content: space-between; z-index: 2; }
.dhead { position: relative; margin-top: -120px; z-index: 2; }
.dhead h1 { font-family: var(--font-display); font-size: 30px; font-weight: 900; letter-spacing: -.01em; line-height: 1.15; }
.dhead .en { font-size: 14px; color: var(--fg-2); margin-top: 4px; font-weight: 600; letter-spacing: .02em; }
.dhead .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dhead .tags span { font-size: 12px; font-weight: 600; color: var(--fg-2); background: var(--glass); border: 1px solid var(--glass-line); border-radius: 6px; padding: 2px 8px; }
.stats { display: flex; gap: 18px; margin-top: 14px; }
.stats div b { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.stats div span { font-size: 11px; color: var(--fg-3); font-weight: 600; }
.ctarow { display: flex; gap: 10px; margin-top: 16px; }
.ctarow .btn.primary { flex: 1; }
.ctarow .btn.ghost { width: 48px; padding: 0; }
.ctarow .btn.ghost svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ctarow .btn.ghost.on { color: var(--gold); border-color: rgba(255,210,122,.5); }
.ctarow .btn.ghost.on svg { fill: var(--gold); stroke: var(--gold); }
.synop { margin-top: 18px; font-size: 15px; line-height: 1.65; color: var(--fg-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.synop.open { -webkit-line-clamp: unset; }
.upd { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--bg-el); border: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font-size: 13px; }
.upd .ico { font-size: 20px; }
.upd b { font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.upd .cd { margin-left: auto; font-weight: 800; font-size: 15px; color: var(--fg); font-variant-numeric: tabular-nums; }
.cast { display: flex; gap: 14px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 6px; }
.cast .c { flex: none; width: 76px; text-align: center; }
.cast .c .av { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto; overflow: hidden; background: var(--bg-el); border: 2px solid var(--line-2); }
.cast .c .av img { width: 100%; height: 100%; object-fit: cover; }
.cast .c b { display: block; font-size: 13px; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cast .c span { font-size: 11px; color: var(--fg-3); }
.epgrid.detail { grid-template-columns: repeat(6, 1fr); gap: 8px; }
.epgrid.detail .e { font-size: 15px; border-radius: 10px; }

/* ---------- Follow / history rows ---------- */
.row { display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.row .cov { width: 72px; aspect-ratio: 3/4; border-radius: 10px; overflow: hidden; background: var(--bg-el); flex: none; position: relative; }
.row .cov img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.row .bd { flex: 1; min-width: 0; }
.row .bd h3 { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .bd .m { font-size: 13px; color: var(--fg-3); margin-top: 3px; }
.row .bd .bar { height: 3px; border-radius: 2px; background: var(--line-2); margin-top: 10px; overflow: hidden; }
.row .bd .bar b { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.row .bd .newtag { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 800; color: #fff; background: var(--accent); border-radius: 4px; padding: 0 5px; vertical-align: middle; }
.row .act { flex: none; }
.segs { display: flex; gap: 6px; padding: 4px; background: var(--bg-el); border-radius: 12px; margin: 8px 0 6px; }
.segs b { flex: 1; text-align: center; height: 36px; line-height: 36px; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--fg-3); }
.segs b.on { background: var(--bg-sheet); color: var(--fg); box-shadow: 0 2px 8px rgba(0,0,0,.3); }

/* ---------- Rank ---------- */
.rk-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.rk-row .n { width: 30px; font-family: var(--font-display); font-size: 24px; font-weight: 900; font-style: italic; color: var(--fg-3); text-align: center; }
.rk-row.r1 .n { color: var(--gold); } .rk-row.r2 .n { color: #E6E8EE; } .rk-row.r3 .n { color: #E7A977; }
.rk-row .cov { width: 56px; aspect-ratio: 3/4; border-radius: 8px; overflow: hidden; background: var(--bg-el); flex: none; }
.rk-row .cov img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.rk-row .bd { flex: 1; min-width: 0; }
.rk-row .bd h3 { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-row .bd .m { font-size: 12px; color: var(--fg-3); margin-top: 3px; display: flex; gap: 8px; }
.rk-row .heat { font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--accent); display: flex; align-items: center; gap: 3px; }

/* ---------- Me ---------- */
.me-head { display: flex; align-items: center; gap: 14px; padding: 10px 0 6px; }
.me-head .av { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--blue)); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 900; overflow: hidden; }
.me-head .av img { width: 100%; height: 100%; object-fit: cover; }
.me-head h2 { font-size: 22px; font-weight: 800; }
.me-head p { font-size: 13px; color: var(--fg-3); margin-top: 2px; }
.me-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.me-stats div { background: var(--bg-el); border: 1px solid var(--line); border-radius: 14px; padding: 12px 10px; text-align: center; }
.me-stats b { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.me-stats span { font-size: 11px; color: var(--fg-3); font-weight: 600; }
.list { background: var(--bg-el); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-top: 14px; }
.list .it { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 14px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.list .it:first-child { border-top: 0; }
.list .it .ic { width: 28px; text-align: center; font-size: 18px; }
.list .it .v { margin-left: auto; color: var(--fg-3); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.sw { width: 46px; height: 28px; border-radius: 14px; background: var(--line-2); position: relative; transition: .2s; flex: none; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: .2s var(--ease-out); }
.sw.on { background: var(--accent); } .sw.on::after { transform: translateX(18px); }

/* ---------- Language gate ---------- */
.lang { position: absolute; inset: 0; z-index: 70; background: radial-gradient(120% 80% at 50% 0%, #2A0F1E 0%, var(--bg) 60%); display: flex; flex-direction: column; justify-content: center; padding: 0 28px calc(var(--safe-b) + 40px); }
.lang .logo { width: 72px; height: 72px; border-radius: 20px; background: linear-gradient(135deg, #1A0B1E, var(--accent)); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; box-shadow: 0 16px 40px rgba(255,77,109,.3); }
.lang .logo svg { width: 36px; height: 36px; fill: #fff; }
.lang h1 { font-family: var(--font-display); font-size: 30px; font-weight: 900; line-height: 1.2; }
.lang p { color: var(--fg-2); margin-top: 8px; font-size: 15px; }
.lang .opts { display: grid; gap: 12px; margin-top: 28px; }
.lang .opt { text-align: left; min-height: 76px; padding: 18px 18px; border-radius: 18px; background: var(--bg-el); border: 1.5px solid var(--line-2); display: flex; align-items: center; gap: 14px; }
.lang .opt .f { font-size: 28px; }
.lang .opt b { display: block; font-size: 19px; font-weight: 800; }
.lang .opt span { font-size: 13px; color: var(--fg-3); }
.lang .opt:active { border-color: var(--accent); }

/* ---------- Search ---------- */
.search { display: flex; align-items: center; gap: 8px; height: 44px; border-radius: 14px; background: var(--bg-el); border: 1px solid var(--line); padding: 0 12px; }
.search svg { width: 18px; height: 18px; stroke: var(--fg-3); fill: none; stroke-width: 2; flex: none; }
.search input { flex: 1; background: none; border: 0; outline: none; font-size: 15px; height: 100%; min-width: 0; }
.search input::placeholder { color: var(--fg-4); }
.search .x { color: var(--fg-3); font-size: 18px; width: 28px; text-align: center; }

/* ---------- Splash ---------- */
#splash { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity .4s; }
#splash.off { opacity: 0; pointer-events: none; }
#splash .logo { width: 84px; height: 84px; border-radius: 24px; background: linear-gradient(135deg, #1A0B1E, var(--accent)); display: flex; align-items: center; justify-content: center; box-shadow: 0 20px 50px rgba(255,77,109,.3); animation: pulse 1.6s ease-in-out infinite; }
#splash .logo svg { width: 42px; height: 42px; fill: #fff; }
#splash b { margin-top: 18px; font-size: 20px; font-weight: 900; letter-spacing: .02em; }
#splash span { margin-top: 4px; font-size: 13px; color: var(--fg-3); }

/* ---- 10/03 补齐验收项 ---- */
.aichip { height: 22px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .04em; display: inline-flex; align-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); color: #fff; flex: none; }
.ov-top .aichip { pointer-events: auto; }
.mp-who[data-who="c2"] { color: #9FC0FF; }
.mp-who[data-who="c3"] { color: #B8F2C8; }
.mp-who[data-who="narr"] { color: rgba(255,255,255,.7); }
.ov-fail { position: absolute; inset: 0; z-index: 13; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(0,0,0,.45); }
.ov-fail b { font-size: 16px; font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.swipe-hint { position: absolute; left: 50%; bottom: calc(var(--safe-b) + 230px); transform: translateX(-50%); z-index: 11; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,.9); pointer-events: none; animation: hintUp 1.6s ease-in-out infinite; }
.swipe-hint svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes hintUp { 0%,100% { transform: translate(-50%, 0); opacity: .95; } 50% { transform: translate(-50%, -10px); opacity: .6; } }
.cmt-segs { display: flex; gap: 6px; padding: 0 18px 10px; }
.cmt-segs b { height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; background: var(--bg-el); color: var(--fg-3); border: 1px solid var(--line); }
.cmt-segs b.on { background: var(--fg); color: #0B0D12; border-color: var(--fg); }
.tab .dot { display: none; }
.tab.hasnew .dot { display: block; }
.confirm { padding: 6px 18px 18px; }
.confirm h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.confirm p { font-size: 14px; color: var(--fg-2); line-height: 1.5; }
.confirm .row { display: flex; gap: 10px; margin-top: 18px; }
.confirm .row .btn { flex: 1; }
.hook.rest .cta { background: var(--glass); border: 1px solid var(--glass-line); box-shadow: none; }

.reduce-motion .dm { animation-duration: 0s; opacity: 0; }
.reduce-motion .view.enter, .reduce-motion .view.leave { animation: fadeIn .2s ease both; }
.reduce-motion .swipe-hint, .reduce-motion .ov-gate .play { animation: none; }
