/* plot_detail.css — 分集劇情頁 */

/* ===== 最新資訊側欄卡片 ===== */
.art-side-cards { display: flex; flex-direction: column; gap: 12px; padding: 4px 0; }
.art-side-card {
  display: flex;
  gap: 10px;
  text-decoration: none;
  color: var(--text-2);
  transition: color .15s;
}
.art-side-card:hover { color: var(--accent); }
.art-side-card-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 54px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-elevated);
}
.art-side-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.art-side-nopic {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 20px;
}
.art-side-card-body { flex: 1; min-width: 0; }
.art-side-card-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.art-side-card-blurb {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.art-side-card:hover .art-side-card-title { color: var(--accent); }

/* ===== 緊湊頂部資訊列 ===== */
.plot-info-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
}
.plot-info-thumb {
  flex-shrink: 0;
  width: 60px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: block;
}
.plot-info-thumb img { width: 100%; height: 100%; object-fit: cover; }
.plot-info-body { flex: 1; min-width: 0; }
.plot-info-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.plot-info-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-1);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plot-info-name:hover { color: var(--accent); }
.plot-info-badge {
  flex-shrink: 0;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
}
.plot-info-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
  color: var(--text-3);
}
.plot-info-score {
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  margin-right: 4px;
}
.plot-meta-sep { color: var(--border); user-select: none; }
.plot-info-play {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 16px;
  border-radius: 20px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 13px;
  text-decoration: none;
  transition: color .15s, border-color .15s;
}
.plot-info-play:hover { color: var(--accent); border-color: var(--accent); }
.plot-info-play iconify-icon { font-size: 16px; }

/* ===== 劇情正文 ===== */
.plot-article-body {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.9;
  padding: 6px 0 10px;
}
.plot-article-body p { margin-bottom: 12px; }

/* ===== 集数导航 ep wrap ===== */
.plot-ep-wrap ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0;
}
.plot-ep-wrap li { list-style: none; width: calc(50% - 4px); }
.plot-ep-wrap li a {
  display: block;
  width: 100%;            /* 覆蓋 .tv-info-list li a 的 72px */
  padding: 5px 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-2);
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  transition: color .18s, border-color .18s, background .18s;
  text-decoration: none;
  box-sizing: border-box;
}
.plot-ep-wrap li a:hover { color: var(--accent); border-color: var(--accent); }

/* ===== 上一集 / 下一集 ===== */
.plot-nav {
  display: flex;
  gap: 12px;
  padding: 14px;
}
.plot-nav-prev,
.plot-nav-next {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  min-width: 0;
}
.plot-nav-next { text-align: right; align-items: flex-end; }
.plot-nav-label { font-size: 12px; color: var(--text-3); }
.plot-nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
  text-decoration: none;
  transition: color .18s;
}
.plot-nav-link:hover,
.plot-nav-link--accent { color: var(--accent); }
.plot-nav-none { font-size: 13px; color: var(--text-3); }

@media (max-width: 767px) {
  .plot-nav { flex-direction: column; }
  .plot-ep-wrap ul { gap: 6px; }
  .plot-ep-wrap li a { padding: 4px 8px; font-size: 12px; }
}
