/* WE ARE ON — live-portal. Tokens fra ONtime "Marine" design-system + portal-layout. */

:root {
  --bg:            oklch(0.22 0.060 252);
  --bg-2:          oklch(0.26 0.070 252);
  --surface:       oklch(0.30 0.075 252);
  --surface-2:     oklch(0.34 0.080 252);
  --border:        oklch(0.40 0.085 252);
  --border-strong: oklch(0.50 0.090 252);
  --text:          oklch(0.97 0.020 230);
  --text-muted:    oklch(0.78 0.040 235);
  --text-faint:    oklch(0.60 0.055 245);
  --accent:        #85a4d0;
  --accent-soft:   rgba(133,164,208,0.20);
  --on-accent:     oklch(0.18 0.05 252);
  --live:          oklch(0.80 0.16 175);
  --warn:          oklch(0.84 0.15 80);
  --over:          oklch(0.68 0.22 20);
  --chrome:        rgba(10,20,34,0.85);

  --font-sans: "Geist", "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
  --radius: 6px;
  --radius-lg: 10px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 0.15s;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font-sans); background: var(--bg); color: var(--text);
  font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow: hidden;
}
#app { position: fixed; inset: 0; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }

/* —— Atoms —— */
.eyebrow { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--text-faint); vertical-align: middle; flex: none; }
.dot.live { background: var(--live); box-shadow: 0 0 8px var(--live); animation: pulse 1.6s ease-in-out infinite; }
.swatch { width: 8px; height: 8px; border-radius: 2px; flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  white-space: nowrap; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text);
  cursor: pointer; transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), opacity var(--dur-fast), transform 0.35s cubic-bezier(0.16,1,0.3,1), filter var(--dur-fast);
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:not(:disabled):hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:not(:disabled):active { transform: translateY(0) scale(0.985); transition-duration: 0.1s; }
:where(button, a, select, .card, input, textarea):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-muted); }
.btn.lg { padding: 14px 22px; font-size: 12px; }

.badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 9px; border-radius: 3px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: #fff; background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.25);
}
.badge.soon { color: var(--text-muted); border-color: var(--border); }

.field { display: block; }
.field > span { display: block; margin-bottom: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); }
.input {
  width: 100%; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-family: var(--font-sans); font-size: 15px; outline: none; transition: border-color var(--dur-fast) var(--ease);
}
.input:focus { border-color: var(--accent); }
.input.error { border-color: var(--over); }
textarea.input { resize: vertical; }

/* —— Motion —— */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes screenIn { from { opacity: 0.25; transform: translateY(40px) scale(0.955); } to { opacity: 1; transform: none; } }
@keyframes blockIn { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slideIn { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.screen { position: absolute; inset: 0; animation: screenIn 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.stagger > * { animation: blockIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
.stagger > :nth-child(1) { animation-delay: 0.06s; } .stagger > :nth-child(2) { animation-delay: 0.13s; }
.stagger > :nth-child(3) { animation-delay: 0.20s; } .stagger > :nth-child(4) { animation-delay: 0.27s; }
.stagger > :nth-child(5) { animation-delay: 0.34s; } .stagger > :nth-child(6) { animation-delay: 0.41s; }
@media (prefers-reduced-motion: reduce) { .screen, .stagger > *, .sidebar, .scrim, .program > div { animation: none; } .card, .btn, .card .snap { transition: none; } .card:not(:disabled):hover { transform: none; } }
.loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-faint); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }

/* —— Login —— */
.login { position: absolute; inset: 0; display: grid; grid-template-columns: 440px 1fr; background: var(--bg); }
.login-panel { background: var(--bg-2); border-right: 1px solid var(--border); padding: 40px 44px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; overflow: auto; }
.login-panel img { height: 58px; width: auto; object-fit: contain; align-self: flex-start; }
.login-form { display: flex; flex-direction: column; gap: 14px; max-width: 360px; }
.login-title { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.login-form p { font-size: 14px; color: var(--text-muted); margin-bottom: 6px; }
.login-form .input { padding: 14px 16px; background: rgba(255,255,255,0.06); font-family: var(--font-mono); font-size: 18px; letter-spacing: 0.18em; }
.login-err { font-size: 13px; color: var(--over); }
.login-hero { position: relative; overflow: hidden; }
.login-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.login-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg-2) 0%, transparent 22%, transparent 70%, rgba(10,20,34,0.5) 100%); }

/* —— Topbar (lobby + scene) —— */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; background: var(--chrome); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar img { height: 22px; width: auto; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar .event { font-size: 13px; color: var(--text-muted); }
.livecount { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--live); }

/* —— Lobby —— */
.lobby { position: absolute; inset: 0; overflow: auto; }
.lobby .topbar { position: sticky; top: 0; z-index: 3; }
.lobby-body { max-width: 1100px; margin: 0 auto; padding: 28px 24px 56px; }

.welcome { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: center; min-height: calc(100vh - 140px); }
.welcome h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 16px; }
.welcome p { font-size: 15px; color: var(--text-muted); line-height: 1.6; margin: 0 0 24px; max-width: 380px; }
.welcome .eyebrow { color: var(--accent); font-size: 11px; letter-spacing: 0.2em; margin-bottom: 14px; }

.preview { position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; border-bottom: 1px solid var(--border); }
.preview .snap { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.preview .snap ~ .play { opacity: 0.85; }
.preview::before { content: ''; position: absolute; inset: 0; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 4px); opacity: 0.5; }
.preview .play { position: absolute; inset: 0; display: grid; place-items: center; }
.preview .play > span { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; background: rgba(0,0,0,0.25); font-size: 16px; padding-left: 3px; }
.preview.big .play > span { width: 64px; height: 64px; font-size: 22px; }
.preview .badge { position: absolute; top: 12px; left: 12px; }
.preview .caption { position: absolute; bottom: 14px; left: 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.frame { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }

.scenes-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.scenes-head h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.scenes { display: flex; flex-direction: column; gap: 10px; }
.livecount.soon { color: var(--text-muted); }

/* Nu / næste */
.nownext { display: flex; flex-wrap: wrap; gap: 6px 28px; padding: 10px 24px; font-size: 13px; color: var(--text); background: var(--bg-2); border-bottom: 1px solid var(--border); }
.nownext .eyebrow { display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; }
.nownext .in { color: var(--accent); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; }
.lobby-body .nownext { margin: -28px -24px 24px; }
.scene .nownext { flex: none; }

/* Besked til seere fra moderatoren */
.audience { flex: none; display: flex; align-items: center; gap: 12px; padding: 12px 24px; background: var(--accent); color: var(--on-accent); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; animation: blockIn 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.audience .eyebrow { color: var(--on-accent); font-size: 12px; animation: pulse 1.6s ease-in-out infinite; }

/* Før eventdagen */
/* Samme kolonneopdeling som hero-kortet under (1.6 : 1), så teksterne flugter. */
.pre { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-2); margin-bottom: 14px; display: grid; grid-template-columns: 1.6fr 1fr; overflow: hidden; }
.pre-text { padding: 24px 28px; display: flex; flex-direction: column; justify-content: center; order: 2; border-left: 1px solid var(--border); }
.pre-text .meta { margin-top: 6px; font-size: 18px; color: var(--text); }
.pre-text .meta::first-letter { text-transform: uppercase; }
.pre-count { padding: 24px 28px; order: 1; container-type: inline-size; display: flex; flex-direction: column; justify-content: center; }
.pre-count .eyebrow { margin-bottom: 4px; }
.pre .pre-big { margin: 0; text-align: left; font-size: clamp(32px, 18.5cqi, 120px); }
.pre .pre-big.long { font-size: clamp(22px, 9.8cqi, 72px); }
.welcome .pre { grid-template-columns: 1fr; }
.welcome .pre-text { border-left: 0; border-top: 1px solid var(--border); }
.pre-big { font-size: clamp(34px, 5vw, 56px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; margin: 8px 0 6px; }
.pre .meta { color: var(--text-muted); font-size: 14px; }
.pre .meta::first-letter { text-transform: uppercase; }

/* Egne spørgsmål */
.myq { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.myq > div { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 13px; color: var(--text-muted); }
.myq .st { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; padding: 3px 7px; border: 1px solid var(--border); border-radius: 3px; color: var(--text-faint); white-space: nowrap; margin-top: 1px; }
.myq .st-approved { color: var(--accent); border-color: var(--accent); }
.myq .st-displayed { color: var(--live); border-color: var(--live); }
.myq .st-answered { color: var(--live); border-color: var(--live); opacity: 0.7; }
.myq .st-shown { color: var(--text-muted); border-color: var(--border-strong); }
.myq .st-dismissed { color: var(--over); border-color: var(--over); }

.lobby-program { margin-top: 36px; max-width: 640px; }
.lobby-program h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin: 6px 0 10px; }
.lobby-program .program > div { padding: 12px 6px; }
.lobby-program .program .label { font-size: 14px; }

.card { text-align: left; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); cursor: pointer; transition: border-color 0.35s var(--ease), transform 0.45s cubic-bezier(0.16,1,0.3,1), box-shadow 0.45s var(--ease); will-change: transform; }
.card .snap { transition: transform 0.8s cubic-bezier(0.16,1,0.3,1), opacity 0.5s var(--ease); }
.card:not(:disabled):hover .snap { transform: scale(1.025); }
.card:disabled { cursor: not-allowed; opacity: 0.6; }
.card:not(:disabled):hover { border-color: var(--scene-accent); transform: translateY(-2px); box-shadow: 0 18px 50px rgba(0,0,0,0.35); }
.card:not(:disabled):active { transform: translateY(0); transition-duration: 0.12s; }
.card .name { display: flex; align-items: center; gap: 8px; }
.card .name .eyebrow { letter-spacing: 0.16em; }
.card .title { font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.card .meta { font-size: 13px; color: var(--text-muted); }
.card .cta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--scene-accent); }
.card .when { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; color: var(--text-faint); }

.hero { display: grid; grid-template-columns: 1.6fr 1fr; margin-bottom: 4px; }
.hero .preview { border-bottom: 0; }
.hero-text { padding: 26px 28px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.hero-text .eyebrow { color: var(--scene-accent); }
.hero-text .title { font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; }
.hero-text .meta { font-size: 14px; }

.row { display: grid; grid-template-columns: 150px 1fr auto; gap: 16px; align-items: center; padding: 10px; }
.row .preview { border-radius: var(--radius); border-bottom: 0; }
.row .title { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .name { margin-bottom: 3px; }
.row .when { padding-right: 8px; display: flex; align-items: center; gap: 8px; }

/* —— Scene / player —— */
.scene { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; }
.scene .topbar { flex: none; z-index: 10; padding: 12px 22px; }
.topbar-left { display: flex; align-items: center; gap: 14px; }
.scene-tabs { display: flex; gap: 4px; margin-left: 10px; }
.scene-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; background: transparent; border: 1px solid transparent; border-radius: var(--radius); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); cursor: pointer; transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
.scene-tabs button:not(:disabled):hover { background: var(--surface); }
.scene-tabs button.active { background: var(--surface); border-color: var(--scene-accent); color: var(--text); }
.scene-tabs button:disabled { opacity: 0.4; cursor: not-allowed; }
.viewers { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-muted); letter-spacing: 0.06em; }
.tech { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--surface); color: var(--text-muted); border: 1px solid var(--border); border-radius: var(--radius); padding: 7px 8px; cursor: pointer; }

.player { flex: 1; position: relative; min-height: 0; background: #000; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity 0.9s var(--ease); }
.player.ready iframe { opacity: 1; }
.player .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; filter: saturate(0.8); transition: opacity 1.2s var(--ease); }
.player.ready .poster { opacity: 0; }
.player .badge { position: absolute; top: 14px; left: 16px; pointer-events: none; }
.player-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; background: linear-gradient(0deg, rgba(8,16,28,0.9), transparent); pointer-events: none; transition: opacity 0.4s; }
.player-title .title { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.player-title .meta { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.player:hover .player-title { opacity: 1; }
.player.playing .player-title { opacity: 0; }

.unlock { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(10,20,34,0.55); backdrop-filter: blur(6px); cursor: pointer; border: 0; padding: 0; }
.unlock > div { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 40px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text); animation: blockIn 0.5s cubic-bezier(0.16,1,0.3,1); }
.unlock svg { width: 36px; height: 36px; fill: var(--accent); }

.player-upcoming { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; background: radial-gradient(120% 120% at 50% 0%, var(--scene-soft), var(--bg-2) 60%); }
.player-upcoming .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; filter: blur(2px); }
.player-upcoming > div { position: relative; }
.player-upcoming .badge { position: static; display: inline-flex; margin-bottom: 14px; }
.player-upcoming .title { text-shadow: 0 2px 12px rgba(0,0,0,0.6); }
.preview .snap.still { opacity: 0.85; }
.player-upcoming .title { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin: 14px 0 6px; }

.edge { position: fixed; top: 50%; right: 0; transform: translateY(-50%); z-index: 9; writing-mode: vertical-rl; background: var(--accent); color: var(--on-accent); border: 0; border-radius: 6px 0 0 6px; padding: 14px 7px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; cursor: pointer; }

/* Advarsel når admin har sat test-tid */
.testtime { position: fixed; left: 12px; bottom: 12px; z-index: 50; padding: 6px 10px; border-radius: var(--radius); background: var(--warn); color: var(--on-accent); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; pointer-events: none; }

/* —— Sidebar —— */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 18; animation: fadeIn 0.3s ease; backdrop-filter: blur(2px); }
.sidebar { position: fixed; top: 0; bottom: 0; right: 0; width: min(380px, 92vw); z-index: 19; background: var(--bg-2); border-left: 1px solid var(--border); box-shadow: -20px 0 60px rgba(0,0,0,0.5); animation: slideIn 0.42s cubic-bezier(0.16,1,0.3,1); display: flex; flex-direction: column; }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.sidebar-head .eyebrow { color: var(--text); font-size: 11px; letter-spacing: 0.16em; }
.sidebar-head button { background: transparent; border: 0; color: var(--text-muted); font-size: 18px; cursor: pointer; line-height: 1; }
.tabs { display: flex; border-bottom: 1px solid var(--border); }
.tabs button { flex: 1; padding: 11px 8px; background: transparent; border: 0; border-bottom: 2px solid transparent; cursor: pointer; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease); }
.tabs button:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.tabs button.active { color: var(--text); border-bottom-color: var(--accent); }
.sidebar-body { overflow: auto; padding: 14px; flex: 1; }

.scene-list { display: flex; flex-direction: column; gap: 8px; }
.scene-list button { text-align: left; display: grid; grid-template-columns: 8px 1fr auto; gap: 10px; align-items: center; padding: 11px 12px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); cursor: pointer; }
.scene-list button.active { background: var(--surface-2); border-color: var(--scene-accent); }
.scene-list button:disabled { opacity: 0.55; cursor: not-allowed; }
.scene-list .title { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scene-list .here { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--live); }

.qa { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-2); padding: 18px; }
.qa .eyebrow { color: var(--accent); margin-bottom: 4px; }
.qa p { font-size: 13px; color: var(--text-muted); margin: 0 0 14px; }
.qa p strong { color: var(--text); }
.qa .fields { display: grid; gap: 10px; }
.qa .count { position: absolute; bottom: 8px; right: 10px; font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); }
.qa .actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 12px; color: var(--text-faint); }
.qa .ok { color: var(--live); font-size: 13px; }
.qa-off { text-align: center; padding: 28px 16px; color: var(--text-muted); font-size: 13px; }
.qa-off .eyebrow { color: var(--text-faint); margin-top: 8px; }

.program > div { display: grid; grid-template-columns: 54px 1fr; gap: 10px; padding: 11px 4px; border-bottom: 1px solid var(--border); position: relative; border-radius: 6px; transition: background 0.3s var(--ease), opacity 0.4s var(--ease); animation: blockIn 0.55s cubic-bezier(0.16,1,0.3,1) both; animation-delay: calc(0.12s + var(--i, 0) * 45ms); }
.program > div.link:hover { background: rgba(255,255,255,0.035); }
.program > div.live { background: linear-gradient(90deg, rgba(0,229,160,0.06), transparent 70%); }
.program > div:has(.pthumb) { grid-template-columns: 54px 56px 1fr; }
.program .pthumb { width: 56px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; border: 1px solid var(--border); align-self: center; background: var(--surface); }
.program .done .pthumb { opacity: 0.6; }
.program .done { opacity: 0.45; }
.program .link { cursor: pointer; }
.program .time { font-size: 13px; color: var(--text-muted); }
.program .live .time { color: var(--live); font-weight: 600; }
.program .label { display: block; font-size: 13px; font-weight: 500; }
.program .live .label { font-weight: 600; }
.program .speaker { display: block; font-size: 11px; color: var(--text-faint); margin-top: 1px; }
.program .tag { position: absolute; right: 4px; top: 13px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--live); }

/* —— Responsive —— */
@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; }
  .login-panel { padding: 28px 24px; border-right: 0; }
  .login-hero { display: none; }
  .topbar .event { display: none; }
  .nownext { padding: 8px 14px; font-size: 12px; gap: 4px 18px; }
  .pre { grid-template-columns: 1fr; }
  .pre-text { border-left: 0; border-top: 1px solid var(--border); }
  .pre-text, .pre-count { padding: 16px 18px; }
  .audience { padding: 10px 14px; font-size: 14px; }
  .welcome { grid-template-columns: 1fr; min-height: 0; padding-top: 8px; }
  .hero { grid-template-columns: 1fr; }
  .hero-text { padding: 18px; }
  .hero-text .title { font-size: 21px; }
  .row { grid-template-columns: 110px 1fr; }
  .row .when { display: none; }
  .scene .topbar { padding: 10px 12px; }
  .scene .topbar img, .scene-tabs { display: none; }
  .topbar-left, .topbar-right { gap: 8px; }
  .edge { padding: 12px 6px; }
}
.welcome .pre { margin-top: 24px; max-width: 380px; }
.pre { container-type: inline-size; }
/* Geist Mono er ~0,6 em pr. tegn; 8 tegn (HH:MM:SS) fylder kortet ved ~19,5 cqi, 15 tegn ("2 dage HH:MM:SS") ved ~10,5 cqi. */
.pre-big { white-space: nowrap; letter-spacing: -0.02em; font-size: clamp(36px, 7vw, 84px); line-height: 1.05; }
.pre-big.long { font-size: clamp(26px, 4vw, 52px); }
.welcome .pre .pre-big { font-size: clamp(32px, 19.5cqi, 96px); }
.welcome .pre .pre-big.long { font-size: clamp(24px, 10.5cqi, 56px); }
.pre-line { position: relative; margin-top: 18px; font-size: 13px; color: var(--text-muted); }
.pre-line .mono { color: var(--text); font-weight: 500; }
.toast { position: absolute; top: 70px; left: 50%; transform: translateX(-50%); z-index: 12; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: var(--radius-lg); background: var(--accent); color: var(--on-accent); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; animation: blockIn 0.5s cubic-bezier(0.16,1,0.3,1); box-shadow: 0 8px 30px rgba(0,0,0,0.4); }
.lobby-program .pdate::first-letter { text-transform: uppercase; }

/* —— Trinvis opbygning af lobbyen: overskrift → scener → program → rækker —— */
.lobby-body > .nownext { animation: blockIn 0.5s cubic-bezier(0.16,1,0.3,1) both; }
.lobby-body > .scenes-head { animation: blockIn 0.5s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 0.05s; }
.lobby-body > .scenes.stagger > :nth-child(1) { animation-delay: 0.14s; }
.lobby-body > .scenes.stagger > :nth-child(2) { animation-delay: 0.22s; }
.lobby-body > .scenes.stagger > :nth-child(3) { animation-delay: 0.30s; }
.lobby-program > .eyebrow, .lobby-program > h2 { animation: blockIn 0.5s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 0.32s; }
.lobby-program .program > div { animation-delay: calc(0.42s + var(--i, 0) * 45ms); }
@media (prefers-reduced-motion: reduce) { .lobby-body > .nownext, .lobby-body > .scenes-head, .lobby-program > .eyebrow, .lobby-program > h2 { animation: none; } }
.program > div.sub { padding-left: 22px; }
.program > div.sub .label { font-weight: 500; }
.program .stale { color: var(--warn); font-size: 11px; padding: 4px 4px 8px; animation: none; display: block; grid-template-columns: none; }
.qsess { display: block; font-size: 11px; color: var(--text-faint); margin-top: 2px; }
