/* ============================================================
   黄果短剧 H5 · 自适应布局（Telegram MiniApp 视口）
   目标：宽度 100%、高度 100dvh、安全区适配、无固定画布缩放
   色板沿用黄果：底 #0E0E0E / 卡片 #1C1C1C / 主色 #FA7705
   ============================================================ */

:root {
  /* ---- 底色与层次 ----------------------------------------------------
     页面底色刻意钉死在 #0e0e0e：客户端在 webview 之外画的 @bot 信用条
     实测就是这个值（截图像素取样 rgb(14,14,14)），页面跟着它走才能无缝。
     chrome（header / background / bottom bar）由 live.js 的 BRAND_BAR 用
     同一个常量写入，颜色只剩一个来源，不读 themeParams —— 暗色主题的
     secondary_bg_color 是 #17212b 蓝灰，照抄会让底栏比信用条亮一截。
     层次的差异靠 surface / line / shadow 叠出来，不靠改底色。 */
  --bg: #0e0e0e;
  --bg-elev: #141415;          /* 抬起的整块面板，比底色亮一档 */
  --surface: #1a1a1b;
  --surface-2: #242426;
  --line: rgba(255, 255, 255, .075);
  --line-strong: rgba(255, 255, 255, .14);

  /* ---- 文字：暖中性灰阶，避免纯白在 OLED 上过曝 ---- */
  --text: #f6f5f1;
  --text-2: #c6c5bf;
  --text-3: #8c8b86;

  /* ---- 品牌色：香蕉黄是唯一强调色 ------------------------------------
     原来这里挂的是 #fa7705 橙，和开关/对勾上的 #FFD21F 各说各话，
     同一个界面出现两种"主色"。现在统一收口到 --brand，#FFD21F 只此一处。 */
  --brand: #ffd21f;
  --brand-soft: #ffe066;
  --brand-wash: rgba(255, 210, 31, .13);
  --brand-ink: #1c1500;        /* 亮黄底上的文字，白字对比不到 1.7:1 */
  --brand-glow: rgba(255, 210, 31, .34);

  /* ---- 语义色 ---- */
  --danger: #ff5a52;
  --ok: #35d07f;

  /* ---- 玻璃层：tabbar / 浮层共用 ---- */
  --glass-a: rgba(22, 22, 23, .62);
  --glass-b: rgba(14, 14, 14, .9);
  --glass-blur: blur(22px) saturate(170%);

  /* ---- 阴影：三级，越靠内越轻 ---- */
  --shadow-1: 0 1px 3px rgba(0, 0, 0, .3);
  --shadow-2: 0 6px 20px rgba(0, 0, 0, .38);
  --shadow-3: 0 14px 40px rgba(0, 0, 0, .5);

  /* ---- 缓动：全站同一个手感 ---- */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* 底部占位：目标站 dock 是浮动胶囊（左右 12px、底 10px、高 62px），
     所以这一条是「10 间隙 + 62 胶囊」= 72。所有让位计算都读它，
     不再各自写死数字。 */
  --nav-h: 72px;
  --dock-inset: 12px;
  --dock-gap: 10px;
  /* 62px：目标站 --dock-h 的原值。胶囊里的可用高度是 62-10(padding) = 52，
     正好装下 22px 图标 + 10.5px 文字 + 2px 间隙。 --nav-h 同步等于 gap + 这个值。 */
  --dock-h: 62px;
  --nav-bg: #0e0e0e; /* 与底部 @bot 信用条同色，JS 会用同一个值覆盖 */
  --watch-h: 38px;
  /* 控制行独占的那一行：播放键 + 进度条 + 倍速/音量/更多，40px 全高都是热区
     （40 也是拇指按得准的下限）；轨道在这行里垂直居中，收起态只剩 3px 一条 */
  --watch-prog-h: 40px;
  /* 进度条与 tabbar 之间的留白。进度条被挪到入口卡下方之后，这一条是它和
     导航栏之间唯一的隔离带 —— 没有它，拇指按住进度条下沿往外一滑就落进 tabbar */
  --watch-gap: 8px;
  /* t396 窗口模式：画面区底部保留 = 文案轨道 + 控件区（进度条 / 入口卡 / 间隙 / tabbar）。
     视频在「舞台 − 这条保留」的矩形里 contain 居中，留出来的每一寸都是 .home-stage 的纯黑底；
     文案轨道高度单列成 --sub-h，轨道顶边就是画面区底边，两者严丝合缝。
     JS（fitVideoStage）用 meta 的真实盒子量这条保留，不解析这条 calc —— 免得
     自定义属性的 calc 在部分 WebView 里拿不到已求值的像素。 */
  /* 112：标题 16/21 + 标签 11/15 + 说明 12/16 + 展开态两行简介 2×16，
     加上上下 padding 与三条 4px 间隙正好 112 —— 展开态不用裁，收起态只有 76。 */
  --sub-h: 112px;
  --stage-reserve: calc(var(--nav-h) + var(--safe-b) + var(--watch-gap) + var(--watch-h) + var(--watch-prog-h) + var(--sub-h));
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --radius: 12px;
  --font: 'HarmonyOS Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* 视频/封面默认能被拖成原生 drag，一拖就把 pointer 系列事件吞掉，导致电脑端上拉换剧失效 */
img, video { -webkit-user-drag: none; user-select: none; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #000;
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  /* Chrome-Android 会把窄容器里的文字自动放大（Font Boosting），
     三列网格单列只有约 111px，放大后标题必然撑破列宽 */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body { overflow: hidden; }

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* 全局去掉浏览器给 <a> 的默认下划线。官方号的「进入官方频道 / 私信」原来是 <a>，
   亮黄底上挂着一条下划线，用户当成排版错乱；公告正文里的富文本链接（.nt-body a）
   会自己再把下划线加回来，不受这一条影响。 */
a { color: inherit; text-decoration: none; }

#app {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
}

/* ---------------- 视图切换 ---------------- */
.view {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  background: var(--bg);
}
.view.on { display: flex; }

.view-scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-top: calc(var(--safe-t) + 10px);
  padding-bottom: calc(var(--nav-h) + var(--safe-b) + 14px);
}
/* 滚动容器是 flex column，头部（搜索框/分类行）不能被内容挤压缩短 */
.view-scroll > * { flex: none; }

/* ---------------- 首页播放器 ---------------- */
/* 跟手滑动时上下会露出这一层。死黑看着像漏底，换成中心微亮的柔和渐变，边界才有"卡片在滑"的感觉 */
.view-home { background: radial-gradient(120% 90% at 50% 50%, #1b1b1b, #000 72%); }
/* t235：首页整屏自绘，拖拽全部由脚本接管。不加这条时浏览器仍会把竖直拖拽当成
   滚动/回弹的一次尝试，TG 客户端就顺势接成「下拉关闭小程序」。 */
.view-home { touch-action: none; }

/* 剧场页顶部一层暖光（t415）：搜索框与栏目行落在光里，往下渐隐到页面底色。
   没有这一层时剧场就是一块纯 #0e0e0e，头部和内容完全同色，怎么调卡片都显得平。 */
.view-theater {
  background-color: var(--bg);
  background-image: radial-gradient(120% 34% at 50% 0%, rgba(255, 210, 31, .07), rgba(255, 210, 31, 0) 70%);
  background-repeat: no-repeat;
  background-size: 100% 320px;
}

/* 换剧动效的载体：#player-bg / #player / .player-shade / .boot-play / .rail / .meta /
   .watchbar 全挂在它下面，整体平移+缩放就是「一整张卡片在翻」。
   位移绝不能挂 .player —— fitPlayer() 会按片源宽高比往它身上写行内 translate3d 做 contain
   居中，一覆盖画面就贴到左上角。
   这里可以缩放了（v224 起）：fitPlayer() 改用 offsetWidth/offsetHeight 算居中量，
   那是布局尺寸，不受 transform 影响，动画中途触发的 loadedmetadata 也换算得准。
   缩放原点固定居中，缩下去时四边均匀收，不是从角落抽。

   必须有 overflow: hidden。一张卡就该有卡的边界，卡片里的东西不该漏到卡片外面。
   #player-bg（视频后面那层模糊封面）为了视差露边留了余量、又在跟手时被往下推，
   视觉底边会比 stage 多出 123px；stage 的 z-index(1) 高于预告卡(0)，溢出的这截
   就照常画在预告卡上，跟手时 stage 又是 0.9 透明 —— 白标题被糊成 97 级灰，
   看起来像"标题颜色不对"，其实是隔壁那张卡漏过来了。
   这个裁剪会跟着 transform 一起缩，正好就是卡片边缘。 */
.home-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  /* 明确层级：预告卡在下（0），整张卡片在上（1）。topbar(5)/gate(13) 都是 .view-home 的
     兄弟节点，仍在 stage 之上，不受影响。 */
  z-index: 1;
  /* t396：窗口模式的底色。contain 之后视频框四周露出的就是这一层，必须是纯黑 ——
     以前露的是 .view-home 的 radial-gradient 和 .player-bg 的模糊封面，
     观感是「灰玻璃」而不是目标站那种纯黑窗口。 */
  background: #000;
}
/* 揭幕时一条素材都没到（首访弱网：片单接口 5~6s 才回）：不要交成死黑。
   一块与启动层同色系的暗金径向底，底部「加载中…」照常压在上面，
   观感是「还在加载」而不是「页面挂了」。封面一到（setPlayerBackdrop）就摘掉。 */
.home-stage.is-bare {
  background: radial-gradient(120% 88% at 50% 38%, #2a2210 0%, #13100a 44%, #070707 100%);
}

/* ---------------- 跟手时的「下一条」预告 ----------------
   抖音/快手是无限列表：滑动时后面永远接着一条内容，绝不会露出底色。只做跟手位移的话，
   屏幕下方露出的只是 .view-home 的渐变，滑起来还是「一张图在挪」。
   这里不复制整页 DOM（video 只有一份，也没必要），只做一张轻量预告卡：
   模糊封面铺底 + 居中竖版海报 + 与 .meta 完全同位的标题/集数。
   JS 让它恒定位移「stage 位移 + 一屏高度」，两卡间距永远等于一屏，无缝咬合地滚。 */
.slide-ghost {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: none;
  overflow: hidden;
  pointer-events: none;
  background: #0a0a0a;
  transform: translate3d(0, 100%, 0);
  will-change: transform;
  backface-visibility: hidden;
}
.slide-ghost.on { display: block; }
/* 两卡交界处的压暗带。只保留下半条：它在海报和标题下面那一侧，压不到字。
   上半条（原来压在标题上）改由 .sg-meta 自己的背景承担。 */
.slide-ghost::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0));
}

.sg-bg {
  position: absolute;
  inset: -8%;
  z-index: 0;
  background: #000 center / cover no-repeat;
  filter: blur(22px) brightness(.5) saturate(1.15);
}
/* 跟手上限只有 0.34 屏（约 296px），居中的海报永远露不出来。改成顶部对齐：
   露出 200px 就能看到下一部的脸，滑到一半就是完整的海报。 */
.sg-pic {
  position: absolute;
  left: 50%;
  top: 96px;
  width: 72%;
  aspect-ratio: 3 / 4;
  transform: translateX(-50%);
  z-index: 1;
  border-radius: 12px;
  /* 背景图直接画在盒子上，不走 <img>：<img> 在 display:none 切 block 那一帧经常
     只画得出底色（2080×2752 的封面尤其明显），而同一张 URL 走 background-image
     在 .sg-bg 上一直是立刻出图的。短写法只改 image/position/size，颜色留着兜底。 */
  background: #141414 center / cover no-repeat;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .55);
}
/* 标题条 + 顶部暗化带，同一个元素。
   暗色渐变就是这块元素自己的 background —— 元素背景永远画在自己内容的下层，
   这是绘制顺序的定义，不用跟 z-index 较劲。之前用 ::before 做这条带子时，
   它实际盖在了标题上（computed 里 meta 是 z3、before 是 z2，但绿块实验证明被压），
   17px 的白字在模糊带上就灰成了一片。
   全宽 + padding 替代原来的 left/right 定位，padding-top 60px 让标题仍落在顶栏下沿。 */
.sg-meta {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 3;
  padding: 60px 74px 0 12px;
  box-sizing: border-box;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, .74) 0,
    rgba(0, 0, 0, .38) 82px,
    rgba(0, 0, 0, 0) 132px);
}
.sg-title {
  margin: 0;
  font-size: 19px;
  line-height: 25px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}
.sg-remark {
  margin-top: 7px;
  font-size: 13px;
  line-height: 18px;
  color: #ededed;
}

.player {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  /* 铺满还是完整由 fitPlayer() 按「源比 ÷ 舞台比」的倍数决定：0.52~1.9 倍之间
     一律 cover（竖屏短剧 720x1282 进 390x844 是 1.22 倍，铺满，左右不留黑边），
     只有差到 1.9 倍以上才 contain（16:9 横屏、1:1 方图这类铺满会只剩中间一条）。
     contain 时视频框按源比例收紧居中，四周留白露出下层 .player-bg 的模糊封面。 */
  object-fit: cover;
  object-position: 50% 50%;
  background: transparent;
  z-index: 1;
  /* 强制成独立合成层，避免低端 WebView 退回 CPU 双线性缩放 */
  transform: translateZ(0);
  will-change: transform;
  /* 暂停定格：画面降饱和降亮一档，用来区分「停住了」和「只是没画面」 */
  transition: filter .34s ease, opacity .3s ease;
}
/* 首帧封面还没解出来：video 层先透明，露出下面的模糊封面（.player-bg），
   「黑屏 → 清楚」变成「模糊 → 清楚」。只在起播前由 JS 挂，播放中不碰。 */
.home-stage.is-waiting #player { opacity: 0; }
/* 比例不匹配、fitPlayer() 按 min 比例收紧元素框后加的类。
   首帧还是 100%×100% 的 poster，metadata 一回来就缩到源比例，
   不给过渡就是一下「跳」；0.24s 收进去，观感上像画面在归位。 */
.player.fit-contain {
  object-fit: contain;
  transition: width .24s cubic-bezier(.2, .7, .2, 1), height .24s cubic-bezier(.2, .7, .2, 1),
    left .24s cubic-bezier(.2, .7, .2, 1), top .24s cubic-bezier(.2, .7, .2, 1),
    filter .34s ease, opacity .3s ease;
}
/* 暂停那一档只降一点饱和与亮度：降太多会像盖了灰纱，和「画面发糊」的老问题混在一起 */
.home-stage.is-paused .player {
  filter: saturate(.7) brightness(.86);
}
/* 不依赖 filter 的兜底压暗：老 X5 内核给 <video> 加滤镜可能不出效果，
   这层是普通 div 叠加，任何 WebView 都能画出来，保证「停住了」有可见反馈 */
.player-shade::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .16);
  opacity: 0;
  transition: opacity .3s ease;
}
.home-stage.is-paused .player-shade::after { opacity: 1; }

.player-bg {
  position: absolute;
  inset: -8%;
  z-index: 0;
  background: #000 center / cover no-repeat;
  /* 对齐目标站 .slide-bg 的压暗档（blur(30px) brightness(.45)）：
     contain 后这层就是画面的外框底色，压得够才能让 rail 图标和
     标题白字在四周留白上站得住。inset -8% 是给跟手视差留的余量。 */
  filter: blur(26px) brightness(.46) saturate(1.12);
  opacity: 0;
  transition: opacity .28s ease;
  pointer-events: none;
}
.player-bg.on { opacity: 1; }
/* 窗口模式（contain）下画面四周的留白不是纯黑，而是这张剧的放大虚化：
   线上第一部剧可能是 16:9 横屏素材（实测 882×496 进 360×780），contain 之后
   上下各留 289px —— 退场就是两块黑板，那才是「播放界面没适配好」。
   brightness .46 已经把它压到暗部，中间画面仍是唯一的锐利主体；
   #home-stage 的 background:#000 留作封面也没到货时的最后兜底。
   类挂在 #home-stage 上，只服务首页 —— 推荐页播放层（el.recoVideo）不吃这条。 */
/* 窗口模式下背景压得更虚：中间完整画面是唯一锐利主体，四周只留气氛。
   brightness .52 —— 线上实测 .34 时上下留白几乎是纯黑，看不出是封面；
   再亮就跟中间画面抢注意力了（上面还叠着 .player-shade 的顶部渐变） */
.home-stage.is-letterbox .player-bg { filter: blur(30px) brightness(.52) saturate(1.1); }

.player-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /* 只压顶栏与底部信息区两条，画面中段不再被整幅渐变削亮：
     原值顶部 0.55、底部 0.82，等于给每一帧都盖了一层灰纱，
     观感就是「糊、发闷」，跟片源码率无关。 */
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .22) 0%, rgba(0, 0, 0, 0) 20%),
    linear-gradient(0deg, rgba(0, 0, 0, .58) 0%, rgba(0, 0, 0, .22) 22%, rgba(0, 0, 0, 0) 42%);
}

/* 暂停时的中央播放键：金色玻璃圆 + 两层向外扩散的光环。
   光环只在「暂停且按钮露出」时跑，播放中不占动画帧。 */
.boot-play {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 50%;
  width: 62px;
  height: 62px;
  margin: -31px 0 0 -31px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 32%, rgba(255, 226, 120, .26), rgba(0, 0, 0, .52) 70%);
  box-shadow: 0 0 0 1px rgba(255, 210, 31, .30), 0 6px 22px rgba(0, 0, 0, .46);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .2s ease, transform .3s cubic-bezier(.2, .9, .3, 1.25);
}
.boot-play svg {
  width: 30px;
  height: 30px;
  fill: #fff;
  margin-left: 3px;
  filter: drop-shadow(0 0 6px rgba(255, 210, 31, .5));
}
.boot-play.hide { opacity: 0; pointer-events: none; transform: scale(.84); }
/* 两层光环用绝对定位 + margin 居中，不碰 inset，免得和 translate 定位打架 */
.boot-play::before,
.boot-play::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62px;
  height: 62px;
  margin: -31px 0 0 -31px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 210, 31, .52);
  opacity: 0;
  pointer-events: none;
}
.home-stage.is-paused .boot-play:not(.hide)::before {
  animation: pause-wave 2.8s cubic-bezier(.2, .62, .3, 1) infinite;
}
.home-stage.is-paused .boot-play:not(.hide)::after {
  animation: pause-wave 2.8s cubic-bezier(.2, .62, .3, 1) 1.4s infinite;
}
@keyframes pause-wave {
  0%   { opacity: .75; transform: scale(.92); }
  62%  { opacity: .10; transform: scale(1.9); }
  100% { opacity: 0;   transform: scale(2.05); }
}
/* 暂停期间三角保持一点呼吸，静止的图标看着像卡住了 */
.home-stage.is-paused .boot-play:not(.hide) svg { animation: pause-bob 2.8s ease-in-out infinite; }
@keyframes pause-bob {
  0%, 100% { opacity: .82; }
  50%      { opacity: 1; }
}

/* ---------------- 点击涟漪（t389） ----------------
   点画面任意处都会在落点扩散一圈金环，作为「这一下被接住了」的即时反馈。
   层级压在 .player-shade(2) 之上、rail/meta/watchbar(5) 之下：环穿过文字时不糊字。 */
.tap-fx {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.tap-fx i {
  position: absolute;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 210, 31, .62);
  box-shadow: 0 0 12px rgba(255, 210, 31, .26);
  animation: tap-ring .58s cubic-bezier(.16, .74, .3, 1) forwards;
}
@keyframes tap-ring {
  0%   { opacity: .86; transform: scale(.4); }
  60%  { opacity: .34; }
  100% { opacity: 0;   transform: scale(6.4); }
}

/* 顶部 */
.topbar {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--safe-t) + 50px);
  padding: calc(var(--safe-t) + 10px) 10px 6px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 6px;
  /* 片源自带片头台标，顶部压一层渐变才能让频道/图标保持可读。
     .62 会把铺满后的画面上缘整整压暗一档，与 .player-shade 的 .22 叠起来接近七成黑；
     收到 .48 仍然压得住白字，观感通透很多。 */
  background: linear-gradient(180deg, rgba(0, 0, 0, .48), rgba(0, 0, 0, .20) 60%, rgba(0, 0, 0, 0));
}

.icon-btn {
  flex: none;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.icon-btn svg { width: 21px; height: 21px; fill: none; }

/* 频道栏：不产生横向溢出（iOS WKWebView 对 overflow 滚动元素画的是系统 overlay 滚动条，
   ::-webkit-scrollbar 对其无效，只能从源头避免溢出）。
   v298 改为 space-evenly 均分：栏目只剩 5 个（全部/黄果原创/短剧/漫剧/专题），
   左对齐会在「专题」右侧留出 60px 以上的空白，肉眼就是「汉堡和搜索之间一大条空」。
   space-evenly 把空隙均分成 6 份，首尾到两个图标各留一份，左右对称。
   gap 归零：space-evenly 自身就是间距来源，两者叠加会溢出。 */
.channels {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 0;
  overflow: hidden;
  padding: 0 2px;
}
/* 目标站 .home-tabs 的真实取值：未选中 600/#ffffff9e、选中 700 白 + scale(1.08)，
   下面一根 18×3 的白墨条随选中格滑动。我方原来只有 500 字重 + 静态下划线，
   切栏目时那根线是「消失再出现」，看着就是网页而不是 App。 */
.channels button {
  position: relative;
  flex: 0 1 auto;
  min-width: 0;
  height: 34px;
  line-height: 34px;
  font-size: 14px;
  color: #ffffff9e;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 0;
  white-space: nowrap;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
  transition: color .2s var(--ease), transform .25s var(--spring, cubic-bezier(.34, 1.4, .5, 1));
}
.channels button.on {
  color: #fff;
  font-weight: 700;
  transform: scale(1.08);
}
.channels button:active { transform: scale(.94); }

/* 滑块墨条：位置由 JS 写到 --ink-x / --ink-w 上（各栏目字数不同，不能像目标站那样按
   1/N 算）。宽度夹在 18~26px 之间：两字栏目下面是一小截，四字的「黄果原创」
   下面不至于细得像错位。 */
.channels-ink {
  position: absolute;
  z-index: 0;
  left: 0;
  bottom: 4px;
  width: var(--ink-w, 18px);
  height: 3px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .4), 0 0 8px rgba(255, 255, 255, .45);
  pointer-events: none;
  opacity: 0;
  transform: translateX(var(--ink-x, 0px));
  transition: transform .35s var(--spring, cubic-bezier(.34, 1.4, .5, 1)),
    width .35s var(--spring, cubic-bezier(.34, 1.4, .5, 1)), opacity .2s;
}
.channels-ink.on { opacity: 1; }

/* 右侧互动栏 ------------------------------------------------------------
   目标站播放页的取值：
     .rail{right:8px;bottom:calc(92px + safe-b);gap:16px}
     .rail-avatar{position:relative;margin-bottom:8px}  头像上真 2px 白描边
     .rail-btn{min-width:48px;gap:2px;filter:drop-shadow(0 1px 4px rgba(0,0,0,.45))}
     .rail-btn span{font:600 12px/1.3 …;font-variant-numeric:tabular-nums}
     图标 size=38，实心；点赞是 --like 红，追剧是 --accent 金。
   撤掉「下集」之后整条 rail 是 5 格，同目标站（头像 + 四个按钮），
   所以 LOGO 可以直接回到目标站的 52，不再因为多一格而缩到 48。 */
.rail {
  position: absolute;
  z-index: 5;
  right: 8px;
  /* t396 收一档：整条 rail 的底边落到入口卡上沿再下 10px。
     原来这里多垫了 40px，最下面那颗「分享」离 .watch-main 有一大截空白，
     整列看着悬在半空。10px 是「贴近但不重叠」的取值：分享按钮下沿距卡片上沿
     10px，图标本身仍完整落在文案轨道右侧的空白里（meta 右边界 74px、rail 左沿 56px，
     横向还留 18px 间隙）。 */
  bottom: calc(var(--nav-h) + var(--safe-b) + var(--watch-gap) + var(--watch-h) + var(--watch-prog-h) + 10px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
/* 头像位：目标站是作者头像 + 20px 关注角标；我们是官方 LOGO + 20px 金色加号，
   点击进「黄果官方」号主页（粉丝/获赞在那）。原来是指向 t.me 的 <a>，
   现在是 <button>，所以 padding/border/background 要归零 —— 否则浏览器
   默认的按钮底色和 6px 内边距会把这颗圆头像顶成一个小方块。 */
.rail-logo {
  position: relative;
  width: 52px;
  height: 52px;
  margin-bottom: 8px;
  padding: 0;
  border: 0;
  background: none;
  display: block;
  -webkit-tap-highlight-color: transparent;
}
.rail-logo img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, .92);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .5);
  background: #2a1a06;
  transition: transform .12s var(--ease);
}
.rail-logo:active img { transform: scale(.94); }
.rail-logo-plus {
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.rail-logo-plus svg { width: 12px; height: 12px; }

.rail-btn {
  min-width: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #fffffff5;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .45));
  transition: color .2s var(--ease), transform .12s var(--ease);
}
/* 图标改实心：目标站 rail 用 solid 图标，fill 与 stroke 同色同宽时
   小尺寸下不会出现空心描边发虚的问题。 */
.rail-btn svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linejoin: round;
  transition: transform .12s ease;
}
.rail-btn:active svg { transform: scale(.86); }
.rail-btn.on { color: var(--brand); }
.rail-btn.on[data-act="like"] { color: #ff4d5e; }
.rail-num {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .55);
}
.rail-btn.on .rail-num { color: inherit; }

/* 底部文案轨道（t396 字幕下沉 / t400 铺满适配）
   改造前 .meta 是「浮在画面上的标题块」：字号大、位置随 watchbar 收放上下滑，
   在 9:16 源上直接压在人物脸上。现在它是播放器下沿的一条轨道：
     · 底边咬住 watchbar 的顶边；高度自适应内容，上限 --sub-h（文案少时块变矮、
       文字自然落到轨道底部，不会在半空吊着留一截黑）；
     · 铺满（cover）时画面吃满整个舞台，轨道不带底色，靠 .stage-scrim 的底部
       渐变托底 —— 这块以前写的是 background:#000，铺满之后就是盖在海报上的
       一块黑补丁；
     · contain（左右/上下留黑）时画面只到轨道顶边，轨道底下就是舞台自己的
       纯黑底，不带底色也是黑的，两种模式共用一条轨道；
     · 字号按可读性定（标题 16/21、标签 11/15、说明 12/16），一行标题 + 一行集数；
     · 只有 .expanded 展开简介时多两行，仍落在 --sub-h 之内（overflow 兜底裁切）。
   两种情形轨道会整体下沉，把空出来的位置占住：
     · 单集（.collapsed 且没有一集导航）：入口卡收起但留了 38px 占位，
       文案跟着落下去贴住进度条，否则标题和进度条之间空出 70 多像素；
     · 已选集（.collapsed.nav-on）：槽位里站着一集导航，轨道原地不动，
       否则会被那排按钮压住半截。 */
.meta {
  position: absolute;
  z-index: 5;
  /* 右边界 74：rail 左沿 = 100% - 8 - 48（w-56），这里留 18px 横向间隙，不与图标打架 */
  left: 0;
  right: 74px;
  bottom: calc(var(--nav-h) + var(--safe-b) + var(--watch-gap) + var(--watch-h) + var(--watch-prog-h));
  /* 高度跟着内容走，底边由 bottom 钉死：文字少时块变矮、整体下落贴住下面的控件，
     不会像固定高度那样让文字浮在轨道顶部、底下空一截 */
  height: auto;
  max-height: var(--sub-h);
  padding: 8px 0 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
  background: transparent;
  /* 系统字体放大不许把轨道里的字撑高（撑高就溢出到画面里） */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
/* 单集：入口卡（观看完整短剧）收起，只留 38px 占位 —— 那块地方空着就是「标题和
   进度条之间掉了一块」。轨道整体下沉一个入口卡高度，文案底边落到控制行上沿附近，
   紧贴进度条。已选集时槽位里是一集导航（不带 .collapsed 的那条分支由 .nav-on 挡掉），
   轨道必须留在原位，否则被那排按钮压住。 */
.meta.collapsed:not(.nav-on) {
  bottom: calc(var(--nav-h) + var(--safe-b) + var(--watch-prog-h) + 12px);
}
/* 底部压暗层：从 tabbar 底一路漫到文案轨道上方。
   铺满时标题/集数/入口卡/进度条都压在画面上，没有这层渐变托底，
   白字遇上浅色画面就读不出来；contain 时它整块落在纯黑上，看不出来，
   所以两种模式共用一层，不用切类。高度按“文案轨道 + 控件区”算，
   多出来的 28px 是渐变淡出的那段尾巴。 */
.stage-scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--nav-h) + var(--safe-b) + var(--watch-gap) + var(--watch-h) +
    var(--watch-prog-h) + var(--sub-h) + 28px);
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(to top,
    rgba(0, 0, 0, .92) 0%,
    rgba(0, 0, 0, .78) 46%,
    rgba(0, 0, 0, .3) 78%,
    rgba(0, 0, 0, 0) 100%);
}
.meta-title {
  margin: 0;
  font-size: 16px;
  line-height: 21px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 剧名末尾的「›」：这行字能点（进详情看简介和选集），没个箭头没人知道。
   与推荐层 .reco-meta-title::after 同一套画法，两处观感对齐。
   只在真挂着一部剧时出现（JS 打 .has-link）——「切换中…」「暂无内容」这些
   状态文案带上箭头，点了没反应，比没箭头更糟。 */
.meta-title.has-link::after {
  content: '›';
  margin-left: 5px;
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
  color: rgba(255, 255, 255, .9);
  vertical-align: -2px;
}
.meta-tags { display: flex; gap: 4px; flex-wrap: nowrap; overflow: hidden; }
.meta-tags span {
  font-size: 11px;
  line-height: 15px;
  font-weight: 600;
  padding: 0 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  flex: none;
}
.meta-line {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: #f0f0f0;
  min-width: 0;
}
.meta-line > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.meta-expand {
  font-size: 12px;
  color: #fff;
  font-weight: 700;
  flex: none;
}
.meta-synopsis {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  color: #cfcfcf;
  display: none;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.meta.expanded .meta-synopsis { display: -webkit-box; }
/* 矮屏（<700）把轨道再压一档，简介只留一行，否则展开态会越过 --sub-h */
@media (max-height: 700px) {
  :root { --sub-h: 100px; }
  .meta-synopsis { -webkit-line-clamp: 1; }
}

/* 观看完整短剧 + 进度条
   布局从上到下是「按钮 → 进度条 → tabbar」，与参考稿一致：细进度条贴着入口卡
   下沿，一眼能看出看到哪儿了。
   代价是进度条重新靠近底部导航，所以中间留 --watch-gap(8px) 隔离带：
   轨道本身只有 4px、垂直居中在 22px 热区里，到 tabbar 还有 17px 的物理距离。 */
.watchbar {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: calc(var(--nav-h) + var(--safe-b));
  padding-bottom: var(--watch-gap);
  display: flex;
  flex-direction: column;
  /* 容器自身不吃点击：单集时按钮收起留出的那块空白要落回视频上（暂停/继续），
     只有进度条和按钮这两个子元素自己接受操作 */
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
/* 合集面板顶上来的时候这张卡就地收起。子元素各自声明了 pointer-events:auto，
   这里必须逐个收回 —— 否则收起的按钮虽然看不见，仍能被点到，面板会被重复顶开 */
.watchbar.hide { opacity: 0; transform: translateY(10px); }
.watchbar.hide .watch-main,
.watchbar.hide .ep-nav button,
.watchbar.hide .watch-progress,
.watchbar.hide .wc-btn,
.watchbar.hide .wc-pop { pointer-events: none; }
/* 入口按钮收起但保留占位：单集没有合集可进，或用户已经从面板里选过集。
   用 display:none 会让进度条整个往下沉 46px，底边重新贴住 tabbar ——
   那正是这一轮要消掉的误触，收起态上不能再长回来 */
.watchbar.collapsed .watch-main { visibility: hidden; pointer-events: none; }
/* 一集导航顶上来时把入口卡彻底摘出流：两张卡都占 --watch-h，
   同时在场会把进度条往下推 46px，正好撞上一直要避免的贴底误触。 */
.watchbar.nav-on .watch-main { display: none; }

/* ---------------- 选集后的一集导航（顶替入口卡的同一槽位） ----------------
   高度锁死 --watch-h，和 .watch-main 完全同高，切换时进度条不位移。
   四个按钮：[‹ 上一集] [第 N/M 集] [下一集 ›] [全集]
   中间那格只显示不动手，两侧是真按钮；末集时右侧文案变「下一部」。
   视觉语言与选集面板的 .sheet-nav 保持一致（深灰底 + 品牌色下一集），
   这样从面板点完集回到播放页，控件看起来是同一套东西。 */
.ep-nav {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  height: var(--watch-h);
  padding: 0 12px;
  box-sizing: border-box;
  /* 行本身不吃点击：两侧留白落回视频（点一下唤醒控制行） */
  pointer-events: none;
}
.ep-nav[hidden] { display: none; }
.ep-nav button {
  pointer-events: auto;
  flex: none;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ep-nav button:active { background: rgba(255, 255, 255, .24); }
.ep-nav button:disabled { opacity: .38; }
.ep-nav button svg { width: 13px; height: 13px; fill: currentColor; flex: none; }
.ep-nav .en-now {
  flex: 1 1 auto;
  min-width: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ep-nav .en-next {
  background: var(--brand-wash);
  color: var(--brand);
  padding: 0 12px;
}
.ep-nav .en-all { padding: 0 9px; }

/* ---------------- 播放控制行（对齐 YouTube 移动端） ----------------
   结构：[播放/暂停] [进度条 ─────────] [1.0] [音量] [更多]
   常驻的只有那条 3px 轨道与白色已播段；把手与四个按钮默认透明，靠下面三种
   方式「唤醒」成 40px 的展开态：鼠标在画面上移动、手指点一下画面、按住轨道。
   收起态必须同时把按钮的 pointer-events 关掉 —— 否则透明度 0 的按钮仍然
   吃点击，用户点到的是看不见的东西（这个坑在 .watchbar.hide 上踩过一次）。 */
.watch-ctl {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  width: 100%;
  height: var(--watch-prog-h);
  padding: 0 4px;
  pointer-events: none;   /* 行本身不吃点击，空白处落回视频 */
}
.wc-btn {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(.86);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, background .16s ease;
}
.wc-btn svg { width: 20px; height: 20px; fill: currentColor; }
.wc-btn:active { background: rgba(255, 255, 255, .14); }
.watch-ctl.on .wc-btn { opacity: 1; transform: none; pointer-events: auto; }
.wc-toggle { width: 38px; }
.wc-toggle svg { width: 19px; height: 19px; }
.wc-ico-pause { display: none; }
.watch-ctl.playing .wc-ico-play { display: none; }
.watch-ctl.playing .wc-ico-pause { display: block; }

/* 倍速：循环箭头小圆 + 数字，和参考图一致 */
.wc-rate { width: 52px; gap: 3px; }
.wc-rate-ring svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wc-rate-txt { font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* 音量：喇叭 + 两条弧，静音时换成叉 */
.wc-vol-w, .wc-vol-x { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.wc-vol-x { display: none; }
.wc-vol.mute .wc-vol-w { display: none; }
.wc-vol.mute .wc-vol-x { display: block; }

/* 进度条：轨道常驻 3px，展开/悬停/拖动时 5px，把手纯白 13px —— 与参考图同一套
   配色（不再用品牌金流光：3px 高的渐变条在真实画面里糊成一片，读不出位置） */
.watch-ctl .watch-progress {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 6px;
}
.watch-ctl .watch-progress::before {
  height: 3px;
  margin-top: -1.5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .3);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .26);
  transition: height .16s ease, margin-top .16s ease, background .16s ease;
}
.watch-ctl .watch-progress i {
  height: 3px;
  border-radius: 2px;
  background-image: none;
  background-color: #fff;
  animation: none;
  box-shadow: none;
  transition: height .16s ease;
}
.watch-ctl .watch-progress .watch-knob {
  width: 13px;
  height: 13px;
  margin: -6.5px 0 0 -6.5px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .55);
  opacity: 0;
  transform: scale(.5);
}
/* 展开态：轨道加粗、把手露出来 */
.watch-ctl.on .watch-progress::before {
  height: 5px;
  margin-top: -2.5px;
  background: rgba(255, 255, 255, .36);
}
.watch-ctl.on .watch-progress i { height: 5px; }
.watch-ctl.on .watch-progress .watch-knob { opacity: 1; transform: scale(1); }
/* 按住拖动：把手再放大一档，指腹压住的那一下有回应 */
.watch-ctl .watch-progress.on::before {
  height: 5px;
  margin-top: -2.5px;
  background: rgba(255, 255, 255, .4);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .3);
}
.watch-ctl .watch-progress.on i { height: 5px; }
.watch-ctl .watch-progress.on .watch-knob { opacity: 1; transform: scale(1.18); }
/* 桌面端鼠标悬在轨道上就按展开态画，还没按就知道这里能拖 */
@media (hover: hover) and (pointer: fine) {
  .watch-ctl .watch-progress:hover::before {
    height: 5px;
    margin-top: -2.5px;
    background: rgba(255, 255, 255, .36);
  }
  .watch-ctl .watch-progress:hover i { height: 5px; }
  .watch-ctl .watch-progress:hover .watch-knob { opacity: 1; transform: scale(1); }
}

/* ---- 弹层：倍速 / 音量 / 更多，一律从控制行上沿往上弹 ---- */
.wc-pop {
  position: absolute;
  z-index: 9;
  bottom: calc(100% + 2px);
  pointer-events: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(24, 24, 26, .96);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.wc-pop[hidden] { display: none; }
.wc-pop-rate {
  right: 96px;
  width: 108px;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
}
.wc-pop-rate button {
  height: 40px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.wc-pop-rate button:active { background: rgba(255, 255, 255, .12); }
.wc-pop-rate button.on { color: #ffd21f; font-weight: 700; }
.wc-pop-vol {
  right: 46px;
  width: 62px;
  padding: 10px 0 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.wc-vol-num { font-size: 13px; color: #fff; font-variant-numeric: tabular-nums; }
.wc-vol-track {
  position: relative;
  width: 4px;
  height: 118px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .26);
  touch-action: none;
}
/* 轨道只有 4px 宽，指腹按偏一点就断触。伪元素把可点区域撑到 44px：
   position:absolute 不参与布局，getBoundingClientRect 的高度仍是 118px，
   音量比例算法不用改；伪元素透明，白色填充绘制在它上层。 */
.wc-vol-track::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 44px;
  margin-left: -22px;
}
.wc-vol-track i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  border-radius: 2px;
  background: #fff;
  pointer-events: none;
  /* 常驻 80ms 补间：松手后的程序性变更（切集、取消静音）看着是滑过去的 */
  transition: height .08s ease-out;
}
.wc-vol-track b {
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 13px;
  height: 13px;
  margin: 0 0 -6.5px -6.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .55);
  pointer-events: none;
  transition: bottom .08s ease-out;
}
/* 拖拽期间关掉补间：每帧再追 80ms 会明显滞后于手指。
   由 live.js 在 pointerdown 加 .dragging，pointerup / cancel 去掉。 */
.wc-pop-vol.dragging .wc-vol-track i,
.wc-pop-vol.dragging .wc-vol-track b { transition: none; }
.wc-pop-more {
  right: 2px;
  min-width: 158px;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
}
.wc-pop-more button {
  height: 44px;
  padding: 0 16px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 14px;
  text-align: left;
  white-space: nowrap;
}
.wc-pop-more button:active { background: rgba(255, 255, 255, .12); }
.wc-pop-more button[hidden] { display: none; }

/* 弹层遮罩：点一下画面任意处收起弹层，同时不把这一下变成「暂停」 */
.wc-mask {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: transparent;
}
.wc-mask[hidden] { display: none; }

/* 入口卡：与目标站 .drama-row 同构 —— 高 38px、圆角 10px、金边 + 深色底、
   backdrop blur 14px；左侧图标走 --accent 金，标题 13.5px/700，竖分隔线 1×10，
   副文案 12.5px 半透明白，右侧 chevron 白 60%。
   卡片左右各让 12px（目标站 .drama-row 也是 left/right 12px），
   进度条与控制行不动，所以用 margin 而不是改 .watchbar 的内边距。 */
.watch-main {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  margin: 0 12px;
  height: var(--watch-h);
  padding: 0 10px 0 12px;
  pointer-events: auto;
  border: 1px solid rgba(255, 210, 31, .42);
  border-radius: 10px;
  background: rgba(26, 21, 9, .62);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #fff;
  text-align: left;
  transition: transform .15s var(--ease), background .2s var(--ease);
}
.watch-main:active { transform: scale(.98); background: rgba(255, 210, 31, .18); }
.watch-ico {
  flex: none;
  display: block;
  width: 15px;
  height: 15px;
  color: var(--brand);
}
.watch-ico svg { width: 15px; height: 15px; display: block; fill: currentColor; }
.watch-text {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  white-space: nowrap;
}
/* 标题必须粗：目标站这一行是 <b>观看完整短剧</b>，13.5px/700，
   它和右边灰色集数靠字重与颜色两层差拉开层次。 */
.watch-t {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  flex: none;
}
/* 三段文案（标题 | 当前第 N 集 | 已更新至第 M 集）比原来长，
   段间距收到 6px；标题与中间那段永不被压，最右一段在极窄屏才允许省略。 */
.watch-sep {
  flex: none;
  display: inline-block;
  width: 1px;
  height: 9px;
  margin: 0 6px;
  background: rgba(255, 210, 31, .38);
}
.watch-s {
  font-style: normal;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, .86);
  flex: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.watch-s:last-child { flex: 0 1 auto; min-width: 0; }
.watch-chev {
  width: 15px;
  height: 15px;
  flex: none;
  margin-left: 4px;
  color: rgba(255, 255, 255, .6);
}

.watch-progress {
  position: relative;
  flex: none;
  height: var(--watch-prog-h);
  margin: 0 14px;
  pointer-events: auto;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
/* 轨道：这个高度上压着 .player-shade 的 0.82→0.35 黑渐变，纯黑轨道叠上去等于隐形，
   整条进度条看起来是悬空的。改用半透明白 —— 暗画面里呈中性深灰、亮画面里靠外圈
   深色描边勾出边界，两种画面都读得出「总长度」，白色已播段压上去才是整屏最亮的一条 */
.watch-progress::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .24);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .25);
  transition: height .18s ease, margin-top .18s ease, box-shadow .18s ease;
}
/* 已播部分：纯白实心。
   位置必须绝对定位居中 —— 容器高 40px（--watch-prog-h），而轨道 ::before 与
   .watch-knob 都是 top:50%。这里若还是正常流里的 block，3px 的填充会贴在容器
   顶部、轨道却在中间，同一条进度条就被画成上下两条（v287 前线上就是这个样子）。
   配色回到纯白：品牌黄只用于操作态，3~5px 高的渐变条在真实画面上也读不出位置。 */
.watch-progress i {
  position: absolute;
  left: 0;
  top: 50%;
  display: block;
  height: 4px;
  width: 0;
  border-radius: 2px;
  transform: translateY(-50%);
  pointer-events: none;
  background: #fff;
  transition: height .18s ease;
}
.watch-knob {
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .55);
  opacity: 0;
  transform: scale(.7);
  transition: opacity .16s ease, transform .16s ease;
  pointer-events: none;
}
/* 桌面端悬停：轨道变粗、把手浮出来，鼠标还没按就知道这里能拖 */
@media (hover: hover) and (pointer: fine) {
  .watch-progress:hover::before { height: 6px; margin-top: -3px; background: rgba(255, 255, 255, .34); }
  .watch-progress:hover i { height: 6px; }
  .watch-progress:hover .watch-knob { opacity: 1; transform: scale(1); }
}
/* 拖动中：轨道加白色描边、把手放大，手指压住时就停在加粗态 */
.watch-progress.on::before {
  height: 6px;
  margin-top: -3px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .3);
}
.watch-progress.on i { height: 6px; }
.watch-progress.on .watch-knob { opacity: 1; transform: scale(1.15); }

/* 系统开了「减弱动态效果」：填充本来就没有动画，这里只统一关掉各处过渡 */
@media (prefers-reduced-motion: reduce) {
  .watch-progress i { animation: none; }
  .watch-progress::before,
  .watch-progress i,
  .watch-knob,
  .watchbar,
  .watch-main { transition: none; }
}

/* ---------------- 底部导航 ---------------- */
/* 结构与目标站一一对应：
     .dock{left:12px;right:12px;bottom:calc(gap+safe-b);display:flex;gap:10px;pointer-events:none}
     .dock-bar{flex:1;height:var(--dock-h);padding:5px;border-radius:999px;
               display:grid;grid-template-columns:repeat(n,1fr);overflow:hidden}
     .dock-indicator{left:5px;width:calc((100% - 10px)/n);位移靠索引}
     .dock-me{flex:none;width:var(--dock-h);height:var(--dock-h);border-radius:50%}
   外层 .tabbar 仍是那个「离屏 12px 的浮动条」，里面拆成「胶囊 + 圆头像」两块：
   胶囊自己承担 backdrop-filter，头像不参与，选中块滑到边缘时就不会被头像切出一道边。 */
.tabbar {
  position: absolute;
  z-index: 20;
  left: var(--dock-inset);
  right: var(--dock-inset);
  bottom: calc(var(--dock-gap) + var(--safe-b));
  height: var(--dock-h);
  display: flex;
  align-items: center;
  gap: 10px;
  /* 外层只做布局：胶囊与头像之间的那道 10px 空隙要让底下的视频能被点到，
     只有胶囊和头像自己把事件收回来。 */
  pointer-events: none;
}
.dock-bar {
  position: relative;
  flex: 1;
  height: 100%;
  padding: 5px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  border-radius: 999px;
  overflow: hidden;
  pointer-events: auto;
  /* 目标站 .dock .glass：顶部一圈冷白高光 + 底部内阴影 + 半透明底，
     blur 30 再压一点亮度 —— 不压的话底下的暖色画面会把胶囊「染黄」，
     和旁边那块中性灰的头像圈就不像一个系统了。 */
  background:
    radial-gradient(120% 140% at 50% -60%, rgba(255, 255, 255, .16), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .012) 50%, rgba(0, 0, 0, .26)),
    rgba(18, 15, 22, .66);
  -webkit-backdrop-filter: blur(30px) saturate(190%) brightness(.86);
  backdrop-filter: blur(30px) saturate(190%) brightness(.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    inset 0 -1px 0 rgba(0, 0, 0, .28),
    0 2px 6px rgba(0, 0, 0, .22),
    0 14px 34px rgba(0, 0, 0, .42);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .dock-bar { background: var(--nav-bg, #0e0e0e); }
}
/* 客户端主题是浅色时 webview 边缘会透出一圈浅色高光，把底色调厚一档压住它。
   色相仍然只有一套，不跟着主题变。 */
html[data-tg-scheme="light"] .dock-bar {
  background:
    radial-gradient(120% 140% at 50% -60%, rgba(255, 255, 255, .16), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .012) 50%, rgba(0, 0, 0, .3)),
    rgba(22, 18, 28, .86);
}

/* 滑块。宽度锁死 1/4（与 grid 同宽），位移 = 索引 × 自身宽度，
   所以 JS 只需写 --i 一个变量。目标站用 left 计算，这里用 translateX ——
   位移走合成层，滑动不触发重排。
   颜色是「淡暖白」而不是品牌黄：一屏只有图标是黄的，块本身必须退到背景里，
   否则四个格子里永远有一块在抢镜。 */
.dock-ind {
  position: absolute;
  z-index: 0;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc((100% - 10px) / 4);
  border-radius: 999px;
  pointer-events: none;
  background:
    radial-gradient(90% 120% at 50% -20%, rgba(255, 240, 205, .22), transparent 60%),
    linear-gradient(180deg, #ffecc821, #ffecc80d);
  box-shadow:
    inset 0 1px 0 #fff4de42,
    inset 0 -1px 0 rgba(0, 0, 0, .2),
    0 0 0 .5px #e9b44c38,
    0 4px 12px rgba(0, 0, 0, .3),
    0 0 22px #e9b44c24;
  transform: translateX(calc(var(--i, 0) * 100%));
  transition: transform .5s var(--spring, cubic-bezier(.34, 1.4, .5, 1)), opacity .2s;
}
/* 切到「我的」/搜索页时胶囊里没有选中格：整块隐去，
   选中这件事改由右侧头像的金环表达 —— 与目标站 indicator / dock-me 的分工一致。 */
.dock-bar.no-ind .dock-ind { opacity: 0; }

/* 图标 + 文字两行：目标站 .dock-tab 是 gap:2px、10.5px/500，图标 22 且实心。
   选中态：文字由 #ffffff9e 转白并加粗到 600，图标单独转金色并投一层暖光。
   注意颜色不能写在 .tab-ico 的 fill 上 —— fill:currentColor 跟着父级走，
   所以必须在 .tab.on .tab-ico 里重新指定 color，图标才会和文字分家。 */
.tab {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0;
  border: 0;
  background: none;
  color: #ffffff9e;
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: .02em;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  transition: color .2s var(--ease);
}
.tab .tab-ico {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: none;
  transition: transform .35s var(--spring, cubic-bezier(.34, 1.4, .5, 1)), color .2s var(--ease);
}
.tab:active .tab-ico { transform: scale(.84); }
.tab.on { color: var(--text); font-weight: 600; }
.tab.on .tab-ico {
  color: var(--brand);
  transform: translateY(-1px);
  filter: drop-shadow(0 2px 6px rgba(255, 170, 40, .35));
}

/* 最右的圆形头像 = 「我的」（目标站 .dock-me）。与胶囊同高（--dock-h），
   40px 环 + 32px 头像；环上那道 2px 描边用 mask 只留边，
   选中时描边从白转金并加一圈柔光。 */
.dock-me {
  position: relative;
  flex: none;
  width: var(--dock-h);
  height: var(--dock-h);
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: none;
  pointer-events: auto;
}
/* 按下时缩的是环、不是整个按钮：按钮是圆形命中区，缩放它会让热区跟着跳。
   目标站就是 .dock-me:active .dock-me-ring{transform:scale(.88)}。 */
.dock-me:active .dock-me-ring { transform: scale(.88); }
.dock-me-ring {
  position: relative;
  /* 压在 ::after 那圈呼吸光之上：光环是为了把头像顶出来，盖在头像上就反了 */
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  /* 头像圈不跟着胶囊一起 blur(30)：小圆面上 blur 太重会变成一团糊，
     这里只要薄薄一层压住背后的亮画面。 */
  background: rgba(22, 18, 26, .55);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  /* transform 也要过渡：按下缩环、松手回弹走的就是它 */
  transition: transform .4s var(--spring, cubic-bezier(.34, 1.4, .5, 1)), box-shadow .3s var(--ease);
}
.dock-me-ring::before,
.dock-me-ring::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 2px;
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  transition: opacity .3s;
}
.dock-me-ring::before { background: linear-gradient(155deg, #ffffff6b, #ffffff24); }
.dock-me-ring::after {
  background: linear-gradient(155deg, var(--brand-soft), var(--brand));
  opacity: 0;
}
.dock-me.on .dock-me-ring::before { opacity: 0; }
.dock-me.on .dock-me-ring::after { opacity: 1; }
.dock-me.on .dock-me-ring {
  box-shadow: 0 0 0 3px rgba(255, 210, 31, .07), 0 2px 8px rgba(217, 154, 43, .16), 0 0 10px rgba(255, 210, 31, .1);
  /* 进「我的」时环弹一下（目标站 me-pop），提醒选中已经转移到头像上 */
  animation: me-pop .55s var(--spring, cubic-bezier(.34, 1.4, .5, 1));
}
@keyframes me-pop {
  0% { transform: scale(.82); }
  55% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
/* 头像本体：圆形容器，里面可能是 <img>（TG 头像 / 品牌图）也可能是昵称首字，
   两种都靠 place-items 居中，切换时不会跳一下。 */
.dock-me-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #2a1a06;
  color: var(--brand-soft);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.dock-me-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (prefers-reduced-motion: reduce) {
  .tab, .tab .tab-ico, .dock-ind, .dock-me-ring { transition: none; }
  .dock-me.on .dock-me-ring { animation: none; }
}

/* ================= 黄果官方号（.view-official） =================
   这一页不是普通用户主页，是「黄果官方」的品牌门脸，版式按企业门户做：
   烫金背景层 → 金环头像 + 认证星芒名 → 资质徽标 → 资产数卡片 → 主 CTA → 作品白皮书。
   只在视觉层加厚度（光效 / 卡片 / 分隔线），不改结构也不动交互口径：
   .uh-btn 仍是 4 个 <button>，作品区仍是 30 部一页往下续拉。
   这个页只装「号」本身的东西 —— 粉丝与获赞放这里，不放个人页。 */
/* .view-scroll 自带 safe-t + 10px 的顶部内边距，这里头部自己算 safe-t，
   不去掉就会多出一截空白（模糊封面也跟着下移） */
.view-official { background: #0b090c; padding-top: 0; }
.uh-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 420px;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 85% 0%, rgba(233, 180, 76, .26), transparent 56%),
    radial-gradient(90% 60% at 0% 0%, rgba(140, 90, 180, .16), transparent 58%),
    radial-gradient(70% 46% at 50% 102%, rgba(255, 210, 31, .09), transparent 72%),
    #120e14;
}
.uh-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(42px) saturate(1.3) brightness(.5);
  transform: scale(1.4);
  opacity: .75;
}
/* 一道斜向烫金光带：静态渐变，不跑动画，保企业门户的“反光”质感 */
.uh-bg::before {
  content: '';
  position: absolute;
  left: -25%;
  right: -25%;
  top: -46%;
  height: 92%;
  background: linear-gradient(102deg, transparent 36%, rgba(255, 210, 31, .17) 47%, rgba(255, 255, 255, .10) 51%, transparent 63%);
  transform: rotate(-4deg);
}
/* 向下渐隐到页底色：::after 在 ::before 之后，光带也会被这段压暗一档。
   顶部也先压 30% —— 不压的话头像金环与名字会淹没在亮棕底上，企业感全失 */
.uh-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(10, 8, 5, .30), rgba(10, 8, 5, .74) 58%, #0b090c);
}
.uh-head {
  position: relative;
  z-index: 1;
  padding: calc(var(--safe-t) + 4px) 16px 0;
}
.uh-bar { display: flex; align-items: center; gap: 6px; height: 44px; }
.uh-back {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: rgba(0, 0, 0, .28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  transition: transform .12s var(--ease);
}
.uh-back:active { transform: scale(.9); }
.uh-back svg { width: 20px; height: 20px; }
.uh-bar-name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .3px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}

/* t414：上一版为了「读成一个信息组」把四行压得很紧，结果整块贴在头像边上、显得闷。
   这一版重排：简介与徽标移出信息列独占整宽，纵向节奏按「头像组 → 简介 → 资质 → 资产
   → 按钮」分四段，段间 12~18px，段内 6~8px，靠留白分层而不是靠字号硬挤。 */
.uh-hero { display: flex; align-items: center; gap: 18px; margin-top: 16px; }
.uh-ava {
  flex: none;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  /* 三圈叠金属环：2px 亮金线 → 5px 页底色隔断 → 6.5px 淡金外辉；
     隔断那圈必须够厚，否则亮底背景会把金环吃成一片黄 */
  box-shadow:
    0 0 0 2px rgba(255, 216, 74, .95),
    0 0 0 5px rgba(8, 6, 8, .95),
    0 0 0 6.5px rgba(255, 210, 31, .28),
    0 14px 28px rgba(0, 0, 0, .60),
    0 0 30px rgba(255, 178, 40, .30);
  background: #2a1a06;
}
.uh-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uh-info { min-width: 0; }
/* 名字用 flex 而不是 inline-block + vertical-align：图标与汉字的基线在不同 WebView
   里差 1~2px，flex 的 align-items:center 才是像素级居中的那个。
   t409：margin 必须显式归零 —— <h1> 自带的 0.67em（23px 字 ≈ 15.4px）一直悬在
   名字下面，原来设的 margin-top 根本没机会起作用，盒子间距还是 20px 多。 */
.uh-name {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 23px;
  font-weight: 800;
  line-height: 28px;
  letter-spacing: .4px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}
/* t413：徽章原来是橙红 #E0620D + drop-shadow 自体发光，在深底上糊成一团光斑。
   现在换品牌黄实色（fill 在 index.html 里），发光整层撤掉，靠图形本身的边界读形状。 */
.uh-vfy {
  flex: none;
  width: 20px;
  height: 20px;
}
.uh-vfy.is-sm { width: 13px; height: 13px; }
/* 黄果号金色小胶囊 + 复制图标（t414）：<p> 换成 <button>，与「我的」页 .mine-uid 同款
   双矩形图标。button 不继承字体，font-family/weight 要显式续上，否则会掉回系统默认。 */
.uh-uid {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  padding: 3px 9px 3px 10px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: .2px;
  color: rgba(255, 210, 31, .92);
  background: rgba(255, 210, 31, .13);
  box-shadow: inset 0 0 0 1px rgba(255, 210, 31, .3);
  -webkit-tap-highlight-color: transparent;
  transition: background .16s ease, transform .12s var(--ease);
}
.uh-uid span { white-space: nowrap; }
.uh-uid svg { flex: none; width: 12px; height: 12px; opacity: .82; }
.uh-uid:active { background: rgba(255, 210, 31, .22); transform: scale(.97); }
/* t414：简介独立成一整段（右图那种个人简介的落位）—— 宽度不再被头像挤掉，
   两行留 2 行的余量，行高放到 1.65 好读，颜色压到 .74 不与名字抢。 */
.uh-bio {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .74);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* 尾部四字 + ✨ 不许从中间断开：emoji 自己落到第二行时，那行只剩一颗星，
   看起来像排版坏了。整段不断，它要么跟着上一行，要么整组换行。 */
.uh-bio-tail { white-space: nowrap; }
/* 主体资质徽标：金线描边 + 深金渐变底，只用 currentColor 上的金色，不另起色系
   t414：独占整宽、与简介隔 12px，高度 20 → 22、字 10.5 → 11，缩小字号换通透。 */
.uh-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.uh-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .3px;
  white-space: nowrap;
  color: #ffe6a8;
  background: linear-gradient(180deg, rgba(255, 210, 31, .16), rgba(255, 210, 31, .07));
  box-shadow: inset 0 0 0 1px rgba(255, 210, 31, .3);
}
.uh-badge svg { flex: none; width: 12px; height: 12px; }

/* 资产数一张等分卡：数字 22px/800 + 标签 11.5px，两行都 line-height:1，
   靠 justify-content:center 让「数字+标签」整组在卡片里垂直居中；
   间距只由 gap 控，不再出现两行各自撑高导致的上下不齐。 */
.uh-stats {
  display: flex;
  margin-top: 18px;
  padding: 13px 2px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), 0 8px 22px rgba(0, 0, 0, .28);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.uh-stats > div {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
/* 两列之间用 inset 阴影画线，不占宽度，等分不会因为一条 border 而偏心 */
.uh-stats > div + div { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .10); }
.uh-stats b {
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.2px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 16px rgba(255, 210, 31, .18);
}
.uh-stats span {
  font-size: 11.5px;
  line-height: 1;
  letter-spacing: .6px;
  color: rgba(255, 255, 255, .5);
}

.uh-btns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 16px;
}
/* 主按钮独占一行（频道是这张页的主 CTA），下面三个等分：关注 / 私信 / 分享。
   四个按钮都是 <button> + 图标，文字不再挂浏览器默认下划线。
   主 CTA 抬到 46px：头部信息量上来后 40px 显得碎，46 才是企业官网那个比例。 */
.uh-btn.is-wide {
  grid-column: 1 / -1;
  height: 48px;
  border-radius: 13px;
  font-size: 15px;
  letter-spacing: .3px;
}
.uh-btn {
  min-width: 0;
  height: 42px;
  padding: 0 8px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .15s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.uh-btn:active { transform: scale(.96); }
.uh-ico { flex: none; width: 16px; height: 16px; }
/* 主 CTA：纵向金色渐变 + 顶部内高光 + 一层同色外辉，亮度层次靠渐变不用背景图 */
.uh-btn.is-primary {
  background: linear-gradient(180deg, #ffe266 0%, var(--brand) 46%, #e9ac17 100%);
  color: var(--brand-ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    0 10px 24px rgba(217, 154, 43, .32),
    0 0 0 1px rgba(255, 210, 31, .35);
}
.uh-btn.is-ghost {
  background: rgba(255, 255, 255, .10);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10);
}
/* 已关注：黄调托底 + 对勾图标，与未关注的空心加号同一枚按钮两种状态 */
.uh-btn.is-on {
  background: rgba(255, 210, 31, .14);
  color: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(255, 210, 31, .38);
}
.uh-btn .ico-done { display: none; }
.uh-btn.is-on .ico-done { display: block; }
.uh-btn.is-on .ico-add { display: none; }

.uh-sheet {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  padding: 18px 16px 10px;
  min-height: 52vh;
  background: #0b090c;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -12px 34px rgba(0, 0, 0, .38);
}
/* 卡口上沿一道金色 hairline，与头部的金环、金竖条呼应；
   绝对定位 1px，不进文档流，不影响作品网格起点 */
.uh-sheet::before {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 210, 31, .5) 20%, rgba(255, 210, 31, .5) 80%, transparent);
}
/* .grid 自带左右 12px 内边距，与 .uh-sheet 的 16px 叠起来会窄一圈 */
.uh-sheet .grid { padding: 0; }
.uh-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.uh-sec-head b { font-size: 16px; font-weight: 700; letter-spacing: .3px; }
/* 栏目名前的金色竖条：与右上的「共 N 部」拉开层级 */
.uh-sec-head b::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 13px;
  margin-right: 7px;
  border-radius: 2px;
  vertical-align: -1px;
  background: linear-gradient(180deg, #ffe266, #e8871a);
}
.uh-sec-head span { font-size: 12px; color: rgba(255, 255, 255, .5); }

/* ---------------- 非 Telegram 环境观看引导 ----------------
   网页直接打开时 initData 为空，片源不加载，用这一层把人送去小程序。
   z-index 13 压在 player(1)/shade(2)/topbar(5)/boot-play(6) 和 swipe-tip(12) 之上、
   tabbar(20) 之下，所以底栏照常能切到别的页面，sheet(40)/drawer(45) 也照常盖住它。
   （实测 8 会被 .swipe-tip 的 12 压住「先随便看看」按钮，这里抬到 13。） */
.gate {
  position: absolute;
  inset: 0 0 calc(var(--nav-h) + var(--safe-b)) 0;
  z-index: 13;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(120% 80% at 50% 10%, rgba(48,38,10,.95), rgba(10,10,10,.98) 62%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
/* hidden 属性会被上面的 display:flex 盖掉，必须单独兜底 */
.gate[hidden] { display: none; }
/* 网页端硬拦截（任务 285）：后台「系统设置 → 禁止网页端直接访问」打开时盖满全屏，
   连底栏与全屏播放层一起压住；关掉开关后由 live.js 置成 hidden。 */
.web-block {
  position: fixed;
  inset: 0;
  z-index: 90;
  padding-bottom: calc(20px + var(--safe-b));
}
.gate-card { width: 100%; max-width: 300px; text-align: center; }
.gate-ico {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffd21f;
  color: #1c1500;
}
.gate-ico svg { width: 26px; height: 26px; }
.gate-title { margin: 0 0 8px; font-size: 17px; font-weight: 700; color: #fff; }
.gate-desc { margin: 0 0 18px; font-size: 12.5px; line-height: 1.7; color: var(--text-3); }
.gate-btn {
  display: block;
  height: 44px;
  line-height: 44px;
  border-radius: 22px;
  background: #ffd21f;
  color: #1c1500;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(255, 210, 31, .22);
}
.gate-btn:active { transform: scale(.98); }
.gate-hint { margin: 10px 0 0; font-size: 11.5px; color: var(--text-3); }
.gate-hint b { color: #ffd21f; font-weight: 600; }
.gate-close {
  margin-top: 18px;
  height: 34px;
  padding: 0 16px;
  border-radius: 17px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--text-2);
  font-size: 12.5px;
}

/* ---------------- 剧场 / 搜索 / 我的 ---------------- */
.page-head { padding: 0 12px 10px; }
/* 推荐页顶部只多两个小操作按钮（刷新 / 投稿），胶囊本身与剧场同一个 .search-pill，
   压缩时让文字省略而不是把胶囊撑破 */
.view-reco .page-head { display: flex; align-items: center; gap: 8px; }
.view-reco .page-head .search-pill { flex: 1 1 auto; min-width: 0; }
.view-reco .page-head .search-pill span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* t415：搜索框从「一块浅灰胶囊」改成企业级的内嵌输入条 —— 半透明渐变底 +
   一圈 1px 描边 + 顶部内高光，右侧再挂一枚「搜索」提示块。胶囊那版圆角 20px、
   底色是一整块 #1a1a1b，深色页面上看着像贴了张纸；描边 + 渐变才有嵌进去的层次。 */
.search-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 8px 0 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .072), rgba(255, 255, 255, .028));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .1),
    inset 0 1px 0 rgba(255, 255, 255, .07),
    0 10px 24px -20px rgba(0, 0, 0, .9);
  color: rgba(255, 255, 255, .44);
  font-size: 12.5px;
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow .18s ease, background .18s ease;
}
.search-pill svg {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: rgba(255, 255, 255, .5);
  stroke-width: 2;
}
.search-pill span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 右侧那枚提示块：不是按钮（整条都能点），只交代「点进来是搜索」，
   顺带把右边的空白收住，输入条看起来才是完整的一条 */
.sp-key {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .2px;
  color: rgba(255, 255, 255, .62);
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: color .18s ease, box-shadow .18s ease;
}
.search-pill:active {
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .05));
  box-shadow:
    inset 0 0 0 1px rgba(255, 210, 31, .55),
    inset 0 1px 0 rgba(255, 255, 255, .08);
}
.search-pill:active .sp-key {
  color: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(255, 210, 31, .35);
}

/* t415：栏目行做成一条「工具栏」—— 整行底边一道 1px 细线把头部与内容分开，
   选中项用白色短条（导航选中一律白，品牌黄留给操作态）。
   原来没有这条底线，栏目和第一排卡片直接挨着，页面看不出分区。 */
.cat-row {
  display: flex;
  align-items: center;
  gap: clamp(16px, 5.2vw, 26px);
  height: 44px;
  margin-bottom: 12px;
  overflow: hidden;
  padding: 0 12px;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .075);
}
.cat-row button {
  flex: 0 1 auto;
  min-width: 0;
  height: 44px;
  line-height: 44px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .46);
  font-weight: 500;
  padding: 0;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  letter-spacing: .2px;
  transition: color .15s ease;
}
.cat-row button.on { color: #fff; font-weight: 700; }
.cat-row button.on::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 9px;
  width: 16px;
  height: 2.5px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, .45);
  transform: translateX(-50%);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* 行距略大于列距：卡片带框之后，行与行之间只隔 12px 会糊成一整块 */
  gap: 14px 11px;
  padding: 0 12px 4px;
}

/* ---- 作品卡（t415）----------------------------------------------------
   上一版只有封面被圆角裹住，标题和状态行裸在封面下方，两列并排看像「一排封面」
   而不是「一排作品」。目标站是整卡一圈线框、信息也收在框里；这里照这个思路把
   .card 做成真正的容器：1px 描边 + 顶部极轻的受光渐变 + 文字区一道分隔线，
   封面只借上两角的圆。hover / 按下都只动描边与微缩放，不加位移，滚动时不抖。 */
.card {
  display: flex;
  flex-direction: column;
  text-align: left;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .062), rgba(255, 255, 255, .024));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .085),
    0 12px 24px -18px rgba(0, 0, 0, .95);
  transition: box-shadow .18s ease, transform .16s var(--ease);
}
.card:active {
  transform: scale(.985);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .18),
    0 8px 16px -14px rgba(0, 0, 0, .95);
}
@media (hover: hover) {
  .card:hover {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, .17),
      0 16px 30px -20px rgba(0, 0, 0, .98);
  }
}
.card-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  /* 长边兜底 200px：320px 宽的老机型两列只有 143px 宽，按比例算出 190px 高，
     这里补到 200（object-fit: cover 只裁掉多出的 4%，肉眼看不出来）。 */
  min-height: 200px;
  background: linear-gradient(160deg, #241d10, #171310 58%, #121110);
}
/* 封面底部压一道暗角：集数角标不管落在什么颜色的画面上都读得出来 */
.card-poster::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(to top, rgba(6, 5, 3, .62), rgba(6, 5, 3, 0));
  pointer-events: none;
}
.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease);
}
.card:active .card-poster img { transform: scale(1.03); }
/* 集数角标：金线金字的暗底小牌，与「最近更新」这类状态角的语言一致；
   压在封面上要 blur 底，否则浅色封面上会糊成一团 */
.card-badge {
  position: absolute;
  left: 7px;
  bottom: 7px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 10px;
  line-height: 18px;
  color: #ffd21f;
  background: rgba(10, 8, 4, .62);
  box-shadow: inset 0 0 0 1px rgba(255, 210, 31, .42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
/* 文字区：与封面之间一道 1px 分隔线，标题与状态行各自成行 */
.card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 9px 9px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .085);
}
.card-title {
  font-size: 13px;
  /* 剧名是全站信息密度最高的一行字，目标站卡名统一 600 —— 400/500 在
     封面图的颜色干扰下会糊成一片，尤其在低亮屏上 */
  font-weight: 600;
  /* 相对行高：字号被系统放大时行距同步放大，避免两行文字叠在一起 */
  line-height: 1.35;
  /* 标题区按两行占位：一行的剧名不再把状态行顶上来，同一排卡片的
     剧名基线与状态行基线因此完全对齐（2 × 1.35em），整排看过去是齐的 */
  min-height: 2.7em;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
}
/* 状态行前挂一枚 3px 品牌黄小点：一眼能认出「这是一条状态」而不是标题续行 */
.card-sub {
  position: relative;
  padding-left: 8px;
  font-size: 10.5px;
  line-height: 14px;
  color: rgba(255, 255, 255, .42);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-sub::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 50%;
  background: rgba(255, 210, 31, .7);
}

.list-state {
  padding: 18px 0 26px;
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
}
.list-state:empty { display: none; }
/* 空态 / 加载态：图标在上、文案在下。原来只有一行居中文字，这里补成纵向 flex；
   其它 tab 的单行空态只有一个子节点，gap 不生效，视觉不变。 */
.list-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.st-ico {
  flex: none;
  width: 58px;
  height: 58px;
  color: #8a8a8a;
}
/* 转盘：原图的透明度直接画在 11 条路径上（1 → .1），整圈匀速转就是逐个亮起，
   不需要额外叠遮罩。viewBox 已在 live.js 里收紧成图形本体（656.5 见方），
   所以这里给正方形尺寸就是 1:1，不会压扁；用 .st-ico.st-spin 提高特异性，
   免得被上面的 .st-ico 尺寸盖掉。 */
.st-ico.st-spin {
  width: 44px;
  height: 44px;
  color: #ffd21f;
  transform-origin: 50% 50%;
  animation: st-roll 1.2s linear infinite;
}
.st-ico path { fill: currentColor; }
.st-text { font-size: 12px; line-height: 1.6; color: var(--text-3); }
@keyframes st-roll { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .st-spin { animation-duration: 3s; } }

/* ---------------- 推荐（视频专区） ----------------
   列表不再有专属样式：index.html 里 #reco-list 挂的就是 .grid、#reco-cat-row 挂的就是
   .cat-row、卡片挂的就是 .card，列数 / 间距 / 圆角 / 字号全部继承剧场，改剧场即改这里。
   只剩下顶部胶囊右侧两个操作按钮要单独写。 */
.reco-refresh {
  flex: none;
  height: 28px;
  padding: 0 12px;
  font-size: 12px;
  line-height: 26px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  color: #d8d8d8;
  background: rgba(255, 255, 255, .06);
  transition: transform .12s ease;
}
.reco-refresh:active { transform: scale(.96); }

/* 全屏播放层：压在 tabbar(20) 之上、发布层(45) 之下，避免抢这两处的交互 */
.reco-play {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  background: #000;
}
.reco-play.on { display: block; }
.reco-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}
/* 与首页同一套：画面 contain 居中 + 封面模糊铺满留白；
   元素框由 fitReco() 收紧，否则合成层按整框判遮挡，下层背景图不会被绘制 */
.reco-bg {
  position: absolute;
  inset: -8%;
  z-index: 0;
  background: #000 center / cover no-repeat;
  /* 同首页 .player-bg：contain 后这层就是画面外框，压暗档对齐目标站 .slide-bg */
  filter: blur(26px) brightness(.46) saturate(1.12);
  opacity: 0;
  transition: opacity .28s ease;
  pointer-events: none;
}
.reco-bg.on { opacity: 1; }
.reco-play video {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  /* 与首页播放器同一口径：fitReco() 逐个看源比与舞台比，差 8% 以内才 cover，
     其余挂 .fit-contain 完整显示，留白交给 .reco-bg 那张模糊封面 */
  object-fit: cover;
  object-position: 50% 50%;
  background: transparent;
  z-index: 1;
  transform: translateZ(0);
  will-change: transform;
}
.reco-play video.fit-contain {
  object-fit: contain;
  transition: width .24s cubic-bezier(.2, .7, .2, 1), height .24s cubic-bezier(.2, .7, .2, 1),
    left .24s cubic-bezier(.2, .7, .2, 1), top .24s cubic-bezier(.2, .7, .2, 1);
}
.reco-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .26) 0%, rgba(0, 0, 0, 0) 18%),
    linear-gradient(0deg, rgba(0, 0, 0, .66) 0%, rgba(0, 0, 0, .26) 22%, rgba(0, 0, 0, 0) 44%);
}
.reco-boot {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 50%;
  width: 62px;
  height: 62px;
  margin: -31px 0 0 -31px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .18s ease;
}
.reco-boot svg { width: 30px; height: 30px; fill: #fff; margin-left: 3px; }
.reco-boot.hide { opacity: 0; pointer-events: none; }

/* 右侧互动栏：视觉照抄首页 .rail，只把落点让开底部信息区（这里没有 tabbar 与观看条） */
.reco-rail {
  z-index: 5;
  right: 10px;
  bottom: calc(var(--safe-b) + 132px);
  gap: 14px;
}
.reco-meta {
  position: absolute;
  z-index: 5;
  left: 14px;
  right: 78px;
  bottom: calc(var(--safe-b) + 30px);
}
.reco-meta-title {
  margin: 0;
  font-size: 17px;
  line-height: 23px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
}
/* 标题末尾的「›」：目标站在剧名后面跟一个箭头，我们这里漏了（用户圈出来的地方）。
   推荐层的剧名不挂点击（专区条目的 id 与 CMS 剧 id 不同源，套详情接口会打空），
   所以这个箭头只做视觉对齐，跟文字同处一条内联流里，长标题换行时跟到末行。 */
.reco-meta-title::after {
  content: '›';
  margin-left: 6px;
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  color: rgba(255, 255, 255, .9);
  vertical-align: -3px;
}
.reco-meta-desc {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 18px;
  color: #e2e2e2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .55);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
}
.reco-meta-sub {
  margin: 5px 0 0;
  font-size: 11px;
  line-height: 15px;
  color: rgba(255, 255, 255, .62);
}
.reco-meta-desc:empty, .reco-meta-sub:empty { display: none; }

/* 底部进度：3px 细条，拖动时加粗露白点，热区向上 16px */
.reco-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  z-index: 6;
  background: rgba(255, 255, 255, .22);
  cursor: pointer;
  touch-action: none;
  user-select: none;
}
.reco-progress::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  bottom: 0;
}
.reco-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
  pointer-events: none;
}
.reco-progress .watch-knob { opacity: 0; }
.reco-progress.on { height: 5px; }
.reco-progress.on .watch-knob { opacity: 1; }

.reco-play-top {
  position: absolute;
  top: calc(var(--safe-t) + 8px);
  left: 10px;
  right: 10px;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.reco-play-close {
  pointer-events: auto;
  flex: none;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
}
.reco-play-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* 选集抽屉：压在播放层（z-index 50）之上 */
.reco-sheet { z-index: 55; }
.reco-sheet-list {
  padding: 2px 12px 10px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.reco-sheet-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 10px;
  background: #202020;
  text-align: left;
}
.reco-sheet-item.on { background: var(--brand-wash); }
.reco-sheet-cover {
  flex: none;
  /* 3:4，与列表卡片同一比例。原来 66×42 是 16:9：
     竖版封面被裁成一条横带，脸都只剩半张，也远低于清晰度底线。 */
  width: 92px;
  height: 123px;
  border-radius: 8px;
  overflow: hidden;
  background: #101010;
}
.reco-sheet-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reco-sheet-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.reco-sheet-name {
  font-size: 13px;
  line-height: 18px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reco-sheet-sub { font-size: 11px; color: #9a9a9a; }
.reco-sheet-item.on .reco-sheet-name { color: #ffb066; }

/* 上滑刷视频的首次引导（每次进入小程序只出现一次） */
.swipe-tip {
  position: absolute;
  left: 50%;
  bottom: 30%;
  z-index: 12;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .46);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12.5px;
  letter-spacing: .3px;
  pointer-events: none;
  white-space: nowrap;      /* 不加会被挤成一字一行（实测 54x176） */
  width: max-content;
  max-width: 80vw;
  visibility: hidden;
  opacity: 0;
  transition: opacity .34s ease, visibility .34s ease;
}
.swipe-tip.show { visibility: visible; opacity: 1; }
.swipe-arrow {
  width: 22px;
  height: 22px;
  animation: swipeNudge 1.5s ease-in-out infinite;
}
@keyframes swipeNudge {
  0%, 100% { transform: translateY(4px); opacity: .5; }
  50% { transform: translateY(-6px); opacity: 1; }
}

/* 搜索页（对齐黄果搜索：返回+搜索框 / 快捷胶囊 / 搜索历史 / 猜你想搜 / 热搜榜） */
.view-search { padding-top: 0; overflow-x: hidden; }

.search-head {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(var(--safe-t) + 10px) 12px 10px;
  background: var(--bg);
}
.search-back { flex: none; width: 24px; height: 32px; display: flex; align-items: center; justify-content: center; color: #fff; }
.search-back svg, .search-ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.search-ico { width: 16px; height: 16px; color: var(--text-3); }
.search-input-wrap {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 10px 0 12px;
  border-radius: 19px;
  background: var(--surface);
}
.search-input-wrap input {
  flex: 1 1 auto;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
}
.search-input-wrap input::placeholder { color: #6f6f6f; }
.search-input-wrap input::-webkit-search-cancel-button { display: none; }
.search-x {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  color: #111;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
  font-weight: 700;
}
.search-x[hidden] { display: none; }
.search-submit { flex: none; font-size: 14px; font-weight: 600; color: #fff; padding: 0 2px; }

/* 快捷入口一行（小果Ai / 识剧 / 排行 / 上新 / 演员） */
.quick-row { display: flex; gap: 5px; padding: 0 10px 12px; overflow-x: auto; }
.quick-row::-webkit-scrollbar { display: none; }
.qk { flex: none; display: flex; align-items: center; gap: 4px; height: 36px; padding: 0 9px 0 4px; border-radius: 18px; background: var(--surface); color: #ececec; font-size: 12.5px; }
.qk-ico {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  color: #14100a;
}
.qk-ico-ai { background: linear-gradient(135deg, #ffe08a, #ff9f3d); font-size: 9.5px; }
.qk-ico-scene { background: #22b8c9; color: #04262b; }
.qk-ico-rank { background: #ff7a3d; color: #2b0f00; }
.qk-ico-new { background: #12c2b4; color: #002925; }
.qk-ico-star { background: #f5c542; color: #2a1f00; }

/* 搜索历史 / 猜你想搜 */
.sblock {
  padding: 0 12px 10px;
  /* .view-scroll 是 flex column，子项 min-width 默认 auto 会被榜单卡内容撑破，第三列直接出屏 */
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.sblock[hidden] { display: none; }
.sblock-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 2px; }
.sblock-head h3 { margin: 0; font-size: 16px; font-weight: 700; color: #fff; }
.sact { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; color: var(--text-3); }
.sact svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.swords { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.sword { padding: 10px 0; text-align: left; font-size: 14.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 热搜榜：四个 tab + 三列榜单卡（排名 / 新剧 / 万热度 / 万热搜值） */
.sblock-hot { margin-top: 8px; padding: 0 12px 10px; border-top: 8px solid #0a0a0a; }
.shot-tabs { display: flex; gap: 18px; padding: 12px 2px; overflow-x: auto; }
.shot-tabs::-webkit-scrollbar { display: none; }
.shot-tab { flex: none; font-size: 15.5px; color: var(--text-3); }
.shot-tab.on { color: #fff; font-weight: 700; }
/* 两列：三列时 390 宽单列只有 118px 宽 / 157px 长，封面连脸都糊成色块；
   两列给到 178×237，和剧场首页同一观感与同一份取图档位。 */
.hot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; width: 100%; max-width: 100%; overflow: hidden; }
.hcell { display: block; text-align: left; min-width: 0; overflow: hidden; }
.hcell-poster { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; min-height: 200px; border-radius: 8px; overflow: hidden; background: var(--surface); }
.hcell-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hcell-rank { position: absolute; left: 0; top: 0; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 0 0 7px 0; background: rgba(0, 0, 0, .58); color: #fff; font-size: 12px; font-weight: 700; line-height: 19px; text-align: center; }
.hcell-rank.top { background: linear-gradient(135deg, #ff6a3d, #ff3d5e); }
.hcell-new { position: absolute; right: 4px; top: 4px; padding: 0 5px; border-radius: 4px; background: #12c2b4; color: #04231f; font-size: 10px; line-height: 16px; font-weight: 700; }
.hcell-heat { position: absolute; left: 5px; bottom: 4px; right: 5px; color: #fff; font-size: 10px; line-height: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }
.hcell-title { display: block; margin-top: 6px; font-size: 13px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcell-sub { display: block; margin-top: 3px; font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 搜索结果 */
#s-result-block { padding: 10px 12px 0; }
#s-result-block[hidden] { display: none; }

/* 窄屏（390 一档）把快捷胶囊再收一档，保证 5 个一屏放得下 */
@media (max-width: 400px) {
  .quick-row { gap: 4px; padding: 0 8px 12px; }
  .qk { font-size: 12px; padding: 0 7px 0 3px; }
  .qk-ico { width: 22px; height: 22px; }
}

@media (min-width: 620px) {
  .hot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .swords { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 我的（对齐黄果个人中心：资料卡 + 数据栏 + 入口卡 + 面板 + 三列网格） */
.view-mine { background: var(--bg); }
.mine-scroll { padding-bottom: 24px; }

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2c2c2c, #191919);
  border: 1px solid rgba(255, 255, 255, .08);
  flex: none;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  /* 原 .55 在暗底上像禁用态；没头像时这行字是用户唯一能认出的身份标识 */
  color: rgba(255, 255, 255, .88);
  letter-spacing: .5px;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-lg { width: 58px; height: 58px; }

.mine-hero { padding: 6px 16px 0; }
.mine-hero-top { display: flex; align-items: center; gap: 12px; }
.mine-id { flex: 1 1 auto; min-width: 0; }
.mine-id h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mine-id p { margin: 5px 0 0; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 简介与社交数据的位置：hero 自己撑开，不再由两排按钮托底。
   上面那条细线把「身份」与「社交数据」分开 —— 顶部已经没有统计行、
   私信、编辑资料那两排了：追剧/历史/点赞在下面 tab 各有定位，私信并进了官方号页。 */
.mine-hero-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

/* 个人简介：12.5px / 1.6，最多两行。没填时 JS 给 hidden，不留一条空白 */
.mine-bio {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .62);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}

/* 社交数据：四项等分 + 末尾一颗「编辑主页」。
   数字 19px/700、标签 12px 灰，竖向居中对齐（行高定死，四列不会因为标签长短上下错位）。 */
.mine-social {
  display: flex;
  align-items: center;
  gap: 2px;
}
.ms-item {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  text-align: center;
}
.ms-item + .ms-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 22px;
  margin-top: -11px;
  background: rgba(255, 255, 255, .10);
}
.ms-item b {
  display: block;
  font-size: 19px;
  font-weight: 700;
  line-height: 23px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ms-item span { display: block; margin-top: 1px; font-size: 12px; line-height: 16px; color: rgba(255, 255, 255, .52); }

/* 「编辑主页」：站在粉丝右边的那颗小胶囊。
   不用实心黄 —— 顶部已经有一整块暖金渐变，再来一颗黄按钮会把四个数字的份量抢走；
   描边 + 微金底，只做「这里能点」的暗示。 */
.mine-editbtn {
  flex: none;
  margin-left: 10px;
  height: 30px;
  padding: 0 12px;
  border-radius: 15px;
  background: rgba(255, 210, 31, .10);
  border: 1px solid rgba(255, 210, 31, .34);
  color: #ffd93b;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}
.mine-editbtn:active { background: rgba(255, 210, 31, .2); transform: scale(.96); }

/* 快捷入口：只剩钱包 / 代理两张宽条，六栅格里各占三格，正好一行两个。
   两项不再缩成小卡，图标放到 34px、副标题拿到 110px+ 的宽度，
   以后想加回第三项也有余地（is-wide 换个 span 就行）。 */
.mine-entries {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 0 12px 14px;
}
.entry {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 11px 6px 10px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .05);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
/* 图标统一走莫兰迪黄低饱和底：五个入口同色块，视觉上是一组而不是五个散件 */
.entry-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: rgba(255, 210, 31, .12);
  color: var(--brand);
}
.entry-ico svg { width: 17px; height: 17px; }
.entry b { display: block; font-size: 13px; font-weight: 700; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.entry span { display: block; max-width: 100%; margin-top: 1px; font-size: 10.5px; line-height: 15px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry:active { background: var(--surface-2); }
/* 两张宽条：横向。用 grid 让图标跨两行，文字右对齐同一列 ——
   比 flex 竖排省一层包裹节点，副标题也能拿到 110px+ 的宽度。
   只剩两项之后把 54 抬到 62：两行之间空着一截，块太矮会显得半屏都空着。 */
.entry.is-wide {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 11px;
  align-content: center;
  min-height: 62px;
  padding: 0 13px;
  text-align: left;
}
.entry.is-wide .entry-ico { grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 11px; margin-bottom: 0; }
.entry.is-wide .entry-ico svg { width: 19px; height: 19px; }
.entry.is-wide b { grid-column: 2; font-size: 14px; }
.entry.is-wide span { grid-column: 2; font-size: 11px; }

.mine-panel {
  margin: 0 12px;
  padding: 0 6px 12px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .05);
  overflow: hidden;
}
.mine-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 46px;
  padding: 0 2px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  overflow: hidden;
}
/* 激活项用胶囊底而不靠字重：五个并排的文字光靠一粗一细分不出「现在在哪一格」。
   原来在字下画一条金色短线，看着就是给标题加了下划线，改成整块黄底黑字，
   指示更硬且文字本身干净。 */
.mtab {
  flex: 0 0 auto;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 13.5px;
  color: #8b8b8b;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.mtab.on { color: var(--brand-ink); background: var(--brand); font-weight: 700; }
.mtab-icon { margin-left: auto; flex: none; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: #cfcfcf; }
.mtab-icon svg { width: 20px; height: 20px; }

.mine-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 8px 4px 0;
  overflow: hidden;
}
.chip {
  flex: 0 0 auto;
  height: 26px;
  padding: 0 12px;
  border-radius: 7px;
  background: var(--surface-2);
  border: 0;
  color: #cfcfcf;
  font-size: 12px;
}
.chip.on { background: var(--brand); color: #1a1000; font-weight: 700; }
.mine-clear { margin-left: auto; flex: none; height: 26px; padding: 0 8px; font-size: 12px; color: #8e8e8e; background: none; border: 0; }

.mine-grid {
  display: grid;
  /* 两列：三列时 390 宽单列 122×163，低于「长边 200」的清晰度底线；两列 187×249。 */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* 行距比列距大：海报下方还有标题与副标题，行与行之间要留出比列间更宽的空白，
     否则上一行的副标题会贴着下一行的海报 */
  gap: 16px 10px;
  padding: 2px 4px 0;
}
.mcell {
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  min-width: 0;
  /* 兜底：title/sub 若在内核层面仍溢出，也只裁在卡片自己格子里 */
  overflow: hidden;
}
.mcell-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  min-height: 200px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}
.mcell-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mcell-badge {
  position: absolute;
  right: 4px;
  top: 4px;
  max-width: calc(100% - 8px);
  font-size: 10px;
  line-height: 16px;
  padding: 0 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mcell-title {
  /* 两列网格单列约 180px，13px 字号单行只放得下 13 个字；
     更要命的是部分安卓 WebView 会把 flex 里的 span 仍按行内盒处理，
     text-overflow: ellipsis 直接失效，长剧名原样横穿到隔壁格子。
     改成固定两行裁切：信息量翻倍，且与内核行为无关。
     行高用倍数、高度用 em，跟随字号缩放 —— 系统字体调大时不叠行。 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  height: 2.6em;
  color: #fff;
  overflow: hidden;
  word-break: break-all;
}
.mcell-sub {
  display: block;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mcell-mark { flex: none; font-size: 10px; line-height: 15px; padding: 1px 5px; border-radius: 4px; background: var(--brand-wash); color: var(--brand); }

@media (min-width: 620px) {
  .mine-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mine-entries { max-width: 720px; }
}
/* ---------------- 选集抽屉 ---------------- */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
}
.sheet.on { display: block; }
.sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  opacity: 0;
  transition: opacity .2s ease;
}
.sheet.on .sheet-mask { opacity: 1; }
.sheet-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 62vh;
  border-radius: 16px 16px 0 0;
  background: #181818;
  padding: 0 0 calc(var(--safe-b) + 8px);
  transform: translateY(100%);
  transition: transform .24s cubic-bezier(.22, .61, .36, 1);
  display: flex;
  flex-direction: column;
}
.sheet.on .sheet-body { transform: translateY(0); }
.sheet-head {
  display: flex;
  align-items: center;
  padding: 14px 16px 10px;
}
.sheet-head h3 { margin: 0; font-size: 15px; font-weight: 700; }
.sheet-close { margin-left: auto; font-size: 22px; line-height: 1; color: #9a9a9a; padding: 0 4px; }

/* ---------------- 选集面板：信息头 ----------------
   结构照抄目标站 .eps-head / .eps-info / .eps-cover / .eps-tabs：
   左边 3:4 封面（66px 宽，10px 圆角 + 一道投影压住它），右边剧名两行截断，
   下面一行更新进度，再下面一行 #标签。头是信息，不是工具栏 ——
   上一集 / 下一集从头部沉到面板底部，这里只回答「这是什么剧、我在看第几集」。 */
/* 双类选择器不是冗余：文件末尾 v272 质感层那条 .sheet-body 不带这类，
   单类写法会被它的冷灰渐变覆盖，暖调底和投影都得靠这一层特异性拿回来。 */
.sheet-body.eps-sheet {
  /* 目标站 .sheet 是 70% 高、22px 上圆角、暖调玻璃底（rgba(30,23,15,.58) + backdrop blur）。
     原来是 62% 高、冷灰渐变：头一加就挤，冷底也让封面和金色标签显得脏。
     抬到 78vh 是因为头部多了一整块信息区，正文区还得留够五列格的滚动余量。 */
  max-height: 78vh;
  border-radius: 22px 22px 0 0;
  background: rgba(28, 22, 15, .94);
  -webkit-backdrop-filter: blur(22px) saturate(1.12);
  backdrop-filter: blur(22px) saturate(1.12);
  border-top: 1px solid rgba(255, 236, 200, .1);
  box-shadow: 0 -14px 44px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 244, 222, .07);
}
/* 顶部抓手：目标站 .sheet:before 是同款 36×4 圆角条，
   告诉手指「这块可以往下拽」，同时也是弹层与页面之间的视觉断点。 */
.sheet-body.eps-sheet::before {
  content: "";
  flex: none;
  align-self: center;
  width: 36px;
  height: 4px;
  margin-top: 8px;
  border-radius: 2px;
  background: rgba(255, 236, 200, .22);
}
.eps-head {
  position: relative;
  flex: none;
  padding: 12px 16px 0;
}
.eps-info { display: flex; gap: 12px; align-items: flex-start; }
.eps-cover {
  width: 66px;
  flex: none;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 236, 200, .08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.eps-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eps-meta { flex: 1; min-width: 0; padding-top: 2px; padding-right: 30px; }  /* 右侧给关闭按钮让位 */
.eps-name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.eps-sub {
  margin: 5px 0 0;
  font-size: 12.5px;
  color: #9c8f7a;
  font-variant-numeric: tabular-nums;
}
.eps-tags {
  margin: 6px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  font-size: 11px;
  color: var(--brand-soft);
}
.eps-tags:empty { display: none; }
/* 关闭按钮：目标站是右上角一个 36px 的裸图标，没有描边也没有底色。
   这里绝对定位盖在头部右上，用白描边 X（原来是 22px 的「×」字符，太轻）。 */
.eps-sheet .sheet-close {
  position: absolute;
  top: 8px;
  right: 6px;
  margin: 0;
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(247, 239, 224, .55);
  font-size: 0;
}
.eps-sheet .sheet-close svg { width: 17px; height: 17px; }
/* 简介 / 选集：目标站 .eps-tabs —— 26px 间距、15px 字、选中转白加粗，
   下面一条 18×3 的金色短杠（不是整行下划线，短杠只标「当前这一页」）。 */
.eps-tabs { display: flex; gap: 26px; margin-top: 14px; }
.eps-tabs button {
  position: relative;
  padding: 6px 0 10px;
  font-size: 15px;
  font-weight: 500;
  color: #9c8f7a;
  transition: color .2s ease;
}
.eps-tabs button.is-on { color: var(--text); font-weight: 600; }
.eps-tabs button.is-on::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 18px;
  height: 3px;
  margin-left: -9px;
  border-radius: 2px;
  background: var(--brand);
  box-shadow: 0 0 8px rgba(233, 180, 76, .5);
}
/* 正文区：只有这一块滚。目标站是 .sheet-body 上加 padding-top 与 border-top，
   这里用一条顶部分隔线把「头信息」和「内容」切开，滚动交给面板自身。 */
.eps-pane {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 10px;
  border-top: 1px solid rgba(255, 228, 180, .075);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.eps-pane[hidden] { display: none; }
/* 简介页：目标站 .eps-intro 是 14px / 1.7 的正文 + 一行 #标签。 */
.eps-intro { padding: 14px 16px 20px; font-size: 14px; line-height: 1.7; color: rgba(247, 239, 224, .78); }
.eps-intro p { margin: 0; white-space: pre-wrap; }
.eps-intro .eps-empty { color: #6a5f4e; }
.eps-intro-tags {
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 12px;
  color: var(--brand-soft);
}
/* 底部操作条：上一集 / 第 N 集 / 下一集。
   用户要「按钮还是白的」—— 三块都不给实心底：白字 + 18% 白描边 + 4% 白填充，
   压在暖黑底上跟封面、剧名同一层，不和金色强调色抢注意力。 */
.sheet-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 2px;
  flex: none;   /* 面板高度不够时不许压扁，要压的是上面的正文区 */
}
.sheet-nav button {
  flex: 1 1 0;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  color: #f7efe0;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background .18s ease, transform .15s ease;
}
.sheet-nav button:active { transform: scale(.97); background: rgba(255, 255, 255, .1); }
.sheet-nav button:disabled { opacity: .34; }
.sheet-nav .sn-now {
  flex: 0 0 auto;
  min-width: 92px;
  background: none;
  box-shadow: none;
  color: var(--brand-soft);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
/* 选集网格对齐目标站 .ep-grid：五列等宽、8px 间隙。目标站是纯数字格
   （font:600 16px/44px），一屏能扫到更多集，扫读时不用先读「第几集」三个字。
   滚动交给外层 .eps-pane，这里只负责排布。 */
.sheet-eps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 16px 18px;
}
/* 目标站 .ep-cell：44px 高 / 10px 圆角 / 暖白 7.5% 填充 / 600 字重数字居中。
   选中态用 1.5px 内描边代替实心块 —— 描边不改变格子体积，
   整排格子扫过去不会有一格「看起来更大」。 */
.ep-btn {
  height: 44px;
  padding: 0;
  border-radius: 10px;
  background: rgba(255, 236, 200, .075);
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  line-height: 44px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
}
.ep-btn.is-current {
  background: rgba(255, 210, 31, .15);
  color: var(--brand-soft);
  box-shadow: inset 0 0 0 1.5px var(--brand);
}

/* ---------------- 侧边栏 ----------------
   面板底色比页面底色抬一档（#191919），右侧 18px 圆角 + 一道 8px/32px 的投影，
   让它明确浮在遮罩之上而不是「页面变窄了」。
   遮罩与面板用同一条 260ms 缓出曲线，mask 单独淡入，收起时两者同时对向回收。 */
/* 显隐用 visibility 而不是 display。display: none 的元素没有「前一帧」计算样式，
   面板拿不到过渡起点，开和关都变成瞬间闪现；visibility 保留盒子与计算值，
   两条曲线才真的跑得起来。隐藏这一侧把 visibility 压到动画结束之后再生效，
   否则收起的第一帧就已经看不见了。hidden 状态下不参与命中测试，点击自然穿透。 */
.drawer { position: fixed; inset: 0; z-index: 45; visibility: hidden; transition: visibility 0s .26s; }
.drawer.on { visibility: visible; transition: visibility 0s 0s; }
.drawer-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  transition: opacity .26s ease;
}
.drawer.on .drawer-mask { opacity: 1; }
.drawer-body {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  /* 88% / 360px：原来是 76% / 320px，内容区只有 264px，两列封面单格 128×171，
     长边够不到 200。加宽后内容 311px，单格 152×202，3:4 与清晰度底线同时满足。 */
  width: 88%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  background: #191919;
  border-radius: 0 18px 18px 0;
  box-shadow: 8px 0 32px rgba(0, 0, 0, .55);
  overflow: hidden;
  transform: translateX(-100%);
  transition: transform .26s cubic-bezier(.22, .61, .36, 1);
}
.drawer.on .drawer-body { transform: translateX(0); }

/* 顶栏：标题 + 关闭。关闭按钮 44×44，按下有底色与回弹，指腹落在边缘也点得中 */
.drawer-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  height: calc(var(--safe-t) + 52px);
  padding: var(--safe-t) 6px 0 16px;
  border-bottom: 1px solid var(--line);
}
.drawer-head b { font-size: 16px; font-weight: 700; color: #fff; }
.drawer-x {
  margin-left: auto;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: none;
  color: #cfcfcf;
  transition: background .16s ease, transform .12s ease;
}
.drawer-x svg { width: 18px; height: 18px; fill: none; }
.drawer-x:active { background: rgba(255, 255, 255, .1); transform: scale(.94); }

/* 可滚区自己滚：overscroll-behavior 把滚动链堵在这里，滑到底不会带动首页换剧 */
.drawer-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px calc(var(--safe-b) + 20px);
}
.drawer-user { display: flex; align-items: center; gap: 12px; padding: 16px 0 4px; }
.drawer-user h3 { margin: 0; font-size: 16px; color: #fff; }
.drawer-user p { margin: 3px 0 0; font-size: 11px; color: var(--text-3); }

/* 图片区标题行 */
.drawer-sec { display: flex; align-items: center; gap: 8px; margin: 16px 0 10px; }
.drawer-sec > span { font-size: 13px; font-weight: 600; color: #fff; }
.drawer-sec-more {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 30px;
  padding: 0 4px 0 8px;
  border: 0;
  background: none;
  font-size: 12px;
  color: var(--text-3);
  transition: color .16s ease;
}
.drawer-sec-more svg { width: 12px; height: 12px; fill: none; }
.drawer-sec-more:active { color: #fff; }

/* 三列封面：与参考稿一致的一行 3 图，接口也只取 3 条，正好铺满这一行。
   抽屉内容区 311px（88% 面板 - 左右各 16），三列单格约 98×131（仍是全站统一的 3:4）。
   这里刻意不给 min-height：200px 是「两列大卡」的长边兜底，三列时宽度只有 98，
   硬撑到 200 会把 3:4 拉成 1:2 的竖条。抽屉是辅助容器，列数优先于长边。 */
.drawer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 8px; }
.drawer-grid-state { grid-column: 1 / -1; padding: 14px 0; font-size: 12px; color: var(--text-3); }
.drawer-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  transition: transform .14s ease;
}
.drawer-card:active { transform: scale(.95); }
.drawer-card-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 9px;
  overflow: hidden;
  background: rgba(255, 255, 255, .06);
}
.drawer-card-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 重试也失败时的占位：拿剧名首字压在正中，比留一个空灰块像样，
   也仍然能被点（挂 class 的是封面框，热区是整张卡） */
.drawer-card-poster.ph { display: flex; align-items: center; justify-content: center; }
.drawer-card-poster.ph::after {
  content: attr(data-ch);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, .26);
}
.drawer-card-title {
  font-size: 11px;
  line-height: 1.3;
  /* 三列时同一行里有的标题一行、有的两行，留出两行高度让卡片底部齐平 */
  min-height: 2.6em;
  color: #dedede;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
}

/* 文字入口：48px 行高、贯穿整行的分隔线，和图片区之间加一道顶线分段 */
.drawer-menu { margin-top: 18px; border-top: 1px solid var(--line); }
.drawer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 48px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
  font-size: 15px;
  color: #e6e6e6;
  transition: background .16s ease;
}
.drawer-item:active { background: rgba(255, 255, 255, .06); }
/* 右侧小字：有内容时给条数；整类公告都被禁用时换成「暂未开放」，整行一起降亮度 */
.drawer-item .di-main { display: flex; align-items: center; gap: 9px; min-width: 0; }
.drawer-item .di-ico { flex: none; display: inline-flex; width: 17px; height: 17px; color: #ffd21f; }
/* 官方公告用冷静蓝，和公告层里的徽标同色；两行入口本身就是类型的第一层区分 */
.drawer-item[data-notice="official"] .di-ico { color: #9db4ff; }
.drawer-item .di-ico svg { width: 100%; height: 100%; }
.drawer-item .di-tip { flex: none; font-style: normal; font-size: 12px; color: var(--text-3); }
.drawer-item.off { color: rgba(230, 230, 230, .4); }
.drawer-item.off .di-tip { color: rgba(255, 255, 255, .26); }
.drawer-item.off:active { background: none; }

/* ================= 公告层（福利 / 官方共用） =================
   一类公告一个色相：福利=品牌金 #ffd21f，官方=冷静蓝 #9db4ff。颜色只落在左侧
   引导条、类型徽标和「阅读全文」上，卡片本体仍是 #171616 一档，和首页暗色底
   （#0a0a0a / #171616）同一套色阶，不会整屏铺两块彩色大板。 */
#notice-layer {
  --nt-w: #ffd21f;
  --nt-w-wash: rgba(255, 210, 31, .12);
  --nt-o: #9db4ff;
  --nt-o-wash: rgba(157, 180, 255, .12);
  --nt-a: var(--nt-w);
  --nt-a-wash: var(--nt-w-wash);
}
#notice-layer [data-kind="welfare"] { --nt-a: var(--nt-w); --nt-a-wash: var(--nt-w-wash); }
#notice-layer [data-kind="official"] { --nt-a: var(--nt-o); --nt-a-wash: var(--nt-o-wash); }

/* 类型切换：两个胶囊常驻在头部下方，右侧写条数。
   福利 / 官方本来就在同一个 announce 请求里，切换不发请求。 */
.nt-seg {
  flex: none;
  display: flex;
  gap: 8px;
  padding: 10px 14px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  background: rgba(10, 10, 10, .92);
}
.nt-seg[hidden] { display: none; }
.nt-seg-btn {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}
.nt-seg-btn em { font-style: normal; font-size: 11px; font-weight: 500; color: var(--text-3); }
.nt-seg-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--nt-w); }
.nt-seg-btn[data-notice-kind="official"] .nt-seg-dot { background: var(--nt-o); }
.nt-seg-btn.is-on { color: #fff; border-color: rgba(255, 210, 31, .45); background: var(--brand-wash); }
.nt-seg-btn[data-notice-kind="official"].is-on { border-color: rgba(157, 180, 255, .45); background: var(--nt-o-wash); }
.nt-seg-btn.is-off { opacity: .45; }
.nt-seg-btn:active { transform: scale(.985); }

/* 列表卡片：左侧 3px 引导条 + 类型徽标，扫一眼就能分出是哪类公告 */
.nt-list { padding: 12px 14px 18px; }
/* 大屏下 .nt-list 是 grid（display 被作者样式接管），[hidden] 的 UA 规则盖不住，
   下钻到详情时必须自己把列表收起来 */
.nt-list[hidden] { display: none; }
.nt-card {
  position: relative;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--nt-a-wash), rgba(0, 0, 0, 0) 42%), #171616;
  overflow: hidden;
}
.nt-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--nt-a);
  opacity: .8;
}
.nt-card.is-open::before { opacity: 1; }
.nt-card:active { background-color: #1c1c1c; }
.nt-card-top { display: flex; align-items: center; gap: 8px; padding: 12px 14px 0 17px; }
.nt-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 8px 0 6px;
  border-radius: 6px;
  background: var(--nt-a-wash);
  color: var(--nt-a);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}
.nt-badge svg { flex: none; width: 13px; height: 13px; }
.nt-badge b { font-weight: 700; }
.nt-date { margin-left: auto; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.nt-new {
  flex: none;
  padding: 0 5px;
  border-radius: 4px;
  background: var(--nt-w);
  color: var(--brand-ink);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 15px;
}

/* 标题 + 摘要整块是热区（点哪儿都进详情）；「展开」单独一颗按钮，不嵌在按钮里 */
.nt-hit {
  display: block;
  width: 100%;
  padding: 8px 14px 0 17px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
}
.nt-hit:active { opacity: .82; }
.nt-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: #fff;
  word-break: break-word;
}
.nt-sum {
  display: -webkit-box;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.68;
  color: var(--text-2);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
/* 量真实高度用的临时态：摘掉行数限制，量完立即还原，同一帧内完成不重绘 */
.nt-sum--measure { -webkit-line-clamp: 999; overflow: visible; }
.nt-card.is-open .nt-sum { -webkit-line-clamp: unset; overflow: visible; }
.nt-acts { display: flex; align-items: center; gap: 12px; padding: 8px 14px 12px 17px; }
.nt-toggle, .nt-go { border: 0; background: none; padding: 0; font: inherit; }
.nt-toggle { color: var(--nt-a); font-size: 12px; font-weight: 600; }
.nt-toggle[hidden] { display: none; }
.nt-go {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--text-3);
  font-size: 12px;
}
.nt-go svg { width: 12px; height: 12px; }
@media (hover: hover) and (pointer: fine) {
  .nt-card:hover { border-color: rgba(255, 255, 255, .13); }
  .nt-card:hover .nt-go { color: var(--nt-a); }
  .nt-seg-btn:hover { color: #fff; }
}

.nt-art { padding: 18px 16px 0; }
.nt-art h2 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.42;
  color: #fff;
  word-break: break-all;
}
.nt-art-meta { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; }
.nt-art-meta:empty { display: none; }
.nt-art-date { font-size: 12px; color: var(--text-3); }
.nt-body { font-size: 14.5px; line-height: 1.86; color: #d9d9d9; word-break: break-word; }
.nt-body p { margin: 0 0 12px; }
.nt-body h2 { margin: 20px 0 8px; font-size: 17px; }
.nt-body h3 { margin: 18px 0 8px; font-size: 15.5px; }
.nt-body h4 { margin: 16px 0 6px; font-size: 14.5px; }
.nt-body h2, .nt-body h3, .nt-body h4 { color: #fff; }
.nt-body ul, .nt-body ol { margin: 0 0 12px; padding-left: 20px; }
.nt-body li { margin-bottom: 6px; }
.nt-body strong { color: #fff; }
.nt-body a { color: #f0b64d; text-decoration: underline; }
.nt-body code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .08);
  font-size: .92em;
}
.nt-body pre {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #151515;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.7;
}
.nt-body pre code { padding: 0; background: none; }
.nt-body blockquote {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-left: 2px solid #d9a94e;
  background: rgba(217, 169, 78, .07);
  color: #cfcfcf;
}
.nt-body hr { margin: 16px 0; border: 0; border-top: 1px solid rgba(255, 255, 255, .08); }

/* 大屏（Telegram Web / 平板横屏 / PC 强制移动版）：列表并排两列，正文收窄到
   约 40 汉字的可读行长；胶囊与卡片同宽对齐，不再撒满整屏。 */
@media (min-width: 720px) {
  .nt-seg { width: 100%; max-width: 788px; margin: 0 auto; padding: 14px 14px 10px; }
  .nt-list {
    width: 100%;
    max-width: 788px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
  }
  .nt-card { margin-bottom: 0; }
  .nt-title { font-size: 15.5px; }
  .nt-sum { -webkit-line-clamp: 4; }
  .nt-art { width: 100%; max-width: 760px; margin: 0 auto; }
  .nt-body { font-size: 15px; line-height: 1.9; }
}
@media (max-width: 360px) {
  .nt-title { font-size: 14.5px; }
  .nt-sum { font-size: 12px; }
  .nt-acts { gap: 10px; }
}

/* ---------------- 提示 ---------------- */
.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: calc(var(--nav-h) + var(--safe-b) + 32px);
  transform: translate(-50%, 10px);
  padding: 9px 16px;
  border-radius: 10px;
  background: rgba(30, 30, 30, .94);
  color: #fff;
  font-size: 12.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  max-width: 78vw;
  text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 宽屏（平板 / 桌面 Telegram）不锁宽度，只把网格自动加列，保证始终铺满 */
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 16px 14px; padding: 0 20px; }
  .cat-row, .page-head, .search-head, .mine-head, .mine-cats { padding-left: 20px; padding-right: 20px; }
  .sheet-eps { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
  .meta { max-width: 56vw; }
}

@media (max-width: 360px) {
  .grid { gap: 12px 8px; padding: 0 10px; }
  .card-title { font-size: 12px; }
  /* 窄屏也是五列：目标站 .ep-grid 不分屏宽。只把间隙收紧到 6px、
     字号降一档 —— 360 下每格 ~56px，放两位集号仍然富余。 */
  .sheet-eps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .ep-btn { font-size: 15px; }
  /* 窄屏同样交给 space-evenly：再叠一层 gap 会把首尾空隙压没，反而挤到两个图标 */
  .channels { gap: 0; }
  .channels button { font-size: 12.5px; }
  .cat-row { gap: 11px; padding: 0 10px; }
  .cat-row button { font-size: 12.5px; }
  /* 一集导航在窄屏收紧：四个按钮 + 中间集数要挤进 320，字号和横向 padding 各降一档，
     中间那格允许省略号，宁可「第 1 / 2…」也不能把「下一集」挤出屏幕 */
  .ep-nav { gap: 4px; padding: 0 8px; }
  .ep-nav button { font-size: 11.5px; padding: 0 8px; }
  .ep-nav .en-next { padding: 0 9px; }
  .ep-nav .en-all { padding: 0 7px; }
  /* 快捷入口五等分后每格只剩 ~59px，扣掉 8px 内边距放不下「管理追剧」四个字，
     副标题会被截成「管理追…」。内边距收到 6px、副标题降到 10px，四字刚好齐。 */
  .entry { padding: 10px 6px; }
  .entry b { font-size: 13.5px; }
  .entry span { font-size: 10px; }
}

/* 截图/无动画模式 */
body.no-anim *, body.no-anim *::before, body.no-anim *::after { transition: none !important; animation: none !important; }

/* 在 Telegram 内不再叠加底部安全区：原生 bottom bar 已占据该区域，
   否则会多出一条黑色空白。JS 检测到 Telegram 后给 <html> 加 .in-tg。 */
html.in-tg { --safe-b: 0px; }

/* ---------------- 搜索结果态 ---------------- */
/* 结果区原本排在「猜你想搜」+「热搜榜」后面：390x844 视口下结果区 top=1016px，
   用户输完关键词后屏幕里一个字都不变，看起来就是"搜索没反应"。 */
.view-search.is-searching #s-hist-block,
.view-search.is-searching #s-guess-block,
.view-search.is-searching .sblock-hot { display: none; }
.view-search.is-searching #s-result-block { padding-top: 4px; }
#s-result-block .search-hint { padding: 0 4px 10px; text-align: left; }
#s-result-block .search-hint:empty { display: none; }

/* ================= 「我的」资料卡独立背景 ================= */
/* 让 hero 自己的渐变顶到状态栏，滚动容器原本的上内边距让位给 hero 自己处理 */
.view-mine { padding-top: 0; }

.mine-hero {
  position: relative;
  margin: 0 0 16px;
  padding: calc(var(--safe-t) + 12px) 16px 16px;
  overflow: hidden;
  border-radius: 0 0 22px 22px;
}
/* 背景单独一层：红色主光 + 暖金副光 + 噪点纹理，内容全部浮在上面 */
.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* 默认档是香蕉黄。主光取 #FFD93B 压到 .28，落在近黑底上是暖黄而不是糖果黄，
     白字和头像首字在上面都不掉对比；副光用极淡暖白收一层，避免纯黄发闷 */
  background:
    radial-gradient(132% 110% at 4% -16%, rgba(255, 214, 60, .48), transparent 63%),
    radial-gradient(104% 92% at 62% 26%, rgba(255, 226, 120, .16), transparent 62%),
    radial-gradient(96% 122% at 98% 0%, rgba(255, 244, 176, .20), transparent 60%),
    linear-gradient(160deg, #261e0d 0%, #1a1610 46%, #0e0e0e 100%);
}
.hero-art::before {
  /* 底部渐隐回页面底色，避免和下面的入口卡之间出现硬边。
     只压到最后 44px：再往上盖就会把「私信 / 编辑资料」那排按钮也罩上一层灰。 */
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 44px;
  background: linear-gradient(180deg, rgba(14, 14, 14, 0), var(--bg));
}
.hero-art::after {
  /* 极淡点阵，纯渐变在大屏上会显得发空 */
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 13px 13px;
  opacity: .45;
}
.mine-hero > *:not(.hero-art) { position: relative; z-index: 1; }

/* 背景主题：编辑资料里的「背景图」直接切这一层 */
.mine-hero[data-bg="banana"] .hero-art {
  background:
    radial-gradient(132% 110% at 4% -16%, rgba(255, 214, 60, .48), transparent 63%),
    radial-gradient(104% 92% at 62% 26%, rgba(255, 226, 120, .16), transparent 62%),
    radial-gradient(96% 122% at 98% 0%, rgba(255, 244, 176, .20), transparent 60%),
    linear-gradient(160deg, #261e0d 0%, #1a1610 46%, #0e0e0e 100%);
}
.mine-hero[data-bg="rose"] .hero-art {
  /* 原来那一档偏红底，用户说留着 */
  background:
    radial-gradient(120% 96% at 8% -12%, rgba(255, 88, 112, .30), transparent 60%),
    radial-gradient(92% 118% at 96% 2%, rgba(255, 166, 66, .18), transparent 58%),
    linear-gradient(158deg, #1d1216 0%, #141115 46%, #0e0e0e 100%);
}
.mine-hero[data-bg="warm"] .hero-art {
  background:
    radial-gradient(120% 96% at 10% -10%, rgba(255, 120, 58, .34), transparent 62%),
    radial-gradient(90% 112% at 94% 4%, rgba(255, 198, 92, .20), transparent 56%),
    linear-gradient(158deg, #201410 0%, #171110 46%, #0e0e0e 100%);
}
.mine-hero[data-bg="cool"] .hero-art {
  background:
    radial-gradient(120% 96% at 10% -10%, rgba(70, 148, 255, .30), transparent 62%),
    radial-gradient(90% 112% at 94% 4%, rgba(122, 96, 255, .20), transparent 56%),
    linear-gradient(158deg, #0f1520 0%, #101218 46%, #0e0e0e 100%);
}
.mine-hero[data-bg="gold"] .hero-art {
  background:
    radial-gradient(120% 96% at 10% -10%, rgba(226, 166, 66, .32), transparent 62%),
    radial-gradient(90% 112% at 94% 4%, rgba(255, 222, 142, .16), transparent 56%),
    linear-gradient(158deg, #1c1710 0%, #161311 46%, #0e0e0e 100%);
}
.mine-hero[data-bg="ink"] .hero-art {
  background:
    radial-gradient(130% 96% at 50% -22%, rgba(126, 136, 156, .24), transparent 62%),
    linear-gradient(158deg, #131417 0%, #101113 46%, #0e0e0e 100%);
}

.mine-hero-top { display: flex; align-items: center; gap: 12px; }
.mine-id { flex: 1 1 auto; min-width: 0; }

/* 黄果号做成可点（点了复制），所以是 button 不是 p */
.mine-uid {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  margin-top: 5px;
  padding: 0;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, .52);
  font-size: 12px;
  line-height: 1.5;
}
.mine-uid span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mine-uid svg { flex: none; width: 12px; height: 12px; opacity: .72; }
.mine-uid:active { color: rgba(255, 255, 255, .78); }

.hero-acts { flex: none; display: flex; gap: 6px; }
.hero-act {
  /* 32px 在真机上手指经常点空，看着就是"按钮没反应"；40px 才够稳 */
  width: 40px; height: 40px;
  display: grid; place-items: center;
  padding: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .07);
  color: #ececec;
  backdrop-filter: blur(6px);
  transition: color .16s ease, background .16s ease;
}
.hero-act svg { width: 18px; height: 18px; }
.hero-act.on { color: #ffbe4d; background: rgba(255, 190, 77, .16); border-color: rgba(255, 190, 77, .34); }
.hero-act:active { transform: scale(.94); }

/* 侧边栏标题里的品牌图：26px 圆角一档（6px），与 16px 文字的 x-height 齐平。 */
.brand-logo {
  width: 26px;
  height: 26px;
  margin-right: 8px;
  border-radius: 8px;
  object-fit: cover;
  vertical-align: -7px;
  background: #2a1a06;
}

/* 头像挂件：编辑资料里切换，三档描边 */
.avatar.frame-gold { box-shadow: 0 0 0 2px #d9a94e, 0 0 14px rgba(217, 169, 78, .42); }
.avatar.frame-glow { box-shadow: 0 0 0 2px #56d4ff, 0 0 16px rgba(86, 212, 255, .52); }
.avatar.frame-neon { box-shadow: 0 0 0 2px #ff4d84, 0 0 16px rgba(255, 77, 132, .52); }

/* ================= 个人信息编辑（全屏层） ================= */
.edit-layer {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  background: #0a0a0a;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .26s cubic-bezier(.22, .61, .36, 1), visibility .26s;
}
.edit-layer.on { transform: none; visibility: visible; }

.edit-head {
  flex: none;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  height: calc(48px + var(--safe-t));
  padding-top: var(--safe-t);
  background: rgba(10, 10, 10, .95);
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  backdrop-filter: blur(14px);
}
.edit-head h1 {
  grid-column: 2;
  margin: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.edit-back {
  grid-column: 1;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  margin-left: 4px;
  padding: 0;
  background: none; border: 0;
  color: #fff;
}
.edit-back svg { width: 22px; height: 22px; }
.edit-back:active { opacity: .6; }

/* 钱包层头部多一个刷新按钮。.edit-back 默认钉在第 1 列，第二个会被自动布局挤到下一行，
   所以直接按 id 把它落到第 3 列，不去动其它层的单按钮头。 */
#wallet-refresh {
  grid-column: 3;
  margin-left: 0;
  margin-right: 4px;
}

.edit-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: calc(var(--safe-b) + 28px);
}

.edit-avatar-wrap { position: relative; width: 88px; margin: 26px auto 30px; }
.edit-avatar { width: 88px; height: 88px; border-radius: 50%; }
.edit-cam {
  position: absolute;
  right: -4px; bottom: -4px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  padding: 0;
  border-radius: 50%;
  background: #2c2c2c;
  border: 2px solid #0a0a0a;
  color: #fff;
}
.edit-cam svg { width: 15px; height: 15px; }
.edit-cam:active { background: #3d3d3d; }

.pf-card {
  margin: 0 16px 12px;
  border-radius: 14px;
  background: #171717;
  overflow: hidden;
}
.pf-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 54px;
  padding: 0 4px 0 16px;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
}
.pf-row:active { background: rgba(255, 255, 255, .045); }
.pf-k { flex: none; width: 76px; font-size: 14.5px; color: #e2e2e2; }
.pf-v {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  font-size: 14.5px;
  color: #fff;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pf-v.is-ph { color: #6b6b6b; }
.pf-v em { font-style: normal; }
.pf-arw { flex: none; width: 15px; height: 15px; margin-right: 10px; color: #4a4a4a; }
.pf-sep { height: 1px; margin-left: 16px; background: rgba(255, 255, 255, .06); }

.pf-bgchip {
  display: inline-block;
  vertical-align: middle;
  width: 36px; height: 36px;
  margin-right: 10px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(158deg, #3d3010, #0e0e0e);   /* 无设置时和默认的香蕉黄对齐 */
}
.pf-bgchip[data-bg="banana"] { background: linear-gradient(158deg, #3d3010, #0e0e0e); }
.pf-bgchip[data-bg="rose"] { background: linear-gradient(158deg, #2b1418, #0e0e0e); }
.pf-bgchip[data-bg="warm"] { background: linear-gradient(158deg, #2b1710, #0e0e0e); }
.pf-bgchip[data-bg="cool"] { background: linear-gradient(158deg, #10192a, #0e0e0e); }
.pf-bgchip[data-bg="gold"] { background: linear-gradient(158deg, #2a2113, #0e0e0e); }
.pf-bgchip[data-bg="ink"] { background: linear-gradient(158deg, #1b1d22, #0e0e0e); }

.edit-foot {
  margin: 18px 26px 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
  color: #4f4f4f;
}

/* ================= 通用选择器面板 ================= */
.pick-body { max-height: 68vh; }
.pick-list {
  max-height: 52vh;
  padding: 4px 10px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.pick-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 52px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: #e6e6e6;
  font-size: 14.5px;
  text-align: left;
}
.pick-item span { flex: 1 1 auto; }
.pick-item b { flex: none; color: #ffd21f; font-size: 15px; opacity: 0; }
.pick-item.on { background: rgba(255, 255, 255, .05); color: #fff; }
.pick-item.on b { opacity: 1; }
.pick-item:active { background: rgba(255, 255, 255, .08); }
.pk-av { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #333; }
.pk-bg {
  flex: none;
  width: 34px; height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: linear-gradient(158deg, #3d3010, #0e0e0e);
}
.pk-bg[data-bg="banana"] { background: linear-gradient(158deg, #3d3010, #0e0e0e); }
.pk-bg[data-bg="rose"] { background: linear-gradient(158deg, #2b1418, #0e0e0e); }
.pk-bg[data-bg="warm"] { background: linear-gradient(158deg, #2b1710, #0e0e0e); }
.pk-bg[data-bg="cool"] { background: linear-gradient(158deg, #10192a, #0e0e0e); }
.pk-bg[data-bg="gold"] { background: linear-gradient(158deg, #2a2113, #0e0e0e); }
.pk-bg[data-bg="ink"] { background: linear-gradient(158deg, #1b1d22, #0e0e0e); }

/* ================= 文本输入面板 ================= */
.text-body { padding: 0 16px calc(var(--safe-b) + 14px); }
.text-in {
  width: 100%;
  height: 46px;
  margin: 4px 0 12px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: #202020;
  color: #fff;
  font-size: 15px;
  outline: none;
}
.text-in:focus { border-color: rgba(255, 210, 31, .6); }
.text-foot { display: flex; align-items: center; justify-content: space-between; }
.text-foot span { font-size: 12px; color: #6b6b6b; }
.text-ok {
  height: 38px;
  padding: 0 26px;
  border: 0;
  border-radius: 10px;
  background: #ffd21f;
  color: #1c1500;   /* 亮黄底上白字对比不到 1.7:1，必须压成深褐 */
  font-size: 14px;
  font-weight: 600;
}
.text-ok:active { background: #e8bd12; }

/* ================= 设置面板 ================= */
.set-body { max-height: 72vh; padding: 0 12px calc(var(--safe-b) + 12px); }
.set-group { margin: 4px 0 12px; border-radius: 12px; background: #1a1a1a; overflow: hidden; }
.set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 0;
  background: none;
  color: #e6e6e6;
  font-size: 14px;
  text-align: left;
}
.set-row + .set-row { border-top: 1px solid rgba(255, 255, 255, .05); }
.set-btn:active { background: rgba(255, 255, 255, .05); }
.set-btn.danger { color: #ffd21f; }   /* 原来 #ff7a86，和开态开关一起统一成品牌香蕉黄 */
.set-foot { margin: 4px 0 8px; text-align: center; font-size: 11.5px; color: #4a4a4a; }

.sw {
  position: relative;
  flex: none;
  width: 44px; height: 26px;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: #3a3a3a;
  transition: background .18s ease;
}
.sw::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s ease;
}
/* 开态用品牌香蕉黄。圆点是白的，压在亮黄底上会糊成一团，
   补一道暖褐投影把轮廓拉出来，比换深色圆点更接近系统开关的手感 */
.sw.on { background: #ffd21f; }
.sw.on::after { transform: translateX(18px); box-shadow: 0 1px 3px rgba(90, 66, 0, .45); }

/* ================= 护眼遮罩 ================= */
/* 用覆盖层而不是 filter：filter 会给整个 #app 建合成层，正在播的 video 会被拖去 CPU 重绘 */
#eye-veil { position: fixed; inset: 0; z-index: 900; display: none; pointer-events: none; }
html.eye-soft #eye-veil { display: block; background: rgba(255, 176, 74, .10); }
html.eye-warm #eye-veil { display: block; background: rgba(255, 146, 40, .17); }

/* 这三个面板要从「我的」直接打开，也要能压在编辑页(45)之上 */
#pick-sheet, #text-sheet, #set-sheet { z-index: 50; }

/* ==================================================================
   发布作品（v=270 重构）
   三屏：选素材 → 配乐/封面 → 发布表单，外加我的作品列表。
   素材来源只能是系统文件选择器（Web 没有相册 API），
   所以「相册」这一屏展示的是用户本次挑中的文件，用 objectURL 铺网格。

   配色（t388 升级）：放弃橙红 #FF6B35 → #FF8C42 这套「另一个 App」的色系，
   统一回品牌香蕉黄 #FFD21F（金底黑字）+ 暖调玻璃底，和选集面板同一语言。
   变量只定义在 .pub-layer 上，作用域限于发布层，改这里不会波及其它页面。

   几何（t388 升级）：从「全屏模态」改成「浮在底栏之上的一张卡」。
   原来的 inset:0 会把底部导航一起盖掉，用户进了发布就出不来，只能先关面板；
   现在上沿留 safe-t + 6px、下沿停在胶囊上方 6px，胶囊全程可点，
   四个视图（首页/剧场/推荐/我的）随时能切走，发布内容作为草稿保留。
   ================================================================== */
.pub-layer {
  --pub-g1: #ffd21f;
  --pub-g2: #ffe066;
  --pub-grad: linear-gradient(135deg, #ffe066, #ffd21f);
  --pub-ink: #1a1204;              /* 金底上的字：近黑的暖褐，不用纯黑 */
  --pub-text: #f7efe0;
  --pub-sub: #9c8f7a;
  --pub-line: rgba(255, 236, 200, .10);
  --pub-surface: rgba(255, 236, 200, .05);
  --pub-acc: #ffd21f;
  --pub-err: #ff5a52;

  position: fixed;
  left: 0;
  right: 0;
  top: calc(var(--safe-t) + 6px);
  /* 底栏占位 = dock-gap + safe-b + dock-h，再留 6px 缝 ≡ 面板与胶囊不粘在一起 */
  bottom: calc(var(--safe-b) + var(--dock-gap) + var(--dock-h) + 6px);
  z-index: 60;
  display: none;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 236, 200, .08);
  /* 顶部一层极淡的金光：让深底有纵深，又不至于花 */
  background:
    radial-gradient(130% 48% at 50% -6%, rgba(255, 210, 31, .10), transparent 64%),
    linear-gradient(180deg, rgba(34, 27, 18, .97), rgba(20, 16, 12, .99));
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
  box-shadow: 0 -10px 34px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 244, 222, .06);
}
.pub-layer.on { display: flex; animation: pub-rise .3s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes pub-rise {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: none; }
}
/* 顶部抓手：和选集面板同款 36×4，告诉手指这块能拖下去 */
.pub-layer::before {
  content: "";
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 8px;
  width: 36px;
  height: 4px;
  margin-left: -18px;
  border-radius: 2px;
  background: rgba(255, 236, 200, .22);
  pointer-events: none;
}

.pub-step { display: none; flex: 1; min-height: 0; flex-direction: column; }
.pub-step.on {
  display: flex;
  animation: pub-step-in .26s cubic-bezier(.22, .61, .36, 1) both;
}
@keyframes pub-step-in {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to { opacity: 1; transform: none; }
}

/* 标题绝对居中：左右按钮宽度不同时（「下一步」vs「发布」）标题也不会跳位。
   顶多 6px：抓手条要占出呼吸空间，56 里塞不下。 */
.pub-head {
  position: relative;
  flex: none;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 0;
}
/* 三步进度：素材 → 编辑 → 发布。纯 CSS，靠 data-pub 属性推当前段，
   不占 DOM、不需要 JS 同步 —— 换屏时那截金条自己滑过去。 */
.pub-head::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  border-radius: 1px;
  background: rgba(255, 236, 200, .07);
}
.pub-head::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 18px;
  bottom: 0;
  width: calc((100% - 36px) / 3);
  height: 2px;
  border-radius: 1px;
  background: var(--pub-grad);
  box-shadow: 0 0 8px rgba(255, 210, 31, .45);
  transition: transform .32s cubic-bezier(.22, .61, .36, 1);
}
.pub-step[data-pub="edit"] .pub-head::before { transform: translateX(100%); }
.pub-step[data-pub="form"] .pub-head::before { transform: translateX(200%); }
/* 我的作品不是流程里的一步，不要进度条 */
.pub-step[data-pub="mine"] .pub-head::before,
.pub-step[data-pub="mine"] .pub-head::after { display: none; }
.pub-head h3 {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  max-width: 46%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.2px;
  color: var(--pub-text);
}
/* 44×44 热区，视觉是 38 的暖白玻璃圆 —— 去掉原来那块实心灰底，
   改成与选集面板关闭键同构的「一圈发丝描边」 */
.pub-ico {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 236, 200, .045);
  box-shadow: inset 0 0 0 1px rgba(255, 236, 200, .12);
  color: var(--pub-text);
  transition: background .16s, transform .12s;
}
.pub-ico:active { transform: scale(.92); background: rgba(255, 236, 200, .12); }
.pub-ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
/* 主行动：金底黑字。目标站的金色按钮一律是深色字压在亮金上，
   白字压金在整个站里只有发布层才有过 —— 那是它显得「另一个 App」的主因。 */
.pub-next {
  min-width: 78px;
  height: 34px;
  padding: 0 18px;
  border: 0;
  border-radius: 17px;
  background: var(--pub-grad);
  color: var(--pub-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2px;
  box-shadow: 0 4px 14px rgba(255, 210, 31, .22);
  transition: transform .12s, box-shadow .2s, background .2s, opacity .2s;
}
.pub-next:active:not(:disabled) { transform: scale(.95); box-shadow: 0 2px 8px rgba(255, 210, 31, .18); }
.pub-next:disabled {
  background: rgba(255, 236, 200, .06);
  color: #6a5f4e;
  box-shadow: none;
}
.pub-next.sm { min-width: 0; height: 30px; padding: 0 13px; font-size: 12px; }
.pub-ghost { min-width: 42px; text-align: right; font-size: 12px; color: var(--pub-sub); }

/* 屏标题下方的一行引导：加粗主句 + 灰色补充，替代原来单独一条灰字 */
.pub-lead {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px 18px 14px;
}
.pub-lead b { font-size: 15px; font-weight: 600; color: var(--pub-text); }
.pub-lead span { font-size: 12px; line-height: 1.5; color: var(--pub-sub); }

/* ---- 屏 1 素材网格：height:0 + padding-top 撑正方形，老 WebView 也认 ---- */
.pub-album {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 18px 14px;
  align-content: start;
}
/* 空态时不再用网格：图标居中，一眼看出「这里是空的、点这里加」 */
.pub-album.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 60px;
}
.pub-cell {
  position: relative;
  height: 0;
  padding-top: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: var(--pub-surface);
  box-shadow: inset 0 0 0 1px rgba(255, 236, 200, .08);
  /* 长按拖拽排序时不让列表跟着手指滚；9 格以内本来也不需要滚 */
  touch-action: none;
  transition: transform .16s, box-shadow .16s, opacity .16s;
}
.pub-cell.dragging {
  transform: scale(1.06);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .62), 0 0 0 2px var(--pub-g1);
  z-index: 4;
  opacity: .95;
}
.pub-cell > img,
.pub-cell > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
/* 序号：金徽标黑字，和集数格的当前集同一套「亮金压深底」的表达 */
.pub-cell .pub-no {
  position: absolute;
  left: 7px;
  top: 7px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .55);
  font-size: 10px;
  line-height: 20px;
  text-align: center;
  color: #fff;
  backdrop-filter: blur(6px);
}
/* 排序靠 order，DOM 首子元素不等于视觉第一格，所以不能写 first-child */
.pub-cell[data-i="0"] .pub-no { background: var(--pub-grad); color: var(--pub-ink); font-weight: 700; }
.pub-cell .pub-dur,
.pub-thumb .pub-dur {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(0, 0, 0, .62);
  font-size: 10px;
  color: #fff;
  line-height: 1.5;
}
/* 删除：热区 44×44，视觉仍是 22 的圆点，压住四分之一格宽也不挡脸 */
.pub-cell .pub-del {
  position: absolute;
  right: 0;
  top: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}
.pub-cell .pub-del i {
  display: block;
  width: 22px;
  height: 22px;
  margin: 4px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 14px;
  font-style: normal;
  line-height: 22px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
}
.pub-cell .pub-first {
  position: absolute;
  left: 7px;
  bottom: 7px;
  padding: 1px 7px;
  border-radius: 5px;
  background: var(--pub-grad);
  color: var(--pub-ink);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
}
/* 末尾的「添加」格：不用再回底部找按钮。虚线改成暖白，
   中间的加号单独上金色 —— 它是这张格子里唯一要看的符号 */
.pub-cell-add {
  display: block;
  border: 1px dashed rgba(255, 236, 200, .16);
  background: rgba(255, 236, 200, .03);
  color: var(--pub-sub);
  padding: 0;
  padding-top: 100%;
}
.pub-cell-add:active { background: rgba(255, 210, 31, .1); border-color: rgba(255, 210, 31, .5); }
.pub-cell-add svg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -20px 0 0 -11px;
  fill: none;
  stroke: var(--pub-acc);
  stroke-width: 2;
  stroke-linecap: round;
}
.pub-cell-add span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  font-size: 11px;
  text-align: center;
}
.pub-empty-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 12px;
  text-align: center;
}
.pub-empty-ico {
  width: 78px;
  height: 78px;
  margin-bottom: 16px;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, rgba(255, 210, 31, .14), rgba(255, 236, 200, .03));
  border: 1px solid rgba(255, 210, 31, .2);
  box-shadow: 0 8px 24px rgba(255, 210, 31, .08);
}
.pub-empty-ico svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--brand-soft);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pub-empty-cell b { font-size: 15px; font-weight: 600; color: var(--pub-text); }
.pub-empty-cell > span { margin-top: 6px; font-size: 12px; line-height: 1.6; color: var(--pub-sub); }
.pub-empty-btn {
  margin-top: 20px;
  height: 44px;
  padding: 0 26px;
  border: 0;
  border-radius: 22px;
  background: var(--pub-grad);
  color: var(--pub-ink);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(255, 210, 31, .22);
  transition: transform .12s;
}
.pub-empty-btn:active { transform: scale(.95); }

.pub-foot {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 14px;
  border-top: 1px solid var(--pub-line);
}
.pub-add {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 23px;
  background: var(--pub-grad);
  color: var(--pub-ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2px;
  box-shadow: 0 6px 18px rgba(255, 210, 31, .22);
  transition: transform .12s, box-shadow .2s;
}
.pub-add:active { transform: scale(.95); box-shadow: 0 3px 10px rgba(255, 210, 31, .18); }
.pub-add svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.pub-count { font-size: 12px; color: var(--pub-sub); font-variant-numeric: tabular-nums; }
.pub-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 1px;
  height: 44px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--pub-acc);
  font-size: 13px;
}
.pub-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#pub-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---- 屏 2 预览 ---- */
.pub-preview {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 18px 14px;
  border-radius: 18px;
  background: #060504;
  box-shadow: inset 0 0 0 1px rgba(255, 236, 200, .08);
  overflow: hidden;
}
.pub-preview video,
.pub-preview img { max-width: 100%; max-height: 100%; display: block; }
.pub-preview img { object-fit: contain; }
.pub-preview .pub-multi {
  position: absolute;
  inset: 0;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.pub-preview .pub-multi > * { flex: 0 0 100%; scroll-snap-align: center; object-fit: contain; }
.pub-tools { flex: none; display: flex; gap: 10px; padding: 0 18px 14px; }
.pub-tool {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 46px;
  border: 1px solid var(--pub-line);
  border-radius: 14px;
  background: var(--pub-surface);
  color: #dcdce2;
  font-size: 13px;
  transition: border-color .18s, background .18s, color .18s, transform .12s;
}
.pub-tool:active { transform: scale(.97); }
.pub-tool.on {
  border-color: transparent;
  background: rgba(255, 210, 31, .1);
  color: var(--brand-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 210, 31, .5);
}
.pub-tool:disabled { opacity: .4; }
.pub-tool svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.pub-coverbar { flex: none; padding: 12px 18px 14px; border-top: 1px solid var(--pub-line); }
.pub-coverbar-tip { font-size: 12px; color: var(--pub-sub); }
.pub-coverbar input[type="range"] { width: 100%; margin: 12px 0; accent-color: var(--pub-g1); }
.pub-coverbar-row { display: flex; align-items: center; gap: 12px; }
.pub-coverbar-row img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: #222; }

.pub-musicbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 12px;
  border-top: 1px solid var(--pub-line);
}
/* 上面这条规则带 display:flex，会盖掉 hidden 属性自带的 display:none，
   不显式补一条的话，没选配乐时底部也会挂着「未选择 / 移除」 */
.pub-musicbar[hidden] { display: none; }
.pub-musicbar svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--brand-soft); stroke-width: 1.8; stroke-linecap: round; }
.pub-musicbar b {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 600;
  color: #eee;
}
.pub-musicbar .pub-link { margin-left: 0; }

/* ---- 屏 3 表单 ----
   层级：素材卡 → 话题 → 可见范围 → 辅助说明 → 进度。
   输入框的边框画在外层 .pub-field 上，聚焦用 :focus-within 整卡高亮，
   这样圆角与描边不会被 input 自带的默认样式打断。 */
.pub-form { flex: 1; min-height: 0; overflow-y: auto; padding: 0 18px 24px; }
.pub-media { display: flex; gap: 12px; }
.pub-thumb {
  flex: none;
  align-self: flex-start;
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--pub-surface);
  box-shadow: inset 0 0 0 1px rgba(255, 236, 200, .1);
}
.pub-thumb > img, .pub-thumb > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pub-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pub-field {
  position: relative;
  display: block;
  border: 1px solid var(--pub-line);
  border-radius: 14px;
  background: var(--pub-surface);
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.pub-field:focus-within {
  border-color: rgba(255, 210, 31, .6);
  background: rgba(255, 210, 31, .05);
  box-shadow: 0 0 0 3px rgba(255, 210, 31, .1);
}
.pub-field.err {
  border-color: var(--pub-err);
  box-shadow: 0 0 0 3px rgba(255, 90, 82, .14);
  animation: pub-shake .32s;
}
@keyframes pub-shake {
  0%, 100% { transform: none; }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
.pub-field input,
.pub-field textarea {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: none;
  color: var(--pub-text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
}
.pub-field input { padding: 12px 54px 12px 13px; }
.pub-field textarea { padding: 11px 13px 22px; resize: none; line-height: 1.5; }
.pub-field input::placeholder,
.pub-field textarea::placeholder { color: #5e5e66; }
.pub-count-mini {
  position: absolute;
  right: 12px;
  bottom: 6px;
  font-size: 10px;
  color: #5a5a62;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
/* 单行输入的字数贴右侧垂直居中，多行的贴右下角 */
.pub-field input + .pub-count-mini { top: 50%; bottom: auto; transform: translateY(-50%); }

.pub-sec { margin-top: 22px; }
.pub-sec-hd { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.pub-sec-hd b { font-size: 14px; font-weight: 600; color: var(--pub-text); }
.pub-sec-hd span { font-size: 11px; color: var(--pub-sub); }
.pub-chips { display: flex; flex-wrap: wrap; gap: 8px; }
/* 40 高的胶囊：既是话题标签也满足指腹热区，横向 gap 8 不会串点 */
.pub-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 40px;
  padding: 0 15px;
  border: 1px solid var(--pub-line);
  border-radius: 20px;
  background: var(--pub-surface);
  color: #c3c3ca;
  font-size: 13px;
  transition: border-color .18s, background .18s, color .18s, transform .12s;
}
.pub-chip:active { transform: scale(.95); }
.pub-chip i { font-style: normal; color: #7a7a83; }
.pub-chip.on {
  border-color: transparent;
  background: rgba(255, 210, 31, .12);
  color: var(--brand-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 210, 31, .5);
}
.pub-chip.on i { color: var(--pub-acc); }
.pub-chip-x { width: 12px; height: 12px; margin-left: 2px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; opacity: .85; }
.pub-chip-add { border-style: dashed; color: var(--pub-sub); }
.pub-chip-add svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* 自定义话题行：点「自定义」才展开，提交后自动收起 */
.pub-topic-new { display: flex; gap: 8px; margin-top: 10px; }
.pub-topic-new[hidden] { display: none; }
.pub-topic-new input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 210, 31, .5);
  border-radius: 21px;
  background: rgba(255, 210, 31, .06);
  color: var(--pub-text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.pub-topic-new input::placeholder { color: #5e5e66; }
.pub-topic-new button {
  flex: none;
  height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 21px;
  background: var(--pub-grad);
  color: var(--pub-ink);
  font-size: 13px;
  font-weight: 700;
}

/* 谁能看：横向两选一，选中项整卡换暖金底 + 描边，比原来那行「›」明确 */
.pub-vis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pub-vis-item {
  position: relative;
  min-height: 66px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--pub-line);
  border-radius: 14px;
  background: var(--pub-surface);
  color: var(--pub-sub);
  text-align: left;
  transition: border-color .18s, background .18s, box-shadow .18s, transform .12s;
}
.pub-vis-item:active { transform: scale(.97); }
.pub-vis-item svg {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #74747c;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pub-vis-item b { font-size: 14px; font-weight: 600; color: var(--pub-text); }
.pub-vis-item span { font-size: 11px; color: var(--pub-sub); }
.pub-vis-item.on {
  border-color: transparent;
  background: rgba(255, 210, 31, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 210, 31, .55);
}
.pub-vis-item.on svg { stroke: var(--brand-soft); }
.pub-vis-item.on b { color: var(--brand-soft); }
.pub-vis-item.on span { color: rgba(255, 224, 102, .72); }

.pub-note { margin: 20px 0 0; font-size: 11px; line-height: 1.6; color: #6a5f4e; }

/* 进度：轨道 + 内层渐变条 + 流动高光；成功转绿、失败转红并去掉高光 */
.pub-progress { margin-top: 16px; }
.pub-progress[hidden] { display: none; }
.pub-pbar {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}
.pub-pbar > i {
  position: relative;
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: var(--pub-grad);
  transition: width .28s cubic-bezier(.4, 0, .2, 1);
}
.pub-pbar > i::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
  animation: pub-shine 1.1s linear infinite;
}
@keyframes pub-shine {
  from { transform: translateX(-100%); }
  to { transform: translateX(340%); }
}
.pub-progress.ok .pub-pbar > i { background: linear-gradient(90deg, #22c55e, #4ade80); }
.pub-progress.ok .pub-pbar > i::after { display: none; }
.pub-progress.err .pub-pbar > i { background: linear-gradient(90deg, #ef4444, #ff6b60); }
.pub-progress.err .pub-pbar > i::after { display: none; }
.pub-progress > span { display: block; margin-top: 8px; font-size: 12px; color: var(--pub-sub); }
.pub-progress.ok > span { color: #4ade80; }
.pub-progress.err > span { color: #ff8078; }

/* ---- 屏 4 我的作品 ---- */
.pub-mine { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 18px 16px; }
/* 每件作品单独一张卡：原来用 1px 分隔线排成一张长表，
   在圆角面板里像嵌入了一个旧版列表，改成卡片后与整个面板的圆角语法一致 */
.pub-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--pub-line);
  border-radius: 16px;
  background: var(--pub-surface);
}
.pub-item:last-child { margin-bottom: 0; }
.pub-item-thumb {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, .3);
  position: relative;
}
.pub-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pub-item-thumb .pub-item-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #777; }
.pub-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.pub-item-main h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--pub-text);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pub-item-main p {
  margin: 0;
  font-size: 12px;
  color: var(--pub-sub);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pub-item-del {
  flex: none;
  align-self: center;
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 236, 200, .14);
  border-radius: 20px;
  background: none;
  color: var(--pub-sub);
  font-size: 12px;
}
.pub-item-del:active { background: rgba(255, 90, 82, .12); border-color: rgba(255, 90, 82, .45); color: #ff8078; }
.pub-empty { padding: 52px 20px; text-align: center; font-size: 13px; color: var(--pub-sub); line-height: 1.9; }
/* 我的作品空态：和屏1 共用同一套「金色光晕图标 + 主标 + 副標」，只是图标小一号 */
.pub-empty .pub-empty-ico { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 21px; }
.pub-empty .pub-empty-ico svg { width: 26px; height: 26px; }
.pub-empty b { display: block; margin-bottom: 3px; font-size: 15px; font-weight: 600;
  color: var(--pub-text); line-height: 1.6; }
.pub-empty span { display: block; font-size: 12.5px; }
.pub-empty .pub-empty-code { margin-top: 10px; font-size: 11px; letter-spacing: .04em;
  color: #6a5f4e; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---- 小屏收紧密度，避免 320~360 宽度下标题与按钮挤在一起 ---- */
@media (max-width: 360px) {
  .pub-head { padding: 8px 6px 0; }
  .pub-head h3 { font-size: 16px; }
  .pub-next { min-width: 66px; height: 32px; padding: 0 13px; font-size: 12px; }
  .pub-lead { padding: 4px 14px 12px; }
  .pub-album { gap: 8px; padding: 0 14px 12px; }
  .pub-form { padding: 0 14px 22px; }
  .pub-thumb { width: 74px; height: 74px; }
  .pub-fields { gap: 8px; }
  .pub-field input { padding: 10px 50px 10px 12px; font-size: 14px; }
  .pub-field textarea { padding: 10px 12px 20px; font-size: 14px; }
  .pub-chip { height: 38px; padding: 0 13px; font-size: 12px; }
  .pub-vis-item { min-height: 58px; padding: 10px 12px; }
  .pub-vis-item span { display: none; }
  .pub-vis-item svg { right: 10px; top: 10px; width: 15px; height: 15px; }
  .pub-add { height: 44px; padding: 0 16px; font-size: 13px; }
  .pub-foot { padding: 10px 14px 12px; }
  .pub-mine { padding: 2px 14px 14px; }
}

/* ---- 宽屏（桌面 / 平板）：面板不再拉满，固定 520 宽居中，
   两侧的首页/播放页露出来，跟手机上的悬浮卡一致 ---- */
@media (min-width: 560px) {
  .pub-layer {
    left: 50%;
    right: auto;
    width: 520px;
    margin-left: -260px;
  }
}

/* 系统开了「减弱动态效果」就把位移类动画关掉，只保留颜色变化 */
@media (prefers-reduced-motion: reduce) {
  .pub-step.on,
  .pub-pbar > i::after,
  .pub-field.err { animation: none; }
}

/* ---- 配乐面板 ----
   发布层本身是 z-index:60 的全屏模态，配乐面板要压在它上面，
   所以这里不能沿用 .sheet 默认的 40 */
#music-sheet { z-index: 70; }
.music-body { max-height: 68vh; }
.music-tabs {
  flex: none;
  display: flex;
  gap: 18px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.music-tabs button {
  position: relative;
  padding: 0 0 8px;
  border: 0;
  background: none;
  color: #9a9a9a;
  font-size: 14px;
}
.music-tabs button.on { color: #fff; font-weight: 600; }
.music-tabs button.on::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 18px;
  height: 2px;
  margin-left: -9px;
  border-radius: 1px;
  background: #ffd21f;
}
.music-list { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 0 calc(var(--safe-b) + 8px); }
.music-row { display: flex; align-items: center; gap: 10px; padding: 11px 16px; }
.music-row.on { background: rgba(255, 210, 31, .09); }
.music-row-main { flex: 1; min-width: 0; }
.music-row-main b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #eee;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.music-row-main span { font-size: 11px; color: var(--text-3); }
.music-play {
  flex: none;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  background: none;
  color: #ddd;
  font-size: 11px;
}
.music-play.on { border-color: #ffd21f; color: #ffd21f; }
.music-use {
  flex: none;
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 14px;
  background: #ffd21f;
  color: #1c1500;
  font-size: 12px;
  font-weight: 600;
}
.music-use.ghost { background: none; border: 1px solid rgba(255, 255, 255, .16); color: #bbb; }
.music-empty { padding: 44px 24px; text-align: center; font-size: 13px; color: var(--text-3); line-height: 1.9; }

/* ---------------- 首页长按快捷菜单 + 清屏播放 ----------------
   长按与上滑换剧共用一套手势，所以长按只在「没有位移」时成立；
   iOS 长按会弹系统「存储图像」菜单，这里关掉 callout 与选中。 */
.view-home, .home-stage, .home-stage * {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.lp {
  position: fixed;
  inset: 0;
  z-index: 55;            /* 高于 sheet(40)，低于 toast(60) */
  display: none;
}
.lp.on { display: block; }
.lp-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .48);
  opacity: 0;
  transition: opacity .18s ease;
}
.lp.on .lp-mask { opacity: 1; }
.lp-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 16px calc(var(--safe-b) + 16px);
  border-radius: 18px 18px 0 0;
  background: #1a1a1a;
  border-top: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 -18px 40px rgba(0, 0, 0, .45);
  transform: translateY(100%);
  transition: transform .26s cubic-bezier(.22, .61, .36, 1);
}
.lp.on .lp-body { transform: translateY(0); }
.lp-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 0 13px;
}
.lp-copy { flex: 1; min-width: 0; }
.lp-copy b {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 21px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lp-copy span {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--text-3);
}
.lp-x {
  flex: none;
  width: 30px;
  height: 30px;
  margin-top: -2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: #b9b9b9;
  font-size: 19px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-x:active { background: rgba(255, 255, 255, .12); }

.lp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.lp-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 74px;
  border-radius: 14px;
  background: #242424;
  color: #e8e8e8;
  font-size: 12px;
  transition: transform .12s ease, background-color .15s ease, color .15s ease;
}
.lp-cell:active { transform: scale(.95); background: #2d2d2d; }
.lp-cell.on { color: var(--brand); }
.lp-cell svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lp-speed {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.lp-speed-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.lp-speed-lab { font-size: 12px; color: #d6d6d6; font-weight: 700; }
.lp-speed-tip { font-size: 10.5px; color: var(--text-3); }
.lp-chips { display: flex; gap: 8px; margin-top: 10px; }
.lp-chip {
  flex: 1;
  height: 38px;
  border-radius: 10px;
  background: #242424;
  color: #cfcfcf;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  transition: background-color .15s ease, color .15s ease;
}
.lp-chip:active { background: #2d2d2d; }
.lp-chip.on {
  background: var(--brand-wash);
  color: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(255, 210, 31, .42);
  font-weight: 700;
}

/* 清屏播放：整屏只剩画面，出口是浮标或单击画面 */
body.hg-clear .view-home .topbar,
body.hg-clear .view-home .rail,
body.hg-clear .view-home .meta,
body.hg-clear .view-home .watchbar,
body.hg-clear .view-home .swipe-tip,
body.hg-clear .view-home .boot-play,
body.hg-clear .tabbar {
  opacity: 0;
  pointer-events: none;
}

.clear-exit {
  position: fixed;
  z-index: 26;
  right: 14px;
  bottom: calc(var(--safe-b) + 18px);
  height: 34px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(0, 0, 0, .56);
  color: #f2f2f2;
  font-size: 12px;
  letter-spacing: .2px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
body.hg-clear .clear-exit { opacity: 1; pointer-events: auto; }

/* ---------------- 推荐页投稿（任务 242） ---------------- */
.reco-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.reco-submit {
  height: 28px;
  padding: 0 14px;
  font-size: 12px;
  line-height: 28px;
  border-radius: 999px;
  color: #1a1200;
  font-weight: 700;
  background: linear-gradient(135deg, #ffd21f, #ffa51f);
  transition: transform .12s ease;
}
.reco-submit:active { transform: scale(.96); }
.reco-submit[hidden] { display: none; }

.sub-layer {
  position: fixed;
  inset: 0;
  z-index: 58;
  display: none;
  flex-direction: column;
  padding-top: var(--safe-t);
  background: #0b0b0b;
}
.sub-layer.on { display: flex; }
.sub-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.sub-head h3 { flex: 1; margin: 0; font-size: 16px; font-weight: 700; color: #fff; }
.sub-close {
  flex: none;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #e8e8e8;
}
.sub-close svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.sub-send {
  flex: none;
  height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #1a1200;
  background: linear-gradient(135deg, #ffd21f, #ffa51f);
}
.sub-send:disabled { opacity: .42; }
.sub-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 14px calc(var(--safe-b) + 26px);
}
.sub-notice {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 210, 31, .1);
  color: #ffd97a;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.sub-pick {
  width: 100%;
  height: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed rgba(255, 255, 255, .24);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  color: #d8d8d8;
  font-size: 13px;
}
.sub-pick svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.sub-pick[hidden] { display: none; }
.sub-file { border-radius: 12px; overflow: hidden; background: #141414; }
.sub-file[hidden] { display: none; }
.sub-file video { display: block; width: 100%; max-height: 260px; background: #000; }
.sub-file-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px 4px;
  font-size: 12px;
  color: #b9b9b9;
}
.sub-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-file-size { flex: none; color: #8a8a8a; }
.sub-file-x {
  margin: 0 12px 11px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  color: #d8d8d8;
  font-size: 12px;
}
.sub-progress { margin: 14px 0 2px; }
.sub-progress[hidden] { display: none; }
.sub-progress i {
  display: block;
  height: 6px;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffd21f, #ffa51f);
  transition: width .2s ease;
}
.sub-progress span { display: block; margin-top: 6px; font-size: 12px; color: #9a9a9a; }
.sub-label { display: block; margin: 14px 0 6px; font-size: 12px; color: #9a9a9a; }
.sub-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  background: #161616;
  color: #f2f2f2;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.5;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}
.sub-input::placeholder { color: #6b6b6b; }
.sub-input:focus { border-color: rgba(255, 210, 31, .6); }
.sub-textarea { resize: none; }
.sub-hint { margin: 16px 0 0; font-size: 11.5px; line-height: 1.7; color: #7d7d7d; }

/* ---------------- 我的 · 作品（自己投稿的审核状态） ---------------- */
.works-grid {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 10px;
  padding: 2px 4px 0;
}
.works-grid.on { display: grid; }
.wcell { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wcell-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
.wcell-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wcell-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-3);
}
.wcell-badge {
  position: absolute;
  left: 6px;
  top: 6px;
  max-width: calc(100% - 12px);
  font-size: 11px;
  line-height: 19px;
  padding: 0 8px;
  border-radius: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.wcell-badge.is-approved { background: rgba(34, 197, 94, .92); color: #04240f; }
.wcell-badge.is-pending { background: rgba(0, 0, 0, .68); color: #ffd21f; }
.wcell-badge.is-rejected { background: rgba(239, 68, 68, .92); color: #fff; }
.wcell-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px;
  line-height: 1.3;
  height: 2.6em;
  color: #fff;
  overflow: hidden;
  word-break: break-all;
}
.wcell-sub {
  display: block;
  font-size: 11px;
  line-height: 1.45;
  color: #ff8a8a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 620px) {
  .works-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ============================================================
   钱包 / 代理
   两页都是 .edit-layer 的复用（右进右出、位置固定），这里只写内容。
   色板守死三档：品牌橙只用在「钱」和主操作上，卡面用 --surface，
   正文用 --text-2，辅助信息一律 --text-3 —— 一页里出现四种灰色就散了。
   ============================================================ */

/* ---------------- 钱包 · 资产卡 ---------------- */
.wa-card {
  margin: 16px 16px 0;
  padding: 16px;
  border-radius: 16px;
  /* 斜向渐变 + 一层右上角高光，比纯色更像卡；不加阴影，避免和深底糊成一片。
     卡面用琥珀（辅助色）而不是品牌黄：36px 的余额数字压在白字上，
     #ffd21f 的对比只有 1.7:1，读不出来。 */
  background:
    radial-gradient(120% 90% at 92% 0%, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 58%),
    linear-gradient(152deg, #ffb347 0%, #f08519 52%, #b8560b 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}
.wa-label { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .4px; opacity: .88; }
.wa-num {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 6px 0 0;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.06;
  /* 数字用等宽数位，翻动时不会左右抖 */
  font-variant-numeric: tabular-nums;
  letter-spacing: -.5px;
  word-break: break-all;
}
.wa-num em { font-size: 12px; font-style: normal; font-weight: 600; opacity: .9; letter-spacing: 0; }
.wa-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  font-size: 11px;
  opacity: .92;
  font-variant-numeric: tabular-nums;
}
.wa-sub b { font-weight: 700; }
.wa-sub i { width: 1px; height: 9px; background: rgba(255, 255, 255, .5); }
.wa-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.wa-act {
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: background .15s ease;
}
.wa-act:active { background: rgba(255, 255, 255, .3); }
.wa-act:disabled { opacity: .55; }

/* ---------------- 钱包 · 地址块 ---------------- */
.wa-bind {
  margin: 12px 16px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
}
.wa-bind-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.wa-bind-hd b { font-size: 13px; font-weight: 700; }
.wa-bind-hd span { font-size: 11px; color: var(--text-3); }
.wa-bind-hd span.on { color: #35c759; }
.wa-addr {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-3);
  /* 地址必须整串可见可选中，不能省略号截断，否则用户无法核对 */
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.wa-addr.on { color: var(--text-2); }

/* ---------------- 钱包 · 明细 ---------------- */
.wa-sec { margin-top: 18px; }
.wa-sec-hd { display: flex; align-items: baseline; justify-content: space-between; padding: 0 16px 4px; }
.wa-sec-hd b { font-size: 14px; font-weight: 700; }
.wa-sec-hd span { font-size: 11px; color: var(--text-3); }
.wa-logs { margin: 0 12px; }
.wa-log {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--line);
}
.wa-log:last-child { border-bottom: 0; }
.wa-log-l { flex: 1 1 auto; min-width: 0; }
.wa-log-t {
  margin: 0;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wa-log-s { margin: 3px 0 0; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.wa-log-v {
  flex: none;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.wa-log-v.up { color: #35c759; }
.wa-log-v.down { color: var(--text); }
.wa-more {
  display: block;
  margin: 12px auto 4px;
  height: 32px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 12px;
}
/* 列表拉空时按钮带 hidden，display:block 会盖掉 UA 的 [hidden]，得显式补回来 */
.wa-more[hidden] { display: none; }
.wa-more:active { background: var(--surface-2); }

/* ---------------- 钱包 · 收支明细卡 ----------------
   收起只留一行卡头，眼睛不必先滤过几十条流水；展开后一页 5 条，
   其余走底部翻页。箭头旋转 90 度表示开合，不用额外的文字提示。 */
.wa-logcard {
  margin: 12px 16px 0;
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}
.wa-logcard-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.wa-logcard-hd b { flex: 0 0 auto; font-size: 14px; font-weight: 700; }
.wa-logcard-hd span { flex: 1 1 auto; font-size: 11px; color: var(--text-3); text-align: right; }
.wa-logcard-ar {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--text-3);
  border-bottom: 1.5px solid var(--text-3);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease;
}
.wa-logcard.on .wa-logcard-ar { transform: rotate(-135deg) translate(-2px, -2px); }
.wa-logcard-bd { padding: 0 14px 10px; }
.wa-logcard-bd[hidden] { display: none; }
.wa-logcard-bd .wa-logs { margin: 0; }
.wa-logcard-bd .wa-log:first-child { padding-top: 2px; }
.wa-logpager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 0 2px;
}
.wa-logpager[hidden] { display: none; }
.wa-pg {
  height: 30px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.wa-pg:active { background: var(--line); }
.wa-pg[disabled] { opacity: .35; }
.wa-pg-n {
  min-width: 54px;
  text-align: center;
  font-size: 11px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* ---------------- 钱包 · 今日果币（观看 / 邀请阶梯） ----------------
   一张卡一条规则：左上写做什么，右上写「今天到哪一步」，
   下面三格就是规则里的三档金额。已领到的那格换成品牌黄底，
   三档全亮也就是整卡发亮 —— 用户不需要读文字就知道今天满了。 */
.wa-earn { display: grid; gap: 8px; margin: 0 16px; }
.wa-ecard {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
}
.wa-ehd { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.wa-ehd b { font-size: 13px; font-weight: 700; }
.wa-ehd span { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.wa-eladder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.wa-estep {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 7px 0;
  border-radius: 9px;
  background: var(--surface-2);
  text-align: center;
  font-size: 10px;
  line-height: 1.2;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.wa-estep b { font-size: 13px; font-weight: 800; color: var(--text-2); }
.wa-estep.on { background: var(--brand-wash); color: rgba(255, 210, 31, .72); }
.wa-estep.on b { color: var(--brand); }

/* ---------------- 钱包 · 每日签到 ----------------
   7 个格子横排，格子里直接写当天金额（20/30/50/80/100/150/200）。
   写金额而不是写「第 N 天」：用户关心的是能拿多少，不是第几天。 */
.wa-signbox {
  margin: 12px 16px 0;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface);
}
.wa-sign-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.wa-sign-hd b { font-size: 14px; font-weight: 700; }
.wa-sign-hd span { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ws-dots { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin: 12px 0 0; }
.ws-dots i {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.ws-dots i.on { background: var(--brand-wash); color: var(--brand); }
/* 今天待签的那一格描一圈品牌色：断签后回到第 1 天时，这一圈会自己跳回最左 */
.ws-dots i.cur { box-shadow: inset 0 0 0 1px rgba(255, 210, 31, .55); color: var(--text-2); }
.wa-signbtn {
  width: 100%;
  height: 40px;
  margin-top: 12px;
  border-radius: 11px;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 14px;
  font-weight: 800;
}
.wa-signbtn:active { background: #e8bd12; }
.wa-signbtn:disabled { background: var(--surface-2); color: var(--text-3); }

/* ---------------- 钱包 · 果币用途（商城） ----------------
   右侧只放「多少果币」，不放「立即兑换」按钮：整行就是按钮，
   对触摸来说是最大的命中区，也省掉一行高度。 */
.wa-shop { display: grid; gap: 8px; margin: 0 16px; }
.wa-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  text-align: left;
}
.wa-item:active { background: var(--surface-2); }
.wa-item-l { flex: 1 1 auto; min-width: 0; }
.wa-item-l b { display: block; font-size: 13px; font-weight: 700; }
.wa-item-l span { display: block; margin-top: 3px; font-size: 11px; line-height: 1.45; color: var(--text-3); }
.wa-item-r { flex: none; text-align: right; }
.wa-item-r em {
  font-size: 15px;
  font-style: normal;
  font-weight: 800;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.wa-item-r i { display: block; margin-top: 2px; font-size: 10px; font-style: normal; color: var(--text-3); }
/* 已开通的整块压暗、金额换成「已开通」：视觉上先劝退一次，服务端还会再挡一次 */
.wa-item.owned { opacity: .62; }
.wa-item.owned .wa-item-r em { color: var(--text-3); font-size: 12px; }
.wa-item.owned .wa-item-r i { display: none; }

/* ---------------- 钱包 · 每日空降 ---------------- */
.wa-lottery {
  margin: 8px 16px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
}
.wa-lot-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.wa-lot-hd b { font-size: 13px; font-weight: 700; }
.wa-lot-hd span { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.wa-lot-tx { margin: 7px 0 0; font-size: 11px; line-height: 1.55; color: var(--text-3); }
.wa-lot-ft { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.wa-lot-ft span { font-size: 11px; line-height: 1.45; color: var(--text-3); }
/* 持有往期资格且今天还没参与时会有两颗按钮，用一层 flex 把它们绑在一起，
   否则 .wa-lot-ft 的 space-between 会把「转让」和「参与」顶到两端 */
.wa-lot-acts { display: flex; flex: none; gap: 6px; }
.wa-lot-btn {
  flex: none;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--brand-wash);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}
.wa-lot-btn:active { background: rgba(255, 210, 31, .24); }
.wa-lot-btn:disabled { background: var(--surface-2); color: var(--text-3); }

/* ---------------- 钱包 · VIP 权益 ----------------
   这一块用一块极淡的品牌黄光把权益从「明细」里挑出来，
   但正文仍然是 --text-2：黄色只负责框，不负责读。 */
.wa-vip {
  margin: 18px 16px 0;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 210, 31, .26);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(255, 210, 31, .13), rgba(255, 210, 31, 0) 62%),
    var(--surface);
}
.wa-vip-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.wa-vip-hd b { font-size: 14px; font-weight: 800; color: var(--brand); }
.wa-vip-hd span { font-size: 11px; color: var(--text-3); }
.wa-vip-hd span.on { color: #35c759; }
.wa-vip-ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
}
.wa-vip-ul li { position: relative; padding-left: 13px; font-size: 12px; line-height: 1.6; color: var(--text-2); }
/* 3px 小方点而不是圆点：两列等宽网格里方点的左边缘对得更齐 */
.wa-vip-ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: var(--brand);
}
.wa-vip-tip {
  margin: 11px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.6;
  color: var(--text-3);
}

/* ---------------- 钱包 · 商业合作奖励 ---------------- */
.wa-coop { display: grid; gap: 6px; margin: 0 16px; }
.wa-crow {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 11px;
  background: var(--surface);
  text-align: left;
}
.wa-crow:active { background: var(--surface-2); }
.wa-crow-l { flex: 1 1 auto; min-width: 0; }
.wa-crow-l b { display: block; font-size: 12px; font-weight: 700; }
.wa-crow-l span { display: block; margin-top: 2px; font-size: 10px; line-height: 1.45; color: var(--text-3); }
.wa-crow-v {
  flex: none;
  font-size: 13px;
  font-weight: 800;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.wa-crow-v.doing,
.wa-crow-v.done { font-size: 11px; font-weight: 600; }
.wa-crow-v.doing { color: var(--text-2); }
.wa-crow-v.done { color: #35c759; }

/* ---------------- 钱包 · 绑定按钮 / 合规声明 ---------------- */
.wa-bindbtn {
  width: 100%;
  height: 38px;
  margin-top: 10px;
  border-radius: 10px;
  background: var(--brand-wash);
  color: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(255, 210, 31, .3);
  font-size: 13px;
  font-weight: 700;
}
.wa-bindbtn:active { background: rgba(255, 210, 31, .24); }
.wa-bindbtn:disabled { background: var(--surface-2); color: var(--text-3); box-shadow: none; }
.wa-note {
  margin: 16px 16px 28px;
  font-size: 10px;
  line-height: 1.7;
  color: var(--text-3);
  /* 三条声明用 \n 拼成一个串，靠 pre-line 换行；不插 <br> 免得 innerHTML 拼接 */
  white-space: pre-line;
}

/* ---------------- 钱包 · 面板小账单（无输入形态） ----------------
   买 VIP / 空降 / 商户资格这三种不用输入，改成一张两格账单：
   左格「消耗」右格「当前余额」。扣钱之前先看清，比一句提示管用。 */
.wal-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 16px 10px; }
.wal-fact { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.wal-fact span { display: block; font-size: 10px; color: var(--text-3); }
.wal-fact b { display: block; margin-top: 4px; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
/* 余额不够时把「当前余额」标红，用户在面板里就看见，不必等提交后弹错 */
.wal-fact b.warn { color: #ff8a8a; }
/* hidden 属性必须显式写回 display:none：.wal-chips 有 display:flex、.text-in 有宽度规则，
   都会盖掉 UA 的 [hidden] 默认样式 */
.wal-facts[hidden],
.wal-chips[hidden],
.wal-sbody .text-in[hidden] { display: none; }

/* ---------------- 代理 · 邀请卡 ---------------- */
.ag-card {
  margin: 16px 16px 0;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 210, 31, .26);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(255, 210, 31, .16), rgba(255, 210, 31, 0) 62%),
    #17140d;
}
.ag-inv { display: flex; align-items: center; gap: 14px; }
.ag-qr {
  flex: none;
  width: 92px;
  height: 92px;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.ag-qr img { width: 84px; height: 84px; display: block; }
/* 二维码拉不到时不留白洞：换成品牌色底 + 邀请码首字，用户仍能靠下面的码手输 */
.ag-qr.ph { background: var(--brand-wash); }
.ag-qr.ph img { display: none; }
.ag-qr.ph::after {
  content: '码';
  font-size: 22px;
  font-weight: 800;
  color: var(--brand);
}
.ag-inv-txt { flex: 1 1 auto; min-width: 0; }
.ag-inv-l { margin: 0; font-size: 11px; color: var(--text-3); }
.ag-code {
  margin: 4px 0 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}
.ag-inv-s { margin: 6px 0 0; font-size: 11px; color: var(--text-3); }
.ag-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.ag-btn {
  height: 40px;
  border-radius: 12px;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 14px;
  font-weight: 700;
  transition: transform .14s var(--ease), filter .14s var(--ease);
}
.ag-btn:active { transform: scale(.97); filter: brightness(.94); }
.ag-btn.ghost { background: rgba(255, 255, 255, .1); }

/* ---------------- 代理 · 三格数据 ---------------- */
.ag-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 12px 16px 0;
  padding: 12px 0;
  border-radius: 12px;
  background: var(--surface);
}
.ag-stat { text-align: center; min-width: 0; }
.ag-stat + .ag-stat { border-left: 1px solid var(--line); }
.ag-stat b { display: block; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ag-stat span { display: block; margin-top: 3px; font-size: 11px; color: var(--text-3); }

/* ---------------- 代理 · 邀请阶梯 ----------------
   数据直接来自 h5wallet.php 的 inviteDay.ladder（后台「任务条目 → 邀请阶梯奖励」
   的 invite.ladder），配几档就画几行，运营改完下次进页面立刻同步、不用发版。
   0 币档是「占位不发币」，后端 got 恒为 1，所以只按 got 打勾、不参与人数判断。 */
.ag-ladder {
  margin: 12px 16px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
}
.ag-ladder[hidden] { display: none; }
.ag-ladder-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ag-ladder-hd b { font-size: 13px; font-weight: 700; }
.ag-ladder-hd span { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ag-lrow { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; }
.ag-lrow .ag-lneed { flex: 0 0 auto; color: var(--text-3); }
.ag-lrow .ag-lc { flex: 1 1 auto; min-width: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.ag-lrow .ag-ltag { flex: 0 0 auto; font-style: normal; font-size: 11px; color: var(--text-3); }
.ag-lrow.on .ag-lc,
.ag-lrow.on .ag-ltag { color: var(--brand); }

/* ---------------- 代理 · 分段 ---------------- */
.ag-segs { display: flex; gap: 6px; margin: 18px 16px 10px; }
.ag-seg {
  flex: 1 1 0;
  height: 32px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
}
.ag-seg.on { background: var(--brand-wash); color: var(--brand); font-weight: 700; }

/* 两个 pane 只靠 hidden 互斥。写死 display:block 是为了让 [hidden] 的覆盖
   有明确的对手规则：某些 WebView 的 UA 样式表把 [hidden] 写成 display:revert，
   在 flex 父级里会失效，自己声明一遍最稳。 */
.ag-pane { display: block; }
.ag-pane[hidden] { display: none; }
.ag-tasks { display: block; }
.ag-team { display: block; }

/* ---------------- 代理 · 任务卡 ---------------- */
.ag-task {
  margin: 0 16px 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
}
.ag-task-hd { display: flex; align-items: flex-start; gap: 10px; }
.ag-task-t { flex: 1 1 auto; min-width: 0; }
.ag-task-t b { display: block; font-size: 14px; font-weight: 700; }
.ag-task-t span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-3);
}
.ag-rew {
  flex: none;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.ag-bar {
  height: 6px;
  margin: 10px 0 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, .09);
  overflow: hidden;
}
.ag-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #ffb057, var(--brand));
  transition: width .3s cubic-bezier(.22, .61, .36, 1);
}
.ag-task-ft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  font-size: 11px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.ag-claim {
  flex: none;
  height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--brand);
  /* 亮黄底必须用深褐字：白字在 #ffd21f 上对比不到 1.7:1 */
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 700;
}
.ag-claim:active { filter: brightness(.9); }
.ag-claim.done { background: rgba(255, 255, 255, .08); color: var(--text-3); }
.ag-claim.wait { background: rgba(255, 255, 255, .1); color: var(--text-2); }

/* ---------------- 代理 · 团队行 ---------------- */
.ag-team { margin: 0 12px; }
.ag-trow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--line);
}
.ag-ava {
  flex: none;
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
}
.ag-ava em { font-style: normal; }
/* 真头像盖在首字上：图没拉到就用 onerror 把 img 拿掉，首字自然露出来。
   不必再写一个占位背景图 —— 服务端取不到头像时本来就会回纸飞机。 */
.ag-ava img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--surface-2);
}
.ag-info { flex: 1 1 auto; min-width: 0; }
.ag-nick {
  margin: 0;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ag-at { margin: 3px 0 0; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ag-tag {
  flex: none;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
}
.ag-tag.ok { background: rgba(53, 199, 89, .14); color: #35c759; }
.ag-tag.wait { background: rgba(255, 255, 255, .06); color: var(--text-3); }

/* ---------------- 钱包表单面板 ---------------- */
#wal-sheet { z-index: 60; }
.wal-sbody { max-height: 76vh; }
.wal-tip { margin: 0 0 10px; padding: 0 16px; font-size: 12px; line-height: 1.55; color: var(--text-3); }
.wal-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 10px; }
.wal-chips:empty { display: none; }
.wal-chip {
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  background: #242424;
  color: var(--text-2);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.wal-chip.on { background: var(--brand-wash); color: var(--brand); font-weight: 700; }
.wal-sbody .text-in { width: calc(100% - 32px); margin: 0 16px; font-variant-numeric: tabular-nums; }
.wal-err { margin: 8px 16px 0; min-height: 15px; font-size: 12px; color: #ff6b6b; }
.wal-foot { padding: 8px 16px 2px; }
.wal-sbody .text-ok { width: 100%; background: var(--brand); color: var(--brand-ink); }
.wal-sbody .text-ok:active { background: #e8bd12; }

/* ============================================================
   v272 · 视觉升级：统一质感层
   这一节只做「叠加」，不改结构，全部放在文件末尾，
   靠后出现的同优先级规则覆盖前面的硬编码值，避免满仓找旧值。
   ============================================================ */

/* ---- 按压反馈：所有可点元素都收一下，和 tab / 发布按钮同一手感 ---- */
.chip,
.ep-btn,
.lp-cell,
.lp-chip,
.wal-chip,
.ag-seg,
.reco-sheet-item {
  transition: transform .14s var(--ease), background-color .16s var(--ease),
    color .16s var(--ease), box-shadow .16s var(--ease);
}
.chip:active,
.ep-btn:active,
.wal-chip:active,
.ag-seg:active {
  transform: scale(.96);
}

/* ---- 右侧互动栏：按下回弹 + 选中态金色光晕 ----
   .rail-btn 是视频上的浮层，不能加背景块，质感只做在图标上 */
.rail-btn {
  transition: transform .16s var(--ease);
}
.rail-btn:active { transform: scale(.9); }
.rail-btn.on svg {
  filter: drop-shadow(0 0 10px var(--brand-glow)) drop-shadow(0 1px 3px rgba(0, 0, 0, .5));
}
.rail-btn svg {
  transition: transform .2s var(--ease-out), filter .24s var(--ease);
}

/* ---- 浮层：面板一律玻璃 + 顶部发丝线，遮罩加一点模糊 ---- */
.sheet-body,
.drawer-body {
  background: linear-gradient(180deg, rgba(26, 26, 27, .96), rgba(18, 18, 19, .99));
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.sheet-body { box-shadow: 0 -14px 44px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06); }
.drawer-body { box-shadow: var(--shadow-3), inset -1px 0 0 rgba(255, 255, 255, .05); }
.sheet-mask,
.drawer-mask {
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

/* ---- Toast：磨砂黑 + 微投影，浮在 tabbar 之上时不切断玻璃层 ---- */
.toast {
  background: rgba(28, 28, 29, .82);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: var(--shadow-2);
  transition: opacity .2s var(--ease), transform .22s var(--ease-out);
}

/* ---- 文字选区 / 焦点环：别让浏览器默认的蓝把品牌色打断 ---- */
::selection { background: var(--brand-wash); color: var(--brand); }
:focus-visible {
  outline: 2px solid rgba(255, 210, 31, .6);
  outline-offset: 2px;
}

/* ---- 滚动条：桌面端别露出一条灰杠，破坏沉浸感 ---- */
.view-scroll,
.sheet-scroll,
.drawer-scroll { scrollbar-width: none; }
.view-scroll::-webkit-scrollbar,
.sheet-scroll::-webkit-scrollbar,
.drawer-scroll::-webkit-scrollbar { width: 0; height: 0; }

/* 低端机/省电模式下 backdrop-filter 很贵，用户显式要求减少动态时一并降级 */
@media (prefers-reduced-motion: reduce) {
  .chip, .ep-btn, .lp-cell, .lp-chip, .wal-chip, .ag-seg, .reco-sheet-item,
  .rail-btn, .rail-btn svg, .toast {
    transition: none;
  }
}

@media (min-width: 620px) {
  .ag-segs, .ag-task, .ag-stats, .wa-card, .wa-bind, .ag-card { max-width: 560px; margin-left: auto; margin-right: auto; }
}

/* ============================================================
   t392 · 剧集详情 + 排行榜
   ------------------------------------------------------------
   详情页对着目标站 /video/<id>/ 做：头图压暗 + 海报浮卡、评分与原创
   chip、类型/更新、播放量/上线日期、标签、简介可展开、选集六列、
   作者 + 关注、猜你喜欢、底部四格操作条。
   排行榜对着目标站 /ranks/hot/ 做：三档 tab + 前三名领奖台 + 列表行。
   两页还是「黑底 + 单一品牌黄」的老规矩：金色只用来点分量，
   不做大面积填充，大面积黄会把海报和数字一起冲淡。
   ============================================================ */

/* ---------------- 剧集详情 ---------------- */
/* 详情页把底部胶囊关掉了（body.dt-open），所以 .view-scroll 默认给胶囊留的
   那 72px 要一并收回，否则页尾会多出一条没人用的黑带。 */
.view-detail { background: #08070a; padding-top: 0; padding-bottom: 0; }
body.dt-open .tabbar { display: none; }

.dt-top {
  position: sticky; top: 0; z-index: 6;
  display: flex; align-items: center; gap: 8px;
  height: calc(var(--safe-t) + 48px);
  padding: var(--safe-t) 12px 0;
  background: rgba(9, 8, 11, .88);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.dt-back {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: var(--text);
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1);
}
.dt-back svg { width: 18px; height: 18px; }
.dt-top-name {
  min-width: 0; flex: 1 1 auto; font-size: 14px; font-weight: 700;
  color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.dt-hero { position: relative; }
/* 头图是竖版封面塞进 250px 横框：cover 按宽铺满后纵向溢出近一半（390 框里
   显示的画布是 390×520），默认 center 正好从人物眉心横切。
   40% 让可见窗口落在源图的 21%~69%：把封面顶部那行剧名整行切掉（切一半更花），
   又把人物头顶（约 27%）完整兜在里面，上方留 5% 的呼吸。 */
.dt-hero-bg {
  display: block; width: 100%; height: 250px; object-fit: cover;
  object-position: 50% 40%;
  background: #141216; filter: brightness(.62) saturate(.95);
}
/* 头图往下压成正文底色，避免图下沿出现一条硬边 */
.dt-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 130px;
  background: linear-gradient(180deg, rgba(8, 7, 10, 0), #08070a 92%);
  pointer-events: none;
}

/* 海报浮卡：负 margin 把它骑在头图下沿，一眼能看出「这不是列表页」 */
.dt-card {
  position: relative; z-index: 1;
  display: flex; gap: 12px; margin: -112px 12px 0; padding: 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(33, 28, 21, .93), rgba(14, 12, 11, .97));
  border: 1px solid rgba(255, 210, 31, .14);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.dt-poster {
  flex: none; width: 92px; height: 124px; border-radius: 10px; object-fit: cover;
  background: #1a181c; box-shadow: 0 8px 20px rgba(0, 0, 0, .5);
}
.dt-info { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; padding: 2px 0; }
.dt-name {
  margin: 0; font-size: 18px; font-weight: 800; line-height: 1.24; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dt-score-row { display: flex; align-items: center; gap: 8px; margin: 0; }
.dt-score { font-size: 15px; font-weight: 800; color: var(--brand); letter-spacing: .3px; }
.dt-score.is-none { font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.dt-chip {
  font-size: 10.5px; font-weight: 700; line-height: 16px; padding: 0 6px; border-radius: 4px;
  color: #3a2600; background: linear-gradient(180deg, #ffdf6b, #f0b21c);
}
.dt-meta {
  margin: 0; font-size: 12px; color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dt-facts {
  margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px;
  font-size: 11.5px; color: var(--text-3);
}
.dt-facts span { position: relative; }
.dt-facts span + span::before {
  content: ''; position: absolute; left: -6px; top: 50%; width: 2px; height: 2px;
  margin-top: -1px; border-radius: 50%; background: var(--text-3);
}

.dt-body { padding: 14px 12px 0; }
.dt-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.dt-tag {
  font-size: 12px; color: #e8c98a; padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 210, 31, .07); border: 1px solid rgba(255, 210, 31, .16);
}

.dt-sec { margin-top: 16px; }
.dt-sec-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.dt-sec-head b { font-size: 15px; font-weight: 700; color: var(--text); }
.dt-sec-head span { font-size: 12px; color: var(--text-3); }

.dt-intro { margin: 0; font-size: 13px; line-height: 1.72; color: var(--text-2); white-space: pre-line; }
.dt-intro-wrap.clip .dt-intro {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.dt-more { margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--brand); }

.dt-ep-tip { margin: 0 0 10px; font-size: 11.5px; line-height: 1.6; color: var(--text-3); }
.dt-eps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.dt-ep {
  height: 40px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--text-2);
  background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .07);
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.dt-ep.on {
  color: var(--brand-ink); font-weight: 800;
  background: var(--brand); border-color: var(--brand);
  box-shadow: 0 6px 18px rgba(255, 210, 31, .26);
}

.dt-author {
  display: flex; align-items: center; gap: 10px; padding: 12px;
  border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
}
.dt-ava {
  flex: none; width: 42px; height: 42px; border-radius: 50%; overflow: hidden;
  border: 1px solid rgba(255, 210, 31, .28); background: #1a181c;
}
.dt-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dt-author-info { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; }
.dt-author-info b { font-size: 14px; font-weight: 700; color: var(--text); }
.dt-author-info em { font-style: normal; font-size: 11.5px; color: var(--text-3); }
.dt-follow {
  flex: none; display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 14px;
  border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--brand-ink);
  background: linear-gradient(180deg, var(--brand-soft), var(--brand));
  box-shadow: 0 6px 16px rgba(255, 210, 31, .2);
}
.dt-follow svg { width: 14px; height: 14px; }
.dt-follow-done { display: none; }
.dt-follow.on { color: var(--brand); background: rgba(255, 210, 31, .1); border: 1px solid rgba(255, 210, 31, .3); box-shadow: none; }
.dt-follow.on .dt-follow-add { display: none; }
.dt-follow.on .dt-follow-done { display: block; }

.dt-like { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.dt-like::-webkit-scrollbar { display: none; }
.dt-like-card { flex: none; width: 96px; text-align: left; }
.dt-like-poster {
  display: block; width: 96px; height: 128px; border-radius: 10px; object-fit: cover;
  background: #1a181c;
}
.dt-like-name {
  margin: 6px 0 0; font-size: 12px; line-height: 1.35; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dt-like-sub { margin: 2px 0 0; font-size: 10.5px; color: var(--text-3); }

/* 底栏是 sticky 的，.dt-pad 补上被它盖住的高度，最后一屏内容不会卡在条底下 */
.dt-pad { height: 76px; }
.dt-bar {
  position: sticky; bottom: 0; z-index: 7;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 1.7fr; align-items: center; gap: 6px;
  padding: 8px 12px calc(8px + var(--safe-b));
  background: rgba(10, 9, 12, .95);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.dt-act {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  height: 44px; border-radius: 10px; font-size: 10.5px; color: var(--text-2);
}
.dt-act svg { width: 19px; height: 19px; }
.dt-act.on { color: var(--brand); }
/* 追剧那颗是两个图标叠着切换的：.dt-act 是 height:44px 的定高列，
   两个 19px 图标同时占位会被 flex 压扁、文字挤出边界 —— 必须只留一个。 */
.dt-act .dt-fav-add { display: block; }
.dt-act .dt-fav-done { display: none; }
.dt-act.on .dt-fav-add { display: none; }
.dt-act.on .dt-fav-done { display: block; }
.dt-play {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 44px; border-radius: 999px; font-size: 14px; font-weight: 800; color: var(--brand-ink);
  background: linear-gradient(180deg, var(--brand-soft), var(--brand));
  box-shadow: 0 10px 22px rgba(255, 210, 31, .26);
}
.dt-play svg { width: 15px; height: 15px; fill: currentColor; }
.dt-play span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------- 排行榜 ---------------- */
/* 顶部一片极暗的暖褐辉光，越往下越沉，领奖台正好落在最亮的那一段 */
.view-rank {
  padding-top: 0;
  background: radial-gradient(130% 72% at 50% 0%, #2c1f07 0%, #14110c 44%, #08080a 100%);
}
/* t408：标题、日期、规则按钮挤一行。「每天 0 点更新 · 11/20」从前一行挪上来
   当副标题 —— 原来它独占一行、下面又留 6px，标题区白白吃掉近 30px 高度。
   日期底部对齐并压到标题基线上（不跟 26px 的标题抢中线），空间不够时先被
   截断（flex 0 1 auto + ellipsis），标题和按钮都不许缩。 */
.rk-top { display: flex; align-items: center; gap: 10px; padding: calc(var(--safe-t) + 12px) 12px 0; }
.rk-title { flex: none; font-size: 26px; font-weight: 800; letter-spacing: .2px; color: var(--text); }
.rk-rule {
  flex: none; height: 26px; padding: 0 11px; border-radius: 999px; margin-left: auto;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; color: #e8c98a;
  background: rgba(255, 210, 31, .08); border: 1px solid rgba(255, 210, 31, .2);
}
/* 规则按钮的信息圈：SVG 靠 currentColor 取胶囊的暖金色，不单独写色 */
.rk-rule svg { width: 13px; height: 13px; flex: none; }
.rk-date {
  flex: 0 1 auto; min-width: 0; margin: 0 0 3px -3px; align-self: flex-end;
  font-size: 11.5px; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.rk-tabs { display: flex; align-items: center; gap: 18px; padding: 14px 12px 0; }
.rk-tabs button {
  position: relative; padding-bottom: 9px; font-size: 15px; font-weight: 600; color: var(--text-3);
  transition: color .18s var(--ease);
}
.rk-tabs button.on { color: var(--text); font-weight: 800; }
.rk-tabs button.on::after {
  content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 20px; height: 3px; border-radius: 2px; background: var(--brand);
  box-shadow: 0 0 10px var(--brand-glow);
}
.rk-win { margin-left: auto; font-size: 11px; color: var(--text-3); }

/* 领奖台：2-1-3 摆位，1 号居中且更高。三列底部对齐，台阶脚落在同一条线上。
   台座是三层拼出来的方柱：.rk-step-front（正面，摆数字）/ .rk-step-top（顶面，
   向后斜切）/ .rk-step-side（右侧面，向右收窄）。顶面与侧面里没有文字，
   所以 perspective 带来的细微模糊无所谓；正面不动三维，数字永远是清的。 */
.rk-podium {
  position: relative;
  display: grid; grid-template-columns: 1fr 1.22fr 1fr; align-items: end; gap: 8px;
  margin: 34px 12px 0;
}
.rk-pod { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
/* 封面只占台座宽的一半上下 —— 台座比作品宽，才有「奖台」的比例 */
.rk-pod-imgwrap { position: relative; width: 56%; }
.rk-pod-1 .rk-pod-imgwrap { width: 66%; }
.rk-pod-img {
  display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 8px; background: #1a181c;
}
.rk-pod-1 .rk-pod-imgwrap {
  border-radius: 8px;
  box-shadow: 0 0 0 1.5px rgba(255, 215, 94, .92), 0 12px 26px rgba(0, 0, 0, .52), 0 0 24px rgba(255, 190, 60, .3);
}
.rk-pod-2 .rk-pod-imgwrap { border-radius: 8px; box-shadow: 0 0 0 1px rgba(206, 214, 224, .5), 0 10px 22px rgba(0, 0, 0, .46); }
.rk-pod-3 .rk-pod-imgwrap { border-radius: 8px; box-shadow: 0 0 0 1px rgba(214, 152, 96, .5), 0 10px 22px rgba(0, 0, 0, .46); }

/* 冠军头顶那顶冠：坐在封面上沿那条金线上，左右居中。
   t412：口径改成参考图那种「正戴在正中」—— 冠放大到 46px（原 38），倾角从 -17°
   收到 -4°（几乎正立），横向补偿跟着减到 -23px。原来的 -17° 斜戴会把冠甩到
   左边、右边空出一块，用户要的是第三张图那种「压在正中、两侧都不空」的样子。
   纵向仍按 t410 的规矩：冠底（SVG 内部还有约 4px 空边）压进封面一点点，
   看起来是坐在线上而不是悬空。 */
.rk-crown-wrap {
  position: absolute; left: 50%; top: -42px; width: 46px; height: 46px;
  /* 左移半个身位：left:50% 之后用自身半宽回正，冠心才落在封面中轴上 */
  margin-left: -23px; pointer-events: none; z-index: 3;
  transform-origin: 50% 92%;
  animation: rkCrownSway 4.6s ease-in-out infinite;
}
.rk-crown-wrap::before {
  content: ''; position: absolute; left: -24%; right: -24%; bottom: -10%; height: 44%;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 208, 100, .62), rgba(255, 170, 40, 0) 74%);
  filter: blur(4px);
}
.rk-crown {
  display: block; width: 100%; height: 100%;
  filter: drop-shadow(0 5px 11px rgba(0, 0, 0, .6)) drop-shadow(0 0 14px rgba(255, 170, 50, .55));
}
@keyframes rkCrownSway {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-1deg) translateY(-2px); }
}

/* 封面上的播放钮：整卡本来就进详情，这里只是个视觉锚点。
   t410：骑在封面右下角上 —— 不是缩在封面里。right/bottom 取负值，钮身探出
   封面 2px，外面的白环（2px）与金环（3px）正好把下边框与右边框的交角
   整段盖住，与参考站那种「扣在角上的播放键」一致。
   直径 31 → 26px（用户要求小一号）。 */
.rk-play {
  position: absolute; right: -2px; bottom: -2px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; z-index: 2;
  background: linear-gradient(180deg, #ffe98b, #f5b41e);
  box-shadow:
    0 4px 11px rgba(0, 0, 0, .55),
    inset 0 1px 0 rgba(255, 255, 255, .82),
    0 0 0 2px rgba(255, 255, 255, .82),
    0 0 0 3px rgba(255, 200, 70, .5);
}
.rk-play::before {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  border: 1.5px solid rgba(255, 226, 140, .9);
  animation: rkPulse 2.4s ease-out infinite;
}
.rk-play::after {
  content: ''; width: 0; height: 0; margin-left: 3.5px;
  border-left: 7.5px solid #3a2600; border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
@keyframes rkPulse {
  0% { transform: scale(.9); opacity: .85; }
  72%, 100% { transform: scale(1.58); opacity: 0; }
}

/* 第一名的五角星：铺满整个领奖台（不只是冠军那一列），所以它挂在 podium 上
   而不是挂在 .rk-pod-imgwrap 里 —— 星要从冠军身上飘到第二、第三名的位置上去。
   18 颗星的坐标、大小、延时全写死：随机的话每次刷新都换一批位置，验收没法对。 */
.rk-stars {
  position: absolute; inset: -4px -2px 0; pointer-events: none; z-index: 4;
}
.rk-stars > i {
  --star: polygon(50% 0%, 61% 34.6%, 98% 35%, 68% 57%, 79% 91.4%, 50% 70%, 21% 91.4%, 32% 57%, 2% 35%, 39% 34.6%);
  position: absolute; left: var(--x); top: var(--y);
  width: var(--s); height: var(--s);
  background: radial-gradient(circle at 40% 32%, #ffffff 0 14%, #ffe27a 34%, #f7ae22 70%, #c97d06 100%);
  -webkit-clip-path: var(--star); clip-path: var(--star);
  /* 两层辉光：内层小半径把边缘烘白，外层大半径把星「点亮」成一颗光点 */
  filter: drop-shadow(0 0 4px rgba(255, 214, 96, .95)) drop-shadow(0 0 13px rgba(255, 150, 20, .62));
  opacity: 0; transform-origin: 50% 50%;
  animation: rkStarPop 3.8s ease-in-out infinite;
  animation-delay: var(--d);
}
@keyframes rkStarPop {
  0% { opacity: 0; transform: scale(.4) rotate(-24deg); }
  12% { opacity: 1; transform: scale(1) rotate(8deg); }
  52% { opacity: .92; transform: scale(.9) rotate(-4deg); }
  78% { opacity: .98; transform: scale(1.04) rotate(5deg); }
  94%, 100% { opacity: 0; transform: scale(.45) rotate(-8deg); }
}
@media (prefers-reduced-motion: reduce) {
  .rk-crown-wrap, .rk-play::before, .rk-stars > i { animation: none; }
  .rk-stars > i { opacity: .9; }
}

/* t407：环绕冠军的那三条爱心轨道整块撤掉（连同两条反向自转的帧动画与心跳）。
   理由：它跟铺满领奖台的五角星同时在动，两种颜色两套节奏，看上去像两拨装饰
   在抢冠军；五角星能把氛围带到二三名，爱心只能绕着冠军转，格局反而小。
   选择器名、data-uri 掩膜、帧动画一并删净不留死代码 —— 部署脚本里有
   「这几串必须搜不到」的反向检查守着，所以这段注释也刻意不写回原文。 */

.rk-pod-name {
  margin: 9px 0 0; width: 100%; font-size: 12px; font-weight: 700; line-height: 1.28; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rk-pod-1 .rk-pod-name { font-size: 13.5px; }
/* t407：热度是领奖台上最该被看见的一行 —— 旧版 11px/700 跟剧名挤在一起，
   数字读不出来。加到 15px、冠军 18px（都比剧名大一档），等宽数字避免跳动。 */
.rk-pod-hits {
  margin: 6px 0 0; font-size: 15px; font-weight: 800; color: var(--brand);
  font-variant-numeric: tabular-nums; letter-spacing: -.3px;
}
.rk-pod-1 .rk-pod-hits { font-size: 18px; letter-spacing: -.2px; }

/* ---------------- 台座本体（等距柱体，不走 3D 变换） ----------------
   顶面与侧面都是 clip-path 切出来的平行四边形：dx 向右退、dy 向上抬，
   三条棱在角点上严丝合缝。这个尺寸的台座用 perspective 会糊成一张纸，
   等距切角反而干净——正面只负责明暗过渡，转面交给顶和侧。 */
.rk-step {
  --sh: 42px; --fs: 27px; --dx: 12px; --dy: 10px;
  --c-hi: #fff2bf; --c-mid: #ffd766; --c-lo: #d0951b; --c-deep: #a0690f;
  --c-top: #ffeeb0; --c-top2: #f7ce5e;
  --c-side: #c08a1a; --c-side2: #85560a;
  position: relative; display: block; width: calc(100% - var(--dx)); height: var(--sh); margin-top: 10px;
  border-radius: 2px 2px 3px 3px;
  /* 三层叠：顶部白釉 → 左右柱面暗角 → 主渐变（亮金沉到深金） */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .36) 0%, rgba(255, 255, 255, 0) 24%),
    linear-gradient(90deg, rgba(0, 0, 0, .24) 0%, rgba(0, 0, 0, 0) 14%, rgba(255, 255, 255, .14) 44%, rgba(0, 0, 0, 0) 64%, rgba(0, 0, 0, .26) 100%),
    linear-gradient(180deg, var(--c-hi) 0%, var(--c-mid) 36%, var(--c-lo) 76%, var(--c-deep) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .7),
    inset 0 -1px 0 rgba(0, 0, 0, .3),
    0 10px 20px rgba(0, 0, 0, .46);
}
/* 顶面：下边贴正面顶边，上边右移 dx —— 盒子比台座宽 dx，右侧正好压在侧面顶上 */
.rk-step-top {
  position: absolute; left: 0; bottom: 100%;
  width: calc(100% + var(--dx)); height: var(--dy);
  background: linear-gradient(90deg, var(--c-top2) 0%, var(--c-top) 44%, var(--c-top2) 100%);
  clip-path: polygon(0 100%, calc(100% - var(--dx)) 100%, 100% 0, var(--dx) 0);
}
/* 右侧面：左边贴正面右边，右边上抬 dy；顶边与顶面共用一条棱 */
.rk-step-side {
  position: absolute; left: 100%; top: calc(-1 * var(--dy));
  width: var(--dx); height: calc(100% + var(--dy));
  background: linear-gradient(180deg, var(--c-top2) 0%, var(--c-side) 26%, var(--c-side2) 100%);
  clip-path: polygon(0 var(--dy), 100% 0, 100% 100%, 0 100%);
}
.rk-step-front {
  position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  font-size: var(--fs); font-weight: 900; font-style: italic; line-height: 1;
  letter-spacing: -1.2px; font-variant-numeric: tabular-nums;
}
/* 数字本体：原来是一味纯白，压在浅色柱面上容易糊；改成上白下金的金属渐变
   再补一道极淡的深描边，同样字号下厚一档。金 / 银 / 铜三根柱子各自给 --num-grad。 */
.rk-step-front b {
  position: relative; z-index: 2; font-weight: 900;
  background: var(--num-grad, linear-gradient(180deg, #fffdf6 0%, #fff8e4 34%, #ffe39a 62%, #dda338 100%));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: .6px rgba(96, 58, 4, .34);
  filter: drop-shadow(0 2px 1px rgba(58, 30, 0, .42));
}
/* 斜向高光：一条白光自左下扫到右上，4.6s 一轮，只做柔光叠加不压暗数字 */
.rk-step-front::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(104deg, transparent 36%, rgba(255, 255, 255, .2) 44%, rgba(255, 255, 255, .66) 50%, rgba(255, 255, 255, .2) 56%, transparent 64%);
  background-size: 240% 100%; background-position: 190% 0;
  mix-blend-mode: soft-light;
  animation: rkShine 4.6s ease-in-out infinite;
}
@keyframes rkShine { 0% { background-position: 190% 0; } 46%, 100% { background-position: -90% 0; } }
/* 柱面上的星尘：四角各一颗，错峰明灭 —— 就是那点「特写素材点缀」 */
.rk-step-front::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(circle at 15% 26%, rgba(255, 255, 255, .95) 0 .9px, transparent 2px),
    radial-gradient(circle at 84% 22%, rgba(255, 248, 206, .92) 0 1.1px, transparent 2.2px),
    radial-gradient(circle at 22% 80%, rgba(255, 255, 255, .8) 0 .8px, transparent 1.8px),
    radial-gradient(circle at 78% 76%, rgba(255, 252, 220, .88) 0 1px, transparent 2px);
  animation: rkDust 3.4s ease-in-out infinite;
}
@keyframes rkDust { 0%, 100% { opacity: .32; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) {
  .rk-step-front::after, .rk-step-front::before { animation: none; }
  .rk-step-front::before { opacity: .8; }
}
/* 冠军脚下的金色光斑：一层径向渐变加轻微呼吸，不抢正面数字 */
.rk-step-glow {
  position: absolute; left: -22%; right: -22%; bottom: -18px; height: 34px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 222, 130, .72), rgba(255, 186, 50, .28) 52%, transparent 76%);
  filter: blur(5px);
  animation: rkGlow 3.4s ease-in-out infinite;
}
@keyframes rkGlow { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }

.rk-pod-1 .rk-step { --sh: 62px; --fs: 40px; --dx: 13px; --dy: 12px; }
.rk-pod-2 .rk-step {
  --sh: 46px; --fs: 31px;
  --c-hi: #fbfdff; --c-mid: #dbe3ed; --c-lo: #a8b3c0; --c-deep: #7d8794;
  --c-top: #e9f0f7; --c-top2: #d5dee8; --c-side: #99a3b0; --c-side2: #6a737e;
  --num-grad: linear-gradient(180deg, #ffffff 0%, #f4f8fd 36%, #cfdae7 64%, #8794a3 100%);
}
.rk-pod-3 .rk-step {
  --sh: 38px; --fs: 27px;
  --c-hi: #fde3c8; --c-mid: #e8b382; --c-lo: #c08047; --c-deep: #8e5a30;
  --c-top: #f7dcc0; --c-top2: #e2ac7e; --c-side: #b3763f; --c-side2: #7d4c26;
  --num-grad: linear-gradient(180deg, #fff7ee 0%, #ffe8d2 34%, #e8bb90 64%, #9a6534 100%);
}

.rk-list { margin: 12px 12px 0; }
.rk-row {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 8px 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
/* 名次：象牙白斜体大字，下面一道短横——和需求截图里的「数字 + —」一致。
   .rk-no 里只能有数字与空元素，历史验收脚本读的就是这个节点的 textContent。 */
.rk-no {
  flex: none; width: 28px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 23px; font-weight: 900; font-style: italic; line-height: 1;
  letter-spacing: -1px; color: #f3ead6; font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}
.rk-no .rk-dash { width: 11px; height: 2px; border-radius: 1px; background: rgba(243, 234, 214, .55); }
.rk-thumb {
  flex: none; width: 44px; height: 58px; border-radius: 6px; object-fit: cover;
  background: #1a181c; box-shadow: 0 6px 14px rgba(0, 0, 0, .45);
}
.rk-row-info { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 5px; }
.rk-row-name {
  font-size: 14px; font-weight: 700; line-height: 1.2; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rk-row-sub { font-size: 10.5px; line-height: 1.2; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-hits {
  flex: none; font-size: 13.5px; font-weight: 800; color: var(--brand);
  font-variant-numeric: tabular-nums; letter-spacing: -.2px;
}

/* 行底热度条：宽度按「本条 / 榜首」归一，从 0 长到目标值；条上还有一道扫光跑循环。
   宽度走 CSS 变量而不是 scaleX —— 扫光在 ::after 上，缩放会把光带一起压扁。 */
.rk-bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px; border-radius: 2px;
  overflow: hidden; background: rgba(255, 255, 255, .07);
}
.rk-bar > i {
  position: relative; display: block; height: 100%; border-radius: 2px;
  width: var(--w, 0%); overflow: hidden;
  background: linear-gradient(90deg, #e0761a 0%, #f5b727 55%, #ffe38d 100%);
  box-shadow: 0 0 10px rgba(255, 190, 60, .6);
  animation: rkBarGrow .95s cubic-bezier(.22, .61, .36, 1) both;
}
.rk-bar > i::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent);
  animation: rkBarShine 2.8s ease-in-out .9s infinite;
}
@keyframes rkBarGrow { from { width: 0; } to { width: var(--w, 0%); } }
@keyframes rkBarShine { 0% { left: -40%; } 60%, 100% { left: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .rk-bar > i, .rk-bar > i::after { animation: none; }
}
.rk-foot { margin: 14px 12px 0; text-align: center; font-size: 11px; color: var(--text-3); }

/* 榜单规则弹层：与发布面板同一种「底部抽屉」，但走自己的 .on 开关，
   不蹭 pub-layer 的状态机 */
.rk-sheet {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, .62);
  opacity: 0; visibility: hidden;
  transition: opacity .2s var(--ease), visibility .2s;
}
.rk-sheet.on { opacity: 1; visibility: visible; }
.rk-sheet-card {
  width: 100%; max-width: 560px; padding: 18px 16px calc(16px + var(--safe-b));
  border-radius: 20px 20px 0 0; background: #141216;
  border-top: 1px solid rgba(255, 210, 31, .18);
  transform: translateY(14px);
  transition: transform .26s var(--ease-out);
}
.rk-sheet.on .rk-sheet-card { transform: none; }
.rk-sheet-card b { display: block; margin-bottom: 10px; font-size: 16px; font-weight: 800; }
.rk-sheet-card p { margin: 0 0 8px; font-size: 12.5px; line-height: 1.68; color: var(--text-2); }
.rk-sheet-card button {
  margin-top: 6px; width: 100%; height: 44px; border-radius: 999px;
  font-size: 14px; font-weight: 800; color: var(--brand-ink);
  background: linear-gradient(180deg, var(--brand-soft), var(--brand));
}

/* 卡片标题是进详情页的热区，鼠标悬停给一声回应；封面仍旧是直接播。 */
@media (hover: hover) {
  .card-title { cursor: pointer; }
  .card:hover .card-title { color: var(--brand); }
  .rk-row:hover .rk-row-name, .rk-pod:hover .rk-pod-name { color: var(--brand); }
}

/* 窄机（360 及以下）只收窄榜单 tab 的间距。选集保持 6 列 ——
   跟目标站同一套版面，360 下每格仍有 49px，两位数字不挤。 */
@media (max-width: 362px) {
  .rk-tabs { gap: 14px; }
  .rk-row-name { font-size: 13px; }
}

/* 封面骨架：图还在路上时给一道缓慢扫过的流光
   ─────────────────────────────────────────────────────────────
   榜单首次进来是 30 张封面同时拉（服务端现转 webp，720 档 122KB/张），
   到齐要一两秒。这段窗口里光秃秃的 #1a181c 看着像图挂了，一道斜向
   流光才像「正在端上来」。

   只用 background-image：img 没拿到像素时不绘制内容，就露出这层底；
   照片一到整个盖住，不需要任何 JS 摘类，onerror 隐藏掉的坏图也不会闪。 */
.rk-pod-img, .rk-thumb, .dt-like-poster, .dt-poster, .dt-hero-bg, .card-poster img {
  background-image: linear-gradient(105deg, #17151a 34%, #2a262e 48%, #17151a 62%);
  background-size: 280% 100%;
  animation: hg-cover-shimmer 1.7s linear infinite;
}
@keyframes hg-cover-shimmer {
  from { background-position: 140% 0; }
  to { background-position: -40% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .rk-pod-img, .rk-thumb, .dt-like-poster, .dt-poster, .dt-hero-bg, .card-poster img { animation: none; }
}

/* ================= 动态交互（t393） =================
   三处都只碰 transform / opacity / background：走合成层，不进主线程重排，
   中低端机也不会因为一颗心掉帧。全在 prefers-reduced-motion 下收起。 */

/* ---- 1. 点赞飘心 ----
   只在「未赞 → 已赞」时放一次，取消点赞什么都不放。
   层与 tap-fx 分开：那边继承的是点击涟漪的 <i> 样式，心要自己一套。 */
.like-fx { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.like-fx svg {
  position: absolute;
  width: var(--sz, 20px);
  height: var(--sz, 20px);
  fill: #ff4d5e;
  filter: drop-shadow(0 2px 5px rgba(255, 46, 74, .42));
  will-change: transform, opacity;
  animation: like-float var(--dur, .95s) cubic-bezier(.19, .74, .31, 1) forwards;
}
@keyframes like-float {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.2) rotate(0deg); }
  14%  { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  72%  { opacity: .92; }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% - var(--dy, 96px)))
               scale(.58) rotate(var(--rot, 0deg));
  }
}

/* ---- 2. 追剧弹跳 ----
   缩到 .85 再弹到 1.06 归位，星星同时转一圈 —— 状态翻转得看得见。
   播放页右栏是 .rail-btn，详情页那颗是 .dt-act，两边共用同一套关键帧。 */
.rail-btn.is-pop,
.dt-act.is-pop { animation: fav-pop .46s cubic-bezier(.34, 1.46, .5, 1); }
@keyframes fav-pop {
  0%   { transform: scale(1); }
  26%  { transform: scale(.85); }
  60%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.rail-btn.is-pop svg,
.dt-act.is-pop svg { animation: fav-spin .5s cubic-bezier(.34, 1.46, .5, 1); }
@keyframes fav-spin {
  0%   { transform: rotate(0deg) scale(1); }
  56%  { transform: rotate(180deg) scale(1.18); }
  100% { transform: rotate(360deg) scale(1); }
}

/* ---- 3. 头像流光 ----
   一圈 2px 金弧绕着头像转：conic-gradient 打底再按环挖空，
   旋转只动 transform，不动 background-position，不重绘。
   底栏右上那块本来就最容易被人眼滑过，这道光就是「还有一个入口」。 */
.dock-glow {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(from 0deg,
    rgba(255, 210, 31, 0) 0deg,
    rgba(255, 210, 31, 0) 234deg,
    rgba(255, 210, 31, .62) 298deg,
    #fff7d0 326deg,
    rgba(255, 210, 31, .62) 350deg,
    rgba(255, 210, 31, 0) 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: dock-glow-spin 3.6s linear infinite;
  will-change: transform;
}
@keyframes dock-glow-spin { to { transform: rotate(360deg); } }
.dock-me::after {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 210, 31, .26) 0%, rgba(255, 210, 31, .08) 54%, transparent 72%);
  animation: dock-halo 3.6s ease-in-out infinite;
}
@keyframes dock-halo {
  0%, 100% { opacity: .5; transform: scale(.95); }
  50%      { opacity: 1; transform: scale(1.07); }
}
/* 首次进站的迁移提示：光弧提速、整圈亮起来，把视线拉过去 */
.dock-me.tip .dock-glow { animation-duration: 1.1s; }
.dock-me.tip .dock-me-ring {
  box-shadow: 0 0 0 3px rgba(255, 210, 31, .16), 0 0 18px rgba(255, 210, 31, .42);
}

/* 暂停键：19px 下叶子与高光会糊，单独放大到 22px 并叠一层极淡暖光 */
.watch-ctl .wc-ico-pause {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .55));
}

@media (prefers-reduced-motion: reduce) {
  .like-fx svg, .rail-btn.is-pop, .rail-btn.is-pop svg,
  .dt-act.is-pop, .dt-act.is-pop svg,
  .dock-glow, .dock-me::after { animation: none; }
}



/* ==========================================================================
   t416 剧场五段导航
   --------------------------------------------------------------------------
   结构（自上而下）：
     ① .th-row-main 主栏目  —— 17px/700，选中项下压 3px 粗线（JS 落 --th-ink-x/w）
     ②③④ .th-seg   新源三段 —— 段名标签（金竖线 + 灰字）+ 胶囊横向滚动
     ⑤ .th-views    视图切换 —— 三格分段控件，滑块走 --tv-x/--tv-w
   为什么这么分：目标是「一眼看出这是五层，而不是一条挤了 20 个词的横条」。
   第一层用字号和字重压住版面（它是主栏目），二~四层缩小一号、加段名标签，
   第五层换成低矮的分段控件 —— 三层等差，扫视时不会串行。
   视觉语言沿用 t415 的「描边 + 极轻受光渐变」，不用实心块：
   深色底上一旦出现三四块同亮度的砖，封面就抢不回注意力了。
   ========================================================================== */
.th-nav {
  position: relative;
  padding: 0 0 4px;
}

/* ---- ① 主栏目行 ---------------------------------------------------------
   底部对齐（align-items: flex-end）+ 行高 40px：四个词的字面宽度不一样，
   基线对齐才能让那条粗线落在同一条水平线上。 */
.th-row-main {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: clamp(18px, 6.4vw, 34px);
  height: 50px;
  padding: 0 14px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.th-row-main::-webkit-scrollbar { display: none; }

.th-row-main button {
  flex: 0 0 auto;
  height: 38px;
  line-height: 38px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .3px;
  color: rgba(255, 255, 255, .5);
  white-space: nowrap;
  transition: color .2s var(--ease, ease), transform .2s var(--ease, ease);
}
.th-row-main button.on {
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 255, 255, .3);
}
.th-row-main button:active { transform: scale(.95); }

/* 粗线：宽度是字宽的 62%（JS 量），3px 高、圆角 2px。
   位移走 transform 而不是改 left —— transform 只合成不重排，
   切栏目时这条线才是「滑过去」，而不是消失后在新位置重画。 */
.th-ink {
  position: absolute;
  left: 0;
  bottom: 9px;
  width: var(--th-ink-w, 40px);
  height: 3px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .45), 0 0 10px rgba(255, 255, 255, .5);
  pointer-events: none;
  opacity: 0;
  transform: translateX(var(--th-ink-x, 0px));
  transition:
    transform .38s var(--spring, cubic-bezier(.34, 1.4, .5, 1)),
    width .38s var(--spring, cubic-bezier(.34, 1.4, .5, 1)),
    opacity .2s ease;
}
.th-ink.on { opacity: 1; }

/* ---- ②③④ 新源三段 -----------------------------------------------------
   三段共用一行结构：段名标签 + 短竖线 + 胶囊带。
   只有这三行是「新源」，所以段名前面那根竖线用品牌金；
   主栏目行保持纯白，两者不抢色。 */
.th-seg {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-top: 9px;
  padding-left: 14px;
  /* hidden 属性在 display:flex 上会被覆盖，必须显式兜一件事：
     接口还没回来时 JS 给 box.hidden = true，这一行就该整条消失。 */
}
.th-seg[hidden] { display: none; }

.th-seg-name {
  position: relative;
  flex: 0 0 auto;
  height: 26px;
  padding: 0 10px 0 13px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .5px;
  color: rgba(255, 255, 255, .46);
  border-radius: 7px;
  background: rgba(255, 255, 255, .045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
  white-space: nowrap;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}
.th-seg-name::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 50%;
  width: 2px;
  height: 11px;
  margin-top: -5.5px;
  border-radius: 1px;
  background: rgba(255, 210, 31, .5);
  transition: background .18s ease;
}
.th-seg-name.on {
  color: #ffd21f;
  background: rgba(255, 210, 31, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 210, 31, .34);
}
.th-seg-name.on::before { background: #ffd21f; }
.th-seg-name:active { transform: scale(.96); }

/* 段名与胶囊之间那根 13px 的短竖线：把「一段」和「这一段的题材」分开 */
.th-seg-line {
  flex: 0 0 auto;
  width: 1px;
  height: 13px;
  background: rgba(255, 255, 255, .12);
}

/* 胶囊带：横滑不换行。滚动条在 iOS WKWebView 会画成系统 overlay，
   ::-webkit-scrollbar 对它无效，所以两端各留一点 padding 让最后
   一颗胶囊不被切边，而不是靠肉眼调。 */
.th-seg-pills {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 2px 14px 2px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.th-seg-pills::-webkit-scrollbar { display: none; }

.th-seg-pills button {
  flex: 0 0 auto;
  height: 27px;
  padding: 0 11px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .2px;
  color: rgba(255, 255, 255, .6);
  border-radius: 13.5px;
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
  white-space: nowrap;
  transition: color .16s ease, background .16s ease, box-shadow .16s ease,
    transform .16s var(--ease, ease);
}
.th-seg-pills button.on {
  color: #17130a;
  font-weight: 700;
  background: linear-gradient(180deg, #ffdf5c, #ffd21f);
  box-shadow:
    0 2px 10px -3px rgba(255, 210, 31, .5),
    inset 0 0 0 1px rgba(255, 255, 255, .34);
}
.th-seg-pills button:active { transform: scale(.95); }

/* ---- ⑤ 视图切换 --------------------------------------------------------
   三格分段控件：底槽 34px、内衬按钮 28px，滑块比按钮低 1 档亮度。
   这一行高度刻意压低（比主栏目少 16px），视觉上属于「工具栏」而不是「导航」，
   所以点在它上面时用户的预期是「换一种看法」，而不是「换一批内容」。 */
.th-views {
  position: relative;
  display: flex;
  align-items: center;
  height: 34px;
  margin: 13px 14px 0;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .032);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.th-views button {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 0;
  height: 28px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .3px;
  color: rgba(255, 255, 255, .48);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .18s ease;
}
.th-views button.on {
  color: #fff;
  font-weight: 600;
}
.th-views-ink {
  position: absolute;
  z-index: 0;
  top: 3px;
  left: 0;
  width: var(--tv-w, 0px);
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .135), rgba(255, 255, 255, .07));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .1),
    0 3px 10px -6px rgba(0, 0, 0, .9);
  pointer-events: none;
  opacity: 0;
  transform: translateX(var(--tv-x, 0px));
  transition:
    transform .34s var(--spring, cubic-bezier(.34, 1.4, .5, 1)),
    width .34s var(--spring, cubic-bezier(.34, 1.4, .5, 1)),
    opacity .2s ease;
}
.th-views-ink.on { opacity: 1; }

/* 窄屏兜底（320~344 宽）：360 是最常见的安卓宽度，四项 17px 加间距实测只占 267px，
   放得下就不缩（缩了第一列比第二三列还小，主次关系就反了）；到 320 才降一档，
   胶囊同步收一号，保证「真人短剧」和它后面第一颗胶囊不被挤出屏幕。 */
@media (max-width: 344px) {
  .th-row-main { gap: 15px; padding: 0 12px 12px; }
  .th-row-main button { font-size: 16px; }
  .th-seg { gap: 8px; padding-left: 12px; }
  .th-seg-name { font-size: 11px; padding: 0 8px 0 11px; }
  .th-seg-pills { padding-right: 12px; gap: 7px; }
  .th-seg-pills button { height: 26px; padding: 0 10px; font-size: 12px; }
  .th-views { margin: 12px 12px 0; }
  .th-views button { font-size: 12px; letter-spacing: .1px; }
}

/* 电脑端：胶囊带折行全显（t418）
   ---------------------------------------------------------------------------
   手机上有「右滑」这个手势，胶囊带 overflow-x 就是够了；鼠标没有那个手势
   —— 拖动滚动条要先把隐藏的滚动条找出来，shift + 滚轮没人知道 ——
   于是每段末尾那几颗（情语 / 漫音 / 艳舞）在桌面浏览器里永远点不到，
   用户看到的是「被截断的一行」。这里不去造新的交互，而是让溢出这件事不发生：
   有精确指针的桌面（以及任何 ≥620 宽的窗口）改成 flex-wrap，胶囊按行折下去，
   一行变两行、多占 34px 高度，但每一个栏目都在屏幕上。
   窄屏（真手机）保持横滑：那里折行会把导航吃掉小半屏，得不偿失。 */
@media (hover: hover) and (pointer: fine), (min-width: 620px) {
  /* 段名对齐到第一行胶囊，而不是两行的垂直中点 */
  .th-seg { align-items: flex-start; }
  /* 13px 竖线从 7px 起，中线落在 27px 胶囊的正中间，不再跟着两行一起居中 */
  .th-seg-line { margin-top: 7px; }
  .th-seg-pills {
    flex-wrap: wrap;
    row-gap: 7px;
    overflow: visible;
  }
}
