.videolab-page { --vl-paper: #f3f0e8; --vl-ink: #17212b; --vl-rule: #cbc6ba; --vl-blue: #24567a; --vl-nav-height: 65px; background: var(--vl-paper); color: var(--vl-ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; line-height: 1.6; }
.videolab-page * { box-sizing: border-box; }
.videolab-page .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.videolab-page .site-nav ~ main::before, .videolab-page .site-nav ~ main::after { display: none; }
.videolab-page button { font: inherit; cursor: pointer; border: 1px solid var(--vl-rule); border-radius: .35rem; color: var(--vl-ink); background: #fbfaf6; padding: .5rem .8rem; min-height: 42px; }
.videolab-page button:hover:not(:disabled), .videolab-page button[aria-pressed="true"] { border-color: var(--vl-blue); background: var(--vl-blue); color: #fff; }
.videolab-page button:disabled { opacity: .45; cursor: default; }
.videolab-page :focus-visible { outline: 3px solid #6ab0ff; outline-offset: 3px; }
.videolab { height: calc(100dvh - var(--vl-nav-height)); min-height: 480px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-width: 1500px; margin: auto; }
.videolab:fullscreen { height: 100dvh; max-width: none; width: 100%; background: var(--vl-paper); }
.videolab-toolbar { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: .8rem 1.4rem; border-bottom: 1px solid var(--vl-rule); }
.videolab-heading h1 { font-family: ui-serif, Georgia, serif; color: var(--vl-ink); font-size: 1.8rem; margin: 0; line-height: 1.1; }
.videolab-heading p { font-size: .8rem; margin: .25rem 0 0; color: #67727b; }
.videolab-tools { display: flex; flex-wrap: wrap; gap: .4rem; }
.videolab-tools button { font-size: .85rem; }
.videolab-feed { overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior-y: contain; scrollbar-width: thin; min-height: 0; background: #0a0a14; }
.videolab-slide { height: 100%; min-height: 0; scroll-snap-align: start; scroll-snap-stop: always; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 28%); color: #e8edf3; }
.videolab-stage { min-height: 0; min-width: 0; position: relative; display: grid; place-items: center; overflow: hidden; background: #0a0a14; }
.videolab-poster, .videolab-stage video { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; }
.videolab-stage video { z-index: 1; }
.videolab-stage video:not(.is-visible) { opacity: 0; pointer-events: none; }
.videolab-stage.is-listening .videolab-poster { padding: 1.5rem; }
.videolab-listening-label { z-index: 2; align-self: end; margin: 1rem; padding: .3rem .8rem; background: #17212b; border-radius: .3rem; }
.videolab-copy { padding: clamp(1rem, 2.5vw, 2.3rem); overflow-y: auto; align-content: center; border-left: 1px solid #243445; }
.videolab-copy h2 { font-family: ui-serif, Georgia, serif; font-size: clamp(1.25rem, 2.1vw, 2rem); line-height: 1.15; margin: .8rem 0; color: #fff; overflow-wrap: anywhere; }
.videolab-copy p { font-size: .9rem; color: #b8c5d6; margin: .7rem 0; }
.videolab-copy a { color: #8ec5ff; text-decoration: underline; }
.videolab-copy .videolab-kicker { color: #8ec5ff; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.videolab-copy .videolab-attribution { font-size: .75rem; }
.videolab-copy .videolab-project { font-size: .85rem; background: transparent; color: #e8edf3; border-color: #6a7a8a; text-align: left; }
.videolab-controls { padding: .65rem 1.4rem max(.6rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--vl-rule); }
.videolab-timeline { display: flex; align-items: center; gap: .8rem; font-size: .75rem; font-variant-numeric: tabular-nums; }
.videolab-timeline label { flex: 1; display: flex; }
.videolab-timeline input { width: 100%; accent-color: var(--vl-blue); min-height: 24px; }
.videolab-transport { display: flex; align-items: center; justify-content: center; gap: .4rem; flex-wrap: wrap; margin: .25rem 0; }
.videolab-transport button { font-size: .8rem; }
.videolab-transport .videolab-play { background: var(--vl-blue); color: #fff; min-width: 85px; }
.videolab-status { margin: .4rem 0 0; font-size: .75rem; color: #67727b; text-align: center; }
.videolab-listen-note { color: #67727b; font-size: .75rem; margin: .3rem auto 0; max-width: 750px; text-align: center; }
.videolab-empty { display: grid; align-content: center; justify-items: center; height: 100%; padding: 2rem; text-align: center; }
.videolab-empty h2 { color: #fff; font-family: ui-serif, Georgia, serif; }
.videolab-empty p { color: #b8c5d6; }
.videolab-albums { width: min(1000px, 94vw); max-height: 88dvh; margin: auto; padding: 1.5rem; border: 1px solid var(--vl-rule); background: var(--vl-paper); color: var(--vl-ink); border-radius: .6rem; }
.videolab-albums::backdrop { background: rgba(10,10,20,.8); }
.videolab-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.videolab-dialog-heading h2 { color: var(--vl-ink); font-family: ui-serif, Georgia, serif; margin: 0; }
.videolab-album-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.videolab-album-card { min-width: 0; padding: .7rem; border: 1px solid var(--vl-rule); background: #fbfaf6; }
.videolab-album-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #0a0a14; }
.videolab-album-card h3, .videolab-album-detail h3 { font-family: ui-serif, Georgia, serif; color: var(--vl-ink); margin: .6rem 0; }
.videolab-album-card p, .videolab-album-detail p { font-size: .85rem; color: #67727b; }
.videolab-album-detail a { color: var(--vl-blue); text-decoration: underline; }
.videolab-clip-list { list-style: none; padding: 0; }
.videolab-clip-list li { margin: .5rem 0; }
.videolab-clip-list button { width: 100%; text-align: left; }
.videolab-page [hidden] { display: none !important; }
@media (max-width: 700px) {
  .videolab-toolbar { padding: .6rem .75rem; gap: .5rem; align-items: flex-start; }
  .videolab-heading h1 { font-size: 1.5rem; }
  .videolab-heading p { max-width: 130px; font-size: .7rem; }
  .videolab-tools { max-width: 245px; justify-content: flex-end; gap: .3rem; }
  .videolab-tools button { padding: .3rem .5rem; min-height: 36px; font-size: .75rem; }
  .videolab-slide { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .videolab-copy { padding: .6rem .9rem; border-left: 0; border-top: 1px solid #243445; max-height: 155px; }
  .videolab-copy h2 { font-size: 1.2rem; margin: .25rem 0; }
  .videolab-copy p { font-size: .75rem; margin: .25rem 0; }
  .videolab-copy .videolab-kicker { font-size: .65rem; }
  .videolab-copy .videolab-project { min-height: 30px; padding: .2rem .5rem; font-size: .7rem; }
  .videolab-controls { padding: .3rem .75rem max(.4rem, env(safe-area-inset-bottom)); }
  .videolab-transport { gap: .25rem; }
  .videolab-transport button { padding: .25rem .45rem; min-height: 38px; font-size: .7rem; }
  .videolab-transport .videolab-play { min-width: 62px; }
  .videolab-status { font-size: .7rem; }
}
@media (max-height: 550px) and (orientation: landscape) {
  .videolab { min-height: 0; }
  .videolab-slide { grid-template-columns: minmax(0, 1fr) 30%; grid-template-rows: 1fr; }
  .videolab-copy { max-height: none; }
  .videolab-toolbar { padding-block: .3rem; }
}
@media (prefers-reduced-motion: reduce) { .videolab-feed { scroll-behavior: auto; } }
