/* ==========================================
   tp46_dark_yellow — 视觉参考：深色「编辑部」风格影院站（海军蓝黑底＋黄色主色）
   底 #070a12 ＋ 面板 #0f172a／#1e293b ＋ 主色黄 #facc15（压在上面的字 #0b1020）；圆角一律 2px；
   标题用衬线字（--font-serif）、英文小标与数字用等宽字（--font-mono，大写＋字距）。
   数值取自参考站 :root 变数与 getComputedStyle 实测（1440 / 375），量测记录见 template/log/tp46_dark_yellow__THEME_SPEC.md。
   版型：纯顶栏（72，横排导览）；≤1023 导览收进右侧抽屉；架构、资料区块承袭 tp43_dark_white。
   组件里不写死色码，全部走下面的变量。
   ========================================== */
:root {
  --bg-base:       #070a12;   /* 页底 */
  --bg-deep:       #0b1020;   /* 详情页上方资讯带 */
  --bg-dock:       #0a0d16;   /* 抽屉 */
  --bg-topbar:     rgba(10, 10, 11, 0.72);  /* 顶栏半透明＋blur(20px) saturate(1.4) */
  --bg-card:       #1e293b;   /* 参考站 --surface：搜索框、选集钮、pill */
  --bg-elevated:   #273449;   /* --surface-2：选中底、占位底 */
  --bg-panel:      #0f172a;   /* --bg-2：面板 */
  --bg-input:      #1e293b;
  --bg-drop:       #0f172a;   /* 下拉／弹窗 */
  --bg-glass:      rgba(255, 255, 255, 0.04);

  --accent:        #facc15;   /* 参考站主色 */
  --accent-end:    #f59e0b;
  --accent-grad:   #facc15;   /* 主按钮实色黄；变量名沿用底稿 */
  --accent-hover:  #fde047;
  --on-accent:     #0b1020;   /* 压在黄色上的字 */
  --accent-dot:    #facc15;
  --accent-ico:    #facc15;
  --accent-light:  rgba(250, 204, 21, 0.10);
  --accent-soft:   rgba(250, 204, 21, 0.18);
  --accent-line:   rgba(250, 204, 21, 0.55);
  --accent-glow:   rgba(250, 204, 21, 0.20);

  --nav-active:    #f8fafc;   /* 参考站导览选中是白字＋黄线 */
  --link-hover:    #facc15;

  --btn-grad:      #1e293b;   /* 次要 pill */
  --btn-text:      #cbd5e1;
  --btn-danger:    #ef4444;

  --accent-2:      #f59e0b;   /* 琥珀：热度条起点 */
  --accent-2-alt:  #fbbf24;
  --hot:           #ef4444;   /* 参考站 --hot：排行上升箭头 */
  --badge:         #facc15;   /* 卡片右上角标：黄底深字 */
  --badge-douban:  #facc15;
  --badge-state:   #ef4444;

  --rank-1:        #facc15;   /* 参考站排行：前三黄色大号名次 */
  --rank-2:        #facc15;
  --rank-3:        #facc15;
  --rank-num:      #64748b;   /* 第 4 名起灰色 */

  --text-1:        #f8fafc;   /* --fg */
  --text-2:        #cbd5e1;   /* --fg-2 */
  --text-3:        #94a3b8;   /* --fg-3 */
  --text-dim:      #64748b;   /* --fg-4 */
  --text-link:     #cbd5e1;
  --text-nav:      #94a3b8;   /* 导览未选中 */
  --text-title:    #f8fafc;
  --text-input:    #f8fafc;

  --fill-1:        rgba(255, 255, 255, 0.04);
  --fill-2:        #1e293b;

  --border:        rgba(255, 255, 255, 0.08);   /* --line */
  --border-2:      #334155;                     /* --line-2：框线钮 */
  --border-row:    rgba(255, 255, 255, 0.06);   /* --hairline */

  --score-hi:      #facc15;
  --score-mid:     #94a3b8;

  --shadow-header: none;
  --shadow-thumb:  0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-hover:  0 20px 50px rgba(0, 0, 0, 0.5);
  --shadow-drop:   0 30px 80px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-panel:  0 12px 32px rgba(0, 0, 0, 0.35);

  /* 播放区卡片 */
  --player-panel:  var(--bg-panel);
  --player-hover:  rgba(255, 255, 255, 0.05);
  --player-scroll: #334155;

  --fab-bg:        #0f172a;
  --fab-color:     #cbd5e1;
  --fab-top-bg:    #0f172a;

  --header-position: fixed;

  /* 参考站用 JetBrains Mono／Noto Serif SC 网络字体；我们不引入外部字体，走系统字体堆叠 */
  --font-mono:     "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Roboto Mono", monospace;
  --font-serif:    "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;

  --topbar-h:      72px;
  --dock-w:        0px;       /* 纯顶栏，无侧栏（变量保留给旧规则） */
  --tabbar-h:      0px;
  /* 左右间距照参考站（使用者 2026-10-27 定案）：≥768 一律 40、手机 20；
     宽屏靠 --content-max 1360 把内容收成版心置中（参考站 1920 宽时两侧各约 275） */
  --page-pad:      40px;
  --cell:          10px;
  --hdr-x:         40px;
  --page-pad-r:    var(--page-pad);

  --fab-right:     24px;
  --fab-bottom:    40px;
  --fab-w:         44px;

  --section-gap:   24px;      /* 模块间距（skill 基线 24） */

  --gap:           16px;
  --grid-gap-y:    20px;      /* 参考站 .grid gap 20 */
  --grid-gap-x:    16px;

  --radius:        2px;       /* 参考站圆角一律 2px */
  --radius-sm:     2px;
  --radius-btn:    2px;
  --radius-lg:     2px;
  --radius-pill:   2px;       /* 参考站标签也是方角 */

  --content-max:   1360px;   /* 参考站内容最宽 1360，超过置中 */

  --poster-ratio:  2 / 3;
  --card-meta-h:   48px;      /* 片名 15px 一行 ＋ 等宽年份行 11px ＋ 上距 8 */
}

/* ≤1023：手持版——导览收进右侧抽屉，顶栏 60 */
@media (max-width: 1023px) {
  :root {
    --page-pad: 40px;
    --hdr-x: 40px;
    --topbar-h: 60px;
    --fab-bottom: 24px;
  }
}
@media (max-width: 767px) {
  :root {
    --cell: 6px;
    --page-pad: 20px;   /* 手机 20＝参考站手机值（使用者 2026-10-27 由 24 改小） */
    --hdr-x: 20px;
    --grid-gap-y: 14px;
    --grid-gap-x: 8px;
    --gap: 10px;
    --section-gap: 20px;
    --fab-right: 14px;
    --fab-w: 40px;
    --card-meta-h: 44px;
  }
}


*, *::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: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;

  padding-top: 0;
}

a { text-decoration: none; color: inherit; }
/* 参考站标题一律衬线（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: 30px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

/* ========== 顶栏（参考站 header：72 高、sticky、rgba(10,10,11,.72)＋blur(20px) saturate(1.4)、底线 hairline；左右 40） ========== */
.topbar {
  position: var(--header-position);
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-topbar);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
          backdrop-filter: blur(20px) saturate(1.4);
}

.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);   /* 宽屏跟内容版心对齐（参考站 logo 与内容同一条线） */
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

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

/* ---------- 横排导览（参考站：13px、padding 10、未选 #94a3b8；选中白字 500＋底部 20×2 黄线）
   ⚠️ 横滑列的 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;
  gap: 2px;
  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 10px;
  font-size: 13px;
  color: var(--text-nav);
  white-space: nowrap;
  transition: color 0.2s;
}
.tb-nav-item:hover { color: var(--text-1); }
.tb-nav-item.is-active { color: var(--nav-active); font-weight: 500; }
.tb-nav-item.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 26px;
  height: 1px;
  margin-left: -13px;
  background: var(--accent);
}
/* 还能往哪边滑就在哪边渐隐（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: 12px;
  flex-shrink: 0;
  height: 100%;
  margin-left: auto;
}

/* 内嵌搜索框（参考站：220×39、--surface 底、1px --line、圆角 2、13px #94a3b8） */
.tb-search {
  position: relative;
  width: 240px;
  height: 39px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--bg-input);
  color: var(--text-3);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tb-search:focus-within {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.tb-search-ico { flex-shrink: 0; font-size: 15px; }
.tb-search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: none;
  color: var(--text-input);
  font-size: 13px;
  font-family: inherit;
}
.tb-search-input::placeholder { color: var(--text-3); }
/* 右侧小框钮（参考站这里是 ⌘K 键提示，同一个外观：等宽 10px、1px 框） */
.tb-search-btn {
  flex-shrink: 0;
  height: 26px;
  padding: 0 8px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.tb-search-btn:hover { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.tb-search .search-drop { top: calc(100% + 8px); }

/* 观看记录／放大镜／☰：参考站右侧 40×38 框线方钮（1px --line、圆角 2、#cbd5e1） */
.tb-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  line-height: 1;
  color: var(--text-2);
  transition: border-color 0.2s, color 0.2s;
}
.tb-action .mac-icon { font-size: 16px; }
.tb-action:hover,
.tb-action.is-active,
.tb-action.is-open { border-color: var(--accent); color: var(--accent); }
/* 放大镜与 ☰ 只在窄屏出现 */
#searchToggle,
.tb-menu-btn { display: none; }

/* ---------- 搜索弹层（只有手机用：≤767 顶栏没有输入框，点放大镜从顶部展开） ---------- */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1003;
  background: rgba(2, 4, 10, 0.7);
  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 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  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-btn);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 700;
}
.search-submit-btn:hover { background: var(--accent-hover); }

.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（参考站首页大图：756 高、满版横幅背景；左深右浅＋下方渐隐的渐层；
   左侧文字：等宽黄色小标 11px（字距 3） → 衬线片名 86/800 → 等宽拼音 12px → 黄色分数＋等宽年份·地区 → 简介 15px 4 行
   → 黄色实心「立即播放」＋框线「查看详情」（51 高、圆角 2）；右下 01–0N 编号索引（当前项黄线拉长＋白字）。
   每张 .hero-slide 叠在同一位置，hero.js 切 .is-active 交叉淡入） ========== */
.hero-container {
  position: relative;
}
.hero {
  position: relative;
  height: 756px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-row);
  background: var(--bg-base);
}
.hero-slides {
  position: absolute;
  inset: 0;
  touch-action: pan-y;           /* 水平手势交给 hero.js 换片，上下仍可捲页面 */
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}
.hero-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

/* 背景：横幅图 vod_pic_slide 铺满；load.gif 垫在下层（§11.1 做法 B） */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--bg-panel);
  background-repeat: no-repeat, no-repeat;
  background-position: center 30%, center;
  background-size: cover, 48px;
  transform: scale(1.04);
  transition: transform 7s ease-out;
}
.hero-slide.is-active .hero-bg { transform: scale(1); }
/* 没有横幅只有直式海报：模糊铺底，避免放大后糊成一块 */
.hero-slide.is-poster .hero-bg {
  filter: blur(26px) saturate(1.1);
  opacity: 0.75;
  transform: scale(1.2);
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 10, 18, 0.95) 0%, rgba(7, 10, 18, 0.65) 40%, rgba(7, 10, 18, 0) 72%),
    linear-gradient(180deg, rgba(7, 10, 18, 0.35) 0%, rgba(7, 10, 18, 0) 22%, rgba(7, 10, 18, 0) 62%, var(--bg-base) 100%);
}

.hero-info {
  position: relative;
  z-index: 2;
  width: min(560px, 46%);
  /* 宽屏跟内容版心（--content-max）对齐，不贴着 40 的边 */
  margin-left: max(var(--page-pad), calc((100% - var(--content-max)) / 2));
}
.hero-kicker {
  margin: 0 0 30px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 86px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--text-1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.hero-title a { color: inherit; }
.hero-title a:hover { color: var(--accent); }
.hero-en {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-meta {
  display: flex;
  align-items: baseline;
  gap: 22px;
  margin: 30px 0 0;
  font-family: var(--font-mono);
}
.hero-score {
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.hero-score i { margin-right: 4px; font-size: 14px; font-style: normal; }
.hero-facts {
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-facts i { margin: 0 8px; font-style: normal; color: var(--text-dim); }
.hero-desc {
  margin: 24px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}
.hero-play,
.hero-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 51px;
  padding: 0 28px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.hero-play .mac-icon,
.hero-more .mac-icon { font-size: 14px; }
.hero-play { background: var(--accent); color: var(--on-accent); }
.hero-play:hover { background: var(--accent-hover); color: var(--on-accent); }
.hero-more {
  border: 1px solid var(--border-2);
  background: rgba(7, 10, 18, 0.35);
  color: var(--text-1);
}
.hero-more:hover { border-color: var(--accent); color: var(--accent); }

/* 右下编号索引（参考站：等宽编号 11px／字距 2 ＋ 20px 细线 ＋ 片名 13px；当前项线拉长成 48 黄线、编号与片名转白） */
.hero-index {
  position: absolute;
  right: max(var(--page-pad), calc((100% - var(--content-max)) / 2));
  bottom: 96px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-index-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 32px;
  padding: 0 4px;
  color: var(--text-3);
  text-align: left;
  transition: color 0.2s;
}
.hero-index-no {
  flex-shrink: 0;
  width: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
}
.hero-index-line {
  flex-shrink: 0;
  width: 20px;
  height: 1px;
  background: var(--border-2);
  transition: width 0.3s, background 0.3s;
}
.hero-index-name {
  max-width: 150px;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-index-btn:hover { color: var(--text-1); }
.hero-index-btn.is-active { color: var(--text-1); }
.hero-index-btn.is-active .hero-index-line { width: 48px; background: var(--accent); }
.hero-index-btn.is-active .hero-index-name { font-weight: 500; }

@media (max-width: 1679px) {
  .hero { height: 680px; }
}
@media (max-width: 1359px) {
  .hero { height: 600px; }
  .hero-kicker { margin-bottom: 22px; }
  .hero-meta { margin-top: 22px; }
  .hero-desc { -webkit-line-clamp: 3; }
}
/* ≤1023：编号索引只留编号与细线（片名收起），文字区放宽 */
@media (max-width: 1023px) {
  .hero { height: 520px; }
  .hero-info { width: min(560px, 72%); }
  .hero-slide::after {
    background:
      linear-gradient(90deg, rgba(7, 10, 18, 0.92) 0%, rgba(7, 10, 18, 0.6) 55%, rgba(7, 10, 18, 0.1) 100%),
      linear-gradient(180deg, rgba(7, 10, 18, 0.3) 0%, rgba(7, 10, 18, 0) 25%, rgba(7, 10, 18, 0) 60%, var(--bg-base) 100%);
  }
  .hero-index { bottom: 28px; flex-direction: row; gap: 2px; }
  .hero-index-btn { gap: 8px; height: 36px; }
  .hero-index-name { display: none; }
  .hero-index-line { width: 14px; }
  .hero-index-btn.is-active .hero-index-line { width: 32px; }
}
/* ≤767：文字贴底（参考站手机 Hero：图在上、文字压在下半部），简介 2 行，「查看详情」只留图示方钮 */
@media (max-width: 767px) {
  .hero { height: 520px; }
  .hero-slide { align-items: flex-end; }
  .hero-slide::after {
    background: linear-gradient(180deg, rgba(7, 10, 18, 0.15) 0%, rgba(7, 10, 18, 0.25) 30%, rgba(7, 10, 18, 0.85) 62%, var(--bg-base) 100%);
  }
  .hero-info {
    /* .hero-slide 是横向 flex：width:auto 时最窄只能缩到「最长那行」，
       英文片名（.hero-en 不换行）一长就把整块撑出画面（测试机 2026-10-29 实测 404px > 360）。
       flex:1 + min-width:0 让它固定吃满版心，长片名交给 .hero-en 自己的省略号 */
    flex: 1;
    min-width: 0;
    width: auto;
    margin: 0 var(--page-pad) 64px;
  }
  .hero-kicker { margin-bottom: 12px; }
  .hero-title { font-size: 38px; }
  .hero-en { margin-top: 8px; font-size: 11px; }
  .hero-meta { gap: 14px; margin-top: 14px; }
  .hero-score { font-size: 20px; }
  .hero-desc { margin-top: 12px; font-size: 13px; line-height: 1.7; -webkit-line-clamp: 2; }
  .hero-actions { margin-top: 18px; gap: 10px; }
  .hero-play { flex: 1; height: 46px; }
  .hero-more { width: 46px; height: 46px; padding: 0; }
  .hero-more span { display: none; }
  .hero-more .mac-icon { font-size: 18px; }
  .hero-index { left: var(--page-pad); right: auto; bottom: 10px; }
  .hero-index-no { display: none; }
  .hero-index-btn { justify-content: center; min-width: 36px; height: 36px; padding: 0 2px; }   /* 手机点击范围 ≥32（RWD 稽核） */
  .hero-index { gap: 0; }
}

/* ========== 分类入口（参考站 Hero 下方的分类砖：背景图压暗、等宽黄色小标、衬线分类名 22px、子分类一行 11px；
   hover 背景图转亮、框线变黄）。一排放不下时横向可滑（header.js 依捲动位置加两侧渐隐） ========== */
.quick-nav {
  margin: 28px 0 var(--section-gap);
  padding: 0 var(--page-pad);
}
.quick-nav-list {
  display: flex;
  gap: 12px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.quick-nav-list::-webkit-scrollbar { display: none; }
.quick-nav-list > li { display: flex; flex: 1 0 180px; min-width: 180px; }
.quick-nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  width: 100%;
  height: 92px;
  padding: 14px 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
  color: var(--text-1);
  transition: border-color 0.2s;
}
.qn-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center 30%;
  background-size: cover;
  opacity: 0.32;
  transition: opacity 0.3s, transform 0.4s;
}
.quick-nav-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.45) 100%);
}
.qn-no,
.qn-name,
.qn-sub { position: relative; z-index: 1; }
.qn-no {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--accent);
}
.qn-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-title);
}
.qn-sub {
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quick-nav-item:hover { border-color: var(--accent-line); color: var(--text-1); }
.quick-nav-item:hover .qn-bg { opacity: 0.5; transform: scale(1.04); }
/* 手机：参考站 Hero 下方是一排纯文字小方块（36 高、--bg-card 底、1px --border、圆角 2、13px --text-2、间距 8，横向可滑），
   不用背景图（使用者 2026-10-29 要求）。背景图层 display:none，浏览器不会去下载那张图 */
@media (max-width: 767px) {
  .quick-nav { margin-top: 20px; }
  .quick-nav-list { gap: 8px; }
  .quick-nav-list > li { flex: 0 0 auto; min-width: 0; }
  .quick-nav-item {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    background: var(--bg-card);
  }
  .quick-nav-item::after,
  .qn-bg,
  .qn-no,
  .qn-sub { display: none; }
  .qn-name {
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    color: var(--text-2);
    white-space: nowrap;
  }
  .quick-nav-item:hover .qn-name { color: var(--text-1); }
}

/* ========== 区块（参考站区块头：等宽黄色小标 11px／字距 2 大写 → 衬线 h2 34/700 → 灰色说明；
   右侧「更多 →」；模块上距 100 收成我们的 --section-gap 节奏） ========== */
.section,
.content-block {
  position: relative;
  width: 100%;
  max-width: calc(var(--content-max) + var(--page-pad) * 2);
  margin: 0 auto var(--section-gap);
  padding: 0 var(--page-pad);
}
/* 模块间距统一 24（甲方 decisions；tp43 A27：原本 padding-top 20 叠在 margin 上变成 44） */
.section { padding-top: 0; }
.section + .section,
.quick-nav + .section { margin-top: calc(var(--section-gap) + 24px); }

.section-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  width: 100%;
  min-height: 32px;
  margin-bottom: 22px;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  min-width: 0;
}
.section-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.section-title {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin: 0;
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-title);
  white-space: nowrap;
}
.section-title a { display: inline-flex; align-items: center; color: inherit; }
.section-title a:hover { color: var(--link-hover); }

/* 参考站标题前没有图示；保留节点给读屏不需要，直接收起 */
.section-icon { display: none; }

/* 「更多 →」：13px 灰字＋箭头，一律推到最右 */
.section-more-pill,
.section-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  order: 3;
  margin-left: auto;
  font-size: 13px;
  line-height: 32px;
  color: var(--text-3);
  white-space: nowrap;
  transition: color 0.2s;
}
.section-more-pill .mac-icon,
.section-more .mac-icon { font-size: 13px; transition: transform 0.2s; }
.section-more-pill:hover,
.section-more:hover { color: var(--accent); }
.section-more-pill:hover .mac-icon,
.section-more:hover .mac-icon { transform: translateX(3px); }

/* 子分类：右侧框线方钮（参考站标签：12px、1px 框、圆角 2） */
.section-subcats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 8px;
  height: 30px;
  min-width: 0;
  margin-left: auto;
  overflow: hidden;
}
.section-subcat {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.section-subcat:hover { border-color: var(--accent); color: var(--accent); }

/* 首页分类区块标题列的「本类日排行」10 条（decisions.md 首页基线／index.md 2.3）：
   外观照参考站「本周热榜」的等宽编号＋片名，做成框线方钮一排；手机隐藏。
   放不下时片名限宽 6em＋省略号（title 带全名），两端出现 ‹ › 一次捲一段（home.js 依 scrollLeft 切 .can-left／.can-right） */
.sh-dayrank-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-left: 20px;
  padding-bottom: 2px;
}
.sh-dayrank {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  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: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  color: var(--text-2);
  font-size: 14px;
  transition: opacity 0.2s, color 0.2s;
}
.sdr-arrow[hidden] { display: none; }
.sdr-arrow:hover { border-color: var(--accent); color: var(--accent); }
.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: 8px;
  flex-shrink: 0;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-panel);
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.sh-dayrank a:hover { border-color: var(--accent); color: var(--accent); }
/* 名次：前三黄、其余灰（参考站本周热榜） */
.sdr-num { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--rank-num); }
.sh-dayrank a:nth-child(-n+3) .sdr-num { color: var(--accent); }

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

.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; font-family: var(--font-mono); color: var(--accent); font-weight: 500; }
.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 列 / 27 条（decisions.md 基线）。⚠️ 必须写在下面的 ≤1199 规则之前：两条特异性相同（0,2,0），
   写在后面会盖掉平板的 6 栏（原本就这样，768 宽卡片只剩 64px，2026-10-27 目视检查抓到） */
.vod-grid.vod-grid--c9 { grid-template-columns: repeat(9, 1fr); }
/* 平板（≤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);
}

/* ---------- 卡片（参考站卡片：海报 2:3、圆角 2、--surface 底、0 2px 8px 阴影；右上黄底深字等宽角标 10px；
   下方片名 15/500 一行＋右侧黄色等宽分数 13px；第二行等宽灰字「年份 · 类型」11px。
   hover：海报上浮 4px、阴影加深（参考站另有左下黄色播放钮——甲方基准不要播放 icon，不做） ---------- */
.card {
  position: relative;
  min-width: 0;
}
.card-link {
  display: block;
  color: var(--text-1);
}

.card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: var(--poster-ratio);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card) url("../img/load.gif") no-repeat center/cover;
  box-shadow: var(--shadow-thumb);
  transform: translateZ(0);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card-cover.img-loaded { background-image: none; }
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 右上状态角标（参考站：黄底 #0b1020 字、等宽 10px、字距 1、padding 3/7、圆角 2） */
.card-badge {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 2;
  max-width: calc(100% - 16px);
  padding: 3px 7px;
  border-radius: var(--radius-sm);
  background: var(--badge);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.5px;
  color: var(--on-accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.card-meta {
  display: block;
  min-height: var(--card-meta-h);
  padding-top: 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: 500;
  line-height: 1.4;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}
/* 豆瓣分（gt 0 才输出）：片名右侧等宽黄字 */
.card-score {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
}
.card-sub {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.5px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-sub i { margin: 0 6px; font-style: normal; color: var(--text-dim); }
/* 主演留给 hover 浮层（节点保留、视觉收起） */
.card-tags { display: none; }
.card:hover .card-title { color: var(--accent); }
@media (hover: hover) {
  .card:hover .card-cover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
  }
}

/* ---------- 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);
  border: 1px solid var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 14px 34px var(--accent-glow), var(--shadow-panel);
  cursor: default;
  transition: width 0.1s ease-out, height 0.1s ease-out, top 0.1s ease-out, left 0.1s ease-out;
}
.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(7, 10, 18, 0) 0%, rgba(7, 10, 18, 0.75) 38%, rgba(7, 10, 18, 0.96) 100%);
}
.cd-badge {
  position: absolute;
  top: 7px;
  left: 9px;
  z-index: 113;
  padding: 2px 7px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
  background: var(--badge);
  color: var(--text-1);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  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: var(--score-hi); }
.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(7, 10, 18, 0.4);
  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: var(--hot); }
.cd-hot-num { font-size: 12px; color: var(--hot); }
.cd-dialog {
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 800;
  color: var(--on-accent);
  border-radius: var(--radius);
  background: var(--accent);
}

/* 浮层尺寸：卡片的 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; }
}

/* ========== 排行榜列（参考站详情页侧栏「国产剧排行榜」.hl-rank-list：无面板底；标题 20/700 ＋「更多 ›」；
   列 padding 10、底线 1px #1e293b；名次 16px／700 彩色） ========== */
/* 首页总榜、排行榜页、详情侧栏（同类热播／专题）共用 */
/* 每栏一块面板（--bg-2 底、1px hairline、圆角 2）；名次照参考站排行页：衬线大号数字，前三黄、其余灰；
   榜首海报左上压衬线黄色「1」（参考站前三大卡） */
.rank-col {
  min-width: 0;
}
.section .rank-col,
.rank-wrap .rank-col {
  padding: 18px 18px 8px;
  border: 1px solid var(--border-row);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
}
.rank-col-hd {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 15px;
}
.rank-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding-right: 10px;
  font-family: var(--font-serif);
  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(--fill-2); color: var(--text-2); }
.rank-col-more { flex-shrink: 0; margin-left: auto; font-size: 13px; line-height: 28px; color: var(--text-link); white-space: nowrap; }
.rank-col-more:hover { color: var(--link-hover); }

/* 榜首：左图右字 */
.rank-top1 { padding: 0 0 10px; border-bottom: 1px solid var(--border-row); }
.rank-top1 a { display: flex; gap: 15px; color: inherit; }
.rt1-thumb {
  position: relative;
  flex-shrink: 0;
  width: 70px;
  aspect-ratio: var(--poster-ratio);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card) url("../img/load.gif") no-repeat center/cover;
}
.rt1-thumb::after {
  content: "1";
  position: absolute;
  left: 6px;
  top: 2px;
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: var(--rank-1);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  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-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-li { border-bottom: 1px solid var(--border-row); }   /* .vod-link.b-b */
.rank-li:last-child { border-bottom: 0; }
.rank-li-inner {
  display: flex;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-1);
}
.rank-li-inner:hover { color: var(--accent); }
/* 名次：参考站排行页衬线数字，前三黄、其余灰 */
.rl-num {
  flex-shrink: 0;
  width: 26px;
  margin-right: 8px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 20px;
  color: var(--rank-num);
}
/* 榜首已在 .rank-top1，列表从第 2 名起：第 1、2 项就是第 2、3 名 */
.rank-list > li:nth-child(-n+2) .rl-num { color: var(--rank-2); }
/* 没有榜首卡、从第 1 名起的整串榜单（搜索页右栏） */
.rank-list--full > li:nth-child(-n+3) .rl-num { color: var(--rank-1); }
.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-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rl-hits { color: var(--text-3); }
.rl-hits .mac-icon { font-size: 12px; color: var(--text-3); }

.section .rank-grid--home {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.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-card);
  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);
  color: var(--on-accent);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s;
  margin-top: 6px;
}
.modal-submit:hover { background: var(--accent-hover); }

.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(--accent); 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: 0 6px 24px rgba(0,0,0,.45);
  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: #e05555; color: #f07070; }
.mac-toast--success { border-color: var(--accent); color: var(--accent); }
.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(--accent); }
.modal-link--accent { color: var(--accent); }

.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: 700;
  transition: background 0.2s, color 0.2s;
}
.modal-cancel:hover { color: var(--text-1); border-color: var(--accent); }
/* ========== 留言（共用） ========== */
.comment-section { margin-bottom: 32px; }
.gbook-count { font-size: 13px; font-weight: 400; color: var(--text-3); margin-left: 6px; }
/* 留言板（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(--accent); }

/* ========== 资讯卡／专题卡 ==========
   资讯卡：参考站没有，依它的卡片语言延伸（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: 18px;
}
.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: 500;
  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: 500;
  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.5px; 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); }
}

.topic-grid > .topic-grid-item { --tc: #facc15; }
.topic-grid > .topic-grid-item:nth-child(6n+2) { --tc: #f87171; }
.topic-grid > .topic-grid-item:nth-child(6n+3) { --tc: #a78bfa; }
.topic-grid > .topic-grid-item:nth-child(6n+4) { --tc: #2dd4bf; }
.topic-grid > .topic-grid-item:nth-child(6n+5) { --tc: #60a5fa; }
.topic-grid > .topic-grid-item:nth-child(6n+6) { --tc: #fb923c; }
.topic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 180px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
  color: var(--text-1);
  transition: transform 0.3s, border-color 0.3s;
}
.topic-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tc) 16%, transparent) 0%, rgba(15, 23, 42, 0.92) 60%, rgba(15, 23, 42, 0.98) 100%);
  pointer-events: none;
}
.topic-card-thumb {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg-card) url("../img/load.gif") no-repeat center/cover;
}
/* 封面淡铺只剩侧栏在用（widget/topic_side，$_tc_side） */
.topic-card-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.22; filter: saturate(0.8); }
.topic-card-thumb img.is-nopic { opacity: 0.08; }
.topic-card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 28px 26px;
}
.topic-card-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--tc);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topic-card-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topic-card-blurb {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-3);
  white-space: nowrap;   /* 参考站：简介一行 */
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 简介下方一排小海报（参考站：36×54、圆角 2、1px 页底色描边当缝、阴影；第 2 张起往左叠 10px） */
.topic-card-posters {
  display: flex;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.topic-card-posters > li {
  flex-shrink: 0;
  width: 36px;
  height: 54px;
  overflow: hidden;
  border: 1px solid var(--bg-base);
  border-radius: 2px;
  background: var(--bg-elevated);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.topic-card-posters > li + li { margin-left: -10px; }
.topic-card-posters img { width: 100%; height: 100%; object-fit: cover; }
.topic-card-posters img.is-nopic { padding: 6px; object-fit: contain; }
.topic-card-go {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-end;
  margin-top: auto;
  font-size: 12px;
  color: var(--tc);
}
.topic-card-go .mac-icon { font-size: 12px; transition: transform 0.2s; }
.topic-card:hover { border-color: var(--tc); color: var(--text-1); }
@media (hover: hover) {
  .topic-grid .topic-card:hover { transform: translateY(-4px); }   /* 参考站：整张上浮 4px */
}
.topic-card:hover .topic-card-go .mac-icon { transform: translateX(3px); }
/* 网格里的专题标题一律最多两行（窄卡不会被截成两三个字），而且固定留两行高度：
   一行标题的卡不保留时，同一列的简介与小海报会比两行标题的卡高出一截（测试机实测差 20–29px，使用者 2026-10-29 要求对齐）。
   用 em 算，各断点改字级时自动跟着变（line-height 1.3 × 2） */
.topic-grid .topic-card-title {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 2.6em;
  /* 折两行时两行字数尽量平均（「FIRST青年电影展 / 主要影片」，不是「…主 / 要影片」）；
     不支持的浏览器维持原本断法（使用者 2026-10-29 要求） */
  text-wrap: balance;
}
/* vod_card.js 用中文分词把每个词包起来，balance 只在词与词之间折行 */
.topic-grid .topic-card-title .tc-word { white-space: nowrap; }
/* 宽屏 6 栏：内容到版心 1360 时卡宽约 210，内距收成 20/18、标题 18 */
@media (min-width: 1360px) {
  .topic-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .topic-grid .topic-card-body { padding: 20px 18px; }
  .topic-grid .topic-card-title { font-size: 18px; }
}
/* 手机 3 栏：卡宽约 100，内距 14/10、标题 15、简介两行 12、小海报缩成 26×39（4 张正好塞进去） */
@media (max-width: 767px) {
  .topic-grid { gap: 10px; }
  .topic-grid .topic-card { min-height: 0; }
  .topic-grid .topic-card-body { padding: 14px 10px; gap: 6px; }
  .topic-grid .topic-card-kicker { font-size: 9px; letter-spacing: 0; }
  .topic-grid .topic-card-title { font-size: 15px; }
  .topic-grid .topic-card-blurb {
    font-size: 12px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 3.2em;   /* 同标题：简介两行也固定留高（line-height 1.6 × 2），小海报才对齐 */
  }
  .topic-grid .topic-card-posters > li { width: 26px; height: 39px; }
  .topic-grid .topic-card-posters > li + li { margin-left: -8px; }
}

/* ========== 分页（参考站分页：40 高方钮、--surface 底、1px hairline、圆角 2、等宽数字；当前页黄底深字；hover 黄框） ========== */
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; padding: 20px 0 30px; }
.pagination ul,
.pagination ol { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pg-btn,
.pg-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 13px;
  transition: border-color 0.2s, color 0.2s;
}
.pg-btn:hover,
.pg-num:hover { border-color: var(--accent); color: var(--accent); }
.pg-num.is-active,
.pg-num[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 500; }
.pg-info { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); margin-left: 12px; }

/* ========== 页脚：置中四行，结构与 tp43 一致（使用者 2026-10-27 改定，取代 5 栏）；颜色用本主题 token：
   页底同色、上方 1px 描边、连结 --text-link、版权等宽字 ========== */
.site-footer {
  margin-top: 48px;
  padding: 28px var(--page-pad) 36px;
  border-top: 1px solid var(--border-row);
  background: var(--bg-base);
  font-size: 12px;
  line-height: 25px;
  color: var(--text-2);
  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 15px;
}
.footer-links a { color: var(--text-link); }
.footer-links a:hover { color: var(--accent); }
/* 首页「友情链接」：参考站标签方钮（12px、1px 框、圆角 2） */
.section .footer-links { justify-content: flex-start; gap: 8px; }
.section .footer-links a {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  font-size: 12px;
  color: var(--text-2);
  transition: color 0.2s, border-color 0.2s;
}
.section .footer-links a:hover { border-color: var(--accent); color: var(--accent); }
.footer-bottom-bar { font-family: var(--font-mono); color: var(--text-3); }

/* ========== 右侧悬浮钮（tp39 定案的两颗：手机观看 QR＋回到顶部）；外观照顶栏框线方钮：#0f172a 底、1px 描边、圆角 2，hover 黄色 ========== */
.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: 1px solid var(--border-2);
  border-radius: var(--radius-btn);
  background: var(--fab-bg);
  color: var(--fab-color);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  font-size: 16px;
  cursor: pointer;
}
.fab-btn .mac-icon { font-size: 16px; }
.fab-btn:hover { color: var(--on-accent); background: var(--accent-grad); }   /* .hl-bg-hover:hover */
.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 { color: var(--on-accent); background: var(--accent-grad); }

/* 滑过时左侧滑出文字提示（同 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; }

/* 二维码弹层：在按钮组左侧；白底是扫码需要，文字／边框用固定色不走皮肤变量（§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、圆角 12） ========== */
.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(--accent); }
.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(--accent);
  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(2, 4, 10, 0.6);
  -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: -15px 0 30px rgba(0, 0, 0, 0.45);
  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(--accent); font-weight: 500; }

.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(--accent); color: var(--accent); }

/* ========== 搜索下拉（历史 + 热门，强制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(--accent); 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(--accent); }

/* ========== 响应式 ========== */
/* ≤1279：导览项目多（13 项）时搜索框收成放大镜，导览才放得下 */
@media (max-width: 1279px) {
  .topbar-inner { gap: 24px; }
  .topbar-inner .tb-search { display: none; }
  .topbar-inner #searchToggle { display: inline-flex; }
}

/* ≤1023：导览收进右侧抽屉；顶栏一列 60：logo ／ 放大镜 · 观看记录 · ☰ */
@media (max-width: 1023px) {
  .topbar .tb-nav { display: none; }
  .topbar-inner .tb-menu-btn { display: inline-flex; }
  .topbar-right { gap: 8px; }
  .brand-logo-img { height: 26px; max-width: 150px; }

  .art-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .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-right { gap: 6px; }
  .tb-action { width: 38px; height: 36px; }
  .search-overlay-inner { margin-top: 0; padding: 12px; }

  /* 参考站手机 h2 24px */
  .section-title { font-size: 24px; }
  .section-kicker { font-size: 10px; }
  .section + .section,
  .quick-nav + .section { margin-top: calc(var(--section-gap) + 8px); }
  .rank-col-title { font-size: 18px; }
  .section-header { margin-bottom: 14px; 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)); }
  .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .actor-row { grid-template-columns: repeat(4, 1fr); }
  .section .rank-grid--home { grid-template-columns: 1fr; }

  /* 参考站手机：片名 13px、角标 9px */
  .card-title { font-size: 13px; }
  .card-score { font-size: 11px; }
  .card-sub { font-size: 10px; letter-spacing: 0; }
  .card-badge { right: 5px; top: 5px; padding: 2px 5px; font-size: 9px; letter-spacing: 0; }

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

  .fab-btn .mac-icon { font-size: 15px; }
}

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


.mac_pop_bg { background: rgba(0,0,0,0.5) !important; }
.mac_pop { background: var(--bg-card) !important; border: 1px solid var(--border) !important; border-radius: var(--radius) !important; box-shadow: 0 20px 60px rgba(0,0,0,0.3) !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: 600 !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(--accent); background: var(--accent-light); font-weight: 500; box-shadow: inset 2px 0 0 var(--accent); }
.aln-item .mac-icon { font-size: 16px; }

/* ========== 资讯侧栏共用（widget/art_hot_vod + art_recommend_read） ========== */
.art-sidebar { position: sticky; top: calc(var(--topbar-h) + 12px); }
.art-sb-block { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.art-sb-title { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text-1); padding: 12px 16px; border-bottom: 1px solid var(--border); 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(--accent); }
.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(--accent); }
.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）
   ========================================================================== */

/* ---------- 面包屑（参考站：等宽 11px、字距 2、#94a3b8，分隔符「/」#64748b，末级白字） ---------- */
.art-breadcrumb { font-family: var(--font-mono); font-size: 11px; line-height: 20px; letter-spacing: 1.5px; color: var(--text-3); margin-bottom: 0; }
.art-breadcrumb a { color: var(--text-3); }
.art-breadcrumb a:hover { color: var(--accent); }
.bc-sep { display: inline-flex; margin: 0 8px; color: var(--text-dim); }
.bc-sep .mac-icon { display: none; }
.bc-sep::before { content: "/"; }
.bc-current { color: var(--text-1); }

/* ---------- 区块标题（详情类页）：参考站详情页「猜你喜欢」衬线 26/700；标题 → 内容 20 ---------- */
.detail-section { margin-bottom: var(--section-gap); }
.detail-section-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  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-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 13px; font-weight: 400; color: var(--text-3); }
.detail-section-more:hover { color: var(--accent); }
@media (max-width: 767px) {
  .detail-section-hd { font-size: 22px; }
}

/* ---------- 播放列表（widget/playlist；详情页与播放页共用） ---------- */
.playlist-section {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: var(--section-gap);
}
/* 参考站「播放列表」：标题一行（右侧「倒序」），下一行线路 tab（.hl-plays-from：15px #a9b7d6，选中 .85 白／700＋下方 20×3 青线），再下面选集格。
   用 display:contents 把 .playlist-hd 的两个子元素摊进 flex，不改 widget 标记 */
.playlist-hd { display: contents; }
.playlist-title {
  order: 1;
  margin: 0;
  padding: 0;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-title);
}
.playlist-sources {
  order: 3;
  flex: 0 0 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  margin-top: 18px;
}
/* 线路：参考站「线路一 3 集」方钮（32 高、--surface 底、1px 框、13px），选中黄底深字 */
.pl-source-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-btn);
  background: var(--bg-card);
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  color: var(--text-2);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.pl-source-tab .mac-icon { font-size: 13px; }
.pl-source-tab:hover { border-color: var(--accent); color: var(--accent); }
.pl-source-tab.is-active { border-color: var(--accent); background: var(--accent); color: var(--on-accent); font-weight: 500; }
.pl-sort-btn {
  order: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 0;
  line-height: 28px;
  font-size: 14px;
  color: var(--text-3);
  background: none;
  border: 0;
  cursor: pointer;
}
.pl-sort-btn:hover { color: var(--accent); }
.playlist-sources::after { content: none; }
.playlist-empty,
.playlist-panel {
  order: 4;
  flex: 0 0 100%;
  min-width: 0;
  padding-top: 16px;
}
.playlist-empty { padding: 30px 0; text-align: center; color: var(--text-3); }
.playlist-panel { display: none; }
.playlist-panel.is-active { display: block; }

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

/* 集数按钮：参考站选集方钮（44 高、--surface 底、1px 框、圆角 2、13px）；当前集黄底深字；格距 8 */
.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: 44px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  transition: color 0.2s, border-color 0.2s;
}
.episode-btn:hover { border-color: var(--accent); color: var(--accent); }
.episode-btn.is-active { border-color: var(--accent); background: var(--accent); color: var(--on-accent); font-weight: 500; }
.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 行（44 × 3 ＋ 间距 10 × 2） */
.playlist-episodes.episodes-collapsed { max-height: 152px; overflow: hidden; }
.episode-more-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 40px;
  margin-top: 10px;
  border: 1px dashed var(--border-2);
  border-radius: var(--radius);
  color: var(--text-link);
  font-size: 13px;
  text-align: center;
}
.episode-more-trigger:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 767px) {
  .playlist-title { font-size: 22px; }
  .playlist-sources { margin-top: 14px; gap: 8px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .pl-source-tab { white-space: nowrap; flex-shrink: 0; }
  .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(--accent); 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(--accent); }
/* 核心 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-card);
  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-card);
  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(--accent); }
.cmt-submit-btn {
  height: 36px;
  padding: 0 30px;
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--accent-grad);
  color: var(--on-accent);
  font-size: 14px;
  cursor: pointer;
}
.cmt-submit-btn:hover { background: var(--accent); }

.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-card); }
.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(--accent); }
.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(--accent); }
.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(--accent); }
.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-btn);
  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; }
.topic-side-list .topic-card-blurb { display: none; }
.topic-side-list .topic-card { min-height: 160px; }                  /* 侧栏卡维持原尺寸，不跟专题合集的 28/26 走 */
.topic-side-list .topic-card-body { padding: 18px 18px 14px; }

/* 页面顶部的面包屑与下一块之间的间距（资讯／专题／排行等无 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，行内没有其他可点元素 */
}
