/* 前台样式：影视站风格，无构建依赖，可直接改 */
/* 颜色全部走变量；具体配色见文件末尾的 body.palette-<key> 段（默认 = orange）。 */
:root {
  --bg: #0f1115;
  --bg-soft: #171a21;
  --panel: #1b1f27;
  --line: #262b35;
  --text: #e6e9ef;
  --text-strong: #ffffff;   /* 强文字：logo / 导航高亮 / 卡片标题 hover */
  --text-soft: #b9c0cc;     /* 次级正文：简介 / banner 描述 */
  --muted: #8b93a3;
  --brand: #ff5c38;
  --brand-2: #ff7d38;       /* 渐变第二色 */
  --brand-soft: rgba(255, 92, 56, .14);
  --on-brand: #ffffff;      /* 铺在品牌色上的文字 */
  --gold: #ffb020;
  --gold-ink: #1b1f27;      /* 铺在金色上的文字 */
  --header-bg: rgba(15, 17, 21, .94);
  --tabbar-bg: rgba(15, 17, 21, .97);
  --ph-text: #4b5563;       /* 无封面占位文字 */
  --mask: rgba(15, 23, 42, .55);
  --radius: 10px;
  --gold-soft: rgba(255, 176, 32, .14);  /* 金色淡底：图标砖 / 角标 */
  --danger: #ff6b6b;                 /* 危险/错误：退出、清空、错误提示 */
}
* { box-sizing: border-box; }
/* ===== M92：修「滑动屏幕晃晃悠悠」=====
   站主反馈两个场景（登录页 / 网站页）滑起来都在晃，实测定位到三个可量化来源：

   1) **整页橡皮筋回弹**。内容不足一屏的页面（登录页实测内容高 419px / 视口 568px）
      根本没有可滚动区域，但 iOS 与安卓的「过度滚动」仍允许把整页拖出来再弹回去，
      手感就是上下晃。`overscroll-behavior-y: none` 关掉根滚动的回弹与滚动链。
      （副作用：禁用浏览器下拉刷新。影视站不需要下拉刷新，这个代价可以接受。）
   2) **`backdrop-filter` 的滚动重绘**。顶栏（sticky）与底部 tabbar（fixed）都盖着模糊层，
      页面高 9519px，滚动时每帧都要重新采样背后整片内容做高斯模糊 —— 中低端安卓上
      帧率直接掉到肉眼可见的顿挫。移动端改成不透明底色、去掉模糊（见文件末尾 M92 段）。
   3) **顶栏挂在 125px 高处**。手机上 `flex-wrap` 让顶栏变成两行，吸附时遮掉近 1/4 屏，
      内容在它下面穿梭会放大"晃"的观感 —— 这个问题保留（去掉吸顶会丢导航），
      但把里面的模糊关掉后重绘开销已经消失。
   `-webkit-text-size-adjust` 是顺带修横竖屏切换时字号被浏览器自动放大的问题。 */
html {
  overscroll-behavior-y: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* 弹窗锁滚动时 body 变成 position:fixed，内容不足一屏会露出 html 底色；
     铺同色避免闪白（配色变量都定义在 :root = html 上，直接可用）。 */
  background: var(--bg);
}
body.front-body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.65 -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; }

/* 顶栏 */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.site-header-inner {
  max-width: 1220px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.site-logo { font-size: 19px; font-weight: 700; color: var(--text-strong); letter-spacing: .5px; flex: 0 0 auto; }
.site-logo span { color: var(--brand); }
/* ★ M34：后台「网站设置 → 网站图标 LOGO」填了地址就显示图片。
   此前模板只渲染站名，site.logo 字段没有任何消费者，设了也不显示（字段建了 ≠ 有人读）。
   不写死宽高（按原比例缩放），只用 max-height / max-width 封顶，避免竖版 LOGO 被压扁或撑破顶栏。 */
.site-logo-img { display: block; width: auto; height: auto; max-height: 36px; max-width: 200px; object-fit: contain; }
/* 搜索框紧跟 logo（同一行平行）；分类导航在桌面推到最右 */
.site-search { display: flex; gap: 6px; flex: 0 1 auto; min-width: 0; }
.site-search input {
  width: 210px; padding: 7px 12px; border-radius: 20px;
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--text); font-size: 13px;
}
.site-search input:focus { outline: none; border-color: var(--brand); }
.site-search button {
  padding: 7px 16px; border-radius: 20px; border: 0; flex: 0 0 auto;
  background: var(--brand); color: var(--on-brand); font-size: 13px; cursor: pointer;
}
.site-nav { display: flex; gap: 16px; flex-wrap: wrap; margin-left: auto; }
.site-nav a { font-size: 14px; color: var(--muted); }
.site-nav a:hover, .site-nav a.on { color: var(--text-strong); }

/* 布局 */
.site-main { max-width: 1220px; margin: 0 auto; padding: 20px 16px 48px; }
.site-footer {
  border-top: 1px solid var(--line); background: var(--bg-soft);
  color: var(--muted); font-size: 13px;
}
.site-footer-inner { max-width: 1220px; margin: 0 auto; padding: 22px 16px; }

/* 区块 */
.section { margin-bottom: 26px; }
.section-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.section-head h2 { margin: 0; font-size: 17px; }
.section-head h2::before {
  content: ""; display: inline-block; width: 4px; height: 15px;
  background: var(--brand); border-radius: 2px; margin-right: 8px; vertical-align: -2px;
}
.section-head .more { margin-left: auto; font-size: 13px; color: var(--muted); }

/* 分类总览页：手机端「一排三个」的入口墙
   ★ .cat-grid / .cat-group / .cat-row 只被本页使用（全站 grep 确认），排布规则全部限定在这三个类下。
   ★ 手机固定 3 列，卡片高度**沿用原来竖排一行时的 54px、不放大**，
     一屏大致能放 8~9 行（24~27 个分类），分类多也不用长滚。
   ★ 二级分类在本页收起：点进任一一级分类后，分类页顶部的筛选条会列出它的全部二级
     （见 routes.js `/category/:id` 的 filters + list.njk 的 .filter-bar），入口不会丢。 */
.cat-grid {
  display: grid; gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cat-group { margin: 0; }
/* 只在本页收起二级分类；分类页里的筛选条不在 .cat-group 内，不受影响 */
.cat-group .filter-bar { display: none; }

/* 一级分类整块都是按钮：<a> 自己撑满格子（原来热区只有分类名那几个字，
   四周全是死空白，手机上点了没反应）。竖排两行——分类名、影片数（小字），
   必须给显式高度/内边距 + :active 反馈。 */
.cat-row {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 1px;
  min-height: 54px; padding: 7px 10px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--text-strong);
  font-size: 13.5px; line-height: 1.35;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;                 /* 去掉移动端 300ms 点击延迟，反馈更跟手 */
  transition: background .15s ease, border-color .15s ease, transform .08s ease;
}
/* 分类名：块级 + 省略号。
   ★ 不能用 display:flex 装竖条——竖条会成为 flex 项、名字文本成为「匿名 flex 项」，
     而 text-overflow 对匿名 flex 项不生效，超长分类名（实测 14 字符那种）会顶出卡片。
     改成块级 + 绝对定位竖条，省略号才真正生效。 */
.cat-row .cat-name {
  display: block; width: 100%; padding-left: 9px; position: relative;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-weight: 600;
}
.cat-row .cat-name::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 12px;
  background: var(--brand); border-radius: 2px;
}
/* 影片数：小字、紧跟名字（margin 与左侧色条同宽，视觉上对齐成一列） */
.cat-row .cat-count { margin-left: 9px; font-size: 10.5px; line-height: 1.2; color: var(--muted); }
.cat-row:hover, .cat-row:active { background: var(--brand-soft); border-color: var(--brand); }
.cat-row:active { transform: scale(.99); }
.cat-row:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* 宽屏（内容区 1220px）不硬撑三列，否则每列 400px 又宽又空：按宽度自动铺 6~7 列 */
@media (min-width: 721px) {
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
}

/* 视频卡片网格
   ★ 全站所有「影片列表」共用这一个类：首页各模块 / 分类页 / 搜索 / 收藏 / 历史 /
     专题 / 演员页 / 播放页相关推荐。改密度只需要改这里。
   ★ 桌面端保持宽松（150px 起），手机端在文件下方 @media (max-width:720px) 里收紧。 */
.vod-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.vod-card { position: relative; }
.vod-card .pic {
  /* 必须是块级：<a> 默认 display:inline，而 aspect-ratio 对行内盒不生效，
     会导致封面区宽高塌成 0、占位文字溢出压住标题（无封面时尤其明显）。 */
  display: block;
  position: relative; aspect-ratio: 2 / 3; overflow: hidden;
  border-radius: var(--radius); background: var(--panel);
}
.vod-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.vod-card:hover .pic img { transform: scale(1.05); }
.vod-card .pic .ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--ph-text); font-size: 12px;
}
.vod-card .tag {
  position: absolute; left: 6px; top: 6px; padding: 1px 6px; border-radius: 4px;
  font-size: 11px; background: rgba(0, 0, 0, .6); color: #fff;
}
.vod-card .tag-vip { background: var(--gold); color: #3b2600; font-weight: 600; }
.vod-card .score {
  position: absolute; right: 6px; top: 6px; padding: 1px 6px; border-radius: 4px;
  font-size: 11px; background: rgba(0, 0, 0, .6); color: var(--gold);
}
.vod-card .title {
  margin-top: 7px; font-size: 13px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vod-card .title:hover { color: var(--brand); }
.vod-card .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ===== 手机端卡片密度与封面比例（M27 → M28 → M34 → M35）=====
 *
 * 第一次（M27）压到 4 列 → 站主反馈「4 个太挤了，横排 3 个就好」，故改为 3 列。
 *
 * ★ 最小列宽必须用「实测可用宽度」反推，不能用「屏宽 − 想当然的留白」——
 *   曾经按「内容宽 = 屏宽 − 32」算成 100px，结果 360px 真机上只有 2 列：
 *   实测 360px 屏 → .vod-grid 自身可用宽只有 **313px**（容器左右合计留白 47px，不是 32px）。
 *   100px 需要 100×3+10×2 = 320 > 313 ✘ → 退回 2 列。
 *   改 96px 后：96×3+10×2 = 308 ≤ 313 ✔（360/393/430 三档真机实测均 3 列）
 *   同时保证 4 列仍放不下：96×4+10×3 = 414 > 313 ✘ → 不会被挤回 4 列。
 *   auto-fill 自适应，列宽不足时自动减列，**绝不会挤出屏幕**。
 *
 * ★ 只压密度、不改结构：仍带标题与分类；全站共用 .vod-grid 一处生效。
 * ★ 封面比例：桌面端（>720px）仍是 2/3 竖版海报；**手机端 M35 起改 4/3 横版**（见下方 @media）。
 * ★ 桌面端（>720px）完全不受影响（仍 150px 起，1220 容器下 7 列）。
 */
@media (max-width: 720px) {
  .vod-grid {
    gap: 10px;
    /* ★ M34：横排 3 个 → 2 个（站主「再减一个，2 个就行」）。
       列数只能由「实测可用宽度」反推（铁律 55），不能用注释里的估计值：
         · 360px 屏 .vod-grid 实测可用宽 313px → 126×2+10 = 262 ≤ 313 ✔ 两列
         · 同屏三列需 126×3+20 = 398 > 313 ✔ 不会被挤回三列
         · 320px 小屏可用宽约 273px → 262 ≤ 273 ✔ 仍是两列
           （若取 150px：150×2+10 = 310 > 273 → 小屏会掉成一列，故取 126） */
    grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  }
  /* 手机端封面比例。只改手机端，桌面端（>720px）仍是 2/3 竖版海报。
     M35：2/3 竖版 → 4/3 横版（竖高正好减半，站主要求「竖向太大了，要一半就好」）。
     M76：4/3 → 7/6（站主「显示图片再调高一点，现在看起来太扁了」→ 选 B 折中档）。
     M79：7/6 → **5/4**（站主看过线上实际效果后改选 A 档）。
          393px 屏封面高 150 → **140px**，左右裁切从 22~28% 收到 17~23%
          —— 拿回的正是上一档多裁掉的那 5 个百分点，画面更完整。
     为什么往上调高一定要裁左右：生产 88,459 张封面抽样 = 98.7% 横版、中位宽高比 1.50，
     框一调高只能裁两边。实测同一张带宣传字的封面：
       5/4、7/6 → 字幕完整；1/1 → 字幕右侧被切；4/5 → 只剩中间一半。
     改这一处即可；数字来自 393px 屏单卡宽 176px 的实测。 */
  .vod-card .pic { aspect-ratio: 5 / 4; border-radius: 8px; box-shadow: 0 3px 10px rgba(0, 0, 0, .18); }
  .vod-card .title { margin-top: 4px; font-size: 13px; line-height: 1.35; }
  .vod-card .meta { font-size: 11px; line-height: 1.3; margin-top: 1px; }
  .vod-card .tag { left: 4px; top: 4px; padding: 0 4px; font-size: 10px; }
  .vod-card .score { right: 4px; top: 4px; padding: 0 4px; font-size: 10px; }
  .vod-card .pic .ph { font-size: 10px; }
  .vod-card .pic .play { width: 30px; height: 30px; font-size: 13px; }
}

/* 首页横幅 */
.banner {
  position: relative; height: 260px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(120deg, var(--panel), var(--bg));
}
.banner img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.banner-body {
  position: absolute; left: 26px; bottom: 24px; right: 26px;
}
.banner-body h3 { margin: 0 0 6px; font-size: 22px; color: #fff; }
.banner-body p {
  margin: 0 0 12px; color: #cbd2dd; font-size: 13px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 详情页 */
.detail-top { display: flex; gap: 22px; flex-wrap: wrap; }
.detail-pic { width: 220px; flex: 0 0 220px; }
.detail-pic img { width: 100%; border-radius: var(--radius); background: var(--panel); }
.detail-pic .ph {
  aspect-ratio: 2 / 3; border-radius: var(--radius); background: var(--panel);
  display: flex; align-items: center; justify-content: center; color: var(--ph-text);
}
.detail-info { flex: 1; min-width: 260px; }
.detail-info h1 { margin: 0 0 10px; font-size: 22px; }
.detail-meta { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.detail-meta span { margin-right: 14px; }
.detail-desc {
  font-size: 13px; color: var(--text-soft); line-height: 1.8;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px;
  /* ★ M72：简介在模板里走 `| striptags`（纯文本，标签全剥），所以多行简介里的
     换行符原本被 HTML 折叠成一个空格 —— 采集来的三四段简介挤成一整坨。
     这里保留换行、折叠多余空格即可；不用 pre-wrap 是为了不让首行缩进变成大段空白。 */
  white-space: pre-line;
}
.player-box {
  margin-top: 18px; background: #000; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line);
}
.player-box video { width: 100%; aspect-ratio: 16 / 9; background: #000; display: block; }
.player-tip {
  padding: 40px; text-align: center; color: var(--muted); font-size: 13px;
  /* 必须在 .autoplay-mask（absolute, z-index 7）之上，否则提示字被半透明层压住、看着发灰 */
  position: relative; z-index: 8;
}

/* ★ M56 播放诊断面板：只在「确实放不出来」时由 JS 显示。
   定位是「给站主取证」而不是给普通观众看的说明，所以默认折叠成一行小字，
   展开后是可全选的纯文本（微信里长按即可复制）。
   注意：必须在 .player-box 内部（影院模式/全屏下只显示其子节点）。 */
.player-diag { padding: 0 16px 16px; text-align: center; position: relative; z-index: 8; }
.player-diag .pd-toggle {
  display: inline-block; padding: 5px 12px; border-radius: 14px;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  font-size: 12px; cursor: pointer; line-height: 1.4;
}
.player-diag .pd-toggle::before { content: "▸ "; }
.player-diag .pd-toggle:hover { color: var(--text-strong); border-color: var(--brand); }
.player-diag .pd-body { margin-top: 10px; }
.player-diag .pd-text {
  margin: 0 0 10px; padding: 10px 12px; text-align: left;
  background: rgba(127,127,127,.10); border: 1px solid var(--line);
  border-radius: 8px; color: var(--text); font-size: 11px; line-height: 1.6;
  white-space: pre-wrap; word-break: break-all;
  /* 手机上把按钮挤出首屏 = 等于没有按钮：压低高度（约 8 行），先看到「复制」再说 */
  max-height: 150px; overflow: auto; -webkit-overflow-scrolling: touch;
  user-select: text; -webkit-user-select: text;
}
.player-diag .pd-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.player-diag .pd-btn {
  padding: 7px 16px; border-radius: 16px; font-size: 13px; cursor: pointer;
  border: 1px solid var(--brand); background: var(--brand-soft); color: var(--text-strong);
}
.player-diag .pd-btn#pdReload { border-color: var(--line); background: transparent; color: var(--muted); }

.src-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 10px; }
.src-tabs button {
  padding: 6px 14px; border-radius: 18px; border: 1px solid var(--line);
  background: var(--panel); color: var(--muted); cursor: pointer; font-size: 13px;
}
.src-tabs button.on { background: var(--brand-soft); border-color: var(--brand); color: var(--text-strong); }
.ep-list { display: flex; gap: 8px; flex-wrap: wrap; }
.ep-list button {
  min-width: 62px; padding: 7px 10px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--bg-soft); color: var(--text); cursor: pointer; font-size: 13px;
}
.ep-list button.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

/* 播放页 */
/* ★ M34 无边框播放（站主：「不点击全屏时四周还有空位，能不能放大」）。
   原状：.site-main 限宽 1220 + 左右内边距 16，.play-wrap 再限宽 980 居中
        → 1920 屏上播放器只有 980 宽，左右各空 120px，外面还有一圈。
   改法：外层放开限宽与内边距 → 播放器（.player-box）自然通栏到视口两边；
        其余内容（标题/按钮/剧集/推荐）交给 .play-body 限宽居中，避免宽屏上被拉长。
   ★ 不用 width:100vw（含滚动条宽度，会多出约 15px 横向滚动条）；
     这里靠父容器满宽实现，零溢出。
   ★ :has() 不被支持时自动退化为「与站点容器同宽」（1220，仍比原来 980 宽 24%），不会坏。 */
.play-wrap { max-width: none; margin: 0; }
.play-body { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.site-main:has(> .play-wrap) { max-width: none; padding-left: 0; padding-right: 0; }
.site-main:has(> .play-wrap) .player-box {
  margin-top: 0; border-radius: 0; border-left: 0; border-right: 0;
}
.play-head { margin-top: 18px; }
.play-head h1 { margin: 0 0 8px; font-size: 20px; }
.player-box { position: relative; }
.btn-play {
  display: inline-block; padding: 8px 20px; border-radius: 20px;
  background: var(--brand); color: var(--on-brand); font-size: 14px;
}
.trial-bar {
  margin-top: 12px; padding: 10px 14px; border-radius: var(--radius);
  background: rgba(255, 176, 32, .12); border: 1px solid rgba(255, 176, 32, .35);
  color: var(--gold); font-size: 13px;
}
.trial-note { margin-top: 8px; font-size: 12px; color: var(--muted); }
.pause-ad {
  position: absolute; inset: 0; display: none;
  align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .72); z-index: 5;
}
.pause-ad-inner { max-width: 78%; text-align: center; color: #fff; font-size: 14px; }

/* ★ M36 自动连播倒计时浮层。
   与 .pause-ad 同款「盖在播放器上的深色浮层」：底下的画面是黑的，
   所以这里用深色底 + 白字是**全局一致**的观感，与站点明/暗主题无关。
   结构必须在 .player-box 内部，否则影院模式下会被一起隐藏（同 .fs-exit）。
   按钮热区 ≥ 44px（铁律 37：可点元素要有足够大的点击区与按压反馈）。 */
.next-eps {
  position: absolute; inset: 0; display: none; z-index: 6;
  flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: rgba(0, 0, 0, .76); color: #fff; text-align: center; padding: 16px;
}
.next-eps .ne-tip { font-size: 12px; color: rgba(255, 255, 255, .7); }
.next-eps .ne-title { font-size: 17px; font-weight: 600; max-width: 88%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-eps .ne-count { font-size: 13px; color: rgba(255, 255, 255, .85); }
.next-eps .ne-count b { color: var(--brand); font-size: 16px; }
.next-eps .ne-acts { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; justify-content: center; }
.next-eps .ne-btn {
  min-height: 44px; padding: 0 22px; border-radius: 22px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .38);
  color: #fff; font-size: 14px; touch-action: manipulation;
}
.next-eps .ne-btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.next-eps .ne-btn:hover { border-color: #fff; }
.next-eps .ne-btn:active { transform: scale(.97); }
.src-tabs { margin-top: 18px; }
.ep-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.ep-list a {
  min-width: 62px; padding: 7px 10px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--bg-soft); color: var(--text); font-size: 13px; text-align: center;
}
.ep-list a:hover { border-color: var(--brand); color: var(--brand); }
.ep-list a.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

/* 筛选条 */
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px; margin-bottom: 18px;
}
.filter-bar a {
  padding: 5px 12px; border-radius: 16px; font-size: 13px; color: var(--muted);
  border: 1px solid transparent;
}
.filter-bar a:hover { color: var(--text-strong); }
.filter-bar a.on { background: var(--brand-soft); border-color: var(--brand); color: var(--text-strong); }

/* 分页 */
.pager { display: flex; gap: 6px; align-items: center; justify-content: center; padding: 22px 0 0; flex-wrap: wrap; }
.pager a, .pager span {
  padding: 6px 12px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--bg-soft); font-size: 13px;
}
.pager .current { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

/* 空态 */
.empty {
  padding: 46px 16px; text-align: center; color: var(--muted); font-size: 13px;
  background: var(--bg-soft); border: 1px dashed var(--line); border-radius: var(--radius);
}

@media (max-width: 720px) {
  /* 手机端：第一行 = logo + 搜索框（并行），第二行 = 分类导航整行 */
  .site-header-inner { flex-wrap: wrap; gap: 8px 10px; }
  .site-search { flex: 1 1 auto; margin-left: 0; min-width: 0; }
  .site-search input { flex: 1 1 auto; width: auto; min-width: 0; }
  .site-nav { margin-left: 0; flex: 1 1 100%; gap: 14px; }
  .detail-pic { width: 130px; flex: 0 0 130px; }
  .banner { height: 190px; }
}

/* ===== 会员域（M4）：登录/注册/用户中心 =====
   注：顶栏「充值 / 用户名 / 登录 / 注册」入口已移除（腾出视觉空间，移动端底部菜单「我的」承担该入口）。 */

.auth-wrap { max-width: 420px; margin: 40px auto; }
.auth-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px;
}
.auth-card h1 { margin: 0 0 18px; font-size: 20px; }
.auth-msg { padding: 10px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.auth-msg.err { background: rgba(255, 77, 79, .12); color: #ff8f8a; border: 1px solid rgba(255, 77, 79, .3); }
.auth-msg.ok { background: rgba(64, 200, 130, .1); color: #57d29a; border: 1px solid rgba(64, 200, 130, .3); }
.auth-form label { display: block; margin-bottom: 14px; }
.auth-form label span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.auth-form label .req { color: var(--brand); font-style: normal; }
.auth-form input {
  width: 100%; padding: 10px 12px; border-radius: 8px; font-size: 14px;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--text);
}
.auth-form input:focus { outline: none; border-color: var(--brand); }
.auth-form.compact { margin-top: 6px; }
.auth-btn {
  width: 100%; padding: 11px; border: none; border-radius: 8px; cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--on-brand); font-size: 15px; font-weight: 600;
}
.auth-btn:hover { filter: brightness(1.08); }
.auth-foot { margin-top: 16px; font-size: 13px; color: var(--muted); text-align: center; }
.auth-foot a { color: var(--brand); }

/* 登录页页脚的两级入口（只作用于 .auth-foot-cta / .auth-foot-sub，勿改上面通用的 .auth-foot）：
   「注册」做成次要按钮 —— 比文字链明显、比「登录」主按钮小一档；
   「忘记密码」保持 12px 小字，不跟着放大，否则页脚两个入口会抢走主按钮的注意力。
   注：`.auth-foot` 被 登录/注册/找回密码/支付结果/pay-redirect 5 处共用，改它等于改全站。 */
.auth-foot-cta { margin-top: 18px; }
.auth-foot-label { display: block; margin-bottom: 9px; }
.auth-reg-btn {
  display: inline-block; min-width: 172px; padding: 9px 0;
  border: 1px solid var(--brand); border-radius: 8px;
  background: transparent; color: var(--brand);
  font-size: 14px; font-weight: 600; line-height: 1.25;
  text-align: center; text-decoration: none; transition: background .15s ease;
}
.auth-reg-btn:hover,
.auth-reg-btn:focus-visible { background: var(--bg-soft); }
/* 「忘记密码」不设 font-size：继承 .auth-foot 的 13px，与改前完全一致（站主只要求注册按钮变大） */
.auth-foot-sub { margin-top: 10px; }
.auth-tip { font-size: 12px; color: var(--gold); margin: -4px 0 12px; }

.user-wrap { max-width: 640px; margin: 26px auto; display: flex; flex-direction: column; gap: 18px; }
.user-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
}
.user-h2 { margin: 0 0 12px; font-size: 15px; }
.user-head { display: flex; gap: 16px; align-items: center; }
.user-avatar {
  width: 58px; height: 58px; border-radius: 50%; flex: 0 0 58px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; color: var(--on-brand);
}
.user-name { font-size: 17px; font-weight: 600; }
.user-name .vip-badge {
  display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700;
  background: linear-gradient(135deg, #ffb020, #ff8a00); color: #3b2600;
  padding: 2px 8px; border-radius: 10px; vertical-align: 2px;
}
.user-name .vip-badge.off { background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); }
.user-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.user-stats {
  display: flex; gap: 10px; margin: 18px 0 4px;
  border-top: 1px solid var(--line); padding-top: 16px;
}
.user-stats a, .user-stats div {
  flex: 1; text-align: center; padding: 10px 6px; border-radius: 8px;
  background: var(--bg-soft); border: 1px solid var(--line);
}
.user-stats a:hover { border-color: var(--brand); }
.user-stats b { display: block; font-size: 18px; }
.user-stats span { font-size: 12px; color: var(--muted); }
.user-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.ubtn {
  display: inline-block; padding: 8px 18px; border-radius: 8px; cursor: pointer;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--text); font-size: 13px;
}
.ubtn:hover { border-color: var(--brand); color: var(--text-strong); }
.ubtn.gold { background: linear-gradient(135deg, #ffb020, #ff8a00); border-color: transparent; color: #3b2600; font-weight: 600; }
.ubtn.danger { color: #ff8f8a; }
.ubtn.small { padding: 5px 12px; font-size: 12px; }
.invite-line { display: flex; align-items: center; gap: 12px; }
.invite-line code {
  font-size: 20px; letter-spacing: 4px; color: var(--gold);
  background: var(--bg-soft); border: 1px dashed var(--line); border-radius: 8px; padding: 8px 18px;
}

/* 收藏 / 历史列表 */
.fav-cell { position: relative; }
.fav-del { margin-top: 6px; text-align: center; }
.fav-del .link-danger {
  background: none; border: none; color: var(--muted); font-size: 12px; cursor: pointer; padding: 2px 6px;
}
.fav-del .link-danger:hover { color: #ff8f8a; }
.watch-day { margin-top: 6px; text-align: center; font-size: 12px; color: var(--muted); }

/* 详情页收藏按钮 —— 横排一行（form 是块级元素，不设 inline-flex 会各占一行） */
.detail-actions { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.detail-actions > form { display: inline-flex; margin: 0; }
.fav-btn {
  padding: 9px 24px; border-radius: 20px; cursor: pointer; font-size: 14px; white-space: nowrap;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--text);
}
.fav-btn:hover { border-color: var(--brand); }
.fav-btn.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }

/* 播放页「查看详情页 / 更多信息」入口 */
.detail-more { margin-top: 14px; }
.btn-lg { padding: 11px 26px; border-radius: 10px; font-size: 15px; font-weight: 600; }

@media (max-width: 720px) {
  .user-stats { flex-wrap: wrap; }
  .user-stats a, .user-stats div { flex: 1 1 40%; }
  /* 互动按钮：手机上一行三等分，铺满整行、不换行 */
  .detail-actions { gap: 8px; }
  .detail-actions > form { flex: 1 1 30%; min-width: 0; }
  .detail-actions > form .fav-btn { width: 100%; padding: 10px 6px; }
  .detail-actions > .fav-btn { flex: 1 1 30%; min-width: 0; padding: 10px 6px; }
  .detail-more .btn { width: 100%; }
}

/* ===== 支付域（M5）：充值/流水/提现 ===== */
.pay-wrap { max-width: 720px; margin: 30px auto; }
.wallet-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; flex-wrap: wrap;
}
.wallet-bar span { font-size: 12px; color: var(--muted); display: block; }
.wallet-bar b { font-size: 22px; color: var(--gold); }
.wallet-frozen { font-size: 12px; color: var(--muted); }
.wallet-links { display: flex; gap: 12px; font-size: 13px; }
.wallet-links a { color: var(--brand); }

.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pkg-item {
  position: relative; cursor: pointer; text-align: center;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 10px; padding: 16px 12px; transition: all .15s;
}
.pkg-item:hover { border-color: var(--brand); }
.pkg-item input { position: absolute; opacity: 0; pointer-events: none; }
.pkg-item:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.pkg-name { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.pkg-price { font-size: 24px; font-weight: 700; color: var(--brand); }
.pkg-coins { font-size: 13px; color: var(--gold); margin-top: 4px; }
.pkg-gift { font-size: 12px; color: #2ecc71; margin-top: 2px; }
.pkg-vip { font-size: 12px; color: #ffb020; margin-top: 2px; }
.form-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.form-label { font-size: 13px; color: var(--muted); }
.pay-types { display: flex; gap: 12px; flex-wrap: wrap; }
/* 支付方式：原来只有 13px 文字 + 原生小圆点，太小不好点。改成卡片式按钮。 */
.pay-type {
  position: relative; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; min-width: 132px;
  border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--bg-soft); color: var(--text);
  font-size: 15px; font-weight: 600;
  transition: border-color .15s, background .15s, box-shadow .15s, transform .1s;
}
.pay-type:hover { border-color: var(--brand); }
.pay-type:active { transform: scale(.985); }
.pay-type.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px var(--brand-soft); }
/* 原生 radio 视觉隐藏但保留键盘可达 */
.pay-type input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.pay-type .pay-ico {
  width: 28px; height: 28px; flex: 0 0 28px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: #fff;
  background: var(--muted);
}
.pay-type .pay-ico.alipay { background: #1677ff; }
.pay-type .pay-ico.wxpay { background: #07c160; }
.pay-type .pay-ico.qqpay { background: #12b7f5; }
.pay-type .pay-name { white-space: nowrap; }
@media (max-width: 480px) {
  .pay-type { flex: 1 1 calc(50% - 6px); min-width: 0; justify-content: center; padding: 12px 10px; }
}

/* 通用键值表（充值结果/流水/提现） */
.kv-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.kv-table th, .kv-table td {
  padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle;
}
.kv-table th { color: var(--muted); font-weight: 500; width: 110px; white-space: nowrap; }
.kv-table thead th { color: var(--muted); font-weight: 600; font-size: 12px; background: var(--bg-soft); }
.kv-table tbody tr:hover td { background: var(--bg-soft); }
.kv-table td .hint { display: inline; }

.auth-form select {
  width: 100%; padding: 10px 12px; border-radius: 8px; font-size: 14px;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--text);
}
.auth-form select:focus { outline: none; border-color: var(--brand); }

@media (max-width: 640px) {
  .kv-table th { width: 84px; }
  .form-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ============ M8 站点域 ============ */
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 8px; font-size: 13px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--brand); }

.footer-ad { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.footer-ad-item { background: var(--bg-soft); border: 1px dashed var(--line); border-radius: 10px; padding: 12px; text-align: center; font-size: 13px; }
.footer-ad-item img { max-width: 100%; border-radius: 6px; }

.static-page { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.static-page h1 { margin: 0 0 18px; font-size: 22px; }
/* ============ 富文本正文（M72） ============
   静态页 .static-body / 文章 .news-content / 公告 .notice-body 三处共用一套标签样式。
   ★ 改前只有 .static-body 有样式，.news-content 一条规则都没有 —— 后台往文章里贴的
     h2/p/ul 全是浏览器默认样式（大屏上行宽、字号、段距全失控）。
   改这里等于同时改三处，别在别处再写一份（否则三处迟早漂移）。
   不用 :is()/:where() 合并，是为了兼容 UC/QQ 极速模式的老内核（M56 踩过）。 */
.static-body, .news-content, .notice-body { font-size: 14px; line-height: 1.9; color: var(--text); }
.static-body h2, .news-content h2, .notice-body h2 { font-size: 17px; margin: 22px 0 10px; }
.static-body h3, .news-content h3, .notice-body h3 { font-size: 15px; margin: 18px 0 8px; }
.static-body h4, .news-content h4, .notice-body h4 { font-size: 14px; margin: 16px 0 6px; }
.static-body p, .news-content p, .notice-body p { margin: 0 0 12px; }
.static-body ul, .static-body ol,
.news-content ul, .news-content ol,
.notice-body ul, .notice-body ol { padding-left: 22px; margin: 0 0 12px; }
.static-body li, .news-content li, .notice-body li { margin: 4px 0; }
.static-body a, .news-content a, .notice-body a { color: var(--brand); }
.static-body img, .news-content img, .notice-body img { max-width: 100%; height: auto; border-radius: 6px; }
.static-body table, .news-content table, .notice-body table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.static-body th, .static-body td,
.news-content th, .news-content td,
.notice-body th, .notice-body td { border: 1px solid var(--line); padding: 8px 10px; font-size: 13px; }
.static-body blockquote, .news-content blockquote, .notice-body blockquote {
  margin: 14px 0; padding: 8px 14px; border-left: 3px solid var(--brand);
  background: var(--bg-soft); border-radius: 0 8px 8px 0; color: var(--text-soft);
}
.static-body hr, .news-content hr, .notice-body hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.static-body code, .news-content code, .notice-body code {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 4px;
  padding: 1px 5px; font-size: 12px; font-family: ui-monospace, Menlo, Consolas, monospace;
}
.static-body pre, .news-content pre, .notice-body pre {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; overflow-x: auto; margin: 0 0 12px;
}
.static-body pre code, .news-content pre code, .notice-body pre code {
  border: 0; background: transparent; padding: 0;
}
.static-body figure, .news-content figure, .notice-body figure { margin: 14px 0; }
.static-body figcaption, .news-content figcaption, .notice-body figcaption {
  font-size: 12px; color: var(--muted); text-align: center; margin-top: 6px;
}

/* ============ 内容块（M72）：后台编辑器插入的语义化块 ============
   ★ 为什么用 class 而不是让站长手调颜色：本站有 21 套配色（暗 16 / 亮 5），
     写死的 #ff0000 在纯黑底上发闷、在亮底上刺眼；class 跟着当前配色自动变。
   命名前缀 c- 是「content」的意思，别与 .c- 开头的现有类冲突（现网无此前缀）。 */
.c-box { margin: 0 0 12px; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-soft); }
.c-box.c-tip { border-left: 3px solid var(--brand); }
.c-box.c-warn { border-left: 3px solid var(--danger, #d92d20); background: var(--danger-soft, rgba(217, 45, 32, .08)); }
.c-box.c-ok { border-left: 3px solid var(--green, #10b981); background: var(--green-soft, rgba(16, 185, 129, .08)); }
.c-box > :last-child { margin-bottom: 0; }
.c-cols { display: flex; gap: 14px; margin: 0 0 12px; }
.c-cols > div { flex: 1 1 0; min-width: 0; }
@media (max-width: 640px) { .c-cols { display: block; } .c-cols > div + div { margin-top: 12px; } }
.c-btn {
  display: inline-block; margin: 0 6px 12px 0; padding: 9px 18px; border-radius: 999px;
  background: var(--brand); color: var(--on-brand, #fff); text-decoration: none; font-size: 13px; font-weight: 600;
}
.c-btn:hover { filter: brightness(1.08); }

.notice-mask {
  position: fixed; inset: 0; background: var(--mask); z-index: 90;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.notice-box {
  background: var(--panel); color: var(--text); border: 1px solid var(--line);
  border-radius: 12px; width: 100%; max-width: 460px; max-height: 76vh;
  overflow: auto; box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
.notice-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.notice-head button {
  border: 0; background: transparent; font-size: 22px; line-height: 1;
  cursor: pointer; color: var(--muted); padding: 0 4px;
}
.notice-head button:hover { color: var(--text); }
.notice-body { padding: 18px; font-size: 14px; line-height: 1.85; }
.notice-body p { margin: 0 0 10px; }
.notice-body img { max-width: 100%; }

@media (max-width: 640px) {
  .static-page { padding: 18px; }
}

/* ==================== 首页轮播图（前端装修） ==================== */
/* 只用 transform 位移 + overflow:hidden，不产生横向滚动条 */
.hero {
  position: relative; height: 260px; border-radius: var(--radius);
  overflow: hidden; margin-bottom: 24px;
  background: linear-gradient(120deg, var(--panel), var(--bg));
}
.hero-track {
  display: flex; height: 100%;
  transition: transform .45s ease; will-change: transform;
}
.hero-slide { position: relative; flex: 0 0 100%; height: 100%; }
.hero-link { display: block; height: 100%; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-title {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 22px 14px;
  font-size: 16px; font-weight: 600; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .72));
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .42); color: #fff; font-size: 20px; line-height: 1;
  cursor: pointer; opacity: 0; transition: opacity .2s, background .2s;
}
.hero:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: var(--brand); }
.hero-prev { left: 12px; }
.hero-next { right: 12px; }
.hero-dots {
  position: absolute; left: 0; right: 0; bottom: 10px;
  display: flex; gap: 6px; justify-content: center;
}
.hero-dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .45); cursor: pointer; transition: all .2s;
}
.hero-dot.on { width: 18px; border-radius: 4px; background: var(--brand); }

@media (max-width: 720px) {
  .hero { height: 170px; }
  .hero-title { font-size: 14px; padding: 26px 14px 12px; }
  /* 触屏没有 hover，箭头常显并缩小，避免遮挡图片 */
  .hero-arrow { opacity: 1; width: 28px; height: 28px; font-size: 17px; }
  .hero-prev { left: 6px; }
  .hero-next { right: 6px; }
}

/* ===== 页面小标题条（专题总览 / 排行榜 / 资讯 等列表页共用）===== */
.page-banner { padding: 14px 0 12px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.page-banner h1 { margin: 0 0 4px; font-size: 22px; color: var(--text-strong); letter-spacing: .5px; }
.page-banner .hint { margin: 0; }

/* ===== 专题（M14）=====
   注意：这里所有尺寸都要**显式**给出。
   `img { display: block }` 之外全站没有 max-width 兜底，
   而 object-fit 只有在 img 自身拿到 width/height 时才生效 ——
   少写一个 height，封面就会按原图撑满第一屏（曾经就是这样）。 */
.topic-cover {
  width: 100%;
  height: 200px;          /* ★ 必须封顶，否则海报原图直接占满首屏 */
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.topic-hero { margin-bottom: 20px; }
.topic-hero-body h1 { margin: 10px 0 4px; font-size: 20px; color: var(--text-strong); }
.topic-hero-body p { margin: 0 0 6px; color: var(--text-soft); }

.topic-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.topic-card {
  display: flex; gap: 12px; align-items: center;
  padding: 10px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s;
}
.topic-card:hover { border-color: var(--brand); }
.topic-card-pic {
  flex: 0 0 88px; width: 88px; height: 118px;
  border-radius: 8px; overflow: hidden; background: var(--bg-soft);
}
.topic-card-pic img { width: 100%; height: 100%; object-fit: cover; }
.topic-card-pic .ph {
  display: flex; align-items: center; justify-content: center;
  height: 100%; color: var(--ph-text); font-size: 12px;
}
.topic-card-body { min-width: 0; }
.topic-card-body h3 { margin: 0 0 4px; font-size: 15px; color: var(--text-strong); }
.topic-card-body .hint { margin: 0 0 6px; font-size: 12px; }
.topic-count { font-size: 12px; color: var(--brand); }

@media (min-width: 860px) {
  .topic-hero { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: center; }
  .topic-cover { height: 340px; }
  .topic-hero-body h1 { margin-top: 0; font-size: 24px; }
}
@media (max-width: 720px) {
  .topic-grid { grid-template-columns: 1fr; }
  .topic-card-pic { flex: 0 0 76px; width: 76px; height: 102px; }
}


/* ===== 移动端底部菜单栏（TabBar，仅 ≤720px 可见） ===== */
/* 桌面端不显示：避免与顶部导航重复。DOM 始终存在，由这里控制可见性。 */
.mobile-tabbar { display: none; }

@media (max-width: 720px) {
  .mobile-tabbar {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--tabbar-bg);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(10px);
    /* iPhone 全面屏底部横条留白，非全面屏该值为 0 */
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-tabbar .tab {
    flex: 1 1 0; min-width: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; padding: 7px 0 6px;
    color: var(--muted); font-size: 11px; line-height: 1.1;
    -webkit-tap-highlight-color: transparent;
    /* 站内信未读红点要绝对定位到这个格子里 */
    position: relative;
  }
  .mobile-tabbar .tab svg { width: 22px; height: 22px; display: block; }
  .mobile-tabbar .tab-label { white-space: nowrap; }
  .mobile-tabbar .tab.on { color: var(--brand); }
  /* 未读红点（站内信）：挂在小图标右上角，不挤压文字 */
  .mobile-tabbar .tab-dot {
    position: absolute; top: 4px; left: 50%; margin-left: 6px;
    width: 8px; height: 8px; border-radius: 50%;
    background: #ff3b30; box-shadow: 0 0 0 2px var(--tabbar-bg);
  }

  /* 底部栏是 fixed，会盖住页脚最后一行 → 给内容留出等高避让（含安全区） */
  .front-body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
}

/* ===== 前台通用按钮（detail 页评论区等处使用；前台原先没有 .btn）===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font-size: 13px; cursor: pointer;
  line-height: 1.2; transition: background .15s, border-color .15s;
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn-primary:hover { filter: brightness(1.08); color: var(--on-brand); }

/* ===== 评论（M12）===== */
.comment-section .cmt-count { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 4px; }
.cmt-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.cmt-form textarea {
  width: 100%; resize: vertical; min-height: 74px; padding: 10px 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); font: inherit;
}
.cmt-form textarea:focus { outline: none; border-color: var(--brand); }
.cmt-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cmt-form-foot .hint { font-size: 12px; color: var(--muted); }
.cmt-guest { flex-direction: row; align-items: center; justify-content: space-between;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.cmt-list { display: flex; flex-direction: column; gap: 4px; }
.cmt-item { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cmt-item:last-child { border-bottom: none; }
.cmt-avatar {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.cmt-body { flex: 1 1 auto; min-width: 0; }
.cmt-head { display: flex; align-items: baseline; gap: 8px; }
.cmt-head b { font-size: 13px; }
.cmt-head .hint { font-size: 11px; color: var(--muted); }
.cmt-text { margin: 4px 0 6px; word-break: break-word; }
.cmt-ops { display: flex; gap: 14px; }
.cmt-ops button {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--muted); font-size: 12px;
}
.cmt-ops button:hover { color: var(--brand); }
.cmt-like.on { color: var(--brand); }
.cmt-like i { font-style: normal; }
.cmt-replies { margin-top: 8px; padding-left: 14px; border-left: 2px solid var(--line); }
.cmt-sub { padding: 9px 0; }
.cmt-sub:last-child { border-bottom: none; }

/* 继续观看按钮（详情页） */
.btn-resume {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 8px;
  background: var(--gold); color: var(--gold-ink); font-size: 13px; font-weight: 600;
}
.btn-resume:hover { filter: brightness(1.06); }

/* ===== 播放工具栏（P2 倍速/全屏/弹幕开关）===== */
.play-toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 12px; padding: 9px 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.play-toolbar .pt-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.play-toolbar select {
  background: var(--bg-soft); color: var(--text); border: 1px solid var(--line);
  border-radius: 6px; padding: 4px 8px; font-size: 13px;
}
.pt-btn {
  padding: 5px 12px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--bg-soft); color: var(--muted); cursor: pointer; font-size: 13px;
}
.pt-btn:hover { color: var(--text); border-color: var(--brand); }
.pt-btn.on { color: var(--brand); border-color: var(--brand); }
.pt-resume { margin-left: auto; font-size: 12px; color: var(--gold); }

/* 影院模式（横屏的兜底形态）：CSS 撑满视口，不依赖原生 Fullscreen API。
   退出入口 .fs-exit 与提示 .land-tip 都必须放在 .player-box 内部
   （外面会被一起隐藏 → 退不出来 / 提示看不见）。 */
.player-box.theater { position: fixed; inset: 0; z-index: 90; margin: 0; border-radius: 0; }
/* ★ 100vh 在手机上包含地址栏，横竖切换会跳一下；dvh 跟随可视视口。
   旧内核不认 dvh 会保留上一条 100vh 作降级，顺序不能反。
   object-fit:contain 显式写出 —— 竖屏 390×844 下若按 fill 拉伸，人物会变细长。 */
.player-box.theater video {
  height: 100vh; height: 100dvh; aspect-ratio: auto;
  object-fit: contain; background: #000;
}
html.fs-open, html.fs-open body { overflow: hidden; }

/* 横屏按钮只给触屏 / 窄屏：桌面有原生控件全屏键，方向锁在桌面也无意义 */
.pt-mobile-only { display: none; }
@media (max-width: 959px), (hover: none) and (pointer: coarse) {
  .pt-mobile-only { display: inline-block; }
}

/* 横屏兜底提示：绝对定位在播放器内，影院模式下也能看见。
   bottom 用百分比而不是固定值：手机竖屏原生控件在底部约 12%，
   固定 58px 会贴到进度条上，百分比在横竖两态都不会压控件。 */
.land-tip {
  position: absolute; left: 50%; bottom: 22%; z-index: 25;
  transform: translateX(-50%) translateY(6px);
  max-width: 84%; padding: 8px 16px; border-radius: 999px;
  background: rgba(0, 0, 0, .74); color: #fff;
  font-size: 13px; line-height: 1.4; text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.land-tip.on { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .land-tip { transition: none; }
}
.fs-exit {
  display: none; position: absolute; top: 12px; right: 12px; z-index: 20;
  align-items: center; gap: 6px;
  padding: 8px 15px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .38);
  background: rgba(0, 0, 0, .58); color: #fff;
  font-size: 13px; font-weight: 600; cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.fs-exit:hover { background: rgba(0, 0, 0, .78); border-color: #fff; }

/* 试看结束的会员引导弹窗：视口级浮层（fixed），居中卡片。
   放播放器容器内会被 .player-box 的 overflow:hidden 裁掉按钮，故用 fixed。
   z-index 95 > 影院模式 90，全屏状态下也能盖住。不自动跳转，点击按钮或 X/遮罩关闭。 */
.vip-modal {
  position: fixed; inset: 0; z-index: 95;
  display: none; align-items: center; justify-content: center; padding: 16px;
  background: rgba(0, 0, 0, .74);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.vip-card {
  position: relative; width: min(330px, 92%); max-height: 86vh; overflow: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 18px 16px; text-align: center;
  box-shadow: 0 14px 44px rgba(0, 0, 0, .5);
}
.vip-close {
  position: absolute; top: 4px; right: 6px; width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; border-radius: 50%;
  color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer;
}
.vip-close:hover { background: var(--bg-soft); color: var(--text); }
.vip-icon { font-size: 32px; line-height: 1; }
.vip-title { margin: 8px 0 6px; font-size: 17px; color: var(--text-strong); }
.vip-desc { margin: 0 0 16px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.vip-btn {
  display: block; padding: 11px 0; border-radius: 10px; text-decoration: none;
  background: var(--brand); color: var(--on-brand); font-size: 15px; font-weight: 600;
}
.vip-btn:hover { filter: brightness(1.08); }
.vip-later {
  display: block; width: 100%; margin-top: 8px; padding: 7px;
  background: none; border: 0; color: var(--muted); font-size: 13px; cursor: pointer;
}
.vip-later:hover { color: var(--text); }

/* ===== 弹幕层（M15）===== */
.dmk-layer {
  position: absolute; left: 0; right: 0; top: 0; height: 62%;
  overflow: hidden; pointer-events: none; z-index: 5;
}
.dmk {
  position: absolute; white-space: nowrap; font-size: 18px; font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .9); will-change: transform;
}
.dmk-scroll { left: 100%; animation-name: dmk-move; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes dmk-move {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100vw - 100%)); }
}
.dmk-top, .dmk-bottom { left: 50%; transform: translateX(-50%); animation: dmk-fade 4s linear forwards; }
@keyframes dmk-fade {
  0% { opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; }
}
.dmk-send { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.dmk-send input#dmkText {
  flex: 1 1 220px; min-width: 140px; padding: 7px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit;
}
.dmk-send input#dmkText:focus { outline: none; border-color: var(--brand); }
.dmk-send select {
  background: var(--bg-soft); color: var(--text); border: 1px solid var(--line);
  border-radius: 6px; padding: 6px 8px; font-size: 13px;
}
.dmk-color { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); }
.dmk-color input[type=color] { width: 30px; height: 26px; padding: 0; border: 1px solid var(--line); background: none; cursor: pointer; }

/* ===== 继续观看（M13 首页 / 用户中心）===== */
.resume-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.resume-item { display: block; flex: 0 0 132px; width: 132px; color: inherit; text-decoration: none; }
.resume-pic { display: block; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--panel); aspect-ratio: 16 / 10; }
.resume-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.resume-pic .ph { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-size: 12px; }
.resume-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .25); }
.resume-bar i { display: block; height: 100%; background: var(--brand); }
.resume-title { margin-top: 6px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resume-sub { font-size: 11px; color: var(--muted); }

/* ===== 图形验证码（M17）===== */
.cap-row { display: flex; align-items: center; gap: 8px; }
.cap-row > input { flex: 1 1 auto; min-width: 0; }
.cap-box {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  background: var(--panel); cursor: pointer; line-height: 0; user-select: none;
}
.cap-box svg { display: block; }
.cap-box:hover { border-color: var(--brand); }

/* ===== 每日签到（M16）===== */
.signin-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.signin-info { display: flex; flex-direction: column; gap: 2px; }
.ok-text { color: #3ddc97; }
.signin-days { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.signin-days .sd {
  display: inline-block; padding: 3px 8px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--muted); font-size: 12px;
}

/* ===== 演员维度（M20 补做）===== */
.detail-actors { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 8px; }
.detail-actors .da-label { color: var(--muted); font-size: 12px; margin-right: 2px; }
.detail-actors a {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--text); text-decoration: none;
}
.detail-actors a:hover { border-color: var(--brand); color: var(--brand); }
.actor-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.actor-cloud a {
  display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 13px;
  background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none;
}
.actor-cloud a:hover { border-color: var(--brand); color: var(--brand); }
.actor-cloud a b { color: var(--muted); font-weight: 600; font-size: 11px; margin-left: 2px; }

/* ===== 用户评分（M20 补做）===== */
.rate-box { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rate-stars { display: inline-flex; line-height: 1; }
.rate-stars .star {
  background: none; border: 0; padding: 0 1px; cursor: pointer;
  font-size: 19px; color: var(--line); line-height: 1; transition: color .12s, transform .12s;
}
.rate-stars .star:hover { transform: scale(1.15); }
.rate-stars .star.on { color: var(--gold); }
.rate-info { font-size: 12px; color: var(--muted); }

/* ===== 站内信（M21）：会员收件箱 + 详情 =====
   列表项是**整行链接**（`a.msg-item`），热区 = 整行 —— 别再出现
   「只有标题那几个字能点、四周死空白」的老问题（见铁律 37）。 */
.msg-ops {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 12px; font-size: 13px; color: var(--muted);
}
.msg-ops form { display: inline; }
.msg-count { margin-right: auto; }
.msg-count b { color: var(--brand); font-size: 15px; }

.msg-list { display: flex; flex-direction: column; gap: 8px; }
.msg-item {
  display: flex; align-items: center; gap: 10px;
  min-height: 62px; padding: 12px 15px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, background .15s, transform .08s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.msg-item:hover, .msg-item:active { border-color: var(--brand); background: var(--brand-soft); }
.msg-item:active { transform: scale(.995); }
.msg-item:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* 未读：左侧实心圆点 + 标题加粗；已读圆点留位但透明，保证两种行左边缘对齐 */
.msg-dot {
  flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line);
}
.msg-item.unread .msg-dot { background: var(--brand); border-color: var(--brand); }
.msg-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.msg-title {
  font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.msg-item.unread .msg-title { color: var(--text-strong); font-weight: 600; }
.msg-meta { font-size: 12px; color: var(--muted); }
.msg-new {
  flex: 0 0 auto; font-size: 11px; line-height: 1.6; padding: 0 7px; border-radius: 9px;
  background: var(--brand); color: var(--on-brand);
}

/* 详情 */
.msg-detail {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px 22px;
}
.msg-detail-title { margin: 0 0 8px; font-size: 18px; color: var(--text-strong); line-height: 1.45; }
.msg-detail-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.msg-tag {
  display: inline-block; padding: 1px 8px; border-radius: 10px;
  background: var(--brand-soft); color: var(--brand); font-size: 12px;
}
/* 正文是后台富文本，长链接/长词不能撑破移动端布局 */
.msg-detail-body { font-size: 14px; line-height: 1.85; color: var(--text-soft); word-break: break-word; }
.msg-detail-body p { margin: 0 0 10px; }
.msg-detail-body a { color: var(--brand); }
.msg-detail-body img { max-width: 100%; height: auto; }
.msg-detail-ops { display: flex; gap: 10px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.msg-detail-ops form { display: inline; }

/* ==================================================================
   配色方案（site.palette → body.palette-<key>）· 共 21 套
   与布局解耦：这里只覆盖颜色变量。默认色值写在 :root（= orange）。
   新增配色：加一段 body.palette-<key>，并在 site/service.js 的 PALETTES 补一行。
   选择器 body.palette-* 的优先级 (0,1,1) 高于 .theme-dark (0,1,0)，
   因此无论用哪套 layout 都能正确覆盖颜色。

   ★ 三条硬约束（勿破）：
   1) --on-brand 按主色亮度选：亮主色（gold/yellow/cyan/neon/mono…）用深字，
      否则就是「白字压黄底」。21 套已逐套用 WCAG 对比度脚本校验。
   2) 亮底 5 套（light/pink/ice/sky/mint）必须整套覆盖 bg/panel/line/text/
      header-bg/tabbar-bg/gold-ink/ph-text/mask，只改 --brand 会漏出深色块。
   3) 组件里禁止写死十六进制；新配色只加变量，不改布局。
   ================================================================== */
/* 暗色橙红 · 默认 · 醒目不刺眼（暗底） */
body.palette-orange {
  --bg: #0f1115;
  --bg-soft: #171a21;
  --panel: #1b1f27;
  --line: #262b35;
  --text: #e6e9ef;
  --text-strong: #ffffff;
  --text-soft: #b9c0cc;
  --muted: #8b93a3;
  --brand: #ff5c38;
  --brand-2: #ff7d38;
  --brand-soft: rgba(255, 92, 56, .14);
  --on-brand: #ffffff;
  --gold: #ffb020;
  --gold-ink: #1b1f27;
  --gold-soft: rgba(255, 176, 32, .14);
  --danger: #ff6b6b;
  --header-bg: rgba(15, 17, 21, .94);
  --tabbar-bg: rgba(15, 17, 21, .97);
  --ph-text: #4b5563;
  --mask: rgba(15, 23, 42, .55);
  --radius: 10px;
}

/* 深海蓝 · 中性耐看（暗底） */
body.palette-blue {
  --bg: #0f1115;
  --bg-soft: #171a21;
  --panel: #1b1f27;
  --line: #262b35;
  --text: #e6e9ef;
  --text-strong: #ffffff;
  --text-soft: #b9c0cc;
  --muted: #8b93a3;
  --brand: #3b82f6;
  --brand-2: #2563eb;
  --brand-soft: rgba(59, 130, 246, .16);
  --on-brand: #ffffff;
  --gold: #ffb020;
  --gold-ink: #1b1f27;
  --gold-soft: rgba(255, 176, 32, .14);
  --danger: #ff6b6b;
  --header-bg: rgba(15, 17, 21, .94);
  --tabbar-bg: rgba(15, 17, 21, .97);
  --ph-text: #4b5563;
  --mask: rgba(15, 23, 42, .55);
  --radius: 10px;
}

/* 暗夜紫 · 高级感（暗底） */
body.palette-purple {
  --bg: #0f1115;
  --bg-soft: #171a21;
  --panel: #1b1f27;
  --line: #262b35;
  --text: #e6e9ef;
  --text-strong: #ffffff;
  --text-soft: #b9c0cc;
  --muted: #8b93a3;
  --brand: #8b5cf6;
  --brand-2: #7c3aed;
  --brand-soft: rgba(139, 92, 246, .16);
  --on-brand: #ffffff;
  --gold: #ffb020;
  --gold-ink: #1b1f27;
  --gold-soft: rgba(255, 176, 32, .14);
  --danger: #ff6b6b;
  --header-bg: rgba(15, 17, 21, .94);
  --tabbar-bg: rgba(15, 17, 21, .97);
  --ph-text: #4b5563;
  --mask: rgba(15, 23, 42, .55);
  --radius: 10px;
}

/* 墨绿影院 · 护眼（暗底） */
body.palette-green {
  --bg: #0f1115;
  --bg-soft: #171a21;
  --panel: #1b1f27;
  --line: #262b35;
  --text: #e6e9ef;
  --text-strong: #ffffff;
  --text-soft: #b9c0cc;
  --muted: #8b93a3;
  --brand: #10b981;
  --brand-2: #059669;
  --brand-soft: rgba(16, 185, 129, .16);
  --on-brand: #04291f;
  --gold: #ffb020;
  --gold-ink: #1b1f27;
  --gold-soft: rgba(255, 176, 32, .14);
  --danger: #ff6b6b;
  --header-bg: rgba(15, 17, 21, .94);
  --tabbar-bg: rgba(15, 17, 21, .97);
  --ph-text: #4b5563;
  --mask: rgba(15, 23, 42, .55);
  --radius: 10px;
}

/* 黑金质感 · 影视 / 会员风（暗底） */
body.palette-gold {
  --bg: #0f1115;
  --bg-soft: #171a21;
  --panel: #1b1f27;
  --line: #262b35;
  --text: #e6e9ef;
  --text-strong: #ffffff;
  --text-soft: #b9c0cc;
  --muted: #8b93a3;
  --brand: #ffb020;
  --brand-2: #ff8a00;
  --brand-soft: rgba(255, 176, 32, .16);
  --on-brand: #3b2600;
  --gold: #ffb020;
  --gold-ink: #1b1f27;
  --gold-soft: rgba(255, 176, 32, .14);
  --danger: #ff6b6b;
  --header-bg: rgba(15, 17, 21, .94);
  --tabbar-bg: rgba(15, 17, 21, .97);
  --ph-text: #4b5563;
  --mask: rgba(15, 23, 42, .55);
  --radius: 10px;
}

/* 玫红 · 轻盈甜美（暗底） */
body.palette-rose {
  --bg: #0f1115;
  --bg-soft: #171a21;
  --panel: #1b1f27;
  --line: #262b35;
  --text: #e6e9ef;
  --text-strong: #ffffff;
  --text-soft: #b9c0cc;
  --muted: #8b93a3;
  --brand: #f43f5e;
  --brand-2: #e11d48;
  --brand-soft: rgba(244, 63, 94, .16);
  --on-brand: #ffffff;
  --gold: #ffb020;
  --gold-ink: #1b1f27;
  --gold-soft: rgba(255, 176, 32, .14);
  --danger: #ff6b6b;
  --header-bg: rgba(15, 17, 21, .94);
  --tabbar-bg: rgba(15, 17, 21, .97);
  --ph-text: #4b5563;
  --mask: rgba(15, 23, 42, .55);
  --radius: 10px;
}

/* 青蓝霓虹 · 科技感（暗底） */
body.palette-cyan {
  --bg: #0f1115;
  --bg-soft: #171a21;
  --panel: #1b1f27;
  --line: #262b35;
  --text: #e6e9ef;
  --text-strong: #ffffff;
  --text-soft: #b9c0cc;
  --muted: #8b93a3;
  --brand: #06b6d4;
  --brand-2: #0891b2;
  --brand-soft: rgba(6, 182, 212, .16);
  --on-brand: #04222b;
  --gold: #ffb020;
  --gold-ink: #1b1f27;
  --gold-soft: rgba(255, 176, 32, .14);
  --danger: #ff6b6b;
  --header-bg: rgba(15, 17, 21, .94);
  --tabbar-bg: rgba(15, 17, 21, .97);
  --ph-text: #4b5563;
  --mask: rgba(15, 23, 42, .55);
  --radius: 10px;
}

/* 亮黄 · 暗底亮黄 · 高对比（暗底） */
body.palette-yellow {
  --bg: #0f1115;
  --bg-soft: #171a21;
  --panel: #1b1f27;
  --line: #262b35;
  --text: #e6e9ef;
  --text-strong: #ffffff;
  --text-soft: #b9c0cc;
  --muted: #8b93a3;
  --brand: #ffd400;
  --brand-2: #ffb800;
  --brand-soft: rgba(255, 212, 0, .16);
  --on-brand: #3b2c00;
  --gold: #ffb020;
  --gold-ink: #1b1f27;
  --gold-soft: rgba(255, 176, 32, .14);
  --danger: #ff6b6b;
  --header-bg: rgba(15, 17, 21, .94);
  --tabbar-bg: rgba(15, 17, 21, .97);
  --ph-text: #4b5563;
  --mask: rgba(15, 23, 42, .55);
  --radius: 10px;
}

/* 清爽白 · 亮色底 · 显色橙红（亮底） */
body.palette-light {
  --bg: #f4f6f9;
  --bg-soft: #ffffff;
  --panel: #ffffff;
  --line: #e4e7ee;
  --text: #181b22;
  --text-strong: #0b0f17;
  --text-soft: #4b5563;
  --muted: #6b7280;
  --brand: #ff3d00;
  --brand-2: #ff6f2e;
  --brand-soft: rgba(255, 61, 0, .12);
  --on-brand: #ffffff;
  --gold: #f59e0b;
  --gold-ink: #3b2600;
  --gold-soft: rgba(245, 158, 11, .16);
  --danger: #d92d20;
  --header-bg: rgba(255, 255, 255, .92);
  --tabbar-bg: rgba(255, 255, 255, .97);
  --ph-text: #9aa2af;
  --mask: rgba(15, 23, 42, .45);
  --radius: 10px;
}

/* 霓虹夜 · 纯黑 + 青粉双色发光（暗底） */
body.palette-neon {
  --bg: #050507;
  --bg-soft: #0b0b12;
  --panel: #101017;
  --line: #20212f;
  --text: #e9ecf5;
  --text-strong: #ffffff;
  --text-soft: #b6bccd;
  --muted: #8b90a6;
  --brand: #00e5ff;
  --brand-2: #ff2bd6;
  --brand-soft: rgba(0, 229, 255, .14);
  --on-brand: #04222b;
  --gold: #ffb020;
  --gold-ink: #1b1f27;
  --gold-soft: rgba(255, 176, 32, .14);
  --danger: #ff6b6b;
  --header-bg: rgba(5, 5, 7, .92);
  --tabbar-bg: rgba(5, 5, 7, .96);
  --ph-text: #3a3b4a;
  --mask: rgba(3, 3, 6, .62);
  --radius: 8px;
}

/* 深蓝毛玻璃 · 蓝紫渐变 + 半透明面板（暗底） */
body.palette-glass {
  --bg: #0a0e1a;
  --bg-soft: #101627;
  --panel: #151c30;
  --line: #26304a;
  --text: #e6ebf7;
  --text-strong: #ffffff;
  --text-soft: #b3bdd6;
  --muted: #8f9ab5;
  --brand: #8b7bff;
  --brand-2: #ff5fa8;
  --brand-soft: rgba(139, 123, 255, .18);
  --on-brand: #1b1330;
  --gold: #ffb020;
  --gold-ink: #1b1f27;
  --gold-soft: rgba(255, 176, 32, .14);
  --danger: #ff6b6b;
  --header-bg: rgba(10, 14, 26, .72);
  --tabbar-bg: rgba(10, 14, 26, .86);
  --ph-text: #3d4864;
  --mask: rgba(6, 9, 18, .6);
  --radius: 14px;
}

/* 影院暗金 · 深棕黑 + 哑光金（暗底） */
body.palette-cinema {
  --bg: #0b0906;
  --bg-soft: #131009;
  --panel: #191510;
  --line: #2a2318;
  --text: #f0e9dc;
  --text-strong: #fff8ea;
  --text-soft: #cdc0a8;
  --muted: #a39680;
  --brand: #d4af37;
  --brand-2: #b8912a;
  --brand-soft: rgba(212, 175, 55, .16);
  --on-brand: #1a1405;
  --gold: #ffb020;
  --gold-ink: #1b1f27;
  --gold-soft: rgba(255, 176, 32, .14);
  --danger: #ff6b6b;
  --header-bg: rgba(11, 9, 6, .94);
  --tabbar-bg: rgba(11, 9, 6, .97);
  --ph-text: #4a4029;
  --mask: rgba(8, 6, 3, .6);
  --radius: 6px;
}

/* 落日橙粉 · 橙到粉的暖渐变（暗底） */
body.palette-sunset {
  --bg: #130a18;
  --bg-soft: #1b0f22;
  --panel: #221428;
  --line: #33203b;
  --text: #f2e9f5;
  --text-strong: #ffffff;
  --text-soft: #cdbcd8;
  --muted: #a894b3;
  --brand: #ff7a3d;
  --brand-2: #ff2d78;
  --brand-soft: rgba(255, 122, 61, .16);
  --on-brand: #24100a;
  --gold: #ffb020;
  --gold-ink: #1b1f27;
  --gold-soft: rgba(255, 176, 32, .14);
  --danger: #ff6b6b;
  --header-bg: rgba(19, 10, 24, .93);
  --tabbar-bg: rgba(19, 10, 24, .97);
  --ph-text: #463152;
  --mask: rgba(12, 5, 16, .6);
  --radius: 12px;
}

/* 深海青 · 冷调青绿 · 沉稳（暗底） */
body.palette-ocean {
  --bg: #061219;
  --bg-soft: #0a1c26;
  --panel: #0e2430;
  --line: #16323f;
  --text: #e2eef2;
  --text-strong: #ffffff;
  --text-soft: #afc6ce;
  --muted: #85a3ad;
  --brand: #14b8a6;
  --brand-2: #0d9488;
  --brand-soft: rgba(20, 184, 166, .16);
  --on-brand: #03201c;
  --gold: #ffb020;
  --gold-ink: #1b1f27;
  --gold-soft: rgba(255, 176, 32, .14);
  --danger: #ff6b6b;
  --header-bg: rgba(6, 18, 25, .93);
  --tabbar-bg: rgba(6, 18, 25, .97);
  --ph-text: #33505c;
  --mask: rgba(3, 10, 14, .6);
  --radius: 10px;
}

/* 葡萄紫粉 · 紫到粉 · 夜色感（暗底） */
body.palette-grape {
  --bg: #0e0818;
  --bg-soft: #150d22;
  --panel: #1b112b;
  --line: #2b1d40;
  --text: #ece6f7;
  --text-strong: #ffffff;
  --text-soft: #c8bbe0;
  --muted: #9d90b5;
  --brand: #a855f7;
  --brand-2: #ec4899;
  --brand-soft: rgba(168, 85, 247, .18);
  --on-brand: #1d0b2e;
  --gold: #ffb020;
  --gold-ink: #1b1f27;
  --gold-soft: rgba(255, 176, 32, .14);
  --danger: #ff6b6b;
  --header-bg: rgba(14, 8, 24, .93);
  --tabbar-bg: rgba(14, 8, 24, .97);
  --ph-text: #42305c;
  --mask: rgba(8, 4, 14, .62);
  --radius: 12px;
}

/* 血月红 · 近黑底 · 正红点睛（暗底） */
body.palette-crimson {
  --bg: #0b0507;
  --bg-soft: #140809;
  --panel: #1a0c0e;
  --line: #2c1416;
  --text: #f3e8e9;
  --text-strong: #ffffff;
  --text-soft: #d3b8bb;
  --muted: #b09094;
  --brand: #e11d48;
  --brand-2: #be123c;
  --brand-soft: rgba(225, 29, 72, .18);
  --on-brand: #ffffff;
  --gold: #ffb020;
  --gold-ink: #1b1f27;
  --gold-soft: rgba(255, 176, 32, .14);
  --danger: #ff6b6b;
  --header-bg: rgba(11, 5, 7, .94);
  --tabbar-bg: rgba(11, 5, 7, .97);
  --ph-text: #4d2b30;
  --mask: rgba(6, 2, 3, .62);
  --radius: 6px;
}

/* 黑白胶片 · 纯灰阶 · 直角 · 极简（暗底） */
body.palette-mono {
  --bg: #0a0a0b;
  --bg-soft: #121213;
  --panel: #17171a;
  --line: #2a2a2e;
  --text: #e8e8ea;
  --text-strong: #ffffff;
  --text-soft: #bdbdc4;
  --muted: #9a9aa2;
  --brand: #e5e7eb;
  --brand-2: #c9ccd3;
  --brand-soft: rgba(229, 231, 235, .12);
  --on-brand: #111113;
  --gold: #ffb020;
  --gold-ink: #1b1f27;
  --gold-soft: rgba(255, 176, 32, .14);
  --danger: #ff6b6b;
  --header-bg: rgba(10, 10, 11, .94);
  --tabbar-bg: rgba(10, 10, 11, .97);
  --ph-text: #3d3d42;
  --mask: rgba(0, 0, 0, .66);
  --radius: 0px;
}

/* 少女浅粉 · 浅粉底 · 大圆角（亮底） */
body.palette-pink {
  --bg: #fff5f8;
  --bg-soft: #ffffff;
  --panel: #ffffff;
  --line: #f6dde6;
  --text: #2a1420;
  --text-strong: #170b12;
  --text-soft: #6b4356;
  --muted: #85606f;
  --brand: #e01b5f;
  --brand-2: #c4124e;
  --brand-soft: rgba(255, 61, 127, .12);
  --on-brand: #ffffff;
  --gold: #b45309;
  --gold-ink: #ffffff;
  --gold-soft: rgba(180, 83, 9, .12);
  --danger: #d92d20;
  --header-bg: rgba(255, 255, 255, .92);
  --tabbar-bg: rgba(255, 255, 255, .97);
  --ph-text: #d6bcc6;
  --mask: rgba(42, 20, 32, .35);
  --radius: 16px;
}

/* 极简黑白 · 白灰底 · 石墨主色（亮底） */
body.palette-ice {
  --bg: #f7f8fa;
  --bg-soft: #ffffff;
  --panel: #ffffff;
  --line: #e6e8ec;
  --text: #1b1f27;
  --text-strong: #0b0f17;
  --text-soft: #4b5563;
  --muted: #6b7280;
  --brand: #111827;
  --brand-2: #374151;
  --brand-soft: rgba(17, 24, 39, .08);
  --on-brand: #ffffff;
  --gold: #b45309;
  --gold-ink: #ffffff;
  --gold-soft: rgba(180, 83, 9, .12);
  --danger: #d92d20;
  --header-bg: rgba(255, 255, 255, .92);
  --tabbar-bg: rgba(255, 255, 255, .97);
  --ph-text: #c3c8d2;
  --mask: rgba(15, 23, 42, .45);
  --radius: 8px;
}

/* 晴空浅蓝 · 浅蓝底 · 清爽（亮底） */
body.palette-sky {
  --bg: #f2f7ff;
  --bg-soft: #ffffff;
  --panel: #ffffff;
  --line: #dbe6f7;
  --text: #16233b;
  --text-strong: #0a1424;
  --text-soft: #465a7a;
  --muted: #63738f;
  --brand: #2568bd;
  --brand-2: #1a4f96;
  --brand-soft: rgba(42, 120, 214, .12);
  --on-brand: #ffffff;
  --gold: #b45309;
  --gold-ink: #ffffff;
  --gold-soft: rgba(180, 83, 9, .12);
  --danger: #d92d20;
  --header-bg: rgba(255, 255, 255, .92);
  --tabbar-bg: rgba(255, 255, 255, .97);
  --ph-text: #bccadf;
  --mask: rgba(10, 20, 36, .4);
  --radius: 10px;
}

/* 薄荷浅绿 · 浅绿底 · 柔和（亮底） */
body.palette-mint {
  --bg: #f2fbf7;
  --bg-soft: #ffffff;
  --panel: #ffffff;
  --line: #d8efe5;
  --text: #122a22;
  --text-strong: #08160f;
  --text-soft: #3f6357;
  --muted: #5b7a6e;
  --brand: #087a5b;
  --brand-2: #06634a;
  --brand-soft: rgba(18, 163, 122, .12);
  --on-brand: #ffffff;
  --gold: #b45309;
  --gold-ink: #ffffff;
  --gold-soft: rgba(180, 83, 9, .12);
  --danger: #d92d20;
  --header-bg: rgba(255, 255, 255, .92);
  --tabbar-bg: rgba(255, 255, 255, .97);
  --ph-text: #b7d6ca;
  --mask: rgba(8, 22, 16, .38);
  --radius: 12px;
}

/* ===== 卡片美化：悬浮上浮 + 高亮描边 + 播放角标 ===== */
.vod-card .pic {
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
  transition: transform .18s ease, box-shadow .18s ease, outline-color .18s ease;
  outline: 2px solid transparent;
}
.vod-card:hover .pic {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .34);
  outline-color: var(--brand);
}
.vod-card .pic::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .5), transparent 46%);
  opacity: 0; transition: opacity .18s ease;
}
.vod-card:hover .pic::after { opacity: 1; }
.vod-card .pic .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.7);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); color: var(--on-brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; padding-left: 3px; opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease; z-index: 2;
}
.vod-card:hover .pic .play { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ===== 播放页：声音浮层 + 自动播放兜底 ===== */
.sound-toggle {
  position: absolute; right: 12px; top: 12px; z-index: 6;
  display: none; align-items: center; gap: 6px;
  padding: 7px 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(0, 0, 0, .62); color: #fff; font-size: 13px;
  backdrop-filter: blur(4px);
}
.sound-toggle:hover { background: var(--brand); color: var(--on-brand); }
.autoplay-mask {
  position: absolute; inset: 0; z-index: 7; display: none;
  align-items: center; justify-content: center; cursor: pointer;
  background: rgba(0, 0, 0, .5);
}
.autoplay-mask .am-btn {
  width: 74px; height: 74px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--brand); color: var(--on-brand); font-size: 30px; padding-left: 5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
.autoplay-mask .am-tip {
  position: absolute; left: 0; right: 0; bottom: 18px; text-align: center;
  color: #fff; font-size: 13px; text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}

/* ==================================================================
   会员中心 v2（M69）—— 身份条 / VIP·充值条 / 签到条 / 快捷宫格 / 继续观看 / 展开面板

   版面：<960px 单列（① ② ③ ④ ⑤ ⑥ 顺排）；≥960px 左 320 固定 + 右自适应。
   配色：品牌色只给"可点 / 选中"，金色只给"钱和身份"，其余一律 --panel。
        全部走变量 —— 站内 9 套调色板（orange/blue/purple/green/gold/rose/cyan/yellow/light）自动成立。
   ★ 别在这里写死十六进制深色：palette-light 是白底，写死深色会变成白纸上的黑砖
     （旧版 .uc-vip-banner 就是这么坏掉的）。
   ★ 品牌色底上的文字一律 color: var(--on-brand)：gold/yellow/cyan 三套的 on-brand 是深色，
     写死 #fff 会变成白字压黄底。
   ================================================================== */
.uc-wrap { max-width: 1000px; margin: 18px auto; display: flex; flex-direction: column; gap: 12px; }
.uc-col-a, .uc-col-b { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

/* ---------- 提示条（ok / err）：页面第一块，出现时才占位 ---------- */
.uc-alert {
  padding: 11px 14px 11px 15px; border-radius: 12px;
  font-size: 13px; line-height: 1.5; color: var(--text);
  background: var(--panel); border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
}
.uc-alert.err { border-left-color: var(--danger); }

/* ---------- ① 身份条 ---------- */
.uc-hero {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center; gap: 12px;
  padding: 14px; border-radius: 14px;
  border: 1px solid var(--line);
  background-color: var(--panel);
  /* 右上角一点品牌色微光：整页只用这一处光晕，克制 */
  background-image: radial-gradient(150px 96px at 100% 0, var(--brand-soft), transparent 72%);
  /* 暗色下 1px 描边几乎看不见边界，加一道内高光才有"浮起"的质感 */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.uc-avatar {
  position: relative; overflow: hidden; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: var(--on-brand);
  box-shadow: 0 0 0 2px var(--brand-soft);
}
.uc-avatar img { width: 100%; height: 100%; object-fit: cover; }
/* ✎ 做成右下角小圆badge：原来的「整条底部 18px 遮罩」会把头像正中的首字母压掉一半 */
.uc-avatar-edit {
  position: absolute; right: 1px; bottom: 1px;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .58); color: #fff; font-size: 10px; line-height: 1;
  box-shadow: 0 0 0 2px var(--panel);
}
.uc-avatar:hover .uc-avatar-edit { background: rgba(0, 0, 0, .8); }
.uc-avatar:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.uc-avatar.uploading { opacity: .5; pointer-events: none; }
.uc-avatar.uploading::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: uc-spin .8s linear infinite;
}
@keyframes uc-spin { to { transform: rotate(360deg); } }

.uc-hero-main { min-width: 0; }
.uc-name { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.uc-name b {
  font-size: 16px; font-weight: 700; color: var(--text-strong);
  max-width: 44vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.uc-name .vip-badge {
  display: inline-block; font-size: 10.5px; font-weight: 700; line-height: 1.5;
  padding: 1px 7px; border-radius: 999px; white-space: nowrap;
  background: linear-gradient(135deg, #ffb020, #ff8a00); color: #3b2600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.uc-name .vip-badge.off {
  background: var(--bg-soft); color: var(--muted);
  border: 1px solid var(--line); box-shadow: none;
}
.uc-meta {
  margin-top: 3px; font-size: 12px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.uc-coins { display: flex; flex-direction: column; align-items: flex-end; flex: 0 0 auto; }
.uc-coins b {
  font-size: 17px; font-weight: 700; line-height: 1.15;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
}
/* 金色渐变文字：比纯色更有金属感；不支持 background-clip 的环境自动回落上面的 --gold 纯色 */
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .uc-coins b {
    background: linear-gradient(180deg, #ffd08a, var(--gold));
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
}
.uc-coins span { font-size: 11px; color: var(--muted); }

/* ---------- ② VIP / 充值条 ---------- */
.uc-vip {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--on-brand);
}
/* 斜向扫光：只在前 3 秒走一遍，不做无限循环（无限循环在列表页很吵，也白耗电） */
.uc-vip::after {
  content: ""; position: absolute; top: -60%; bottom: -60%; left: -46%; width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .26), transparent);
  transform: skewX(-18deg);
  animation: uc-sweep 1.6s ease-in-out 3;
  pointer-events: none;
}
@keyframes uc-sweep { 0% { left: -46%; } 70%, 100% { left: 112%; } }
.uc-vip-txt { flex: 1 1 auto; min-width: 0; }
.uc-vip-txt b { display: block; font-size: 14px; font-weight: 700; }
.uc-vip-txt span { display: block; font-size: 11.5px; opacity: .88; margin-top: 1px; }
.uc-vip-acts { display: flex; gap: 8px; flex: 0 0 auto; }
.uc-vip-btn {
  padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  line-height: 1.4; white-space: nowrap;
  transition: transform .12s ease, filter .15s ease;
}
.uc-vip-btn:active { transform: scale(.96); }
.uc-vip-btn.ghost {
  background: rgba(255, 255, 255, .16); color: var(--on-brand);
  border: 1px solid rgba(255, 255, 255, .30);
}
.uc-vip-btn.solid { background: var(--on-brand); color: var(--brand); }
.uc-vip-btn.solid:hover { filter: brightness(.95); }

/* ---------- ③ 签到条 ---------- */
.uc-signbar {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; min-height: 54px; border-radius: 14px;
  background: var(--panel); border: 1px solid rgba(255, 176, 32, .34);
}
.uc-signbar-ico {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-soft); color: var(--gold);
}
.uc-signbar-ico svg { width: 17px; height: 17px; }
.uc-signbar-txt { flex: 0 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.uc-signbar-txt b {
  font-size: 13px; color: var(--text-strong); line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.uc-signbar-txt span {
  font-size: 11.5px; color: var(--muted); line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.uc-dots { display: flex; align-items: center; gap: 5px; margin-left: auto; flex: 0 0 auto; }
.uc-dot {
  width: 6px; height: 6px; border-radius: 50%;
  border: 1px solid rgba(255, 176, 32, .55); background: transparent;
}
.uc-dot.on { background: var(--gold); border-color: var(--gold); }
.uc-signbar form, .uc-signbar > .ubtn { margin-left: 8px; flex: 0 0 auto; }
.uc-signbar .ubtn { padding: 7px 14px; border-radius: 999px; font-size: 12.5px; }
.uc-signbar .ubtn[disabled] { opacity: .55; cursor: default; }

/* ---------- ④ 快捷宫格 ---------- */
.uc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  padding: 6px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line);
}
.uc-cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  padding: 13px 4px; border-radius: 12px;
  font-size: 12.5px; color: var(--text);
  -webkit-tap-highlight-color: transparent;
  transition: background .15s ease, transform .12s ease;
}
.uc-cell:hover { background: var(--bg-soft); }
.uc-cell:active { background: var(--bg-soft); transform: scale(.96); }
.uc-ico {
  position: relative; width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand);
}
.uc-ico svg { width: 22px; height: 22px; }
.uc-cell.gold .uc-ico { background: var(--gold-soft); color: var(--gold); }
.uc-cell-t { line-height: 1.2; }
.uc-badge {
  position: absolute; top: -3px; right: -4px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  background: var(--brand); color: var(--on-brand);
  font-size: 10px; font-style: normal; font-weight: 700;
  line-height: 16px; text-align: center; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px var(--panel);
}

/* ---------- ⑤ 继续观看 ---------- */
.uc-sec {
  padding: 14px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line);
}
.uc-sec-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.uc-sec-h b { font-size: 15px; color: var(--text-strong); }
.uc-sec-h a { font-size: 12px; color: var(--muted); }
.uc-sec-h a:hover { color: var(--brand); }
/* 复用首页 .resume-* 结构，只就地改观感，不动那套规则（首页也在用） */
.uc-sec .resume-pic { border-radius: 10px; }
.uc-sec .resume-bar { background: var(--line); }
.uc-sec .resume-bar i {
  background: linear-gradient(90deg, var(--brand-2), var(--brand));
  border-radius: 0 2px 2px 0;
}
.uc-sec .resume-item { transition: transform .15s ease; }
.uc-sec .resume-item:hover { transform: translateY(-2px); }
.uc-sec .resume-item:hover .resume-pic { outline: 1px solid var(--brand); }
.uc-sec-foot { margin-top: 4px; text-align: right; }
.uc-linkbtn {
  background: none; border: 0; padding: 4px 2px; cursor: pointer;
  color: var(--muted); font-size: 11.5px;
}
.uc-linkbtn:hover { color: var(--danger); }
.uc-empty { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.uc-empty a { color: var(--brand); }

/* ---------- ⑥ 展开面板（纯 CSS :target，默认不占高度） ---------- */
.uc-panel {
  display: none; padding: 14px 16px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line);
}
.uc-panel:target { display: block; animation: uc-rise .18s ease; }
@keyframes uc-rise { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.uc-panel-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.uc-panel-h b { font-size: 15px; color: var(--text-strong); }
.uc-panel-h a { font-size: 12px; color: var(--muted); }
.uc-panel-h a:hover { color: var(--brand); }
.uc-invite { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 8px; }
.uc-invite code {
  font-size: 18px; letter-spacing: 3px; color: var(--gold); font-weight: 600;
  background: var(--bg-soft); border: 1px dashed var(--line);
  border-radius: 8px; padding: 6px 14px;
}
.uc-hint { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.uc-sub-block + .uc-sub-block { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.uc-sub-title { font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--text-strong); }
.uc-panel .auth-form { margin-top: 8px; }

/* ---------- 桌面：左窄右宽两栏 ---------- */
@media (min-width: 960px) {
  .uc-wrap { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 14px; }
  .uc-alert { flex: 1 1 100%; }
  .uc-col-a { flex: 0 0 340px; }
  .uc-col-b { flex: 1 1 0; }
  .uc-hero { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .uc-name b { max-width: none; }
  /* 窄栏里「标题 + 两个按钮」放不下时换行（否则中文会被硬折成「到 / 期」两行） */
  .uc-vip { flex-wrap: wrap; }
  .uc-vip-acts { margin-left: auto; }
  /* ★ 6 格在 600+ 宽度里按 3 列会把每格拉到 200px，图标之间空得像坏掉了。
     改成「按可用宽度自动排一行」：6 格 → 6 等分，5 格（卡密关闭）→ 5 等分。 */
  .uc-grid { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
}

/* 尊重系统的"减少动态效果" */
@media (prefers-reduced-motion: reduce) {
  .uc-vip::after { animation: none; display: none; }
  .uc-panel:target { animation: none; }
  .uc-cell:active, .uc-sec .resume-item:hover { transform: none; }
}

/* ===== M77：修「手机点输入框，网页整体放大一下」 =====
   根因：iOS Safari 聚焦「字号 < 16px」的文本输入控件时，会把整个页面放大到等效 16px，
        且收起键盘后**不还原** —— 用户看到的就是「点一下页面就变大」。
        触发条件只有字号，跟输入框有多宽、多长、多高完全无关（所以「把搜索框做短」没用）。

   改法：把「会弹键盘」的文本控件在触屏/窄屏下的字号统一提到 16px。
   ★ 为什么不改 select：它弹的是系统选择器不是键盘，不触发缩放；改了只会把播放页工具栏撑高。
   ★ 为什么顶栏搜索框必须连带锁 flex 基准：字号变大 → 输入框的「自然宽度」跟着变大 →
     360px 窄屏上会把顶栏由 1 行挤成 2 行（实测 132px → 170px，只在窄屏暴露，iPhone 上看不出来）。
     锁成 `1 1 0` + `width:0` 后，任何宽度都只吃剩余空间，不会再被内容顶出去。
   ★ 条件写成「窄屏 或 触屏」的并集：只写宽度会漏掉竖屏 iPad（768px），只写触屏会漏掉个别
     把 pointer 报成 fine 的安卓设备。 */
@media (max-width: 720px), (hover: none) and (pointer: coarse) {
  .site-search { flex: 1 1 0; }
  .site-search input { font-size: 16px; flex: 1 1 0; width: 0; padding: 5px 12px; }
  .site-search button { font-size: 14px; padding: 5px 14px; }
  .auth-form input { font-size: 16px; }
  .cmt-form textarea { font-size: 16px; }
  .dmk-send input#dmkText { font-size: 16px; }
}

/* ============================================================
   M80：首页「官方网址防丢失」域名画报弹窗
   ------------------------------------------------------------
   · 内容全部来自后台字段，前台现画 —— 换域名改一行即可，不必重做图片；
   · 颜色一律走 palette 变量，站主换配色时弹窗自动跟随，不写死十六进制；
   · 卡片 flex 竖排 + 内容区滚动 + 底栏常驻，小屏也一定点得到「确定」
     （旧实现是整块滚动，按钮跟着内容跑出屏幕）；
   · .notice-mask 默认隐形，JS 判定该弹后再加 .is-on 淡入，
     这样「本机已看过」的访客不会先闪一下再消失。
   ============================================================ */
.notice-mask {
  opacity: 0; visibility: hidden;
  transition: opacity .26s ease, visibility 0s linear .26s;
}
.notice-mask.is-on {
  opacity: 1; visibility: visible;
  transition: opacity .26s ease, visibility 0s linear 0s;
}
body.notice-lock { overflow: hidden; }
/* ===== M92：修公告弹窗打开时背景还能滑（站主投诉「滑动晃晃悠悠」的根因之一）=====
   iOS Safari **不支持**用 `body{overflow:hidden}` 锁住页面滚动（Android Chrome 多数版本也照此），
   所以弹窗打开后背景照旧能滑：手指一动，背后内容跟着滚、弹窗钉在原地不动，
   视觉上就是整页在弹窗底下晃。登录页与首页共用同一套布局、都弹这个公告，
   与站主说的「登陆页面及网站页面」两个场景完全对应（M80 当时只补了滚动条宽度，没验平台差异）。
   修法用移动端标准方案：body 改 position:fixed，用负 top 把当前滚动位置补回来，
   top 的值由 layout 里的脚本写入（关闭时清空并 scrollTo 回原位置）。
   桌面保持原样：桌面 overflow:hidden 有效，且已按滚动条宽度补 padding，
   改成 fixed 反而会牵动影片网格列数（M80 就踩过）。 */
@media (max-width: 720px), (hover: none) and (pointer: coarse) {
  body.notice-lock {
    position: fixed; left: 0; right: 0; width: 100%;
    overflow: hidden;
  }
}

.notice-mask-poster { padding: 14px; }

.notice-poster {
  position: relative;
  width: 100%; max-width: 420px; max-height: 92vh;
  display: flex; flex-direction: column;
  margin-top: 24px;                       /* 给探头的徽章留空间 */
  background: var(--panel, #fff);
  border: 1.5px solid var(--line, #e5e7eb);
  border-radius: 24px;
  box-shadow: 0 26px 70px -18px rgba(0, 0, 0, .45), 0 6px 20px -8px rgba(0, 0, 0, .16);
  transform: translateY(10px) scale(.985);
  transition: transform .28s cubic-bezier(.2, .8, .3, 1);
}
.notice-mask.is-on .notice-poster { transform: translateY(0) scale(1); }

/* 顶部探头徽章 */
.np-badge {
  position: absolute; left: 50%; top: -24px; transform: translateX(-50%);
  width: 56px; height: 56px; border-radius: 17px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, #ff6b9a 0%, var(--brand, #e01b5f) 52%, var(--brand-2, var(--brand, #c4124e)) 100%);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, .38), inset 0 2px 0 rgba(255, 255, 255, .38);
}
.np-badge svg { width: 30px; height: 30px; display: block; }

/* 内容区：唯一可滚动的地方。min-height:0 必须有 —— flex 子项默认 min-height:auto 不肯收缩，
   否则小屏上整张卡片被内容撑高，max-height 失效、底栏被顶出屏幕。 */
.np-scroll {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 34px 20px 2px; text-align: center;
}

.np-title {
  margin: 0; font-size: 22px; font-weight: 800; line-height: 1.32; letter-spacing: .01em;
  color: var(--text-strong, var(--text, #111));
}
.np-brand { margin-top: 7px; font-size: 12.5px; letter-spacing: .05em; color: var(--muted, #8b93a3); }
.np-rule {
  width: 64%; height: 4px; margin: 13px auto 15px; border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--brand, #e01b5f) 50%, transparent);
  opacity: .5;
}
.np-pill {
  display: inline-block; padding: 7px 17px; border-radius: 99px;
  background: linear-gradient(135deg, var(--brand, #e01b5f), var(--brand-2, var(--brand, #c4124e)));
  color: var(--on-brand, #fff); font-size: 13px; font-weight: 700; letter-spacing: .09em;
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .45);
}

/* 主域名：不用衬线体 —— Georgia/Times 的数字 11 会被读成 ll，域名读错等于没给 */
.np-main {
  margin: 15px 0 5px; font-size: 25px; font-weight: 800; line-height: 1.16; letter-spacing: .01em;
  color: var(--text-strong, var(--text, #111));
  word-break: break-all; font-variant-numeric: lining-nums;
}
.np-note { font-size: 12px; color: var(--muted, #8b93a3); }

.np-sec {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin: 16px 0 9px; font-size: 13.5px; font-weight: 800; letter-spacing: .09em;
  color: var(--brand, #e01b5f);
}
.np-sec::before, .np-sec::after {
  content: ""; height: 1px; width: 32px; background: currentColor; opacity: .32;
}

/* 域名行：用 min-height 不用 height —— 超长域名换行时能自然撑高，不会被裁 */
.np-row {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 42px; margin-bottom: 8px; padding: 6px 10px; border-radius: 13px;
  background: var(--bg-soft, #fafafa); border: 1.5px solid var(--line, #eee);
  font-size: 15.5px; font-weight: 700; color: var(--brand-2, var(--brand, #c4124e));
  text-decoration: none; word-break: break-all; transition: transform .12s ease;
}
.np-row:active { transform: scale(.99); }
.np-row-hot {
  border-color: var(--brand, #e01b5f); font-size: 16.5px;
  box-shadow: 0 8px 18px -12px rgba(0, 0, 0, .5);
}
.np-tag {
  flex: 0 0 auto; padding: 2px 6px; border-radius: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  color: #fff; background: var(--gold, #b45309);
}
.np-tip { margin: 13px 0 2px; font-size: 12px; line-height: 1.65; color: var(--muted, #8b93a3); }

/* 底栏：常驻，不随内容滚动 */
.np-foot { flex: 0 0 auto; padding: 12px 20px 18px; }
.np-btn {
  width: 100%; height: 48px; border: 0; border-radius: 99px; cursor: pointer;
  background: linear-gradient(135deg, var(--brand, #e01b5f), var(--brand-2, var(--brand, #c4124e)));
  color: var(--on-brand, #fff); font-size: 16.5px; font-weight: 800;
  letter-spacing: .3em; text-indent: .3em;
  box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .5), inset 0 2px 0 rgba(255, 255, 255, .28);
}
.np-btn:active { transform: translateY(1px); }

/* 矮屏（iPhone SE / 横屏）：只收字号，不改结构 —— 按钮永远在底栏 */
@media (max-height: 700px) {
  .np-scroll { padding-top: 30px; }
  .np-title { font-size: 19px; }
  .np-main { font-size: 22px; }
  .np-sec { margin: 12px 0 7px; font-size: 12.5px; }
  .np-row { min-height: 38px; font-size: 14.5px; }
  .np-row-hot { font-size: 15.5px; }
  .np-btn { height: 44px; font-size: 15.5px; }
}
@media (max-width: 360px) {
  .np-main { font-size: 21px; }
  .np-row { font-size: 14px; }
}

/* ===== 广告（M90）=====
   一套样式覆盖全部位置：图片型 <a><img>、HTML 型 <div>。
   之前每个页面各写一份内联样式，导致「首页横幅」和「详情页底部」长得完全不像同一套东西。 */
.ad-box { display: block; margin: 0 0 16px; text-align: center; }
.ad-box img { max-width: 100%; height: auto; border-radius: 10px; }
.ad-box.ad-inline { display: inline-block; margin: 0 8px 8px 0; vertical-align: middle; }
.ad-icon-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.ad-home-banner { margin-bottom: 20px; }
.ad-list-top { margin: 12px 0 18px; }
.ad-player-top { margin: 0 0 12px; }
.ad-detail-bottom, .ad-footer { margin: 0 0 12px; }
.ad-pause { margin: 0; text-align: center; }
.ad-pause img { max-width: 100%; border-radius: 8px; }

/* 短视频 feed 插屏：整屏吸附，与影片卡同样一屏一条 */
.short-ad { height: 100%; scroll-snap-align: start; background: #0d0f14; display: flex; align-items: center; justify-content: center; }
.ad-feed { margin: 0; padding: 24px; width: 100%; }
.ad-feed img { max-height: 70vh; width: auto; max-width: 100%; }

/* ============================================================
   M92：移动端关掉顶栏 / 底栏的 backdrop-filter（见文件顶部 html 注释）
   ------------------------------------------------------------
   · 为什么不删原规则、只在媒体查询里覆盖：桌面端模糊很好看，且桌面没有滚动掉帧问题；
   · 为什么用 `var(--bg)` 而不是保留 rgba：去掉模糊后 94% 不透明的底会透出下方内容，
     滚动时反而更"糊"，直接铺实色更干净，且 21 套配色都自带 --bg，不用逐套改；
   · 特异性说明：与 `.site-header` / `.mobile-tabbar` 原规则同特异性，
     本段在文件末尾（且同处 @media 内）→ 后写覆盖，无需 !important。
   ============================================================ */
@media (max-width: 720px) {
  .site-header,
  .mobile-tabbar {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--bg);
  }
}
