/* ==========================================
   tp49_dark_red — 视觉参考：深色影视站（深灰黑底＋红色主色）
   底 #111319 ＋ 深一层 #0a0c0f ＋ 占位 #25252b ＋ 主色红 #ff4d4d（压在上面的字用白）；卡片圆角 12、按钮与筛选膠囊 50。
   字体：系统黑体（参考站没有网络字体）；排行名次用 Impact。
   数值取自参考站 common.css 原始规则与 getComputedStyle 实测（1440 / 375），量测记录见 template/log/tp49_dark_red__THEME_SPEC.md。
   版型：纯顶栏（70，横排导览）；≤1023 导览收进右侧抽屉；架构、资料区块承袭 tp46_dark_yellow。
   组件里不写死色码，全部走下面的变量。
   ========================================== */
:root {
  --bg-base:       #111319;   /* 页底（参考站 .theme2 .bj） */
  --bg-deep:       #0a0c0f;   /* 深一层：页脚、详情背景带底 */
  --bg-dock:       #0a0c0f;   /* 抽屉 */
  --bg-topbar:     #111319;   /* 顶栏实色，无毛玻璃 */
  --bg-card:       #1e2126;   /* 参考站 .player .box：选集钮、pill、输入框 */
  --bg-elevated:   #25252b;   /* 图片占位、选中底 */
  --bg-panel:      #0a0c0f;   /* 面板（参考站 .box） */
  --bg-input:      #1e2126;
  --bg-drop:       #1a1c22;   /* 下拉／弹窗 */
  --bg-glass:      rgba(255, 255, 255, 0.04);

  --accent:        #ff4d4d;   /* 参考站主色（.cor6、分数、播放钮、分页当前） */
  --accent-end:    #ff7a45;
  --accent-grad:   #ff4d4d;   /* 主按钮实色；变量名沿用底稿 */
  --accent-hover:  #ff6b6b;
  --on-accent:     #ffffff;   /* 压在红色上的字 */
  --accent-dot:    #ff4d4d;
  --accent-ico:    #ff4d4d;
  --accent-light:  rgba(255, 77, 77, 0.10);
  --accent-soft:   rgba(255, 77, 77, 0.20);   /* 参考站导览选中底块 */
  --accent-line:   rgba(255, 77, 77, 0.55);
  --accent-glow:   rgba(255, 77, 77, 0.20);

  --nav-active:    #ff4d4d;   /* 参考站导览选中：红字＋淡红底块 */
  --link-hover:    #ff4d4d;

  --btn-grad:      #25252b;   /* 次要 pill */
  --btn-text:      rgba(255, 255, 255, 0.87);
  --btn-danger:    #ff4d4d;
  /* 详情页主钮：参考站是蓝色渐层膠囊，全站只有这颗是蓝的很突兀，使用者 2026-10-30 同意改成红橙渐层 */
  --btn-play:      linear-gradient(-45deg, #ff7a45 0%, #ff4d4d 100%);

  --accent-2:      #fa6400;   /* 橙：热度条起点 */
  --accent-2-alt:  #ffb802;
  --hot:           #ff008c;   /* 参考站榜单热度数字（桃红） */
  --badge:         #ff4d4d;
  --badge-douban:  #ff4d4d;
  --badge-state:   #ff4d4d;

  --rank-1:        #ff4f34;   /* 参考站榜单名次：1 红、2 橙、3 黄，其余灰 */
  --rank-2:        #fa6400;
  --rank-3:        #ffb802;
  --rank-num:      #a9a9ac;

  --text-1:        rgba(255, 255, 255, 0.9);    /* .cor2／a */
  --text-2:        rgba(255, 255, 255, 0.75);
  --text-3:        #a9a9ac;                     /* .cor5 */
  --text-dim:      rgba(255, 255, 255, 0.4);
  --text-link:     rgba(255, 255, 255, 0.87);
  --text-nav:      rgba(255, 255, 255, 0.87);   /* 导览未选中 .cor1 */
  --text-title:    #ffffff;
  --text-input:    rgba(255, 255, 255, 0.9);

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

  --border:        rgba(255, 255, 255, 0.08);
  --border-2:      #2e3038;
  --border-row:    rgba(255, 255, 255, 0.06);

  --score-hi:      #ff4d4d;
  --score-mid:     #a9a9ac;

  --shadow-header: 0 2px 6px rgba(0, 0, 0, 0.6);   /* 参考站 .head-b／.head-c */
  --shadow-thumb:  none;
  /* 参考站卡片 hover：封面模糊放大透出＋白色外光晕（cover-glow.css） */
  --shadow-hover:  0 0 15px rgba(255, 255, 255, 0.22), 0 0 30px rgba(255, 255, 255, 0.16), 0 10px 20px rgba(0, 0, 0, 0.12);
  --shadow-drop:   0 20px 60px rgba(0, 0, 0, 0.55), 0 6px 18px rgba(0, 0, 0, 0.35);
  --shadow-panel:  0 0 10px rgba(24, 24, 24, 0.1);

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

  --fab-bg:        #1e2126;
  --fab-color:     rgba(255, 255, 255, 0.87);
  --fab-top-bg:    #ff4d4d;   /* 参考站回到顶部：红色圆钮 */

  --header-position: fixed;

  /* 参考站没有等宽／衬线网络字体，全站系统黑体；变量名沿用底稿，避免逐条改规则 */
  --font-sans:     -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-mono:     var(--font-sans);
  --font-serif:    var(--font-sans);
  --font-num:      Impact, "Arial Narrow", "Helvetica Neue", Arial, sans-serif;   /* 榜单名次 */

  --topbar-h:      70px;
  --dock-w:        0px;       /* 纯顶栏，无侧栏（变量保留给旧规则） */
  --tabbar-h:      0px;
  /* 左右间距：参考站 1440 时内容左右各 60（≈ --page-pad 40 ＋ 版心置中），手机 12；
     沿用 tp46 的 ≥768 为 40、手机 20 与 --content-max 版心 */
  --page-pad:      40px;
  --cell:          10px;
  --hdr-x:         40px;
  --page-pad-r:    var(--page-pad);

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

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

  --gap:           16px;
  --grid-gap-y:    20px;
  --grid-gap-x:    16px;      /* 参考站卡片间距 16 */

  --radius:        12px;      /* 参考站卡片／海报 12 */
  --radius-sm:     8px;       /* 选集钮、小面板 */
  --radius-btn:    50px;      /* 按钮、输入框：膠囊 */
  --radius-lg:     12px;
  --radius-pill:   50px;      /* 筛选、分页、标签 */

  --content-max:   1360px;

  --poster-ratio:  3 / 4;     /* 参考站海报 173×235 ≈ 0.74 */
  --card-meta-h:   50px;      /* 片名 15/22 ＋ 副行 12/20 ＋ 上距 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: 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; }
/* 参考站标题一律衬线（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: 36px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

/* ========== 顶栏（参考站 .head：70 高、fixed、实色 #111319、无底线；捲动后 header.js 加 .is-scrolled 出阴影；左右 40） ========== */
.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);
  transition: box-shadow 0.2s;
}
.topbar.is-scrolled { box-shadow: var(--shadow-header); }

/* 顶栏展开满宽（参考站 .head：不限版心宽、左右 padding 20；logo 在 x28、logo 到第一个导览字 64、右侧按钮贴右缘 20）。
   2026-11-04 使用者要求照参考站「展开」——原本限在版心 1440 内置中，宽屏时两侧空出一大块。
   内容区仍照版心置中，只有顶栏展开 */
.topbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 52px;                     /* ＋导览项 padding 12 ＝ logo 到第一个字 64 */
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0 20px;
}

.tb-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 100%;
  margin-left: 8px;              /* 参考站 logo 在 x28（padding 20＋8） */
}

/* ---------- 横排导览（参考站：15/700、项距 28、未选 .87 白；选中红字＋淡红圆角底块 rgba(255,77,77,.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: 4px;
  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: 700;
  color: var(--text-nav);
  white-space: nowrap;
  transition: color 0.2s;
}
.tb-nav-item:hover { color: var(--accent); }
.tb-nav-item.is-active { color: var(--nav-active); }
.tb-nav-item.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 32px;
  margin-top: -16px;
  border-radius: 6px;
  background: var(--accent-soft);
  z-index: -1;
}
.tb-nav-item { z-index: 0; }
/* 还能往哪边滑就在哪边渐隐（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;
}

/* 内嵌搜索框（参考站：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); }

/* 搜索／观看记录／☰：参考站右侧「图示 22 在上、12px 小字在下」的直式钮（.6 白，无框），左右内距 15 */
.tb-action {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 44px;
  height: 100%;
  padding: 0 10px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}
.tb-action .mac-icon { font-size: 22px; }
.tb-action-label { font-size: 12px; white-space: nowrap; }
.tb-action:hover,
.tb-action.is-active,
.tb-action.is-open { color: var(--accent); }
/* 参考站顶栏没有内嵌搜索框：.tb-search 留在 DOM 给 header.js，一律收起，搜索走放大镜弹层 */
.tb-search { display: none !important; }
.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（参考站置中卡片轮播：主卡 1074×494（1440 宽时约 75%、高宽比 0.46）、上距 30、无圆角；
   两侧露出相邻张（透明度 .45＋blur 3px、间距 16）；卡片下方渐层上置中片名 34/700 白 ＋ 简介 14px .82 两行；
   左右 46 圆形箭头 rgba(0,0,0,.45)）。立即播放／详情两颗钮是甲方基线（参考站没有），置中排在简介下方。
   每张 .hero-slide 都在同一个中心点，hero.js 切 .is-active／.is-prev／.is-next，位移交给 transform 过场 ========== */
.hero-container {
  position: relative;
}
.hero {
  --hc-w: min(75vw, 1080px);
  --hc-h: calc(var(--hc-w) * 0.46);
  --hero-top: 16px;              /* 主卡上距：参考站 30，使用者 2026-10-30 要求缩小（搭配背景氛围光）；分类页面包屑压在主卡上、不改上距（vod_list.css） */
  position: relative;
  padding-bottom: 28px;
  overflow: hidden;
  background: var(--bg-base);
}
/* 背景氛围光：当前这张的封面放大、高度模糊、压暗，铺满整个轮播区（从顶栏下缘到本轮列表），
   换片时交叉淡入；下缘用渐层收回页底色，跟下方分类膠囊接得干净。纯装饰、不吃点击 */
.hero-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-amb {
  position: absolute;
  inset: -80px;
  background-position: center;
  background-size: cover;
  filter: blur(60px) saturate(1.4) brightness(0.55);
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-amb.is-active { opacity: 1; }
/* 上缘从顶栏同色（--bg-base）渐渐透出光（约 120px），不然顶栏实色底与光层之间会有一条硬边（使用者 2026-10-30 回报）；
   下缘同样收回页底色 */
.hero-ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-base) 0, rgba(17, 19, 25, 0.55) 48px, rgba(17, 19, 25, 0.2) 120px, rgba(17, 19, 25, 0.3) 60%, var(--bg-base) 100%);
}
/* 舞台：主卡与两侧相邻张、箭头都在这一层；本轮列表 .hero-thumbs 在它下方正常排版 */
.hero-stage {
  position: relative;
  z-index: 1;
  height: calc(var(--hero-top) + var(--hc-h));
}
.hero-slides {
  position: absolute;
  inset: 0;
  touch-action: pan-y;           /* 水平手势交给 hero.js 换片，上下仍可捲页面 */
}
/* 主卡与相邻张的衔接（使用者 2026-10-30 要求调得更有层次）：
   主卡圆角 12＋较深的投影浮在最上；相邻张缩成 .88、压暗（brightness .5，不用 opacity，免得透出页底变灰）、
   外缘（靠画面两侧那一边）用遮罩渐隐，往主卡那一边保持清楚，看起来像排在主卡后方的一叠。
   2026-11-04 照参考站改成「相邻张塞在主卡底下」：参考站相邻张缩 .85、blur 3px，位移量＝卡宽×.864＋16
   （它是先并排间距 16、再 scale(.85) translateX(∓16%)），缩后边缘有约 卡宽×.061−16 压在主卡下（1440 宽约 50px）；
   主卡 z-index 2 在上。原本推开到间距 16 的写法是 translateX(calc(94% + 16px)) scale(.88)。 */
.hero-slide {
  position: absolute;
  top: var(--hero-top);
  left: 50%;
  width: var(--hc-w);
  height: var(--hc-h);
  margin-left: calc(var(--hc-w) / -2);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-panel);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  transition: transform 0.6s ease, opacity 0.6s ease, filter 0.6s ease, box-shadow 0.6s ease, visibility 0s linear 0.6s;
}
.hero-slide.is-active,
.hero-slide.is-prev,
.hero-slide.is-next {
  visibility: visible;
  transition-delay: 0s;
}
.hero-slide.is-active {
  z-index: 2;
  opacity: 1;
  transform: none;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.hero-slide.is-prev,
.hero-slide.is-next {
  z-index: 1;
  opacity: 1;
  filter: brightness(0.5) saturate(0.85) blur(3px);
  cursor: pointer;
}
.hero-slide.is-prev {
  transform: translateX(calc(-86.4% - 16px)) scale(0.85);
  -webkit-mask-image: linear-gradient(to left, #000 45%, transparent 100%);
          mask-image: linear-gradient(to left, #000 45%, transparent 100%);
}
.hero-slide.is-next {
  transform: translateX(calc(86.4% + 16px)) scale(0.85);
  -webkit-mask-image: linear-gradient(to right, #000 45%, transparent 100%);
          mask-image: linear-gradient(to right, #000 45%, transparent 100%);
}
@media (hover: hover) {
  .hero-slide.is-prev:hover,
  .hero-slide.is-next:hover { filter: brightness(0.7) saturate(0.95) blur(3px); }   /* 只变亮、模糊保留，不然塞在主卡下的边缘一 hover 就突然变清楚 */
}

/* 背景：横幅图 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;
}
/* 没有横幅只有直式海报：模糊铺底，避免放大后糊成一块 */
.hero-slide.is-poster .hero-bg {
  filter: blur(22px) saturate(1.1);
  transform: scale(1.2);
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.55) 72%, rgba(0, 0, 0, 0.82) 100%);
}
/* 整张卡铺满的详情连结（手机按钮收起后仍点得进去，§17.36） */
.hero-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-info {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 22px;
  z-index: 2;
  text-align: center;
  pointer-events: none;
}
.hero-info a { pointer-events: auto; }
/* 两侧露出的相邻张只露图，不露文字（文字会伸出画面外，也跟主卡抢视线） */
.hero-slide:not(.is-active) .hero-info { opacity: 0; visibility: hidden; }
.hero-title {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.hero-title a { color: inherit; }
.hero-title a:hover { color: var(--accent); }
.hero-desc {
  max-width: 1020px;
  margin: 8px auto 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  overflow-wrap: anywhere;
  text-overflow: ellipsis;   /* 新版 Chrome 把 line-clamp 的 display 算成 flow-root，scrollWidth 会多 4px；标明省略号裁切 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}
.hero-play,
.hero-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.hero-play .mac-icon { font-size: 14px; }
.hero-play { background: var(--accent); color: #fff; }
.hero-play:hover { background: var(--accent-hover); color: #fff; }
.hero-more { background: rgba(255, 255, 255, 0.16); color: #fff; }
.hero-more:hover { background: rgba(255, 255, 255, 0.26); color: #fff; }

/* 左右箭头：落在相邻张露出的那一段，离主卡 66px（参考站 1440 实测） */
.hero-arrow {
  position: absolute;
  top: calc(var(--hero-top) + var(--hc-h) / 2);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 20px;
  transition: background 0.2s;
}
.hero-arrow:hover { background: var(--accent); }
.hero-arrow--prev { left: max(12px, calc((100% - var(--hc-w)) / 2 - 112px)); }
.hero-arrow--next { right: max(12px, calc((100% - var(--hc-w)) / 2 - 112px)); }

@media (max-width: 1199px) {
  .hero { --hc-w: 80vw; }
  .hero-title { font-size: 28px; }
  .hero-arrow--prev { left: max(8px, calc((100% - var(--hc-w)) / 2 - 62px)); }
  .hero-arrow--next { right: max(8px, calc((100% - var(--hc-w)) / 2 - 62px)); }
}
/* ≤767：参考站手机 Hero 是满宽一张（不露相邻张），片名 22 置中、简介两行；按钮收起，整张卡即详情连结 */
@media (max-width: 767px) {
  .hero { --hc-w: 100vw; --hc-h: calc(100vw * 0.5); --hero-top: 0px; padding-bottom: 0; }
  .hero-ambient { display: none; }
  .hero-slide,
  .hero-slide.is-active { border-radius: 0; box-shadow: none; }
  .hero-slide.is-prev,
  .hero-slide.is-next { opacity: 0; visibility: hidden; }
  .hero-info { left: var(--page-pad); right: var(--page-pad); bottom: 12px; }
  .hero-title { font-size: 22px; }
  .hero-desc { margin-top: 4px; font-size: 12px; }
  .hero-actions { display: none; }
  .hero-arrow { width: 34px; height: 34px; margin-top: -17px; font-size: 16px; }
  .hero-arrow--prev { left: 8px; }
  .hero-arrow--next { right: 8px; }
}

/* ---------- 本轮影片列表 .hero-thumbs（使用者 2026-10-30 要求）----------
   ≥1024：主卡下方置中一排小封面（16:9、圆角 8）＋片名 12px；当前这张 2px 红框＋红字，其余 .55 透明，hover 变亮。
   一排宽度跟主卡一样（--hc-w），7 张放不下时每张一起缩（flex 0 1 120px）。
   ≤1023：同一组按钮收成小圆点（8×8），当前拉长成 22px 红色短条；封面与片名收起 */
.hero-thumbs {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 12px;
  width: var(--hc-w);
  margin: 16px auto 0;
  padding: 0;
  list-style: none;
}
.hero-thumbs > li { display: flex; flex: 0 1 120px; min-width: 0; }
.hero-thumb {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  min-width: 0;
  padding: 0;
  opacity: 0.55;
  text-align: left;
  transition: opacity 0.25s;
}
.hero-thumb-pic {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated) url("../img/load.gif") no-repeat center/cover;
  transition: border-color 0.25s;
}
.hero-thumb-pic img { width: 100%; height: 100%; object-fit: cover; }
.hero-thumb-name {
  font-size: 12px;
  line-height: 18px;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.25s;
}
.hero-thumb:hover { opacity: 0.9; }
.hero-thumb.is-active { opacity: 1; }
.hero-thumb.is-active .hero-thumb-pic { border-color: var(--accent); }
.hero-thumb.is-active .hero-thumb-name { color: var(--accent); }
@media (max-width: 1199px) {
  .hero-thumbs { gap: 10px; }
}
@media (max-width: 1023px) {
  .hero-thumbs { gap: 0; margin-top: 4px; }
  .hero-thumbs > li { flex: 0 0 auto; }
  .hero-thumb {
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;                /* 手机点击范围 ≥32（RWD 稽核）；圆点本身 8×8 */
    opacity: 1;
  }
  .hero-thumb-pic,
  .hero-thumb-name { display: none; }
  .hero-thumb::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.25s, background 0.25s;
  }
  .hero-thumb.is-active { width: 40px; }
  .hero-thumb.is-active::before { width: 22px; background: var(--accent); }
}

/* ========== 分类入口（参考站筛选膠囊：#1e2126 底、圆角 50、14px .87 白；hover 红字）。
   一排放不下时横向可滑（header.js 依捲动位置加两侧渐隐） ========== */
.quick-nav {
  max-width: calc(var(--content-max) + var(--page-pad) * 2);
  margin: 12px auto var(--section-gap);
  padding: 0 var(--page-pad);
}
.quick-nav-list {
  display: flex;
  gap: 10px;
  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: 0 0 auto; }
.quick-nav-item {
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  font-size: 14px;
  color: var(--text-nav);
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.quick-nav-item:hover { color: #fff; background: var(--accent); }
@media (max-width: 767px) {
  .quick-nav { margin-top: 14px; }
  .quick-nav-list { gap: 8px; }
  .quick-nav-item { height: 32px; padding: 0 16px; font-size: 13px; }
}

/* ========== 区块（参考站区块头 .title-a：h2 24/400 .9 白、行高 45，紧接其后灰色「更多 ›」14px（左距 20）；
   没有小标与说明（tp46 的等宽小标 .section-kicker 收起）；区块上距 40 ========== */
.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) + 16px); }

.section-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 45px;
  margin-bottom: 16px;
}
/* 顺序：标题 → 更多 → 其余（子分类、本类日排行）靠右 */
.section-header > * { order: 3; }
.section-head {
  order: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  min-width: 0;
}
.section-kicker { display: none; }

.section-title {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 45px;
  color: var(--text-1);
  white-space: nowrap;
}
.section-title a { display: inline-flex; align-items: center; color: inherit; }
/* 标题前的红色短条（使用者 2026-10-30 同意）：区块之间更好分辨，呼应顶栏选中的红底块。
   区块标题、详情类页的区块标题、播放列表标题同一种 */
.section-title::before,
.detail-section-hd::before,
.playlist-title::before {
  content: "";
  flex-shrink: 0;
  width: 4px;
  height: 18px;
  margin-right: 10px;
  border-radius: 2px;
  background: var(--accent);
}
.playlist-title { display: inline-flex; align-items: center; }
.section-title a:hover { color: var(--link-hover); }

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

/* 「更多 ›」：14px 灰字，紧接在标题后面（参考站 .this-get，左距 20） */
.section-more-pill,
.section-more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  order: 1;
  margin-left: 6px;
  font-size: 14px;
  line-height: 45px;
  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-num); font-size: 13px; font-style: italic; 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(--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);
}

/* ---------- 卡片（参考站 .public-list-box：海报约 173×235、圆角 12、#25252b 底；右上彩色标签（圆角 0 12、12px、
   高 22、左右 8，各卡轮替颜色）；海报下缘渐层，左下红色分数 15/700、右下状态 12px；
   下方片名 15/22 一行（上距 8）＋ 灰色副行 12/20。hover：片名转红；PC 另有 popout 浮层（甲方基线，带参考站的白色外光晕）。
   参考站 hover 正中有红色播放钮——甲方基准不要播放 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-elevated) url("../img/load.gif") no-repeat center/cover;
  transform: translateZ(0);
  transition: box-shadow 0.3s;
}
.card-cover.img-loaded { background-image: none; }
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* 下缘渐层（参考站 .public-bg：海报下半部、底部 -4） */
.card-cover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.72) 100%);
}

/* 右上地区标签（参考站 .public-prt 是六色轮替，太杂，使用者 2026-10-30 同意收成两种）：
   大陆（国产）片用主色红 .card-tag--main，其他地区深灰半透明底（压在海报上也读得清） */
.card-tag {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  max-width: calc(100% - 20px);
  padding: 0 8px;
  border-radius: 0 var(--radius);
  background: rgba(17, 19, 25, 0.78);
  font-size: 12px;
  line-height: 22px;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.card-tag--main { background: var(--accent); color: #fff; }

/* 左下豆瓣分（gt 0 才输出）、右下状态 */
.card-score {
  position: absolute;
  left: 8px;
  bottom: 6px;
  z-index: 2;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  color: var(--accent);
  pointer-events: none;
}
.card-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  max-width: calc(100% - 50px);
  font-size: 12px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.87);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.card-meta {
  display: block;
  min-height: var(--card-meta-h);
  padding-top: 8px;
}
.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: 22px;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}
.card-sub {
  font-size: 12px;
  line-height: 20px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-sub i { margin: 0 4px; font-style: normal; }
/* 主演留给 hover 浮层（节点保留、视觉收起） */
.card-tags { display: none; }
.card:hover .card-title { color: var(--accent); }
@media (hover: hover) {
  .card:hover .card-cover { 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);
  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;
}
.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(17, 19, 25, 0) 0%, rgba(17, 19, 25, 0.75) 38%, rgba(17, 19, 25, 0.96) 100%);
}
.cd-badge {
  position: absolute;
  top: 7px;
  left: 9px;
  z-index: 113;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--badge);
  color: #fff;
  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(17, 19, 25, 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-pill);
  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; }
}

/* 浮层的红光描边（使用者 2026-10-30：「顺时针亮一圈」→ 只绕一圈 → 改成「跑的过程中把框填满」）：
   滑上去时红框从正上方开始顺时针一路画满（0.8 秒，使用者 2026-10-30 要求加快），画到哪里就填到哪里，最前端有一小段接近白色的亮头；
   画满后亮头淡出，留下一整圈红框，浮层外的红色光晕这时才亮起。还没画到的部分只有一条很淡的红色轨道。
   做法：::after 铺满浮层、padding 3px 当框宽，背景＝已画部分的 conic 渐层（0 → --ring-a）＋整圈淡轨道，
   遮罩挖空只留框；@property 让 --ring-a（画到的角度）与 --ring-h（亮头亮度）能做动画。
   --ring-a 平常（含不播动画时）是 360deg＝整圈；var() 带 fallback，不支持 @property 的浏览器也是一整圈红框 */
@property --ring-a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 360deg;
}
@property --ring-h {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}
.card-detail::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 115;
  padding: 2px;            /* 2px：3px 偏粗、像表单「输入错误」的红框（使用者 2026-10-30 同意改细） */
  border-radius: inherit;
  background:
    /* 填色用不透明的主色 #ff4d4d（跟浮层里角标、「详情」钮同一个红；原本 #eb4848 与它并排看起来像两种红）。
       不透明是因为半透明时底下的海报会透出来，海报在正上方左右颜色不同（实测左黑右洋红）就像一道接缝。
       亮头：--ring-h 1 时接近白；淡出到 0 时回到填色，画满后头尾同色，正上方不留接缝。
       透明的截止点放在 --ring-a ＋ 2deg：画满（360）时落在 362、超出一圈，就不会在正上方留一道 1deg 的渐隐缺口 */
    conic-gradient(from 0deg,
      #ff4d4d 0deg,
      #ff4d4d calc(var(--ring-a, 360deg) - 16deg),
      rgb(255, calc(77 + 159 * var(--ring-h, 0)), calc(77 + 159 * var(--ring-h, 0))) var(--ring-a, 360deg),
      transparent calc(var(--ring-a, 360deg) + 2deg)),
    linear-gradient(rgba(255, 77, 77, 0.1), rgba(255, 77, 77, 0.1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
@keyframes card-ring-lap {
  0%   { --ring-a: 0deg;   --ring-h: 1; }
  85%  { --ring-a: 360deg; --ring-h: 1; }
  100% { --ring-a: 360deg; --ring-h: 0; }
}
@media (any-hover: hover) and (min-width: 768px) {
  .card-detail { transition: width 0.1s ease-out, height 0.1s ease-out, top 0.1s ease-out, left 0.1s ease-out, box-shadow 0.35s ease 0s; }
  /* 画框动画使用者 2026-10-30 要求先停掉：浮层一出现就是整圈静态红框（--ring-a 初始 360deg）＋红色外光晕。
     要恢复时把下面两行换回：光晕 transition-delay 第 5 个值 0.7s，以及
     .card:hover .card-detail::after { animation: card-ring-lap 0.8s cubic-bezier(0.45, 0, 0.25, 1) 1 forwards; } */
  .card:hover .card-detail { box-shadow: var(--shadow-hover), 0 0 18px rgba(255, 77, 77, 0.35); }
}
@media (prefers-reduced-motion: reduce) {
  .card:hover .card-detail::after { animation: 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-num);
  font-size: 32px;
  font-style: italic;
  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); }
/* 名次：参考站榜单 Impact 斜体数字，1 红、2 橙、3 黄、其余灰 */
.rl-num {
  flex-shrink: 0;
  width: 26px;
  margin-right: 8px;
  font-family: var(--font-num);
  font-size: 20px;
  font-style: italic;
  font-weight: 400;
  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-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: 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: 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; 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); }
}

/* ---------- 专题卡（tp49 封面卡；widget/topic_card，首页、专题页、详情页侧栏共用） ----------
   封面 16:9、圆角 12、下缘渐层；右上彩色「专题」角标（--tc 轮替，圆角 0 12，同影视卡地区标签）；
   左下 Impact 大数字收录数、右下最多 3 张小海报叠一叠。
   hover：封面模糊放大从卡片背后透出发光（参考站封面发光：blur＋saturate＋放大 1.15，透明度 .9）、封面微放大、
   小海报展开成扇形、标题转红。发光图只在 hover 时才挂上 background-image（--tg），平常不多抓图 */
.topic-grid-item,
.topic-side-list > li { --tc: #ff4d4d; }
.topic-grid > .topic-grid-item:nth-child(6n+2),
.topic-side-list > li:nth-child(6n+2) { --tc: #ffb802; }
.topic-grid > .topic-grid-item:nth-child(6n+3),
.topic-side-list > li:nth-child(6n+3) { --tc: #9e65f3; }
.topic-grid > .topic-grid-item:nth-child(6n+4),
.topic-side-list > li:nth-child(6n+4) { --tc: #00c7f2; }
.topic-grid > .topic-grid-item:nth-child(6n+5),
.topic-side-list > li:nth-child(6n+5) { --tc: #22b14c; }
.topic-grid > .topic-grid-item:nth-child(6n+6),
.topic-side-list > li:nth-child(6n+6) { --tc: #fd7e14; }

.topic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--text-1);
}
.topic-card:hover { color: var(--text-1); }
.topic-card-media {
  position: relative;
  z-index: 0;
}
.topic-card-glow {
  position: absolute;
  inset: 6% 4% 0;
  z-index: 0;
  border-radius: var(--radius);
  background-position: center;
  background-size: cover;
  filter: blur(16px) saturate(3);
  opacity: 0;
  transform: scale(1);
  transition: opacity 0.35s, transform 0.35s;
  pointer-events: none;
}
.topic-card-cover {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-elevated) url("../img/load.gif") no-repeat center/cover;
  transform: translateZ(0);
  transition: box-shadow 0.35s;
}
.topic-card-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.topic-card-cover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.85) 100%);
}
.topic-card-tag {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  padding: 0 9px;
  border-radius: 0 var(--radius);
  background: var(--tc);
  font-size: 12px;
  line-height: 22px;
  color: #fff;
}
.topic-card-count {
  position: absolute;
  left: 10px;
  bottom: 8px;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}
.topic-card-count b {
  font-family: var(--font-num);
  font-size: 28px;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
/* 右下小海报：三张叠一叠（后一张压前一张、往左叠 14px），hover 展开成扇形 */
.topic-card-posters {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 2;
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.topic-card-posters > li {
  flex-shrink: 0;
  width: 30px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 4px;
  background: var(--bg-elevated);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
  transform-origin: 50% 100%;
  transition: transform 0.35s ease, margin 0.35s ease;
}
.topic-card-posters > li + li { margin-left: -14px; }
.topic-card-posters img { width: 100%; height: 100%; object-fit: cover; }
.topic-card-posters img.is-nopic { padding: 4px; object-fit: contain; }

.topic-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding-top: 8px;
}
.topic-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}
.topic-card-blurb {
  margin: 0;
  font-size: 12px;
  line-height: 20px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topic-card:hover .topic-card-title { color: var(--accent); }
@media (hover: hover) {
  .topic-card:hover .topic-card-glow { background-image: var(--tg); opacity: 0.9; transform: scale(1.15); }
  .topic-card:hover .topic-card-cover { box-shadow: var(--shadow-hover); }
  .topic-card:hover .topic-card-cover > img { transform: scale(1.06); }
  .topic-card:hover .topic-card-posters > li + li { margin-left: -6px; }
  .topic-card:hover .topic-card-posters > li:nth-child(1) { transform: rotate(-10deg) translateY(-2px); }
  .topic-card:hover .topic-card-posters > li:nth-child(2) { transform: translateY(-6px); }
  .topic-card:hover .topic-card-posters > li:nth-child(3) { transform: rotate(10deg) translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .topic-card-glow,
  .topic-card-cover > img,
  .topic-card-posters > li { transition: none; }
}
/* 网格里的专题标题一律最多两行、固定留两行高度（同一列的简介才对齐，使用者 2026-10-29 要求）；
   两行字数尽量平均（text-wrap: balance＋vod_card.js 中文分词，只在词与词之间折行） */
.topic-grid .topic-card-title {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 44px;
  text-wrap: balance;
}
.topic-grid .topic-card-title .tc-word { white-space: nowrap; }
/* 宽屏 6 栏（卡宽约 210）、其余 3 栏。资讯卡（只有首页用）跟专题卡同一组断点（使用者 2026-11-04：跟下面专题区块切换数量一致），
   原本资讯卡另有 ≤1023 四栏、≤767 两栏，已拿掉 */
@media (min-width: 1360px) {
  .art-grid,
  .topic-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
/* 手机 3 栏（卡宽约 100）：封面改直式 3:4，收录数缩小、小海报不出（放不下） */
@media (max-width: 767px) {
  .art-grid,
  .topic-grid { gap: 14px 8px; }
  .topic-grid .topic-card-cover { aspect-ratio: 3 / 4; }
  .topic-grid .topic-card-tag { padding: 0 6px; font-size: 11px; line-height: 20px; }
  .topic-grid .topic-card-count { left: 6px; bottom: 5px; font-size: 10px; }
  .topic-grid .topic-card-count b { font-size: 20px; }
  .topic-grid .topic-card-posters { display: none; }
  .topic-grid .topic-card-title { font-size: 14px; line-height: 20px; min-height: 40px; }
  .topic-grid .topic-card-blurb { font-size: 11px; line-height: 18px; }
}

/* ========== 分页（参考站分页：36 高膠囊、#1e2126 底、无框、13px；当前页红底白字圆形；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: 36px;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  color: var(--text-1);
  font-size: 13px;
  transition: color 0.2s, background 0.2s;
}
.pg-num { padding: 0 10px; }
.pg-btn:hover,
.pg-num:hover { color: var(--accent); }
.pg-num.is-active,
.pg-num[aria-current] { background: var(--accent); color: var(--on-accent); }
.pg-info { font-size: 13px; 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：导览项目多时收紧间距，直式钮只留图示 */
@media (max-width: 1279px) {
  .topbar-inner { gap: 20px; }
  .tb-nav-item { padding: 0 10px; }
}

/* ≤1023：导览收进右侧抽屉；顶栏一列 60：logo ／ 放大镜 · 观看记录 · ☰ */
@media (max-width: 1023px) {
  .topbar .tb-nav { display: none; }
  .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; }
  .brand-logo-img { height: 30px; max-width: 150px; }

  .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-brand { margin-left: 0; }   /* 手机 logo 跟内容左缘（页边 20）对齐，不另外内缩 */
  .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)); }
  .actor-row { grid-template-columns: repeat(4, 1fr); }
  .section .rank-grid--home { grid-template-columns: 1fr; }

  /* 参考站手机（卡宽约 110）：片名 14、副行 11、右上标签 11／高 20、海报下缘分数 13 与状态 11 */
  .card-title { font-size: 14px; line-height: 20px; }
  .card-sub { font-size: 11px; line-height: 18px; }
  .card-tag { padding: 0 6px; font-size: 11px; line-height: 20px; }
  .card-score { left: 6px; bottom: 4px; font-size: 13px; line-height: 18px; }
  .card-badge { right: 5px; bottom: 4px; max-width: calc(100% - 40px); font-size: 11px; line-height: 18px; }

  .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-size: 13px; line-height: 20px; 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); }

/* ---------- 区块标题（详情类页）：参考站「资源列表」「相关影片」24/400 .9 白；标题 → 内容 16 ---------- */
.detail-section { margin-bottom: var(--section-gap); }
.detail-section-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-1);
}
.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-3); }
.detail-section-more:hover { color: var(--accent); }
@media (max-width: 767px) {
  .detail-section-hd { font-size: 20px; }
}

/* ---------- 播放列表（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-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-1);
}
.playlist-sources {
  order: 3;
  flex: 0 0 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  min-width: 0;
  margin-top: 12px;
  border-bottom: 1px solid var(--border);
}
/* 线路：参考站「资源列表」下的线路 tab（14px，选中红字 700＋下方 2px 红线；底下整条 1px 分隔线） */
.pl-source-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-1);
  cursor: pointer;
  transition: color 0.2s;
}
.pl-source-tab .mac-icon { font-size: 14px; }
/* 线路旁的集数小徽章（参考站 10.5px、淡蓝紫底、圆角 4） */
.pl-src-count { margin-left: 2px; padding: 2px 4px; border-radius: 4px; background: rgba(83, 109, 230, 0.18); font-size: 10.5px; font-weight: 700; line-height: 1; color: inherit; }
.pl-source-tab:hover { color: var(--accent); }
.pl-source-tab.is-active { color: var(--accent); }
.pl-source-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.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; }

/* 集数按钮：参考站详情页选集钮（50 高、#0a0c0f 底＋1px #25252b 框、圆角 12、14px，2026-11-04）；当前集红字＋跳动条（不填底色）；格距 10 */
.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: 50px;
  padding: 0 10px;
  border: 1px solid #25252b;
  border-radius: var(--radius);
  background: var(--bg-panel);
  color: var(--text-1);
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  transition: color 0.2s, background 0.2s;
}
.episode-btn:hover { color: var(--accent); border-color: rgba(255, 77, 77, 0.45); }
.episode-btn.is-active { color: var(--accent); 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 行（50 × 3 ＋ 间距 10 × 2） */
.playlist-episodes.episodes-collapsed { max-height: 170px; 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); }
/* 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(--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; 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，行内没有其他可点元素 */
}
