/* Wizard (/maak) en admin: dezelfde tokens, rustiger dan de marketingsite */
.wiz { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; padding-block: 28px 80px; align-items: start; }
@media (max-width: 820px) { .wiz { grid-template-columns: 1fr; gap: 20px; } }

.rail { display: grid; gap: 2px; position: sticky; top: 16px; }
@media (max-width: 820px) { .rail { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 6px; } }
.rail-step { display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: var(--dim); font-size: 14px; font-weight: 500; white-space: nowrap; border-left: 3px solid transparent; }
.rail-step .n { font-family: var(--display); font-size: 16px; width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid var(--line-strong); color: var(--dim); flex: none; }
.rail-step.done { color: var(--muted); }
.rail-step.done .n { border-color: var(--accent); color: var(--accent); }
.rail-step.on { color: var(--ink); border-left-color: var(--accent); background: var(--surface); }
.rail-step.on .n { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (max-width: 820px) { .rail-step { border-left: 0; border-bottom: 3px solid transparent; } .rail-step.on { border-bottom-color: var(--accent); } }

.panel { background: var(--surface); border: 1px solid var(--line); padding: clamp(20px, 3vw, 32px); display: grid; gap: 22px; }
.panel-head { display: grid; gap: 8px; }
.panel-head h2 { font-size: clamp(28px, 3.6vw, 40px); }
.panel-head p { color: var(--muted); max-width: 64ch; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.span2 { grid-column: 1 / -1; }
.hint { font-size: 13px; color: var(--dim); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding-top: 6px; border-top: 1px solid var(--line); }
.actions .status { font-size: 14px; color: var(--muted); }

/* foto's */
.photos { display: flex; flex-wrap: wrap; gap: 10px; }
.photo { width: 84px; height: 84px; object-fit: cover; border: 2px solid var(--line-strong); }
.photo-add { width: 84px; height: 84px; display: grid; place-items: center; border: 2px dashed var(--line-strong); color: var(--muted); cursor: pointer; font-size: 28px; }
.photo-add input { display: none; }
.photo-wrap { position: relative; display: inline-block; }
.photo-remove { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); font-size: 18px; line-height: 26px; padding: 0; cursor: pointer; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; }

/* analyse */
.analysis { display: grid; gap: 8px; padding: 16px; background: var(--bg); border: 1px solid var(--line); font-size: 15px; }
.analysis b { color: var(--accent); font-weight: 700; }

/* songblokken */
.blocks { display: grid; gap: 16px; }
.block { display: grid; gap: 8px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.block-head .label { color: var(--ink); font-weight: 700; }
.block textarea { min-height: 72px; }
.block-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.block-tools input { max-width: 260px; padding: 8px 10px; font-size: 14px; }
.counter { font-size: 13px; color: var(--dim); }
.counter.over { color: var(--danger); font-weight: 700; }

/* scènes en stills */
.scenes { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.scene { display: grid; gap: 8px; padding: 12px; background: var(--bg); border: 1px solid var(--line); align-content: start; }
.scene input, .scene textarea { padding: 8px 10px; font-size: 14px; }
.scene textarea { min-height: 64px; }
.scene .thumb { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--surface-2); border: 1px solid var(--line); }
.scene .thumb-wait { aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--surface-2); color: var(--dim); font-size: 13px; border: 1px dashed var(--line-strong); }
.scene h4 { margin: 0; font-size: 15px; font-weight: 700; }
.scene .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: auto; }
.scene.approved { border-color: var(--accent); }

/* still groot bekijken (stap 3) */
.thumb-btn { display: block; width: 100%; padding: 0; background: none; border: 0; cursor: zoom-in; }
.thumb-btn:hover .thumb, .thumb-btn:focus-visible .thumb { border-color: var(--accent); }
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 60px var(--gutter) 24px; background: var(--bg); border: 0; color: var(--ink); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; max-width: min(1280px, 100%); }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 140px); width: auto; object-fit: contain; border: 1px solid var(--line-strong); cursor: default; }
.lightbox figcaption { font-family: var(--display); font-size: clamp(20px, 3vw, 30px); text-transform: uppercase; line-height: 1; text-align: center; }
.lightbox .modal-x { position: absolute; top: 12px; right: 12px; background: var(--bg); }
@media (prefers-reduced-motion: no-preference) { .lightbox[open] figure { animation: rise 260ms ease-out; } }

/* paywall */
.paywall { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; padding: 20px; border: 3px solid var(--accent); background: var(--bg); }
.paywall .big { font-family: var(--display); font-size: 28px; text-transform: uppercase; line-height: 1; }
.paywall p { color: var(--muted); max-width: 52ch; }

/* takes */
.takes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.take { display: grid; gap: 12px; padding: 16px; background: var(--bg); border: 1px solid var(--line); }
.take.chosen { border-color: var(--accent); }
.take h4 { margin: 0; font-family: var(--display); font-size: 24px; text-transform: uppercase; }
.take audio { width: 100%; }
.reasons { font-size: 13px; color: var(--danger); display: grid; gap: 2px; }

/* wachtbord: stappen, totaalbalk, filmstrook (public/js/wait.js) */
.wait { display: grid; gap: 16px; padding: clamp(16px, 2.4vw, 22px); background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--accent); }
.wait-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 14px 20px; }
@media (max-width: 560px) { .wait-top { grid-template-columns: 1fr auto; } .wait-meta { grid-column: 1 / -1; grid-row: 2; } }
.wait-pct { font-family: var(--display); font-size: clamp(56px, 9vw, 88px); line-height: 0.82; color: var(--accent); font-variant-numeric: tabular-nums; min-width: 2.6ch; }
.wait-meta { display: grid; gap: 4px; min-width: 0; }
.wait-meta b { font-size: 17px; font-weight: 700; }
.wait-meta b .dim { font-weight: 500; }
.wait-meta span { color: var(--muted); font-size: 14px; }
.wait-bar { height: 14px; background: var(--line); overflow: hidden; }
.wait-bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(-45deg, var(--accent) 0 12px, #e8c100 12px 24px); background-size: 34px 34px; transition: width 900ms cubic-bezier(.2, .7, .2, 1); }
.wait.live .wait-bar i { animation: stripes 900ms linear infinite; }

/* equalizer: beweegt zolang er iets draait, springt op bij een klap */
.eq { display: flex; align-items: flex-end; gap: 4px; height: 44px; padding: 0 2px; background: none; border: 0; cursor: pointer; }
.eq i { width: 7px; height: 100%; background: var(--line-strong); transform: scaleY(.14); transform-origin: bottom; }
.wait.live .eq i { background: var(--accent); animation: eq 900ms ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: -300ms; animation-duration: 700ms; } .eq i:nth-child(3) { animation-delay: -650ms; animation-duration: 1100ms; }
.eq i:nth-child(4) { animation-delay: -150ms; animation-duration: 600ms; } .eq i:nth-child(5) { animation-delay: -500ms; animation-duration: 1000ms; } .eq i:nth-child(6) { animation-delay: -800ms; animation-duration: 800ms; }
.eq.boost i { animation: clap 420ms ease-out both !important; background: var(--accent); }
.eq.boost i:nth-child(odd) { animation-delay: 60ms !important; }

.wait-steps { list-style: none; margin: 0; padding: 0; display: grid; }
.ws { display: grid; grid-template-columns: 26px minmax(0, 1fr) minmax(60px, 140px) 64px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--dim); }
.ws-ico { width: 24px; height: 24px; display: grid; place-items: center; border: 2px solid var(--line-strong); font-size: 14px; font-weight: 700; line-height: 1; }
.ws-bar { height: 6px; background: var(--line); overflow: hidden; }
.ws-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 900ms cubic-bezier(.2, .7, .2, 1); }
.ws-st { text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }
.ws.queued { color: var(--muted); }
.ws.running { color: var(--ink); }
.ws.running .ws-ico { border-color: var(--accent); }
.ws.running .ws-ico::after { content: ""; width: 10px; height: 10px; background: var(--accent); animation: spin 1.2s cubic-bezier(.6, 0, .4, 1) infinite; }
.ws.running .ws-st { color: var(--accent); font-weight: 700; }
.ws.done { color: var(--muted); }
.ws.done .ws-ico { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ws.done .ws-st { color: var(--accent); }
.ws.failed { color: var(--danger); } .ws.failed .ws-ico { border-color: var(--danger); }
.ws.pop .ws-ico { animation: pop 480ms cubic-bezier(.3, 1.6, .5, 1); }
@media (max-width: 560px) { .ws { grid-template-columns: 24px minmax(0, 1fr) 56px; } .ws-bar { display: none; } }

.reel { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; }
.reel-card { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.reel-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.4); transition: filter 700ms ease; }
.reel-card.running { border-color: var(--accent); }
.reel-card.running img { filter: grayscale(.2) brightness(.75); animation: drift 7s ease-in-out infinite alternate; }
.reel-card.running::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: var(--accent); box-shadow: 0 0 16px 2px var(--accent); animation: scan 2.4s linear infinite; }
.reel-card.done img { filter: none; }
.reel-card.pop img { animation: develop 900ms ease-out; }
.reel-tag { position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; background: rgb(11 11 13 / .82); font-family: var(--display); font-size: 15px; text-transform: uppercase; letter-spacing: .03em; }
.reel-st { position: absolute; right: 6px; top: 6px; padding: 2px 6px; background: rgb(11 11 13 / .82); color: var(--muted); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.reel-card.running .reel-st, .reel-card.done .reel-st { background: var(--accent); color: var(--accent-ink); }

/* stills die gemaakt worden */
.thumb-wait.live { position: relative; overflow: hidden; color: var(--ink); border: 1px solid var(--accent); }
.thumb-wait.live::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgb(255 212 0 / .16) 50%, transparent 70%); animation: sweep 1.8s linear infinite; }
.thumb-wait b { color: var(--accent); font-variant-numeric: tabular-nums; }
.scene .thumb.pop { animation: develop 900ms ease-out; }

/* backstage en klappen */
.wait-extra { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); }
.backstage { flex: 1 1 300px; display: flex; gap: 10px; align-items: baseline; color: var(--muted); font-size: 15px; min-height: 3em; }
.backstage .tag { flex: none; padding: 3px 6px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.backstage .in { animation: rise 420ms ease-out; }
.wait-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.clap-note { flex: 1 1 100%; font-size: 13px; color: var(--dim); }

@keyframes stripes { to { background-position: 34px 0; } }
@keyframes eq { from { transform: scaleY(.12); } to { transform: scaleY(.85); } }
@keyframes clap { 0% { transform: scaleY(.2); } 35% { transform: scaleY(1); } 100% { transform: scaleY(.4); } }
@keyframes spin { to { transform: rotate(180deg); } }
@keyframes pop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
@keyframes scan { from { left: -3px; } to { left: 100%; } }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.12) translateX(-3%); } }
@keyframes develop { from { opacity: 0; filter: grayscale(1) brightness(1.8) blur(6px); transform: scale(1.04); } to { opacity: 1; } }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .wait *, .wait *::before, .wait *::after, .reel-card *, .reel-card::after, .thumb-wait.live::before, .scene .thumb.pop { animation: none !important; transition: none !important; }
  .reel-card.running::after, .thumb-wait.live::before { display: none; }
  .wait.live .eq i { transform: scaleY(.6); }
  .wait .eq.boost i { animation: none !important; transform: scaleY(1); }
}

/* preview & export */
.player { width: 100%; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); }
/* Typo: live preview van de film (public/typo) */
.typo-frame { width: 100%; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); margin-bottom: 10px; }
.typo-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.exports { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.exp { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--line); background: var(--bg); font-size: 14px; }
.exp b { font-size: 15px; }
.exp a { font-weight: 700; }
.seal { padding-left: 14px; border-left: 3px solid var(--accent); color: var(--muted); font-size: 14px; max-width: 64ch; }

/* admin */
.admin-list { display: grid; gap: 14px; }
.admin-row { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; padding: 16px; background: var(--surface); border: 1px solid var(--line); }
@media (max-width: 760px) { .admin-row { grid-template-columns: 1fr; } }
.admin-row video { width: 100%; background: #000; }
.admin-meta { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.admin-meta b { color: var(--ink); font-size: 18px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }

/* document-invoer: link of pdf */
.doc-row { display: flex; gap: 8px; align-items: stretch; }
.doc-row .btn-small { flex: none; white-space: nowrap; }
.doc-row input[type="url"] { flex: 1 1 auto; min-width: 0; }
.doc-pick { flex: none; cursor: pointer; white-space: nowrap; }

/* stemkeuze */
.voice { display: grid; gap: 10px; }
.voice-row { display: grid; grid-template-columns: 116px 1fr; align-items: center; gap: 12px; }
.voice-label { font-size: 13px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; }
.voice-box { border: 1px solid var(--line); background: var(--surface); padding: 14px 16px; margin-bottom: 14px; }
.voice-box summary { cursor: pointer; font-weight: 700; }
.voice-box[open] summary { margin-bottom: 14px; }
@media (max-width: 520px) { .voice-row { grid-template-columns: 1fr; gap: 6px; } }

/* e-mailbevestiging */
.verify-box { display: grid; gap: 8px; padding: 20px; border: 3px solid var(--accent); }
.verify-mail { font-family: var(--display); font-size: clamp(24px, 4.4vw, 44px); line-height: 1.05; overflow-wrap: anywhere; }

/* Scène aanpassen: modal */
.scene.editing { border-color: var(--accent); }
.scene .badge { justify-self: start; font-size: 12px; font-weight: 700; letter-spacing: .02em; padding: 3px 8px; background: var(--accent); color: var(--accent-ink); }
.modal { width: min(680px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); overflow: auto; }
.modal::backdrop { background: rgb(11 11 13 / .78); }
.modal-inner { display: grid; gap: 16px; padding: clamp(18px, 3vw, 28px); }
.modal-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.modal-head h3 { margin: 0; font-size: clamp(20px, 2.6vw, 26px); }
.modal-x { flex: none; width: 36px; height: 36px; display: grid; place-items: center; background: none; border: 1px solid var(--line); color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.modal-x:hover, .modal-x:focus-visible { color: var(--ink); border-color: var(--line-strong); }
.modal .thumb, .modal .thumb-wait { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); border: 1px solid var(--line); }
.modal .thumb-small { width: min(280px, 100%); }
.modal .thumb-wait { display: grid; place-items: center; color: var(--dim); font-size: 14px; border-style: dashed; }
.modal .field { display: grid; gap: 6px; }
.modal .dim { color: var(--dim); font-weight: 400; }
.modal .doc-row input { flex: 1 1 0; min-width: 0; }
.modal-error { margin: 0; color: var(--danger); font-size: 14px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
@media (max-width: 560px) {
  .modal .doc-row { flex-direction: column; }
  .modal-actions { justify-content: stretch; }
  .modal-actions .btn { flex: 1 1 100%; }
}

/* opmaak: stijl en huiskleuren (stap 6), met een schets van de overlay */
.ov-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; }
.ov-swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ov-swatch { width: 36px; height: 36px; padding: 0; border: 2px solid var(--line-strong); cursor: pointer; }
.ov-swatch[aria-pressed="true"] { outline: 3px solid var(--accent); outline-offset: 2px; }
.ov-custom { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; }
.ov-custom input { width: 36px; height: 36px; padding: 0; border: 2px solid var(--line-strong); background: none; cursor: pointer; }
.ov-preview { position: relative; aspect-ratio: 16 / 9; max-width: 560px; overflow: hidden; background: linear-gradient(160deg, #3a3a40, #15151a 70%); font-family: var(--display); text-transform: uppercase; letter-spacing: 0.03em; }
.ov-preview span { position: absolute; white-space: nowrap; }
.ovp-name { left: 4%; top: 58%; padding: 4px 22px 4px 12px; font-size: clamp(16px, 3.6vw, 26px); background: var(--p); color: var(--pt); clip-path: polygon(3% 0, 100% 0, 97% 100%, 0 100%); }
.ovp-sub { left: 4%; top: 71%; padding: 3px 18px 3px 12px; font-size: clamp(10px, 1.8vw, 13px); background: var(--a); color: var(--at); }
.ovp-band { left: -5%; right: -5%; top: 82%; padding: 6px 0; text-align: center; font-size: clamp(14px, 3vw, 22px); background: var(--p); color: var(--pt); transform: rotate(-3.5deg); box-shadow: 0 -5px 0 var(--a), 0 5px 0 var(--a); }
.ovp-band i { font-style: normal; color: var(--a); }
.ov-preview[data-style="campagne"] .ovp-band { top: 30%; }
.ovp-bug { left: 3%; top: 5%; font-size: clamp(9px, 1.6vw, 12px); background: rgba(11, 11, 13, 0.8); color: #fff; padding-right: 10px; }
.ovp-bug b, .ovp-bar b { display: inline-block; margin-right: 10px; padding: 4px 8px; font-weight: 400; background: var(--a); color: var(--at); }
.ovp-bar { left: 0; right: 0; bottom: 11%; font-size: clamp(11px, 2.2vw, 16px); background: var(--p); color: var(--pt); }
.ovp-bar b { padding: 8px 12px; }
.ovp-tick { left: 0; right: 0; bottom: 0; height: 11%; display: flex; align-items: center; padding-left: 12px; font-size: clamp(8px, 1.4vw, 11px); background: #0b0b0d; color: #fff; }
@media (max-width: 520px) { .ov-row { grid-template-columns: 1fr; gap: 6px; } }

/* stap 1: voorbeelden bij de muziekstijl en de beeldstijl */
.chip-listen { background: transparent; border-style: dashed; }
.chip-listen[aria-pressed="true"] { background: transparent; color: var(--accent); border-color: var(--accent); border-style: solid; }
.look-demo { display: block; width: 100%; max-width: 360px; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); }
