/* ═════════════════════════════════════════════════════════════════════
   BRETHREN MEDIA — WATCH PAGE (/media/watch) · v3
   Approved design: mockups/media-player-v3.html. Layer on top of
   /css/brethren-v2.css; the shared chrome (wr-header.js) supplies the rail,
   phone top bar and dock.
   - Player: big, quiet controls that fade while playing (a thin gold line
     stays), chapter preview on the progress bar, up-next card at the end.
     On phones the player stays pinned under the top bar.
   - Under it: title, one row of round actions, the teacher, a short
     description with Scripture chips, a chapter strip, transcript, comments
     (a bottom sheet on phones).
   - Right: Up next (hero card + list), the series, filters.
   House rules: deep blue + gold only, circular avatars and icon buttons,
   chamfered cards. The legacy immersive phone overlays (.mv-*) stay in the
   DOM for the page script but are never shown.
   ═════════════════════════════════════════════════════════════════════ */

html.v2 body { margin: 0; }
.mw-page, .mw-page *, .mw-page *::before, .mw-page *::after { box-sizing: border-box; }
:where(.mw-page) :where(h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote) { margin: 0; }
:where(.mw-page) :where(ul, ol) { padding: 0; }
.mw-page a { color: inherit; text-decoration: none; }
.mw-page button, .mw-page input, .mw-page textarea { font-family: inherit; color: inherit; }
.mw-page img { max-width: 100%; }
.mw-page button { cursor: pointer; }

/* ── Shell ── */
.page { position: relative; }
.wrap { max-width: 1760px; margin: 0 auto; padding: 0 var(--v2-gutter) 64px; }
@media (min-width: 900px) { .wrap { padding-top: 18px; } }

/* desktop breadcrumb row */
.topbar { display: none; }
@media (min-width: 900px) { .topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; } }
.tb-back { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: 13px; color: var(--v2-ink-2); background: var(--v2-bg-3); border: 1px solid var(--v2-edge); transition: color 0.15s, border-color 0.15s; }
.tb-back:hover { color: var(--v2-gold); border-color: var(--v2-edge-gold); }
.crumb { display: flex; align-items: center; gap: 10px; min-width: 0; font-family: var(--v2-font-display); font-size: 13px; font-weight: 700; color: var(--v2-ink-3); }
.crumb a { color: var(--v2-ink-2); }
.crumb a:hover { color: var(--v2-gold); }
.crumb .sep { font-size: 10px; }
.crumb .cur { display: none; } /* the title lives under the video */
.crumb .sep:last-of-type { display: none; }
.crumb #crumbSep1:not([hidden]) { display: inline; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.seek { display: inline-flex; align-items: center; gap: 10px; height: 40px; min-width: 260px; padding: 0 16px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--v2-ink-3); background: var(--v2-bg-2); border: 1px solid var(--v2-edge); transition: border-color 0.15s, color 0.15s; }
.seek i { color: var(--v2-gold); }
.seek:hover { color: var(--v2-ink); border-color: var(--v2-edge-gold); }

/* ── Grid: player + details | Up next ── */
.watch { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.maincol { min-width: 0; display: flex; flex-direction: column; gap: 0; }
.sheet { display: flex; flex-direction: column; gap: 22px; min-width: 0; padding-top: 18px; }
.aside { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
@media (min-width: 1180px) {
    .watch { grid-template-columns: minmax(0, 1fr) 380px; column-gap: 32px; }
    .aside { position: sticky; top: 18px; }
}
@media (min-width: 1500px) { .watch { grid-template-columns: minmax(0, 1fr) 420px; } }
body.theater .watch { grid-template-columns: minmax(0, 1fr); }
body.theater .aside { display: none; }

/* ═══════════════ PLAYER ═══════════════ */
.player {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin: 0 calc(var(--v2-gutter) * -1);
    background: #040927;
    user-select: none;
    -webkit-user-select: none;
}
/* phones: the player stays pinned under the top bar while the page scrolls */
@media (max-width: 899px) {
    .player { position: sticky; top: calc(var(--v2-top-h) + var(--v2-safe-top)); z-index: 60; box-shadow: 0 12px 30px rgba(2, 6, 30, 0.55); }
}
@media (min-width: 600px) and (max-width: 899px) { .player { margin: 0; border-radius: 14px; } }
@media (min-width: 900px) {
    .player { margin: 0; border-radius: 16px; box-shadow: 0 30px 80px rgba(2, 6, 30, 0.6), 0 0 0 1px var(--v2-edge); }
}
.player:fullscreen { margin: 0; border-radius: 0; aspect-ratio: auto; width: 100%; height: 100%; box-shadow: none; }
.stage { position: absolute; inset: 0; z-index: 1; }
.stage video, .stage img.posterimg { width: 100%; height: 100%; object-fit: contain; display: block; background: #040927; }
#ytPlayerWrap { width: 100%; height: 100%; }
#ytPlayerWrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* tap layer over the video (and the YouTube frame, which would swallow taps) */
.tapzone { position: absolute; inset: 0; z-index: 3; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.player.nomedia .tapzone, .player.noplay .tapzone { display: none; }

/* artwork poster when the item has no thumbnail */
.artposter { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(130% 90% at 50% -24%, rgba(245, 166, 35, 0.2), transparent 52%), linear-gradient(158deg, var(--v2-bg-4), var(--v2-bg-2) 60%); }
.artposter .glowsrc, .artposter .shaft, .artposter .dust { display: none; }
.artposter .motif { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font-size: clamp(90px, 18vw, 200px); line-height: 1; color: rgba(184, 196, 232, 0.08); pointer-events: none; }
.artposter .titlecard-still { position: absolute; left: 24px; top: 64px; z-index: 2; pointer-events: none; max-width: 62%; }
.artposter .titlecard-still .kick { font-family: var(--v2-font-display); font-size: 10.5px; font-weight: 800; letter-spacing: 0.2em; color: var(--v2-gold); }
.artposter .titlecard-still .big { font-family: var(--v2-font-display); font-weight: 800; font-size: clamp(22px, 3.4vw, 42px); line-height: 1.05; letter-spacing: -0.02em; margin-top: 8px; color: transparent; -webkit-text-stroke: 1px rgba(255, 201, 100, 0.35); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 599px) { .artposter .titlecard-still { display: none; } }

/* top overlay: source chip + title */
.p-top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 12px 14px 32px; background: linear-gradient(180deg, rgba(6, 12, 46, 0.6), transparent); pointer-events: none; transition: opacity 0.35s ease; }
.src-chip { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 5px 10px; border-radius: 999px; font-family: var(--v2-font-display); font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--v2-gold); background: rgba(6, 12, 46, 0.7); border: 1px solid rgba(122, 142, 192, 0.28); white-space: nowrap; }
.src-chip i { font-size: 10px; }
.p-top .p-title, .p-top .p-series { display: none; min-width: 0; font-family: var(--v2-font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 8px rgba(6, 12, 46, 0.8); }
.p-top .p-title { font-size: 15px; font-weight: 700; color: var(--v2-ink); }
.p-top .p-series { font-size: 12.5px; font-weight: 600; color: var(--v2-ink-2); }
@media (min-width: 900px) {
    .p-top { padding: 18px 22px 40px; }
    .p-top .p-title { display: block; }
    .p-top .p-series:not([hidden]) { display: block; }
}

/* centre: big play (+ 10s skips on phones) */
.playwrap { position: absolute; inset: 0; z-index: 4; display: flex; align-items: center; justify-content: center; gap: clamp(24px, 9vw, 64px); pointer-events: none; transition: opacity 0.3s ease; }
.playbtn, .cskip { pointer-events: auto; display: grid; place-items: center; border-radius: 50%; }
.playbtn { width: 62px; height: 62px; border: 0; font-size: 23px; color: var(--v2-bg); background: linear-gradient(180deg, var(--v2-gold-hi), var(--v2-gold)); box-shadow: 0 10px 40px rgba(245, 166, 35, 0.35); transition: transform 0.2s var(--v2-ease), background 0.2s; }
.playbtn .fa-play { margin-left: 4px; }
.playbtn:hover { transform: scale(1.06); }
.cskip { position: relative; width: 46px; height: 46px; font-size: 17px; color: var(--v2-ink); background: rgba(6, 12, 46, 0.55); border: 1px solid rgba(240, 242, 255, 0.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cskip .lbl { position: absolute; bottom: 6px; font-family: var(--v2-font-display); font-size: 8.5px; font-weight: 800; }
.player.playing .playbtn { color: var(--v2-ink); background: rgba(6, 12, 46, 0.55); border: 1px solid rgba(240, 242, 255, 0.18); box-shadow: none; }
.player.playing .playbtn .fa-pause { margin: 0; }
@media (min-width: 900px) {
    .cskip { display: none; }
    .playbtn { width: 92px; height: 92px; font-size: 32px; }
    .player.playing .playwrap { opacity: 0; }
    .player.playing .playwrap .playbtn { pointer-events: none; }
}
.player.noplay .playwrap, .player.noplay .controls, .player.noplay .hair,
.player.nomedia .playwrap, .player.nomedia .controls, .player.nomedia .hair { display: none; }

/* bottom bar: progress over everything, then one row of controls */
.controls { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 26px 10px 4px; background: linear-gradient(180deg, transparent, rgba(6, 12, 46, 0.7) 45%, rgba(6, 12, 46, 0.94)); transition: opacity 0.35s ease, transform 0.35s var(--v2-ease); }
@media (min-width: 900px) { .controls { padding: 40px 20px 12px; } }
.scrub-row { display: flex; align-items: center; }
.tcur, .tdur { display: none; }
.track { position: relative; flex: 1; height: 22px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.track .rail { position: absolute; left: 0; right: 0; height: 5px; border-radius: 99px; background: rgba(240, 242, 255, 0.22); overflow: hidden; transition: height 0.15s; }
.track:hover .rail, .track:focus-visible .rail { height: 9px; }
.track .buf { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(240, 242, 255, 0.28); }
.track .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--v2-gold-lo), var(--v2-gold-hi)); }
.track .ticks { position: absolute; left: 0; right: 0; top: 50%; height: 9px; transform: translateY(-50%); pointer-events: none; }
.track .ticks i { position: absolute; top: 0; bottom: 0; width: 3px; background: #040927; transform: translateX(-1px); }
.track .thumb { position: absolute; top: 50%; left: 0; z-index: 3; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--v2-gold-hi); box-shadow: 0 0 0 5px rgba(245, 166, 35, 0.25); transform: scale(0); transition: transform 0.15s ease; }
.track:hover .thumb, .track:focus-visible .thumb { transform: scale(1); }
@media (hover: none) { .track .thumb { transform: scale(0.75); } }
/* chapter preview above the progress bar */
.peek { position: absolute; bottom: 28px; left: 0; z-index: 8; display: flex; flex-direction: column; gap: 2px; min-width: 120px; max-width: 220px; padding: 8px 12px; transform: translateX(-50%); pointer-events: none; opacity: 0; transition: opacity 0.15s; border-radius: 10px; background: var(--v2-bg-2); border: 1px solid rgba(122, 142, 192, 0.28); box-shadow: 0 16px 40px rgba(2, 6, 30, 0.6); }
.peek b { font-family: var(--v2-font-display); font-size: 13px; font-weight: 800; color: var(--v2-gold); font-variant-numeric: tabular-nums; }
.peek span { font-size: 12px; font-weight: 600; color: var(--v2-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peek span:empty { display: none; }
@media (hover: hover) { .track:hover .peek { opacity: 1; } }

.ctrl-row { display: flex; align-items: center; gap: 2px; }
.cbtn { position: relative; width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--v2-ink); font-size: 17px; transition: background 0.15s, color 0.15s; }
.cbtn:hover { background: rgba(122, 142, 192, 0.16); }
.cbtn.play { font-size: 21px; }
.cbtn .lbl { position: absolute; bottom: 5px; right: 5px; font-family: var(--v2-font-display); font-size: 8px; font-weight: 800; }
@media (min-width: 900px) {
    .ctrl-row { gap: 4px; margin-top: 4px; }
    .cbtn { width: 46px; height: 46px; font-size: 19px; }
    .cbtn.play { font-size: 24px; }
}
.vol { display: flex; align-items: center; }
.vol .vbar { position: relative; width: 0; height: 4px; overflow: hidden; border-radius: 99px; background: rgba(240, 242, 255, 0.25); transition: width 0.25s var(--v2-ease), margin 0.25s; }
.vol:hover .vbar, .vol:focus-within .vbar { width: 84px; margin: 0 10px 0 2px; overflow: visible; }
.vol .vbar::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; bottom: -10px; }
.vol .vbar .vf { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: inherit; background: var(--v2-ink); }
.vol .vbar .vd { position: absolute; top: 50%; left: 100%; width: 12px; height: 12px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--v2-ink); }
@media (max-width: 599px) { .vol .vbar { display: none; } }
.ctime { margin: 0 8px; font-family: var(--v2-font-display); font-size: 12.5px; font-weight: 600; color: var(--v2-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .ctime { font-size: 14px; margin: 0 12px; } }
.nowchap { display: none; min-width: 0; max-width: 300px; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; background: rgba(6, 12, 46, 0.55); border: 1px solid rgba(122, 142, 192, 0.28); font-size: 12.5px; font-weight: 600; color: var(--v2-ink-2); white-space: nowrap; }
.nowchap .n { flex: none; font-family: var(--v2-font-display); font-weight: 800; color: var(--v2-gold); }
.nowchap .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1100px) { .nowchap:not([hidden]) { display: inline-flex; } }
.spacer { flex: 1; }
.pill-btn { flex: none; min-width: 40px; height: 40px; padding: 0 10px; border: 0; border-radius: 999px; background: none; color: var(--v2-ink); font-family: var(--v2-font-display); font-size: 12.5px; font-weight: 800; }
.pill-btn:hover { background: rgba(122, 142, 192, 0.16); }
@media (max-width: 599px) { .hide-m { display: none !important; } #theaterBtn, #speedBtn { display: none; } }
@media (max-width: 899px) { #back10, #fwd10 { display: none; } }
#theaterBtn[hidden], #pipBtn[hidden] { display: none; }

/* idle while playing: everything fades, a thin gold line stays */
.player.controls-hidden .controls { opacity: 0; transform: translateY(8px); pointer-events: none; }
.player.controls-hidden .p-top, .player.controls-hidden .playwrap { opacity: 0; pointer-events: none; }
.player.controls-hidden .playwrap .playbtn, .player.controls-hidden .playwrap .cskip { pointer-events: none; }
.player.controls-hidden { cursor: none; }
.hair { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; height: 3px; opacity: 0; pointer-events: none; transition: opacity 0.35s ease; }
.hair i { display: block; width: 0; height: 100%; background: var(--v2-gold); }
.player.controls-hidden .hair { opacity: 1; }

/* up-next card over the last seconds (autoplay on) */
.endcard { position: absolute; right: 14px; bottom: 84px; z-index: 7; display: flex; gap: 10px; align-items: center; width: 280px; max-width: calc(100% - 28px); padding: 10px; border-radius: 12px; background: rgba(6, 12, 46, 0.86); border: 1px solid var(--v2-edge-gold); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.endcard[hidden] { display: none; }
.endcard .ei { position: relative; width: 96px; flex: none; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: var(--v2-bg-3); }
.endcard .ei img { width: 100%; height: 100%; object-fit: cover; display: block; }
.endcard small { display: block; font-family: var(--v2-font-display); font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--v2-gold); }
.endcard p { margin: 3px 0 0; font-family: var(--v2-font-display); font-size: 12.5px; font-weight: 700; line-height: 1.3; color: var(--v2-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 599px) { .endcard { bottom: 64px; width: 230px; } .endcard .ei { width: 76px; } }

/* ═══════════════ TITLE · ACTIONS · TEACHER ═══════════════ */
.titlecard { position: relative; }
.kline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.kicker { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--v2-font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--v2-gold); }
.kicker .k-series { color: var(--v2-gold-hi); }
.kicker .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--v2-ink-3); }
.meta { display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; font-size: 12.5px; font-weight: 600; color: var(--v2-ink-3); }
.meta .m { display: inline-flex; align-items: center; gap: 6px; }
.meta .m i { display: none; }
.meta b { color: var(--v2-ink-2); font-weight: 700; }
.meta .msep { opacity: 0.6; }
h1.vtitle { margin-top: 8px; font-family: var(--v2-font-display); font-weight: 800; font-size: clamp(20px, 5.4vw, 30px); line-height: 1.18; letter-spacing: -0.02em; color: var(--v2-ink); overflow-wrap: anywhere; max-width: 1000px; }

.engage { display: flex; align-items: center; gap: 8px; margin: 16px calc(var(--v2-gutter) * -1) 0; padding: 0 var(--v2-gutter) 2px; overflow-x: auto; scrollbar-width: none; }
.engage::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .engage { margin: 16px 0 0; padding: 0; flex-wrap: wrap; overflow: visible; } }
.eb { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--v2-edge); background: var(--v2-bg-3); font-size: 13.5px; font-weight: 700; color: var(--v2-ink); white-space: nowrap; transition: border-color 0.15s, background 0.15s; }
.eb i { color: var(--v2-gold); font-size: 15px; }
.eb b { font-weight: 800; color: var(--v2-ink); }
.eb:hover { border-color: var(--v2-edge-gold); }
.eb.amen.on, .eb.save.on { background: rgba(245, 166, 35, 0.14); border-color: var(--v2-edge-gold); }
.eb.amen.on i { animation: v2-pop 0.35s var(--v2-ease); }
.eb.give { border: 0; color: var(--v2-bg); background: linear-gradient(180deg, var(--v2-gold-hi), var(--v2-gold)); }
.eb.give i, .eb.give b { color: var(--v2-bg); }
.eb.give:hover { filter: brightness(1.06); }

.byline { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 0; border-top: 1px solid var(--v2-edge); border-bottom: 1px solid var(--v2-edge); }
.auth { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.auth .av, .teacher .av, .compose .av, .cm .av, .cmpk .av {
    flex: none;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    font-family: var(--v2-font-display);
    font-weight: 800;
    color: var(--v2-gold);
    background: var(--v2-bg-4);
}
.auth .av img, .teacher .av img, .compose .av img, .cm .av img, .cmpk .av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.auth .av, .teacher .av { width: 48px; height: 48px; font-size: 15px; border: 2px solid var(--v2-gold); }
.auth > div:last-child { min-width: 0; }
.auth .nm { font-family: var(--v2-font-display); font-size: 15.5px; font-weight: 700; color: var(--v2-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auth:hover .nm { color: var(--v2-gold); }
.auth .sub { margin-top: 2px; font-size: 12.5px; color: var(--v2-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.follow { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border: 0; font-family: var(--v2-font-display); font-size: 13.5px; font-weight: 700; color: var(--v2-bg); background: linear-gradient(180deg, var(--v2-gold-hi), var(--v2-gold)); border-radius: 999px; }
.follow:hover { filter: brightness(1.06); }
.follow.on { color: var(--v2-ink); background: var(--v2-bg-3); box-shadow: inset 0 0 0 1px rgba(122, 142, 192, 0.28); }
.follow.on i { color: var(--v2-gold); }
.follow[disabled] { opacity: 0.5; cursor: default; }
.bell { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; font-size: 15px; color: var(--v2-gold); background: var(--v2-bg-3); border: 1px solid var(--v2-edge); }
.bell:hover, .bell.on { border-color: var(--v2-edge-gold); }
.bell[disabled] { opacity: 0.5; cursor: default; }
@media (max-width: 899px) { .bell { display: none; } }

/* ═══════════════ DESCRIPTION · SCRIPTURE ═══════════════ */
.aboutcard { position: relative; padding: 16px; background: var(--v2-bg-2); }
.aboutcard::after { content: ''; position: absolute; top: 0; right: 0; width: 14px; height: 14px; border-top: 2px solid var(--v2-gold); border-right: 2px solid var(--v2-gold); pointer-events: none; }
@media (min-width: 900px) { .aboutcard { padding: 18px 20px; } }
.aboutclip { position: relative; }
.aboutcard.clamp:not(.open) .aboutclip { max-height: 7.4em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.about p { font-size: 14.5px; line-height: 1.65; color: var(--v2-ink-2); margin: 0 0 12px; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 80ch; }
.about p:last-child { margin-bottom: 0; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.topic { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--v2-ink-2); background: var(--v2-bg-3); border: 1px solid var(--v2-edge); }
.scrips { margin-top: 14px; }
.aboutcard .scrips:first-child, .aboutclip:empty + .scrips { margin-top: 0; }
.scriphead { margin-bottom: 10px; font-family: var(--v2-font-display); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--v2-ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px; border-radius: 999px; background: none; border: 1px solid var(--v2-edge-gold); transition: background 0.15s; }
.chip::before { content: '\f647'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 12px; color: var(--v2-gold); }
.chip:hover { background: rgba(245, 166, 35, 0.12); }
.chip .ref { font-size: 12.5px; font-weight: 700; color: var(--v2-gold-hi); }
.chip .at { font-size: 11.5px; font-weight: 600; color: var(--v2-ink-3); font-variant-numeric: tabular-nums; }
@media (max-width: 899px) { .chip { height: 40px; } }
.moretoggle { margin-top: 10px; padding: 0; border: 0; background: none; font-family: var(--v2-font-display); font-size: 13px; font-weight: 700; color: var(--v2-gold); }
.moretoggle[hidden] { display: none; }

/* ═══════════════ SECTIONS (chapters · transcript · comments) ═══════════════ */
.sec-h, .cmhead h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-family: var(--v2-font-display); font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--v2-ink); }
.sec-h::after { content: ''; flex: 1; height: 1px; background: var(--v2-edge); }
.sec-h .n { color: var(--v2-ink-3); letter-spacing: 0.04em; }

/* chapters: a swipeable strip of cards */
.chaplist { display: flex; gap: 10px; margin: 0 calc(var(--v2-gutter) * -1); padding: 0 var(--v2-gutter) 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.chaplist::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .chaplist { margin: 0; padding: 0 0 6px; scrollbar-width: thin; scrollbar-color: var(--v2-bg-4) transparent; } }
.chaprow { position: relative; flex: none; width: 210px; min-height: 104px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px; text-align: left; border-radius: 12px; background: var(--v2-bg-2); border: 1px solid var(--v2-edge); transition: border-color 0.15s, background 0.15s; }
.chaprow:hover { border-color: var(--v2-edge-gold); }
.chaprow .ts { padding: 2px 8px; border-radius: 6px; font-family: var(--v2-font-display); font-size: 12px; font-weight: 800; color: var(--v2-gold); background: var(--v2-bg-3); font-variant-numeric: tabular-nums; }
.chaprow.on { border-color: var(--v2-gold); box-shadow: 0 0 0 1px var(--v2-gold); background: rgba(245, 166, 35, 0.08); }
.chaprow.on .ts { color: var(--v2-bg); background: var(--v2-gold); }
.chaprow.done .ts { color: var(--v2-ink-3); }
.chaptx { min-width: 0; }
.chaptx .ct { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--v2-font-display); font-size: 13.5px; font-weight: 700; line-height: 1.35; color: var(--v2-ink); }
.chaptx .cd { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 3px; font-size: 12px; line-height: 1.45; color: var(--v2-ink-3); }
.chaprow .st { position: absolute; top: 14px; right: 14px; font-size: 12px; color: var(--v2-ink-3); }
.chaprow.on .st { color: var(--v2-gold); }
.chaprow.done .st { color: var(--v2-ink-3); }

/* transcript */
.tx { display: flex; flex-direction: column; gap: 2px; max-height: 460px; overflow-y: auto; padding: 4px; border-radius: 12px; background: var(--v2-bg-2); border: 1px solid var(--v2-edge); }
.tx .txlead { padding: 8px 8px 4px; font-size: 13px; color: var(--v2-ink-3); line-height: 1.6; }
.tx .txline { display: flex; gap: 14px; width: 100%; align-items: flex-start; padding: 8px; border: 0; border-radius: 8px; background: none; text-align: left; }
.tx .txline:hover { background: var(--v2-bg-3); }
.tx .txts { flex: none; width: 54px; padding: 3px 0; border-radius: 6px; text-align: center; font-family: var(--v2-font-display); font-size: 11.5px; font-weight: 800; color: var(--v2-gold); background: var(--v2-bg-3); font-variant-numeric: tabular-nums; }
.tx .txtx { flex: 1; min-width: 0; padding-top: 1px; font-size: 14.5px; line-height: 1.7; color: var(--v2-ink-2); overflow-wrap: anywhere; }
.tx .txnote { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 12px; text-align: center; color: var(--v2-ink-3); }
.tx .txnote i { font-size: 24px; color: var(--v2-gold); }
.tx .txnote .t { font-family: var(--v2-font-display); font-size: 15px; font-weight: 700; color: var(--v2-ink); }
.tx .txnote .s { max-width: 380px; font-size: 13.5px; line-height: 1.6; }
.tx .txgen, .loadstate a, .compose .post, .replybox .post {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 20px;
    border: 0;
    font-family: var(--v2-font-display);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--v2-bg);
    background: linear-gradient(180deg, var(--v2-gold-hi), var(--v2-gold));
    border-radius: 999px;
}
.tx .txgen[disabled], .compose .post[disabled], .replybox .post[disabled] { opacity: 0.55; cursor: default; }
.tx .txwork { display: flex; align-items: center; gap: 11px; padding: 16px; color: var(--v2-ink-2); font-size: 14px; font-weight: 600; }
.tx .txspin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--v2-edge-gold); border-top-color: var(--v2-gold); animation: mwSpin 0.8s linear infinite; }
@keyframes mwSpin { to { transform: rotate(360deg); } }
.tx .txcopy { align-self: flex-start; margin: 4px 4px 0; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--v2-ink-2); background: var(--v2-bg-3); border: 1px solid var(--v2-edge); }
.tx .txcopy:hover { color: var(--v2-gold); border-color: var(--v2-edge-gold); }

/* comments */
.cmhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cmhead h3 { margin: 0; }
.cmhead .n { font-family: var(--v2-font-display); font-size: 12px; font-weight: 800; color: var(--v2-ink-3); }
.sortseg { margin-left: auto; display: flex; gap: 6px; }
.sortseg button { height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--v2-edge); background: none; font-size: 12.5px; font-weight: 700; color: var(--v2-ink-2); }
.sortseg button.on { color: var(--v2-bg); background: var(--v2-ink); border-color: var(--v2-ink); }
.compose { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.compose .av { width: 40px; height: 40px; font-size: 13px; border: 1.5px solid var(--v2-gold); }
.compose .cwrap { flex: 1; min-width: 0; }
.compose .ci, .replybox .ci { width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(122, 142, 192, 0.28); background: var(--v2-bg-2); color: var(--v2-ink); font-size: 16px; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.compose .ci::placeholder, .replybox .ci::placeholder { color: var(--v2-ink-3); }
.compose .ci:focus, .replybox .ci:focus { border-color: var(--v2-gold); box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.16); }
.compose .cactions { display: none; justify-content: flex-end; margin-top: 8px; }
.compose .cwrap:focus-within .cactions, .compose .cwrap.typed .cactions { display: flex; }
.cmlist { display: flex; flex-direction: column; }
.cmempty { padding: 26px 10px; text-align: center; font-size: 14px; color: var(--v2-ink-3); }
.cmempty i { display: block; margin-bottom: 10px; font-size: 22px; color: var(--v2-gold); }
.cm { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--v2-edge); }
.cmlist > .cm:last-child { border-bottom: 0; }
.cm .av { width: 38px; height: 38px; font-size: 12.5px; border: 1.5px solid var(--v2-gold); }
.cm .body { flex: 1; min-width: 0; }
.cm .ch { display: flex; align-items: baseline; gap: 4px 8px; flex-wrap: wrap; }
.cm .ch .who { font-family: var(--v2-font-display); font-size: 13.5px; font-weight: 700; color: var(--v2-ink); }
.cm .ch .tm { font-size: 12px; font-weight: 600; color: var(--v2-ink-3); }
.cm .tx { margin-top: 4px; font-size: 14.5px; line-height: 1.6; color: var(--v2-ink-2); white-space: pre-wrap; overflow-wrap: anywhere; max-width: 80ch; max-height: none; overflow: visible; padding: 0; border: 0; border-radius: 0; background: none; display: block; }
.cm .react { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin: 4px 0 -4px -10px; }
.cm .rb { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 10px; border: 0; border-radius: 999px; background: none; font-size: 12.5px; font-weight: 700; color: var(--v2-ink-3); transition: color 0.15s, background 0.15s; }
.cm .rb:hover { color: var(--v2-ink); background: rgba(122, 142, 192, 0.12); }
.cm .rb.amen.on { color: var(--v2-gold); }
.cm .rb b { font-weight: 800; }
.replies { display: flex; flex-direction: column; margin-top: 8px; padding-left: 14px; border-left: 2px solid var(--v2-edge-gold); }
.replies .cm { padding: 10px 0; }
.replies .cm:last-child { border-bottom: 0; }
.replies .cm .av { width: 30px; height: 30px; font-size: 10.5px; }
.replybox { display: flex; gap: 8px; margin-top: 10px; }
.replybox .ci { flex: 1; min-width: 0; }
.replybox .post { flex: none; padding: 0 16px; }

/* phones: a comment preview card opens the comments as a bottom sheet */
.cm-peek { display: none; }
.cm-grab { display: none; }
.cm-backdrop { display: none; }
@media (max-width: 899px) {
    .cm-peek { display: block; width: 100%; padding: 14px 16px; text-align: left; border-radius: 14px; background: var(--v2-bg-2); border: 1px solid var(--v2-edge); }
    .cm-peek .h { display: flex; align-items: center; gap: 8px; font-family: var(--v2-font-display); font-size: 13px; font-weight: 800; color: var(--v2-ink); }
    .cm-peek .h span { color: var(--v2-ink-3); }
    .cm-peek .h i { margin-left: auto; color: var(--v2-ink-3); }
    .cmpk { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13.5px; color: var(--v2-ink-2); }
    .cmpk:empty { display: none; }
    .cmpk .av { width: 26px; height: 26px; font-size: 10px; border: 1px solid var(--v2-gold); }
    .cmpk .q { min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

    .comments { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1250; height: 78vh; height: 78dvh; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px calc(16px + var(--v2-safe-bottom)); border-radius: 18px 18px 0 0; background: var(--v2-bg-2); border-top: 1px solid var(--v2-edge-gold); transform: translateY(102%); visibility: hidden; transition: transform 0.32s var(--v2-ease), visibility 0s linear 0.32s; }
    body.cm-open .comments { transform: none; visibility: visible; transition: transform 0.32s var(--v2-ease); }
    .cm-grab { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; margin: 0 -16px 12px; padding: 12px 6px 10px 16px; background: var(--v2-bg-2); border-bottom: 1px solid var(--v2-edge); font-family: var(--v2-font-display); font-size: 14px; font-weight: 800; color: var(--v2-ink); }
    .cm-grab b { color: var(--v2-ink-3); }
    .cm-close { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--v2-ink-2); font-size: 17px; }
    .comments .cmhead h3, .comments .cmhead .n { display: none; }
    .comments .sortseg { margin-left: 0; }
    .cm-backdrop { display: block; position: fixed; inset: 0; z-index: 1240; background: rgba(6, 12, 46, 0.6); opacity: 0; pointer-events: none; transition: opacity 0.25s; }
    body.cm-open .cm-backdrop { opacity: 1; pointer-events: auto; }
    body.cm-open { overflow: hidden; }
    body.cm-open #pwaInstallBanner { display: none !important; }
}

/* ═══════════════ UP NEXT · SERIES ═══════════════ */
.pnl { position: relative; min-width: 0; }
.pnl-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-family: var(--v2-font-display); font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--v2-ink); }
.pnl-h i.lead { display: none; }
.pnl-h .r { margin-left: auto; letter-spacing: 0; text-transform: none; }
.auto { display: flex; align-items: center; gap: 8px; font-family: var(--v2-font-body); font-size: 12.5px; font-weight: 700; color: var(--v2-ink-2); }
.tgl { position: relative; width: 40px; height: 24px; flex: none; border-radius: 999px; background: var(--v2-gold); transition: background 0.2s; }
.tgl::after { content: ''; position: absolute; top: 3px; left: 19px; width: 18px; height: 18px; border-radius: 50%; background: var(--v2-bg); transition: left 0.2s var(--v2-ease), background 0.2s; }
.tgl.off { background: var(--v2-bg-4); }
.tgl.off::after { left: 3px; background: var(--v2-ink-2); }
.upfilters { display: flex; gap: 6px; margin: 0 0 14px; flex-wrap: wrap; }
.upfilters[hidden] { display: none; }
.upfilters button { height: 32px; padding: 0 13px; border-radius: 999px; background: var(--v2-bg-3); border: 1px solid var(--v2-edge); font-size: 12.5px; font-weight: 700; color: var(--v2-ink-2); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upfilters button.on { color: var(--v2-bg); background: var(--v2-ink); border-color: var(--v2-ink); }

#nextList { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.upcard { display: flex; gap: 12px; padding: 6px; margin: 0 -6px; border-radius: 12px; transition: background 0.15s; }
.upcard:hover { background: rgba(122, 142, 192, 0.1); }
.thumb { position: relative; width: 156px; flex: none; aspect-ratio: 16 / 9; overflow: hidden; display: grid; place-items: center; border-radius: 10px; color: var(--v2-ink-3); font-size: 16px; background: linear-gradient(150deg, var(--v2-bg-4), var(--v2-bg-3)); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .dur { position: absolute; right: 6px; bottom: 6px; z-index: 2; padding: 2px 7px; border-radius: 6px; font-family: var(--v2-font-display); font-size: 11px; font-weight: 700; color: var(--v2-ink); background: rgba(6, 12, 46, 0.86); }
.thumb .nb { display: none; }
.upinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-top: 2px; }
.upinfo .ut { font-family: var(--v2-font-display); font-size: 13.5px; font-weight: 700; line-height: 1.35; color: var(--v2-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.upcard:hover .ut { color: var(--v2-gold-hi); }
.upinfo .um { display: block; font-size: 12px; color: var(--v2-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upinfo .um b { color: var(--v2-ink-2); font-weight: 600; }
@media (min-width: 1500px) { .thumb { width: 176px; } }
@media (max-width: 380px) { .thumb { width: 128px; } }

/* the next item: a large rounded card */
.upcard.next { display: block; position: relative; padding: 0; margin: 0 0 12px; border-radius: 14px; overflow: hidden; }
.upcard.next:hover { background: none; }
.upcard.next .thumb { width: 100%; border-radius: 0; }
.upcard.next .thumb img { transition: transform 0.5s var(--v2-ease); }
.upcard.next:hover .thumb img { transform: scale(1.03); }
.upcard.next .thumb::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 40%, rgba(6, 12, 46, 0.95)); }
.upcard.next .thumb .nb { position: absolute; left: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 7px; border-radius: 999px; font-family: var(--v2-font-display); font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; color: var(--v2-gold); background: rgba(6, 12, 46, 0.86); }
.upcard.next .thumb .nb::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid rgba(245, 166, 35, 0.3); border-top-color: var(--v2-gold); border-right-color: var(--v2-gold); }
.upcard.next .thumb .dur { top: 12px; right: 12px; bottom: auto; }
.upcard.next .upinfo { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; padding: 0; }
.upcard.next .ut { font-size: 16px; font-weight: 800; }
.upcard.next .um { color: var(--v2-ink-2); }

.seriesbar { margin: 0 0 10px; padding: 12px 14px; border-radius: 12px; background: var(--v2-bg-2); border-left: 3px solid var(--v2-gold); }
.seriesbar .st { font-family: var(--v2-font-display); font-size: 14px; font-weight: 700; color: var(--v2-ink); }
.seriesbar .sm { margin-top: 3px; font-size: 12px; color: var(--v2-ink-3); }
.seriesbar .sm b { color: var(--v2-gold); }
.eplist { display: flex; flex-direction: column; gap: 2px; }
.ep { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 10px; border-radius: 10px; }
.ep:hover { background: rgba(122, 142, 192, 0.1); }
.ep.on { background: rgba(245, 166, 35, 0.1); }
.ep .no { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-family: var(--v2-font-display); font-size: 12px; font-weight: 800; color: var(--v2-ink-3); background: var(--v2-bg-3); }
.ep.on .no { color: var(--v2-bg); background: var(--v2-gold); }
.ep .et { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--v2-ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep.on .et { color: var(--v2-ink); font-weight: 700; }
.ep .ed { flex: none; font-size: 11.5px; font-weight: 700; color: var(--v2-ink-3); font-variant-numeric: tabular-nums; }

/* kept for the script (teacher follow mirror); its videos now live in the Up next filter */
#pnlCreator { display: none !important; }

/* load / error state */
.loadstate { position: relative; padding: 34px 22px; text-align: center; background: var(--v2-bg-2); border: 1px solid var(--v2-edge); }
.loadstate i { display: block; margin-bottom: 12px; font-size: 28px; color: var(--v2-gold); }
.loadstate h2 { margin: 0 0 6px; font-family: var(--v2-font-display); font-size: 18px; font-weight: 800; color: var(--v2-ink); }
.loadstate p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--v2-ink-3); }
.loadstate a { margin-top: 16px; }

/* toast (above the phone dock and the comment sheet) */
.mw-toast { position: fixed; left: 50%; bottom: calc(var(--v2-dock-h) + var(--v2-safe-bottom) + 14px); transform: translateX(-50%); z-index: 10001; max-width: calc(100vw - 32px); padding: 14px 20px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--v2-ink); background: var(--v2-bg-3); border: 1px solid var(--v2-edge-gold); }
@media (min-width: 900px) { .mw-toast { bottom: 28px; } }

/* legacy immersive phone overlays: kept for the script, never shown */
.mv-scrim-top, .mv-scrim-bot, .mv-top, .mv-play, .mv-actions, .mv-bottom, .mv-swipe, .sheetcap { display: none !important; }

@media (prefers-reduced-motion: reduce) {
    .controls, .p-top, .playwrap, .hair, .comments, .cm-backdrop, .track .thumb { transition: none !important; }
}

/* "Tap for sound": shown while the video plays muted (browsers start autoplay without sound) */
.soundchip { position: absolute; top: 12px; right: 12px; z-index: 7; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid rgba(245, 166, 35, 0.55); border-radius: 999px;
    background: rgba(6, 12, 46, 0.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #f0f2ff; font: 700 13px var(--v2-font-display); cursor: pointer; animation: sc-in .3s ease; }
.soundchip i { color: #f5a623; font-size: 14px; }
.soundchip:hover { border-color: #f5a623; }
@keyframes sc-in { from { opacity: 0; transform: translateY(-4px); } }
@media (min-width: 900px) { .soundchip { top: 18px; right: 20px; height: 42px; padding: 0 18px; font-size: 14px; } }
