/* ==========================================
   VOD Detail Page — friDay 深藍主題版面
   ========================================== */

.page-content {
  flex: 1;
  background: var(--bg-base);
}

/* ===== Shared Wrapper ===== */
.detail-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 0;
}

/* ===== Top Section: Poster + Info ===== */
.detail-top {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding-bottom: 24px;
}

.detail-poster {
  flex-shrink: 0;
  width: 250px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.detail-poster img {
  width: 100%;
  display: block;
  aspect-ratio: 2/3;
  object-fit: cover;
}
.poster-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}
.poster-score {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(18,23,44,0.75);
  color: #f0b429;
  font-size: 13px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.detail-info {
  flex: 1;
  min-width: 0;
  padding-top: 4px;
}

.detail-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 4px;
}
.detail-title-row .detail-title { margin-bottom: 0; }

.detail-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 4px;
  line-height: 1.3;
}
.detail-title-en {
  font-size: 13px;
  color: var(--text-3);
  margin: 0 0 12px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dtag {
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 12px;
  border: 1px solid var(--border);
  color: var(--text-2);
  background: var(--bg-card);
}

.detail-meta {
  margin: 0 0 18px;
}
.dm-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
}
.dm-row:last-child { border-bottom: none; }
.dm-row dt {
  color: var(--text-3);
  flex-shrink: 0;
  width: 38px;
  font-weight: 500;
}
.dm-row dd {
  margin: 0;
  flex: 1;
  min-width: 0;
}
.dm-row dd a {
  color: var(--text-2);
  text-decoration: none;
  margin-right: 4px;
}
.dm-row dd a:hover { color: var(--accent); }
.dm-badge {
  display: inline-block;
  background: var(--bg-elevated);
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 11px;
  margin-right: 4px;
}
.dm-actors {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dm-actors a { display: inline; }

.dm-row--combo {
  flex-wrap: wrap;
  align-items: baseline;
  row-gap: 8px;
}
.dm-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.dm-item + .dm-item {
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid var(--border);
}
/* .dm-item / .dm-item-label 是旧的 .dm-row--combo 写法留下的死规则，
   基础信息现在用真正的 dt/dd（.dm-row-group），已无元素使用，删除。 */
.dm-item a {
  color: var(--text-2);
  text-decoration: none;
  margin-right: 4px;
}
.dm-item a:hover { color: var(--accent); }

.dm-blurb {
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: opacity 0.2s;
}
.detail-btn:hover { opacity: 0.85; }
.detail-btn--play {
  background: var(--accent);
  color: #fff;
}
.detail-btn--dl {
  background: var(--accent-light);
  border: 1px solid var(--accent);
  color: var(--accent-hover);
}
.detail-btn--share {
  background: var(--bg-elevated);
  border: 1px solid var(--border-2);
  color: var(--text-1);
}

/* ===== Tabs Section ===== */
.detail-wrap--tabs {
  border-top: 1px solid var(--border);
  /* 原先 padding-top:0 让 tabs 与上方 Hero 紧贴（违反强制20.2「模块之间不能没有间隔」） */
  padding-top: 16px;
  margin-top: 24px;
}
.detail-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.dtab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 11px 18px;
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.15s;
}
.dtab:hover { color: var(--text-1); }
.dtab.is-active {
  color: var(--accent);
}

#detailDesc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.75;
}
#detailDesc.desc-collapsed {
  max-height: 4.8em;
  overflow: hidden;
  position: relative;
}
#detailDesc.desc-collapsed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.4em;
  background: linear-gradient(transparent, var(--bg-base));
}
.desc-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
}

/* ===== Cast List ===== */
.detail-cast-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 8px;
}
.cast-item {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 72px;
}
.cast-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--text-3);
}
.cast-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cast-name {
  font-size: 12px;
  color: var(--text-1);
  display: block;
  text-align: center;
  line-height: 1.3;
  word-break: break-all;
}
.cast-role {
  font-size: 11px;
  color: var(--text-3);
  display: block;
  text-align: center;
}

/* ===== Rate Block ===== */
.rate-block {
  padding: 8px 0 16px;
}
.rate-label {
  font-size: 14px;
  color: var(--text-2);
  margin: 0 0 12px;
}
.rate-stars {
  display: flex;
  gap: 8px;
  font-size: 30px;
  color: #3a3a3a;
}
.rs {
  cursor: pointer;
  transition: color 0.15s;
}
.rs:hover,
.rs.rs-on { color: #f0b429; }

/* ===== Playlist Section ===== */
.playlist-section {
  margin-bottom: 42px;
}

/* ===== Bottom Layout: Main + Sidebar ===== */
.detail-bottom-layout {
  display: flex;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 40px;
  align-items: flex-start;
}
.detail-bottom-main {
  flex: 1;
  min-width: 0;
}
.detail-sidebar {
  width: 260px;
  flex-shrink: 0;
}

/* ===== 侧栏：专题 ===== */
.topic-side-block { margin-top: 16px; }
.ts-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid var(--border);
}
.ts-hd-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; color: var(--text-1);
}
/* 原为 .ts-hd-title iconify-icon —— iconify 时代的死规则，本主题用 sprite svg.mac-icon */
.ts-hd-title .mac-icon { color: var(--accent); width: 15px; height: 15px; }
.ts-hd-more { font-size: 12px; color: var(--text-3); }
.ts-hd-more:hover { color: var(--accent); }

.ts-list { display: flex; flex-direction: column; }
.ts-item {
  display: block; padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-1);
}
.ts-item:last-child { border-bottom: none; }

/* 专题封面：直接用 topic_pic 单图（原先是查 3 部影片拼图，每条专题多一次查询，
   且拼图的 ids 是裸变量、实际取不到图）。.ts-collage* 那套规则已随之删除。 */
.ts-cover {
  height: 76px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 8px;
  background: var(--bg-elevated);
}
.ts-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ts-title {
  font-size: 13px; font-weight: 600; color: var(--text-1);
  margin: 0 0 4px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
  overflow: hidden; transition: color 0.2s;
}
.ts-item:hover .ts-title { color: var(--accent); }
.ts-blurb {
  font-size: 12px; color: var(--text-3); line-height: 1.6; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-section {
  /* 与 .playlist-section / .detail-wrap 的纵向节奏统一到 24px（强制20.1）；
     原先本文件里混用 32/42/24/16 四个值 */
  margin-bottom: 24px;
}
.detail-section-hd {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.detail-section-hd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.detail-section-hd-row .detail-section-hd {
  margin: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.detail-section-more {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.2s;
}
.detail-section-more:hover { color: var(--accent); }
.detail-vod-grid {
  display: grid;
  /* 固定一行 6 列（猜你喜欢 / 相关推荐 / 关联系列 统一口径）。
     本类只用在详情页，play 页用的是 .play-vod-grid，改这里不影响播放页。
     详情页下半是「左主体 + 右侧栏」两栏，主体比列表页窄，所以是 6 列而不是列表页的 9 列。 */
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.detail-vod-grid > li { min-width: 0; display: block; }
@media (max-width: 1199px) {
  .detail-vod-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* 关联系列折叠：默认只显前 6 部，超过才由 detail.js 放出「展开更多」。
   卡片外层是 <li>（见上面的 .detail-vod-grid > li），所以按 li 计数截断。 */
.detail-vod-grid.rel-collapsed > li:nth-child(n+7) { display: none; }
.rel-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
  padding: 8px 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-2);
  transition: color 0.2s, border-color 0.2s;
}
.rel-toggle:hover { color: var(--accent); border-color: var(--accent); }

/* ===== Plot List ===== */
.plot-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.plot-list li { list-style: none; }
.plot-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  max-width: 100%;
}
.plot-desc {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  margin: 0;
}
.plot-desc-line {
  display: block;
  width: 100%;
  max-width: 100%;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plot-item:hover { border-color: var(--accent); background: var(--bg-elevated); transform: translateY(-1px); }
.plot-item:hover .plot-ep { color: var(--accent); }
.plot-ep {
  font-weight: 600;
  color: var(--text-1);
  margin-right: 6px;
}

/* ===== Share Modal ===== */
.share-modal { display: none; }
.share-modal.is-open { display: block; }
.share-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1400;
}
.share-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1401;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 24px;
  width: min(380px, 92vw);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.share-popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-3);
  cursor: pointer;
  line-height: 1;
}
.share-popup-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 16px;
}
.share-popup-icons {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.spi {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: var(--text-2);
  font-size: 12px;
  cursor: pointer;
}
.spi-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-1);
  border: 1px solid var(--border);
}
.share-popup-hint {
  font-size: 12px;
  color: var(--text-3);
  margin: 0 0 8px;
}
.share-popup-link {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--text-2);
  resize: none;
  height: 52px;
  box-sizing: border-box;
  display: block;
  margin-bottom: 10px;
}
.share-popup-copy {
  width: 100%;
  padding: 9px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.share-popup-copy:hover { opacity: 0.88; }

/* ===== Playlist Widget ===== */
.playlist-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.playlist-title {
  margin: 0;            /* h3→h2 后仍不吃 UA 默认 margin（flex 行里会直接撑高） */
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
}
.pl-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 5px 12px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.pl-sort-btn:hover { color: var(--accent); border-color: var(--accent); }

.playlist-sources {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
/* 移动端源 tab 不换行、可横向滑动（强制8.3）。
   这一行是 button、没有 hover 弹层，所以用 overflow-x 不会触发强制18.2 的裁切问题。 */
@media (max-width: 767px) {
  .playlist-sources {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .playlist-sources::-webkit-scrollbar { display: none; }
  .pl-source-tab { flex-shrink: 0; white-space: nowrap; }
}
.pl-source-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pl-source-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.playlist-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
}

.playlist-panel { display: none; }
.playlist-panel.is-active { display: block; }

.playlist-notice {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 10px;
  padding: 7px 12px;
  background: var(--bg-card);
  border-radius: var(--radius);
}

.playlist-episodes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 4px;
}
.playlist-episodes.episodes-collapsed {
  max-height: calc(2 * (32px + 6px));
  overflow: hidden;
}

.episode-btn {
  display: inline-block;
  padding: 5px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}
.episode-btn:hover { border-color: var(--accent); color: var(--accent); }
.episode-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.episode-more-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  margin: 8px 0 0 auto;
  padding: 5px 12px;
  border: 1px dashed var(--border);
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-3);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.episode-more-trigger:hover { color: var(--accent); border-color: var(--accent); }

/* ===== Comment Section ===== */
.cmt-total-label { font-size: 13px; font-weight: 400; color: var(--text-3); margin-left: 6px; }
.cmt-total-label em { color: var(--accent); font-style: normal; }

.mac_comment.cmt-ajax-wrap {
  background: transparent;
  border: none;
  min-height: 60px;
}
.cmt-loading {
  font-size: 13px;
  color: var(--text-3);
  padding: 24px 0;
  text-align: center;
}
.cmt-empty {
  padding: 32px 0;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
}

.cmt-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
}
.cmt-textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-1);
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.cmt-textarea:focus { border-color: var(--accent); }
.cmt-textarea::placeholder { color: var(--text-3); }

.cmt-form-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.cmt-verify-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.cmt-verify-input {
  width: 90px;
  padding: 6px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-1);
  font-size: 12px;
  outline: none;
}
.cmt-captcha-img { height: 30px; border-radius: 3px; cursor: pointer; flex-shrink: 0; }
.cmt-form-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.cmt-remaining { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.cmt-remaining em { color: var(--accent); font-style: normal; }
.cmt-submit-btn {
  padding: 7px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.cmt-submit-btn:hover { opacity: 0.85; }

.cmt-list { display: flex; flex-direction: column; gap: 0; }
.cmt-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cmt-item:last-child { border-bottom: none; }
.cmt-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
}
.cmt-body { flex: 1; min-width: 0; }
.cmt-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cmt-name { font-size: 13px; font-weight: 600; color: var(--text-1); }
.cmt-time { font-size: 11px; color: var(--text-3); }
.cmt-content { font-size: 13px; color: var(--text-2); line-height: 1.6; margin: 0 0 6px; }

.cmt-child-item {
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border-left: 2px solid var(--border);
}
.cmt-child-name { font-size: 12px; font-weight: 600; color: var(--text-1); margin-right: 6px; }

.cmt-actions { display: flex; gap: 12px; margin-top: 4px; }
.cmt-action-link {
  font-size: 12px;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.15s;
}
.cmt-action-link:hover { color: var(--accent); }

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

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .detail-sidebar { display: none; }
}
@media (max-width: 640px) {
  .detail-top { flex-direction: column; align-items: center; }
  .detail-poster { width: 230px; }
  .detail-info { width: 100%; }
  .detail-bottom-layout { flex-direction: column; padding: 16px 16px 32px; }
  .detail-wrap { padding: 16px 16px 0; }
  .detail-tabs { overflow-x: auto; }
  .cmt-form-footer { flex-direction: column; align-items: stretch; }
  .cmt-form-right { margin-left: 0; justify-content: space-between; }
  .detail-vod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .plot-item { flex-direction: column; align-items: flex-start; }
  .plot-desc-line {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .plot-link { align-self: flex-end; }
}


/* ==========================================
   详情页 Hero（widget/detail_hero，与下载页共用）新增部分
   ========================================== */

/* 豆瓣评分徽章：放在 h1 内、片名右侧（原先是海报角标） */
.douban-badge {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 8px;
  border: 1px solid var(--score-hi);
  border-radius: 4px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.douban-badge .db-label { background: var(--score-hi); color: #06121f; padding: 3px 6px; }
.douban-badge .db-score { background: var(--bg-card); color: var(--score-hi); padding: 3px 8px; }

/* 年份/地区/语言/时长/类型 合并成一行，但保留真正的 dt/dd（原先在 dl 里塞 span>b 是无效 DL） */
.dm-row-group {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 18px;
  padding: 5px 0;
}
.dm-row-group .dm-row {
  display: flex;
  align-items: baseline;
  width: auto;
  padding: 0;
  border-bottom: none;
}

/* 连载/完结状态 */
.status-badge {
  display: inline-block;
  background: var(--accent);
  color: #06121f;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 3px;
}
.status-badge.is-end { background: var(--bg-elevated); color: var(--text-2); }
.status-remark { margin-left: 6px; color: var(--text-3); font-size: 12px; }

/* 两段式简介（强制7.3）：全局 *{margin:0} reset 会把多段 <p> 挤成一坨，
   所以这里必须显式把段间距补回来（强制1.4/18.5）。 */
.desc-lead { margin-bottom: 12px; color: var(--text-2); }
.desc-text { color: var(--text-3); }
.desc-text p { margin-bottom: 10px; }
.desc-text p:last-child { margin-bottom: 0; }

/* 折叠类组件的 [hidden] 兜底（强制18.1）：作者样式里的 display 常会盖掉 hidden 属性 */
.rel-toggle[hidden],
.desc-expand-btn[hidden] { display: none !important; }


/* ==========================================
   基础信息 dt / dd 颜色区分（dt 偏灰、dd 正常）
   说明：本文件原先有 45 处 var(--text-pri/--text-sec/--text-muted) —— 这三个变量
   在本主题的 :root 里**根本没有定义**（本主题用的是 --text-1/2/3），
   所以那些 color 声明全部无效、元素只能继承父级颜色，dt 与 dd 看起来一模一样。
   已统一改成本主题的三级文字色，下面再显式把 dt/dd 的层级拉开。
   ========================================== */
.detail-meta dt {
  color: var(--text-3);
  font-weight: 400;
  flex-shrink: 0;
  min-width: 42px;
}
.detail-meta dd {
  color: var(--text-2);
  min-width: 0;
}
.detail-meta dd a {
  color: var(--text-2);
  transition: color 0.2s;
}
.detail-meta dd a:hover { color: var(--accent); }
/* 简介行的正文比其它字段再淡一档，避免长文本抢视觉重心 */
.dm-row--desc dd { color: var(--text-3); }
