/* ═══════════════════════════════════════════════════════════════════════════
   The video room: an edit suite. Dark, like every edit bay.
   ═══════════════════════════════════════════════════════════════════════════ */

.room-ov[data-type="edit"] {
  --bg: #0c0c0e; --bg-2: #131316; --ink: #ece8e2; --ink-2: #8f8a84; --ink-3: #64605b;
  --line: rgba(236, 232, 226, 0.12); --chip: rgba(255, 255, 255, 0.04); --chip-b: rgba(236, 232, 226, 0.12);
  --hdr-back: rgba(12, 12, 14, 0.84); --footer: #070708; --card: #17171a; --card-meta: #b3a294;
  --rec: #ff3b3b; --acc: #e8743b; --amb: 60, 60, 70;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: dark;
}
.room-ov[data-type="edit"] .rtotop { background: #f2eee8; color: #1a1818; }
/* the edit bay is always dark, so the light switch steps out of its header */
.room-ov[data-type="edit"] .ap { display: none; }
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-6%, 4%); } 50% { transform: translate(5%, -5%); } 75% { transform: translate(-4%, -3%); } 100% { transform: translate(3%, 5%); } }

/* ── the film leader that counts you in ── */
.room-ov[data-type="edit"] .room-ov__content.r-in:not(.e-go) .rin { opacity: 0; transform: translateY(30px); transition: none; }
.leader { position: fixed; inset: 0; z-index: 4; display: grid; place-items: center; background: radial-gradient(70% 70% at 50% 50%, #24211b, #0d0c0a); color: #ebe3d1; cursor: pointer; overflow: hidden; }
.leader::before { content: ""; position: absolute; inset: -50%; background-image: var(--grain); opacity: 0.2; animation: grain 0.45s steps(3) infinite; pointer-events: none; }
.leader::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 22vmin rgba(0, 0, 0, 0.85); animation: flicker 0.18s steps(2) infinite; pointer-events: none; }
@keyframes flicker { 50% { opacity: 0.82; } }
.leader__frame { position: relative; width: min(74vw, 620px); aspect-ratio: 4 / 3; display: grid; place-items: center; }
.leader__h, .leader__v { position: absolute; background: rgba(235, 227, 209, 0.45); }
.leader__h { left: -20vw; right: -20vw; top: 50%; height: 1px; }
.leader__v { top: -20vh; bottom: -20vh; left: 50%; width: 1px; }
.leader__dial { position: relative; width: 64%; aspect-ratio: 1; display: grid; place-items: center; }
.leader__sweep { position: absolute; inset: 8%; border-radius: 50%; background: conic-gradient(rgba(235, 227, 209, 0.3) var(--a, 0deg), rgba(235, 227, 209, 0.05) 0); }
.leader__dial svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #ebe3d1; stroke-width: 1.1; }
.leader__n { position: relative; font-family: var(--mono); font-size: clamp(110px, 20vmin, 230px); font-weight: 700; line-height: 1; }
.leader__tag { position: absolute; bottom: -6%; font-family: var(--mono); font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; opacity: 0.6; }
.leader.out { animation: leaderOut 0.62s var(--ease) forwards; pointer-events: none; }
@keyframes leaderOut { 0% { opacity: 1; } 16% { opacity: 1; filter: brightness(2.6); } 100% { opacity: 0; transform: scale(1.14); filter: brightness(1); } }

/* ── intro extras ── */
.room-ov[data-type="edit"] .rintro { position: relative; }
.e-rec { position: absolute; right: var(--gut); top: clamp(28px, 6vh, 70px); display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; }
.e-rec i { width: 9px; height: 9px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 12px var(--rec); animation: recBlink 1.2s steps(1) infinite; }
@keyframes recBlink { 50% { opacity: 0.15; } }
.e-rec b { font-weight: 500; color: var(--ink-2); }
.e-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.e-tools li { padding: 9px 17px; border-radius: 999px; border: 1px solid var(--line); font-size: 15px; font-weight: 520; color: color-mix(in srgb, var(--ink) 82%, transparent); }

/* ═══ the reel: a pinned edit, scrubbed by scrolling ═════════════════════ */
.reel { position: relative; --rows: 24px 24px 54px 42px 24px; }
.reel__pin { position: sticky; top: var(--hdr); height: calc(100vh - var(--hdr)); display: grid; grid-template-rows: minmax(0, 1fr) auto auto; overflow: hidden; }
/* the monitor lights the room in the colour of whatever is on it */
.reel__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(42% 52% at 64% 40%, rgba(var(--amb), 0.3), rgba(var(--amb), 0) 72%); }
.reel__top { position: relative; display: grid; grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr); grid-template-rows: minmax(0, 1fr); gap: clamp(24px, 3vw, 64px); align-items: center; padding-top: clamp(10px, 2.2vh, 26px); padding-bottom: clamp(12px, 2.4vh, 28px); min-height: 0; }

.reel__info { min-width: 0; max-height: 100%; overflow: hidden; }
.reel__k { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); }
.reel__k i { width: 34px; height: 1px; background: currentColor; }
.reel__k [data-f="n"] { color: var(--acc); transition-property: opacity, transform, color; }
.reel__t { margin-top: 16px; font-size: clamp(40px, 4.6vw, 96px); font-weight: 680; letter-spacing: -0.045em; line-height: 0.95; overflow-wrap: anywhere; }
.reel__sub { margin-top: 14px; font-size: clamp(16px, 1.2vw, 21px); line-height: 1.45; color: color-mix(in srgb, var(--ink) 72%, transparent); }
.reel__tags { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.reel__tags li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 520; }
.reel__btns { margin-top: clamp(20px, 3.4vh, 34px); display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; }
.reel__play .pill__ico svg { width: 15px; height: 15px; }
.reel__watch { font-weight: 600; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); transition: text-decoration-color 0.3s; }
.reel__watch:hover { text-decoration-color: currentColor; }
/* the panel rolls over to the next film: the old words leave upwards, the new ones arrive from below */
.reel__info [data-f] { transition: opacity 0.45s var(--ease) calc(var(--k, 0) * 45ms), transform 0.7s var(--ease) calc(var(--k, 0) * 45ms); }
.reel__info.out [data-f] { opacity: 0; transform: translateY(-14px); transition-duration: 0.16s; transition-delay: 0s; }
.reel__info.pre [data-f] { opacity: 0; transform: translateY(20px); transition: none; }

/* program monitor */
.reel__mon { height: 100%; min-height: 0; display: flex; align-items: center; justify-content: flex-end; }
.vmon { width: 100%; border-radius: 14px; background: #060607; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 80px -34px rgba(0, 0, 0, 0.85), 0 0 140px -30px rgba(var(--amb), 0.5); }
.vmon__bar, .vmon__foot { display: flex; align-items: center; gap: 14px; height: 32px; padding: 0 14px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; color: rgba(236, 232, 226, 0.58); white-space: nowrap; }
.vmon__live { display: inline-flex; align-items: center; gap: 7px; color: #ece8e2; font-weight: 700; }
.vmon__live i { width: 7px; height: 7px; border-radius: 50%; background: #3a3a3e; transition: background-color 0.3s, box-shadow 0.3s; }
.reel.is-playing .vmon__live i, .reel.is-scrub .vmon__live i { background: var(--rec); box-shadow: 0 0 10px var(--rec); }
.vmon__seq { margin-right: auto; overflow: hidden; text-overflow: ellipsis; }
.vmon__tc { color: #ece8e2; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; }
.vmon__foot > span:first-child { margin-right: auto; }
.vmon__screen { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.vmon__screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.vmon__screen::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.5); pointer-events: none; }
.vmon__grain { position: absolute; inset: -50%; background-image: var(--grain); opacity: 0.08; animation: grain 0.6s steps(3) infinite; pointer-events: none; }
/* safe-area guides appear while you scrub, as they would in an editor */
.vmon__safe { position: absolute; inset: 5%; border: 1px solid rgba(255, 255, 255, 0.6); opacity: 0; transition: opacity 0.6s; pointer-events: none; }
.vmon__safe::before { content: ""; position: absolute; inset: 5.6%; border: 1px dashed rgba(255, 255, 255, 0.5); }
.vmon__safe::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px; background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)) center / 1px 100% no-repeat, linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)) center / 100% 1px no-repeat; }
.reel.is-scrub:not(.is-playing) .vmon__safe { opacity: 0.4; transition-duration: 0.15s; }
.vmon__hint { position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); padding: 9px 16px; border-radius: 999px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 13.5px; font-weight: 560; white-space: nowrap; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: opacity 0.5s, transform 0.5s var(--ease); pointer-events: none; }
.reel.is-rolled .vmon__hint { opacity: 0; transform: translate(-50%, 10px); }
.vmon__state { position: absolute; left: 50%; top: 50%; width: 78px; height: 78px; margin: -39px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, 0.5); color: #fff; opacity: 0; pointer-events: none; }
.vmon__state svg { width: 28px; height: 28px; }
.vmon__state.flash { animation: stateFlash 0.75s var(--ease); }
@keyframes stateFlash { 0% { opacity: 0; transform: scale(0.7); } 25% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35); } }
.vmon__speed { position: absolute; right: 12px; top: 12px; padding: 5px 10px; border-radius: 6px; background: rgba(0, 0, 0, 0.62); color: #fff; font-family: var(--mono); font-size: 13px; font-weight: 700; opacity: 0; transition: opacity 0.3s; }
.vmon__speed.on { opacity: 1; }
.vmon__meters { display: grid; gap: 3px; width: 92px; }
.vmon__meters i { display: block; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.vmon__meters b { display: block; height: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, #3ddc84 0 62%, #f5d547 62% 84%, #ff4d4d 84%); background-size: 92px 100%; }

/* timeline */
.nle { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr); background: #0f0f12; border-top: 1px solid rgba(255, 255, 255, 0.08); border-bottom: 1px solid rgba(255, 255, 255, 0.08); user-select: none; -webkit-user-select: none; }
.nle__heads { display: grid; grid-template-rows: var(--rows); border-right: 1px solid rgba(255, 255, 255, 0.08); font-family: var(--mono); font-size: 11px; font-weight: 700; color: rgba(236, 232, 226, 0.55); }
.nle__heads span { display: flex; align-items: center; padding-left: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.nle__view { position: relative; overflow: hidden; cursor: grab; touch-action: pan-y; }
.nle__view.drag { cursor: grabbing; }
.nle__view::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 6px, transparent 6px 12px); }
.nle__view::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; background: linear-gradient(90deg, #0f0f12, rgba(15, 15, 18, 0) 7%, rgba(15, 15, 18, 0) 93%, #0f0f12); }
.nle__wrap { position: relative; z-index: 1; display: grid; grid-template-rows: var(--rows); width: calc(var(--len) * var(--z, 100) * 1px); background: #141418; will-change: transform; }
.nle__lane { position: relative; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.nle__ruler { position: relative; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.32) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: calc(var(--z, 100) * 1px) 8px, calc(var(--z, 100) * 0.25px) 4px; background-repeat: repeat-x; background-position: 0 100%; }
.nle__lb { position: absolute; left: calc(var(--s) * var(--z, 100) * 1px); top: 0; bottom: 0; padding: 4px 0 0 6px; border-left: 1px solid rgba(255, 255, 255, 0.45); font-family: var(--mono); font-size: 10px; line-height: 1; color: rgba(236, 232, 226, 0.5); white-space: nowrap; }
.nle__c { position: absolute; top: 3px; bottom: 3px; left: calc(var(--s) * var(--z, 100) * 1px); width: calc(var(--d) * var(--z, 100) * 1px - 2px); border-radius: 5px; overflow: hidden; display: flex; align-items: flex-start; font-size: 11px; font-weight: 600; color: #fff; }
.nle__c > span { position: relative; z-index: 1; max-width: 100%; padding: 3px 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.nle__c canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.nle__v1 .nle__c { background: color-mix(in srgb, var(--a) 55%, #000); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--a) 75%, #fff); cursor: pointer; filter: saturate(0.6) brightness(0.72); transition: filter 0.4s, box-shadow 0.4s; }
.nle__v1 .nle__c canvas { opacity: 0.85; }
.nle__v1 .nle__c > span { background: color-mix(in srgb, var(--a) 72%, #000); border-radius: 0 0 6px 0; }
.nle__v1 .nle__c b { font-family: var(--mono); font-weight: 700; opacity: 0.75; margin-right: 3px; }
.nle__v1 .nle__c.on { filter: none; box-shadow: inset 0 0 0 2px #fff, 0 0 18px -4px var(--a); }
.nle__v1 .nle__c:hover { filter: none; }
.nle__end { background: repeating-linear-gradient(135deg, #1b1b1f 0 6px, #232328 6px 12px); box-shadow: inset 0 0 0 1px #34343a; color: rgba(255, 255, 255, 0.6); }
.nle__tr { position: absolute; top: 3px; bottom: 3px; z-index: 2; left: calc(var(--s) * var(--z, 100) * 1px); width: calc(var(--d) * var(--z, 100) * 1px); border-radius: 4px;
  background: linear-gradient(to top right, transparent calc(50% - 0.6px), rgba(255, 255, 255, 0.85) 50%, transparent calc(50% + 0.6px)), rgba(150, 128, 255, 0.6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7); }
.nle__ti { background: #4b3a96; box-shadow: inset 0 0 0 1px #8a76e0; }
.nle__ti, .nle__fx, .nle__end { align-items: center; }
.nle__ti > span, .nle__fx > span, .nle__end > span { padding-block: 0; line-height: 1.1; }
.nle__mus { background: #11463b; box-shadow: inset 0 0 0 1px #2b8a70; }
.nle__mus > span { position: absolute; left: 0; top: 0; color: rgba(255, 255, 255, 0.75); }
.nle__fx { background: #1d5233; box-shadow: inset 0 0 0 1px #3c9a5f; }
.nle__ph { position: absolute; top: 0; bottom: 0; left: 50%; z-index: 5; width: 2px; margin-left: -1px; background: var(--rec); box-shadow: 0 0 12px rgba(255, 59, 59, 0.6); pointer-events: none; }
.nle__ph span { position: absolute; top: 0; left: 50%; width: 13px; height: 16px; transform: translateX(-50%); background: var(--rec); clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%); }

/* transport */
.reel__bar { position: relative; display: flex; align-items: center; justify-content: center; gap: 28px; height: 84px; }
.tp { display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.tp button { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); transition: background-color 0.3s, transform 0.5s var(--spring); }
.tp button:hover { background: rgba(255, 255, 255, 0.09); }
.tp svg { width: 16px; height: 16px; }
.tp .tp__play { width: 52px; height: 52px; background: var(--ink); color: var(--bg); }
.tp .tp__play:hover { background: var(--ink); transform: scale(1.06); }
.tp__play svg { width: 18px; height: 18px; }
.reel__keys { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.reel__keys span { width: 10px; }
.reel__keys kbd { font-family: var(--mono); font-size: 11px; padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--ink); }

/* ═══ section headings (bin, grade) ═════════════════════════════════════ */
.sec-h { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 2vw 4vw; align-items: end; margin-bottom: clamp(40px, 7vh, 84px); }
.sec-k { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2); }
.sec-k i { width: 42px; height: 1px; background: currentColor; }
.sec-h h2 { font-size: clamp(40px, 5.4vw, 108px); font-weight: 680; letter-spacing: -0.045em; line-height: 0.95; }
.sec-h > p:last-child { font-size: clamp(16px, 1.2vw, 20px); line-height: 1.55; color: color-mix(in srgb, var(--ink) 70%, transparent); }

/* ═══ the bin ═══════════════════════════════════════════════════════════ */
.bin { padding-top: clamp(100px, 15vh, 170px); }
.bin__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 7vh, 90px) clamp(24px, 3vw, 56px); }
.clip:nth-child(even) { margin-top: clamp(60px, 14vh, 170px); }
.clip__m { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; cursor: pointer; clip-path: inset(0 0 100% 0 round 18px); transition: clip-path 1.25s var(--ease); }
.clip.seen .clip__m { clip-path: inset(0 0 0 0 round 18px); }
.clip__px { position: absolute; inset: -7% 0; transform: translate3d(0, var(--py, 0px), 0); }
.clip__px canvas { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); transition: transform 1.8s var(--ease); }
.clip.seen .clip__px canvas { transform: scale(1); }
.clip__m::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); background-size: 180px; opacity: 0.06; pointer-events: none; }
.clip__sk { position: absolute; top: 0; bottom: 0; left: calc(var(--u, 0) * 100%); width: 2px; margin-left: -1px; z-index: 2; background: var(--rec); box-shadow: 0 0 10px rgba(255, 59, 59, 0.7); opacity: 0; transition: opacity 0.25s; }
.clip.skim .clip__sk { opacity: 1; }
.clip__tc, .clip__rt { position: absolute; z-index: 2; padding: 5px 9px; border-radius: 6px; background: rgba(0, 0, 0, 0.58); color: #fff; font-family: var(--mono); font-size: 12px; font-weight: 700; }
.clip__tc { left: 14px; top: 12px; opacity: 0; transition: opacity 0.3s; }
.clip.skim .clip__tc { opacity: 1; }
.clip__rt { right: 14px; bottom: 12px; }
.clip__pl { position: absolute; left: 50%; top: 50%; z-index: 2; width: 80px; height: 80px; margin: -40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform 0.6s var(--spring), opacity 0.3s; }
.clip__pl svg { width: 24px; height: 24px; margin-left: 4px; }
.clip__m:hover .clip__pl { transform: scale(1.08); }
.clip.skim .clip__pl { opacity: 0; transform: scale(0.75); }
.clip__i { padding-top: 24px; opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease) 0.25s, transform 1.1s var(--ease) 0.25s; }
.clip.seen .clip__i { opacity: 1; transform: none; }
.clip__k { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--card-meta); }
.clip__k b { color: var(--a); }
.clip h3 { margin-top: 12px; font-size: clamp(28px, 2.5vw, 46px); font-weight: 660; letter-spacing: -0.035em; line-height: 1.02; }
.clip__s { margin-top: 6px; font-size: clamp(15px, 1.1vw, 18px); color: color-mix(in srgb, var(--ink) 74%, transparent); }
.clip__d { margin-top: 16px; max-width: 40em; font-size: clamp(15px, 1.08vw, 18px); line-height: 1.62; color: color-mix(in srgb, var(--ink) 62%, transparent); }
.clip .tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.clip .tags li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 520; }
.clip__r { margin-top: 16px; display: flex; gap: 12px; font-size: 14.5px; }
.clip__r span { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); padding-top: 2px; }
.clip__live { display: inline-block; margin-top: 16px; font-weight: 600; text-underline-offset: 5px; }

/* ═══ the grade ═════════════════════════════════════════════════════════ */
.grade { padding-top: clamp(110px, 17vh, 210px); }
.ba { position: relative; aspect-ratio: 16 / 9; max-height: 80vh; margin-inline: auto; border-radius: 20px; overflow: hidden; background: #000; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; --x: 50%; }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__log { filter: saturate(0.36) contrast(0.64) brightness(1.12) sepia(0.08); }
.ba__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--x)); }
.ba__after .ba__img { transition: opacity 0.7s var(--ease); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 22px rgba(0, 0, 0, 0.55); pointer-events: none; }
.ba__h { position: absolute; top: 50%; left: var(--x); width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #111; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); transition: transform 0.5s var(--spring); }
.ba__h svg { width: 24px; height: 24px; }
.ba:hover .ba__h { transform: scale(1.08); }
.ba__lbl { position: absolute; top: 16px; padding: 7px 12px; border-radius: 8px; background: rgba(0, 0, 0, 0.58); color: #fff; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: none; }
.ba__l { left: 16px; }
.ba__r { right: 16px; }
.ba__r b { font-weight: 700; color: #ffd8a8; }
.grade__ctl { margin-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.looks { display: flex; flex-wrap: wrap; gap: 10px; }
.look { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 8px; border-radius: 999px; border: 1px solid var(--line); font-size: 15px; font-weight: 560; white-space: nowrap; transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.look i { width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.look:hover { border-color: color-mix(in srgb, var(--ink) 40%, transparent); }
.look.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.wheels { display: flex; gap: clamp(16px, 2.2vw, 36px); }
.wheel { display: grid; justify-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.wheel__disc { position: relative; width: clamp(76px, 6.4vw, 110px); aspect-ratio: 1; border-radius: 50%; margin-bottom: 6px;
  background: radial-gradient(closest-side, rgba(22, 22, 25, 1) 10%, rgba(22, 22, 25, 0.82) 48%, rgba(22, 22, 25, 0.18) 100%), conic-gradient(#ff4d4d, #ffd24d, #6bff6b, #4dffff, #4d6bff, #ff4dff, #ff4d4d);
  box-shadow: inset 0 0 0 5px #0c0c0e, 0 0 0 1px var(--line); }
.wheel__disc::before, .wheel__disc::after { content: ""; position: absolute; background: rgba(255, 255, 255, 0.16); }
.wheel__disc::before { left: 50%; top: 14%; bottom: 14%; width: 1px; }
.wheel__disc::after { top: 50%; left: 14%; right: 14%; height: 1px; }
.wheel__puck { position: absolute; z-index: 1; left: calc(50% + var(--px, 0%)); top: calc(50% + var(--py, 0%)); width: 14px; height: 14px; margin: -7px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 0 12px rgba(255, 255, 255, 0.55); transition: left 1s var(--spring), top 1s var(--spring); }
.wheel__v { color: var(--ink); font-size: 10.5px; letter-spacing: 0.02em; text-transform: none; }
.grade__fx { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ═══ the player ════════════════════════════════════════════════════════ */
.vp { position: fixed; inset: 0; z-index: 97; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; padding: 14px clamp(16px, 4vw, 60px) 24px; background: rgba(6, 6, 8, 0.96); color: #ece7e1; opacity: 0; transition: opacity 0.35s var(--ease); --rec: #ff3b3b; }
.vp[hidden] { display: none; }
.vp.on { opacity: 1; }
.vp__top { display: flex; justify-content: space-between; align-items: center; min-height: 58px; }
.vp__k { font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(236, 231, 225, 0.6); }
.vp__x { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #ece7e1; background: rgba(40, 40, 46, 0.7); border: 1px solid rgba(255, 255, 255, 0.14); transition: transform 0.5s var(--spring); }
.vp__x svg { width: 22px; height: 22px; }
.vp__x:hover { transform: rotate(90deg); }
.vp__stage { display: grid; place-items: center; min-height: 0; }
.vp__scr { position: relative; width: min(100%, calc((100vh - 250px) * 16 / 9)); aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9); transform: scale(0.95); transition: transform 0.7s var(--ease); cursor: pointer; }
.vp.on .vp__scr { transform: none; }
.vp__scr canvas, .vp__scr video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.vp.is-video .vp__scr canvas { display: none; }
.vp__big { position: absolute; left: 50%; top: 50%; width: 86px; height: 86px; margin: -43px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.25); opacity: 0; transform: scale(0.85); transition: opacity 0.3s, transform 0.5s var(--spring); pointer-events: none; }
.vp__big svg { width: 28px; height: 28px; margin-left: 4px; }
.vp.paused .vp__big { opacity: 1; transform: none; pointer-events: auto; }
.vp__ctl, .vp__cap { width: min(100%, calc((100vh - 250px) * 16 / 9)); margin: 0 auto; }
.vp__ctl { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.vp__pp { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #ece7e1; color: #111; }
.vp__pp svg { width: 16px; height: 16px; }
.vp__tc, .vp__len { flex: none; font-family: var(--mono); font-size: 13px; color: rgba(236, 231, 225, 0.8); }
.vp__bar { position: relative; flex: 1; height: 28px; cursor: pointer; touch-action: none; border-radius: 6px; }
.vp__bar::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.18); }
.vp__fill { position: absolute; left: 0; top: 12px; height: 4px; width: calc(var(--p, 0) * 100%); border-radius: 4px; background: var(--rec); }
.vp__knob { position: absolute; top: 7px; left: calc(var(--p, 0) * 100%); width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); transition: transform 0.3s var(--spring); }
.vp__bar:hover .vp__knob { transform: scale(1.25); }
.vp__nav { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; color: #ece7e1; background: rgba(40, 40, 46, 0.7); border: 1px solid rgba(255, 255, 255, 0.14); }
.vp__nav[hidden] { display: none; }
.vp__cap { margin-top: 14px; }
.vp__cap h3 { font-size: clamp(22px, 2vw, 32px); font-weight: 660; letter-spacing: -0.03em; }
.vp__cap p { margin-top: 4px; color: rgba(236, 231, 225, 0.6); font-size: 15px; }

/* ═══ small screens ═════════════════════════════════════════════════════ */
@media (max-width: 1280px) {
  .reel__keys { display: none; }
}
@media (max-width: 900px) and (max-height: 760px) {
  .reel__tags { display: none; }
}
@media (max-width: 900px) and (max-height: 640px) {
  .reel__btns, .reel__sub { display: none; }
}
/* short laptop screens: the monitor keeps its room, the panel says less */
@media (max-height: 780px) and (min-width: 901px) {
  .reel__tags { display: none; }
  .reel__t { font-size: clamp(34px, 3.8vw, 72px); }
}
@media (max-height: 640px) and (min-width: 901px) {
  .reel { --rows: 20px 20px 46px 34px 20px; }
  .reel__sub { display: none; }
  .reel__btns { margin-top: 18px; }
}
@media (max-width: 900px) {
  .e-rec { position: static; margin-top: 18px; }
  .reel { --rows: 18px 18px 42px 30px; }
  .reel__top { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; align-items: start; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
  .reel__mon { order: -1; height: auto; justify-content: center; }
  .reel__glow { background: radial-gradient(70% 40% at 50% 22%, rgba(var(--amb), 0.3), rgba(var(--amb), 0) 72%); }
  .reel__k { font-size: 11px; gap: 10px; }
  .reel__k i { width: 22px; }
  .reel__t { margin-top: 8px; font-size: clamp(30px, 8.4vw, 46px); }
  .reel__sub { margin-top: 6px; font-size: 14.5px; }
  .reel__tags { margin-top: 14px; }
  .reel__tags li { padding: 6px 12px; font-size: 13px; }
  .reel__btns { margin-top: 16px; }
  .reel__play { display: none; }
  /* the reel has its own way back to the start, so the round back-to-top steps aside while it's on screen */
  .room-ov.reel-on .rtotop.on { opacity: 0; transform: translateY(20px); pointer-events: none; }
  .vmon { border-radius: 10px; }
  .vmon__bar, .vmon__foot { height: 26px; gap: 10px; padding: 0 10px; font-size: 10px; }
  .vmon__tc { font-size: 12px; }
  .vmon__seq { display: none; }
  .vmon__bar .vmon__live { margin-right: auto; }
  .vmon__meters { width: 60px; }
  .vmon__hint { font-size: 12px; padding: 7px 12px; }
  .nle { grid-template-columns: 40px minmax(0, 1fr); }
  .nle__heads span { padding-left: 10px; font-size: 10px; }
  .nle__heads span:last-child, .nle__a2 { display: none; }
  .nle__c { font-size: 10px; }
  .reel__bar { height: 78px; justify-content: flex-end; padding-right: 16px; }
  .tp .tp__step { display: none; }
  .tp button { width: 40px; height: 40px; }
  .tp .tp__play { width: 48px; height: 48px; }
  .sec-h { grid-template-columns: minmax(0, 1fr); }
  .bin__grid { grid-template-columns: minmax(0, 1fr); }
  .clip:nth-child(even) { margin-top: 0; }
  .clip__m { border-radius: 14px; clip-path: inset(0 0 100% 0 round 14px); }
  .clip.seen .clip__m { clip-path: inset(0 0 0 0 round 14px); }
  .clip__pl { width: 64px; height: 64px; margin: -32px; }
  .ba { border-radius: 14px; }
  .ba__lbl { top: 10px; font-size: 10px; padding: 5px 8px; }
  .ba__l { left: 10px; } .ba__r { right: 10px; }
  .ba__h { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
  .grade__ctl { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .wheels { gap: 6px; }
  .wheel { min-width: 0; }
  .wheel__v { font-size: 9px; letter-spacing: -0.02em; }
  .looks { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); }
  .looks::-webkit-scrollbar { display: none; }
  .wheels { justify-content: space-around; }
  .vp { padding: 10px 14px 18px; }
  .vp__scr, .vp__ctl, .vp__cap { width: 100%; }
  .vp__ctl { flex-wrap: wrap; gap: 12px; }
  .vp__bar { order: 5; flex-basis: 100%; }
  .vp__len { margin-right: auto; }
}

/* ── On air: the channels, on vertical broadcast monitors ── */
.chans { padding-top: clamp(100px, 15vh, 170px); }
.chans__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: clamp(28px, 4vw, 64px); }
.chn { display: grid; grid-template-columns: minmax(180px, 0.9fr) 1fr; gap: clamp(20px, 2.6vw, 40px); align-items: center; opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); }
.chn.in { opacity: 1; transform: none; }
.chn + .chn { transition-delay: 0.12s; }
.chn__mon { border-radius: 22px; padding: 10px; background: #0d0d0f; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.chn__bar, .chn__foot { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 9px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(243, 239, 233, 0.55); }
.chn__foot { padding: 9px 6px 2px; text-transform: none; letter-spacing: 0.04em; }
.chn__air { display: inline-flex; align-items: center; gap: 7px; color: #ff5a4f; font-weight: 700; }
.chn__air i { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.6); animation: chnTally 1.6s infinite; }
@keyframes chnTally { 0%, 100% { opacity: 1; box-shadow: 0 0 10px 2px rgba(255, 59, 48, 0.55); } 50% { opacity: 0.45; box-shadow: none; } }
.chn__scr { position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #000; }
.chn__cv, .chn__ifr { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.chn__ifr { z-index: 2; background: #000; }
.chn__play { position: absolute; left: 50%; bottom: 14%; z-index: 3; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: #111; font: 600 13px Onest, sans-serif; cursor: pointer; white-space: nowrap; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6); transition: transform 0.4s var(--spring); }
.chn__play:hover { transform: translateX(-50%) scale(1.05); }
.chn__play svg { width: 18px; height: 18px; }
.chn__k { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--a); }
.chn__k i { width: 32px; height: 1px; background: currentColor; }
.chn__t { margin: 0 0 22px; font-size: clamp(34px, 3.6vw, 64px); font-weight: 680; letter-spacing: -0.04em; line-height: 0.95; }
.ch-sts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 6px 26px; margin-bottom: 28px; }
.ch-st b { display: block; font-size: clamp(26px, 2.4vw, 40px); font-weight: 650; letter-spacing: -0.03em; }
.ch-st span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.chn__go { text-decoration: none; }
@media (max-width: 640px) {
  .chn { grid-template-columns: 1fr; }
  .chn__mon { max-width: 300px; }
  .ch-sts { gap: 6px 18px; }
}
@media (prefers-reduced-motion: reduce) { .chn { opacity: 1; transform: none; } .chn__air i { animation: none; } }

/* the real TikTok profile inside the monitor; the drawn feed stays underneath until it loads */
.chn__tk { position: absolute; inset: 0; z-index: 2; overflow-y: auto; overflow-x: hidden; opacity: 0; transition: opacity 0.6s var(--ease); background: #fff; scrollbar-width: none; }
.chn__tk::-webkit-scrollbar { display: none; }
.chn__scr.is-live .chn__tk { opacity: 1; }
.chn__tk .tiktok-embed { margin: 0 !important; }
.chn__tk iframe { display: block; width: 100% !important; min-width: 0 !important; }
.chn__mon { min-width: 300px; }
.chn { grid-template-columns: minmax(300px, 340px) 1fr; }
@media (max-width: 640px) { .chn { grid-template-columns: 1fr; } .chn__mon { max-width: 340px; } }
.ch-sts { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.ch-st b { font-size: clamp(24px, 2vw, 34px); }
/* once the real profile is in, the monitor fits it instead of leaving a white gap */
.chn__scr.is-live { aspect-ratio: auto; }
.chn__scr.is-live .chn__tk { position: relative; inset: auto; }
.chn__scr.is-live .chn__cv { display: none; }
