.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（widget/detail_hero）：样式已抽到共用 main.css 的 .dg-vd-*，下载页共用 ===== */

/* ===== 分集剧情（沿用 .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-* 手机版规则已搬到 main.css */
  /* .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(3, 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;
  text-decoration: none;
  color: inherit;
}
.dg-cast-info {
  min-width: 0;
}
.dg-cast-name,
.dg-cast-role {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.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: 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 大小不一致 */

/* ===== 详情页整改：关联系列折叠、分集剧情整卡单入口、剧情介绍两段间距、倒序按钮 ===== */
.dg-rel-grid .dg-vod-card:nth-child(n+7) { display: none; }
.dg-rel-grid.is-open .dg-vod-card:nth-child(n+7) { display: block; }
.dg-rel-toggle { margin-left: auto; background: none; border: 0; color: var(--text-light); font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.dg-rel-toggle:hover { color: var(--accent); }
.dg-rel-toggle[hidden] { display: none; }
.dg-ep-plot-card { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; color: inherit; }
.dg-ep-plot-card .dg-ep-plot-link { flex-shrink: 0; color: var(--accent); font-size: 13px; }
.dg-desc-body p { margin-bottom: 10px; }
.dg-desc-body p:last-child { margin-bottom: 0; }
.dg-desc-lead { color: var(--text-light); }
.dg-sort-btn { margin-left: auto; cursor: pointer; font: inherit; }
