.detail-main { padding-block: 1.45rem 3.6rem; }
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
  font-size: .93rem;
  color: var(--muted);
  margin-bottom: 1.55rem;
}
.breadcrumbs a:hover, .directory-list a:hover { text-decoration: underline; text-underline-offset: .14rem; }
.breadcrumbs a { color: #065cbd; font-weight: 640; }
.breadcrumbs [aria-hidden] { color: #7892ac; }
.content-meta {
  display: flex;
  align-items: center;
  gap: .62rem 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .9rem;
}
.content-meta time { font-variant-numeric: tabular-nums; }
.content-badge {
  background: #e2efff;
  color: #174f8d;
  display: inline-flex;
  align-items: center;
  gap: .36rem;
  border-radius: .45rem;
  padding: .32rem .58rem;
  font-size: .86rem;
  font-weight: 690;
}
.content-badge.is-live { color: #a31a36; background: #ffecf0; }
.detail-main h1 {
  margin: .8rem 0 1.4rem;
  font-size: clamp(1.85rem, 4.25vw, 3.15rem);
  font-weight: 760;
  line-height: 1.09;
  letter-spacing: -.044em;
  max-width: 70rem;
  overflow-wrap: anywhere;
}
.detail-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: start;
  gap: 1.25rem;
}
.detail-player {
  display: block;
  width: 100%;
  height: auto;
  min-height: 200px;
  aspect-ratio: 16/9;
  border: 0;
  border-radius: .95rem;
  background: #0e2339;
  box-shadow: 0 5px 14px #18354d14;
}
.local-player-note {
  color: var(--muted);
  font-size: .88rem;
  margin: .55rem 0 0;
}
.detail-thumbnail {
  display: grid;
  position: relative;
  aspect-ratio: 16/9;
  align-items: center;
  overflow: hidden;
  width: 100%;
  color: #fff;
  background: #0e2339;
  border: 1px solid #1f3f5e;
  border-radius: .95rem;
  box-shadow: 0 5px 14px #18354d14;
}
.detail-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.detail-thumbnail:hover img { filter: brightness(.9); }
.detail-play {
  display: grid;
  place-items: center;
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #10243aeb;
  border: 1px solid #f4faffc9;
  color: #fff;
  box-shadow: 0 5px 16px #0c203975;
  width: clamp(2.9rem, 8vw, 4.15rem);
  aspect-ratio: 1;
}
.detail-thumbnail:hover .detail-play { background: #0065d8; }
.summary-panel, .chapter-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .95rem;
  box-shadow: 0 3px 12px #1a3d610d;
  padding: clamp(1rem, 2.8vw, 1.65rem);
}
.detail-main h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.67rem);
  font-weight: 725;
  letter-spacing: -.032em;
  line-height: 1.2;
}
.summary-panel p, .chapter-panel p, .directory-main > p {
  margin: .65rem 0 0;
  color: #39526b;
}
.summary-panel .summary-note { color: var(--muted); }
.summary-topics { margin: .55rem 0 0; padding-left: 1.15rem; }
.summary-topics li + li { margin-top: .25rem; }
.detail-button {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-radius: .58rem;
  padding: .63rem .92rem;
  margin-top: 1.15rem;
  background: #ff0033;
  color: #fff;
  font-size: 1.1875rem;
  font-weight: 700;
}
.detail-button:hover { background: #da002b; }
.summary-panel .chapter-selection {
  color: #4a6077;
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
}
.chapter-panel { margin-top: 1.35rem; }
.chapter-total {
  vertical-align: .11em;
  display: inline-block;
  margin-left: .26rem;
  padding: .17rem .47rem;
  border-radius: .45rem;
  color: #376284;
  background: #eaf2fa;
  font-size: .8rem;
  font-weight: 680;
  letter-spacing: normal;
}
.chapter-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem .75rem;
  padding: 0;
  margin: .9rem 0 0;
}
.chapter-row {
  display: grid;
  grid-template-columns: 4.55rem minmax(0, 1fr) auto;
  align-items: center;
  min-height: 3.15rem;
  gap: .5rem;
  padding: .63rem .73rem;
  border-radius: .56rem;
  border: 1px solid #deebf6;
  background: #f1f6fc;
  height: 100%;
  font-size: .95rem;
}
.chapter-label { color: var(--ink); overflow-wrap: anywhere; }
.chapter-row svg { color: #155c9e; }
.chapter-row:hover { background: #e1efff; border-color: #bad8f4; }
.chapter-row[aria-current="true"] { background: #dcecff; border-color: #579ae0; }
.directory-main h1 { margin-bottom: .65rem; }
.directory-nav { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0 1.6rem; }
.directory-nav a {
  border-radius: .5rem;
  padding: .42rem .65rem;
  color: #055cba;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 650;
}
.directory-nav a:hover { background: #e1efff; }
.directory-section { margin: 1.6rem 0; }
.directory-list {
  padding-inline-start: 1.2rem;
  columns: 3 17rem;
  column-gap: 1.6rem;
  font-size: .94rem;
  color: #1e507d;
}
.directory-list li { break-inside: avoid; margin-bottom: .52rem; overflow-wrap: anywhere; }

@media (max-width: 51rem) {
  .detail-overview, .chapter-list { grid-template-columns: 1fr; }
}
@media (max-width: 33rem) {
  .detail-main { padding-block-start: 1rem; }
  .breadcrumbs { margin-bottom: 1.15rem; }
  .detail-main h1 { margin-bottom: 1.05rem; }
  .detail-overview { gap: .85rem; }
  .chapter-panel { margin-top: .9rem; }
  .chapter-row { grid-template-columns: 3.35rem minmax(0, 1fr) auto; gap: .38rem; padding-inline: .5rem; }
}
