/* ==========================================
   tp26_dark_white — 视觉参考：金牌影院 x8kb9k8.com（深灰底 #1F1F1F ＋ 纯白主色）
   色票与尺规取自该站实测：顶栏 72px / 内页实色 #121212、面板 rgba(255,255,255,.04)
   圆角 12、胶囊高 36 圆角 6、选中态白底深字、清晰度角标 #6D83F2
   ========================================== */
:root {
  --bg-base:       #1F1F1F;
  --bg-deep:       #171717;
  --bg-topbar:     #121212;
  --bg-card:       #282828;
  --bg-elevated:   #2E2E2E;
  --bg-panel:      rgba(255, 255, 255, 0.04);

  /* 主色就是白：选中胶囊白底深字、主按钮白底深字、当前项白字 */
  --accent:        #FFFFFF;
  --accent-hover:  rgba(255, 255, 255, 0.86);
  --on-accent:     #121212;
  --accent-dot:    #FFFFFF;
  --accent-ico:    rgba(255, 255, 255, 0.72);
  --accent-light:  rgba(255, 255, 255, 0.08);
  --accent-soft:   rgba(255, 255, 255, 0.14);

  --accent-2:      #FFB821;
  --accent-2-alt:  #FF5D38;
  --hot:           #FF5D38;
  --badge:         #6D83F2;

  --rank-1:        #FF183E;
  --rank-2:        #FF5D38;
  --rank-3:        #FFB821;

  --text-1:        #FFFFFF;
  --text-2:        rgba(255, 255, 255, 0.60);
  /* 0.50 是實算出「連最淺底色 #2E2E2E 都過 WCAG AA 4.5:1」的最低值：
     0.40 時 #171717/#1F1F1F/#282828/#2E2E2E 上只有 3.84/3.79/3.63/3.53。
     不要再往上調，跟 --text-2（0.60）的層次會被吃掉。 */
  --text-3:        rgba(255, 255, 255, 0.50);
  --text-nav:      rgba(255, 255, 255, 0.72);
  --text-title:    #FFFFFF;

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

  --border:        rgba(255, 255, 255, 0.08);
  --border-2:      rgba(255, 255, 255, 0.16);

  --score-hi:      #FFB821;
  --score-mid:     rgba(255, 255, 255, 0.50);

  --header-position: fixed;

  --topbar-h:      72px;
  --gutter:        40px;

  --page-pad:      var(--gutter);

  --fab-right:     30px;
  --fab-bottom:    30px;
  --fab-w:         52px;

  --page-pad-r:    var(--page-pad);

  --section-pb:    18px;
  --hero-h:        615px;

  --header-solid-at: 600px;

  --gap:           24px;

  /* 参考站实测 20/20；用户拍板收紧成 21/14（垂直沿用 tp22 的 21，水平 14 由用户指定）。
     垂直刻意大于水平：卡片下方有片名＋评分一行，垂直太小会让上一列文字贴到下一列海报。 */
  --grid-gap-y:    21px;
  --grid-gap-x:    14px;

  --radius:        6px;
  --radius-sm:     4px;
  --radius-btn:    6px;
  --radius-lg:     12px;
  --radius-pill:   100px;
  --shadow-panel:  0 7px 70px 0 rgba(0, 0, 0, 0.8);

  --content-max:   1750px;

  --poster-ratio:  7 / 10;
  --card-meta-h:   66px;   /* 片名 24 ＋ 分類 20 ＋ 上下 padding 20，兩行 */
}

@media (max-width: 1199px) {
  :root {
    --page-pad: 16px;
    --topbar-h: 60px;

    --page-pad-r: var(--page-pad);
  }
}
@media (max-width: 767px) {
  :root {
    --grid-gap-y: 12px;
    --grid-gap-x: 8px;
    --page-pad: 12px;
  }
}

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

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", 微软雅黑, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  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 {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 16px;
}
.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;
}
.art-breadcrumb a { color: var(--text-2); }
.art-breadcrumb a:hover { color: var(--accent); }
.bc-sep { color: var(--text-3); font-size: 12px; }
.bc-current { color: var(--text-1); }

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

.section--hot:not(:has(.card)) { display: none; }

/* ⚠️ 这条比基底 .vod-grid 多一层选择器，特异性较高，所以每个断点都要自己写一份，
   不能靠后面 .vod-grid 的响应式规则接手（那条会输给它、平板宽度会卡在 6 列）。 */
.section--hot .vod-grid--hot6 {
  grid-template-columns: repeat(6, 1fr);
}
@media (max-width: 1199px) {
  .section--hot .vod-grid--hot6 {
    grid-template-columns: repeat(6, 1fr);
  }
}
@media (max-width: 767px) {
  .section--hot .vod-grid--hot6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

/* ========== 页面骨架：纯顶栏，无侧边栏（参考站 x8kb9k8 无侧栏） ========== */
.page-shell {
  min-height: 100vh;
  background-color: var(--bg-base);
}

.main-area {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-base);
}

.brand-logo-img {
  background: none; /* logo 不套全局 load.gif 占位背景（透明 logo 会透出占位图） */
  height: 36px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

/* ========== 顶栏 ========== */
.topbar {
  position: var(--header-position);
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 2000;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  padding: 0 var(--page-pad);
  background-color: var(--bg-topbar);
  pointer-events: none;
  transition: background-color 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 满版视觉区之上透明（首页 Hero／详情 Hero／播放器），滚过去恢复实色——header.js 切换 */
.topbar.is-transparent {
  background-color: transparent;
}
.topbar.is-transparent::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 100%);
}

.topbar-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  pointer-events: auto;
}

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

/* ---------- 分类导航（桌面整排；平板横向滚动；手机收进抽屉） ---------- */
.tb-nav {
  display: flex;
  align-items: center;
  height: 100%;
  min-width: 0;
}
.tb-nav-list {
  display: flex;
  align-items: center;
  gap: 20px;
  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（会被压扁到相邻项重叠） */
.tb-nav-list > li {
  display: flex;
  flex-shrink: 0;
}

.tb-nav-item {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 10px;
  font-size: 16px;
  line-height: 1;
  color: var(--text-nav);
  white-space: nowrap;
  transition: color 0.2s;
}
.tb-nav-item:hover { color: var(--text-1); }
.tb-nav-item.is-active {
  color: var(--text-1);
  font-size: 18px;
  font-weight: 600;
}

.tb-nav.can-scroll-right .tb-nav-list {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent 100%);
          mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent 100%);
}
.tb-nav.can-scroll-left .tb-nav-list {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 36px);
          mask-image: linear-gradient(to right, transparent 0, #000 36px);
}
.tb-nav.can-scroll-left.can-scroll-right .tb-nav-list {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%);
}

/* ---------- 顶栏搜索框 ---------- */
.tb-search {
  position: relative;
  display: flex;
  align-items: center;
  height: 36px;
  width: 287px;
  margin-left: auto;
  padding: 0 44px 0 16px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 20px;
  flex-shrink: 0;
  transition: width 0.2s, background 0.2s;
}
.tb-search:focus-within { background: rgba(255, 255, 255, 0.14); }

@media (max-width: 1439px) {
  .topbar-inner .tb-search { width: 240px; }
}
@media (min-width: 1680px) {
  .topbar-inner .tb-search { width: 360px; }
}

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

.tb-search-submit {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: color 0.2s;
}
.tb-search-submit .mac-icon { font-size: 20px; }
.tb-search-submit:hover { color: var(--text-1); }

/* ---------- 右侧功能入口：图标在上、文字在下 ---------- */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  height: 100%;
  margin-left: 20px;
}

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

.tb-icon-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  color: var(--text-1);
  font-size: 20px;
  flex-shrink: 0;
  transition: background 0.2s;
}
.tb-icon-btn:hover { background: var(--fill-1); }

.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(17, 22, 31, 0.92);
  backdrop-filter: blur(6px);
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}
.search-overlay.is-open { display: flex; }

.search-overlay-inner {
  width: 100%;
  max-width: 680px;
  padding: 0 20px;
}

.search-bar {
  display: flex;
  align-items: center;
  background: rgba(17,22,31,0.6);
  border: 1px solid #4e4e4e;
  border-radius: var(--radius-pill);
  padding: 4px 4px 4px 18px;
  gap: 8px;
  transition: border-color 0.2s;
}
.search-bar:focus-within { border-color: var(--accent); }

.search-bar-icon {
  color: #999;
  font-size: 20px;
  flex-shrink: 0;
}

#searchInput {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 16px;
  padding: 10px 0;
  min-width: 0;
}
#searchInput::placeholder { color: #888; }

.search-submit-btn {
  padding: 9px 22px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  transition: background 0.2s;
}
.search-submit-btn:hover { background: var(--accent-hover); }

.search-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #999;
  font-size: 18px;
  flex-shrink: 0;
  transition: color 0.2s, background 0.2s;
}
.search-close-btn:hover { color: #fff; background: rgba(255,255,255,0.08); }

.search-hot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 4px 0;
}
.sh-label {
  font-size: 13px;
  color: #888;
  flex-shrink: 0;
  margin-right: 4px;
}
.sh-tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid #4e4e4e;
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: #ccc;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.sh-tag:hover { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }

.page-content {
  flex: 1;

  padding-top: var(--topbar-h);
}

/* Hero 贴顶滑到透明顶栏底下。
   ⚠️ 不能用 :first-child——每页 <main> 的第一个子元素是 .sr-only 的 <h1>（语义要求保留在 DOM），
   hero 永远是第二个，用 :first-child 会整条规则失配、顶端多出一块 72px 空白。 */
.page-content > .hero-container {
  margin-top: calc(var(--topbar-h) * -1);
}

.hero-container {
  position: relative;
  width: 100%;
  height: 640px;
  overflow: hidden;
  background: var(--bg-deep);

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

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

.hero-layer {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center top;
  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: 62%;
  background: linear-gradient(180deg, rgba(31, 31, 31, 0) 0%, rgba(31, 31, 31, 0.55) 55%, var(--bg-base) 100%);
  pointer-events: none;
}

.hero-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero-inner {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 3;
  width: 100%;
  max-width: calc(var(--content-max) + var(--page-pad) * 2);
  padding: 0 var(--page-pad) 34px;
  pointer-events: none;
}

.hero-info {
  max-width: 620px;
}

.hero-title {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-sub {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  pointer-events: auto;
}

.hero-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s;
}
.hero-play:hover { background: var(--accent-hover); }
.hero-play .mac-icon { font-size: 18px; }

.hero-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-size: 16px;
  transition: background 0.2s, border-color 0.2s;
}
.hero-more:hover { background: rgba(255, 255, 255, 0.16); border-color: #fff; }

/* 圆点：参考站置中在 Hero 底部 */
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}
.hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.4);
  transition: width 0.25s, background 0.25s;
}
.hero-dot:hover { background: rgba(255, 255, 255, 0.7); }
.hero-dot.is-active {
  width: 22px;
  background: var(--accent);
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.25s, color 0.2s, background 0.2s;
}
.hero-nav .mac-icon { font-size: 26px; }
.hero-nav:hover { color: #fff; background: rgba(0, 0, 0, 0.5); }
.hero-nav--prev { left: 14px; }
.hero-nav--next { right: 14px; }
.hero-container:hover .hero-nav { opacity: 1; }

.hero--single .hero-nav,
.hero--single .hero-dots { display: none; }

.hero.is-empty .hero-info,
.hero.is-empty .hero-dots { display: none; }

@media (max-width: 1439px) {
  .hero-container { height: 540px; }
  .hero-title { font-size: 32px; }
}
@media (min-width: 1680px) {
  .hero-container { height: 720px; }
}
@media (min-width: 2000px) {
  .hero-container { height: 800px; }
}

@media (max-width: 1199px) {
  .hero-container { height: 420px; }
  .hero-inner { padding-bottom: 26px; }
  .hero-title { font-size: 26px; }
  .hero-nav { opacity: 1; }
}
@media (max-width: 767px) {

  .hero-container { height: auto; aspect-ratio: 16 / 10; }
  .hero-title { font-size: 20px; line-height: 30px; }
  .hero-sub { font-size: 13px; }
  .hero-actions { margin-top: 12px; }
  .hero-play,
  .hero-more { height: 36px; padding: 0 18px; font-size: 14px; }
  .hero-dots { bottom: 14px; }
  .hero-nav { display: none; }
}

.hero-genre-panel {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 20px var(--page-pad-r) 4px var(--page-pad);
}
.hgp-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.hgp-col--right { align-items: flex-start; }

.hero-genre-panel--single { justify-content: flex-start; }

.hgp-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.hgp-head {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-1);
  white-space: nowrap;
  transition: color 0.2s;
}
.hgp-head:hover { color: var(--accent); }
.hgp-head.is-active { color: var(--accent); }

.hgp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.hgp-tag {
  height: 28px;
  line-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 13px;
  color: #ccc;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.hgp-tag:hover {
  color: var(--text-title);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.15);
}

.section {
  position: relative;
  width: 100%;
  max-width: calc(var(--content-max) + var(--page-pad) * 2);
  margin: 0 auto;
  padding: 0 var(--page-pad) var(--section-pb);
}

.section-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 0 18px;
}

/* 区块标题：28px/600 ＋ 可点时带右尖角（参考站 .title > span + caret） */
.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-1);
  white-space: nowrap;
  transition: color 0.2s;
}
.section-title a { color: inherit; }
.section-title:has(a)::after {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.85;
  transition: transform 0.2s;
}
.section-title:hover:has(a)::after { transform: rotate(45deg) translate(2px, -2px); }

.section-icon { display: none; }

.section-subcats {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow: hidden;
  margin-left: 24px;
  min-width: 0;
}

.section-subcat {
  display: flex;
  align-items: center;
  margin-right: 10px;
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s;
}
.section-subcat:last-child { margin-right: 0; }
.section-subcat span {
  display: inline-block;
  max-width: 96px;
  height: 30px;
  padding: 0 14px;
  line-height: 28px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.section-subcat:hover span {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

/* 区块右上角的「更多」（参考站是右上角的胶囊／箭头） */
.section-more-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
  height: 30px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.section-more-pill:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

@media (max-width: 1199px) {
  .section { padding: 0 var(--page-pad) var(--section-pb); }
  .section-header { padding: 10px 0 14px; }
  .section-title { font-size: 20px; }

  .section-subcats { display: none; }
}

.section-body {

}

.section-main {
  width: 100%;
}

.section-main .vod-grid {
  grid-template-columns: repeat(6, 1fr);

  gap: var(--grid-gap-y) var(--grid-gap-x);
}

@media (max-width: 1199px) {
  .section-main .vod-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 767px) {
  .section-main .vod-grid { grid-template-columns: repeat(3, 1fr); }
}

.content-block {
  width: 100%;
  max-width: calc(var(--content-max) + var(--page-pad) * 2);
  margin: 0 auto;
  padding: 0 var(--page-pad) 4px;
}

@media (min-width: 1679px) and (max-width: 1911px) {
  :root { --content-max: 1542px; }
}
/* ⚠️ 寬螢幕不要再用固定像素封頂——參考站（100.nqxyvqd.xyz 的 wy-content-main）
   實測在 3152px 視窗下內容區寬度是 2976px（＝視窗－側欄），沒有任何 max-width，
   也就是「頁面越寬、內容區跟著等比例變寬」，不是撐到某個值就停住。
   1912px 以上把 .section／.content-block 等消費者的 max-width 直接解除（見下方），
   讓它們回到 width:100% 貼著 main-area 的可用寬度持續縮放。 */
@media (min-width: 1912px) {
  .section,
  .content-block,
  .mcid-list,
  .footer-links,
  .site-footer > p,
  .hero-inner {
    max-width: none;
  }
}

.section-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.section-title-icon {
  color: var(--accent);
  font-size: 20px;
  display: flex;
}

.section-more {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 25px;
  padding: 0;
  border-radius: 0;
  background: none;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-2);
  transition: color 0.2s;
}
.section-more .mac-icon {
  font-size: 12px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.section-more:hover {
  background: none;
  color: var(--accent);
}
.section-more:hover .mac-icon { transform: translateX(3px); }

.two-col { display: flex; gap: 20px; align-items: stretch; }
.col-main { flex: 1; min-width: 0; }
.col-side { flex: 0 0 360px; display: flex; min-width: 0; }
.col-side .rank-col-wrap { display: flex; flex: 1; min-width: 0; }
.col-side .rank-col {
  flex: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.col-side .rank-col-title {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 12px 10px;
  font-size: 17px;
  line-height: 1.2;
}
.col-side .rch-badge { margin-left: 0; }
.col-side .rank-top1 {
  padding: 14px 12px 12px;
}
.col-side .rank-top1 a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.col-side .rt1-thumb { width: 84px; height: 112px; }
.col-side .rt1-name {
  font-size: 16px;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}
.col-side .rt1-meta,
.col-side .rt1-status {
  font-size: 14px;
  line-height: 1.45;
}
.col-side .rank-list {
  display: block;
  padding: 4px 0 10px;
}
.col-side .rank-li {
  display: block;
  margin-top: 8px;
}
.col-side .rank-li:first-child { margin-top: 0; }
.col-side .rank-li-inner {
  height: auto;
  min-height: 40px;
  padding: 6px 12px;
  align-items: center;
  font-size: 15px;
}
.col-side .rl-name {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}
.col-side .rl-hits { font-size: 14px; }

.vod-row,
.vod-grid,
.play-vod-grid,
.detail-vod-grid,
.td-vod-grid,
.plot-related-grid {
  display: grid;
  /* 参考站全站一行 6 张（1440 视窗下卡片 ≈208px），窄屏 4 / 3 */
  grid-template-columns: repeat(6, 1fr);

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

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

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

.card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 0 6px;
  border-radius: var(--radius-sm);
  background: var(--badge);
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
  max-width: calc(100% - 16px);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 资讯列两行：第一行「片名＋评分」维持参考站的一行式，第二行是分类标签。
   分类标签是 tp22 就有的资料（第 2 轴由来源模板决定）。本站 71% 的影片没有豆瓣分、
   评分是 gt 0 才输出，只靠评分的话资讯列右半边会空掉——分类是唯一每张卡都有值的栏位。 */
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  min-height: var(--card-meta-h);
  padding: 10px 8px;
}
.card-title {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}
.card-score {
  flex-shrink: 0;
  color: var(--score-mid);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}
/* flex-basis:100% 讓它一定換到第二行，不跟片名／評分擠同一列 */
.card-tags {
  flex: 0 0 100%;
  min-width: 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card:hover .card-title { color: var(--text-1); }

.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-lg);

  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-cover {
  position: absolute;
  z-index: 111;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  background: linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.72) 38%, rgba(0, 0, 0, 0.95) 100%);
}

.cd-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 113;
  padding: 0 6px;
  border-radius: var(--radius-sm);
  background: var(--badge);
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
  max-width: calc(100% - 16px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.cd-ctn {
  position: absolute;
  z-index: 112;
  left: 0;
  right: 0;
  bottom: 0;
  height: min-content;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px 12px 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: transparent;
}

.cd-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  font-size: 20px;
  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: 20px;
  font-weight: 700;
  color: #fff;
}

.cd-tags {
  display: flex;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
  margin: 0.75em 0;
  font-size: 12px;
  color: var(--text-2);
}
.cd-tags span {
  display: inline-block;
  width: 44px;
  flex-shrink: 0;
  padding: 0.1em 0;
  margin-right: 0.5em;
  border-radius: var(--radius-sm);
  background-color: var(--fill-2);
  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: var(--text-2); }
.cd-il { color: var(--text-3); }
.cd-date,
.cd-starring {
  height: 20px;
  line-height: 20px;
  margin-bottom: 0.5em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

.cd-story {
  height: 36px;
  line-height: 20px;
  margin-bottom: 0.5em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

.cd-action {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 0 10px;
}
.cd-hot { display: flex; align-items: center; gap: 4px; }
.cd-hot .mac-icon { font-size: 18px; color: var(--hot); }

.cd-hot-num { font-size: 12px; color: var(--hot); }
.cd-dialog {
  padding: 3px 14px;
  font-size: 12px;
  text-align: center;
  color: var(--text-1);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.cd-dialog:hover {
  color: var(--on-accent);
  background-color: var(--accent);
  border-color: var(--accent);
}

@media (any-hover: hover) {
  .card:hover .card-detail {
    opacity: 1;
    z-index: 110;
    width: 125%;
    height: 110%;
    top: -5%;
    left: -12.5%;
  }
  .card.pop-left:hover .card-detail { left: 0; }
  .card.pop-right:hover .card-detail { left: -25%; }
}

@media (max-width: 768px) {
  .card-title { font-size: 13px; line-height: 20px; }
  .card-tags  { font-size: 11px; line-height: 17px; }
  :root { --card-meta-h: 56px; }   /* 手機字級較小，兩行不需要 66 */
  .card-badge { font-size: 10px; }
  .card-score { font-size: 14px; }
  .card-meta { padding: 8px 4px; }
}

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

.mcid-list {

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: calc(var(--content-max) + var(--page-pad) * 2);
  margin: 0 auto;
  padding: 36px var(--page-pad) 8px;
  gap: 20px;
  text-align: left;
}
.mcid-type {
  width: auto;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
}
.mcid-type h2 { margin-bottom: 12px; }
.mcid-type h2 a { font-size: 15px; color: var(--text-1); font-weight: 600; }
.mcid-type h2 a:hover { color: var(--text-1); }
.mcid-type ul { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.mcid-type ul li a { font-size: 13px; color: var(--text-2); transition: color 0.2s; }
.mcid-type ul li a:hover { color: var(--text-1); }
@media (max-width: 900px) {
  .mcid-list { grid-template-columns: 1fr; padding-top: 24px; }
}
.site-footer {
  padding: 0 0 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.8;
  background: var(--bg-deep);
  margin-top: 24px;
  text-align: center;
}
.footer-links {
  max-width: calc(var(--content-max) + var(--page-pad) * 2);
  margin: 0 auto;
  padding: 16px var(--page-pad) 4px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
}
.footer-links a { color: var(--text-3); transition: color 0.2s; }
.footer-links a:hover { color: var(--text-1); }
.site-footer > p {
  max-width: calc(var(--content-max) + var(--page-pad) * 2);
  margin: 0 auto;
  padding: 6px var(--page-pad) 0;
}
.footer-bottom-bar {
  margin-top: 14px;
  padding: 14px 20px;
  background: var(--bg-topbar);
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.3px;
}

/* 悬浮钮：数值全部取自参考站实测（right/bottom 30、直向 gap 20、
   52 圆钮、底色 #333、1px rgba(255,255,255,.08) 边框、0 2px 6px rgba(0,0,0,.2) 阴影、图标 24） */
.fab-group {
  position: fixed;
  right: var(--fab-right);
  bottom: var(--fab-bottom);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 998;
  user-select: none;
}
.fab-btn {
  position: relative;
  width: var(--fab-w);
  height: var(--fab-w);
  line-height: 1;
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: #333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);

  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.fab-btn .mac-icon { font-size: 24px; }

.fab-btn:hover {
  background: #3d3d3d;
  color: #fff;
}

.fab-hint {
  position: absolute;

  right: 2.8em;
  top: 0;
  height: var(--fab-w);
  line-height: var(--fab-w);
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 14px;
  text-align: right;
  white-space: nowrap;

  width: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
}
.fab-btn:hover .fab-hint {
  width: 6em;
  padding-right: 0.5em;
  padding-left: 1em;
  transition: width 0.15s;
}

.fab-btn--top { display: none; }
.fab-btn--top.is-visible { display: flex; }

.fab-qr-popup {
  position: fixed;
  bottom: 80px;
  right: 25px;
  background: #fff;

  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 12px;
  display: none;
  z-index: 999;
  width: 150px;
  text-align: center;
}
.fab-qr-popup.is-open { display: block; }
.fab-qr-popup p { font-size: 12px; color: #666; margin-bottom: 10px; }
.fab-qr-popup img { width: 130px; height: 130px; border-radius: 4px; background: #fff; display: block; }

.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 {
  background: var(--bg-panel);
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.rank-col-hd {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 16px 10px;
}
.rank-col-title { display: flex; align-items: center; gap: 8px; padding: 0; font-size: 20px; font-weight: 600; color: var(--text-1); }
.rch-badge { font-size: 11px; font-weight: 400; padding: 2px 8px; border-radius: var(--radius-sm); background: var(--fill-1); color: var(--text-2); }
.rank-col-more { flex-shrink: 0; font-size: 12px; color: var(--text-3); white-space: nowrap; }
.rank-col-more:hover { color: var(--text-1); }
.rank-top1 { padding: 6px 16px 10px; }
.rank-top1 a { display: flex; gap: 10px; }
.rt1-thumb {
  position: relative; flex-shrink: 0;
  width: 72px; height: 96px;
  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-crown {
  position: absolute; bottom: 0; left: 0;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  background: var(--rank-1); color: #fff; font-size: 13px;
}
.rt1-info { flex: 1; min-width: 0; }
.rt1-name { font-size: 14px; font-weight: 600; color: var(--text-1); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-top1 a:hover .rt1-name { color: var(--text-1); }
.rt1-meta { font-size: 12px; color: var(--text-3); margin-bottom: 3px; }
.rt1-status { font-size: 12px; color: var(--text-3); margin-bottom: 5px; }
.rt1-hits { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--hot); }
.rank-list { list-style: none; padding: 2px 0 8px; }
.rank-li { border-bottom: none; }
.rank-li-inner {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 12px; font-size: 13px; color: var(--text-2); transition: background 0.15s;
}
.rank-li-inner:hover { background: var(--fill-1); color: var(--text-1); }
.rl-num {
  flex-shrink: 0; width: 22px; height: 22px;
  border-radius: var(--radius-sm); background: var(--fill-1);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--text-3);
}
.rl-name { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rl-hits { display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; font-size: 12px; color: var(--hot); }
.rl-hits .mac-icon { font-size: 13px; }

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

.art-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--grid-gap-y) var(--grid-gap-x); }
.art-grid > .art-grid-item { display: flex; min-width: 0; }
.art-grid > .art-grid-item > .art-card { flex: 1; min-width: 0; }
.art-card {
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 0;
  overflow: hidden; transition: box-shadow 0.2s; color: var(--text-1);
}
.art-card:hover { box-shadow: var(--shadow-panel); }
.art-card-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-elevated) url("../img/load.gif") no-repeat center/cover; }
.art-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.art-card:hover .art-card-thumb img { transform: scale(1.04); }
.art-card-nopic { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 36px; color: var(--text-3); }
.art-card-cat { position: absolute; top: 8px; left: 8px; padding: 2px 8px; background: var(--accent); color: var(--on-accent); font-size: 11px; }
.art-card-body { padding: 10px 12px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.art-card-title {
  font-size: 14px; font-weight: 400; color: var(--text-1); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; transition: color 0.2s;
}
.art-card:hover .art-card-title { color: var(--accent); }

.topic-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--grid-gap-y) var(--grid-gap-x); }
.topic-grid > .topic-grid-item { display: flex; min-width: 0; }
.topic-grid > .topic-grid-item > .topic-card { flex: 1; min-width: 0; }
.topic-card {
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 0;
  overflow: hidden; transition: box-shadow 0.2s; color: var(--text-1);
}
.topic-card:hover { box-shadow: var(--shadow-panel); }
.topic-card-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-elevated) url("../img/load.gif") no-repeat center/cover; }
.topic-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.topic-card:hover .topic-card-thumb img { transform: scale(1.04); }
.topic-card-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; color: rgba(255,255,255,0.9);
  opacity: 0; transition: opacity 0.2s;
}
.topic-card:hover .topic-card-overlay { opacity: 1; }
.topic-card-count { position: absolute; bottom: 8px; right: 8px; padding: 2px 8px; background: rgba(0,0,0,0.6); color: #fff; font-size: 11px; }
.topic-card-body { padding: 10px 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.topic-card-title { font-size: 14px; font-weight: 600; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.2s; }
.topic-card:hover .topic-card-title { color: var(--accent); }
.topic-card-blurb { font-size: 12px; color: var(--text-3); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0; padding: 25px 0 10px; }
.pagination ul { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0; }
.pg-btn, .pg-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 12px;
  border-radius: 0;
  border: 1px solid var(--border);
  margin-left: -1px;
  background: var(--bg-card); color: var(--accent); font-size: 13px; transition: all 0.2s;
}
.pg-btn:hover, .pg-num:hover { color: var(--on-accent); border-color: var(--accent); background: var(--accent); }
.pg-num.is-active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
.pg-info { font-size: 12px; color: var(--text-3); margin-left: 12px; }

.desc-collapsed { max-height: 80px; overflow: hidden; -webkit-mask-image: linear-gradient(black 40%, transparent); mask-image: linear-gradient(black 40%, transparent); }
.desc-expanded { max-height: none; mask-image: none; -webkit-mask-image: none; }
.desc-expand-btn { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--accent); padding: 6px 0; cursor: pointer; background: none; border: none; }
.desc-expand-btn:hover { text-decoration: underline; }


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

@media (max-width: 1199px) {

  .topbar { padding: 0 16px; }
  .topbar-inner { gap: 14px; }
  .topbar-right { gap: 4px; }

  .topbar-inner .tb-search { width: 200px; padding: 0 40px 0 14px; }

  /* 空间不够时收掉文字，只留图标 */
  .topbar-right .tb-action { min-width: 40px; }
  .topbar-right .tb-action-label { display: none; }
  .topbar-right .tb-action .mac-icon { font-size: 22px; }

  .hero-banner { aspect-ratio: 1903 / 666; }
  .swiper-slide > a.swiper-lazy {
    background-size: contain, auto;
    background-color: #171717;
  }

  /* 窄屏缩一号：位置与尺寸等比缩，仍保持圆形与同一套底色 */
  :root { --fab-right: 16px; --fab-bottom: 20px; --fab-w: 44px; }
  .fab-group { gap: 12px; }
  .fab-btn { font-size: 20px; }
  .fab-btn .mac-icon { font-size: 20px; }

  .fab-btn--qr { display: none; }

  .fab-hint { display: none; }
  .fab-qr-popup { bottom: 76px; right: 16px; }

  .content-block { padding-left: var(--page-pad); padding-right: var(--page-pad-r); }

  .col-side { display: none; }

  .hero-genre-panel { padding: 16px 16px 0; gap: 20px; }

  .vod-row,
  .vod-grid,
  .play-vod-grid,
  .detail-vod-grid,
  .td-vod-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 1023px) {
  .art-grid       { grid-template-columns: repeat(4, 1fr); }
  .topic-grid     { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 767px) {

  .hero-banner { height: auto; margin-top: 0; }
  .brand-name { display: none; }

  .vod-row,
  .vod-grid,
  .play-vod-grid,
  .detail-vod-grid,
  .td-vod-grid { grid-template-columns: repeat(3, 1fr); }
  .art-grid       { grid-template-columns: repeat(2, 1fr); }
  .topic-grid     { grid-template-columns: repeat(2, 1fr); }
  .actor-row { grid-template-columns: repeat(4, 1fr); }

  .topbar { padding: 0 14px; gap: 10px; }
  .topbar-inner { gap: 10px; }
  .topbar-right { gap: 10px; }

  .topbar-inner .tb-nav { display: none; }

  /* 排行榜／留言／专题 已併進頂欄的文字導覽（.tb-nav），右側只剩「历史」。
     ⚠️「历史」抽屉里没有对应项，是这里唯一的入口，不可以收掉（否则观看记录在手机上等于消失）；
     导览在 ≤1199px 会整条隐藏，所以它也不能搬进导览。 */
  .topbar-right > .tb-action:not(.tb-hist-btn) { display: none; }
  .topbar-right .tb-hist-wrap { display: flex; }
  .topbar-right .tb-hist-btn { min-width: 36px; }

  .topbar-right .hamburger-btn { display: flex; }

  .hero-genre-panel { display: none; }

  .tb-search { display: none; }
  .tb-icon-btn { display: flex; }
}

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

.tb-hist-wrap {
  position: relative;
}

.hist-dropdown {
  position: absolute;
  top: 100%;
  right: -12px;
  width: 376px;
  min-height: 50px;
  padding: 12px 0 0;
  color: #fff;
  background-color: rgba(31, 31, 31, 0.7);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: none;
  border-radius: 5px;
  box-shadow: rgba(0, 0, 0, 0.34) 2px 2px 1px;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hist-dropdown::before,
.hist-dropdown::after {
  content: "";
  position: absolute;
  right: 34px;
  width: 0;
  height: 0;
  border: 7px solid transparent;
  border-bottom-color: rgba(31, 31, 31, 0.45);
  pointer-events: none;
}
.hist-dropdown::before { top: -13px; }
.hist-dropdown::after  { top: -12px; }

@media (hover: hover) {
  .tb-hist-wrap:hover .hist-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}
.hist-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hist-dropdown .history-top {
  display: none;
  align-items: center;
  justify-content: space-between;
  height: 43px;
  padding: 0;
}
.hist-dropdown .history-title {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}
.hist-dropdown .history-list {
  max-height: 245px;
  margin-top: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}
.hist-dropdown .history-list::-webkit-scrollbar { width: 4px; }
.hist-dropdown .history-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
}

.hist-dropdown .history-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 35px;
  padding: 4px 12px;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s;
}
.hist-dropdown .history-item:hover { color: #fff; }

.hist-dropdown .history-cover {
  flex-shrink: 0;
  width: 114px;
  height: 64px;
  overflow: hidden;
  border-radius: 4px;

  background: #222 url("../img/load.gif") no-repeat center/cover;
}
.hist-dropdown .history-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hist-dropdown .history-info {
  min-width: 0;
  overflow: hidden;
}
.hist-dropdown .item-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  color: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hist-dropdown .item-meta {
  flex: 0 0 auto;
  margin-top: 0;
  font-size: 12px;
  line-height: 20px;
  color: inherit;
  opacity: 0.75;
}

.hist-dropdown .history-empty {
  padding: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 43px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.hist-dropdown .history-foot {
  display: flex;
  align-items: center;
  height: 46px;
  margin-top: 14px;
  padding: 0 12px;
}
.hist-dropdown .history-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 37.5px;
  padding: 0;
  border: none;
  background: none;
  color: rgb(170, 170, 170);
  cursor: pointer;
  transition: color 0.2s, opacity 0.2s;
}
.hist-dropdown .history-clear .mac-icon {
  font-size: 25px;
  width: 25px;
  height: 25px;
}
.hist-dropdown .history-clear:hover { color: #fff; }

.hist-dropdown .history-more {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  height: 24px;
  font-size: 12px;
  color: rgb(170, 170, 170);
  transition: color 0.2s, opacity 0.2s;
}

.hist-dropdown.is-empty .history-clear,
.hist-dropdown.is-empty .history-more {
  opacity: 0.45;
  pointer-events: none;
}
.hist-dropdown .history-more .mac-icon { font-size: 16px; width: 16px; height: 16px; }
.hist-dropdown .history-more:hover { color: #fff; }

@media (max-width: 520px) {
  .hist-dropdown {
    position: fixed;
    top: var(--topbar-h);
    left: 12px;
    right: 12px;
    width: auto;
  }
  .hist-dropdown::before,
  .hist-dropdown::after { display: none; }
  .hist-dropdown .history-cover { width: 96px; height: 54px; }
  .hist-dropdown .history-item { height: 70px; }
  .hist-dropdown .history-list { max-height: 280px; }
}

.hamburger-btn {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: transparent; border: none;
  color: rgba(255,255,255,0.9); font-size: 22px;
  cursor: pointer; transition: color 0.2s, background 0.2s;
}
.hamburger-btn:hover { color: #fff; background: rgba(0,0,0,0.3); }

.mob-nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 499;
}
.mob-nav-overlay.is-open { display: block; }

.mob-nav-drawer {
  position: fixed; top: 0; right: 0;
  width: 240px; height: 100dvh;
  background: var(--bg-topbar);
  z-index: 500;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column;
}
.mob-nav-drawer.is-open { transform: translateX(0); }
.mob-nav-drawer::-webkit-scrollbar { display: none; }

.mnd-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.mnd-title { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.8); }
.mnd-close {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: transparent; border: none;
  color: rgba(255,255,255,0.8); font-size: 18px; cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.mnd-close:hover { color: #fff; background: rgba(0,0,0,0.3); }

.mnd-nav { display: flex; flex-direction: column; padding: 8px 0; flex: 1; overflow-y: auto; min-height: 0; }

.mnd-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 20px;
  color: rgba(255,255,255,0.75); font-size: 15px;
  text-decoration: none; transition: color 0.2s, background 0.2s;
}
.mnd-item:hover { color: #fff; background: rgba(0,0,0,0.25); }
.mnd-item.is-active { color: var(--accent); }
.mnd-item .mac-icon { font-size: 20px; flex-shrink: 0; }

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

.section .rank-grid--home {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1100px) {
  .section .rank-grid--home { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .section .rank-grid--home { grid-template-columns: 1fr; }
}

.mac-icon{width:1em;height:1em;fill:currentColor;flex-shrink:0;}

/* ===== 搜索下拉（历史 + 热门，强制18.2；header.js 渲染） ===== */
.tb-search { overflow: visible; }
.search-drop {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  padding: 6px 0; background: var(--bg-card); border: 1px solid var(--border-2); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.5); max-height: 60vh; overflow-y: auto; text-align: left;
}
.search-drop--overlay { position: relative; top: auto; margin-top: 8px; }
.search-drop .sd-group + .sd-group { border-top: 1px solid var(--border-2); margin-top: 4px; padding-top: 4px; }
.sd-group-hd { display: flex; align-items: center; justify-content: space-between; padding: 4px 12px; }
.sd-label { font-size: 11px; color: var(--text-3); letter-spacing: .5px; }
.sd-clear { font-size: 11px; color: var(--text-3); background: none; border: 0; padding: 0; cursor: pointer; }
.sd-clear:hover { color: var(--accent); }
.sd-list { list-style: none; margin: 0; padding: 0; }
.sd-item { display: flex; align-items: center; gap: 10px; padding: 0 12px; transition: background .15s; }
.sd-item:hover { background: rgba(255,255,255,.06); }
.sd-num { flex-shrink: 0; width: 16px; font-size: 11px; color: var(--text-3); text-align: center; }
.sd-item:nth-child(-n+3) .sd-num { color: var(--accent); font-weight: 700; }
.sd-word {
  flex: 1; min-width: 0; text-align: left; padding: 6px 0;
  font-size: 13px; color: var(--text-2); background: none; border: 0; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s;
}
.sd-item:hover .sd-word { color: var(--accent); }
.art-card-date { display: block; margin-top: 6px; font-size: 12px; color: var(--text-3); }
.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; }

/* ===== 资讯侧栏共用（widget/art_hot_vod + art_recommend_read；art/type 与 art/detail 共用，单一来源） ===== */
.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); }

/* 移动端 Hero：按横幅图比例定高（16:10），不再用桌面固定高度裁切；文字层压缩 */
@media (max-width: 767px) {
  .hero-container { height: auto; aspect-ratio: 16 / 10; min-height: 0; }
  .hero-layer { background-size: cover; background-position: center top; }
  .hero-info { left: 12px; bottom: 12px; max-width: calc(100% - 24px); }
  .hero-title { font-size: 17px; line-height: 24px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-sub { display: none; }
  .hero-play { width: 104px; height: 34px; font-size: 14px; border-radius: 17px; margin-top: 6px; }
  .hero-play .mac-icon { font-size: 18px; }
}

/* ===== 页面主容器统一置中（原本靠左侧栏挤出留白，改纯顶栏后由 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,
.mcid-list {
  width: 100%;
  max-width: calc(var(--content-max) + var(--page-pad) * 2);
  margin-left: auto;
  margin-right: auto;
}
