/* ==========================================
   tp57_white_blue — 视觉参考：白底＋#f8f8f8 浅灰区块＋蓝色渐层主色（海螺系白色版）
   页底 #fff；次区块（详情介绍带、筛选面板、播放右栏、页脚、集数钮）#f8f8f8、再浅一阶 #f2f2f2；
   标题 #222、内文 #666；主色蓝 #0099ff，按钮 linear-gradient(90deg,#0099ff,#00bbff)。
   小字对比照使用者 2026-11-12 定案（Q5）：弱字 #999→#6e6e6e、蓝色文字 #0099ff→#0070c0（白底与 #f8f8f8／#f2f2f2 浅灰底都 4.5:1 以上）；按钮／底色维持参考站原值。
   海报直角、面板圆角 4、按钮与搜索框膠囊。量测记录见 template/log/tp57_white_blue__THEME_SPEC.md。
   版型：纯顶栏（70，横排导览＋中间膠囊搜索框）；区块不包卡片、白底平铺；≤1023 导览收进右侧抽屉。
   架构、资料区块承袭 tp53_dark_yellow。组件里不写死色码，全部走下面的变量。
   ========================================== */
:root {
  --bg-base:       #ffffff;   /* 页底 */
  --bg-deep:       #f8f8f8;   /* 页脚、次区块 */
  --bg-dock:       #ffffff;   /* 抽屉 */
  --bg-topbar:     rgba(255, 255, 255, 0.82);   /* 顶栏：毛玻璃白（2026-11-17 使用者选 A，配 .topbar 的 backdrop-filter） */
  --bg-card:       #f8f8f8;   /* 按钮、集数钮、分页钮、标签 */
  --bg-elevated:   #f2f2f2;   /* 图片占位 */
  --bg-panel:      #ffffff;   /* 区块：跟页底同色（参考站区块不包卡片） */
  --bg-sub:        #f8f8f8;   /* 参考站 .hl-bg-subs：详情介绍带、筛选面板、播放右栏 */
  --bg-muted:      #f2f2f2;   /* 参考站 .hl-bg-muted：右栏里的集数钮、筛选选中底 */
  --bg-input:      #f8f8f8;
  --bg-drop:       #ffffff;   /* 下拉／弹窗 */
  --bg-glass:      rgba(0, 0, 0, 0.03);

  --accent:        #0099ff;   /* 主色蓝：按钮底、当前页、角标、指示器 */
  --accent-end:    #00bbff;
  --accent-grad:   linear-gradient(90deg, #0099ff, #00bbff);   /* 参考站 .hl-btn-gradient */
  --accent-hover:  #0088e6;
  --on-accent:     #ffffff;   /* 压在蓝色上的字 */
  --accent-dot:    #0099ff;
  --accent-ico:    #0099ff;   /* 区块标题前的线条图示（装饰，不受文字对比限制） */
  --accent-light:  rgba(0, 153, 255, 0.08);
  --accent-soft:   rgba(0, 153, 255, 0.14);
  --accent-line:   rgba(0, 153, 255, 0.55);
  --accent-glow:   rgba(0, 153, 255, 0.20);

  --active:        #0070c0;   /* 选中态蓝字：导览当前、tab 当前、筛选当前、分数、结果数（Q5：参考站 #0099ff 白底只有 3:1） */
  --nav-active:    #0070c0;
  --link-hover:    #0070c0;

  --btn-grad:      #f8f8f8;   /* 次要钮 */
  --btn-text:      #666666;
  --btn-danger:    #fc4274;
  --btn-play:      linear-gradient(90deg, #0099ff, #00bbff);   /* 「立即播放」：蓝色渐层膠囊白字 */
  --btn-verify:    linear-gradient(90deg, #0099ff, #00bbff);

  --accent-2:      #ff8155;
  --accent-2-alt:  #fcb80a;
  --hot:           #0070c0;   /* 榜单热度数字 */
  --badge:         #0099ff;
  --badge-douban:  #0070c0;
  --badge-state:   #0099ff;

  --rank-1:        #fc4274;   /* 参考站名次：只变字色 16/700；1 红、2 橙、3 黄、其余灰 */
  --rank-2:        #ff8155;
  --rank-3:        #fcb80a;
  --rank-num:      #999999;

  --text-1:        #222222;   /* 标题、片名 */
  --text-2:        #666666;   /* 内文（参考站 body） */
  --text-3:        #6e6e6e;   /* 次要说明（参考站 #999，Q5 提深到 4.5:1） */
  --text-dim:      #6e6e6e;   /* 标签「主演：」、卡片副行、面包屑、「更多」 */
  --text-disabled: #b3b3b3;   /* 停用的分页钮、上／下集：刻意比弱字淡，才看得出点不了 */
  --text-link:     #222222;
  --text-nav:      #222222;
  --text-title:    #222222;
  --text-input:    #222222;

  --fill-1:        rgba(0, 0, 0, 0.03);
  --fill-2:        #f2f2f2;

  --border:        #eeeeee;
  --border-2:      #e5e5e5;
  --border-row:    #f2f2f2;

  --score-hi:      #0070c0;
  --score-mid:     #999999;

  --shadow-header: 0 1px 0 rgba(15, 35, 60, 0.08);   /* 底边 1px 冷灰细线（2026-11-17：原本参考站 0 0 20px .05 在白页上几乎看不出顶栏；顶端蓝条版使用者嫌不好看，改毛玻璃＋细线） */
  --shadow-thumb:  none;
  --shadow-hover:  0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-drop:   0 10px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-panel:  none;

  /* 播放区 */
  --player-panel:  #f8f8f8;
  --player-hover:  rgba(0, 0, 0, 0.04);
  --player-scroll: #dddddd;
  --scroll-thumb:  #cccccc;   /* 捲动条拇指（全站） */
  --scroll-thumb-hover: #aaaaaa;

  --fab-bg:        #0070c0;   /* 右侧浮钮：主题蓝实底＋白色图示（2026-11-17 使用者要求：参考站的白底灰图示在白色页面上看不清；白字对比 5.2:1） */
  --fab-color:     #fff;
  --fab-top-bg:    #0070c0;

  --header-position: fixed;

  /* 参考站：Helvetica → Arial → PingFang SC → 微软雅黑；没有网络字体。变量名沿用底稿，避免逐条改规则 */
  --font-sans:     Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono:     var(--font-sans);
  --font-serif:    var(--font-sans);
  --font-num:      var(--font-sans);

  --topbar-h:      70px;   /* 参考站 71 */
  --dock-w:        0px;
  --tabbar-h:      0px;
  /* 参考站版心 1280（内距 10，内容 1260）；两侧留白 --page-pad */
  --page-pad:      20px;
  --cell:          10px;
  --hdr-x:         20px;
  --page-pad-r:    var(--page-pad);
  --panel-pad:     0;         /* 区块不包卡片：内容贴齐版心（参考站 .hl-row-box 没有内距） */
  --panel-pad-x:   0px;
  --sub-pad:       25px;      /* 浅灰次区块的内距（参考站详情右侧白卡 25、筛选面板 10/30） */

  --fab-right:     20px;
  --fab-bottom:    40px;
  --fab-w:         36px;      /* 参考站浮钮 36 圆 */

  --section-gap:   24px;      /* 模块间距统一 24（甲方 decisions 全局基线；参考站是 25，以甲方为准） */
  --title-gap:     20px;      /* 区块标题到内容（参考站 25，标题 24 字级下 20 比较紧凑） */

  --gap:           20px;
  --grid-gap-y:    16px;
  --grid-gap-x:    12px;      /* 影视卡栏距：参考站 20，2026-11-17 使用者嫌卡片间距太大、整体调小（上下 20→16、左右 20→12）；9 栏的首页热播／筛选页另设左右 10。手机 14／10 不变 */

  --radius:        4px;       /* 参考站面板 4 */
  --radius-poster: 0px;       /* 参考站海报、轮播直角 */
  --radius-sm:     4px;       /* 集数钮 */
  --radius-btn:    2px;       /* 分页钮 */
  --radius-lg:     8px;       /* 下拉／弹窗 */
  --radius-pill:   32px;      /* 参考站按钮、搜索框、筛选选项都是膠囊 */

  --content-max:   1260px;
  --hero-edge:     max(var(--page-pad), calc((100% - var(--content-max)) / 2));
  --hero-gutter:   calc(var(--hero-edge) + var(--panel-pad-x));
  /* 疊在图片上的次要文字（轮播、专题封面）：半透明白 */
  --on-img-dim:    rgba(255, 255, 255, 0.75);
  --on-img-soft:   rgba(255, 255, 255, 0.8);
  --on-img-faint:  rgba(255, 255, 255, 0.35);
  --on-img-line:   rgba(255, 255, 255, 0.2);

  --poster-ratio:  2 / 2.9;   /* 参考站海报 193×280 */
  --card-meta-h:   60px;      /* 片名 15/20 ＋ 副行 13/17 ＋ 间距 4 ＋ 上下内距 9＋10（2026-11-17 卡片改成区块） */
}

/* ≤1023：手持版——导览收进右侧抽屉，顶栏 56 */
@media (max-width: 1023px) {
  :root {
    --topbar-h: 56px;
    --fab-bottom: 24px;
  }
}
@media (max-width: 767px) {
  :root {
    --cell: 6px;
    --page-pad: 15px;   /* 参考站手机左右 15 */
    --hdr-x: 15px;
    --panel-pad: 0;
    --panel-pad-x: 0px;
    --sub-pad: 15px;
    --grid-gap-y: 14px;
    --grid-gap-x: 10px;
    --gap: 10px;
    --section-gap: 20px;
    --title-gap: 14px;
    --fab-right: 10px;
    --fab-w: 36px;
    --card-meta-h: 54px;   /* 手机：19 ＋ 16 ＋ 4 ＋ 内距 7＋8 */
  }
}


*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--bg-base);
  color: var(--text-1);
  scroll-behavior: smooth;
}

/* 参考站：系统黑体（-apple-system → PingFang SC → Microsoft YaHei）、内文 15px */
body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;

  padding-top: 0;
}

a { text-decoration: none; color: inherit; }

/* 捲动条：全站一律深色（2026-11-09 使用者回报「看过」下拉里出现白底捲动条）。
   页面本身的捲动条轨道用页底色；元素内的（下拉、清单、抽屉）轨道透明、拇指 #555。
   Chrome／Firefox 吃 scrollbar-color；Safari 还不支援，靠下面的 ::-webkit-scrollbar。
   个别刻意隐藏的横滑列（scrollbar-width:none ＋ ::-webkit-scrollbar{display:none}）选择器更具体，不受影响 */
html { scrollbar-color: var(--scroll-thumb) var(--bg-base); }
* { scrollbar-color: var(--scroll-thumb) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; background: transparent; }
::-webkit-scrollbar-thumb { border-radius: 4px; background: var(--scroll-thumb); }
::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-hover); }
::-webkit-scrollbar-corner { background: transparent; }
/* 参考站标题一律衬线（Noto Serif SC）；组件里另有字级 */
h1, h2 { font-family: var(--font-serif); }
img { display: block; background: url("../img/load.gif") no-repeat center/cover, var(--bg-elevated); }

img.is-nopic {
  object-fit: contain !important;
  padding: 12%;
  background: var(--bg-elevated);
}
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
ul, ol { list-style: none; }

.spi,
.episode-more-trigger,
.comment_reply,
.comment_report,
.cmt-page-btn,
.tip-link,
.ptb-btn,
.di-btn {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
  display: inline;
}

.art-breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.art-breadcrumb li {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  /* li 的 min-width:0 管不到里面的 <a>（它自己也是 flex 项目，最窄只能缩到最长那个字）。
     下载页片名在中间层，不含空格的长英文片名在 320 宽撑出 7px（测试机 9698，2026-10-29）；会继承到 a */
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  .art-content { min-width: 0; width: 100%; }
}

input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
}
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button {
  -webkit-appearance: none;
}

/* 视觉隐藏、保留给读屏。加 !important：.sr-only 常挂在已有样式的元素上（.sf-label 的 min-width、.dmg-label 的行内框），
   页面 CSS 在 main.css 之后载入，同特异性会把它盖掉 */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  min-width: 0 !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.mac-icon {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;

  width: 1em;
  height: 1em;
  fill: currentColor;
  flex-shrink: 0;
}

.text-overflow {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.text-overflow-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ========== 页面骨架：顶栏 fixed；内容让出 --topbar-h ========== */
.page-shell,
.main-area {
  min-height: 100vh;
  background-color: var(--bg-base);
}
.main-area {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

a:hover { color: var(--link-hover); }

/* 衬线标题与等宽小标（参考站 h2.serif ＋ 区块上方等宽黄色英文小标） */
.u-serif { font-family: var(--font-serif); }
.u-mono  { font-family: var(--font-mono); }

.brand-logo-img {
  background: none; /* logo 不套全局 load.gif 占位背景 */
  height: 34px;   /* 原 44，2026-11-09 使用者要求调小 */
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

/* ========== 顶栏（参考站：71 高、fixed、白底、阴影 0 0 20px rgba(0,0,0,.05)；内容限在版心 1260） ========== */
.topbar {
  position: var(--header-position);
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  background-color: var(--bg-topbar);
  box-shadow: var(--shadow-header);
  /* 毛玻璃：半透明白＋模糊，捲动时内容在底下隐约透出，看得出这是浮在上面的顶栏（2026-11-17 使用者选 A）。
     ⚠️ backdrop-filter 会让 .topbar 变成里面 position:fixed 子元素的定位基准——目前顶栏里只有 absolute 的下拉
     （.search-drop、.hist-dropdown），搜索弹层、抽屉都在 header 外面；以后往顶栏里放 fixed 元素要注意 */
  -webkit-backdrop-filter: saturate(180%) blur(14px);
          backdrop-filter: saturate(180%) blur(14px);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
/* 首页／分类页（页面开头是满宽轮播）：顶栏透明叠在轮播上，捲过轮播下缘才变回白底（2026-11-17 使用者要求，还原底稿 tp53 的做法）。
   用 :has 判断而不是等 JS 加 class——第一次绘制就是透明，不会先闪一下白底；
   header.js 在顶栏底边碰到轮播下缘时加 .is-past-hero。轮播那边要垫到顶栏底下，见 .hero-container 的 --hero-top。
   白底版的导览是深色字，压在剧照上看不见，透明时改白字；对比靠轮播顶端那道黑色渐层（.hero::before）。
   搜索框本身是浅灰实底，透明时不用改 */
body:has(.page-content > .hero-container) .topbar:not(.is-past-hero) {
  background-color: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;   /* 透明时不要模糊，不然轮播顶端那一条会糊掉 */
}
body:has(.page-content > .hero-container) .topbar:not(.is-past-hero) .tb-nav-item,
body:has(.page-content > .hero-container) .topbar:not(.is-past-hero) .tb-action { color: rgba(255, 255, 255, 0.88); }
body:has(.page-content > .hero-container) .topbar:not(.is-past-hero) .tb-nav-item:hover,
body:has(.page-content > .hero-container) .topbar:not(.is-past-hero) .tb-nav-item.is-active,
body:has(.page-content > .hero-container) .topbar:not(.is-past-hero) .tb-action:hover { color: #fff; }
body:has(.page-content > .hero-container) .topbar:not(.is-past-hero) .tb-action.is-open { color: #4db8ff; }   /* 深底上的亮蓝（同轮播小卡面板） */
body:has(.page-content > .hero-container) .topbar:not(.is-past-hero) .tb-nav-item,
body:has(.page-content > .hero-container) .topbar:not(.is-past-hero) .tb-action { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }

/* 内容照版心置中：logo → 导览 → 搜索框（中间偏右）→ 「看过」 */
.topbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 40px;
  height: 100%;
  width: 100%;
  max-width: calc(var(--content-max) + var(--page-pad) * 2);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

.tb-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 100%;
}

/* ---------- 横排导览（参考站：15/400 #222、间距 24；选中 17/700 蓝字，没有底线或底块）
   ⚠️ 横滑列的 li 要 flex-shrink:0，不可写 min-width:0（会被压扁到相邻项重叠，§17.58） ---------- */
.tb-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  height: 100%;
}
.tb-nav-list {
  display: flex;
  align-items: stretch;
  min-width: 0;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tb-nav-list::-webkit-scrollbar { display: none; }
.tb-nav-list > li { display: flex; flex-shrink: 0; }
.tb-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-nav);
  white-space: nowrap;
  transition: color 0.2s;
}
.tb-nav-item:hover { color: var(--nav-active); }
.tb-nav-item.is-active { color: var(--nav-active); font-size: 17px; font-weight: 700; }
/* 还能往哪边滑就在哪边渐隐（header.js 依 scrollLeft 切 .can-scroll-left／-right） */
.tb-nav.can-scroll-right .tb-nav-list {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent 100%);
          mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent 100%);
}
.tb-nav.can-scroll-left .tb-nav-list {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 36px);
          mask-image: linear-gradient(to right, transparent 0, #000 36px);
}
.tb-nav.can-scroll-left.can-scroll-right .tb-nav-list {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  height: 100%;
  margin-left: auto;
}

/* 内嵌搜索框（参考站：320×40 膠囊 #f8f8f8、右侧蓝色渐层「搜索」膠囊钮 80 宽） */
.tb-search {
  position: relative;
  width: 320px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 14px;
  padding: 0 0 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--bg-input);
  color: var(--text-1);
  transition: border-color 0.2s;
}
.tb-search:focus-within { border-color: var(--accent-line); }
.tb-search-ico { display: none; }
.tb-search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: none;
  color: var(--text-input);
  font-size: 14px;
  font-family: inherit;
}
.tb-search-input::placeholder { color: var(--text-dim); }
/* 送出钮：放大镜＋「搜索」白字、蓝色渐层膠囊（参考站 .hl-search-submit） */
.tb-search-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 80px;
  height: 40px;
  margin-right: -1px;
  border-radius: var(--radius-pill);
  background: var(--accent-grad);
  font-size: 14px;
  color: var(--on-accent);
  transition: opacity 0.2s;
}
.tb-search-btn::before {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M229.66 218.34l-50.07-50.06a88.11 88.11 0 1 0-11.31 11.31l50.06 50.07a8 8 0 0 0 11.32-11.32ZM40 112a72 72 0 1 1 72 72 72.08 72.08 0 0 1-72-72Z'/%3E%3C/svg%3E") no-repeat center/contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M229.66 218.34l-50.07-50.06a88.11 88.11 0 1 0-11.31 11.31l50.06 50.07a8 8 0 0 0 11.32-11.32ZM40 112a72 72 0 1 1 72 72 72.08 72.08 0 0 1-72-72Z'/%3E%3C/svg%3E") no-repeat center/contain;
}
.tb-search-btn:hover { opacity: 0.9; }
.tb-search .search-drop { top: calc(100% + 8px); }

/* 观看记录（参考站右侧一排线条图示 22px，只有图示）；搜索钮只在 ≤1023 出现 */
.tb-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  height: 100%;
  padding: 0 6px;
  line-height: 1;
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.2s;
}
.tb-action .mac-icon { font-size: 22px; }
.tb-action-label { display: none; }
.tb-action:hover,
.tb-action.is-active,
.tb-action.is-open { color: var(--active); }
#searchToggle { display: none; }
.tb-menu-btn { display: none; }

/* ---------- 搜索弹层（只有手机用：≤767 顶栏没有输入框，点放大镜从顶部展开） ---------- */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1003;
  background: rgba(0, 0, 0, 0.45);
  align-items: flex-start;
  justify-content: center;
}
.search-overlay.is-open { display: flex; }

.search-overlay-inner {
  width: 100%;
  max-width: 640px;
  margin-top: 90px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-drop);
  box-shadow: var(--shadow-drop);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 0 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--bg-input);
}
.search-bar:focus-within { border-color: var(--accent-line); }
.search-bar-icon { flex-shrink: 0; font-size: 16px; color: var(--text-3); }

#searchInput {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--text-input);
  font-size: 16px;
}
#searchInput::placeholder { color: var(--text-dim); }

.search-submit-btn {
  flex-shrink: 0;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  background: var(--accent-grad);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 400;
}
.search-submit-btn:hover { opacity: 0.9; }

.search-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  font-size: 18px;
  color: var(--text-2);
}
.search-close-btn:hover { color: var(--text-1); }

/* ========== 内容区：顶栏 fixed，内容一律让出顶栏高度 ========== */
.page-content {
  flex: 1;
  padding-top: var(--topbar-h);
}

/* ========== 首页／分类页 Hero（满视窗宽、直角、紧贴顶栏下缘；2026-11-16 使用者要求「宽拉满」，做法同底稿 tp53：
   背景铺满整页宽（宽度用父层 100%，不用 100vw——有捲轴时会溢出），高度 20:7、最高 441（＝参考站版心 1260 的 20:7），宽萤幕只变宽不变高；
   片名、按钮、「本期推荐」面板用 --hero-gutter 对齐版心，跟下方区块的左右缘同一条线。原本是参考站的版心宽 1260×441）。
   左下：深色小标签（类型）→ 白色片名 → 一行灰白副行（上映／备注）＋主演；右下圆点指示器（当前是蓝色长条）。
   疊层：.hero-bg（z0）→ 渐层 ::after＋整张卡连结 .hero-link（z1）→ 文字 .hero-info（z2，pointer-events:none，只有里面的连结可点）→ 箭头、指示器（z3）
   整轮都没有横幅图时（.hero--poster，例如短剧）是直版 Coverflow：主海报靠右、上一部／下一部缩小压暗露在两侧（做法沿用 tp53，外观换成白底版） ========== */
.hero-container {
  --hero-top: 0px;   /* 轮播顶端被顶栏盖住的高度：页面开头的轮播会垫到透明顶栏底下，内容（海报卡、箭头）要让开这一段 */
  width: 100%;
  margin: 0 0 var(--section-gap);
}
.page-content:has(> .hero-container) { padding-top: 0; }
.page-content > .hero-container { --hero-top: var(--topbar-h); }
/* 多出来的那段高度用 padding 加在 .hero-slides 上（content-box：20:7 与 441 上限只算顶栏以下，看得到的轮播跟原本一样大） */
.page-content > .hero-container .hero-slides {
  box-sizing: content-box;
  padding-top: var(--hero-top);
}
/* 透明顶栏底下垫一道黑色渐层，白字导览在亮的剧照上也看得清楚；不吃点击 */
.page-content > .hero-container .hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: calc(var(--hero-top) + 40px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.22) 60%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-poster);
  background: var(--bg-elevated);
}
.hero-stage { position: relative; }
.hero-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 20 / 7;
  max-height: calc(var(--content-max) * 7 / 20);
  touch-action: pan-y;
}
.hero-slide {
  position: absolute;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;   /* §17.64：关闭时淡出完才隐藏 */
}
.hero-slide.is-active {
  z-index: 1;
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}
/* 背景：横幅图 vod_pic_slide 铺满；load.gif 垫在下层（§11.1 做法 B） */
.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--bg-elevated);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
/* 直版 Coverflow：背景是同一张海报放大、模糊、压暗铺满（不用 contain，两侧会露出被放大的 load.gif） */
.hero-slide.is-poster .hero-bg {
  inset: -40px;
  filter: blur(28px) brightness(0.55) saturate(1.2);
}
.hero-slide.is-poster::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0) 70%);
}
.hero-card {
  position: absolute;
  top: calc(var(--hero-top) + 24px);
  bottom: 40px;   /* 让出右下的指示器 */
  left: 72%;
  z-index: 3;
  aspect-ratio: 2 / 3;
  border-radius: 14px;   /* 2026-11-17「扇形叠卡」（使用者三选一选 A）：圆角＋3px 白边（用 box-shadow 画，不占尺寸）＋较深的投影 */
  overflow: hidden;
  background: var(--bg-elevated) url("../img/load.gif") no-repeat center/cover;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.92), 0 26px 50px rgba(0, 0, 0, 0.55);
  transform: translateX(-50%);
  transition: left 0.5s ease, transform 0.5s ease, filter 0.5s ease, opacity 0.5s ease;
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
/* 当前这张的卡不吃点击，点下去落到底下铺满的详情连结 .hero-link（§17.36 整卡可点）；两侧的卡才接点击（切过去） */
.hero-card { pointer-events: none; }
.hero--poster .hero-slide.is-prev .hero-card,
.hero--poster .hero-slide.is-next .hero-card { pointer-events: auto; }
.hero-slide.is-poster .hero-info { right: 53%; }   /* 右缘要在上一部海报（61% 处、缩 .84、斜 9°）左缘之前 */
.hero-slide.is-poster .hero-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hero-blurb {
  margin-top: 8px;
  font-size: 13px;
  line-height: 20px;
  color: var(--on-img-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero--poster .hero-slides { perspective: 1400px; }
.hero--poster .hero-slide {
  z-index: auto;
  opacity: 1;
  visibility: hidden;
  transition: visibility 0s linear 0.5s;
}
.hero--poster .hero-slide.is-active,
.hero--poster .hero-slide.is-prev,
.hero--poster .hero-slide.is-next { visibility: visible; transition-delay: 0s; }
.hero--poster .hero-slide .hero-bg,
.hero--poster .hero-slide::after,
.hero--poster .hero-slide .hero-info,
.hero--poster .hero-slide .hero-link { opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0s linear 0.5s; }
.hero--poster .hero-slide.is-active .hero-bg,
.hero--poster .hero-slide.is-active::after,
.hero--poster .hero-slide.is-active .hero-info,
.hero--poster .hero-slide.is-active .hero-link { opacity: 1; visibility: visible; transition-delay: 0s; }
.hero--poster .hero-slide.is-active .hero-bg { z-index: 0; }
.hero--poster .hero-card { opacity: 0; transform: translateX(-50%) scale(0.6); }
.hero--poster .hero-slide.is-active .hero-card { opacity: 1; z-index: 3; transform: translateX(-50%); }
/* 扇形叠卡：上一部／下一部缩 .84、往外斜 9°，像摊开的一手牌压在主海报后面（原本是 3D rotateY 28° 的 Coverflow） */
.hero--poster .hero-slide.is-prev .hero-card,
.hero--poster .hero-slide.is-next .hero-card {
  opacity: 1;
  z-index: 2;
  cursor: pointer;
  filter: brightness(0.6);
}
.hero--poster .hero-slide.is-prev .hero-card { left: 61%; transform: translateX(-50%) scale(0.84) rotate(-9deg); }
.hero--poster .hero-slide.is-next .hero-card { left: 83%; transform: translateX(-50%) scale(0.84) rotate(9deg); }
@media (hover: hover) {
  .hero--poster .hero-slide.is-prev .hero-card:hover,
  .hero--poster .hero-slide.is-next .hero-card:hover { filter: brightness(0.85); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-card { transition: none; }
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.68) 100%);
}
/* 整张卡铺满的详情连结（手机按钮收起后仍点得进去，§17.36） */
.hero-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-info {
  position: absolute;
  left: var(--hero-gutter);
  right: 34%;
  bottom: 30px;
  z-index: 2;
  pointer-events: none;
  color: #fff;
}
.hero-info a { pointer-events: auto; }
/* 左下深色小标签（参考站 .hl-br-tag：类型名） */
.hero-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 0 6px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.4);
  font-size: 12px;
  line-height: 20px;
  color: var(--on-img-soft);
}
.hero-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.hero-title a { color: inherit; }
.hero-title a:hover { color: #fff; opacity: 0.85; }
.hero-meta,
.hero-desc {
  font-size: 14px;
  line-height: 20px;
  color: var(--on-img-dim);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.hero-play,
.hero-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  transition: opacity 0.2s, background 0.2s;
}
.hero-play { background: var(--accent-grad); color: var(--on-accent); }
.hero-play:hover { color: var(--on-accent); opacity: 0.9; }
.hero-more { background: rgba(255, 255, 255, 0.2); color: #fff; }
.hero-more:hover { background: rgba(255, 255, 255, 0.32); color: #fff; }

/* 左右箭头：白色半透明圆钮，滑过轮播才出现（参考站 swiper 箭头） */
.hero-arrow {
  position: absolute;
  top: calc(50% + var(--hero-top) / 2);   /* 顶栏盖住的那段不算，在看得到的部分垂直置中 */
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 18px;
  opacity: 0;
  transition: background 0.2s, opacity 0.2s;
}
.hero:hover .hero-arrow,
.hero-arrow:focus-visible { opacity: 1; }
.hero-arrow:hover { background: rgba(0, 0, 0, 0.5); color: #fff; }
.hero-arrow--prev { left: max(16px, calc(var(--hero-edge) - 56px)); }   /* 宽萤幕放在版心外侧，不压到片名与小卡面板 */
.hero-arrow--next { right: max(16px, calc(var(--hero-edge) - 56px)); }

/* 指示器：右下一排圆点（未选白色半透明 6×6、当前蓝色长条 18×6）；按钮本身 24×24 给手指点。
   ≥1200 横幅版另外长成「本期推荐」小卡面板，见下方 */
.hero-picker {
  position: absolute;
  right: var(--hero-gutter);
  bottom: 18px;
  z-index: 3;
}
.hero-picker-hd,
.hero-thumb-pic,
.hero-thumb-name,
.hero-thumb-bar { display: none; }
.hero-thumbs {
  display: flex;
  gap: 0;
}
.hero-thumbs > li { display: flex; }
.hero-thumb {
  position: relative;
  width: 16px;
  height: 24px;
}
.hero-thumb::before {
  content: "";
  position: absolute;
  right: 5px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.6);
  transition: width 0.25s, background 0.2s;
}
.hero-thumb:hover::before { background: #fff; }
.hero-thumb.is-active { width: 28px; }
.hero-thumb.is-active::before { width: 18px; background: var(--accent); }

/* ---------- 「本期推荐」小卡面板（2026-11-16，≥1200、横幅版）----------
   右下角一块深色玻璃面板（rgba(12,18,28,.5)＋blur 12、1px 淡白细边、radius 8）：上排「本期推荐」白字＋「02 / 07」亮蓝序号；
   下排直版小海报卡 52×74（直角，同全站海报），未选压暗（brightness .55，不用 opacity——半透明会透出底色、整排发灰），
   滑过恢复原色并浮出深色片名小签；当前这张浮起 4px、2px 白框，底下进度线（半透明白轨道＋蓝色渐层）在一轮时间（--hero-interval，hero.js 写入）内跑满。
   第一版是白色毛玻璃，压在剧照上明暗不搭、海报发灰，使用者 2026-11-16 选深色玻璃版；
   游标停在面板上（.hero.is-paused）暂停。左下资讯栏右缘让出面板宽度（7 × 52 ＋ 6 × 8 ＋ 内距 28 ＋ 间隔 24），不会叠在一起 */
@keyframes hero-thumb-progress {
  from { width: 0; }
  to { width: 100%; }
}
@media (min-width: 1200px) {
  .hero:not(.hero--poster) .hero-info { right: calc(var(--hero-gutter) + 490px); }
  .hero:not(.hero--poster) .hero-picker {
    right: var(--hero-gutter);
    bottom: 20px;
    padding: 10px 14px 12px;
    border-radius: 8px;
    background: rgba(12, 18, 28, 0.5);
    -webkit-backdrop-filter: blur(12px);
            backdrop-filter: blur(12px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
  .hero:not(.hero--poster) .hero-picker-hd {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 0 0 10px;
    font-size: 12px;
    line-height: 16px;
    color: rgba(255, 255, 255, 0.7);
  }
  .hero-picker-label { font-weight: 700; color: #fff; }
  .hero-picker-count { font-variant-numeric: tabular-nums; }
  .hero-picker-count b { font-size: 14px; font-weight: 700; color: #4db8ff; }   /* 深色玻璃上的亮蓝（--active 的 #0070c0 在深底上太暗） */
  .hero:not(.hero--poster) .hero-thumbs { gap: 8px; align-items: flex-end; }
  .hero:not(.hero--poster) .hero-thumb {
    display: flex;
    flex-direction: column;
    width: 52px;
    height: auto;
  }
  .hero:not(.hero--poster) .hero-thumb::before { display: none; }
  .hero:not(.hero--poster) .hero-thumb-pic {
    display: block;
    width: 52px;
    height: 74px;
    border-radius: var(--radius-poster);
    overflow: hidden;
    background: var(--bg-elevated) url("../img/load.gif") no-repeat center/cover;
    filter: brightness(0.55) saturate(0.85);
    transform-origin: 50% 100%;
    transition: filter 0.25s, transform 0.25s, box-shadow 0.25s;
  }
  .hero:not(.hero--poster) .hero-thumb-pic img { width: 100%; height: 100%; object-fit: cover; }
  .hero:not(.hero--poster) .hero-thumb:hover .hero-thumb-pic,
  .hero:not(.hero--poster) .hero-thumb:focus-visible .hero-thumb-pic { filter: none; }
  .hero:not(.hero--poster) .hero-thumb.is-active .hero-thumb-pic {
    filter: none;
    transform: translateY(-4px);
    box-shadow: 0 0 0 2px #fff, 0 8px 18px rgba(0, 0, 0, 0.45);
  }
  .hero:not(.hero--poster) .hero-thumb-name {
    display: block;
    position: absolute;
    bottom: calc(100% + 42px);   /* 浮到面板上缘外：标题行 16 ＋ 间距 10 ＋ 面板上内距 10 ＋ 6 */
    left: 50%;
    max-width: 160px;
    padding: 0 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.8);
    font-size: 12px;
    line-height: 22px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s, visibility 0s linear 0.15s;   /* §17.64：显示时立刻、收起时淡出完才隐藏 */
  }
  .hero:not(.hero--poster) .hero-thumb:hover .hero-thumb-name,
  .hero:not(.hero--poster) .hero-thumb:focus-visible .hero-thumb-name { opacity: 1; visibility: visible; transition-delay: 0s; }
  .hero:not(.hero--poster) .hero-thumb-bar {
    display: block;
    height: 2px;
    margin-top: 6px;
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.25);
    overflow: hidden;
    opacity: 0;
  }
  .hero:not(.hero--poster) .hero-thumb.is-active .hero-thumb-bar { opacity: 1; }
  .hero-thumb-bar i { display: block; width: 0; height: 100%; background: var(--accent-grad); }
  .hero:not(.hero--poster) .hero-thumb.is-active .hero-thumb-bar i { animation: hero-thumb-progress var(--hero-interval, 6000ms) linear forwards; }
  .hero.is-paused .hero-thumb.is-active .hero-thumb-bar i { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-thumb-bar i { animation: none !important; width: 100% !important; }
}

@media (max-width: 1023px) {
  .hero-info { left: var(--hero-gutter); right: var(--hero-gutter); bottom: 34px; }
  .hero-title { font-size: 20px; }
  .hero-arrow { display: none; }
}
/* 手机：参考站满宽（左右 15）、约 2.2:1；只留标签＋片名＋一行副行；按钮收起，整张卡是详情连结 */
@media (max-width: 767px) {
  .hero--poster .hero-slide.is-prev .hero-card,
  .hero--poster .hero-slide.is-next .hero-card { opacity: 0; pointer-events: none; }
  .hero-card { top: calc(var(--hero-top) + 12px); bottom: 34px; left: auto; right: var(--hero-gutter); transform: none; border-radius: 10px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 12px 24px rgba(0, 0, 0, 0.5); }
  .hero--poster .hero-slide.is-active .hero-card { transform: none; }
  .hero-slide.is-poster .hero-info { right: 40%; }
  .hero-blurb { display: none; }
  .hero-slides { aspect-ratio: 345 / 194; }
  .hero-info { left: var(--hero-gutter); right: var(--hero-gutter); bottom: 26px; }
  .hero-tag { margin-bottom: 4px; }
  .hero-title { font-size: 17px; margin-bottom: 2px; }
  .hero-meta { display: none; }
  .hero-desc { font-size: 12px; line-height: 18px; }
  .hero-actions { display: none; }
  /* 指示器：按钮本身 32×32 给手指点（稽核门槛 32） */
  .hero-picker { right: 6px; bottom: -4px; }
  .hero-thumb { width: 32px; height: 32px; }
  .hero-thumb.is-active { width: 40px; }
  .hero-thumb::before { right: 13px; }
}

/* ========== 分类快捷列：首页 .quick-nav（一级分类＋图示）与分类页 .hero-genre-panel--single（「分类」＋子类型）同一套外观
   （2026-11-17 使用者要求两页统一、往好看的方向设计；样式只写在这里，vod_list.css 只留分类页专属的排版）。
   面板：白底、1px 细框、圆角 12、淡蓝阴影、内距 10/12。膠囊：36 高、圆角 18、#f4f6f9 底、14 字，
   滑过淡蓝底蓝字；选中（分类页「全部」）＝主题蓝渐层白字（同播放来源 tab）。
   ≥768 放不下就横滑（header.js 渐隐提示挂在 .quick-nav-list／.hgp-list）；≤767 首页改图示在上、名字在下的宫格 ========== */
.quick-nav,
.hero-genre-panel.hero-genre-panel--single {
  position: relative;
  z-index: 20;
  width: calc(100% - var(--page-pad) * 2);
  max-width: var(--content-max);
  margin: 0 auto var(--section-gap);
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-base);
  box-shadow: 0 4px 16px rgba(0, 40, 80, 0.05);
}
.quick-nav-list,
.hero-genre-panel--single .hgp-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}
.quick-nav-list {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.quick-nav-list::-webkit-scrollbar { display: none; }
.quick-nav-list > li { display: flex; flex-shrink: 0; }
.quick-nav-item,
.hero-genre-panel--single .hgp-head,
.hero-genre-panel--single .hgp-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  height: 36px;
  padding: 0 16px;
  border-radius: 18px;
  background: #f4f6f9;
  font-size: 14px;
  line-height: 1;
  color: var(--text-1);
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.qn-icon { display: inline-flex; color: var(--accent-ico); font-size: 18px; }
.qn-name { line-height: 1; }
.quick-nav-item:hover,
.hero-genre-panel--single .hgp-head:hover,
.hero-genre-panel--single .hgp-tag:hover { background: #eef6fd; color: var(--active); }
.hero-genre-panel--single .hgp-head.is-active {
  background: linear-gradient(135deg, #0070c0 0%, #007bcc 100%);
  box-shadow: 0 4px 12px rgba(0, 112, 192, 0.25);
  color: #fff;
  font-weight: 700;
}
@media (max-width: 767px) {
  .quick-nav,
  .hero-genre-panel.hero-genre-panel--single { padding: 8px; border-radius: 10px; }
  /* 首页：一排平均分配的图示宫格（6 类刚好放满），放不下（最小 58 宽）才横滑；膠囊底拿掉 */
  .quick-nav .quick-nav-list { gap: 0; }
  .quick-nav .quick-nav-list > li { flex: 1 0 58px; justify-content: center; }
  .quick-nav .quick-nav-item {
    flex-direction: column;
    gap: 6px;
    height: auto;
    min-height: 58px;
    padding: 6px 0;
    border-radius: 8px;
    background: none;
    font-size: 13px;
  }
  .quick-nav .qn-icon { font-size: 26px; }
  .quick-nav .quick-nav-item:hover { background: #eef6fd; }
  .quick-nav-item,
  .hero-genre-panel--single .hgp-head,
  .hero-genre-panel--single .hgp-tag { height: 32px; padding: 0 13px; font-size: 13px; }
}

/* ========== 区块（参考站 .hl-row-box：不包卡片、白底平铺、区块间距 25（以甲方 24 为准）；
   标题列：蓝色线条图示＋h2 24/700 #222，右侧灰色「更多 ›」） ========== */
.section,
.content-block {
  position: relative;
  width: calc(100% - var(--page-pad) * 2);
  max-width: var(--content-max);
  margin: 0 auto var(--section-gap);
  padding: var(--panel-pad);
  background: var(--bg-panel);
}

.section-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 30px;
  margin-bottom: var(--title-gap);
}
/* 顺序：标题 → 更多（紧跟标题，参考站「电影 更多 ›」）→ 本类日排行（推到右边） */
.section-header > * { order: 3; }
.section-head {
  order: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  min-width: 0;
}
.section-kicker { display: none; }

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
  color: var(--text-title);
  white-space: nowrap;
}
.section-title a { display: inline-flex; align-items: center; gap: 8px; color: inherit; }
.section-title a:hover { color: var(--link-hover); }
.playlist-title { display: inline-flex; align-items: center; }

/* 标题前的蓝色线条图示（参考站 .hl-rb-title 前的 iconfont） */
.section-icon,
.section-title > .mac-icon,
.section-title a > .mac-icon { flex-shrink: 0; font-size: 28px; color: var(--accent-ico); }

/* 「更多 ›」：14px 灰字、紧跟在标题右边 */
.section-more-pill,
.section-more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  order: 1;
  font-size: 14px;
  line-height: 24px;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color 0.2s;
}
.section-more-pill .mac-icon,
.section-more .mac-icon { font-size: 12px; }
.section-more-pill:hover,
.section-more:hover { color: var(--active); }

@media (max-width: 767px) {
  .section-title { font-size: 20px; line-height: 26px; }
  .section-icon,
  .section-title > .mac-icon,
  .section-title a > .mac-icon { font-size: 24px; }
}

.section-subcats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0;
  height: 24px;
  min-width: 0;
  overflow: hidden;
}
.section-subcat {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 24px;
  font-size: 14px;
  color: var(--text-1);
  white-space: nowrap;
  transition: color 0.2s;
}
.section-subcat::after {
  content: "/";
  margin: 0 10px;
  color: var(--border-2);
}
.section-subcat:hover { color: var(--active); }

/* 首页分类区块标题列的「本类日排行」10 条（decisions.md 首页基线／index.md 2.3）：
   外观照参考站排行列表：名次彩色数字（1 红／2 橙／3 黄／其余灰）＋片名，一排；手机隐藏。
   放不下时片名限宽 6em＋省略号（title 带全名），两端出现 ‹ › 一次捲一段（home.js 依 scrollLeft 切 .can-left／.can-right） */
.sh-dayrank-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-left: 24px;
}
.sh-dayrank {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.sh-dayrank-wrap.can-right .sh-dayrank {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent 100%);
          mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent 100%);
}
.sh-dayrank-wrap.can-left .sh-dayrank {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px);
          mask-image: linear-gradient(to right, transparent 0, #000 40px);
}
.sh-dayrank-wrap.can-left.can-right .sh-dayrank {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}
.sdr-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-1);
  font-size: 13px;
  transition: opacity 0.2s, color 0.2s;
}
.sdr-arrow[hidden] { display: none; }
.sdr-arrow:hover { color: var(--active); }
.sdr-arrow:disabled { opacity: 0.35; pointer-events: none; }
.sdr-name {
  max-width: 6em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sh-dayrank::-webkit-scrollbar { display: none; }
.sh-dayrank a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  height: 24px;
  font-size: 14px;
  color: var(--text-2);
  white-space: nowrap;
  transition: color 0.2s;
}
.sh-dayrank a:hover { color: var(--active); }
/* 名次：参考站只变字色 16/700（1 红、2 橙、3 黄、其余灰），不加底块 */
.sdr-num {
  display: inline-block;
  min-width: 12px;
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  color: var(--rank-num);
}
.sh-dayrank a:nth-child(1) .sdr-num { color: var(--rank-1); }
.sh-dayrank a:nth-child(2) .sdr-num { color: var(--rank-2); }
.sh-dayrank a:nth-child(3) .sdr-num { color: var(--rank-3); }

.section-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.section-title-icon { color: var(--active); font-size: 20px; display: flex; }
.section-hd .section-title { font-size: 20px; }

.section-count { margin-left: 10px; font-family: inherit; font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--text-3); }
.section-count em { font-style: normal; color: var(--active); }
.list-empty { padding: 40px 0; text-align: center; color: var(--text-3); font-size: 14px; }

.section-main { width: 100%; }

/* ========== 影视卡片网格 ========== */
.vod-row,
.vod-grid,
.play-vod-grid,
.detail-vod-grid,
.td-vod-grid,
.plot-related-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));   /* 甲方基准 PC 6 栏 */
  gap: var(--grid-gap-y) var(--grid-gap-x);
}
.vod-row > .card,
.vod-grid > .card,
.play-vod-grid > .card,
.detail-vod-grid > .card,
.td-vod-grid > .card,
.plot-related-grid > .card {
  flex: none;
  width: 100%;
  min-width: 0;
}

/* 首页「热播推荐」一行 9 张 × 2 行 = 18（3 广告 + 15）：PC 9／平板 6／手机 3 都刚好排满（强制 5.2 取 3 的倍数）。
   承袭 tp34（使用者 2026-10-01 定案 9 × 2），不采用参考站的 6 张横滑 */
.section--hot .vod-grid--hot9 { grid-template-columns: repeat(9, 1fr); }
/* 热播 9 栏卡片偏小（1440 时 122 宽）：左右栏距 20→10，卡片放大到约 131（2026-11-17 使用者要求）。
   只改这一区；上下行距照全站 --grid-gap-y。手机本来就是 10 */
.section--hot .vod-grid--hot9 { column-gap: 10px; }
/* 筛选页 9 列 / 27 条（decisions.md 基线）。⚠️ 必须写在下面的 ≤1199 规则之前：两条特异性相同（0,2,0），
   写在后面会盖掉平板的 6 栏（原本就这样，768 宽卡片只剩 64px，2026-10-27 目视检查抓到） */
.vod-grid.vod-grid--c9 { grid-template-columns: repeat(9, 1fr); }
/* 筛选页结果 9 栏：左右栏距 20→10，卡片放大（2026-11-17 使用者要求，同首页热播） */
.vod-grid.vod-grid--c9 { column-gap: 10px; }
/* 平板（≤1199）影视卡欄數：甲方基准 decisions.md 第 11 行「≤1199px 4 列、≤600px 3 列」。
   PC 9 栏的两处（首页热播、筛选页的 .vod-grid--c9）平板改 6：18／27 张在 6 栏刚好排满，4 栏会留空格。
   使用者 2026-10-01 定案 6／4／3（不沿用 tp26 的平板 6 栏特例）。手机 3 栏在下方 ≤767 规则。 */
@media (max-width: 1199px) {
  .vod-row,
  .vod-grid,
  .play-vod-grid,
  .detail-vod-grid,
  .td-vod-grid,
  .plot-related-grid { grid-template-columns: repeat(4, 1fr); }
  .section--hot .vod-grid--hot9,
  .vod-grid.vod-grid--c9 { grid-template-columns: repeat(6, 1fr); }
}
.section--hot:not(:has(.card)) { display: none; }

.actor-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: var(--grid-gap-y) var(--grid-gap-x);
}

/* ---------- 卡片（参考站 .hl-list-item：海报 193×280、直角；底部渐层 rgba(0,0,0,.5) 上靠右白字备注 12px；
   下方片名 15/20 #222 一行 ＋ 副行 13 灰字（蓝色粗体分数在最前）。
   参考站 hover 是压暗 .4＋正中播放圆钮——甲方基准不要播放 icon；PC 由 popout 浮层盖上，手机不做 hover ---------- */
.card {
  position: relative;
  min-width: 0;
}
/* 卡片区块（2026-11-17 使用者要求「卡片区块感」）：原本海报下面是裸文字直接放在白底上，一排卡看起来散。
   海报＋文字包成一块白底：1px --border 细框＋很淡的阴影、圆角 --radius 4（海报上两角跟着裁圆），文字区补左右内距。
   不加新颜色，跟全站面板同一套圆角与框线；用 border 不用 box-shadow 画框——横向捲动列会把外扩的阴影裁掉，框线不会。
   高度撑满格子（同一排卡底边对齐）。PC hover 仍由 popout 浮层盖上，这里不另做 hover。
   ⚠️ vod_card_ad 与 vod_card 同一套 class，一起变 */
.card-teaser {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-base);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.card-link {
  display: block;
  height: 100%;
  color: var(--text-1);
}

.card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: var(--poster-ratio);
  border-radius: var(--radius-poster);
  overflow: hidden;
  background: var(--bg-elevated) url("../img/load.gif") no-repeat center/cover;
  transform: translateZ(0);
}
.card-cover.img-loaded { background-image: none; }
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
/* 底部渐层（参考站 .hl-pic-text：30 高、transparent → rgba(0,0,0,.5)） */
.card-cover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
}
/* 备注角标（2026-11-17 使用者选 B）：原本白字直接压在上面那条渐层上，文字中心只有约 25% 黑，
   海报底部偏亮（米黄、浅紫）时看不清。改成右下角主题蓝 #0070c0 小方标：白字对比 5.2:1，不看海报颜色。
   宽度跟着文字走，太长（「更新至第118集」之类）就在卡片宽度内省略 */
.card-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  max-width: calc(100% - 12px);
  padding: 0 6px;
  font-size: 12px;
  line-height: 20px;
  color: #fff;
  background: var(--active);
  border-radius: 2px;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.card-meta {
  display: block;
  min-height: var(--card-meta-h);
  padding: 9px 10px 10px;
}
.card-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.card-title {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 20px;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}
.card-sub {
  margin-top: 4px;
  font-size: 13px;
  line-height: 17px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-score {
  margin-right: 5px;
  font-size: 14px;
  font-weight: 700;
  color: var(--active);
}
.card:hover .card-title { color: var(--active); }
@media (max-width: 767px) {
  .card-meta { padding: 7px 8px 8px; }
  .card-title { font-size: 14px; line-height: 19px; }
  .card-sub { font-size: 12px; line-height: 16px; }
  .card-score { font-size: 12px; }
}

/* ---------- hover 详情浮层（skill 强制 15：vod_card_popout ＋ vod_card.js 边缘翻转） ---------- */
.card-detail-wrap {
  width: 100%;
  height: 0;
}
.card-detail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: -1;
  border-radius: var(--radius);
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: 50% center;
  background-size: cover;
  background-color: var(--bg-card);
  box-shadow: var(--shadow-hover);
  cursor: default;
  transition: width 0.1s ease-out, height 0.1s ease-out, top 0.1s ease-out, left 0.1s ease-out;
}
/* 没有海报：no-pic 置中缩小，跟卡片 img.is-nopic（contain＋留白）同一个样子 */
.card-detail.is-nopic { background-color: var(--bg-elevated); background-size: 76% auto; }
.cd-link { display: block; width: 100%; height: 100%; color: inherit; }
.cd-link:hover { color: inherit; }
.cd-cover {
  position: absolute;
  z-index: 111;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 38%, rgba(0, 0, 0, 0.92) 100%);
}
.cd-badge {
  position: absolute;
  top: 7px;
  left: 9px;
  z-index: 113;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--badge);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
  max-width: calc(100% - 18px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.cd-ctn {
  position: absolute;
  z-index: 112;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px 10px 0;
}
.cd-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}
.cd-title-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-score { flex-shrink: 0; font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: #4db8ff; }
.cd-tags {
  display: flex;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
  margin: 8px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}
.cd-tags span {
  flex-shrink: 0;
  max-width: 5em;
  padding: 0 6px;
  margin-right: 5px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.112);
  background-color: rgba(0, 0, 0, 0.3);
  line-height: 18px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cd-tags span:last-child { margin-right: 0; }
.cd-intro { font-size: 12px; color: rgba(255, 255, 255, 0.8); }
.cd-il { color: rgba(255, 255, 255, 0.55); }
.cd-date,
.cd-starring {
  height: 20px;
  line-height: 20px;
  margin-bottom: 4px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.cd-story {
  height: 40px;
  line-height: 20px;
  margin-bottom: 6px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.cd-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 10px;
}
.cd-hot { display: flex; align-items: center; gap: 4px; }
.cd-hot .mac-icon { font-size: 16px; color: #4db8ff; }
.cd-hot-num { font-size: 12px; color: #4db8ff; }
.cd-dialog {
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 400;
  color: var(--on-accent);
  border-radius: var(--radius-pill);
  background: var(--accent-grad);
}

/* 浮层尺寸：卡片的 130%×112%，但至少 260×300（2026-10-14 使用者要求）。
   首页热播 9 栏的卡只有 122 宽，原本浮层才 159，类型标签与主演都被截掉；6 栏卡本来就 ≥251，不受影响。
   以卡片为中心展开；左右放不下（贴视窗边，或被横向卷动列裁切）时由 vod_card.js 加 pop-left／pop-right 往内翻。
   ⚠️ 260／130% 两个数字要与 vod_card.js 的 POP_MIN_W／POP_SCALE 同步，否则贴边判断会算错、浮层被裁掉。 */
@media (any-hover: hover) and (min-width: 768px) {
  .card { --pop-w: max(130%, 260px); --pop-h: max(112%, 300px); }
  .card:hover .card-detail {
    opacity: 1;
    z-index: 110;
    width: var(--pop-w);
    height: var(--pop-h);
    top: calc((100% - var(--pop-h)) / 2);
    left: calc((100% - var(--pop-w)) / 2);
  }
  .card.pop-left:hover .card-detail { left: 0; }
  .card.pop-right:hover .card-detail { left: calc(100% - var(--pop-w)); }
}
@media (hover: none), (pointer: coarse) {
  .card-detail-wrap { display: none; }
}

/* 浮层外框：2px 蓝框（参考站卡片 hover 只有压暗，这里浮层盖住卡片，用主色框标出「目前这一张」） */
.card-detail::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 115;
  border: 2px solid var(--accent);
  border-radius: inherit;
  pointer-events: none;
}


/* ========== 排行榜列（参考站「电影排行榜」：名次只变字色 16/700、片名 14 #222、右侧灰字，行高 39、无分隔线）
   首页总榜、排行榜页、详情侧栏（同类热播／专题）共用。
   排行榜页每栏一块 #f8f8f8 圆角 4 面板（参考站次区块色）；首页那块不画面板 ========== */
.rank-col {
  min-width: 0;
}
.rank-wrap .rank-col {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg-sub);
}
.section .rank-col { padding: 0; }
.rank-col-hd {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 10px;
}
.rank-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding-right: 10px;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: var(--text-title);
}
.rch-badge { font-size: 12px; padding: 0 6px; line-height: 20px; border-radius: var(--radius-sm); background: var(--bg-muted); color: var(--text-2); }
.rank-col-more { flex-shrink: 0; margin-left: auto; font-size: 14px; line-height: 24px; color: var(--text-dim); white-space: nowrap; }
.rank-col-more:hover { color: var(--link-hover); }

/* 榜首：左图右字 */
.rank-top1 { padding: 0 0 10px; }
.rank-top1 a { display: flex; gap: 15px; color: inherit; }
.rt1-thumb {
  position: relative;
  flex-shrink: 0;
  width: 70px;
  aspect-ratio: var(--poster-ratio);
  border-radius: var(--radius-poster);
  overflow: hidden;
  background: var(--bg-elevated) url("../img/load.gif") no-repeat center/cover;
}
.rt1-thumb::after {
  content: "1";
  position: absolute;
  left: 0;
  top: 0;
  min-width: 20px;
  height: 20px;
  border-radius: 0 0 4px 0;
  background: var(--rank-1);
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  color: #fff;
  pointer-events: none;
}
.rt1-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rt1-info { flex: 1; min-width: 0; }
.rt1-name {
  position: relative;
  margin: 6px 0 8px;
  padding-right: 18px;
  font-size: 16px;
  font-weight: 700;
  line-height: 25px;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rt1-name::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.rank-top1 a:hover .rt1-name { color: var(--link-hover); }
.rt1-meta,
.rt1-status {
  margin: 0 0 5px;
  font-size: 12px;
  line-height: 18px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-li-inner {
  display: flex;
  align-items: center;
  height: 39px;
  font-size: 14px;
  line-height: 18px;
  color: var(--text-1);
}
.rank-li-inner:hover { color: var(--active); }
/* 名次：参考站 .hl-part-nums 只变字色 16/700；1 红、2 橙、3 黄、其余灰 */
.rl-num {
  flex-shrink: 0;
  min-width: 20px;
  margin-right: 10px;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
  color: var(--rank-num);
}
/* 榜首已在 .rank-top1，列表从第 2 名起：第 1、2 项就是第 2、3 名 */
.rank-list > li:nth-child(1) .rl-num { color: var(--rank-2); }
.rank-list > li:nth-child(2) .rl-num { color: var(--rank-3); }
/* 没有榜首卡、从第 1 名起的整串榜单（搜索页右栏） */
.rank-list--full > li:nth-child(1) .rl-num { color: var(--rank-1); }
.rank-list--full > li:nth-child(2) .rl-num { color: var(--rank-2); }
.rank-list--full > li:nth-child(3) .rl-num { color: var(--rank-3); }
.rank-list--full > li:nth-child(n+4) .rl-num { color: var(--rank-num); }
.rl-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 400; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rl-hits,
.rl-remarks {
  flex-shrink: 0;
  max-width: 45%;
  margin-left: 10px;
  font-size: 13px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rl-remarks { font-size: 12px; color: var(--text-dim); }
.rl-hits .mac-icon { font-size: 12px; color: var(--text-dim); }

.section .rank-grid--home {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.section .rank-grid--home .rank-col {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg-sub);
}

.rank-col--topic { margin-top: 16px; }

/* ========== 通用弹窗 / toast（沿用 tp26，颜色全部走变量） ========== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 600;
  align-items: center;
  justify-content: center;
}
.modal-overlay.is-open { display: flex; }

.modal-box {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  width: 340px;
  max-width: calc(100vw - 32px);
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  color: var(--text-3);
  font-size: 16px;
  padding: 4px 6px;
  border-radius: var(--radius);
  transition: color 0.2s;
}
.modal-close:hover { color: var(--text-1); }
.modal-title { font-size: 18px; font-weight: 700; margin-bottom: 24px; color: var(--text-1); }
.modal-field { margin-bottom: 16px; }
.modal-label { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.modal-input {
  width: 100%;
  padding: 10px 13px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.modal-input:focus { border-color: var(--accent); }
.modal-submit {
  width: 100%;
  padding: 13px;
  background: var(--accent-grad);
  color: var(--on-accent);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 400;
  transition: background 0.2s;
  margin-top: 6px;
}
.modal-submit:hover { opacity: 0.9; }

.verify-row { display: flex; align-items: center; gap: 8px; }
.modal-input--verify { flex: 1; }
.verify-img { height: 36px; width: auto; border-radius: var(--radius-sm); border: 1px solid var(--border-2); cursor: pointer; flex-shrink: 0; }
.sms-btn { height: 38px; padding: 0 12px; background: var(--bg-elevated); border: 1px solid var(--border-2); border-radius: var(--radius-sm); color: var(--active); font-size: 12px; white-space: nowrap; cursor: pointer; transition: background .15s; }
.sms-btn:hover { background: var(--bg-card); }
.sms-btn:disabled { opacity: .55; cursor: not-allowed; }

.mac-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  background: var(--bg-elevated);
  color: var(--text-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 22px;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: var(--shadow-drop);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  white-space: pre-line;
  max-width: calc(100vw - 48px);
  text-align: center;
}
.mac-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.mac-toast--error   { border-color: #fc4274; color: #d6264f; }
.mac-toast--success { border-color: var(--accent); color: var(--active); }
.mac-toast--info    { border-color: var(--border-2); color: var(--text-2); }

.modal-footer {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-3);
}
.modal-link { color: var(--text-2); transition: color 0.2s; }
.modal-link:hover { color: var(--active); }
.modal-link--accent { color: var(--active); }

.modal-box--confirm { width: 300px; text-align: center; }
.modal-box--confirm .modal-title { margin-bottom: 22px; }
.modal-confirm-actions { display: flex; flex-direction: column; gap: 10px; }
.modal-submit--danger { display: block; background: var(--accent-2); }
.modal-submit--danger:hover { background: var(--accent-2-alt); }
.modal-cancel {
  width: 100%;
  padding: 13px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 400;
  transition: background 0.2s, color 0.2s;
}
.modal-cancel:hover { color: var(--text-1); border-color: var(--active); }
/* ========== 留言（共用） ========== */
.comment-section { margin-bottom: 32px; }
/* .gbook-count 只有留言板一页在用，单一来源在 gbook.css（强制11.9） */
/* 留言板（gbook/index）的列表与表单样式单一来源在 gbook.css；这里原本还有一份表单副本（.gbook-form／-textarea／-submit-btn…），
   被 gbook.css 覆盖、其余 class 也没有页面在用，已移除（tp43 A24，强制11.9） */
.rank-col--topic { margin-top: 16px; }
.rct-list { list-style: none; padding: 6px 12px 10px; display: flex; flex-direction: column; gap: 10px; }
.rct-link { display: flex; align-items: center; gap: 10px; }
.rct-thumb {
  flex-shrink: 0; width: 56px; height: 36px;
  border-radius: var(--radius-sm); overflow: hidden;
  background: var(--bg-elevated) url("../img/load.gif") no-repeat center/cover;
}
.rct-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rct-name { flex: 1; min-width: 0; font-size: 13px; color: var(--text-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rct-link:hover .rct-name { color: var(--active); }

/* ========== 资讯卡／专题卡 ==========
   资讯卡：参考站没有，依它的卡片语言延伸（16:9 圆角 2、左上黄底分类角标、片名 15/500、等宽日期）。
   专题卡：参考站「专题合集」砖——--bg-2 底＋每张不同色相的斜向渐层、等宽小标（各自的色）、衬线标题 20/700、
   两行简介、右下「浏览 →」；封面图淡淡铺在底下。hover 框线转该色 */
.art-grid,
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));   /* 使用者 2026-10-27：宽屏 6 栏、其余 3 栏（3 的倍数；12／24 条都排满） */
  gap: 22px 16px;
}
.art-grid > .art-grid-item,
.topic-grid > .topic-grid-item { display: flex; min-width: 0; }
.art-grid > .art-grid-item > .art-card,
.topic-grid > .topic-grid-item > .topic-card { flex: 1; min-width: 0; }

.art-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--text-1);
}
.art-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-thumb);
  background: var(--bg-card) url("../img/load.gif") no-repeat center/cover;
  transition: transform 0.25s, box-shadow 0.25s;
}
.art-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.art-card-nopic { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 36px; color: var(--text-3); }
.art-card-cat {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 0 6px;
  border-radius: var(--radius-sm);
  background: var(--badge);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 400;
  line-height: 19px;
}
.art-card-body { padding-top: 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.art-card-title {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.art-card-date { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0; color: var(--text-3); }
.art-card:hover .art-card-title { color: var(--link-hover); }
@media (hover: hover) {
  .art-card:hover .art-card-thumb { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
}

/* ---------- 专题卡（widget/topic_card，首页、专题页、详情页侧栏共用）：参考站「专题」砖——
   封面 16:9、圆角 5、整张压暗 .55；正中三行「☆ 专题」12 →「— N 个影片 —」12 → 专题名 14（最多两行），全部白字置中。
   hover：压暗变浅、专题名转橙 ---------- */
.topic-card {
  position: relative;
  display: block;
  min-width: 0;
  color: #fff;
}
.topic-card:hover { color: #fff; }
.topic-card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-elevated) url("../img/load.gif") no-repeat center/cover;
}
.topic-card-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.topic-card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.55);
  transition: background 0.3s;
}
.topic-card-body {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 12px;
  text-align: center;
}
.topic-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.9);
}
.topic-card-tag .mac-icon { font-size: 13px; }
/* 「— N 个影片 —」：两侧短线 */
.topic-card-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}
.topic-card-count::before,
.topic-card-count::after {
  content: "";
  width: 14px;
  height: 1px;
  background: currentColor;
}
.topic-card-title {
  margin: 2px 0 0;
  max-width: 100%;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-wrap: balance;
  transition: color 0.2s;
}
.topic-card-title .tc-word { white-space: nowrap; }
.topic-card:hover .topic-card-title { color: var(--active); }
@media (hover: hover) {
  .topic-card:hover .topic-card-cover::after { background: rgba(0, 0, 0, 0.4); }
  .topic-card:hover .topic-card-cover > img { transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .topic-card-cover > img { transition: none; }
}
/* 宽屏 6 栏（甲方 decisions 专题列表 6 列）、其余 3 栏（参考站 3 栏）；资讯卡跟专题卡同一组断点 */
@media (min-width: 1360px) {
  .art-grid,
  .topic-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .topic-grid .topic-card-tag,
  .topic-grid .topic-card-count { font-size: 11px; }
  .topic-grid .topic-card-title { font-size: 13px; line-height: 18px; }
}
/* 手机 3 栏（卡宽约 110）：封面改直式 3:4，字缩小 */
@media (max-width: 767px) {
  .art-grid,
  .topic-grid { gap: 12px 8px; }
  .topic-grid .topic-card-cover { aspect-ratio: 3 / 4; }
  .topic-grid .topic-card-body { padding: 6px; gap: 2px; }
  .topic-grid .topic-card-tag,
  .topic-grid .topic-card-count { font-size: 11px; }
  .topic-grid .topic-card-count::before,
  .topic-grid .topic-card-count::after { width: 8px; }
  .topic-grid .topic-card-title { font-size: 12px; line-height: 16px; -webkit-line-clamp: 3; }
}

/* ========== 分页（参考站 .hl-page-wrap：38 高、1px #f2f2f2 框、圆角 2、14px #666；当前页蓝底白字；停用灰字） ========== */
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; padding: 20px 0 0; }   /* 底部不留：分页在面板里靠面板内距、在页尾靠外层容器补 --section-gap */
.pagination ul,
.pagination ol { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pg-btn,
.pg-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 38px;
  padding: 0 15px;
  border: 1px solid var(--bg-muted);
  border-radius: var(--radius-btn);
  background: var(--bg-base);
  color: var(--text-2);
  font-size: 14px;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.pg-num { padding: 0 10px; }
.pg-btn:hover,
.pg-num:hover { color: var(--active); }
.pg-num.is-active,
.pg-num[aria-current] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.pg-btn.is-disabled,
.pg-btn[aria-disabled="true"] { color: var(--text-disabled); pointer-events: none; }
.pg-info { font-size: 14px; color: var(--text-dim); margin-left: 12px; }

/* ========== 页脚（参考站 .conch-footwrap：#f8f8f8 满宽、上下 40、置中灰字 14px） ========== */
.site-footer {
  margin-top: 0;   /* 上方最后一块自带 margin-bottom（--section-gap），这里不再叠加（甲方强制 20：模块间距统一） */
  padding: 40px var(--page-pad);
  background: var(--bg-sub);
  font-size: 14px;
  line-height: 28px;
  color: var(--text-dim);
  text-align: center;
}
.site-footer > p { max-width: calc(var(--content-max) + var(--page-pad) * 2); margin: 0 auto; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 6px;
}
.footer-links a { color: var(--text-2); }
.footer-links a:hover { color: var(--active); }
/* 首页「友情链接」：#666 连结一排，间距 20 */
.section .footer-links { justify-content: flex-start; gap: 6px 20px; }
.section .footer-links a {
  font-size: 14px;
  line-height: 24px;
  color: var(--text-2);
  transition: color 0.2s;
}
.section .footer-links a:hover { color: var(--active); }
.footer-bottom-bar { color: var(--text-dim); }

/* ========== 右侧悬浮钮（tp39 定案的两颗：手机观看 QR＋回到顶部）；36 圆形（参考站尺寸），配色改主题蓝实底＋白图示、hover 加深（2026-11-17 使用者要求） ========== */
.fab-group {
  position: fixed;
  right: var(--fab-right);
  bottom: var(--fab-bottom);
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 8px;
  user-select: none;
}
.fab-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--fab-w);
  height: var(--fab-w);
  border-radius: 50%;
  background: var(--fab-bg);
  color: var(--fab-color);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 4px 12px rgba(0, 112, 192, 0.35);   /* 外圈细白边：压在深色轮播或海报上也分得出轮廓 */
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.fab-btn .mac-icon { font-size: 18px; }
.fab-btn:hover { background: #00508c; color: #fff; }
.fab-btn--top { display: none; background: var(--fab-top-bg); color: var(--fab-color); }
.fab-btn--top.is-visible { display: flex; }
.fab-btn--top:hover { background: #00508c; color: #fff; }

/* 滑过时左侧滑出文字提示（同 tp26 .fab-hint） */
.fab-hint {
  position: absolute;
  top: 50%;
  right: calc(100% + 8px);
  transform: translateY(-50%);
  padding: 0 12px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 12px;
  line-height: 30px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s;
}
@media (hover: hover) {
  .fab-btn:hover .fab-hint { opacity: 1; visibility: visible; }
}
.fab-btn--qr[aria-expanded="true"] .fab-hint { display: none; }
.fab-btn--qr[aria-expanded="true"] { background: #00508c; color: #fff; }

/* 二维码弹层：在按钮组左侧；白底是扫码需要，文字／边框用固定色不走皮肤变量（§17.48） */
.fab-qr-popup {
  position: fixed;
  right: calc(var(--fab-right) + var(--fab-w) + 10px);
  bottom: var(--fab-bottom);
  z-index: 999;
  display: none;
  width: 150px;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  text-align: center;
}
.fab-qr-popup.is-open { display: block; }
.fab-qr-popup p { margin-bottom: 8px; font-size: 12px; color: #666; }
.fab-qr-popup img { display: block; width: 130px; height: 130px; background: #fff; }

/* ≤1199 不显示「手机观看」（同 tp26：平板／手机本身就是手持装置） */
@media (max-width: 1199px) {
  .fab-btn--qr,
  .fab-qr-popup { display: none !important; }
  .fab-hint { display: none; }
}

/* ========== 观看记录下拉（白底面板 260、padding 20、阴影） ========== */
.tb-hist-wrap { position: relative; display: flex; align-items: center; height: 100%; }

.hist-dropdown {
  position: absolute;
  top: 100%;
  right: -20px;
  width: 280px;
  padding: 20px;
  color: var(--text-1);
  background-color: var(--bg-drop);
  border-radius: var(--radius);
  box-shadow: var(--shadow-drop);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0s linear 0.2s;
}
@media (hover: hover) {
  .tb-hist-wrap:hover .hist-dropdown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
}
.hist-dropdown.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

.hist-dropdown .history-list {
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.hist-dropdown .history-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-1);
  font-size: 13px;
}
.hist-dropdown .history-item:last-child { border-bottom: 0; }
.hist-dropdown .history-item:hover { color: var(--active); }
.hist-dropdown .item-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-dropdown .item-meta { flex-shrink: 0; font-size: 12px; color: var(--text-2); }
.hist-dropdown .history-empty { padding: 10px 0; font-size: 14px; color: var(--text-2); text-align: center; }

.hist-dropdown .history-foot {
  display: flex;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.hist-dropdown .history-clear {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--active);
  background: none;
  border: 0;
}
.hist-dropdown .history-clear .mac-icon { font-size: 14px; }
.hist-dropdown .history-more { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; font-size: 12px; color: var(--text-2); }
.hist-dropdown .history-more .mac-icon { font-size: 12px; }
.hist-dropdown .history-more:hover { color: var(--link-hover); }
.hist-dropdown.is-empty .history-clear,
.hist-dropdown.is-empty .history-more { opacity: 0.45; pointer-events: none; }

/* ========== 分类抽屉 #mobNavDrawer（≤1023 顶栏 ☰ 开启；参考站手机「导航」抽屉：从右侧滑出、整高、
   标题 18/700 ＋ ×、项目 15px 一行一条、hairline 分隔）。
   z 轴：顶栏 999 < 遮罩 1000 < 抽屉 1001 < 搜索弹层 1003。
   收起时 visibility:hidden，不能被 Tab 聚焦；visibility 用 0s 延迟收（§17.64） */
.mob-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}
.mob-nav-overlay.is-open { display: block; }

.mob-nav-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 1001;
  width: min(300px, 82vw);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--player-scroll) transparent;
  border-left: 1px solid var(--border);
  background: var(--bg-dock);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.25s ease, visibility 0s linear 0.25s;
}
.mob-nav-drawer.is-open { visibility: visible; transform: none; transition-delay: 0s; }
.mob-nav-drawer::-webkit-scrollbar { width: 6px; background: transparent; }
.mob-nav-drawer::-webkit-scrollbar-thumb { border-radius: var(--radius); background: var(--player-scroll); }

.mnd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-h);
  padding: 0 12px 0 22px;
}
.mnd-title { font-family: var(--font-serif); font-size: 18px; font-weight: 700; color: var(--text-title); }
.mnd-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 18px;
  color: var(--text-2);
}
.mnd-close:hover { color: var(--text-1); }

.mnd-nav { margin: 0 22px; padding: 0 0 24px; list-style: none; }
.mnd-nav > li { min-width: 0; border-bottom: 1px solid var(--border-row); }
.mnd-item {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 8px;
  font-size: 15px;
  color: var(--text-2);
  transition: color 0.2s;
}
.mnd-item:hover { color: var(--text-1); }
.mnd-item.is-active { color: var(--active); font-weight: 700; }

.mnd-subs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 8px 12px;
}
.mnd-subs:empty { display: none; }
.mnd-sub {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  font-size: 12px;
  color: var(--text-3);
  transition: border-color 0.2s, color 0.2s;
}
.mnd-sub:hover { border-color: var(--active); color: var(--active); }

/* ========== 搜索下拉（历史 + 热门，强制18.2；header.js 渲染） ========== */
.search-drop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 60;
  min-width: 260px;
  padding: 10px 0;
  background: var(--bg-drop);
  border-radius: var(--radius);
  box-shadow: var(--shadow-drop);
  max-height: 60vh;
  overflow-y: auto;
  text-align: left;
}
.search-drop--overlay { position: relative; top: auto; margin-top: 10px; background: none; box-shadow: none; }
.search-drop .sd-group + .sd-group { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 6px; }
.sd-group-hd { display: flex; align-items: center; justify-content: space-between; padding: 4px 15px; }
.sd-label { font-size: 11px; color: var(--text-2); }
.sd-clear { font-size: 11px; color: var(--active); background: none; border: 0; padding: 0; cursor: pointer; }
.sd-list { list-style: none; margin: 0; padding: 0; }
.sd-item { display: flex; align-items: center; gap: 10px; padding: 0 15px; transition: background 0.15s; }
.sd-item:hover { background: var(--fill-1); }
.sd-num {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-sm);
  background: var(--fill-2);
  font-size: 11px;
  line-height: 18px;
  color: var(--text-1);
  text-align: center;
}
.sd-item:nth-child(1) .sd-num { background: var(--rank-1); color: #fff; }
.sd-item:nth-child(2) .sd-num { background: var(--rank-2); color: #fff; }
.sd-item:nth-child(3) .sd-num { background: var(--rank-3); color: #fff; }
.sd-word {
  flex: 1;
  min-width: 0;
  padding: 7px 0;
  text-align: left;
  font-size: 13px;
  color: var(--text-1);
  background: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s;
}
.sd-item:hover .sd-word { color: var(--active); }

/* ========== 响应式 ========== */
/* ≤1279：导览项目多时收紧间距、搜索框缩短；导览放不下就整列横滑 */
@media (max-width: 1279px) {
  .topbar-inner { gap: 20px; }
  .tb-nav-item { padding: 0 9px; }
  .topbar-right .tb-search { width: 240px; margin-right: 6px; }
}

/* ≤1023：导览收进右侧抽屉、搜索框收起改放大镜弹层；顶栏一列 56：logo ／ 放大镜 · 观看记录 · ☰ */
@media (max-width: 1023px) {
  .topbar .tb-nav { display: none; }
  .topbar-right .tb-search { display: none; }
  .topbar-right #searchToggle { display: inline-flex; }
  .topbar-inner .tb-menu-btn { display: inline-flex; }
  .topbar-right { gap: 0; }
  /* 参考站手机顶栏：放大镜／记录／☰ 只留图示 */
  .tb-action-label { display: none; }
  .tb-action { min-width: 40px; padding: 0 8px; }
  .tb-action .mac-icon { font-size: 22px; }
  .brand-logo-img { height: 30px; max-width: 130px; }

  .actor-row { grid-template-columns: repeat(6, 1fr); }
  .section .rank-grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .topbar-inner { padding: 0 var(--hdr-x); }
  .topbar-right { gap: 2px; }
  .search-overlay-inner { margin-top: 0; padding: 12px; }

  .rank-col-title { font-size: 18px; }
  .section-header { gap: 10px; }
  .section-subcats,
  .sh-dayrank-wrap { display: none; }

  .vod-row,
  .vod-grid,
  .play-vod-grid,
  .detail-vod-grid,
  .td-vod-grid,
  .plot-related-grid,
  .section--hot .vod-grid--hot9,
  .vod-grid.vod-grid--c9 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .actor-row { grid-template-columns: repeat(4, 1fr); }
  .section .rank-grid--home { grid-template-columns: 1fr; }

  /* 参考站手机（卡宽约 110）：片名 14、副行 12 */
  .card-badge { right: 4px; bottom: 4px; max-width: calc(100% - 8px); padding: 0 5px; font-size: 11px; line-height: 18px; }

  .pagination ol,
  .pagination ul { gap: 6px; }
  .pg-btn,
  .pg-num { padding: 0 10px; }

}

/* ========== 简介展开 / 核心弹窗 ========== */


.mac_pop_bg { background: rgba(0,0,0,0.5) !important; }
.mac_pop { background: var(--bg-panel) !important; border: 1px solid var(--border) !important; border-radius: var(--radius) !important; box-shadow: var(--shadow-drop) !important; padding: 0 !important; display: flex !important; flex-direction: column !important; overflow: hidden !important; }
.mac_pop .pop_top { display: flex !important; align-items: center !important; justify-content: space-between !important; height: auto !important; padding: 14px 16px !important; background: var(--bg-elevated) !important; border-bottom: 1px solid var(--border) !important; flex-shrink: 0 !important; }
.mac_pop .pop_top h2 { font-size: 15px !important; font-weight: 700 !important; color: var(--text-1) !important; margin: 0 !important; line-height: 1 !important; float: none !important; }
.mac_pop span.pop_close { float: none !important; width: 28px !important; height: 28px !important; font-size: 16px !important; text-indent: 0 !important; background: none !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; border-radius: 50% !important; color: var(--text-3) !important; cursor: pointer !important; transition: color 0.2s, background 0.2s !important; line-height: 1 !important; }
.mac_pop span.pop_close:hover { color: var(--text-1) !important; background: var(--bg-base) !important; }
.mac_pop .pop_content { flex: 1 !important; overflow-y: auto !important; }
/* user/ajax_login 登录弹窗片段（MAC.User.Login 载入）的内距；表单本身沿用 .modal-* */
.mac_pop .mac-login-wrap { padding: 16px 20px 20px; }
.mac_pop .mac-login-wrap .modal-submit { width: 100%; }
/* home.js 的 MAC.Pop.Show 把宽度写死成行内 width:400（实际 402），手机上比屏幕宽、右边被切掉
   （报错／求片留言／登录弹窗都是它，2026-10-14 开关实测发现）。窄屏改成左右各留 12 */
@media (max-width: 480px) {
  .mac_pop { width: auto !important; left: 12px !important; right: 12px !important; margin-left: 0 !important; margin-right: 0 !important; }
}
.mac_pop_msg_bg { background: rgba(0,0,0,0.2) !important; }
.mac_pop_msg { background: var(--bg-card) !important; border: 1px solid var(--border) !important; border-radius: var(--radius-sm) !important; box-shadow: 0 4px 24px rgba(0,0,0,0.25) !important; padding: 10px 20px !important; }
.mac_pop_msg .pop-msg { color: var(--text-1) !important; font-size: 13px !important; }
.content-block.will-observe {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.content-block.is-visible {
  opacity: 1;
  transform: none;
}

.img-loaded { background-image: none !important; }
/* ========== 资讯左侧导览（widget/art_left_nav；资讯分类页、资讯详情页共用） ========== */
.art-leftnav {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: calc(var(--topbar-h) + 12px);
}
.aln-list,
.aln-list > li { display: contents; }
.aln-item {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 16px;
  font-size: 14px; color: var(--text-2);
  border-bottom: 1px solid var(--border-row);
  transition: color 0.2s, background 0.2s;
}
.art-leftnav li:last-child > .aln-item { border-bottom: none; }
.aln-item:hover { color: var(--text-1); background: var(--fill-1); }
.aln-item.is-active { color: var(--active); background: var(--accent-light); font-weight: 400; box-shadow: inset 2px 0 0 var(--accent); }
.aln-item .mac-icon { font-size: 16px; }

/* ---------- 资讯两页（art/type、art/detail）共用三栏版面：单一来源（强制11.9，2026-11-11）----------
   原本两支页面 CSS 各写一份、断点不同（1023 vs 1024、左栏 140 vs 160、手机导览横滑 vs 换行），
   统一成全站断点 1023／767；手机左导览横滑（header.js 的横滑渐隐提示就是给这种排法） */
.art-layout {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr) 240px;
    gap: 20px;
    padding: 20px var(--page-pad-r) 0 var(--page-pad);   /* 底部不留：最后一块面板自带 --section-gap，到页脚距离跟全站一致 */
    align-items: start;
}
@media (max-width: 1023px) {
    .art-layout { grid-template-columns: 140px minmax(0, 1fr); gap: 14px; padding: 16px var(--page-pad-r) 0 var(--page-pad); }
    .art-layout .art-sidebar { display: none; }
}
@media (max-width: 767px) {
    .art-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 10px var(--page-pad-r) 0 var(--page-pad); overflow-x: hidden; }
    .art-layout .art-leftnav { position: static; display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-radius: var(--radius); min-width: 0; width: 100%; }
    .art-layout .art-leftnav::-webkit-scrollbar { display: none; }
    .art-layout .aln-item { flex-shrink: 0; border-bottom: none; border-right: 1px solid var(--border); padding: 9px 14px; font-size: 13px; white-space: nowrap; }
    .art-layout .art-leftnav li:last-child > .aln-item { border-right: none; }
}

/* ========== 资讯侧栏共用（widget/art_hot_vod + art_recommend_read） ========== */
.art-sidebar { position: sticky; top: calc(var(--topbar-h) + 12px); }
.art-sb-block { background: var(--bg-sub); border-radius: var(--radius); overflow: hidden; margin-bottom: var(--section-gap); }
.art-sb-title { display: flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 700; color: var(--text-1); padding: 16px 16px 6px; margin: 0; }
.art-hot-list { list-style: none; margin: 0; padding: 6px 0; }
.art-hot-list a { display: flex; align-items: center; gap: 10px; padding: 7px 16px; color: var(--text-2); }
.art-hot-list a:hover .ahl-name { color: var(--active); }
.ahl-num { flex-shrink: 0; width: 20px; height: 20px; border-radius: var(--radius); font-size: 11px; line-height: 20px; text-align: center; background: var(--bg-elevated); color: var(--text-3); }
.art-hot-list li:nth-child(1) .ahl-num { background: var(--accent); color: var(--on-accent); }
.ahl-name { flex: 1; min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.art-sb-read-list { list-style: none; margin: 0; padding: 8px 12px; }
.art-sb-item a { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.art-sb-item:last-child a { border-bottom: none; }
.asi-thumb { flex-shrink: 0; width: 64px; height: 42px; border-radius: var(--radius); overflow: hidden; background: var(--bg-elevated) url("../img/load.gif") no-repeat center/cover; }
.asi-thumb img { width: 100%; height: 100%; object-fit: cover; }
.asi-info { flex: 1; min-width: 0; }
.asi-title { font-size: 13px; color: var(--text-2); line-height: 1.4; margin: 0 0 4px; }
.art-sb-item a:hover .asi-title { color: var(--active); }
.asi-cat { font-size: 11px; color: var(--text-3); }
/* ===== 页面主容器统一置中（原本靠左侧栏挤出留白，改纯顶栏后由 max-width + auto 置中）
       单一来源放这里，页面级 CSS 只保留各自的 grid/flex 与内距（强制11.9） ===== */
.art-layout,
.gbook-container,
.rank-wrap,
.plot-container,
.td-container,
.topic-wrap,
.down-container,
.search-wrap,
.show-container,
.detail-bottom-layout {
  width: 100%;
  max-width: calc(var(--content-max) + var(--page-pad) * 2);
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   详情类共用块（详情／播放／下载／资讯详情共用，单一来源放这里，强制11.9）
   ========================================================================== */

/* ---------- 面包屑：14px 灰，分隔「›」，末级 #666（参考站 .hl-crumb-item） ---------- */
.art-breadcrumb { font-size: 14px; line-height: 20px; color: var(--text-dim); margin-bottom: 0; }
.art-breadcrumb a { color: var(--text-dim); }
.art-breadcrumb a:hover { color: var(--active); }
.bc-sep { display: inline-flex; margin: 0 6px; color: var(--text-disabled); }
.bc-sep .mac-icon { display: none; }
.bc-sep::before { content: "›"; }
.bc-current { color: var(--text-2); }

/* ---------- 详情类页的区块（评论、分集剧情、专题影片…）：不包卡片，标题 20/700 #222（参考站详情页 .hl-rb-title 20） ---------- */
.detail-section {
  margin-bottom: var(--section-gap);
  padding: var(--panel-pad);
  background: var(--bg-panel);
}
.detail-section-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 var(--title-gap);
  padding: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: var(--text-title);
}
.detail-section-hd > h2 { margin: 0; font-size: inherit; font-weight: inherit; }
.detail-section-hd .mac-icon { display: none; }
.detail-section-hd--split { justify-content: space-between; }
.detail-section-more { font-size: 14px; font-weight: 400; color: var(--text-dim); }
.detail-section-more:hover { color: var(--active); }
@media (max-width: 767px) {
  .detail-section-hd { font-size: 18px; line-height: 26px; }
}

/* ---------- 播放列表（widget/playlist；详情页与播放页共用）
   参考站：标题 20/700 #222、右侧灰字「⇅ 倒序」；下一行来源是文字 tab 15（选中 #222 粗体＋下方 20×3 蓝色短线，右上小条数）；
   再下面集数钮（#f8f8f8 底、40 高、圆角 4，当前集蓝色粗体字、不填底）。
   用 display:contents 把 .playlist-hd 的两个子元素摊进 flex，不改 widget 标记 ---------- */
.playlist-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: var(--section-gap);
}
.playlist-hd { display: contents; }
.playlist-title {
  order: 1;
  margin: 0;
  padding: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: var(--text-title);
}
/* 来源 tab（2026-11-17 使用者要求「丰富一点」，原本是文字＋下方蓝色短线）：
   每个来源一颗膠囊（#f2f2f2 底、图示＋来源名＋右侧白底小徽章显示集数），hover 淡蓝；
   选中＝主题蓝渐层（#0070c0→#007bcc，白字 700，白字对比 ≥4.7:1）＋蓝色淡阴影，徽章变半透明白。
   详情页、播放页共用；下载页 .down-src-tab 是同一套（vod_down.css，使用者要求三页一致） */
.playlist-sources {
  order: 3;
  flex: 0 0 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  margin-top: 15px;
}
.pl-source-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 8px 0 14px;
  border: 0;
  border-radius: 18px;
  background: var(--bg-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  color: var(--text-2);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.pl-source-tab .mac-icon { font-size: 16px; }
/* 条数：右侧白底小徽章 */
.pl-src-count {
  min-width: 22px;
  padding: 0 6px;
  border-radius: 9px;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  color: var(--text-dim);
}
.pl-source-tab:hover { background: #eef6fd; color: var(--active); }
.pl-source-tab.is-active {
  background: linear-gradient(135deg, #0070c0 0%, #007bcc 100%);
  box-shadow: 0 4px 12px rgba(0, 112, 192, 0.28);
  color: #fff;
  font-weight: 700;
}
.pl-source-tab.is-active .pl-src-count { background: rgba(255, 255, 255, 0.22); color: #fff; }
/* 没有集数徽章的来源（理论上不会，保险）右侧内距补齐 */
.pl-source-tab:not(:has(.pl-src-count)) { padding-right: 14px; }
.pl-sort-btn {
  order: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 0;
  height: 28px;
  border: 0;
  background: none;
  font-size: 14px;
  color: var(--text-dim);
  cursor: pointer;
}
.pl-sort-btn:hover { color: var(--active); }
.playlist-empty,
.playlist-panel {
  order: 4;
  flex: 0 0 100%;
  min-width: 0;
  padding-top: 15px;
}
.playlist-empty { padding: 30px 0; text-align: center; color: var(--text-dim); }
.playlist-panel { display: none; }
.playlist-panel.is-active { display: block; }

.playlist-notice {
  display: block;               /* §17.61：一句话不要放进 flex，窄屏会各段各自断行 */
  margin-bottom: 15px;
  font-size: 13px;
  color: var(--text-dim);
}
.playlist-notice .mac-icon { vertical-align: -0.15em; margin-right: 2px; }
.playlist-notice strong { color: var(--text-2); font-weight: 700; }

.playlist-episodes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.playlist-episodes.is-wide { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.ep-item { min-width: 0; }
.episode-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 40px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  transition: color 0.2s, background 0.2s;
}
.episode-btn:hover { color: var(--active); }
.episode-btn.is-active { color: var(--active); font-weight: 700; }
.ep-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* 正在播放的小跳动条 */
.ep-playing { display: inline-flex; align-items: flex-end; gap: 1px; height: 10px; flex-shrink: 0; }
.ep-playing i { display: block; width: 2px; background: currentColor; animation: epbar 0.9s ease-in-out infinite; }
.ep-playing i:nth-child(1) { height: 40%; }
.ep-playing i:nth-child(2) { height: 100%; animation-delay: 0.2s; }
.ep-playing i:nth-child(3) { height: 70%; animation-delay: 0.4s; }
@keyframes epbar { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .ep-playing i { animation: none; } }

/* 收起：3 行（40 × 3 ＋ 间距 10 × 2） */
.playlist-episodes.episodes-collapsed { max-height: 140px; overflow: hidden; }
.episode-more-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 36px;
  margin-top: 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-2);
  font-size: 13px;
  text-align: center;
}
.episode-more-trigger:hover { color: var(--active); }

@media (max-width: 767px) {
  /* 横滑列上下留 4px，选中膠囊的阴影不会被 overflow 裁掉 */
  .playlist-sources { margin-top: 10px; gap: 8px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; padding: 2px 0 6px; }
  .pl-source-tab { flex-shrink: 0; height: 32px; padding: 0 6px 0 12px; font-size: 13px; }
  .playlist-episodes { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
  .episode-btn { height: 36px; font-size: 13px; }
  /* 收起：3 行（36 × 3 ＋ 8 × 2） */
  .playlist-episodes.episodes-collapsed { max-height: 124px; }
  .ep-playing { display: none; }   /* 窄格子里会把集名挤成「第0…」，当前集已有蓝色粗体标示 */
}

/* ---------- 简介展开（widget/desc_expand） ---------- */
.desc-body { font-size: 14px; line-height: 25px; color: var(--text-2); }
.desc-body p + p { margin-top: 6px; }
/* 收合态恰好两行（行高 25 × 2），不加渐隐遮罩——遮罩会把第二行淡化，看起来像只剩一行半 */
.desc-collapsed { max-height: 50px; overflow: hidden; }
.desc-collapsed p + p { margin-top: 0; }
.desc-expanded { max-height: none; -webkit-mask-image: none; mask-image: none; }
.desc-expand-btn { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 0; font-size: 14px; color: var(--text-2); background: none; border: 0; cursor: pointer; }
.desc-expand-btn:hover { color: var(--active); text-decoration: none; }

/* ---------- 评论（widget/comment ＋ comment/ajax；详情／播放／资讯详情共用） ---------- */
.cmt-total-label { margin-left: 4px; font-size: 14px; color: var(--text-2); }
.cmt-total-label em { font-style: normal; color: var(--active); }
/* 核心 home.css 给 .mac_comment 画了蓝框白底，这里还原成无框（跟页面底色） */
.mac_comment.cmt-ajax-wrap { margin: 0; padding: 0; border: 0; background: none; font-family: inherit; font-size: 14px; }
.cmt-loading,
.cmt-empty { padding: 30px 0; text-align: center; font-size: 14px; color: var(--text-3); }
.cmt-form { margin-bottom: 20px; }
.cmt-textarea {
  display: block;
  width: 100%;
  min-height: 100px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--text-input);
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
}
.cmt-textarea::placeholder { color: var(--text-3); }
.cmt-textarea:focus { border-color: var(--accent); }
.cmt-form-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.cmt-verify-row { display: flex; align-items: center; gap: 8px; }
.cmt-verify-input {
  width: 100px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--bg-input);
  color: var(--text-input);
  font-size: 13px;
  outline: none;
}
.cmt-verify-input:focus { border-color: var(--accent); }   /* outline:none 之后要有替代的焦点样式（键盘用户看得到停在哪） */
.cmt-captcha-img { height: 34px; border-radius: var(--radius-sm); cursor: pointer; background: none; }
.cmt-form-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.cmt-remaining { font-size: 12px; color: var(--text-3); }
.cmt-remaining em { font-style: normal; color: var(--active); }
.cmt-submit-btn {
  height: 36px;
  padding: 0 30px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--accent-grad);
  color: var(--on-accent);
  font-size: 14px;
  cursor: pointer;
}
.cmt-submit-btn:hover { opacity: 0.9; }

.cmt-list { margin: 0; padding: 0; list-style: none; }
.cmt-item { display: flex; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--border-row); }
.cmt-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: var(--on-accent);
  font-size: 16px;
}
.cmt-body { flex: 1; min-width: 0; }
.cmt-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.cmt-name,
.cmt-child-name { font-size: 14px; color: var(--text-1); }
.cmt-time { font-size: 12px; color: var(--text-3); }
.cmt-content { font-size: 14px; line-height: 1.7; color: var(--text-2); word-break: break-all; }
.cmt-item-reply-list { margin: 0; padding: 0; list-style: none; }
.cmt-child-item { margin-top: 10px; padding: 10px 12px; border-radius: var(--radius); background: var(--bg-input); }
.cmt-child-item .cmt-time { margin-left: 8px; }
.cmt-actions { display: flex; gap: 16px; margin-top: 8px; }
.cmt-action-link { padding: 0; font-size: 12px; color: var(--text-3); background: none; border: 0; cursor: pointer; }
.cmt-action-link:hover { color: var(--active); }
/* E9：「回复／举报」字只有 12px，外框 24×20，手机不好点。用透明 ::after 往四周各外扩 7px，
   可点范围变 38×34（门槛 32），版面不动；两颗之间 gap 16，外扩后各占 7 不会互相盖到 */
.cmt-actions .cmt-action-link { position: relative; }
.cmt-actions .cmt-action-link::after { content: ""; position: absolute; inset: -7px; }
.cmt-paging { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 20px 0 0; }
.cmt-page-btn {
  min-width: 40px;
  height: 38px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: none;
  color: var(--text-2);
  font-size: 14px;
  cursor: pointer;
}
.cmt-page-btn:hover { border-color: var(--active); }
.cmt-page-btn.is-active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cmt-page-btn.is-disabled { opacity: 0.6; pointer-events: none; }

/* ---------- 分享弹窗（widget/share_modal；详情／播放／下载共用） ---------- */
.share-modal { display: none; position: fixed; inset: 0; z-index: 1200; align-items: center; justify-content: center; }
.share-modal.is-open { display: flex; }
.share-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }
.share-popup {
  position: relative;
  width: 360px;
  max-width: calc(100vw - 30px);
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg-drop);
  box-shadow: var(--shadow-drop);
}
.share-popup-close { position: absolute; top: 10px; right: 12px; font-size: 22px; line-height: 1; color: var(--text-3); background: none; border: 0; cursor: pointer; }
.share-popup-close:hover { color: var(--text-1); }
.share-popup-title { margin: 0 0 15px; font-size: 18px; font-weight: 700; color: var(--text-title); }
.share-popup-icons { display: flex; gap: 20px; margin-bottom: 15px; }
.spi { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.spi-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: var(--on-accent);
  font-size: 16px;
}
.spi:hover { color: var(--active); }
.share-popup-hint { margin-bottom: 8px; font-size: 12px; color: var(--text-2); }
.share-popup-link {
  display: block;
  width: 100%;
  height: 60px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text-input);
  font: inherit;
  font-size: 12px;
  resize: none;
  outline: none;
}
.share-popup-link:focus { border-color: var(--accent); }
.share-popup-copy {
  display: block;
  width: 100%;
  height: 36px;
  margin-top: 10px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--accent-grad);
  color: var(--on-accent);
  font-size: 14px;
  cursor: pointer;
}

/* ---------- 侧栏专题（widget/topic_side） ---------- */
.topic-side-block { margin-top: var(--section-gap); }
.topic-side-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px 15px; margin: 0; padding: 0; list-style: none; }
.topic-side-list > li { display: flex; min-width: 0; }
.topic-side-list > li > .topic-card { flex: 1; min-width: 0; }
.topic-side-list .topic-card-title { font-size: 13px; line-height: 20px; }
.topic-side-list .topic-card-blurb { display: none; }
.topic-side-list .topic-card-count b { font-size: 20px; }

/* 页面顶部的面包屑与下一块之间的间距（资讯／专题／排行等无 Hero 的页面） */
.art-content > .art-breadcrumb,
.art-layout > .art-breadcrumb,
.topic-wrap > .art-breadcrumb,
.rank-wrap > .art-breadcrumb,
.gbook-container .art-breadcrumb,
.plot-container > .art-breadcrumb,
.search-wrap > .art-breadcrumb { margin-bottom: 15px; }

/* ---------- 横向可滑的列：渐隐提示（header.js 依捲动位置切 .is-hscroll-l／-r；放得下时两个都不加） ---------- */
.is-hscroll-r {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent 100%);
          mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent 100%);
}
.is-hscroll-l {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 32px);
          mask-image: linear-gradient(to right, transparent 0, #000 32px);
}
.is-hscroll-l.is-hscroll-r {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
}

/* ---------- 手机点击范围：小按钮用透明 ::after 往外撑，外观与排版不变（2026-10-14 RWD 检查） ----------
   每个外扩量依 375 宽实测的「与相邻可点元素间距」决定，相邻两颗各撑一半以内，不会互相抢点击：
   （tp43 顶栏图示已是 40×40、Hero 改左右钮 32×32，不再外扩）书签／分享 28×28→44×40（间距 20、上方 8）、
   倒序 46×28→62×40（下方 14）、播放页简介展开 16×22→40×40、展开全部简介 102×20→102×40、
   迅雷下载等 60×25→66×41（间距 6）、迅雷批量下载 78×18→88×40（左邻 10） */
@media (max-width: 767px) {
  .playlist-hd .pl-sort-btn,
  .play-desc .play-desc-more,
  .desc-expand-btn,
  .di-actions .di-btn,
  .down-main .di-batch-btn,
  .search-result-tip .tip-link { position: relative; }

  .playlist-hd .pl-sort-btn::after,
  .play-desc .play-desc-more::after,
  .desc-expand-btn::after,
  .di-actions .di-btn::after,
  .down-main .di-batch-btn::after,
  .search-result-tip .tip-link::after { content: ''; position: absolute; }

  .playlist-hd .pl-sort-btn::after { inset: -6px -8px; }
  .play-desc .play-desc-more::after   { inset: -9px -12px; }
  .desc-expand-btn::after             { inset: -10px 0; }
  .di-actions .di-btn::after          { inset: -8px -3px; }
  .down-main .di-batch-btn::after     { inset: -11px -5px; }
  .search-result-tip .tip-link::after { inset: -6px -6px; }   /* 搜索无结果的「留言」26×22→38×34，行内没有其他可点元素 */
}
