/* 仅供屏幕阅读器使用的隐藏文字（不影响视觉呈现） */
.lb-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* CSS Variables & Reset：token 实测自目标站（2026-10-14，见 docs/STYLE_CLONE_SOP.md 附录） */
:root {
  /* 主色品牌蓝；hover/active/淡底沿用目标站同名 token */
  --accent: #00aeec;
  --accent-light: #dff6fd;
  --accent-hover: #40c5f1;
  --accent-active: #008ac5;
  --accent-disabled: #80daf6;
  /* 元件专用色：套版面时按元件对应；目标站这几处同为品牌蓝 */
  --accent-nav: #00aeec;
  --accent-login: #00aeec;
  --accent-tab: #00aeec;
  --grad-play: linear-gradient(to right, #40c5f1, #00aeec);
  --shadow-play: 0 8px 12px -4px rgba(0, 174, 236, 0.3);
  /* 辅色品牌粉：更新集数徽章、头部「投稿」类胶囊 */
  --accent-red: #ff6699;
  --accent-red-light: #ffecf1;
  --accent-red-hover: #ff8cb0;
  --accent-red-active: #e84b85;
  --text: #18191c;
  --text-muted: #61666d;
  --text-light: #61666d;
  --text-weak: #9499a0;
  --text-link: #008ac5;
  /* 页面白底；--bg-white 是「面板」层（比页面略灰），--bg-elev 是面板里的填充层 */
  --bg: #fff;
  --bg-white: #f6f7f8;
  --bg-light: #f6f7f8;
  --bg-elev: #f1f2f3;
  --bg-tag: #f1f2f3;
  --bg-search: #f1f2f3;
  --bg-modal: #fff;
  --border: #e3e5e7;
  --border-mid: #c9ccd0;
  --radius: 8px;
  --radius-lg: 8px;
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 8px 20px rgba(0, 0, 0, 0.12);
  --score-green: #00b51d;
  /* 资讯页专用蓝（分类导览横幅与页内小重点；比品牌蓝深、比深色底亮，需求方 2026-10-16 选定 #1A8FD6） */
  --art-blue: #1a8fd6;
  /* 标题横幅（资讯分类导览、排行榜标题、分集剧情 Hero 共用）：左深右淡的宽渐层＋右上白色高光；--banner-ink 用在选中膠囊／白底按钮的文字上 */
  --banner-ink: #2f93d9;
  --banner-bg:
    radial-gradient(circle at 85% 0, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 55%),
    linear-gradient(115deg, #2f93d9 0%, #52b4ee 48%, #9adcf8 100%);
  /* 卡片资讯区与名次数字的兜底色；有 vod_card.js 取色时由行内变量 --card-tint 覆盖 */
  --card-tint-default: #00aeec;
  /* 分类色票（7 组）：分类榜单带与热播榜卡片都按分类编号 % 7 取同一组，同一分类永远同色；*-top 是榜单带渐层顶色 */
  --hue-0: 86, 86, 236;
  --hue-top-0: 224, 224, 250;
  --hue-1: 255, 102, 153;
  --hue-top-1: 255, 230, 238;
  --hue-2: 46, 184, 114;
  --hue-top-2: 218, 244, 230;
  --hue-3: 255, 154, 60;
  --hue-top-3: 255, 236, 214;
  --hue-4: 0, 174, 236;
  --hue-top-4: 214, 242, 252;
  --hue-5: 139, 111, 240;
  --hue-top-5: 232, 226, 252;
  --hue-6: 26, 163, 163;
  --hue-top-6: 212, 240, 240;
  --topbar-h: 64px;
  --page-pad: 60px;
  --gap-panel: 24px;
  --gap-section: 24px;
  --max-w: 2200px;
}

/* 目标站实测：≥1600 宽左右留白变 140px，缩图与卡片不随屏宽继续放大 */
@media (min-width: 1600px) {
  :root { --page-pad: 140px; }
}
@media (max-width: 1024px) {
  :root { --page-pad: 40px; }
}
@media (max-width: 767px) {
  :root {
    --page-pad: 15px;
    --topbar-h: 0px;
  }
}

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

.mac-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: middle;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, system-ui, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  /* 挡首页头图 100vw 破格带出的水平滚动；放 body 而非 .lb-page-shell，避免 sticky header 失效 */
  overflow-x: hidden;
}

/* 只留入口、暂无功能的链接（如忘记密码）：不显示手型与 hover 效果 */
a[aria-disabled="true"] {
  cursor: default;
  pointer-events: none;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

ul {
  list-style: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: url(../img/load.gif) no-repeat center/cover, var(--bg-elev);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

.lb-page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* 让出固定的顶栏；首页/频道页头图用负外距叠回顶栏之下（见 .lb-hero） */
  padding: var(--topbar-h) 0 0;
}

/* 排除 sr-only（否则会盖掉它的 1px 宽、撑出水平滚动条）；:where 让权重维持一个 class，不压过顶栏自己的宽度 */
.lb-page-shell > :where(:not(.lb-sr-only)) {
  width: 100%;
  min-width: 0;
}

/* ===== HEADER：顶部横向导览（比照目标站：页面顶端透明，滚动后白底） ===== */
.lb-site-header {
  --hdr-fg: var(--text);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1002;
  height: var(--topbar-h);
  color: var(--hdr-fg);
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

/* 叠在头图上的页面（首页、分类频道页）：未滚动时文字改白色；header.js 滚动后加 .is-scrolled 变白底 */
.lb-site-header.lb-header--hero {
  --hdr-fg: #fff;
}

.lb-site-header.is-scrolled {
  --hdr-fg: var(--text);
  background: var(--bg);
  box-shadow: var(--shadow);
  text-shadow: none;
}

.lb-topbar {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 24px;
}

.lb-topbar-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 112px;
  height: 100%;
  margin-right: 8px;
}

.lb-brand-block.lb-logo {
  display: block;
  width: 100%;
  height: 32px;
  overflow: hidden;
}

.lb-topnav {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.lb-topnav::-webkit-scrollbar {
  display: none;
}

.lb-topnav-list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lb-topnav-link {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--topbar-h);
  padding: 0 8px;
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.lb-topnav-link:hover {
  color: var(--accent);
}

.lb-site-header:not(.is-scrolled).lb-header--hero .lb-topnav-link:hover {
  color: #fff;
  opacity: 0.8;
}

.lb-topnav-link.lb-active {
  font-weight: 600;
}

.lb-topnav-link.lb-active::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.lb-site-header:not(.is-scrolled).lb-header--hero .lb-topnav-link.lb-active::after {
  background: #fff;
}

/* 页面切换读取条：header.js 控制 width/opacity，宽度变化需要 transition，
   opacity 淡出用较短时间避免完成后停留过久 */
.lb-page-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-active), var(--accent) 50%, var(--accent-hover));
  z-index: 1100;
  opacity: 0;
  transition: width 0.3s ease, opacity 0.2s ease;
}

.lb-page-progress.lb-is-active {
  opacity: 1;
}

.lb-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
  flex-shrink: 0;
}

/* 观看记录：图示在上、文字在下（目标站右侧功能区写法） */
.lb-header-actions .lb-ha-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 48px;
  height: 44px;
  padding: 0 6px;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
  transition: color 0.2s, opacity 0.2s;
}

.lb-header-actions .lb-ha-btn .mac-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.lb-header-actions .lb-ha-btn:hover {
  color: var(--accent);
}

.lb-site-header:not(.is-scrolled).lb-header--hero .lb-ha-btn:hover {
  color: #fff;
  opacity: 0.8;
}

/* 登录：36px 蓝色圆钮，里面是「登录」二字（目标站实测，白字照抄） */
.lb-header-actions .lb-ha-btn--pill {
  flex-direction: row;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  background: var(--accent-login);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  text-shadow: none;
}

.lb-header-actions .lb-ha-btn--pill .mac-icon {
  display: none;
}

.lb-header-actions .lb-ha-btn--pill:hover,
.lb-site-header:not(.is-scrolled).lb-header--hero .lb-ha-btn--pill:hover {
  background: var(--accent-hover);
  color: #fff;
  opacity: 1;
}

/* 平板：导览可横向滚动，搜索框收窄，观看记录只留图示 */
@media (min-width: 768px) and (max-width: 1024px) {
  .lb-topbar {
    padding: 0 16px;
  }

  .lb-topbar-brand {
    width: 92px;
  }

  .lb-topnav-link {
    padding: 0 8px;
  }

  .lb-header-actions .lb-ha-btn--text span {
    display: none;
  }
}

/* 手机：不做透明叠层（目标站这个页面没有手机版型，由规则主导）；
   第一排 logo + 功能区，第二排大搜索框，第三排可横向滚动的导览 */
@media (max-width: 767px) {
  .lb-page-shell {
    padding-top: 0;
  }

  .lb-site-header,
  .lb-site-header.lb-header--hero {
    --hdr-fg: var(--text);
    position: sticky;
    top: calc(-1 * var(--hdr-hide, 0px));
    z-index: 1002;
    height: auto;
    background: var(--bg);
    box-shadow: var(--shadow);
    text-shadow: none;
  }

  .lb-topbar {
    flex-wrap: wrap;
    row-gap: 0;
    padding: 0 15px;
  }

  .lb-topbar-brand {
    order: 1;
    height: 52px;
  }

  .lb-header-actions {
    order: 2;
    height: 52px;
  }

  .lb-header-actions .lb-ha-btn--text span {
    display: none;
  }

  .lb-site-header:not(.is-scrolled).lb-header--hero .lb-ha-btn:hover,
  .lb-site-header:not(.is-scrolled).lb-header--hero .lb-topnav-link:hover {
    color: var(--accent);
    opacity: 1;
  }

  .lb-site-header:not(.is-scrolled).lb-header--hero .lb-topnav-link.lb-active::after {
    background: var(--accent);
  }

  .lb-topnav {
    order: 4;
    flex: 0 0 100%;
    margin: 0 -15px;
    padding: 0 7px;
  }

  .lb-topnav-link {
    height: 44px;
    font-size: 15px;
  }

  .lb-topnav-link.lb-active::after {
    bottom: 4px;
  }
}

/* ── 搜寻框：浅灰底圆角 6px（目标站 32px 高） ── */
.lb-search-box {
  position: relative;
  flex: 0 1 374px;
  margin-left: 16px;
  height: 36px;
  border-radius: 6px;
  background: rgba(241, 242, 243, 0.92);
  color: var(--text);
  text-shadow: none;
  transition: background 0.2s;
}

.lb-site-header.is-scrolled .lb-search-box,
.lb-site-header:not(.lb-header--hero) .lb-search-box {
  background: var(--bg-elev);
}

.lb-search-box:focus-within {
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--border-mid);
}

/* 灰底页（--bg-elev 同色）的顶栏透明，搜索框会融进页面底色：加一圈细边框；聚焦时回到上面的白底外框 */
.lb-bg-gray .lb-site-header:not(.lb-header--hero) .lb-search-box {
  box-shadow: inset 0 0 0 1px var(--border-mid);
}

.lb-bg-gray .lb-site-header:not(.lb-header--hero) .lb-search-box:focus-within {
  box-shadow: 0 0 0 1px var(--border-mid);
}

.lb-search-box input {
  width: 100%;
  height: 36px;
  box-sizing: border-box;
  border: none;
  border-radius: 6px;
  background: transparent;
  padding: 0 42px 0 12px;
  outline: none;
  font-size: 14px;
  color: var(--text);
}

.lb-search-box input::placeholder {
  color: var(--text-weak);
}

.lb-search-submit-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-light);
  transition: color 0.15s;
}

.lb-search-submit-btn:hover {
  color: var(--accent);
}

.lb-search-submit-btn:active {
  color: var(--accent-active);
  transform: scale(0.95);
}

/* ===== 搜索下拉面板：历史搜索（localStorage）+ 热门搜索 ===== */
.lb-search-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  min-width: 260px;
  background: var(--bg-modal);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 12px 14px;
  z-index: 20;
}
.lb-search-panel[hidden] { display: none; }

.lb-sp-block + .lb-sp-block { margin-top: 12px; }

.lb-sp-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.lb-sp-clear {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-muted);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}
.lb-sp-clear:hover { color: var(--accent); }

/* 序列式列表：一行一条，左侧序号（见 skill 强制18.2，不做横排胶囊/标签云） */
.lb-sp-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lb-sp-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border: none;
  border-radius: var(--radius);
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
.lb-sp-item:hover { background: var(--bg-elev); }
.lb-sp-num {
  min-width: 14px;
  font-size: 11px;
  color: var(--text-muted);
}

/* 热门搜索前三名比照排行榜 .lb-rank-badge--1/2/3 红/橙/黄配色；
   历史搜索是使用者自己的搜寻纪录（按时间新到旧排序，非热度排名），不套用此配色 */
[data-hot-list] li:nth-child(1) .lb-sp-num { color: var(--accent-red); }
[data-hot-list] li:nth-child(2) .lb-sp-num { color: #df642b; }
[data-hot-list] li:nth-child(3) .lb-sp-num { color: #fcc400; }
.lb-sp-word {
  font-size: 13px;
  color: var(--text-light);
  transition: color 0.15s;
}
.lb-sp-item:hover .lb-sp-word { color: var(--accent); }

@media (min-width: 768px) and (max-width: 1024px) {
  .lb-search-box {
    flex-basis: 170px;
    margin-left: 8px;
  }
}

@media (max-width: 767px) {
  .lb-search-box {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    height: 40px;
    margin: 0 0 4px;
    background: var(--bg-elev);
  }

  .lb-search-box input {
    height: 40px;
  }
}

/* 页面内容区：左右留白用 --page-pad；带头图的页面（首页、分类频道页）加 --hero 修饰，头图全幅、其余内容放进 .lb-home-body */
.lb-home-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 30px var(--page-pad) 20px;
}

.lb-home-content--hero {
  max-width: none;
  padding: 0;
}

.lb-home-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--page-pad) 20px;
}

/* ===== 索引卡（首页）：三张各 311px 靠左，淡色渐层底，右下角大号淡色图示 ===== */
.lb-index-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 311px));
  justify-content: start;
  gap: 20px;
}

.lb-index-card {
  position: relative;
  min-width: 0;
  min-height: 118px;
  padding: 16px 20px;
  overflow: hidden;
  border-radius: var(--radius);
  --ix-bg: var(--accent-light);
  --ix-fg: var(--accent);
  background: linear-gradient(120deg, var(--ix-bg), rgba(255, 255, 255, 0) 100%), var(--bg);
}

.lb-index-card--pink {
  --ix-bg: #ffecf1;
  --ix-fg: #ff6699;
}

.lb-index-card--green {
  --ix-bg: #e6f7ee;
  --ix-fg: #2eb872;
}

.lb-index-card--blue {
  --ix-bg: #dff6fd;
  --ix-fg: #00aeec;
}

.lb-index-title {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.lb-index-title a {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: inherit;
}

.lb-index-title .mac-icon {
  width: 16px;
  height: 16px;
}

/* 列数随内容：索引 2 列、类型 3 列、年份 4 列（--ix-cols 由模板按卡片写入） */
.lb-index-links {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(var(--ix-cols, 2), auto);
  justify-content: start;
  gap: 6px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lb-index-links a {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 21px;
  white-space: nowrap;
  transition: color 0.2s;
}

.lb-index-links a:hover {
  color: var(--ix-fg);
}

.lb-index-mark {
  position: absolute;
  right: 12px;
  bottom: -14px;
  width: 92px;
  height: 92px;
  color: var(--ix-fg);
  opacity: 0.14;
  pointer-events: none;
}

/* ===== 热播榜横向滚动列 ===== */
.lb-hscroll {
  position: relative;
}

/* 6 栏（桌机）；平板 5 栏是需求方对本区块指定的例外（§11），手机 3 栏 */
.lb-vod-grid.lb-hot-track {
  display: flex;
  gap: 20px;
  padding-bottom: 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.lb-hot-track::-webkit-scrollbar {
  display: none;
}

.lb-hot-track > .lb-vod-card {
  flex: 0 0 calc((100% - 100px) / 6);
  scroll-snap-align: start;
}

/* 滚动列会裁掉 hover 浮层（强制11.8），本区块不用浮层，hover 只做标题变色 */
.lb-hot-track .hover-popout {
  display: none !important;
}

.lb-hscroll-btn {
  position: absolute;
  top: 110px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  color: var(--text);
  font-size: 16px;
  transition: color 0.2s;
}

.lb-hscroll-btn[hidden] {
  display: none;
}

.lb-hscroll-btn:hover {
  color: var(--accent);
}

.lb-hscroll-btn--prev {
  left: -20px;
}

.lb-hscroll-btn--next {
  right: -20px;
}

/* ===== 分类榜单带（目标站 feedline 榜）：全幅淡色渐层底，左侧标题＋副标（贴底），右侧一排可横向滚动的榜单卡 =====
   带子主色 --band（卡片底色与名次数字色）与渐层顶色 --band-top 按分类编号固定对应（type_id 除以 7 的余数）；
   全幅靠负外距抵销首页内容容器的左右留白（不用 100vw，避免含滚动条的宽度让内容错位 7px） */
.lb-rankband {
  --band: var(--hue-0);
  --band-top: var(--hue-top-0);
  --card-tint: rgb(var(--band));
  position: relative;
  margin: 0 calc(-1 * var(--page-pad)) var(--gap-section);
  overflow: hidden;
  background: linear-gradient(rgb(var(--band-top)), rgba(var(--band-top), 0.3));
}

/* 排行榜页榜卡（label_rank.css）：外壳与色票都放这里；默认色必须写在这里，页面级 css 后载入会盖掉下面的 --N 修饰类 */
.lb-rank-card {
  --band: var(--hue-0);
  --band-top: var(--hue-top-0);
  min-width: 0;
  padding-bottom: 6px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.lb-rankband--1,
.lb-rank-card--1 { --band: var(--hue-1); --band-top: var(--hue-top-1); }
.lb-rankband--2,
.lb-rank-card--2 { --band: var(--hue-2); --band-top: var(--hue-top-2); }
.lb-rankband--3,
.lb-rank-card--3 { --band: var(--hue-3); --band-top: var(--hue-top-3); }
.lb-rankband--4,
.lb-rank-card--4 { --band: var(--hue-4); --band-top: var(--hue-top-4); }
.lb-rankband--5,
.lb-rank-card--5 { --band: var(--hue-5); --band-top: var(--hue-top-5); }
.lb-rankband--6,
.lb-rank-card--6 { --band: var(--hue-6); --band-top: var(--hue-top-6); }

/* 左侧底图：第一名的横版图，10% 透明度，用径向遮罩把边缘柔化掉（目标站用 mask.png 做同样的事），整张向左偏出带子 35% */
.lb-rankband-pic {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 58%;
  background-position: center;
  background-size: cover;
  opacity: 0.1;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 72%);
  transform: translateX(-35%);
  pointer-events: none;
}

.lb-rankband-inner {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px var(--page-pad);
}

.lb-rankband-titles {
  display: flex;
  flex: 0 0 221px;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  padding-right: 20px;
}

.lb-rankband-title {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  font-weight: 500;
  line-height: 34px;
}

.lb-rankband-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 21px;
}

.lb-rankband-body {
  flex: 1 1 0;
  min-width: 0;
  margin: 12px 0;
}

/* 桌机一行 5 张（目标站 1084 宽放 5 张、卡宽 201），其余靠翻页钮滚动 */
.lb-rankband .lb-hot-track > .lb-vod-card {
  flex-basis: calc((100% - 80px) / 5);
}

@media (max-width: 1024px) {
  .lb-rankband-titles {
    flex-basis: 150px;
    padding-right: 16px;
  }

  .lb-rankband .lb-hot-track > .lb-vod-card {
    flex-basis: calc((100% - 48px) / 3.7);
  }
}

@media (max-width: 767px) {
  .lb-rankband {
    margin-bottom: var(--gap-section);
  }

  .lb-rankband-pic {
    width: 90%;
    transform: none;
  }

  .lb-rankband-inner {
    display: block;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .lb-rankband-titles {
    padding: 0 0 8px;
  }

  .lb-rankband-body {
    margin: 0;
  }

  .lb-rankband .lb-hot-track > .lb-vod-card {
    flex-basis: calc((100% - 20px) / 3.3);
  }
}

/* ===== 新热推荐：16:9 大图压在取色面板上，面板往左下多出一截；右半放标题/简介/播放钮/缩图 =====
   图宽占 60.7%，面板左缘内缩 51px、下移 24px，高度与图相同（目标站实测） */
.lb-feature-box {
  position: relative;
}

.lb-feature-item {
  display: none;
  --feat: var(--feat-tint, #5656ec);
}

.lb-feature-item.lb-active {
  display: grid;
  grid-template-columns: 60.7% minmax(0, 1fr);
  grid-template-rows: auto 24px;
}

.lb-feature-pic {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.lb-feature-pic img {
  position: absolute;
  inset: 0;
}

.lb-feature-bg {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  grid-row: 1 / span 2;
  margin: 24px 0 0 51px;
  border-radius: 12px;
  background: var(--feat);
}

/* 目标站在取色底上叠 30% 黑色遮罩 */
.lb-feature-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.3);
}

.lb-feature-info {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  margin-top: 24px;
  padding: 0 24px 96px 20px;
  color: #fff;
}

.lb-feature-title {
  margin: 0 0 12px;
  overflow: hidden;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lb-feature-title a {
  color: #fff;
}

.lb-feature-blurb {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.75;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 圆形播放钮：白色半透明底 */
.lb-feature-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: 48px;
  height: 48px;
  margin-top: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 20px;
  transition: background 0.2s;
}

.lb-feature-play:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* 缩图轮播窗口（目标站）：一次露出当前张＋后两张，其余被裁；每次前进整列向左移一格，
   移出左侧的那张在看不见的位置无动画跳回最右，所以会一直往右轮播。位置由 home_feature.js 写入行内 left */
.lb-feature-thumbs {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: calc(60.7% + 20px);
  z-index: 3;
  height: 93px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
}

.lb-feature-thumb-item {
  position: absolute;
  top: var(--sm-top, 7px);
  left: 0;
  width: var(--sm-w, 138px);
  height: var(--sm-h, 79px);
  overflow: hidden;
  border: 0 solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  box-sizing: border-box;
  transition: left 0.3s ease-in-out, top 0.3s ease-in-out, width 0.3s ease-in-out, height 0.3s ease-in-out;
}

.lb-feature-thumb-item.is-select {
  top: 0;
  width: var(--cur-w, 163px);
  height: var(--cur-h, 93px);
  border-width: 4px;
  border-radius: 11px;
}

.lb-feature-thumb-item.no-anim {
  transition: none;
}

.lb-feature-thumb {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 0;
  border-radius: 7px;
  background: var(--bg-elev);
  cursor: pointer;
}

.lb-feature-thumb img {
  position: absolute;
  inset: 0;
}

@media (max-width: 1024px) {
  .lb-index-links {
    grid-template-columns: repeat(2, auto);
  }

  .lb-feature-title {
    font-size: 22px;
  }

  .lb-vod-grid.lb-hot-track {
    gap: 16px;
  }

  .lb-hot-track > .lb-vod-card {
    flex-basis: calc((100% - 64px) / 5);
  }

  .lb-hscroll-btn--prev {
    left: -14px;
  }

  .lb-hscroll-btn--next {
    right: -14px;
  }
}

/* 平板双栏：资讯栏窄，标题＋两行简介＋大播放钮会压到底部缩图窗口，简介收成一行、播放钮缩小 */
@media (min-width: 768px) and (max-width: 1024px) {
  .lb-feature-info {
    justify-content: flex-start;
    padding-top: 20px;
  }

  .lb-feature-title {
    margin-bottom: 4px;
    font-size: 20px;
    line-height: 1.2;
  }

  .lb-feature-blurb {
    line-height: 1.5;
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }

  .lb-feature-play {
    width: 34px;
    height: 34px;
    margin-top: 8px;
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .lb-index-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .lb-index-links {
    grid-template-columns: repeat(var(--ix-cols, 2), auto);
    gap: 4px 18px;
  }

  .lb-index-card {
    min-height: 0;
    padding: 12px 16px;
  }

  .lb-index-title {
    margin-bottom: 6px;
    font-size: 16px;
    line-height: 22px;
  }

  .lb-index-title .mac-icon {
    width: 14px;
    height: 14px;
  }

  .lb-index-links a {
    font-size: 13px;
    line-height: 19px;
  }

  .lb-index-mark {
    width: 64px;
    height: 64px;
  }

  .lb-vod-grid.lb-hot-track {
    gap: 10px;
  }

  .lb-hot-track > .lb-vod-card {
    flex-basis: calc((100% - 20px) / 3);
  }

  .lb-hscroll-btn {
    display: none;
  }

  /* 窄卡放不下大号名次，缩小并隐藏副标 */
  .lb-hot-track .lb-vod-hot-index {
    width: 30px;
    font-size: 36px;
    line-height: 48px;
  }

  .lb-hot-track .lb-vod-sub {
    display: none;
  }

  /* 手机：取色面板垫在图与资讯后面，资讯接在图下方，缩图静态排在最后 */
  .lb-feature-item.lb-active {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 108px;
  }

  .lb-feature-bg {
    grid-column: 1;
    grid-row: 1 / span 3;
    margin: 0;
  }

  .lb-feature-pic {
    grid-row: 1;
    margin: 12px 12px 0;
  }

  /* 标题整行在上，下一行左简介、右播放钮，避免播放钮独占一行 */
  .lb-feature-info {
    grid-column: 1;
    grid-row: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 14px;
    margin-top: 0;
    padding: 14px 15px 12px;
  }

  .lb-feature-title {
    grid-column: 1 / -1;
    margin-bottom: 6px;
    font-size: 18px;
  }

  .lb-feature-blurb {
    grid-column: 1;
  }

  .lb-feature-play {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    width: 44px;
    height: 44px;
    margin-top: 0;
  }

  /* 手机：缩图窗口放在面板底部的预留行里 */
  .lb-feature-thumbs {
    right: 15px;
    bottom: 8px;
    left: 15px;
  }
}

/* ===== 分类区块日排行（index.md 强制2.3）：桌面态快捷导览，移动端隐藏 ===== */
.sh-dayrank {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 10px 0 20px;
  padding: 0 0 2px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.sh-dayrank::-webkit-scrollbar {
  display: none;
}

.sh-dayrank li {
  flex-shrink: 0;
  white-space: nowrap;
}

.sh-dayrank a {
  font-size: 12px;
  color: var(--text-muted);
}

.sh-dayrank a:hover {
  color: var(--accent);
}

@media (max-width: 767px) {
  .sh-dayrank {
    display: none;
  }
}

/* ===== 选集列表（widget/playlist，详情/播放页共用）：标题右侧为来源页签，页签与下方面板相接 ===== */
.lb-playlist .lb-module-hd {
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 0;
}

.lb-playlist .lb-module-title {
  align-self: center;
  margin-right: auto;
  font-size: 24px;
}

.lb-playlist-sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: center;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--bg-elev);
  border-radius: var(--radius);
  background: none;
  color: var(--text-light);
  font-size: 13px;
  cursor: pointer;
}

.lb-playlist-sort:hover,
.lb-playlist-sort[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent-tab);
}

.lb-playlist-sources {
  display: flex;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.lb-playlist-sources::-webkit-scrollbar {
  display: none;
}

.lb-playlist-sources > li {
  flex-shrink: 0;
}

.lb-source-tab,
.lb-down-src-tab {
  position: relative;
  flex-shrink: 0;
  height: 45px;
  padding: 0 15px;
  border: none;
  border-radius: 6px 6px 0 0;
  background: none;
  color: var(--text-light);
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
}

.lb-source-tab:hover,
.lb-down-src-tab:hover {
  color: var(--text);
}

.lb-source-tab.lb-active,
.lb-down-src-tab.lb-active {
  background: var(--bg-white);
  color: var(--accent-tab);
  font-weight: 700;
}

.lb-source-count {
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 8px;
  background: var(--grad-play);
  color: #fff;
  font-size: 11px;
  font-weight: 400;
  line-height: 15px;
}

.lb-playlist-empty {
  margin-top: 17px;
  padding: 24px 0;
  border-radius: var(--radius);
  background: var(--bg-white);
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

.lb-playlist-panel {
  display: none;
  padding: 20px;
  border-radius: var(--radius) 0 var(--radius) var(--radius);
  background: var(--bg-white);
}

.lb-playlist-panel.lb-active {
  display: block;
}

/* 超过 380px 在框内滚动（需求方决定比照目标站，不用展开按钮） */
.lb-playlist-episodes-wrap {
  max-height: 380px;
  padding-right: 5px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--border-mid) transparent;
  scrollbar-width: thin;
}

.lb-playlist-episodes-wrap::-webkit-scrollbar {
  width: 5px;
}

.lb-playlist-episodes-wrap::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background: var(--border-mid);
}

.lb-playlist-episodes {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

/* li 只做列表语义，让集数按钮撑满格子 */
.lb-playlist-episodes > li {
  display: grid;
  min-width: 0;
}

/* 长集名换行，不用省略号吞掉（强制8.2） */
.lb-episode {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--bg-elev);
  color: var(--text);
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
  transition: color 0.15s, border-color 0.15s;
}

.lb-episode:hover {
  border-color: var(--accent);
  color: var(--accent-tab);
}

.lb-episode.lb-active {
  border-color: transparent;
  background: var(--grad-play);
  color: #fff;
  font-weight: 700;
}

.lb-playlist-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  margin-top: 15px;
  padding: 8px 0;
  border: none;
  border-radius: var(--radius);
  background: var(--bg-elev);
  color: var(--text-light);
  font-size: 13px;
  cursor: pointer;
}

.lb-playlist-more:hover {
  box-shadow: inset 0 0 0 1px var(--accent);
  color: var(--accent-tab);
}

.lb-playlist-more[hidden] {
  display: none;
}

.lb-playlist-more[aria-expanded="true"] .mac-icon {
  transform: rotate(180deg);
}

.lb-playlist-episodes--long {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .lb-playlist-episodes {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .lb-playlist-episodes--long {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 手机：来源页签换到标题下一行、可横向滑动（强制8.3） */
@media (max-width: 767px) {
  .lb-playlist .lb-module-hd {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .lb-playlist .lb-module-title {
    font-size: 20px;
  }

  .lb-playlist-sources {
    order: 3;
    width: 100%;
  }

  .lb-source-tab,
  .lb-down-src-tab {
    height: 40px;
    font-size: 13px;
  }

  .lb-playlist-panel {
    padding: 15px;
    border-radius: 0 var(--radius) var(--radius) var(--radius);
  }

  .lb-playlist-episodes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lb-playlist-episodes--long {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lb-episode {
    min-height: 30px;
    padding: 4px 6px;
    font-size: 12px;
  }
}

/* ===== 热点资讯 ===== */
.lb-news-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
}

.lb-news-card {
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-white);
  box-shadow: var(--shadow);
  border-top: 2px solid var(--accent);
  transition: transform 0.2s;
}

.lb-news-card:hover {
  transform: translateY(-6px);
}

.lb-news-card a {
  display: block;
}

.lb-news-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  margin: 0;
  background: var(--bg-light) url('../img/load.gif') no-repeat center center;
  background-size: cover;
}

.lb-news-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lb-news-title-wrap {
  box-sizing: border-box;
  padding: 8px 10px 10px;
  /* max-height 用 border-box 计算（含 padding），精确等于 padding(8+10=18px) + 内容2行高度(12px*1.5*2=36px)，
     不依赖 -webkit-line-clamp 单独计算行数，避免不同浏览器对多行截断支援度不一致时内容溢出 */
  max-height: 54px;
  overflow: hidden;
}

.lb-news-card h3 {
  font-size: 12px;
  color: var(--text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: break-word;
}

/* ===== 影片卡片通用 ===== */

.lb-vod-card {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.lb-vod-card a {
  display: block;
}

/* hover 详情由 widget/vod_card_popout 浮层呈现（skill 强制15）；卡片本身只做轻微阴影＋标题变色 */
@media (hover: hover) and (pointer: fine) {
  .lb-vod-card:hover {
    z-index: 50;
  }

  .lb-vod-card:hover .lb-vod-thumb {
    box-shadow: var(--shadow-card-hover);
  }

  .lb-vod-card:hover .lb-vod-name {
    color: var(--accent);
  }
}

/* 直版封面 3:4（目标站 201x267）；横版用 .lb-vod-grid--wide */
.lb-vod-thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius);
  background: var(--border-mid) url('../img/load.gif') no-repeat center center;
  background-size: cover;
  transition: box-shadow 0.2s;
}

.lb-vod-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 底部暗角：承载集数（左）与评分（右）两个白字叠层 */
.lb-vod-thumb::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.lb-vod-remarks {
  position: absolute;
  left: 10px;
  right: 56px;
  bottom: 8px;
  z-index: 1;
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lb-vod-score {
  position: absolute;
  right: 10px;
  bottom: 6px;
  z-index: 1;
  color: #fff;
  font-family: "DIN Alternate", "DIN", Arial, sans-serif;
  font-size: 26px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
}

.lb-vod-info {
  display: block;
  min-width: 0;
  margin-top: 10px;
}

.lb-vod-name {
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.lb-vod-sub {
  margin: 0;
  overflow: hidden;
  color: rgba(24, 25, 28, 0.5);
  font-size: 13px;
  line-height: 16px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 热播榜卡片按影片所属一级分类取色（widget/vod_card 写入 lb-hue-N），与榜单带同一组色票 */
.lb-hue-0 { --card-tint: rgb(var(--hue-0)); }
.lb-hue-1 { --card-tint: rgb(var(--hue-1)); }
.lb-hue-2 { --card-tint: rgb(var(--hue-2)); }
.lb-hue-3 { --card-tint: rgb(var(--hue-3)); }
.lb-hue-4 { --card-tint: rgb(var(--hue-4)); }
.lb-hue-5 { --card-tint: rgb(var(--hue-5)); }
.lb-hue-6 { --card-tint: rgb(var(--hue-6)); }

/* 热播榜卡：资讯区底色与名次数字取 --card-tint（由 lb-hue-N 或榜单带提供，没有时用兜底色） */
.lb-vod-card--hot {
  --tint: var(--card-tint, var(--card-tint-default));
  border-radius: var(--radius);
  background: var(--accent-light);
  background: color-mix(in srgb, var(--tint) 10%, transparent);
}

.lb-vod-card--hot .lb-vod-info {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  margin-top: 0;
  padding: 2px 10px 2px 8px;
}

.lb-vod-hot-index {
  grid-row: 1 / span 2;
  width: 44px;
  color: var(--tint);
  font-size: 60px;
  font-weight: 900;
  line-height: 64px;
  white-space: nowrap;
  opacity: 0.35;
}

/* 两位数名次缩小，避免挤掉片名 */
.lb-vod-hot-index--long {
  width: 52px;
  font-size: 40px;
  letter-spacing: -2px;
}

.lb-vod-card--hot .lb-vod-name,
.lb-vod-card--hot .lb-vod-sub {
  grid-column: 2;
}

/* ===== 影片卡片 hover 详情浮层（skill 强制15，样板 tp17/tp13）===== */
/* 边缘翻转 pop-left/pop-right 由 vod_card.js 在 mouseenter 时判定 */
.hover-popout {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 60;
  /* 至少比卡片大一圈：直版大卡时固定 300px 会比卡片还小 */
  width: max(300px, calc(100% + 40px));
  min-height: calc(100% + 30px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, -50%) scale(0.6667);
  transform-origin: center center;
}

.hover-popout.pop-left {
  left: 0;
  transform: translate(0, -50%) scale(0.6667);
  transform-origin: left center;
}

.hover-popout.pop-right {
  left: auto;
  right: 0;
  transform: translate(0, -50%) scale(0.6667);
  transform-origin: right center;
}

@media (hover: hover) and (pointer: fine) and (min-width: 768px) {
  .lb-vod-card:hover .hover-popout {
    display: flex;
    flex-direction: column;
    visibility: visible;
    pointer-events: auto;
    animation: popoutIn 0.25s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.15s;
  }

  .lb-vod-card:hover .hover-popout.pop-left {
    animation-name: popoutInLeft;
  }

  .lb-vod-card:hover .hover-popout.pop-right {
    animation-name: popoutInRight;
  }
}

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

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

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

.popout-inner {
  position: relative;
  flex: 1;
  padding-bottom: 14px;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-white);
}

.hover-popout .popout-cover {
  position: relative;
  display: block;
  flex-grow: 1;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-elev);
}

.popout-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popout-cover-shadow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 70px;
  background: linear-gradient(rgba(0, 0, 0, 0), var(--bg-white));
}

.popout-title-wrap {
  position: relative;
  margin-top: -30px;
  padding: 0 14px;
}

.popout-title {
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.popout-mix {
  padding: 10px 14px 0;
}

.popout-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow: hidden;
}

.popout-tag {
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius);
  font-size: 11px;
  line-height: 20px;
  white-space: nowrap;
}

.popout-tag--year {
  flex-shrink: 0;
  color: #fff;
  background: var(--accent);
  font-weight: 700;
}

.popout-tag--main {
  color: var(--accent);
  background: var(--accent-light);
}

.popout-tag--grey {
  color: var(--text-light);
  background: var(--bg-elev);
}

.popout-tag--plain {
  overflow: hidden;
  color: var(--text-muted);
  text-overflow: ellipsis;
}

.popout-label {
  color: var(--text-muted);
}

.popout-actor {
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--text-light);
  font-size: 12px;
  line-height: 1.6;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.popout-desc {
  display: -webkit-box;
  margin: 6px 0 0;
  overflow: hidden;
  color: var(--text-light);
  font-size: 12px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.popout-score {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px 0;
  color: var(--text);
  font-size: 12px;
}

.popout-score .mac-icon,
.popout-score .score-num {
  color: #ffb200;
}

.popout-score .score-num {
  font-weight: 700;
}

/* ===== 影片文字列表（补充标题清单，桌机限定） ===== */

.lb-vlt-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-size: 13px;
}

/* ===== 首页（比照目标站：轮播 → 正在热映 → 分类区块 → 排行榜） ===== */

/* 头图轮播：widget/home_hero（首页与分类频道页共用），home_hero.js 选取 data-hero-*；
   全幅叠在顶栏之下，缩图列即分页（目标站写法） */
.lb-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 1;
  min-height: 400px;
  margin: calc(-1 * var(--topbar-h)) 0 76px;
  overflow: hidden;
  background: var(--bg);
}

/* 底部渐白，与页面底色接成一片 */
.lb-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 60px;
  background: linear-gradient(rgba(255, 255, 255, 0), var(--bg));
  pointer-events: none;
}

/* 切换用淡入淡出（目标站做法）：各张叠在一起，当前张 opacity 1；隐藏的张延迟到淡出结束才 visibility:hidden */
.lb-hero-track {
  position: relative;
  height: 100%;
}

.lb-hero-slide {
  position: absolute;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}

/* JS 尚未接手前（或没有 JS）先显示第一张，避免头图空白 */
.lb-hero-track:not(.is-ready) .lb-hero-slide:first-child {
  z-index: 1;
  visibility: visible;
  opacity: 1;
}

.lb-hero-slide.lb-active {
  z-index: 1;
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

/* 上方压暗保证白色顶栏文字可读；右下压暗保证简介文字可读 */
.lb-hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0) 140px),
    radial-gradient(ellipse at 85% 70%, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 55%);
  pointer-events: none;
}

.lb-hero-bg {
  position: absolute;
  inset: 0 0 2px;
  background-size: cover;
  background-position: center;
}

.lb-hero-info {
  position: absolute;
  right: var(--page-pad);
  bottom: 200px;
  z-index: 2;
  width: min(460px, 42%);
  color: #fff;
  text-align: right;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.lb-hero-title {
  margin: 0 0 8px;
  overflow: hidden;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lb-hero-title a {
  color: #fff;
}

.lb-hero-remarks,
.lb-hero-blurb {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.lb-hero-remarks {
  margin-bottom: 4px;
}

.lb-hero-blurb {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.lb-hero-play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  margin-top: 14px;
  padding: 0 22px 0 16px;
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-shadow: none;
  transition: background 0.2s;
}

.lb-hero-play:hover {
  background: var(--accent-hover);
}

/* 缩图列：由 home_hero.js 依各张 data-thumb/data-name 生成，点击切换 */
.lb-hero-thumbs {
  position: absolute;
  left: calc(var(--page-pad) - 3px);
  right: calc(var(--page-pad) - 3px);
  bottom: 8px;
  z-index: 2;
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lb-hero-thumbs li {
  flex: 0 0 calc((100% - 84px) / 7);
  min-width: 0;
}

/* 缩图：外圈是半透明白框，当前张放大并有一条白色扫光从左到右跑完整个轮播间隔（目标站「loading 边框」）。
   扫光宽度从 3px 过渡到 100%，时长取 --hero-interval（由 home_hero.js 写入，与自动轮播间隔一致） */
.lb-hero-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 175 / 98;
  overflow: hidden;
  padding: 0;
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
  transition: transform 0.35s, box-shadow 0.35s;
}

.lb-hero-thumb-sweep {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: rgba(255, 255, 255, 0.9);
}

.lb-hero-thumb-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 3px;
  border-radius: 8px;
  background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.8) 50%);
  transition: padding 0.35s;
}

.lb-hero-thumb-pic {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-elev);
}

.lb-hero-thumb img {
  position: absolute;
  inset: 0;
}

.lb-hero-thumb-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 8px 4px;
  overflow: hidden;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lb-hero-thumb.lb-active {
  z-index: 3;
  transform: scale(1.19);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16), 0 8px 16px rgba(0, 0, 0, 0.08);
}

.lb-hero-thumb.lb-active .lb-hero-thumb-frame {
  padding: 4px;
}

.lb-hero-thumb.lb-active .lb-hero-thumb-sweep {
  width: 100%;
  transition: width var(--hero-interval, 5s) linear;
}

@media (max-width: 1024px) {
  .lb-hero {
    height: clamp(420px, 56vw, 560px);
    margin-bottom: 40px;
  }

  /* 平板：缩图固定宽、横向滚动；上下左右留出放大张与阴影的空间，免得被裁 */
  .lb-hero-thumbs {
    left: calc(var(--page-pad) - 22px);
    right: calc(var(--page-pad) - 22px);
    bottom: -8px;
    gap: 12px;
    padding: 18px 22px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .lb-hero-thumbs::-webkit-scrollbar {
    display: none;
  }

  /* 缩图列贴近头图底缘，大阴影会被 overflow 裁出一条横线，平板／手机缩小 */
  .lb-hero-thumb.lb-active {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  }

  .lb-hero-thumbs li {
    flex: 0 0 140px;
  }

  .lb-hero-title {
    font-size: 30px;
  }

  .lb-hero-info {
    width: min(420px, 60%);
    bottom: 140px;
  }
}

/* 手机：顶栏不叠在头图上（见 HEADER 手机段），头图回到顶栏下方 */
@media (max-width: 767px) {
  .lb-hero {
    height: 56vw;
    min-height: 240px;
    margin-top: 0;
    margin-bottom: 24px;
  }

  .lb-hero-slide::before {
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.55));
  }

  .lb-hero-info {
    right: var(--page-pad);
    bottom: 100px;
    width: min(240px, 62%);
  }

  .lb-hero-title {
    margin-bottom: 0;
    font-size: 18px;
  }

  .lb-hero-remarks {
    display: none;
  }

  .lb-hero-blurb {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.5;
  }

  .lb-hero-play {
    height: 30px;
    margin-top: 6px;
    padding: 0 14px 0 10px;
    font-size: 13px;
  }

  .lb-hero-thumbs {
    bottom: 12px;
    gap: 12px;
  }

  /* 放大幅度收小，相邻缩图间距够放，不互相压住 */
  .lb-hero-thumb.lb-active {
    transform: scale(1.15);
  }

  .lb-hero-thumbs li {
    flex-basis: 96px;
  }

  .lb-hero-thumb-name {
    display: none;
  }

  .lb-hero-thumb-frame,
  .lb-hero-thumb.lb-active .lb-hero-thumb-frame {
    padding: 2px;
  }
}

/* 区块（module）：标题 + 右侧 tab 或「查看全部」 */
.lb-module {
  margin-bottom: var(--gap-section);
}

.lb-module-hd {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 34px;
  margin-bottom: 12px;
}

.lb-module-title {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin: 0;
  color: var(--text);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
}

.lb-module-icon {
  width: 24px;
  height: 24px;
  margin-right: 16px;
}

.lb-module-icon--fire {
  color: #ff7a1a;
}

.lb-module-icon--like {
  color: #4ab0f5;
}

.lb-module-title a {
  position: relative;
  z-index: 1;
  color: inherit;
}

.lb-module-more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 34px;
  margin-left: auto;
  padding: 0 9px 0 11px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.lb-module-more:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 影片卡网格：桌机/平板 6 栏、手机 3 栏（§12.1） */
.lb-vod-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lb-vod-grid[hidden] {
  display: none;
}

/* 横版卡（正在热映）：封面 4:3（需求方指定，目标站为 16:9.3）、集数改右上角红色胶囊 */
.lb-vod-grid--wide .lb-vod-thumb {
  aspect-ratio: 4 / 3;
}

.lb-vod-grid--wide .lb-vod-remarks {
  left: auto;
  right: 5px;
  top: 5px;
  bottom: auto;
  max-width: calc(100% - 10px);
  padding: 2px 8px;
  border-radius: 8px 7px 8px 8px;
  background: var(--accent);
}

/* 分类频道页大标题：「XX首页｜XX库」，现役项下方红色短条，整列底部 1px 分隔线（目标站实测） */
.lb-channel-hd {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 0 25px;
  padding: 0 0 20px;
}

.lb-channel-hd::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--border);
}

.lb-channel-tab {
  position: relative;
  margin: 0;
  color: var(--text-weak);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  transition: color 0.3s ease;
}

a.lb-channel-tab:hover,
.lb-channel-tab.lb-active {
  color: var(--text);
}

.lb-channel-tab.lb-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20px;
  height: 4px;
  border-radius: 18px 18px 0 0;
  background: var(--accent);
}

.lb-channel-sep {
  width: 1px;
  height: 24px;
  margin: 0 16px;
  background: var(--border-mid);
}

/* 排行榜名次角标（卡片左上角，1/2/3 名红/橙/黄） */
.lb-vod-rank {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 40px;
  height: 50px;
  padding-left: 7px;
  border-top-left-radius: var(--radius);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 30px;
  font-style: italic;
  font-weight: 700;
  line-height: 48px;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 0 100%);
}

.lb-vod-rank--1 { background: var(--accent); }
.lb-vod-rank--2 { background: #ff7733; }
.lb-vod-rank--3 { background: #ffa82e; }

@media (max-width: 767px) {
  .lb-channel-hd {
    justify-content: center;
    margin: 0 -15px 15px;
    padding: 20px 0;
  }

  .lb-channel-tab {
    font-size: 18px;
  }

  .lb-channel-sep {
    height: 16px;
  }

  .lb-vod-rank {
    width: 32px;
    height: 40px;
    padding-left: 5px;
    font-size: 24px;
    line-height: 38px;
  }
}

/* 排行榜：每张榜卡沿用 widget/vodlist_rank，这里改成目标站「名次＋片名/备注＋箭头」样式 */
.lb-rank-paper-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lb-rank-paper {
  min-width: 0;
  padding-bottom: 6px;
  border-radius: var(--radius);
  background: var(--bg-white);
}

.lb-rank-paper-title {
  position: relative;
  margin: 0;
  padding: 20px 15px 25px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.lb-rank-paper-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 12px;
  height: 4px;
  margin-left: -6px;
  border-radius: 2px;
  background: var(--text);
}

.lb-rank-paper-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lb-rank-paper .lb-vlt-rank-item {
  margin: 0 10px;
}

.lb-rank-paper .lb-vlt-rank-link {
  gap: 0;
  padding: 10px 0;
  border-radius: 0;
}

.lb-rank-paper .lb-vlt-rank-link:hover {
  background: none;
}

.lb-rank-paper .lb-vlt-rank-link::after {
  content: '';
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin: 0 8px 0 6px;
  border-top: 1.5px solid var(--text);
  border-right: 1.5px solid var(--text);
  transform: rotate(45deg);
}

/* 名次：与排行榜页清单同一套——1/2/3 名金／银／铜圆形奖牌（三色固定），其余只有灰色斜体数字、不加底 */
.lb-rank-paper .lb-rank-badge {
  width: 22px;
  height: 22px;
  margin-right: 10px;
  background: none;
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 12px;
  font-style: italic;
  font-weight: 800;
  line-height: 22px;
}

.lb-rank-paper .lb-rank-badge--1,
.lb-rank-paper .lb-rank-badge--2,
.lb-rank-paper .lb-rank-badge--3 {
  color: #fff;
  font-style: normal;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6), 0 1px 3px rgba(0, 0, 0, 0.25);
}

.lb-rank-paper .lb-rank-badge--1 { background: radial-gradient(circle at 30% 25%, #fff0b8, #ffd24d 45%, #f09a00); }
.lb-rank-paper .lb-rank-badge--2 { background: radial-gradient(circle at 30% 25%, #fff, #c3cad6 45%, #8e9aac); }
.lb-rank-paper .lb-rank-badge--3 { background: radial-gradient(circle at 30% 25%, #ffe0bd, #d08a4a 45%, #a85f22); }

.lb-rank-paper .lb-vlt-rank-body {
  gap: 0;
}

.lb-rank-paper .lb-vlt-name {
  font-size: 14px;
  line-height: 1.6;
}

.lb-rank-paper .lb-vlt-rank-score,
.lb-rank-paper .lb-vlt-rank-tags,
.lb-rank-paper .lb-vlt-rank-hot {
  display: none;
}

.lb-rank-paper .lb-vlt-remarks {
  display: block;
  overflow: hidden;
  color: #9e9e9e;
  font-size: 12px;
  line-height: 1.6;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .lb-module-title {
    font-size: 24px;
  }

  /* 平板卡片间距与手机版相同（需求方指定，不比照目标站的 18px 15px） */
  .lb-vod-grid {
    gap: 15px 10px;
  }

  /* 正在热映维持 6 栏（§12.1），卡片窄，角标与片名缩小：角标比照目标站平板 10px */
  .lb-vod-grid--wide .lb-vod-remarks {
    top: 4px;
    right: 4px;
    max-width: calc(100% - 8px);
    padding: 3px 7px 2px;
    font-size: 10px;
    line-height: 1.6;
  }

  .lb-vod-grid--wide .lb-vod-name {
    margin-top: 8px;
    font-size: 13px;
  }
}

@media (max-width: 767px) {




  .lb-module {
    margin-bottom: var(--gap-section);
  }

  .lb-module-hd {
    gap: 12px;
    margin-bottom: 15px;
  }

  .lb-module-title {
    font-size: 20px;
  }

  .lb-vod-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px 10px;
  }

  .lb-vod-remarks {
    font-size: 10px;
  }

  /* 正在热映、排行榜改成单排横向滚动（目标站手机版），右侧露出下一张提示可滑 */
  .lb-vod-grid--wide,
  .lb-rank-paper-grid {
    display: flex;
    gap: 10px;
    margin-right: -15px;
    padding-right: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .lb-vod-grid--wide::-webkit-scrollbar,
  .lb-rank-paper-grid::-webkit-scrollbar {
    display: none;
  }

  .lb-vod-grid--wide > .lb-vod-card {
    flex: 0 0 150px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--bg-elev);
    scroll-snap-align: start;
  }

  .lb-vod-grid--wide .lb-vod-thumb {
    border-radius: 0;
  }

  .lb-vod-grid--wide .lb-vod-name {
    margin: 0;
    padding: 8px 10px;
  }

  .lb-rank-paper-grid {
    gap: 15px;
  }

  .lb-rank-paper {
    flex: 0 0 255px;
    scroll-snap-align: start;
  }
}

/* ===== 资讯页共用（art/type + art/detail）：分类导览、两栏版面、侧栏区块 ===== */
/* 分类导览：白面板，左侧标题，下方子分类胶囊；不放背景图，避免和下方轮播重复 */
.lb-art-tabs {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  overflow: hidden;
  margin: 0 0 var(--gap-panel);
  padding: 20px 24px;
  border-radius: 4px;
  background: var(--banner-bg);
  color: #fff;
  isolation: isolate;
}

/* 右下角大号「NEWS」浮水印，压在内容之下 */
.lb-art-tabs::after {
  content: "NEWS";
  position: absolute;
  right: 18px;
  bottom: -16px;
  z-index: -1;
  color: rgba(255, 255, 255, 0.2);
  font-size: 96px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  pointer-events: none;
}

.lb-art-tabs-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.lb-art-tabs-kicker {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

/* 在子分类时，小字是可点回的一级分类 */
.lb-art-tabs-kicker--link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.lb-art-tabs-kicker--link:hover {
  color: #fff;
}

.lb-art-tabs-title {
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.lb-art-tabs-list {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.lb-art-tabs-list::-webkit-scrollbar {
  display: none;
}

/* 子分类胶囊：半透明白底＋白细框，选中变白底蓝字 */
.lb-art-tab {
  flex-shrink: 0;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.lb-art-tab:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.28);
}

.lb-art-tab.lb-active {
  border-color: #fff;
  background: #fff;
  color: var(--banner-ink);
  font-weight: 700;
}

@media (max-width: 767px) {
  .lb-art-tabs {
    gap: 12px;
    min-height: 120px;
    margin-bottom: var(--gap-panel);
    padding: 16px 16px 14px;
    border-radius: 12px;
  }

  .lb-art-tabs-title {
    font-size: 22px;
  }

  .lb-art-tabs::after {
    right: 10px;
    bottom: -10px;
    font-size: 60px;
  }

  .lb-art-tab {
    padding: 6px 13px;
    font-size: 13px;
  }
}

.lb-art-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: var(--gap-panel);
}

.lb-art-content {
  display: flex;
  flex-direction: column;
  gap: var(--gap-panel);
  min-width: 0;
}

.lb-art-side {
  display: flex;
  flex-direction: column;
  gap: var(--gap-panel);
  min-width: 0;
}

.lb-art-side-block {
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07);
}

.lb-art-side-title {
  position: relative;
  margin: 0;
  padding: 14px 18px 14px 30px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.lb-art-side-title::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 18px;
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--art-blue);
  transform: translateY(-50%);
}

/* 首页排行榜卡在 ≤1299px 是横向滚动列里的固定宽卡片，放进侧栏时取消 */
.lb-art-side .lb-rank-paper {
  flex: none;
}

/* 灰底内页（资讯侧栏、排行榜页）里的榜卡：白面板，与其他面板同圆角与阴影 */
.lb-bg-gray .lb-rank-paper {
  border-radius: 4px;
  background: var(--bg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07);
}

/* 侧栏 <1200px 改接在内容下方 */
@media (max-width: 1199px) {
  .lb-art-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.lb-art-sb-read-list {
  margin: 0;
  padding: 6px 0;
}

.lb-art-sb-read-item {
  border-bottom: 1px solid var(--border);
}

.lb-art-sb-read-item:last-child {
  border-bottom: none;
}

.lb-art-sb-read-item a {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  align-items: flex-start;
  transition: background 0.15s;
}

.lb-art-sb-read-item a:hover {
  background: var(--bg-elev);
}

.lb-art-sb-read-thumb {
  width: 72px;
  height: 50px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  margin: 0;
}

.lb-art-sb-read-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s;
}

.lb-art-sb-read-item:hover .lb-art-sb-read-thumb img {
  transform: scale(1.05);
}

.lb-art-sb-read-info {
  flex: 1;
  min-width: 0;
}

.lb-art-sb-read-title {
  font-size: 12px;
  color: var(--text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 4px;
}

.lb-art-sb-read-item:hover .lb-art-sb-read-title {
  color: var(--accent);
}

.lb-art-sb-read-cat {
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-light);
  padding: 1px 6px;
  border-radius: 3px;
}

/* ===== 排行文字清单（大号编号 + 双行资讯，用于侧栏 + 总榜单） ===== */
.lb-vlt-rank-item {
  border-top: none;
  border-bottom: 1px solid var(--border);
}

.lb-vlt-rank-item:last-child {
  border-bottom: none;
}

.lb-vlt-rank-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 12px;
  overflow: hidden;
  border-radius: var(--radius);
  transition: background 0.15s;
}

.lb-vlt-rank-link:hover {
  background: var(--accent-light);
}

/* 排名编号徽章：全站排行榜元件共用（排行榜页 Top1-3 + 侧栏/文字条列 1-N 名），
   1/2/3 名各自实测目标站红/橙/黄，其余名次为中性灰底色 */
.lb-rank-badge {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  background: var(--bg-elev);
  border-radius: var(--radius) var(--radius) var(--radius) 0;
}

.lb-rank-badge--1 { background: var(--accent-red); }
.lb-rank-badge--2 { background: #df642b; }
.lb-rank-badge--3 { background: #fcc400; }

.lb-vlt-rank-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lb-vlt-rank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lb-vlt-rank-link .lb-vlt-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  line-height: 1.3;
  color: var(--text);
}

.lb-vlt-rank-link:hover .lb-vlt-name {
  color: var(--accent);
}

.lb-vlt-rank-score {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--score-green);
}

/* 标签胶囊列（地区/语言/年份，深色方块小标签） */
/* 备注只在首页排行榜（.lb-rank-paper）显示，其余排行清单维持地区/语言/年份标签 */
.lb-vlt-remarks {
  display: none;
}

.lb-vlt-rank-tags {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 6px;
  overflow: hidden;
}

.lb-vlt-rank-tag {
  flex-shrink: 0;
  background: var(--bg-elev);
  color: var(--text-light);
  font-size: 11px;
  line-height: 1.8;
  padding: 0 7px;
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 88px;
}

.lb-vlt-rank-hot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.lb-vlt-rank-hot .mac-icon {
  width: 13px;
  height: 13px;
  color: var(--accent-red);
}

/* ===== 专题卡（widget/topic_card，首页与专题列表页共用）：16:9 封面，片名与简介叠在底部渐层上 ===== */
.lb-topic-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lb-topic-card {
  min-width: 0;
}

.lb-topic-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-elev);
  transition: box-shadow 0.3s;
}

.lb-topic-link:hover {
  box-shadow: var(--shadow-card-hover);
}

.lb-topic-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.lb-topic-link:hover .lb-topic-img {
  transform: scale(1.05);
}

.lb-topic-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0) 60%);
  pointer-events: none;
}

.lb-topic-count {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
}

.lb-topic-content {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  z-index: 2;
  color: #fff;
}

.lb-topic-name {
  margin: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.lb-topic-link:hover .lb-topic-name {
  color: var(--accent-tab);
}

.lb-topic-blurb {
  margin: 2px 0 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 平板降为 3 栏（同属 §11 专题卡例外） */
@media (max-width: 1024px) {
  .lb-topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px 10px;
  }
}

/* 平板 3 栏、手机 2 栏（§11 专题卡例外，需求方 2026-10-16 指定） */
@media (max-width: 767px) {
  .lb-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lb-topic-blurb {
    display: none;
  }
}

/* ===== 友情链接（首页底部，目标站：顶部 2px 分隔线、标题压在线上） ===== */
.lb-friend-links {
  position: relative;
  margin-top: 20px;
  padding: 25px 0 15px;
  border-top: 2px solid var(--border);
}

.lb-friend-links-title {
  position: absolute;
  left: 0;
  top: -13px;
  margin: 0;
  padding-right: 15px;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.lb-friend-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lb-friend-links-list a {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 14px;
}

.lb-friend-links-list a:hover {
  text-decoration: underline;
}

/* ===== Footer ===== */
.lb-site-footer {
  margin-top: auto;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  padding: 24px 20px;
  text-align: center;
}

.lb-site-footer p,
.lb-site-footer address {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 2;
  font-style: normal;
}

.lb-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.lb-footer-links a {
  font-size: 12px;
  color: var(--text-muted);
}

.lb-footer-links a:hover {
  color: var(--accent);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ===== Hover 渐暗效果 ===== */
.lb-news-card,
.lb-vod-card {
  cursor: pointer;
}

.lb-news-card .lb-news-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.2s;
  pointer-events: none;
}

.lb-news-card:hover .lb-news-thumb::after {
  background: rgba(0, 0, 0, 0.25);
}

@keyframes catMenuIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== 通用分页（widget/pagination 全站共用） ===== */
.lb-pagination {
  padding: 15px 0;
}

.lb-pagination-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lb-page-btn,
.lb-page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 14px;
  transition: color 0.15s, background 0.15s;
}

.lb-page-btn {
  padding: 0 18px;
}

.lb-page-btn:hover,
.lb-page-num:hover {
  box-shadow: inset 0 0 0 1px var(--accent);
  color: var(--accent-tab);
}

.lb-page-num.lb-active {
  background: var(--accent-tab);
  color: #fff;
  font-weight: 700;
}

.lb-page-num.lb-active:hover {
  box-shadow: none;
  color: #fff;
}

/* ===== RWD ===== */

/* ── 平板 768px ~ 1024px ── */
@media (max-width: 1024px) {
  .lb-news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ── 手机 < 768px ── */
/* ── 小手机 < 480px ── */
@media (max-width: 479px) {
  .lb-vod-name {
    font-size: 14px;
  }
}

/* ===== 共用评论元件 ===== */
.lb-comment-section {
  background: var(--bg);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07);
  padding: 20px 24px;
  margin-bottom: 14px;
}
.lb-cmt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.lb-cmt-title { font-size: 14px; font-weight: 600; color: var(--text); }
.lb-cmt-count { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.lb-cmt-count em { color: var(--accent); font-style: normal; font-weight: 600; }

.lb-cmt-ajax-wrap { min-height: 60px; }
/* 覆写全站共用 home.css 里 .mac_comment 的写死白底/浅蓝边框（class 为 JS 挂钩须保留） */
.lb-comment-section .mac_comment {
  background: transparent;
  border-color: var(--border);
}
.lb-cmt-loading {
  font-size: 13px;
  color: var(--text-muted);
  padding: 24px 0;
  text-align: center;
}
.lb-cmt-empty {
  padding: 24px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* 评论列表 */
.lb-cmt-list { margin: 0 0 12px; padding: 0; }
.lb-cmt-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.lb-cmt-item:last-child { border-bottom: none; }
.lb-cmt-item-header { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.lb-cmt-item-user { font-size: 13px; font-weight: 600; color: var(--text); }
.lb-cmt-item-time { font-size: 11px; color: var(--text-muted); }
.lb-cmt-item-content { font-size: 13px; color: var(--text-light); line-height: 1.7; }
.lb-cmt-item-reply-list {
  display: block;
  /* 缩排：让回复视觉上从属于上方留言，不跟留言本身等宽对齐 */
  margin: 0 0 0 16px;
  padding: 0;
  box-sizing: border-box;
}

.lb-cmt-item-reply {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  background: var(--bg-light);
  border-left: 3px solid var(--accent);
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
  border-radius: 0 4px 4px 0;
}
.lb-cmt-reply-label { font-weight: 600; color: var(--accent); }
.lb-cmt-item-actions { display: flex; gap: 12px; margin-top: 6px; }
.lb-cmt-action-link {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.lb-cmt-action-link:hover { color: var(--accent); }
.lb-cmt-action-link.disabled { opacity: 0.5; pointer-events: none; }

.lb-cmt-paging {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 12px 0 0;
  list-style: none;
}
.lb-cmt-page-btn {
  padding: 4px 10px;
  background: none;
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-light);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.lb-cmt-page-btn:hover { border-color: var(--accent); color: var(--accent); }
.lb-cmt-page-btn.lb-is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.lb-cmt-page-btn:disabled { opacity: 0.4; cursor: default; pointer-events: none; }

/* 输入表单 */
.lb-cmt-textarea {
  display: block;
  width: 100%;
  min-height: 88px;
  border: 1px solid var(--border-mid);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text);
  resize: none;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
  background: var(--bg-light);
  transition: border-color 0.15s, background 0.15s;
}
.lb-cmt-textarea:focus { border-color: var(--accent); background: var(--bg-elev); }
.lb-cmt-textarea:focus + .lb-cmt-form-bar {
  border-color: var(--accent);
  border-top-color: var(--border);
}
.lb-cmt-form-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--bg-light);
  border: 1px solid var(--border-mid);
  border-top: 1px solid var(--border);
  border-radius: 0 0 6px 6px;
  padding: 10px 14px;
  transition: border-color 0.15s;
}
.lb-cmt-chars { font-size: 12px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }
.lb-cmt-chars em { font-style: normal; color: var(--accent); font-weight: 600; }
.lb-cmt-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.lb-cmt-verify-input {
  width: 88px;
  height: 34px;
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  padding: 0 8px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.lb-cmt-verify-input:focus { border-color: var(--accent); }
.lb-cmt-captcha {
  height: 34px;
  width: auto;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid var(--border-mid);
  display: block;
}
.lb-cmt-submit {
  height: 34px;
  padding: 0 20px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.lb-cmt-submit:hover { background: var(--accent-active); }

@media (max-width: 767px) {
  .lb-comment-section {
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
    border-bottom: 8px solid var(--bg-light);
    padding: 14px;
  }
  .lb-cmt-form-bar { flex-wrap: wrap; }
  .lb-cmt-chars { order: 2; }
  .lb-cmt-actions { order: 1; width: 100%; justify-content: flex-end; }
  .lb-cmt-verify-input { width: 80px; }
}

/* ── Login Modal ── */
.lb-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lb-modal-overlay.lb-is-open { display: flex; }

.lb-modal-box {
  background: var(--bg-modal);
  border-radius: 14px;
  padding: 36px 32px 28px;
  width: 90%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.lb-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 4px;
}
.lb-modal-close:hover { color: var(--text); }

.lb-modal-title {
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 28px;
}

.lb-modal-field { margin-bottom: 20px; }

.lb-modal-label {
  display: block;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 6px;
}

.lb-modal-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border-mid);
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
  background: transparent;
  outline: none;
  transition: border-color 0.2s;
}
.lb-modal-input:focus { border-bottom-color: var(--accent); }
.lb-modal-input::placeholder { color: var(--text-muted); }
.lb-modal-verify { display: flex; align-items: center; gap: 10px; }
.lb-modal-verify .lb-modal-input { flex: 1; min-width: 0; }
.lb-modal-captcha { flex-shrink: 0; width: 100px; height: 36px; border-radius: 4px; cursor: pointer; object-fit: contain; }

.lb-modal-submit {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.15s;
}
.lb-modal-submit:hover { background: var(--accent-active); }

.lb-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.lb-modal-link { color: var(--text-muted); }
.lb-modal-link--accent { color: var(--accent); font-weight: 500; }
.lb-modal-link--accent:hover { text-decoration: underline; }

/* ── 系统弹窗（MAC.Pop，home.js 动态注入，样式写死为白底）覆写为深色风格 ── */
/* 播放器 iframe 自带 z-index:99998，弹窗要盖过它 */
.mac_pop_bg,
.mac_pop_msg_bg {
  z-index: 100000 !important;
  background: rgba(0, 0, 0, 0.55);
}

.mac_pop,
.mac_pop_msg {
  z-index: 100001 !important;
  background-color: var(--bg-modal);
  color: var(--text);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.mac_pop .pop_top {
  border-bottom-color: var(--border);
}

.mac_pop .pop_top h2 {
  color: var(--text);
  font-family: inherit;
}

.mac_pop span.pop_close {
  background: none;
  text-indent: 0;
  font-size: 20px;
  line-height: 23px;
  text-align: center;
  color: var(--text-muted);
  transition: color 0.15s;
}
.mac_pop span.pop_close:hover { color: var(--accent); }

.mac_pop .pop-foot {
  border-top-color: var(--border);
}

.mac_pop .pop-ok {
  background-color: var(--accent);
}
.mac_pop .pop-cancel {
  background-color: transparent;
  border-color: var(--border-mid);
  color: var(--text);
}

.mac_pop .pop-msg,
.mac_pop_msg .pop-msg {
  color: var(--text);
}

.mac_pop {
  top: 50% !important;
  left: 50% !important;
  bottom: auto !important;
  right: auto !important;
  transform: translate(-50%, -50%);
  width: min(400px, calc(100vw - 32px)) !important;
  max-height: calc(100vh - 32px) !important;
  height: auto !important;
  display: flex;
  flex-direction: column;
}

.mac_pop .pop_content {
  flex: 1 1 auto;
  overflow-y: auto;
}

.mac_pop_msg {
  top: 50% !important;
  left: 50% !important;
  bottom: auto !important;
  right: auto !important;
  transform: translate(-50%, -50%);
  width: auto !important;
  height: auto !important;
  min-width: 120px;
  max-width: min(80vw, 360px);
  padding: 18px 24px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ── MacCMS 内建 history dropdown（文字列表）隐藏，改用自订带图 modal ── */
.mac_history_box { display: none !important; }

/* ── 历史记录 Modal ── */
.lb-hm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 100000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lb-hm-overlay.lb-is-open { display: flex; }

.lb-hm-box {
  background: var(--bg-modal);
  border-radius: 12px;
  width: 100%;
  max-width: 700px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.lb-hm-header {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.lb-hm-title {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.lb-hm-clear {
  font-size: 13px;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color 0.15s;
}
.lb-hm-clear:hover { color: var(--accent); }
.lb-hm-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--bg);
  border: 1px solid var(--border-mid);
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}
.lb-hm-close:hover { background: var(--border); color: var(--text); }

.lb-hm-body {
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
  scrollbar-width: thin;
  scrollbar-color: var(--border-mid) transparent;
}
.lb-hm-body::-webkit-scrollbar { width: 4px; }
.lb-hm-body::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 2px; }

.lb-hm-card {
  /* 6 per row */
  flex: 0 0 calc((100% - 50px) / 6);
  min-width: 0;
  display: block;
  text-decoration: none;
  color: var(--text);
  align-self: flex-start;
}
.lb-hm-thumb {
  position: relative;
  aspect-ratio: 2/3;
  border-radius: 7px;
  overflow: hidden;
  background: var(--bg);
  /* 让 img absolute 定位有基准，防止图片撑开 grid row */
  contain: strict;
}
.lb-hm-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s;
}
.lb-hm-card:hover .lb-hm-thumb img { transform: scale(1.04); }
.lb-hm-card:hover .lb-hm-name { color: var(--accent); }

.lb-hm-name {
  font-size: 11px;
  margin-top: 5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--text-light);
  transition: color 0.15s;
}
.lb-hm-empty {
  width: 100%;
  text-align: center;
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 13px;
}

@media (max-width: 767px) {
  .lb-hm-box { border-radius: 16px; max-height: 85vh; align-self: center; }
  .lb-hm-overlay { padding: 0 12px; align-items: flex-end; }
  /* 3 per row */
  .lb-hm-card { flex: 0 0 calc((100% - 20px) / 3); }
}

/* ===== 详情页基础信息（widget/detail_hero，详情/下载页共用）=====
   目标站做法：全幅模糊海报底，白字；左侧大海报，右侧标题＋标签、数据列、简介、资料、按钮，评分在右上。
   面包屑与基础信息一起包在 .lb-vd-top 里，模糊底铺满整个 .lb-vd-top（含顶栏下方）。 */
.lb-vd-top {
  position: relative;
  margin: calc(-1 * var(--topbar-h)) 0 var(--gap-panel);
  padding-top: var(--topbar-h);
  color: #fff;
}

.lb-vd-backdrop {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 0;
  width: 100vw;
  overflow: hidden;
  background: #3a3f47;
  transform: translateX(-50%);
  pointer-events: none;
}

.lb-vd-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(40px);
  transform: scale(1.4);
}

/* 压暗一层，保证白字在浅色海报上仍可读（目标站未加，这里是为对比度做的取舍） */
.lb-vd-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0) 160px),
    rgba(0, 0, 0, 0.38);
}

.lb-vd-top > .lb-vd-breadcrumb {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 18px 0 0;
}

.lb-vd-top > .lb-vd-breadcrumb,
.lb-vd-top > .lb-vd-breadcrumb .mac-icon,
.lb-vd-top > .lb-vd-breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
}

.lb-vd-top > .lb-vd-breadcrumb a:hover {
  color: #fff;
}

/* 当前位置的末项：用白色加粗，原来的灰色会被模糊底吃掉 */
.lb-vd-top > .lb-vd-breadcrumb .lb-vd-bc-current {
  color: #fff;
  font-weight: 600;
}

/* 不设定位：模糊底（.lb-vd-backdrop）要以外层 .lb-vd-top 为基准铺满，才会盖到面包屑与顶栏下方 */
.lb-vd-hero {
  position: static;
}

.lb-vd-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 21px;
  padding: 24px 0 40px;
}

.lb-vd-poster {
  flex: 0 0 225px;
  width: 225px;
  height: 300px;
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-elev);
}

.lb-vd-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 内容区至少与海报等高，资料列撑满剩余高度，按钮贴底，使右侧内容与海报下缘对齐 */
.lb-vd-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  min-height: 300px;
}

/* 右上角的评分只占标题区右侧（右内距让位）；简介以下整幅延伸到底，画面才平衡 */
.lb-vd-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 16px;
  padding-right: 220px;
}

.lb-vd-title {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
}

/* 标题、又名、标签三层直排；又名紧贴标题，过长折行最多两行 */
.lb-vd-titlebox {
  width: 100%;
}

.lb-vd-alias {
  margin: 2px 0 0;
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  line-height: 18px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.lb-vd-title-sub {
  margin-left: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7em;
  font-weight: 400;
}

/* 年份/地区/语言/类型：白色细框小方块 */
.lb-vd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lb-vd-tag {
  display: flex;
  align-items: center;
  height: 22px;
  padding: 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 3px;
  background: none;
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  white-space: nowrap;
  transition: border-color 0.15s, box-shadow 0.15s;
}

/* 深色模糊底上悬停：边框与内圈一起转亮蓝（内阴影加粗，不占位） */
.lb-vd-tag:hover {
  border-color: var(--accent-hover);
  box-shadow: inset 0 0 0 1px var(--accent-hover);
}

.lb-vd-tag a,
.lb-vd-names a {
  color: inherit;
}

.lb-vd-tag a:hover,
.lb-vd-names a:hover {
  color: var(--accent-hover);
}

.lb-vd-tag a + a::before,
.lb-vd-names a + a::before {
  content: "/";
  margin: 0 5px;
  opacity: 0.6;
}

.lb-vd-card {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.lb-vd-intro {
  margin-bottom: 12px;
}

/* 资料：两栏对齐（标签等宽、值左对齐），成对的字段在前，主演／标签这类长内容整行排在最后；
   行紧贴排列（align-content:start），多出的高度留在下方，按钮靠 margin-top:auto 贴底 */
.lb-vd-meta {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 6px 40px;
  margin: 0;
}

.lb-vd-meta-row {
  display: flex;
  min-width: 0;
  font-size: 12px;
  line-height: 20px;
}

.lb-vd-meta-row--wide {
  grid-column: 1 / -1;
  order: 2;
}

.lb-vd-meta-row dt {
  flex: 0 0 3.6em;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
}

.lb-vd-meta-row dd {
  min-width: 0;
  margin: 0;
  color: #fff;
}

.lb-vd-names--clamp {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.lb-vd-status--serial {
  color: #ffd666;
  font-weight: 700;
}

/* 评分：右上角，橘色大分数＋五星（目标站 36px、#FFA726） */
.lb-vd-rating {
  position: absolute;
  top: 24px;
  right: 0;
  text-align: right;
}

.lb-vd-score {
  color: #ffa726;
  font-size: 36px;
  font-weight: 400;
  line-height: 36px;
}

/* 没有豆瓣分：占住分数位置的灰字，两种状态版面骨架一致；提权避免被各断点的分数字级覆盖 */
.lb-vd-rating .lb-vd-score--empty {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 20px;
}

.lb-vd-score small {
  margin-left: 6px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
}

.lb-vd-rate {
  margin-top: 8px;
}

.lb-rate-label {
  margin-right: 6px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
}

.lb-rate-stars {
  display: inline-flex;
  gap: 2px;
}

.lb-rs {
  padding: 0 1px;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 18px;
  line-height: 22px;
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
}

.lb-rs:hover {
  transform: scale(1.15);
}

.lb-rs.lb-rs-on {
  color: #ffb400;
}

.lb-vd-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin: 20px 0 0;
}

.lb-vd-meta + .lb-vd-actions {
  margin-top: auto;
  padding-top: 20px;
}

.lb-vd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}

/* 主按钮：蓝色实心 223×48、圆角 8、18px（目标站实测，白字照抄） */
.lb-vd-btn--play {
  min-width: 223px;
  height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
}

.lb-vd-btn--play:hover {
  background: var(--accent-hover);
}

/* 次按钮（下载、分享）：白色膠囊 42px 高，仿目标站分享模块 */
/* 次按钮：与主按钮同高同圆角，半透明白底＋细白框，贴合模糊底（评分条同一语言） */
.lb-vd-btn--sub {
  height: 48px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 16px;
}

/* 模糊底颜色随海报而变，亮蓝字在黄褐底上对比不够；悬停改成白底蓝字反白，任何底色都清楚 */
.lb-vd-btn--sub:hover {
  border-color: #fff;
  background: #fff;
  color: var(--accent-tab);
}

/* 桌机（≥1025）：保持单栏内容区，海报拉伸到与内容区同高（海报以 cover 裁切）；
   ≤1024 海报用固定尺寸（见下） */
@media (min-width: 1025px) {
  .lb-vd-hero-inner {
    align-items: stretch;
  }

  .lb-vd-poster {
    height: auto;
    min-height: 300px;
  }
}

@media (max-width: 1024px) {
  .lb-vd-poster {
    flex-basis: 160px;
    width: 160px;
    height: 213px;
  }

  .lb-vd-head {
    padding-right: 150px;
  }

  .lb-vd-score {
    font-size: 30px;
  }
}

/* 手机：顶栏不叠在模糊底上（见 HEADER 手机段）；海报置中，文字居中，评分接在后面 */
@media (max-width: 767px) {
  .lb-vd-top {
    margin-top: 0;
    padding-top: 0;
  }

  .lb-vd-hero-inner {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 12px 0 24px;
    text-align: center;
  }

  .lb-vd-poster {
    flex-basis: auto;
    width: 150px;
    height: 200px;
  }

  /* body、card 摊平成 hero-inner 的子项，评分条才能用 order 插到资料与按钮之间 */
  .lb-vd-body,
  .lb-vd-card {
    display: contents;
  }

  .lb-vd-head,
  .lb-vd-intro,
  .lb-vd-meta,
  .lb-vd-rating,
  .lb-vd-actions {
    width: 100%;
  }

  /* 标题区居中直排，右侧不再给评分留位 */
  .lb-vd-head {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    order: 1;
    margin-bottom: 0;
    padding-right: 0;
  }

  .lb-vd-titlebox {
    width: 100%;
  }

  .lb-vd-head .lb-vd-tags {
    margin-top: 6px;
  }

  .lb-vd-tags {
    justify-content: center;
  }

  .lb-vd-intro {
    order: 2;
    margin-bottom: 0;
    text-align: left;
  }

  .lb-vd-meta {
    order: 3;
    grid-template-columns: minmax(0, 1fr);
    text-align: left;
  }

  /* 评分条：左分数、右打分，半透明底与相邻区块分隔 */
  .lb-vd-rating {
    position: static;
    display: flex;
    align-items: center;
    justify-content: space-between;
    order: 4;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    text-align: left;
  }

  .lb-vd-score {
    font-size: 28px;
    line-height: 32px;
  }

  .lb-vd-rate {
    margin: 0 0 0 auto;
  }

  .lb-vd-actions {
    order: 6;
    justify-content: center;
  }

  /* 手机：播放（或下载）为主键吃剩余宽度，其余次按钮收成图标在左、文字在右的紧凑按钮；全部同高 43 */
  .lb-vd-actions,
  .lb-vd-meta + .lb-vd-actions {
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 0;
    padding-top: 0;
  }

  .lb-vd-btn--play {
    min-width: 0;
    flex: 1 1 auto;
    height: 43px;
    font-size: 16px;
  }

  .lb-vd-btn--sub {
    flex: 0 0 auto;
    gap: 4px;
    height: 43px;
    padding: 0 14px;
    font-size: 14px;
  }

  /* 只剩分享时滑满整行，避免孤零零一颗小按钮 */
  .lb-vd-actions > .lb-vd-btn--sub:only-child {
    flex: 1 1 auto;
    font-size: 15px;
  }
}

/* ===== 剧情介绍展开/收合（widget/desc_expand）：两段之间留间距（强制7.3），超过 3 行才显示「展开全部」 ===== */
.lb-desc-body {
  position: relative;
  max-height: calc(14px * 1.6 * 3 + 10px);
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

.lb-desc-body * {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  color: inherit !important;
  font-size: inherit !important;
  font-family: inherit !important;
}

.lb-desc-body p {
  margin: 0 0 10px;
}

.lb-desc-body p:last-child {
  margin-bottom: 0;
}

.lb-desc-body.lb-desc-expanded {
  max-height: none;
}

.lb-desc-body.lb-desc-collapsed.lb-desc-has-more::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 30px;
  background: linear-gradient(rgba(246, 247, 248, 0), var(--bg-white));
  pointer-events: none;
}

.lb-desc-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 0;
  border: none;
  background: none;
  color: var(--accent-tab);
  font-size: 13px;
  cursor: pointer;
}

/* 在详情顶部的模糊底上：白字 12px，不要渐隐（底不是纯色），展开钮用白色 */
.lb-vd-hero .lb-desc-body {
  max-height: calc(12px * 1.7 * 3);
  color: #fff;
  font-size: 12px;
  line-height: 1.7;
}

.lb-vd-hero .lb-desc-body.lb-desc-collapsed.lb-desc-has-more::after {
  display: none;
}

.lb-vd-hero .lb-desc-body.lb-desc-expanded {
  max-height: none;
}

.lb-vd-hero .lb-desc-expand-btn {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
}

.lb-vd-hero .lb-desc-expand-btn:hover {
  color: #fff;
}

/* ===== 漂浮功能按钮 (Floating Action Buttons) ===== */
.lb-fab-group {
  position: fixed;
  bottom: 30px;
  right: 24px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  width: auto;
}
.lb-fab-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 174, 236, 0.4), 0 2px 8px rgba(0,0,0,0.12);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  cursor: pointer;
  border: none;
}
.lb-fab-btn:hover {
  background: var(--accent-active);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 28px rgba(0, 174, 236, 0.5), 0 2px 10px rgba(0,0,0,0.16);
}
.lb-fab-btn--top { opacity: 0; pointer-events: none; }
.lb-fab-btn--top.lb-is-visible { opacity: 1; pointer-events: auto; }
.lb-fab-qr-popup {
  position: fixed;
  bottom: 160px;
  right: 24px;
  z-index: 400;
  display: none;
  width: auto;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  text-align: center;
}
.lb-fab-qr-popup.lb-is-open { display: block; }
.lb-fab-qr-popup p { font-size: 12px; color: var(--text-light); margin-bottom: 10px; }
.lb-fab-qr-popup img { width: 130px; height: 130px; border-radius: 4px; background: #fff; display: block; }

@media (max-width: 767px) {
  .lb-fab-group { bottom: 76px; right: 14px; }
  .lb-fab-qr-popup { bottom: 146px; right: 14px; }
}
@media (max-width: 1024px) {
  .lb-fab-btn--qr { display: none; }
}

/* ===== 通用 Toast 提示（全站共用：分享复制链接、评分成功等短暂提示）===== */
.lb-rate-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 24px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 9999;
}
.lb-rate-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== 内页白面板（详情页、播放页共用）：浅灰底上放白面板 ===== */
/* 详情页底色浅灰，内容放白色面板（目标站：#F1F2F3 底、白面板、圆角 4px、极淡阴影） */
.lb-bg-gray {
  background: #f1f2f3;
}

.lb-vd-panel {
  padding: 20px;
  border-radius: 4px;
  background: var(--bg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07);
}

.lb-vd-panel .lb-module-hd {
  margin-bottom: 16px;
}

/* 选集面板里不再叠一层底色 */
.lb-vd-panel .lb-playlist-panel {
  padding: 12px 0 0;
  background: none;
}

/* 面板内的区块（选集等）自带的底部外距要清掉，否则集数少时面板下方会留一大块空白 */
.lb-vd-panel > .lb-module {
  margin-bottom: 0;
}

/* ===== 当前位置 / 面包屑（共用 widget/breadcrumb，详情页 + 播放页共用） ===== */
.lb-vd-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.lb-vd-breadcrumb .mac-icon {
  font-size: 11px;
  color: var(--text-muted);
}
.lb-vd-breadcrumb a {
  color: var(--text-light);
}
.lb-vd-breadcrumb a:hover {
  color: var(--accent);
}
.lb-vd-bc-current {
  color: var(--text-muted);
}
.lb-vd-bc-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.lb-vd-bc-list li {
  display: flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 479px) {
  .lb-vd-breadcrumb { margin-bottom: 14px; gap: 7px; }
  .lb-vd-bc-list, .lb-vd-bc-list li { gap: 7px; }
}
@media (min-width: 480px) and (max-width: 767px) {
  .lb-vd-breadcrumb { margin-bottom: 16px; gap: 7px; }
  .lb-vd-bc-list, .lb-vd-bc-list li { gap: 7px; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .lb-vd-breadcrumb { margin-bottom: 20px; gap: 7px; }
  .lb-vd-bc-list, .lb-vd-bc-list li { gap: 7px; }
}

/* ===== 简单面包屑（专题列表/专题详情/留言板/排行榜等纯文字层级页面共用，见 decisions.md 全局-面包屑） ===== */
.lb-simple-breadcrumb {
  margin-bottom: 16px;
}
.lb-simple-breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--text-muted);
}
.lb-simple-breadcrumb li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lb-simple-breadcrumb li:not(:last-child)::after {
  content: '›';
}
.lb-simple-breadcrumb a {
  color: var(--text-light);
}
.lb-simple-breadcrumb a:hover {
  color: var(--accent);
}
.lb-simple-breadcrumb li[aria-current="page"] {
  color: var(--text-muted);
}
@media (min-width: 1025px) {
  .lb-vd-breadcrumb { margin-bottom: 24px; gap: 7px; }
  .lb-vd-bc-list, .lb-vd-bc-list li { gap: 7px; }
}
@media (max-width: 767px) {
  .lb-vd-breadcrumb { font-size: 12px; }
}
