/* ============================================================
   tp10_dark_black — main.css
   視覺：PPTV 暗色風格，藍色主調
   功能架構：同 cms_video_hanju_white
   ============================================================ */

/* ===== CSS Variables ===== */
:root {
  /* 搜索框几何（桌面 .pptv-search 与移动 .search-bar 共用，原先是 36px/18px 与 40px/4px 两套） */
  --search-h: 40px;
  --search-radius: 20px;

  --accent:         #0081FF;
  --accent-hover:   #0066CC;
  --accent-grad:    linear-gradient(135deg, #0081FF 0%, #00C3FF 100%);
  --accent-muted:   rgba(0,129,255,.10);
  --text-1:         #1A1A1A;
  --text-2:         #555555;
  --text-3:         #999999;
  --bg-body:        #F2F3F5;
  --bg-page:        #FFFFFF;
  --bg-card:        #FFFFFF;
  --bg-elevated:    #F5F6F8;
  --bg-input:       #F5F5F5;
  --border:         #E5E6EB;
  --border-light:   #D4D5D9;
  --topbar-h:       64px;
  --container-w:    1280px;
  --radius:         4px;
  --radius-sm:      3px;
  --shadow-card:    0 2px 8px rgba(0,0,0,.08);
  --rank-1:         #FFB800;
  --rank-2:         #909090;
  --rank-3:         #C07840;
  --score-mid:      #85c13a;
}

/* ===== 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; }
img {
  display: block;
  max-width: 100%;
  /* 加载前占位（强制4.3）：load.gif 居中铺满，下面垫主题底色 */
  background: url('../img/load.gif') no-repeat center / cover, var(--bg-elevated, #f2f4f7);
}
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 ===== */
.page-shell { min-height: 100vh; }
.main-area  { min-height: 100vh; display: flex; flex-direction: column; }
.page-content { flex: 1; padding-top: var(--topbar-h); }

/* ===== Container ===== */
.warp { }
.container { width: var(--container-w); max-width: 100%; margin: 0 auto; padding: 0 16px; }

/* ===== 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; }

/* 单栏页面内容堆叠容器（同 .page-body 的上下留白，但不需要 flex 两栏） */
.page-stack { padding: 20px 0 40px; }
.page-stack > *:first-child { margin-top: 0; }

/* ===== PPTV Header ===== */
.pptv-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  z-index: 200;
}
.pptv-header-inner {
  width: var(--container-w); max-width: 100%;
  margin: 0 auto; padding: 0 16px;
  height: 100%;
  display: flex; align-items: center; gap: 0;
}

/* Logo */
.pptv-logo {
  flex-shrink: 0; padding-right: 6px;
  display: flex; align-items: center;
}
.pptv-logo-img { height: 36px; width: auto; background: none; } /* logo 不吃全局 img 占位图 */

/* 频道 dropdown trigger */
.pptv-channel-btn {
  display: flex; align-items: center; gap: 4px;
  height: var(--topbar-h); padding: 0 14px;
  font-size: 14px; font-weight: 600; color: var(--text-1);
  cursor: pointer; position: relative; flex-shrink: 0;
  transition: color .15s;
}
.pptv-channel-btn:hover { color: var(--accent); }
.pptv-channel-btn.is-open { color: var(--accent); }
.pptv-channel-btn .mac-icon { font-size: 12px; transition: transform .2s; }
.pptv-channel-btn.is-open .pptv-channel-caret { transform: rotate(180deg); }
/* tablet: reset sticky :hover only when dropdown is closed */
@media (hover: none) {
  .pptv-channel-btn:not(.is-open):hover { color: var(--text-1); }
}

/* 频道下拉面板 */
.pptv-channel-drop {
  display: none;
  position: fixed;
  top: var(--topbar-h); left: 0; right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  z-index: 199;
  padding: 20px 0;
}
.pptv-channel-drop.is-open { display: block; }
.pptv-channel-drop-inner {
  width: var(--container-w); max-width: 100%;
  margin: 0 auto; padding: 0 16px;
  display: flex; flex-wrap: wrap; gap: 8px 24px;
}
.pptv-chdrop-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0; font-size: 14px; color: var(--text-1);
  white-space: nowrap; transition: color .15s;
}
.pptv-chdrop-item:hover { color: var(--accent); }
.pptv-chdrop-item .mac-icon { font-size: 18px; color: var(--accent); }

/* Desktop search bar — centered */
.pptv-search-wrap {
  flex: 1; max-width: 640px;
  margin: 0 20px;
  position: relative;
}
/* 移动端搜索触发按钮只在 ≤767px 出现（原先写在 html 的内联 style="display:none"，
   再靠断点里的 !important 反制，脆且难查） */
#searchToggle { display: none; }
.pptv-search {
  height: var(--search-h);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--search-radius);
  display: flex; align-items: center;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
/* 焦点态：原先 input 只有 outline:none，聚焦与未聚焦完全看不出区别 */
.pptv-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}
.pptv-search-icon { font-size: 16px; color: var(--text-3); margin-left: 14px; flex-shrink: 0; }
.pptv-search input {
  flex: 1; height: 100%; padding: 0 12px;
  min-width: 0; border: none; outline: none;
  background: transparent; color: var(--text-1); font-size: 14px;
}
.pptv-search input::placeholder { color: var(--text-3); }
.pptv-search-btn {
  height: var(--search-h); padding: 0 20px; flex-shrink: 0;
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 600;
  border-radius: 0 var(--search-radius) var(--search-radius) 0;
  display: flex; align-items: center; gap: 4px;
  transition: background .15s;
}
.pptv-search-btn:hover { background: var(--accent-hover); }
.pptv-search-btn:focus-visible { outline: 2px solid var(--text-1); outline-offset: -3px; }

/* Right action area */
.pptv-actions {
  display: flex; align-items: center; gap: 2px;
  margin-left: auto; flex-shrink: 0;
}
.pptv-action-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 0 10px; height: var(--topbar-h);
  justify-content: center; cursor: pointer;
  font-size: 11px; color: var(--text-2);
  transition: color .15s; white-space: nowrap;
}
.pptv-action-btn .mac-icon { font-size: 20px; }
.pptv-action-btn:hover { color: var(--accent); }
.pptv-action-btn--vip {
  color: #FFB200; padding: 0 10px;
}
.pptv-action-btn--vip:hover { color: #FFD84D; }
.pptv-action-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
  margin-left: 6px; cursor: pointer;
}
.pptv-action-avatar .mac-icon { font-size: 24px; color: var(--text-3); }

/* Mobile hamburger */
.pptv-hamburger {
  display: none; align-items: center; justify-content: center;
  width: 36px; height: 36px; color: var(--text-2); font-size: 22px;
  margin-left: 8px;
}

/* ===== Mobile Nav Drawer ===== */
.mob-nav-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.6); z-index: 300;
}
.mob-nav-overlay.is-open { display: block; }
.mob-nav-drawer {
  position: fixed; top: 0; left: -280px; bottom: 0;
  width: 280px; background: var(--bg-card);
  border-right: 1px solid var(--border);
  z-index: 310; transition: left .3s ease;
  overflow-y: auto;
}
.mob-nav-drawer.is-open { left: 0; }
.mnd-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.mnd-title { font-size: 16px; font-weight: 700; }
.mnd-close { font-size: 22px; color: var(--text-2); }
.mnd-nav { padding: 8px 0; }
.mnd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; font-size: 15px; color: var(--text-1);
  transition: .15s; border-left: 3px solid transparent;
}
.mnd-item:hover, .mnd-item.is-active { color: var(--accent); background: var(--accent-muted); border-left-color: var(--accent); }

/* ===== Search Overlay (mobile) ===== */
/* 常驻 display:flex + visibility/opacity 过渡：原先 display:none → flex 永远没法动画。
   header.js 只切 .is-open / aria-hidden / body overflow，不读 computed display，安全。 */
.search-overlay {
  display: flex; flex-direction: column;
  position: fixed; inset: 0;
  background: var(--bg-card); z-index: 400;
  visibility: hidden; opacity: 0;
  /* visibility 是离散属性，直接写进 transition 会依赖每一帧推进（某些环境不跑帧就永远停在 hidden）。
     标准做法：只过渡 opacity，visibility 开时立即翻转、关时延到淡出结束。 */
  transition: opacity .18s ease, visibility 0s linear .18s;
}
.search-overlay.is-open {
  visibility: visible; opacity: 1;
  transition: opacity .18s ease, visibility 0s linear 0s;
}
.search-overlay-inner {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  padding-top: calc(12px + env(safe-area-inset-top));
}
.search-bar-row { display: flex; align-items: center; gap: 10px; }
.search-bar {
  flex: 1; min-width: 0; display: flex; align-items: center;
  height: var(--search-h); background: var(--bg-input);
  border: 1px solid var(--border); border-radius: var(--search-radius); overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.search-bar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-muted); }
.search-bar-icon { font-size: 16px; color: var(--text-3); margin-left: 14px; flex-shrink: 0; }
.search-bar input {
  flex: 1; min-width: 0; height: 100%; padding: 0 12px;
  border: none; outline: none;
  background: transparent; color: var(--text-1); font-size: 15px;
}
.search-bar input::placeholder { color: var(--text-3); }
.search-submit-btn {
  padding: 0 18px; height: var(--search-h); flex-shrink: 0;
  border-radius: 0 var(--search-radius) var(--search-radius) 0;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 600;
  transition: background .15s;
}
.search-submit-btn:hover { background: var(--accent-hover); }
.search-submit-btn:focus-visible { outline: 2px solid var(--text-1); outline-offset: -3px; }
.search-close-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--search-h); height: var(--search-h); flex-shrink: 0;
  font-size: 22px; color: var(--text-2); border-radius: 50%;
  transition: color .15s, background .15s;
}
.search-close-btn:hover, .search-close-btn:active { color: var(--accent); background: var(--accent-muted); }
.search-close-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ===== 搜索下拉（历史 + 热门，强制18.2） ===== */
/* 下拉/全屏层共用的历史+热门列表。左右内边距统一 12px 一档，
   行 hover 铺满面板宽度（原先 .sd-list 内缩 4px、行内再 10px，高亮成了浮在面板里的小块）。 */
.search-drop-groups { margin-top: 16px; }
#searchDropTop.search-drop-groups {
  position: absolute; top: calc(100% + 6px); left: 0; right: auto; margin-top: 0;
  width: 100%; min-width: 360px; max-width: min(640px, calc(100vw - 32px));
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: 6px 0; z-index: 210;
  max-height: min(70vh, 460px); overflow-y: auto;
}
.sd-group + .sd-group { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 6px; }
.sd-group-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px; }
.sd-label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.sd-clear {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 8px;
  font-size: 12px; color: var(--text-3); border-radius: var(--radius-sm); transition: .15s;
}
.sd-clear:hover { color: var(--accent); background: var(--accent-muted); }
.sd-clear:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.sd-list { list-style: none; margin: 0; padding: 0 0 6px; }
.sd-item { display: flex; align-items: center; padding: 0 12px; transition: background .15s; }
.sd-item:hover { background: var(--accent-muted); }
.sd-word {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0;
  padding: 8px 0; font-size: 13px; color: var(--text-2); text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .15s;
}
.sd-item:hover .sd-word { color: var(--accent); }
.sd-word:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius-sm); }
.sd-num { font-size: 11px; color: var(--text-3); width: 14px; flex-shrink: 0; }
/* 单条删除：默认淡出，hover/聚焦行时显形（触控端常显，没有 hover 概念） */
.sd-del {
  flex-shrink: 0; width: 28px; height: 28px; margin-left: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; line-height: 1; color: var(--text-3); border-radius: 50%;
  opacity: 0; transition: opacity .15s, color .15s, background .15s;
}
.sd-item:hover .sd-del, .sd-del:focus-visible { opacity: 1; }
.sd-del:hover { color: #fff; background: var(--accent); }
.sd-del:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (hover: none) { .sd-del { opacity: 1; } }
.sd-empty { padding: 10px 12px 14px; font-size: 12px; color: var(--text-3); }

/* ===== History Modal ===== */
.hm-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.7); z-index: 500;
  align-items: center; justify-content: center;
}
.hm-overlay.is-open { display: flex; }
.hm-box {
  width: 90%; max-width: 760px; max-height: 80vh;
  background: var(--bg-card); border-radius: 8px;
  display: flex; flex-direction: column;
}
.hm-header {
  display: flex; align-items: center; padding: 14px 20px;
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.hm-title { flex: 1; text-align: center; font-size: 16px; font-weight: 700; }
.hm-clear { font-size: 13px; color: var(--text-3); }
.hm-clear:hover { color: var(--accent); }
.hm-close { font-size: 20px; color: var(--text-3); }
.hm-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.hm-card { flex: 0 0 calc((100% - 50px) / 6); min-width: 0; display: block; text-decoration: none; color: var(--text-1); }
.hm-thumb { position: relative; 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; transition: transform .2s; }
.hm-card:hover .hm-thumb img { transform: scale(1.04); }
.hm-card:hover .hm-name { color: var(--accent); }
.hm-name { margin-top: 5px; font-size: 11px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s; }
.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: 17px; font-weight: 700; color: var(--text-1); }
.mod-head-more { font-size: 13px; color: var(--accent); flex-shrink: 0; }
.mod-head-more:hover { 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(--accent); }

/* .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: 17px; 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(--accent); font-weight: 600;
  flex-shrink: 0; text-decoration: none; transition: opacity .15s;
}
.mod-inner-more:hover { opacity: .75; }

/* ===== Breadcrumb ===== */
.breadcrumb { font-size: 13px; color: var(--text-3); margin-bottom: 14px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; padding: 0; margin: 0; }
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span, .breadcrumb .bc-sep { margin: 0 4px; }
.breadcrumb li[aria-current="page"] { color: var(--text-2); }

/* ===== VOD Grid ===== */
.video-film-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px 12px;
}
.video-film-list--6col { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1199px) {
  .video-film-list--6col { grid-template-columns: repeat(4, 1fr); }
}

/* ===== Hot Featured Block (首頁热点資訊) =====
   马赛克网格：6 列 x 2 行，大图跨 2x2（同一张 2:3 海报放大 2 倍，比例不变、零裁切），
   剩下 8 个 1x1 格子（右侧 4 列 x 2 行）放 8 张小图。所有格子共用同一个
   aspect-ratio:2/3 的 .hotm-cover，行高由内容（图片比例）自然撑开，CSS Grid 自动对齐，
   不需要像之前那样手动换算「图片高度 = 总高 - 文字区」。文案统一走底部渐层遮罩
   内嵌文字（不再另起一行纯文字 caption），避免副标题有无导致每张卡片总高不一致。
   列数不能太少：列越少单列分到的宽度越大，2:3 比例下高度会跟着爆炸（3 列时
   实测整块高达 1200px），6 列在常见容器宽度下每列约 180~230px，整块高度落在
   合理的 500~600px 区间，不会比首页 Hero（450~520px）离谱。 */
.hot-mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  list-style: none; padding: 0; margin: 0;
}
.hotm-feat { grid-column: 1 / 3; grid-row: 1 / 3; }
.hotm-cover {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 2/3;
  border-radius: var(--radius); text-decoration: none;
  background: var(--bg-elevated);
}
.hotm-cover img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .35s ease;
}
.hotm-item:hover .hotm-cover img { transform: scale(1.06); }
.hotm-mask {
  position: absolute; bottom: 0; left: 0; right: 0; height: 55%;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.85) 100%);
  pointer-events: none;
}
.hotm-remarks {
  position: absolute; top: 6px; right: 6px;
  padding: 2px 6px; border-radius: var(--radius-sm);
  background: rgba(0,0,0,.6); color: #fff; font-size: 10px; font-weight: 700;
}
.hotm-title-wrap { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 10px 8px; }
.hotm-title { display: block; color: #fff; font-size: 13px; font-weight: 700; line-height: 1.3; }
/* .hotm-sub 一律渲染（即使 vod_sub 为空也留一个空 <span>），保证每张卡片标题区
   占位高度一致，不会因为有没有副标题导致标题在格子里的垂直位置不对齐。 */
.hotm-sub { display: block; margin-top: 2px; color: rgba(255,255,255,.7); font-size: 11px; line-height: 1.3; min-height: 1.3em; }
.hotm-feat .hotm-title-wrap { padding: 40px 14px 14px; }
.hotm-feat .hotm-title { font-size: 18px; }
.hotm-play-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 40px; height: 40px; background: var(--accent); border-radius: 50%;
  color: #fff; font-size: 18px; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s;
}
.hotm-item:hover .hotm-play-icon { opacity: 1; }
@media (max-width: 767px) {
  /* 手机屏幕窄，6 列会把每列压到 40px 左右看不清；改 3 列，大图仍跨 2x2，
     多出的小图（num=9 只保证摆满 6 列布局的 8 张）会在 3 列网格下自动换行，
     不会裁切或丢数据，只是多显示几排。 */
  .hot-mosaic { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hotm-title { font-size: 12px; }
  .hotm-feat .hotm-title { font-size: 15px; }
}
/* ================================ */
.video-item { position: relative; min-width: 0; }
.video-cover {
  display: block; position: relative; overflow: hidden;
  background: var(--bg-elevated); border-radius: var(--radius);
  aspect-ratio: 2/3;
}
.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.07); }
.video-mask {
  position: absolute; bottom: 0; left: 0; right: 0; height: 55%;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.8) 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,.65); color: rgba(255,255,255,.85); border-radius: 0 0 var(--radius-sm) 0; }
.vbadge--type { background: var(--accent); color: #fff; border-radius: 0 0 var(--radius-sm) 0; }
.video-duration {
  position: absolute; right: 6px; bottom: 6px;
  height: 20px; line-height: 20px; padding: 0 6px;
  color: #fff; font-size: 12px; z-index: 2;
}
.video-tips {
  position: absolute; top: 0; right: 0;
  padding: 0 6px; height: 20px; line-height: 20px;
  font-size: 11px; color: #fff;
  border-radius: 0 var(--radius) 0 var(--radius); z-index: 3;
}
.video-tips.red   { background: linear-gradient(to left, #e50914 0, #ff6b35 100%); }
.video-tips.blue  { background: linear-gradient(to left, #0081FF 0, #00C3FF 100%); }
.video-tips.green { background: linear-gradient(to left, #2DD671 0, #58E08E 100%); }
.video-cover::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(0,0,0,.30); opacity: 0; transition: opacity .22s; z-index: 2;
}
.video-item:hover .video-cover::after { opacity: 1; }
.video-play-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 44px; height: 44px; background: var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; z-index: 3;
  opacity: 0; transition: opacity .22s;
  box-shadow: 0 0 0 6px rgba(0,129,255,.25);
}
.video-item:hover .video-play-icon { opacity: 1; }
.video-con { margin-top: 7px; }
.video-con-tit {
  font-size: 13px; font-weight: 600; color: var(--text-1);
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .15s;
}
.video-item:hover .video-con-tit { color: var(--accent); }
.video-con-subtitle {
  font-size: 11px; color: var(--text-3); min-height: 1.5em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px;
}
.video-score {
  position: absolute; top: 6px; right: 6px; z-index: 2;
  height: 20px; padding: 0 6px; line-height: 20px;
  background: rgba(0,0,0,.65); color: #FFB800;
  font-size: 11px; font-weight: 700; border-radius: var(--radius-sm);
}

/* ===== Hover popout detail card（强制15） ===== */
.hover-popout { display: none; }
@media (min-width: 1024px) and (hover: hover) {
  .hover-popout {
    display: block;
    position: absolute;
    top: 50%; left: 50%;
    width: 260px;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(.6667);
    transform-origin: center center;
    transition: opacity .22s cubic-bezier(.25,1,.5,1),
                transform .22s cubic-bezier(.25,1,.5,1),
                visibility .22s;
  }
  .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 {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
  }
  .video-item:hover .hover-popout.pop-left  { transform: translate(0, -50%) scale(1); }
  .video-item:hover .hover-popout.pop-right { transform: translate(0, -50%) scale(1); }

  .popout-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 28px rgba(0,0,0,.22);
    overflow: hidden;
  }

  .popout-cover { position: relative; display: block; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-elevated); }
  .popout-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

  .popout-title-wrap { padding: 10px 14px 0; }
  .popout-title { font-size: 15px; font-weight: 700; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .popout-mix { padding: 8px 14px 0; }
  .popout-tags { display: flex; flex-wrap: nowrap; gap: 6px; overflow: hidden; }
  .popout-tag { height: 20px; padding: 0 6px; border-radius: 2px; font-size: 11px; line-height: 20px; white-space: nowrap; }
  .popout-tag--year  { color: #fff; background: var(--accent); font-weight: 700; flex-shrink: 0; }
  .popout-tag--main  { color: var(--accent); background: var(--accent-muted); }
  .popout-tag--grey  { color: var(--text-3); background: var(--bg-elevated); }

  .popout-label { color: var(--text-3); }
  .popout-actor { margin-top: 8px; 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.6; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

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

  .popout-bottom { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 14px; }
  .hover-popout .popout-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--bg-elevated); color: var(--text-2); font-size: 15px;
    transition: background .15s, color .15s;
  }
  .hover-popout .popout-btn .mac-icon { display: block; width: 15px; height: 15px; }
  .hover-popout .popout-btn:hover { background: var(--accent-hover); color: #fff; }
  .hover-popout .popout-btn:first-child { background: var(--accent); color: #fff; }
  .hover-popout .popout-btn:first-child:hover { background: var(--accent-hover); }
}
@media (max-width: 1023px), (hover: none), (pointer: coarse) {
  .hover-popout { display: none !important; }
}

/* ===== 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-radius: 2px;
  font-size: 12px; font-weight: 700; color: var(--text-2); transition: .15s;
}
.recent-tag-lists a:hover { color: #fff; background: var(--accent); }

/* ===== Search result ===== */
.film-item {
  display: flex; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--border); transition: background .15s;
}
.film-item:hover { background: var(--bg-elevated); }
.film-item .img {
  position: relative;
  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(--accent); color: #fff;
  border-radius: var(--radius); font-size: 13px; font-weight: 600; transition: .15s;
}
.film-item .btn:hover { background: var(--accent-hover); color: #fff; }

/* ===== VOD Detail ===== */
.detail { background: var(--bg-card); padding: 20px; border-radius: var(--radius); }
.detail-main { display: flex; gap: 20px; }
.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(--accent); 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(--accent-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(--accent); 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); }
/* 分享是纯动作（强制 2.6）→ <button>；按钮元素需要显式继承字体与手型 */
.detail-main-btn button.btn { font: inherit; cursor: pointer; }

/* 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/-label/-list/-link 已删除：全站无引用（筛选器实际用 .sf-* 一套，见 vod_show.css） */

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

/* ===== Hero Banner — PPTV style ===== */
.pptv-hero {
  display: flex; height: 450px; max-height: 520px;
  background: var(--bg-body);
  position: relative;
}
.pptv-hero-slides {
  flex: 1; width: 100%; height: 100%; position: relative; overflow: hidden; min-width: 0;
}
.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;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.75) 0%, rgba(0,0,0,.3) 50%, transparent 100%),
              linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 60%);
}
/* 整块可点：覆盖层锚点（原先是 div[onclick=heroTap]，强制 2.6）。
   压在 overlay 上、hero-content 下，所以文案里的「立即播放/详情」按钮仍可单独点击。 */
.hero-link { position: absolute; inset: 0; z-index: 1; display: block; }
.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,.15); color: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.3); }
.hero-title { font-size: 28px; font-weight: 800; color: #fff; margin-bottom: 8px; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.hero-meta { font-size: 13px; color: rgba(255,255,255,.75); 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: 4px; 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,.15); color: #fff;
  border: 1px solid rgba(255,255,255,.3); border-radius: 4px;
  font-size: 14px; transition: background .15s;
}
.hero-detail-btn:hover { background: rgba(255,255,255,.25); color: #fff; }

/* Hero controls */
.hero-arrow {
  position: absolute; top: 50%; z-index: 9;
  transform: translateY(-50%);
  width: 36px; height: 48px; background: rgba(0,0,0,.4);
  color: #fff; font-size: 18px; border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s;
}
.pptv-hero-slides:hover .hero-arrow { opacity: 1; }
.hero-arrow--prev { left: 0; border-radius: 0 2px 2px 0; }
.hero-arrow--next { right: 0; border-radius: 2px 0 0 2px; }
.hero-arrow:hover { background: rgba(0,0,0,.7); }
.hero-dots {
  position: absolute; bottom: 10px; right: 12px; 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; }

/* ===== PPTV Hero Right Panel ===== */
.pptv-hero-panel {
  position: absolute; bottom: 0; right: 10px;
  width: 300px; height: 450px;
  background: rgba(1,2,2,.41);
  display: flex; flex-direction: column; overflow: hidden;
  box-sizing: border-box;
  z-index: 8;
}
.pptv-hero-panel-hd {
  padding: 10px 14px; font-size: 13px; font-weight: 700;
  color: rgba(255,255,255,.9); background: rgba(255,255,255,.05);
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.pptv-hero-panel-hd .mac-icon { color: #FF6B35; }
.pptv-hero-panel-list { flex: 1; overflow-y: auto; list-style: none; margin: 0; padding: 0; }
.pptv-hero-panel-list > li { min-width: 0; }
.php-item {
  display: block; padding: 8px 14px;
  font-size: 13px; color: rgba(255,255,255,.7);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-left: 3px solid transparent; transition: .15s;
}
.php-item:hover { color: #fff; background: rgba(255,255,255,.08); }
.php-item.is-active { color: var(--accent); border-left-color: var(--accent); background: var(--accent-muted); font-weight: 700; }

/* ===== PPTV Category Strip ===== */
.pptv-catstrip {
  display: flex;
  background: #F6F7F9;
  border-bottom: 1px solid var(--border);
}
.pptv-catstrip-body {
  flex-grow: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  row-gap: 2px;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 4px 16px;
  width: 100%;
}
.pptv-catcell {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: var(--bg-card);
  border-top-left-radius: 13px;
  border-bottom-right-radius: 25px;
  box-sizing: border-box;
  min-width: 0;
}
.pptv-catcell-main {
  display: flex; align-items: center; gap: 5px;
  font-size: 14px; font-weight: 700; color: var(--text-1);
  white-space: nowrap; transition: color .15s;
  flex: 0 0 88px;
}
.pptv-catcell-main:hover { color: var(--accent); }
.pptv-catcell-main .mac-icon { font-size: 18px; color: var(--accent); }
.pptv-catcell-subs { display: flex; gap: 4px; flex: 1; min-width: 0; overflow: hidden; }
.pptv-catcell-subs a {
  flex: 0 0 auto;
  min-width: 52px;
  text-align: center;
  font-size: 12px; color: var(--text-3); padding: 2px 6px;
  border-radius: 2px; transition: .15s; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.pptv-catcell-subs a:hover { color: var(--accent); background: var(--accent-muted); }

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-card); 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; }

/* ===== 友情链接（首页模块内的竖排链接列表） ===== */
.link-list { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; list-style: none; margin: 0; }
.link-item { font-size: 13px; color: var(--text-3); }

/* ===== 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-elevated); 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(--accent); border-color: var(--accent); 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 img { width: 100px; height: 100px; margin: 8px auto 0; }

/* ===== 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: 150;
  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); }

/* ===== Login / Logout Modal ===== */
.login-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.7); z-index: 600;
  align-items: center; justify-content: center;
}
.login-modal-overlay.is-open { display: flex; }
.login-modal-box {
  width: 360px; background: var(--bg-card);
  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(--accent); color: #fff;
  border-radius: var(--radius); font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background .15s; border: none;
}
.login-submit:hover { background: var(--accent-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 ===== */
.rank-home-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.rank-home-grid > * { min-width: 0; }
.rank-col { }
.rank-col-head {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; color: var(--text-1);
  margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.rank-top-item {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 10px;
}
.rank-top-cover {
  flex-shrink: 0; width: 72px; border-radius: var(--radius);
  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: 4px; left: 4px; font-size: 15px; color: var(--rank-1); line-height: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.rank-top-info { flex: 1; min-width: 0; }
.rank-top-num {
  font-size: 22px; font-weight: 900; line-height: 1;
  color: var(--rank-1); margin-bottom: 4px;
}
.rank-top-name {
  font-size: 13px; font-weight: 700; color: var(--text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rank-top-meta { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.rank-top-status { font-size: 11px; color: var(--score-mid, #85c13a); margin-top: 2px; }
.rank-top-hits { font-size: 12px; color: var(--accent); margin-top: 5px; display: flex; align-items: center; gap: 3px; }
.rank-list-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0; border-bottom: 1px solid var(--border);
}
.rank-list-item:last-child { border-bottom: none; }
.rank-num {
  width: 20px; text-align: center; font-size: 13px; font-weight: 700;
  flex-shrink: 0; color: var(--text-3);
}
.rank-num.is-1 { color: var(--rank-1); }
.rank-num.is-2 { color: var(--rank-2); }
.rank-num.is-3 { color: var(--rank-3); }
.rank-name {
  flex: 1; min-width: 0;
  font-size: 13px; color: var(--text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rank-name:hover { color: var(--accent); }
.rank-hits { font-size: 12px; color: var(--text-3); flex-shrink: 0; }
.rank-more { display: block; text-align: center; font-size: 13px; color: var(--accent); margin-top: 8px; }
.rank-more:hover { text-decoration: underline; }
/* sidebar rank — vod/play, vod/detail */
.rank-col-title { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--text-1); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.rank-col-more { font-size: 12px; font-weight: 400; color: var(--accent); margin-left: auto; }
.rank-col-more:hover { text-decoration: underline; }
/* 排行榜第一名：真正的 flex 容器是里面那个 <a>（.rank-top1 只有它一个子元素，
   在外层写 flex 等于白写）。label_rank.css 里原有的 `.rank-top1 > a{display:flex}`
   上一轮被限定到 .rank-main 作用域后，详情页/播放页侧栏就丢了这条 → 海报与文字上下堆叠、
   标题不再省略号。补回 main.css。 */
.rank-top1 { margin-bottom: 12px; }
.rank-top1 > a {
  display: flex; gap: 10px; align-items: flex-start;
  text-decoration: none; color: inherit;
}
.rank-top1 > a:hover .rt1-name { color: var(--accent); }
.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); }
.rank-li:nth-child(1) .rl-num { color: var(--rank-1, #f5a623); }
.rank-li:nth-child(2) .rl-num { color: var(--rank-2, #9e9e9e); }
.rank-li:nth-child(3) .rl-num { color: var(--rank-3, #cd7f32); }
.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); }
.rl-hits { font-size: 12px; color: var(--text-3); flex-shrink: 0; }

/* ===== 资讯侧栏卡片（widget/art_recommend_read，plot/detail.html「最新资讯」共用） ===== */
.art-side-cards { display: flex; flex-direction: column; gap: 12px; padding: 4px 0; }
.art-side-card {
  display: flex;
  gap: 10px;
  text-decoration: none;
  color: var(--text-2);
  transition: color .15s;
}
.art-side-card:hover { color: var(--accent); }
.art-side-card-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 54px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-elevated);
}
.art-side-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.art-side-nopic {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 20px;
}
.art-side-card-body { flex: 1; min-width: 0; }
.art-side-card-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.art-side-card-blurb {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.art-side-card:hover .art-side-card-title { color: var(--accent); }

/* ===== Art card ===== */
.art-home-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px 12px; list-style: none; margin: 0; padding: 0; }
.art-card { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.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（widget/topic_card：首页 + 专题列表页共用，强制 11.9 只此一处定义）===== */
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.topic-grid--4col { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; padding: 4px 0 12px; }
.topic-card { min-width: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.topic-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.topic-card-link { display: block; text-decoration: none; }
.topic-card-thumb { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.topic-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.topic-card:hover .topic-card-thumb img { transform: scale(1.04); }
.topic-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 55%);
  display: flex; align-items: flex-end; padding: 8px 10px;
}
.topic-card-count { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.9); }
.topic-card-info { padding: 10px 12px; }
.topic-card-name {
  font-size: 14px; font-weight: 600; color: var(--text-1); margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s;
}
.topic-card:hover .topic-card-name { color: var(--accent); }
.topic-card-blurb { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1024px) { .topic-grid--4col { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 700px)  { .topic-grid, .topic-grid--4col { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; } }
.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,.3); 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,.6); 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（widget/comment/ajax 片段，vod/detail + art/detail 共用，单一来源） ===== */
.detail-section { margin-bottom: 24px; }
.detail-section-hd {
  font-size: 16px; font-weight: 700; color: var(--text-1);
  margin: 0 0 16px;
  display: flex; align-items: center; gap: 6px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}
.cmt-total-label { font-size: 13px; font-weight: 400; color: var(--text-3); margin-left: 6px; }
.cmt-total-label em { font-style: normal; color: var(--accent); }
.cmt-loading { font-size: 13px; color: var(--text-3); padding: 16px 0; }
/* 覆蓋 static/home.css 的 .mac_comment 預設樣式 */
.mac_comment { border: none !important; background: transparent !important; padding: 0 !important; margin-top: 0 !important; }
.cmt-form { margin-bottom: 20px; }
.cmt-textarea {
  width: 100%; padding: 10px 12px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text-1); font-size: 14px;
  font-family: "PingFang SC","Microsoft YaHei",Arial,sans-serif;
  resize: vertical; outline: none; line-height: 1.6;
  transition: border-color .18s; display: block; min-height: 88px;
  margin-bottom: 10px; box-sizing: border-box;
}
.cmt-textarea:focus { border-color: var(--accent); }
.cmt-textarea::placeholder { color: var(--text-3); }
.cmt-form-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.cmt-form-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.cmt-verify-row { display: flex; align-items: center; gap: 8px; }
.cmt-verify-input {
  padding: 7px 10px; background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text-1); font-size: 13px; outline: none; width: 100px;
}
.cmt-verify-input:focus { border-color: var(--accent); }
.cmt-captcha-img { height: 36px; border-radius: 3px; cursor: pointer; vertical-align: middle; }
.cmt-remaining { font-size: 12px; color: var(--text-3); }
.cmt-remaining em { font-style: normal; color: var(--accent); }
.cmt-submit-btn, .comment_submit {
  display: inline-flex !important; align-items: center;
  padding: 8px 22px !important; background: var(--accent) !important; color: #fff !important;
  border: none !important; border-radius: 50px !important; font-size: 13px !important;
  font-weight: 700 !important; cursor: pointer; white-space: nowrap;
  transition: background .18s; line-height: normal !important;
}
.cmt-submit-btn:hover, .comment_submit:hover { background: var(--accent-hover) !important; }
.cmt-list { display: flex; flex-direction: column; }
.cmt-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cmt-item:last-child { border-bottom: none; }
.cmt-avatar {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-elevated); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.cmt-body { flex: 1; min-width: 0; }
.cmt-meta { display: flex; align-items: center; gap: 10px; 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: 14px; color: var(--text-2); line-height: 1.7; word-break: break-all; margin: 0; }
.cmt-child-item { margin-top: 8px; padding: 8px 12px; background: var(--bg-elevated); border-radius: var(--radius); font-size: 13px; }
.cmt-child-name { font-weight: 600; color: var(--text-1); margin-right: 6px; }
.cmt-actions { margin-top: 8px; display: flex; gap: 12px; }
.cmt-action-link { font-size: 12px; color: var(--text-3); text-decoration: none; transition: color .15s; }
.cmt-action-link:hover { color: var(--accent); }
.cmt-empty { font-size: 13px; color: var(--text-3); padding: 24px 0; text-align: center; }
/* 通用空态提示（强制 5.4：标题在、数据没有时给引导，不留空白）*/
.empty-tip { font-size: 13px; color: var(--text-3); padding: 28px 12px; text-align: center; }
.empty-tip a { color: var(--accent); }
/* 评论分页：复用 .pagination/.page-btn 视觉语言，避免裸链接 */
.cmt-paging { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.cmt-page-btn {
  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;
}
.cmt-page-btn:hover { color: var(--accent); border-color: var(--accent); }
.cmt-page-btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.cmt-page-btn.is-disabled { opacity: .4; pointer-events: none; }
@media (max-width: 767px) {
  .cmt-form-footer { flex-direction: column; align-items: flex-start; }
  .cmt-form-right { margin-left: 0; }
}

/* ===== Pagination ===== */
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.page-btn {
  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;
}
.page-btn:hover { color: var(--accent); border-color: var(--accent); }
.page-btn.cur { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }

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

/* ===== 片头信息（widget/detail_hero 共用：详情页 + 下载页）=====
   原先 vod_detail.css / vod_down.css 各写一份、main.css 另有一条 .color-9，
   三处同名 class 互相覆盖（强制 11.9）→ 统一收在这里，页面级 css 不再重复。 */
.intro-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 5px 8px; margin: 10px 0; }
.ig-item { font-size: 13px; color: var(--text-2); line-height: 1.9; min-width: 0; }
.ig-item .color-9 { margin-right: 2px; }
.ig-full { grid-column: 1 / -1; }
.ig-ellipsis { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.intro-blurb { font-size: 13px; color: var(--text-2); line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; max-height: calc(1.75em * 2); }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.detail-tags .dtag { display: inline-flex; align-items: center; padding: 3px 10px; font-size: 12px; border-radius: 14px; background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-2); text-decoration: none; line-height: 1.6; }
.detail-tags .dtag a { color: var(--text-2); text-decoration: none; }
.detail-tags .dtag:hover, .detail-tags a.dtag:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.detail-tags .dtag:hover a { color: #fff; }
/* 封面评分角标 */
.cover-score {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0,0,0,.62); color: #F0B429;
  font-size: 13px; font-weight: 700;
  padding: 3px 7px; border-radius: 4px; line-height: 1.4;
  pointer-events: none;
}
@media (max-width: 680px) { .intro-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: var(--border-light, #3A3A50); border-radius: 3px; }

/* ===== Index: hero 延伸至 header 後方，header 半透明 ===== */
.page-index .page-content { padding-top: 0; }
.page-index .pptv-header {
  background: rgba(0,0,0,.1);
  background-image: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(25,24,40,.35) 100%);
  border-bottom: none;
  box-shadow: 0 28px 50px rgba(25,24,40,.35);
}
.page-index .pptv-channel-btn,
.page-index .pptv-action-btn { color: rgba(255,255,255,.85); }
.page-index .pptv-channel-btn:hover,
.page-index .pptv-action-btn:hover { color: #fff; }
.page-index .pptv-search {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.28);
}
.page-index .pptv-search input { color: #fff; }
.page-index .pptv-search input::placeholder { color: rgba(255,255,255,.5); }
.page-index .pptv-search-icon { color: rgba(255,255,255,.7); }
/* 首页 hero 上是玻璃态输入框，下拉面板原先仍是白卡 + 深投影，读起来像两个不相干的组件 */
.page-index #searchDropTop.search-drop-groups {
  background: rgba(20,20,32,.92);
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
  backdrop-filter: blur(10px);
}
.page-index #searchDropTop .sd-label { color: rgba(255,255,255,.9); }
.page-index #searchDropTop .sd-word,
.page-index #searchDropTop .sd-clear,
.page-index #searchDropTop .sd-num,
.page-index #searchDropTop .sd-del,
.page-index #searchDropTop .sd-empty { color: rgba(255,255,255,.72); }
.page-index #searchDropTop .sd-item:hover { background: rgba(255,255,255,.12); }
.page-index #searchDropTop .sd-item:hover .sd-word,
.page-index #searchDropTop .sd-clear:hover { color: #fff; }
.page-index #searchDropTop .sd-group + .sd-group { border-top-color: rgba(255,255,255,.14); }
/* panel 從 header 底部起算，不被遮住 */
.page-index .pptv-hero-panel { top: var(--topbar-h); height: auto; bottom: 0; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  :root { --container-w: 100%; }
  .pptv-search-wrap { max-width: 320px; }
  .pptv-action-btn span { display: none; }
  .rank-home-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 767px) {
  :root { --topbar-h: 54px; }
  .pptv-search-wrap { display: none; }
  .pptv-channel-btn { display: none; }
  .pptv-action-btn:not(.pptv-action-btn--hist):not(.pptv-action-btn--login):not(#searchToggle):not(.pptv-hamburger) { display: none; }
  .pptv-hamburger, #searchToggle { display: flex; }
  .pptv-hero { flex-direction: column; height: auto; position: relative; }
  .pptv-hero-slides { height: 220px; flex: none; }
  .pptv-hero-panel { width: 100%; height: 120px; flex-direction: row; }
  .pptv-hero-panel-list { display: flex; overflow-x: auto; overflow-y: hidden; flex-direction: row; }
  .pptv-hero-panel-list > li { flex: none; }
  .php-item { white-space: nowrap; padding: 8px 12px; border-left: none; border-bottom: 3px solid transparent; }
  .php-item.is-active { border-bottom-color: var(--accent); border-left: none; }
  .mobile-tabbar { display: flex; }
  .page-content { padding-bottom: 56px; }
  .video-film-list { grid-template-columns: repeat(3, 1fr); gap: 10px 8px; }
  .pptv-catcell { padding: 8px 12px 8px 0; }
  /* 分类导航条移动端横滑：原先写在不存在的 .pptv-catstrip-inner 上（真实类名是 -body），从未生效 */
  .pptv-catstrip { overflow: hidden; }
  .pptv-catstrip-body { min-width: 0; max-width: 100%; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: max-content; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .pptv-catstrip-body::-webkit-scrollbar { display: none; }
  .rank-home-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .art-home-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .topic-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .page-body { flex-direction: column; }
  .mian-sidebar { width: 100%; }
  /* 防止 wide content 把 flex column 往外撐 */
  .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%; }
  .pptv-hero-panel { display: none; }
  .hero-content { max-width: 90%; left: 16px; }
  .hero-title { font-size: 20px; }
  /* 手機版 index：banner 在 header 之下，header 恢復不透明 */
  .page-index .page-content { padding-top: var(--topbar-h); }
  .page-index .pptv-header { background: var(--bg-card); border-bottom: 1px solid var(--border); }
  .page-index .pptv-action-btn { color: var(--text-2); }
  /* 隱藏播放/詳情按鈕，整個 slide onclick → vod/detail */
  .page-index .hero-btns { display: none; }
  .page-index .hero-badges { display: none; }
  .page-index .hero-meta { display: none; }
  .page-index .hero-slide { cursor: pointer; }
}
@media (max-width: 480px) {
  .video-film-list { grid-template-columns: repeat(3, 1fr); }
  .art-home-grid, .topic-grid { grid-template-columns: minmax(0,1fr); }
  .rank-home-grid { grid-template-columns: minmax(0,1fr); }
  .rank-top-cover { width: 110px; }
  .rank-top-name { font-size: 14px; }
  .hm-card { flex: 0 0 calc((100% - 20px) / 3); }
}

/* ===== 网站地图 ===== */
.sitemap-list { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.sitemap-list li { font-size: 13px; }
.sitemap-list a { color: var(--text-2); }
.sitemap-list a:hover { color: var(--accent); }

/* ===== 資訊列表 art/type ===== */
.art-list { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; }
.art-list-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); min-width: 0; }
.art-list-item:last-child { border-bottom: none; }
.ali-thumb { flex-shrink: 0; width: 140px; }
.ali-thumb a { display: block; }
.ali-thumb img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius-sm); display: block; }
.ali-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ali-title { font-size: 15px; font-weight: 700; color: var(--text-1); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ali-title:hover { color: var(--accent); }
.ali-desc { font-size: 13px; color: var(--text-2); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.ali-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-3); }
.ali-meta .mac-icon { font-size: 13px; vertical-align: -2px; }
@media (max-width: 600px) {
  .ali-thumb { width: 100px; }
  .ali-title { font-size: 13px; }
}

/* 传统广告区块 .site-ad* 已删除（连同 ads/sidebar_detail.js）：广告统一走 widget/vod_card_ad 的占位式数据注入 */

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

/* 移动端轮播：容器比例 = 后台横幅图比例（1903×666），整图完整展示、不裁切；标题/描述隐藏（2026-09-18 全站统一） */
@media (max-width: 767px) {
  .pptv-hero-slides { height: auto !important; min-height: 0 !important; max-height: none !important; aspect-ratio: 1903 / 666; }
  .hero-bg { transform: none !important; background-size: cover !important; background-position: center !important; }
  .hero-content, .hero-arrow { display: none !important; }
}

/* ===== desc_expand widget（详情页两段式剧情介绍，共用组件单一来源，强制11.9）===== */
.desc-body {
  font-size: 14px;
  color: var(--text-sec);
  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; }
/* 两段式：段间要有可见间距（强制7.3） */
.desc-lead { margin-bottom: 10px !important; }
.desc-text p { margin-bottom: 8px !important; }
.desc-text p:last-child { margin-bottom: 0 !important; }

/* ===== 关联视频折叠：默认只显前 6 条，超过才由 detail.js 放出「展开更多」 ===== */
.video-film-list.rel-collapsed > .video-item:nth-child(n+7) { display: none; }
.rel-toggle {
  display: block;
  margin: 12px auto 0;
  padding: 6px 20px;
  background: transparent;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-2, #667);
  cursor: pointer;
  transition: color .18s, border-color .18s;
}
.rel-toggle:hover { color: var(--accent); border-color: var(--accent); }
.rel-toggle[hidden] { display: none !important; }
