.video-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px) clamp(18px, 4vw, 44px) 64px;
  color: var(--necm-ink, #271b31);
}
.video-wrap a { color: #501d73; }
.video-wrap .video-back { display: inline-block; margin-bottom: 1.25rem; font-weight: 700; }
.video-wrap .kicker, .video-code {
  color: #714b10; font-size: .8rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
}
.video-wrap h1, .video-wrap h2, .video-shelf h2 {
  font-family: Georgia, 'Times New Roman', serif; color: #351647; line-height: 1.12;
}
.video-wrap h1 { font-size: clamp(2.15rem, 5vw, 3.8rem); margin: .3rem 0 .85rem; }
.video-wrap h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 .55rem; }
.video-intro { max-width: 84ch; margin: .5rem 0 1.25rem; line-height: 1.62; }
.video-shelf { list-style: none; padding: 0; margin: 1.7rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.2rem; }
.video-shelf li { min-width: 0; }
.video-shelf a {
  display: flex; flex-direction: column; height: 100%; box-sizing: border-box;
  background: #fffdf8; border: 1px solid #dbcede; border-radius: 12px; overflow: hidden;
  text-decoration: none; color: #312536; box-shadow: 0 5px 18px #3212380e;
}
.video-shelf a:hover, .video-shelf a:focus-visible { border-color: #79538c; }
.video-shelf img { display: block; width: 100%; aspect-ratio: 16/9; height: auto; object-fit: cover; background: #261e29; }
.video-shelf .video-card-body { padding: 1rem 1.15rem 1.2rem; }
.video-shelf h2 { margin: .26rem 0 .5rem; font-size: 1.55rem; }
.video-shelf p { margin: 0; font-size: .99rem; line-height: 1.48; }
.video-shelf .book-count { display: inline-block; margin-top: .7rem; color: #60426e; font-weight: 700; font-size: .85rem; }
.video-stage { margin: 0 auto; max-width: 960px; }
.video-stage video {
  display: block; width: 100%; aspect-ratio: 16/9; background: #171217;
  border-radius: 10px; box-shadow: 0 10px 28px #35174725;
}
.video-book-mode, .video-detail-links { display: flex; align-items: center; gap: .75rem 1.25rem; flex-wrap: wrap; margin: .9rem 0 1.2rem; }
.video-book-mode button { font: inherit; color: #4b2160; background: #faf5fc; padding: .45rem .88rem; border-radius: .45rem; border: 1px solid #bda7c7; cursor: pointer; }
.video-detail-links { margin: 1.6rem 0 0; font-weight: 700; }
.video-book-section { margin-top: 1.25rem; }
.video-book-section p { line-height: 1.55; margin: .3rem 0 .85rem; }
.video-book-section details { margin: .65rem 0; background: #fffdf8; border: 1px solid #d8ccdf; border-radius: .6rem; }
.video-book-section summary { min-height: 44px; padding: .72rem 1rem; color: #3d1a50; cursor: pointer; font-weight: 750; }
.video-reader { display: block; box-sizing: border-box; width: 100%; height: 76vh; min-height: 420px; border: 1px solid #cdbfd4; border-radius: .45rem; background: #eee9e3; }
.video-reader-links { display: flex; flex-wrap: wrap; gap: .45rem 1.2rem; margin: .55rem 0 .8rem; }
.video-book-section details .video-reader-links { margin-inline: 1rem; }
.video-reading.is-pinned .video-stage { position: sticky; top: 0; z-index: 12; background: #221b24; max-width: none; }
.video-reading.is-pinned .video-stage video { max-height: min(27vh, 224px); box-shadow: none; border-radius: 0; object-fit: contain; }
.video-reading.is-pinned .video-book-section { scroll-margin-top: min(29vh, 245px); }
.video-reading.is-pinned .video-reader { height: 62vh; }
@media(max-width:600px){
  .video-wrap { padding-inline: 16px; }
  .video-reader { min-height: 300px; height: 68vh; }
  .video-reading.is-pinned .video-stage video { max-height: 23vh; }
  .video-reading.is-pinned .video-reader { height: 60vh; }
}
