.dg-detail-main {
  padding: 16px 0 48px;
}
.dg-detail-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}
.dg-detail-content-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.dg-detail-content {
  flex: 1;
  min-width: 0;
}
/* 右侧排行榜侧栏外框/内距/榜单撑满样式已与首页共用，见 main.css 的 .dg-cb-side；
   此处仅保留 detail 页专属的 RWD 显示/隐藏与宽度覆盖（见下方 @media 区块） */

/* ===== 当前位置：样式已抽到共用 main.css 的 .dg-vd-breadcrumb（widget/breadcrumb） ===== */

/* ===== Hero：封面 + 资讯 ===== */
.dg-vd-hero {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
}
.dg-vd-thumb {
  flex-shrink: 0;
  position: relative;
  width: 220px;
  /* 用 aspect-ratio 而非 padding-top 百分比：flex 子项内百分比 padding 参照容器宽度计算，会撑出离谱高度 */
  aspect-ratio: 3 / 4;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-light);
}
.dg-vd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dg-vd-thumb-tag {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 14px 8px 5px;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.55));
  color: #fff;
  font-size: 12px;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dg-vd-info {
  flex: 1;
  min-width: 0;
  padding-top: 4px;
}
.dg-vd-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 30px;
  margin: 0 0 10px;
}
/* 分数：Georgia 衬线字体、绿色 */
.dg-vd-score {
  display: inline-block;
  margin-left: 10px;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 24px;
  line-height: 24px;
  color: var(--score-green);
  vertical-align: middle;
}
.dg-vd-meta-line {
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
  margin: 0 0 6px;
}
.dg-vd-meta-label {
  color: var(--text-muted);
}
.dg-vd-meta-line a {
  color: var(--text);
}
.dg-vd-meta-line a:hover {
  color: var(--accent);
}
/* 多个人名/分类以逗号 explode 后逐个输出 <a>，补空白间距避免黏在一起 */
.dg-vd-meta-line--namelist a:not(:last-of-type) {
  margin-right: 0.4em;
}
.dg-vd-sep {
  display: inline-block;
  margin: 0 12px;
  width: 1px;
  height: 14px;
  background: var(--border-mid);
  vertical-align: -2px;
}
.dg-vd-meta-line--muted {
  color: var(--text-muted);
  font-size: 13px;
}
/* 上映／更新：桌机同行以分隔线相隔，手机版各自独立成行 */
.dg-vd-meta-line--inline {
  display: inline;
}
/* 主演：限制单行显示，超出以省略号截断 */
.dg-vd-meta-line--clamp {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 简介：单行显示，超出以省略号截断，「详情」按钮固定显示于行尾 */
.dg-vd-desc {
  display: flex;
  align-items: baseline;
  margin: 4px 0 14px;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
}
.dg-vd-desc-label {
  flex: 0 0 auto;
  color: var(--text-muted);
}
.dg-vd-desc-text {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dg-vd-desc-more {
  flex: 0 0 auto;
  margin-left: 4px;
  color: var(--accent);
  white-space: nowrap;
}
.dg-vd-desc-more:hover {
  text-decoration: underline;
}
.dg-vd-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.dg-vd-play-btn,
.dg-vd-down-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 28px;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.dg-vd-play-btn iconify-icon,
.dg-vd-down-btn iconify-icon {
  font-size: 16px;
}
.dg-vd-play-btn {
  background: var(--accent-red);
  color: #fff;
}
.dg-vd-play-btn:hover {
  background: var(--accent-red-active);
}
.dg-vd-down-btn {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.dg-vd-down-btn:hover {
  background: var(--accent);
  color: #14120a;
}

/* 面板容器 .dg-pannel-box / 选集列表样式已搬到 main.css 共用（跨 detail / play 页） */

/* ===== 分集剧情（沿用 .dg-pannel-box 面板外观，仅列前 3 集摘要，导向 plot/detail 页） ===== */
.dg-ep-plot-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.dg-ep-plot-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.dg-ep-plot-desc {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}
.dg-ep-plot-ep {
  font-weight: 600;
  color: var(--text);
  margin-right: 4px;
}
.dg-ep-plot-link {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.15s;
}
.dg-ep-plot-link:hover { color: var(--accent); }
.dg-ep-plot-more-btn {
  display: block;
  text-align: center;
  padding: 9px;
  font-size: 13px;
  color: var(--text-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: color 0.15s, border-color 0.15s;
}
.dg-ep-plot-more-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 767px) {
  .dg-ep-plot-item { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ===== Sidebar：仅同分类排行榜，无专题区块（外框/内距/榜单样式与首页共用 .dg-cb-side，见 main.css） ===== */

/* 平板隐藏 sidebar（此断点行为 detail 页专属，首页无此规则） */
@media (max-width: 1024px) {
  .dg-detail-content-row .dg-cb-side { display: none; }
}
@media (min-width: 1025px) {
  .dg-detail-content-row .dg-cb-side { display: block; width: 320px; }
}

/* ===== RWD ===== */
@media (max-width: 767px) {
  .dg-detail-main { padding: 10px 0 68px; }
  .dg-detail-content-row { flex-direction: column; gap: 0; }
  .dg-detail-content { width: 100%; }
  .dg-detail-content-row .dg-cb-side { width: 100%; padding: 0; }

  .dg-vd-hero { flex-direction: column; align-items: center; gap: 12px; }
  .dg-vd-info { width: 100%; }
  .dg-vd-title { font-size: 17px; line-height: 1.4; }
  .dg-vd-score { font-size: 18px; }
  .dg-vd-meta-line { font-size: 13px; }
  /* 主演：手机版单行省略太短，改为最多两行，超出以省略号截断 */
  .dg-vd-meta-line--clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .dg-hide-mobile { display: none !important; }
  /* 上映／更新：手机版各自独立成行，隐藏中间分隔线，补上一致行距 */
  .dg-vd-meta-line--inline { display: block; margin-bottom: 6px; }
  .dg-vd-meta-line--inline:last-child { margin-bottom: 0; }
  .dg-vd-meta-line--inline + .dg-vd-sep { display: none; }

  .dg-vd-hero { margin-bottom: 24px; }
  .dg-vd-actions { width: 100%; gap: 10px; }
  .dg-vd-play-btn,
  .dg-vd-down-btn { flex: 1 1 0; padding: 10px 16px; }
  /* .dg-pannel-box / .dg-episode / .dg-playlist-sources 的响应式规则已搬到 main.css 共用 */

  .dg-detail-tabs-section { margin-bottom: 28px; }
  .dg-detail-tabs { gap: 14px; }
  /* .dg-dtab 字体维持桌机版 16px，与本页其他 h2 一致，手机版不覆写 */
  .dg-detail-tab-content { font-size: 12px; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .dg-detail-tab-content { font-size: 12px; }
}

/* ===== 标签页（剧情介绍 / 角色信息 / 我要评分）：不做白底卡片，仅 active 分页以主色凸显 ===== */
.dg-detail-tabs-section {
  margin-bottom: 32px;
}
.dg-detail-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  border-bottom: 1px solid var(--border);
}
.dg-dtab {
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.dg-dtab iconify-icon {
  width: 20px;
  height: 20px;
  margin-right: 4px;
  color: var(--accent);
  flex-shrink: 0;
}
.dg-dtab.dg-active { border-bottom-color: var(--accent); }
.dg-detail-tab-content {
  padding: 14px 0 0;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ===== 角色/演员 tab ===== */
/* 折叠状态最多显示 3 行，超出部分底部叠加渐淡遮罩，配合展开按钮切换 */
.dg-cast-list-wrap {
  position: relative;
}
.dg-cast-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 152px;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.dg-cast-list.dg-cast-expanded {
  max-height: 2000px;
}
.dg-cast-list-wrap.dg-cast-has-more .dg-cast-list:not(.dg-cast-expanded)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: linear-gradient(rgba(255, 255, 255, 0), var(--bg-white));
  pointer-events: none;
}
.dg-cast-expand-btn {
  display: none;
  width: 100%;
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--border-mid);
  border-radius: 5px;
  padding: 8px 0;
  cursor: pointer;
}
.dg-cast-expand-btn:hover { background: var(--accent-light); }
.dg-cast-list-wrap.dg-cast-has-more .dg-cast-expand-btn { display: block; }
.dg-cast-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 6px;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.dg-cast-info {
  min-width: 0;
}
.dg-cast-name,
.dg-cast-role {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dg-cast-link:hover { background: var(--accent-light); }
.dg-cast-link:hover .dg-cast-name { color: var(--accent); }
.dg-cast-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-light);
  border: 1px solid var(--border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 26px;
  color: var(--text-muted);
  overflow: hidden;
}
.dg-cast-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.dg-cast-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: block;
  transition: color 0.15s;
}
.dg-cast-role {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

@media (max-width: 1024px) {
  .dg-cast-list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .dg-cast-list { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 我要评分 ===== */
.dg-rate-block {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.dg-rate-label {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}
.dg-rate-stars {
  display: flex;
  gap: 4px;
}
.dg-rs {
  font-size: 20px;
  color: #ddd;
  cursor: pointer;
  transition: color 0.1s, transform 0.1s;
  line-height: 1;
}
.dg-rs:hover,
.dg-rs.dg-rs-on { color: var(--accent); }
.dg-rs:hover { transform: scale(1.15); }
/* 评分 Toast 样式已移至全站共用 main.css（.dg-rate-toast），分享弹窗已移除（改为直接复制网址） */

/* 手机版分页标题统一维持 16px 不缩小，刻意不加断点覆写，避免同页 h2 大小不一致 */
