/* =========================================================================
   Cliffy H5 — 共享样式
   深色沉浸主题；品牌渐变只做点缀（主按钮、当前集、进度条），其余靠层级和排版。
   ========================================================================= */

:root {
  /* 颜色 */
  --bg: #0d0b0c;
  --bg-2: #141113;
  --surface: #1a1618;
  --surface-2: #231e21;
  --surface-3: #2d272a;
  --line: rgba(255, 240, 235, .08);
  --line-2: rgba(255, 240, 235, .14);
  --text: #f8f3f0;
  --text-2: rgba(248, 243, 240, .68);
  --text-3: rgba(248, 243, 240, .44);
  --brand-1: #ff9a3d;
  --brand-2: #ff4d5e;
  --brand-3: #e8206f;
  --brand: var(--brand-2);
  --grad: linear-gradient(120deg, #ff9a3d 0%, #ff4d5e 52%, #e8206f 100%);
  --grad-soft: linear-gradient(120deg, rgba(255,154,61,.16), rgba(232,32,111,.16));
  --gold: #f1c98d;
  --gold-2: #c99a5b;
  --ok: #3ddc97;
  --warn: #ffb547;
  --err: #ff6b6b;
  --glass: rgba(20, 16, 18, .58);
  --glass-line: rgba(255, 255, 255, .12);

  /* 字体 */
  --font-display: "Bricolage Grotesque", ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  /* 圆角：按层级区分，不是一刀切 */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* 动效 */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);

  /* 安全区 */
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);

  /* 应用宽度：桌面上居中成手机宽 */
  --app-w: min(100vw, 440px);
  --app-x: max(0px, calc((100vw - 440px) / 2));
  --tabbar-h: 58px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: #050405; color-scheme: dark; }
body {
  margin: 0 auto;
  max-width: 440px;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
@media (min-width: 441px) {
  body { box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 30px 120px rgba(0,0,0,.6); }
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.svg-ico { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; flex: none; }

/* ---------- 按钮 ---------- */
.btn {
  --h: 48px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 22px;
  border-radius: var(--r-md);
  font-weight: 650; font-size: 15.5px; letter-spacing: -.01em;
  background: var(--surface-2); color: var(--text);
  transition: transform .18s var(--ease-out), background-color .2s, opacity .2s, box-shadow .2s;
  user-select: none; -webkit-user-select: none;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn[disabled], .btn.is-busy { opacity: .55; pointer-events: none; }
.btn--block { display: flex; width: 100%; }
.btn--lg { --h: 54px; font-size: 16.5px; border-radius: 16px; }
.btn--sm { --h: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 11px; }
.btn--primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 30px -10px rgba(255, 77, 94, .7), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn--primary::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.14), transparent 55%);
  pointer-events: none;
}
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--glass { background: rgba(255,255,255,.12); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.btn--light { background: #fff; color: #120e10; }
.btn--gold {
  background: linear-gradient(120deg, #f6d9a8, #e4b46f 60%, #c99a5b);
  color: #2a1b0b;
  box-shadow: 0 12px 34px -12px rgba(241, 201, 141, .55), inset 0 1px 0 rgba(255,255,255,.5);
}
.btn .spin { width: 18px; height: 18px; }
.link-btn { color: var(--text-2); font-weight: 600; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
.link-btn:active { opacity: .6; }

.icon-btn {
  width: 44px; height: 44px; flex: none;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  font-size: 22px;
  transition: transform .18s var(--ease-out), background-color .2s;
}
.icon-btn:active { transform: scale(.9); }
.icon-btn--glass { background: rgba(18,14,16,.42); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.icon-btn--soft { background: var(--surface-2); }

/* ---------- 胶囊 / 分段 ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 13.5px; font-weight: 600;
  white-space: nowrap; flex: none;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .2s, color .2s, transform .15s var(--ease-out);
}
.chip:active { transform: scale(.95); }
.chip.is-active { background: var(--text); color: #140f11; box-shadow: none; }
.chip--dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-2); }
.chip .x { opacity: .6; font-size: 12px; }

.seg {
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 3px; border-radius: 12px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.seg button {
  position: relative; z-index: 1; height: 36px; border-radius: 9px;
  font-size: 14px; font-weight: 650; color: var(--text-2);
  transition: color .25s;
}
.seg button.is-active { color: var(--text); }
.seg__thumb {
  position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px;
  border-radius: 9px; background: var(--surface-3);
  box-shadow: 0 2px 10px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .35s var(--ease-out), width .35s var(--ease-out);
}

.scroller { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.scroller::-webkit-scrollbar { display: none; }

/* ---------- 加载 C 环（取自 Logo 的缺口圆环） ---------- */
.spin { width: 40px; height: 40px; animation: cl-spin .9s linear infinite; }
.spin circle { fill: none; stroke-width: 3.2; stroke-linecap: round; }
@keyframes cl-spin { to { transform: rotate(360deg); } }

/* ---------- 骨架 ---------- */
.sk {
  position: relative; overflow: hidden;
  background: var(--surface);
  border-radius: var(--r-sm);
}
.sk::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.055) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: cl-shimmer 1.4s infinite;
}
@keyframes cl-shimmer { to { transform: translateX(100%); } }
.sk-line { height: 12px; border-radius: 6px; }

/* ---------- 剧卡片 ---------- */
.dcard { display: block; min-width: 0; transition: transform .2s var(--ease-out); }
.dcard:active { transform: scale(.97); }
.dcard__cover {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: var(--r-md); background: var(--surface);
}
.dcard__cover img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.dcard__cover img.is-loaded { opacity: 1; }
.dcard__cover::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 46%;
  background: linear-gradient(to top, rgba(8,6,7,.86), transparent);
  pointer-events: none;
}
.dcard__hot, .dcard__eps {
  position: absolute; z-index: 1; bottom: 8px;
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11.5px; font-weight: 650; color: rgba(255,255,255,.92);
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.dcard__hot { left: 9px; }
.dcard__hot .svg-ico { color: #ff8a4c; }
.dcard__eps { right: 9px; color: rgba(255,255,255,.75); font-weight: 600; }
.badge-new {
  position: absolute; z-index: 1; top: 0; left: 0;
  padding: 3px 9px 4px 8px;
  border-radius: var(--r-md) 0 var(--r-sm) 0;
  background: var(--grad); color: #fff;
  font-size: 10.5px; font-weight: 800; letter-spacing: .02em;
}
.dcard__title {
  margin-top: 9px;
  font-size: 14px; font-weight: 650; line-height: 1.3; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dcard__meta { margin-top: 3px; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 底部 Tab 栏 ---------- */
.tabbar {
  position: fixed; z-index: 40; bottom: 0; left: var(--app-x); width: var(--app-w);
  display: grid; grid-template-columns: repeat(3, 1fr);
  height: calc(var(--tabbar-h) + var(--sab));
  padding-bottom: var(--sab);
  background: rgba(13, 11, 12, .82);
  backdrop-filter: saturate(160%) blur(22px); -webkit-backdrop-filter: saturate(160%) blur(22px);
  border-top: 1px solid var(--line);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 11px; font-weight: 600; color: var(--text-3);
  transition: color .2s, transform .15s var(--ease-out);
}
.tabbar a:active { transform: scale(.92); }
.tabbar a .svg-ico { font-size: 24px; }
.tabbar a.is-active { color: var(--text); }
.tabbar a.is-active .svg-ico { color: var(--brand-2); }
.tabbar--float {
  left: calc(var(--app-x) + 12px); width: calc(var(--app-w) - 24px);
  bottom: calc(8px + var(--sab));
  height: 48px; padding: 0;
  border-radius: 16px; border: 0;
  background: rgba(16, 12, 14, .42);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 10px 30px rgba(0,0,0,.35);
}
.tabbar--float a { color: rgba(255,255,255,.6); font-size: 10.5px; gap: 1px; }
.tabbar--float a .svg-ico { font-size: 21px; }
.tabbar--float a.is-active { color: #fff; }
.tabbar--float a.is-active .svg-ico { color: #fff; }
.has-tabbar { padding-bottom: calc(var(--tabbar-h) + var(--sab) + 12px); }

/* ---------- 抽屉（底部 Sheet） ---------- */
.sheet { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.sheet__backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 3, 4, .58);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .5s var(--ease-drawer);
}
.sheet__panel {
  position: absolute; bottom: 0; left: var(--app-x); width: var(--app-w);
  max-height: calc(100dvh - var(--sat) - 28px);
  display: flex; flex-direction: column;
  background: var(--bg-2);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: 0 -1px 0 rgba(255,255,255,.07), 0 -24px 60px rgba(0,0,0,.5);
  transform: translateY(100%);
  transition: transform .5s var(--ease-drawer);
  will-change: transform;
  outline: none;
  overflow: hidden;
}
.sheet.is-open { pointer-events: auto; }
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet.is-open .sheet__panel { transform: translateY(0); }
.sheet.is-dragging .sheet__panel { transition: none; }
/* 键盘弹出时面板已被抬到键盘上方，不再需要底部安全区留白 */
.sheet.has-keyboard .sheet__body { padding-bottom: 16px; }
.sheet.has-keyboard .sheet-actions { padding-bottom: 14px; }
.sheet__grab { flex: none; display: flex; justify-content: center; padding: 10px 0 4px; touch-action: none; cursor: grab; }
.sheet__grab::before { content: ""; width: 38px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.2); }
.sheet__head { flex: none; display: flex; align-items: center; gap: 12px; padding: 6px 20px 12px; touch-action: none; }
.sheet__title { flex: 1; font: 700 19px/1.25 var(--font-display); letter-spacing: -.02em; }
.sheet__close { margin-right: -10px; color: var(--text-2); font-size: 20px; }
.sheet__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px calc(22px + var(--sab)); }

/* ---------- 居中对话框 ---------- */
.dialog { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; pointer-events: none; }
.dialog__backdrop { position: absolute; inset: 0; background: rgba(5,3,4,.62); opacity: 0; transition: opacity .3s; }
.dialog__box {
  position: relative; width: min(340px, 100%);
  padding: 26px 22px 20px; border-radius: 24px;
  background: var(--surface); text-align: center;
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 80px rgba(0,0,0,.6);
  opacity: 0; transform: scale(.94) translateY(8px);
  transition: opacity .3s var(--ease-out), transform .4s var(--ease-out);
}
.dialog.is-open { pointer-events: auto; }
.dialog.is-open .dialog__backdrop { opacity: 1; }
.dialog.is-open .dialog__box { opacity: 1; transform: none; }
.dialog__icon { width: 56px; height: 56px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 18px; font-size: 28px; background: var(--grad-soft); color: var(--brand-1); }
.dialog__title { font: 700 19px/1.3 var(--font-display); letter-spacing: -.02em; }
.dialog__text { margin-top: 8px; color: var(--text-2); font-size: 14.5px; }
.dialog__actions { margin-top: 20px; display: grid; gap: 8px; }

/* ---------- Toast ---------- */
.toasts { position: fixed; z-index: 200; top: calc(12px + var(--sat)); left: var(--app-x); width: var(--app-w); display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast {
  display: inline-flex; align-items: center; gap: 9px;
  max-width: 100%; padding: 11px 16px;
  border-radius: 14px;
  background: rgba(36, 30, 33, .92);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 12px 32px rgba(0,0,0,.45);
  font-size: 14px; font-weight: 600;
  opacity: 0; transform: translateY(-10px) scale(.98);
  transition: opacity .3s var(--ease-out), transform .4s var(--ease-out);
}
.toast.is-in { opacity: 1; transform: none; }
.toast .svg-ico { font-size: 18px; }
.toast--ok .svg-ico { color: var(--ok); }
.toast--err .svg-ico { color: var(--err); }

/* ---------- 表单 ---------- */
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; min-width: 0; }
.field + .field { margin-top: 14px; }
.field__label { font-size: 13px; font-weight: 650; color: var(--text-2); }
.input-wrap {
  position: relative; display: flex; align-items: center;
  height: 52px; border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .2s, background-color .2s;
}
.input-wrap:focus-within { box-shadow: inset 0 0 0 1.5px rgba(255, 154, 61, .75), 0 0 0 4px rgba(255, 120, 70, .12); background: var(--surface-2); }
.input-wrap.is-invalid { box-shadow: inset 0 0 0 1.5px rgba(255, 107, 107, .8); }
.input-wrap.is-valid .input-ok { opacity: 1; transform: none; }
.input-wrap > .svg-ico.lead { margin-left: 15px; font-size: 18px; color: var(--text-3); }
.input {
  flex: 1; min-width: 0; width: 100%; height: 100%; padding: 0 15px;
  background: transparent; border: 0; outline: none;
  font-size: 16px; /* 16px 防 iOS 自动放大 */
}
.input::placeholder { color: var(--text-3); }
.input-ok { margin-right: 12px; color: var(--ok); font-size: 18px; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .3s var(--ease-out); }
.input-eye { width: 44px; height: 44px; margin-right: 4px; display: grid; place-items: center; color: var(--text-3); font-size: 20px; }
.field__msg { min-height: 0; font-size: 12.5px; color: var(--err); display: flex; gap: 5px; align-items: center; }
.field__msg:empty { display: none; }
.form-error {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 14px; padding: 12px 14px; border-radius: var(--r-md);
  background: rgba(255,107,107,.1); color: #ffb3b3; font-size: 13.5px;
  box-shadow: inset 0 0 0 1px rgba(255,107,107,.25);
}
.form-error .svg-ico { font-size: 18px; flex: none; margin-top: 1px; color: var(--err); }
.form-error a, .form-error button { color: #fff; text-decoration: underline; font-weight: 650; }

.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.strength i { height: 3px; border-radius: 2px; background: var(--surface-3); transition: background-color .3s; }
.strength[data-s="1"] i:nth-child(-n+1) { background: var(--err); }
.strength[data-s="2"] i:nth-child(-n+2) { background: var(--warn); }
.strength[data-s="3"] i:nth-child(-n+3) { background: #c4e06a; }
.strength[data-s="4"] i { background: var(--ok); }

/* ---------- 空 / 错误状态 ---------- */
.state { display: grid; justify-items: center; gap: 10px; padding: 48px 28px; text-align: center; }
.state__art { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 30px; background: var(--surface); color: var(--text-3); box-shadow: inset 0 0 0 1px var(--line); }
.state__title { font: 700 17px/1.3 var(--font-display); color: var(--text); }
.state__text { font-size: 14px; color: var(--text-2); max-width: 30ch; }
.state .btn { margin-top: 6px; }

/* ---------- 页面头部 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 8px;
  height: calc(56px + var(--sat)); padding: var(--sat) 8px 0;
  background: rgba(13,11,12,.78);
  backdrop-filter: saturate(160%) blur(20px); -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background-color .2s;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar--clear { position: fixed; left: var(--app-x); width: var(--app-w); background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.topbar--clear.is-scrolled { background: rgba(13,11,12,.82); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.topbar__title { flex: 1; text-align: center; font: 700 16px/1 var(--font-display); letter-spacing: -.01em; opacity: 1; transition: opacity .2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand { display: inline-flex; align-items: center; gap: 9px; padding: 0 8px; min-height: 44px; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.brand b { font: 800 20px/1 var(--font-display); letter-spacing: -.035em; }

.page-title { font: 750 30px/1.1 var(--font-display); letter-spacing: -.035em; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 16px; margin-bottom: 12px; }
.sec-title { font: 700 19px/1.25 var(--font-display); letter-spacing: -.025em; }
.sec-more { font-size: 13px; font-weight: 600; color: var(--text-3); min-height: 32px; display: inline-flex; align-items: center; gap: 2px; }

/* =========================================================================
   播放页
   ========================================================================= */
.play-page { background: #000; overflow: hidden; height: 100dvh; overscroll-behavior: none; }
.player { position: fixed; top: 0; bottom: 0; left: var(--app-x); width: var(--app-w); overflow: hidden; background: #000; touch-action: none; user-select: none; -webkit-user-select: none; }
.feed { position: absolute; inset: 0; will-change: transform; }
.feed.is-anim { transition: transform .42s var(--ease-drawer); }
.slide { position: absolute; left: 0; right: 0; height: 100%; overflow: hidden; background: #000; }
.slide[data-pos="-1"] { top: -100%; }
.slide[data-pos="0"] { top: 0; }
.slide[data-pos="1"] { top: 100%; }
.slide__bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(28px) brightness(.45) saturate(1.2); transform: scale(1.1); }
.slide__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.slide.is-landscape .slide__poster { object-fit: contain; }
.slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: transparent; opacity: 0; transition: opacity .2s; }
.slide.is-playing video { opacity: 1; }
.slide.is-landscape video { object-fit: contain; }
.slide.is-playing .slide__poster { opacity: 0; }
.slide__shade { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.45), transparent 18%),
    linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.25) 34%, transparent 52%); }
.slide__lock {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-content: center; justify-items: center; gap: 12px;
  padding: 0 36px 80px; text-align: center;
  background: rgba(6,4,5,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.slide__lock-ico { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 22px; font-size: 30px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.slide__lock-ico.is-vip { color: var(--gold); background: rgba(241,201,141,.12); box-shadow: inset 0 0 0 1px rgba(241,201,141,.3); }
.slide__lock h3 { font: 700 20px/1.25 var(--font-display); letter-spacing: -.02em; }
.slide__lock p { color: var(--text-2); font-size: 14px; max-width: 28ch; }
.slide__lock .btn { margin-top: 6px; pointer-events: auto; }

.p-center { position: absolute; z-index: 5; left: 50%; top: 46%; transform: translate(-50%, -50%); pointer-events: none; display: grid; place-items: center; }
.p-pause {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  font-size: 34px; color: #fff; background: rgba(0,0,0,.32);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
  opacity: 0; transform: scale(1.25); transition: opacity .2s, transform .35s var(--ease-out);
}
.player.is-paused .p-pause { opacity: 1; transform: scale(1); }
.p-loader { opacity: 0; transition: opacity .25s; }
.player.is-loading .p-loader { opacity: 1; transition-delay: .15s; }
.player.is-loading .p-pause { opacity: 0; }

.p-tap {
  position: absolute; z-index: 8; inset: 0; display: none; place-content: center; justify-items: center; gap: 14px;
  background: rgba(0,0,0,.35); pointer-events: auto;
}
.player.needs-tap .p-tap { display: grid; }
.p-tap__btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 26px 0 20px; border-radius: 999px;
  background: rgba(255,255,255,.95); color: #150f12;
  font-weight: 750; font-size: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
  animation: cl-breathe 2.4s var(--ease-out) infinite;
}
.p-tap__btn .svg-ico { font-size: 22px; color: var(--brand-2); }
.p-tap small { color: rgba(255,255,255,.75); font-size: 13px; }
@keyframes cl-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }

.p-top {
  position: absolute; z-index: 10; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(8px + var(--sat)) 12px 0 10px;
  pointer-events: none;
}
.p-top > * { pointer-events: auto; }
.p-top .brand b { font-size: 19px; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.p-top__right { display: flex; align-items: center; gap: 10px; }
.p-cc[hidden] { display: none; }
.cc-ico { display: inline-grid; place-items: center; min-width: 26px; height: 19px; padding: 0 4px; border: 1.8px solid currentColor; border-radius: 5px; font: 800 10.5px/1 var(--font-display, inherit); letter-spacing: .02em; }
.p-cc.is-off .cc-ico { opacity: .55; }
/* 字幕：悬浮在视频中下部，避开画面里常见的烧录字幕位置和底部信息区 */
.p-sub {
  position: absolute; z-index: 6; left: 12px; right: 74px; bottom: 34%; /* 只在右侧按钮栏左边的区域里居中 */
  text-align: center; color: #fff;
  font-size: clamp(13px, 3.75vw, 15.5px); font-weight: 650; line-height: 1.62; white-space: pre-line; overflow-wrap: anywhere; text-wrap: balance;
  pointer-events: none;
}
/* 每一行单独带底色，底框贴着文字走（长句折行后不会留一大块空底） */
.p-sub span {
  padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.55);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
.player.is-clean .p-sub { right: 12px; }
.p-sub[hidden] { display: none; }
.sub-opts { display: grid; gap: 6px; }
.sub-opts--grid { grid-template-columns: 1fr 1fr; }
.sub-opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 46px; padding: 0 14px; border-radius: 13px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; font-weight: 600; text-align: left; }
.sub-opt.is-on { box-shadow: inset 0 0 0 1.5px var(--text); background: var(--surface-2); }
.sub-opt .svg-ico { font-size: 18px; flex: none; }
.sub-sec { margin: 18px 2px 8px; font-size: 12.5px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.sub-note { margin-top: 14px; font-size: 12px; color: var(--text-3); text-align: center; }
/* 剧内模式：左上角返回推荐流，替换掉品牌标识 */
.p-back { display: none; }
.p-back .svg-ico { font-size: 22px; }
.player.is-series .p-back { display: inline-grid; }
.player.is-series .p-top .brand { display: none; }

.p-unmute {
  position: absolute; z-index: 11; top: calc(60px + var(--sat)); left: 14px;
  display: none; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px 0 11px; border-radius: 999px;
  background: rgba(255,255,255,.92); color: #150f12;
  font-size: 13.5px; font-weight: 700;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.p-unmute .svg-ico { font-size: 18px; }
.player.is-muted .p-unmute { display: inline-flex; }

.p-rail {
  position: absolute; z-index: 10; right: 4px;
  bottom: calc(126px + var(--sab)); /* 紧贴标题区上沿，和选集条右对齐 */
  display: grid; gap: 12px; justify-items: center;
}
.rail-btn { display: grid; justify-items: center; gap: 2px; width: 58px; color: #fff; font-size: 10.5px; font-weight: 650; text-shadow: 0 1px 6px rgba(0,0,0,.55); white-space: nowrap; }
.rail-btn .rail-ico {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  font-size: 20px; background: rgba(20,16,18,.38);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  transition: transform .18s var(--ease-out);
}
.rail-btn:active .rail-ico { transform: scale(.88); }
.rail-cover { width: 38px; height: 38px; border-radius: 11px; overflow: hidden; box-shadow: 0 0 0 1.5px #fff; }
.rail-cover img { width: 100%; height: 100%; object-fit: cover; }

.p-meta {
  position: absolute; z-index: 10; left: 14px; right: 70px;
  bottom: calc(124px + var(--sab));
  pointer-events: none;
}
.p-meta > * { pointer-events: auto; }
.p-meta__title {
  display: inline-block; max-width: 100%;
  font: 750 17px/1.25 var(--font-display); letter-spacing: -.02em;
  text-shadow: 0 2px 14px rgba(0,0,0,.55);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.p-meta__ep { margin-top: 4px; display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: rgba(255,255,255,.86); font-weight: 600; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.p-meta__trailer { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 5px; background: var(--grad); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; text-shadow: none; }
.p-meta__ep .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.p-meta__desc { margin-top: 4px; font-size: 12.5px; line-height: 1.4; color: rgba(255,255,255,.78); text-shadow: 0 1px 8px rgba(0,0,0,.6); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

.p-epbar {
  position: absolute; z-index: 10; left: 12px; right: 12px;
  bottom: calc(80px + var(--sab));
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 10px 0 12px; border-radius: 11px;
  background: rgba(20,16,18,.46);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
  font-size: 12.5px; font-weight: 650; color: #fff;
  transition: transform .18s var(--ease-out);
}
.p-epbar:active { transform: scale(.98); }
.p-epbar .svg-ico { font-size: 16px; }
.p-epbar__label { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-epbar__label span { color: rgba(255,255,255,.62); font-weight: 550; }
.p-epbar__chev { opacity: .7; }

.p-progress {
  position: absolute; z-index: 11; left: 0; right: 0;
  bottom: calc(57px + var(--sab));
  height: 22px; padding: 0 14px;
  display: flex; align-items: center;
  touch-action: none; cursor: pointer;
}
.p-progress__track { position: relative; flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.22); transition: height .2s var(--ease-out); }
.p-progress__buf { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: rgba(255,255,255,.22); }
.p-progress__fill { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--grad); }
.p-progress__knob {
  position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4);
  transform: scale(0); transition: transform .2s var(--ease-out);
}
.player.is-paused .p-progress__knob, .p-progress.is-drag .p-progress__knob { transform: scale(1); }
.p-progress.is-drag .p-progress__track { height: 6px; }
.p-scrub {
  position: absolute; z-index: 12; left: 50%; bottom: calc(150px + var(--sab));
  transform: translateX(-50%);
  font: 750 30px/1 var(--font-display); letter-spacing: -.02em; color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,.6);
  opacity: 0; transition: opacity .2s; pointer-events: none; white-space: nowrap;
}
.p-scrub span { color: rgba(255,255,255,.55); }
.p-progress.is-drag ~ .p-scrub { opacity: 1; }
.player.is-scrubbing .p-meta, .player.is-scrubbing .p-rail, .player.is-scrubbing .p-epbar { opacity: 0; }
.p-meta, .p-rail, .p-epbar, .p-top { transition: opacity .25s; }

/* 全屏（清屏）模式：隐藏标题、简介、右侧按钮、顶部栏和底部导航，只留细进度条、左下角选集胶囊、右上角退出 */
.p-mini-ep, .p-clean-exit { display: none; }
.player.is-clean .p-meta, .player.is-clean .p-rail, .player.is-clean .p-epbar, .player.is-clean .p-top { opacity: 0; pointer-events: none; }
.player.is-clean .p-top * { pointer-events: none; }
.tabbar--float { transition: opacity .25s, transform .25s var(--ease-out); }
body.is-clean .tabbar--float { opacity: 0; transform: translateY(14px); pointer-events: none; }
.player.is-clean .p-progress { bottom: calc(8px + var(--sab)); }
.player.is-clean .p-mini-ep {
  position: absolute; z-index: 11; left: 12px; bottom: calc(34px + var(--sab));
  display: inline-flex; align-items: center; gap: 3px;
  height: 28px; padding: 0 8px 0 11px; border-radius: 999px;
  background: rgba(20,16,18,.42); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  color: #fff; font-size: 12px; font-weight: 650; white-space: nowrap;
}
.p-mini-ep .svg-ico { font-size: 14px; opacity: .75; }
.player.is-clean .p-clean-exit {
  position: absolute; z-index: 11; top: calc(6px + var(--sat)); right: 8px;
  display: inline-grid; width: 38px; height: 38px; font-size: 19px;
}

.p-next {
  position: absolute; z-index: 10; right: 12px; top: calc(62px + var(--sat));
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px 0 6px; border-radius: 999px;
  background: rgba(20,16,18,.5); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  font-size: 13px; font-weight: 650;
  opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .4s var(--ease-out);
  pointer-events: none;
}
.p-next.is-on { opacity: 1; transform: none; pointer-events: auto; }
.p-next svg.ring { width: 26px; height: 26px; transform: rotate(-90deg); }
.p-next svg.ring circle { fill: none; stroke-width: 3; }

.p-end {
  position: absolute; z-index: 9; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 0 32px 120px; text-align: center;
  background: rgba(6,4,5,.62); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.p-end h3 { font: 750 24px/1.2 var(--font-display); letter-spacing: -.03em; }
.p-end p { color: var(--text-2); font-size: 14.5px; }
.p-end .btn { margin-top: 10px; }

.p-empty { position: absolute; inset: 0; z-index: 9; display: grid; place-content: center; }

/* 选集面板 */
.ep-head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.ep-head .ep-trailer { margin-left: auto; flex: none; gap: 4px; }
.ep-head .ep-trailer .svg-ico { font-size: 13px; }
.ep-head img { width: 52px; height: 70px; border-radius: 10px; object-fit: cover; background: var(--surface); }
.ep-head__t { font: 700 16px/1.3 var(--font-display); letter-spacing: -.015em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep-head__s { margin-top: 3px; font-size: 13px; color: var(--text-3); }
.ep-tabs { margin: 0 -20px 14px; padding: 0 20px; }
.ep-tabs .chip { height: 32px; font-size: 13px; }
.ep-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ep {
  position: relative; aspect-ratio: 1 / .86; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums;
  transition: transform .15s var(--ease-out), background-color .2s;
  overflow: hidden;
}
.ep:active { transform: scale(.93); }
.ep.is-locked { color: var(--text-3); }
.ep__lock { position: absolute; right: 5px; bottom: 4px; font-size: 11px; color: var(--text-3); }
.ep__vip {
  position: absolute; top: 0; right: 0; padding: 1px 6px 2px; border-radius: 0 0 0 8px;
  background: linear-gradient(120deg, #f6d9a8, #c99a5b); color: #2a1b0b;
  font-size: 9px; font-weight: 850; letter-spacing: .03em;
}
.ep.is-current { background: var(--grad); color: #fff; box-shadow: 0 8px 22px -8px rgba(255,77,94,.7); }
.ep.is-current .ep__lock { color: rgba(255,255,255,.8); }
.ep.is-watched:not(.is-current)::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--brand-1); }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; position: absolute; left: 6px; top: 6px; }
.eq i { width: 2px; background: #fff; border-radius: 1px; animation: cl-eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes cl-eq { 0%, 100% { height: 3px; } 50% { height: 11px; } }
.ep-legend { display: flex; gap: 16px; margin-top: 14px; font-size: 12px; color: var(--text-3); }
.ep-legend span { display: inline-flex; gap: 5px; align-items: center; }

/* 墙（注册 / 会员）共用 */
.wall-hero { position: relative; margin: -2px 0 18px; padding: 18px; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.wall-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(22px) brightness(.5); transform: scale(1.3); }
.wall-hero > :not(.wall-hero__bg) { position: relative; }
.wall-hero__row { display: flex; gap: 14px; align-items: center; }
.wall-hero__row img { width: 54px; height: 72px; border-radius: 10px; object-fit: cover; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.wall-hero h3 { font: 750 21px/1.2 var(--font-display); letter-spacing: -.025em; }
.wall-hero p { margin-top: 4px; font-size: 13.5px; color: var(--text-2); }
.perks { display: grid; gap: 12px; margin: 4px 0 20px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.perks li .svg-ico { flex: none; font-size: 20px; margin-top: 1px; color: var(--brand-1); }
.perks li b { display: block; font-weight: 650; }
.perks li small { display: block; color: var(--text-3); font-size: 12.5px; }
.perks--gold li .svg-ico { color: var(--gold); }

.mini-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.mini-plan {
  position: relative; padding: 16px 8px 12px; border-radius: 16px; text-align: center;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .15s var(--ease-out), box-shadow .2s;
}
.mini-plan:active { transform: scale(.96); }
.mini-plan.is-on { box-shadow: inset 0 0 0 1.5px var(--gold), 0 10px 26px -14px rgba(241,201,141,.7); background: linear-gradient(180deg, rgba(241,201,141,.1), var(--surface)); }
.mini-plan__badge { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 2px 8px; border-radius: 999px; background: linear-gradient(120deg, #f6d9a8, #c99a5b); color: #2a1b0b; font-size: 10px; font-weight: 800; white-space: nowrap; }
.mini-plan__name { font-size: 13px; font-weight: 650; color: var(--text-2); }
.mini-plan__price { margin-top: 4px; font: 750 20px/1.1 var(--font-display); letter-spacing: -.02em; }
.mini-plan__was { font-size: 11.5px; color: var(--text-3); text-decoration: line-through; }

/* 登录注册 */
.auth-tabs { margin-bottom: 18px; }
.auth-ctx { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; padding: 12px; border-radius: 16px; background: var(--grad-soft); box-shadow: inset 0 0 0 1px rgba(255,120,80,.2); }
.auth-ctx img { width: 42px; height: 56px; border-radius: 8px; object-fit: cover; }
.auth-ctx b { display: block; font: 700 16px/1.25 var(--font-display); letter-spacing: -.015em; }
.auth-ctx small { display: block; margin-top: 2px; color: var(--text-2); font-size: 13px; }
.auth-foot { margin-top: 14px; text-align: center; font-size: 12px; color: var(--text-3); }
.auth-switch { margin-top: 6px; text-align: center; font-size: 14px; color: var(--text-2); }
.auth-switch button { color: var(--text); font-weight: 700; min-height: 44px; padding: 0 4px; }
.ts-box { display: flex; justify-content: center; margin: 16px 0 0; min-height: 0; }
.ts-box:empty { display: none; }

/* =========================================================================
   剧广场
   ========================================================================= */
.plaza-head { display: flex; align-items: center; gap: 10px; padding: calc(8px + var(--sat)) 16px 8px; position: sticky; top: 0; z-index: 30; background: rgba(13,11,12,.84); backdrop-filter: saturate(160%) blur(20px); -webkit-backdrop-filter: saturate(160%) blur(20px); }
.plaza-head .brand { padding: 0; }
.plaza-head .brand img { width: 30px; height: 30px; }
.search {
  flex: 1; display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 6px 0 13px; border-radius: 12px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .2s;
}
.search:focus-within { box-shadow: inset 0 0 0 1.5px rgba(255,154,61,.6); }
.search .svg-ico { color: var(--text-3); font-size: 18px; }
.search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; font-size: 16px; }
.search input::placeholder { color: var(--text-3); }
.search input::-webkit-search-cancel-button { display: none; }
.search__clear { width: 30px; height: 30px; border-radius: 50%; display: none; place-items: center; color: var(--text-3); }
.search.has-value .search__clear { display: grid; }
.search-cancel { font-size: 14.5px; font-weight: 600; color: var(--text-2); min-height: 44px; display: none; }
.plaza-head.is-searching .brand { display: none; }
.plaza-head.is-searching .search-cancel { display: inline-flex; align-items: center; }

.banner { position: relative; margin: 6px 0 26px; }
.banner__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 10px; padding: 0 16px; scroll-padding: 0 16px; }
.banner__track::-webkit-scrollbar { display: none; }
.bslide { position: relative; flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 4 / 4.6; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.bslide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.bslide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,6,7,.96) 4%, rgba(8,6,7,.55) 38%, transparent 64%); }
.bslide__body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 18px 18px 40px; }
.bslide__tags { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.tagpill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 650; background: rgba(255,255,255,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tagpill--grad { background: var(--grad); }
.bslide__title { font: 780 27px/1.08 var(--font-display); letter-spacing: -.035em; max-width: 15ch; }
.bslide__meta { margin-top: 8px; font-size: 13px; color: rgba(255,255,255,.72); display: flex; gap: 12px; align-items: center; }
.bslide__meta span { display: inline-flex; gap: 4px; align-items: center; }
.bslide__cta { position: absolute; z-index: 2; right: 16px; bottom: 38px; }
.banner__dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.banner__dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.35); transition: width .35s var(--ease-out), background-color .3s; }
.banner__dots i.is-on { width: 20px; background: #fff; }

.row { margin-bottom: 28px; }
.row__track { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding: 0 16px; }
.row__track::-webkit-scrollbar { display: none; }
.row__track .dcard { flex: 0 0 31%; scroll-snap-align: start; }
.row--rank .dcard { flex-basis: 40%; }
.rank-no { position: absolute; z-index: 2; left: 8px; top: 2px; font: 850 42px/1 var(--font-display); letter-spacing: -.06em; color: #fff; text-shadow: 0 3px 16px rgba(0,0,0,.5); }

.browse { padding-top: 6px; }
.filters { position: sticky; top: calc(56px + var(--sat)); z-index: 20; padding: 10px 0 12px; background: linear-gradient(var(--bg) 82%, rgba(13,11,12,0)); }
.filters .scroller { padding: 0 16px; }
.filters__sort { display: flex; gap: 8px; align-items: center; padding: 0 16px; margin-bottom: 10px; }
.filters__sort .seg { flex: 1; }
.filter-btn { position: relative; height: 42px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 650; }
.filter-btn:active { transform: scale(.96); }
.filter-btn .count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--grad); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; padding: 4px 16px 0; }
.grid .dcard__title { font-size: 15px; }
.load-more { display: grid; place-items: center; padding: 22px 0 10px; color: var(--text-3); font-size: 13px; }
.result-count { padding: 4px 16px 12px; font-size: 13px; color: var(--text-3); }

.opt-group + .opt-group { margin-top: 22px; }
.opt-group h4 { font-size: 13px; font-weight: 700; color: var(--text-3); margin-bottom: 10px; }
.opt-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-wrap .chip { height: 38px; }
.chip small { color: var(--text-3); font-weight: 600; font-size: 11.5px; }
.chip.is-active small { color: rgba(20,15,17,.55); }
.sheet-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; padding: 14px 20px calc(14px + var(--sab)); border-top: 1px solid var(--line); background: var(--bg-2); }

/* =========================================================================
   剧详情
   ========================================================================= */
.dt-bg { position: fixed; z-index: 0; top: 0; left: var(--app-x); width: var(--app-w); height: 66vh; overflow: hidden; pointer-events: none; }
.dt-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(34px) saturate(1.3) brightness(.62); transform: scale(1.25); }
.dt-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(13,11,12,.2), rgba(13,11,12,.6) 50%, var(--bg)); }
.dt { position: relative; z-index: 1; padding: calc(64px + var(--sat)) 18px calc(120px + var(--sab)); }
.dt-hero { display: flex; gap: 16px; align-items: flex-end; }
.dt-cover { position: relative; flex: 0 0 132px; aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: 0 20px 50px -14px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.1); }
.dt-cover img { width: 100%; height: 100%; object-fit: cover; }
.dt-hero__info { min-width: 0; padding-bottom: 4px; }
.dt-title { font: 780 25px/1.12 var(--font-display); letter-spacing: -.035em; }
.dt-stats { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--text-2); }
.dt-stats span { display: inline-flex; gap: 5px; align-items: center; }
.dt-stats .svg-ico { font-size: 15px; color: var(--text-3); }
.dt-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.dt-tags .tagpill { background: rgba(255,255,255,.09); height: 28px; padding: 0 12px; font-size: 12.5px; }
.dt-desc { margin-top: 16px; font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
.dt-desc__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dt-desc.is-open .dt-desc__text { -webkit-line-clamp: unset; display: block; }
.dt-desc__more { margin-top: 2px; min-height: 36px; font-size: 13.5px; font-weight: 700; color: var(--text); display: inline-flex; gap: 4px; align-items: center; }
.dt-desc__more .svg-ico { transition: transform .3s var(--ease-out); }
.dt-desc.is-open .dt-desc__more .svg-ico { transform: rotate(180deg); }
.dt-sec { margin-top: 28px; }
.dt-sec .sec-head { padding: 0; }
.cast { margin: 0 -18px; padding: 0 18px; gap: 16px; }
.cast li { flex: 0 0 70px; text-align: center; }
.cast__av { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--surface-2); font: 750 20px/1 var(--font-display); color: #fff; box-shadow: 0 0 0 1px var(--line); }
.cast__av img { width: 100%; height: 100%; object-fit: cover; }
.cast__name { margin-top: 8px; font-size: 12.5px; font-weight: 650; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cast__role { font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt-cta {
  position: fixed; z-index: 30; bottom: 0; left: var(--app-x); width: var(--app-w);
  display: flex; gap: 10px; align-items: center;
  padding: 12px 16px calc(12px + var(--sab));
  background: linear-gradient(to top, var(--bg) 60%, rgba(13,11,12,0));
}
.dt-cta .btn--primary { flex: 1; }
.dt-cta__sub { display: block; font-size: 11.5px; font-weight: 550; opacity: .8; }

/* =========================================================================
   会员页
   ========================================================================= */
.vip-page { background: radial-gradient(120% 60% at 50% -10%, rgba(241,201,141,.12), transparent 60%), var(--bg); }
.vip { padding: calc(60px + var(--sat)) 18px calc(120px + var(--sab)); }
.pass {
  position: relative; aspect-ratio: 1.586; border-radius: 22px; overflow: hidden;
  padding: 20px 22px; display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(255,77,94,.55), transparent 55%),
    radial-gradient(80% 100% at 0% 100%, rgba(255,154,61,.35), transparent 60%),
    linear-gradient(140deg, #2a1d22, #140e11 60%);
  box-shadow: 0 30px 60px -24px rgba(232,32,111,.55), inset 0 0 0 1px rgba(255,255,255,.12);
  transform: perspective(900px) rotateX(0);
}
.pass::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.16) 45%, transparent 58%);
  transform: translateX(-60%); animation: cl-sheen 5.5s var(--ease-out) 1s infinite;
  pointer-events: none;
}
@keyframes cl-sheen { 0% { transform: translateX(-70%); } 40%, 100% { transform: translateX(70%); } }
.pass__ring { position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; opacity: .2; }
.pass__top { display: flex; align-items: center; justify-content: space-between; position: relative; }
.pass__brand { display: flex; align-items: center; gap: 8px; font: 800 18px/1 var(--font-display); letter-spacing: -.03em; }
.pass__brand img { width: 26px; height: 26px; border-radius: 7px; }
.pass__tier { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; color: var(--gold); padding: 4px 9px; border-radius: 999px; background: rgba(241,201,141,.12); box-shadow: inset 0 0 0 1px rgba(241,201,141,.35); }
.pass__chip { width: 38px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, #f6d9a8, #b98a4d); box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); position: relative; }
.pass__chip::before { content: ""; position: absolute; inset: 7px 0; border-top: 1px solid rgba(0,0,0,.25); border-bottom: 1px solid rgba(0,0,0,.25); }
.pass__bottom { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.pass__holder { font-size: 11px; color: rgba(255,255,255,.55); }
.pass__holder b { display: block; margin-top: 2px; font-size: 14.5px; color: #fff; font-weight: 650; letter-spacing: .01em; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pass__until { text-align: right; }
.vip-head { margin: 26px 0 6px; }
.vip-head h1 { font: 780 30px/1.08 var(--font-display); letter-spacing: -.04em; }
.vip-head p { margin-top: 8px; color: var(--text-2); font-size: 15px; }
.vip-status { margin-top: 16px; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: rgba(61,220,151,.08); box-shadow: inset 0 0 0 1px rgba(61,220,151,.25); font-size: 14px; }
.vip-status .svg-ico { font-size: 22px; color: var(--ok); }
.benefits { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.benefit { padding: 16px 14px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.benefit .svg-ico { font-size: 24px; color: var(--gold); }
.benefit b { display: block; margin-top: 10px; font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; }
.benefit small { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: var(--text-3); }
.plans { margin-top: 30px; display: grid; gap: 10px; }
.plan {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 18px 16px; border-radius: 18px; text-align: left; width: 100%;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .25s, background-color .25s, transform .15s var(--ease-out);
}
.plan:active { transform: scale(.985); }
.plan.is-on { background: linear-gradient(120deg, rgba(241,201,141,.11), rgba(241,201,141,.03)); box-shadow: inset 0 0 0 1.5px var(--gold), 0 16px 36px -22px rgba(241,201,141,.8); }
.plan__radio { flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-2); display: grid; place-items: center; transition: box-shadow .2s; }
.plan.is-on .plan__radio { box-shadow: inset 0 0 0 7px var(--gold); }
.plan__main { flex: 1; min-width: 0; }
.plan__name { display: flex; align-items: center; gap: 8px; font-size: 16.5px; font-weight: 750; letter-spacing: -.01em; }
.plan__badge { white-space: nowrap; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; background: linear-gradient(120deg, #f6d9a8, #c99a5b); color: #2a1b0b; }
.plan__sub { margin-top: 3px; font-size: 12.5px; color: var(--text-3); }
.plan__price { flex: none; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.plan__amt { font: 760 22px/1 var(--font-display); letter-spacing: -.03em; }
.plan__was { margin-top: 5px; display: flex; gap: 6px; align-items: baseline; font-size: 12px; color: var(--text-3); white-space: nowrap; }

.plan__off { color: var(--brand-1); font-weight: 750; }
.renew { margin-top: 14px; font-size: 12.5px; line-height: 1.55; color: var(--text-3); }
.trust { margin-top: 26px; display: grid; gap: 12px; padding: 16px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.trust__row { display: flex; gap: 12px; align-items: center; font-size: 13.5px; color: var(--text-2); }
.trust__row .svg-ico { font-size: 20px; color: var(--ok); flex: none; }
.trust__row b { color: var(--text); font-weight: 650; }
.brands { display: flex; flex-wrap: wrap; gap: 6px; }
.pm { width: 40px; height: 26px; border-radius: 5px; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(0,0,0,.08); flex: none; overflow: hidden; }
.pm svg { width: 80%; height: 80%; }
.pm[data-pm="applepay"] svg { width: 94%; height: 94%; }
.pm[data-pm="amex"] svg { width: 70%; height: 92%; }
.pm--dark { background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,.2); }
.faq { margin-top: 30px; }
.faq h2 { font: 720 20px/1.2 var(--font-display); letter-spacing: -.025em; margin-bottom: 8px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; font-size: 15px; font-weight: 650; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .svg-ico { color: var(--text-3); transition: transform .3s var(--ease-out); flex: none; }
.faq details[open] summary .svg-ico { transform: rotate(45deg); }
.faq details p { padding: 0 0 16px; font-size: 14px; color: var(--text-2); line-height: 1.6; }
.buybar {
  position: fixed; z-index: 30; bottom: 0; left: var(--app-x); width: var(--app-w);
  padding: 12px 16px calc(12px + var(--sab));
  background: rgba(13,11,12,.88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
}
.buybar__note { margin-top: 8px; text-align: center; font-size: 11.5px; color: var(--text-3); display: flex; justify-content: center; align-items: center; gap: 5px; }

/* =========================================================================
   支付页
   ========================================================================= */
.pay-page { background: #0c0a0b; }
.pay { padding: 12px 16px calc(140px + var(--sab)); }
.pay-secure { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; color: var(--text-2); }
.pay-secure .svg-ico { color: var(--ok); font-size: 15px; }
/* 一行订单摘要：点开看原价、折扣、订单号 */
.osum { border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.osum__row { display: flex; gap: 12px; align-items: center; min-height: 56px; padding: 8px 14px 8px 10px; list-style: none; cursor: pointer; }
.osum__row::-webkit-details-marker { display: none; }
.osum__logo { width: 38px; height: 38px; border-radius: 11px; flex: none; }
.osum__main { flex: 1; min-width: 0; display: grid; }
.osum__name { font-size: 15px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.osum__sub { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--text-3); }
.osum__sub .svg-ico { font-size: 13px; transition: transform .3s var(--ease-out); }
.osum[open] .osum__sub .svg-ico { transform: rotate(180deg); }
.osum__amt { font: 760 21px/1 var(--font-display); letter-spacing: -.03em; flex: none; }
.osum__lines { padding: 2px 14px 12px; border-top: 1px dashed var(--line-2); display: grid; }
.osum__line { display: flex; justify-content: space-between; gap: 12px; padding-top: 9px; font-size: 12.5px; color: var(--text-2); }
.osum__line s { color: var(--text-3); }
.osum__line .ok { color: var(--ok); }
.pay-h { margin: 18px 2px 10px; font: 700 15px/1.2 var(--font-display); letter-spacing: -.015em; color: var(--text-2); }
/* 套餐横排卡片 */
.pplans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pplan {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 3px;
  min-height: 92px; padding: 14px 4px 10px; border-radius: 16px; text-align: center;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .2s, background-color .2s, transform .15s var(--ease-out);
}
.pplan:active { transform: scale(.97); }
.pplan[disabled] { opacity: .6; }
.pplan.is-on { opacity: 1; background: linear-gradient(180deg, rgba(241,201,141,.12), var(--surface) 70%); box-shadow: inset 0 0 0 1.5px var(--gold), 0 10px 26px -16px rgba(241,201,141,.8); }
.pplan__badge { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 2px 8px; border-radius: 999px; white-space: nowrap; background: linear-gradient(120deg, #f6d9a8, #c99a5b); color: #2a1b0b; font-size: 10px; font-weight: 800; }
.pplan__name { font-size: 13px; font-weight: 650; color: var(--text-2); }
.pplan.is-on .pplan__name { color: var(--text); }
.pplan__amt { display: grid; place-items: center; min-height: 22px; font: 760 19px/1.1 var(--font-display); letter-spacing: -.025em; }
.pplan__amt .spin { width: 22px; height: 22px; }
.pplan__was { display: inline-flex; gap: 4px; align-items: baseline; font-size: 11px; color: var(--text-3); white-space: nowrap; }
.pplan__was b { color: var(--brand-1); font-weight: 750; }
.pmethods { display: grid; gap: 6px; }
.pmethod {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 52px; padding: 0 14px; border-radius: 14px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  text-align: left; font-size: 15px; font-weight: 650;
  transition: box-shadow .2s, background-color .2s, transform .15s var(--ease-out);
}
.pmethod:active { transform: scale(.985); }
.pmethod.is-on { box-shadow: inset 0 0 0 1.5px var(--text); background: var(--surface-2); }
.pmethod__radio { width: 20px; height: 20px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px var(--line-2); transition: box-shadow .2s; }
.pmethod.is-on .pmethod__radio { box-shadow: inset 0 0 0 6px var(--text); }
.pmethod__label { flex: 1; }
.pmethod .brands { justify-content: flex-end; }
.pmethod .pm { width: 34px; height: 22px; }
.cardform { margin-top: 8px; padding: 16px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 12px; }
.cardform .input-wrap { background: var(--bg-2); }
.cardform .row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.cardform .field + .field { margin-top: 0; }
.card-brand { margin-right: 12px; display: flex; gap: 4px; }
.card-brand .pm { width: 34px; height: 22px; transition: opacity .2s, transform .25s var(--ease-out); }
.card-brand.has-brand .pm:not(.is-match) { display: none; }
.card-brand.has-brand .pm.is-match { transform: scale(1.06); }
.cvc-hint { margin-right: 12px; color: var(--text-3); font-size: 20px; }
.pcheckout { padding: 16px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 14px; }
.pcheckout__marks { display: flex; flex-wrap: wrap; gap: 6px; }
.pcheckout__marks .pm { width: 40px; height: 26px; }
.pcheckout__text { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.pcheckout__text .svg-ico { font-size: 16px; color: var(--ok); flex: none; margin-top: 2px; }
.wallet-note { margin-top: 10px; padding: 16px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; color: var(--text-2); display: flex; gap: 12px; align-items: center; }
.wallet-note .svg-ico { font-size: 22px; color: var(--text-3); flex: none; }
.assure { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.assure__item { display: flex; gap: 12px; align-items: flex-start; }
.assure__ico { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 18px; color: var(--ok); }
.assure__item b { display: block; font-size: 14px; font-weight: 700; }
.assure__item small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-3); line-height: 1.45; }
.pay-legal { margin-top: 18px; font-size: 11.5px; line-height: 1.6; color: var(--text-3); text-align: center; }
.paybar {
  position: fixed; z-index: 30; bottom: 0; left: var(--app-x); width: var(--app-w);
  padding: 10px 16px calc(10px + var(--sab));
  background: rgba(12,10,11,.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
}
.btn--pay { --h: 52px; width: 100%; border-radius: 16px; font-size: 17px; background: #fff; color: #0d0a0b; }
.btn--pay .svg-ico { font-size: 18px; }
.btn--apple { background: #fff; color: #000; }
.btn--gpay { background: #fff; color: #3c4043; }
.btn--paypal { background: #ffc439; color: #003087; }
.btn--pay svg.mark { height: 22px; width: auto; }
.paybar__note { margin-top: 6px; display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-3); }
.paybar__note .svg-ico { color: var(--ok); }
.pay-wait { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 12px; font-size: 12.5px; color: var(--text-3); }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61,220,151,.6); animation: cl-pulse 2s infinite; }
@keyframes cl-pulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,151,.55); } 70% { box-shadow: 0 0 0 8px rgba(61,220,151,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); } }
.success { min-height: 100dvh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 12px; padding: 40px 28px calc(40px + var(--sab)); }
.success__ring { width: 104px; height: 104px; }
.success__ring circle { fill: none; stroke-width: 5; stroke-linecap: round; }
.success__ring .arc { stroke-dasharray: 290; stroke-dashoffset: 290; animation: cl-draw 1s var(--ease-out) .1s forwards; }
.success__ring .tick { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: cl-draw .5s var(--ease-out) .75s forwards; }
@keyframes cl-draw { to { stroke-dashoffset: 0; } }
.success h1 { margin-top: 10px; font: 780 30px/1.1 var(--font-display); letter-spacing: -.04em; }
.success p { color: var(--text-2); font-size: 15px; max-width: 30ch; }
.success__card { margin-top: 10px; width: 100%; max-width: 330px; padding: 16px 18px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 10px; text-align: left; font-size: 13.5px; }
.success__card div { display: flex; justify-content: space-between; color: var(--text-2); }
.success__card b { color: var(--text); font-weight: 650; }
.success .btn { margin-top: 14px; width: 100%; max-width: 330px; }

/* =========================================================================
   我的
   ========================================================================= */
.me { padding: calc(14px + var(--sat)) 16px 0; }
.me-head { display: flex; align-items: center; gap: 14px; padding: 18px 2px 20px; }
.avatar { width: 60px; height: 60px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--grad); font: 780 24px/1 var(--font-display); color: #fff; box-shadow: 0 10px 30px -10px rgba(255,77,94,.6); }
.avatar--guest { background: var(--surface-2); color: var(--text-3); box-shadow: inset 0 0 0 1px var(--line); font-size: 26px; }
.me-head__name { font: 720 19px/1.25 var(--font-display); letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-head__sub { margin-top: 3px; font-size: 13px; color: var(--text-3); display: flex; gap: 6px; align-items: center; }
.me-head__main { min-width: 0; flex: 1; }
.vip-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; background: linear-gradient(120deg, #f6d9a8, #c99a5b); color: #2a1b0b; }
.me-guest { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
.me-card {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px;
  padding: 18px; border-radius: 20px;
  background:
    radial-gradient(100% 140% at 100% 0%, rgba(232,32,111,.35), transparent 60%),
    linear-gradient(130deg, #2a1c20, #181214);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}
.me-card.is-member { background: radial-gradient(100% 140% at 100% 0%, rgba(241,201,141,.22), transparent 60%), linear-gradient(130deg, #251e18, #161112); box-shadow: inset 0 0 0 1px rgba(241,201,141,.25); }
.me-card__ico { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: rgba(241,201,141,.12); color: var(--gold); }
.me-card__main { flex: 1; min-width: 0; }
.me-card__main b { display: block; font: 720 16.5px/1.25 var(--font-display); letter-spacing: -.015em; }
.me-card__main small { display: block; margin-top: 3px; font-size: 13px; color: var(--text-2); }
.me-sec { margin-top: 28px; }
.me-sec .sec-head { padding: 0 2px; }
.hist { display: grid; gap: 4px; }
.hist__item { display: flex; gap: 14px; align-items: center; padding: 8px 0; border-radius: 14px; transition: background-color .2s; }
.hist__item:active { background: var(--surface); }
.hist__cover { position: relative; width: 62px; height: 82px; flex: none; border-radius: 11px; overflow: hidden; background: var(--surface); }
.hist__cover img { width: 100%; height: 100%; object-fit: cover; }
.hist__cover .svg-ico { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); font-size: 22px; color: #fff; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.hist__main { flex: 1; min-width: 0; }
.hist__title { font-size: 15px; font-weight: 650; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hist__sub { margin-top: 4px; font-size: 12.5px; color: var(--text-3); }
.hist__bar { margin-top: 8px; height: 3px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.hist__bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); }
.menu { border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.menu__item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 0 16px; text-align: left; font-size: 15px; font-weight: 600; transition: background-color .15s; }
.menu__item + .menu__item { border-top: 1px solid var(--line); }
.menu__item:active { background: var(--surface-2); }
.menu__item .svg-ico { font-size: 20px; color: var(--text-3); }
.menu__item span { flex: 1; }
.menu__item em { font-style: normal; font-size: 13px; color: var(--text-3); }
.menu__item--danger { color: var(--err); }
.menu__item--danger .svg-ico { color: var(--err); }
.me-foot { padding: 30px 0 10px; text-align: center; color: var(--text-3); font-size: 12px; }
.me-foot img { width: 28px; height: 28px; margin: 0 auto 8px; border-radius: 8px; opacity: .8; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .success__ring .arc, .success__ring .tick { stroke-dashoffset: 0; }
}
.p-meta__desc[hidden] { display: none; }

/* ---------- 分享面板 ---------- */
.sheet--share .sheet__body { padding-top: 4px; }
.sh-card { display: flex; gap: 12px; padding: 12px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.sh-card__cover { width: 64px; height: 86px; flex: none; border-radius: 12px; object-fit: cover; background: linear-gradient(145deg, rgba(255,154,61,.35), rgba(232,32,111,.35)); }
.sh-card__main { min-width: 0; flex: 1; }
.sh-card__title { font-weight: 700; font-size: 15px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.sh-card__ep { margin-top: 2px; font-size: 12px; color: rgba(255,255,255,.55); }
.sh-card__text { margin-top: 6px; font-size: 13.5px; line-height: 1.45; color: rgba(255,255,255,.86); }
.sh-card__text.is-in { animation: sh-in .35s cubic-bezier(.2,.8,.2,1); }
@keyframes sh-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sh-tools { display: flex; gap: 8px; margin: 10px 0 18px; }
.sh-tool { flex: 1; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: rgba(255,255,255,.88); font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background .2s, transform .15s; }
.sh-tool:active { transform: scale(.97); background: rgba(255,255,255,.1); }
.sh-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 6px; }
.sh-app { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 2px 0; border: 0; background: none; color: rgba(255,255,255,.82); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; min-height: 44px; }
.sh-ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; box-shadow: 0 8px 20px -10px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.18); transition: transform .18s cubic-bezier(.2,.8,.2,1); }
.sh-ico--ring { box-shadow: 0 8px 20px -10px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.22); }
.sh-app:active .sh-ico { transform: scale(.9); }
.sh-app__name { font-size: 11.5px; line-height: 1.2; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { .sh-card__text.is-in { animation: none; } }

/* ---------- 点赞 ---------- */
#rail-like .like-heart { transition: fill .2s, stroke .2s; }
#rail-like.is-liked .like-heart { fill: #FF3B5C; stroke: #FF3B5C; }
#rail-like.is-pop .rail-ico { animation: like-pop .45s cubic-bezier(.2,.8,.2,1.4); }
@keyframes like-pop { 0% { transform: scale(1); } 35% { transform: scale(1.28); } 100% { transform: scale(1); } }
.like-burst { position: absolute; z-index: 30; width: 96px; height: 96px; margin: -48px 0 0 -48px; pointer-events: none; animation: like-burst .9s cubic-bezier(.2,.8,.2,1) forwards; }
.like-burst svg { width: 100%; height: 100%; fill: #FF3B5C; filter: drop-shadow(0 6px 18px rgba(255,59,92,.55)); }
@keyframes like-burst {
  0% { opacity: 0; transform: rotate(var(--rot)) scale(.3); }
  18% { opacity: 1; transform: rotate(var(--rot)) scale(1.15); }
  32% { transform: rotate(var(--rot)) scale(.95); }
  70% { opacity: 1; transform: rotate(var(--rot)) translateY(-30px) scale(1); }
  100% { opacity: 0; transform: rotate(var(--rot)) translateY(-90px) scale(1.25); }
}
@media (prefers-reduced-motion: reduce) { #rail-like.is-pop .rail-ico, .like-burst { animation-duration: .01s; } }
.sub-opt > span { display: grid; gap: 1px; min-width: 0; }
.sub-opt__sub { font-size: 12px; font-weight: 550; color: var(--text-3); }
/* 播放页顶部图标按钮稍小一些，给语言 / 声音 / 字幕 / 搜索留位置 */
.p-top .icon-btn { width: 38px; height: 38px; font-size: 19px; }
.p-top__right { gap: 10px; }

/* ---------- 选项列表抽屉（语言 / 字幕） ---------- */
.sheet--opts .sheet__body { padding-top: 2px; }
.opt-list { border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.opt-row { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 8px 14px 8px 16px; text-align: left; transition: background-color .15s; }
.opt-row + .opt-row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--line); }
.opt-row:active { background: var(--surface-2); }
.opt-row__main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.opt-row__name { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opt-row__sub { font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opt-row__check { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; }
.opt-row.is-on .opt-row__check { background: var(--grad); box-shadow: 0 4px 12px -4px rgba(232,32,111,.7); }
.opt-row__check .svg-ico { stroke-width: 2.6; }
.opt-sec { margin: 18px 4px 7px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.opt-note { margin: 12px 4px 0; font-size: 11.5px; line-height: 1.5; color: var(--text-3); text-align: center; }
.sheet--opts .sheet__title { font-size: 18px; }
/* 顶部语言胶囊：🌏 当前语言 ↓ */
.p-lang {
  display: inline-flex; align-items: center; gap: 5px; max-width: 150px;
  height: 34px; padding: 0 9px 0 10px; border-radius: 999px;
  background: rgba(20,16,18,.42); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
  color: #fff; font-size: 13px; font-weight: 650; white-space: nowrap;
  transition: transform .15s var(--ease-out);
}
.p-lang:active { transform: scale(.95); }
.p-lang > .svg-ico:first-child { font-size: 17px; flex: none; }
.p-lang__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.p-lang__chev { font-size: 14px; flex: none; opacity: .75; }

/* ---------- 播放页性能：视频上面的浮层不用毛玻璃（每一帧都要重新模糊，低配手机会掉帧），改成稍深的半透明纯色 ---------- */
.play-page .player *, .play-page .tabbar, .play-page .sheet__backdrop { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.play-page .rail-btn .rail-ico, .play-page .icon-btn--glass, .play-page .p-lang, .play-page .p-mini-ep { background: rgba(14,10,12,.5); }
.play-page .p-epbar { background: rgba(14,10,12,.58); }
.play-page .p-next { background: rgba(14,10,12,.62); }
.play-page .p-pause { background: rgba(0,0,0,.42); }
.play-page .tabbar--float { background: rgba(14,10,12,.7); }
.play-page .sheet__backdrop { background: rgba(5,3,4,.66); }
.play-page .slide__lock { background: rgba(6,4,5,.78); }
