/* 星海影视客户端 · iOS 主屏幕版 / 华为鸿蒙版共用样式
   白底 + 品牌青（与安卓版一致），支持深色模式；播放器始终深色。 */

:root {
  --brand: #00c2c2;
  --brand-2: #0a9bc4;
  --brand-ink: #009a9a;
  --brand-soft: #e3f7f7;
  --grad: linear-gradient(135deg, #2fdccf 0%, #00c2c2 45%, #0a9bc4 100%);
  --ink: #111418;
  --ink2: #5c636c;
  --muted: #979ea7;
  --line: #eef0f2;
  --line2: #e3e6ea;
  --bg: #ffffff;
  --bg2: #f5f6f8;
  --bg3: #eceef1;
  --card: #ffffff;
  --mask: rgba(10, 12, 15, .48);
  --score: #ff7a1a;
  --hot: #ff4d4f;
  --gold: #d6ab56;
  --gold-2: #f3d79b;
  --gold-ink: #3a2a0a;
  --ok: #19b36b;
  --r-s: 8px;
  --r: 12px;
  --r-l: 16px;
  --tab-h: 54px;
  --head-h: 48px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --shadow: 0 6px 24px rgba(17, 20, 24, .08);
  --shadow-s: 0 2px 8px rgba(17, 20, 24, .06);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "HarmonyOS Sans", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --num: "DIN Alternate", "Bahnschrift", "HarmonyOS Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
html[data-client="harmony"] {
  --font: "HarmonyOS Sans SC", "HarmonyOS Sans", -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
html[data-theme="dark"] {
  --brand-ink: #2fd6d6;
  --brand-soft: rgba(0, 194, 194, .15);
  --ink: #eef1f4;
  --ink2: #b0b7c0;
  --muted: #7b828c;
  --line: #22262c;
  --line2: #2c3138;
  --bg: #0e1013;
  --bg2: #181b20;
  --bg3: #22262c;
  --card: #15181c;
  --mask: rgba(0, 0, 0, .6);
  --shadow: 0 6px 24px rgba(0, 0, 0, .35);
  --shadow-s: 0 2px 8px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overscroll-behavior: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, .selectable { -webkit-user-select: text; user-select: text; }
button, input, textarea, select { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; margin: 0; cursor: pointer; text-align: inherit; }
button:disabled { opacity: .5; cursor: default; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { flex: none; }
h1, h2, h3, h4, p { margin: 0; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico.fill { fill: currentColor; stroke: none; }
.ell { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ell2 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.brand-t { color: var(--brand-ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- 外壳：页面栈 ---------- */
#app { position: fixed; inset: 0; overflow: hidden; background: var(--bg); }
.stack { position: absolute; inset: 0; }
.page {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  background: var(--bg); overflow: hidden; will-change: transform;
}
.page.is-tab { padding-bottom: calc(var(--tab-h) + var(--safe-b)); }
.page.under { pointer-events: none; }
.page.enter { animation: pg-in .28s cubic-bezier(.2, .8, .2, 1) both; }
.page.leave { animation: pg-out .24s cubic-bezier(.4, 0, .6, 1) both; z-index: 5; }
.page.dim-out { animation: pg-dim .28s cubic-bezier(.2, .8, .2, 1) both; }
.page.dim-in { animation: pg-undim .24s cubic-bezier(.4, 0, .6, 1) both; }
@keyframes pg-in { from { transform: translate3d(100%, 0, 0); box-shadow: -8px 0 24px rgba(0, 0, 0, .08); } to { transform: none; } }
@keyframes pg-out { from { transform: none; } to { transform: translate3d(100%, 0, 0); } }
@keyframes pg-dim { from { transform: none; } to { transform: translate3d(-22%, 0, 0); } }
@keyframes pg-undim { from { transform: translate3d(-22%, 0, 0); } to { transform: none; } }
.page.fade { animation: pg-fade .2s ease both; }
@keyframes pg-fade { from { opacity: 0; } to { opacity: 1; } }
.page-body { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; position: relative; }
.page-body.no-scroll { overflow: hidden; }
.pad-b { height: calc(24px + var(--safe-b)); }
.page.is-tab .pad-b { height: 20px; }

/* 顶栏 */
.nav {
  flex: none; position: relative; z-index: 10; display: flex; align-items: center; gap: 4px;
  height: calc(var(--head-h) + var(--safe-t)); padding: var(--safe-t) 6px 0; background: var(--bg);
}
.nav.line { box-shadow: 0 1px 0 var(--line); }
.nav h1 { flex: 1; min-width: 0; font-size: 17px; font-weight: 600; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nav h1.left { text-align: left; padding-left: 10px; font-size: 22px; font-weight: 700; }
.nav .side { width: 88px; display: flex; align-items: center; }
.nav .side.r { justify-content: flex-end; }
.txt-btn { padding: 0 10px; height: 36px; font-size: 15px; color: var(--ink); white-space: nowrap; }
.txt-btn.brand { color: var(--brand-ink); font-weight: 600; }
.nav.clear { position: absolute; left: 0; right: 0; top: 0; background: transparent; color: #fff; }
.nav.clear .icon-btn { background: rgba(0, 0, 0, .28); }
.icon-btn { width: 40px; height: 40px; border-radius: 20px; display: grid; place-items: center; color: inherit; position: relative; flex: none; }
.icon-btn:active { background: var(--bg2); }
.icon-btn .dot { position: absolute; top: 8px; right: 8px; }

/* 底部标签栏 */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 40; display: flex;
  height: calc(var(--tab-h) + var(--safe-b)); padding: 0 var(--safe-r) var(--safe-b) var(--safe-l);
  background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 -1px 0 var(--line);
  transition: transform .25s ease;
}
html[data-theme="dark"] .tabbar { background: rgba(18, 20, 24, .94); }
.tabbar.off { transform: translateY(110%); }
.tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: 10.5px; position: relative; }
.tabbar button .ico { width: 25px; height: 25px; stroke-width: 1.7; }
.tabbar button.on { color: var(--brand-ink); font-weight: 600; }
.tabbar button.on .ico.o { display: none; }
.tabbar button:not(.on) .ico.f { display: none; }
.tabbar button.vip-tab.on { color: #b8892e; }
html[data-theme="dark"] .tabbar button.vip-tab.on { color: var(--gold-2); }
.tabbar .badge { position: absolute; top: 5px; left: calc(50% + 6px); }
.tabbar button:active .ico { transform: scale(.9); }

/* ---------- 小部件 ---------- */
.dot { width: 8px; height: 8px; border-radius: 4px; background: var(--hot); display: inline-block; box-shadow: 0 0 0 2px var(--bg); }
.badge { min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--hot); color: #fff; font-size: 10px; line-height: 16px; text-align: center; font-weight: 600; box-shadow: 0 0 0 2px var(--bg); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 18px; border-radius: 20px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.btn.block { display: flex; width: 100%; height: 46px; border-radius: 23px; font-size: 16px; }
.btn.sm { height: 30px; padding: 0 12px; border-radius: 15px; font-size: 13px; }
.btn.xs { height: 26px; padding: 0 10px; border-radius: 13px; font-size: 12px; }
.btn.pri { background: var(--grad); color: #fff; box-shadow: 0 4px 14px rgba(0, 170, 190, .28); }
.btn.pri:active { filter: brightness(.95); }
.btn.soft { background: var(--brand-soft); color: var(--brand-ink); }
.btn.ghost { background: var(--bg2); color: var(--ink); }
.btn.line { border: 1px solid var(--line2); color: var(--ink); }
.btn.gold { background: linear-gradient(135deg, #f6dfa8, #d9ae5b); color: var(--gold-ink); box-shadow: 0 4px 14px rgba(200, 150, 60, .28); }
.btn.dark { background: #1d2128; color: #fff; }
.btn.danger { background: rgba(255, 77, 79, .1); color: var(--hot); }
.btn .ico { width: 18px; height: 18px; }
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 13px; border-radius: 15px; background: var(--bg2); color: var(--ink2); font-size: 13px; white-space: nowrap; flex: none; }
.chip.on { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.chip .x { margin-left: 4px; opacity: .6; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar, .rail::-webkit-scrollbar, .scroll-x::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.scroll-x { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.seg { display: inline-flex; background: var(--bg2); border-radius: 16px; padding: 3px; }
.seg button { height: 26px; padding: 0 12px; border-radius: 13px; font-size: 13px; color: var(--ink2); }
.seg button.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-s); }
.switch { position: relative; width: 46px; height: 28px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 14px; background: var(--bg3); transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 12px; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); transition: transform .2s; }
.switch input:checked + i { background: var(--brand); }
.switch input:checked + i::after { transform: translateX(18px); }
.tag-vip { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px; background: linear-gradient(135deg, #f6dfa8, #d9ae5b); color: var(--gold-ink); font-size: 11px; font-weight: 700; font-style: italic; letter-spacing: .02em; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--bg3); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-row { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 22px 0; color: var(--muted); font-size: 12px; }
.loading-row .spinner { width: 18px; height: 18px; border-width: 2px; }
.end-row { padding: 22px 0 8px; text-align: center; color: var(--muted); font-size: 12px; }
.end-row::before, .end-row::after { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--line2); vertical-align: middle; margin: 0 10px; }
.empty { padding: 56px 32px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.7; }
.empty .art { width: 120px; height: 96px; margin-bottom: 4px; color: var(--line2); }
.empty b { color: var(--ink); font-size: 15px; font-weight: 600; }
.empty .btn { margin-top: 8px; }
.sk { background: linear-gradient(90deg, var(--bg2) 25%, var(--bg3) 37%, var(--bg2) 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: var(--r-s); }
@keyframes sk { from { background-position: 100% 50%; } to { background-position: 0 50%; } }
.hr { height: 8px; background: var(--bg2); }

/* 区块标题 */
.sh { display: flex; align-items: center; gap: 8px; padding: 20px 12px 10px; }
.sh h3 { font-size: 18px; font-weight: 700; letter-spacing: .01em; }
.sh .sub { font-size: 12px; color: var(--muted); }
.sh .more { margin-left: auto; display: flex; align-items: center; color: var(--muted); font-size: 13px; padding: 4px 0 4px 8px; }
.sh .more .ico { width: 14px; height: 14px; }
.sh .mark { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; color: #fff; }
.sh .mark .ico { width: 14px; height: 14px; stroke-width: 2.2; }

/* ---------- 影片卡片 ---------- */
.vgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 9px; padding: 0 12px; }
.vgrid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
.vcard { display: block; min-width: 0; text-align: left; position: relative; }
.vcard:active .pic { opacity: .86; }
.pic { position: relative; overflow: hidden; border-radius: var(--r-s); background: var(--bg2); aspect-ratio: 3 / 4; isolation: isolate; }
.pic.tall { aspect-ratio: 2 / 3; }
.pic.wide { aspect-ratio: 16 / 9; }
.pic img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.pic img.on { opacity: 1; }
.pic img.err { opacity: 0; }
.pic::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg2) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9ced4' stroke-width='1.5'><rect x='3' y='5' width='18' height='14' rx='2'/><path d='M10 9.5v5l4-2.5z' fill='%23c9ced4'/></svg>") center / 34% no-repeat; }
.pic .shade { position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: linear-gradient(transparent, rgba(0, 0, 0, .62)); pointer-events: none; }
.pic .rm { position: absolute; right: 6px; bottom: 5px; left: 34px; text-align: right; color: #fff; font-size: 11px; line-height: 1.2; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pic .sc { position: absolute; left: 6px; bottom: 4px; color: #ffb62e; font-family: var(--num); font-size: 15px; font-weight: 700; font-style: italic; line-height: 1.1; text-shadow: 0 1px 2px rgba(0, 0, 0, .55); }
.pic .corner { position: absolute; top: 0; right: 0; height: 18px; padding: 0 6px; border-radius: 0 var(--r-s) 0 var(--r-s); font-size: 11px; font-weight: 600; line-height: 18px; color: #fff; background: var(--hot); }
.pic .corner.vip { background: linear-gradient(135deg, #f6dfa8, #d9ae5b); color: var(--gold-ink); font-style: italic; font-weight: 800; }
.pic .corner.new { background: var(--brand); }
.pic .corner.up { background: #ff6a3d; }
.pic .rk { position: absolute; top: 0; left: 0; min-width: 20px; height: 22px; padding: 0 6px; border-radius: var(--r-s) 0 var(--r-s) 0; color: #fff; font-family: var(--num); font-weight: 700; font-style: italic; font-size: 14px; line-height: 22px; text-align: center; background: rgba(0, 0, 0, .45); }
.pic .rk.r1 { background: linear-gradient(135deg, #ffcf4a, #ff9d00); }
.pic .rk.r2 { background: linear-gradient(135deg, #c3cbd6, #8f9aa8); }
.pic .rk.r3 { background: linear-gradient(135deg, #f0b08a, #c9825b); }
.pic .prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .3); }
.pic .prog i { display: block; height: 100%; background: var(--brand); }
.pic .play-i { position: absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; border-radius: 14px; background: rgba(0, 0, 0, .45); display: grid; place-items: center; color: #fff; }
.pic .play-i .ico { width: 14px; height: 14px; }
.vcard .nm { margin-top: 7px; font-size: 13.5px; font-weight: 600; line-height: 1.3; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink); }
.vcard .ds { margin-top: 3px; font-size: 11.5px; color: var(--muted); line-height: 1.3; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.vcard .sel { position: absolute; top: 6px; left: 6px; z-index: 2; width: 22px; height: 22px; border-radius: 11px; border: 2px solid #fff; background: rgba(0, 0, 0, .25); display: none; place-items: center; color: #fff; }
.editing .vcard .sel { display: grid; }
.vcard.picked .sel { background: var(--brand); border-color: var(--brand); }
.vcard .sel .ico { width: 14px; height: 14px; stroke-width: 3; }
.rail { display: flex; gap: 9px; overflow-x: auto; padding: 0 12px; scroll-padding: 0 12px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.rail > * { flex: none; }
.rail .vcard { width: 29vw; max-width: 132px; }
.rail.wide .vcard { width: 62vw; max-width: 300px; }

/* 横版卡（没有横图时用海报模糊铺底） */
.wpic { position: relative; overflow: hidden; border-radius: var(--r-s); aspect-ratio: 16 / 9; background: #1b1e23; isolation: isolate; }
.wpic .bg { position: absolute; inset: -12%; width: 124%; height: 124%; max-width: none; object-fit: cover; filter: blur(16px) brightness(.72) saturate(1.2); transform: scale(1.05); }
.wpic .fg { position: absolute; top: 9%; bottom: 9%; right: 7%; height: 82%; aspect-ratio: 3 / 4; width: auto; object-fit: cover; border-radius: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
.wpic .full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wpic .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); color: #fff; }
.wpic .cap b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wpic .cap small { display: block; margin-top: 2px; font-size: 11px; opacity: .8; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wpic.has-fg .cap { right: 30%; }
.wpic .sc { position: absolute; left: 8px; top: 7px; color: #ffb62e; font-family: var(--num); font-weight: 700; font-style: italic; font-size: 15px; text-shadow: 0 1px 2px rgba(0, 0, 0, .55); }

/* 列表行（排行 / 搜索 / 演员作品） */
.hrow { display: flex; gap: 12px; padding: 10px 12px; width: 100%; text-align: left; align-items: stretch; }
.hrow:active { background: var(--bg2); }
.hrow .pic { width: 84px; flex: none; aspect-ratio: 3 / 4; }
.hrow .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 2px 0; }
.hrow .info b { font-size: 15px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hrow .info .m { font-size: 12px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hrow .info .d { font-size: 12.5px; color: var(--ink2); line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hrow .info .acts { margin-top: auto; display: flex; gap: 8px; align-items: center; }
.hrow .score { color: var(--score); font-family: var(--num); font-weight: 700; font-style: italic; }
.hrow .rkn { width: 26px; flex: none; align-self: center; text-align: center; font-family: var(--num); font-size: 22px; font-weight: 800; font-style: italic; color: var(--muted); }
.hrow .rkn.r1 { color: #ffaa00; } .hrow .rkn.r2 { color: #9aa5b1; } .hrow .rkn.r3 { color: #c9825b; }

/* 继续观看 */
.cont { display: flex; gap: 10px; overflow-x: auto; padding: 0 12px; scrollbar-width: none; }
.cont::-webkit-scrollbar { display: none; }
.ccard { flex: none; width: 46vw; max-width: 210px; text-align: left; }
.ccard .wpic { aspect-ratio: 16 / 9; }
.ccard .nm { margin-top: 7px; font-size: 13px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ccard .ds { margin-top: 2px; font-size: 11.5px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ccard .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .25); z-index: 2; }
.ccard .bar i { display: block; height: 100%; background: var(--brand); }

/* ---------- 首页 ---------- */
.home-head { flex: none; position: relative; z-index: 10; background: var(--bg); padding-top: var(--safe-t); }
.home-top { display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 6px 0 12px; }
.home-top .logo { width: 30px; height: 30px; border-radius: 9px; flex: none; }
.sbox { flex: 1; min-width: 0; height: 36px; border-radius: 18px; background: var(--bg2); display: flex; align-items: center; gap: 6px; padding: 0 12px; color: var(--muted); font-size: 14px; text-align: left; overflow: hidden; }
.sbox .ico { width: 18px; height: 18px; color: var(--ink2); }
.sbox span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sbox .hot-w { animation: hw .4s ease both; }
@keyframes hw { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ctabs { position: relative; display: flex; align-items: center; height: 42px; }
.ctabs .row { flex: 1; min-width: 0; display: flex; align-items: center; gap: 20px; height: 100%; overflow-x: auto; padding: 0 44px 0 14px; scrollbar-width: none; position: relative; }
.ctabs .row::-webkit-scrollbar { display: none; }
.ctabs .row button { flex: none; height: 100%; font-size: 15.5px; color: var(--ink2); position: relative; transition: color .2s, font-size .2s; }
.ctabs .row button.on { color: var(--ink); font-size: 18px; font-weight: 700; }
.ctabs .ink { position: absolute; bottom: 4px; height: 3px; border-radius: 2px; background: var(--grad); transition: transform .25s cubic-bezier(.2, .8, .2, 1), width .25s; left: 0; width: 18px; }
.ctabs .all { position: absolute; right: 0; top: 0; bottom: 0; width: 44px; display: grid; place-items: center; background: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--bg) 40%); color: var(--ink); }
html[data-theme="dark"] .ctabs .all { background: linear-gradient(90deg, rgba(14, 16, 19, 0), var(--bg) 40%); }
.ctabs .all .ico { width: 20px; height: 20px; }
.chan-stage { flex: 1; min-height: 0; position: relative; }
.chan-pane { position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; }

.hero { position: relative; margin-top: 4px; }
.hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 0 12px; gap: 8px; scroll-padding: 0 12px; }
.hero-track::-webkit-scrollbar { display: none; }
.hslide { flex: none; width: calc(100vw - 24px); max-width: 720px; scroll-snap-align: center; scroll-snap-stop: always; position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 8.6; background: #1b1e23; color: #fff; text-align: left; isolation: isolate; }
.hslide .bg { position: absolute; inset: -14%; width: 128%; height: 128%; max-width: none; object-fit: cover; filter: blur(22px) brightness(.62) saturate(1.3); z-index: -2; }
.hslide .full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hslide::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .18) 62%, rgba(0, 0, 0, .05) 100%); }
.hslide .poster { position: absolute; right: 5%; top: 10%; bottom: 10%; aspect-ratio: 3 / 4; height: 80%; width: auto; object-fit: cover; border-radius: 8px; box-shadow: 0 10px 28px rgba(0, 0, 0, .5); }
.hslide .txt { position: absolute; left: 16px; right: 40%; bottom: 16px; top: 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.hslide.has-full .txt { right: 16px; }
.hslide .txt .lb { align-self: flex-start; font-size: 11px; padding: 2px 7px; border-radius: 4px; background: rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hslide .txt b { font-size: 20px; font-weight: 700; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.hslide .txt .m { font-size: 12px; opacity: .85; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hslide .txt .m .s { color: #ffb62e; font-weight: 700; font-family: var(--num); font-style: italic; margin-right: 4px; }
.hslide .txt .d { font-size: 12px; opacity: .72; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hslide .txt .go { margin-top: 6px; align-self: flex-start; height: 30px; padding: 0 14px 0 10px; border-radius: 15px; background: #fff; color: #111; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.hslide .txt .go .ico { width: 14px; height: 14px; }
.hero-dots { position: absolute; right: 22px; bottom: 10px; display: flex; gap: 4px; z-index: 2; pointer-events: none; }
.hero-dots i { width: 5px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .5); transition: width .25s, background .25s; }
.hero-dots i.on { width: 14px; background: #fff; }

.notice { margin: 12px 12px 0; display: flex; align-items: center; gap: 8px; padding: 8px 6px 8px 12px; border-radius: 10px; background: #fff7e6; color: #8a5a00; font-size: 12.5px; }
html[data-theme="dark"] .notice { background: rgba(255, 170, 0, .12); color: #f3c26b; }
.notice .ico { width: 16px; height: 16px; }
.notice span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.notice button { padding: 4px 6px; opacity: .7; }

.quick { display: grid; grid-template-columns: repeat(5, 1fr); padding: 16px 6px 2px; }
.quick > * { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; color: var(--ink); }
.quick .qi { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; color: #fff; box-shadow: 0 4px 12px var(--qc, rgba(0, 0, 0, .1)); }
.quick .qi .ico { width: 24px; height: 24px; stroke-width: 2; }
.quick > *:active .qi { transform: scale(.94); }

.rank5 { margin: 0 12px; border-radius: var(--r); background: linear-gradient(180deg, #fff6e6 0%, var(--card) 46%); box-shadow: var(--shadow-s); overflow: hidden; }
html[data-theme="dark"] .rank5 { background: linear-gradient(180deg, rgba(255, 170, 0, .1) 0%, var(--card) 46%); }
.rank5 .hrow { padding: 8px 10px 8px 4px; }
.rank5 .hrow .pic { width: 52px; border-radius: 6px; }
.rank5 .hrow .info { justify-content: center; }
.rank5 .hrow .info b { font-size: 14.5px; }

.ad-slot { margin: 14px 12px 0; position: relative; border-radius: var(--r); overflow: hidden; display: block; width: calc(100% - 24px); }
.ad-slot img { width: 100%; aspect-ratio: 16 / 5; object-fit: cover; }
.ad-slot .ad-t { position: absolute; right: 6px; bottom: 6px; font-size: 10px; color: #fff; background: rgba(0, 0, 0, .4); border-radius: 3px; padding: 0 4px; }

.install-tip { margin: 10px 12px 0; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: var(--r); background: var(--brand-soft); color: var(--ink); font-size: 12.5px; }
.install-tip img { width: 36px; height: 36px; border-radius: 9px; }
.install-tip div { flex: 1; min-width: 0; }
.install-tip b { display: block; font-size: 13.5px; }
.install-tip span { color: var(--ink2); }
.install-tip .x { padding: 6px; color: var(--muted); }

/* 频道筛选 */
.fbar { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 8px 0; }
.fbar .chips { padding-bottom: 8px; }
.fbar .row2 { display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.fbar .row2 .sum { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: right; }
.fbar .fbtn { display: inline-flex; align-items: center; gap: 2px; height: 32px; padding: 0 4px 0 8px; font-size: 13px; color: var(--ink); }
.fbar .fbtn.on { color: var(--brand-ink); font-weight: 600; }
.fbar .fbtn .ico { width: 16px; height: 16px; }
.fopt { padding: 4px 0 8px; }
.fopt h4 { font-size: 13px; color: var(--muted); font-weight: 500; padding: 8px 0 8px; }
.fopt .chips { padding: 0; }

/* ---------- 搜索 ---------- */
.s-head { display: flex; align-items: center; gap: 6px; height: calc(52px + var(--safe-t)); padding: var(--safe-t) 6px 0 4px; flex: none; background: var(--bg); z-index: 10; }
.s-input { flex: 1; min-width: 0; height: 36px; border-radius: 18px; background: var(--bg2); display: flex; align-items: center; gap: 6px; padding: 0 8px 0 12px; }
.s-input .ico { width: 18px; height: 18px; color: var(--muted); }
.s-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; height: 100%; padding: 0; }
.s-input input::-webkit-search-cancel-button { display: none; }
.s-input .clr { width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; color: var(--muted); }
.s-input .clr .ico { width: 16px; height: 16px; }
.s-head .go { height: 36px; padding: 0 8px; font-size: 15px; font-weight: 600; color: var(--brand-ink); }
.kw-sec { padding: 14px 12px 4px; }
.kw-sec .t { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.kw-sec .t b { font-size: 15px; font-weight: 700; }
.kw-sec .t button { color: var(--muted); padding: 4px; }
.kw-sec .chips { padding: 0; }
.hotlist { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; padding: 0 12px; }
.hotlist > * { display: flex; align-items: center; gap: 10px; height: 40px; text-align: left; min-width: 0; font-size: 14px; }
.hotlist i { width: 18px; font-style: italic; font-weight: 800; font-family: var(--num); color: var(--muted); text-align: center; flex: none; }
.hotlist > :nth-child(1) i { color: #ff4d4f; } .hotlist > :nth-child(2) i { color: #ff7a1a; } .hotlist > :nth-child(3) i { color: #ffaa00; }
.hotlist span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hotlist em { font-style: normal; font-size: 10px; color: #fff; background: var(--hot); border-radius: 3px; padding: 0 3px; line-height: 14px; }
.sug { padding: 4px 0; }
.sug > a, .sug > button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; text-align: left; }
.sug > a:active, .sug > button:active { background: var(--bg2); }
.sug .pic { width: 36px; aspect-ratio: 3 / 4; border-radius: 5px; flex: none; }
.sug .t { flex: 1; min-width: 0; }
.sug .t b { display: block; font-size: 15px; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sug .t b mark { background: none; color: var(--brand-ink); font-weight: 700; }
.sug .t span { font-size: 12px; color: var(--muted); }
.sug .ico { color: var(--muted); width: 16px; height: 16px; }
.res-head { padding: 12px 12px 10px; font-size: 13px; color: var(--muted); }
.res-head b { color: var(--ink); }
.want-box { margin: 8px 24px 0; width: calc(100% - 48px); display: grid; gap: 10px; }

/* ---------- 详情 / 播放页 ---------- */
.vod-page { background: var(--bg); }
.vod-page .player-slot { flex: none; position: relative; z-index: 20; background: #000; padding-top: var(--safe-t); }
.vod-info { padding: 14px 14px 0; }
.vod-title { display: flex; align-items: flex-start; gap: 8px; }
.vod-title h1 { flex: 1; min-width: 0; font-size: 19px; font-weight: 700; line-height: 1.3; }
.vod-title .intro { flex: none; display: inline-flex; align-items: center; color: var(--muted); font-size: 12.5px; padding: 3px 0 0; }
.vod-title .intro .ico { width: 14px; height: 14px; }
.vod-meta { margin-top: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.vod-meta .s { color: var(--score); font-weight: 700; font-family: var(--num); font-size: 14px; margin-right: 2px; }
.vod-meta i { font-style: normal; margin: 0 5px; color: var(--line2); }
.vod-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.vod-tags span { font-size: 11.5px; color: var(--ink2); background: var(--bg2); padding: 2px 8px; border-radius: 4px; }
.vod-blurb { margin-top: 8px; font-size: 13px; color: var(--ink2); line-height: 1.65; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.paynote { margin: 12px 14px 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r); background: linear-gradient(90deg, #fdf3dc, #fbe6bd); color: var(--gold-ink); font-size: 12.5px; }
html[data-theme="dark"] .paynote { background: linear-gradient(90deg, rgba(214, 171, 86, .2), rgba(214, 171, 86, .12)); color: var(--gold-2); }
.paynote div { flex: 1; min-width: 0; }
.paynote b { display: block; font-size: 13.5px; }
.lockbox { margin: 14px; padding: 18px; text-align: center; border-radius: var(--r); background: var(--bg2); color: var(--ink2); font-size: 13px; line-height: 1.7; }
.acts { display: grid; grid-template-columns: repeat(5, 1fr); padding: 14px 8px 4px; }
.acts button { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink2); padding: 4px 0; }
.acts button .ico { width: 24px; height: 24px; color: var(--ink); stroke-width: 1.6; }
.acts button.on, .acts button.on .ico { color: var(--brand-ink); }
.acts button.on .ico.heart { fill: currentColor; }
.ep-head { display: flex; align-items: center; gap: 8px; padding: 18px 14px 10px; }
.ep-head h3 { font-size: 16px; font-weight: 700; }
.ep-head .sub { font-size: 12px; color: var(--muted); }
.ep-head .more { margin-left: auto; display: inline-flex; align-items: center; font-size: 12.5px; color: var(--muted); }
.ep-head .more .ico { width: 14px; height: 14px; }
.src-row { display: flex; gap: 8px; overflow-x: auto; padding: 0 14px 10px; scrollbar-width: none; }
.src-row::-webkit-scrollbar { display: none; }
.src-row button { flex: none; height: 28px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--line2); font-size: 12.5px; color: var(--ink2); display: inline-flex; align-items: center; gap: 4px; }
.src-row button.on { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-soft); font-weight: 600; }
.src-row button.bad { opacity: .45; text-decoration: line-through; }
.ep-strip { display: flex; gap: 8px; overflow-x: auto; padding: 0 14px; scrollbar-width: none; scroll-behavior: smooth; }
.ep-strip::-webkit-scrollbar { display: none; }
.ep { flex: none; min-width: 60px; max-width: 160px; height: 44px; padding: 0 12px; border-radius: 8px; background: var(--bg2); color: var(--ink); font-size: 13.5px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; position: relative; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ep.on { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.ep.on::before { content: ""; width: 10px; height: 10px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'><rect x='0' y='3' width='2' height='7' rx='1'/><rect x='4' y='0' width='2' height='10' rx='1'/><rect x='8' y='5' width='2' height='5' rx='1'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'><rect x='0' y='3' width='2' height='7' rx='1'/><rect x='4' y='0' width='2' height='10' rx='1'/><rect x='8' y='5' width='2' height='5' rx='1'/></svg>") center / contain no-repeat; }
.ep.seen:not(.on) { color: var(--muted); }
.ep .vipm { position: absolute; top: 0; right: 0; font-size: 9px; padding: 0 3px; border-radius: 0 8px 0 4px; background: linear-gradient(135deg, #f6dfa8, #d9ae5b); color: var(--gold-ink); line-height: 14px; font-weight: 700; }
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; }
.ep-grid.long { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.ep-grid .ep { max-width: none; width: 100%; min-width: 0; }
.ep-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; scrollbar-width: none; }
.ep-tabs::-webkit-scrollbar { display: none; }
.ep-tabs button { flex: none; height: 28px; padding: 0 10px; border-radius: 14px; font-size: 12.5px; color: var(--ink2); background: var(--bg2); }
.ep-tabs button.on { color: var(--brand-ink); background: var(--brand-soft); font-weight: 600; }
.people { display: flex; gap: 14px; overflow-x: auto; padding: 0 14px; scrollbar-width: none; }
.people::-webkit-scrollbar { display: none; }
.people button { flex: none; width: 58px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--ink); }
.people .av { width: 52px; height: 52px; border-radius: 26px; display: grid; place-items: center; font-size: 18px; font-weight: 700; color: #fff; }
.people span { width: 100%; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.people small { font-size: 10.5px; color: var(--muted); margin-top: -4px; }
.ad-detail { margin: 16px 14px 0; display: block; width: calc(100% - 28px); border-radius: var(--r); overflow: hidden; position: relative; }
.ad-detail img { width: 100%; aspect-ratio: 16 / 5; object-fit: cover; }

/* 影片信息面板 */
.info-top { display: flex; gap: 14px; }
.info-top .pic { width: 96px; flex: none; }
.info-top .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.info-top h2 { font-size: 18px; line-height: 1.3; }
.info-top .sub { font-size: 12px; color: var(--muted); }
.scores { display: flex; gap: 10px; margin-top: 2px; }
.scores div { flex: 1; background: var(--bg2); border-radius: 10px; padding: 8px 10px; }
.scores b { display: block; font-family: var(--num); font-size: 19px; color: var(--score); font-style: italic; }
.scores span { font-size: 11px; color: var(--muted); }
.kv { margin-top: 16px; display: grid; grid-template-columns: auto 1fr; gap: 9px 14px; font-size: 13px; }
.kv dt { color: var(--muted); white-space: nowrap; }
.kv dd { margin: 0; color: var(--ink); word-break: break-all; }
.kv dd a { color: var(--brand-ink); }
.story { margin-top: 18px; font-size: 13.5px; line-height: 1.8; color: var(--ink2); white-space: pre-wrap; }
.story h4 { font-size: 15px; color: var(--ink); margin-bottom: 6px; }

/* ---------- 播放器 ---------- */
.xp { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; color: #fff; overflow: hidden; -webkit-user-select: none; user-select: none; touch-action: manipulation; isolation: isolate; }
@supports not (aspect-ratio: 1) { .xp { height: 56.25vw; } }
.xp video, .xp iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; object-fit: contain; }
.xp iframe { z-index: 6; }
.xp .layer { position: absolute; inset: 0; }
.xp-cover { z-index: 8; display: grid; place-items: center; background: #000; }
.xp-cover .bg { position: absolute; inset: -10%; width: 120%; height: 120%; max-width: none; object-fit: cover; filter: blur(14px) brightness(.5); }
.xp-cover .c { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 0 24px; }
.xp-cover .big { width: 58px; height: 58px; border-radius: 29px; background: rgba(0, 194, 194, .92); display: grid; place-items: center; box-shadow: 0 6px 24px rgba(0, 194, 194, .4); }
.xp-cover .big .ico { width: 26px; height: 26px; margin-left: 3px; }
.xp-cover .hint { font-size: 13px; opacity: .9; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.xp-cover .msg { font-size: 14px; line-height: 1.6; max-width: 300px; }
.xp-cover .row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.xp-cover .btn { height: 34px; font-size: 13.5px; }
.xp-cover .btn.ghost { background: rgba(255, 255, 255, .16); color: #fff; }
.xp-load { z-index: 4; display: grid; place-items: center; pointer-events: none; }
.xp-load .pill { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.xp-load .spinner { width: 34px; height: 34px; border-color: rgba(255, 255, 255, .22); border-top-color: #fff; }
.xp-ctrl { z-index: 5; opacity: 0; visibility: hidden; transition: opacity .22s, visibility .22s; pointer-events: none; }
.xp.show-ctrl .xp-ctrl { opacity: 1; visibility: visible; }
.xp.show-ctrl .xp-ctrl .bar, .xp.show-ctrl .xp-ctrl .center-btn, .xp.show-ctrl .xp-ctrl .lock { pointer-events: auto; }
.xp-ctrl .top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 4px; padding: 4px 6px 18px; background: linear-gradient(rgba(0, 0, 0, .62), transparent); }
.xp-ctrl .top .t { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.xp-ctrl .bot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 2px; padding: 18px 6px 4px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.xp-ctrl .xb { height: 36px; min-width: 36px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 600; border-radius: 6px; }
.xp-ctrl .xb .ico { width: 22px; height: 22px; stroke-width: 2; }
.xp-ctrl .xb.on { color: var(--brand); }
.xp-ctrl .xb.txt { padding: 0 8px; }
.xp-ctrl .time { font-family: var(--num); font-size: 12px; white-space: nowrap; padding: 0 4px; opacity: .92; font-variant-numeric: tabular-nums; }
.xp-ctrl .center-btn { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 27px; background: rgba(0, 0, 0, .38); display: grid; place-items: center; }
.xp-ctrl .center-btn .ico { width: 28px; height: 28px; }
.xp-ctrl .lock { position: absolute; left: calc(12px + var(--safe-l)); top: 50%; margin-top: -20px; width: 40px; height: 40px; border-radius: 20px; background: rgba(0, 0, 0, .38); display: none; place-items: center; }
.xp.is-fs .xp-ctrl .lock, .xp.is-pfs .xp-ctrl .lock { display: grid; }
.xp-ctrl .lock .ico { width: 20px; height: 20px; }
.xp.locked .xp-ctrl .bar, .xp.locked .xp-ctrl .center-btn { display: none !important; }
.xp.locked.show-ctrl .xp-ctrl { opacity: 1; }
.xp-ctrl .only-fs { display: none; }
.xp.is-fs .xp-ctrl .only-fs, .xp.is-pfs .xp-ctrl .only-fs { display: inline-flex; }
.xp.is-fs .xp-ctrl .no-fs, .xp.is-pfs .xp-ctrl .no-fs { display: none; }
.xp-seek { flex: 1; min-width: 40px; height: 36px; position: relative; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.xp-seek .trk { position: relative; width: 100%; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .28); }
.xp-seek .buf, .xp-seek .cur { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; }
.xp-seek .buf { background: rgba(255, 255, 255, .45); }
.xp-seek .cur { background: var(--brand); }
.xp-seek .knob { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 7px; background: #fff; box-shadow: 0 0 0 4px rgba(0, 194, 194, .35); transition: transform .15s; }
.xp-seek.drag .knob { transform: scale(1.3); }
.xp-seek .mk { position: absolute; top: -2px; width: 3px; height: 7px; border-radius: 1px; background: #ffd666; }
.xp-tip { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 7; padding: 8px 14px; border-radius: 10px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 14px; font-weight: 600; text-align: center; pointer-events: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.xp-tip small { display: block; font-size: 11px; font-weight: 400; opacity: .8; margin-top: 2px; }
.xp-toast { position: absolute; left: 12px; bottom: 54px; z-index: 7; max-width: 80%; padding: 6px 12px; border-radius: 16px; background: rgba(0, 0, 0, .66); color: #fff; font-size: 12.5px; pointer-events: none; animation: xt .25s ease both; }
.xp-toast b { color: var(--brand); font-weight: 600; }
@keyframes xt { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.xp-boost { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 7; display: flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 15px; background: rgba(0, 0, 0, .55); font-size: 13px; font-weight: 600; pointer-events: none; }
.xp-boost .ico { width: 16px; height: 16px; animation: boost .6s linear infinite; }
@keyframes boost { 50% { opacity: .35; } }
.xp-ripple { position: absolute; top: 0; bottom: 0; width: 38%; z-index: 4; display: grid; place-items: center; pointer-events: none; background: radial-gradient(circle at var(--rx, 50%) 50%, rgba(255, 255, 255, .16), transparent 70%); animation: rip .5s ease both; font-size: 13px; font-weight: 600; }
.xp-ripple.l { left: 0; border-radius: 0 50% 50% 0; } .xp-ripple.r { right: 0; border-radius: 50% 0 0 50%; }
@keyframes rip { from { opacity: 1; } to { opacity: 0; } }
.xp-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 62%); z-index: 9; background: rgba(12, 14, 17, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 14px 14px 14px; padding-right: calc(14px + var(--safe-r)); overflow-y: auto; transform: translateX(100%); transition: transform .25s cubic-bezier(.2, .8, .2, 1); color: #fff; }
.xp-panel.open { transform: none; }
.xp-panel h4 { font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.xp-panel .ep { background: rgba(255, 255, 255, .1); color: #fff; }
.xp-panel .ep.on { background: rgba(0, 194, 194, .22); color: #40e0e0; }
.xopts { display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); }
.xopts.c3 { grid-template-columns: repeat(3, 1fr); }
.xopts.c2 { grid-template-columns: 1fr 1fr; }
.xopts button { height: 42px; border-radius: 8px; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.xopts button .ico { width: 18px; height: 18px; }
.xp-panel .xopts { grid-template-columns: 1fr; }
.xp-panel .xopts.c3 { grid-template-columns: repeat(3, 1fr); }
.xp-panel .xopts.c2 { grid-template-columns: 1fr 1fr; }
.xp-panel .xopts button { background: rgba(255, 255, 255, .08); }
.xp-panel .xopts button.on { color: #40e0e0; background: rgba(0, 194, 194, .18); font-weight: 600; }
.xsheet .xopts button { background: var(--bg2); color: var(--ink); }
.xsheet .xopts button.on { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.xsheet h4 { font-size: 14px; margin: 6px 0 10px; color: var(--ink2); font-weight: 600; }
.xsheet .skip-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.xsheet .skip-row span { flex: 1; }
.xsheet .skip-row .btn { background: var(--brand-soft); color: var(--brand-ink); }
.xsheet .note { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 10px; }
.xp-panel .src-row { padding: 0 0 12px; }
.xp-panel .src-row button { border-color: rgba(255, 255, 255, .2); color: #ddd; }
.xp-panel .src-row button.on { border-color: var(--brand); color: #40e0e0; background: rgba(0, 194, 194, .15); }
.xp-panel .ep-tabs button { background: rgba(255, 255, 255, .08); color: #ccc; }
.xp-panel .ep-tabs button.on { background: rgba(0, 194, 194, .2); color: #40e0e0; }
.xp-panel .skip-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; }
.xp-panel .skip-row span { flex: 1; }
.xp-panel .skip-row .btn { background: rgba(255, 255, 255, .12); color: #fff; }
.xp-panel .note { font-size: 12px; color: rgba(255, 255, 255, .55); margin-top: 10px; line-height: 1.6; }
.xp-pausead { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6; width: min(58%, 340px); border-radius: 8px; overflow: hidden; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }
.xp-pausead img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.xp-pausead .x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 12px; background: rgba(0, 0, 0, .5); display: grid; place-items: center; }
.xp-pausead .x .ico { width: 14px; height: 14px; }
.xp-pausead .t { position: absolute; left: 4px; bottom: 4px; font-size: 10px; background: rgba(0, 0, 0, .45); padding: 0 4px; border-radius: 3px; }
.xp-next { position: absolute; right: 12px; bottom: 56px; z-index: 7; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 10px; background: rgba(0, 0, 0, .7); font-size: 12.5px; }
.xp-next .btn { height: 28px; font-size: 12.5px; }
/* 全屏 / 横屏铺满 */
.xp.is-fs { aspect-ratio: auto; width: 100%; height: 100%; }
.xp.is-pfs { position: fixed !important; inset: 0; z-index: 900; aspect-ratio: auto; width: 100%; height: 100%; }
.xp.is-fs .xp-ctrl .top, .xp.is-pfs .xp-ctrl .top { padding: calc(8px + var(--safe-t)) calc(10px + var(--safe-r)) 30px calc(10px + var(--safe-l)); }
.xp.is-fs .xp-ctrl .bot, .xp.is-pfs .xp-ctrl .bot { padding: 30px calc(10px + var(--safe-r)) calc(8px + var(--safe-b)) calc(10px + var(--safe-l)); }
.xp.is-fs .xp-ctrl .top .t, .xp.is-pfs .xp-ctrl .top .t { font-size: 16px; }
.xp.is-fs .xp-toast, .xp.is-pfs .xp-toast { bottom: calc(70px + var(--safe-b)); left: calc(20px + var(--safe-l)); }
.xp.is-fs .xp-next, .xp.is-pfs .xp-next { bottom: calc(76px + var(--safe-b)); right: calc(20px + var(--safe-r)); }
body.pfs-on .tabbar { display: none; }
.vod-page.mini-player .player-slot { position: sticky; top: 0; }

/* ---------- 追剧 / 记录 ---------- */
.seg-head { flex: none; display: flex; align-items: center; height: calc(var(--head-h) + var(--safe-t)); padding: var(--safe-t) 6px 0 14px; gap: 18px; background: var(--bg); z-index: 10; }
.seg-head .tab { font-size: 17px; color: var(--ink2); height: 40px; position: relative; }
.seg-head .tab.on { font-size: 21px; font-weight: 700; color: var(--ink); }
.seg-head .tab.on::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 18px; margin-left: -9px; height: 3px; border-radius: 2px; background: var(--grad); }
.seg-head .tab .badge { position: absolute; top: 2px; right: -14px; }
.seg-head .r { margin-left: auto; display: flex; align-items: center; }
.hist-group { padding: 14px 12px 6px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.hitem { display: flex; gap: 12px; align-items: center; width: 100%; padding: 8px 12px; text-align: left; position: relative; }
.hitem:active { background: var(--bg2); }
.hitem .wpic { width: 136px; flex: none; border-radius: 8px; }
.hitem .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.hitem .info b { font-size: 14.5px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hitem .info span { font-size: 12px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hitem .info .st { color: var(--brand-ink); }
.hitem .sel { width: 22px; height: 22px; border-radius: 11px; border: 2px solid var(--line2); display: none; place-items: center; flex: none; color: #fff; }
.editing .hitem .sel { display: grid; }
.hitem.picked .sel { background: var(--brand); border-color: var(--brand); }
.hitem .sel .ico { width: 14px; height: 14px; stroke-width: 3; }
.edit-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; gap: 12px; padding: 10px 14px calc(10px + var(--safe-b)); background: var(--bg); box-shadow: 0 -1px 0 var(--line); }
.edit-bar .btn { flex: 1; height: 42px; border-radius: 21px; }

/* ---------- 会员中心 ---------- */
.vip-page .page-body { background: var(--bg2); }
.vip-top { position: relative; padding: 0 0 0; background: linear-gradient(180deg, #2a2116 0%, #1a1712 62%, var(--bg2) 100%); color: #f7e6c4; }
html[data-theme="dark"] .vip-top { background: linear-gradient(180deg, #2a2116 0%, #17140f 62%, var(--bg2) 100%); }
.vip-top .nav { background: transparent; color: #f7e6c4; }
.vcardx { margin: 4px 14px 0; position: relative; border-radius: 16px; padding: 18px 16px 16px; color: var(--gold-ink); background: linear-gradient(120deg, #fbe9c3 0%, #f0cf8c 48%, #d9ae5b 100%); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); overflow: hidden; }
.vcardx::after { content: ""; position: absolute; right: -40px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%); }
.vcardx .u { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.vcardx .av { width: 46px; height: 46px; border-radius: 23px; background: rgba(58, 42, 10, .85); color: #f7e0ad; display: grid; place-items: center; font-size: 18px; font-weight: 700; flex: none; overflow: hidden; }
.vcardx .av img { width: 100%; height: 100%; object-fit: cover; }
.vcardx .u b { display: block; font-size: 17px; }
.vcardx .u span { font-size: 12px; opacity: .8; }
.vcardx .pts { position: relative; z-index: 1; display: flex; margin-top: 16px; }
.vcardx .pts div { flex: 1; }
.vcardx .pts b { display: block; font-family: var(--num); font-size: 22px; line-height: 1.1; }
.vcardx .pts span { font-size: 11.5px; opacity: .75; }
.vcardx .crown { position: absolute; right: 14px; top: 12px; width: 54px; height: 54px; opacity: .25; z-index: 0; }
.vbox { margin: 12px 14px 0; background: var(--card); border-radius: var(--r-l); padding: 14px; box-shadow: var(--shadow-s); }
.vbox h3 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.vbox h3 .sub { font-size: 12px; color: var(--muted); font-weight: 400; }
.vbox h3 .r { margin-left: auto; }
.ck-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 14px 0 12px; }
.ck-days div { border-radius: 10px; background: var(--bg2); padding: 8px 0 6px; text-align: center; font-size: 11px; color: var(--muted); position: relative; }
.ck-days div b { display: block; font-family: var(--num); font-size: 14px; color: var(--ink); margin-bottom: 2px; }
.ck-days div.on { background: var(--brand-soft); color: var(--brand-ink); }
.ck-days div.on b { color: var(--brand-ink); }
.ck-days div.gift b { color: #e08a00; }
.ck-days div .ico { width: 14px; height: 14px; display: block; margin: 0 auto 2px; }
.task { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; padding-bottom: 2px; }
.task .ti { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.task .ti .ico { width: 20px; height: 20px; stroke-width: 2; }
.task .tx { flex: 1; min-width: 0; }
.task .tx b { display: block; font-size: 14.5px; }
.task .tx span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.task .tx em { font-style: normal; color: #e08a00; font-weight: 600; }
.invite-code { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--bg2); }
.invite-code b { flex: 1; font-family: var(--num); font-size: 22px; letter-spacing: .12em; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.plan { position: relative; border-radius: 12px; border: 1.5px solid var(--line2); padding: 14px 6px 12px; text-align: center; background: var(--card); }
.plan.on { border-color: #d9ae5b; background: linear-gradient(180deg, #fff8e9, var(--card)); }
html[data-theme="dark"] .plan.on { background: linear-gradient(180deg, rgba(214, 171, 86, .16), var(--card)); }
.plan .n { font-size: 14px; font-weight: 600; }
.plan .p { margin-top: 6px; font-family: var(--num); font-size: 22px; font-weight: 700; color: #c08a2a; }
.plan .p small { font-size: 11px; font-weight: 500; margin-left: 2px; }
.plan .g { margin-top: 4px; font-size: 11px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.plan .best { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); font-size: 10px; padding: 1px 7px; border-radius: 8px; color: #fff; background: linear-gradient(90deg, #ff7a45, #ff4d4f); white-space: nowrap; }
.bene { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 6px; margin-top: 14px; }
.bene div { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12px; color: var(--ink2); line-height: 1.35; }
.bene .bi { width: 40px; height: 40px; border-radius: 20px; background: linear-gradient(135deg, #fbe9c3, #e7c27c); display: grid; place-items: center; color: #7a5410; }
.bene .bi .ico { width: 20px; height: 20px; stroke-width: 2; }
.vip-cta { position: sticky; bottom: 0; z-index: 6; display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-top: 14px; background: var(--card); box-shadow: 0 -1px 0 var(--line); }
.vip-cta .p { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); }
.vip-cta .p b { font-family: var(--num); font-size: 20px; color: #c08a2a; margin-right: 2px; }
.vip-cta .btn { min-width: 140px; }
.list-box { background: var(--card); border-radius: var(--r-l); overflow: hidden; }
.lrow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 14px; text-align: left; position: relative; font-size: 15px; }
.lrow:active { background: var(--bg2); }
.lrow + .lrow::before { content: ""; position: absolute; top: 0; left: 50px; right: 0; height: 1px; background: var(--line); }
.lrow.no-ico + .lrow::before, .lrow.no-ico::before { left: 14px; }
.lrow .li { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; color: #fff; flex: none; }
.lrow .li .ico { width: 15px; height: 15px; stroke-width: 2.1; }
.lrow .lt { flex: 1; min-width: 0; }
.lrow .lt small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.lrow .lv { color: var(--muted); font-size: 13.5px; max-width: 55%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: right; }
.lrow .arr { width: 16px; height: 16px; color: var(--line2); flex: none; }
.lrow.danger { color: var(--hot); justify-content: center; }
.plog { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); gap: 10px; }
.plog div { flex: 1; min-width: 0; }
.plog b { display: block; font-size: 14px; font-weight: 500; }
.plog span { font-size: 11.5px; color: var(--muted); }
.plog em { font-style: normal; font-family: var(--num); font-size: 16px; font-weight: 700; color: var(--ok); }
.plog em.neg { color: var(--ink); }

/* ---------- 我的 ---------- */
.me-page .page-body { background: var(--bg2); }
.me-top { padding: calc(var(--safe-t) + 4px) 0 0; background: linear-gradient(180deg, #d8f6f4 0%, var(--bg2) 100%); }
html[data-theme="dark"] .me-top { background: linear-gradient(180deg, #11302f 0%, var(--bg2) 100%); }
.me-top .bar { display: flex; justify-content: flex-end; padding: 0 6px; height: 44px; align-items: center; }
.me-user { display: flex; align-items: center; gap: 14px; padding: 4px 18px 0; width: 100%; text-align: left; }
.me-user .av { width: 64px; height: 64px; border-radius: 32px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 700; border: 3px solid rgba(255, 255, 255, .85); flex: none; overflow: hidden; }
.me-user .av img { width: 100%; height: 100%; object-fit: cover; }
.me-user .t { flex: 1; min-width: 0; }
.me-user .t b { display: flex; align-items: center; gap: 6px; font-size: 20px; font-weight: 700; }
.me-user .t b span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.me-user .t small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink2); }
.me-user .arr { width: 18px; height: 18px; color: var(--muted); }
.me-stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: 18px 8px 4px; }
.me-stats > * { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.me-stats b { font-family: var(--num); font-size: 20px; font-weight: 700; }
.me-stats span { font-size: 12px; color: var(--ink2); }
.vip-banner { margin: 14px 14px 0; display: flex; align-items: center; gap: 10px; width: calc(100% - 28px); padding: 12px 12px 12px 14px; border-radius: 14px; background: linear-gradient(110deg, #2b2418 0%, #463826 100%); color: #f7e0ad; text-align: left; }
.vip-banner .ico { width: 26px; height: 26px; color: #f0cf8c; }
.vip-banner div { flex: 1; min-width: 0; }
.vip-banner b { display: block; font-size: 15px; }
.vip-banner span { font-size: 12px; opacity: .75; }
.vip-banner .btn { height: 30px; font-size: 12.5px; padding: 0 12px; }
.me-box { margin: 12px 14px 0; background: var(--card); border-radius: var(--r-l); }
.me-box .sh { padding: 14px 14px 10px; }
.me-box .sh h3 { font-size: 16px; }
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 0; padding: 6px 4px 16px; }
.tools button { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; color: var(--ink); }
.tools .ti { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: #fff; }
.tools .ti .ico { width: 21px; height: 21px; stroke-width: 2; }
.me-cont { display: flex; gap: 10px; overflow-x: auto; padding: 0 14px 14px; scrollbar-width: none; }
.me-cont::-webkit-scrollbar { display: none; }
.me-cont .ccard { width: 38vw; max-width: 170px; }
.me-foot { padding: 18px 0 8px; text-align: center; font-size: 11.5px; color: var(--muted); line-height: 1.7; }

/* ---------- 设置 / 消息 / 登录 ---------- */
.set-page .page-body, .msg-page .page-body { background: var(--bg2); }
.set-group { margin: 12px 14px 0; }
.set-group > h4 { font-size: 12.5px; color: var(--muted); font-weight: 500; padding: 6px 4px 8px; }
.msg { display: flex; gap: 12px; width: 100%; padding: 14px; text-align: left; background: var(--card); border-radius: var(--r-l); margin: 12px 14px 0; width: calc(100% - 28px); position: relative; }
.msg .mi { width: 38px; height: 38px; border-radius: 19px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; flex: none; }
.msg .mi .ico { width: 20px; height: 20px; }
.msg div { flex: 1; min-width: 0; }
.msg b { display: block; font-size: 15px; }
.msg p { margin-top: 4px; font-size: 13px; color: var(--ink2); line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.msg time { display: block; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.msg .dot { position: absolute; top: 14px; right: 14px; }
.auth { padding: 24px 24px 0; }
.auth .logo-row { display: flex; align-items: center; gap: 12px; margin: 10px 0 26px; }
.auth .logo-row img { width: 52px; height: 52px; border-radius: 14px; }
.auth .logo-row b { display: block; font-size: 22px; }
.auth .logo-row span { font-size: 13px; color: var(--muted); }
.auth .tabs { display: flex; gap: 24px; margin-bottom: 18px; }
.auth .tabs button { font-size: 17px; color: var(--muted); padding-bottom: 6px; position: relative; }
.auth .tabs button.on { color: var(--ink); font-weight: 700; }
.auth .tabs button.on::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 18px; margin-left: -9px; height: 3px; border-radius: 2px; background: var(--grad); }
.field { display: flex; align-items: center; gap: 8px; height: 50px; border-radius: 12px; background: var(--bg2); padding: 0 6px 0 14px; margin-bottom: 12px; border: 1.5px solid transparent; transition: border-color .2s; }
.field:focus-within { border-color: var(--brand); background: var(--bg); }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; height: 100%; }
.field .eye { width: 36px; height: 36px; display: grid; place-items: center; color: var(--muted); }
.field .eye .ico { width: 20px; height: 20px; }
.auth .hint { font-size: 12px; color: var(--muted); line-height: 1.6; margin: -4px 2px 14px; }
.auth .btn.block { margin-top: 8px; }
.auth .foot { margin-top: 18px; text-align: center; font-size: 12px; color: var(--muted); line-height: 1.7; }

/* ---------- 弹层 / 提示 ---------- */
.mask { position: fixed; inset: 0; z-index: 950; background: var(--mask); opacity: 0; transition: opacity .25s; }
.mask.on { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 951; max-height: 86%; display: flex; flex-direction: column; background: var(--bg); border-radius: 16px 16px 0 0; padding-bottom: var(--safe-b); transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 -8px 30px rgba(0, 0, 0, .12); }
.sheet.on { transform: none; }
.sheet .grab { flex: none; height: 22px; display: grid; place-items: center; touch-action: none; }
.sheet .grab::before { content: ""; width: 36px; height: 4px; border-radius: 2px; background: var(--line2); }
.sheet .sh-t { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 8px 8px 18px; }
.sheet .sh-t h3 { flex: 1; min-width: 0; font-size: 17px; font-weight: 700; }
.sheet .sh-t .sub { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.sheet .sh-b { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 4px 18px 18px; }
.sheet .sh-f { flex: none; display: flex; gap: 10px; padding: 10px 18px 12px; border-top: 1px solid var(--line); }
.sheet .sh-f .btn { flex: 1; height: 44px; border-radius: 22px; }
.sheet.dark { background: #16191d; color: #fff; }
.asheet .opts { display: flex; flex-direction: column; }
.asheet .opts button { height: 52px; font-size: 16px; text-align: center; border-bottom: 1px solid var(--line); }
.asheet .opts button.danger { color: var(--hot); }
.asheet .opts button small { display: block; font-size: 11.5px; color: var(--muted); margin-top: -2px; }
.asheet .cancel { height: 54px; width: 100%; font-size: 16px; border-top: 8px solid var(--bg2); }
.dialog { position: fixed; left: 50%; top: 50%; z-index: 960; width: min(300px, calc(100% - 64px)); transform: translate(-50%, -46%) scale(.96); opacity: 0; transition: transform .22s, opacity .22s; background: var(--bg); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.dialog.on { transform: translate(-50%, -50%); opacity: 1; }
.dialog .dc { padding: 22px 20px 18px; text-align: center; }
.dialog h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.dialog p { font-size: 14px; color: var(--ink2); line-height: 1.6; white-space: pre-wrap; }
.dialog .field { margin: 14px 0 0; height: 44px; text-align: left; }
.dialog .db { display: flex; border-top: 1px solid var(--line); }
.dialog .db button { flex: 1; height: 50px; font-size: 16px; color: var(--ink2); }
.dialog .db button + button { border-left: 1px solid var(--line); }
.dialog .db button.ok { color: var(--brand-ink); font-weight: 600; }
.dialog .db button.danger { color: var(--hot); font-weight: 600; }
.toast { position: fixed; left: 50%; top: 42%; z-index: 990; transform: translate(-50%, -50%); max-width: calc(100% - 80px); padding: 11px 18px; border-radius: 12px; background: rgba(20, 22, 26, .88); color: #fff; font-size: 14px; line-height: 1.5; text-align: center; pointer-events: none; animation: tin .2s ease both; white-space: pre-line; }
.toast.ok::before { content: ""; display: block; width: 30px; height: 30px; margin: 4px auto 8px; background: currentColor; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M7.5 12.5l3 3 6-6.5'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M7.5 12.5l3 3 6-6.5'/></svg>") center / contain no-repeat; }
@keyframes tin { from { opacity: 0; transform: translate(-50%, -46%); } to { opacity: 1; transform: translate(-50%, -50%); } }
.topmsg { position: fixed; left: 12px; right: 12px; top: calc(var(--safe-t) + 8px); z-index: 980; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); animation: tm .3s cubic-bezier(.2, .8, .2, 1) both; }
.topmsg .ico { color: var(--brand-ink); }
.topmsg div { flex: 1; min-width: 0; }
.topmsg b { display: block; font-size: 14px; }
.topmsg span { font-size: 12.5px; color: var(--ink2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: block; }
@keyframes tm { from { transform: translateY(-120%); } to { transform: none; } }

/* 开屏 */
.splash { position: fixed; inset: 0; z-index: 999; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity .3s; }
.splash.out { opacity: 0; pointer-events: none; }
.splash .brand { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: -8vh; }
.splash .brand img { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 12px 30px rgba(0, 170, 190, .3); }
.splash .brand b { font-size: 22px; letter-spacing: .12em; font-weight: 700; }
.splash .brand span { font-size: 13px; color: var(--muted); letter-spacing: .06em; }
.splash .st { position: absolute; bottom: calc(40px + var(--safe-b)); font-size: 12px; color: var(--muted); }
.splash .ad { position: absolute; inset: 0 0 calc(110px + var(--safe-b)); width: 100%; height: auto; object-fit: cover; }
.splash .ad-foot { position: absolute; left: 0; right: 0; bottom: 0; height: calc(110px + var(--safe-b)); padding-bottom: var(--safe-b); display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--bg); }
.splash .ad-foot img { width: 40px; height: 40px; border-radius: 11px; }
.splash .ad-foot b { font-size: 18px; letter-spacing: .1em; }
.splash .skip { position: absolute; top: calc(var(--safe-t) + 14px); right: 14px; height: 30px; padding: 0 12px; border-radius: 15px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 13px; z-index: 2; }
.splash .ad-t { position: absolute; left: 14px; top: calc(var(--safe-t) + 18px); font-size: 11px; color: #fff; background: rgba(0, 0, 0, .35); padding: 1px 6px; border-radius: 3px; z-index: 2; }
.splash .retry { margin-top: 18px; }

.wx-mask { position: fixed; inset: 0; z-index: 1000; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 32px; text-align: center; }
.wx-mask .arrow { position: absolute; top: calc(var(--safe-t) + 6px); right: 18px; width: 70px; height: 70px; color: var(--brand); }
.wx-mask img { width: 72px; height: 72px; border-radius: 18px; }
.wx-mask b { font-size: 20px; }
.wx-mask p { color: var(--ink2); font-size: 14px; line-height: 1.7; }

/* 安装引导 */
.guide-steps { counter-reset: st; display: grid; gap: 12px; margin-top: 4px; }
.guide-steps li { list-style: none; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.6; }
.guide-steps li::before { counter-increment: st; content: counter(st); width: 24px; height: 24px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; font-size: 13px; display: grid; place-items: center; flex: none; margin-top: 1px; }
.guide-steps .k { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border-radius: 5px; background: var(--bg2); font-weight: 600; vertical-align: 1px; }
.guide-steps .k .ico { width: 15px; height: 15px; }

/* ---------- 宽屏（iPad / 平板 / 电脑） ---------- */
@media (min-width: 600px) {
  .vgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 12px; padding: 0 16px; }
  .vgrid.c2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hslide { width: calc(72vw); }
  .rail .vcard { width: 19vw; max-width: 160px; }
  .ccard { width: 30vw; max-width: 240px; }
  .quick { max-width: 560px; margin: 0 auto; }
  .hotlist { grid-template-columns: 1fr 1fr 1fr; }
  .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sheet { left: 50%; right: auto; width: 560px; margin-left: -280px; }
}
@media (min-width: 900px) {
  .vgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .vgrid.c2 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hslide { width: 56vw; }
  .rail .vcard { width: 13vw; max-width: 170px; }
  .vod-page .player-slot .xp { max-height: 62vh; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .vod-page .player-slot .xp:not(.is-pfs) { max-height: 70vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
