/* ============================================================
   tp27_dark_black — main.css
   本檔由 tp21_dark_black 的 main.css 整份複製而來（見 .claude/CLAUDE.md §0），
   結構／選擇器／功能鉤子完全不動，這裡改了 :root 配色（粉→紅）＋改成左側
   固定常駐側欄取代純頂欄導覽，其餘規則沿用 tp21 原樣，不要看到「tp21」/
   「4kvms.org」字樣的既有註解就以為寫錯檔案，那些是複製過來時保留的說明。
   視覺：黑底白字紅點綴，左側固定側欄＋頂欄搜尋列，參考 z01.zgtv.online 版式。
   ============================================================ */

/* ===== CSS Variables ===== */
/* tp42_light_white_green：參考 video.360kan.com——白底為主、按鈕/選中等小元素用綠色。
   數值取自參考站實際 computed style（搜尋鈕 #19b955、導覽選中與分隔線綠、標題 24px #333、
   副標 14px #999、排行前三紅 #ee3300），見 .claude/CLAUDE.md §1。 */
:root {
  /* 背景層（白底） */
  --bg-body:        #ffffff;
  --bg-page:        #ffffff;
  --bg-card:        #f6f7f8;
  --bg-card-hover:  #eef0f2;
  --bg-elevated:    #f2f3f5;
  --bg-input:       #f4f5f7;
  --bg-overlay:     rgba(0,0,0,.5);

  /* 主色：參考站搜尋鈕／按鈕綠 */
  --accent:         #19b955;
  --accent-hover:   #12a347;
  --accent-grad:    linear-gradient(135deg, #19b955 0%, #3fcf72 100%);
  --accent-muted:   rgba(25,185,85,.1);
  --rank-hot:       #ee3300;   /* 排行榜前三名／熱度火焰（參考站 .decoration.top1） */
  --text-warn:      #b86e00;   /* 白底上的「黃/琥珀色」文字（集數、名次）——原 #FFB800/#FFC53D 對比只有 1.6～1.8:1，這個約 4:1 */

  --fill:           var(--accent);
  --fill-hover:     var(--accent-hover);

  /* chip 系列 token（tp33 起的「主要按鈕／選中態」統一變數，詳情/篩選/分享/分集/下載頁都用）：綠底白字 */
  --chip-text:          #ffffff;
  --chip-border:        transparent;
  --chip-gradient:      var(--accent);
  --chip-gradient-main: var(--accent);
  --chip-shadow:        none;
  --chip-shadow-hover:  0 4px 12px rgba(25,185,85,.3);
  --chip-accent:        var(--accent);

  --glass-bg:       rgba(255,255,255,.24);
  --glass-blur:     blur(4.5px);

  /* 文字（深字系，參考站 #333/#666/#999） */
  --text-1:         #333333;
  --text-2:         #666666;
  --text-3:         #999999;

  --border:         #e6e6e6;
  --border-light:   #dddddd;

  /* 頂欄：白底；不是疊加式固定頂欄，而是 sticky 跟著文件流（見 TOPBAR 說明） */
  --topbar-bg:          #ffffff;
  --topbar-solid:       #ffffff;
  --topbar-input-bg:    #ffffff;
  --history-bg:         #ffffff;
  --sidebar-bg:         #ffffff;
  --sidebar-overlay:    rgba(0,0,0,.4);
  --sidebar-text:       #333333;
  --sidebar-text-muted: #999999;

  /* --topbar-h：「固定頂欄要讓出的高度」——tp42 頂欄在文件流內（sticky），內容不必再讓位，所以是 0；
     各頁 calc(var(--topbar-h) + N) 的寫法自動退回 N。
     --sticky-h：捲動後釘在最上面的綠色導覽列高度（2px 綠線＋38px），給 sticky 側欄/浮層當偏移。 */
  --topbar-h:       0px;
  --sticky-h:       40px;
  --sidebar-w:      0px;
  --container-w:    1400px;
  --page-max-w:     1400px;
  --radius:         4px;
  --radius-sm:      2px;
  --shadow-card:    0 2px 10px rgba(0,0,0,.08);

  /* tp16 移植块（详情/播放/下载/分集/专题等页共用 CSS）用的 token 别名 */
  --border-2:       var(--border-light);
  --accent-light:   var(--accent-muted);
  --radius-pill:    50px;
  --content-max:    var(--page-max-w);
  --bg-base:        var(--bg-body);
  --score-hi:       var(--accent);
  --accent-2:       var(--rank-1);
  --accent-2-alt:   #ffb800;
  --shadow-panel:   0 4px 16px rgba(0,0,0,.12);

  --rank-1:         #FFB800;
  --rank-2:         #A0A6B0;
  --rank-3:         #CD7F32;
  --score-mid:      #FF8A00;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg-body); color: var(--text-1); min-height: 100%; }
body { font-family: "PingFang SC","Microsoft YaHei",Arial,sans-serif; font-size: 14px; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
a:hover { color: var(--accent); transition: .15s ease-in-out; }
/* 全域圖片佔位背景（需求方 skill §B 硬性要求）：裸 img{} 選擇器，全站所有
   內容 <img> 自動套用，不用逐個 widget 補——載入前透出這個底圖/底色、載入
   成功後被不透明的實際圖片蓋掉、載入失敗（onerror 沒接住或還沒觸發）時一樣
   透出這個占位，避免破圖時整塊變空白。sprite 圖示是 <svg> 不算 img，不受
   影響；logo 雖然這個專案是 <img>（不是 skill 假設的 CSS background-image），
   但 svg 秒開，實際上看不到占位背景閃現。 */
img { display: block; max-width: 100%; background: url(../img/load.gif) no-repeat center/cover, var(--bg-elevated); }
img[src$=".svg"], .tb-brand-img, .fab-qr-popup img { background: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
.mac-icon { display: inline-flex; align-items: center; vertical-align: middle; }
input, select, textarea { font-family: inherit; }

/* ===== Page Shell =====
   tp30 沒有側欄（--sidebar-w 固定 0px，見 :root），.main-area 的
   padding-left 恆為 0，寫法只是沿用 tp27 共用的變數命名。 */
.page-shell { min-height: 100vh; }
.main-area  {
  min-height: 100vh; display: flex; flex-direction: column; padding-left: var(--sidebar-w);
  /* 外框不設寬度上限（Hero 要滿版），寬度上限交給 .container／--content-max */
}
.page-content { flex: 1; padding-top: var(--topbar-h); }

/* ===== Container ===== */
.warp { }
/* tp38：內容置中、最寬 1560px（參考站 .banner-nav-box／內容區寬度），左右 40px gutter */
.container { width: 100%; max-width: var(--container-w); margin: 0 auto; padding: 0 40px; }
@media (max-width: 767px) { .container { padding: 0 12px; } }

/* ===== Two-column layout ===== */
.page-body {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 20px 0 40px;
}
.main-inner { flex: 1; min-width: 0; }
.mian-sidebar { width: 300px; flex-shrink: 0; }
.main-inner > *:first-child,
.mian-sidebar > *:first-child { margin-top: 0; }


/* ============================================================
   TOPBAR（tp42，參考 video.360kan.com .videoso-*）
   ============================================================
   上段 .tb-main（白底 100px）：logo → 搜尋區（540px 框＋92px 綠色搜索鈕、下方熱門詞）→ 觀看歷史。
   下段 .tb-navbar：2px 綠色上框線＋38px 導覽（16px，選中綠字）。
   整個 header sticky、top:-100px：上段捲走，綠色導覽列釘在頂端（skill 強制18.1 吸頂）。
   在文件流內，--topbar-h=0，內容不用讓位。 */
.tb-topbar {
  position: sticky; top: -100px; z-index: 300;
  background: var(--topbar-bg);
}
.tb-inner { max-width: var(--container-w); margin: 0 auto; padding: 0 20px; }
.tb-main .tb-inner { height: 100px; display: flex; align-items: flex-start; gap: 14px; padding-top: 20px; }
.tb-brand { flex-shrink: 0; display: flex; align-items: center; height: 38px; }
.tb-brand-img { height: 38px; width: auto; background: none; }

/* 搜尋區：參考站 .round（1px #bbb 框、白底、無圓角）＋ .s_btn（#19b955、92×38） */
.tb-search-area { flex: 0 1 632px; min-width: 0; }
.tb-search { position: relative; display: flex; height: 38px; }
.tb-search input {
  flex: 1; min-width: 0; height: 38px; padding: 0 12px;
  border: 1px solid #bbbbbb; border-right: none; border-radius: 0; outline: none;
  background: var(--topbar-input-bg); color: var(--text-1); font-size: 16px;
}
.tb-search input:focus { border-color: var(--accent); }
.tb-search input::placeholder { color: var(--text-3); }
.tb-search-btn {
  flex-shrink: 0; width: 92px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  border: 1px solid #19b955; background: #19b955; color: #fff;
  font-size: 14px; cursor: pointer; transition: background-color .15s;
}
.tb-search-btn .mac-icon { display: none; }
.tb-search-btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
/* 熱門詞：搜尋框下方一排（參考站 14px #666） */
.search-hot {
  display: flex; flex-wrap: nowrap; gap: 4px 12px; overflow: hidden;
  height: 20px; margin-top: 10px; font-size: 14px; line-height: 20px;
}
.search-hot .sh-tag { flex-shrink: 0; color: var(--text-2); white-space: nowrap; }
.search-hot .sh-tag:hover { color: var(--accent); }

.tb-actions { margin-left: auto; display: flex; align-items: center; height: 38px; flex-shrink: 0; }
.tb-action-btn {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  font-size: 18px; color: var(--text-2); transition: .15s;
}
.tb-action-btn:hover { color: var(--accent); }

/* 觀看歷史：灰圓＋時鐘；hover 圖示上移、下方綠字「历史」、展開「播放记录」下拉 */
.tb-hist { position: relative; height: 38px; display: flex; align-items: center; }
.tb-hist-btn { flex-direction: column; width: 48px; height: 52px; border-radius: 0; position: relative; }
.tb-hist-ico {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: #eeeeee; color: var(--text-2); font-size: 17px;
  transition: transform .2s, background-color .2s, color .2s;
}
.tb-hist-label {
  position: absolute; bottom: 0; left: 0; right: 0; text-align: center;
  font-size: 12px; line-height: 1; color: var(--accent); opacity: 0; transition: opacity .2s;
}
.tb-hist:hover .tb-hist-ico { transform: translateY(-6px); background: var(--accent); color: #fff; }
.tb-hist:hover .tb-hist-label { opacity: 1; }
.tb-hist-drop {
  display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 5;
  width: 340px; border-radius: 8px; overflow: hidden;
  background: var(--history-bg); border: 1px solid var(--border);
  box-shadow: var(--shadow-panel);
}
@media (hover: hover) and (min-width: 768px) {
  .tb-hist:hover .tb-hist-drop { display: block; }
}
.tb-hist-hd {
  display: flex; align-items: center; justify-content: space-between;
  height: 48px; padding: 0 16px;
  border-bottom: 1px solid var(--border);
  font-size: 15px; color: var(--text-1);
}
.tb-hist-clear { font-size: 13px; color: var(--text-3); }
.tb-hist-clear:hover { color: var(--accent); }
.tb-hist-list { min-height: 160px; max-height: 360px; overflow-y: auto; }
.tb-hist-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 44px; padding: 0 16px; white-space: nowrap;
}
.tb-hist-item:hover { background-color: var(--bg-input); color: inherit; }
.tb-hist-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 14px; color: var(--text-1); }
.tb-hist-type { flex-shrink: 0; font-size: 13px; color: var(--accent); }
.tb-hist-empty { line-height: 160px; text-align: center; color: var(--text-3); }

/* 下段：綠色上框線＋導覽（參考站 .videoso-nav：border-top 2px 綠、行高 38px、a 16px padding 0 16px） */
.tb-navbar { border-top: 2px solid var(--accent); border-bottom: 1px solid var(--border); background: #fff; }
.tb-nav {
  display: flex; align-items: center; height: 38px; gap: 0;
  overflow-x: auto; scrollbar-width: none;
}
.tb-nav::-webkit-scrollbar { display: none; }
.tb-nav-link {
  flex-shrink: 0; display: inline-flex; align-items: center;
  height: 38px; padding: 0 16px;
  font-size: 16px; color: var(--text-1); white-space: nowrap;
  transition: color .15s;
}
.tb-nav-link .mac-icon { display: none; }
.tb-nav-link:hover,
.tb-nav-link.is-active { color: var(--accent); }

@media (max-width: 1024px) {
  .tb-main .tb-inner { gap: 10px; }
  .tb-search-area { flex-basis: 480px; }
}
/* 手機：上段 56px「logo＋搜尋框＋歷史」（不顯示熱門詞、搜索鈕縮成圖示），下段導覽橫向捲動，
   選中＝綠字＋綠色底線；sticky top 改 -56px。 */
@media (max-width: 767px) {
  .tb-topbar { top: -56px; }
  .tb-main .tb-inner { height: 56px; align-items: center; padding: 0 12px; gap: 10px; }
  .tb-brand, .tb-brand-img { height: 30px; }
  .tb-search-area { flex: 1 1 0; }
  .tb-search { height: 34px; }
  .tb-search input { height: 34px; font-size: 14px; padding: 0 10px; }
  .tb-search-btn { width: 44px; height: 34px; }
  .tb-search-btn .mac-icon { display: inline-block; font-size: 18px; }
  .tb-search-btn span { display: none; }
  .search-hot { display: none; }
  .tb-actions { height: 34px; }
  .tb-hist { height: 34px; }
  .tb-hist-btn { width: 34px; height: 34px; border-radius: 50%; }
  .tb-hist-ico { width: 30px; height: 30px; font-size: 16px; }
  .tb-hist-label { display: none; }
  .tb-hist:hover .tb-hist-ico { transform: none; background: #eeeeee; color: var(--text-2); }
  .tb-nav { padding: 0 6px; height: 42px; }
  .tb-nav-link { position: relative; height: 42px; padding: 0 12px; font-size: 15px; }
  .tb-nav-link.is-active { font-weight: 600; }
  .tb-nav-link.is-active::after {
    content: ""; position: absolute; left: 50%; bottom: 3px; width: 20px; height: 3px;
    margin-left: -10px; border-radius: 2px; background: var(--accent);
  }
}

/* ===== History Modal ===== */
/* tp21 改成錨定在觀看歷史圖示按鈕正下方的小面板，不是 tp17 那種蓋滿全螢幕、
   置中彈出的大 modal——.hm-overlay 維持 position:fixed;inset:0（保留「點面板
   外面關閉」這個 header.js 既有邏輯要用的全螢幕點擊層），但背景改透明、不再
   置中內容，真正的面板 .hm-box 用 fixed 定位貼齊右上角、topbar 正下方。 */
.hm-overlay {
  display: none; position: fixed; inset: 0;
  background: transparent; z-index: 600;
}
.hm-overlay.is-open { display: block; }
.hm-box {
  position: fixed; top: calc(var(--sticky-h) + 8px); right: 16px; z-index: 601;
  width: 320px; max-width: calc(100vw - 32px); max-height: 70vh;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.hm-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.hm-title { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.hm-title .mac-icon { font-size: 15px; color: var(--text-2); }
.hm-clear { font-size: 12px; color: var(--text-3); flex-shrink: 0; }
.hm-clear:hover { color: var(--accent); }
/* 列表改成單欄、一列一筆（縮圖＋文字並排），比照小面板的寬度，不是 tp17
   那種寬 modal 裡的多欄縮圖格狀排列。 */
.hm-body { flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.hm-card {
  display: flex; align-items: center; gap: 10px; padding: 6px;
  border-radius: 6px; text-decoration: none; color: var(--text-1);
  transition: background .15s;
}
.hm-card:hover { background: var(--bg-elevated); }
.hm-thumb {
  position: relative; flex-shrink: 0; width: 46px; aspect-ratio: 2/3;
  border-radius: 4px; overflow: hidden; background: var(--bg-elevated);
}
.hm-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-card:hover .hm-name { color: var(--accent); }
.hm-info { min-width: 0; }
.hm-name {
  font-size: 13px; color: var(--text-1); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; transition: color .15s;
}
.hm-type { margin-top: 3px; font-size: 12px; color: var(--text-3); }
/* 手機版改成滿版寬度、貼齊 topbar 下緣（跟「全部」抽屜同一種道理，見 §4.9——
   參考站的手機彈出面板都是滿版寬度，不是桌面版那種靠右上角的小卡片，之前
   用桌面版那組 320px／right:16px 的定位在手機上使用者截圖回報太小、位置也
   跑掉）。縮圖／字級也跟著放大一點，比照參考站截圖的比例。 */
@media (max-width: 767px) {
  .hm-box {
    top: var(--topbar-h); left: 0; right: 0; width: auto; max-width: none;
    max-height: calc(100vh - var(--topbar-h));
    border-radius: 0; border-left: none; border-right: none; border-top: none;
  }
  .hm-thumb { width: 60px; }
  .hm-name { font-size: 14px; }
  .hm-type { font-size: 12px; }
}
.hm-empty { width: 100%; text-align: center; padding: 36px 0; color: var(--text-3); font-size: 13px; }

/* ===== Module: .mod ===== */
.mod {
  padding: 20px; background: var(--bg-card);
  border-radius: var(--radius);
}
.mod + .mod, .mod + .mod-inner, .mod-inner + .mod,
.mod-inner + .mod-inner, .margin-t-20 { margin-top: 20px; }

/* Section header */
.mod-head { display: flex; align-items: center; margin-bottom: 16px; }
.mod-head-title {
  flex: 1; padding-left: 14px; position: relative;
}
.mod-head-title::before {
  content: ""; position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; background: var(--accent); border-radius: 1px;
}
.mod-head-name { font-size: 20px; font-weight: 700; color: var(--text-1); }
.mod-head-more { font-size: 13px; color: var(--text-3); flex-shrink: 0; transition: color .15s; }
.mod-head-more:hover { color: var(--accent); text-decoration: underline; }
.mod-head-today { font-size: 13px; color: var(--text-2); margin-left: auto; margin-right: 12px; flex-shrink: 0; }
.mod-head-today em { color: var(--accent); font-style: normal; font-weight: 700; }

/* Tab list */
.mod-author-list { display: flex; gap: 8px; flex: 1; margin-left: 16px; }
.mod-author-list li {
  display: inline-flex; align-items: center;
  height: 26px; padding: 0 12px;
  background: var(--bg-elevated); border-radius: 13px;
  font-size: 13px; cursor: pointer; transition: .15s; color: var(--text-2);
}
.mod-author-list li:hover,
.mod-author-list li.active { color: #fff; background: var(--fill); }

/* .mod-inner */
.mod-inner { background: var(--bg-card); padding: 20px; border-radius: var(--radius); }
.mod-inner-head { display: flex; align-items: center; margin-bottom: 14px; }
.mod-inner-name {
  font-size: 20px; font-weight: 700; color: var(--text-1);
  padding-left: 12px; position: relative;
}
.mod-inner-name::before {
  content: ""; position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; background: var(--accent); border-radius: 1px;
}
.mod-inner-more {
  margin-left: auto; font-size: 13px; color: var(--text-3); font-weight: 600;
  flex-shrink: 0; text-decoration: none; transition: color .15s;
}
.mod-inner-more:hover { color: var(--accent); }
.mod-inner-count { margin-left: auto; font-size: 13px; color: var(--text-3); flex-shrink: 0; }
.mod-inner-count em { color: var(--accent); font-style: normal; font-weight: 700; }

/* ===== Breadcrumb（widget/breadcrumb：nav>ol>li）===== */
.breadcrumb { font-size: 13px; color: var(--text-3); margin-bottom: 14px; }
.breadcrumb ol { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .bc-sep { color: var(--border-light); margin: 0 4px; }
.breadcrumb .bc-current { color: var(--text-2); }

/* ===== VOD Grid =====
   卡片維持固定寬度（150px），不用 minmax(...,1fr) 讓卡片跟著容器變寬——
   容器（.container）現在不設 max-width，寬螢幕時應該是「多塞幾欄」而不是
   「卡片被拉得比原本大」，所以欄寬給固定像素，auto-fill 只決定塞得下幾欄，
   欄與欄之間多出的零頭空間留白在最右邊，不強制撐滿最後一欄（見 CLAUDE.md §35）。 */
.video-film-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, 150px);
  justify-content: start;
  gap: 16px 12px;
}
/* --6col 重新啟用，但用途跟舊版不同：這個 modifier 專門給「資料筆數固定、不分頁的
   推薦片單」用（vod/detail.html 的猜你喜欢／关联视频／相关推荐、vod/play.html 的
   为你推荐）。
   這類推薦片單常常筆數不多不少（例如關聯影片只有 10 部），固定寬度 auto-fill
   算出來的欄數如果沒有整除，最後一排會塞不滿，右側留下一大塊空白（使用者截圖
   回報過）。改用 repeat(6, minmax(0,1fr))：固定 6 欄，每欄用剩餘寬度平均分配
   （minmax(0,1fr) 而不是單純 1fr，是為了避免內容撐開欄寬——理由跟 flex item 的
   min-width:0 是同一個道理，見 CLAUDE.md §30 的坑），永遠不會有塞不滿的右側空白，
   代價是卡片寬度會跟著可用寬度縮放，不是絕對固定值，這是刻意的取捨。 */
.video-film-list--6col {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  justify-content: normal;
}
@media (max-width: 1024px) { .video-film-list--6col { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .video-film-list--6col { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* --9col（原本叫 --8col，使用者要求改成一行 9 個，索性連 class 名稱一起改，
   避免之後看到「--9col 卻只有 8 欄」這種名不符實的情況）：首頁分類片單、
   vod/type.html「最近更新」／各子分類片單、vod/show.html 篩選結果格都在用，
   固定欄數、跟 --6col 是同一種道理，資料筆數也跟著調整成 9 的倍數（18／9／27）
   避免最後一排缺格。 */
.video-film-list--9col {
  grid-template-columns: repeat(9, minmax(0, 1fr));
  justify-content: normal;
}
@media (max-width: 1024px) { .video-film-list--9col { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .video-film-list--9col { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* --fill：給有分頁的清單頁用（vod/type／vod/show，見 CLAUDE.md §35 後續更新）。
   這兩頁原本沿用上面沒有 modifier 的固定寬度版本，使用者截圖回報同一個問題在這裡
   也發生了——螢幕右緣一樣留一大塊沒用到的空白（能塞下第 10 欄的寬度，但固定 150px
   auto-fill 只塞了 9 欄就不動了）。這裡不像 --6col 用固定欄數，是因為這兩頁清單的
   資料量遠大於推薦片單（分頁 24 筆），欄數應該跟著螢幕寬度自然增減，不能寫死成
   某個固定數字。改用 repeat(auto-fit, minmax(150px, 1fr))：auto-fit 和 auto-fill
   的差異在於，算出目前寬度塞得下幾欄之後，auto-fit 會把多餘的零頭空間分給「已經
   存在的那幾欄」（欄位跟著變寬一點，撐滿到右緣），auto-fill 則是把零頭空間晾在
   最右邊當空白（就是這裡要修的問題）。minmax(150px,1fr) 保底 150px、上限用剩餘
   空間平均分配，寬螢幕下頂多把每欄撐寬到接近下一欄的門檻，不會像 --6col 那樣
   把欄數鎖死在一個很小的數字、卡片被拉得特別大。 */
/* auto-fit 的 1fr 上限沒有封頂：欄數是靠「現有筆數」動態決定的，資料筆數
   很少（甚至只有 1 筆）時，僅有的那一欄會獨吞整行寬度，.video-item 預設
   justify-items:stretch 撐滿那欄，裡面 .video-cover 又是 aspect-ratio:2/3
   跟著 width 等比例放大，直接爆版成一張巨大灰色方塊（vod/type 頁資料稀少的
   分類，使用者截圖回報過）。加一個 max-width 幫 .video-item 封頂，欄再寬
   卡片也不會跟著撐大，多出來的空間就單純留白，不會影響到其他欄。 */
.video-film-list--fill {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  justify-content: normal;
}
.video-film-list--fill .video-item { max-width: 220px; }

/* ===== Hot Featured Block (首頁热点資訊) ===== */
.hot-block { display: flex; gap: 14px; height: 350px; }
.hot-feat-card {
  flex-shrink: 0; width: 220px;
  display: block; position: relative; overflow: hidden;
  border-radius: var(--radius); text-decoration: none;
  background: var(--bg-elevated);
}
.hot-feat-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
  transition: transform .35s ease;
}
.hot-feat-card:hover img { transform: scale(1.05); }
.hot-feat-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 40px 12px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.9));
}
.hot-feat-name { font-size: 17px; font-weight: 700; color: #fff; line-height: 1.3; display: block; }
/* 固定寬度 auto-fill（185px，即原本 5 欄在 1280px 容器下的實際寬度，見 CLAUDE.md §35）：
   容器不設 max-width 後不能再用 repeat(5,1fr)，那樣寬螢幕下卡片會被拉得又寬又扁
   （使用者回報過這個問題）。改成固定寬度後欄數會隨可用寬度增加，所以模板那邊把
   {maccms:vod num} 從 11 提高到 31，確保有足夠資料可以多開幾欄；固定列高
   grid-auto-rows + overflow:hidden 讓超過 2 排的多餘項目（資料抓多了、但畫面只有
   350px 高放不下）直接被裁掉，不會撐高 .hot-block，維持原本「精選圖＋2 排縮圖」的版面比例。
   168px = 原本 grid-template-rows:repeat(2,1fr) 在 350px 高、扣掉一條 14px row-gap
   後平分兩排的實際高度（(350-14)/2），不是天真地拿 350/2，避免第二排被 overflow:hidden
   多裁掉幾像素。 */
.hot-grid {
  flex: 1; display: grid;
  grid-template-columns: repeat(auto-fill, 185px);
  grid-auto-rows: 168px;
  justify-content: start;
  overflow: hidden;
  gap: 14px 12px;
  list-style: none; padding: 0; margin: 0;
}
.hot-grid .video-item { display: flex; flex-direction: column; min-height: 0; }
.hot-grid .video-cover { aspect-ratio: unset; height: 115px; flex: none; }
.hot-grid .video-con { flex-shrink: 0; padding: 4px 0; }
@media (max-width: 767px) {
  .hot-block { height: auto; }
  .hot-feat-card { display: none; }
  .hot-grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto; gap: 10px 8px; overflow: visible; }
  /* 桌面版把 {maccms:vod num} 從 11 提高到 31 是為了寬螢幕多開幾欄用的（見上面桌面版
     .hot-grid 的註解），手機版沒有裁切機制（grid-template-rows:auto 不會被 overflow:hidden
     裁掉），資料變多會讓手機版多長出好幾排，所以手機版額外用 nth-child 只保留原本的
     前 10 筆（比照改動前 num=11 扣掉 1 筆精選圖之後手機版原本看到的數量），維持原本手機版版面。 */
  .hot-grid .video-item:nth-child(n+11) { display: none; }
  .hot-grid .video-cover { aspect-ratio: 2/3; flex: unset; }
  .hot-grid .video-con { padding: unset; }
}
/* ================================ */
.video-item { position: relative; min-width: 0; }
/* tp42 卡片（參考 video.360kan.com 直式海報 224×314）：封面右下狀態徽章；下方粗體片名＋灰色一句簡介 */
.video-cover {
  display: block; width: 100%; position: relative; overflow: hidden;
  background: var(--bg-elevated); border-radius: var(--radius-sm);
  aspect-ratio: 224 / 314;
}
.video-cover img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .35s ease;
}
.video-item:hover .video-cover img { transform: scale(1.05); }
.video-mask {
  position: absolute; bottom: 0; left: 0; right: 0; height: 30%;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.55) 100%);
  pointer-events: none; z-index: 1;
}
.video-badge-tl { position: absolute; top: 0; left: 0; display: flex; gap: 4px; z-index: 2; }
.vbadge { padding: 3px 7px; font-size: 10px; font-weight: 700; line-height: 1.5; }
.vbadge--year { background: rgba(0,0,0,.6); color: #fff; border-radius: 0 0 var(--radius-sm) 0; }
.vbadge--type { background: var(--accent); color: #fff; border-radius: 0 0 var(--radius-sm) 0; }
/* 右下角狀態（正片／更新至N集，取自 vod_remarks），白字疊在底部漸層上（參考站 .txt 12px 白） */
.video-badge-hd {
  position: absolute; right: 8px; bottom: 6px; z-index: 2;
  max-width: calc(100% - 16px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 12px; line-height: 20px; color: #fff;
}
.video-con { margin-top: 8px; padding: 0 4px; }
.video-con-tit {
  display: block; font-size: 16px; font-weight: 700; line-height: 18px; color: var(--text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s;
}
.video-item:hover .video-con-tit { color: var(--accent); }
.video-con-subtitle,
.video-con-meta {
  margin-top: 6px; font-size: 14px; line-height: 18px; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 767px) {
  .video-con { padding: 0 2px; }
  .video-con-tit { font-size: 14px; }
  .video-con-meta { font-size: 12px; margin-top: 4px; }
}

/* ===== tp42 首頁分類區塊（參考 video.360kan.com「★热门电影」＋右側「电影排行榜」）===== */
.home-body { padding: 24px 0 40px; }
.hs-sec { display: flex; align-items: flex-start; gap: 24px; margin-bottom: 48px; }   /* 區塊間距 48px：使用者要求比基線 24px 大 */
/* 首頁下方的資訊／專題／排行榜／友情鏈接（.mod.margin-t-20）也用同一個 48px，整頁一個節奏（強制20.1） */
.home-body > .mod.margin-t-20 { margin-top: 48px; }
.hs-main { flex: 1; min-width: 0; }
.hs-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.hs-title { font-size: 24px; font-weight: 400; line-height: 32px; color: var(--text-1); }
/* 標題旁「更多 ›」：連該分類的片庫（篩選頁）；右側排行榜的「查看更多」另連排行榜頁 */
.hs-more { display: inline-flex; align-items: center; gap: 1px; font-size: 13px; color: var(--text-3); }
.hs-more .mac-icon { font-size: 12px; }
.hs-more:hover { color: var(--accent); }
.hs-title a { display: inline-flex; align-items: center; color: inherit; }
.hs-title a:hover { color: var(--accent); }
/* 參考站標題前「大小兩顆綠星」圖示 */
.hs-stars { position: relative; display: inline-block; width: 34px; height: 24px; margin-right: 2px; color: var(--accent); }
.hs-stars .mac-icon:first-child { position: absolute; left: 0; top: 0; font-size: 24px; }
.hs-stars .mac-icon:last-child  { position: absolute; left: 18px; bottom: 0; font-size: 14px; color: #2fd4a6; }
.hs-grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px 12px; list-style: none; margin: 0; padding: 0;
}
.hs-grid > li { min-width: 0; }

/* 右側排行榜（widget/rank_side）：斜體大數字（參考站是圖片字，以 Impact 系粗斜體代替），前三紅、其餘淺灰 */
.hr-rank { flex: 0 0 230px; min-width: 0; }
.hr-rank-hd { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.hr-rank-title { font-size: 24px; font-weight: 400; line-height: 32px; color: var(--text-1); }
.hr-rank-more { font-size: 12px; color: var(--text-3); }
.hr-rank-more:hover { color: var(--accent); }
.hr-rank-list { list-style: none; margin: 0; padding: 0; }
.hr-rank-li + .hr-rank-li { border-top: 1px solid #eeeeee; }
.hr-rank-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
/* 名次數字字型：參考站是圖片字（粗方塊、4 開口、直立瘦高），以 Bungee 數字子集（OFL，本地 asset/fonts，
   見該目錄 README）＋ scaleX(.85) 收窄模擬；顏色依參考站：1 紅、2 橘紅、3 橘黃、其餘淺灰（CSS :nth-child） */
@font-face {
  font-family: "RankNum";
  src: url("../fonts/rank-num.ttf") format("truetype");
  font-display: swap;
}
.hr-num {
  flex: 0 0 30px; text-align: center;
  font-family: "RankNum", Impact, "Arial Black", sans-serif;
  font-size: 32px; font-weight: 400; line-height: 1; color: #d9d9d9;
  /* 使用者：要比照參考站方正、不要斜體 → 直立、橫向收窄 85%（參考站數字是瘦高方塊，Bungee 原本偏寬） */
  transform: scaleX(.85);
}
.hr-rank-li:nth-child(1) .hr-num { color: #e8211a; }
.hr-rank-li:nth-child(2) .hr-num { color: #ff5a14; }
.hr-rank-li:nth-child(3) .hr-num { color: #ffad0a; }
.hr-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hr-name { font-size: 16px; font-weight: 400; line-height: 20px; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hr-desc { font-size: 13px; line-height: 16px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hr-hits { flex-shrink: 0; display: inline-flex; align-items: center; gap: 2px; font-size: 12px; color: var(--rank-hot); }
.hr-hits .mac-icon { font-size: 12px; }
.hr-rank-item:hover .hr-name { color: var(--accent); }

@media (max-width: 1199px) {
  .hs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hs-grid > li:nth-child(n+9) { display: none; }   /* 4 欄時只顯示 2 排 8 張（廣告固定在前 3 張，不受影響） */
}
/* 手機：海報 3 欄（顯示全部 12 張）、排行榜移到片單下方整寬 */
@media (max-width: 767px) {
  .home-body { padding-top: 16px; }
  .hs-sec { flex-direction: column; gap: 16px; margin-bottom: 32px; }
  .home-body > .mod.margin-t-20 { margin-top: 32px; }
  .hs-title { font-size: 18px; line-height: 24px; }
  .hs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
  .hs-grid > li:nth-child(n+9) { display: list-item; }
  .hr-rank { flex-basis: auto; width: 100%; }
  .hr-rank-title { font-size: 18px; }
}

/* ===== Mini film list ===== */
.video-mini-film-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px 10px;
}
.video-mini-film-list .video-cover { aspect-ratio: 2/3; border-radius: var(--radius); }

/* ===== Sidebar slide-grid ===== */
.slide-grid { background: var(--bg-card); padding: 16px 14px; border-radius: var(--radius); }
.slide-grid + .slide-grid { margin-top: 16px; }
.slide-grid-title { padding-left: 12px; position: relative; margin-bottom: 10px; }
.slide-grid-title::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 16px; background: var(--accent); border-radius: 1px;
}
.slide-grid-name { font-size: 15px; font-weight: 700; color: var(--text-1); }
.recent-tag-lists { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.recent-tag-lists a {
  display: inline-block; padding: 3px 10px;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 2px;
  font-size: 12px; font-weight: 700; color: var(--text-2); transition: .15s;
}
.recent-tag-lists a:hover { color: #fff; background: var(--fill); border-color: var(--fill); }

/* ===== Search result ===== */
.film-item {
  display: flex; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.film-item .img {
  flex-shrink: 0; width: 90px; height: 126px;
  border-radius: var(--radius); overflow: hidden; background: var(--bg-elevated);
}
.film-item .img img { width: 100%; height: 100%; object-fit: cover; }
.film-item .info { flex: 1; min-width: 0; }
.film-item .title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.film-item .title a:hover { color: var(--accent); }
.film-item .des p { font-size: 13px; color: var(--text-2); line-height: 1.7; }
.film-item .des label { color: var(--text-3); }
.film-item .btn {
  display: inline-flex; align-items: center; margin-top: 10px;
  padding: 6px 16px; background: var(--fill); color: #fff;
  border-radius: var(--radius); font-size: 13px; font-weight: 600; transition: .15s;
}
.film-item .btn:hover { background: var(--fill-hover); color: #fff; }

/* ===== VOD Detail ===== */
.detail { background: var(--bg-card); padding: 20px; border-radius: var(--radius); }
/* 頂部海報＋資訊區塊背景改成「該片封面圖放大模糊」，比照使用者截圖（參考
   Netflix/Apple TV 那種毛玻璃背景卡片）。.detail-main-bg／.detail-main-overlay
   是兩個獨立的絕對定位圖層，不是同一個元素疊 ::after——如果模糊圖跟暗色遮罩
   疊在同一個元素上，CSS filter 建立的新堆疊上下文會把「這個元素自己的完整
   渲染結果」（含子元素/偽元素）一起模糊，暗色遮罩會被模糊化、邊緣跟著發散，
   不是想要的效果；分成兩層各自獨立，模糊只作用在圖片那層，遮罩維持銳利。
   圖片欄位優先用 vod_pic_slide（後台幻燈片橫幅圖，構圖比較適合裁成寬幅
   背景），沒有才退回 vod_pic（見 html 裡 $_dbgpic 判斷，跟 §4.18 Hero
   輪播圖同一套優先順序邏輯）。 */
.detail-main {
  position: relative; overflow: hidden; display: flex; gap: 20px;
  margin: -20px -20px 0; padding: 24px 20px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.detail-main-bg {
  position: absolute; inset: -30px; z-index: 0;
  background-size: cover; background-position: center;
  filter: blur(50px) brightness(.55) saturate(1.3);
  transform: scale(1.15);
}
.detail-main-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(6,6,7,.45);
}
.detail-main-left, .detail-main-right { position: relative; z-index: 2; }
.detail-main-left { flex-shrink: 0; width: 200px; }
.detail-main-left .cover {
  position: relative; width: 200px; border-radius: var(--radius);
  overflow: hidden; background: var(--bg-elevated);
}
.detail-main-left .cover img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.detail-main-left label { display: block; margin-top: 8px; text-align: center; font-size: 12px; color: var(--text-3); }
.detail-main-right { flex: 1; min-width: 0; }
.detail-main-right h1 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.intro p { font-size: 13px; color: var(--text-2); line-height: 2; }
.intro label.color-9 { color: var(--text-3); }
.intro-desc { margin-top: 10px; font-size: 13px; color: var(--text-2); line-height: 1.8; }
.detail-main-btn { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.detail-main-btn .btn {
  display: inline-flex; align-items: center;
  padding: 9px 24px; background: var(--fill); color: #fff;
  border-radius: var(--radius); font-size: 14px; font-weight: 700;
  transition: .15s; text-decoration: none; cursor: pointer; border: none;
}
.detail-main-btn .btn:hover { background: var(--fill-hover); color: #fff; }
.detail-main-btn .btn-dl {
  background: var(--accent-muted); color: var(--accent); border: 1px solid var(--accent);
}
.detail-main-btn .btn-dl:hover { background: var(--fill); color: #fff; }
.detail-main-btn .btn-share {
  background: var(--bg-elevated); color: var(--text-2); border: 1px solid var(--border);
}
.detail-main-btn .btn-share:hover { color: var(--accent); border-color: var(--accent); }

/* Episode buttons */
.tv-info-list ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tv-info-list li a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 5px 0; width: 72px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 13px; color: var(--text-2); transition: .15s;
}
.tv-info-list li a:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-muted); }
.tv-info-list li a.cur { color: var(--accent); border-color: var(--accent); font-weight: 700; }

/* ===== Play page ===== */
.tvplay { background: #000; }
.tvplay .inner-main { position: relative; aspect-ratio: 16/9; background: #000; }
.tvplay .inner-main > iframe,
.tvplay .inner-main > div { position: absolute; inset: 0; width: 100%; height: 100%; }
.filmplay-info { padding: 12px 0; }
.filmplay-info-common .title { font-size: 20px; font-weight: 700; }
.filmplay-info-desc { margin-top: 8px; font-size: 13px; color: var(--text-2); line-height: 1.7; }

/* ===== Filter / Show page ===== */
.mod-screen { padding: 4px 0 12px; }
.mod-screen-item { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.mod-screen-label { font-size: 13px; color: var(--text-3); white-space: nowrap; flex-shrink: 0; }
.mod-screen-list { display: flex; flex-wrap: wrap; gap: 4px; }
.mod-screen-link {
  padding: 3px 10px; border-radius: var(--radius);
  font-size: 13px; color: var(--text-2); transition: .15s;
}
.mod-screen-link:hover { color: var(--accent); background: var(--accent-muted); }
.mod-screen-link.cur { color: #fff; background: var(--fill); }

/* Sticky filter bar */
.vod-show-sticky {
  position: sticky; top: var(--sticky-h); z-index: 100;
  background: var(--bg-card); border-bottom: 1px solid var(--border);
  padding: 8px 0;
}

/* ============================================================
   HERO — 大圖左 + 熱門片單右（參考 miguvideo 頻道頁）
   ============================================================ */
/* .dk-hero 是滿版 banner：.main-area 因側欄浮層而有 padding-left，
   這裡用等量負 margin 把 hero 拉回貼齊螢幕左右邊（見 CLAUDE.md §22.1／§25），
   下面的 .warp/.container 內容維持原本的置中留白版型，不受影響。
   比照參考網站：桌面版完全去邊——不留 padding、.dk-hero-slides 不設 border-radius，
   讓圖片直接貼齊頂欄下緣與螢幕左右兩側，不要有黑邊/縫隙（使用者截圖回報過）；
   高度也從 440px 調高到 460px，比照參考網站量出來的高度。 */
.dk-hero {
  height: 460px; max-height: 460px;
  margin-left: calc(-1 * var(--sidebar-w));
  width: calc(100% + var(--sidebar-w));
}
.dk-hero-slides {
  width: 100%; height: 100%; position: relative; overflow: hidden;
  background: var(--bg-card);
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .5s ease;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
/* vod_pic 退回方案（沒有 vod_pic_slide 橫版banner圖時）：vod_pic 多半是直式海報，
   直接 cover 會裁掉大半張臉/主體，改用「模糊放大鋪滿底 + 原圖 contain 置中」的雙層作法，
   兩層都靠 background-image:inherit 繼承同一個 .hero-bg 的行內背景圖，不用另外複製一份 URL。 */
.hero-bg--fallback::before,
.hero-bg--fallback::after {
  content: ''; position: absolute; inset: 0;
  background-image: inherit; background-repeat: no-repeat; background-position: center;
}
.hero-bg--fallback::before {
  background-size: cover;
  filter: blur(28px) brightness(.55);
  transform: scale(1.15); /* 放大蓋掉模糊造成的邊緣透空 */
}
.hero-bg--fallback::after { background-size: contain; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.7) 0%, rgba(0,0,0,.15) 45%, transparent 75%),
              linear-gradient(to top, rgba(0,0,0,.9) 0%, transparent 55%);
}
/* left 從側欄右緣算起，避免播放/詳情等按鈕被浮在上層的半透明側欄擋住點擊（見 CLAUDE.md §25.2） */
.hero-content {
  position: absolute; bottom: 30px; left: 30px; z-index: 2; max-width: 55%;
}
.hero-badges { display: flex; gap: 6px; margin-bottom: 10px; }
.hb {
  display: inline-block; padding: 2px 8px;
  border-radius: 2px; font-size: 11px; font-weight: 700;
}
.hb--year { background: var(--accent); color: #fff; }
.hb--area { background: rgba(255,255,255,.12); color: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.25); }
.hero-title { font-size: 30px; font-weight: 800; color: #fff; margin-bottom: 8px; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.hero-meta { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 14px; line-height: 1.5; }
.hero-btns { display: flex; gap: 10px; }
.hero-play-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 22px; background: var(--accent); color: #fff;
  border-radius: 20px; font-size: 14px; font-weight: 700;
  transition: background .15s;
}
.hero-play-btn:hover { background: var(--accent-hover); color: #fff; }
.hero-detail-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px; background: rgba(255,255,255,.1); color: #fff;
  border: 1px solid rgba(255,255,255,.28); border-radius: 20px;
  font-size: 14px; transition: background .15s;
}
.hero-detail-btn:hover { background: rgba(255,255,255,.2); color: #fff; }

/* Hero controls */
/* 圓點位置比照參考網站放在右下角（不是左下角）——tp17 沒有側欄可扣，也沒有像
   tp13 那樣在旁邊放熱門片單面板，圓點是 hero 唯一的手動切換方式。 */
.hero-dots {
  position: absolute; bottom: 16px; right: 24px; z-index: 3;
  display: flex; gap: 5px;
}
.hero-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.4); transition: .2s;
}
.hero-dot.is-active { background: var(--accent); width: 20px; border-radius: 3px; }

/* ===== Hero 熱門片單 — 疊在 hero 圖片右上方，不佔獨立欄位（見 CLAUDE.md §25.2） =====
   跟 .hero-title/.hero-badges 一樣，這塊疊在照片上，配色固定用白色系，
   不跟著全站白底配色走（跟 .side-nav 的道理相同：疊在圖片上的東西配色固定）。 */
/* 背景比照參考網站的 .slide-nav：不是純色色塊，是「上下淡出、中段實色」的漸層
   （上緣/下緣 rgba(0,0,0,0) 全透明，11%～92% 是 rgba(0,0,0,.5)），讓面板跟 hero 圖片
   的交界處是柔化的漸層，不是一條生硬的色塊邊界。 */
/* width/padding/top 比照參考網站 .slide-nav 實測數值：230px 寬、上下 padding 20px、
   跟頂欄下緣固定距離 56px（不是百分比、不是靠 flex 置中算出來的，使用者實測拉伸 RWD
   這個距離都不會變，所以這裡直接寫死 56px，不要改成 % 或其他會隨容器高度變動的算法）。
   right 從 16px 調成 70px：右下角固定的 .fab-group（回頂/選單按鈕，見 §38）
   `right:20px` + 按鈕本身 40px 寬，左緣落在離螢幕右邊 60px 處，panel 貼 16px 會跟
   FAB 按鈕視覺上黏在一起（使用者截圖回報）；70px 這個值不是憑空選的，`main.css` 裡
   `.fab-qr-popup`（FAB 的彈出視窗）本來就是用 `right:70px` 來閃避同一組 FAB 按鈕，
   這裡沿用同一個既有慣例，不要改成其他數字。 */
.dk-hero-panel {
  position: absolute; top: 56px; right: 70px; bottom: 16px;
  width: 230px; z-index: 5;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,.5) 11%,
    rgba(0,0,0,.5) 92%,
    rgba(0,0,0,0) 100%);
  padding: 20px 0;
  border-radius: 8px;
  display: flex; flex-direction: column; overflow: hidden;
}
/* overflow-x:hidden 是關鍵：只設 overflow-y:auto 的話，瀏覽器會把 overflow-x 隱性算成
   auto（CSS 規範規則），.php-item 的 hover/is-active transform:scale(1.06) 又會讓內容
   的可捲動範圍稍微超出容器寬度，兩者疊加就會在面板底部多冒出一條水平捲軸；
   scrollbar-width/::-webkit-scrollbar 則是把「上下捲動」這個功能保留，但不顯示捲軸外觀
   （比照 .rail-track／.actor-hot-scroll 既有的隱藏捲軸寫法），參考網站的原始片單面板
   本來就看不到任何捲軸。 */
.dk-hero-panel-list {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  scrollbar-width: none;
}
.dk-hero-panel-list::-webkit-scrollbar { display: none; }
.php-item {
  display: block;
  padding: 8px 16px;
  transition: background .15s, transform .15s;
  transform-origin: left center;
}
.php-item-title {
  display: block; font-size: 13px; color: rgba(255,255,255,.7);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .15s, font-size .15s;
}
/* 副標題只在目前播放中／hover 時才顯示（見 CLAUDE.md §34） */
.php-item-sub {
  display: none; font-size: 11px; color: rgba(211,211,211,1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 2px;
}
.php-item.is-active,
.php-item:hover {
  transform: scale(1.06);
}
/* 比照參考網站：hover/is-active 的片名字級放大到 20px、顏色用參考站實際的
   #007aff（不是共用的 var(--accent) #4C8DFF，兩者色號不同，這裡指定成參考站的原色，
   不動全站共用的 --accent 變數，避免牽動其他地方）。 */
.php-item.is-active .php-item-title,
.php-item:hover .php-item-title {
  color: #007aff; font-weight: 700; font-size: 20px;
}
.php-item.is-active .php-item-sub,
.php-item:hover .php-item-sub {
  display: block;
}

/* ============================================================
   RAIL — 橫向捲動片單列（見 CLAUDE.md §23）
   ============================================================ */
/* 左右 padding 對齊下方 .mod 區塊的實際內縮（.mod 本身 padding:20px），
   否則 rail 沒有這層 padding 會比下面的卡片區塊「寬」，兩者內容邊界對不齊。 */
.rail { padding: 0 20px; }
/* 跟下一個區塊的間距縮小：.mod 本身有 20px 內距 + margin-top:20px，疊在一起會顯得
   rail 跟下面區塊隔太遠，這裡用相鄰選擇器把間距收窄，不動其餘區塊彼此的間距。 */
.rail + .margin-t-20 { margin-top: 8px; }
.rail-head { display: flex; align-items: center; margin-bottom: 14px; }
.rail-title { font-size: 20px; font-weight: 700; color: var(--text-1); }
.rail-nav { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.rail-counter { font-size: 12px; color: var(--text-3); }
.rail-counter .cur { color: var(--text-1); font-weight: 700; }
.rail-arrow {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); font-size: 14px; transition: .15s;
}
.rail-arrow:hover { color: #fff; background: var(--fill); border-color: var(--fill); }
.rail-arrow[disabled] { opacity: .35; pointer-events: none; }
/* ⚠️ overflow-x:auto 會連垂直方向一起裁切（CSS 規範：一軸設裁切值、另一軸沒明講時
   會被隱性算成 auto，見 CLAUDE.md §36 同一個坑），.hover-popout 疊在 .rail-card 上
   放大時如果比卡片本身高，上下露出的部分會被這裡的 overflow-x 直接切掉，
   放大效果看起來像被原卡片的窄小範圍夾住（使用者截圖回報過）。
   解法沿用 tp14_dark_black 的 .video-track 技巧：上下各加 60px 內距，
   再用等量負外距把版面拉回原位——裁切框因此上下各多出 60px 可以露出浮層，
   但 .rail-track 本身的版面佔位（外部看到的高度／跟其他區塊的間距）完全不變，
   兩者互相抵銷。60px 是估計值（.hover-popout 比卡片高出的量沒有精確量過），
   如果之後發現浮層還是被切到一點，或反過來蓋到上面 .kb-cat-head 的篩選列，
   調這裡的數字就好（padding 跟 margin 要維持同步，只改一邊會破壞抵銷）。
   水平方向仍然靠 vod_card.js 的 pop-left/pop-right 把浮層留在
   捲動容器可視範圍內，不是靠加大這個方向的裁切框（那樣做不到，捲動列本來就要裁水平）。 */
.rail-track {
  display: flex; gap: 14px; overflow-x: auto; scroll-behavior: smooth;
  padding: 60px 0 64px; margin: -60px 0 -64px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  /* pointer-events:none 在 .rail-track 本身、auto 在 .rail-card 身上：
     上面加的 60px/64px padding 讓 .rail-track 的實際盒子往上下各多蓋出一截
     （為了讓 .hover-popout 有地方溢出，見前面的說明），這塊透明的 padding 區域
     會往上疊到 .kb-cat-head（分類名稱／「更多」／篩選 pill 那一列）身上，即使
     看不到也照樣會吃掉點擊事件，導致「更多」連結點不到（使用者截圖回報過）。
     讓 .rail-track 本身不接收指標事件，只讓卡片（.rail-card）自己接收，
     這樣空白的 padding 區域點擊會直接穿透到底下/旁邊真正該接的元素。 */
  pointer-events: none;
}
.rail-track .rail-card { pointer-events: auto; }
.rail-track::-webkit-scrollbar { display: none; }
/* min-width:0 是關鍵：flex item 預設 min-width:auto，若卡片內文字用 white-space:nowrap
   （.rail-card-title 就是），瀏覽器會把「文字完整不換行的寬度」當成這個 flex item 的最小寬度，
   標題一長，卡片就會被撐開超過 flex-basis，變成畫面上「某張卡片異常寬大」的爆版。
   加 min-width:0 讓 flex-basis 才是實際寬度，標題的 overflow:hidden/ellipsis 才會生效。 */
/* 桌面版改回容器等分 6 份（不是固定像素）：使用者明確要求「一行固定 6 張，底部跟
   排行榜面板高度沒對齊到就算了」，比起「維持絕對固定的卡片寬度」更優先。用
   calc((100% - 5*14px)/6) 讓 6 張卡片＋5 個 14px 間距剛好等分整個 .rail-track 寬度，
   不管容器多寬都固定顯示 6 欄整，不會有切一半的第 7 張卡片（那是 v9/v10 想解決、
   固定寬度又重新引入的問題，這次換個優先順序，不用兩者兼顧）。
   ⚠️ 這裡是「桌面版專用」的等分算法——手機版（<767px）已經完全改用 CSS Grid
   （repeat(3,1fr)，見下面手機斷點），跟這條 calc() 是兩條独立的路徑，不會互相干擾，
   所以不用擔心等分算法在窄螢幕上出問題（那是 flex-basis 那次事故，現在手機版
   根本不會走到這條規則）。 */
.rail-card { position: relative; flex: 0 0 calc((100% - 5 * 14px) / 6); width: calc((100% - 5 * 14px) / 6); min-width: 0; scroll-snap-align: start; }
/* width:100% 只是「正常情況下」的寫法，.rail-card-link/.rail-card-thumb 不另外加
   max-width 上限了——手機版的「width:100% 算不出正確寬度、退回用 <img> 原始像素
   尺寸當寬度」那個爆版問題已經改用 CSS Grid 徹底繞開（不再經過這條 flex-basis 路徑），
   桌面版本來就沒出過這個問題，不需要為了防一個已經不會發生的情境而限制桌面版
   卡片可以長到的最大寬度（現在卡寬是 calc() 等分算出來的，不是固定值，硬加
   max-width 反而會在螢幕更寬時把卡片截斷成比其他 5 張還窄）。 */
.rail-card-link { display: block; width: 100%; }
.rail-card-thumb {
  position: relative; width: 100%; aspect-ratio: 2/3; border-radius: var(--radius);
  overflow: hidden; background: var(--bg-card);
}
.rail-card-thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .3s ease;
}
.rail-card:hover .rail-card-thumb img { transform: scale(1.06); }
.rail-card-badge {
  position: absolute; right: 6px; bottom: 6px;
  padding: 2px 7px; font-size: 11px; color: rgba(255,255,255,.9);
  background: rgba(0,0,0,.6); border-radius: 3px;
}
.rail-card-title {
  margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--text-1);
  transition: color .15s;
}
.rail-card:hover .rail-card-title { color: var(--accent); }

/* ============================================================
   卡片 hover 詳情浮層（.hover-popout）—— 參考 tp14_dark_black 的 .video-track
   / widget/vod_card.html / vod_card.js 移植，套用到 tp17 兩種卡片容器：
   `.video-item`（CSS Grid 格狀清單）與 `.rail-card`（.rail-track 橫向捲動列）。
   兩者都已經是 position:relative，直接把 .hover-popout 當絕對定位子層插入即可，
   不需要額外包一層 wrapper。
   進場動畫：scale(0.6667)→1，0.25s cubic-bezier(.25,1,.5,1)，delay 0.15s
   （hover 意圖延遲，滑鼠只是滑過去不會亂彈出來）。
   ============================================================ */
.hover-popout {
  display: none;
  position: absolute;
  top: 50%; left: 50%;
  z-index: 60;
  width: 320px; height: auto;
  opacity: 0; visibility: hidden; pointer-events: none;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,.18);   /* tp42 淺色：白卡＋淡陰影（原 dark 版 .6 太重） */
  transform: translate(-50%, -50%) scale(.6667);
  transform-origin: center center;
}
.hover-popout.pop-left  { left: 0; transform: translate(0, -50%) scale(.6667); transform-origin: left center; }
.hover-popout.pop-right { left: auto; right: 0; transform: translate(0, -50%) scale(.6667); transform-origin: right center; }

.video-item:hover .hover-popout,
.rail-card:hover .hover-popout {
  display: block; visibility: visible; pointer-events: auto;
  animation: popoutIn .25s cubic-bezier(.25,1,.5,1) forwards;
  animation-delay: .15s;
}
.video-item:hover .hover-popout.pop-left,  .rail-card:hover .hover-popout.pop-left  { animation-name: popoutInLeft; }
.video-item:hover .hover-popout.pop-right, .rail-card:hover .hover-popout.pop-right { animation-name: popoutInRight; }

@keyframes popoutIn      { from { opacity: 0; transform: translate(-50%,-50%) scale(.6667); } to { opacity: 1; transform: translate(-50%,-50%) scale(1); } }
@keyframes popoutInLeft  { from { opacity: 0; transform: translate(0,-50%) scale(.6667); }     to { opacity: 1; transform: translate(0,-50%) scale(1); } }
@keyframes popoutInRight { from { opacity: 0; transform: translate(0,-50%) scale(.6667); }     to { opacity: 1; transform: translate(0,-50%) scale(1); } }

.popout-inner { width: 100%; display: flex; flex-direction: column; background: #ffffff; border-radius: 10px; overflow: hidden; position: relative; }

.popout-cover { position: relative; display: block; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-card); }
.popout-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.popout-cover-shadow { position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; background: linear-gradient(rgba(255,255,255,0), #ffffff); }

.popout-title-wrap { position: relative; padding: 0 16px; margin-top: -32px; }
.popout-title {
  font-size: 16px; font-weight: 700; color: var(--text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.popout-mix { padding: 12px 16px 0; }
.popout-tags { display: flex; flex-wrap: nowrap; gap: 6px; overflow: hidden; }
.popout-tag { height: 20px; padding: 0 6px; border-radius: var(--radius-sm); font-size: 11px; line-height: 20px; white-space: nowrap; }
.popout-tag--main  { color: var(--accent); background: var(--accent-muted); }
.popout-tag--grey  { color: var(--text-2); background: var(--bg-elevated); }
.popout-tag--plain { color: var(--text-3); background: none; overflow: hidden; text-overflow: ellipsis; }
/* 年份：跟其他 plain 標籤不同，年份要「一定完整顯示」，不能被旁邊的類型標籤擠到
   靠 ellipsis 截斷——所以另外給實色底（不是 background:none）＋flex-shrink:0
   （.popout-tags 是 nowrap+overflow:hidden，預設 flex-shrink:1 遇到空間不夠時
   還是會被壓縮甚至整個被容器裁掉，這裡鎖住不讓它縮）。 */
/* 年份改用網站主色橘色實色底（--accent，不是 --accent-muted 那種淡橘色調——
   .popout-tag--main 的地區標籤已經在用 --accent-muted，年份用實色 --accent 才會
   跟地區標籤明顯區分開，不是兩個看起來很像的淡色塊）。 */
.popout-tag--year  { color: #fff; background: var(--accent); font-weight: 700; flex-shrink: 0; }

/* 演員／簡介各自獨立一行（不是合併成一段文字），比照參考網站：
   演員固定 1 行，超出寬度用省略號；簡介固定 2 行，超出用省略號。
   前面各自加「演员：」「简介：」label，用比內容淺一階的顏色跟內容區分開。 */
.popout-label { color: var(--text-3); }
.popout-actor {
  margin-top: 10px; font-size: 12px; line-height: 1.6; color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.popout-desc {
  margin-top: 4px; font-size: 12px; line-height: 1.7; color: var(--text-3);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.popout-score { display: flex; align-items: center; gap: 5px; padding: 10px 16px 0; font-size: 12px; color: var(--text-1); }
.popout-score .mac-icon { font-size: 13px; color: #F0B429; }
.popout-score .score-num { font-size: 13px; font-weight: 700; color: #F0B429; }

.popout-bottom { display: flex; align-items: center; gap: 10px; height: 62px; padding: 0 16px; }
.popout-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-elevated); color: var(--text-1); font-size: 16px;
  transition: background .15s, color .15s;
}
.popout-btn:hover { background: var(--accent); color: #fff; }
.popout-btn:first-child { background: var(--accent); color: #fff; }
.popout-btn:first-child:hover { background: var(--accent-hover); }

/* 平板／手機關掉浮層：觸控裝置沒有「滑鼠停留」這個狀態，瀏覽器會在點擊時合成一次
   :hover 並黏著，結果變成想點進詳情頁卻先跳出浮層擋住畫面。卡片本身仍是連結，
   點擊照樣進詳情頁，功能沒有消失，只是不做這層滑鼠專屬的預覽互動。 */
@media (max-width: 1024px) { .hover-popout { display: none !important; } }
@media (hover: none), (pointer: coarse) { .hover-popout { display: none !important; } }

/* ============================================================
   KB-CAT — 首頁「分类内容+该分类排行榜」區塊（比照 kuaibo8.com 首頁版式）
   每個頂層分類一個區塊：抬頭（圖示/名稱/更多/類型篩選 pill/頁碼)，
   下方左側沿用 .rail 橫向片單、右側固定寬度排行榜面板。
   ============================================================ */
.kb-cat { padding: 20px; background: var(--bg-card); border-radius: var(--radius); }
.kb-cat + .kb-cat, .kb-cat + .mod, .mod + .kb-cat { margin-top: 24px; }   /* 模組間距統一 24px（強制20.1／decisions） */
/* tp33：強制單行（拿掉 flex-wrap:wrap）——比照參考站截圖標題跟類型 pill
   列永遠在同一行，pills 本來就是 flex:1;min-width:0 可以自己縮、內部靠
   .kb-cat-pills 的 overflow-x:auto 處理溢出，不需要／不應該讓整列折行。 */
.kb-cat-head { display: flex; align-items: center; flex-wrap: nowrap; gap: 14px; margin-bottom: 16px; }
.kb-cat-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 20px; font-weight: 700; color: var(--text-1); flex-shrink: 0;
}
.kb-cat-title .mac-icon { color: var(--accent); }
.kb-cat-title a { color: inherit; }
.kb-cat-more {
  font-size: 13px; color: var(--text-3); display: flex; align-items: center; gap: 2px;
  flex-shrink: 0; transition: color .15s;
}
.kb-cat-more:hover { color: var(--accent); }
/* .kb-cat-pills-wrap 取代舊的 .kb-cat-pills 直接放在 .kb-cat-head 裡的寫法——分類多的
   時候 flex-wrap:wrap 會擠成兩行甚至更多，把整個 head 撐高、跟旁邊的「更多」/翻頁
   計數器對不齊（使用者截圖回報過）。改成單行 + 左右箭頭捲動，視覺上比照
   vod/show.html 篩選列「按鈕點擊翻頁」的呈現方式，箭頭沿用 .rail-arrow 的圓形樣式
   （純視覺共用 class，JS 行為不共用——見下方 kb-pills.js 的獨立實作，不能跟
   rail.js 用同一組 .rail-arrow--prev/--next，否則同一個 .kb-cat-head 裡會有兩組
   同名 class，rail.js 的 section.querySelector 只抓得到第一組，會把翻頁箭頭跟
   影片 rail 的箭頭綁在一起，點擊會同時捲動兩條軌道）。 */
.kb-cat-pills-wrap { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.kb-cat-pills {
  display: flex; flex-wrap: nowrap; gap: 8px; min-width: 0;
  overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none;
}
.kb-cat-pills::-webkit-scrollbar { display: none; }
.kb-pills-arrow { width: 24px; height: 24px; font-size: 12px; flex-shrink: 0; }
.kb-pill {
  padding: 5px 14px; border-radius: 16px; font-size: 13px;
  background: var(--bg-elevated); color: var(--text-2); white-space: nowrap;
  transition: .15s;
}
.kb-pill:hover, .kb-pill.is-active { color: #fff; background: var(--accent); }
.kb-cat-nav { margin-left: auto; flex-shrink: 0; }

/* .kb-cat-body／.kb-cat-rail／.kb-cat-nav 之後不再用了——分類片單改成不分頁的
   8 欄 grid（見 index/index.html .kb-cat 的調整，使用者截圖回報要拿掉每個分類
   旁邊的排行榜側欄跟橫向捲動），這三條規則留著純粹是沒刪的死碼，之後確認不需要
   可以整段清掉。.kb-rank-panel／.kb-rank-head 還在用（下面新增的「今天熱播」
   區塊沿用同一組面板樣式），不要跟著一起刪。 */
.kb-cat-body { display: flex; gap: 20px; align-items: flex-start; }
.kb-cat-rail { flex: 1; min-width: 0; }
/* 分类区块左侧：9 列 × 2 行 = 18（与右侧 1+9 日榜同高）；≤1199 6 列（多余隐藏）、≤767 3 列 */
/* tp42：分類頁子類區塊 6 欄 × 2 排＝12（使用者：9 欄卡片太小；vod-type.md 4.3 允許、tp23 同例） */
.kb-cat-grid { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 12px; list-style: none; margin: 0; padding: 0; }
.kb-cat-grid > li { min-width: 0; }
/* 右侧日榜面板与左侧 9×2 网格等高：面板拉伸，10 行均分剩余高度（视口变化时卡片高度变了也能跟着对齐） */
@media (min-width: 1025px) {
  .kb-cat-body { align-items: stretch; }
  .kb-rank-panel { display: flex; flex-direction: column; padding-bottom: 6px; }
  .kb-rank-panel .rank-list { flex: 1; display: flex; flex-direction: column; }
  .kb-rank-panel .rank-li { flex: 1; display: flex; }
  .kb-rank-panel .rank-li-inner { flex: 1; align-items: center; padding-top: 0; padding-bottom: 0; }
}
@media (max-width: 1199px) {
  .kb-cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kb-cat-grid > li:nth-child(n+9) { display: none; }
}
@media (max-width: 767px) {
  .kb-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 8px; }
  .kb-cat-grid > li:nth-child(n+9) { display: list-item; }
}
.kb-rank-panel {
  flex-shrink: 0; width: 260px;
  background: var(--bg-elevated); border-radius: var(--radius);
  padding: 14px 0;
}
.kb-rank-head {
  display: flex; align-items: center; gap: 6px;
  padding: 0 16px 12px; margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
  font-size: 14px; font-weight: 700; color: var(--text-1);
}
.kb-rank-head .mac-icon { color: var(--accent); }
@media (max-width: 1024px) {
  .kb-cat-body { flex-direction: column; }
  .kb-rank-panel { width: 100%; }
}
@media (max-width: 767px) {
  .kb-cat { padding: 14px; }
  .kb-cat-pills-wrap { display: none; }
  /* 手機版空間有限，每個分類旁邊的小排行榜面板直接不顯示（完整榜單走首頁下方的
     「排行榜」大區塊／label/rank.html，不是拿掉功能，只是這個縮小版面板在手機
     上不划算）。 */
  .kb-rank-panel { display: none; }
}

/* ============================================================
   今天熱播（tp21 首頁新增，Hero 正下方）
   ============================================================ */
.th-section { padding: 20px; }
.th-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.th-title { font-size: 22px; font-weight: 800; color: var(--text-1); }
.th-subtitle { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.th-more { font-size: 13px; color: var(--text-3); display: flex; align-items: center; gap: 2px; flex-shrink: 0; transition: color .15s; }
.th-more:hover { color: var(--accent); }
/* 使用者要求移除右側「榜單排行」小面板，.th-body 底下現在只剩一個
   .th-grid，不再需要 9 欄 grid 分割左右兩塊，改回單純滿版。
   .th-rank-* 系列跟 .kb-rank-panel／.kb-rank-head（在 main.css 別處）都
   變成死碼，沒有刪，之後確認不需要可以整組清掉。 */
.th-body { display: block; }
.th-rank-list { list-style: none; padding: 0; margin: 0; }
.th-rank-item {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 20px; border-bottom: 1px solid var(--border);
}
.th-rank-item:last-child { border-bottom: none; }
.th-rank-num { width: 22px; text-align: center; font-size: 16px; font-weight: 700; color: var(--text-3); flex-shrink: 0; }
/* 前三名用主色粉紅，不是 .rl-num--gold/--silver/--bronze 那組金銀銅配色
   （使用者截圖回報這裡要跟著網站主色調，不是金銀銅三種不同顏色）。 */
.th-rank-num--top { color: var(--accent); }
/* 不再寫死 420px，改成 grid-column:span 3（.th-body 現在是 9 欄 grid，
   左邊影片格 span 6），寬度自動是容器的 3/9，會跟著響應式縮放。 */
.th-rank-panel { grid-column: span 3; width: auto; }
.th-rank-thumb {
  flex-shrink: 0; width: 64px; aspect-ratio: 2/3; border-radius: 4px;
  overflow: hidden; background: var(--bg-elevated); display: block;
}
.th-rank-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.th-rank-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.th-rank-name {
  font-size: 15px; color: var(--text-1); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; transition: color .15s;
}
.th-rank-item:hover .th-rank-name { color: var(--accent); }
.th-rank-sub { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-rank-score { display: flex; align-items: center; gap: 4px; font-size: 14px; color: #FFB800; flex-shrink: 0; }
.th-rank-score .mac-icon { font-size: 14px; }
@media (max-width: 767px) {
  .th-section { padding: 14px; }
}

/* ===== 语义化列表容器（ul/li 化后的重置）与首页杂项 ===== */
.rail-track { list-style: none; padding-left: 0; }
.art-home-grid, .topic-grid, .rank-home-grid { list-style: none; margin-top: 0; margin-bottom: 0; padding-left: 0; }
.topic-grid > li, .rank-home-grid > li { min-width: 0; }
.topic-grid > li > .topic-card, .rank-home-grid > li > .rank-col { height: 100%; }
.home-wrap { padding: 20px 0 40px; }
.friend-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: 4px; }
.friend-links a { font-size: 13px; color: var(--text-3); }
.friend-links a:hover { color: var(--accent); }
.hb--remarks { background: rgba(0,0,0,.45); color: rgba(255,255,255,.85); }
.hero-title a { color: inherit; }

/* 搜索输入框下拉（强制18.2）：序列式、一行一条、左侧序号、历史在前热门在后 */
.dk-search { position: relative; }
/* tp21 顶栏搜索是 overflow:hidden 的胶囊，下拉浮层必须放行 */
.dk-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-light); 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 .sd-group + .sd-group { border-top: 1px solid var(--border); 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: var(--bg-input); }
.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); }

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-page); border-top: 1px solid var(--border);
  padding: 24px 0; text-align: center;
  color: var(--text-3); font-size: 13px;
}
.site-footer p { margin: 4px 0; line-height: 1.8; }
.site-footer a { color: var(--text-3); transition: color .15s; }
.site-footer a:hover { color: var(--accent); }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 10px 0; }

/* ===== FAB ===== */
.fab-group {
  position: fixed; right: 20px; bottom: 80px; z-index: 100;
  display: flex; flex-direction: column; gap: 8px;
}
.fab-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-2); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: .2s;
}
.fab-btn:hover { background: var(--fill); border-color: var(--fill); color: #fff; }
.fab-qr-popup {
  display: none; position: fixed; right: 70px; bottom: 120px; z-index: 101;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px; text-align: center;
  font-size: 13px; color: var(--text-2); box-shadow: var(--shadow-card);
}
.fab-qr-popup.is-open { display: block; }   /* tp42：原本缺這條，footer.js 加 is-open 也不會顯示（彈窗從來沒出現過） */
.fab-qr-popup img { width: 100px; height: 100px; margin: 8px auto 0; }
.fab-qr-popup img { display: block; image-rendering: pixelated; }

/* ===== Mobile tabbar ===== */
.mobile-tabbar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  height: 56px; background: var(--bg-card);
  border-top: 1px solid var(--border); z-index: 350;
  justify-content: space-around; align-items: center;
}
.mtb-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 2px;
  font-size: 11px; color: var(--text-3); padding: 6px 0;
  transition: color .15s;
}
.mtb-item .mac-icon { font-size: 22px; }
.mtb-item:hover, .mtb-item.is-active { color: var(--accent); }

/* ===== Auth page (user/login, user/reg — 獨立頁面版本，重用 login-modal-box 樣式) ===== */
.auth-page {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - var(--topbar-h)); padding: 40px 16px;
}
.auth-page .login-modal-box { width: 380px; max-width: 100%; }
.auth-page .jump-error { padding: 10px 20px 0; font-size: 13px; color: var(--accent); }

/* ===== Login / Logout Modal ===== */
.login-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.75); z-index: 700;
  align-items: center; justify-content: center;
}
.login-modal-overlay.is-open { display: flex; }
.login-modal-box {
  width: 360px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; position: relative;
}
.login-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
}
.login-modal-title { font-size: 16px; font-weight: 700; }
.modal-close-btn { font-size: 20px; color: var(--text-3); }
.login-modal-body { padding: 24px 20px; }
.login-form-group { margin-bottom: 14px; }
.login-form-group label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.login-form-group input {
  width: 100%; height: 40px; padding: 0 12px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text-1); font-size: 14px; outline: none;
}
.login-form-group input:focus { border-color: var(--accent); }
.login-submit {
  width: 100%; height: 42px;
  background: var(--fill); color: #fff;
  border-radius: var(--radius); font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background .15s; border: none;
}
.login-submit:hover { background: var(--fill-hover); }
.login-footer-links { margin-top: 12px; display: flex; justify-content: space-between; font-size: 13px; }
.login-footer-links a { color: var(--text-3); }
.login-footer-links a:hover { color: var(--accent); }

/* ===== Rank Widget（首頁排行榜區塊，widget/rank_col_home.html 專用——
   label/rank.html 自己的排行榜是完全獨立的另一組 widget/CSS，見
   label_rank.css 的 .rank-col／.rank-li 系列，class 名稱刻意不同，兩邊
   互不影響，這裡的改動不會波及 label/rank.html） =====
   比照參考站截圖重新設計：欄頭改成「片名＋居中置底短橫線」；每一列（含
   第 1 名）都是整條可點擊的 <a>，不只有名稱本身可點；拿掉熱度數字，改成
   名稱下方一行狀態文字（vod_remarks，如「已完结」／「更新至12集」），
   右側加一個 chevron 圖示暗示可點擊；第 1 名維持封面縮圖（使用者明確
   要求跟參考站不同的地方，參考站整組都是純文字列表）。 */
.rank-home-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rank-col { }
.rank-col-head {
  text-align: center;
  margin-bottom: 12px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.rank-col-name { font-size: 16px; font-weight: 700; color: var(--text-1); }
.rank-col-bar { display: block; width: 16px; height: 2px; margin: 6px auto 0; background: var(--accent); border-radius: 1px; }

/* 懸停互動效果（需求方要求）：整列背景輕微高亮＋文字變主題色＋右側 chevron
   往右輕移，三個訊號一起給，比單純文字變色更明顯地告訴使用者「這整條可以
   點」，同一組規則套用在第 1 名（.rank-top-item）跟第 2~N 名（.rank-list-
   item）兩種列上，視覺語言統一。 */
.rank-top-item {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 4px; border-radius: var(--radius);
  transition: background .15s;
}
.rank-top-item:hover { background: var(--bg-elevated); }
.rank-top-item:hover .rank-top-name { color: var(--accent); }
.rank-top-item:hover .rank-chevron { color: var(--accent); transform: translateX(3px); }
.rank-top-cover {
  flex-shrink: 0; width: 44px; border-radius: 4px;
  overflow: hidden; position: relative; aspect-ratio: 2/3;
  background: var(--bg-elevated);
}
.rank-top-cover img { width: 100%; height: 100%; object-fit: cover; }
.rank-top-crown { position: absolute; top: 2px; left: 2px; font-size: 12px; color: #F0B429; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.rank-top-info { flex: 1; min-width: 0; }
.rank-top-name {
  font-size: 14px; font-weight: 700; color: var(--text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .15s;
}
.rank-top-status { font-size: 12px; color: var(--text-3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rank-list-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 4px; border-bottom: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background .15s;
}
.rank-list-item:last-child { border-bottom: none; }
.rank-list-item:hover { background: var(--bg-elevated); }
.rank-list-item:hover .rank-name { color: var(--accent); }
.rank-list-item:hover .rank-chevron { color: var(--accent); transform: translateX(3px); }
/* 使用者直接給了參考站的實際寫法（.module-paper-item-num）：大字級、
   粗體、Impact/Roboto-Black 這類「海報數字」字體（沒有的話自動退回
   系統無襯線粗體，不影響排版），比原本 14px 的小數字更接近參考站排行榜
   「數字本身是視覺主角」的風格。 */
.rank-num {
  font-family: "Impact", "Roboto-Black", "Helvetica Neue", sans-serif;
  font-weight: 700;
  position: relative;
  font-size: 24px; line-height: 1;
  width: 50px; flex-shrink: 0;
  text-align: center; color: var(--text-3);
}
/* 名次色比照參考站截圖：紅→橙→黃的熱度漸層（不是常見的金銀銅牌色），
   第 1 名本身已經改用封面卡（見上面 .rank-top-item），不會出現
   .rank-num.is-1，這裡只保留給其他也在用同一份 .rank-num 樣式、可能
   還是純數字列表的地方（例如之後改版時第 1 名退回純文字列表的情況），
   .is-2／.is-3 才是這次改版新增、實際會用到的。 */
.rank-num.is-1 { color: var(--accent); }
.rank-num.is-2 { color: #e8590c; }   /* tp42 白底：原 #FF8A3D 對比不足 */
.rank-num.is-3 { color: var(--text-warn); }   /* tp42 白底：原 #FFC53D 約 1.6:1 */
.rank-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rank-name {
  font-size: 13px; color: var(--text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .15s;
}
.rank-status { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-chevron { flex-shrink: 0; font-size: 14px; color: var(--text-3); transition: color .15s, transform .15s; }
.rank-more { display: block; text-align: center; font-size: 13px; color: var(--text-3); margin-top: 8px; transition: color .15s; }
.rank-more:hover { color: var(--accent); text-decoration: underline; }

/* ===== 热门排行（tp30 首頁單一總榜，widget/rank_top3.html）=====
   跟上面「Rank Widget」（widget/rank_col_home.html，每個頂層分類各一欄）
   是不同元件、不同版面（見 .claude/CLAUDE.md §2.4），排名數字沿用同一份
   .rank-num（大字級 Impact＋紅橙黃分色），版面骨架另外用 rk3- 前綴。 */
.rk3-section { margin-top: 24px; }
.rk3-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.rk3-title { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; color: var(--text-1); }
.rk3-more { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-3); transition: color .15s; }
.rk3-more:hover { color: var(--accent); }

/* 使用者截圖回報左右應該大約各半（不是 3:1）——.rk3-top3 自己是內層
   3 欄 grid，外層欄位只要改成 1fr 1fr，3 張卡片會自動被壓縮到只佔一半
   寬度，不用另外調卡片本身的尺寸。 */
.rk3-body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.rk3-top3 { grid-column: span 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rk3-card { display: block; }
.rk3-card-cover {
  position: relative; width: 100%; aspect-ratio: 2 / 3;
  border-radius: var(--radius); overflow: hidden; background: var(--bg-elevated);
  margin-bottom: 8px;
}
.rk3-card-cover img { width: 100%; height: 100%; object-fit: cover; }
/* 排名數字疊在封面左下角，蓋一層漸層底色確保任何封面配色下都看得清楚
   （沿用 .rank-num 的大字級/分色，這裡額外疊定位＋文字陰影）。 */
.rk3-card-num {
  position: absolute; left: 8px; bottom: 6px; width: auto;
  text-shadow: 0 2px 8px rgba(0,0,0,.8);
}
.rk3-card-title {
  font-size: 14px; font-weight: 600; color: var(--text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .15s;
}
.rk3-card:hover .rk3-card-title { color: var(--accent); }
.rk3-card-status { font-size: 12px; color: var(--text-3); margin-top: 2px; }

.rk3-list { grid-column: span 1; display: flex; flex-direction: column; }
.rk3-list-item { border-bottom: 1px solid var(--border); }
.rk3-list-item:last-child { border-bottom: none; }
.rk3-list-link {
  display: flex; align-items: center; gap: 10px; padding: 8px 4px;
  border-radius: var(--radius); transition: background .15s;
}
.rk3-list-link:hover { background: var(--bg-elevated); }
.rk3-list-link:hover .rk3-list-title { color: var(--accent); }
.rk3-list-thumb {
  flex-shrink: 0; width: 40px; aspect-ratio: 2 / 3; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--bg-elevated);
}
.rk3-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rk3-list-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rk3-list-title {
  font-size: 13px; color: var(--text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .15s;
}
.rk3-list-status { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk3-list-score { flex-shrink: 0; font-size: 14px; font-weight: 700; color: var(--score-mid); }

@media (max-width: 1024px) {
  .rk3-body { grid-template-columns: 1fr; }
  .rk3-list { grid-column: 1; }
}
@media (max-width: 600px) {
  .rk3-top3 { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .rk3-card-title { font-size: 12px; }
}
/* sidebar rank — vod/play, vod/detail */
.rank-col-more { font-size: 12px; font-weight: 400; color: var(--text-3); margin-left: auto; transition: color .15s; }
.rank-col-more:hover { color: var(--accent); text-decoration: underline; }
.rank-top1 { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; text-decoration: none; }
.rt1-thumb { flex-shrink: 0; width: 90px; border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 2/3; background: var(--bg-elevated); }
.rt1-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rt1-crown { position: absolute; top: 4px; left: 4px; font-size: 15px; color: #F0B429; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.rt1-info { flex: 1; min-width: 0; }
.rt1-name { font-size: 13px; font-weight: 700; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0 0 4px; display: block; }
.rt1-meta { font-size: 11px; color: var(--text-3); margin: 0 0 2px; }
.rt1-status { font-size: 11px; color: var(--score-mid, #85c13a); margin: 0 0 4px; }
.rt1-hits { font-size: 12px; color: var(--accent); display: flex; align-items: center; gap: 3px; }
.rank-list { list-style: none; padding: 0; margin: 0; }
.rank-li { border-bottom: 1px solid var(--border); }
.rank-li:last-child { border-bottom: none; }
.rank-li-inner { display: flex; align-items: center; gap: 8px; padding: 6px 0; text-decoration: none; }
.rl-num { width: 20px; text-align: center; font-size: 13px; font-weight: 700; flex-shrink: 0; color: var(--text-3); }
/* tp33：前三名（第二輪截圖比對，使用者直接給值）——綠色＋16px＋900，
   不分 1/2/3 各自配色，三名統一同一種顏色。 */
.kb-rank-panel .rank-li:nth-child(-n+3) .rl-num { color: var(--accent); font-size: 16px; font-weight: 900; }
.rl-name { flex: 1; min-width: 0; font-size: 13px; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s; }
.rank-li-inner:hover .rl-name { color: var(--accent); }
/* 豆瓣分數（取代原本的集數/狀態文字，見 widget/kb_rank_panel.html 說明），
   跟分數同色系的綠，單行靠右，不佔額外一行。 */
.rl-score { flex-shrink: 0; font-size: 13px; font-weight: 700; color: var(--accent); }   /* tp42：原 tp33 淺綠 #8DF0AA 在白底對比不足 */

/* ===== Art card ===== */
.art-home-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 12px; }
.art-card { display: flex; gap: 10px; align-items: flex-start; }
.art-card-cover { flex-shrink: 0; width: 80px; height: 54px; border-radius: var(--radius); overflow: hidden; background: var(--bg-elevated); }
.art-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.art-card-info { flex: 1; min-width: 0; }
.art-card-title {
  font-size: 13px; font-weight: 600; color: var(--text-1);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .15s;
}
.art-card-title:hover { color: var(--accent); }
.art-card-meta { font-size: 11px; color: var(--text-3); margin-top: 4px; }

/* ===== Topic card ===== */
.topic-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.topic-card { display: block; text-decoration: none; border-radius: var(--radius); overflow: hidden; background: var(--bg-card); transition: transform .2s; }
.topic-card:hover { transform: translateY(-2px); }
.topic-card-thumb { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.topic-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; display: block; }
.topic-card:hover .topic-card-thumb img { transform: scale(1.05); }
.topic-card-name {
  padding: 8px 10px 0;
  font-size: 13px; font-weight: 600; color: var(--text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .15s;
}
.topic-card:hover .topic-card-name { color: var(--accent); }
/* 縮圖左上角常駐播放圖示（不是 hover 才出現），比照參考網站 kuaibo8.com 首頁專題卡片 */
/* 演員縮圖堆疊：topic/detail.html 的 hero 資訊列＋topic/index.html／首頁專題卡片
   縮圖裡的迷你版都共用這組 base class（放 main.css 而不是 topic_detail.css，
   因為不是每個用到它的頁面都有載入 topic_detail.css）。 */
.td-cast-stack { display: flex; align-items: center; }
.td-cast-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-elevated); border: 2px solid var(--bg-body);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 15px; margin-left: -8px;
}
.td-cast-avatar:first-child { margin-left: 0; }

.topic-card-play {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}
.topic-card-meta { padding: 4px 10px 10px; font-size: 12px; color: var(--text-3); }
.sidebar-topic-grid { display: flex; flex-direction: column; gap: 10px; }
.topic-card-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.4); opacity: 0; transition: opacity .2s; font-size: 24px; color: #fff; }
.topic-card:hover .topic-card-overlay { opacity: 1; }
.topic-card-count { position: absolute; bottom: 6px; right: 6px; font-size: 11px; color: #fff; background: rgba(0,0,0,.65); padding: 2px 6px; border-radius: 3px; }
.topic-card-body { padding: 6px 10px; }
.topic-card-title { font-size: 13px; font-weight: 600; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; transition: color .15s; }
.topic-card:hover .topic-card-title { color: var(--accent); }

/* ===== Actor card ===== */
.actor-card { text-align: center; }
.actor-card-cover {
  border-radius: 50%; overflow: hidden; aspect-ratio: 1/1;
  background: var(--bg-elevated); margin-bottom: 6px;
}
.actor-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.actor-card-name { font-size: 13px; color: var(--text-1); }

/* ===== Comment ===== */
.comment-form { margin-bottom: 20px; }
.comment-form textarea {
  width: 100%; height: 80px; padding: 10px 12px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text-1); font-size: 14px;
  resize: vertical; outline: none;
}
.comment-form textarea:focus { border-color: var(--accent); }
.comment-submit {
  margin-top: 8px; padding: 8px 24px;
  background: var(--fill); color: #fff; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s;
}
.comment-submit:hover { background: var(--fill-hover); }
.comment-list { }
.comment-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.comment-item:last-child { border-bottom: none; }
.comment-meta { font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.comment-text { font-size: 14px; color: var(--text-2); line-height: 1.7; }

/* ===== Pagination（widget/pagination 单一来源：pg-btn / pg-num / pg-info）===== */
.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.pg-btn, .pg-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 14px; color: var(--text-2); transition: .15s;
}
.pg-btn:hover, .pg-num:hover { color: var(--accent); border-color: var(--accent); }
.pg-num.is-active { background: var(--fill); border-color: var(--fill); color: #fff; font-weight: 700; }
.pg-info { width: 100%; text-align: center; margin-top: 6px; font-size: 12px; color: var(--text-3); }
/* 列表页 9 列网格（分类/筛选/搜索共用）：≤1199 6 列、≤767 3 列 */
.vod-grid { display: grid; gap: 14px 12px; list-style: none; margin: 0; padding: 0; }
.vod-grid > li { min-width: 0; }
.vod-grid--c9 { grid-template-columns: repeat(9, minmax(0, 1fr)); }
@media (max-width: 1199px) { .vod-grid--c9 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 767px) { .vod-grid--c9 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 8px; } }
.kb-cat-count { margin-left: 8px; font-size: 12px; font-weight: 400; color: var(--text-3); }
.kb-cat-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; }

/* ===== Content-block animate ===== */
.content-block.will-observe { opacity: 0; transform: translateY(16px); transition: opacity .4s ease, transform .4s ease; }
.content-block.will-observe.is-visible { opacity: 1; transform: none; }

/* ===== Utility ===== */
.ellipsis-1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ellipsis-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.clearfix::after { content: ""; display: table; clear: both; }
.shadow { box-shadow: var(--shadow-card); }
.color-9 { color: var(--text-3); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }

/* ===== Responsive =====
   tp17 沒有側欄（--sidebar-w 固定 0px，見 :root），這裡不用再像 tp13 那樣在斷點裡
   覆寫 --sidebar-w／關 .side-nav。 */
@media (max-width: 1024px) {
  :root { --container-w: 100%; }
  .rank-home-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  :root { --sticky-h: 45px; }   /* 手機：釘在頂端的導覽列 42px＋線（頂欄在文件流內，--topbar-h 維持 0） */
  .dk-hero { flex-direction: column; height: auto; padding: 10px 12px 0; }
  .dk-hero-slides { height: 210px; flex: none; border-radius: 8px; }
  .dk-hero-panel { display: none; }
  /* 手機版 banner 只留圖，文字/按鈕都藏起來，整張圖點擊直接跳轉（heroTap，見 §28） */
  .hero-badges, .hero-title, .hero-meta, .hero-btns { display: none; }
  .hero-slide { cursor: pointer; }
  .mobile-tabbar { display: flex; }
  .page-content { padding-bottom: 56px; }
  .video-film-list { grid-template-columns: repeat(3, 1fr); gap: 10px 8px; }
  .rank-home-grid { grid-template-columns: repeat(2, 1fr); }
  .art-home-grid { grid-template-columns: repeat(2, 1fr); }
  .topic-grid { grid-template-columns: repeat(3, 1fr); }
  .page-body { flex-direction: column; }
  .mian-sidebar { width: 100%; }
  .main-inner { max-width: calc(100vw - 32px); }
  .detail-main { flex-direction: column; }
  .detail-main-left { width: 100%; display: flex; flex-direction: column; align-items: center; }
  .detail-main-left .cover { width: 160px; }
  .detail-main-right { width: 100%; }
  /* 手機版放棄橫向捲動＋flex-basis 那一套算法，改用跟 .video-film-list 完全一樣、
     全站已經驗證過穩定的 CSS Grid 三欄寫法（見 tp13_dark_black 同一個 class 的手機版
     斷點，數值都是照抄）。連續兩次用 flex:0 0 calc()／再疊 width 明寫都沒有解決
     「一行變 1 張」的問題（使用者截圖回報過兩次），與其繼續在 flex-basis 這條路上猜，
     不如直接换成已經反覆證明可靠的 Grid 版型——Grid 的欄寬是由 grid-template-columns
     直接决定，不像 flex-basis 需要看容器怎麼分配剩餘空間，這裡沒有「算不出正確寬度」
     這一步。橫向翻頁箭頭在手機版本來就不好用（觸控滑動比按小箭頭直覺），改成滿版換行
     也同時解決了那個 UX 問題，不是純粹繞過 bug。 */
  .rail-track {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 8px;
    overflow-x: visible; overflow-y: visible;
    padding: 0; margin: 0;
  }
  .rail-card { position: relative; flex: none; width: auto; scroll-snap-align: none; }
  /* 橫向翻頁計數/箭頭在網格版型下沒有意義（已經不是橫向捲動），跟著隱藏；
     rail.js 找不到 .rail-arrow 也不會報錯（都已經是 if(btn) 防呆寫法）。 */
  .kb-cat-nav { display: none; }
}
@media (max-width: 480px) {
  .video-film-list { grid-template-columns: repeat(3, 1fr); }
  .art-home-grid { grid-template-columns: 1fr; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .rank-home-grid { grid-template-columns: 1fr; }
  /* 改版後預設就是緊湊的縮圖＋列表列樣式（見上面 Rank Widget 區塊），
     不再需要手機單欄時把封面放大到 110px 那種舊版「單欄有空間就放大」
     的邏輯——新版排行榜列高度是統一的緊湊列，跟桌面版視覺一致，這條
     斷點覆寫拿掉。 */
  .hm-card { flex: 0 0 calc((100% - 20px) / 3); }
}

/* ===== 資訊列表 art/type ===== */
@media (max-width: 480px) {
  .ali-thumb { width: 100px; }
  .ali-title { font-size: 13px; }
}

/* ===== 廣告區塊 ===== */
.site-ad {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; position: relative;
}
.site-ad::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--fill);
}
.site-ad--sidebar { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 18px; text-align: left; }
.site-ad--sidebar .site-ad-body { flex: 1; min-width: 0; }
.site-ad-label { display: inline-block; font-size: 9px; color: var(--fill); margin-bottom: 2px; letter-spacing: 1px; text-transform: uppercase; }
.site-ad-title { font-size: 13px; font-weight: 700; color: var(--text-1); margin-bottom: 2px; }
.site-ad-desc { font-size: 11px; color: var(--text-3); line-height: 1.5; }
.site-ad-btn { display: inline-flex; align-items: center; flex-shrink: 0; padding: 5px 12px; background: var(--fill); color: #fff; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; white-space: nowrap; transition: .18s; text-decoration: none; }
.site-ad-btn:hover { opacity: 0.85; color: #fff; }

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

/* ============================================================
   HERO SELECT（tp30）— 大圖展示區＋下方橫向片單，片單驅動大圖
   ============================================================
   跟 tp27 的 .hc-*（見 hero_select.js 說明）是完全不同的互動模式，這裡
   全新前綴 hs-，不沿用/不修改 .hc-* 任何一條規則（那組已經沒有 HTML
   在用，變成死碼，之後確認不需要可以整組刪掉，這裡先保留給尚未清理的
   舊版對照）。 */
.hs-hero {
  position: relative; height: 420px; overflow: hidden;
  background: #0D0F11;
}
.hs-hero-bg {
  position: absolute; inset: 0; display: block;
  background-size: cover; background-position: center;
  transition: background-image .2s ease;
}
/* ⚠️ 使用者截圖回報「banner 沒有點擊效果」——根因是這兩層純裝飾用的
   絕對定位圖層（漸層遮罩／標題文字）疊在 .hs-hero-bg（真正承接點擊的
   <a>）上面，DOM 順序在後面、預設又沒有排除點擊，滑鼠事件全部被這兩層
   攔截，永遠打不到底下的連結。這兩層本身沒有任何按鈕/連結需要接收點擊，
   加 pointer-events:none 讓點擊直接穿透到 .hs-hero-bg。 */
.hs-hero-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(6,6,7,.95) 0%, rgba(6,6,7,.35) 45%, rgba(6,6,7,.05) 75%);
}
.hs-hero-content {
  position: absolute; left: 32px; right: 32px; bottom: 28px; z-index: 2;
  pointer-events: none;
}
.hs-hero-title { font-size: 28px; font-weight: 800; color: #fff; margin-bottom: 8px; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.hs-hero-desc {
  font-size: 14px; color: rgba(255,255,255,.75); line-height: 1.6; max-width: 640px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 下方橫向片單：同時是「热门推荐」內容本身、也是切換 Hero 的操作列，
   點擊項目由 hero_select.js 處理，不整頁跳轉（<button> 不是 <a>，語意
   正確——這是「切換顯示內容」的動作，不是導覽連結）。 */
.hs-row {
  display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none;
  padding: 16px 20px; background: var(--bg-base);
}
.hs-row::-webkit-scrollbar { display: none; }
/* ⚠️ .hs-row-item 是 <button>，瀏覽器預設 display:inline-block（全站
   button reset 只清 cursor/border/background 等，沒有動 display），
   本身又是 flex item（flex-shrink:0）——flex item 預設 min-width:auto，
   在沒有明講 min-width:0 的情況下，瀏覽器會用「內容自然寬度」當下限，
   長片名文字撐開的寬度會蓋過 flex-basis，導致每張卡片實際寬度不一致
   （使用者截圖回報手機版縮圖大小不一）。這裡明講
   display:flex;flex-direction:column（縮圖/文字直排）＋
   min-width:0（关掉自动最小宽度）＋額外補一個明確的 width（跟
   flex-basis 同值，雙重保險），從根本讓每張卡片寬度只認 CSS 設的值，
   不受內容影響。 */
/* ⚠️ 卡片寬度不是寫死的 px（那樣改一次只能猜中某個特定螢幕寬度，換一台
   螢幕又要重猜）——使用者釐清「9」是指「畫面上一次要看到 9 張」這個
   視覺密度，不是資料筆數，也不是照抄參考站的實際 px 寬度。改成
   calc((100% - 8 個 gap) / 9)：不管容器實際多寬，一律精確排出 9 張，
   `.hs-row{gap:12px}` 的 8 個間距要在 calc 裡扣掉，flex 的百分比/calc
   寬度不會自動扣 gap。 */
.hs-row-item {
  display: flex; flex-direction: column;
  flex: 0 0 calc((100% - 8 * 12px) / 9);
  width: calc((100% - 8 * 12px) / 9);
  min-width: 0;
  text-align: left;
  border-radius: var(--radius); padding: 4px; border: 1px solid transparent;
  transition: border-color .15s, background .15s;
}
.hs-row-item:hover { background: var(--bg-elevated); }
/* 使用者截圖回報目前集框線用紅色（var(--accent)）跟參考站不同，改成白色
   ——只改框線顏色，片名文字維持原本的強調色，不是整組配色都改。 */
.hs-row-item.is-active { border-color: var(--text-1); background: var(--bg-elevated); }
.hs-row-thumb {
  width: 100%; flex-shrink: 0;
  aspect-ratio: 3 / 2; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--bg-elevated);
}
.hs-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hs-row-title {
  width: 100%; margin-top: 6px; font-size: 13px; color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .15s;
}
.hs-row-item.is-active .hs-row-title { color: var(--accent); font-weight: 600; }
/* 自動輪播進度條：比照參考站截圖，只有目前這張（is-active）才顯示＋跑
   動畫，平常（非 active）整條隱藏，不是「一直顯示、只是空的」。動畫時間
   AUTO_MS 要跟 hero_select.js 裡設定的自動切換秒數一致（目前是 5000ms），
   改其中一邊記得另一邊也要改，兩者沒有共用同一個設定來源。 */
.hs-row-progress {
  display: none; margin-top: 5px;
  width: 100%; height: 2px; border-radius: 1px;
  background: rgba(255,255,255,.2); overflow: hidden;
}
.hs-row-item.is-active .hs-row-progress { display: block; }
.hs-row-progress-fill { display: block; height: 100%; width: 0%; background: var(--text-1); }
.hs-row-item.is-active .hs-row-progress-fill { animation: hsRowProgress 5s linear forwards; }
@keyframes hsRowProgress { from { width: 0%; } to { width: 100%; } }

@media (max-width: 1024px) {
  .hs-hero { height: 320px; }
}
@media (max-width: 600px) {
  .hs-hero { height: 220px; }
  .hs-hero-title { font-size: 20px; }
  .hs-hero-desc { display: none; }
  /* 使用者截圖回報縮圖片單在手機模式太大——原本 110px 是直接沿用桌面
     斷點的尺寸調整，沒有另外對照參考站手機版實際大小；比照參考站截圖
     縮小到 76px（跟桌面版 150px 差距更大，讓一屏能看到更多張，符合
     手機版「片單當一整排小縮圖略覽」的用途，不是桌面版縮小版）。
     .hs-row 的 padding／gap 也跟著收窄，避免留白比縮圖本身還醒目。 */
  .hs-row-item { flex: 0 0 76px; width: 76px; padding: 3px; }
  .hs-row { gap: 8px; padding: 10px 12px; }
  .hs-row-title { font-size: 11px; margin-top: 4px; }
}

/* ============================================================
   HERO（tp42，參考 video.360kan.com 首頁頂部）— widget/hero_carousel.html＋hero_carousel.js
   ============================================================
   滿版橫幅 480px（參考站 181→661），背景 cover；右側 310px 深色半透明面板「重磅推荐」＋片名直列
   （參考站 .tabs-nav：項目 14px #ccc 行高 38px、左內距 20px；目前項 18px 粗體白字＋「｜簡介」）。
   slide 疊放淡入淡出（visibility 照 coding-rules 5.2 寫法）。 */
.dh-hero { position: relative; width: 100%; height: 480px; overflow: hidden; background: #2b2d31; }
.dh-slides { position: absolute; inset: 0; }
.dh-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  /* coding-rules 5.2：visibility 不寫成有時長的過渡——離開時延到淡出結束才 hidden，進場時立即 visible */
  transition: opacity .6s ease, visibility 0s linear .6s;
}
.dh-slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity .6s ease, visibility 0s linear 0s; }
.dh-bg {
  position: absolute; inset: 0; display: block;
  background-color: #2b2d31;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.dh-panel {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 3;
  width: 310px; padding: 64px 10px 0 10px;
  background: linear-gradient(90deg, rgba(0,0,0,0) 0, rgba(0,0,0,.55) 18%, rgba(0,0,0,.72) 100%);
  color: #fff;
}
.dh-panel-hd {
  display: flex; align-items: center; gap: 6px; padding-left: 10px;
  font-size: 18px; font-weight: 700; line-height: 38px; color: #fff;
}
.dh-panel-hd .mac-icon { font-size: 18px; color: #ff5a1f; }
.dh-names { list-style: none; margin: 0; padding: 0; }
.dh-name {
  display: flex; align-items: baseline; gap: 6px; min-width: 0;
  padding-left: 20px; line-height: 38px; color: #cccccc; white-space: nowrap; overflow: hidden;
}
.dh-name strong { flex-shrink: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 14px; font-weight: 400; }
.dh-name span { display: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 13px; color: #fff; }
.dh-name span::before { content: "| "; color: rgba(255,255,255,.7); }
.dh-name:hover { color: #fff; }
.dh-name.is-active { color: #fff; }
.dh-name.is-active strong { flex-shrink: 1; max-width: 60%; font-size: 18px; font-weight: 700; }
.dh-name.is-active span { display: block; }
.dh-mob, .dh-dots { display: none; }

@media (max-width: 1024px) {
  .dh-hero { height: 400px; }
  .dh-panel { width: 260px; padding-top: 30px; }
}
/* 手機：高 = 寬的 56%，拿掉右側面板，改底部標題＋評分/狀態＋簡介＋圓點 */
@media (max-width: 767px) {
  .dh-hero { height: 56vw; min-height: 200px; }
  .dh-panel { display: none; }
  .dh-mob {
    display: block; position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    padding: 36px 12px 22px; pointer-events: none;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.65));
    color: #fff;
  }
  .dh-mob-title { font-size: 16px; font-weight: 600; }
  .dh-mob-meta { display: flex; gap: 6px; margin: 6px 0; font-size: 12px; }
  .dh-mob-meta span { padding: 1px 6px; border-radius: 3px; background: rgba(255,255,255,.22); }
  .dh-mob-meta .dh-mob-score { background: var(--accent); }
  .dh-mob-desc {
    width: 85%; font-size: 12px; line-height: 1.5; color: rgba(255,255,255,.85);
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  }
  .dh-dots { display: flex; gap: 5px; position: absolute; right: 12px; bottom: 10px; z-index: 3; }
  .dh-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); transition: .2s; }
  .dh-dot.is-active { width: 16px; border-radius: 3px; background: var(--accent); }
}

/* ⚠️ 這裡原本有一組「從 tp17 補齊」的 .desc-collapsed／.desc-expanded／
   .desc-expand-btn（bare class，沒有 .desc-body 前綴），拿掉了——查過整個
   主題，唯一用到這幾個 class 的地方是 widget/desc_expand.html，而它的
   HTML 是 `class="desc-body desc-collapsed"`（兩個 class 同時掛），這組
   bare 版規則會跟下面 §「简介两段式」附近**真正在用**的 `.desc-body.desc-
   collapsed`（2221 行附近，JS 也是切換這組 class）同時命中同一個元素，
   兩邊對 max-height／overflow／遮罩效果各寫一份不一致的值，選集頁使用者
   截圖回報「簡介按鈕消失、高度顯示不全」的根因之一就是這兩組定義互相
   打架——同一個元件的樣式只能有一處定義，這裡刪掉這份多餘、命名不夠精確
   （沒 scope 到 .desc-body）的舊版，只留 .desc-body.desc-collapsed 那份。 */
/* ==========================================
   面包屑（detail / down / art / topic … 共用）：ol 必须 flex + 去项目符号 + 去内边距（tp05 踩过变竖排带编号）
   ========================================== */
.breadcrumb--wide { max-width: var(--content-max); margin: 16px auto 16px; padding: 0 20px; font-size: 13px; color: var(--text-3); }   /* 左右 gutter 与 .content-block 对齐 */
.breadcrumb--wide ol { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.breadcrumb--wide li { display: inline-flex; align-items: center; min-width: 0; }
.breadcrumb--wide a { color: var(--text-3); }
.breadcrumb--wide a:hover { color: var(--accent); }
.breadcrumb--wide .bc-sep { display: inline-flex; margin: 0 4px; color: var(--text-3); }
.breadcrumb--wide .bc-sep .mac-icon { width: 12px; height: 12px; }
.breadcrumb--wide .bc-current { color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
/* ==========================================
   详情类页面共用区块（detail / play / down / plot / art detail 共用，从 vod_detail.css 上提）
   ========================================== */
.detail-section {
  margin-bottom: 24px;
}
.detail-section-hd {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-1);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--border);
}
.detail-section-hd .mac-icon { color: var(--accent); }
.detail-section-hd--split {
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.detail-section-hd--split h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-1);
  margin: 0;
}
.detail-section-more {
  font-size: 13px;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.2s;
}
.detail-section-more:hover { color: var(--accent); }
/* 详情/播放/分集/专题等页面内影视卡网格：一行 6 列（基线），≤1199 4 列、≤600 3 列 */
.detail-vod-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.detail-vod-grid > li { min-width: 0; display: block; }
/* 详情页 猜你喜欢/相关推荐/关联系列：一行 9 列（≤1199 6 列、≤600 3 列）；关联系列默认收起只显前 9 条 */
.detail-vod-grid--c9 { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 12px; }
.detail-vod-grid--c9.is-collapsed > li:nth-child(n+10) { display: none; }
.rel-toggle { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; padding: 6px 14px; font-size: 13px; color: var(--text-2); border: 1px solid var(--border-2); border-radius: var(--radius-pill); transition: color 0.2s, border-color 0.2s; }
.rel-toggle[hidden] { display: none; }
.rel-toggle:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 1199px) {
  .detail-vod-grid--c9 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .detail-vod-grid--c9 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}
/* 分集剧情 / 角色介绍 标题行：标题 + 右侧「更多」 */
.detail-section-hd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--border);
}
.detail-section-hd-row .detail-section-hd { margin: 0; padding: 0; border: 0; }
/* ==========================================
   播放列表 widget（detail / play 共用）
   ========================================== */
/* ===== Playlist Section ===== */
.playlist-section {
  margin-bottom: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  padding: 16px 20px;
}
/* ===== Playlist Widget（仿 .play-nav + .playerlist 藍色高亮） ===== */
.playlist-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.playlist-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
}
.pl-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid var(--border);
  padding: 5px 12px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.pl-sort-btn:hover { color: var(--accent); border-color: var(--accent); }
.playlist-sources {
  display: flex;
  gap: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.playlist-sources::-webkit-scrollbar { display: none; }
.playlist-sources .pl-source-tab { flex-shrink: 0; white-space: nowrap; }
.pl-source-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-bottom: none;
  margin-right: 4px;
  margin-bottom: -1px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pl-source-tab.is-active {
  background: var(--bg-card);
  border-color: var(--border);
  border-bottom: 1px solid var(--bg-card);
  color: var(--accent);
  font-weight: 700;
}
.playlist-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
}
.playlist-panel { display: none; }
.playlist-panel.is-active { display: block; }
.playlist-notice {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 10px;
  padding: 8px 12px;
  background: var(--bg-elevated);
}
.playlist-notice .mac-icon { color: var(--accent); }
.playlist-episodes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 4px;
}
.playlist-episodes.episodes-collapsed {
  max-height: 132px;
  overflow: hidden;
}
/* ⚠️ 這裡原本是 background:#fcfcfc（淺色底），是從某個淺色系底版「移植」
   過來時沒有跟著換成暗色 token，在黑底主題上會變成一顆顆刺眼的白色方塊——
   使用者截圖回報選集面板搬進右側欄後才注意到這個問題，改成跟同一份 widget
   裡 .pl-source-tab 一致的 var(--bg-elevated)。 */
.episode-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  padding: 7px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-2);
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.episode-btn:hover { border-color: var(--accent); color: var(--accent); }
/* hover 浮動提示：比照參考站截圖，滑過集數按鈕時上方會浮出一個深底小標籤
   重複顯示集數名稱（跟按鈕本身文字一樣，是額外的 hover 回饋，不是必要
   資訊）。純 CSS 實作，內容讀 data-ep-name（widget/playlist.html 已加），
   不需要 JS。 */
.episode-btn::before {
  content: attr(data-ep-name);
  position: absolute; bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%); z-index: 5;
  background: #000; color: #fff; font-size: 12px; font-weight: 400;
  padding: 4px 10px; border-radius: 4px; white-space: nowrap;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .15s ease;
}
.episode-btn:hover::before { opacity: 1; visibility: visible; }
/* tp30：目前集數改成參考站那種「深底＋右上角小圓點」，不是 tp27 原本的
   實心紅底整顆填滿（使用者截圖對照：目標站當前集只在角落點一個小圓點，
   按鈕本身底色跟其他集數一樣深，不是整顆變成強調色）。圓點顏色維持用
   我們自己的 var(--accent)（紅色，tp30 沿用 tp27 的品牌色），不是照抄
   參考站截圖裡那顆白點——那是對方自己的配色，我們只借版式（點狀提示
   取代實心填滿），不是連色票一起照搬。 */
.episode-btn.is-active {
  background: var(--accent-muted);
  border-color: var(--accent);
  color: var(--accent);   /* tp42 淺色：原 dark 版白字在淺底上看不見 */
  font-weight: 700;
}
.episode-btn.is-active::after {
  content: '';
  position: absolute; top: 5px; right: 5px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.episode-more-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 5px 12px;
  border: 1px dashed var(--border);
  font-size: 12px;
  color: var(--text-3);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.episode-more-trigger:hover { color: var(--accent); border-color: var(--accent); }
/* ==========================================
   分享弹窗 widget（detail / down 共用）
   ========================================== */
/* ===== Share Modal ===== */
.share-modal { display: none; }
.share-modal.is-open { display: block; }
.share-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1400;
}
.share-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1401;
  background: var(--bg-card);
  padding: 24px;
  width: min(380px, 92vw);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.share-popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-3);
  cursor: pointer;
  line-height: 1;
}
.share-popup-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 16px;
}
.share-popup-icons {
  display: flex;
  gap: 18px;
  margin-bottom: 16px;
}
.share-popup-hint {
  font-size: 12px;
  color: var(--text-3);
  margin: 0 0 8px;
}
.share-popup-link {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 8px 10px;
  font-size: 12px;
  color: var(--text-2);
  resize: none;
  height: 52px;
  box-sizing: border-box;
  display: block;
  margin-bottom: 10px;
}
.share-popup-copy {
  width: 100%;
  padding: 10px;
  /* 绿白渐层 chip（同 .detail-btn／.hcb-btn 的 --chip-* token） */
  background: var(--chip-gradient-main);
  color: var(--chip-text);
  border: 1px solid var(--chip-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--chip-shadow);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.share-popup-copy:hover { transform: translateY(-1px); box-shadow: var(--chip-shadow-hover); filter: brightness(1.03); }
/* QQ／微博／收藏：原本完全没有样式（裸文字），补成 chip 圆形图标＋下方小字 */
.spi {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--text-2); font-size: 12px;
}
.spi small { font-size: 12px; }
.spi-circle {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--chip-gradient); color: var(--chip-text);
  border: 1px solid var(--chip-border); box-shadow: var(--chip-shadow);
  font-size: 15px; font-weight: 700;
  transition: transform .2s, box-shadow .2s;
}
.spi:hover { color: var(--chip-accent); }
.spi:hover .spi-circle { transform: translateY(-1px); box-shadow: var(--chip-shadow-hover); }
/* ==========================================
   简介展开 widget（detail / down 共用）
   ========================================== */
.desc-body {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.8;
}
.desc-body * {
  background-color: transparent !important;
  color: inherit !important;
}
.desc-body.desc-collapsed {
  max-height: 5.4em;
  overflow: hidden;
  position: relative;
}
.desc-body.desc-collapsed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.4em;
  background: linear-gradient(transparent, var(--bg-card));
}
.desc-body.desc-expanded {
  max-height: none;
}
.desc-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
}
.desc-expand-btn:hover { opacity: 0.8; }
/* 简介两段式：模板化短句与真实剧情之间要有可见间距（全局 reset 清掉了 p 的默认 margin，强制1.4/7.3） */
.desc-lead { margin-bottom: 10px; color: var(--text-2); }
.desc-text p { margin-bottom: 10px; }
.desc-text p:last-child { margin-bottom: 0; }
/* ==========================================
   评论 widget（detail / play / art detail 共用）
   ========================================== */
/* ===== Comment Section（仿 .mac_comment 素樸方框） ===== */
.cmt-total-label { font-size: 13px; font-weight: 400; color: var(--text-3); margin-left: 6px; }
.cmt-total-label em { color: var(--accent); font-style: normal; }
.mac_comment.cmt-ajax-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  min-height: 60px;
  padding: 12px;
}
.cmt-loading {
  font-size: 13px;
  color: var(--text-3);
  padding: 24px 0;
  text-align: center;
}
.cmt-empty {
  padding: 32px 0;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
}
.cmt-form {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 16px;
  margin-bottom: 24px;
}
.cmt-textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-1);
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.cmt-textarea:focus { border-color: var(--accent); }
.cmt-textarea::placeholder { color: var(--text-3); }
.cmt-form-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.cmt-verify-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.cmt-verify-input {
  width: 90px;
  padding: 6px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-1);
  font-size: 12px;
  outline: none;
}
.cmt-captcha-img { height: 30px; cursor: pointer; flex-shrink: 0; }
.cmt-form-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.cmt-remaining { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.cmt-remaining em { color: var(--accent); font-style: normal; }
.cmt-submit-btn {
  padding: 8px 22px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.cmt-submit-btn:hover { background: var(--accent-hover); }
.cmt-list { display: flex; flex-direction: column; gap: 0; list-style: none; margin: 0; padding: 0; }
.cmt-children { list-style: none; margin: 0; padding: 0; }
.cmt-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cmt-item:last-child { border-bottom: none; }
.cmt-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
}
.cmt-body { flex: 1; min-width: 0; }
.cmt-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cmt-name { font-size: 13px; font-weight: 600; color: var(--text-1); }
.cmt-time { font-size: 11px; color: var(--text-3); }
.cmt-content { font-size: 13px; color: var(--text-2); line-height: 1.6; margin: 0 0 6px; }
.cmt-child-item {
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--bg-elevated);
  border-left: 2px solid var(--accent);
}
.cmt-child-name { font-size: 12px; font-weight: 600; color: var(--text-1); margin-right: 6px; }
.cmt-actions { display: flex; gap: 12px; margin-top: 4px; }
.cmt-action-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.15s;
}
.cmt-action-link:hover { color: var(--accent); }
.cmt-paging {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 16px 0 4px;
}
.cmt-page-btn {
  background: none;
  font: inherit;
  padding: 4px 10px;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.cmt-page-btn:hover { border-color: var(--accent); color: var(--accent); }
.cmt-page-btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.cmt-page-btn.is-disabled { opacity: 0.4; cursor: default; pointer-events: none; }
/* ==========================================
   专题侧栏 widget（detail / play / down 共用）
   ========================================== */
.topic-side-block { margin-top: 24px; padding-bottom: 8px; }
.ts-hd { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 6px; }
.ts-hd-title { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--text-1); }
.ts-hd-title .mac-icon { color: var(--accent); }
.ts-hd-more { font-size: 12px; color: var(--text-3); }
.ts-hd-more:hover { color: var(--accent); }
.ts-list { list-style: none; margin: 0; padding: 0 12px; display: flex; flex-direction: column; gap: 10px; }
.ts-item { display: block; }
.ts-cover { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-elevated) url("../img/load.gif") no-repeat center/cover; }
.ts-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.ts-item:hover .ts-cover img { transform: scale(1.04); }
.ts-title { font-size: 13px; font-weight: 600; color: var(--text-1); margin-top: 6px; line-height: 1.4; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ts-item:hover .ts-title { color: var(--accent); }
.ts-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; }
@media (max-width: 1199px) {
  .detail-vod-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .breadcrumb--wide { margin: 10px 12px; }
  .cmt-form-footer { flex-direction: column; align-items: stretch; }
  .cmt-form-right { margin-left: 0; justify-content: space-between; }
}
@media (max-width: 600px) {
  .detail-vod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}

/* ==========================================
   资讯页共用（art/type + art/detail）：三栏布局 / 左侧分类导航 / 右侧栏 widget / 轮播
   原先在 art_type.css 与 art_detail.css 各写一份，这里收成单一来源。
   ========================================== */
.art-layout {
  max-width: var(--content-max); margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr 240px;
  gap: 24px;
  padding: 24px 20px 40px;
  align-items: start;
}
.art-content { min-width: 0; }
.art-content .breadcrumb { margin: 0 0 16px; }

/* 左侧分类导航 */
.art-leftnav {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: calc(var(--sticky-h) + 12px);
}
.aln-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  font-size: 14px; color: var(--text-2);
  border-bottom: 1px solid var(--border);
  transition: all 0.2s;
}
.aln-item:last-child { border-bottom: none; }
.aln-item:hover { color: var(--text-1); background: var(--bg-elevated); }
.aln-item.is-active { color: var(--accent); background: var(--accent-light); font-weight: 600; }
.aln-item .mac-icon { width: 16px; height: 16px; }

/* 轮播 */
.art-slider {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16/7;
  margin-bottom: 24px;
  background: var(--bg-elevated);
}
.art-slider-track { display: flex; transition: transform 0.4s ease; margin: 0; }
.art-slide { flex-shrink: 0; width: 100%; position: relative; margin: 0; }
.art-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-slide-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 16px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
}
.art-slide-title { font-size: 14px; font-weight: 600; color: #fff; }
.art-slider-dots { position: absolute; bottom: 10px; right: 12px; display: flex; gap: 6px; }
.asd {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer; transition: background 0.2s;
}
.asd.is-active { background: var(--bg-card); width: 18px; border-radius: 3px; }

/* 右侧栏 */
.art-sidebar { position: sticky; top: calc(var(--sticky-h) + 12px); }
.art-sb-block {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 24px;
}
.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);
}
.art-sb-title .mac-icon { color: var(--accent); }
.art-hot-list { list-style: none; margin: 0; padding: 8px 0; }
.art-hot-list li a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px; font-size: 13px; color: var(--text-2);
  transition: color 0.2s;
}
.art-hot-list li a:hover { color: var(--accent); }
.ahl-num {
  flex-shrink: 0; width: 20px; height: 20px;
  border-radius: 3px; background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--text-3);
}
/* 前三名配色用 nth-child，不在模板里判断 */
.art-hot-list li:nth-child(1) .ahl-num { background: #f0b429; color: #1a1a1a; }
.art-hot-list li:nth-child(2) .ahl-num { background: #b0b8c8; color: #1a1a1a; }
.art-hot-list li:nth-child(3) .ahl-num { background: #c28060; color: #1a1a1a; }
.ahl-name { flex: 1; overflow: hidden; white-space: nowrap; 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-bottom: 4px; }
.art-sb-item a:hover .asi-title { color: var(--accent); }
.asi-cat { font-size: 11px; color: var(--text-3); }

/* 平板：收起右侧栏，左导航缩窄 */
@media (max-width: 1023px) {
  .art-layout { grid-template-columns: 140px 1fr; gap: 14px; padding: 16px 16px 60px; }
  .art-sidebar { display: none; }
}
/* 手机：单栏，左导航变横向滚动标签列 */
@media (max-width: 767px) {
  .art-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 10px 10px 80px; overflow-x: hidden; }
  .art-leftnav {
    position: static;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    min-width: 0;
    width: 100%;
  }
  .art-leftnav::-webkit-scrollbar { display: none; }
  .aln-item {
    flex-shrink: 0;
    border-bottom: none;
    border-right: 1px solid var(--border);
    padding: 9px 14px;
    font-size: 13px;
    white-space: nowrap;
  }
  .aln-item:last-child { border-right: none; }
  .art-content { width: 100%; }
  .art-slider { aspect-ratio: 16/9; margin-bottom: 12px; }
}

}

