/* ==========================================================================
   Webinar watch hub (/webinar/watch)
   Intro monitor -> live now / upcoming -> replay library, the access gates,
   the off-air screen and the replay view (/webinar/watch?vod=<id>).
   Markup: templates/webinar-watch.html  Script: static/js/webinar-watch.js
   The intro monitor animates transform and opacity only (one 14 s clock).
   ========================================================================== */
:root {
  --paper: #F5F2ED;
  --paper-deep: #ECE7DF;
  --sheet: #FFFFFF;
  --ink: #1E2A44;
  --ink-2: #3D4860;
  --ink-3: #5B667C;
  --line: #E6E2DA;
  --line-2: #D5CFC4;
  --field: #8C919B;
  --field-hover: #5B6170;
  --blue: #244A8F;
  --blue-hover: #1B3A73;
  --blue-tint: #EEF2F9;
  --onair: #D0312D;
  --soon: #9A4508;          /* "N일 남음": 5.8:1 on cream, 6.6:1 on white */
  --ok: #047857;
  --err: #B91C1C;
  --err-tint: #FDF2F2;
  --screen: #141A26;
  --screen-2: #1C2433;      /* panels on the monitor */
  --screen-3: #2A3446;      /* objects on the monitor */
  --screen-line: #3A4458;   /* rules on the monitor */
  --on-screen-2: #C3CAD6;   /* 10.6:1 on --screen */
  --on-screen-3: #8E98AA;   /* 6.0:1 on --screen, labels only */
  --replay: #A9C1EE;        /* "다시 보기" tally on the monitor, 9.6:1 */
  --r-sm: 4px;
  --r-md: 8px;
  --header: 72px;
  --font: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ================================================================ base */
body.ww {
  margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink-2);
  font-family: var(--font); font-size: 15px; line-height: 1.6;
  word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
}
.ww [hidden] { display: none !important; }
.ww :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.ww [tabindex="-1"]:focus { outline: none; }
.ww input::placeholder { color: #6B7488; opacity: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 18px; border-radius: 6px;
  background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; border: 1px solid var(--line-2);
  text-decoration: none; transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

/* ================================================================ site header (shared markup; page tone only) */
.ww .header-glass { background: #fff; border-bottom: 1px solid var(--line-2); transition: box-shadow .2s ease; }
.ww .header-glass.scrolled { box-shadow: 0 6px 24px -14px rgba(30, 42, 68, .3); }
.ww #header .gnav-link, .ww #header .mbx-dd__btn { font-size: 15px; font-weight: 600; color: var(--ink-3); }
.ww #header .gnav-link:hover, .ww #header .mbx-dd__btn:hover { color: var(--ink); }
.ww #header .mbx-dd__btn.is-current { position: relative; color: var(--ink); font-weight: 700; }
.ww #header .mbx-dd__btn.is-current::after { content: ""; position: absolute; left: 0; right: 16px; bottom: -6px; height: 2px; background: var(--ink); }
.ww #header .mbx-dd__chev { font-size: 10px; }
.gme { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 4px; border: 0; border-radius: 6px; background: none; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.gme:hover { background: var(--paper); }
.gme-ava { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; background: var(--blue-tint); color: var(--blue); font-size: 12.5px; font-weight: 800; }
.gme .fa-chevron-down { font-size: 10px; color: var(--ink-3); }
.gme-login { font-size: 14px; font-weight: 700; color: var(--blue); text-decoration: none; white-space: nowrap; }
.gme-login:hover { text-decoration: underline; text-underline-offset: 3px; }
.user-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 180px; z-index: 60; padding: 6px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 8px;
  box-shadow: 0 18px 32px -22px rgba(30, 42, 68, .55); display: none;
}
.user-menu.open { display: block; }
.user-menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: none;
  border-radius: 4px; font: inherit; font-size: 14px; color: var(--ink-2); text-align: left; text-decoration: none; cursor: pointer;
}
.user-menu-item:hover { background: var(--paper); color: var(--ink); }
.mnav-btn { font: inherit; width: 100%; border: 0; background: none; text-align: left; cursor: pointer; }
@media (min-width: 768px) and (max-width: 1023px) {
  .ww #header nav { gap: 16px; }
  .ww #header .gnav-link, .ww #header .mbx-dd__btn { font-size: 14px; white-space: nowrap; }
}

/* ================================================================ page */
/* 1264 content: at 1440 the right-hand button stack (right 22 + 64) clears the content edge */
.hub { max-width: 1328px; margin: 0 auto; padding: calc(var(--header) + 24px) 32px 128px; }
.hub:focus { outline: none; }
.ww-loading { min-height: 50vh; display: grid; place-items: center; font-size: 14px; color: var(--ink-3); }

/* ================================================================ INTRO MONITOR (signature) */
.mv {
  --art-w: clamp(400px, min(40vw, 64vh), 560px);
  position: relative; display: flex; flex-direction: column;
  background: var(--screen); color: #fff; border-radius: var(--r-md); overflow: hidden;
}
.mv-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 20px 0 28px; border-bottom: 1px solid var(--screen-line); }
.mv-bug { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .22em; color: var(--on-screen-3); white-space: nowrap; }
.mv-status { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.mv-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px;
  border: 1px solid var(--screen-line); border-radius: var(--r-sm);
  font-size: 13px; font-weight: 700; color: var(--on-screen-2); text-decoration: none; white-space: nowrap;
}
.mv-chip b { color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }
a.mv-chip:hover { border-color: #6B768A; color: #fff; }
.mv-chip.is-live { background: var(--onair); border-color: var(--onair); color: #fff; }
a.mv-chip.is-live:hover { background: #B0261F; border-color: #B0261F; }
.mv-chip.is-soon { border-color: var(--replay); color: var(--replay); }
.mv-chip .lamp { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: lamp 1.6s ease-in-out infinite; }
.mv-chip:focus-visible, .mv-toggle:focus-visible, .mv-ch:focus-visible { outline-color: #fff; }
@keyframes lamp { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.mv-body { display: grid; grid-template-columns: minmax(0, 1fr) var(--art-w); align-items: center; gap: 40px; padding: 26px 36px 18px 40px; }
.mv-text { min-width: 0; }
.mv-eyebrow { font-size: 13.5px; font-weight: 700; color: var(--on-screen-2); }
.mv-h1 { margin-top: 10px; font-size: clamp(28px, 1.5rem + 1.2vw, 40px); font-weight: 800; line-height: 1.28; letter-spacing: -.03em; color: #fff; }
.mv-h1:focus { outline: none; }
.mv-h1 .ln { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.mv-h1 .ln > span { display: inline-block; animation: mv-rise .8s cubic-bezier(.16, 1, .3, 1) both; }
.mv-h1 .ln + br + .ln > span { animation-delay: .1s; }
@keyframes mv-rise { from { transform: translateY(105%); } }

/* subtitle track: three captions share one cell; each runs on the 14 s clock */
.mv-subs { display: grid; margin-top: 22px; }
.mv-sub { grid-area: 1 / 1; font-size: 17px; line-height: 1.6; color: var(--on-screen-2); }
.mv-sub .ln { display: block; overflow: hidden; }
.mv-sub .ln > span { display: inline-block; opacity: 0; animation: 14s cubic-bezier(.2, .7, .2, 1) infinite both; }
.mv-sub .ln + .ln > span { animation-delay: .12s; }
.mv-sub[data-ch="0"] .ln > span { animation-name: s-0; }
.mv-sub[data-ch="1"] .ln > span { animation-name: s-1; }
.mv-sub[data-ch="2"] .ln > span { animation-name: s-2; }
.mv-still-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ---------------------------------------------------------------- art (2:1, sized in cqw) */
.mv-art { position: relative; width: var(--art-w); aspect-ratio: 2 / 1; container-type: inline-size; animation: mv-fadein .6s ease-out both; }
@keyframes mv-fadein { from { opacity: 0; } }
.mv-art * { position: absolute; }
.a-wrap { inset: 0; transform-origin: 40% 45%; }
.a-frame { left: 0; top: 2cqw; width: 66cqw; height: 37.125cqw; background: var(--screen-2); border: 1px solid var(--screen-line); border-radius: .9cqw; }
.a-tally { left: 2.2cqw; top: 2.2cqw; height: max(16px, 3.4cqw); display: flex; align-items: center; gap: .9cqw; padding: 0 1.3cqw; border-radius: .4cqw;
  font-size: max(9px, 1.7cqw); font-weight: 800; letter-spacing: .06em; white-space: nowrap; line-height: 1; }
.a-tally > * { position: static; }
.a-live { background: var(--onair); color: #fff; }
.a-live .lamp { width: max(4px, .9cqw); height: max(4px, .9cqw); border-radius: 50%; background: #fff; animation: lamp 1.6s ease-in-out infinite; }
.a-rep { box-shadow: inset 0 0 0 1px var(--replay); color: var(--replay); letter-spacing: 0; opacity: 0; }
.a-t1 { left: 2.2cqw; top: 7.6cqw; width: 26cqw; height: 1.5cqw; border-radius: .3cqw; background: #E8ECF2; transform-origin: 0 50%; }
.a-t2 { left: 2.2cqw; top: 10.4cqw; width: 16cqw; height: 1.1cqw; border-radius: .3cqw; background: #6B768A; transform-origin: 0 50%; }
.a-fan { left: 3cqw; top: 13.2cqw; width: 38cqw; height: 22cqw; transform-origin: 50% 0; }
.a-needle { left: 37.4cqw; top: 13.6cqw; width: 20.4cqw; height: max(2px, .38cqw); background: #fff; border-radius: 1px; transform-origin: 0 50%; transform: rotate(132deg); }
.a-target { left: 20.2cqw; top: 27.6cqw; width: 5cqw; height: 2.2cqw; border: max(1.5px, .3cqw) solid #fff; border-radius: 50%; opacity: .7; }
.a-pip { right: 2.2cqw; bottom: 2.2cqw; width: 11cqw; height: 11cqw; border-radius: 50%; background: var(--screen-3); border: 1px solid #4A566C; overflow: hidden; }
.a-pip::before { content: ""; position: absolute; left: 50%; top: 2.2cqw; width: 4cqw; height: 4cqw; margin-left: -2cqw; border-radius: 50%; background: #5C687D; }
.a-pip::after { content: ""; position: absolute; left: 50%; top: 6.8cqw; width: 8cqw; height: 6cqw; margin-left: -4cqw; border-radius: 4cqw 4cqw 0 0; background: #5C687D; }
.a-mic { right: 14.6cqw; bottom: 2.8cqw; width: 4.6cqw; height: 3.4cqw; }
.a-mic i { bottom: 0; width: .7cqw; height: 100%; border-radius: .3cqw; background: #8E98AA; transform-origin: 50% 100%; animation: mic .9s ease-in-out infinite alternate; }
.a-mic i:nth-child(1) { left: 0; animation-delay: -.2s; }
.a-mic i:nth-child(2) { left: 1.3cqw; animation-delay: -.6s; }
.a-mic i:nth-child(3) { left: 2.6cqw; animation-delay: -.1s; }
.a-mic i:nth-child(4) { left: 3.9cqw; animation-delay: -.45s; }
@keyframes mic { from { transform: scaleY(.3); } to { transform: scaleY(1); } }

.a-k { font-family: var(--mono); font-size: max(8px, 1.45cqw); font-weight: 600; letter-spacing: .14em; color: var(--on-screen-3); white-space: nowrap; }
.a-chat { left: 70cqw; top: 2cqw; width: 30cqw; height: 37.125cqw; }
.a-chat .a-k { left: 0; top: 0; }
.a-msg { left: 0; width: 100%; height: 6.4cqw; border-radius: .6cqw; background: #232C3D; }
.a-msg::before { content: ""; position: absolute; left: 1.6cqw; top: 1.3cqw; width: 7cqw; height: 1cqw; border-radius: .3cqw; background: #6B768A; }
.a-msg::after { content: ""; position: absolute; left: 1.6cqw; top: 3.5cqw; width: var(--w, 20cqw); height: 1.2cqw; border-radius: .3cqw; background: #9AA4B5; }
.a-msg:nth-child(2) { top: 4.2cqw; --w: 22cqw; }
.a-msg:nth-child(3) { top: 12cqw; --w: 15cqw; }
.a-msg:nth-child(4) { top: 19.8cqw; --w: 24cqw; }
.a-msg:nth-child(5) { top: 27.6cqw; --w: 18cqw; background: #22324F; box-shadow: inset .45cqw 0 0 #6F93D6; }
.a-msg:nth-child(5)::before { background: #6F93D6; }

.a-scrub { left: 0; top: 41.2cqw; width: 66cqw; height: 6cqw; opacity: 0; }
.a-rw, .a-pl { left: 0; top: .9cqw; width: 3cqw; height: 3cqw; color: #fff; }
.a-rw svg, .a-pl svg { position: static; display: block; width: 100%; height: 100%; fill: currentColor; }
.a-track { left: 4.4cqw; top: 2.1cqw; width: 61.6cqw; height: .6cqw; border-radius: .3cqw; background: var(--screen-line); }
.a-fill { left: 0; top: 0; width: 100%; height: 100%; border-radius: .3cqw; background: #fff; transform-origin: 0 50%; transform: scaleX(.8); }
.a-head { left: -.9cqw; top: -.6cqw; width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: #fff; transform: translateX(49.3cqw); }

.a-shelf { left: 70cqw; top: 2cqw; width: 30cqw; height: 37.125cqw; }
.a-shelf .a-k { left: 0; top: 0; color: var(--replay); opacity: 0; }
.a-row { left: 0; width: 100%; height: 7.2cqw; opacity: 0; }
.a-row:nth-child(2) { top: 4.2cqw; }
.a-row:nth-child(3) { top: 12.6cqw; }
.a-row:nth-child(4) { top: 21cqw; }
.a-row:nth-child(5) { top: 29.4cqw; }
.a-row b { left: 0; top: .2cqw; width: 12cqw; height: 6.75cqw; border-radius: .4cqw; background: var(--c); }
.a-row b::after { content: ""; position: absolute; right: .5cqw; bottom: .5cqw; width: 3.6cqw; height: 1.4cqw; border-radius: .2cqw; background: rgba(10, 14, 22, .7); }
.a-row i { left: 13.6cqw; top: 1cqw; width: 14cqw; height: 1.1cqw; border-radius: .3cqw; background: #C3CAD6; }
.a-row i + i { top: 3.4cqw; width: 9cqw; height: .9cqw; background: #6B768A; }

.a-card { left: 22cqw; top: 5.5cqw; width: 56cqw; height: 39cqw; border-radius: .9cqw; background: #fff; color: var(--ink); opacity: 0; }
.a-card-h { left: 3.6cqw; top: 3cqw; font-size: max(10px, 2.15cqw); font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.a-card-b { right: 3.6cqw; top: 3.3cqw; font-family: var(--mono); font-size: max(7px, 1.3cqw); letter-spacing: .14em; color: var(--ink-3); white-space: nowrap; }
.a-lab { left: 3.6cqw; font-size: max(8px, 1.5cqw); font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.a-lab.l1 { top: 8.6cqw; }
.a-lab.l2 { top: 19.2cqw; }
.a-field { left: 3.6cqw; width: 48.8cqw; height: 5.6cqw; border: 1px solid var(--field); border-radius: .5cqw; overflow: hidden; background: #fff; }
.a-field.f1 { top: 11.4cqw; }
.a-field.f2 { top: 22cqw; }
.a-val { left: 1.6cqw; top: 50%; margin-top: -1.35cqw; line-height: 2.7cqw; font-size: max(10px, 2.15cqw); font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
/* typing = a white cover sliding right in steps; its left edge is the caret */
.a-cover { top: -.6cqw; left: -.2cqw; right: -.8cqw; bottom: -.6cqw; background: #fff; transform: translateX(101%); }
.a-cover::before { content: ""; position: absolute; left: .1cqw; top: .5cqw; bottom: .5cqw; width: max(1.5px, .3cqw); background: var(--blue); opacity: 0; }
.a-ok { left: 3.6cqw; top: 31.2cqw; display: flex; align-items: center; gap: 1.2cqw; font-size: max(9px, 1.75cqw); font-weight: 700; color: var(--ok); white-space: nowrap; opacity: 0; transform-origin: 0 50%; }
.a-ok > * { position: static; }
.a-ok b { width: max(14px, 3cqw); height: max(14px, 3cqw); display: grid; place-items: center; border-radius: 50%; background: var(--ok); }
.a-ok b svg { width: 62%; height: 62%; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* timeline bindings: one 14 s clock for every piece below */
.mv-art .a-wrap, .mv-art .a-live, .mv-art .a-rep, .mv-art .a-t1, .mv-art .a-t2, .mv-art .a-fan, .mv-art .a-needle, .mv-art .a-target,
.mv-art .a-pip, .mv-art .a-chat .a-k, .mv-art .a-msg, .mv-art .a-scrub, .mv-art .a-fill, .mv-art .a-head, .mv-art .a-rw, .mv-art .a-pl,
.mv-art .a-shelf .a-k, .mv-art .a-row, .mv-art .a-card, .mv-art .a-cover, .mv-art .a-cover::before, .mv-art .a-ok {
  animation-duration: 14s; animation-iteration-count: infinite; animation-fill-mode: both; animation-timing-function: cubic-bezier(.2, .7, .2, 1);
}
.a-wrap { animation-name: a-wrap; }
.a-live { animation-name: a-live; }
.a-rep { animation-name: a-rep; }
.a-t1 { animation-name: a-t1; }
.a-t2 { animation-name: a-t2; }
.a-fan { animation-name: a-fan; }
.a-needle { animation-name: a-needle; }
.a-target { animation-name: a-target; }
.a-pip { animation-name: a-pip; }
.a-chat .a-k { animation-name: a-chatk; }
.a-msg:nth-child(2) { animation-name: a-m1; }
.a-msg:nth-child(3) { animation-name: a-m2; }
.a-msg:nth-child(4) { animation-name: a-m3; }
.a-msg:nth-child(5) { animation-name: a-m4; }
.a-scrub { animation-name: a-scrub; }
.mv-art .a-fill { animation-name: a-fill; animation-timing-function: cubic-bezier(.5, 0, .3, 1); }
.mv-art .a-head { animation-name: a-head; animation-timing-function: cubic-bezier(.5, 0, .3, 1); }
.a-rw { animation-name: a-rw; }
.a-pl { animation-name: a-pl; }
.a-shelf .a-k { animation-name: a-shelfk; }
.a-row { animation-name: a-row; }
.a-row:nth-child(3) { animation-delay: .15s; }
.a-row:nth-child(4) { animation-delay: .3s; }
.a-row:nth-child(5) { animation-delay: .45s; }
.a-card { animation-name: a-card; }
.mv-art .f1 .a-cover { animation-name: a-type1; animation-timing-function: steps(12, end); }
.mv-art .f2 .a-cover { animation-name: a-type2; animation-timing-function: steps(8, end); }
.mv-art .f1 .a-cover::before { animation-name: a-caret1; animation-timing-function: step-end; }
.mv-art .f2 .a-cover::before { animation-name: a-caret2; animation-timing-function: step-end; }
.a-ok { animation-name: a-ok; }

/* scene A 0–4.6 s · scene B 4.6–9.2 s · scene C 9.2–14 s (percent = seconds / 14).
   Changing a scene time also means changing the chapter buttons' data-t and the 4.6 / 9.2
   bounds in static/js/webinar-watch.js. */
@keyframes a-wrap   { 0%, 65.71% { opacity: 1; transform: none; } 69.29%, 95.71% { opacity: .22; transform: scale(.96); } 100% { opacity: 1; transform: none; } }
@keyframes a-live   { 0%, 2.14% { opacity: 0; } 4.29%, 32.86% { opacity: 1; } 34.29%, 100% { opacity: 0; } }
@keyframes a-rep    { 0%, 34.29% { opacity: 0; } 35.71%, 94.29% { opacity: 1; } 95.71%, 100% { opacity: 0; } }
@keyframes a-t1     { 0%, 4.29% { transform: scaleX(0); } 8.57%, 92.86% { transform: scaleX(1); } 94.29%, 100% { transform: scaleX(0); } }
@keyframes a-t2     { 0%, 5.71% { transform: scaleX(0); } 10%, 92.86% { transform: scaleX(1); } 94.29%, 100% { transform: scaleX(0); } }
@keyframes a-fan    { 0%, 5.71% { opacity: 0; transform: scale(.94); } 11.43%, 92.86% { opacity: 1; transform: none; } 94.29%, 100% { opacity: 0; transform: scale(.94); } }
@keyframes a-needle { 0%, 11.43% { transform: rotate(132deg) scaleX(0); } 20%, 35% { transform: rotate(132deg) scaleX(1); } 42.14%, 44.29% { transform: rotate(132deg) scaleX(.25); } 55%, 92.86% { transform: rotate(132deg) scaleX(1); } 94.29%, 100% { transform: rotate(132deg) scaleX(0); } }
@keyframes a-target { 0%, 19.29% { opacity: .35; transform: none; } 20.5% { opacity: 1; transform: scale(1.3); } 24%, 92.86% { opacity: .7; transform: none; } 94.29%, 100% { opacity: .35; transform: none; } }
@keyframes a-pip    { 0%, 5.71% { opacity: 0; transform: translateY(1.5cqw); } 8.57%, 92.86% { opacity: 1; transform: none; } 94.29%, 100% { opacity: 0; transform: translateY(1.5cqw); } }
@keyframes a-chatk  { 0%, 5.71% { opacity: 0; } 8.57%, 32.86% { opacity: 1; } 35%, 100% { opacity: 0; } }
@keyframes a-m1     { 0%, 8.57% { opacity: 0; transform: translateY(2cqw); } 11.43%, 32.86% { opacity: 1; transform: none; } 35.71%, 100% { opacity: 0; transform: translateX(3cqw); } }
@keyframes a-m2     { 0%, 13.57% { opacity: 0; transform: translateY(2cqw); } 16.43%, 32.86% { opacity: 1; transform: none; } 35.71%, 100% { opacity: 0; transform: translateX(3cqw); } }
@keyframes a-m3     { 0%, 18.57% { opacity: 0; transform: translateY(2cqw); } 21.43%, 32.86% { opacity: 1; transform: none; } 35.71%, 100% { opacity: 0; transform: translateX(3cqw); } }
@keyframes a-m4     { 0%, 23.57% { opacity: 0; transform: translateY(2cqw); } 26.43%, 32.86% { opacity: 1; transform: none; } 35.71%, 100% { opacity: 0; transform: translateX(3cqw); } }
@keyframes a-scrub  { 0%, 32.86% { opacity: 0; } 35.71%, 63.57% { opacity: 1; } 65.71%, 100% { opacity: 0; } }
@keyframes a-fill   { 0%, 35% { transform: scaleX(.8); } 42.14%, 44.29% { transform: scaleX(.22); } 63.57% { transform: scaleX(.5); } 100% { transform: scaleX(.8); } }
@keyframes a-head   { 0%, 35% { transform: translateX(49.3cqw); } 42.14%, 44.29% { transform: translateX(13.55cqw); } 63.57% { transform: translateX(30.8cqw); } 100% { transform: translateX(49.3cqw); } }
@keyframes a-rw     { 0%, 34.29% { opacity: 0; } 35%, 41.43% { opacity: 1; } 42.86%, 100% { opacity: 0; } }
@keyframes a-pl     { 0%, 42.86% { opacity: 0; } 44.29%, 63.57% { opacity: 1; } 65%, 100% { opacity: 0; } }
@keyframes a-shelfk { 0%, 35% { opacity: 0; } 37.14%, 92.86% { opacity: 1; } 94.29%, 100% { opacity: 0; } }
@keyframes a-row    { 0%, 37.14% { opacity: 0; transform: translateX(4cqw); } 40%, 92.86% { opacity: 1; transform: none; } 94.29%, 100% { opacity: 0; transform: none; } }
@keyframes a-card   { 0%, 65.71% { opacity: 0; transform: translateY(3cqw); } 69.29%, 95.71% { opacity: 1; transform: none; } 97.14%, 100% { opacity: 0; transform: translateY(-1.5cqw); } }
@keyframes a-type1  { 0%, 71.43% { transform: translateX(0); } 79.29%, 100% { transform: translateX(101%); } }
@keyframes a-type2  { 0%, 80.71% { transform: translateX(0); } 85%, 100% { transform: translateX(101%); } }
@keyframes a-caret1 { 0%, 69.29% { opacity: 0; } 69.3%, 79.29% { opacity: 1; } 79.3%, 100% { opacity: 0; } }
@keyframes a-caret2 { 0%, 79.29% { opacity: 0; } 79.3%, 85% { opacity: 1; } 85.1%, 100% { opacity: 0; } }
@keyframes a-ok     { 0%, 87.14% { opacity: 0; transform: scale(.6); } 88.57% { opacity: 1; transform: scale(1.08); } 90%, 95.71% { opacity: 1; transform: none; } 97.14%, 100% { opacity: 0; transform: none; } }
@keyframes s-0      { 0%, 2.14% { opacity: 0; transform: translateY(110%); } 5.71%, 30% { opacity: 1; transform: none; } 32.86%, 100% { opacity: 0; transform: translateY(-110%); } }
@keyframes s-1      { 0%, 35% { opacity: 0; transform: translateY(110%); } 38.57%, 61.43% { opacity: 1; transform: none; } 64.29%, 100% { opacity: 0; transform: translateY(-110%); } }
@keyframes s-2      { 0%, 67.86% { opacity: 0; transform: translateY(110%); } 71.43%, 94.29% { opacity: 1; transform: none; } 97.14%, 100% { opacity: 0; transform: translateY(-110%); } }
@keyframes c-0      { 0% { transform: scaleX(0); } 32.86%, 100% { transform: scaleX(1); } }
@keyframes c-1      { 0%, 32.86% { transform: scaleX(0); } 65.71%, 100% { transform: scaleX(1); } }
@keyframes c-2      { 0%, 65.71% { transform: scaleX(0); } 100% { transform: scaleX(1); } }

/* ---------------------------------------------------------------- controls (pause + chapters) */
.mv-ctrl { display: flex; align-items: center; gap: 20px; padding: 6px 36px 18px 28px; }
.mv-toggle { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--screen-line); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.mv-toggle:hover { border-color: #6B768A; background: var(--screen-2); }
.mv-toggle svg { grid-area: 1 / 1; width: 12px; height: 12px; fill: currentColor; }
.mv-toggle .i-play { display: none; }
.mv.is-paused .mv-toggle .i-play, .mv.is-still .mv-toggle .i-play { display: block; }
.mv.is-paused .mv-toggle .i-pause, .mv.is-still .mv-toggle .i-pause { display: none; }
.mv-chapters { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mv-ch { min-height: 36px; padding: 8px 0 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--on-screen-3); }
.mv-ch:hover, .mv-ch[aria-current="step"] { color: #fff; }
.mv-ch-bar { display: block; position: relative; height: 2px; background: var(--screen-line); overflow: hidden; }
.mv-ch-bar i { position: absolute; inset: 0; background: #fff; transform-origin: 0 50%; transform: scaleX(0); animation: 14s linear infinite both; }
.mv-ch:nth-child(1) i { animation-name: c-0; }
.mv-ch:nth-child(2) i { animation-name: c-1; }
.mv-ch:nth-child(3) i { animation-name: c-2; }
.mv-ch-label { display: block; margin-top: 8px; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------------- still / paused */
/* pause only the 14 s clock; the one-time entrance (title, art fade-in) always completes */
.mv.is-paused .mv-art *, .mv.is-paused .mv-art *::before, .mv.is-paused .mv-art *::after,
.mv.is-paused .mv-sub span, .mv.is-paused .mv-ch-bar i, .mv.is-paused .mv-chip .lamp { animation-play-state: paused !important; }
.mv.is-still *, .mv.is-still *::before, .mv.is-still *::after { animation: none !important; }
.mv.is-still .mv-subs { display: none; }
.mv.is-still .mv-still-text { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; display: block; margin-top: 20px; font-size: 15.5px; line-height: 1.75; color: var(--on-screen-2); }
.mv.is-still .mv-ch-bar i { transform: scaleX(0); }
.mv.is-still .mv-ch { color: var(--on-screen-3); }
@media (prefers-reduced-motion: reduce) {
  .mv *, .mv *::before, .mv *::after { animation: none !important; }
  .mv-subs, .mv-ctrl { display: none !important; }
  .mv-still-text { position: static !important; width: auto !important; height: auto !important; overflow: visible !important; clip: auto !important; white-space: normal !important; display: block; margin-top: 20px; font-size: 15.5px; line-height: 1.75; color: var(--on-screen-2); }
  .mv-body { padding-bottom: 28px; }
}

/* ================================================================ notice under the monitor */
.notice { display: flex; align-items: center; gap: 8px; margin: 14px 4px 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }
.notice .ico { width: 15px; height: 15px; color: var(--ink-2); }
.notice b { font-weight: 700; color: var(--ink-2); }
.preview-tag { margin-left: auto; flex: none; display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--ink-3); font-size: 12px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }

/* ================================================================ shared bits */
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin: 44px 2px 14px; }
.block-head h2 { font-size: 22px; font-weight: 800; line-height: 1.4; letter-spacing: -.02em; color: var(--ink); }
.block-head h2:focus { outline: none; }
.n { margin-left: 7px; color: var(--blue); font-variant-numeric: tabular-nums; }
.block-head.is-stacked { flex-direction: column; align-items: flex-start; gap: 2px; }
.block-note { font-size: 14.5px; color: var(--ink-3); }
.ad { display: inline-flex; align-items: flex-start; gap: 6px; min-width: 0; font-size: 13px; font-weight: 600; line-height: 20px; color: var(--ink-2); }
.ad b { flex: none; display: inline-flex; align-items: center; height: 20px; padding: 0 5px; border: 1px solid var(--ink-2); border-radius: 3px; font-size: 11.5px; font-weight: 800; line-height: 1; color: var(--ink); }
.ad-by { min-width: 0; overflow-wrap: anywhere; }
.cert { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tally { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 3px; font-size: 12px; font-weight: 800; line-height: 1; white-space: nowrap; }
.tally.is-live { background: var(--onair); color: #fff; letter-spacing: .06em; }
.tally.is-live .lamp { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: lamp 1.6s ease-in-out infinite; }
.tally.is-scheduled { color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: #fff; }
.tally.is-replay { height: 22px; color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: #fff; }
.timecode { display: inline-flex; align-items: center; height: 24px; padding: 0 7px; border-radius: 3px; background: rgba(20, 26, 38, .86); color: #fff; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 6px; font-size: 15px; font-weight: 700; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn .ico { width: 16px; height: 16px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); color: #fff; }
.btn-line { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-line:hover { background: var(--blue-tint); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { cursor: progress; opacity: .7; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; }

/* thumbnails (16:9): the advertiser's image, or the channel poster when there is none */
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; background: var(--paper-deep); container-type: inline-size; }
.thumb > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.poster { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 7cqw 7cqw 6cqw; background: var(--screen); color: #fff; }
.poster-cat { font-size: clamp(10px, 4cqw, 15px); font-weight: 700; color: var(--on-screen-2); }
.poster-title { margin-top: 2.4cqw; font-size: clamp(13px, 7cqw, 30px); font-weight: 800; line-height: 1.32; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.poster-bug { margin-top: auto; font-family: var(--mono); font-size: clamp(8px, 3cqw, 12px); font-weight: 600; letter-spacing: .2em; color: var(--on-screen-3); }
/* live thumbnails: the LIVE flags sit top-left, so the title reads like a lower third */
.poster.is-flagged { justify-content: flex-end; }
.poster.is-flagged .poster-title { margin-top: 0; -webkit-line-clamp: 2; }
.poster.is-flagged .poster-bug { margin-top: 2.6cqw; }
@container (max-width: 220px) {
  .poster { padding: 6cqw 7cqw; }
  .poster-cat { font-size: 9.5px; }
  .poster-title { margin-top: 2px; font-size: 11px; line-height: 1.35; -webkit-line-clamp: 2; }
  .poster-bug { display: none; }
  .poster.is-flagged .poster-title { display: none; }
  .poster.is-flagged .poster-bug { display: block; font-size: 8px; letter-spacing: .16em; }
}

/* ================================================================ LIVE NOW */
.live { container: live / inline-size; }
.live, .soon, .vod { scroll-margin-top: calc(var(--header) + 16px); }
.lv-list { display: grid; gap: 20px; }
.lv { position: relative; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-md); }
.lv-flags { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; }
.lv-body { display: flex; flex-direction: column; min-width: 0; }
.lv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13.5px; color: var(--ink-3); }
.lv-meta:empty { display: none; }
.lv-meta .div { width: 1px; height: 12px; background: var(--line-2); }
.lv-view { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lv-view .ico { width: 15px; height: 15px; }
.lv-title { margin-top: 8px; font-size: 26px; font-weight: 800; line-height: 1.38; letter-spacing: -.025em; color: var(--ink); }
.lv-meta.is-quiet + .lv-title { margin-top: 0; }
.lv-title a { color: inherit; text-decoration: none; }
.lv-title a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.clause { display: inline-block; }
.lv-by { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.lv-start { margin-top: 22px; padding-top: 10px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lv-start b { font-weight: 700; color: var(--ink-2); }
.lv-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lv-side-view { display: none; }

/* 1 live: feature — thumb left (spans), text + button right */
.live[data-count="1"] .lv { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: 40px; padding: 24px; }
.live[data-count="1"] .lv-thumb { grid-row: 1 / span 2; align-self: start; }
.live[data-count="1"] .lv-body { padding: 4px 8px 0 0; }
.live[data-count="1"] .lv-cta { grid-column: 2; padding-top: 24px; }
.live[data-count="1"] .lv-cta .btn { min-width: 220px; }
/* 2 lives: two-up */
.live[data-count="2"] .lv-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.live[data-count="2"] .lv { display: flex; flex-direction: column; padding: 16px 16px 20px; }
.live[data-count="2"] .lv-body { flex: 1; padding: 18px 8px 0; }
.live[data-count="2"] .lv-title { font-size: 21px; }
.live[data-count="2"] .lv-cta { padding: 22px 8px 0; }
/* 3+ lives: a programme guide in one sheet */
.live[data-count="3"] .lv-list { gap: 0; padding: 4px 24px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-md); }
.live[data-count="3"] .lv { display: grid; grid-template-columns: 208px minmax(0, 1fr) 176px; align-items: center; gap: 0 24px; padding: 20px 0; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.live[data-count="3"] .lv:last-child { border-bottom: 0; }
.live[data-count="3"] .lv-flags { left: 8px; top: 8px; }
.live[data-count="3"] .lv-title { margin-top: 6px; font-size: 18px; line-height: 1.45; }
.live[data-count="3"] .lv-by { margin-top: 6px; }
.live[data-count="3"] .lv-start { display: none; }
.live[data-count="3"] .lv-cta { flex-direction: column; align-items: stretch; gap: 8px; }
.live[data-count="3"] .lv-cta .btn { width: 100%; min-height: 44px; font-size: 15px; }
.live[data-count="3"] .lv-side-view { display: block; text-align: center; font-size: 13px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.live[data-count="3"] .lv-meta .lv-view, .live[data-count="3"] .lv-meta .div-v { display: none; }

@container live (max-width: 820px) {
  .live[data-count="1"] .lv { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; padding: 16px 16px 20px; }
  .live[data-count="1"] .lv-thumb { grid-row: auto; }
  .live[data-count="1"] .lv-body { padding: 18px 4px 0; }
  .live[data-count="1"] .lv-cta { grid-column: 1; padding: 22px 4px 0; }
  .live[data-count="1"] .lv-cta .btn { width: 100%; min-width: 0; }
  .live[data-count="1"] .lv-title { font-size: 22px; }
}
@container live (max-width: 700px) {
  .live[data-count="2"] .lv-list { grid-template-columns: minmax(0, 1fr); }
  .live[data-count="3"] .lv { grid-template-columns: 136px minmax(0, 1fr); gap: 0 14px; align-items: start; padding: 16px 0; }
  .live[data-count="3"] .lv-list { padding: 0 16px; }
  .live[data-count="3"] .lv-cta { display: none; }
  .live[data-count="3"] .lv-meta .lv-view, .live[data-count="3"] .lv-meta .div-v { display: inline-flex; }
  .live[data-count="3"] .lv-title { font-size: 15.5px; }
  .live[data-count="3"] .lv-title a::after { content: ""; position: absolute; inset: 0; }
  .live[data-count="3"] .lv-by .cert { display: none; }
  .live[data-count="3"] .lv-flags { left: 5px; top: 5px; gap: 4px; }
  .live[data-count="3"] .tally, .live[data-count="3"] .timecode { height: 20px; font-size: 11px; padding: 0 5px; }
}

/* upcoming (no live now) */
.sn-list { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 4px 24px; }
.sn { display: grid; grid-template-columns: 210px minmax(0, 1fr) auto; align-items: center; gap: 0 28px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.sn:last-child { border-bottom: 0; }
.sn-when { padding-top: 10px; border-top: 1px solid var(--ink); font-variant-numeric: tabular-nums; }
.sn-date { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.sn-time { margin-top: 2px; font-size: 26px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); }
.sn-time span { margin: 0 4px; font-weight: 500; color: var(--ink-3); }
.sn-time small { margin-left: 4px; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.sn-title { margin-top: 6px; font-size: 18px; font-weight: 800; line-height: 1.45; letter-spacing: -.02em; color: var(--ink); }
.sn-left { font-weight: 700; color: var(--blue); }

/* ================================================================ REPLAYS */
.vod { margin-top: 56px; padding: 28px 32px 32px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-md); }
.vod-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.vod-head h2 { font-size: 22px; font-weight: 800; line-height: 1.4; letter-spacing: -.02em; color: var(--ink); }
.vod-head h2:focus { outline: none; }
.vod-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.search { position: relative; width: 340px; }
.search > .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--ink-3); pointer-events: none; }
.search input { width: 100%; height: 44px; padding: 0 40px 0 40px; border: 1px solid var(--field); border-radius: 6px; background: #fff; font-size: 15px; color: var(--ink); -webkit-appearance: none; appearance: none; }
.search input:hover { border-color: var(--field-hover); }
.search input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36, 74, 143, .18); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 4px; background: none; color: var(--ink-3); cursor: pointer; }
.search-x:hover { background: var(--paper); color: var(--ink); }
.sort select { height: 44px; padding: 0 38px 0 14px; border: 1px solid var(--line-2); border-radius: 6px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233D4860' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; -webkit-appearance: none; appearance: none; font-size: 14.5px; font-weight: 600; color: var(--ink); cursor: pointer; }
.sort select:hover { border-color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.chip span { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-pressed="true"] span { color: var(--on-screen-2); }
.vod-grid { margin-top: 20px; padding-top: 28px; border-top: 1px solid var(--ink); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 24px; }
.vc { position: relative; min-width: 0; }
.vc-dur { position: absolute; right: 8px; bottom: 8px; height: 22px; display: inline-flex; align-items: center; padding: 0 6px; border-radius: 3px; background: rgba(20, 26, 38, .86); color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.vc-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(20, 26, 38, .55); color: #fff; font-size: 13px; font-weight: 700; opacity: 0; transition: opacity .15s; }
.vc-play b { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink); }
.vc-play svg { width: 16px; height: 16px; margin-left: 3px; fill: currentColor; }
.vc:hover .vc-play { opacity: 1; }
.vc-meta { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.vc-meta .div { width: 1px; height: 11px; background: var(--line-2); }
.vc-until.is-soon { font-weight: 700; color: var(--soon); }
.vc-title { margin-top: 5px; font-size: 16px; font-weight: 700; line-height: 1.45; letter-spacing: -.01em; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vc-link { color: inherit; text-decoration: none; }
.vc-link:focus-visible { outline: 0; }
.vc-link::after { content: ""; position: absolute; inset: -6px; border-radius: 6px; }
.vc-link:focus-visible::after { outline: 2px solid var(--blue); outline-offset: 0; }
.vc:hover .vc-link { text-decoration: underline; text-underline-offset: 3px; }
.vc-spk { margin-top: 6px; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-ad { margin-top: 8px; }
.vc-ad .ad { font-size: 12.5px; white-space: normal; }
.vc .cert { display: block; margin-top: 4px; }
mark { background: #FCEFC7; color: inherit; border-radius: 2px; padding: 0 1px; }
.vod-empty { margin-top: 20px; padding: 56px 16px 48px; border-top: 1px solid var(--ink); text-align: center; }
.vod-empty-t { font-size: 18px; font-weight: 800; color: var(--ink); }
.vod-empty p + p { margin-top: 6px; font-size: 14.5px; color: var(--ink-3); }
.vod-empty .btn { margin-top: 20px; }
.vod-more { width: 100%; margin-top: 36px; }
.vod-foot { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.7; color: var(--ink-3); }

/* ================================================================ GATES */
.gate { margin-top: 32px; }
.gate-panel { max-width: 880px; margin: 0 auto; padding: 40px 48px 32px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-md); }
.gate-ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--blue-tint); color: var(--blue); }
.gate-ico .ico { width: 22px; height: 22px; }
.gate h1, .gate h2 { margin-top: 18px; font-size: 24px; font-weight: 800; line-height: 1.4; letter-spacing: -.02em; color: var(--ink); }
.gate h1:focus, .gate h2:focus { outline: none; }
.gate-lead { margin-top: 8px; font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.gate-split { display: grid; grid-template-columns: 1fr 1fr; margin-top: 28px; border-top: 1px solid var(--ink); }
.gate-opt { padding: 24px 32px 4px 0; }
.gate-opt + .gate-opt { padding: 24px 0 4px 32px; border-left: 1px solid var(--line); }
.gate-opt h3 { font-size: 17px; font-weight: 800; color: var(--ink); }
.gate-opt p { margin: 6px 0 18px; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.gate-opt .btn { min-width: 160px; }
.gate-foot { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.6; color: var(--ink-3); }
.gate-foot a { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.gate-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.gate-panel.is-form { max-width: 680px; }
.gate-panel.is-narrow { max-width: 640px; }
.gate-who { margin-top: 18px; display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 2px 10px; border-radius: var(--r-sm); background: var(--paper); font-size: 13.5px; color: var(--ink-2); }
.gate-who b { font-weight: 700; color: var(--ink); }
.gate-panel.is-form h2 { margin-top: 12px; }
/* form (same parts as the webinar-live sign-up) */
.f-grid { margin-top: 24px; display: grid; gap: 20px; }
.field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--ink); }
.field .req { margin-left: 2px; color: var(--err); }
.input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--field); border-radius: 6px; background: #fff; font-size: 16px; color: var(--ink); }
.input.is-biz, .input.is-phone { max-width: 240px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.input:hover { border-color: var(--field-hover); }
.input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36, 74, 143, .18); }
.input[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 3px rgba(185, 28, 28, .12); }
.hint { margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.f-err { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--err); }
.f-err::before { content: "!"; flex: none; width: 16px; height: 16px; margin-top: 1px; display: grid; place-items: center; border-radius: 50%; background: var(--err); color: #fff; font-size: 11px; font-weight: 800; line-height: 1; }
.consent { margin: 28px 0 0; padding: 22px 0 0; border: 0; border-top: 1px solid var(--line-2); min-width: 0; }
.consent legend { float: left; width: 100%; padding: 0; font-size: 16px; font-weight: 800; color: var(--ink); }
.consent legend + * { clear: both; }
.c-box { margin-top: 12px; border: 1px solid var(--line-2); border-radius: var(--r-md); overflow: hidden; }
.c-box.is-invalid { border-color: var(--err); box-shadow: 0 0 0 3px rgba(185, 28, 28, .1); }
.c-item + .c-item { border-top: 1px solid var(--line); }
.c-check { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; font-size: 14.5px; font-weight: 700; line-height: 1.55; color: var(--ink); cursor: pointer; }
.c-check:hover { background: #FAF8F4; }
.c-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); cursor: pointer; }
.c-check .tag { color: var(--blue); }
.c-detail { margin: -4px 16px 14px 48px; padding: 12px 14px; border-radius: var(--r-sm); background: #FAF8F4; font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.f-summary { margin-top: 24px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--err-tint); border: 1px solid #F3C9C9; font-size: 14px; font-weight: 600; line-height: 1.55; color: var(--err); }
.f-summary:empty { display: none; }
.submit { width: 100%; min-height: 56px; margin-top: 24px; font-size: 17px; font-weight: 800; border-radius: var(--r-md); }
.f-summary:not(:empty) + .submit { margin-top: 12px; }

/* ================================================================ OFF-AIR (nothing to watch) */
.offair { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--screen); color: #fff; overflow: auto; }
.offair::backdrop { background: var(--screen); }
.offair-in { min-height: 100%; display: flex; flex-direction: column; }
.offair-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; padding: 0 28px; border-bottom: 1px solid var(--screen-line); }
.oa-tally { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--on-screen-3); color: var(--on-screen-2); font-size: 12px; font-weight: 800; }
.offair-main { flex: 1; display: grid; place-items: center; padding: 40px 16px 64px; }
.oa-panel { width: min(520px, 100%); padding: 36px 36px 30px; background: #fff; border-radius: var(--r-md); color: var(--ink-2); }
.oa-panel h1 { font-size: 24px; font-weight: 800; line-height: 1.4; letter-spacing: -.02em; color: var(--ink); }
.oa-panel h1:focus { outline: 0; }
.oa-desc { margin-top: 10px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.oa-next { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--ink); font-variant-numeric: tabular-nums; }
.oa-next-k { font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.oa-next .sn-date { margin-top: 6px; }
.oa-next .sn-time { font-size: 28px; }
.oa-next .sn-title { margin-top: 10px; font-size: 16px; font-weight: 700; }
.oa-next .ad { margin-top: 8px; }
.oa-actions { display: flex; gap: 8px; margin-top: 28px; }
.oa-actions .btn { flex: 1; min-height: 48px; }

/* ================================================================ REPLAY VIEW (/webinar/watch?vod=<id>) */
.rp-back { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; margin-bottom: 8px; }
.rp-back a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: 14px; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.rp-back a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.rp-back .ico { width: 16px; height: 16px; }
.wv { display: grid; grid-template-columns: minmax(0, 1fr) 360px; column-gap: 24px; align-items: start;
  grid-template-areas: "stage more" "title more" "rest more"; }
.stage { grid-area: stage; }
.wv-title { grid-area: title; padding: 20px 2px 24px; }
.rest { grid-area: rest; }
.more { grid-area: more; position: sticky; top: calc(var(--header) + 20px); padding: 16px 16px 8px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-md); }
.more h2 { padding-bottom: 10px; border-bottom: 1px solid var(--ink); font-size: 16px; font-weight: 800; color: var(--ink); }
.more-empty { padding: 16px 0 10px; font-size: 13.5px; color: var(--ink-3); }
.mr { position: relative; display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mr:last-child { border-bottom: 0; }
.mr-thumb .vc-dur { right: 4px; bottom: 4px; height: 18px; padding: 0 4px; font-size: 11px; }
.mr-thumb .poster-title { -webkit-line-clamp: 2; }
.mr-body { min-width: 0; }
.mr-t { font-size: 14px; font-weight: 700; line-height: 1.45; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mr-t a { color: inherit; text-decoration: none; }
.mr-t a::after { content: ""; position: absolute; inset: 0; }
.mr-t a:focus-visible { outline: 0; }
.mr-t a:focus-visible::after { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.mr:hover .mr-t a { text-decoration: underline; text-underline-offset: 3px; }
.mr-m { margin-top: 4px; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mr-m .is-soon { color: var(--soon); font-weight: 700; }
.mr-ad { margin-top: 3px; }
.mr-ad .ad { gap: 5px; font-size: 12px; line-height: 18px; }
.mr-ad .ad b { height: 18px; padding: 0 4px; font-size: 11px; }
.more-all { display: block; padding: 12px 0 6px; font-size: 13.5px; font-weight: 700; color: var(--blue); text-align: center; text-decoration: underline; text-underline-offset: 3px; }

.ad-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; min-height: 36px; padding: 0 2px 8px; }
.ad-row .ad b { padding: 0 6px; font-size: 12px; }
.player { position: relative; aspect-ratio: 16 / 9; background: var(--screen); border-radius: var(--r-md); overflow: hidden; display: grid; place-items: center; color: #A9B2C3; font-size: 14px; text-align: center; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-ph { padding: 0 24px; }
.player-ph b { display: block; margin-bottom: 4px; font-size: 16px; font-weight: 700; color: #fff; }

.rp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 13.5px; color: var(--ink-3); }
.rp-until { font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rp-until.is-soon { color: var(--soon); }
.meta-div { width: 1px; height: 12px; background: var(--line-2); }
.wv-title h1 { margin-top: 12px; font-size: 26px; font-weight: 800; line-height: 1.38; letter-spacing: -.025em; color: var(--ink); }
.wv-title h1:focus { outline: none; }
.host { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14.5px; color: var(--ink-2); }
.host .k { margin-right: 6px; color: var(--ink-3); }
.host b { font-weight: 700; color: var(--ink); }
.host .num { font-variant-numeric: tabular-nums; }
.rp-desc { padding: 24px 28px 26px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-md); }
.rp-desc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.rp-desc-head h2 { font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.rp-desc-body { padding-top: 16px; font-size: 15px; line-height: 1.8; color: var(--ink-2); }
.rp-desc-body p + p { margin-top: 12px; }
.rest .vod-foot { margin-top: 24px; border-top: 0; padding: 0 2px; }
.rp-desc[hidden] + .vod-foot { margin-top: 0; }

/* ================================================================ footer */
.ft { border-top: 1px solid var(--line-2); }
.ft-in { max-width: 1328px; margin: 0 auto; padding: 24px 32px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 12.5px; color: var(--ink-3); }
.ft-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ft-links a { color: var(--ink-3); text-decoration: none; }
.ft-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ================================================================ breakpoints */
@media (max-width: 1279px) {
  .hub { padding-left: 24px; padding-right: 24px; }
  .ft-in { padding-left: 24px; padding-right: 24px; }
  .mv-body { gap: 32px; padding: 22px 28px 16px 32px; }
  .vod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .search { width: 280px; }
  .wv { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 1023px) {
  .mv { --art-w: min(100%, 520px); }
  .mv-body { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 22px 28px 12px; }
  .mv-art { order: -1; justify-self: center; }
  .vod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vod { padding: 24px 24px 28px; }
  .sn { grid-template-columns: 180px minmax(0, 1fr); row-gap: 14px; }
  .sn .btn { grid-column: 2; justify-self: start; }
  .wv { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "title" "more" "rest"; }
  .more { position: static; margin-bottom: 16px; }
}
@media (max-width: 767px) {
  .hub { padding: var(--header) 0 48px; }
  .mv { border-radius: 0; --art-w: 100%; }
  .mv-top { min-height: 46px; padding: 0 12px 0 16px; }
  .mv-bug { font-size: 10px; letter-spacing: .16em; }
  .mv-chip { height: 28px; padding: 0 8px; font-size: 12px; }
  .mv-body { padding: 16px 16px 6px; gap: 18px; }
  .mv-h1 { font-size: 26px; line-height: 1.32; }
  .mv-eyebrow { font-size: 13px; }
  .mv-sub { font-size: 15px; }
  .mv-subs { margin-top: 14px; }
  .mv-ctrl { padding: 4px 16px 14px 12px; gap: 12px; }
  .mv-ch-label { font-size: 12px; }
  .mv.is-still .mv-still-text { font-size: 14.5px; margin-top: 14px; }
  .notice { margin: 12px 16px 0; font-size: 13px; align-items: flex-start; flex-wrap: wrap; }
  .notice .ico { margin-top: 2px; }
  .preview-tag { margin-left: 23px; }
  .block-head { margin: 32px 16px 12px; }
  .block-head h2, .vod-head h2 { font-size: 19px; }
  .live, .soon { padding: 0 16px; }
  .live .block-head, .soon .block-head { margin-left: 0; margin-right: 0; }
  .vod { margin-top: 36px; padding: 22px 16px 28px; border-radius: 0; border-left: 0; border-right: 0; }
  .vod-tools { width: 100%; flex-wrap: nowrap; }
  .search { flex: 1; width: auto; min-width: 0; }
  .sort { flex: none; }
  .sort select { padding-right: 32px; background-position: right 10px center; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 16px -16px 0; padding: 0 16px 2px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .vod-grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 4px; margin-top: 16px; }
  .vc { display: grid; grid-template-columns: 136px minmax(0, 1fr); column-gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .vc-media { grid-column: 1; grid-row: 1 / span 6; align-self: start; }
  .vc > :not(.vc-media) { grid-column: 2; }
  .vc-meta { margin-top: 0; font-size: 12.5px; }
  .vc-title { font-size: 15px; margin-top: 3px; }
  .vc-spk { font-size: 13px; margin-top: 3px; }
  .vc-ad { margin-top: 5px; }
  .vc-dur { right: 5px; bottom: 5px; height: 19px; font-size: 11px; padding: 0 5px; }
  .vc-link::after { inset: 0; }
  .vc-play { display: none; }
  .vod-more { margin-top: 20px; }
  .sn-list { padding: 0 16px; }
  .sn { grid-template-columns: minmax(0, 1fr); padding: 18px 0; }
  .sn .btn { grid-column: 1; width: 100%; }
  .sn-time { font-size: 22px; }
  .gate { margin-top: 24px; padding: 0 16px; }
  .gate-panel { padding: 28px 20px 22px; }
  .gate h1, .gate h2 { font-size: 21px; }
  .gate-split { grid-template-columns: minmax(0, 1fr); }
  .gate-opt, .gate-opt + .gate-opt { padding: 20px 0 4px; border-left: 0; }
  .gate-opt + .gate-opt { border-top: 1px solid var(--line); margin-top: 16px; }
  .gate-opt .btn, .gate-actions .btn { width: 100%; }
  .input.is-biz, .input.is-phone { max-width: none; }
  .c-detail { margin-left: 16px; }
  .offair-top { padding: 0 16px; }
  .oa-panel { padding: 28px 20px 22px; }
  .oa-panel h1 { font-size: 21px; }
  .oa-actions { flex-direction: column; }
  /* replay: the player and its ad line stay on screen while the page scrolls */
  .rp-back { margin: 0; padding: 4px 16px; background: var(--paper); }
  .stage { position: sticky; top: var(--header); z-index: 30; background: var(--paper); }
  .ad-row { padding: 8px 16px; min-height: 0; }
  .player { border-radius: 0; }
  .wv-title { padding: 16px 16px 20px; }
  .wv-title h1 { font-size: 20px; line-height: 1.42; }
  .host { font-size: 14px; }
  .more { margin: 0 0 16px; border-radius: 0; border-left: 0; border-right: 0; }
  .mr { grid-template-columns: 120px minmax(0, 1fr); }
  .rest { padding: 0 16px 16px; }
  .rp-desc { padding: 20px 18px 22px; }
  .ft-in { padding: 20px 16px 24px; }
}
/* phones: the webinar buttons (static/js/consult-fab.js) sit in one row along the bottom */
@media (max-width: 640px) {
  .ft-in { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .tally.is-live .lamp, .mv-chip .lamp { animation: none; }
  .vc-play, .btn, .skip-link, .ww .header-glass { transition: none; }
}
