/* 分集剧情页：灰底上的白面板（面板样式共用 main.css），轻量 Hero（widget/vod_hero）、正文、上/下集、全部分集；简易面包屑样式在 main.css */
.lb-plot-main > .lb-vd-panel + .lb-vd-panel {
  margin-top: var(--gap-panel);
}

.lb-plot-main .lb-module-title {
  font-size: 18px;
  font-weight: 700;
}

/* ===== 轻量 Hero：与资讯页／排行榜同一套标题横幅（--banner-bg），白字、半透明白标签、右下大字浮水印 ===== */
.lb-plot-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  overflow: hidden;
  background: var(--banner-bg);
  box-shadow: none;
  color: #fff;
  isolation: isolate;
}

.lb-plot-hero::after {
  content: "EPISODE";
  position: absolute;
  right: 18px;
  bottom: -16px;
  z-index: -1;
  color: rgba(255, 255, 255, 0.2);
  font-size: 96px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  pointer-events: none;
}

.lb-plot-hero-thumb {
  flex-shrink: 0;
  width: 84px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-elev);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.lb-plot-hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lb-plot-hero-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.lb-plot-hero-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.lb-plot-hero-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 32px;
}

.lb-plot-hero-title a {
  color: #fff;
}

.lb-plot-hero-title a:hover {
  color: rgba(255, 255, 255, 0.85);
}

.lb-plot-hero-badge {
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 12px;
  line-height: 18px;
}

.lb-plot-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lb-plot-hero-tag {
  display: flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
}

.lb-plot-hero-score {
  padding-left: 0;
  border: none;
  background: none;
  color: #ffe27a;
  font-weight: 700;
}

.lb-plot-hero-play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 20px;
  border-radius: 8px;
  background: #fff;
  color: var(--banner-ink);
  font-size: 14px;
  transition: background 0.2s;
}

.lb-plot-hero-play:hover {
  background: rgba(255, 255, 255, 0.88);
}

/* ===== 正文 ===== */
/* 文章标题：上方片名与集数胶囊，下方蓝色竖条＋大字集名（三段都在同一个 h2） */
.lb-plot-article-title {
  display: block;
  margin: 0 0 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 400;
}

.lb-plot-article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 13px;
}

.lb-plot-article-count {
  flex-shrink: 0;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--text-light);
  font-size: 12px;
}

.lb-plot-article-count b {
  color: var(--accent-tab);
  font-weight: 700;
}

.lb-plot-article-name {
  position: relative;
  display: block;
  padding-left: 14px;
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
}

.lb-plot-article-name::before {
  content: "";
  position: absolute;
  top: 0.2em;
  bottom: 0.2em;
  left: 0;
  width: 4px;
  border-radius: 2px;
  background: var(--accent);
}

.lb-plot-article-body {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.9;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.lb-plot-article-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 14px auto;
  border-radius: var(--radius);
}

/* ===== 上/下集：同一块面板里左右两格，中间细线 ===== */
.lb-plot-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 14px 20px;
}

.lb-plot-nav-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.lb-plot-nav-item--next {
  padding-left: 20px;
  border-left: 1px solid var(--border);
  text-align: right;
}

.lb-plot-nav-label {
  color: var(--text-muted);
  font-size: 12px;
}

.lb-plot-nav-link,
.lb-plot-nav-none {
  overflow: hidden;
  font-size: 15px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lb-plot-nav-link {
  color: var(--text);
}

.lb-plot-nav-link:hover {
  color: var(--accent-tab);
}

.lb-plot-nav-none {
  color: var(--text-muted);
}

/* ===== 全部分集（收起高度由 plot_detail.js 依实际行数写入） ===== */
.lb-plot-eps-total {
  margin-left: 10px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 400;
}

.lb-plot-eps-wrap {
  overflow: hidden;
}

/* 集数按钮：灰底圆角块，前面用 CSS 计数器加两位数编号（与列表顺序一致），当前集蓝底白字 */
.lb-plot-eps-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ep;
}

.lb-plot-eps-list > li {
  counter-increment: ep;
  min-width: 0;
}

.lb-plot-ep {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 4px;
  background: var(--bg-elev);
  color: var(--text);
  font-size: 14px;
  transition: color 0.15s, background 0.15s, box-shadow 0.15s;
}

.lb-plot-ep::before {
  content: counter(ep, decimal-leading-zero);
  flex-shrink: 0;
  color: var(--text-weak);
  font-size: 14px;
  font-style: italic;
  font-weight: 800;
  transition: color 0.15s;
}

.lb-plot-ep-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lb-plot-ep:hover,
.lb-plot-ep:hover::before {
  color: var(--accent-tab);
}

/* 悬停用内阴影画蓝色边框，不占位、不推挤版面 */
.lb-plot-ep:hover {
  box-shadow: inset 0 0 0 1px var(--accent);
}

.lb-plot-ep.lb-active:hover {
  color: #fff;
  box-shadow: none;
}

.lb-plot-ep.lb-active:hover::before {
  color: rgba(255, 255, 255, 0.75);
}

.lb-plot-ep.lb-active {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.lb-plot-ep.lb-active::before {
  color: rgba(255, 255, 255, 0.75);
}

.lb-plot-empty {
  margin: 0;
  padding: 40px 20px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

.lb-plot-empty a {
  color: var(--accent-tab);
}

@media (max-width: 767px) {
  .lb-plot-hero {
    gap: 14px;
    padding: 16px;
  }

  .lb-plot-hero::after {
    right: 10px;
    bottom: -10px;
    font-size: 56px;
  }

  .lb-plot-hero-thumb {
    width: 72px;
  }

  .lb-plot-hero-title {
    font-size: 17px;
    line-height: 24px;
  }

  .lb-plot-article-name {
    font-size: 20px;
  }

  .lb-plot-article-body {
    font-size: 14px;
  }

  .lb-plot-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .lb-plot-nav-item--next {
    padding: 12px 0 0;
    border-top: 1px solid var(--border);
    border-left: none;
    text-align: left;
  }

  .lb-plot-eps-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .lb-plot-ep {
    font-size: 13px;
  }
}
