/* ProManage Webinars - shared styles for the hub and watch pages.
   Tokens mirror /css/marketing/webinar.css on promanage.ai. */
:root {
  color-scheme: light;
  --bg: #ffffff; --mist: #f5f7fb; --line: #e4e9f1; --line-2: #d5dde9;
  --ink: #0a1230; --ink-2: #47536f; --ink-3: #6b7793;
  --navy: #0b1a45; --night: #060d26;
  --accent: #0fb3c8; --accent-d: #0a8496; --accent-50: #e6f8fb; --blue: #3b6cf6; --blue-50: #eef3ff;
  --amber: #f5a524; --amber-50: #fff5e3; --red: #e5484d; --red-50: #fff1f1; --green: #16a34a; --green-50: #ecfdf3;
  --grad: linear-gradient(100deg, #0a8496 0%, #0fb3c8 40%, #3b6cf6 100%);
  --sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 18px; --r-sm: 12px; --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 1px 2px rgba(10, 18, 48, .04), 0 8px 24px rgba(10, 18, 48, .06);
  --shadow-lg: 0 2px 4px rgba(10, 18, 48, .05), 0 24px 60px rgba(10, 18, 48, .16);
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.site-header .logo img { height: 34px; width: auto; }
.site-nav { display: flex; gap: 26px; margin-right: auto; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); }
.site-nav a[aria-current] { position: relative; }
.site-nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -23px; height: 2px; background: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 18px; font-size: 15px; font-weight: 600; margin-left: auto; }
.header-actions .login { text-decoration: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--r-sm); padding: 12px 20px; font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .15s var(--ease), background .15s, box-shadow .15s, border-color .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--navy); box-shadow: 0 8px 20px rgba(10, 18, 48, .22); }
.btn-accent { background: var(--accent-d); color: #fff; }
.btn-accent:hover { background: #087686; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 15px 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .15s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Bits ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-d); font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.pill-live { background: var(--red-50); color: #b42318; }
.pill-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.pill-upcoming { background: var(--blue-50); color: #2448c9; }
.pill-ondemand { background: var(--accent-50); color: #0a6b79; }
.pill-slides { background: var(--blue-50); color: #2448c9; }

/* Video placeholder (preview builds only) */
.video-ph { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; max-width: 100%; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: var(--night); cursor: pointer; box-shadow: var(--shadow-lg); font: inherit; color: #fff; }
.video-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.video-ph .ph-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; }
.video-ph .play-badge { position: static; margin: 0 0 6px; }
.video-ph strong { font-size: clamp(17px, 2.2vw, 22px); }
.video-ph .ph-overlay > span:last-child { max-width: 460px; font-size: 14.5px; color: rgba(255, 255, 255, .8); }
.video-ph .ph-bar { position: absolute; left: 16px; right: 16px; bottom: 16px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .25); }
.video-ph .ph-bar span { display: block; width: 18%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0fb3c8, #3b6cf6); }
.video-ph:hover .play-badge { transform: scale(1.06); }
.video-ph:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Deck download (watch page) */
.deck-card { display: flex; align-items: center; gap: 14px; margin-top: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; scroll-margin-top: 90px; }
.deck-card .ri, .resource .ri { width: 42px; height: 42px; border-radius: 10px; background: var(--accent-50); color: var(--accent-d); display: grid; place-items: center; flex: none; }
.deck-card .txt { flex: 1; min-width: 0; }
.deck-card strong { display: block; font-size: 15.5px; }
.deck-card .txt span { font-size: 13.5px; color: var(--ink-3); }
.deck-card .btn svg { margin-right: 2px; }
.resources { display: grid; gap: 8px; }
.resource { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.resource:hover { border-color: var(--line-2); background: var(--mist); }
.resource .ri { width: 38px; height: 38px; border-radius: 9px; }
.resource strong { display: block; font-size: 14.5px; }
.resource span span { font-size: 13px; color: var(--ink-3); }
.tag { display: inline-block; padding: 3px 9px; border-radius: 6px; background: var(--mist); color: var(--ink-2); font-size: 12.5px; font-weight: 500; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.avatars { display: flex; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--navy); border: 2px solid #fff; flex: none; }
.avatar + .avatar { margin-left: -8px; }
.avatar:nth-child(2n) { background: var(--accent-d); }
.avatar-lg { width: 44px; height: 44px; font-size: 14px; border: 0; }

/* ---------- Hub hero ---------- */
.hub-hero { position: relative; overflow: hidden; padding: 64px 0 56px; background:
  radial-gradient(800px 380px at 90% -10%, rgba(59, 108, 246, .12), transparent 70%),
  radial-gradient(700px 360px at -10% 110%, rgba(15, 179, 200, .12), transparent 70%), var(--bg); }
.hub-hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hub-hero h1 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -.025em; margin: 14px 0 16px; font-weight: 700; }
.hub-hero .lede { font-size: 18px; color: var(--ink-2); max-width: 540px; margin: 0 0 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); }
.hero-points li { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.hero-points svg { color: var(--accent-d); flex: none; }

.feature-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; text-decoration: none; display: block; transition: transform .25s var(--ease); }
.feature-card:hover { transform: translateY(-3px); }
.feature-card .media { position: relative; aspect-ratio: 16 / 9; background: var(--night); }
.feature-card .media img { width: 100%; height: 100%; object-fit: cover; }
.feature-card .body { padding: 18px 22px 20px; }
.feature-card .label { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.feature-card h2 { font-size: 21px; line-height: 1.25; margin: 0 0 12px; letter-spacing: -.01em; }
.feature-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.feature-card .who { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.play-badge { position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%; background: rgba(255, 255, 255, .95); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: transform .2s var(--ease); color: var(--ink); }
.feature-card:hover .play-badge, .card:hover .play-badge { transform: scale(1.08); }
.play-badge svg { margin-left: 4px; }
.media .duration { position: absolute; right: 10px; bottom: 10px; background: rgba(6, 13, 38, .82); color: #fff; font-size: 12.5px; font-weight: 600; padding: 3px 8px; border-radius: 6px; font-family: var(--mono); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-mist { background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.02em; line-height: 1.15; margin: 8px 0 6px; }
.section-head p { margin: 0; color: var(--ink-2); max-width: 620px; }

/* Toolbar */
.toolbar { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; box-shadow: var(--shadow); margin-bottom: 18px; }
.seg { display: inline-flex; background: var(--mist); border-radius: 11px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(10, 18, 48, .12); }
.seg .count { color: var(--ink-3); font-weight: 500; margin-left: 4px; }
.search { position: relative; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search input { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 11px; padding: 0 14px 0 40px; background: #fff; font-size: 15px; }
.search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59, 108, 246, .15); }
.select { position: relative; }
.select select { appearance: none; height: 42px; border: 1px solid var(--line); border-radius: 11px; padding: 0 36px 0 14px; background: #fff; font-size: 14.5px; font-weight: 500; cursor: pointer; max-width: 230px; }
.select::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select select:focus { outline: none; border-color: var(--blue); }
.filter-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 4px 18px; font-size: 14px; color: var(--ink-3); min-height: 22px; }
.link-btn { border: 0; background: none; color: var(--blue); font-weight: 600; cursor: pointer; padding: 0; font-size: 14px; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.card .media { position: relative; aspect-ratio: 16 / 9; background: var(--night); display: block; overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.card .media .play-badge { width: 56px; height: 56px; opacity: 0; }
.card:hover .media .play-badge { opacity: 1; }
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .badges { display: flex; gap: 6px; flex-wrap: wrap; }
.card h3 { font-size: 18px; line-height: 1.3; margin: 0; letter-spacing: -.01em; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; } /* whole-card click for on-demand */
.card { position: relative; }
.card p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; min-height: 4.65em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .tags { display: flex; gap: 6px; flex-wrap: nowrap; overflow: hidden; min-height: 24px; }
.card .tags .tag { white-space: nowrap; flex: none; }
.card .foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card .foot .meta { font-size: 13px; color: var(--ink-3); line-height: 1.35; }
.card .foot .meta strong { display: block; color: var(--ink); font-weight: 600; font-size: 13.5px; }
.card .foot .btn { position: relative; z-index: 1; }

/* Generated cover for sessions without artwork */
.cover { position: absolute; inset: 0; padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; background:
  radial-gradient(120% 90% at 100% 0%, rgba(59, 108, 246, .55), transparent 60%),
  radial-gradient(90% 80% at 0% 100%, rgba(15, 179, 200, .45), transparent 60%), var(--night); }
.cover .k { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.cover .t { font-size: 19px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; max-width: 90%; }
.cover .d { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.cover .cal { background: #fff; color: var(--ink); border-radius: 8px; text-align: center; padding: 4px 9px; line-height: 1.1; }
.cover .cal b { display: block; font-size: 18px; }
.cover .cal span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-d); font-weight: 700; }

.empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--line-2); border-radius: var(--r); background: #fff; color: var(--ink-2); }
.empty h3 { margin: 0 0 6px; color: var(--ink); }

/* Suggest band + CTA */
/* Unboxed so its title sits on the same left edge as every other section title */
.suggest { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.suggest h2 { margin: 8px 0 8px; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.02em; line-height: 1.15; }
.suggest p { margin: 0; color: var(--ink-2); }
.suggest .chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chip { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13.5px; cursor: pointer; color: var(--ink-2); }
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
/* Full-width dark band; content sits in .wrap so the title lines up with the other sections */
.cta-section { background: var(--night); color: #fff; position: relative; overflow: hidden; padding: 72px 0; }
.cta-section::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 300px at 100% 0%, rgba(59, 108, 246, .45), transparent 70%), radial-gradient(600px 280px at 0% 100%, rgba(15, 179, 200, .35), transparent 70%); }
main:has(> .cta-section:last-child) + .site-footer { margin-top: 0; }
.cta-band { color: #fff; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; position: relative; }
.cta-band-old::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 260px at 100% 0%, rgba(59, 108, 246, .45), transparent 70%), radial-gradient(500px 240px at 0% 100%, rgba(15, 179, 200, .35), transparent 70%); }
.cta-band > * { position: relative; }
.cta-band h2 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.02em; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .75); }
.cta-band .btn-primary { background: #fff; color: var(--ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; margin-top: 64px; font-size: 14px; color: var(--ink-3); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Modal + forms ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6, 13, 38, .62); backdrop-filter: blur(4px); animation: fade .2s ease; }
.modal-dialog { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); animation: pop .25s var(--ease); }
.modal-head { padding: 26px 28px 0; }
.modal-head h2 { margin: 8px 0 6px; font-size: 23px; line-height: 1.25; letter-spacing: -.015em; }
.modal-head p { margin: 0; color: var(--ink-2); font-size: 15px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--mist); cursor: pointer; display: grid; place-items: center; color: var(--ink-2); }
.modal-close:hover { background: var(--line); color: var(--ink); }
.modal-body { padding: 20px 28px 26px; }
.modal-ctx { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: var(--mist); margin-top: 16px; font-size: 14px; }
.modal-ctx img, .modal-ctx .mini-cover { width: 86px; aspect-ratio: 16/9; border-radius: 8px; object-fit: cover; flex: none; background: var(--night); }
.modal-ctx strong { display: block; line-height: 1.3; }
.modal-ctx span { color: var(--ink-3); font-size: 13px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
body.modal-open { overflow: hidden; }

.form { display: grid; gap: 14px; }
/* align-items:start keeps both columns top aligned when one has an error message or a
   label that wraps; align-content:start stops the field's own rows stretching, which
   otherwise pushes the input down inside the shorter column. */
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field label .opt { color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 13px; background: #fff; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59, 108, 246, .15); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); }
.field .err { color: #b42318; font-size: 13px; min-height: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--ink); flex: none; }
.fineprint { font-size: 12.5px; color: var(--ink-3); margin: 0; text-align: center; }
.fineprint a { color: var(--ink-2); }
.form-error { background: var(--red-50); color: #b42318; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.success { text-align: center; padding: 8px 0 4px; }
.success .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--green-50); color: var(--green); display: grid; place-items: center; margin: 0 auto 14px; }
.success h3 { margin: 0 0 6px; font-size: 21px; }
.success p { margin: 0 0 18px; color: var(--ink-2); }
.success .actions { display: grid; gap: 10px; }
.success .actions .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- Watch page ---------- */
.watch-top { padding-top: 22px; }
.crumbs { font-size: 14px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); }
.watch-head { margin: 14px 0 20px; }
.watch-head .badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.watch-head h1 { font-size: clamp(26px, 3.3vw, 38px); letter-spacing: -.02em; line-height: 1.15; margin: 0; max-width: 900px; }
/* Row 1: video | chapters (same height). Row 2: content | sidebar. */
.watch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "stage top" "main side"; column-gap: 32px; row-gap: 32px; align-items: start; }
.watch-grid > * { min-width: 0; }
.w-stage { grid-area: stage; }
.w-top-side { grid-area: top; position: relative; align-self: stretch; }
.w-top-side > .panel-chapters { position: absolute; inset: 0; display: flex; flex-direction: column; }
.panel-chapters h3 { display: flex; align-items: center; gap: 8px; }
.panel-chapters h3 span { font-size: 11.5px; background: var(--mist); color: var(--ink-3); border-radius: 999px; padding: 1px 8px; letter-spacing: 0; }
.panel-chapters .chapters { flex: 1; min-height: 0; max-height: none; margin: 0 -10px; position: relative; }
.watch-grid > .main { grid-area: main; display: grid; gap: 20px; }
.watch-grid > .main > #access-note:empty { display: none; }
.watch-grid > .side { grid-area: side; }
.access-note { display: flex; align-items: center; gap: 10px; margin-top: 0; padding: 12px 16px; border-radius: 12px; font-size: 14px; background: var(--green-50); color: #0f5f2d; border: 1px solid #c9f0d7; }
.access-note.locked { background: var(--amber-50); color: #7a4800; border-color: #f8e0b0; }
.access-note svg { flex: none; }
.access-note .link-btn { margin-left: auto; color: inherit; text-decoration: underline; }
.about { margin-top: 16px; }
.about h2 { font-size: 22px; margin: 0 0 14px; letter-spacing: -.01em; }
.about > h2:not(:first-child), .about > .rv { margin-top: 52px; }
.about p { color: var(--ink-2); margin: 0; }
.takeaways { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.takeaways li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.takeaways .n { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-50); color: var(--accent-d); display: grid; place-items: center; font-weight: 700; font-family: var(--mono); font-size: 13px; }
.side { display: grid; gap: 20px; position: sticky; top: 92px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.panel h3 { font-size: 13px; font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 16px; font-weight: 600; }
.speaker { display: flex; gap: 12px; align-items: center; }
.speaker + .speaker { margin-top: 12px; }
.speaker .avatar-lg { width: 56px; height: 56px; font-size: 16px; }
img.avatar { object-fit: cover; background: var(--mist); }
.speaker strong { display: block; font-size: 15px; }
.speaker span { font-size: 13.5px; color: var(--ink-3); }
.chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 300px; overflow: auto; }
.chapters button { width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px; display: grid; grid-template-columns: 54px 1fr; gap: 8px; cursor: pointer; font-size: 14px; }
.chapters button:hover { background: var(--mist); }
.chapters button[aria-current="true"] { background: var(--accent-50); }
.chapters .ts { font-family: var(--mono); color: var(--accent-d); font-size: 13px; }
.share { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.share-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px 6px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; color: var(--ink-2); font: 600 12.5px/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: border-color .15s, background .15s; }
.share-btn:hover { border-color: var(--ink-3); background: var(--mist); color: var(--ink); }
.share-btn svg { width: 22px; height: 22px; flex: none; }
.panel-cta { background: var(--night); color: #fff; border: 0; }
.panel-cta h3 { color: rgba(255, 255, 255, .6); }
.panel-cta p { margin: 0 0 14px; color: rgba(255, 255, 255, .85); font-size: 15px; }
.panel-cta .btn-primary { background: #fff; color: var(--ink); }
.stage { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--night); box-shadow: var(--shadow-lg); }
.stage > img { width: 100%; height: 100%; object-fit: cover; }
.stage .cover { padding: 28px 32px; }
.stage .cover > * { visibility: hidden; }
.stage-overlay { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: #fff; background: linear-gradient(180deg, rgba(6, 13, 38, .35), rgba(6, 13, 38, .8)); }
.stage-overlay h2 { margin: 0 0 6px; font-size: clamp(20px, 2.8vw, 30px); letter-spacing: -.015em; }
.stage-overlay p { margin: 0 0 18px; color: rgba(255, 255, 255, .8); }
.stage-overlay .countdown { display: inline-block; margin-bottom: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-family: var(--mono); font-size: 13px; color: #fff; }
.stage-overlay .btn-primary { background: #fff; color: var(--ink); }
@media (max-width: 640px) {
  .stage { aspect-ratio: auto; }
  .stage > img { position: absolute; inset: 0; }
  .stage-overlay { position: relative; padding: 36px 20px; }
}
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; z-index: 300; box-shadow: var(--shadow-lg); animation: pop .2s var(--ease); }
.not-found { text-align: center; padding: 80px 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .watch-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "top" "main" "side"; row-gap: 24px; }
  .w-top-side > .panel-chapters { position: static; }
  .panel-chapters .chapters { max-height: 280px; }
  .side { position: static; grid-template-columns: repeat(2, 1fr); }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .toolbar .seg { grid-column: 1 / -1; justify-self: start; }
  .toolbar .search { grid-column: 1 / -1; }
  .select select { max-width: none; width: 100%; }
}
@media (max-width: 860px) {
  .site-nav { display: none; }
  .hub-hero { padding: 36px 0 40px; }
  .hub-hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .suggest, .cta-band { grid-template-columns: 1fr; gap: 24px; }
  .cta-section { padding: 56px 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .header-actions .login { display: none; }
  .site-header .wrap { height: 60px; }
  .site-header .logo img { height: 28px; }
  .grid { grid-template-columns: 1fr; }
  .side { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .seg { width: 100%; }
  .seg button { flex: 1; padding: 8px 6px; }
  .modal { padding: 0; align-items: end; }
  .modal-dialog { border-radius: 20px 20px 0 0; max-height: 92vh; }
  .modal-head { padding: 22px 20px 0; }
  .modal-body { padding: 18px 20px 22px; }
  .success .actions .two { grid-template-columns: 1fr; }
  .hero-actions .btn, .suggest > .btn, .cta-band > .btn, .section-head > .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
