/* 仅供屏幕阅读器使用的隐藏文字（不影响视觉呈现） */
.dp-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 */
:root {
  --accent: #ff5566;
  --accent-light: rgba(255, 85, 102, 0.16);
  --accent-hover: #ff7688;
  --accent-active: #e0475a;
  --text: #eef0f4;
  --text-muted: #7a7e8a;
  --text-light: #b4b8c2;
  --bg: #14151a;
  --bg-white: #1e2027;
  --bg-light: #191b21;
  --bg-elev: #262933;
  --bg-modal: #23252d;
  --border: #2b2e37;
  --border-mid: #3c4050;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
  --score-green: #34d058;
  /* 容器最大寬度：比照 Bootstrap 斷點階梯 (sm/md/lg/xl/xxl) */
  --max-w: 540px;
}
@media (min-width: 768px) {
  /* 768px 断点容器宽度调高，让 iPad 直向（768~834px 常见宽度）不会留白过多 */
  :root { --max-w: 760px; }
}
@media (min-width: 992px) {
  :root { --max-w: 960px; }
}
@media (min-width: 1200px) {
  :root { --max-w: 1140px; }
}
@media (min-width: 1400px) {
  :root { --max-w: 1320px; }
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.mac-icon {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 加载前占位（强制4.3）：全局一条，不逐个 widget 补 */
  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;
}
.dp-page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.dp-page-shell > * {
  width: 100%;
  min-width: 0;
}
.dp-text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* ===========================
   HEADER
   =========================== */
.dp-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.2s;
}
.dp-header-desktop {
  background: rgba(20, 21, 26, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.dp-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.dp-brand-block {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.dp-brand-block.dp-logo {
  display: block;
  width: 120px;
  height: 40px;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  overflow: hidden;
  opacity: 1;
  transition: width 0.25s ease, opacity 0.2s ease, margin 0.25s ease;
}
.dp-main-nav {
  flex: 1;
}
.dp-main-nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  margin: 0;
  padding: 0;
}
.dp-main-nav a {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--text-light);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.dp-main-nav a:hover {
  color: var(--accent);
}
.dp-main-nav a.dp-active {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
  border-radius: 0;
  padding-bottom: 3px;
}
.dp-header-actions {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}
.dp-header-actions .dp-ha-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-elev);
    font-size: 20px;
    transition: background 0.15s, transform 0.15s;
    text-decoration: none;
}
.dp-header-actions .dp-ha-btn:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}
.dp-header-actions .dp-ha-btn.dp-active {
    background: var(--accent);
    color: #fff;
}
.dp-header-actions-mobile .dp-ham-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-elev);
    font-size: 16px;
    transition: background 0.15s;
    text-decoration: none;
}
.dp-header-actions-mobile .dp-ham-btn:hover {
    background: var(--accent-light);
}
/* ── 搜寻框 + 按钮（比照目标站：单一边框输入框 + 内嵌放大镜图示，无实心按钮） ── */
.dp-search-box {
  position: relative;
  flex: 0 0 auto;
  width: 200px;
  height: 30px;
}
.dp-search-box input {
  width: 100%;
  height: 30px;
  box-sizing: border-box;
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  padding: 0 34px 0 12px;
  outline: none;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-elev);
  transition: border-color 0.15s, background 0.15s;
}
.dp-search-box input:focus {
  border-color: var(--accent);
  background: var(--bg-elev);
}
.dp-search-submit-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 15px;
  color: var(--accent);
  transition: color 0.15s;
}
.dp-search-submit-btn:hover {
  color: var(--accent-active);
}
.dp-search-submit-btn:active {
  color: var(--accent-active);
  transform: scale(0.95);
}
/* ===========================
   首页内容区
   =========================== */
.dp-home-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 20px 48px;
}
.dp-content-block {
  margin-bottom: 24px;
}
.dp-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.dp-section-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.dp-sh-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 13px;
  flex-shrink: 0;
}
.dp-sh-icon--fire {
  background: var(--accent-light);
}
.dp-sh-icon--news {
  background: rgba(59, 130, 246, 0.16);
}
.dp-sh-icon--movie {
  background: rgba(139, 92, 246, 0.16);
}
.dp-sh-icon--tv {
  background: rgba(34, 197, 94, 0.16);
}
.dp-sh-icon--show {
  background: rgba(251, 191, 36, 0.16);
}
.dp-sh-icon--anime {
  background: rgba(236, 72, 153, 0.16);
}
.dp-sh-icon--short {
  background: var(--accent-light);
}
.dp-sh-icon--doc {
  background: rgba(6, 182, 212, 0.16);
}
.dp-sh-icon--topic {
  background: rgba(249, 115, 22, 0.16);
}
.dp-sh-icon--rank {
  background: rgba(245, 166, 35, 0.16);
}
.dp-sh-badge {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
}
.dp-sh-badge em {
  font-style: normal;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
}
.dp-section-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  overflow: hidden;
}
.dp-section-breadcrumb a {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}
.dp-section-breadcrumb a:hover {
  color: var(--accent);
}
.dp-section-breadcrumb a:first-child {
  color: var(--text-light);
  font-weight: 500;
}
.dp-refresh-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-elev);
  flex-shrink: 0;
  white-space: nowrap;
}
.dp-refresh-btn:hover {
  color: var(--accent);
  background: var(--accent-light);
}
/* ===========================
   首页面板标头（比照目标站 .ewave-pannel_hd / .ewave-pannel__head）
   仅用于首页各面板，独立于全站共用的 .dp-section-header，避免影响其他页面
   =========================== */
.dp-pannel-hd {
  position: relative;
  height: 40px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dp-pannel-hd-title {
  display: flex;
  align-items: center;
  margin: 0;
  padding-right: 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  flex-shrink: 0;
  min-width: 0;
}
.dp-pannel-hd-title .mac-icon {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  color: var(--accent);
  flex-shrink: 0;
}
.dp-pannel-hd-right {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.dp-pannel-hd-more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1;
  color: var(--text-muted);
}
.dp-pannel-hd-more:hover {
  color: var(--accent);
}
/* 子分类快速连结（比照目标站 .ewave-pannel__head 内的 .nav.nav-text.pull-right，
   仅桌机 ≥1200px 显示，跟目标站 hidden-sm hidden-xs 一致） */
.dp-pannel-hd-sub {
  display: none;
  align-items: center;
  margin: 0;
  padding: 0;
}
.dp-pannel-hd-sub li {
  display: flex;
  align-items: center;
  line-height: 1;
}
.dp-pannel-hd-sub li:nth-child(n+10) {
  display: none;
}
.dp-pannel-hd-sub a {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}
.dp-pannel-hd-sub a:hover {
  color: var(--accent);
}
.dp-pannel-hd-sub .dp-split-line {
  display: inline-block;
  margin: 0 12px;
  width: 1px;
  height: 14px;
  background: var(--border-mid);
}
/* ===========================
   面板容器 + 选集列表（共用于 vod/detail、vod/play，见 widget/playlist）
   比照目标站：不做白底卡片外观，区块直接融入页面背景，仅靠 pannel-hd
   的图示、标题与底部分隔线来划分区块；选集按钮采用目标站的胶囊圆角
   =========================== */
.dp-pannel-box {
  margin-bottom: 32px;
}
.dp-pannel-box .dp-pannel-hd {
  margin-bottom: 14px;
}
/* 选集列表：来源分页放在标头右侧（比照目标站 nav-tabs pull-right） */
.dp-playlist-sources {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}
.dp-source-tab {
  font-size: 13px;
  color: var(--text-light);
  background: none;
  border: none;
  padding: 0 0 2px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.dp-source-tab.dp-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}
.dp-playlist-empty {
  font-size: 13px;
  color: var(--text-muted);
  padding: 16px 0;
  text-align: center;
}
.dp-playlist-panel { display: none; }
.dp-playlist-panel.dp-active { display: block; }
/* 选集网格（比照目标站 .ewave-content__playlist.column8：桌机 8 栏，固定高度滚轮滑动） */
.dp-playlist-episodes-wrap {
  max-height: 236px;
  overflow-y: auto;
  padding-right: 10px;
}
.dp-playlist-episodes-wrap::-webkit-scrollbar {
  width: 6px;
}
.dp-playlist-episodes-wrap::-webkit-scrollbar-track {
  background: var(--bg-light);
  border-radius: 999px;
}
.dp-playlist-episodes-wrap::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 999px;
}
.dp-playlist-episodes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* 选集按钮：胶囊圆角（比照目标站） */
.dp-episode {
  flex: 0 0 calc(12.5% - 7px);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  padding: 6px 6px;
  border-radius: 999px;
  background: var(--bg-white);
  color: var(--text);
  border: 1px solid var(--border);
  transition: all 0.15s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dp-episode:hover { color: var(--accent); border-color: var(--accent); }
.dp-episode.dp-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
/* 屏幕越窄，每行显示的集数越少，让单集按钮有更多宽度显示文字（padding 维持不变） */
@media (max-width: 1199px) {
  .dp-episode { flex: 0 0 calc(16.6667% - 7px); }
}
@media (max-width: 767px) {
  .dp-playlist-episodes { gap: 4px; }
  .dp-episode { flex: 0 0 calc(25% - 3px); }
  .dp-pannel-box .dp-pannel-hd {
    height: auto;
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .dp-playlist-sources {
    gap: 16px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .dp-playlist-sources::-webkit-scrollbar {
    display: none;
  }
  .dp-source-tab {
    flex-shrink: 0;
  }
}
@media (max-width: 479px) {
  .dp-episode { flex: 0 0 calc(33.3333% - 3px); }
}
@media (min-width: 1200px) {
  .dp-pannel-hd-sub {
    display: flex;
  }
}
/* ===========================
   热播推荐：马赛克排列（1 大 + 多小，比照目标站首个 panel）
   =========================== */
.dp-hot-mosaic {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
}
.dp-hot-mosaic > .dp-vod-card:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.dp-hot-mosaic > .dp-vod-card:first-child a {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.dp-hot-mosaic > .dp-vod-card:first-child .dp-vod-thumb {
  flex: 1;
  aspect-ratio: auto;
}
/* 防御性封顶：本环境 num 参数不保证限制笔数 */
.dp-hot-mosaic > .dp-vod-card:nth-child(n+14) {
  display: none;
}
/* ===========================
   热播推荐卡片
   =========================== */
.dp-hot-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.dp-hot-grid::-webkit-scrollbar {
  display: none;
}
.dp-hot-card {
  flex: 0 0 calc(16.6666% - 9px);
  min-width: 150px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-white);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.dp-hot-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.dp-hot-thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  margin: 0;
}
.dp-hot-badge-tl {
  position: absolute;
  top: 6px;
  left: 6px;
  display: flex;
  gap: 3px;
}
.dp-hot-remarks {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
}
.dp-hot-info {
  padding: 8px 10px 10px;
}
.dp-hot-info h3 {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}
.dp-hot-info p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* ===========================
   热点资讯
   =========================== */
.dp-news-grid {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.dp-news-card {
  flex: 1 1 0;
  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;
}
.dp-news-card:hover {
  transform: translateY(-6px);
}
.dp-news-card a {
  display: block;
}
.dp-news-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  margin: 0;
  background: var(--bg-light) url('../img/load.gif') no-repeat center center;
  background-size: cover;
}
.dp-news-title {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  padding: 8px 10px 10px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-all;
}
/* ===========================
   影片卡片通用
   =========================== */
.dp-vod-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.dp-vod-list--wrap2 .dp-vod-card:nth-child(n+13) {
  display: none;
}
.dp-vod-card {
  position: relative;
  z-index: 1;
  flex: 0 0 calc(16.666% - 9px);
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;   /* hover 时临时放开，否则浮层被裁（强制11.8） */
  background: var(--bg-white);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.dp-vod-card a {
  display: block;
}
/* 悬停效果比照目标站：仅在支持 hover 的输入装置上触发，避免触控装置出现黏滞悬停 */
@media (hover: hover) and (pointer: fine) {
  .dp-vod-card:hover {
    z-index: 20;
    transform: scale(1.25);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6);
  }
  .dp-vod-card:hover .dp-vod-thumb img {
    transform: scale(1.07);
  }
}
.dp-vod-thumb {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  margin: 0;
  background: var(--bg-light) url('../img/load.gif') no-repeat center center;
  background-size: cover;
}
.dp-vod-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.dp-vod-list--s .dp-vod-card {
  flex: 0 0 calc(20% - 8px);
}
.dp-vod-badges {
  position: absolute;
  top: 5px;
  left: 5px;
  display: flex;
  gap: 3px;
}
/* 右下角小圆角标签（依 claude-design/design_v4.html 由满宽渐层字幕列改为独立徽章） */
.dp-vod-remarks {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 1px 7px;
  border-radius: 3px;
  background: rgba(10, 14, 26, 0.85);
  border: 1px solid #2f6fd6;
  color: #3d84e8;
  font-weight: 700;
  font-size: 11px;
  overflow: hidden;
  white-space: nowrap;
}
/* 左上角评分缎带（比照目标站 .pic-tag-h，主色底、不规则圆角） */
.dp-vod-score {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  padding: 2px 8px;
  border-radius: 4px 0 8px 0;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
}
.dp-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  color: #fff;
}
.dp-badge-year {
  background: #2d6bf5;
}
.dp-badge-tag {
  background: #f5a623;
}
.dp-badge-blue {
  background: #1d8cff;
}
.dp-vod-name {
  font-size: 14px;
  font-weight: 500;
  padding: 7px 8px 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}
.dp-vod-sub {
  font-size: 12px;
  color: var(--text-muted);
  padding: 0 8px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
/* ===========================
   影片文字列表（补充标题清单，桌机限定）
   =========================== */
.dp-vodlist-text {
  display: flex;
  flex-wrap: wrap;
  margin: 4px 0 0;
  padding: 0;
}
.dp-vlt-item {
  flex: 0 0 25%;
  min-width: 0;
  border-top: 1px dotted var(--border-mid);
}
/* 防御性封顶：本环境 num 参数不保证限制笔数，用 CSS 隐藏多出的项目 */
.dp-vlt-item:nth-child(n+17) {
  display: none;
}
.dp-vlt-item:nth-child(-n+4) {
  border-top: none;
}
.dp-vlt-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 15px 9px 0;
  overflow: hidden;
}
.dp-vlt-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-size: 13px;
}
.dp-vlt-link:hover .dp-vlt-name {
  color: var(--accent);
}
.dp-vlt-tag {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 12px;
}
/* ===========================
   首页头图轮播
   =========================== */
.dp-home-hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  background: #111;
}
.dp-home-hero-track {
  display: flex;
  transition: transform 0.3s ease;
}
.dp-home-hero-slide {
  min-width: 100%;
  position: relative;
}
.dp-home-hero-slide a {
  display: block;
  padding-top: 30%;
  background-color: #111;
  background-position: center center;
  background-size: cover;
}
.dp-hh-info {
  position: absolute;
  left: 40px;
  bottom: 32px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 60%;
}
.dp-hh-tag {
  display: inline-block;
  align-self: flex-start;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  padding: 0 8px;
  border-radius: 2px;
}
.dp-hh-name {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.dp-hh-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dp-home-hero-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  gap: 6px;
}
.dp-hhd {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
}
.dp-hhd.dp-active {
  width: 10px;
  border-radius: 20px;
  background: #fff;
}
/* 左右切换箭头（比照目标站 swiper-button，50x50px、悬停变黑底圆形） */
.dp-home-hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 50px;
  height: 50px;
  margin-top: -25px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  background: transparent;
  border-radius: 50%;
  transition: background 0.2s;
}
.dp-home-hero-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
}
.dp-home-hero-arrow--prev {
  left: 10px;
}
.dp-home-hero-arrow--next {
  right: 10px;
}
/* ===========================
   分类区块 75/25 分栏（主内容 + 周榜单侧栏）
   =========================== */
.dp-content-block--split {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.dp-cb-main {
  flex: 1;
  min-width: 0;
}
.dp-cb-side {
  flex: 0 0 220px;
  min-width: 0;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 0;
  overflow: hidden;
}
.dp-cb-side .dp-pannel-hd {
  padding: 0 14px;
}
.dp-cb-side .dp-section-header h2 {
  font-size: 15px;
}
/* ===========================
   排行文字清单（编号徽章，用于侧栏 + 总榜单）
   =========================== */
.dp-vlt-rank-item {
  border-top: 1px dotted var(--border-mid);
}
/* 防御性封顶：本环境 num 参数不保证限制笔数，用 CSS 隐藏多出的项目 */
.dp-cb-side .dp-vlt-rank-item:nth-child(n+19) {
  display: none;
}
.dp-detail-sidebar .dp-vlt-rank-item:nth-child(n+16) {
  display: none;
}
.dp-vlt-rank-item:first-child {
  border-top: none;
}
.dp-vlt-rank-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  overflow: hidden;
  transition: background 0.15s;
}
.dp-vlt-rank-link:hover {
  background: var(--accent-light);
}
.dp-vlt-rank-badge {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-elev);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 前三名配色用 nth-child，不在模板里判断（强制11.8） */
.dp-vlt-rank-list li:nth-child(1) .dp-vlt-rank-badge { background: var(--accent); color: #fff; }
.dp-vlt-rank-list li:nth-child(2) .dp-vlt-rank-badge { background: #f5a623; color: #fff; }
.dp-vlt-rank-list li:nth-child(3) .dp-vlt-rank-badge { background: #9c6c14; color: #fff; }
.dp-vlt-rank-link .dp-vlt-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: var(--text);
}
.dp-vlt-rank-link:hover .dp-vlt-name {
  color: var(--accent);
}
.dp-vlt-rank-link .dp-vlt-tag {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--text-muted);
}
/* ===========================
   排行榜
   =========================== */
.dp-rank-grid {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
}
.dp-rank-grid > li {
  flex: 1 1 0;
  min-width: 0;
}
.dp-rank-col {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 14px 0;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.dp-rank-col-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  padding: 0 14px 10px;
  border-bottom: 1px solid var(--border);
}
.dp-rank-top {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  padding: 0 14px 12px;
  border-bottom: 1px solid var(--border);
}
.dp-rank-top-thumb {
  width: 70px;
  height: 94px;
  border-radius: var(--radius);
  flex-shrink: 0;
  overflow: hidden;
}
.dp-rank-top-info {
  flex: 1;
  min-width: 0;
  position: relative;
}
.dp-rank-top-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  border-radius: 6px;
  padding: 2px 10px;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.dp-rank-top-info h4 {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.dp-rank-top-info p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.dp-rank-views {
  font-size: 11px;
  color: var(--accent);
  margin-top: 4px;
  display: block;
}
.dp-rank-list {
  display: flex;
  flex-direction: column;
}
.dp-rank-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.dp-rank-list li:hover {
  background: var(--accent-light);
}
.dp-rank-list li:hover .dp-rank-name a {
  color: var(--accent);
}
.dp-rank-list li:last-child {
  border-bottom: none;
}
/* 分隔线画在 li 自身的边框层，不会被 hover 底色盖住，悬停时会露出
   突兀的接缝线，故悬停时连同上一列的分隔线一并隐藏 */
.dp-rank-list li:hover,
.dp-rank-list li:has(+ li:hover) {
  border-bottom-color: transparent;
}
.dp-rank-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-elev);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dp-rank-num--2 {
  background: #f5a623;
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.dp-rank-num--3 {
  background: #9c6c14;
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.dp-rank-num--other {
  color: #999;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dp-rank-name {
  flex: 1;
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.dp-rank-count {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}
/* ===========================
   友情连结
   =========================== */
.dp-friend-links {
  max-width: var(--max-w);
  margin: 0 auto 16px;
  padding: 16px 20px;
  background: var(--bg-white);
  border-radius: var(--radius);
}
.dp-friend-links-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}
.dp-friend-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
}
.dp-friend-links-list a {
  font-size: 13px;
  color: var(--text-light);
}
.dp-friend-links-list a:hover {
  color: var(--accent);
}
/* ===========================
   Footer
   =========================== */
.dp-site-footer {
  margin-top: auto;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  padding: 24px 20px;
  text-align: center;
}
.dp-site-footer p,
.dp-site-footer address {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 2;
  font-style: normal;
}
.dp-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}
.dp-footer-links a {
  font-size: 12px;
  color: var(--text-muted);
}
.dp-footer-links a:hover {
  color: var(--accent);
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}
/* ===========================
   Hover 渐暗效果
   =========================== */
.dp-hot-card,
.dp-news-card,
.dp-vod-card,
.dp-topic-card {
  cursor: pointer;
}
.dp-hot-card .dp-hot-thumb::after,
.dp-news-card .dp-news-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.2s;
  pointer-events: none;
}
.dp-hot-card:hover .dp-hot-thumb::after,
.dp-news-card:hover .dp-news-thumb::after {
  background: rgba(0, 0, 0, 0.25);
}
.dp-category-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-mid);
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.dp-category-toggle:hover,
.dp-category-toggle[aria-expanded="true"] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
@keyframes catMenuIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ===========================
   手机专用元件
   =========================== */
.dp-header-mobile {
  display: none;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}
.dp-header-mobile-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  flex-shrink: 0;
  max-height: 64px;
  overflow: hidden;
  opacity: 1;
  transition: max-height 0.28s ease, opacity 0.22s ease, padding 0.28s ease;
}
/* ===========================
   通用分页
   =========================== */
.dp-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 16px 0;
  flex-wrap: wrap;
}
.dp-page-btn,
.dp-page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 13px;
  border: 1px solid var(--border-mid);
  background: var(--bg-white);
  color: var(--text-light);
  transition: all 0.15s;
}
.dp-page-btn:hover,
.dp-page-num:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.dp-page-num.dp-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 600;
}
.dp-page-ellipsis {
  color: var(--text-muted);
  padding: 0 4px;
}
/* ===========================
   RWD
   =========================== */

/* ── 桌机周榜单侧栏只在 ≥1200px 显示，比照目标站 ── */
@media (max-width: 1199px) {
  .dp-cb-side {
    display: none;
  }
}
/* ── 平板 768px ~ 1024px ── */
@media (max-width: 1024px) {
  /* 平板/手机比照目标站：马赛克首卡取消特殊放大，回到统一网格 */
  .dp-hot-mosaic {
    grid-template-columns: repeat(4, 1fr);
  }
  .dp-hot-mosaic > .dp-vod-card:first-child {
    grid-column: span 1;
    grid-row: span 1;
  }
  .dp-hot-mosaic > .dp-vod-card:first-child a {
    display: block;
    height: auto;
  }
  .dp-hot-mosaic > .dp-vod-card:first-child .dp-vod-thumb {
    flex: none;
    aspect-ratio: 3/4;
  }
  .dp-home-content {
    padding: 12px 16px 40px;
  }
  .dp-vod-card {
    flex: 0 0 calc(25% - 8px);
  }
  .dp-vod-list {
    gap: 10px;
  }
  .dp-vod-list--wrap2 .dp-vod-card:nth-child(n+9) {
    display: none;
  }
  .dp-vlt-item {
    flex: 0 0 33.333%;
  }
  .dp-vlt-item:nth-child(-n+3) {
    border-top: none;
  }
  .dp-vlt-item:nth-child(4) {
    border-top: 1px dotted var(--border-mid);
  }
  .dp-news-card {
    flex: 1 1 calc(33.333% - 7px);
    min-width: 0;
  }
  .dp-hot-card {
    flex: 0 0 calc(33.333% - 7px);
  }
  .dp-section-breadcrumb a {
    display: inline;
  }
  .dp-rank-grid {
    flex-wrap: wrap;
  }
  .dp-rank-grid > li {
    flex: 0 0 calc(50% - 6px);
  }
}
/* ── 平板 768px ~ 1024px：header 沿用桌机版 logo + 主导览 + 搜寻栏同一行排列。
   留言、排行榜、观看纪录三个 icon 全部保留；空间改由缩小 logo、导览、搜寻栏与 icon 按钮本身来腾出 ── */
@media (min-width: 768px) and (max-width: 1024px) {
  .dp-header-inner {
    gap: 8px;
  }
  .dp-brand-block.dp-logo {
    width: 96px;
    height: 32px;
  }
  .dp-main-nav {
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .dp-main-nav::-webkit-scrollbar {
    display: none;
  }
  .dp-main-nav-list {
    gap: 0;
    flex-wrap: nowrap;
    width: max-content;
  }
  .dp-main-nav a {
    padding: 5px 8px;
    font-size: 14px;
  }
  .dp-search-box {
    width: 130px;
  }
  .dp-header-actions {
    gap: 4px;
  }
  .dp-header-actions .dp-ha-btn {
    width: 30px;
    height: 30px;
    font-size: 17px;
  }
}
/* ── 手机 < 768px ── */
@media (max-width: 767px) {
  .dp-main-nav {
    display: none;
  }
  /* header：手机版切换成 .dp-header-mobile 垂直结构（logo+搜寻栏一行、分类导览另一行） */
  .dp-header-mobile {
    display: block;
  }
  .dp-header-desktop {
    display: none;
  }
  /* logo 缩小一点，与搜寻栏并排同一行 */
  .dp-header-mobile .dp-brand-block.dp-logo {
    width: 92px;
    height: 32px;
    flex-shrink: 0;
  }
  .dp-search-box {
    width: 100%;
    height: 32px;
  }
  .dp-search-box input {
    height: 32px;
    background: var(--bg-elev);
    border: 1px solid var(--border-mid);
    border-radius: 4px;
    padding: 0 36px 0 14px;
    font-size: 13px;
  }
  .dp-search-submit-btn {
    right: 14px;
    width: 32px;
    height: 32px;
    font-size: 15px;
  }
  /* 搜寻栏与 logo 并排同一行，占满剩余宽度 */
  .dp-header-mobile-search.dp-search-box {
    flex: 1;
    width: auto;
    min-width: 0;
  }
  /* 比照目标站：往下滑动时 logo + 搜寻栏整排一起收合，只留分类导览贴齐画面顶端；
     用 max-height + opacity 让收合有渐隐动画，而非直接 display:none 瞬间消失 */
  .dp-is-header-scrolled .dp-header-mobile-inner {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
  }
  /* 分类导览：可左右滑动 */
  .dp-header-mobile-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-top: 1px solid var(--border);
  }
  /* 比照目标站：往下滑动、logo/搜寻栏收合后，导览列改用底线（原本的上边框会跟着 header 一起贴顶失去意义） */
  .dp-is-header-scrolled .dp-header-mobile-nav {
    border-top: none;
    border-bottom: 1px solid var(--border);
  }
  .dp-header-mobile-nav::-webkit-scrollbar {
    display: none;
  }
  .dp-header-mobile-nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0 12px;
    white-space: nowrap;
  }
  .dp-header-mobile-nav-list li {
    flex-shrink: 0;
  }
  .dp-header-mobile-nav-list a {
    display: inline-block;
    padding: 10px 8px;
    font-size: 14px;
    color: var(--text-light);
    white-space: nowrap;
  }
  .dp-header-mobile-nav-list a.dp-active {
    color: var(--accent);
    font-weight: 600;
  }
  .dp-hot-mosaic {
    grid-template-columns: repeat(3, 1fr);
  }
  .dp-vodlist-text {
    display: none;
  }
  .dp-hh-info {
    left: 12px;
    bottom: 12px;
    max-width: 80%;
  }
  .dp-home-hero-arrow {
    display: none;
  }
  .dp-hh-name {
    font-size: 16px;
  }
  .dp-hh-desc {
    font-size: 12px;
  }
  .dp-home-hero-slide a {
    padding-top: 45%;
  }
  .dp-section-breadcrumb a {
    display: none;
  }
  .dp-section-breadcrumb a:first-child {
    display: inline;
  }
  .dp-home-content {
    padding: 10px 10px 68px;
  }
  .dp-hot-grid {
    flex-wrap: wrap;
    overflow-x: visible;
  }
  .dp-hot-card {
    flex: 0 0 calc(50% - 5px);
    min-width: 0;
  }
  .dp-news-grid {
    flex-wrap: wrap;
  }
  .dp-news-card {
    flex: 0 0 calc(50% - 5px);
    max-width: calc(50% - 5px);
    min-width: 0;
  }
  .dp-vod-card {
    flex: 0 0 calc(33.333% - 5px);
  }
  .dp-vod-list {
    gap: 6px;
  }
  .dp-vod-list--s .dp-vod-card {
    flex: 0 0 calc(33.333% - 5px);
  }
  .dp-vod-list--wrap2 .dp-vod-card:nth-child(n+7) {
    display: none;
  }
  .dp-rank-grid {
    flex-direction: column;
    flex-wrap: nowrap;
  }
  .dp-rank-grid > li {
    flex: 0 0 auto;
    width: 100%;
  }
}
/* ── 小手机 < 480px ── */
@media (max-width: 479px) {
  .dp-vod-list {
    gap: 5px;
  }
  .dp-vod-card {
    flex: 0 0 calc(33.333% - 4px);
  }
  .dp-vod-name {
    font-size: 11px;
    padding: 5px 6px 2px;
  }
  .dp-vod-sub {
    font-size: 10px;
    padding: 0 6px 6px;
  }
  .dp-hot-card {
    flex: 0 0 calc(50% - 5px);
  }
  .dp-news-card {
    flex: 0 0 calc(50% - 5px);
    max-width: calc(50% - 5px);
    min-width: 0;
  }
}
/* ===== rank-top1 (shared widget/rank_top) ===== */
.dp-rank-top1 {
  border-bottom: 1px solid var(--border);
}
.dp-rank-top1 > a {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  transition: background 0.15s;
}
.dp-rank-top1 > a:hover {
  background: var(--accent-light);
}
/* 分隔线画在 .dp-rank-top1 自身的边框层，不会被 a 的半透明 hover 底色盖住，
   悬停时会露出突兀的接缝线，故悬停时一并隐藏，让色块呈现干净的整块效果 */
.dp-rank-top1:has(> a:hover) {
  border-bottom-color: transparent;
}
.dp-rank-top1-thumb {
  position: relative;
  width: 60px;
  flex-shrink: 0;
  border-radius: 5px;
  overflow: hidden;
  margin: 0;
  background: var(--bg-light) url('../img/load.gif') no-repeat center center;
  background-size: cover;
}
.dp-rank-top1-thumb img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}
.dp-rank-top1-n {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 0 0 4px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dp-rank-top1-info { flex: 1; min-width: 0; }
.dp-rank-top1-info h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dp-rank-top1-info p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dp-rank-top1 > a:hover .dp-rank-top1-info h4 { color: var(--accent); }
@media (min-width: 768px) {
  .dp-rank-top1-thumb { width: 70px; }
  .dp-rank-top1-info h4 { font-size: 14px; }
}
/* ===== 共用评论元件 ===== */
.dp-comment-section {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  margin-bottom: 14px;
}
.dp-cmt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.dp-cmt-title { font-size: 14px; font-weight: 600; color: var(--text); }
.dp-cmt-count { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.dp-cmt-count em { color: var(--accent); font-style: normal; font-weight: 600; }
.dp-cmt-ajax-wrap { min-height: 60px; }
/* 覆写 MacCMS 全站共用 static/css/home.css 里 .mac_comment 的寫死白底/淺藍邊框
   （mac_comment 是 JS 挂钩必须保留的 class，样式冲突只能在这里用更高特异度盖掉） */
.dp-comment-section .mac_comment {
  background: transparent;
  border-color: var(--border);
}
.dp-cmt-loading {
  font-size: 13px;
  color: var(--text-muted);
  padding: 24px 0;
  text-align: center;
}
.dp-cmt-empty {
  padding: 24px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
/* 评论列表 */
.dp-cmt-list { margin: 0 0 12px; padding: 0; }
.dp-cmt-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.dp-cmt-item:last-child { border-bottom: none; }
.dp-cmt-item-header { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.dp-cmt-item-user { font-size: 13px; font-weight: 600; color: var(--text); }
.dp-cmt-item-time { font-size: 11px; color: var(--text-muted); }
.dp-cmt-item-content { font-size: 13px; color: var(--text-light); line-height: 1.7; }
.dp-cmt-item-reply-list {
  margin: 0;
  padding: 0;
}
.dp-cmt-item-reply {
  margin-top: 6px;
  background: var(--bg-light);
  border-left: 3px solid var(--accent);
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text-light);
  border-radius: 0 4px 4px 0;
}
.dp-cmt-reply-label { font-weight: 600; color: var(--accent); }
.dp-cmt-item-actions { display: flex; gap: 12px; margin-top: 6px; }
.dp-cmt-action-link {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.dp-cmt-action-link:hover { color: var(--accent); }
.dp-cmt-paging {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 12px 0 0;
}
.dp-cmt-page-btn {
  background: none; font: inherit; cursor: pointer;
  padding: 4px 10px;
  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;
}
.dp-cmt-page-btn:hover { border-color: var(--accent); color: var(--accent); }
.dp-cmt-page-btn.dp-is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.dp-cmt-page-btn.dp-is-disabled { opacity: 0.4; cursor: default; pointer-events: none; }
/* 输入表单 */
.dp-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;
}
.dp-cmt-textarea:focus { border-color: var(--accent); background: var(--bg-elev); }
.dp-cmt-textarea:focus + .dp-cmt-form-bar {
  border-color: var(--accent);
  border-top-color: var(--border);
}
.dp-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;
}
.dp-cmt-chars { font-size: 12px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }
.dp-cmt-chars em { font-style: normal; color: var(--accent); font-weight: 600; }
.dp-cmt-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.dp-cmt-verify-input {
  width: 88px;
  height: 34px;
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  padding: 0 8px;
  font-size: 13px;
  color: #000;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.dp-cmt-verify-input:focus { border-color: var(--accent); }
.dp-cmt-captcha {
  height: 34px;
  width: auto;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid var(--border-mid);
  display: block;
}
.dp-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;
}
.dp-cmt-submit:hover { background: var(--accent-active); }
@media (max-width: 767px) {
  .dp-comment-section {
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
    border-bottom: 8px solid var(--bg-light);
    padding: 14px;
  }
  .dp-cmt-form-bar { flex-wrap: wrap; }
  .dp-cmt-chars { order: 2; }
  .dp-cmt-actions { order: 1; width: 100%; justify-content: flex-end; }
  .dp-cmt-verify-input { width: 80px; }
}
/* ── Login Modal ── */
.dp-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.dp-modal-overlay.dp-is-open { display: flex; }
.dp-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);
}
.dp-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;
}
.dp-modal-close:hover { color: var(--text); }
.dp-modal-title {
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 28px;
}
.dp-modal-field { margin-bottom: 20px; }
.dp-modal-label {
  display: block;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 6px;
}
.dp-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;
}
.dp-modal-input:focus { border-bottom-color: var(--accent); }
.dp-modal-input::placeholder { color: var(--text-muted); }
.dp-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;
}
.dp-modal-submit:hover { background: var(--accent-active); }
.dp-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-muted);
}
.dp-modal-link { color: var(--text-muted); }
.dp-modal-link--accent { color: var(--accent); font-weight: 500; }
.dp-modal-link--accent:hover { text-decoration: underline; }
/* ── 系统弹窗（MAC.Pop，由 static/js/home.js 动态注入 DOM，样式
   写死在 static/css/home.css 为白底浅色版本；本站是深色主题，
   body 的 color: var(--text) 是浅色文字，继承到白底上会难以辨识，
   故在此覆写为跟 .dp-modal-box 一致的深色风格） ── */
.mac_pop_bg,
.mac_pop_msg_bg {
  background: rgba(0, 0, 0, 0.55);
}
.mac_pop,
.mac_pop_msg {
  background-color: var(--bg-modal);
  color: var(--text);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.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 ── */
.dp-mac_history_box { display: none !important; }
/* ── 历史记录 Modal ── */
.dp-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;
}
.dp-hm-overlay.dp-is-open { display: flex; }
.dp-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);
}
.dp-hm-header {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.dp-hm-title {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.dp-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;
}
.dp-hm-clear:hover { color: var(--accent); }
.dp-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;
}
.dp-hm-close:hover { background: var(--border); color: var(--text); }
.dp-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;
}
.dp-hm-body::-webkit-scrollbar { width: 4px; }
.dp-hm-body::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 2px; }
.dp-hm-card {
  /* 6 per row：(100% - 5 gaps × 10px) / 6 */
  flex: 0 0 calc((100% - 50px) / 6);
  min-width: 0;
  display: block;
  text-decoration: none;
  color: var(--text);
  align-self: flex-start;
}
.dp-hm-thumb {
  position: relative;
  aspect-ratio: 2/3;
  border-radius: 7px;
  overflow: hidden;
  background: var(--bg);
  /* 让 img position:absolute 有定位基准，防止图片撑开 grid row */
  contain: strict;
}
.dp-hm-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s;
}
.dp-hm-card:hover .dp-hm-thumb img { transform: scale(1.04); }
.dp-hm-card:hover .dp-hm-name { color: var(--accent); }
.dp-hm-name {
  font-size: 11px;
  margin-top: 5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--text-light);
  transition: color 0.15s;
}
.dp-hm-empty {
  width: 100%;
  text-align: center;
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 13px;
}
@media (max-width: 767px) {
  .dp-hm-box { border-radius: 16px; max-height: 85vh; align-self: center; }
  .dp-hm-overlay { padding: 0 12px; align-items: flex-end; }
  /* 3 per row：(100% - 2 gaps × 10px) / 3 */
  .dp-hm-card { flex: 0 0 calc((100% - 20px) / 3); }
}
/* ===========================
  剧情介绍展开/收合（共用）
   =========================== */
.dp-desc-body {
  position: relative;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.8;
  max-height: calc(13px * 1.8 * 3);
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.dp-desc-body * {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  color: inherit !important;
}
.dp-desc-body.dp-desc-expanded {
  max-height: 2000px;
}
/* 超出 3 行才叠加渐淡遮罩（由 JS 依内容实际高度加上 desc-has-more） */
.dp-desc-body.dp-desc-collapsed.dp-desc-has-more::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  background: linear-gradient(rgba(255, 255, 255, 0), var(--bg-white));
  pointer-events: none;
}
.dp-desc-expand-btn {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--border-mid);
  border-radius: 5px;
  padding: 8px;
  margin-top: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.dp-desc-expand-btn:hover { background: var(--accent-light); }
/* ==========================================
   漂浮功能按鈕 (Floating Action Buttons)
   ========================================== */
.dp-fab-group {
  position: fixed;
  bottom: 30px;
  right: 24px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  width: auto;
}
.dp-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(255, 85, 102, 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;
}
.dp-fab-btn:hover {
  background: var(--accent-active);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 28px rgba(255, 85, 102, 0.5), 0 2px 10px rgba(0,0,0,0.16);
}
.dp-fab-btn--top { opacity: 0; pointer-events: none; }
.dp-fab-btn--top.dp-is-visible { opacity: 1; pointer-events: auto; }
.dp-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;
}
.dp-fab-qr-popup.dp-is-open { display: block; }
.dp-fab-qr-popup p { font-size: 12px; color: var(--text-light); margin-bottom: 10px; }
.dp-fab-qr-popup img { width: 130px; height: 130px; border-radius: 4px; background: #fff; display: block; }
@media (max-width: 767px) {
  .dp-fab-group { bottom: 76px; right: 14px; }
  .dp-fab-qr-popup { bottom: 146px; right: 14px; }
}
@media (max-width: 1024px) {
  .dp-fab-btn--qr { display: none; }
}
/* ===== 通用 Toast 提示（全站共用：分享复制链接、评分成功等短暂提示）===== */
.dp-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;
}
.dp-rate-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* ==========================================
   Section Lazy Reveal (Intersection Observer)
   ========================================== */
.dp-content-block.dp-will-observe {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.dp-content-block.dp-is-visible {
  opacity: 1;
  transform: none;
}
/* ==========================================
   当前位置 / 面包屑（共用 widget/breadcrumb，详情页 + 播放页共用）
   ========================================== */
.dp-vd-breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.dp-vd-breadcrumb ol { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.dp-vd-breadcrumb li { display: inline-flex; align-items: center; gap: 4px; }
.dp-vd-breadcrumb .mac-icon {
  font-size: 11px;
  color: var(--border-mid);
}
.dp-vd-breadcrumb a {
  color: var(--text-light);
}
.dp-vd-breadcrumb a:hover {
  color: var(--accent);
}
.dp-vd-bc-current {
  color: var(--text-muted);
}
@media (max-width: 479px) {
  .dp-vd-breadcrumb { margin-bottom: 8px; }
}
@media (min-width: 480px) and (max-width: 767px) {
  .dp-vd-breadcrumb { margin-bottom: 10px; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .dp-vd-breadcrumb { margin-bottom: 14px; }
}
@media (min-width: 1025px) {
  .dp-vd-breadcrumb { margin-bottom: 16px; }
}
@media (max-width: 767px) {
  .dp-vd-breadcrumb { font-size: 12px; }
}
/* mac-icon sprite base */
.mac-icon {width:1em;height:1em;fill:currentColor;flex-shrink:0; }
/* ==========================================
   搜索框下拉（强制18.2 硬性布局）：序列式、一行一条、左侧序号、历史在前热门在后、小字号、悬停高亮
   ========================================== */
.dp-search-drop {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  padding: 6px 0; background: var(--bg-white); border: 1px solid var(--border-mid); border-radius: var(--radius);
  box-shadow: var(--shadow); max-height: 60vh; overflow-y: auto; text-align: left;
}
.dp-search-drop .sd-group + .sd-group { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 4px; }
.sd-group-hd { display: flex; align-items: center; justify-content: space-between; padding: 4px 12px; }
.sd-label { font-size: 11px; color: var(--text-muted); letter-spacing: .5px; }
.sd-clear { font-size: 11px; color: var(--text-muted); background: none; border: 0; padding: 0; cursor: pointer; }
.sd-clear:hover { color: var(--accent); }
.sd-list { list-style: none; margin: 0; padding: 0; }
.sd-item { display: flex; align-items: center; gap: 10px; padding: 0 12px; transition: background .15s; }
.sd-item:hover { background: var(--accent-light); }
.sd-num { flex-shrink: 0; width: 16px; font-size: 11px; color: var(--text-muted); text-align: center; }
.sd-item:nth-child(-n+3) .sd-num { color: var(--accent); font-weight: 700; }
.sd-word {
  flex: 1; min-width: 0; text-align: left; padding: 6px 0;
  font-size: 13px; color: var(--text-light); background: none; border: 0; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s;
}
.sd-item:hover .sd-word { color: var(--accent); }
/* 导航里的按钮版历史入口：继承链接外观 */
.dp-nav-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
button.dp-ha-btn { background: none; border: 0; font: inherit; }


/* ==========================================
   影片卡 hover 详情浮层（同 tp03，强制15）：.dp-vod-card 内 include widget/vod_card_popout，
   边缘翻转 pop-left/pop-right 由 asset/js/vod_card.js 补
   ========================================== */
.dp-vod-card:hover { overflow: visible; z-index: 30; }
.hover-popout {
  display: none;
  position: absolute;
  top: 50%; left: 50%;
  z-index: 60;
  width: 280px; height: auto;
  opacity: 0; visibility: hidden; pointer-events: none;
  background: var(--bg-white);
  border: 1px solid var(--border-mid);
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -50%) scale(.6667);
  transform-origin: center center;
}
.hover-popout.pop-left  { left: 0; transform: translate(0, -50%) scale(.6667); transform-origin: left center; }
.hover-popout.pop-right { left: auto; right: 0; transform: translate(0, -50%) scale(.6667); transform-origin: right center; }
.dp-vod-card:hover .hover-popout {
  display: block; visibility: visible; pointer-events: auto;
  animation: popoutIn .25s cubic-bezier(.25, 1, .5, 1) forwards;
  animation-delay: .15s;
}
.dp-vod-card:hover .hover-popout.pop-left  { animation-name: popoutInLeft; }
.dp-vod-card:hover .hover-popout.pop-right { animation-name: popoutInRight; }
@keyframes popoutIn      { from { opacity: 0; transform: translate(-50%,-50%) scale(.6667); } to { opacity: 1; transform: translate(-50%,-50%) scale(1); } }
@keyframes popoutInLeft  { from { opacity: 0; transform: translate(0,-50%) scale(.6667); }     to { opacity: 1; transform: translate(0,-50%) scale(1); } }
@keyframes popoutInRight { from { opacity: 0; transform: translate(0,-50%) scale(.6667); }     to { opacity: 1; transform: translate(0,-50%) scale(1); } }
.popout-inner { width: 100%; display: flex; flex-direction: column; background: var(--bg-white); border-radius: 10px; overflow: hidden; position: relative; }
.popout-cover { position: relative; display: block; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-elev); }
.popout-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.popout-cover-shadow { position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; background: linear-gradient(rgba(30,32,39,0), var(--bg-white)); }
.popout-title-wrap { position: relative; padding: 0 14px; margin-top: -30px; }
.popout-title { font-size: 16px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; }
.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: 4px; font-size: 11px; line-height: 20px; white-space: nowrap; }
.popout-tag--year  { color: #fff; background: var(--accent); font-weight: 700; flex-shrink: 0; }
.popout-tag--main  { color: var(--accent); background: var(--accent-light); }
.popout-tag--grey  { color: var(--text-light); background: var(--bg-elev); }
.popout-tag--plain { color: var(--text-muted); background: none; overflow: hidden; text-overflow: ellipsis; }
.popout-label { color: var(--text-muted); }
.popout-actor { margin: 10px 0 0; font-size: 12px; line-height: 1.6; color: var(--text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.popout-desc { margin: 6px 0 0; font-size: 12px; line-height: 1.6; color: var(--text-light); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.popout-score { display: flex; align-items: center; gap: 5px; padding: 10px 14px 0; font-size: 12px; color: var(--text); }
.popout-score .mac-icon { color: #f5a623; }
.popout-score .score-num { font-weight: 700; color: #f5a623; }
.popout-bottom { display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 14px; }
.hover-popout .popout-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--bg-elev); color: var(--text-light); font-size: 16px; line-height: 1; transition: background .2s, color .2s; }
.hover-popout .popout-btn .mac-icon { display: block; }
.hover-popout .popout-btn:hover { background: var(--accent); color: #fff; }
.hover-popout .popout-btn:first-child { background: var(--accent); color: #fff; }
.hover-popout .popout-btn:first-child:hover { background: var(--accent-hover); }
@media (max-width: 768px) { .hover-popout { display: none !important; } }

/* ==========================================
   专题卡（同 tp03 样式）：6 列网格，封面 16:9 + 标题 + 两行简介
   ========================================== */
.dp-topic-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.dp-topic-card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--bg-white); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; color: var(--text);
}
.dp-topic-card > a { display: contents; }
.dp-topic-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.45); }
.dp-topic-card-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-elev); }
.dp-topic-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.dp-topic-card:hover .dp-topic-card-thumb img { transform: scale(1.04); }
.dp-topic-card-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: rgba(255,255,255,0.85); opacity: 0; transition: opacity 0.2s;
}
.dp-topic-card:hover .dp-topic-card-overlay { opacity: 1; }
.dp-topic-card-count { position: absolute; bottom: 8px; right: 8px; padding: 2px 8px; background: rgba(0,0,0,0.65); color: var(--text-light); font-size: 11px; border-radius: 3px; }
.dp-topic-card-body { padding: 10px 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.dp-topic-card-title { margin: 0; font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.2s; }
.dp-topic-card:hover .dp-topic-card-title { color: var(--accent); }
.dp-topic-card-blurb { margin: 0; font-size: 12px; color: var(--text-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1024px) { .dp-topic-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .dp-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* ==========================================
   总榜单：6 大分类，一行 3 列，每榜 9 条
   ========================================== */
.dp-rank-board-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.dp-rank-board-col { min-width: 0; background: var(--bg-white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 0; overflow: hidden; }
.dp-rank-board-col .dp-pannel-hd { padding: 0 14px; margin-bottom: 6px; }
@media (max-width: 1024px) { .dp-rank-board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .dp-rank-board-grid { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================
   分页（widget/pagination，单一来源；原先 art_type.css / vod_list.css 各一份）
   ========================================== */
.dp-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; padding: 8px 0; }
.dp-page-btn, .dp-page-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 10px; border-radius: 6px;
  font-size: 13px; color: var(--text-light); background: var(--bg-white); border: 1px solid var(--border-mid);
  transition: all 0.15s;
}
.dp-page-btn:hover, a.dp-page-num:hover { color: var(--accent); border-color: var(--accent); }
.dp-page-num.dp-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.dp-page-info { margin-left: 8px; font-size: 12px; color: var(--text-muted); }
@media (max-width: 767px) { .dp-page-btn, .dp-page-num { min-width: 30px; height: 30px; font-size: 12px; } .dp-page-info { width: 100%; text-align: center; margin: 6px 0 0; } }

/* ==========================================
   通用面包屑（分类/列表类页面）：nav > ol > li
   ========================================== */
.dp-breadcrumb { margin: 0 0 12px; font-size: 13px; color: var(--text-muted); }
.dp-breadcrumb ol { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.dp-breadcrumb li { display: inline-flex; align-items: center; gap: 4px; }
.dp-breadcrumb a { color: var(--text-light); }
.dp-breadcrumb a:hover { color: var(--accent); }
.dp-breadcrumb .mac-icon { width: 12px; height: 12px; color: var(--border-mid); }
.dp-breadcrumb [aria-current] { color: var(--text); }

/* 列表空态（分类页 / 筛选页共用） */
/* 列表空态 */
.dp-list-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 24px; margin-bottom: 24px; background: var(--bg-white); border-radius: var(--radius); color: var(--text-muted); font-size: 14px; }
.dp-list-empty .mac-icon { width: 28px; height: 28px; }
.dp-list-empty p { margin: 0; }
.dp-list-empty-link { color: var(--accent); font-size: 13px; }

/* ==========================================
   资讯页共用（art/type + art/detail）：左侧分类导航 / 右侧栏 widget（art_hot_vod / art_recommend_read）
   原先 art_left_nav.css 独立文件 + art_type.css / art_detail.css 各写一份，这里收成单一来源。
   ========================================== */
/* ===== 左侧分类导览 ===== */
.dp-art-type-leftnav {
  display: none;
  width: 148px;
  flex-shrink: 0;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  align-self: flex-start;
  position: sticky;
  top: 12px;
}

.dp-aln-item {
  display: block;
  padding: 11px 14px;
  font-size: 13px;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
  transition: color 0.15s, background 0.15s;
}
.dp-aln-item:last-child { border-bottom: none; }
.dp-aln-item:hover { color: var(--accent); background: #fafafa; }
.dp-aln-item.dp-active {
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  padding-left: 13px;
}

@media (min-width: 768px) {
  .dp-art-type-leftnav { display: block; }
}

/* ===== Sidebar ===== */
.dp-art-sb-block {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 14px;
}
.dp-art-sb-title {
  font-size: 14px;
  font-weight: 600;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
/* 热播影视：排行榜标记与样式已统一改用共用元件 widget/vodlist_rank + .dp-vlt-rank-list
   （定义于 main.css），此处仅补上侧栏卡片的内距 */
.dp-art-sb-block .dp-pannel-hd {
  padding: 12px 14px 0;
}
.dp-art-sb-block .dp-vlt-rank-list {
  padding: 0 0 6px;
}
/* 推荐阅读 */
.dp-art-read-list {
  margin: 0;
  padding: 6px 0;
}
.dp-art-read-item {
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.dp-art-read-item:last-child {
  border-bottom: none;
}
.dp-art-read-item a {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  align-items: flex-start;
  transition: background 0.15s;
}
.dp-art-read-item a:hover {
  background: var(--accent-light);
}
.dp-art-read-info {
  flex: 1;
  min-width: 0;
}
.dp-art-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-bottom: 4px;
}
.dp-art-read-item a:hover .dp-art-read-title {
  color: var(--accent);
}
.dp-art-read-cat {
  font-size: 11px;
  color: var(--text-muted);
}
.dp-art-read-thumb {
  width: 70px;
  height: 50px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-light);
  margin: 0;
}
.dp-art-read-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dp-art-sb-block .dp-pannel-hd { margin-bottom: 8px; }


/* ==========================================
   豆瓣评分徽章（widget/douban_badge，detail_hero + play 共用，样式参考 tp01）
   ========================================== */
.douban-badge { display: inline-flex; align-items: center; vertical-align: middle; margin-left: 10px; border: 1px solid #007722; border-radius: 4px; overflow: hidden; font-size: 13px; font-weight: 700; line-height: 1; }
.douban-badge .db-label { background: #007722; color: #fff; padding: 3px 6px; }
.douban-badge .db-score { background: #fff; color: #007722; padding: 3px 8px; }
a.douban-badge:hover .db-score { background: #e8f5ec; }
