.detail-main {
  padding: 16px 0 48px;
}
.detail-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}
.detail-content-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.detail-content {
  flex: 1;
  min-width: 0;
}
.detail-sidebar {
  width: 280px;
  flex-shrink: 0;
}

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

/* ===========================
   Hero：封面 + 资讯（比照目标站 .ewave-content__thumb / .ewave-content__detail）
   =========================== */
.vd-hero {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
}
.vd-thumb {
  flex-shrink: 0;
  position: relative;
  width: 220px;
  /* 比照目标站 .ewave-vodlist__thumb 的比例（padding-top:133%），但用 aspect-ratio
     实现——flex 子项里的百分比 padding 会参照 flex 容器宽度计算，不是自身宽度，
     会撑出离谱的高度，aspect-ratio 才是稳定写法 */
  aspect-ratio: 3 / 4;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-light);
}
.vd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.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;
}

.vd-info {
  flex: 1;
  min-width: 0;
  padding-top: 4px;
}
.vd-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 30px;
  margin: 0 0 10px;
}
/* 分数比照目标站 .title .score 实测值：Georgia 衬线字体、绿色
   （目标站该元素同时有 .text-red，但 .title .score 选择器优先级更高，
   实测 computed color 为 #09BB07，并非红色） */
.vd-score {
  display: inline-block;
  margin-left: 10px;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 24px;
  line-height: 24px;
  color: #09BB07;
  vertical-align: middle;
}
.vd-meta-line {
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
  margin: 0 0 6px;
}
.vd-meta-label {
  color: var(--text-muted);
}
.vd-meta-line a {
  color: var(--text);
}
.vd-meta-line a:hover {
  color: var(--accent);
}
/* 主演／导演／编剧／类型／地区：同一栏位内多个人名或分类以逗号 explode 后逐个输出 <a>，
   中间补一个空白间距分隔，避免多个名字直接黏在一起
   （类型/地区/年份栏位之间已用 .vd-sep 分隔线，不受影响） */
.vd-meta-line--namelist a:not(:last-of-type) {
  margin-right: 0.4em;
}
.vd-sep {
  display: inline-block;
  margin: 0 12px;
  width: 1px;
  height: 14px;
  background: var(--border-mid);
  vertical-align: -2px;
}
.vd-meta-line--muted {
  color: var(--text-muted);
  font-size: 13px;
}
/* 上映／更新：桌机同行以分隔线相隔，手机版各自独立成行 */
.vd-meta-line--inline {
  display: inline;
}
/* 主演：限制单行显示，超出以省略号截断 */
.vd-meta-line--clamp {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 简介：单行显示，超出以省略号截断，「详情」按钮固定显示于行尾 */
.vd-desc {
  display: flex;
  align-items: baseline;
  margin: 4px 0 14px;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
}
.vd-desc-label {
  flex: 0 0 auto;
  color: var(--text-muted);
}
.vd-desc-text {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vd-desc-more {
  flex: 0 0 auto;
  margin-left: 4px;
  color: var(--accent);
  white-space: nowrap;
}
.vd-desc-more:hover {
  text-decoration: underline;
}
.vd-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.vd-play-btn,
.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;
}
.vd-play-btn iconify-icon,
.vd-down-btn iconify-icon {
  font-size: 16px;
}
.vd-play-btn {
  background: var(--accent);
  color: #fff;
}
.vd-play-btn:hover {
  background: #E64D5C;
}
.vd-down-btn {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.vd-down-btn:hover {
  background: var(--accent);
  color: #fff;
}

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

/* ===========================
   分集剧情（沿用 .pannel-box / .pannel-hd 面板外观，仅列出前 3 集摘要，
   引导至独立的 plot/detail 页查看完整分集剧情）
   =========================== */
.ep-plot-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.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);
}
.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;
}
.ep-plot-ep {
  font-weight: 600;
  color: var(--text);
  margin-right: 4px;
}
.ep-plot-link {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.15s;
}
.ep-plot-link:hover { color: var(--accent); }
.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;
}
.ep-plot-more-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

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

/* ===========================
   Sidebar：仅同分类排行榜（比照目标站，无专题区块）
   =========================== */
.detail-sidebar .pannel-hd {
  margin-bottom: 10px;
}

/* 平板隐藏 sidebar */
@media (max-width: 1024px) {
  .detail-sidebar { display: none; }
}
@media (min-width: 1025px) {
  .detail-sidebar { display: block; width: 280px; }
}

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

  .vd-hero { flex-direction: column; align-items: center; gap: 12px; }
  .vd-info { width: 100%; }
  .vd-title { font-size: 17px; line-height: 1.4; }
  .vd-score { font-size: 18px; }
  .vd-meta-line { font-size: 13px; }
  /* 主演：手机版单行省略太短，改为最多两行，超出以省略号截断 */
  .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;
  }
  .hide-mobile { display: none !important; }
  /* 上映／更新：手机版各自独立成行，隐藏中间分隔线；
     换行后两个 span 之间补上与其他 vd-meta-line 一致的行距 */
  .vd-meta-line--inline { display: block; margin-bottom: 6px; }
  .vd-meta-line--inline:last-child { margin-bottom: 0; }
  .vd-meta-line--inline + .vd-sep { display: none; }

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

  .detail-tabs-section { margin-bottom: 28px; }
  .detail-tabs { gap: 14px; }
  /* .dtab 字体维持桌机版 16px，与本页其他 h2（.pannel-hd-title）一致，故手机版不覆写字体大小 */
}

/* ===========================
   标签页（剧情介绍 / 角色信息 / 我要评分）
   外观比照目标站 pannel-hd：不做白底卡片，标头用 icon + 粗体文字 + 底部
   通栏分隔线，仅 active 分页以主色凸显（功能仍保留 tab 切换，非目标站
   原本的单一「剧情简介」区块）
   =========================== */
.detail-tabs-section {
  margin-bottom: 32px;
}
.detail-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  border-bottom: 1px solid var(--border);
}
.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;
}
.dtab iconify-icon {
  width: 20px;
  height: 20px;
  margin-right: 4px;
  color: var(--accent);
  flex-shrink: 0;
}
.dtab.active { border-bottom-color: var(--accent); }
.detail-tab-content {
  padding: 14px 0 0;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ===== 角色/演员 tab ===== */
/* 折叠状态最多显示 3 行（3 * 44px 行高 [即 cast-avatar 高度] + 2 * 10px 间距），
   超出部分底部叠加渐淡遮罩，配合下方展开按钮切换 */
.cast-list-wrap {
  position: relative;
}
.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;
}
.cast-list.cast-expanded {
  max-height: 2000px;
}
.cast-list-wrap.cast-has-more .cast-list:not(.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;
}
.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 #ffe0cc;
  border-radius: 5px;
  padding: 8px 0;
  cursor: pointer;
}
.cast-expand-btn:hover { background: #ffe6da; }
.cast-list-wrap.cast-has-more .cast-expand-btn { display: block; }
.cast-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.cast-info {
  min-width: 0;
}
.cast-name,
.cast-role {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cast-link:hover .cast-name { color: var(--accent); }
.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;
}
.cast-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.cast-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: block;
  transition: color 0.15s;
}
.cast-role {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

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

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

/* 手机版分页标题（剧情介绍/角色信息/我要评分）：
   本页所有 h2（.dtab 与 .pannel-hd-title）字体统一维持 16px，不单独缩小，
   避免同页 h2 大小不一致。.dtab 桌机版字体本就是 16px（见 346 行），
   故手机版无需覆写，直接继承即可——刻意不加断点，避免日后误改成不一致的尺寸。 */
