/* NPC Benelux Live — design system
   Dark, cinematic, minimal. Brand accent from ifbbpro-npc.nl (NPC blue). */

@font-face { font-family: 'Mulish'; font-style: normal; font-weight: 300 900; font-display: swap; src: url(/static/fonts/mulish-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Mulish'; font-style: normal; font-weight: 300 900; font-display: swap; src: url(/static/fonts/mulish-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #06080c;
  --bg-2: #0b0f15;
  --surface: #10151d;
  --surface-2: #151c26;
  --surface-3: #1c2531;
  --line: rgba(208, 229, 233, .08);
  --line-2: rgba(208, 229, 233, .14);
  --text: #f3f6f8;
  --text-2: #a9b6c1;
  --text-3: #6f7d8a;
  --accent: #1aa8dd;
  --accent-2: #45bfeb;
  --accent-ink: #03141c;
  --accent-soft: rgba(26, 168, 221, .14);
  --ice: #d0e5e9;
  --live: #ff3b47;
  --ok: #34d399;
  --warn: #f5b93d;
  --bad: #ff5d68;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .7);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: 'Mulish', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --sidebar: 248px;
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 400 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p a, .callout a, .hint a, dd a, .auth-foot a { color: var(--accent-2); text-decoration: underline; text-decoration-color: rgba(69, 191, 235, .35); text-underline-offset: 3px; }
p a:hover, .callout a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
code, .mono { font-family: var(--mono); font-size: .86em; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--accent); color: var(--accent-ink); border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 16px; }
.icon { width: 18px; height: 18px; flex: none; }
.muted { color: var(--text-2); }
.txt-ok { color: var(--ok); } .txt-bad { color: var(--bad); } .txt-warn { color: var(--warn); } .txt-mute { color: var(--text-3); }
.nowrap { white-space: nowrap; }
.shell { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.kicker .icon { width: 14px; height: 14px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: baseline; gap: 7px; font-weight: 900; font-size: 19px; letter-spacing: -.01em; line-height: 1; white-space: nowrap; }
.logo b { font-weight: 900; color: #fff; letter-spacing: .02em; }
.logo span { font-weight: 300; color: var(--ice); letter-spacing: .04em; text-transform: uppercase; font-size: .78em; }
.logo em { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: 4px 6px 3px; border-radius: 4px; transform: translateY(-2px); }
.logo-sm { font-size: 16px; }
.logo-lg { font-size: 24px; }

/* ---------- Buttons ---------- */
.btn { --b-bg: var(--surface-3); --b-fg: var(--text); --b-line: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border: 1px solid var(--b-line); border-radius: 999px; background: var(--b-bg); color: var(--b-fg); font-weight: 700; font-size: 14px; line-height: 1; white-space: nowrap; transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease), opacity .18s; -webkit-tap-highlight-color: transparent; }
.btn:hover { --b-bg: #243040; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { --b-bg: var(--accent); --b-fg: var(--accent-ink); }
.btn-primary:hover { --b-bg: var(--accent-2); }
.btn-ghost { --b-bg: rgba(255, 255, 255, .06); --b-line: var(--line-2); }
.btn-ghost:hover { --b-bg: rgba(255, 255, 255, .12); }
.btn-quiet { --b-bg: transparent; --b-fg: var(--text-2); }
.btn-quiet:hover { --b-bg: rgba(255, 255, 255, .07); --b-fg: var(--text); }
.btn-danger { --b-bg: rgba(255, 93, 104, .12); --b-fg: #ff8a93; --b-line: rgba(255, 93, 104, .3); }
.btn-danger:hover { --b-bg: rgba(255, 93, 104, .22); }
.btn-danger-text { --b-fg: #ff8a93; } .btn-danger-text:hover { --b-bg: rgba(255, 93, 104, .12); --b-fg: #ffb1b7; }
.btn-ok-text { --b-fg: var(--ok); } .btn-ok-text:hover { --b-bg: rgba(52, 211, 153, .12); --b-fg: var(--ok); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; gap: 6px; }
.btn-sm .icon { width: 16px; height: 16px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn.is-loading { position: relative; color: transparent !important; }
.btn.is-loading::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid var(--accent-ink); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-done { --b-fg: var(--ok); }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); transition: background .15s, color .15s; list-style: none; }
.icon-btn::-webkit-details-marker { display: none; }
.icon-btn:hover, .icon-btn.is-on { background: rgba(255, 255, 255, .08); color: var(--text); }
.icon-btn:disabled { opacity: .3; cursor: default; background: transparent; }
.link-btn { border: 0; background: none; padding: 6px 0; color: var(--text-2); font-size: 14px; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .25); text-underline-offset: 4px; }
.link-btn:hover { color: var(--text); text-decoration-color: currentColor; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; background: rgba(255, 255, 255, .08); color: var(--text-2); vertical-align: middle; }
.badge-live { background: var(--live); color: #fff; }
.badge-recording { background: rgba(255, 59, 71, .16); color: #ff8a93; }
.badge-scheduled, .badge-enabled { background: var(--accent-soft); color: var(--accent-2); }
.badge-replay, .badge-ready, .badge-active, .badge-completed { background: rgba(52, 211, 153, .14); color: var(--ok); }
.badge-replay { background: rgba(255, 255, 255, .92); color: #06080c; }
.badge-processing, .badge-created, .badge-sandbox { background: rgba(245, 185, 61, .14); color: var(--warn); }
.badge-revoked, .badge-refunded, .badge-reversed, .badge-denied, .badge-error { background: rgba(255, 93, 104, .14); color: var(--bad); }
.badge-draft, .badge-ended, .badge-expired, .badge-empty, .badge-none { background: rgba(255, 255, 255, .07); color: var(--text-3); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.tag { display: inline-flex; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: rgba(255, 255, 255, .06); color: var(--text); white-space: nowrap; }
.tag-ticket { background: var(--accent-soft); color: var(--accent-2); }
.tag-stream, .tag-settings, .tag-admin { background: rgba(245, 185, 61, .12); color: var(--warn); }
.tag-event { background: rgba(52, 211, 153, .12); color: var(--ok); }
.chip { display: inline-block; padding: 2px 7px; margin: 2px 0; border-radius: 6px; background: var(--surface-3); color: var(--ice); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 7px; min-width: 0; align-content: start; }
.field > span { font-size: 13px; font-weight: 700; color: var(--text-2); }
.field > span em, .field > span .txt-ok { font-style: normal; font-weight: 600; color: var(--text-3); margin-left: 4px; }
.field > span .txt-ok { color: var(--ok); }
.field small, .hint { font-size: 12.5px; color: var(--text-3); line-height: 1.45; }
.hint { display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; }
.hint .icon { width: 15px; height: 15px; margin-top: 1px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  width: 100%; min-width: 0; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg-2); color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
textarea { resize: vertical; line-height: 1.5; min-height: 110px; }
input::placeholder, textarea::placeholder { color: #54616d; }
input:hover, select:hover, textarea:hover { border-color: rgba(208, 229, 233, .24); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26, 168, 221, .2); background: #0d1219; }
input[readonly] { background: var(--surface); }
select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9b6c1' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
input[type=datetime-local] { color-scheme: dark; }
input[type=number] { font-variant-numeric: tabular-nums; }
.input-affix { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg-2); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.input-affix:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26, 168, 221, .2); }
.input-affix i { display: grid; place-items: center; padding: 0 0 0 14px; font-style: normal; font-family: var(--mono); font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.input-affix input { border: 0 !important; box-shadow: none !important; background: transparent !important; padding-left: 4px !important; font-family: var(--mono); font-size: 13.5px; }
.code-input { font-family: var(--mono) !important; font-size: 26px !important; letter-spacing: .5em; text-align: center; padding-left: calc(14px + .25em) !important; min-height: 60px !important; }
.stack { display: grid; gap: 16px; }
.stack-lg { display: grid; gap: 20px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-tight { gap: 12px; }
.field-short { max-width: 280px; }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

/* Switch */
.switch { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); cursor: pointer; transition: border-color .15s, background .15s; }
.switch:hover { border-color: var(--line-2); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-ui { position: relative; width: 44px; height: 26px; flex: none; border-radius: 999px; background: #2a3441; transition: background .2s var(--ease); order: 2; margin-left: auto; }
.switch-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); transition: transform .2s var(--ease); }
.switch input:checked + .switch-ui { background: var(--accent); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch-text { display: grid; gap: 2px; }
.switch-text strong { font-size: 14.5px; font-weight: 700; }
.switch-text small { font-size: 13px; color: var(--text-3); }
.switch-text em { font-style: normal; color: var(--text-2); font-weight: 700; }

/* Choice cards */
.choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice-item { position: relative; cursor: pointer; }
.choice-item input { position: absolute; opacity: 0; }
.choice-item > span { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg-2); transition: border-color .15s, background .15s; }
.choice-item strong { font-size: 14.5px; }
.choice-item small { color: var(--text-3); font-size: 12.5px; }
.choice-item input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.choice-item input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Callouts & toasts ---------- */
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-bottom: 20px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); color: var(--text-2); font-size: 14px; }
.callout .icon { color: var(--accent-2); margin-top: 1px; }
.callout strong { color: var(--text); }
.callout-warn { border-color: rgba(245, 185, 61, .3); background: rgba(245, 185, 61, .07); }
.callout-warn .icon { color: var(--warn); }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; gap: 10px; width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(21, 28, 38, .96); backdrop-filter: blur(14px); box-shadow: var(--shadow); font-weight: 600; font-size: 14px; animation: toast-in .35s var(--ease); transition: opacity .25s, transform .25s; }
.toast > .icon { color: var(--ok); }
.toast span { flex: 1; }
.toast-close { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: var(--text-3); }
.toast-close:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.toast-close .icon { width: 15px; height: 15px; }
.toast.is-leaving { opacity: 0; transform: translateY(8px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Posters ---------- */
.poster-image, .poster-placeholder { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.poster-placeholder { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 9% 9% 10%; overflow: hidden; background: radial-gradient(120% 80% at 100% 0%, rgba(26, 168, 221, .35), transparent 55%), linear-gradient(160deg, #13212e 0%, #0a1119 60%, #06080c 100%); container-type: inline-size; }
.poster-placeholder::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 22px, rgba(255, 255, 255, .018) 22px 23px); }
.ph-mark { position: absolute; top: 6%; left: 8%; font-size: 28cqi; font-weight: 900; letter-spacing: -.04em; line-height: .9; color: rgba(255, 255, 255, .06); }
.ph-name { position: relative; font-size: max(13px, 10cqi); font-weight: 900; line-height: 1.05; letter-spacing: -.02em; text-transform: uppercase; color: #fff; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ph-foot { position: relative; font-size: max(9px, 3.6cqi); font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-2); }

/* =========================================================
   VIEWER SITE
   ========================================================= */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; background: linear-gradient(180deg, rgba(6, 8, 12, .85), rgba(6, 8, 12, 0)); transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.site-header.is-solid { background: rgba(6, 8, 12, .88); backdrop-filter: saturate(160%) blur(16px); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-2); transition: color .15s, background .15s; }
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current] { color: var(--text); }
.site-nav .nav-pill { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; background: rgba(255, 255, 255, .08); color: var(--text); }
.site-nav .nav-pill .icon { width: 15px; height: 15px; }
.site-main { min-height: 70vh; }

/* Buttons used on cinematic surfaces */
.btn-white { --b-bg: #fff; --b-fg: #05070a; }
.btn-white:hover { --b-bg: rgba(255, 255, 255, .82); }
.btn-white .icon { width: 20px; height: 20px; }
.btn-glass { --b-bg: rgba(109, 118, 128, .38); --b-fg: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-glass:hover { --b-bg: rgba(109, 118, 128, .55); }
.live-word { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.live-word i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px rgba(255, 59, 71, .25); animation: pulse 1.6s infinite; }
.txt-live { color: #ff6b74; font-weight: 700; }
.nav-live { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--live); vertical-align: 1px; animation: pulse 1.6s infinite; }

/* Billboard */
.billboard { position: relative; isolation: isolate; height: min(94vh, 880px); min-height: 600px; overflow: hidden; background: var(--bg); }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s var(--ease), visibility 1.1s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide-bg { position: absolute; inset: 0; z-index: -2; background: radial-gradient(70% 70% at 78% 30%, rgba(26, 168, 221, .22), transparent 65%), var(--bg); }
.slide-bg img { position: absolute; inset: -20%; width: 140%; height: 140%; max-width: none; object-fit: cover; filter: blur(80px) saturate(1.4) brightness(.45); opacity: .85; }
.slide-poster { position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: min(60vw, 980px); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%); mask-image: linear-gradient(90deg, transparent 0%, #000 42%); }
.slide-poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 0%, rgba(6, 8, 12, 0) 38%), linear-gradient(180deg, rgba(6, 8, 12, .6) 0%, rgba(6, 8, 12, 0) 22%); }
.slide-poster .poster-image, .slide-poster .poster-placeholder { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 20%; }
.slide-poster .poster-placeholder { padding: 12% 12% 22%; }
.slide.is-active .slide-poster .poster-image { animation: kenburns 18s ease-out both; }
@keyframes kenburns { from { transform: scale(1.1); } to { transform: scale(1); } }
.billboard::after { content: ''; position: absolute; inset: auto 0 0; height: 220px; z-index: 1; pointer-events: none; background: linear-gradient(0deg, var(--bg), rgba(6, 8, 12, 0)); }
/* 'safe' keeps the copy below the header if it is ever taller than the space available, instead of sliding up behind the logo. */
.slide-inner { position: relative; z-index: 2; height: 100%; display: flex; align-items: flex-end; align-items: safe flex-end; padding-top: 88px; padding-bottom: clamp(104px, 15vh, 170px); }
.slide-copy { max-width: 680px; }
.slide.is-active .slide-copy > * { animation: rise .9s var(--ease) both; }
.slide.is-active .slide-copy > :nth-child(2) { animation-delay: .06s; }
.slide.is-active .slide-copy > :nth-child(3) { animation-delay: .12s; }
.slide.is-active .slide-copy > :nth-child(4) { animation-delay: .18s; }
.slide.is-active .slide-copy > :nth-child(n+5) { animation-delay: .24s; }
.slide-kicker { font-size: 13px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 16px; }
/* Sized by the smaller of width and height so wide-but-short laptop screens don't get an oversized title. */
.slide-title { font-size: clamp(44px, min(5.2vw, 9.4vh), 84px); font-weight: 900; letter-spacing: -.04em; line-height: .98; text-wrap: balance; text-shadow: 0 4px 40px rgba(0, 0, 0, .4); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; padding-bottom: .08em; max-width: min(100%, 12.5em); }
.slide-title-long { max-width: min(100%, 11em); font-size: clamp(40px, min(4.1vw, 7.4vh), 66px); letter-spacing: -.035em; line-height: 1.02; }
.slide-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; margin-top: 20px; font-size: 15px; font-weight: 700; color: var(--ice); }
.slide-meta span + span::before { content: ''; display: inline-block; width: 4px; height: 4px; margin: 0 12px; border-radius: 50%; background: var(--text-3); vertical-align: middle; }
.slide-meta span:last-child, .hd { display: inline-flex; padding: 1px 6px; border: 1px solid rgba(208, 229, 233, .4); border-radius: 4px; font-size: 11px; letter-spacing: .06em; line-height: 1.4; }
.slide-meta span:last-child::before { display: none; }
.slide-meta span:nth-last-child(2) { margin-right: 12px; }
.slide-lead { margin-top: 16px; max-width: 540px; font-size: clamp(15.5px, 1.3vw, 18px); line-height: 1.6; color: rgba(243, 246, 248, .78); }
.slide-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.billboard-dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(64px, 9vh, 96px); display: flex; gap: 8px; }
.billboard-dots button { position: relative; width: 36px; height: 16px; padding: 0; border: 0; background: none; }
.billboard-dots i { position: absolute; left: 0; right: 0; top: 6px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.billboard-dots i::after { content: ''; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.billboard-dots .is-active i::after { transform: scaleX(1); }
.billboard.is-playing .billboard-dots .is-active i::after { animation: progress 8s linear both; }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.billboard-empty .slide-inner { align-items: center; padding-bottom: 0; }
.billboard-empty { background: radial-gradient(60% 60% at 70% 30%, rgba(26, 168, 221, .2), transparent 70%), var(--bg); height: 80vh; }

.countdown { display: flex; gap: 10px; margin-top: 24px; }
.countdown > div { display: grid; justify-items: center; min-width: 68px; padding: 10px 8px 8px; border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(10px); }
.countdown strong { font-size: 26px; font-weight: 900; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { margin-top: 4px; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.countdown.is-done { font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
.countdown-sm { justify-content: center; margin-top: 6px; }
.countdown-sm > div { min-width: 58px; padding: 8px 6px 6px; }
.countdown-sm strong { font-size: 22px; }

@media (min-width: 721px) and (max-height: 820px) {
  .slide-kicker { margin-bottom: 12px; }
  .slide-meta { margin-top: 14px; }
  .slide-lead { margin-top: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .countdown { margin-top: 18px; }
  .countdown > div { min-width: 62px; padding: 8px 8px 7px; }
  .countdown strong { font-size: 23px; }
  .slide-actions { margin-top: 22px; }
  .slide-actions .btn-lg { min-height: 48px; }
}

/* Rails */
.rails { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; margin-top: -56px; padding-bottom: 32px; }
.rails-more { margin-top: 24px; padding-bottom: 72px; }
.rail-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.rail-head h2 { font-size: clamp(19px, 1.7vw, 23px); font-weight: 800; letter-spacing: -.02em; }
.rail-head h2 span { margin-left: 10px; font-size: 14px; font-weight: 600; color: var(--text-3); letter-spacing: 0; }
.rail-nav { display: flex; gap: 6px; }
.rail-nav .icon-btn { background: rgba(255, 255, 255, .07); }
.rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(164px, 16.5vw, 244px); gap: clamp(12px, 1.3vw, 18px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 14px var(--gutter) 20px; max-width: 1440px; margin: 0 auto; scrollbar-width: none; }
.rail-track::-webkit-scrollbar { display: none; }
.card { scroll-snap-align: start; display: grid; gap: 12px; outline: none; }
.card-art { position: relative; border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 14px 30px -18px rgba(0, 0, 0, .9); transform: translateZ(0); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.card-art .poster-image { transition: transform .8s var(--ease), filter .45s; }
.card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 8, 12, .45) 0%, rgba(6, 8, 12, 0) 26%, rgba(6, 8, 12, 0) 60%, rgba(6, 8, 12, .55) 100%); opacity: .8; transition: opacity .35s; }
.card:hover .card-art, .card:focus-visible .card-art { transform: translateY(-6px) scale(1.02); box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 30px 50px -20px rgba(0, 0, 0, .95); }
.card:hover .poster-image { transform: scale(1.06); filter: brightness(1.08); }
.card:hover .card-shade { opacity: 1; }
.card-badge { position: absolute; top: 10px; left: 10px; }
.card-badge .badge:not(.badge-live):not(.badge-replay) { background: rgba(6, 8, 12, .7); color: var(--text); backdrop-filter: blur(8px); }
.card-play { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: #05070a; opacity: 0; transform: translateY(8px) scale(.85); transition: opacity .3s var(--ease), transform .3s var(--ease); box-shadow: 0 10px 30px rgba(0, 0, 0, .55); }
.card-play .icon { width: 19px; height: 19px; margin-left: 2px; }
.card:hover .card-play, .card:focus-visible .card-play { opacity: 1; transform: none; }
.card-body h3 { font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.card:hover .card-body h3 { color: #fff; }
.card-body p { margin-top: 4px; font-size: 13px; color: var(--text-3); }
.card-body i { font-style: normal; margin: 0 6px; opacity: .6; }

/* FAQ accordion */
.faq { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(28px, 5vw, 88px); align-items: start; padding-top: 56px; padding-bottom: 96px; }
.faq-intro { position: sticky; top: 104px; }
.faq-intro h2 { margin-top: 12px; font-size: clamp(26px, 2.6vw, 38px); font-weight: 900; letter-spacing: -.03em; line-height: 1.05; text-wrap: balance; }
.faq-intro p:not(.kicker) { margin-top: 14px; font-size: 15px; color: var(--text-3); line-height: 1.6; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 4px; cursor: pointer; list-style: none; font-size: clamp(15.5px, 1.25vw, 17.5px); font-weight: 700; letter-spacing: -.01em; color: var(--text); transition: color .15s; -webkit-tap-highlight-color: transparent; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-2); }
.faq-item summary:focus-visible { outline-offset: 0; }
.faq-icon { position: relative; width: 30px; height: 30px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .06); transition: background .2s, transform .3s var(--ease); }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--accent); color: var(--accent-ink); transform: rotate(180deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0); opacity: 0; }
.faq-item summary:hover .faq-icon { background: rgba(255, 255, 255, .12); }
.faq-item[open] summary:hover .faq-icon { background: var(--accent-2); }
.faq-answer { padding: 0 56px 22px 4px; }
.faq-answer p { max-width: 68ch; font-size: 15px; line-height: 1.7; color: var(--text-2); }
.faq-item[open] .faq-answer { animation: faq-in .35s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.footer-inner { display: flex; align-items: center; gap: 24px 40px; flex-wrap: wrap; padding-top: 32px; padding-bottom: 40px; font-size: 13px; color: var(--text-3); }
.footer-inner p { flex: 1 1 320px; }
.footer-inner nav { display: flex; gap: 20px; }
.footer-inner nav a:hover { color: var(--text); }

/* Watch page */
.theater { position: relative; isolation: isolate; overflow: hidden; padding: 92px var(--gutter) 36px; }
.theater-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 60% at 50% 38%, rgba(26, 168, 221, .2), transparent 70%), var(--bg); }
.theater-glow img { position: absolute; inset: -25%; width: 150%; height: 150%; max-width: none; object-fit: cover; filter: blur(100px) saturate(1.5) brightness(.55); opacity: .8; }
.theater-glow::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 8, 12, .5) 0%, rgba(6, 8, 12, 0) 30%, rgba(6, 8, 12, .2) 70%, var(--bg) 100%); }
.theater-inner { max-width: 1320px; margin: 0 auto; }
.player { position: relative; width: min(100%, calc((100vh - 150px) * 16 / 9)); aspect-ratio: 16 / 9; margin: 0 auto; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .08); }
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player-hud { position: absolute; z-index: 4; top: 16px; left: 16px; display: flex; gap: 8px; pointer-events: none; }
.hud-pill { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 7px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: rgba(6, 8, 12, .6); backdrop-filter: blur(10px); color: #fff; transition: opacity .6s; }
.hud-live { background: var(--live); }
.hud-live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; }
.hud-live.is-dim { opacity: .55; }
.hud-preview b { font-variant-numeric: tabular-nums; }
.player-toast { position: absolute; z-index: 6; top: 16px; left: 50%; display: flex; align-items: flex-start; gap: 12px; width: max-content; max-width: min(560px, calc(100% - 32px)); padding: 12px 10px 12px 16px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; background: rgba(14, 19, 26, .86); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7); font-size: 14px; line-height: 1.45; color: var(--text); opacity: 0; transform: translate(-50%, -10px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.player-toast.is-in { opacity: 1; transform: translate(-50%, 0); }
.player-toast p { flex: 1; padding-top: 1px; }
.player-toast-icon { display: grid; place-items: center; color: var(--accent-2); padding-top: 1px; }
.player-toast[data-tone=error] .player-toast-icon { color: var(--bad); }
.player-toast[data-tone=ok] .player-toast-icon { color: var(--ok); }
.player-toast-close { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border: 0; border-radius: 50%; background: none; color: var(--text-3); }
.player-toast-close:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.player-toast-close .icon { width: 15px; height: 15px; }
.player-loading { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; pointer-events: none; }
.spinner { width: 48px; height: 48px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: #fff; animation: spin .8s linear infinite; }
.paywall { position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; padding: 28px; text-align: center; isolation: isolate; animation: fade .5s var(--ease); }
.paywall-backdrop { position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 70% at 50% 40%, rgba(26, 168, 221, .2), transparent 70%), #05070a; }
.paywall-backdrop img { position: absolute; inset: -10%; width: 120%; height: 120%; max-width: none; object-fit: cover; filter: blur(34px) brightness(.42) saturate(1.3); transform: scale(1.05); }
.paywall-backdrop::after { content: ''; position: absolute; inset: 0; background: radial-gradient(65% 70% at 50% 50%, rgba(0, 0, 0, .15), rgba(0, 0, 0, .75)); }
.paywall-content { display: grid; justify-items: center; gap: 12px; max-width: 640px; }
.paywall-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ice); }
.paywall-kicker .txt-ok { display: inline-flex; align-items: center; gap: 6px; }
.paywall-kicker .icon { width: 16px; height: 16px; }
.paywall h2 { font-size: clamp(26px, 3.6vw, 48px); font-weight: 900; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
.paywall-sub { max-width: 460px; color: rgba(243, 246, 248, .72); font-size: clamp(14px, 1.2vw, 16px); }
.paywall-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }
@keyframes fade { from { opacity: 0; } }

.watch-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 80px); padding-top: 28px; padding-bottom: 40px; align-items: start; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; font-size: 13.5px; font-weight: 600; color: var(--text-3); transition: color .15s; }
.back-link:hover { color: var(--text); }
.back-link .icon { width: 16px; height: 16px; }
.watch-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; font-size: 14.5px; font-weight: 700; color: var(--ice); }
.watch-meta > span:not(.badge):not(.hd)::before { content: ''; display: inline-block; width: 4px; height: 4px; margin: 0 12px; border-radius: 50%; background: var(--text-3); vertical-align: middle; }
.watch-meta .badge + span::before { display: none !important; }
.watch-meta .badge { margin-right: 12px; }
.watch-meta .hd { margin-left: 12px; }
.watch-info h1 { margin-top: 14px; font-size: clamp(30px, min(3.6vw, 7vh), 54px); font-weight: 900; letter-spacing: -.04em; line-height: .98; text-wrap: balance; }
.watch-desc { margin-top: 18px; max-width: 720px; font-size: 16.5px; line-height: 1.7; color: var(--text-2); white-space: pre-line; }
.features { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.features li { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012)); border: 1px solid var(--line); }
.features .icon { width: 20px; height: 20px; flex: none; color: var(--accent-2); margin-top: 1px; }
.features strong { display: block; font-size: 14.5px; font-weight: 800; }
.features small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--text-3); line-height: 1.4; }
.access-card { position: sticky; top: 96px; display: grid; gap: 10px; padding: 20px; border-radius: var(--radius-lg); background: rgba(16, 21, 29, .82); backdrop-filter: blur(16px); box-shadow: 0 0 0 1px var(--line-2), var(--shadow); }
.access-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.access-thumb { width: 68px; flex: none; border-radius: 9px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2); }
.access-thumb .ph-name, .access-thumb .ph-foot { display: none; }
.access-thumb .ph-mark { font-size: 32cqi; top: auto; bottom: 10%; color: rgba(255, 255, 255, .5); }
.access-price { font-size: 30px; font-weight: 900; letter-spacing: -.03em; line-height: 1.05; }
.access-sub { font-size: 13px; font-weight: 600; color: var(--text-3); margin-top: 2px; }
.access-ok { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; color: var(--ok); }
.access-fine { display: flex; gap: 8px; margin-top: 6px; font-size: 12.5px; color: var(--text-3); line-height: 1.45; }
.access-fine .icon { width: 15px; height: 15px; margin-top: 1px; flex: none; }

/* Sheet dialog (viewer access) */
dialog { color: var(--text); }
dialog::backdrop { background: rgba(2, 4, 7, .72); backdrop-filter: blur(6px); }
.sheet { width: min(460px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 32px 28px 24px; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); overflow: auto; }
.sheet[open] { animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.sheet-close { position: absolute; top: 14px; right: 14px; }
.sheet-panel { display: grid; gap: 16px; }
.sheet-panel h2 { font-size: 24px; font-weight: 900; letter-spacing: -.02em; padding-right: 32px; }
.sheet-panel .muted { font-size: 14.5px; margin-top: -6px; }
.order-line { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-block: 1px solid var(--line); font-size: 14.5px; color: var(--text-2); }
.order-line strong { font-size: 20px; color: var(--text); }
.paypal-slot { min-height: 48px; margin-top: 4px; border-radius: var(--radius-sm); }
.paypal-slot:empty { display: none; }
.paypal-slot:not(:empty) { background: #fff; padding: 12px 12px 4px; }
.sheet-feedback { margin-top: 14px; font-size: 14px; color: var(--text-2); }
.sheet-feedback:empty { display: none; }
.sheet-feedback[data-tone=error] { color: var(--bad); }
.sheet-feedback[data-tone=ok] { color: var(--ok); }

/* Auth & error */
.auth, .error-page { display: grid; place-items: center; min-height: 100vh; padding: 100px 16px 60px; background: radial-gradient(60% 50% at 50% 0%, rgba(26, 168, 221, .16), transparent 70%); }
.page-auth .site-footer, .page-error .site-footer { display: none; }
.auth-card, .error-card { width: min(420px, 100%); display: grid; gap: 14px; padding: 40px 34px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(16, 21, 29, .8); backdrop-filter: blur(20px); box-shadow: var(--shadow); }
.auth-card .logo { margin-bottom: 18px; }
.auth-card h1 { font-size: 28px; font-weight: 900; }
.auth-card form { margin-top: 12px; }
.auth-foot { margin-top: 8px; font-size: 13px; color: var(--text-3); }
.error-card { text-align: center; justify-items: center; }
.error-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 93, 104, .12); color: var(--bad); margin-bottom: 4px; }
.error-icon .icon { width: 26px; height: 26px; }
.error-card h1 { font-size: 26px; font-weight: 900; }
.error-card p { color: var(--text-2); }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.error-admin { min-height: 70vh; background: none; padding-top: 40px; }

/* =========================================================
   ADMIN STUDIO
   ========================================================= */
.layout-admin { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); background: var(--bg); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--bg-2); z-index: 40; }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 0 20px; }
.sidebar-toggle { display: none; }
.sidebar-body { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 8px 14px 18px; overflow-y: auto; }
.sidebar-cta { margin: 4px 0 22px; }
.sidebar-nav, .sidebar-foot { display: grid; gap: 2px; }
.sidebar-nav a, .sidebar-foot a, .sidebar-foot button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--text-2); font-size: 14.5px; font-weight: 600; text-align: left; transition: background .15s, color .15s; }
.sidebar-nav a:hover, .sidebar-foot a:hover, .sidebar-foot button:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.sidebar-nav a[aria-current], .sidebar-foot a[aria-current] { background: rgba(255, 255, 255, .08); color: var(--text); }
.sidebar-nav a[aria-current] .icon { color: var(--accent-2); }
.sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.sidebar-foot a, .sidebar-foot button { font-size: 13.5px; padding: 8px 12px; }
.sidebar-foot .icon { width: 16px; height: 16px; }
.admin-main { min-width: 0; padding: 36px clamp(16px, 3.4vw, 48px) 80px; max-width: 1480px; width: 100%; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head h1 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 900; letter-spacing: -.03em; }
.page-head .muted { margin-top: 6px; font-size: 14.5px; }
.page-head .back-link { margin-bottom: 12px; }
.head-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 10px; font-size: 13.5px; }
.head-meta code { color: var(--text-3); }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 24px; }
.admin-main > .panel + .panel, .admin-main > .panel + .health, .kpis + .panel { margin-top: 20px; }
.panel-narrow { max-width: 520px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; margin-bottom: 18px; }
.panel-head h2 { font-size: 18px; font-weight: 800; }
.section-head { margin-bottom: 18px; }
.section-head h2 { font-size: 17px; font-weight: 800; }
.section-head p { margin-top: 4px; font-size: 13.5px; color: var(--text-3); }
.form-section { display: grid; gap: 16px; align-content: start; }
.form-section .section-head { margin-bottom: 2px; }
.footnote { margin-top: 16px; font-size: 12.5px; color: var(--text-3); }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { display: grid; gap: 6px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.kpi-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.kpi-label .icon { width: 16px; height: 16px; color: var(--accent-2); }
.kpi-value { font-size: clamp(26px, 2.4vw, 34px); font-weight: 900; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi-value small { font-size: .5em; color: var(--text-3); font-weight: 700; }
.kpi-value.is-warn { color: var(--warn); } .kpi-value.is-bad { color: var(--bad); }
.kpi > small { font-size: 12.5px; color: var(--text-3); }

/* Live banner */
.live-banner { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 18px; margin-bottom: 20px; border: 1px solid rgba(255, 59, 71, .35); border-radius: var(--radius-lg); background: radial-gradient(80% 140% at 0% 0%, rgba(255, 59, 71, .16), transparent 60%), var(--surface); }
.live-banner-art { border-radius: var(--radius-sm); overflow: hidden; }
.live-banner-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.live-banner h2 { margin: 8px 0 12px; font-size: 21px; font-weight: 900; }
.live-banner-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.live-banner-stats div { display: grid; }
.live-banner-stats strong { font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.live-banner-stats span { font-size: 12px; color: var(--text-3); font-weight: 600; }
.live-banner-actions { display: grid; gap: 8px; }
.signal { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; }
.signal .icon { width: 16px; height: 16px; }
.signal.on { color: var(--ok); } .signal.off { color: var(--text-3); }
small.signal::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
small.signal.off::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }

/* Toolbar, segmented, search */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
.panel-head > *, .toolbar > * { min-width: 0; }
.segmented { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.segmented button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 0; border-radius: 999px; background: none; color: var(--text-3); font-size: 13.5px; font-weight: 700; white-space: nowrap; transition: background .15s, color .15s; }
.segmented button:hover { color: var(--text); }
.segmented button.is-selected { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.segmented .count { padding: 1px 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 11px; }
.search { position: relative; display: flex; align-items: center; min-width: 220px; }
.search .icon { position: absolute; left: 13px; width: 17px; height: 17px; color: var(--text-3); pointer-events: none; }
.search input { padding-left: 40px !important; min-height: 40px !important; border-radius: 999px !important; }
.search-lg { flex: 1 1 280px; }
.search-lg input { min-height: 44px !important; }
.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.field-inline { flex: 0 1 260px; }
.field-inline select { border-radius: 999px; min-height: 44px; }
.filter-empty { padding: 36px 0 12px; text-align: center; color: var(--text-3); }

/* Tables */
.table-wrap { margin: 0 -24px; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { padding: 10px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.table td { padding: 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th:first-child, .table td:first-child { padding-left: 24px; }
.table th:last-child, .table td:last-child { padding-right: 24px; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: rgba(255, 255, 255, .018); }
.table tbody tr:last-child td { border-bottom: 0; }
.table td > strong { display: block; font-weight: 700; }
.table td > small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--text-3); line-height: 1.4; }
.table td > .badge + small { margin-top: 7px; }
.table td > small.txt-ok { color: var(--ok); } .table td > small.txt-bad { color: var(--bad); } .table td > small.txt-warn { color: var(--warn); }
.table .email { word-break: break-all; }
.table .num { font-variant-numeric: tabular-nums; }
.table-compact td { padding-top: 11px; padding-bottom: 11px; vertical-align: middle; }
.t-right { text-align: right; }

.event-cell { display: flex; align-items: center; gap: 14px; min-width: 180px; }
.event-cell strong { display: block; font-weight: 700; line-height: 1.3; transition: color .15s; }
.event-cell small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--text-3); }
.event-cell:hover strong { color: var(--accent-2); }
.thumb { width: 44px; flex: none; border-radius: 7px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.thumb .ph-name, .thumb .ph-foot { display: none; }
.thumb .ph-mark { font-size: 34cqi; top: auto; bottom: 10%; color: rgba(255, 255, 255, .5); }
.row-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; flex-wrap: nowrap; }
.row-actions form { display: contents; }
.empty { display: grid; justify-items: center; gap: 8px; padding: 56px 16px; text-align: center; }
.empty > .icon { width: 36px; height: 36px; color: var(--text-3); margin-bottom: 6px; }
.empty h3 { font-size: 17px; }
.empty p { color: var(--text-3); font-size: 14px; max-width: 360px; }
.empty .btn { margin-top: 10px; }

/* Row menu */
.menu { position: relative; }
.menu > summary { cursor: pointer; }
/* Fixed positioning (set from JS) lets the menu float above scrollable table wrappers instead of being clipped by them. */
.menu-pop { position: fixed; top: 0; left: 0; z-index: 60; width: min(270px, calc(100vw - 24px)); max-height: calc(100vh - 16px); overflow-y: auto; overscroll-behavior: contain; padding: 8px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface-2); box-shadow: var(--shadow); text-align: left; animation: pop .18s var(--ease); }
.menu-pop form { display: block; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font-size: 13.5px; font-weight: 600; text-align: left; }
.menu-item:hover { background: rgba(255, 255, 255, .07); }
.menu-item .icon { width: 16px; height: 16px; color: var(--text-2); }
.menu-form { display: grid !important; gap: 8px; margin: 6px 0; padding: 10px; border-block: 1px solid var(--line); }
.menu-form .field > span { font-size: 12px; }

/* Health */
.health { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.health-item { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.health-item > div { flex: 1; min-width: 0; }
.health-item strong { font-size: 14.5px; }
.health-item p { margin-top: 2px; font-size: 13px; color: var(--text-3); overflow-wrap: anywhere; }
.health-item p.txt-bad { color: var(--bad); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.health-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 11px; background: rgba(255, 255, 255, .06); color: var(--text-2); }
.health-icon.is-ok { background: rgba(52, 211, 153, .12); color: var(--ok); }
.health-icon.is-warn { background: rgba(245, 185, 61, .12); color: var(--warn); }
.health-icon.is-bad { background: rgba(255, 93, 104, .12); color: var(--bad); }

/* Editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.editor-main { display: grid; gap: 20px; min-width: 0; }
.editor-side { position: sticky; top: 24px; display: grid; gap: 16px; }
.side-card h2 { font-size: 15px; font-weight: 800; margin-bottom: 14px; }
.status-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 2px; }
.status-steps li { position: relative; display: grid; gap: 1px; padding: 8px 10px 8px 32px; border-radius: 10px; cursor: pointer; transition: background .15s; }
.status-steps li:hover { background: rgba(255, 255, 255, .04); }
.status-steps li::before { content: ''; position: absolute; left: 10px; top: 12px; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--surface-3); }
.status-steps li:not(:last-child)::after { content: ''; position: absolute; left: 15.5px; top: 27px; bottom: -9px; width: 1px; background: var(--line-2); }
.status-steps strong { font-size: 13.5px; color: var(--text-2); }
.status-steps span { font-size: 12.5px; color: var(--text-3); line-height: 1.4; }
.status-steps li.is-done::before { background: var(--text-3); box-shadow: none; }
.status-steps li.is-current { background: var(--accent-soft); }
.status-steps li.is-current::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(26, 168, 221, .2); }
.status-steps li.is-current strong { color: var(--text); }
.status-steps li[data-step=live].is-current { background: rgba(255, 59, 71, .1); }
.status-steps li[data-step=live].is-current::before { background: var(--live); box-shadow: 0 0 0 4px rgba(255, 59, 71, .2); }
.poster-drop { width: 170px; margin: 0 auto 14px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line-2), var(--shadow); }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-btn span { overflow: hidden; text-overflow: ellipsis; }
.side-card .hint { justify-content: center; text-align: center; margin: 10px 0 6px; }
.side-card .check { margin-top: 6px; }
.save-bar { display: grid; gap: 8px; }
.save-bar .hint { justify-content: center; }
.save-bar-inline { display: flex; justify-content: flex-end; }
.recording-state { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-2); font-size: 13.5px; color: var(--text-2); }

/* Delete (event editor) */
.delete-zone { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.delete-zone .btn { justify-content: center; }
.delete-zone .hint { justify-content: center; text-align: center; margin-top: 8px; }

/* Credentials */
.split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.split > .panel + .panel { margin-top: 0; }
.split .field { margin-bottom: 16px; }
.copy-field { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 0; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg-2); }
.copy-field input { border: 0 !important; background: transparent !important; box-shadow: none !important; font-family: var(--mono); font-size: 13px; text-overflow: ellipsis; min-width: 0; }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding: 16px; border: 1px solid rgba(255, 93, 104, .22); border-radius: var(--radius); background: rgba(255, 93, 104, .04); }
.danger-zone strong { font-size: 14px; }
.danger-zone p { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.spec { margin: 0; display: grid; }
.spec > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec > div:last-child { border-bottom: 0; }
.spec dt { color: var(--text-3); }
.spec dd { margin: 0; font-weight: 700; text-align: right; }
.split .hint { margin-top: 14px; }

/* Payments mini stats */
.mini-stats { display: flex; gap: 32px; flex-wrap: wrap; padding: 4px 0 18px; }
.mini-stats div { display: grid; }
.mini-stats span { font-size: 12px; font-weight: 700; color: var(--text-3); }
.mini-stats strong { font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }

/* Settings */
.settings { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; align-items: start; }
.settings-nav { position: sticky; top: 24px; display: grid; gap: 2px; }
.settings-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; color: var(--text-2); transition: background .15s, color .15s; }
.settings-nav a:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.settings-nav .icon { width: 16px; height: 16px; }
.settings-body { display: grid; gap: 20px; min-width: 0; }
.settings-body > .panel + .panel { margin-top: 0; }
.delivery-status { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.delivery-status div { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-2); }
.delivery-status span { font-size: 12px; font-weight: 700; color: var(--text-3); }
.delivery-status strong { font-size: 13.5px; overflow-wrap: anywhere; }
.inline-form { display: flex; gap: 10px; align-items: flex-end; }
.inline-form .field { flex: 1; }

/* Modals */
.modal { width: min(480px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 26px; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); overflow: auto; }
.modal[open] { animation: pop .25s var(--ease); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-head h2 { font-size: 20px; font-weight: 900; }
.modal .muted { font-size: 14px; margin-top: -4px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.modal-center { text-align: center; display: none; }
.modal-center[open] { display: grid; gap: 12px; justify-items: center; }
.modal-center h2 { font-size: 21px; font-weight: 900; }
.modal-x { position: absolute; top: 12px; right: 12px; }
.support-code { margin: 6px 0; padding: 14px 22px; border-radius: var(--radius); background: var(--bg-2); border: 1px dashed var(--line-2); font-family: var(--mono); font-size: 44px; font-weight: 700; letter-spacing: .22em; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.howto { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 6px; text-align: left; font-size: 13.5px; color: var(--text-2); }
.howto li { counter-increment: s; display: flex; gap: 10px; align-items: center; }
.howto li::before { content: counter(s); display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--surface-3); font-size: 12px; font-weight: 800; color: var(--text); }
.modal-center .btn-block { margin-top: 4px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .health { grid-template-columns: minmax(0, 1fr); }
  .editor { grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-width: 1080px) {
  /* Stack table rows into cards. */
  .table-wrap { margin: 0; overflow: visible; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; }
  .table tr { position: relative; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .table tbody tr:last-child { border-bottom: 0; }
  .table tbody tr:hover { background: none; }
  .table td, .table th:first-child, .table td:first-child, .table td:last-child { padding: 5px 0; border: 0; }
  .table td[data-label] { display: grid; grid-template-columns: 110px minmax(0, 1fr); column-gap: 12px; align-items: start; }
  .table td[data-label]::before { content: attr(data-label); grid-row: 1 / span 4; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding-top: 2px; }
  .table td[data-label] > * { grid-column: 2; justify-self: start; }
  .table td:first-child[data-label] { display: block; margin-bottom: 8px; }
  .table td:first-child[data-label]::before { display: none; }
  .table td.t-right { text-align: left; padding-top: 10px; }
  .row-actions { justify-content: flex-start; flex-wrap: wrap; }
  .event-cell { min-width: 0; }
  .table td[colspan] { display: block; }
}

/* The events table has seven columns: stack it into cards earlier, and use an icon-only Edit button on mid-size screens. */
@media (max-width: 1279px) {
  .table-wrap:has(.event-table) { margin: 0; overflow: visible; }
  .event-table thead { display: none; }
  .event-table, .event-table tbody, .event-table tr, .event-table td { display: block; }
  .event-table tr { position: relative; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .event-table tbody tr:last-child { border-bottom: 0; }
  .event-table tbody tr:hover { background: none; }
  .event-table td, .event-table th:first-child, .event-table td:first-child, .event-table td:last-child { padding: 5px 0; border: 0; }
  .event-table td[data-label] { display: grid; grid-template-columns: 110px minmax(0, 1fr); column-gap: 12px; align-items: start; }
  .event-table td[data-label]::before { content: attr(data-label); grid-row: 1 / span 4; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding-top: 2px; }
  .event-table td[data-label] > * { grid-column: 2; justify-self: start; }
  .event-table td:first-child[data-label] { display: block; margin-bottom: 8px; }
  .event-table td:first-child[data-label]::before { display: none; }
  .event-table td.t-right { text-align: left; padding-top: 10px; }
  .event-table .row-actions { justify-content: flex-start; flex-wrap: wrap; }
  .event-table .event-cell { min-width: 0; }
  .event-table td[colspan] { display: block; }
}
@media (min-width: 1280px) and (max-width: 1439px) {
  .event-table .row-actions .btn-sm { width: 36px; padding: 0; }
  .event-table th, .event-table td { padding-left: 12px; padding-right: 12px; }
  .event-table th:first-child, .event-table td:first-child { padding-left: 24px; }
  .event-table th:last-child, .event-table td:last-child { padding-right: 24px; }
  .event-table .row-actions .btn-sm .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (max-width: 960px) {
  .layout-admin { display: block; }
  .sidebar { position: sticky; height: auto; border-right: 0; border-bottom: 1px solid var(--line); background: rgba(11, 15, 21, .94); backdrop-filter: blur(16px); }
  .sidebar-head { height: 60px; padding: 0 16px; }
  .sidebar-toggle { display: inline-grid; }
  .sidebar-body { display: none; padding: 4px 16px 18px; max-height: calc(100vh - 60px); }
  .nav-open .sidebar-body { display: flex; }
  .sidebar-foot { margin-top: 14px; }
  .admin-main { padding-top: 24px; }
  .editor { grid-template-columns: minmax(0, 1fr); }
  .editor-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .save-bar { grid-column: 1 / -1; position: sticky; bottom: 0; z-index: 20; margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(6, 8, 12, .92); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  .save-bar .hint { display: none; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .settings { grid-template-columns: minmax(0, 1fr); }
  .settings-nav { position: static; display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .settings-nav a { white-space: nowrap; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }
  .watch-body { grid-template-columns: minmax(0, 1fr); }
  .access-card { position: static; max-width: 560px; }
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .slide-poster { width: 100%; height: 72%; bottom: auto; -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%); mask-image: linear-gradient(180deg, #000 45%, transparent 100%); }
  .slide-poster::after { background: linear-gradient(180deg, rgba(6, 8, 12, .55) 0%, rgba(6, 8, 12, 0) 25%); }
  .slide-copy { max-width: 560px; }
  .faq { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .faq-intro { position: static; }
}
@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .header-inner { height: 60px; }
  .site-nav a:not(.nav-pill):not([aria-current]) { display: none; }
  .billboard { height: 88svh; min-height: 560px; max-height: 760px; }
  .slide-poster { height: 60%; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 82%); mask-image: linear-gradient(180deg, #000 30%, transparent 82%); }
  .slide-poster .poster-image { object-position: 50% 0; }
  .slide-poster::after { background: linear-gradient(180deg, rgba(6, 8, 12, .75) 0%, rgba(6, 8, 12, 0) 22%); }
  .slide-inner { padding-bottom: 72px; }
  .slide-kicker { font-size: 11.5px; margin-bottom: 10px; }
  .slide-title { font-size: clamp(36px, 11vw, 52px); }
  .slide-title-long { font-size: clamp(30px, 9.2vw, 44px); }
  .slide-meta { font-size: 13.5px; margin-top: 14px; }
  .slide-lead { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; margin-top: 10px; }
  .slide-actions { margin-top: 20px; }
  .slide-actions .btn { flex: 1 1 0; padding: 0 14px; }
  .countdown { gap: 6px; margin-top: 16px; }
  .countdown > div { min-width: 0; flex: 1; }
  .countdown strong { font-size: 21px; }
  .billboard-dots { bottom: 34px; }
  .rails { margin-top: -24px; gap: 36px; }
  .faq { padding-top: 32px; padding-bottom: 64px; }
  .faq-item summary { padding: 17px 0; gap: 14px; }
  .faq-answer { padding: 0 0 18px; }
  .theater { padding: 60px 0 0; }
  .theater-glow { display: none; }
  .player { width: 100%; border-radius: 0; box-shadow: none; }
  .player-hud { top: 10px; left: 10px; }
  .player-toast { top: 10px; font-size: 13px; padding: 9px 8px 9px 12px; max-width: calc(100% - 20px); }
  .paywall { padding: 12px; }
  .paywall-content { gap: 6px; }
  .paywall-kicker { font-size: 10.5px; }
  .paywall-sub { display: none; }
  .paywall h2 { font-size: 21px; }
  .countdown-sm { margin-top: 2px; }
  .countdown-sm > div { min-width: 50px; flex: none; padding: 5px 4px 4px; border-radius: 8px; }
  .countdown-sm strong { font-size: 16px; }
  .countdown-sm span { font-size: 8.5px; margin-top: 2px; }
  .paywall-actions { margin-top: 4px; gap: 8px; }
  .paywall-actions .btn-lg { min-height: 40px; padding: 0 16px; font-size: 13.5px; }
  .link-btn { font-size: 12.5px; padding: 2px 0; }
  .features { grid-template-columns: minmax(0, 1fr); margin-top: 26px; }
  .watch-body { padding-top: 22px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .grid-2.grid-tight { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis { gap: 10px; }
  .kpi { padding: 16px; }
  .panel { padding: 18px; border-radius: var(--radius); }
  .panel-head { align-items: stretch; flex-direction: column; flex-wrap: nowrap; }
  .toolbar { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
  .search { min-width: 0; }
  .live-banner { grid-template-columns: 64px minmax(0, 1fr); }
  .live-banner-actions { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor-side { grid-template-columns: minmax(0, 1fr); }
  .choice { grid-template-columns: minmax(0, 1fr); }
  .delivery-status { grid-template-columns: minmax(0, 1fr); }
  .inline-form { flex-direction: column; align-items: stretch; }
  .danger-zone { flex-direction: column; align-items: stretch; }
  .table td[data-label] { grid-template-columns: 88px minmax(0, 1fr); }
  .page-actions { width: 100%; }
  .page-head .page-actions .btn { flex: 1; }
  .sheet { padding: 28px 20px 20px; }
  .toasts { right: 16px; left: 16px; bottom: 16px; width: auto; }
  .auth-card, .error-card { padding: 32px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Sortable table headers */
.th-sort { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px; margin: -4px -6px; border: 0; border-radius: 6px; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; transition: color .15s, background .15s; }
.th-sort:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.sort-arrow { width: 10px; height: 10px; opacity: .35; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 1 8 4H2zM5 9 2 6h6z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 1 8 4H2zM5 9 2 6h6z'/%3E%3C/svg%3E") center / contain no-repeat; }
.th-sort[data-dir=asc], .th-sort[data-dir=desc] { color: var(--text); }
.th-sort[data-dir=asc] .sort-arrow, .th-sort[data-dir=desc] .sort-arrow { opacity: 1; color: var(--accent-2); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 2 9 7H1z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 2 9 7H1z'/%3E%3C/svg%3E"); }
.th-sort[data-dir=desc] .sort-arrow { transform: rotate(180deg); }
.sort-select { display: none; }
.sort-select select { min-height: 40px; border-radius: 999px; }
@media (max-width: 1279px) { .sort-select { display: block; } }

/* Accounts & users */
.pw-field { display: flex; align-items: center; gap: 4px; padding: 3px 4px 3px 0; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg-2); transition: border-color .15s, box-shadow .15s; }
.pw-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26, 168, 221, .2); }
.pw-field input { border: 0 !important; background: transparent !important; box-shadow: none !important; min-height: 38px !important; font-family: var(--mono); font-size: 14px; letter-spacing: .02em; }
.pw-field .btn { flex: none; }
.pw-field .icon-btn.is-done { color: var(--ok); }
.field > label { display: block; }
.field > label > span { font-size: 13px; font-weight: 700; color: var(--text-2); }
small.txt-ok { color: var(--ok) !important; }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #0b6e96); color: #fff; font-size: 14px; font-weight: 800; }
.user-cell { display: flex; align-items: center; gap: 12px; }
.user-cell small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-3); }
.sidebar-foot .whoami { gap: 10px; padding: 8px 10px; margin-bottom: 4px; }
.whoami .avatar { width: 30px; height: 30px; font-size: 13px; }
.whoami-text { display: grid; min-width: 0; }
.whoami-text strong { font-size: 13px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whoami-text small { font-size: 11.5px; color: var(--text-3); }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; max-width: 1100px; }
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.roles > div { display: grid; gap: 10px; justify-items: start; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.roles p { font-size: 13.5px; color: var(--text-3); }
.roles strong { color: var(--text-2); }
@media (max-width: 960px) { .account-grid, .roles { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .pw-field { flex-wrap: wrap; padding: 3px; } .pw-field input { flex: 1 1 100%; } .pw-field .btn { margin-left: auto; } }
