/* VIDEO-HUB-2: /video/ and every /watch/ page. Built with scripts/build-video-hub.js; hand-edited, not generated. */
body.vh { margin:0; background:var(--bg); color:var(--text); font-family:var(--font-sans); font-size:var(--fs-body); line-height:1.5; }
.vh-main, .wp { box-sizing:border-box; max-width:var(--content-w); margin:0 auto; padding:calc(var(--nav-h) + 24px) var(--gutter) 56px; }
.vh-h1 { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.vh a:focus-visible, .vh button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
[hidden] { display:none !important; }

/* tabs: language, then subject */
.vh-bar { display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; margin:0 0 16px; }
.vh-tabs, .vh-subs { display:flex; gap:6px; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; max-width:100%; }
.vh-tabs::-webkit-scrollbar, .vh-subs::-webkit-scrollbar { display:none; }
.vh-tabs button, .vh-subs button { flex:none; min-height:40px; padding:0 14px; border:1px solid var(--border); border-radius:20px; background:var(--surface); color:var(--text-2); font:600 var(--fs-small)/1 var(--font-sans); cursor:pointer; }
.vh-tabs button[aria-pressed="true"] { background:var(--ink); border-color:var(--ink); color:var(--bg); }
.vh-subs button[aria-pressed="true"] { background:var(--accent-text); border-color:var(--accent-text); color:#fff; }

/* the lead reel: a poster until it is tapped */
.vh-top { margin:0 0 28px; }
.vh-lead { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; }
.vh-pv { position:relative; width:100%; max-width:360px; margin:0 auto; aspect-ratio:9/16; max-height:72vh; max-height:72svh; background:#000; border-radius:var(--r-card); overflow:hidden; }
.vh-pv.vh-wide { max-width:none; max-height:none; aspect-ratio:16/9; }
.vh-play { position:absolute; inset:0; display:block; width:100%; height:100%; padding:0; border:0; background:#000; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.vh-play img, .vh-pv video { display:block; width:100%; height:100%; object-fit:cover; background:#000; }
.vh-pv video { object-fit:contain; }   /* contain: cover would cut the burned-in captions */
.vh-nopic { display:block; width:100%; height:100%; background:linear-gradient(160deg,#1b1f27,#0b0d11); }
.vh-ico { position:absolute; left:50%; top:50%; width:64px; height:64px; margin:-32px 0 0 -32px; border-radius:50%; background:rgba(0,0,0,.62); border:2px solid rgba(255,255,255,.9); }
.vh-ico::after { content:''; position:absolute; left:25px; top:19px; border-style:solid; border-width:12px 0 12px 20px; border-color:transparent transparent transparent #fff; }
.vh-play:hover .vh-ico { background:var(--accent); border-color:#fff; }
.vh-len { position:absolute; right:8px; bottom:8px; padding:2px 7px; border-radius:4px; background:rgba(0,0,0,.72); color:#fff; font:600 12px/1.4 var(--font-sans); font-variant-numeric:tabular-nums; }
.vh-pv.vh-playing .vh-play { display:none; }

/* the end of a video */
.vh-end { position:absolute; inset:0; z-index:2; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; padding:18px; text-align:center; background:rgba(5,7,10,.9); color:#f4f6f8; }
.vh-end p { margin:0; font-weight:700; font-size:1.05rem; }
.vh-end .vh-btn { width:min(100%,260px); }
.vh-end-next, .vh-end-again { min-height:44px; padding:0 18px; border:1px solid rgba(255,255,255,.4); border-radius:22px; background:transparent; color:#fff; font:600 var(--fs-small)/1 var(--font-sans); cursor:pointer; }

.vh-kicker { margin:0 0 6px; color:var(--text-2); font-size:var(--fs-small); font-variant-numeric:tabular-nums; text-transform:uppercase; letter-spacing:.06em; font-weight:700; }
.vh-lead-title { margin:0 0 8px; font:700 clamp(1.4rem,1.1rem + 1.4vw,2rem)/1.2 var(--font-sans); color:var(--ink); text-wrap:balance; letter-spacing:-.01em; }
.vh-lead-snip { margin:0 0 10px; color:var(--text-2); max-width:var(--measure); }
.vh-link { color:var(--accent-text); font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.vh-actions { display:flex; flex-wrap:wrap; gap:10px; margin:14px 0 0; }
.vh-btn { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:0 18px; border-radius:22px; font:700 var(--fs-small)/1 var(--font-sans); text-decoration:none; border:1px solid transparent; }
.vh-btn-yt { background:var(--accent); color:#fff; }
.vh-btn-brief { background:var(--surface); color:var(--ink); border-color:var(--ink); }
.vh-end .vh-btn-brief { background:#fff; color:#111318; }

/* sections and the swipe row */
.vh-sec { margin:0 0 32px; }
.vh-sec h2 { margin:0 0 12px; font:700 1.25rem/1.3 var(--font-sans); color:var(--ink); }
.vh-sec-d { color:var(--text-2); font-weight:600; font-size:var(--fs-small); margin-left:6px; }
.vh-row { display:flex; gap:12px; margin:0 calc(var(--gutter) * -1); padding:2px var(--gutter) 10px; list-style:none; overflow-x:auto; scroll-snap-type:x proximity; scroll-padding-left:var(--gutter); scrollbar-width:thin; -webkit-overflow-scrolling:touch; }
.vh-row > li { flex:none; width:136px; scroll-snap-align:start; }
.vh-card-a, .vh-film a { display:block; color:inherit; text-decoration:none; }
.vh-card img, .vh-film img, .vh-card .vh-nopic, .vh-film .vh-nopic { display:block; width:100%; height:auto; aspect-ratio:9/16; object-fit:cover; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-card); }
.vh-card-t { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; margin:8px 0 2px; font:600 var(--fs-small)/1.3 var(--font-sans); color:var(--ink); }
.vh-card-m { display:block; font-size:12px; color:var(--text-2); font-variant-numeric:tabular-nums; }
.vh-card-a:hover .vh-card-t, .vh-film a:hover .vh-card-t { text-decoration:underline; }
.vh-film-none .vh-nopic { opacity:.6; }
.vh-grid { display:flex; gap:12px; margin:0; padding:0 0 4px; list-style:none; overflow-x:auto; scroll-snap-type:x proximity; }
.vh-grid > li { flex:none; width:120px; scroll-snap-align:start; }
.vh-day h3 { margin:14px 0 8px; font:700 var(--fs-small)/1.3 var(--font-sans); color:var(--text-2); text-transform:uppercase; letter-spacing:.06em; }
.vh-ep a { display:flex; flex-direction:column; gap:10px; color:inherit; text-decoration:none; max-width:480px; }
.vh-ep img, .vh-ep .vh-nopic { width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; border:1px solid var(--border); border-radius:var(--r-card); background:var(--surface); }
.vh-ep-t strong { display:block; color:var(--ink); font-size:1.05rem; line-height:1.3; }
.vh-ep-s { display:block; color:var(--text-2); font-size:var(--fs-small); margin-top:4px; }
.vh-ep a:hover strong { text-decoration:underline; }
.vh-empty { color:var(--text-2); }
.vh-cta { padding:22px var(--gutter); border:1px solid var(--border); border-radius:var(--r-card); background:var(--surface); }
.vh-cta p { margin:0; color:var(--text-2); max-width:var(--measure); }
.vh-all { margin:14px 0 0; }

/* one video's page */
.wp-crumbs { margin:0 0 14px; font-size:var(--fs-small); color:var(--text-2); }
.wp-crumbs a { color:var(--text-2); }
.wp-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:20px; }
.wp h1 { margin:0 0 14px; font:700 clamp(1.5rem,1.2rem + 1.4vw,2.2rem)/1.2 var(--font-sans); color:var(--ink); letter-spacing:-.01em; text-wrap:balance; }
.wp-meta { display:flex; flex-wrap:wrap; gap:4px 12px; margin:0 0 8px; font-size:var(--fs-small); color:var(--text-2); font-variant-numeric:tabular-nums; }
.wp-meta span:first-child { font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--accent-text); }
.wp-text p { max-width:var(--measure); margin:0 0 12px; }
.wp-text h2, .wp-more-videos h2 { margin:18px 0 8px; font:700 1.1rem/1.3 var(--font-sans); color:var(--ink); }
.wp-src { color:var(--text-2); }
.wp-chapters { margin:0 0 12px; padding-left:0; list-style:none; }
.wp-chapters li { padding:6px 0; border-bottom:1px solid var(--border); }
.wp-chapters a { color:var(--ink); text-decoration:none; } .wp-chapters a:hover { text-decoration:underline; }
.wp-t { display:inline-block; min-width:3.2em; color:var(--text-2); font-variant-numeric:tabular-nums; }
.wp-s { color:var(--text-2); }
.wp-pre { white-space:pre-wrap; font:inherit; }
.wp-more-videos { margin-top:28px; }
.wp-more-videos ul, .wa ul { margin:0; padding-left:18px; }
.wp-more-videos li, .wa li { margin:4px 0; }
.wa h2 { margin:24px 0 6px; font:700 1.1rem/1.3 var(--font-sans); color:var(--ink); }
.wa-lede { max-width:var(--measure); color:var(--text-2); }
.wa-l { color:var(--text-2); font-size:var(--fs-small); }
.wp-player .vh-pv { max-width:360px; margin:0; }
.wp-player .vh-pv.vh-wide { max-width:none; }

@media (min-width:900px) {
  .vh-main, .wp { padding-top:calc(var(--nav-h) + 36px); }
  .vh-lead { grid-template-columns:360px minmax(0,1fr); gap:32px; align-items:center; }
  .vh-pv { margin:0; }
  .wp-grid { grid-template-columns:360px minmax(0,1fr); gap:36px; align-items:start; }
  .wp-grid:has(.vh-wide) { grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); }
  .vh-row { margin:0; padding-left:0; padding-right:0; scroll-padding-left:0; }
  .vh-row > li { width:160px; }
  .vh-films > li { width:150px; }
}
@media (max-width:420px) { .vh-pv:not(.vh-wide) { width:auto; max-width:100%; height:58vh; height:58svh; max-height:none; aspect-ratio:9/16; } }
@media (prefers-reduced-motion:reduce) { .vh-row, .vh-grid { scroll-behavior:auto; } }
