.chapter-video-watch { margin: .5rem 0 1rem; }
.video-review-label { font-size: .9rem; color: var(--teal); margin: .5rem 0; }
.chapter-video { max-width: 72rem; container-type: inline-size; }
.chapter-video video { display: block; width: 100%; aspect-ratio: 16/9; object-fit: contain; max-height: 75vh; background: #101f22; border-radius: .6rem; margin: 1rem 0; }
.video-controls { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; margin-bottom: 1rem; }
.video-controls select { min-height: 44px; padding: .35rem .7rem; border-radius: .3rem; font: inherit; color: inherit; background: white; }
.video-now { flex: 1 1 16rem; margin: 0; }
.video-actions { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; }
.video-actions button { min-height: 44px; max-width: 100%; white-space: normal; }
.video-chapters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1.4rem; margin-top: 1.7rem; }
.video-chapters h2 { font-size: 1.1rem; }
.video-chapters ol { list-style: none; padding: 0; margin: 0; }
.video-chapters button { min-height: 44px; text-align: left; line-height: 1.5; padding: .35rem .5rem; }
.video-chapters [aria-current] { font-weight: 750; border-left: 3px solid currentColor; background: #eef4f2; }
.video-transcript, .video-recap-details { margin: 1.2rem 0; }
.video-transcript summary, .video-recap-details summary { cursor: pointer; min-height: 44px; padding: .5rem 0; }
.video-transcript pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.75; }
.video-recap-reminder { font-size: 1.12rem; line-height: 1.6; max-width: 58rem; }
.chapter-video :focus-visible, .video-recap-details :focus-visible { outline: 3px solid #246e83; outline-offset: 3px; }
@media (max-width: 520px) { .chapter-video video { border-radius: .2rem; } .video-controls { align-items: flex-start; } }
/* Keep native captions and controls below the full diagram on narrow screens. */
@media (max-width: 640px) { .chapter-video video { aspect-ratio: auto; height: calc(56.25cqw + 112px); max-height: none; object-position: center top; } }
.chapter-video video:fullscreen { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-position: center; }
.chapter-video video:-webkit-full-screen { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-position: center; }

/* One accessible chapter timeline across verified continuous media parts. */
.video-multipart-player { min-width: 0; }
.video-global-seek { display: flex; align-items: center; gap: .8rem; margin-bottom: .75rem; }
.video-global-seek input { flex: 1 1 auto; width: 100%; min-width: 0; min-height: 44px; accent-color: #237e7e; }
.video-global-time { flex: 0 0 auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.video-multipart-controls label { display: flex; gap: .5rem; align-items: center; }
.video-multipart-controls button { min-height: 44px; }
.video-multipart-player:fullscreen { overflow: auto; background: #f7f7ee; padding: 1rem; color: #193e44; }
.video-multipart-player:fullscreen video { max-height: calc(100vh - 14rem); width: 100%; height: auto; }
@media (max-width: 520px) { .video-global-seek { flex-wrap: wrap; gap: .15rem; } .video-global-time { width: 100%; text-align: right; } }
