/* ═══════════════════════════════════════════════════════════════
   MEDIA OVERLAY — lower thirds, logo, GRV verse and the intro/outro
   cards a video carries in metadata.edit (the video studio).
   Drawn over the watch page's player and the studio's preview by
   /js/media-overlay.js. Sized in cqw (1% of the picture's width), as
   the broadcast studio's overlays (studio-v3.js), so every size of
   player matches. Deep blue #060c2e + gold #f5a623 only; rounded.
   ═══════════════════════════════════════════════════════════════ */
.mo-layer { position: absolute; inset: 0; z-index: 2; container-type: inline-size; pointer-events: none; overflow: hidden; font-family: 'Plus Jakarta Sans', sans-serif; color: #f0f2ff; }
.mo-layer.mo-carding { z-index: 7; pointer-events: auto; }
.mo-layer * { box-sizing: border-box; }
.mo { position: absolute; z-index: 3; transition: opacity .35s ease, transform .35s cubic-bezier(.16, 1, .3, 1); }
.mo.off { opacity: 0 !important; transform: translateY(1.2cqw); pointer-events: none; }
.mo-still .mo { transition: none; }

/* lower third — the studio's plate (gold bar + name + title), rounded */
.mo-l3 { display: flex; align-items: stretch; max-width: 54cqw; border-radius: .9cqw; overflow: hidden; box-shadow: 0 .6cqw 2.4cqw rgba(2, 6, 30, .45); }
.mo-l3 .bar { width: .7cqw; flex: none; background: #f5a623; }
.mo-l3 .txt { min-width: 0; padding: 1.2cqw 2.2cqw 1.3cqw 2cqw; background: rgba(6, 12, 46, .9); }
.mo-l3 b { display: block; font: 800 2.7cqw/1.2 'Sora', sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mo-l3 small { display: block; margin-top: .3cqw; font: 700 1.5cqw/1.3 'Sora', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #f5a623; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mo-l3.s-light .txt { background: rgba(240, 242, 255, .96); color: #060c2e; }
.mo-l3.s-light small { color: #c47f0e; }
.mo-l3.s-gold .txt { background: linear-gradient(180deg, #ffc964, #f5a623); color: #060c2e; }
.mo-l3.s-gold small { color: #060c2e; }
.mo-l3.s-gold .bar { background: #060c2e; }
.mo-l3.p-bl { left: 4cqw; bottom: 3.6cqw; }
.mo-l3.p-br { right: 4cqw; bottom: 3.6cqw; }
.mo-l3.p-tl { left: 4cqw; top: 4cqw; }

/* logo / watermark — height = size/12.8 cqw, as the studio */
.mo-logo { --lg: 5cqw; display: flex; align-items: center; gap: calc(var(--lg) * .22); font: 800 calc(var(--lg) * .42) 'Sora', sans-serif; letter-spacing: .12em; color: #f0f2ff; text-shadow: 0 1px 6px rgba(2, 6, 30, .55); white-space: nowrap; }
.mo-logo .mk { width: var(--lg); height: var(--lg); flex: none; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #ffc964, #f5a623); color: #060c2e; font-size: calc(var(--lg) * .56); text-shadow: none; overflow: hidden; }
.mo-logo .mk.fel { background: #16277a; border: calc(var(--lg) * .06) solid #f5a623; color: #f5a623; font: 800 calc(var(--lg) * .34) 'Sora', sans-serif; letter-spacing: 0; }
.mo-logo .mk img { width: 100%; height: 100%; object-fit: cover; }
.mo-logo > img { height: var(--lg); width: auto; max-width: 32cqw; object-fit: contain; display: block; }
.mo-logo.c-tl { top: 3cqw; left: 3cqw; }
.mo-logo.c-tr { top: 3cqw; right: 3cqw; }
.mo-logo.c-bl { bottom: 3cqw; left: 3cqw; }
.mo-logo.c-br { bottom: 3cqw; right: 3cqw; }

/* GRV verse — corner card (bottom right) */
.mo-verse { right: 3cqw; bottom: 3cqw; width: 37cqw; padding: 1.5cqw 2cqw 1.8cqw; border-radius: 1.4cqw; background: rgba(6, 12, 46, .93); border: 1px solid rgba(245, 166, 35, .45); box-shadow: inset 0 .35cqw 0 #f5a623, 0 .6cqw 2.4cqw rgba(2, 6, 30, .45); }
.mo-verse .vh { display: flex; align-items: center; gap: .9cqw; font: 800 1.45cqw 'Sora', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #f5a623; }
.mo-verse .vh i { font-size: 1.5cqw; }
.mo-verse .vh span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mo-verse .vh em { font-style: normal; padding: .2cqw .8cqw; border-radius: 99px; background: rgba(245, 166, 35, .16); }
.mo-verse p { margin: .8cqw 0 0; font: italic 500 1.85cqw/1.5 'Plus Jakarta Sans', sans-serif; color: #f0f2ff; }
.mo-verse.j p, .mo-full.j .sc-v { color: #ffd9a0; }

/* GRV verse — full screen (logo and lower third stay on top) */
.mo-full { inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 8cqw 9cqw; text-align: center;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(32, 64, 200, .42), transparent 70%), #060c2e; }
.mo-full.off { transform: none; }
.mo-full .fr { position: absolute; inset: 2.6cqw; border: 1px solid rgba(245, 166, 35, .28); border-radius: 2cqw; }
.mo-full .sc-in { position: relative; max-width: 76cqw; }
.mo-full .sc-eb { display: inline-flex; align-items: center; gap: 1.4cqw; font: 800 1.45cqw 'Sora', sans-serif; letter-spacing: .22em; text-transform: uppercase; color: #f5a623; }
.mo-full .sc-eb::before, .mo-full .sc-eb::after { content: ''; width: 5cqw; height: 1px; background: rgba(245, 166, 35, .45); }
.mo-full .sc-v { margin: 2cqw 0 0; font: 600 3.3cqw/1.5 'Plus Jakarta Sans', sans-serif; color: #f0f2ff; text-wrap: balance; }
.mo-full .sc-ref { margin-top: 2cqw; font: 800 2cqw 'Sora', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #f5a623; }

/* intro / outro house cards */
.mo-card { inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center; padding: 6cqw; text-align: center;
    background: radial-gradient(ellipse 70% 70% at 50% 18%, rgba(32, 64, 200, .5), transparent 70%), radial-gradient(ellipse 60% 40% at 50% 110%, rgba(245, 166, 35, .28), transparent 70%), #060c2e; }
.mo-card.off { transform: scale(1.02); }
.mo-card .cd-in { display: flex; flex-direction: column; align-items: center; }
.mo-card .cd-mk { width: 9cqw; height: 9cqw; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #ffc964, #f5a623); color: #060c2e; font-size: 5cqw; box-shadow: 0 0 0 1.2cqw rgba(245, 166, 35, .12), 0 0 6cqw rgba(245, 166, 35, .35); }
.mo-card .cd-mk.sm { width: 6.5cqw; height: 6.5cqw; font-size: 3.6cqw; }
.mo-card .cd-eb { margin-top: 3cqw; font: 800 1.6cqw 'Sora', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #f5a623; }
.mo-card .cd-t { margin-top: 1.4cqw; max-width: 80cqw; font: 800 5cqw/1.12 'Sora', sans-serif; letter-spacing: -.02em; color: #f0f2ff; text-wrap: balance; }
.mo-card .cd-t.sm { font-size: 3.8cqw; margin-top: 2.4cqw; }
.mo-card .cd-by { display: inline-flex; align-items: center; gap: 1.2cqw; margin-top: 2.6cqw; font: 700 2cqw 'Plus Jakarta Sans', sans-serif; color: #b8c4e8; }
.mo-card .cd-av { width: 4.4cqw; height: 4.4cqw; flex: none; border-radius: 50%; display: grid; place-items: center; border: .3cqw solid #f5a623; background: #16277a; font: 800 1.5cqw 'Sora', sans-serif; color: #f5a623; overflow: hidden; }
.mo-card .cd-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.mo-card .cd-rows { display: flex; flex-direction: column; align-items: center; gap: 1.2cqw; margin-top: 3cqw; }
.mo-card .cd-row { display: inline-flex; align-items: center; gap: 1.4cqw; padding: 1.2cqw 2.6cqw 1.2cqw 1.4cqw; border-radius: 99px; background: rgba(15, 29, 90, .8); border: 1px solid rgba(245, 166, 35, .45); font: 700 1.9cqw 'Plus Jakarta Sans', sans-serif; color: #f0f2ff; text-align: left; text-decoration: none; cursor: pointer; }
.mo-card .cd-row:hover { border-color: #f5a623; }
.mo-card .cd-row > i { width: 4cqw; height: 4cqw; flex: none; border-radius: 50%; display: grid; place-items: center; background: #f5a623; color: #060c2e; font-size: 1.8cqw; }
.mo-card .cd-row small { display: block; font: 800 1.3cqw 'Sora', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #f5a623; }
.mo-card .cd-url { margin-top: 2.6cqw; font: 700 1.6cqw 'Sora', sans-serif; letter-spacing: .12em; color: #7a8ec0; }
@media (prefers-reduced-motion: reduce) { .mo { transition: none; } }
.player > .mo-layer.mo-carding { z-index: 5; }

/* watch page: quality menu for adaptive streaming (media-hls.js) */
.player .qualmenu { position: absolute; right: 12px; bottom: 64px; z-index: 9; display: flex; flex-direction: column; min-width: 150px; padding: 6px; border-radius: 16px; background: rgba(10, 20, 66, .96); border: 1px solid rgba(245, 166, 35, .45); box-shadow: 0 16px 40px rgba(2, 6, 30, .6); }
.player .qualmenu[hidden] { display: none; }
.player .qualmenu button { height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: #f0f2ff; font: 700 13px 'Plus Jakarta Sans', sans-serif; text-align: left; cursor: pointer; }
.player .qualmenu button:hover { background: rgba(122, 142, 192, .16); }
.player .qualmenu button.on { background: #f5a623; color: #060c2e; }
.player .qualmenu { max-height: calc(100% - 72px); overflow-y: auto; }
@media (max-width: 599px) {
    /* phones: the player is short, so the choices sit in a row of pills above the bar */
    .player .qualmenu { left: 10px; right: 10px; bottom: 58px; min-width: 0; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
    .player .qualmenu button { height: 32px; padding: 0 12px; font-size: 12px; text-align: center; }
}

/* GRV verse as a lower-third band, and as a scrolling column (timeline editor styles) */
.mo-vl3 { left: 4cqw; right: 4cqw; bottom: 3.6cqw; padding: 1.3cqw 2.2cqw 1.5cqw; border-radius: 1.2cqw; background: rgba(6, 12, 46, .92); border: 1px solid rgba(245, 166, 35, .45); box-shadow: inset .5cqw 0 0 #f5a623, 0 .6cqw 2.4cqw rgba(2, 6, 30, .45); }
.mo-vl3 .vh, .mo-vsc .vh { display: flex; align-items: center; gap: .9cqw; font: 800 1.4cqw 'Sora', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #f5a623; }
.mo-vl3 .vh span, .mo-vsc .vh span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mo-vl3 .vh em, .mo-vsc .vh em { font-style: normal; padding: .2cqw .8cqw; border-radius: 99px; background: rgba(245, 166, 35, .16); }
.mo-vl3 p { margin: .6cqw 0 0; font: italic 500 2cqw/1.45 'Plus Jakarta Sans', sans-serif; color: #f0f2ff; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mo-vsc { --vp: 0; top: 3cqw; bottom: 3cqw; left: 3cqw; width: 40cqw; display: flex; flex-direction: column; padding: 1.8cqw 2.2cqw; border-radius: 1.6cqw; background: rgba(6, 12, 46, .88); border: 1px solid rgba(245, 166, 35, .4); }
.mo-vsc .vw { position: relative; flex: 1; min-height: 0; margin-top: 1cqw; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); }
.mo-vsc p { position: absolute; left: 0; right: 0; top: 100%; margin: 0; font: 500 2.2cqw/1.6 'Plus Jakarta Sans', sans-serif; color: #f0f2ff; transform: translateY(calc(var(--vp) * (-100% - 44cqw))); }
.mo-vl3.j p, .mo-vsc.j p { color: #ffd9a0; }

/* title card (timeline editor): full screen, the house stage */
.mo-title { inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 8cqw 9cqw; text-align: center;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(32, 64, 200, .42), transparent 70%), #060c2e; }
.mo-title.off { transform: none; }
.mo-title .fr { position: absolute; inset: 2.6cqw; border: 1px solid rgba(245, 166, 35, .28); border-radius: 2cqw; }
.mo-title .tc-in { position: relative; max-width: 76cqw; display: grid; justify-items: center; }
.mo-title .tc-eb { display: inline-flex; align-items: center; gap: 1.4cqw; margin-bottom: 2.4cqw; font: 800 1.6cqw 'Sora', sans-serif; letter-spacing: .22em; text-transform: uppercase; color: #f5a623; }
.mo-title .tc-eb::before, .mo-title .tc-eb::after { content: ''; width: 5cqw; height: 1px; background: rgba(245, 166, 35, .45); }
.mo-title .tc-eb[hidden] { display: none; }
.mo-title .tc-t { font: 800 5cqw/1.2 'Sora', sans-serif; color: #f0f2ff; text-wrap: balance; }
.mo-title .tc-r { display: block; width: 8cqw; height: .4cqw; margin-top: 2cqw; border-radius: 99px; background: #f5a623; }

