/* ==========================================
   tp34_dark_white — 视觉参考：兄弟影视 brovod.com（MacCMS ds3 版式）
   深色底（#111319）＋白字＋红色主调（#F03752）。
   数值取自参考站 getComputedStyle 实测（1440 / 375），量测记录见 template/log/tp34_dark_white__THEME_SPEC.md。
   版型（区块组成、播放页、卡片栏数）承袭 tp29_white_black，只换视觉。
   组件里不写死色码，全部走下面的变量。
   ========================================== */
:root {
  --bg-base:       #111319;   /* body */
  --bg-deep:       #0A0C0F;   /* 页脚 */
  --bg-topbar:     #0A0C0F;   /* .head-b（滚动后 / 内页） */
  --bg-card:       #0A0C0F;   /* .bj3 面板：排行榜、播放右栏、选集钮 */
  --bg-elevated:   #1E2126;   /* .player-vod-box、占位底 */
  --bg-panel:      #0A0C0F;
  --bg-input:      rgba(255, 255, 255, 0.08);
  --bg-drop:       #1E2126;   /* 下拉／弹窗 */
  --bg-glass:      rgba(255, 255, 255, 0.10);   /* 详情页评分卡 */

  --accent:        #F03752;   /* .cor6 / .bj2：导航选中、主按钮、选中 pill、当前页 */
  --accent-end:    #F03752;
  --accent-grad:   #F03752;
  --accent-hover:  #FF4D66;
  --on-accent:     #FFFFFF;
  --accent-dot:    #F03752;
  --accent-ico:    #F03752;
  --accent-light:  rgba(240, 55, 82, 0.10);
  --accent-soft:   rgba(240, 55, 82, 0.18);

  --nav-active:    #F03752;
  --link-hover:    #F03752;

  --btn-grad:      rgba(255, 255, 255, 0.08);   /* 次要 pill（.selected 以外的「角色」tab） */
  --btn-text:      rgba(255, 255, 255, 0.87);
  --btn-danger:    #F03752;

  --accent-2:      #F03752;
  --accent-2-alt:  #FF4D66;
  --hot:           #FF008C;   /* 排行右侧浏览数 .vod-hot-content */
  --badge:         #F03752;

  --rank-1:        #FF4F34;   /* .vod-on-e-styles.key1 */
  --rank-2:        #FF8A00;
  --rank-3:        #FFC12E;

  --text-1:        rgba(255, 255, 255, 0.90);
  --text-2:        #A9A9AC;   /* .cor5 */
  --text-3:        rgba(255, 255, 255, 0.45);
  --text-nav:      rgba(255, 255, 255, 0.87);
  --text-title:    rgba(255, 255, 255, 0.90);
  --text-input:    rgba(255, 255, 255, 0.90);

  --fill-1:        rgba(255, 255, 255, 0.06);
  --fill-2:        rgba(255, 255, 255, 0.10);

  --border:        #25252B;   /* 选集钮 .box.border */
  --border-2:      #34343C;
  --border-row:    #141B29;   /* 排行列底线 .vod-link.b-b */

  --score-hi:      #FFAC2D;   /* 详情评分 .fraction */
  --score-mid:     #A9A9AC;

  --shadow-header: 0 2px 6px rgba(0, 0, 0, 0.6);   /* .head-b */
  --shadow-thumb:  none;
  --shadow-drop:   0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-panel:  0 8px 24px rgba(0, 0, 0, 0.55);

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

  --fab-bg:        #0A0C0F;   /* .lang-bnt / .theme-style */
  --fab-color:     rgba(255, 255, 255, 0.90);
  --fab-top-bg:    #F03752;   /* .top.bj2 */

  --header-position: fixed;

  --topbar-h:      70px;      /* .head 高 70 */
  /* 内容边缘：参考站 .box-width 左右 60（1312 宽 @1440） */
  --page-pad:      60px;
  --cell:          10px;
  --hdr-x:         20px;      /* .head { padding: 0 20px } */
  --page-pad-r:    var(--page-pad);

  --fab-right:     12px;      /* 右侧圆钮 x=1394 @1432 宽 */
  --fab-bottom:    40px;
  --fab-w:         34px;

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

  --gap:           16px;
  --grid-gap-y:    16px;      /* .public-list-box { padding-right:16; margin:16 0 } */
  --grid-gap-x:    16px;

  --radius:        12px;      /* 海报 / 面板 .radius */
  --radius-sm:     4px;       /* 角标 .badge */
  --radius-btn:    50px;      /* .button 全圆角 */
  --radius-lg:     12px;
  --radius-pill:   20px;      /* 筛选 / 分页 pill */

  --content-max:   1680px;

  --poster-ratio:  173 / 235; /* 实测 173×235 */
  --card-meta-h:   48px;
}

@media (max-width: 1199px) {
  :root {
    --page-pad: 20px;
    --page-pad-r: var(--page-pad);
  }
}
@media (max-width: 767px) {
  :root {
    --cell: 6px;
    --page-pad: 12px;          /* 参考站手机卡片 x=12 */
    --hdr-x: 12px;
    --grid-gap-y: 12px;
    --grid-gap-x: 8px;
    --gap: 10px;
    --section-gap: 16px;
    --topbar-h: 56px;
  }
}


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

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

/* 参考站：14px、系统字族 */
body {
  font-family: -apple-system-font, system-ui, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  min-height: 100vh;

  padding-top: 0;
}

a { text-decoration: none; color: inherit; }
img { display: block; background: url("../img/load.gif") no-repeat center/cover, var(--bg-elevated); }

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

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

.art-breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.art-breadcrumb li {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

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

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

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

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

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

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


/* ========== 页面骨架：纯顶栏（参考站 .myui-header__top fixed 60px） ========== */
.page-shell,
.main-area {
  min-height: 100vh;
  background-color: var(--bg-base);
}
.main-area {
  display: flex;
  flex-direction: column;
}

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

.brand-logo-img {
  background: none; /* logo 不套全局 load.gif 占位背景 */
  height: 50px;      /* .logo-brand 50×50、上下 10 */
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

/* ========== 顶栏（参考站 .head：高 70、左右 20；首页透明叠 Hero，滚动后 .head-b 实色＋阴影） ========== */
.topbar {
  position: var(--header-position);
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  padding: 0 var(--hdr-x);
  background-color: var(--bg-topbar);
  box-shadow: var(--shadow-header);
  transition: background-color 0.25s, box-shadow 0.25s;
}
/* 首页：透明叠在 Hero 上；上缘一层淡黑渐层让白字压在亮图上仍看得清（参考站图本身较暗，这层是保险） */
.topbar.topbar--overlay {
  background-color: transparent;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 100%);
  box-shadow: none;
}
.topbar.topbar--overlay.is-scrolled {
  background-color: var(--bg-topbar);
  background-image: none;
  box-shadow: var(--shadow-header);
}

.topbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
}

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

/* ---------- 分类导航：15px／700、项距 28、选中 #F03752 ---------- */
.tb-nav {
  display: flex;
  align-items: center;
  height: 100%;
  min-width: 0;
}
.tb-nav-list {
  display: flex;
  align-items: center;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tb-nav-list::-webkit-scrollbar { display: none; }

/* ⚠️ 横向滚动列的子项要 flex-shrink:0，不可写 min-width:0（会被压扁到相邻项重叠，§17.58） */
.tb-nav-list > li {
  display: flex;
  flex-shrink: 0;
  margin-left: 28px;
}
.tb-nav-item {
  display: flex;
  align-items: center;
  height: var(--topbar-h);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-nav);
  white-space: nowrap;
  transition: color 0.2s;
}
.tb-nav-item:hover,
.tb-nav-item.is-active { color: var(--nav-active); }

.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%);
}

/* ---------- 「频道」按钮（≤1023 取代整排导航；样式比照参考站「更多 ⌄」） ---------- */
.hamburger-btn {
  display: none;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  height: var(--topbar-h);
  margin-left: 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-nav);
  white-space: nowrap;
}
.hamburger-btn .mac-icon { font-size: 14px; transition: transform 0.2s; }
.hamburger-btn:hover { color: var(--accent); }
.hamburger-btn.is-open .hb-caret { transform: rotate(180deg); }
.hamburger-btn .hb-menu { display: none; }   /* ☰ 只在手机（≤767）出现，见下方抽屉规则 */

/* ---------- 右侧：图示在上、文字在下（参考站 .gen-search / .gen-history：图示 20、文字 12、白 .6） ---------- */
.topbar-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 100%;
  margin-left: auto;
}
.topbar-right > * { margin-left: 30px; }

.tb-action {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 100%;
  font-size: 20px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}
.tb-action:hover,
.tb-action.is-active { color: var(--accent); }
.tb-action-label { font-size: 12px; line-height: 1; white-space: nowrap; }

/* ---------- 搜索弹层（参考站点「搜索」从顶部展开；桌机置中 640 宽，手机满宽） ---------- */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  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-radius: var(--radius);
  background: var(--bg-drop);
  box-shadow: var(--shadow-drop);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 0 0 16px;
  border-radius: var(--radius-btn);
  background: var(--bg-input);
}
.search-bar:focus-within { box-shadow: 0 0 0 1px var(--accent); }
.search-bar-icon { flex-shrink: 0; font-size: 16px; color: var(--text-2); }

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

/* 参考站 .search-input-sub：66×42 全圆角主色 */
.search-submit-btn {
  flex-shrink: 0;
  height: 42px;
  padding: 0 22px;
  border-radius: var(--radius-btn);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 700;
}
.search-submit-btn:hover { background: var(--accent-hover); }

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

/* ========== 内容区：顶栏 fixed，内容让出顶栏高度；首页 Hero 顶到画面最上方、顶栏透明叠在上面 ========== */
.page-content {
  flex: 1;
  padding-top: var(--topbar-h);
}
/* 只有真的有 Hero 时才顶上去；后台没设 level=1、Hero 不渲染时照常让出顶栏高度 */
.topbar--overlay ~ .page-content:has(> .hero-container) { padding-top: 0; }

/* ========== 首页 Hero（参考站 .slide-a：满版 580 高 @1440、顶栏透明叠在上面；左下片名，底部短横线指示点） ========== */
.hero-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1440 / 580;
  min-height: 420px;
  max-height: 760px;
  overflow: hidden;
  background: var(--bg-base);
  margin-bottom: var(--section-gap);

  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.hero {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-layer {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center 20%;
  background-size: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero-layer.is-active { opacity: 1; }

/* 底部淡回页面底色（参考站图片下缘融进 #111319），同时托住左下文字 */
.hero-fade-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60%;
  background:
    linear-gradient(180deg, rgba(17, 19, 25, 0) 0%, rgba(17, 19, 25, 0.55) 55%, var(--bg-base) 100%),
    linear-gradient(90deg, rgba(17, 19, 25, 0.55) 0%, rgba(17, 19, 25, 0) 55%);
  pointer-events: none;
}

/* 整张图可点进详情；hero.js 换页时更新 href */
.hero-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero-inner {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero-info {
  position: absolute;
  left: var(--page-pad);
  bottom: 56px;
  width: 560px;
  max-width: calc(100% - var(--page-pad) * 2);
}

/* 小标「▍剧集」：参考站左侧 3px 红条＋18px 粗体、字距 */
.hero-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-sub::before {
  content: "";
  flex-shrink: 0;
  width: 3px;
  height: 18px;
  background: var(--accent);
}
.hero-sub:empty { display: none; }

.hero-title {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.87);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 细框标签：.slide-info-remarks { 1px 白框、无圆角、padding 2px 8px } */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 14px;
}
.hero-tags:empty { display: none; }
.hero-tag {
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, 0.87);
  font-size: 14px;
  line-height: 26px;
  color: rgba(255, 255, 255, 0.87);
  white-space: nowrap;
}

.hero-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 22px 0 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.87);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
.hero-desc:empty { display: none; }

/* 「立即播放／详情」：参考站详情页的 .button（120×42 全圆角主色）＋次要半透明白 */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  pointer-events: auto;
}
.hero-play,
.hero-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 28px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.2s;
}
.hero-play { background: var(--accent); color: #fff; }
.hero-play .mac-icon { font-size: 14px; }
.hero-more { background: rgba(255, 255, 255, 0.16); color: #fff; }
.hero-play:hover { background: var(--accent-hover); color: #fff; }
.hero-more:hover { background: rgba(255, 255, 255, 0.26); color: #fff; }

/* 指示点：底部置中的短横线，选中加长＋主色（参考站 .swiper-pagination） */
.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  display: flex;
  justify-content: center;
  gap: 4px;
  pointer-events: none;
}
.hero-dot {
  width: 10px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  pointer-events: auto;
  transition: width 0.25s, background-color 0.25s;
}
.hero-dot.is-active { width: 20px; background: var(--accent-dot); }

/* 左右切换：圆钮 rgba(0,0,0,.6)，hover 区块才出现 */
.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s;
}
.hero-nav .mac-icon { font-size: 24px; }
.hero-nav--prev { left: 20px; }
.hero-nav--next { right: 20px; }
.hero-container:hover .hero-nav { opacity: 0.6; }
.hero-container .hero-nav:hover { opacity: 1; }

.hero--single .hero-nav,
.hero--single .hero-dots { display: none; }
.hero.is-empty .hero-info,
.hero.is-empty .hero-dots { display: none; }
.hero:not(:has(.hero-dot)) .hero-actions,
.hero.is-empty .hero-actions { display: none; }

@media (max-width: 1199px) {
  .hero-title { font-size: 36px; }
  .hero-info { bottom: 48px; }
}
@media (max-width: 767px) {
  /* 参考站手机 375×308（含叠在上面的顶栏） */
  .hero-container { aspect-ratio: 375 / 308; min-height: 0; max-height: none; margin-bottom: 12px; }
  .hero-info { left: var(--page-pad); right: var(--page-pad); bottom: 30px; width: auto; max-width: none; }
  .hero-sub { margin-bottom: 4px; font-size: 13px; letter-spacing: 1px; }
  .hero-sub::before { height: 13px; }
  .hero-title { font-size: 20px; }
  .hero-tags { display: none; }
  .hero-desc { margin-top: 6px; font-size: 14px; line-height: 20px; }
  .hero-dots { bottom: 10px; }
  .hero-nav { display: none; }
  /* 手机端隐藏两颗按钮（空间不够）。
     ⚠️ CLAUDE.md §17.36：#heroLink 是 inset:0 / z-index:2 的全覆盖连结，
     hero.js 换页时会把它设成该片的详情页，整张图仍可点进去——不要连它一起收掉。 */
  .hero-actions { display: none; }
}


/* ========== 区块（参考站 .title-a：标题 24px 常规字重、行高 45、「更多 ›」14px #A9A9AC 紧跟标题、间距 20） ========== */
.section,
.content-block {
  position: relative;
  width: 100%;
  max-width: calc(var(--content-max) + var(--page-pad) * 2);
  margin: 0 auto var(--section-gap);
  padding: 0 var(--page-pad);
}

.section-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 45px;
  margin-bottom: 16px;        /* 标题底 → 海报顶：.public-list-box { margin: 16px 0 } */
}

.section-title {
  flex-shrink: 0;
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 45px;
  color: var(--text-title);
  white-space: nowrap;
}
.section-title a { color: inherit; }
.section-title a:hover { color: var(--link-hover); }

.section-icon { display: none; }

/* 「更多 ›」：参考站 .this-get.cor5，紧跟标题、左右 margin 20 */
.section-more-pill,
.section-more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-left: 20px;
  font-size: 14px;
  line-height: 45px;
  color: var(--text-2);
  white-space: nowrap;
}
.section-more-pill:hover,
.section-more:hover { color: var(--link-hover); }
.section-more .mac-icon { font-size: 12px; }

/* 子分类：放右侧，文字＋分隔线（参考站没有这块，沿用它次要文字的颜色字级） */
/* 放不下的子分类整个换到第二行、被 height 截掉，而不是被切一半（768 实测「AI漫剧」只剩半个字）。
   用 wrap ＋ 固定一行高度，比算宽度或写死显示几个都稳：任何宽度都只显示放得下的完整项。 */
.section-subcats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  height: 30px;
  min-width: 0;
  margin-left: auto;
  overflow: hidden;
}
.section-subcat {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 14px;
  line-height: 30px;
  color: var(--text-2);
  white-space: nowrap;
}
.section-subcat + .section-subcat::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 14px;
  margin: 0 12px;
  background: var(--border);   /* .split-line */
  vertical-align: -2px;
}
.section-subcat:hover { color: var(--link-hover); }

/* 首页分类区块标题列的「本类日排行」10 条（decisions.md 首页基线／index.md 2.3）：
   横向捲动、不换行、右缘渐隐提示还有内容；手机隐藏（≤767 规则在下方响应式区） */
.sh-dayrank {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
  margin-left: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  -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::-webkit-scrollbar { display: none; }
.sh-dayrank a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex-shrink: 0;
  font-size: 13px;
  line-height: 45px;
  color: var(--text-2);
  white-space: nowrap;
  transition: color 0.2s;
}
.sh-dayrank a:hover { color: var(--accent); }
/* 名次照排行榜的斜体粗体，前三名彩色 */
.sdr-num { font-size: 14px; font-weight: 700; font-style: italic; color: var(--text-3); }
.sh-dayrank a:nth-child(1) .sdr-num { color: var(--rank-1); }
.sh-dayrank a:nth-child(2) .sdr-num { color: var(--rank-2); }
.sh-dayrank a:nth-child(3) .sdr-num { color: var(--rank-3); }

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

.section-count { margin-left: 8px; font-size: 12px; font-weight: 400; color: var(--text-3); }
.section-count em { font-style: normal; color: var(--accent); font-weight: 700; }
.list-empty { padding: 40px 0; text-align: center; color: var(--text-3); font-size: 14px; }

.section-main { width: 100%; }

/* ========== 影视卡片网格 ========== */
.vod-row,
.vod-grid,
.play-vod-grid,
.detail-vod-grid,
.td-vod-grid,
.plot-related-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);   /* col-lg-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 的倍数）。
   原本照参考站「大片推荐」一行 8 张、24 条，使用者 2026-10-01 改为 9 × 2 */
.section--hot .vod-grid--hot9 { grid-template-columns: repeat(9, 1fr); }
/* 平板（≤1199）影视卡欄數：甲方基准 decisions.md 第 11 行「≤1199px 4 列、≤600px 3 列」，参考站 col-sm-4 也是 4。
   PC 9 栏的两处（首页热播、筛选页的 .vod-grid--c9）平板改 6：18／27 张在 6 栏刚好排满，4 栏会留空格。
   使用者 2026-10-01 定案 6／4／3（不沿用 tp26 的平板 6 栏特例）。手机 3 栏在下方 ≤767 规则。 */
@media (max-width: 1199px) {
  .vod-row,
  .vod-grid,
  .play-vod-grid,
  .detail-vod-grid,
  .td-vod-grid,
  .plot-related-grid { grid-template-columns: repeat(4, 1fr); }
  .section--hot .vod-grid--hot9,
  .vod-grid.vod-grid--c9 { grid-template-columns: repeat(6, 1fr); }
}
.section--hot:not(:has(.card)) { display: none; }

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

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

/* ---------- 卡片（参考站 .public-list-box：海报圆角 12、右下状态字、片名在图下 15px） ---------- */
.card {
  position: relative;
  min-width: 0;
}
.card-link {
  display: block;
  color: inherit;
}

.card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: var(--poster-ratio);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated) url("../img/load.gif") no-repeat center/cover;
  transform: translateZ(0);   /* 让 overflow:hidden＋圆角在 img 放大时仍裁得干净（Safari） */
}
.card-cover.img-loaded { background-image: none; }
/* 参考站 hover 效果：静止时图片放大 1.2、hover 缩回 1.0（.gen-movie-img { transform: scale(1.2) }） */
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.2);
  transition: transform 0.5s ease;
}
.card:hover .card-cover img { transform: scale(1); }
/* 载入失败的占位图（.is-nopic，contain＋留白）不套放大，否则图示被裁到边缘 */
.card-cover img.is-nopic { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .card-cover img { transform: none; transition: none; }
}

/* 右下状态：.public-list-prb { right:6; bottom:0; 12px; 白 .87 }，底下垫 .public-bg 的黑色渐层 */
.card-badge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px 8px 6px;
  font-size: 12px;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.87);
  text-align: right;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 片名 15px（.time-title.ft4）＋ 次行 12px #A9A9AC */
.card-meta {
  display: block;
  min-height: var(--card-meta-h);
  padding-top: 10px;
}
.card-title {
  font-size: 15px;
  font-weight: 400;
  line-height: 20px;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}
.card-tags {
  margin-top: 2px;
  min-height: 18px;
  font-size: 12px;
  line-height: 18px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card:hover .card-title { color: var(--accent); }

/* ---------- 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-panel);
  cursor: default;
  transition: width 0.1s ease-out, height 0.1s ease-out, top 0.1s ease-out, left 0.1s ease-out;
}
.cd-link { display: block; width: 100%; height: 100%; color: inherit; }
.cd-link:hover { color: inherit; }
.cd-cover {
  position: absolute;
  z-index: 111;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 38%, rgba(0, 0, 0, 0.94) 100%);
}
.cd-badge {
  position: absolute;
  top: 7px;
  left: 9px;
  z-index: 113;
  padding: 0 5px;
  border-radius: var(--radius-sm);
  background: var(--badge);
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  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-size: 16px; font-weight: 700; color: var(--score-hi); }
.cd-tags {
  display: flex;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
  margin: 8px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}
.cd-tags span {
  flex-shrink: 0;
  max-width: 5em;
  padding: 0 6px;
  margin-right: 5px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.16);
  line-height: 20px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cd-tags span:last-child { margin-right: 0; }
.cd-intro { font-size: 12px; color: rgba(255, 255, 255, 0.8); }
.cd-il { color: rgba(255, 255, 255, 0.55); }
.cd-date,
.cd-starring {
  height: 20px;
  line-height: 20px;
  margin-bottom: 4px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.cd-story {
  height: 40px;
  line-height: 20px;
  margin-bottom: 6px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.cd-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 10px;
}
.cd-hot { display: flex; align-items: center; gap: 4px; }
.cd-hot .mac-icon { font-size: 16px; color: var(--hot); }
.cd-hot-num { font-size: 12px; color: var(--hot); }
.cd-dialog {
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  border-radius: var(--radius-btn);
  background: var(--accent);
}

@media (any-hover: hover) and (min-width: 768px) {
  .card:hover .card-detail {
    opacity: 1;
    z-index: 110;
    width: 130%;
    height: 112%;
    top: -6%;
    left: -15%;
  }
  .card.pop-left:hover .card-detail { left: 0; }
  .card.pop-right:hover .card-detail { left: -30%; }
}
@media (hover: none), (pointer: coarse) {
  .card-detail-wrap { display: none; }
}

/* ========== 排行榜列（参考站「热播电影榜单」：.this-box.bj3.radius 深色圆角面板 → 斜体名次＋片名的列表） ========== */
/* 首页总榜、排行榜页、详情侧栏（同类热播／专题）共用 */
.rank-col {
  min-width: 0;
  padding: 0 18px 8px;
  border-radius: var(--radius);
  background: var(--bg-panel);
}
.rank-col-hd {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 12px 0;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-row);
}
.rank-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding-right: 10px;
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
  color: var(--text-title);
}
.rch-badge { font-size: 12px; padding: 0 6px; line-height: 20px; border-radius: var(--radius-sm); background: var(--fill-2); color: var(--text-2); }
.rank-col-more { flex-shrink: 0; margin-left: auto; font-size: 14px; line-height: 30px; color: var(--text-2); white-space: nowrap; }
.rank-col-more:hover { color: var(--link-hover); }

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

.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-li { border-bottom: 1px solid var(--border-row); }   /* .vod-link.b-b */
.rank-li:last-child { border-bottom: 0; }
.rank-li-inner {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 6px 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-1);
}
.rank-li-inner:hover { color: var(--accent); }
/* 名次：参考站 .vod-on-e-styles 20px 粗斜体，前三名彩色、其余 #A9A9AC */
.rl-num {
  flex-shrink: 0;
  width: 30px;
  margin-right: 8px;
  font-size: 20px;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  color: var(--text-2);
  text-align: center;
}
/* 榜首已在 .rank-top1，列表从第 2 名起：第 1、2 项就是第 2、3 名 */
.rank-list > li:nth-child(1) .rl-num { color: var(--rank-2); }
.rank-list > li:nth-child(2) .rl-num { color: var(--rank-3); }
.rl-name { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rl-hits,
.rl-remarks {
  flex-shrink: 0;
  max-width: 45%;
  margin-left: 10px;
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rl-hits { color: var(--hot); }
.rl-hits .mac-icon { font-size: 12px; color: var(--hot); }

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

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

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

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

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

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

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

.modal-box--confirm { width: 300px; text-align: center; }
.modal-box--confirm .modal-title { margin-bottom: 22px; }
.modal-confirm-actions { display: flex; flex-direction: column; gap: 10px; }
.modal-submit--danger { display: block; background: var(--accent-2); }
.modal-submit--danger:hover { background: var(--accent-2-alt); }
.modal-cancel {
  width: 100%;
  padding: 13px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}
.modal-cancel:hover { color: var(--text-1); border-color: var(--accent); }
/* ========== 留言（共用） ========== */
.comment-section { margin-bottom: 32px; }
.gbook-count { font-size: 13px; font-weight: 400; color: var(--text-3); margin-left: 6px; }
/* 留言列表（.gbook-list／-item／-avatar／-body／-time／-content／-reply）只用在 gbook/index，
   样式单一来源在 gbook.css；这里原本有一份会被 gbook.css 覆盖、又漏出 border-bottom 的旧副本，已移除（2026-09-30） */
.gbook-form { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.gbook-form-title { font-size: 14px; font-weight: 600; color: var(--text-1); margin-bottom: 12px; }
.gbook-textarea {
  width: 100%; padding: 10px 12px;
  background: var(--bg-elevated); border: 1px solid var(--border-2);
  border-radius: var(--radius-sm); color: var(--text-1); font-size: 13px;
  font-family: inherit; resize: vertical; outline: none; line-height: 1.6;
  transition: border-color 0.2s; display: block; margin-bottom: 10px;
}
.gbook-textarea:focus { border-color: var(--accent); }
.gbook-textarea::placeholder { color: var(--text-3); }
.gbook-form-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.gbook-chars { font-size: 12px; color: var(--text-3); flex-shrink: 0; }
.gbook-chars em { font-style: normal; color: var(--accent); }
.gbook-verify-wrap { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: flex-end; flex-wrap: wrap; }
.gbook-captcha-img { height: 36px; border-radius: 4px; cursor: pointer; vertical-align: middle; }
.gbook-input {
  padding: 8px 12px; background: var(--bg-elevated); border: 1px solid var(--border-2);
  border-radius: var(--radius-sm); color: var(--text-1); font-size: 13px; outline: none; transition: border-color 0.2s;
}
.gbook-input:focus { border-color: var(--accent); }
.gbook-input::placeholder { color: var(--text-3); }
.gbook-input--verify { width: 88px; }
.gbook-submit-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 24px; background: var(--accent-2); color: #fff;
  border: none; border-radius: var(--radius-pill); font-size: 13px; font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: background 0.2s;
}
.gbook-submit-btn:hover { background: var(--accent-2-alt); }
.rank-col--topic { margin-top: 16px; }
.rct-list { list-style: none; padding: 6px 12px 10px; display: flex; flex-direction: column; gap: 10px; }
.rct-link { display: flex; align-items: center; gap: 10px; }
.rct-thumb {
  flex-shrink: 0; width: 56px; height: 36px;
  border-radius: var(--radius-sm); overflow: hidden;
  background: var(--bg-elevated) url("../img/load.gif") no-repeat center/cover;
}
.rct-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rct-name { flex: 1; min-width: 0; font-size: 13px; color: var(--text-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rct-link:hover .rct-name { color: var(--accent); }

/* ========== 资讯卡／专题卡：参考站没有这两块，依它的卡片语言延伸（圆角 5 海报＋下方标题，无外框） ========== */
.art-grid,
.topic-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--grid-gap-y) var(--grid-gap-x);
}
.art-grid > .art-grid-item,
.topic-grid > .topic-grid-item { display: flex; min-width: 0; }
.art-grid > .art-grid-item > .art-card,
.topic-grid > .topic-grid-item > .topic-card { flex: 1; min-width: 0; }

.art-card,
.topic-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--text-1);
}
.art-card-thumb,
.topic-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-thumb);
  background: var(--bg-card) url("../img/load.gif") no-repeat center/cover;
}
.art-card-thumb img,
.topic-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.art-card-nopic { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 36px; color: var(--text-3); }
.art-card-cat {
  position: absolute;
  top: 7px;
  left: 9px;
  padding: 0 5px;
  border-radius: var(--radius-sm);
  background: var(--badge);
  color: #fff;
  font-size: 12px;
  line-height: 20px;
}
.art-card-body,
.topic-card-body { padding-top: 10px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.art-card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  color: var(--text-1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.art-card-date { display: block; font-size: 12px; color: var(--text-2); }
.art-card:hover .art-card-title,
.topic-card:hover .topic-card-title { color: var(--link-hover); }

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

/* ========== 分页（参考站 .page-link：pill 36 高、圆角 20、#0A0C0F 底、12px；当前页主色） ========== */
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; padding: 20px 0 30px; }
.pagination ul,
.pagination ol { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.pg-btn,
.pg-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  color: var(--text-1);
  font-size: 12px;
  transition: background-color 0.2s, color 0.2s;
}
.pg-btn:hover,
.pg-num:hover { color: var(--accent); }
.pg-num.is-active,
.pg-num[aria-current] { background: var(--accent); color: #fff; }
.pg-info { font-size: 12px; color: var(--text-3); margin-left: 12px; }

/* ========== 页脚（参考站 footer.footer：置中、上方留 40、次要文字色） ========== */
.site-footer {
  margin-top: 40px;
  padding: 30px var(--page-pad) 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
  font-size: 12px;
  line-height: 25px;
  color: var(--text-2);
  text-align: center;
}
.site-footer > p { max-width: calc(var(--content-max) + var(--page-pad) * 2); margin: 0 auto; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 15px;
}
.footer-links a { color: var(--text-2); }
.footer-links a:hover { color: var(--accent); }
.section .footer-links { justify-content: flex-start; }   /* 首页「友情链接」区块靠左 */
.section .footer-links a { color: var(--text-1); line-height: 30px; }
.footer-bottom-bar { color: var(--text-2); }

/* ========== 右侧悬浮钮（参考站 .lang-bnt / .top：34×34 圆形 #0A0C0F、间距 8；回到顶部主色） ========== */
.fab-group {
  position: fixed;
  right: var(--fab-right);
  bottom: var(--fab-bottom);
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 8px;
  user-select: none;
}
.fab-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--fab-w);
  height: var(--fab-w);
  border-radius: 50%;
  background: var(--fab-bg);
  color: var(--fab-color);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  font-size: 16px;
  cursor: pointer;
}
.fab-btn .mac-icon { font-size: 16px; }
.fab-btn:hover { color: var(--accent); }
.fab-btn--top { display: none; background: var(--fab-top-bg); color: #fff; }
.fab-btn--top.is-visible { display: flex; }
.fab-btn--top:hover { color: #fff; background: var(--accent-hover); }

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

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

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

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

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

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

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

/* ========== 「频道」下拉（768–1023；深色面板＋pill 按钮格，当前项主色） ========== */
.tb-channel { position: relative; display: none; height: 100%; }

.mob-nav-overlay {
  display: none;
  position: fixed;
  inset: var(--topbar-h) 0 0 0;
  z-index: 997;
  background: transparent;
}
.mob-nav-overlay.is-open { display: block; }

.mob-nav-drawer {
  position: absolute;
  top: 100%;
  /* 从「频道」钮左缘往右展开。原本以按钮为中心（left:50% − 250），按钮靠画面左侧（≈x150），
     平板时左边约 100px 跑出画面外（2026-10-01 修正）；max-width 防窄平板右侧超出 */
  left: 0;
  z-index: 1001;
  width: 500px;
  max-width: calc(100vw - 20px);
  padding: 10px;
  background: var(--bg-drop);
  border-radius: var(--radius);
  box-shadow: var(--shadow-drop);
  /* 收起时 visibility:hidden：不只是看不到，也不能被 Tab 聚焦（a11y） */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0s linear 0.2s;
}
.mob-nav-drawer.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

.mnd-header { display: none; }
.mnd-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);   /* col-sm-5 */
  gap: 12px;
  margin: 0;
  padding: 6px;
  list-style: none;
}
.mnd-nav > li { min-width: 0; }
.mnd-item {
  display: block;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--btn-grad);
  color: var(--btn-text);
  font-size: 14px;
  line-height: 32px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mnd-item:hover { color: var(--accent); }
.mnd-item.is-active { background: var(--accent); color: #fff; font-weight: 700; }
.mnd-item .mac-icon { display: none; }

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

/* ========== 响应式 ========== */
@media (max-width: 1199px) {
  .tb-nav-list > li { margin-left: 20px; }
  .topbar-right > * { margin-left: 20px; }
}

@media (max-width: 1023px) {
  /* 平板 768–1023：整排导航收成「频道 ⌄」下拉（手机 ≤767 改回参考站的双层顶栏，见下方） */
  .topbar-inner .tb-nav { display: none; }
  .topbar-inner .tb-channel { display: block; }
  .topbar-inner .hamburger-btn { display: inline-flex; }

  /* 平板影视卡欄數改在上方 ≤1199 的规则（甲方基准 6／4／3），这里不再重复 */
  .art-grid,
  .topic-grid { grid-template-columns: repeat(4, 1fr); }
  .actor-row { grid-template-columns: repeat(6, 1fr); }
  .section .rank-grid--home { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  /* 手机顶栏一层 52：logo ／ 搜索 · 播放记录 · ☰。分类收进右侧滑出的整高抽屉
     （使用者 2026-10-02 定案；参考站手机是第二层横滑分类，刻意不照做）。
     ⚠️ 选择器多带 .topbar-inner 一层，压过上方 ≤1023 的规则（§17.50） */
  :root { --topbar-h: 52px; }
  .brand-logo-img { height: 38px; max-width: 120px; }
  .topbar-right > * { margin-left: 18px; }
  .tb-action { font-size: 22px; }
  .tb-action-label { display: none; }
  .topbar-inner .topbar-right { order: 1; }
  .topbar-inner .tb-channel { display: flex; order: 2; margin-left: 18px; }
  .topbar-inner .hamburger-btn { margin-left: 0; font-size: 24px; color: rgba(255, 255, 255, 0.6); }
  .topbar-inner .hamburger-btn .mac-icon { font-size: 24px; }
  .hamburger-btn .hb-label,
  .hamburger-btn .hb-caret { display: none; }
  .hamburger-btn .hb-menu { display: inline-flex; }

  /* 抽屉：右侧整高、宽 min(300, 82vw)，平时推到画面外并 visibility:hidden（不可 Tab、不占横向捲动） */
  .topbar-inner .mob-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(300px, 82vw);
    max-width: none;
    padding: 0;
    border-radius: 0;
    overflow-y: auto;
    transform: translateX(100%);
    opacity: 1;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.5);
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
  }
  .topbar-inner .mob-nav-drawer.is-open { transform: none; transition-delay: 0s; }
  .mob-nav-overlay { inset: 0; z-index: 998; background: rgba(0, 0, 0, 0.6); }

  .mnd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    padding: 0 8px 0 20px;
    border-bottom: 1px solid var(--border-row);
  }
  .mnd-title { font-size: 16px; font-weight: 700; color: var(--text-1); }
  .mnd-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 20px;
    color: var(--text-2);
  }
  .mnd-close:hover { color: var(--text-1); }
  .topbar-inner .mnd-nav { grid-template-columns: 1fr; gap: 0; padding: 8px 0; }
  .topbar-inner .mnd-item {
    padding: 0 20px;
    border-radius: 0;
    background: none;
    font-size: 15px;
    line-height: 48px;
    text-align: left;
  }
  .topbar-inner .mnd-item.is-active {
    background: var(--accent-light);
    color: var(--accent);
    box-shadow: inset 3px 0 0 var(--accent);
  }
  .search-overlay-inner { margin-top: 0; border-radius: 0 0 var(--radius) var(--radius); padding: 12px; }

  .section-title,
  .rank-col-title { font-size: 18px; }
  .section-header { min-height: 36px; margin-bottom: 8px; }
  .section-title,
  .section-more-pill,
  .section-more { line-height: 36px; }
  .section-more-pill,
  .section-more { margin-left: auto; }
  .section-subcats,
  .sh-dayrank { 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, 1fr); }   /* col-xs-3 */
  .art-grid,
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .actor-row { grid-template-columns: repeat(4, 1fr); }
  .section .rank-grid--home { grid-template-columns: 1fr; }

  /* 手机：标题 14px、主演行隐藏（参考站手机卡片只有片名） */
  :root { --card-meta-h: 30px; }
  .card-title { font-size: 14px; }
  .card-tags { display: none; }
  .card-badge { padding: 14px 6px 4px; font-size: 11px; }

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

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

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


.mac_pop_bg { background: rgba(0,0,0,0.5) !important; }
.mac_pop { background: var(--bg-card) !important; border: 1px solid var(--border) !important; border-radius: var(--radius) !important; box-shadow: 0 20px 60px rgba(0,0,0,0.3) !important; padding: 0 !important; display: flex !important; flex-direction: column !important; overflow: hidden !important; }
.mac_pop .pop_top { display: flex !important; align-items: center !important; justify-content: space-between !important; height: auto !important; padding: 14px 16px !important; background: var(--bg-elevated) !important; border-bottom: 1px solid var(--border) !important; flex-shrink: 0 !important; }
.mac_pop .pop_top h2 { font-size: 15px !important; font-weight: 600 !important; color: var(--text-1) !important; margin: 0 !important; line-height: 1 !important; float: none !important; }
.mac_pop span.pop_close { float: none !important; width: 28px !important; height: 28px !important; font-size: 16px !important; text-indent: 0 !important; background: none !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; border-radius: 50% !important; color: var(--text-3) !important; cursor: pointer !important; transition: color 0.2s, background 0.2s !important; line-height: 1 !important; }
.mac_pop span.pop_close:hover { color: var(--text-1) !important; background: var(--bg-base) !important; }
.mac_pop .pop_content { flex: 1 !important; overflow-y: auto !important; }
.mac_pop_msg_bg { background: rgba(0,0,0,0.2) !important; }
.mac_pop_msg { background: var(--bg-card) !important; border: 1px solid var(--border) !important; border-radius: var(--radius-sm) !important; box-shadow: 0 4px 24px rgba(0,0,0,0.25) !important; padding: 10px 20px !important; }
.mac_pop_msg .pop-msg { color: var(--text-1) !important; font-size: 13px !important; }
.content-block.will-observe {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.content-block.is-visible {
  opacity: 1;
  transform: none;
}

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

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

/* ---------- 面包屑：「当前位置：首页 › 分类 › 片名」14px 次要文字色 ---------- */
.art-breadcrumb { font-size: 14px; line-height: 20px; color: var(--text-2); margin-bottom: 0; }
.art-breadcrumb ol::before { content: "当前位置："; color: var(--text-2); }
.art-breadcrumb a { color: var(--text-2); }
.art-breadcrumb a:hover { color: var(--accent); }
.bc-sep { display: inline-flex; color: var(--text-3); font-size: 12px; }
.bc-current { color: var(--text-1); }

/* ---------- 区块标题（详情类页）：24px 常规字重（参考站「资源列表／相关影片」 .title-a），无底线 ---------- */
.detail-section { margin-bottom: var(--section-gap); }
.detail-section-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 45px;
  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; color: var(--text-2); }
.detail-section-more:hover { color: var(--accent); }

/* ---------- 播放列表（widget/playlist；详情页与播放页共用） ---------- */
.playlist-section {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: var(--section-gap);
}
/* 参考站「资源列表」：标题一行（右侧排序），下一行线路 tab（.anthology-tab：选中主色＋2px 底线），再下面选集格。
   用 display:contents 把 .playlist-hd 的两个子元素摊进 flex，不改 widget 标记 */
.playlist-hd { display: contents; }
.playlist-title {
  order: 1;
  margin: 0;
  padding: 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 45px;
  color: var(--text-title);
}
.playlist-sources {
  order: 3;
  flex: 0 0 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  min-width: 0;
  margin-top: 12px;
  border-bottom: 1px solid var(--border-row);
}
.pl-source-tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 0 4px;
  margin-bottom: -1px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  cursor: pointer;
}
.pl-source-tab .mac-icon { font-size: 14px; }
.pl-source-tab:hover { color: var(--accent); }
.pl-source-tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.pl-sort-btn {
  order: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 0;
  line-height: 45px;
  font-size: 14px;
  color: var(--text-2);
  background: none;
  border: 0;
  cursor: pointer;
}
.pl-sort-btn:hover { color: var(--accent); }
.playlist-sources::after { content: none; }
.playlist-empty,
.playlist-panel {
  order: 4;
  flex: 0 0 100%;
  min-width: 0;
  padding-top: 16px;
}
.playlist-empty { padding: 30px 0; text-align: center; color: var(--text-3); }
.playlist-panel { display: none; }
.playlist-panel.is-active { display: block; }

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

/* 集数按钮：参考站 .box.border（#0A0C0F 底、1px #25252B 框、圆角 12、高 50），当前集主色；格距 10 */
.playlist-episodes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.playlist-episodes.is-wide { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.ep-item { min-width: 0; }
.episode-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 48px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text-1);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  transition: color 0.2s, border-color 0.2s;
}
.episode-btn:hover { color: var(--accent); border-color: var(--accent); }
.episode-btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.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 行（48 × 3 ＋ 间距 10 × 2） */
.playlist-episodes.episodes-collapsed { max-height: 164px; overflow: hidden; }
.episode-more-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 42px;
  margin-top: 12px;
  border-radius: var(--radius-btn);
  background: var(--btn-grad);
  color: var(--btn-text);
  font-size: 14px;
  text-align: center;
}
.episode-more-trigger:hover { color: var(--accent); }

@media (max-width: 767px) {
  .playlist-title { font-size: 18px; }
  .playlist-title,
  .pl-sort-btn { line-height: 36px; }
  .playlist-sources { margin-top: 6px; gap: 0 14px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .pl-source-tab { white-space: nowrap; flex-shrink: 0; }
  .playlist-episodes { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
  .episode-btn { height: 40px; font-size: 13px; border-radius: 8px; }
  /* 收起：3 行（40 × 3 ＋ 8 × 2） */
  .playlist-episodes.episodes-collapsed { max-height: 136px; }
  .ep-playing { display: none; }   /* 窄格子里会把集名挤成「第0…」，当前集已有橙底标示 */
}

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

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

.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: #fff;
  font-size: 16px;
}
.cmt-body { flex: 1; min-width: 0; }
.cmt-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.cmt-name,
.cmt-child-name { font-size: 14px; color: var(--text-1); }
.cmt-time { font-size: 12px; color: var(--text-3); }
.cmt-content { font-size: 14px; line-height: 1.7; color: var(--text-2); word-break: break-all; }
.cmt-child-item { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: var(--bg-card); }
.cmt-child-item .cmt-time { margin-left: 8px; }
.cmt-actions { display: flex; gap: 16px; margin-top: 8px; }
.cmt-action-link { padding: 0; font-size: 12px; color: var(--text-3); background: none; border: 0; cursor: pointer; }
.cmt-action-link:hover { color: var(--accent); }
.cmt-paging { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 20px 0 0; }
.cmt-page-btn {
  min-width: 46px;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  color: var(--text-1);
  font-size: 12px;
  cursor: pointer;
}
.cmt-page-btn.is-active { background: var(--accent); color: #fff; }
.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: 400; 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);
  color: #fff;
  font-size: 16px;
}
.spi:hover { color: var(--accent); }
.share-popup-hint { margin-bottom: 8px; font-size: 12px; color: var(--text-2); }
.share-popup-link {
  display: block;
  width: 100%;
  height: 60px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-input);
  font: inherit;
  font-size: 12px;
  resize: none;
  outline: none;
}
.share-popup-link:focus { border-color: var(--accent); }
.share-popup-copy {
  display: block;
  width: 100%;
  height: 36px;
  margin-top: 10px;
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

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

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