/**
 * 内容页（show）专用：详情头图、信息行、选集、正文、相关区
 * 依赖 st48-shoutu48.css（顶栏、卡片、页脚）
 */

.st48-detail {
  margin-bottom: 2rem;
}

.st48-detail__crumb {
  font-size: 0.8125rem;
  color: var(--st48-muted, #5c5c56);
  margin-bottom: 1rem;
}

.st48-detail__crumb a {
  color: var(--st48-accent, #e85d04);
  text-decoration: none;
}

.st48-detail__crumb a:hover {
  text-decoration: underline;
}

.st48-detail__crumb-sep {
  margin: 0 0.35rem;
  opacity: 0.45;
}

.st48-detail__hero {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 1.25rem 1.75rem;
  align-items: start;
  padding: 1.15rem 1.1rem;
  margin-bottom: 1.25rem;
  border-radius: var(--st48-radius, 12px);
  background: var(--st48-surface, #fff);
  border: 1px solid var(--st48-border, rgba(26, 26, 26, 0.08));
  box-shadow: var(--st48-shadow, 0 8px 30px rgba(0, 0, 0, 0.06));
}

.st48-detail__col-media {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.st48-detail__poster {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #e8e8e4;
  aspect-ratio: 2 / 3;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.st48-detail__poster a {
  display: block;
  height: 100%;
  line-height: 0;
}

.st48-detail__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.st48-detail__main {
  min-width: 0;
}

.st48-detail__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.2rem, 3.5vw, 1.65rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.st48-detail__tip {
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--st48-muted, #5c5c56);
  background: var(--st48-bg, #f4f4f1);
  border-radius: 8px;
  border: 1px solid var(--st48-border, rgba(26, 26, 26, 0.08));
}

.st48-detail__tip b {
  color: var(--st48-text, #1a1a1a);
  font-weight: 700;
}

.st48-drows {
  margin: 0 0 1rem;
}

.st48-drow {
  margin: 0.28rem 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--st48-text, #1a1a1a);
}

.st48-drow .st48-dk {
  display: inline-block;
  min-width: 3.2rem;
  margin-right: 0.35rem;
  color: var(--st48-muted, #5c5c56);
  font-weight: 600;
}

.st48-douban-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none !important;
  background: linear-gradient(135deg, #22c55e, #15803d);
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35);
  vertical-align: middle;
}

.st48-douban-chip:hover {
  filter: brightness(1.06);
  color: #fff !important;
}

.st48-douban-chip-ico {
  flex-shrink: 0;
  opacity: 0.95;
}

.st48-douban-empty {
  color: #8a8a84;
  font-size: 0.875rem;
}

.st48-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin-top: 0.85rem;
}

.st48-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0 1.15rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s;
}

.st48-btn:active {
  transform: scale(0.98);
}

.st48-btn--play {
  width: 100%;
  color: #111 !important;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  box-shadow: 0 4px 18px rgba(234, 88, 12, 0.4);
}

.st48-btn--play:hover {
  filter: brightness(1.05);
  color: #111 !important;
}

.st48-btn--ghost {
  color: var(--st48-text, #1a1a1a) !important;
  background: var(--st48-bg, #f4f4f1);
  border: 1px solid var(--st48-border, rgba(26, 26, 26, 0.12));
  font-weight: 600;
  min-height: 2.35rem;
  padding: 0 0.85rem;
  font-size: 0.8125rem;
}

.st48-btn--ghost:hover {
  border-color: rgba(232, 93, 4, 0.35);
  color: var(--st48-accent, #c2410c) !important;
}

@media (min-width: 560px) {
  .st48-btn--play {
    width: auto;
    min-width: 11rem;
  }
}

@media (max-width: 640px) {
  .st48-detail__hero {
    grid-template-columns: 1fr;
    padding: 1rem 0.9rem;
  }

  .st48-detail__poster {
    max-width: 220px;
    margin: 0 auto;
  }
}

/* 选集块（类名与旧 show 模板一致，便于脚本切换线路） */
.st48 .nj-playblock {
  margin: 0 0 1.35rem;
}

.st48 .nj-playblock__card {
  border-radius: 12px;
  border: 1px solid var(--st48-border, rgba(26, 26, 26, 0.1));
  background: var(--st48-surface, #fff);
  box-shadow: var(--st48-shadow, 0 8px 30px rgba(0, 0, 0, 0.06));
  overflow: hidden;
}

.st48 .nj-playblock__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  padding: 0.65rem 1rem;
  background: linear-gradient(180deg, #fafaf8, #fff);
  border-bottom: 1px solid var(--st48-border, rgba(26, 26, 26, 0.08));
}

.st48 .nj-playblock__segwrap {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  margin: 0 -0.2rem;
}

.st48 .nj-playblock__seg {
  appearance: none;
  flex: 0 0 auto;
  margin: 0 0.2rem;
  padding: 0.5rem 0.8rem;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #6b6b64;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}

.st48 .nj-playblock__seg:hover {
  color: #c2410c;
}

.st48 .nj-playblock__seg.is-active {
  color: #9a3412;
  border-bottom-color: #ea580c;
}

.st48 .nj-playblock__single {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
  min-width: 0;
}

.st48 .nj-playblock__eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #8a8a84;
}

.st48 .nj-playblock__line {
  font-size: 0.9rem;
  font-weight: 800;
}

.st48 .nj-playblock__pill {
  flex-shrink: 0;
  padding: 0.22rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #c2410c;
  background: rgba(234, 88, 12, 0.1);
  border: 1px solid rgba(234, 88, 12, 0.25);
  border-radius: 999px;
}

.st48 .nj-playblock__panel {
  padding: 0.95rem 1rem 1.05rem;
  background: #fff;
}

/* 多线路纵向平铺：每条线路一块，与参考页一致（不再用 Tab 隐藏） */
.st48 .nj-playblock--stack .nj-playblock__row {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--st48-border, rgba(26, 26, 26, 0.08));
  background: #fff;
}

.st48 .nj-playblock--stack .nj-playblock__row:nth-child(even) {
  background: rgba(248, 248, 246, 0.92);
}

.st48 .nj-playblock--stack .nj-playblock__row:last-child {
  border-bottom: 0;
}

.st48 .nj-playblock--stack .nj-playblock__row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.st48 .nj-playblock--stack .nj-playblock__row-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--st48-text, #1a1a1a);
}

.st48 .nj-playblock__deckhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(26, 26, 26, 0.06);
}

.st48 .nj-playblock__deck-title {
  font-size: 0.8125rem;
  font-weight: 800;
}

.st48 .nj-playblock__deck-meta {
  font-size: 0.75rem;
  font-weight: 600;
  color: #8a8a84;
}

.st48 .nj-playblock__deck {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.st48 .nj-playblock__ep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.4rem;
  padding: 0.38rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #2d2d28 !important;
  text-decoration: none !important;
  border-radius: 8px;
  border: 1px solid var(--st48-border, rgba(26, 26, 26, 0.1));
  background: #fafaf8;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.st48 .nj-playblock__ep:hover {
  border-color: rgba(234, 88, 12, 0.45);
  background: #fff7ed;
  color: #9a3412 !important;
  transform: translateY(-1px);
}

/* 正文 */
.st48-panel {
  margin-bottom: 1.75rem;
  padding: 1rem 1.05rem;
  border-radius: var(--st48-radius, 12px);
  background: var(--st48-surface, #fff);
  border: 1px solid var(--st48-border, rgba(26, 26, 26, 0.08));
  box-shadow: var(--st48-shadow, 0 8px 30px rgba(0, 0, 0, 0.06));
}

.st48-panel__h {
  margin: 0 0 0.85rem;
  padding-bottom: 0.55rem;
  font-size: 1.05rem;
  font-weight: 800;
  border-bottom: 1px solid var(--st48-border, rgba(26, 26, 26, 0.08));
}

.ecms-newstext {
  max-width: 100%;
  overflow-x: auto;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #2d2d28;
}

.ecms-newstext img,
.ecms-newstext video,
.ecms-newstext iframe {
  max-width: 100% !important;
  height: auto !important;
}

.ecms-newstext p {
  margin: 0 0 1em;
}

.st48-related .st48-grid {
  margin-top: 0.25rem;
}
