/* ==========================================
   tp58_dark_blue_orange — 视觉参考：深蓝紫底 #292838 ＋橘色 #ff9900 主色
   页底 #292838；次区块（筛选面板、播放右栏、排行栏、斑马纹）#22212f、分隔线 #383737；
   标题 #ddd、内文与弱字 #999；主色橘，按钮 linear-gradient(to right,#ff9900,#ff9f16)＋橘色阴影；
   分数角标紫蓝半透明 rgba(91,102,254,.71)；次要钮（集数、分页、查看详情）是浅灰渐层 #eee→#f6f6f6 深字。
   海报、面板、按钮一律圆角 5。量测记录见 template/log/tp58_dark_blue_orange__THEME_SPEC.md。
   版型：一行顶栏（logo＋导览＋搜索框＋图示，64 高），页顶透明叠在背景带上、捲动后变实色；
   首页／分类页是满宽大图轮播（右下直版海报切换器）；≤1023 导览收进右侧抽屉。
   架构、资料区块承袭 tp57_white_blue。组件里不写死色码，全部走下面的变量。
   ========================================== */
:root {
  --bg-base:       #292838;   /* 页底（参考站 body） */
  --bg-deep:       #22212f;   /* 次区块（参考站） */
  --bg-dock:       #22212f;   /* 抽屉 */
  --bg-topbar:     #292838;   /* 顶栏捲动后（页顶时透明） */
  --bg-card:       #22212f;   /* 膠囊、标签、输入框底 */
  --bg-elevated:   #33324a;   /* 图片占位 */
  --bg-panel:      transparent;   /* 区块不包卡片 */
  --bg-sub:        #22212f;   /* 筛选面板、播放右栏、排行栏 */
  --bg-muted:      #33324a;   /* 再亮一阶：右栏里的集数钮、hover 底 */
  --bg-input:      #22212f;
  --bg-drop:       #2f2e42;   /* 下拉／弹窗（比页底亮一阶才浮得出来） */
  --bg-glass:      rgba(255, 255, 255, 0.04);

  --accent:        #ff9900;   /* 主色橘：按钮底、当前页、指示器、短线 */
  --accent-end:    #ff9f16;
  --accent-grad:   linear-gradient(to right, #ff9900 0, #ff9f16 100%);   /* 参考站 .btn-warm */
  --accent-shadow: 0 5px 10px rgba(255, 111, 0, 0.25);
  --accent-hover:  #ffad33;
  --on-accent:     #ffffff;   /* 压在橘色上的字（Q5：照参考站维持白字） */
  --accent-dot:    #ff9900;
  --accent-ico:    #ff9900;
  --accent-light:  rgba(255, 153, 0, 0.10);
  --accent-soft:   rgba(255, 153, 0, 0.16);
  --accent-line:   rgba(255, 153, 0, 0.6);
  --accent-glow:   rgba(255, 153, 0, 0.25);

  --active:        #ff9900;   /* 选中态橘字：导览当前、tab 当前、筛选当前、分数（深底 6.8:1） */
  --nav-active:    #ff9900;
  --link-hover:    #6495ed;   /* 参考站 a:hover cornflowerblue（深底 4.9:1） */
  --highlight:     #5bb7fe;   /* 参考站 .text-highlight：短评、更新时间、豆瓣分连结 */

  --btn-grad:      linear-gradient(to right, #eeeeee 0, #f6f6f6 100%);   /* 参考站 .btn-default：集数、分页、查看详情 */
  --btn-text:      #333333;
  --btn-shadow:    0 5px 10px rgba(246, 246, 246, 0.25);
  --btn-danger:    #fc000c;
  --btn-play:      linear-gradient(to right, #ff9900 0, #ff9f16 100%);
  --btn-verify:    linear-gradient(to right, #ff9900 0, #ff9f16 100%);

  --accent-2:      #ff7701;
  --accent-2-alt:  #ffb400;
  --hot:           #ff9900;
  --badge:         #ff9900;
  --badge-douban:  #ff9900;
  --badge-state:   #ff9900;
  --score-bg:      rgba(91, 102, 254, 0.71);   /* 卡片右上分数角标（参考站 .pic-tag-right 行内色） */

  --rank-1:        #ff4a4a;   /* 参考站 .badge-first／second／third：名次方块底色，其余 #eee 底 #333 字 */
  --rank-2:        #ff7701;
  --rank-3:        #ffb400;
  --rank-num:      #999999;
  --rank-num-bg:   #eeeeee;
  --rank-num-fg:   #333333;

  --text-1:        #dddddd;   /* 标题、片名（参考站 a,h1~h6） */
  --text-2:        #999999;   /* 内文（参考站 body） */
  --text-3:        #999999;
  --text-dim:      #999999;   /* 标签「主演：」、卡片副行、面包屑、「更多」（深底 5.1:1） */
  --text-disabled: #5f5e74;
  --text-link:     #dddddd;
  --text-nav:      #ffffff;   /* 导览白字（参考站） */
  --text-title:    #dddddd;
  --text-input:    #dddddd;

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

  --border:        #383737;   /* 参考站 .border／.split-line */
  --border-2:      #3d3c52;
  --border-row:    #33324a;

  --score-hi:      #ff9900;
  --score-mid:     #999999;

  --shadow-header: 0 2px 5px rgba(0, 0, 0, 0.05);   /* 参考站捲动后的顶栏 */
  --shadow-thumb:  0 1px 2px rgba(0, 0, 0, 0.1);    /* 参考站海报 */
  --shadow-hover:  0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-drop:   0 10px 30px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-panel:  none;

  /* 播放区 */
  --player-panel:  #22212f;
  --player-hover:  rgba(255, 255, 255, 0.05);
  --player-scroll: #44435a;
  --scroll-thumb:  #44435a;   /* 捲动条拇指（全站） */
  --scroll-thumb-hover: #5f5e74;

  --fab-bg:        #22212f;   /* 右侧浮钮：参考站深色方钮 */
  --fab-color:     #dddddd;
  --fab-top-bg:    #22212f;

  --header-position: fixed;

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

  --topbar-h:      64px;      /* 一行顶栏（使用者 2026-11-19：不要太高、做成一行；参考站两列 110） */
  --dock-w:        0px;
  --tabbar-h:      0px;
  /* 参考站版心 1200；两侧留白 --page-pad */
  --page-pad:      20px;
  --cell:          10px;
  --hdr-x:         20px;
  --page-pad-r:    var(--page-pad);
  --panel-pad:     0;         /* 区块不包卡片 */
  --panel-pad-x:   0px;
  --sub-pad:       20px;      /* 次区块内距 */

  --fab-right:     30px;
  --fab-bottom:    40px;
  --fab-w:         46px;      /* 参考站浮钮 50 方钮 */

  --section-gap:   24px;      /* 模块间距统一 24（甲方 decisions 全局基线） */
  --title-gap:     20px;      /* 区块标题到内容 */

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

  --radius:        5px;       /* 参考站面板、海报、按钮一律 5 */
  --radius-poster: 5px;
  --radius-sm:     5px;
  --radius-btn:    5px;
  --radius-lg:     8px;       /* 下拉／弹窗 */
  --radius-pill:   5px;       /* 参考站按钮、搜索框、筛选选项都是圆角 5，不是膠囊 */

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

  --poster-ratio:  2 / 3;     /* 参考站海报 180×270 */
  --card-meta-h:   55px;      /* 片名 15/20（上距 10）＋副行 12/20（上距 5） */
}

/* ≤1023：手持版——一行 56（logo ／ 放大镜、看过、排行、☰），导览收进右侧抽屉 */
@media (max-width: 1023px) {
  :root {
    --topbar-h: 56px;
    --fab-bottom: 24px;
  }
}
@media (max-width: 767px) {
  :root {
    --cell: 6px;
    --page-pad: 15px;   /* 参考站手机左右 15 */
    --hdr-x: 15px;
    --panel-pad: 0;
    --panel-pad-x: 0px;
    --sub-pad: 12px;
    --grid-gap-y: 14px;
    --grid-gap-x: 10px;
    --gap: 10px;
    --section-gap: 20px;
    --title-gap: 14px;
    --fab-right: 10px;
    --fab-w: 40px;
    --card-meta-h: 48px;   /* 手机：14/19 ＋ 12/17 ＋ 间距 */
  }
}


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

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

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

  padding-top: 0;
}

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

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

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

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

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

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

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

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

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

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

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


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

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

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


/* ========== 顶栏：fixed、一行 64、版心 1200（使用者 2026-11-19 要求不要太高、做成一行；参考站是两列 110）
   页顶透明，叠在首页轮播／详情页背景带上；捲动后（header.js 加 .is-scrolled）变 #292838＋0 2px 5px 淡阴影（参考站）。
   没有背景带的页面，页顶透明时底下就是页底 #292838，看起来一样。
   .topbar-inner 是 grid：「logo｜导览｜搜索框｜图示」；≤1023 只剩「logo｜图示」，导览进抽屉、搜索改弹层 ========== */
.topbar {
  position: var(--header-position);
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  height: var(--topbar-h);
  background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.topbar.is-scrolled {
  background-color: var(--bg-topbar);
  box-shadow: var(--shadow-header);
}

.topbar-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  grid-template-areas: "brand nav search right";
  align-items: center;
  column-gap: 28px;
  height: 100%;
  width: 100%;
  max-width: calc(var(--content-max) + var(--page-pad) * 2);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

.tb-brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  height: 100%;
}
.brand-logo-img {
  background: none; /* logo 不套全局 load.gif 占位背景 */
  height: 38px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

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

.topbar-right {
  grid-area: right;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
}

/* 搜索框：放大镜在左、半透明白底、圆角 5（参考站是透明无底，叠在剧照上看不出是输入框，加一层淡底） */
.tb-search {
  grid-area: search;
  position: relative;
  width: 220px;
  height: 36px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s, border-color 0.2s;
}
.tb-search:hover { background: rgba(255, 255, 255, 0.12); }
.tb-search:focus-within { border-color: var(--accent-line); background: rgba(0, 0, 0, 0.3); }
.tb-search-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-size: 15px;
  color: var(--text-1);
}
.tb-search-btn:hover { color: var(--active); }
.tb-search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding-right: 10px;
  border: 0;
  outline: none;
  background: none;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
}
.tb-search-input::placeholder { color: rgba(255, 255, 255, 0.6); }
.tb-search .search-drop { top: calc(100% + 8px); }

/* 观看记录、排行榜（参考站右侧线条图示 24px 白色）；放大镜与 ☰ 只在 ≤1023 出现 */
.tb-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  height: 40px;
  padding: 0 6px;
  line-height: 1;
  font-size: 14px;
  color: #fff;
  transition: color 0.2s;
}
.tb-action .mac-icon { font-size: 22px; }
.tb-action-label { display: none; }
.tb-action:hover,
.tb-action.is-active,
.tb-action.is-open { color: var(--active); }
#searchToggle { display: none; }
.tb-menu-btn { display: none; }

/* ≤1279：导览间距收紧、搜索框缩短；导览放不下就整列横滑 */
@media (max-width: 1279px) {
  .topbar-inner { column-gap: 18px; }
  .tb-nav-item { padding: 0 9px; }
  .topbar-inner .tb-search { width: 170px; }
}
/* ≤1023：一行 56「logo ／ 放大镜 · 看过 · 排行 · ☰」；导览收进右侧抽屉、搜索框改放大镜弹层 */
@media (max-width: 1023px) {
  .topbar .topbar-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand . right";
    column-gap: 12px;
  }
  .topbar-inner .tb-nav,
  .topbar-inner .tb-search { display: none; }
  .topbar-right #searchToggle,
  .topbar-inner .tb-menu-btn { display: inline-flex; }
  .topbar-right { gap: 0; }
  .tb-action { min-width: 38px; padding: 0 6px; }
  .brand-logo-img { height: 34px; max-width: 140px; }
}
@media (max-width: 767px) {
  .topbar-inner { padding: 0 var(--hdr-x); }
  .tb-action { min-width: 34px; padding: 0 5px; }
  .brand-logo-img { height: 30px; max-width: 120px; }
}

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

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

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

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

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

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

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

/* ========== 首页／分类页 Hero：满宽大图轮播（2026-11-19 使用者要求「最上面应该是轮播、样式丰富一点，参考之前的模板再加创意」）
   做法沿用 tp57／tp53：从页顶开始垫在透明顶栏底下（.page-content 有 Hero 时不让位），高度 clamp(580, 40vw, 620)（顶栏改一行后降低；1280 宽时低于 580 资讯会碰到切换器）。
   每张：剧照背景慢慢推近（Ken Burns，时长跟着轮播间隔）→ 左侧＋顶端＋底部三道深色渐层（底部淡进页底 #292838）→
   左侧资讯（大的橘色镂空序号 01、橘色「本期推荐」小标＋备注、片名 42/700、橘色星星分数＋年份地区类型小框、主演、两行简介、
   橘色「立即播放」＋毛玻璃「详情」），切换时由下往上依序淡入。
   没有横图的那张（.is-poster）：背景改封面模糊压暗，右侧浮一张略微倾斜的直版海报卡（.hero-cover，≥1024 才有）。
   底部控制列：左「01 / 08」＋方形箭头；右侧直版海报切换器（参考站那排海报）——没轮到的压暗、当前那张浮起＋橘框＋下方橘色进度线（一轮时间跑满），
   滑过浮出片名。≤1023 切换器横滑；≤767 资讯贴底、按钮收起（整张连详情，§17.36）、箭头收起。
   疊层：.hero-bg（z0）→ 渐层 ::after（z1）→ 整张详情连结 .hero-link（z2）→ 海报卡 .hero-cover（z2）→ 资讯 .hero-info（z3，pointer-events:none，只有里面的连结可点）→ 控制列 .hero-bar（z4）。
   非当前张 visibility:hidden，淡出完才隐藏（§17.64） ========== */
.page-content:has(> .hero-container) { padding-top: 0; }
.hero-container { position: relative; width: 100%; }
.hero {
  --hero-h: clamp(580px, 40vw, 620px);
  --thumb-w: 84px;
  position: relative;
  height: var(--hero-h);
  overflow: hidden;
  background: var(--bg-deep);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-repeat: no-repeat;
  background-position: center 25%;
  background-size: cover;
  transform: scale(1.08);
}
.hero-slide.is-active .hero-bg { animation: heroZoom calc(var(--hero-interval, 6000ms) + 1500ms) ease-out forwards; }
.hero.is-paused .hero-slide.is-active .hero-bg { animation-play-state: paused; }
@keyframes heroZoom { from { transform: scale(1.1); } to { transform: scale(1); } }
/* 没有横图：封面模糊压暗当背景 */
.hero-slide.is-poster .hero-bg { inset: -60px; filter: blur(28px) saturate(1.25) brightness(0.7); }

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(0deg, var(--bg-base) 0%, rgba(41, 40, 56, 0.75) 18%, rgba(41, 40, 56, 0) 46%),
    linear-gradient(180deg, rgba(12, 11, 20, 0.7) 0%, rgba(12, 11, 20, 0) calc(var(--topbar-h) + 60px)),
    linear-gradient(90deg, rgba(20, 19, 30, 0.92) 0%, rgba(20, 19, 30, 0.7) 32%, rgba(20, 19, 30, 0.15) 62%, rgba(20, 19, 30, 0) 80%);
}
.hero-link { position: absolute; inset: 0; z-index: 2; }

/* 右侧直版海报卡（只有没有横图的那张） */
.hero-cover {
  position: absolute;
  z-index: 2;
  top: calc(var(--topbar-h) + 30px);
  right: calc(var(--hero-gutter) + 30px);
  height: calc(var(--hero-h) - var(--topbar-h) - 220px);
  aspect-ratio: var(--poster-ratio);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-elevated) url("../img/load.gif") no-repeat center/cover;
  box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.55), 0 24px 50px rgba(0, 0, 0, 0.6);
  transform: rotate(3deg);
  pointer-events: none;
}
.hero-cover img { width: 100%; height: 100%; object-fit: cover; }

/* 左侧资讯 */
.hero-info {
  position: absolute;
  z-index: 3;
  left: var(--hero-gutter);
  top: calc(var(--topbar-h) + 48px);
  width: min(560px, 48%);
  pointer-events: none;
}
.hero-info a { pointer-events: auto; }
.hero-info > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.hero-slide.is-active .hero-info > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-info > :nth-child(1) { transition-delay: 0.1s; }
.hero-slide.is-active .hero-info > :nth-child(2) { transition-delay: 0.18s; }
.hero-slide.is-active .hero-info > :nth-child(3) { transition-delay: 0.26s; }
.hero-slide.is-active .hero-info > :nth-child(4) { transition-delay: 0.32s; }
.hero-slide.is-active .hero-info > :nth-child(5) { transition-delay: 0.38s; }
.hero-slide.is-active .hero-info > :nth-child(6) { transition-delay: 0.44s; }
/* 大的橘色镂空序号，压在片名后面（避开上面的小标，小标要读得到）。
   用 ::before ＋ data-no 画：纯装饰，不进 DOM 文字（读屏不念、也不算跟片名重叠的文字） */
.hero-info::before {
  content: attr(data-no);
  position: absolute;
  z-index: -1;
  left: -6px;
  top: 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 128px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -4px;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 153, 0, 0.34);
  pointer-events: none;
}
.hero-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.hero-kicker-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 3px;
  background: var(--accent-grad);
  font-size: 12px;
  color: var(--on-accent);
}
.hero-kicker-note {
  display: inline-flex;
  align-items: center;
  max-width: 220px;
  height: 22px;
  padding: 0 8px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
  color: #eee;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-title {
  margin: 0;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-title a { color: inherit; }
.hero-title a:hover { color: var(--accent); }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; }
.hero-score { font-size: 17px; font-weight: 700; line-height: 22px; color: var(--accent); }
.hero-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 3px;
  font-size: 12px;
  color: #ddd;
  white-space: nowrap;
}
.hero-actor {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 20px;
  color: #ccc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-actor span { margin-right: 8px; color: var(--text-dim); }
.hero-desc {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.72);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-actions { display: flex; gap: 12px; margin-top: 22px; }
.hero-play,
.hero-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 26px;
  border-radius: var(--radius);
  font-size: 15px;
  transition: filter 0.2s, background-color 0.2s;
}
.hero-play { background: var(--accent-grad); box-shadow: var(--accent-shadow); color: var(--on-accent); }
.hero-play:hover { color: var(--on-accent); filter: brightness(1.08); }
.hero-more {
  padding: 0 20px 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  color: #fff;
}
.hero-more:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }
.hero-more .mac-icon { font-size: 13px; }

/* 底部控制列 */
.hero-bar {
  position: absolute;
  z-index: 4;
  left: var(--hero-gutter);
  right: var(--hero-gutter);
  bottom: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  pointer-events: none;
}
.hero-bar > * { pointer-events: auto; }
.hero-ctrl { display: flex; align-items: center; gap: 10px; flex-shrink: 0; padding-bottom: 6px; }
.hero-count { display: flex; align-items: baseline; gap: 6px; margin: 0 10px 0 0; font-family: Arial, Helvetica, sans-serif; color: #fff; }
.hero-count b { font-size: 34px; font-weight: 700; line-height: 1; color: var(--accent); }
.hero-count span { font-size: 14px; color: var(--text-dim); }
.hero-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 16px;
  transition: background-color 0.2s, border-color 0.2s;
}
.hero-arrow:hover { border-color: transparent; background: var(--accent-grad); color: #fff; }

/* 右侧直版海报切换器 */
.hero-thumbs {
  display: flex;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 12px 0 10px;
  list-style: none;
}
.hero-thumbs > li { flex-shrink: 0; }
.hero-thumb {
  position: relative;
  display: block;
  width: var(--thumb-w);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.hero-thumb-pic {
  display: block;
  aspect-ratio: var(--poster-ratio);
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--bg-elevated) url("../img/load.gif") no-repeat center/cover;
  filter: brightness(0.5) saturate(0.85);
  transition: filter 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.hero-thumb-pic img { width: 100%; height: 100%; object-fit: cover; }
.hero-thumb:hover .hero-thumb-pic { filter: brightness(0.85); }
.hero-thumb.is-active { transform: translateY(-10px); }
.hero-thumb.is-active .hero-thumb-pic {
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(255, 153, 0, 0.35);
  filter: none;
}
.hero-thumb-name {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  max-width: 160px;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.82);
  font-size: 12px;
  line-height: 18px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity 0.2s;
}
.hero-thumb:hover .hero-thumb-name,
.hero-thumb:focus-visible .hero-thumb-name { opacity: 1; }
.hero-thumb-bar {
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: -8px;
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
  opacity: 0;
}
.hero-thumb.is-active .hero-thumb-bar { opacity: 1; }
.hero-thumb-bar i { display: block; width: 0; height: 100%; background: var(--accent-grad); }
.hero-thumb.is-active .hero-thumb-bar i { animation: heroBar var(--hero-interval, 6000ms) linear forwards; }
.hero.is-paused .hero-thumb.is-active .hero-thumb-bar i { animation-play-state: paused; }
@keyframes heroBar { from { width: 0; } to { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-info > *,
  .hero-thumb,
  .hero-thumb-pic { transition: none; }
  .hero-slide.is-active .hero-bg,
  .hero-thumb.is-active .hero-thumb-bar i { animation: none; }
  .hero-bg { transform: none; }
}

/* ≤1199：资讯收窄、片名 36；高度固定 560、主演收起（1024 宽时切换器会顶到资讯区） */
@media (max-width: 1199px) {
  .hero { --hero-h: 560px; --thumb-w: 76px; }
  .hero-actor { display: none; }
  .hero-info { width: min(520px, 52%); }
  .hero-title { font-size: 36px; }
  .hero-info::before { font-size: 112px; top: 14px; }
}
/* ≤1023：切换器横滑（片名小签收起，横滑层会裁掉）、海报卡收起 */
@media (max-width: 1023px) {
  .hero { --hero-h: 470px; --thumb-w: 64px; }
  .hero-cover { display: none; }
  .hero-info { top: calc(var(--topbar-h) + 34px); width: min(560px, 70%); }
  .hero-title { font-size: 30px; }
  .hero-info::before { font-size: 96px; top: 12px; }
  .hero-actions { margin-top: 18px; }
  .hero-bar { bottom: 20px; gap: 16px; }
  .hero-thumbs {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding: 12px 2px 10px;
  }
  .hero-thumbs::-webkit-scrollbar { display: none; }
  .hero-thumb-name { display: none; }
  .hero-count b { font-size: 28px; }
}
/* ≤767：资讯贴在切换器上方、按钮与主演收起（整张连详情）、箭头收起只留计数。
   海报切换器换成进度短线：52px 宽的海报认不出片名、一次只露 5 张还要横滑（2026-11-24 定案）。
   每条线是整格按钮（≥32 高好点），线画在中间；当前这条跑橘色进度。 */
@media (max-width: 767px) {
  .hero { --hero-h: calc(var(--topbar-h) + 320px); }
  .hero-info { top: auto; bottom: 62px; left: var(--page-pad); right: var(--page-pad); width: auto; }
  .hero-info::before { font-size: 72px; top: 28px; -webkit-text-stroke-width: 1.5px; }
  .hero-kicker { margin-bottom: 8px; }
  .hero-title { font-size: 24px; }
  .hero-meta { margin-top: 10px; gap: 6px; }
  .hero-score { font-size: 15px; }
  .hero-chip { height: 20px; padding: 0 6px; font-size: 11px; }
  .hero-actor,
  .hero-actions { display: none; }
  .hero-desc { font-size: 13px; line-height: 20px; }
  .hero-bar { left: var(--page-pad); right: var(--page-pad); bottom: 12px; align-items: center; gap: 12px; }
  .hero-ctrl { padding-bottom: 0; }
  .hero-ctrl .hero-arrow { display: none; }
  .hero-count { gap: 4px; margin: 0; }
  .hero-count b { font-size: 20px; }
  .hero-count span { font-size: 12px; }
  .hero-thumbs { flex: 1; gap: 0; padding: 0; overflow: visible; }
  .hero-thumbs > li { flex: 1 1 0; min-width: 0; }
  .hero-thumb { width: 100%; height: 32px; }
  .hero-thumb.is-active { transform: none; }
  .hero-thumb-pic { display: none; }
  .hero-thumb-bar { left: 3px; right: 3px; top: 50%; bottom: auto; margin-top: -1.5px; background: rgba(255, 255, 255, 0.28); opacity: 1; }
  .hero-slide::after {
    background:
      linear-gradient(0deg, var(--bg-base) 0%, rgba(41, 40, 56, 0.85) 30%, rgba(20, 19, 30, 0.35) 62%, rgba(20, 19, 30, 0.1) 80%),
      linear-gradient(180deg, rgba(12, 11, 20, 0.7) 0%, rgba(12, 11, 20, 0) calc(var(--topbar-h) + 40px));
  }
}

/* ========== 分类快捷列
   首页 .quick-nav：参考站手机首页的淺灰大按钮（.btn-default：#eee→#f6f6f6 渐层、#333 字、圆角 5、淡阴影），
   桌机一排、图示是橘色线条；放不下就横滑（header.js 渐隐提示挂在 .quick-nav-list），≤767 一排平均分配。
   分类页 .hero-genre-panel--single：参考站筛选面板（#22212f 圆角 5、维度名灰字、选项 #ddd、选中橘色渐层白字）。 ========== */
.quick-nav,
.hero-genre-panel.hero-genre-panel--single {
  position: relative;
  z-index: 20;
  width: calc(100% - var(--page-pad) * 2);
  max-width: var(--content-max);
  margin: 0 auto var(--section-gap);
}
.quick-nav-list {
  display: flex;
  gap: 15px;
  min-width: 0;
  overflow-x: auto;
  padding: 2px 2px 12px;   /* 按钮阴影往下 10，横滑层会裁掉，内距撑出空间 */
  margin: -2px -2px -12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.quick-nav-list::-webkit-scrollbar { display: none; }
.quick-nav-list > li { display: flex; flex: 1 0 auto; }
.quick-nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 0 auto;
  min-width: 104px;
  height: 38px;
  padding: 0 18px;
  border-radius: var(--radius);
  background: var(--btn-grad);
  box-shadow: var(--btn-shadow);
  font-size: 14px;
  line-height: 1;
  color: var(--btn-text);
  white-space: nowrap;
  transition: filter 0.2s, color 0.2s;
}
.qn-icon { display: inline-flex; color: var(--accent); font-size: 18px; }
.qn-name { line-height: 1; }
.quick-nav-item:hover { color: var(--btn-text); filter: brightness(0.94); }

.hero-genre-panel.hero-genre-panel--single {
  padding: 10px;
  border-radius: var(--radius);
  background: var(--bg-sub);
}
.hero-genre-panel--single .hgp-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  min-width: 0;
}
.hero-genre-panel--single .hgp-head,
.hero-genre-panel--single .hgp-tag {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1;
  color: var(--text-1);
  white-space: nowrap;
  transition: color 0.2s;
}
.hero-genre-panel--single .hgp-head:hover,
.hero-genre-panel--single .hgp-tag:hover { color: var(--link-hover); }
.hero-genre-panel--single .hgp-head.is-active {
  background: var(--accent-grad);
  box-shadow: var(--accent-shadow);
  color: var(--on-accent);
}
@media (max-width: 767px) {
  .quick-nav-list { gap: 10px; }
  .quick-nav-item { min-width: 0; height: 40px; padding: 0 10px; font-size: 14px; }
  .qn-icon { font-size: 16px; }
  .hero-genre-panel--single .hgp-head,
  .hero-genre-panel--single .hgp-tag { height: 28px; padding: 0 10px; font-size: 13px; }
}

/* ========== 区块（参考站：不包卡片、平铺在页底上，区块间距以甲方 24 为准）；
   标题列：h2 24/400 #ddd（参考站没有图示，HTML 里分类区块带的类型图示在这里隐藏），紧接灰色「更多 ›」 ========== */
.section,
.content-block {
  position: relative;
  width: calc(100% - var(--page-pad) * 2);
  max-width: var(--content-max);
  margin: 0 auto var(--section-gap);
  padding: var(--panel-pad);
  background: var(--bg-panel);
}

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

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

/* 参考站区块标题没有图示 */
.section-icon,
.section-title > .mac-icon,
.section-title a > .mac-icon { display: none; }

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

@media (max-width: 767px) {
  .section-title { font-size: 20px; line-height: 26px; }
}

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

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

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

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

.section-main { width: 100%; }

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

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

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

/* ---------- 卡片（参考站：海报 180×270、圆角 5、0 1px 2px 淡阴影；
   右上紫蓝分数角标 rgba(91,102,254,.71) 白字 12、圆角 2；底部 transparent→rgba(0,0,0,.5) 渐层上靠左白字备注 12；
   下方片名 15/700 #ddd 一行（上距 10）＋ 副行 12 #999「年份 / 地区 / 类型」（上距 5）。
   参考站 hover 是压暗 .2＋播放图示——甲方基准不要播放 icon；PC 由 popout 浮层盖上，手机不做 hover。
   ⚠️ vod_card_ad 与 vod_card 同一套 class，一起变 ---------- */
.card {
  position: relative;
  min-width: 0;
}
.card-teaser { height: 100%; }
.card-link {
  display: block;
  height: 100%;
  color: var(--text-1);
}

.card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: var(--poster-ratio);
  border-radius: var(--radius-poster);
  overflow: hidden;
  background: var(--bg-elevated) url("../img/load.gif") no-repeat center/cover;
  box-shadow: var(--shadow-thumb);
  transform: translateZ(0);
}
.card-cover.img-loaded { background-image: none; }
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
/* 底部渐层（参考站 .pic-text：transparent → rgba(0,0,0,.5)，内距 5/10）；备注两行时渐层跟着变高 */
.card-badge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 16px 10px 6px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%);
  font-size: 12px;
  line-height: 18px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
/* 右上分数角标（参考站 .pic-tag-right） */
.card-score {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  padding: 2px 5px;
  border-radius: 2px;
  background: var(--score-bg);
  font-size: 12px;
  line-height: 18px;
  color: #fff;
  pointer-events: none;
}

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

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

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

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


/* ========== 排行榜列（参考站：名次是 .badge 方块——1 红、2 橙、3 黄底白字，其余 #eee 底 #333 字；
   片名 14 #ddd、右侧灰字，行高 39）。首页总榜、排行榜页、详情侧栏（同类热播／专题）共用。
   排行榜页与首页每栏一块 #22212f 圆角 5 面板（参考站） ========== */
.rank-col {
  min-width: 0;
}
.rank-wrap .rank-col {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg-sub);
}
.section .rank-col { padding: 0; }
.rank-col-hd {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 10px;
}
.rank-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding-right: 10px;
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  color: var(--text-title);
}
.rch-badge { font-size: 12px; padding: 0 6px; line-height: 20px; border-radius: var(--radius-sm); background: var(--bg-muted); color: var(--text-2); }
.rank-col-more { flex-shrink: 0; margin-left: auto; font-size: 14px; line-height: 24px; color: var(--text-dim); white-space: nowrap; }
.rank-col-more:hover { color: var(--link-hover); }

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ========== 分页（参考站：30 高、淺灰渐层 .btn-default #333 字 12px、圆角 5、内距 5/15；当前页橘色渐层白字；停用半透明） ========== */
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; padding: 20px 0 0; }   /* 底部不留：分页在面板里靠面板内距、在页尾靠外层容器补 --section-gap */
.pagination ul,
.pagination ol { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pg-btn,
.pg-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 30px;
  padding: 0 15px;
  border-radius: var(--radius-btn);
  background: var(--btn-grad);
  box-shadow: var(--btn-shadow);
  color: var(--btn-text);
  font-size: 12px;
  transition: filter 0.2s;
}
.pg-num { padding: 0 12px; }
.pg-btn:hover,
.pg-num:hover { color: var(--btn-text); filter: brightness(0.94); }
.pg-num.is-active,
.pg-num[aria-current] { background: var(--accent-grad); box-shadow: var(--accent-shadow); color: var(--on-accent); }
.pg-btn.is-disabled,
.pg-btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.pg-info { font-size: 14px; color: var(--text-dim); margin-left: 12px; }

/* ========== 页脚（参考站：跟页底同色 #292838、上下 20、置中灰字 14px；上缘加一条 #383737 细线跟内容分开） ========== */
.site-footer {
  margin-top: 0;   /* 上方最后一块自带 margin-bottom（--section-gap），这里不再叠加（甲方强制 20：模块间距统一） */
  padding: 24px var(--page-pad);
  border-top: 1px solid var(--border);
  background: var(--bg-base);
  font-size: 14px;
  line-height: 28px;
  color: var(--text-dim);
  text-align: center;
}
.site-footer > p { max-width: calc(var(--content-max) + var(--page-pad) * 2); margin: 0 auto; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 6px;
}
.footer-links a { color: var(--text-2); }
.footer-links a:hover { color: var(--link-hover); }
/* 首页「友情链接」：#999 连结一排，间距 20 */
.section .footer-links { justify-content: flex-start; gap: 6px 20px; }
.section .footer-links a {
  font-size: 14px;
  line-height: 24px;
  color: var(--text-2);
  transition: color 0.2s;
}
.section .footer-links a:hover { color: var(--link-hover); }
.footer-bottom-bar { color: var(--text-dim); }

/* ========== 右侧悬浮钮（tp39 定案的两颗：手机观看 QR＋回到顶部）；参考站深色方钮（#22212f、圆角 5、#ddd 图示），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-radius: var(--radius);
  background: var(--fab-bg);
  color: var(--fab-color);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 4px 12px rgba(0, 0, 0, 0.35);   /* 一圈很淡的亮边：压在海报上也分得出轮廓 */
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}
.fab-btn .mac-icon { font-size: 20px; }
.fab-btn:hover { background: var(--bg-muted); color: var(--accent); }
.fab-btn--top { display: none; background: var(--fab-top-bg); color: var(--fab-color); }
.fab-btn--top.is-visible { display: flex; }
.fab-btn--top:hover { background: var(--bg-muted); color: var(--accent); }

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ========== 响应式 ========== */

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

@media (max-width: 767px) {
  .search-overlay-inner { margin-top: 0; padding: 12px; }

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

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


  .pagination ol,
  .pagination ul { gap: 6px; }
  .pg-btn,
  .pg-num { height: 32px; padding: 0 10px; }   /* 手机点击范围至少 32（参考站 30） */

}

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


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

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

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

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

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

/* ---------- 面包屑：14px 灰，分隔「›」，末级 #ddd ---------- */
.art-breadcrumb { font-size: 14px; line-height: 20px; color: var(--text-dim); margin-bottom: 0; }
.art-breadcrumb a { color: var(--text-dim); }
.art-breadcrumb a:hover { color: var(--link-hover); }
/* 分隔「›」：原本 --text-disabled #5f5e74 在 #292838 上只有 2.3:1、字形 5px 宽，看不清（2026-11-20 使用者回报）。
   改 #8a89a0（4.2:1，比连结 #999 的 5.1:1 稍暗，层级仍是「连结 > 分隔」）＋放大到 18px 加粗 */
.bc-sep { display: inline-flex; align-items: center; height: 20px; margin: 0 6px; color: #8a89a0; font-size: 18px; font-weight: 700; line-height: 1; }
.bc-sep .mac-icon { display: none; }
.bc-sep::before { content: "›"; transform: translateY(-1px); }
.bc-current { color: var(--text-1); }

/* ---------- 详情类页的区块（评论、分集剧情、专题影片…）：不包卡片；标题 24/400 #ddd，下方 1px #383737 分隔线
   （参考站详情页「视频下载」「相似推荐」） ---------- */
.detail-section {
  margin-bottom: var(--section-gap);
  padding: var(--panel-pad);
  background: var(--bg-panel);
}
.detail-section-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 var(--title-gap);
  padding: 0 0 10px;
  border-bottom: 1px solid var(--border);
  font-size: 24px;
  font-weight: 400;
  line-height: 30px;
  color: var(--text-title);
}
.detail-section-hd > h2 { margin: 0; font-size: inherit; font-weight: inherit; }
.detail-section-hd .mac-icon { display: none; }
.detail-section-hd--split { justify-content: space-between; }
.detail-section-more { font-size: 14px; font-weight: 400; color: var(--text-dim); }
.detail-section-more:hover { color: var(--link-hover); }
@media (max-width: 767px) {
  .detail-section-hd { font-size: 20px; line-height: 26px; }
}

/* ---------- 播放列表（widget/playlist；详情页与播放页共用）
   参考站「播放地址」：标题 24/400 ＋ 同一行的来源文字 tab（14 #ddd，选中橘字＋下方 2px 橘线）＋ 右侧「排序」，
   下面 1px #383737 线；集数钮是淺灰渐层（.btn-default：#eee→#f6f6f6、#333 字 12、圆角 5、36 高），当前集橘色渐层白字。
   用 display:contents 把 .playlist-hd 的两个子元素摊进 flex，不改 widget 标记。≤767 来源 tab 换到第二行横滑 ---------- */
.playlist-section {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  column-gap: 30px;
  margin-bottom: var(--section-gap);
}
.playlist-hd { display: contents; }
.playlist-title {
  order: 1;
  margin: 0;
  padding: 0 0 10px;
  font-size: 24px;
  font-weight: 400;
  line-height: 30px;
  color: var(--text-title);
}
.playlist-sources {
  order: 2;
  flex: 1 1 0;
  display: flex;
  gap: 30px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.playlist-sources::-webkit-scrollbar { display: none; }
.pl-source-tab {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 0 0 10px;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 400;
  line-height: 30px;
  color: var(--text-1);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s;
}
.pl-source-tab .mac-icon { display: none; }
/* 条数：右上角小灰字 */
.pl-src-count {
  align-self: flex-start;
  margin-top: 2px;
  font-size: 11px;
  line-height: 14px;
  color: var(--text-dim);
}
.pl-source-tab:hover { color: var(--link-hover); }
.pl-source-tab.is-active { color: var(--active); }
.pl-source-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
}
.pl-sort-btn {
  order: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 0 0 10px;
  height: 40px;
  border: 0;
  background: none;
  font-size: 14px;
  color: var(--text-1);
  cursor: pointer;
}
.pl-sort-btn:hover { color: var(--active); }
.playlist-empty,
.playlist-panel {
  order: 4;
  flex: 0 0 100%;
  min-width: 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.playlist-empty { padding: 30px 0; text-align: center; color: var(--text-dim); }
.playlist-panel { display: none; }
.playlist-panel.is-active { display: block; }

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

.playlist-episodes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 20px;
  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: 36px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  background: var(--btn-grad);
  box-shadow: var(--btn-shadow);
  color: var(--btn-text);
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  transition: filter 0.2s, color 0.2s;
}
.episode-btn:hover { color: var(--btn-text); filter: brightness(0.94); }
.episode-btn.is-active { background: var(--accent-grad); box-shadow: var(--accent-shadow); color: var(--on-accent); }
.episode-btn.is-active:hover { color: var(--on-accent); filter: none; }
.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 行（36 × 3 ＋ 间距 20 × 2），底下留 12 给阴影 */
.playlist-episodes.episodes-collapsed { max-height: 160px; padding-bottom: 12px; overflow: hidden; }
.episode-more-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 36px;
  margin-top: 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-sub);
  color: var(--text-1);
  font-size: 13px;
  text-align: center;
}
.episode-more-trigger:hover { color: var(--active); }

@media (max-width: 767px) {
  .playlist-section { column-gap: 12px; }
  .playlist-title { font-size: 20px; line-height: 26px; }
  .playlist-sources { order: 4; flex: 0 0 100%; gap: 22px; }
  .pl-source-tab { height: 36px; padding-bottom: 8px; font-size: 13px; }
  .playlist-empty,
  .playlist-panel { order: 5; padding-top: 14px; }
  .playlist-episodes { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; }
  .episode-btn { height: 34px; }
  /* 收起：3 行（34 × 3 ＋ 10 × 2） */
  .playlist-episodes.episodes-collapsed { max-height: 134px; }
  .ep-playing { display: none; }   /* 窄格子里会把集名挤成「第0…」，当前集已有橘色底标示 */
}

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

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

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

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

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

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

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

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

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

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