/* ==========================================
   tp43_dark_white — 视觉参考：深色短剧站风格（深蓝黑底＋青色主色＋紫色辅色）
   底 #06080f ＋ 面板 #0b101c／#0c1220 ＋ 主色青 #2ee6ff（压在上面的字 #04121a）＋ 辅色紫 #8b6cff。
   数值取自参考站主题 CSS 原始档与 getComputedStyle 实测（1440 / 375），量测记录见 template/log/tp43_dark_white__THEME_SPEC.md。
   版型：左侧 84 图示栏＋72 顶栏（≤1023 图示栏隐藏、导览改到顶栏第二列横滑）；架构、资料区块、播放页、页脚承袭 tp39_dark_black。
   组件里不写死色码，全部走下面的变量。
   ========================================== */
:root {
  --bg-base:       #06080f;   /* 页底 */
  --bg-deep:       #080b15;   /* 详情页上方资讯带 */
  --bg-dock:       #080b15;   /* 左侧图示栏 */
  --bg-topbar:     rgba(8, 11, 21, 0.86);   /* 顶栏半透明＋blur(14px) */
  --bg-card:       #0c1220;   /* 面板、pill、选集钮、输入框 */
  --bg-elevated:   #121a2d;   /* 选中 pill、占位底 */
  --bg-panel:      #0b101c;
  --bg-input:      #0c1220;
  --bg-drop:       #0b101c;   /* 下拉／弹窗 */
  --bg-glass:      rgba(120, 160, 255, 0.06);

  --accent:        #2ee6ff;   /* 参考站主色 */
  --accent-end:    #8b6cff;
  --accent-grad:   #2ee6ff;   /* 参考站主按钮是实色青（不是渐层）；变量名沿用底稿 */
  --accent-hover:  #7af0ff;
  --on-accent:     #04121a;   /* 压在青色上的字 */
  --accent-dot:    #2ee6ff;
  --accent-ico:    #2ee6ff;
  --accent-light:  rgba(46, 230, 255, 0.10);
  --accent-soft:   rgba(46, 230, 255, 0.18);
  --accent-line:   rgba(46, 230, 255, 0.45);
  --accent-glow:   rgba(46, 230, 255, 0.22);

  --nav-active:    #2ee6ff;
  --link-hover:    #2ee6ff;

  --btn-grad:      #0c1220;   /* 次要 pill */
  --btn-text:      #c9d6f2;
  --btn-danger:    #f08aa9;

  --accent-2:      #8b6cff;   /* 紫：热度条起点、专题牌 */
  --accent-2-alt:  #b7a6ff;
  --hot:           #2ee6ff;
  --badge:         rgba(6, 8, 15, 0.72);    /* 卡片角标底 */
  --badge-douban:  #2ee6ff;
  --badge-state:   #f08aa9;

  --rank-1:        #2ee6ff;
  --rank-2:        #8b6cff;
  --rank-3:        #b7a6ff;
  --rank-num:      #5d6fa8;   /* 参考站排行描边数字 */

  --text-1:        #e6eeff;
  --text-2:        #a9b7d6;
  --text-3:        #7f8fb3;
  --text-dim:      #5b6a90;
  --text-link:     #9db0d6;
  --text-nav:      #c9d6f2;
  --text-title:    #ffffff;
  --text-input:    #e6eeff;

  --fill-1:        rgba(120, 160, 255, 0.05);
  --fill-2:        #121a2d;

  --border:        rgba(120, 160, 255, 0.18);
  --border-2:      rgba(120, 160, 255, 0.28);
  --border-row:    rgba(120, 160, 255, 0.12);

  --score-hi:      #2ee6ff;
  --score-mid:     #7f8fb3;

  --shadow-header: none;
  --shadow-thumb:  none;
  --shadow-drop:   0 14px 34px rgba(0, 0, 0, 0.5);
  --shadow-panel:  0 8px 24px rgba(0, 0, 0, 0.55);

  /* 播放区卡片 */
  --player-panel:  var(--bg-panel);
  --player-hover:  rgba(120, 160, 255, 0.06);
  --player-scroll: #1f2a44;

  --fab-bg:        #0b101c;
  --fab-color:     #9db0d6;
  --fab-top-bg:    #0b101c;

  --header-position: fixed;

  --font-mono:     ui-monospace, "SF Mono", Consolas, "Roboto Mono", monospace;

  --topbar-h:      72px;
  --dock-w:        84px;      /* 左侧图示栏；≤1023 归零（导览改到顶栏第二列） */
  --tabbar-h:      0px;
  /* 满版：参考站内容区左右 padding 40／32／24／16，不设版心；--content-max 只防超宽屏 */
  --page-pad:      40px;
  --cell:          10px;
  --hdr-x:         40px;
  --page-pad-r:    var(--page-pad);

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

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

  --gap:           16px;
  --grid-gap-y:    10px;      /* 参考站 .sd3-grid gap 22 16；使用者 2026-10-15 两度要求卡片间隔缩小 → 10 6 */
  --grid-gap-x:    6px;

  --radius:        10px;      /* 海报 .sd3-fig */
  --radius-sm:     6px;       /* 角标 .sd3-ep */
  --radius-btn:    12px;      /* .sd3-btn */
  --radius-lg:     12px;
  --radius-pill:   999px;     /* .sd3-pill */

  --content-max:   1840px;

  --poster-ratio:  2 / 3;     /* .sd3-fig aspect-ratio 2/3 */
  --card-meta-h:   48px;      /* 片名 13.5px × 1.45 × 2 行 ＋ 上距 9 */
}

@media (max-width: 1359px) {
  :root { --page-pad: 32px; --hdr-x: 32px; }
}
/* ≤1023：手持版——图示栏隐藏，导览整合进顶栏同一列（56 高）、搜索收成放大镜
   （参考站这里是底部 tab 列；使用者 2026-10-15 定案改成顶栏横滑导览，且只要一列） */
@media (max-width: 1023px) {
  :root {
    --page-pad: 24px;
    --hdr-x: 24px;
    --topbar-h: 56px;
    --dock-w: 0px;
    --tabbar-h: 0px;
    --fab-bottom: 24px;
  }
}
@media (max-width: 767px) {
  :root {
    --cell: 6px;
    --page-pad: 16px;
    --hdr-x: 16px;
    --grid-gap-y: 8px;
    --grid-gap-x: 6px;
    --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;
}

/* 参考站 .sd3-layout：PingFang SC 优先、行高 1.6 */
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;

  padding-top: 0;
}

a { text-decoration: none; color: inherit; }
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;
}

@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）＋ 顶栏（fixed）；内容让出 --dock-w 与 --topbar-h ========== */
.page-shell,
.main-area {
  min-height: 100vh;
  background-color: var(--bg-base);
}
.page-shell {
  padding-left: var(--dock-w);
  padding-bottom: var(--tabbar-h);
}
.main-area {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

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

.brand-logo-img {
  background: none; /* logo 不套全局 load.gif 占位背景 */
  height: 32px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

/* ========== 左侧图示栏（参考站 .sd3-dock：84 宽、#080b15、右框线；项目 68 宽、圆角 10、12px；
   tp43 依 tp39 导览规则把首页＋各分类＋专题＋排行榜＋留言＋全部直接列出（13 项），项目高从参考站 62 收到 54 才放得下；
   选中青字＋rgba(46,230,255,.1) 底＋左侧 2px 青线） ========== */
.dock {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1002;
  width: var(--dock-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 0 14px;
  background: var(--bg-dock);
  border-right: 1px solid var(--border-row);
  overflow-y: auto;
  scrollbar-width: none;
}
.dock::-webkit-scrollbar { display: none; }

/* 顶端 46 方块：深底、青框、青色播放图示（参考站 .sd3-dock-logo） */
.dock-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  margin-bottom: 10px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-btn);
  background: var(--bg-panel);
  color: var(--accent);
  font-size: 18px;
  box-shadow: 0 0 18px rgba(46, 230, 255, 0.18);
  transition: box-shadow 0.2s;
}
.dock-logo:hover { color: var(--accent); box-shadow: 0 0 24px rgba(46, 230, 255, 0.4); }

.dock-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.dock-list > li { display: flex; }
.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  width: 68px;
  height: 54px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.2;
  color: var(--text-3);
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.dock-item .mac-icon { font-size: 20px; }
.dock-label { max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock-item:hover { color: var(--text-1); }
.dock-item.is-active,
.dock-item.is-open {
  color: var(--accent);
  background: var(--accent-light);
  box-shadow: inset 2px 0 0 var(--accent);
}
.dock-gap { flex: 1; min-height: 8px; }
/* 矮视窗（如 1024×768 笔电）13 项放不下：项目收到 46、logo 40，底部「地图」不必捲动就看得到；更矮时图示栏自己可捲 */
@media (min-width: 1024px) and (max-height: 860px) {
  .dock { padding: 10px 0; }
  .dock .dock-logo { width: 40px; height: 40px; margin-bottom: 6px; }
  .dock .dock-item { height: 46px; gap: 3px; font-size: 11px; }
  .dock .dock-item .mac-icon { font-size: 18px; }
}
/* 底部「地图」：参考站「安装APP」的框线样式 */
.dock-item--foot { border: 1px solid rgba(139, 108, 255, 0.55); color: var(--accent-2-alt); }
.dock-item--foot:hover { color: #fff; background: rgba(139, 108, 255, 0.14); box-shadow: 0 0 22px rgba(139, 108, 255, 0.45); }

/* ========== 顶栏（参考站 .sd3-top：72 高、rgba(8,11,21,.86)＋blur(14px)、底线；内容左右 padding 40） ========== */
.topbar {
  position: var(--header-position);
  top: 0;
  left: var(--dock-w);
  right: 0;
  z-index: 999;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-row);
  background-color: var(--bg-topbar);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}

.topbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
  width: 100%;
  padding: 0 var(--page-pad);
}

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

/* 「● 每日更新」：等宽 11px、字距 .12em、青字青框全圆角（参考站 .sd3-live） */
.tb-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: -10px;
  padding: 4px 10px;
  border: 1px solid rgba(46, 230, 255, 0.35);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.12em;
  color: var(--accent);
  white-space: nowrap;
}
.tb-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

/* 内嵌搜索框（参考站 .sd3-search：44 高、圆角 12、#0c1220、1px 描边，最宽 760；左侧放大镜） */
.tb-search {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 760px;
  height: 44px;
  margin-left: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px 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 rgba(46, 230, 255, 0.12);
}
.tb-search-ico { font-size: 16px; }
.tb-search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: none;
  color: var(--text-input);
  font-size: 14px;
  font-family: inherit;
}
.tb-search-input::placeholder { color: var(--text-dim); }
/* 右侧小框钮（参考站这里是 / 键提示，同一个外观） */
.tb-search-btn {
  flex-shrink: 0;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-2);
  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); }

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

/* 观看记录：参考站右侧「随机看一部」框线钮的外观（.sd3-btn：44 高、圆角 12、13px/600、1px 框） */
.tb-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-btn);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--text-nav);
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.tb-action .mac-icon { font-size: 16px; }
.tb-action:hover,
.tb-action.is-active { border-color: var(--accent); color: var(--accent); }
/* 放大镜按钮只在手机出现（≥768 用内嵌输入框） */
#searchToggle { display: none; }

/* ---------- 顶栏横滑导览（≤1023 才显示，跟 logo、放大镜、观看记录同一列）：分类横滑＋最右「全部」 ----------
   项目 15px #c9d6f2、选中青字 700＋下方 20×2 青线（同详情页 tab 的选中语言）；
   ⚠️ 横滑列的 li 要 flex-shrink:0，不可写 min-width:0（会被压扁到相邻项重叠，§17.58） */
.tb-navrow {
  display: none;
  align-items: stretch;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
}
.tb-nav {
  flex: 1;
  min-width: 0;
  display: flex;
}
.tb-nav-list {
  display: flex;
  align-items: stretch;
  gap: 20px;
  min-width: 0;
  padding: 0 4px;
  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;
  font-size: 15px;
  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(--accent); font-weight: 700; }
.tb-nav-item.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 20px;
  height: 2px;
  margin-left: -10px;
  border-radius: 2px;
  background: var(--accent);
}
/* 还能往哪边滑就在哪边渐隐（header.js 依 scrollLeft 切 .can-scroll-left／-right） */
.tb-nav.can-scroll-right .tb-nav-list {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent 100%);
          mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent 100%);
}
.tb-nav.can-scroll-left .tb-nav-list {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 36px);
          mask-image: linear-gradient(to right, transparent 0, #000 36px);
}
.tb-nav.can-scroll-left.can-scroll-right .tb-nav-list {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%);
}
/* 最右「全部」：左侧一条分隔线，图示＋字 */
.tb-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  margin: 12px 0;
  padding: 0 0 0 12px;
  border-left: 1px solid var(--border-row);
  font-size: 14px;
  color: var(--text-nav);
  white-space: nowrap;
}
.tb-all-btn .mac-icon { font-size: 16px; color: var(--accent); }
.tb-menu-ico { display: none; }
.tb-all-btn:hover { color: var(--accent); }

/* ---------- 搜索弹层（只有手机用：≤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（参考站 .sd3-hero：满版、底线；左 5fr 文字＋右 6fr 3D 扇形海报；
   高 620（≤1679 540、≤1359 470），扇形缩放 1／.82／.68；≤1023 改上海报、下文字） ========== */
.hero-container {
  position: relative;
  margin: 0 0 var(--section-gap);
  border-bottom: 1px solid var(--border-row);
  overflow: hidden;
  --fan-scale: 1;
}
.hero {
  position: relative;
  touch-action: pan-y;           /* 水平手势交给 hero.js 换片，上下仍可捲页面 */
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  height: 620px;
  padding: 0 var(--page-pad);
}
/* 背景：当前选中影片的横幅图（vod_pic_slide，1903×666 级）铺满整块 Hero。
   横幅跟扇形海报常是同一套宣传图，清楚铺满时会跟海报「叠色」、分不出前后（2026-10-15 使用者回报）——
   所以横幅轻模糊 4px＋压暗 .7＋降饱和 .85，扇形后方再压一团椭圆暗角，海报本身加投影，前景／背景才拉得开。
   渐层：左侧文字区 .92 → 中段 .45 → 右侧 .3，下方渐隐回页底 #06080f。
   没有横幅时 hero.js 加 .is-poster：退回直式海报，放大＋模糊 24px＋.6 透明度当氛围底。换片时两层交叉淡入 .8s */
/* ⚠️ 层次要写死 z-index：≤1023 扇形区是 order:-1（排到文字上方），flex 的 order 连绘制顺序一起改，
   没写 z-index 时背景／格线会画在海报上面、海报整个看不见（2026-10-15 实测） */
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg-base);
}
.hero-bd-layer {
  position: absolute;
  inset: -12px;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(4px) brightness(0.7) saturate(0.85);
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-bd-layer.is-active { opacity: 1; }
.hero-bd-layer.is-poster {
  inset: -40px;
  background-position: center 30%;
  filter: blur(24px) saturate(1.15) brightness(0.8);
  transform: scale(1.2);
}
.hero-bd-layer.is-poster.is-active { opacity: 0.6; }
.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(38% 62% at 70% 50%, rgba(6, 8, 15, 0.6) 0%, rgba(6, 8, 15, 0.25) 60%, rgba(6, 8, 15, 0) 100%),
    linear-gradient(180deg, rgba(6, 8, 15, 0.3) 0%, rgba(6, 8, 15, 0) 25%, rgba(6, 8, 15, 0) 60%, var(--bg-base) 100%),
    linear-gradient(90deg, rgba(6, 8, 15, 0.92) 0%, rgba(6, 8, 15, 0.8) 28%, rgba(6, 8, 15, 0.45) 55%, rgba(6, 8, 15, 0.3) 100%);
}
.hero-glow,
.hero-floor { position: absolute; z-index: 0; pointer-events: none; }
.hero-glow {
  inset: 0;
  background:
    radial-gradient(60% 70% at 72% 42%, rgba(46, 230, 255, 0.13), transparent 70%),
    radial-gradient(40% 55% at 92% 88%, rgba(139, 108, 255, 0.16), transparent 70%);
}
/* 透视格线地板（参考站 .sd3-hero-floor），只做静态，不加捲动动画 */
.hero-floor {
  left: 34%;
  right: -8%;
  bottom: -70px;
  height: 430px;
  transform: perspective(720px) rotateX(64deg);
  transform-origin: 50% 100%;
  background-image:
    linear-gradient(rgba(46, 230, 255, 0.2) 1px, transparent 0),
    linear-gradient(90deg, rgba(46, 230, 255, 0.2) 1px, transparent 0);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(0deg, #000 8%, transparent 88%);
          mask-image: linear-gradient(0deg, #000 8%, transparent 88%);
}

.hero-info {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding-right: 40px;
}
/* 等宽青色小标「电视剧·剧情 · NO.03」（.sd3-hero-kicker 12px、字距 .22em） */
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 0.8em;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--accent);
  white-space: nowrap;
}
.hero-sub { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hero-sub:empty { display: none; }
.hero-sub:not(:empty) + .hero-no::before { content: "·"; margin-right: 0.8em; }
.hero-no { flex-shrink: 0; }

.hero-title {
  margin: 0;
  font-size: clamp(30px, 2.5vw, 46px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-title a { color: #fff; transition: color 0.2s; }
.hero-title a:hover { color: var(--accent); }

/* chip「2026」「更新至 30 集」（.sd3-chip：1px 框、圆角 8、padding 6/10） */
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tags:empty { display: none; }
.hero-tag {
  padding: 6px 10px;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.3;
  color: var(--text-2);
  white-space: nowrap;
}

.hero-desc {
  margin: 0;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-desc:empty { display: none; }

/* 立即播放（青底深字＋青光晕）／查看详情（框线），.sd3-btn-lg 50 高 */
.hero-actions { display: flex; gap: 12px; margin-top: 8px; }
.hero-play,
.hero-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 28px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-nav);
  white-space: nowrap;
  transition: box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.hero-play {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  box-shadow: 0 0 22px rgba(46, 230, 255, 0.35);
}
.hero-play .mac-icon { font-size: 14px; }
.hero-play:hover { color: var(--on-accent); box-shadow: 0 0 30px rgba(46, 230, 255, 0.6); }
.hero-more:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 扇形海报 ---------- */
.hero-fan {
  position: relative;
  z-index: 1;
  height: 540px;
  min-width: 0;
}
.hero-fan-stage {
  position: absolute;
  left: 50%;
  top: calc(50% - 10px);
  width: 0;
  height: 0;
  perspective: 1500px;
  transform: scale(var(--fan-scale));
}
.hero-fan-item {
  position: absolute;
  left: -154px;
  top: -230px;
  width: 308px;
  height: 460px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: none;
  cursor: pointer;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.7s;
}
.hero-fan-item.is-c  { transform: translateX(0) rotateY(0deg) scale(1); opacity: 1; z-index: 5; }
.hero-fan-item.is-r1 { transform: translateX(262px) rotateY(-34deg) scale(0.792); opacity: 0.82; z-index: 4; }
.hero-fan-item.is-l1 { transform: translateX(-262px) rotateY(34deg) scale(0.792); opacity: 0.82; z-index: 4; }
.hero-fan-item.is-r2 { transform: translateX(455px) rotateY(-50deg) scale(0.649); opacity: 0.45; z-index: 3; }
.hero-fan-item.is-l2 { transform: translateX(-455px) rotateY(50deg) scale(0.649); opacity: 0.45; z-index: 3; }
/* 初始（JS 还没排位）与超出 ±2 的：缩小、透明、点不到 */
.hero-fan-item:not(.is-c):not(.is-l1):not(.is-r1):not(.is-l2):not(.is-r2),
.hero-fan-item.is-off { transform: scale(0.5); opacity: 0; z-index: 1; pointer-events: none; }
.hero-fan-pic {
  position: absolute;
  inset: 0;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  background: var(--bg-card) url("../img/load.gif") no-repeat center/cover;
}
.hero-fan-pic img { width: 100%; height: 100%; object-fit: cover; }
.hero-fan-item.is-c .hero-fan-pic {
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(6, 8, 15, 0.55), 0 24px 50px rgba(0, 0, 0, 0.7), 0 0 60px rgba(46, 230, 255, 0.3);
}
.hero-fan-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
/* 拖曳中：不要选取文字、游标变抓手 */
.hero.is-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.hero-fan-pic img { -webkit-user-drag: none; user-select: none; }
/* 中间那张左上角集数角标（同卡片 .card-badge） */
.hero-fan-ep {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
  padding: 3px 8px;
  border: 1px solid rgba(46, 230, 255, 0.45);
  border-radius: var(--radius-sm);
  background: var(--badge);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-fan-item:not(.is-c) .hero-fan-ep { display: none; }

/* 底部「01 ─── 07」（.sd3-fan-steps：等宽 12px、分段 34×3） */
.hero-steps {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
}
.hero-step.is-on { color: var(--accent); }
.hero-segs { display: flex; gap: 6px; }
.hero-segs i {
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: rgba(120, 160, 255, 0.25);
  transition: background 0.2s;
}
.hero-segs i.is-on { background: var(--accent); }
.hero-nav {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-2);
  font-size: 14px;
  transition: border-color 0.2s, color 0.2s;
}
.hero-nav:hover { border-color: var(--accent); color: var(--accent); }

.hero--single .hero-steps { display: none; }
.hero.is-empty { display: none; }

@media (max-width: 1679px) {
  .hero { height: 540px; }
  .hero-container { --fan-scale: 0.82; }
}
@media (max-width: 1359px) {
  .hero { height: 470px; }
  .hero-container { --fan-scale: 0.68; }
  .hero-info { gap: 14px; padding-right: 24px; }
  /* 文字栏变窄后，左侧最远那张会垫到简介底下，收掉 */
  .hero-fan-item.is-l2 { opacity: 0; pointer-events: none; }
}
@media (max-width: 1023px) {
  .hero-fan-item.is-l2 { opacity: 0.45; pointer-events: auto; }
}
/* ≤1023（参考站同一断点）：上海报、下文字，高度跟内容走 */
@media (max-width: 1023px) {
  .hero-container { --fan-scale: 0.8; }
  .hero-container .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding-bottom: 28px;
  }
  .hero-container .hero-fan { order: -1; width: 100%; height: 440px; }
  .hero-floor { left: -10%; right: -10%; bottom: auto; top: 170px; height: 300px; }
  .hero-container .hero-info { width: 100%; padding-right: 0; gap: 12px; }
  /* 上海报、下文字：横幅只铺在扇形那一段（跟扇形区同高），往下渐隐进文字区；
     不铺满整块，否则 1903×666 的横幅会被 cover 放大到只剩中间一小块 */
  .hero-backdrop { bottom: auto; height: 440px; }
  .hero-backdrop::after {
    background:
      radial-gradient(45% 55% at 50% 48%, rgba(6, 8, 15, 0.55) 0%, rgba(6, 8, 15, 0) 100%),
      linear-gradient(180deg, rgba(6, 8, 15, 0.35) 0%, rgba(6, 8, 15, 0.25) 30%, rgba(6, 8, 15, 0.6) 70%, var(--bg-base) 100%);
  }
  .hero-title { font-size: 28px; -webkit-line-clamp: 2; }
}
@media (max-width: 767px) {
  .hero-container { --fan-scale: 0.66; }
  .hero-container .hero-fan { height: 360px; }
  .hero-backdrop { height: 360px; }
  .hero-floor { top: 130px; height: 260px; }
  .hero-title { font-size: 24px; }
  .hero-desc { font-size: 14px; -webkit-line-clamp: 2; }
  .hero-steps { bottom: 0; gap: 10px; }
  .hero-segs i { width: 16px; }
  .hero-container .hero-play,
  .hero-container .hero-more { flex: 1 1; height: 46px; padding: 0 12px; }
}

/* ========== 分类快捷列：参考站分类列表页「题材索引」的外观（等宽青色小标＋框线胶囊），连分类页 ========== */
.quick-nav {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin: 0 0 var(--section-gap);
  padding: 0 var(--page-pad);
}
.quick-nav::before {
  content: "分类索引";
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 42px;
  letter-spacing: 0.22em;
  color: var(--accent);
}
.quick-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}
.quick-nav-list > li { display: flex; flex-shrink: 0; }
.quick-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-panel);
  font-size: 14px;
  color: var(--text-nav);
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.quick-nav-item .mac-icon { font-size: 16px; color: var(--accent); }
.quick-nav-item:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 767px) {
  .quick-nav::before { display: none; }
  .quick-nav-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .quick-nav-list::-webkit-scrollbar { display: none; }
  .quick-nav-item { height: 38px; padding: 0 14px; }
}

/* ========== 区块（参考站 .sd3-sec-head：h2 24/800 白；「查看全部」13px #9db0d6 靠右；标题列 → 网格 18） ========== */
.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);
}
.section { padding-top: 20px; }

.section-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 32px;
  margin-bottom: 18px;
}

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

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

/* 「查看全部」：13px 链接色，一律推到最右（.sd3-more） */
.section-more-pill,
.section-more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  order: 3;
  margin-left: auto;
  font-size: 13px;
  line-height: 32px;
  color: var(--text-link);
  white-space: nowrap;
  transition: color 0.2s;
}
.section-more-pill:hover,
.section-more:hover { color: var(--accent); }
.section-more .mac-icon { font-size: 12px; }

/* 子分类：右侧框线胶囊（.sd3-pill：13px、1px 框、全圆角） */
.section-subcats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 10px;
  height: 32px;
  min-width: 0;
  margin-left: auto;
  overflow: hidden;
}
.section-subcat {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(120, 160, 255, 0.22);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--text-link);
  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）：
   外观参考同位置的子分类 pill（#0c1220、28 高、hover 青色）；手机隐藏。
   10 条片名加起来要 1134～1452px，1440 只剩约 1048、1024 只剩约 757（2026-10-08 实测，只看得到 5～8 条），
   所以：片名限宽 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: 10px;
}
.sh-dayrank {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  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%);
}
/* ‹ ›：28 圆钮、#0c1220 底 #a9b7d6 字，hover 青色（同 .hl-bg-hover）；不能捲的那一侧变淡且不可点 */
.sdr-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
  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: 6px;
  flex-shrink: 0;
  height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(120, 160, 255, 0.22);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--text-link);
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.sh-dayrank a:hover { border-color: var(--accent); color: var(--accent); }
/* 名次：同侧栏排行的彩色粗体 */
.sdr-num { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--text-dim); }
.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: 20px; }

.section-count { margin-left: 8px; font-size: 12px; font-weight: 400; color: var(--text-3); }
.section-count em { font-style: normal; font-family: var(--font-mono); color: var(--accent); font-weight: 700; }
.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); }
/* 平板（≤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; }

/* 筛选页 9 列 / 27 条（decisions.md 基线） */
.vod-grid.vod-grid--c9 { grid-template-columns: repeat(9, 1fr); }

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

/* ---------- 卡片（参考站 .sd3-card：海报 2:3、圆角 10、1px 描边、斜纹底；左上等宽集数角标（深底青框）；
   片名 13.5px／600 两行。hover：上浮 4、青框＋青光晕、片名转青（不加播放钮与扫光，甲方基准） ---------- */
.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: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card) url("../img/load.gif") no-repeat center/cover;
  transform: translateZ(0);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card-cover.img-loaded {
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 11px);
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 左上集数／状态（.sd3-ep：等宽 11px/700、rgba(6,8,15,.72) 底、1px 青框、圆角 6、padding 2/7） */
.card-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  max-width: calc(100% - 16px);
  padding: 2px 7px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
  background: var(--badge);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

/* 豆瓣分（gt 0 才输出）：右下角等宽青字压在黑渐层上 */
.card-score {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px 8px 6px;
  background: linear-gradient(180deg, rgba(6, 8, 15, 0) 0%, rgba(6, 8, 15, 0.85) 100%);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  text-align: right;
  pointer-events: none;
}

.card-meta {
  display: block;
  min-height: var(--card-meta-h);
  padding-top: 9px;
}
.card-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  color: inherit;
  overflow-wrap: anywhere;   /* 不含空格的长英文片名 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
/* 参考站卡片下方只有片名；主演留给 hover 浮层（节点保留、视觉收起） */
.card-tags { display: none; }
.card:hover .card-title { color: var(--accent); }
@media (hover: hover) {
  .card:hover .card-cover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 14px 34px var(--accent-glow);
  }
}

/* ---------- 首页分类区块：左侧分类牌＋右侧 6 栏卡片（参考站 .sd3-wall／.sd3-plate：青框、#0b101c 底、22px 格线、
   上方等宽编号、中间名称＋部数、下方「进入 →」）。牌与卡片同宽：7 等分的第 1 份 ---------- */
.wall {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 6fr);
  gap: var(--grid-gap-x);
  align-items: start;
}
.wall > .vod-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.wall-plate {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: var(--poster-ratio);
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background-color: var(--bg-panel);
  background-image:
    linear-gradient(rgba(120, 160, 255, 0.08) 1px, transparent 0),
    linear-gradient(90deg, rgba(120, 160, 255, 0.08) 1px, transparent 0);
  background-size: 22px 22px;
  color: var(--text-1);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.wall-no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.wall-mid { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wall-name {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-title);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wall-count { font-size: 12px; color: var(--text-3); }
.wall-count b { font-family: var(--font-mono); font-weight: 700; color: var(--text-2); }
.wall-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--accent);
}
.wall-go .mac-icon { font-size: 13px; transition: transform 0.2s; }
.wall-plate:hover { color: var(--text-1); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 14px 34px var(--accent-glow); }
.wall-plate:hover .wall-go .mac-icon { transform: translateX(3px); }
/* 第 2 块起换紫色牌（参考站 .sd3-plate.is-violet 交替） */
.section--wall:nth-of-type(even) .wall-plate { border-color: rgba(139, 108, 255, 0.5); }
.section--wall:nth-of-type(even) .wall-no,
.section--wall:nth-of-type(even) .wall-go { color: var(--accent-2-alt); }

/* ≤1199：牌改成网格上方的横条（参考站手机同样把牌拉成整行） */
@media (max-width: 1199px) {
  .wall { display: block; }
  .wall > .vod-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wall-plate {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    aspect-ratio: auto;
    margin-bottom: var(--grid-gap-y);
    padding: 12px 16px;
  }
  .wall-mid { flex: 1; flex-direction: row; align-items: baseline; gap: 12px; }
  .wall-name { font-size: 18px; }
}
@media (max-width: 767px) {
  .wall > .vod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wall-plate { padding: 10px 14px; }
  .wall-no { display: none; }
}

/* ---------- hover 详情浮层（skill 强制 15：vod_card_popout ＋ vod_card.js 边缘翻转） ---------- */
.card-detail-wrap {
  width: 100%;
  height: 0;
}
.card-detail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: -1;
  border-radius: var(--radius);
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: 50% center;
  background-size: cover;
  background-color: var(--bg-card);
  border: 1px solid var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 14px 34px var(--accent-glow), var(--shadow-panel);
  cursor: default;
  transition: width 0.1s ease-out, height 0.1s ease-out, top 0.1s ease-out, left 0.1s ease-out;
}
.cd-link { display: block; width: 100%; height: 100%; color: inherit; }
.cd-link:hover { color: inherit; }
.cd-cover {
  position: absolute;
  z-index: 111;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(rgba(6, 8, 15, 0) 0%, rgba(6, 8, 15, 0.75) 38%, rgba(6, 8, 15, 0.96) 100%);
}
.cd-badge {
  position: absolute;
  top: 7px;
  left: 9px;
  z-index: 113;
  padding: 2px 7px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
  background: var(--badge);
  color: var(--text-1);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  max-width: calc(100% - 18px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.cd-ctn {
  position: absolute;
  z-index: 112;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px 10px 0;
}
.cd-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}
.cd-title-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-score { flex-shrink: 0; font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--score-hi); }
.cd-tags {
  display: flex;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
  margin: 8px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}
.cd-tags span {
  flex-shrink: 0;
  max-width: 5em;
  padding: 0 6px;
  margin-right: 5px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(120, 160, 255, 0.28);
  background-color: rgba(6, 8, 15, 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: 8px;
  background: var(--accent);
}

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

/* ========== 排行榜列（参考站详情页侧栏「国产剧排行榜」.hl-rank-list：无面板底；标题 20/700 ＋「更多 ›」；
   列 padding 10、底线 1px #0c1220；名次 16px／700 彩色） ========== */
/* 首页总榜、排行榜页、详情侧栏（同类热播／专题）共用 */
/* tp43：每栏一块面板（参考站排行页卡片：#0b101c 底、1px 描边、圆角 12）；榜首海报右下压描边等宽「01」
   （参考站热门推荐卡 .sd3-fig-no）；名次改等宽字，前三名青／紫／淡紫 */
.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-size: 18px;
  font-weight: 800;
  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: "01";
  position: absolute;
  right: 4px;
  bottom: -2px;
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(46, 230, 255, 0.9);
  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); }
/* 名次：.hl-part-nums 16px／700，前三名 青／紫／淡紫、其余描边 #5d6fa8 */
.rl-num {
  flex-shrink: 0;
  width: 20px;
  margin-right: 10px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  line-height: 20px;
  color: transparent;
  -webkit-text-stroke: 1px var(--rank-num);
}
/* 榜首已在 .rank-top1，列表从第 2 名起：第 1、2 项就是第 2、3 名 */
.rank-list > li:nth-child(1) .rl-num { -webkit-text-stroke-color: var(--rank-2); }
.rank-list > li:nth-child(2) .rl-num { -webkit-text-stroke-color: var(--rank-3); }
/* 没有榜首卡、从第 1 名起的整串榜单（搜索页右栏） */
.rank-list--full > li:nth-child(1) .rl-num { -webkit-text-stroke-color: var(--rank-1); }
.rank-list--full > li:nth-child(2) .rl-num { -webkit-text-stroke-color: var(--rank-2); }
.rank-list--full > li:nth-child(3) .rl-num { -webkit-text-stroke-color: var(--rank-3); }
.rl-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 400; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rl-hits,
.rl-remarks {
  flex-shrink: 0;
  max-width: 45%;
  margin-left: 10px;
  font-size: 12px;
  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: 4px;
  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-list／-item／-avatar／-body／-time／-content／-reply）只用在 gbook/index，
   样式单一来源在 gbook.css；这里原本有一份会被 gbook.css 覆盖、又漏出 border-bottom 的旧副本，已移除（2026-09-30） */
.gbook-form { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.gbook-form-title { font-size: 14px; font-weight: 600; color: var(--text-1); margin-bottom: 12px; }
.gbook-textarea {
  width: 100%; padding: 10px 12px;
  background: var(--bg-elevated); border: 1px solid var(--border-2);
  border-radius: var(--radius-sm); color: var(--text-1); font-size: 13px;
  font-family: inherit; resize: vertical; outline: none; line-height: 1.6;
  transition: border-color 0.2s; display: block; margin-bottom: 10px;
}
.gbook-textarea:focus { border-color: var(--accent); }
.gbook-textarea::placeholder { color: var(--text-3); }
.gbook-form-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.gbook-chars { font-size: 12px; color: var(--text-3); flex-shrink: 0; }
.gbook-chars em { font-style: normal; color: var(--accent); }
.gbook-verify-wrap { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: flex-end; flex-wrap: wrap; }
.gbook-captcha-img { height: 36px; border-radius: 4px; cursor: pointer; vertical-align: middle; }
.gbook-input {
  padding: 8px 12px; background: var(--bg-elevated); border: 1px solid var(--border-2);
  border-radius: var(--radius-sm); color: var(--text-1); font-size: 13px; outline: none; transition: border-color 0.2s;
}
.gbook-input:focus { border-color: var(--accent); }
.gbook-input::placeholder { color: var(--text-3); }
.gbook-input--verify { width: 88px; }
.gbook-submit-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 24px; background: var(--accent-2); color: #fff;
  border: none; border-radius: var(--radius-pill); font-size: 13px; font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: background 0.2s;
}
.gbook-submit-btn:hover { background: var(--accent-2-alt); }
.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); }

/* ========== 资讯卡／专题卡：参考站没有这两块，依它的卡片语言延伸（圆角 5 海报＋下方标题，无外框） ========== */
.art-grid,
.topic-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--grid-gap-y) var(--grid-gap-x);
}
.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,
.topic-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--text-1);
}
.art-card-thumb,
.topic-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;
}
.art-card-thumb img,
.topic-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: 7px;
  left: 9px;
  padding: 0 5px;
  border-radius: var(--radius-sm);
  background: var(--badge);
  color: #fff;
  font-size: 12px;
  line-height: 20px;
}
.art-card-body,
.topic-card-body { padding-top: 10px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.art-card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  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-size: 12px; color: var(--text-2); }
.art-card:hover .art-card-title,
.topic-card:hover .topic-card-title { color: var(--link-hover); }

.topic-card-overlay { display: none; }   /* decisions.md：专题卡不要悬停播放 icon */
.topic-card-count {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 5px 10px;
  text-align: right;
  font-size: 12px;
  line-height: 20px;
  color: #fff;
  background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
}
.topic-card-title { font-size: 15px; font-weight: 700; line-height: 20px; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.2s; }
.topic-card-blurb { font-size: 12px; color: var(--text-2); line-height: 19px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ========== 分页（参考站 .pagination a：44 高、1px 描边、圆角 10、等宽数字；当前页青底深字＋光晕；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: 44px;
  height: 44px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-panel);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 14px;
  transition: border-color 0.2s, color 0.2s;
}
.pg-btn:hover,
.pg-num:hover { border-color: var(--accent); color: var(--accent); }
.pg-num.is-active,
.pg-num[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 800; box-shadow: 0 0 18px rgba(46, 230, 255, 0.3); }
.pg-info { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); margin-left: 12px; }

/* ========== 页脚：置中四行（tp39 版型，使用者 2026-10-15 定案沿用）；颜色换成参考站页脚：
   页底同色、上方 1px 描边、连结 #9db0d6、版权等宽字 ========== */
.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); }
/* 首页「友情链接」：参考站页脚友链 pill（.sd3-pill：13px、1px 框、全圆角、padding 6/14） */
.section .footer-links { justify-content: flex-start; gap: 10px; }
.section .footer-links a {
  padding: 6px 14px;
  border: 1px solid rgba(120, 160, 255, 0.22);
  border-radius: var(--radius-pill);
  font-size: 13px;
  line-height: 1.3;
  color: var(--text-link);
  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＋回到顶部）；外观照参考站按钮：#0b101c 底、1px 描边、圆角 12，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: 4px;
  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: 4px;
  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（图示栏「分类」钮开启）==========
   ≥1024：从图示栏右侧滑出（left: --dock-w，宽 300，整高）；≤1023：从左侧滑出、整高（盖住顶栏）。
   z 轴：顶栏 999 < 遮罩 1000 < 抽屉 1001 < 图示栏 1002（图示栏一直点得到，再点「分类」可收起）。
   收起时 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);
}
.mob-nav-overlay.is-open { display: block; }

.mob-nav-drawer {
  position: fixed;
  top: 0;
  bottom: var(--tabbar-h);
  left: var(--dock-w);
  z-index: 1001;
  width: 300px;
  max-width: calc(100vw - var(--dock-w) - 40px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--player-scroll) transparent;
  border-right: 1px solid var(--border);
  background: var(--bg-dock);
  box-shadow: 15px 0 30px rgba(0, 0, 0, 0.45);
  visibility: hidden;
  transform: translateX(calc(-100% - var(--dock-w)));
  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: 3px; background: var(--player-scroll); }

.mnd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 10px 0 22px;
  border-bottom: 1px solid var(--border-row);
}
.mnd-title { font-size: 18px; font-weight: 800; color: var(--text-title); }
.mnd-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 20px;
  color: var(--text-3);
}
.mnd-close:hover { color: var(--text-1); }

.mnd-nav { margin: 0; padding: 10px 0 24px; list-style: none; }
.mnd-nav > li { min-width: 0; }
.mnd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  font-size: 16px;
  font-weight: 600;
  line-height: 46px;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 首页／专题／排行榜／留言用图示占编号的位置，宽度对齐「01」 */
.mnd-ico { width: 22px; font-size: 14px; color: var(--text-dim); }
.mnd-item.is-active .mnd-ico { color: var(--accent); }
.mnd-no { display: inline-block; flex-shrink: 0; width: 22px; font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.12em; color: var(--text-dim); }
.mnd-item:hover,
.mnd-item.is-active { color: var(--accent); }
.mnd-item.is-active { background: var(--accent-light); box-shadow: inset 2px 0 0 var(--accent); }
.mnd-item.is-active .mnd-no { color: var(--accent); }

.mnd-subs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 22px 12px;
}
.mnd-subs:empty { display: none; }
.mnd-sub {
  display: block;
  max-width: 100%;
  padding: 0 12px;
  border: 1px solid rgba(120, 160, 255, 0.22);
  border-radius: var(--radius-pill);
  font-size: 13px;
  line-height: 28px;
  color: var(--text-link);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s, border-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); }

/* ========== 响应式 ========== */
@media (max-width: 1199px) {
  .topbar-inner .tb-live { display: none; }
}

/* ≤1023：图示栏整条隐藏；顶栏一列 56：logo ／ 横滑导览＋「全部」／ 放大镜 · 观看记录。
   抽屉从左侧滑出、盖住顶栏（自带标题列与 ×） */
@media (max-width: 1023px) {
  .dock { display: none; }
  .mob-nav-drawer { left: 0; bottom: 0; transform: translateX(-100%); }

  .topbar {
    background: var(--bg-dock);
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
  }
  .topbar .topbar-inner { gap: 12px; }
  .topbar .tb-navrow { display: flex; }
  .topbar-inner .topbar-right { margin-left: 0; }
  .brand-logo-img { height: 26px; max-width: 150px; }
  .topbar-inner .tb-search { display: none; }
  .topbar-inner #searchToggle { display: inline-flex; }
  .topbar-right { gap: 8px; }
  .tb-action { width: 40px; height: 40px; padding: 0; border-radius: 10px; font-size: 18px; }
  .tb-action .mac-icon { font-size: 18px; }
  .tb-btn-text { display: none; }
  .mnd-header { height: 56px; }

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

@media (max-width: 767px) {
  /* 手机：横滑导览收起，「全部」变成最右侧的 ☰（logo ／ 放大镜 · 观看记录 · ☰），分类全部在右侧抽屉里
     （使用者 2026-10-15 要求；跟 tp34／tp39 手机「右侧整高抽屉」同一个做法） */
  .topbar .topbar-inner { gap: 8px; }
  .topbar .tb-navrow { flex: 0 0 auto; order: 2; }
  .topbar .tb-nav { display: none; }
  .topbar-inner .topbar-right { order: 1; margin-left: auto; gap: 6px; }
  .tb-all-btn {
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: auto 0;
    padding: 0;
    border: 1px solid var(--border-2);
    border-radius: 10px;
    color: var(--text-nav);
  }
  .tb-all-btn span,
  .tb-all-btn .tb-all-ico { display: none; }
  .tb-all-btn .tb-menu-ico { display: inline-flex; font-size: 18px; color: inherit; }
  .tb-all-btn.is-open { border-color: var(--accent); color: var(--accent); }
  .tb-action { width: 36px; height: 36px; }
  /* 抽屉改从右侧滑出（☰ 在右边） */
  .mob-nav-drawer {
    left: auto;
    right: 0;
    width: min(300px, 82vw);
    max-width: none;
    border-right: 0;
    border-left: 1px solid var(--border);
    box-shadow: -15px 0 30px rgba(0, 0, 0, 0.45);
    transform: translateX(100%);
  }
  .mob-nav-drawer.is-open { transform: none; }
  .search-overlay-inner { margin-top: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: 12px; }

  /* 参考站手机 h2 20px */
  .section { padding-top: 12px; }
  .section-title { font-size: 20px; }
  .rank-col-title { font-size: 18px; }
  .section-header { margin-bottom: 14px; gap: 10px; }
  .section-subcats,
  .sh-dayrank-wrap { display: none; }

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

  /* 参考站手机：片名 12.5px、角标 10px */
  .card-title { font-size: 12.5px; }
  .card-badge { left: 6px; top: 6px; padding: 1px 5px; font-size: 10px; }
  .card-score { font-size: 11px; padding: 14px 6px 5px; }

  .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_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: 3px; 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: 4px; 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）
   ========================================================================== */

/* ---------- 面包屑：「首页 › 连续剧 › 国产剧 › 片名」14px #a9b7d6；分隔符用 --text-3（#7f8fb3）——参考值 #333 在 #06080f 底上几乎看不见（2026-10-13 使用者要求加强） ---------- */
.art-breadcrumb { font-size: 14px; line-height: 20px; color: var(--text-2); margin-bottom: 0; }
.art-breadcrumb a { color: var(--text-2); }
.art-breadcrumb a:hover { color: var(--accent); }
.bc-sep { display: inline-flex; color: var(--text-3); font-size: 12px; }
.bc-current { color: var(--text-2); }

/* ---------- 区块标题（详情类页）：参考站详情页 h2.hl-rb-title 20px／700、行高 28，标题 → 内容 20 ---------- */
.detail-section { margin-bottom: var(--section-gap); }
.detail-section-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: var(--text-title);
}
.detail-section-hd > h2 { margin: 0; font-size: inherit; font-weight: inherit; }
.detail-section-hd .mac-icon { display: none; }
.detail-section-hd--split { justify-content: space-between; }
.detail-section-more { font-size: 14px; font-weight: 400; color: var(--text-3); }
.detail-section-more:hover { color: var(--accent); }

/* ---------- 播放列表（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: 20px;
  font-weight: 800;
  line-height: 28px;
  color: var(--text-title);
}
.playlist-sources {
  order: 3;
  flex: 0 0 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0 25px;
  min-width: 0;
  margin-top: 20px;
}
.pl-source-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 0 15px;
  border: 0;
  background: none;
  font-size: 15px;
  font-weight: 400;
  line-height: 20px;
  color: var(--text-2);
  cursor: pointer;
}
.pl-source-tab .mac-icon { font-size: 14px; }
.pl-source-tab:hover { color: var(--accent); }
.pl-source-tab.is-active { color: var(--text-1); font-weight: 700; }
.pl-source-tab.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 20px;
  height: 3px;
  margin-left: -10px;
  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; }

/* 集数按钮：参考站 .video-link-btn（44 高、rgba(120,160,255,.05) 底、1px rgba(120,160,255,.2) 框、圆角 10、600）；
   当前集青底深字；格距 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: 44px;
  padding: 0 10px;
  border: 1px solid rgba(120, 160, 255, 0.2);
  border-radius: 10px;
  background: rgba(120, 160, 255, 0.05);
  color: var(--text-nav);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  transition: color 0.2s, border-color 0.2s;
}
.episode-btn:hover { border-color: var(--accent); color: var(--accent); }
.episode-btn.is-active { border-color: var(--accent); background: var(--accent); color: var(--on-accent); font-weight: 800; box-shadow: 0 0 18px rgba(46, 230, 255, 0.3); }
.ep-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

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

/* 收起：3 行（44 × 3 ＋ 间距 10 × 2） */
.playlist-episodes.episodes-collapsed { max-height: 152px; overflow: hidden; }
.episode-more-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 40px;
  margin-top: 10px;
  border: 1px dashed var(--border-2);
  border-radius: 10px;
  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: 18px; }
  .playlist-sources { margin-top: 14px; gap: 0 20px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .pl-source-tab { white-space: nowrap; flex-shrink: 0; padding-bottom: 12px; }
  .pl-source-tab.is-active::after { bottom: 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-child-item { margin-top: 10px; padding: 10px 12px; border-radius: 4px; background: var(--bg-card); }
.cmt-child-item .cmt-time { margin-left: 8px; }
.cmt-actions { display: flex; gap: 16px; margin-top: 8px; }
.cmt-action-link { padding: 0; font-size: 12px; color: var(--text-3); background: none; border: 0; cursor: pointer; }
.cmt-action-link:hover { color: var(--accent); }
.cmt-paging { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 20px 0 0; }
.cmt-page-btn {
  min-width: 40px;
  height: 38px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: none;
  color: var(--text-2);
  font-size: 14px;
  cursor: pointer;
}
.cmt-page-btn:hover { border-color: var(--accent); }
.cmt-page-btn.is-active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cmt-page-btn.is-disabled { opacity: 0.6; pointer-events: none; }

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

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

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