/* ThuisHUB, fase 0. Kleuren en vormen volgen de mockups in ontwerp\mockups. Alle kleuren lopen via deze variabelen. */
:root {
  --achtergrond: #0E1116;
  --zijbalk: #12161D;
  --kaart: #161C25;
  --kaart-actief: #1F2733;
  --lijn: #222A36;
  --rand: #3A4558;
  --tekst: #E9ECF1;
  --tekst-sterk: #FFFFFF;
  --tekst-zacht: #B7BECA;
  --tekst-stil: #8A93A3;
  --accent: #F2A541;
  --op-accent: #14110A;
  --goed: #7CCB8A;
  --fout: #F08A8A;
  --let-op-achtergrond: #2A2213;
  --goed-achtergrond: #142319;
  --letter: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --letter-kop: 'Segoe UI Semibold', 'Segoe UI', system-ui, sans-serif;
  --hoeken: 1;
  --schaal: 1;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--achtergrond); color: var(--tekst); font-family: var(--letter); font-size: 16px; line-height: 1.5; min-height: 100vh; zoom: var(--schaal); }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--letter-kop); color: var(--tekst-sterk); margin: 0; line-height: 1.15; }
h1 { font-size: 30px; }
h2 { font-size: 19px; }
p { margin: 0; }
[hidden] { display: none !important; }

.merk { font-family: var(--letter-kop); font-weight: 700; font-size: 20px; color: var(--tekst-sterk); }
.stil { color: var(--tekst-stil); }
.zacht { color: var(--tekst-zacht); }
.goed { color: var(--goed); }
.fout { color: var(--fout); }
.let-op { color: var(--accent); }

/* Formulieren */
.veld { display: flex; flex-direction: column; gap: 8px; }
.veld label { font-size: 14px; color: var(--tekst-zacht); }
input[type=text], input[type=password], input[type=number], select {
  font: inherit; font-size: 17px; padding: 13px 14px; border-radius: calc(12px * var(--hoeken, 1)); border: 1px solid var(--rand);
  background: var(--kaart); color: var(--tekst-sterk); width: 100%;
}
input:focus-visible, select:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input.code { letter-spacing: 0.35em; font-size: 22px; font-weight: 600; text-align: center; text-transform: uppercase; }
label.vink { display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--tekst); }
label.vink input { width: 20px; height: 20px; accent-color: var(--accent); }

button { font: inherit; font-size: 15px; cursor: pointer; border-radius: calc(10px * var(--hoeken, 1)); padding: 11px 20px; border: 0; }
button:disabled { opacity: 0.55; cursor: default; }
.knop-hoofd { background: var(--accent); color: var(--op-accent); font-weight: 600; }
.knop-rand { background: transparent; color: var(--tekst); border: 1px solid #5A6578; }
.knop-goed { background: var(--goed); color: var(--achtergrond); font-weight: 600; }
.knop-klein { font-size: 14px; padding: 8px 14px; border-radius: calc(8px * var(--hoeken, 1)); }
.knoppen { display: flex; flex-wrap: wrap; gap: 10px; }

.melding { border-radius: calc(12px * var(--hoeken, 1)); padding: 12px 14px; font-size: 15px; }
.melding.fout { background: #2A1616; color: #F5C2C2; }
.melding.goed { background: var(--goed-achtergrond); color: #BFE3C8; }
.melding.info { background: var(--kaart); color: var(--tekst-zacht); }
.geheim-veld { -webkit-text-security: disc; text-security: disc; }
.stappen { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--tekst-zacht); max-width: 80ch; }
label.vinkje-regel { display: flex; align-items: flex-start; flex-wrap: nowrap; gap: 10px; color: var(--tekst-zacht); font-size: 15px; cursor: pointer; }
label.vinkje-regel span { flex: 1 1 auto; min-width: 0; }
.vinkje-regel input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }

.kaart { background: var(--kaart); border-radius: calc(14px * var(--hoeken, 1)); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.tegels { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.tegel { background: var(--kaart); border-radius: calc(14px * var(--hoeken, 1)); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.tegel .label { font-size: 13px; color: var(--tekst-stil); }
.tegel .waarde { font-size: 18px; font-weight: 600; color: var(--tekst-sterk); }
.tegel .toelichting { font-size: 14px; }

.tabel { overflow-x: auto; background: var(--kaart); border-radius: calc(14px * var(--hoeken, 1)); }
table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
th { text-align: left; color: var(--tekst-stil); font-size: 13px; font-weight: 500; padding: 14px 18px; }
td { padding: 12px 18px; border-top: 1px solid var(--lijn); vertical-align: middle; }
td.acties { text-align: right; white-space: nowrap; }
tr.wacht { background: var(--let-op-achtergrond); }
.leeg { padding: 18px; color: var(--tekst-stil); }

/* De QR-code heeft zijn eigen witte rand (stille zone); groot genoeg om vanaf een telefoon te scannen. */
.qr { background: #FFFFFF; border-radius: calc(12px * var(--hoeken, 1)); width: min(320px, 100%); aspect-ratio: 1; }
.qr img { width: 100%; height: 100%; display: block; }
.geheim { font-family: Consolas, monospace; font-size: 15px; word-break: break-all; color: var(--tekst-zacht); }

/* Smalle pagina: inloggen en koppelen op telefoon of pc */
.smal { max-width: 440px; margin: 0 auto; padding: 56px 24px 40px; display: flex; flex-direction: column; gap: 22px; }

/* Beheerscherm: zijbalk en inhoud */
.beheer { display: flex; min-height: 100vh; }
.beheer nav { flex: 0 0 240px; background: var(--zijbalk); padding: 28px 16px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.beheer nav .merk { padding: 0 12px 4px; font-size: 19px; }
.beheer nav .onder { font-size: 13px; color: var(--tekst-stil); padding: 0 12px 18px; }
.beheer nav a { padding: 11px 12px; border-radius: calc(10px * var(--hoeken, 1)); color: var(--tekst-zacht); text-decoration: none; }
.beheer nav a[aria-current=page] { background: var(--kaart-actief); color: var(--tekst-sterk); font-weight: 600; }
.beheer nav .ruimte { flex-grow: 1; min-height: 16px; }
.beheer main { flex: 1 1 auto; min-width: 0; padding: 32px 40px; display: flex; flex-direction: column; gap: 26px; max-width: 1280px; }
.paginakop { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; }
.paginakop .onder { font-size: 15px; color: var(--tekst-stil); margin-top: 6px; }
section { display: flex; flex-direction: column; gap: 12px; }
.logregel { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--lijn); font-size: 14px; }
.logregel:last-child { border-bottom: 0; }
.logregel .tijd { color: var(--tekst-stil); width: 140px; flex-shrink: 0; }
.stapel { display: flex; flex-direction: column; gap: 18px; }
.rij { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.rij.tussen { justify-content: space-between; align-items: center; gap: 12px; }
.formulier { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; align-items: end; }

/* Titeldetails */
h3 { font-size: 16px; }
img.poster { width: 180px; border-radius: calc(10px * var(--hoeken, 1)); flex-shrink: 0; }
.detail { flex: 1 1 320px; min-width: 0; gap: 10px; }
.kandidaten { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.kandidaat { padding: 12px; gap: 8px; }
.kandidaat img, .geen-poster { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: calc(8px * var(--hoeken, 1)); background: var(--kaart-actief); }
.kort { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; }
.afbeeldingen { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.afbeeldingen.achtergrond, .afbeeldingen.logo, .afbeeldingen.miniatuur { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.afbeelding { padding: 0; border-radius: calc(8px * var(--hoeken, 1)); border: 3px solid transparent; background: var(--kaart-actief); overflow: hidden; }
.afbeelding img { width: 100%; display: block; }
.afbeeldingen.logo .afbeelding { padding: 10px; }
.afbeelding.gekozen { border-color: var(--accent); }

.stapel > input[type="search"] { flex: none; }
input.klein-getal, label.vink input.klein-getal { width: 80px; height: auto; padding: 6px 8px; font-size: 15px; }
.groepen { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; padding: 10px 0; }

/* ---------- Webapp: live tv ---------- */
.zenderlijst { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; margin-top: 14px; }
.zender { display: flex; gap: 12px; align-items: center; background: var(--kaart); border-radius: calc(12px * var(--hoeken, 1)); padding: 10px 12px; color: var(--tekst); text-decoration: none; min-width: 0; }
.zender:hover, .zender:focus-visible { outline: 2px solid var(--accent); }
.zender-tekst { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.zender-tekst > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zender-logo { width: 64px; height: 40px; object-fit: contain; flex: none; border-radius: calc(6px * var(--hoeken, 1)); }
.zender-logo.leeg { display: flex; align-items: center; justify-content: center; background: var(--achtergrond); color: var(--tekst-stil); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.gids { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 6px; }
.gids-rij { display: flex; gap: 8px; align-items: stretch; width: max-content; }
.gids-zender { flex: none; width: 96px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--tekst); text-decoration: none; text-align: center; overflow: hidden;
  position: sticky; left: 0; z-index: 2; background: var(--achtergrond); }
.gids-zender span { width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gids-baan { position: relative; flex: none; min-height: 56px; }
.gids-rij:first-child .gids-baan { min-height: 22px; }
.gids-uur { position: absolute; top: 0; }
.gids-nu { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); }
.gids-programma { position: absolute; top: 0; bottom: 0; text-align: left; display: flex; flex-direction: column; gap: 2px; background: var(--kaart); color: var(--tekst); border: 0; border-radius: calc(8px * var(--hoeken, 1)); padding: 8px 10px; font: inherit; font-size: 14px; cursor: pointer; overflow: hidden; }
.gids-programma span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gids-programma.nu { outline: 2px solid var(--accent); }
.gids-programma.voorbij { opacity: .55; }

.smal.breder { max-width: 720px; padding-top: 8px; }
input[type=range], input[type=checkbox] { accent-color: var(--accent); }
select.toezicht-keuze { min-width: 190px; }
.kaart.voorstel { display: flex; flex-direction: row; gap: 16px; align-items: flex-start; }
.kaart.voorstel > .stapel { flex: 1; min-width: 0; }
.kaart.voorstel code { word-break: break-all; }
.voorstel-poster { width: 92px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: calc(8px * var(--hoeken, 1)); flex: none; background: var(--achtergrond); }
.vergelijk { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.vergelijk code { word-break: break-all; }
input.klein-veld { width: 110px; padding: 6px 8px; font-size: 14px; }
input.patroon { font-family: Consolas, monospace; font-size: 14px; }
.menu-kop { padding: 6px 12px 4px; }
button:disabled { opacity: .5; cursor: not-allowed; }
.bel { position: relative; background: none; border: 0; padding: 4px 8px; font-size: 18px; color: var(--tekst); }
.bel-aantal { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: var(--op-accent);
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.menu.meldingen { width: min(380px, calc(100vw - 16px)); max-height: 70vh; overflow-y: auto; }
.menu.meldingen .menu-keuze { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.menu.meldingen .menu-keuze.nieuw span:first-child { font-weight: 700; color: var(--tekst-sterk); }
.menu.apparaten { max-width: min(360px, calc(100vw - 16px)); }
.menu.apparaten .menu-keuze { display: flex; flex-direction: column; gap: 2px; }
.opslaan-balk { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 16px;
  background: var(--let-op-achtergrond); border: 1px solid var(--accent); border-radius: calc(12px * var(--hoeken, 1)); }
.thema-tegels { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.thema-tegel { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.thema-voorbeeld { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; width: 100%; height: 72px; padding: 0; overflow: hidden;
  border: 1px solid var(--rand); border-radius: calc(10px * var(--hoeken, 1)); background: none; }
.thema-voorbeeld span:first-child { grid-row: 1 / 3; }
.thema-voorbeeld:hover, .thema-voorbeeld:focus-visible { outline: 2px solid var(--accent); }
.thema-kleuren { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 10px; }
.thema-kleur { display: flex; align-items: center; gap: 10px; }
.thema-kleur input[type=color] { width: 48px; height: 40px; padding: 2px; border: 1px solid var(--rand); border-radius: calc(8px * var(--hoeken, 1)); background: var(--kaart); }
.thema-opslaan { position: sticky; bottom: 0; padding: 12px 0; background: var(--achtergrond); }
.startrij { padding: 6px 0; border-bottom: 1px solid var(--lijn); }
.start-zender { width: 240px; flex: none; }
.scheiding { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.scheiding::before, .scheiding::after { content: ''; flex: 1; border-top: 1px solid var(--rand); }

/* ---------- Webapp: muziek ---------- */
.muziek-zoek { width: 100%; margin: 6px 0 4px; }
.mixen { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.mix-tegel { display: flex; align-items: flex-end; min-height: 84px; padding: 12px; border-radius: calc(12px * var(--hoeken, 1)); color: #fff; font-weight: 700; text-decoration: none;
  background: linear-gradient(135deg, #7c3aed, #db2777); }
.mix-1 { background: linear-gradient(135deg, #0891b2, #2563eb); } .mix-2 { background: linear-gradient(135deg, #059669, #65a30d); }
.mix-3 { background: linear-gradient(135deg, #ea580c, #dc2626); } .mix-4 { background: linear-gradient(135deg, #be185d, #7c2d12); }
.mix-5 { background: linear-gradient(135deg, #ca8a04, #ea580c); } .mix-6 { background: linear-gradient(135deg, #0f766e, #1e40af); }
.mix-7 { background: linear-gradient(135deg, #4b5563, #111827); }
.mix-tegel:hover, .mix-tegel:focus-visible { outline: 2px solid var(--accent); }
.raster.albums { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.album-kaart { display: flex; flex-direction: column; gap: 4px; color: var(--tekst); text-decoration: none; min-width: 0; width: 160px; flex: none; }
.raster .album-kaart { width: auto; }
.album-kaart .titel-naam, .album-kaart .stil { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.album-hoes { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: calc(10px * var(--hoeken, 1)); background: var(--kaart); display: block; }
.album-hoes.groot { width: 220px; flex: none; }
.leeg-hoes { display: flex; align-items: center; justify-content: center; color: var(--tekst-stil); font-size: 28px; font-weight: 700; text-transform: uppercase; }
.album-kop { display: flex; gap: 22px; align-items: flex-end; margin-bottom: 18px; flex-wrap: wrap; }
.album-kop h1 { margin: 0; }
table.nummers { width: 100%; border-collapse: collapse; }
table.nummers td { padding: 4px 6px; border-bottom: 1px solid var(--rand); vertical-align: middle; }
table.nummers td.nr { width: 32px; text-align: right; }
table.nummers tr.speelt .nummer-titel { color: var(--accent); font-weight: 700; }
.nummer-knop { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; background: none; border: 0; color: var(--tekst); font: inherit; text-align: left; cursor: pointer; padding: 6px 0; width: 100%; min-width: 0; }
.nummer-knop span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.nummer-knop:hover .nummer-titel { text-decoration: underline; }
.knop-muziek { background: none; border: 0; color: var(--tekst); font-size: 18px; min-width: 40px; min-height: 40px; border-radius: 50%; cursor: pointer; }
.knop-muziek:hover, .knop-muziek:focus-visible { background: var(--kaart); }
.knop-muziek.aan { color: var(--accent); }
.knop-muziek.klein { font-size: 15px; min-width: 32px; min-height: 32px; }
.knop-muziek.groot { font-size: 20px; min-width: 48px; min-height: 48px; background: var(--tekst-sterk, #fff); color: var(--achtergrond); }
.menu { position: fixed; z-index: 60; background: var(--kaart); border: 1px solid var(--rand); border-radius: calc(10px * var(--hoeken, 1)); padding: 6px; display: flex; flex-direction: column; min-width: 220px; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.menu-keuze { background: none; border: 0; color: var(--tekst); font: inherit; text-align: left; padding: 9px 12px; border-radius: calc(6px * var(--hoeken, 1)); cursor: pointer; }
.menu-keuze:hover, .menu-keuze:focus-visible { background: var(--achtergrond); }
.artiesten { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin-top: 12px; }
.artiest { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: calc(10px * var(--hoeken, 1)); color: var(--tekst); text-decoration: none; }
.artiest:hover { background: var(--kaart); }
.artiest-letter { width: 44px; height: 44px; border-radius: 50%; background: var(--kaart); display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.chip { background: var(--kaart); border: 1px solid var(--accent); color: var(--tekst); border-radius: 999px; padding: 3px 10px; font-size: 14px; }
.herkend { align-items: center; margin: 8px 0; }
.lijst-kaart { display: flex; justify-content: space-between; align-items: center; color: var(--tekst); text-decoration: none; }
body.met-muziek { padding-bottom: 96px; }
body.video-actief .muziek-balk, body.video-actief .muziek-paneel { display: none; }
.muziek-balk { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 12px; align-items: center; padding: 8px 14px calc(8px + env(safe-area-inset-bottom)); background: var(--kaart); border-top: 1px solid var(--rand); }
.muziek-nu { display: flex; gap: 10px; align-items: center; min-width: 0; }
.muziek-hoes { width: 56px; height: 56px; border-radius: calc(8px * var(--hoeken, 1)); object-fit: cover; flex: none; background: var(--achtergrond); }
.muziek-tekst { display: flex; flex-direction: column; min-width: 0; }
.muziek-tekst > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.muziek-midden { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.muziek-knoppen { display: flex; gap: 6px; align-items: center; }
.muziek-rij { display: flex; gap: 10px; align-items: center; width: 100%; }
.muziek-schuif { flex: 1; accent-color: var(--accent); }
.muziek-tijd { white-space: nowrap; min-width: 84px; }
.muziek-rechts { display: flex; gap: 4px; align-items: center; justify-content: flex-end; }
.muziek-volume { width: 90px; accent-color: var(--accent); }
.muziek-melding { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -8px); background: var(--achtergrond); border: 1px solid var(--rand); padding: 8px 14px; border-radius: calc(10px * var(--hoeken, 1)); font-size: 14px; white-space: nowrap; max-width: 90vw; overflow: hidden; text-overflow: ellipsis; }
.muziek-paneel { position: fixed; right: 12px; bottom: 92px; z-index: 49; width: min(420px, calc(100vw - 24px)); max-height: min(70vh, 640px); overflow-y: auto;
  background: var(--kaart); border: 1px solid var(--rand); border-radius: calc(14px * var(--hoeken, 1)); padding: 14px 16px; box-shadow: 0 8px 30px rgba(0,0,0,.45); }
.muziek-paneel h3 { margin: 0 0 10px; }
.muziek-paneel > h3, .muziek-paneel > .rij:first-child { position: sticky; top: -14px; z-index: 1; background: var(--kaart); padding: 6px 0; margin-top: -6px; }
.wachtrij { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.wachtrij li { display: flex; align-items: center; gap: 6px; border-radius: calc(8px * var(--hoeken, 1)); padding: 0 6px; }
.wachtrij li.nu { background: var(--achtergrond); }
.wachtrij li.nu .wachtrij-nummer span:first-child { color: var(--accent); font-weight: 700; }
.wachtrij li.geweest { opacity: .5; }
.wachtrij-nummer { flex: 1; display: flex; flex-direction: column; align-items: flex-start; background: none; border: 0; color: var(--tekst); font: inherit; text-align: left; padding: 6px 0; cursor: pointer; min-width: 0; }
.wachtrij-nummer span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tekst { display: flex; flex-direction: column; gap: 4px; }
.tekst.gewoon { white-space: pre-line; line-height: 1.6; }
.tekst-regel { background: none; border: 0; color: var(--tekst-stil); font: inherit; font-size: 18px; text-align: left; padding: 4px 0; cursor: pointer; transition: color .2s; }
.tekst-regel.actief { color: var(--tekst-sterk, #fff); font-weight: 700; }
@media (max-width: 760px) {
  .breed-alleen { display: none; }
  .kijk-kop { padding: 10px 16px; gap: 10px; }
  .kijk-kop nav { gap: 12px; align-items: center; }
  .muziek-balk { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 4px 8px; padding-top: 6px; }
  .muziek-midden { grid-column: 1 / -1; grid-row: 2; }
  .muziek-rechts .muziek-volume { display: none; }
  .muziek-hoes { width: 44px; height: 44px; }
  body.met-muziek { padding-bottom: 150px; }
  .muziek-paneel { bottom: 140px; }
  .verberg-smal { display: none; }
  .album-hoes.groot { width: 160px; }
}

/* ---------- Webapp: bladeren ---------- */
.klein { font-size: 13px; }
input[type=search] { font: inherit; font-size: 16px; padding: 11px 14px; border-radius: calc(10px * var(--hoeken, 1)); border: 1px solid var(--rand); background: var(--kaart); color: var(--tekst-sterk); flex: 1 1 240px; }
.kijk-kop { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px clamp(16px, 4vw, 48px); position: sticky; top: 0; z-index: 5;
  background: linear-gradient(var(--achtergrond) 70%, transparent); flex-wrap: wrap; }
.kijk-kop .merk { text-decoration: none; }
.kijk-kop nav { display: flex; gap: 18px; flex-wrap: wrap; }
.kijk-kop nav a { color: var(--tekst-zacht); text-decoration: none; }
.kijk-inhoud { padding: 8px clamp(16px, 4vw, 48px) 48px; display: flex; flex-direction: column; gap: 28px; position: relative; }
.rij-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.rij-scroll .titel-kaart { scroll-snap-align: start; }
.rij-scroll:has(.breed) { grid-auto-columns: 260px; }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px 14px; }
.titel-kaart { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--tekst); position: relative; min-width: 0; }
.titel-kaart:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: calc(10px * var(--hoeken, 1)); }
.titel-naam { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
img.poster, .leeg-poster { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: calc(10px * var(--hoeken, 1)); background: var(--kaart-actief); }
.leeg-poster { display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px; font-size: 14px; color: var(--tekst-zacht); }
.vinkje { position: absolute; top: 8px; right: 8px; background: var(--goed); color: var(--achtergrond); border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.verberg-knop { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: none; background: rgb(0 0 0 / 0.6); color: #fff; font-size: 16px; cursor: pointer; opacity: 0; transition: opacity 0.15s; }
.titel-kaart:hover .verberg-knop, .titel-kaart:focus-within .verberg-knop, .verberg-knop:focus-visible { opacity: 1; }
@media (hover: none) { .verberg-knop { opacity: 0.85; } }
.achtergrond-klein { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: calc(10px * var(--hoeken, 1)); background: var(--kaart-actief); }
.voortgang { height: 4px; background: var(--kaart-actief); border-radius: calc(2px * var(--hoeken, 1)); overflow: hidden; }
.voortgang-balk { height: 100%; width: 0; background: var(--accent); }
.titel-achtergrond { position: absolute; inset: 0 0 auto 0; width: 100%; height: 60vh; object-fit: cover; opacity: 0.18; pointer-events: none;
  mask-image: linear-gradient(black, transparent); -webkit-mask-image: linear-gradient(black, transparent); }
.titel-kop { display: flex; gap: 28px; align-items: flex-start; position: relative; flex-wrap: wrap; }
.titel-kop > .poster, .titel-kop > .leeg-poster { width: 220px; flex-shrink: 0; }
.titel-kop .stapel { flex: 1 1 320px; max-width: 760px; gap: 12px; }
.titel-kop img.logo { max-width: 360px; max-height: 120px; object-fit: contain; object-position: left; }
.knop-link { display: inline-block; text-decoration: none; padding: 12px 22px; border-radius: calc(10px * var(--hoeken, 1)); }
.afleveringen { display: flex; flex-direction: column; gap: 4px; }
.aflevering { display: flex; gap: 14px; align-items: center; padding: 10px 12px; border-radius: calc(10px * var(--hoeken, 1)); background: var(--kaart); }
.aflevering-tekst { flex: 1; min-width: 0; }
.knop-speel { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--op-accent); display: flex; align-items: center; justify-content: center; text-decoration: none; flex-shrink: 0; }

/* ---------- Speler ---------- */
body.kijk:has(.speler) { overflow: hidden; }
.speler { position: fixed; inset: 0; background: #000; z-index: 50; outline: none; }
.speler video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.speler-kop, .bediening { position: absolute; left: 0; right: 0; padding: 14px clamp(12px, 3vw, 32px); transition: opacity 0.3s; display: flex; gap: 12px; }
.speler-kop { top: 0; align-items: center; background: linear-gradient(rgba(0,0,0,0.75), transparent); color: #FFF; }
.bediening { bottom: 0; flex-direction: column; background: linear-gradient(transparent, rgba(0,0,0,0.8)); }
.speler.rustig .speler-kop, .speler.rustig .bediening { opacity: 0; }
.speler.rustig { cursor: none; }
.rij-schuif input[type=range] { width: 100%; accent-color: var(--accent); }
.rij-knoppen { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: #FFF; }
.rij-knoppen .ruimte { flex: 1; }
.rij-knoppen select { font-size: 14px; padding: 6px 8px; border-radius: calc(8px * var(--hoeken, 1)); width: auto; max-width: 220px; background: rgba(22,28,37,0.9); }
.knop-speler { background: rgba(255,255,255,0.12); color: #FFF; border-radius: calc(8px * var(--hoeken, 1)); padding: 8px 12px; font-size: 15px; min-width: 44px; }
.tijd { font-variant-numeric: tabular-nums; font-size: 14px; }
.ondertitel { position: absolute; left: 5%; right: 5%; bottom: 13%; display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; }
.ondertitel span { background: rgba(0,0,0,0.72); color: #FFF; padding: 4px 12px; border-radius: calc(6px * var(--hoeken, 1)); font-size: clamp(18px, 2.6vw, 34px); line-height: 1.3; text-align: center; white-space: pre-line; }
.zoeklijst { max-height: 50vh; overflow-y: auto; gap: 6px; }
.zoekresultaat { text-align: left; white-space: normal; color: #FFF; }
.speler-melding select { width: auto; }
.speler-melding { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(14,17,22,0.92); color: #FFF; padding: 18px 22px; border-radius: calc(14px * var(--hoeken, 1)); max-width: min(90vw, 520px); }

@media (max-width: 760px) {
  .beheer { flex-direction: column; }
  .beheer nav { flex: none; flex-direction: row; flex-wrap: wrap; padding: 16px; }
  .beheer nav .onder, .beheer nav .ruimte { display: none; }
}

@media (max-width: 640px) {
  .beheer main { padding: 24px 16px; }
  .logregel { flex-direction: column; gap: 2px; }
}
