/* ==========================================
   tp29_white_black — 视觉参考：小宝影院 xiaobaotv.com（MacCMS mytheme / MYUI 版式）
   默认白色皮肤（参考站 mytheme-color0），右下角「切换皮肤」换深色皮肤（mytheme-color2）。
   所有数值取自参考站 getComputedStyle 实测，量测记录见 template/log/tp29_white_black__TODO.md。
   两套皮肤只换 :root 变量，组件里不写死色码。
   ========================================== */
:root {
  /* ---- 白色皮肤（color0） ---- */
  --bg-base:       #FFFFFF;
  --bg-deep:       #F8F8F8;   /* .myui-foot */
  --bg-topbar:     #FFFFFF;   /* .myui-header__top */
  --bg-card:       #F5F5F5;   /* .myui-panel-bg2 / .myui-vodlist__bg */
  --bg-elevated:   #EEEEEE;
  --bg-panel:      #FFFFFF;   /* .myui-panel-bg */
  --bg-input:      #F5F5F5;   /* 搜索框：两套皮肤都是浅灰（参考站 color2 也没改） */
  --bg-drop:       #FFFFFF;   /* .dropdown-box .item */

  --accent:        #FF9900;   /* .btn-warm / .pic-tag .tag / .nav-tabs 选中 */
  --accent-end:    #FF9F16;
  --accent-grad:   linear-gradient(to right, #FF9900 0, #FF9F16 100%);
  --accent-hover:  #FF9F16;
  --on-accent:     #FFFFFF;
  --accent-dot:    #FF9900;
  --accent-ico:    #FF9900;
  --accent-light:  rgba(255, 153, 0, 0.10);
  --accent-soft:   rgba(255, 153, 0, 0.18);

  --nav-active:    #E3A9A1;   /* .myui-header__menu > li.active > a、轮播标题选中 */
  --link-hover:    #6495ED;   /* 参考站 a:hover { color: cornflowerblue } */

  --btn-grad:      linear-gradient(to right, #EEEEEE 0, #F6F6F6 100%);   /* .btn-default */
  --btn-text:      #333333;
  --btn-danger:    linear-gradient(to right, #FC000C 0, #F9444D 100%);

  --accent-2:      #FF7701;
  --accent-2-alt:  #FF4A4A;
  --hot:           #FF4A4A;
  --badge:         #FF9900;

  --rank-1:        #FF4A4A;   /* .badge-first */
  --rank-2:        #FF7701;   /* .badge-second */
  --rank-3:        #FFB400;   /* .badge-third */

  --text-1:        #333333;
  --text-2:        #666666;   /* .text-muted */
  --text-3:        #999999;
  --text-nav:      #333333;
  --text-title:    #333333;

  --fill-1:        #F5F5F5;
  --fill-2:        #EEEEEE;

  --border:        #EEEEEE;
  --border-2:      #DDDDDD;

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

  --shadow-header: 0 2px 5px rgba(0, 0, 0, 0.1);
  --shadow-thumb:  0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-drop:   0 2px 5px rgba(0, 0, 0, 0.1);
  --shadow-panel:  0 4px 16px rgba(0, 0, 0, 0.18);

  /* 播放区卡片：跟着皮肤走（白皮浅灰面板、深皮深色面板），影片本身固定黑底 */
  --player-panel:  var(--bg-card);
  --player-hover:  var(--bg-base);
  --player-scroll: #DDDDDD;

  --fab-bg:        #FFFFFF;
  --fab-color:     #333333;
  --fab-top-bg:    rgba(0, 0, 0, 0.6);

  --header-position: fixed;

  --topbar-h:      60px;
  /* 内容边缘 = .container 内距 + 格子内距：≥1200 为 120 + 10 = 130（参考站卡片从 x=130 起） */
  --page-pad:      130px;
  --cell:          10px;      /* [class*=col-] { padding: 10px } → 卡片间距 20 */
  --hdr-x:         120px;     /* 顶栏左右：≥1501 为 .container 120 */
  --page-pad-r:    var(--page-pad);

  --fab-right:     20px;      /* .myui-extra { right:20px; bottom:30px } */
  --fab-bottom:    30px;
  --fab-w:         50px;

  --section-gap:   24px;      /* 模块间距（skill 强制20 统一 24；参考站 25） */

  --gap:           20px;
  --grid-gap-y:    20px;
  --grid-gap-x:    20px;

  --radius:        5px;       /* .myui-vodlist__thumb / .btn / .myui-panel */
  --radius-sm:     2px;       /* .pic-tag .tag / .badge */
  --radius-btn:    5px;
  --radius-lg:     5px;
  --radius-pill:   18px;      /* 搜索框 */

  --content-max:   1660px;    /* .container max-width 1920 − 左右 120 − 格子 10×2；配合 page-pad 130 → 1920 封顶 */

  --poster-ratio:  2 / 3;     /* padding-top: 150% */
  --card-meta-h:   54px;
}

/* ---- 深色皮肤（color2）：html[data-theme="dark"] 时生效。
   ⚠️ 目前没有入口——右下角「切换皮肤」钮已换成「手机观看」（使用者 2026-09-24）。
   这组变数先保留，要恢复切换只需加回按钮与写 data-theme 的脚本。 ---- */
:root[data-theme="dark"] {
  --bg-base:       #292838;
  --bg-deep:       #292838;
  --bg-topbar:     #22212F;
  --bg-card:       #22212F;
  --bg-elevated:   #33324A;
  --bg-panel:      #292838;
  --bg-drop:       #22212F;

  --text-1:        #DDDDDD;
  --text-2:        #999999;
  --text-3:        #7F7E8C;
  --text-nav:      #FFFFFF;
  --text-title:    #DDDDDD;

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

  --border:        #383737;
  --border-2:      #45445A;

  --shadow-drop:   0 2px 8px rgba(0, 0, 0, 0.35);

  --fab-bg:        #22212F;
  --fab-color:     #DDDDDD;

  --player-hover:  rgba(255, 255, 255, 0.05);
  --player-scroll: #45445A;
}

@media (max-width: 1500px) {
  :root { --hdr-x: 140px; }    /* .myui-header__top 另加 padding 0 20px */
}
@media (max-width: 1199px) {
  :root {
    --hdr-x: 20px;
    --page-pad: 10px;          /* <1200 .container 无内距，只剩格子 10px */
    --page-pad-r: var(--page-pad);
  }
}
@media (max-width: 767px) {
  :root {
    --cell: 5px;               /* [class*=col-] { padding: 5px } */
    --page-pad: 5px;
    --hdr-x: 10px;
    --grid-gap-y: 10px;
    --grid-gap-x: 10px;
    --gap: 10px;
    --section-gap: 16px;
    --fab-w: 35px;
  }
}


*, *::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、行高 140%、"Microsoft YaHei" 字族 */
body {
  font-family: "Microsoft YaHei", 微软雅黑, STHeiti, "WenQuanYi Micro Hei", SimSun, 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;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.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: 40px;
  width: auto;
  max-width: 162px;  /* .myui-header__logo img { max-width: 162px } */
  object-fit: contain;
}

/* ========== 顶栏 ========== */
.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);
}

.topbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
}

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

/* ---------- 分类导航：li 间距 35（≤1500 为 20）、16px、行高 60 ---------- */
.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: 35px;
}
.tb-nav-item {
  display: flex;
  align-items: center;
  height: var(--topbar-h);
  font-size: 16px;
  line-height: var(--topbar-h);
  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); }

.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 取代整排导航；参考站 .dropdown-hover「频道 ⌄」） ---------- */
.hamburger-btn {
  display: none;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  height: var(--topbar-h);
  margin-left: 20px;
  font-size: 16px;
  color: var(--text-nav);
  white-space: nowrap;
}
.hamburger-btn .mac-icon { font-size: 14px; transition: transform 0.2s; }
.hamburger-btn:hover { color: var(--link-hover); }
.hamburger-btn.is-open .mac-icon { transform: rotate(180deg); }

/* ---------- 顶栏搜索框：宽 260（≤1500 为 200）、高 35、圆角 18、#F5F5F5 ---------- */
.tb-search {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 260px;
  height: 35px;
  margin-left: 50px;
  border-radius: var(--radius-pill);
  background: var(--bg-input);
  overflow: visible;
}
.tb-search #searchInputTop {
  width: 100%;
  height: 100%;
  padding: 0 34px 0 12px;
  background: none;
  border: none;
  outline: none;
  color: #999;
  font-size: 12px;
  border-radius: var(--radius-pill);
}
.tb-search #searchInputTop::placeholder { color: #999; }
.tb-search:focus-within { box-shadow: inset 0 1px 1px rgba(255, 136, 0, 0.075), 0 0 8px rgba(255, 136, 0, 0.6); }

.tb-search-submit {
  position: absolute;
  top: 0;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 14px;
  color: #333;
}
.tb-search-submit:hover { color: var(--accent); }

/* ---------- 右侧图标：24px、间距 30（≤1500 为 20）、只有图标 ---------- */
.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;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 24px;
  line-height: 1;
  color: var(--text-nav);
  transition: color 0.2s;
}
.tb-action:hover,
.tb-action.is-active { color: var(--link-hover); }
.tb-action-label { display: none; }

.tb-icon-btn {
  display: none;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 20px;
  color: var(--text-nav);
}
.tb-icon-btn:hover { color: var(--link-hover); }

/* ---------- 手机搜索弹层（≤767 顶栏收起搜索框时由放大镜打开） ---------- */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  align-items: flex-start;
  justify-content: center;
}
.search-overlay.is-open { display: flex; }

.search-overlay-inner {
  width: 100%;
  padding: 12px 10px;
  background: var(--bg-topbar);
  box-shadow: var(--shadow-header);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 4px 0 12px;
  border-radius: 16px;
  background: var(--bg-input);
}
.search-bar:focus-within { box-shadow: 0 0 8px rgba(255, 136, 0, 0.6); }
.search-bar-icon { flex-shrink: 0; font-size: 14px; color: #999; }

#searchInput {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: #333;
  font-size: 13px;
}
#searchInput::placeholder { color: #999; }

.search-submit-btn {
  flex-shrink: 0;
  height: 28px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--accent-grad);
  color: var(--on-accent);
  font-size: 12px;
}
.search-submit-btn:hover { box-shadow: 0 5px 8px rgba(0, 0, 0, 0.1); }

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

/* ========== 内容区：顶栏 fixed，body 让出 60px（参考站 body.active { padding-top: 60px }） ========== */
.page-content {
  flex: 1;
  padding-top: var(--topbar-h);
}

/* ========== 首页 Hero：满版大图 ＋ 右侧文字索引（参考站 #home_slide .carousel-indicators-text） ========== */
.hero-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 672;   /* 实测 1425 × 499 */
  max-height: 672px;
  overflow: hidden;
  background: #16161A;
  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 center;
  background-size: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero-layer.is-active { opacity: 1; }

/* 参考站没有底部渐层；这里只留一层很淡的，让左下角的按钮压在亮图上仍看得见 */
.hero-fade-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

/* 整张图可点进详情（参考站整张 <a href="detail">）；hero.js 换页时更新 href */
.hero-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

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

/* 左下角：片名＋两颗按钮（skill 要求「立即播放→播放页／详情→详情页」，
   参考站没有这组按钮，按钮外观沿用它的 .btn-warm / .btn-default） */
.hero-info {
  position: absolute;
  left: var(--page-pad);
  bottom: 40px;
  max-width: 520px;
}

.hero-title {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 30px;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-sub {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  pointer-events: auto;
}
.hero-play,
.hero-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 36px;
  padding: 0 30px;
  border-radius: var(--radius-btn);
  font-size: 12px;
  transition: box-shadow 0.2s;
}
.hero-play { background: var(--accent-grad); color: #fff; }
.hero-play .mac-icon { font-size: 12px; }
.hero-more { background: var(--btn-grad); color: var(--btn-text); }
.hero-play:hover,
.hero-more:hover { box-shadow: 0 5px 8px rgba(0, 0, 0, 0.1); }
.hero-play:hover { color: #fff; }
.hero-more:hover { color: var(--btn-text); }

/* 右侧文字索引：right 80、宽 260、上下 padding 50、右对齐、深色竖向渐层 */
.hero-dots {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 80px;
  width: 260px;
  padding: 50px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: right;
  background-image: linear-gradient(180deg, rgba(22, 22, 26, 0), rgba(22, 22, 26, 0.5) 15%, rgba(22, 22, 26, 0.8) 35%, rgba(22, 22, 26, 0.8) 65%, rgba(22, 22, 26, 0.5) 85%, rgba(22, 22, 26, 0));
  pointer-events: auto;
}
.hero-dot {
  display: block;
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: none;
  text-align: right;
  cursor: pointer;
}
.hero-dot:last-child { border-bottom: 0; }
.hd-title {
  display: block;
  font-size: 18px;
  line-height: 1.4;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}
.hd-text {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.4;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-dot.is-active .hd-title,
.hero-dot:hover .hd-title { color: var(--nav-active); }

/* 右侧索引已有片名，≥1200 不重复显示左下角的片名 */
@media (min-width: 1200px) {
  .hero-info .hero-title,
  .hero-info .hero-sub { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
}

/* 左右切换：参考站 .carousel-control（50 圆钮 rgba(0,0,0,.6)、opacity .5 → hover 1） */
.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-top: -25px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s;
}
.hero-nav .mac-icon { font-size: 26px; }
.hero-nav--prev { left: 30px; }
.hero-nav--next { right: 380px; }   /* 让开右侧 260 宽的文字索引 */
.hero-container:hover .hero-nav { opacity: 0.5; }
.hero-container .hero-nav:hover { opacity: 1; }

.hero--single .hero-nav { 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; }

/* ≤1199：参考站隐藏文字索引（hidden-md）→ 改成底部小横条（.carousel-indicators-dots 15×3、#FF9900、opacity .25） */
@media (max-width: 1199px) {
  .hero-dots {
    top: auto;
    bottom: 14px;
    right: 0;
    left: 0;
    width: auto;
    padding: 0;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    background: none;
    pointer-events: none;
  }
  .hero-dot {
    width: 15px;
    height: 3px;
    padding: 0;
    border: 0;
    background: var(--accent-dot);
    opacity: 0.25;
    pointer-events: auto;
  }
  .hero-dot.is-active { opacity: 1; }
  .hero-dot .hd-title,
  .hero-dot .hd-text { display: none; }
  .hero-nav--next { right: 30px; }
  .hero-info { bottom: 30px; }
}
@media (max-width: 767px) {
  /* 移动端按横幅比例定高（16:10，与 tp26 定案相同，不用桌面比例裁切） */
  .hero-container { aspect-ratio: 16 / 10; max-height: none; margin-bottom: 10px; }
  .hero-info { left: 10px; right: 10px; bottom: 22px; max-width: none; }
  .hero-title { font-size: 16px; line-height: 22px; }
  .hero-sub { display: none; }
  .hero-nav { display: none; }
  /* 手机端隐藏两颗按钮（空间不够）。
     ⚠️ CLAUDE.md §17.36：#heroLink 是 inset:0 / z-index:2 的全覆盖连结，
     hero.js 换页时会把它设成该片的详情页，整张图仍可点进去——不要连它一起收掉。 */
  .hero-actions { display: none; }
}



/* ========== 区块（参考站 .myui-panel：标题 24px 常规字重、「更多 ›」紧贴标题、模块间距 24） ========== */
.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: 30px;
  padding-top: 10px;          /* .myui-panel_hd { padding: 10px } */
  margin-bottom: 20px;        /* 标题底 → 海报顶 = 10 ＋ 格子 10 */
}

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

.section-icon { display: none; }

/* 「更多 ›」：参考站 <a class="more text-muted">更多<i class="fa-angle-right"></i></a>，紧跟标题 */
.section-more-pill,
.section-more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  font-size: 14px;
  line-height: 30px;
  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); }

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

/* 首页「热播推荐」一行 8 张（参考站「大片推荐」col-lg-8），3 广告 + 21 = 24 = 3 行 */
.section--hot .vod-grid--hot8 { grid-template-columns: repeat(8, 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);
}

/* ---------- 卡片（参考站 .myui-vodlist__box） ---------- */
.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;
  box-shadow: var(--shadow-thumb);
  background: var(--bg-card) url("../img/load.gif") no-repeat center/cover;
}
.card-cover.img-loaded { background-image: none; }
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 左上年份标签：.pic-tag-top { top:5; left:5 } ＋ .tag { margin:0 4px; padding:0 5px; radius 2; #FF9900 } */
.card-year {
  position: absolute;
  top: 7px;
  left: 9px;
  z-index: 2;
  padding: 0 5px;
  border-radius: var(--radius-sm);
  background: var(--badge);
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  white-space: nowrap;
}

/* 右下状态：.pic-text { bottom:0; padding:5px 10px; 12px; text-right; 黑色渐层 } */
.card-badge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 20px;
  color: #fff;
  text-align: right;
  background-repeat: no-repeat;
  background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 标题 15px 粗体（.myui-vodlist__detail .title { margin-top:10; 15px; 700 }）＋ 主演 12px #666 */
.card-meta {
  display: block;
  min-height: var(--card-meta-h);
  padding-top: 10px;
}
.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;
}
.card-tags {
  margin-top: 5px;
  min-height: 19px;
  font-size: 12px;
  line-height: 19px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card:hover .card-title { color: var(--link-hover); }

/* ---------- hover 详情浮层（skill 强制 15：vod_card_popout ＋ vod_card.js 边缘翻转） ---------- */
.card-detail-wrap {
  width: 100%;
  height: 0;
}
.card-detail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: -1;
  border-radius: var(--radius);
  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: 3px 14px;
  font-size: 12px;
  color: #fff;
  border-radius: var(--radius-btn);
  background: var(--accent-grad);
}

@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; }
}

/* ========== 排行榜列（参考站「电影总榜单」：标题＋底线 → 榜首图文 → 带色块序号的文字列表） ========== */
/* 外框卡片（使用者 2026-09-24 要求：三栏并排时边界更清楚）。参考站本身无框，
   框线用全站 --border、圆角同海报 5；首页总榜、排行榜页、详情侧栏（同类热播／专题）共用 */
.rank-col {
  min-width: 0;
  padding: 0 15px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
}
.rank-col-hd {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 10px 0 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);   /* .bottom-line */
}
.rank-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding-right: 10px;
  font-size: 24px;
  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; font-size: 14px; line-height: 30px; color: var(--text-2); white-space: nowrap; }
.rank-col-more:hover { color: var(--link-hover); }

/* 榜首：左图（.myui-vodlist__media .thumb）右字 */
.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: 2 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-thumb);
  background: var(--bg-card) 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: 18px;
  font-weight: 400;
  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: none; }
.rank-li-inner {
  display: flex;
  align-items: center;
  padding: 10px 0;            /* .myui-vodlist__text li a { padding: 10px 0 } */
  font-size: 14px;
  line-height: 20px;
  color: var(--text-1);
}
.rank-li-inner:hover { color: var(--link-hover); }
.rl-num {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  border-radius: var(--radius-sm);
  background: var(--fill-2);
  color: var(--text-1);
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}
/* 榜首已在 .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; }
.rl-name { flex: 1; min-width: 0; 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 .mac-icon { font-size: 12px; color: var(--hot); }

.section .rank-grid--home {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap-y) var(--grid-gap-x);   /* 有外框后不需要 40 的留白隔开，与卡片栅格同一套间距 */
}

.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 { margin-bottom: 20px; }
.gbook-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.gbook-avatar {
  flex-shrink: 0; width: 36px; height: 36px;
  border-radius: 50%; background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 22px;
}
.gbook-body { flex: 1; min-width: 0; }
.gbook-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.gbook-name { font-size: 13px; font-weight: 600; color: var(--text-1); }
.gbook-time { font-size: 11px; color: var(--text-3); }
.gbook-content { font-size: 13px; color: var(--text-2); line-height: 1.7; word-break: break-all; }
.gbook-reply {
  margin-top: 8px; padding: 8px 12px;
  background: var(--bg-elevated); border-radius: var(--radius-sm);
  font-size: 12px; color: var(--text-2); display: flex; gap: 6px; align-items: flex-start;
}
.gbook-reply .mac-icon { flex-shrink: 0; color: var(--accent-2); margin-top: 1px; }
.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; }

/* ========== 分页（参考站 .myui-page：li 间距 10、.btn 5px 15px 12px 圆角 5、当前页 .btn-warm） ========== */
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; padding: 20px 0 30px; }
.pagination ul,
.pagination ol { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pg-btn,
.pg-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 37px;
  height: 30px;
  padding: 0 15px;
  border-radius: var(--radius-btn);
  background: var(--btn-grad);
  color: var(--btn-text);
  font-size: 12px;
  transition: box-shadow 0.2s;
}
.pg-btn:hover,
.pg-num:hover { color: var(--btn-text); box-shadow: 0 5px 8px rgba(0, 0, 0, 0.1); }
.pg-num.is-active,
.pg-num[aria-current] { background: var(--accent-grad); color: #fff; }
.pg-info { font-size: 12px; color: var(--text-3); margin-left: 12px; }

/* ========== 页脚（参考站 .myui-foot：#F8F8F8、上下 20、置中、行高 25） ========== */
.site-footer {
  margin-top: var(--section-gap);
  padding: 20px var(--page-pad);
  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(--link-hover); }
.section .footer-links { justify-content: flex-start; }   /* 首页「友情链接」区块：.myui-link__text 靠左 */
.section .footer-links a { color: var(--text-1); line-height: 30px; }
.footer-bottom-bar { color: var(--text-2); }

/* ========== 右下悬浮钮（参考站 .myui-extra：right 20 bottom 30、50×50 圆角 4、白底阴影；回到顶部半透明黑） ========== */
.fab-group {
  position: fixed;
  right: var(--fab-right);
  bottom: var(--fab-bottom);
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 15px;
  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: 4px;
  background: var(--fab-bg);
  color: var(--fab-color);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  font-size: 18px;
  cursor: pointer;
}
.fab-btn .mac-icon { font-size: 20px; }
.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; }

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

/* ========== 观看记录下拉（参考站 .dropdown-box .item：白底 260、padding 20、阴影） ========== */
.tb-hist-wrap { position: relative; display: flex; align-items: center; height: 100%; }

.hist-dropdown {
  position: absolute;
  top: 100%;
  right: -20px;
  width: 260px;
  padding: 20px;
  color: var(--text-1);
  background-color: var(--bg-drop);
  border-radius: var(--radius-sm);
  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(--link-hover); }
.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: red;                 /* 参考站「[清空]」.text-red */
  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; }

/* ========== 「频道」下拉（≤1023；参考站 .dropdown-box：白底按钮格，当前项 .btn-warm） ========== */
.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%;
  z-index: 1001;
  width: 500px;
  margin-left: -250px;
  padding: 10px;
  background: var(--bg-drop);
  border-radius: var(--radius-sm);
  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: 6px 5px;          /* .btn-sm.btn-block */
  border-radius: var(--radius-btn);
  background: var(--btn-grad);
  color: var(--btn-text);
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mnd-item:hover { color: var(--btn-text); box-shadow: 0 5px 8px rgba(0, 0, 0, 0.1); }
.mnd-item.is-active { background: var(--accent-grad); color: #fff; }
.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-sm);
  box-shadow: var(--shadow-drop);
  max-height: 60vh;
  overflow-y: auto;
  text-align: left;
}
.search-drop--overlay { position: relative; top: auto; margin-top: 10px; }
.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: red; 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: 1500px) {
  .tb-nav-list > li { margin-left: 20px; }
  .topbar-inner .tb-search { width: 200px; margin-left: 20px; }
  .topbar-right > * { margin-left: 20px; }
}

@media (max-width: 1199px) {
  .hero-nav { opacity: 0.5; }
}

@media (max-width: 1023px) {
  /* 参考站 ≤1023：整排导航收成「频道 ⌄」下拉（hidden-sm hidden-xs / visible-sm visible-xs） */
  .topbar-inner .tb-nav { display: none; }
  .topbar-inner .tb-channel { display: block; }
  .topbar-inner .hamburger-btn { display: inline-flex; }

  .vod-row,
  .vod-grid,
  .play-vod-grid,
  .detail-vod-grid,
  .td-vod-grid,
  .plot-related-grid,
  .section--hot .vod-grid--hot8,
  .vod-grid.vod-grid--c9 { grid-template-columns: repeat(4, 1fr); }   /* col-sm-4 */
  .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) {
  .brand-logo-img { height: 34px; max-width: 120px; }

  .topbar-inner .tb-search { display: none; }
  .topbar-inner .tb-icon-btn { display: flex; }
  .topbar-right > * { margin-left: 15px; }
  .tb-action { font-size: 20px; }

  .mob-nav-drawer { position: fixed; top: var(--topbar-h); left: 50%; width: 300px; margin-left: -150px; }
  .mnd-nav { grid-template-columns: repeat(3, 1fr); gap: 10px; }   /* col-xs-3 */

  .section-title,
  .rank-col-title { font-size: 18px; }
  .section-header { padding-top: 5px; margin-bottom: 10px; }
  .section-subcats { display: none; }

  .vod-row,
  .vod-grid,
  .play-vod-grid,
  .detail-vod-grid,
  .td-vod-grid,
  .plot-related-grid,
  .section--hot .vod-grid--hot8,
  .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; }

  /* 手机：标题 12px、主演行隐藏（参考站 .text hidden-xs） */
  :root { --card-meta-h: 30px; }
  .card-title { font-size: 12px; }
  .card-tags { display: none; }
  .card-year { top: 5px; left: 5px; font-size: 11px; line-height: 18px; }
  .card-badge { padding: 3px 6px; font-size: 11px; }

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

  .fab-group { gap: 8px; }
  .fab-btn .mac-icon { font-size: 16px; }
}

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


.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 #666 ---------- */
.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(--link-hover); }
.bc-sep { display: inline-flex; color: var(--text-3); font-size: 12px; }
.bc-current { color: var(--text-1); }

/* ---------- 区块标题（详情类页）：24px 常规字重 ＋ 底线（参考站 .myui-panel__head ＋ .bottom-line） ---------- */
.detail-section { margin-bottom: var(--section-gap); }
.detail-section-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 15px;
  padding: 10px 0;
  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; color: var(--text-2); }
.detail-section-more:hover { color: var(--link-hover); }

/* ---------- 播放列表（widget/playlist；详情页与播放页共用） ---------- */
.playlist-section {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: var(--section-gap);
}
/* 参考站把「播放地址」标题、线路 tab、排序钮排在同一行，下面一条底线：
   用 display:contents 把 .playlist-hd 的两个子元素摊进同一行，不改 widget 标记 */
.playlist-hd { display: contents; }
.playlist-title {
  order: 1;
  margin: 0;
  padding: 10px 10px 10px 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 30px;
  color: var(--text-title);
}
.playlist-sources {
  order: 2;
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0 30px;                 /* .nav-tabs > li { margin-left: 30px } */
  min-width: 0;
  padding-left: 20px;
}
.pl-source-tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 0 10px;
  margin-bottom: -1px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font-size: 14px;
  color: var(--text-1);
  cursor: pointer;
}
.pl-source-tab .mac-icon { display: none; }
.pl-source-tab:hover { color: var(--link-hover); }
.pl-source-tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.pl-sort-btn {
  order: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 0 10px;
  font-size: 14px;
  color: var(--text-1);
  background: none;
  border: 0;
  cursor: pointer;
}
.pl-sort-btn:hover { color: var(--link-hover); }
.playlist-sources::after { content: none; }
.playlist-empty,
.playlist-panel {
  order: 4;
  flex: 0 0 100%;
  min-width: 0;
  border-top: 1px solid var(--border);
  padding-top: 15px;
}
.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; }

/* 集数按钮：.btn.btn-default（渐层灰、12px、padding 8、圆角 5），当前集 .btn-warm；格子间距 20 */
.playlist-episodes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(69px, 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-btn);
  background: var(--btn-grad);
  color: var(--btn-text);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
}
.episode-btn:hover { color: var(--btn-text); box-shadow: 0 5px 8px rgba(0, 0, 0, 0.1); }
.episode-btn.is-active { background: var(--accent-grad); 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 行（36 × 3 ＋ 间距 20 × 2） */
.playlist-episodes.episodes-collapsed { max-height: 148px; overflow: hidden; }
.episode-more-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 36px;
  margin-top: 15px;
  border-radius: var(--radius-btn);
  background: var(--btn-grad);
  color: var(--btn-text);
  font-size: 12px;
  text-align: center;
}
.episode-more-trigger:hover { box-shadow: 0 5px 8px rgba(0, 0, 0, 0.1); }

@media (max-width: 767px) {
  .playlist-title { font-size: 18px; }
  .playlist-sources { flex: 0 0 100%; order: 3; padding: 10px 0 0; gap: 0 20px; overflow-x: auto; flex-wrap: nowrap; }
  .pl-source-tab { white-space: nowrap; }
  .pl-sort-btn { order: 2; margin-left: auto; }
  .playlist-episodes { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; }
  .playlist-episodes.episodes-collapsed { max-height: 128px; }
  .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(--link-hover); 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-btn);
  background: var(--bg-input);
  color: #333;
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
}
.cmt-textarea:focus { border-color: var(--accent); box-shadow: inset 0 1px 1px rgba(255, 136, 0, 0.075), 0 0 8px rgba(255, 136, 0, 0.6); }
.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: #333;
  font-size: 13px;
  outline: none;
}
.cmt-captcha-img { height: 34px; border-radius: var(--radius-sm); cursor: pointer; background: none; }
.cmt-form-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.cmt-remaining { font-size: 12px; color: var(--text-3); }
.cmt-remaining em { font-style: normal; color: var(--accent); }
.cmt-submit-btn {
  height: 36px;
  padding: 0 30px;
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--accent-grad);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}
.cmt-submit-btn:hover { box-shadow: 0 5px 8px rgba(0, 0, 0, 0.1); }

.cmt-list { margin: 0; padding: 0; list-style: none; }
.cmt-item { display: flex; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.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: var(--radius-btn); 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(--link-hover); }
.cmt-paging { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 20px 0 0; }
.cmt-page-btn {
  min-width: 37px;
  height: 30px;
  padding: 0 15px;
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--btn-grad);
  color: var(--btn-text);
  font-size: 12px;
  cursor: pointer;
}
.cmt-page-btn.is-active { background: var(--accent-grad); 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-grad);
  color: #fff;
  font-size: 16px;
}
.spi:hover { color: var(--link-hover); }
.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-btn);
  background: var(--bg-input);
  color: #333;
  font: inherit;
  font-size: 12px;
  resize: none;
  outline: none;
}
.share-popup-copy {
  display: block;
  width: 100%;
  height: 36px;
  margin-top: 10px;
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--accent-grad);
  color: #fff;
  font-size: 12px;
  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; }
