/* vod/detail.html — supplements main.css for detail page */
/* All major styles are now in main.css using hanju001 class names */
.color-9 { color: var(--text-3); }

/* ===== 分集劇情 ===== */
.plot-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
/* 整条可点：原先是 li + 「查看详情 ›」小链接，改成整块 <a>（强制2.6 跳转用 a），
   悬停给主题色边框反馈 */
.plot-item {
  display: block;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid #D0D0D0;
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
.plot-item:hover {
  border-color: var(--accent);
  background: var(--bg-card);
  transform: translateY(-1px);
}
.plot-list { list-style: none; }
.plot-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
  margin: 0;
}
.plot-ep {
  font-weight: 700;
  color: var(--text-1);
  margin-right: 5px;
}
.plot-more-btn {
  display: block;
  text-align: center;
  padding: 10px;
  border: 1px solid var(--accent);  /* 紅色邊框更顯眼 */
  border-radius: var(--radius);
  color: var(--accent);             /* 紅色文字 */
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.18s, color 0.18s;
}
.plot-more-btn:hover {
  background: var(--accent);
  color: #fff;
}

/* 片名 + 豆瓣评分徽标（照 tp01 基线）：豆瓣绿是品牌色，不套主题 token */
.detail-main-right .detail-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.douban-badge {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 10px;
  border: 1px solid #007722;
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 12px;
  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; }

/* ===== 基础信息网格（widget/detail_hero，detail + down 两页共用） =====
   <dl class="intro-grid"> 里每行是 <div class="ig-item"><dt>标签：</dt><dd>值</dd></div>，
   dt/dd 必须压成 inline，否则全局 reset 下会上下折行。 */
.intro-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px 8px; margin: 10px 0; }
.ig-item { font-size: 13px; color: var(--text-2); line-height: 1.9; min-width: 0; }
.ig-item dt, .ig-item dd { display: inline; margin: 0; }
.ig-item dt { color: var(--text-3); margin-right: 2px; }
.ig-item .color-9 { margin-right: 2px; }
.ig-item a { color: var(--text-2); }
.ig-item a:hover { color: var(--accent); }
.ig-full { grid-column: 1 / -1; }
.ig-ellipsis { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* 简介行：单行不换行，超出省略号；「详情 ›」固定在行尾不被截掉。
   dt/dd 在 .ig-item 里是 inline，这里整行改 flex 才能让 dd 独立收缩（需 min-width:0）。 */
.ig-desc {
  display: flex;
  align-items: baseline;
  gap: 2px;
  white-space: nowrap;
}
.ig-desc dt { flex: 0 0 auto; }
.ig-desc dd.ig-desc-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ig-desc-more { flex: 0 0 auto; color: var(--accent); margin-left: 6px; white-space: nowrap; }
.ig-tags .dtag { margin-right: 5px; }

/* 状态徽章：完结 / 连载视觉可辨识（vod-detail 强制6.1） */
.status-badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 700; line-height: 1.6; }
.status-badge.is-end { background: rgba(148,163,184,.16); color: #64748b; }
.status-badge.is-serial { background: rgba(255,68,63,.12); color: var(--accent); }
.status-remark { margin-left: 5px; color: var(--text-2); }

/* 片名下的外文名 */
.detail-title-en { font-size: 13px; color: var(--text-3); margin-bottom: 6px; }
/* 封面下方的更新备注 */
.cover-remarks { display: block; margin-top: 8px; text-align: center; font-size: 12px; color: var(--text-3); }

/* pill tags: 類型、年代、地區、語言 */
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.detail-tags .dtag { display: inline-flex; align-items: center; padding: 3px 10px; font-size: 12px; border-radius: 14px; background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-2); text-decoration: none; line-height: 1.6; }
.detail-tags .dtag a { color: var(--text-2); text-decoration: none; }
.detail-tags .dtag:hover, .detail-tags a.dtag:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.detail-tags .dtag:hover a { color: #fff; }
@media (max-width: 680px) {
  .intro-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Hero 操作区：收藏按钮（会员 ulog type=2，tp07 会员体系为启用状态） */
.detail-main-btn .btn .mac-icon { margin-right: 5px; }
.detail-main-btn .btn-fav {
  background: var(--bg-elevated); color: var(--text-2);
  border: 1px solid var(--border);
}
.detail-main-btn .btn-fav:hover { color: var(--accent); border-color: var(--accent); background: var(--bg-card); }
.detail-main-btn .btn-fav.is-active { color: #f0b429; border-color: #f0b429; background: rgba(240,180,41,.10); }

.detail-tabs { padding: 0; overflow: hidden; }
.detail-tab-nav { display: flex; border-bottom: 2px solid var(--border); padding: 0 16px; }
.dtab-btn { padding: 14px 18px 12px; font-size: 14px; font-weight: 600; color: var(--text-3); background: none; border: none; cursor: pointer; position: relative; transition: color .15s; }
.dtab-btn::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--accent); opacity: 0; transition: opacity .15s; }
.dtab-btn.is-active { color: var(--accent); }
.dtab-btn.is-active::after { opacity: 1; }
.dtab-panel { display: none; padding: 16px; }
.dtab-panel.is-active { display: block; }

/* Actor tab */
.actor-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.actor-row:last-child { border-bottom: none; }
.actor-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--bg-elevated); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--text-3); flex-shrink: 0; }
.actor-name { font-size: 14px; font-weight: 600; color: var(--text-1); }
.actor-role { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.actor-empty { font-size: 13px; color: var(--text-3); padding: 16px 0; text-align: center; }

/* ===== Playlist（widget/playlist，vod/detail 与 vod/play 共用同一份 markup） =====
   外壳已是独立 .mod-inner 卡片，不再需要原先「嵌在剧情 tab 里」的上边框与上内距。 */
.inplot-playlist { }
.ipp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ipp-title { font-size: 17px; font-weight: 700; color: var(--text-1); padding-left: 12px; position: relative; }
.ipp-title::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 18px; background: var(--accent); border-radius: 1px; }
.ipp-empty { font-size: 13px; color: var(--text-3); padding: 18px 0; text-align: center; }
.ipp-sort-btn { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-3); background: none; border: 1px solid var(--border); border-radius: 4px; padding: 4px 8px; cursor: pointer; }
.ipp-sort-btn:hover { color: var(--text-1); border-color: var(--text-2); }
.ipp-src-nav { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 12px; overflow-x: auto; }
.ipp-src-btn { display: flex; align-items: center; gap: 5px; padding: 8px 14px; font-size: 13px; color: var(--text-3); background: none; border: none; cursor: pointer; white-space: nowrap; position: relative; transition: color .15s; flex-shrink: 0; }
.ipp-src-btn::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--accent); opacity: 0; transition: opacity .15s; }
.ipp-src-btn.is-active { color: var(--accent); }
.ipp-src-btn.is-active::after { opacity: 1; }
.ipp-eps { display: none; }
.ipp-eps.is-active { display: block; }
.ipp-provider { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-3); margin-bottom: 10px; }
.ipp-ep-wrap { overflow: hidden; }
.ipp-ep-wrap.is-collapsed { max-height: 84px; }
.ipp-ep-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.ipp-ep { display: block; padding: 6px 10px; font-size: 13px; color: var(--text-2); border: 1px solid var(--border); border-radius: var(--radius-sm, 4px); text-decoration: none; transition: color .12s, border-color .12s; white-space: nowrap; }
.ipp-ep:hover, .ipp-ep.is-active { color: var(--accent); border-color: var(--accent); }
.ipp-ep.is-active { font-weight: 600; }
.ipp-ep-toggle { display: flex; align-items: center; gap: 4px; margin: 10px auto 0; font-size: 13px; color: var(--accent); background: none; border: none; cursor: pointer; }

.detail-share { margin-top: 14px; }

/* ===== Sidebar ===== */
.rank-col-more { margin-left: auto; font-size: 12px; color: var(--text-3); text-decoration: none; }
.rank-col-more:hover { color: var(--accent); }
.sidebar-topic-grid { display: flex; flex-direction: column; gap: 10px; list-style: none; margin: 0; padding: 0; }

/* Rating block */
.rate-block { display: flex; align-items: center; gap: 12px; padding: 6px 0 14px; flex-wrap: wrap; }
.rate-label { font-size: 13px; color: var(--text-2); white-space: nowrap; margin: 0; }
.rate-stars { display: flex; gap: 5px; font-size: 26px; color: #DDD; cursor: pointer; }
.rs { transition: color .12s; }
.rate-result { font-size: 12px; color: var(--text-3); }
.rs { cursor: pointer; transition: color .15s; }
.rs:hover, .rs.rs-on { color: #f0b429; }

/* ===== 剧情介绍 / widget/desc_expand（detail + down 共用；down 页不再重复定义） =====
   全局 *{margin:0} 会吃掉段落默认间距，多段文本容器必须显式补回（vod-detail 强制1.4/7.3）。 */
.desc-body { font-size: 13px; color: var(--text-2); line-height: 1.9; }
.desc-body p { margin-bottom: 12px; }
.desc-body p:last-child { margin-bottom: 0; }
.desc-body img { max-width: 100%; height: auto; display: inline-block; }
.desc-lead { color: var(--text-3); }
.desc-text { margin-top: 12px; }
.desc-collapsed { max-height: 96px; overflow: hidden; -webkit-mask-image: linear-gradient(black 40%, transparent); mask-image: linear-gradient(black 40%, transparent); }
.desc-expanded { max-height: none; mask-image: none; -webkit-mask-image: none; }
.desc-expand-btn { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--accent); padding: 5px 0; cursor: pointer; background: none; border: none; }

/* ===== 分享弹窗（widget/share_modal，detail / play / down 三页共用） ===== */
.share-modal { display: none; }
.share-modal.is-open { display: block; }
.share-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 600; }
.share-popup {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 601;
  background: var(--bg-card); border-radius: 10px; padding: 20px 20px 16px;
  width: 320px; max-width: calc(100vw - 32px);
  box-shadow: 0 8px 32px rgba(0,0,0,.22);
}
.share-popup-close {
  position: absolute; top: 10px; right: 12px;
  background: none; border: none; cursor: pointer;
  color: var(--text-3); font-size: 18px; line-height: 1; padding: 2px 4px;
}
.share-popup-close:hover { color: var(--text-1); }
.share-popup-title { font-size: 15px; font-weight: 700; color: var(--text-1); margin-bottom: 18px; }
.share-popup-icons { display: flex; gap: 20px; justify-content: center; margin-bottom: 18px; }
.spi { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; }
.spi-circle {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; transition: .15s;
}
.spi:hover .spi-circle { background: var(--accent); border-color: var(--accent); color: #fff; }
.spi small { font-size: 12px; color: var(--text-2); }
.share-popup-hint { font-size: 12px; color: var(--text-3); margin: 0 0 6px; }
.share-popup-link {
  width: 100%; height: 62px; padding: 8px 10px; font-size: 12px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 4px; color: var(--text-2); resize: none; line-height: 1.5;
  outline: none; word-break: break-all; font-family: inherit;
}
.share-popup-copy {
  display: block; width: 100%; margin-top: 12px;
  padding: 11px; background: var(--accent); color: #fff;
  border: none; border-radius: 6px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background .15s;
}
.share-popup-copy:hover { background: var(--accent-hover); }

/* ===== 評論區 Comment（跟 art_detail.css 共用同一套數值，widget/comment.html 兩邊 include，見 CLAUDE.md 對齊記錄）===== */
.detail-section { margin-bottom: 24px; }
.detail-section-hd {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 600; color: var(--text-1);
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.cmt-total-label { font-weight: 400; color: var(--text-3); font-size: 14px; }
.cmt-total-label em { color: var(--accent); font-style: normal; }

/* 評論表單 */
.cmt-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}
.cmt-textarea {
  width: 100%; min-height: 90px;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-size: 14px; font-family: inherit;
  line-height: 1.6; resize: vertical; outline: none;
  box-sizing: border-box;
  transition: border-color .15s;
}
.cmt-textarea:focus { border-color: var(--accent); }
.cmt-textarea::placeholder { color: var(--text-3); }

.cmt-form-footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  margin-top: 10px;
}
.cmt-verify-row {
  display: flex; align-items: center; gap: 8px;
}
.cmt-verify-input {
  height: 36px; width: 110px;
  padding: 0 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-size: 13px; outline: none;
  transition: border-color .15s;
}
.cmt-verify-input:focus { border-color: var(--accent); }
.cmt-captcha-img {
  height: 36px; width: auto;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.cmt-form-right {
  display: flex; align-items: center; gap: 12px;
}
.cmt-remaining {
  font-size: 12px; color: var(--text-3);
}
.cmt-remaining em { color: var(--accent); font-style: normal; }
.cmt-submit-btn {
  height: 36px; padding: 0 20px;
  background: var(--accent);
  border: none; border-radius: var(--radius-sm);
  color: #fff; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background .15s;
}
.cmt-submit-btn:hover { background: var(--accent-hover); }

.cmt-ajax-wrap {
  border: none;
  background: transparent;
}

/* 評論列表 */
.cmt-list { display: flex; flex-direction: column; gap: 0; list-style: none; margin: 0; padding: 0; }
.cmt-item-reply-list { list-style: none; margin-top: 10px; padding: 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 {
  flex-shrink: 0; width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  text-transform: uppercase;
}
.cmt-body { flex: 1; min-width: 0; }
.cmt-meta {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 6px;
}
.cmt-name { font-size: 13px; font-weight: 600; color: var(--text-1); }
.cmt-time { font-size: 12px; color: var(--text-3); }
.cmt-content { font-size: 14px; color: var(--text-2); line-height: 1.7; word-break: break-all; }

/* 子評論（回覆） */
.cmt-child-item {
  margin-top: 10px; padding: 10px 14px;
  background: var(--bg-elevated);
  border-left: 3px solid var(--border-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
}
.cmt-child-name { font-weight: 600; color: var(--accent); margin-right: 6px; }
.cmt-child-item .cmt-time { font-size: 11px; color: var(--text-3); }
.cmt-child-item .cmt-content { margin-top: 4px; color: var(--text-2); }

/* 操作連結 */
.cmt-actions { margin-top: 8px; display: flex; gap: 12px; }
.cmt-action-link {
  font-size: 12px; color: var(--text-3);
  transition: color .15s;
}
.cmt-action-link:hover { color: var(--accent); }

/* 空狀態 */
.cmt-empty {
  padding: 28px 0; text-align: center;
  font-size: 14px; color: var(--text-3);
}
.cmt-loading { padding: 20px 0; text-align: center; font-size: 14px; color: var(--text-3); }

/* 分頁 */
.cmt-paging {
  display: flex; align-items: center; gap: 6px;
  padding: 16px 0 4px; flex-wrap: wrap;
}
.cmt-page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-2); font-size: 13px;
  transition: all .15s;
}
.cmt-page-btn:hover { color: var(--text-1); border-color: var(--border-2); }
.cmt-page-btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.cmt-page-btn.is-disabled { opacity: 0.4; pointer-events: none; }

/* 封面評分角標 */
.cover-score {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0,0,0,.62); color: #F0B429;
  font-size: 13px; font-weight: 700;
  padding: 3px 7px; border-radius: 4px; line-height: 1.4;
  pointer-events: none;
}

/* 演員列表兩欄 (PC) */
.actor-grid { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 24px; }
.actor-grid .actor-row:last-child,
.actor-grid .actor-row:nth-last-child(2):nth-child(odd) { border-bottom: none; }
.actor-name a { color: inherit; }
.actor-name a:hover { color: var(--accent); }
@media (max-width: 767px) { .actor-grid { grid-template-columns: 1fr; } }

/* ===== 面包屑：标准 <nav aria-label><ol><li> 结构 =====
   ol 必须同时写 flex + list-style:none + padding:0，否则会退化成竖排带编号的列表。
   detail / play / down 三页都加载本文件，所以只在这里定义一次。
   基础配色 / 外距在 main.css 的 .breadcrumb。 */
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; padding: 0; margin: 0; }
.breadcrumb li { display: flex; align-items: center; min-width: 0; }
.breadcrumb .bc-sep { color: var(--text-3); }
.breadcrumb .bc-current { color: var(--text-1); }

/* 标签行里的分类胶囊与「查看详情」入口 */
.detail-tags .dtag--type { background: rgba(255,68,63,.10); border-color: rgba(255,68,63,.35); color: var(--accent); }
.detail-tags .dtag--link { gap: 4px; }

/* ===== 专题侧栏（widget/topic_side，卡片复用 widget/topic_card） ===== */
.topic-side .sidebar-topic-grid { display: flex; flex-direction: column; gap: 10px; list-style: none; margin: 0; padding: 0; }
