/*
  assets/style.css - Internet Radio Piraat (IRP), versie 4

  Opzet zoals de grote zenders: lichte pagina, een sterke merkkleur (uit het
  beheer, standaard het oranje van het logo), zwart voor de spelerbalk en de
  voettekst, grote echte foto's, ronde knoppen en duidelijke koppen.

  De merkkleur komt uit de instellingen via een <style> in de head (render_stijl):
  --merk, --merk-hover, --merk-tekst en --merk-zacht.
*/

/* Indeling: een kolom van max. 1320px; "Nu op IRP" als groot merkvlak, daarna
   chat met zijbalk, programma, DJ's, nieuws, foto's, gastenboek, contact, sponsors. */
:root {
  --bg: #ffffff;
  --bg-2: #f2f3f5;
  --kaart: #ffffff;
  --kaart-vol: #ffffff;
  --topbar: #ffffff;
  --veld: #ffffff;
  --vlak: #e7e9ed;
  --op-ink: #ffffff;
  --ok-tekst: #137a3a;
  --ink: #15171c;
  --ink-2: #5c6270;
  --ink-3: #2c3039;
  --lijn: #e2e4e8;
  --veld-rand: #e2e4e8;
  --zwart: #15171c;
  --live: #e0262d;
  --live-licht: #ff5f64;
  --merk: #ff6b1a;
  --merk-hover: #ff7d36;
  --merk-tekst: #141414;
  --merk-zacht: rgba(255, 107, 26, .12);
  --radius: 18px;
  --radius-s: 12px;
  --balk-h: 76px;
  --font: "Figtree", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

/* ---------- basis ---------- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding-bottom: calc(var(--balk-h) + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font); color: inherit; text-wrap: balance; }

h2 {
  font-size: clamp(1.875rem, 1.3rem + 1.6vw, 2.625rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.028em;
}
h3 { font-weight: 800; letter-spacing: -.01em; }

a { color: inherit; text-decoration-color: var(--merk); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.tabular { font-variant-numeric: tabular-nums; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 500;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--zwart);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

.sectie { padding-block: 76px; scroll-margin-top: 0; }
#hero { scroll-margin-top: 12px; }
.band { background: var(--bg-2); }

.sectie-kop {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px 32px;
  margin-bottom: 30px;
}
.sectie-intro { margin-top: 10px; max-width: 62ch; color: var(--ink-2); font-size: 1.0625rem; }
.sectie-intro a { color: var(--ink); font-weight: 600; }

.leeg { color: var(--ink-2); }

/* ---------- knoppen ---------- */

.knop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font: 700 1rem/1 var(--font);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms, color 150ms, transform 150ms;
}
.knop:active { transform: scale(.98); }
.knop:disabled { opacity: .6; cursor: wait; }
.knop-merk { background: var(--merk); color: var(--merk-tekst); }
.knop-merk:hover { background: var(--merk-hover); }
.knop-rand { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.knop-rand:hover { background: var(--ink); color: var(--op-ink); }

.knop-klein {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink);
  font: 700 .8125rem/1 var(--font);
  text-decoration: none;
  cursor: pointer;
}
.knop-klein:hover { background: var(--vlak); }

.tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink-2);
  font: 700 .75rem/1 var(--font);
}
.tag-merk { background: var(--merk-zacht); color: var(--ink); }

.kaart {
  background: var(--kaart);
  border: 1px solid var(--lijn);
  border-radius: var(--radius);
}
.kaart-pad { padding: 24px; }
.kaart-titel { margin-bottom: 14px; font-size: 1.125rem; font-weight: 800; }

/* ======================================================================
   Bovenbalk
   ====================================================================== */

.topbar {
  position: relative; /* staat bovenaan de pagina en scrolt niet mee */
  z-index: 60;
  background: var(--topbar);
  border-bottom: 1px solid var(--lijn);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 76px;
}
.merk {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}
.merk-logo { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.merk-tekst { display: flex; flex-direction: column; min-width: 0; }
.merk-naam { font-size: 1.125rem; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; white-space: nowrap; }
.merk-slogan { font-size: .8125rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; }

.menu { flex: 1; display: flex; justify-content: center; }
.menu ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.menu a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 150ms;
}
.menu a:hover { background: var(--bg-2); }
.menu a.actief { background: var(--merk-zacht); }

.topbar-acties { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.knop-luister { height: 44px; padding: 0 20px; }
.live-stip {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}
body.is-live .live-stip { background: var(--live); box-shadow: 0 0 0 2px #fff; animation: pulse 1.6s ease-in-out infinite; }
body.speelt .knop-luister .live-stip { animation: pulse 1.6s ease-in-out infinite; }

.menu-knop {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--ink);
  cursor: pointer;
}
.menu-knop span { display: block; width: 18px; height: 2px; border-radius: 1px; background: currentColor; }

/* ======================================================================
   Fotobanner met wisselende dia's en de oranje live-strook
   ====================================================================== */

.banner-sectie { padding-block: 24px 8px; }
.banner { overflow: hidden; border-radius: 28px; background: var(--zwart); }
.banner-dias { position: relative; height: clamp(340px, 28vw, 400px); }

.dia {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #111318;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease, visibility 0s linear .7s;
}
.dia.is-actief { opacity: 1; visibility: visible; transition: opacity .7s ease; }
.dia-beeld { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* echte foto: over de hele dia, links donker zodat de tekst leesbaar is */
.modus-foto::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 11, 14, .9) 0%, rgba(10, 11, 14, .62) 45%, rgba(10, 11, 14, .08) 100%);
}
/* logo of affiche: wazige versie als achtergrond, het plaatje zelf rechts in zijn geheel */
.modus-logo .dia-wazig {
  position: absolute;
  inset: -40px;
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  object-fit: cover;
  filter: blur(28px) brightness(.42) saturate(1.2);
}
.modus-logo .dia-beeld {
  inset: 28px 64px 28px auto;
  width: 42%;
  height: calc(100% - 56px);
  object-fit: contain;
}

.dia-tekst {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  height: 100%;
  max-width: 600px;
  padding: 28px 56px 64px;
  color: #fff;
}
.modus-logo .dia-tekst { max-width: 54%; }
.dia-label { font-size: .8125rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--merk); }
.dia-titel {
  display: -webkit-box;
  overflow: hidden;
  font-size: clamp(1.875rem, 1.1rem + 1.9vw, 3rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.dia-tekst > * { flex-shrink: 0; }
.dia-intro {
  display: -webkit-box;
  max-width: 46ch;
  overflow: hidden;
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, .86);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.dia .knop { margin-top: 4px; }

.banner-pijl {
  position: absolute;
  z-index: 3;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  cursor: pointer;
}
.banner-pijl:hover { background: rgba(255, 255, 255, .28); }
.banner-vorige { right: 72px; }
.banner-volgende { right: 20px; }
.banner-stippen { position: absolute; z-index: 3; left: 56px; bottom: 26px; display: flex; gap: 8px; }
.stip {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .4);
  cursor: pointer;
  transition: width 300ms, background-color 300ms;
}
.stip.is-actief { width: 28px; background: var(--merk); }
.banner :focus-visible { outline-color: #fff; }

/* De oranje live-strook onderin de banner */
.live-strook {
  display: grid;
  grid-template-columns: auto minmax(0, 1.1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 28px;
  padding: 18px 28px;
  background: var(--merk);
  color: var(--merk-tekst);
}
.banner .live-strook :focus-visible { outline-color: var(--zwart); }

.status-pil {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--zwart);
  color: #fff;
  font: 800 .75rem/1 var(--font);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.status-pil .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--merk); }
body.is-live .status-pil { background: var(--live); }
body.is-live .status-pil .dot { background: #fff; animation: pulse 1.6s ease-in-out infinite; }

.play-groot {
  flex: none;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--zwart);
  color: #fff;
  cursor: pointer;
  transition: transform 150ms;
}
.play-groot:hover { transform: scale(1.05); }
.play-groot:active { transform: scale(.97); }

.icoon { grid-area: 1 / 1; }
.icoon-wacht, .icoon-stop { display: none; }
.is-wacht .icoon-play, .is-speelt .icoon-play { display: none; }
.is-wacht .icoon-wacht { display: flex; }
.is-speelt .icoon-stop { display: block; }
.icoon-wacht { align-items: center; gap: 5px; }
.icoon-wacht i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: dots 1s ease-in-out infinite;
}
.icoon-wacht i:nth-child(2) { animation-delay: .15s; }
.icoon-wacht i:nth-child(3) { animation-delay: .3s; }

.ls-nu { display: flex; align-items: center; gap: 16px; min-width: 0; }
/* play-knop en de foto van de live DJ naast elkaar (telefoon: knopje op de hoek van de foto) */
.ls-knop { display: flex; align-items: center; gap: 16px; }
.ls-knop .play-groot { order: -1; }
.ls-nu-tekst { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
/* foto van de DJ die live is (uit de stream of uit het beheer) */
.ls-avatar { flex: none; width: 96px; height: 96px; margin-block: -6px; border-radius: 50%; object-fit: cover; background: #111; box-shadow: 0 0 0 4px rgba(0, 0, 0, .22), 0 8px 20px rgba(0, 0, 0, .25); }
.bar-logo.is-dj { width: 54px; height: 54px; box-shadow: 0 0 0 2px var(--merk); }
.ls-show { font-size: 1.375rem; font-weight: 900; line-height: 1.1; letter-spacing: -.02em; overflow-wrap: anywhere; }
.ls-dj { font-size: .9375rem; font-weight: 600; opacity: .85; }
.ls-tijd { font-weight: 500; opacity: .75; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* "Straks" in de oranje strook en in de pop-up speler */
.ls-straks { margin: 2px 0 0; font-size: .875rem; font-weight: 600; overflow-wrap: anywhere; }
.straks-label { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 999px; font-size: .6875rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; }
.ls-straks .straks-label { background: rgba(0, 0, 0, .2); }
.ps-straks { margin: 2px 0 0; font-size: .875rem; color: var(--ink-2); }
.ps-straks .straks-label { background: var(--merk); color: var(--merk-tekst); }

.ls-nummer { min-width: 0; padding: 10px 16px; border-radius: 14px; background: rgba(255, 255, 255, .26); }
.ls-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .75;
}
.ls-nummer-tekst { display: flex; flex-direction: column; margin-top: 2px; min-width: 0; }
.np-titel { font-size: 1.0625rem; font-weight: 800; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-artiest { font-size: .875rem; font-weight: 600; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-artiest:empty { display: none; }

.ls-luisteraars { font-size: .875rem; font-weight: 600; line-height: 1.1; text-align: right; }
.ls-luisteraars b { display: block; font-size: 1.75rem; font-weight: 900; letter-spacing: -.02em; }

.speler-fout {
  grid-column: 1 / -1;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--zwart);
  color: #fff;
  font-size: .875rem;
}
.speler-fout a { color: #fff; }

.foto-credit {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  font-size: .6875rem;
  text-decoration: none;
}
.foto-credit:hover { background: rgba(0, 0, 0, .75); }

/* equalizer: alleen zichtbaar als de stream speelt */
.eq { display: none; align-items: flex-end; gap: 3px; height: 14px; }
body.speelt .eq { display: inline-flex; }
.eq i {
  width: 3px;
  height: 100%;
  border-radius: 1px;
  background: currentColor;
  transform-origin: bottom;
  animation: eq .9s ease-in-out infinite alternate;
}
.eq i:nth-child(2) { animation-delay: .2s; }
.eq i:nth-child(3) { animation-delay: .4s; }
.eq i:nth-child(4) { animation-delay: .1s; }

/* ======================================================================
   Chat, Net gedraaid en het weer
   ====================================================================== */

.kaart-chat { overflow: hidden; }
.chat-balk {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 18px;
  border-bottom: 1px solid var(--lijn);
}
.chat-balk-naam { font-size: .9375rem; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-acties { display: flex; gap: 6px; flex: none; }
/* "Terug"-knop: alleen zichtbaar als de chat op volledig scherm staat */
.chat-terug {
  display: none;
  align-items: center;
  gap: 4px;
  height: 38px;
  padding: 0 14px 0 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(15, 17, 22, .82);
  color: #fff;
  font: 700 .875rem/1 var(--font);
  cursor: pointer;
}
.chat-terug:hover { background: rgba(15, 17, 22, .95); }
.kaart-chat iframe {
  display: block;
  width: 100%;
  height: 720px;
  border: 0;
  background: #10121a;
}
.chat-leeg { padding: 40px 24px; color: var(--ink-2); }

.kaart-chat.chat-vol {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
}
.kaart-chat.chat-vol .chat-balk { display: none; }
.kaart-chat.chat-vol .chat-terug {
  display: inline-flex;
  position: absolute;
  z-index: 2;
  top: max(10px, env(safe-area-inset-top, 0px));
  right: max(10px, env(safe-area-inset-right, 0px));
}
.kaart-chat.chat-vol .chat-terug:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.kaart-chat.chat-vol iframe { flex: 1; height: 100%; min-height: 0; }
body.chat-open { overflow: hidden; }

.net-gedraaid {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.net-gedraaid li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--lijn);
  min-width: 0;
}
.net-gedraaid li:first-child { border-top: 0; padding-top: 0; }
.net-tijd { font-size: .8125rem; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; padding-top: 2px; }
.net-titel { display: block; font-size: .9375rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.net-artiest { display: block; font-size: .875rem; color: var(--ink-2); overflow-wrap: anywhere; }
.net-gedraaid li.net-leeg { display: block; grid-column: 1 / -1; border: 0; padding: 0; color: var(--ink-2); font-size: .9375rem; }

.weer { display: flex; align-items: center; gap: 14px; }
.weer-emoji { font-size: 2.5rem; line-height: 1; }
.weer-temp { font-size: 2rem; font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.weer-sub { font-size: .875rem; color: var(--ink-2); }

/* ======================================================================
   Twee kolommen onder de chat: inhoud links, zijbalk rechts
   ====================================================================== */

.onder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
}
.onder-hoofd { min-width: 0; }
.onder-hoofd .wrap { max-width: none; padding-left: 0; padding-right: 0; }
.onder-hoofd .sectie { padding-block: 0 72px; }

.zijbalk { display: grid; gap: 20px; align-content: start; }
@media (min-width: 1001px) {
  .zijbalk { position: sticky; top: var(--zij-top, 20px); }
}
.zijbalk .net-gedraaid li:nth-child(n+6) { display: none; }

.straks-zij { display: grid; gap: 4px; color: var(--ink); text-decoration: none; transition: border-color 150ms; }
.straks-zij:hover { border-color: var(--merk); }
.straks-zij .kaart-titel { margin-bottom: 10px; }
.straks-rij { display: flex; align-items: center; gap: 14px; }
.straks-beeld {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--merk);
  font-size: 1.6rem;
}
.straks-beeld.met-foto { background: var(--zwart); }
.straks-beeld img { width: 100%; height: 100%; object-fit: cover; }
.straks-tekst { display: flex; flex-direction: column; min-width: 0; }
.straks-wanneer { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--merk); }
.straks-show { font-size: 1.0625rem; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.straks-dj { font-size: .875rem; color: var(--ink-2); }

.zij-sponsor-lijst { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.zij-sponsor { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
a.zij-sponsor:hover .sponsor-naam { text-decoration: underline; text-decoration-color: var(--merk); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.sponsor-logo { flex: none; display: grid; place-items: center; width: 44px; height: 44px; overflow: hidden; border-radius: 50%; background: #000; }
.sponsor-logo img { width: 100%; height: 100%; object-fit: cover; }
.sponsor-letters { color: #fff; font-weight: 800; }
.sponsor-tekst { display: flex; flex-direction: column; min-width: 0; }
.sponsor-naam { font-size: .9375rem; font-weight: 800; }
.sponsor-onder { font-size: .8125rem; color: var(--ink-2); }

/* ======================================================================
   Programma: een gids per dag (zoals een tv-gids)
   ====================================================================== */

.dagtabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}
.dagtabs button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  height: 62px;
  padding: 0 6px;
  border: 1px solid var(--lijn);
  border-radius: 14px;
  background: var(--kaart);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: border-color 150ms, background-color 150ms;
}
.dagtabs button:hover { border-color: var(--merk); }
.tab-dag { font-size: .9375rem; font-weight: 800; line-height: 1.1; white-space: nowrap; }
.tab-datum { font-size: .75rem; font-weight: 600; line-height: 1.1; color: var(--ink-2); white-space: nowrap; }
.dagtabs button[aria-selected="true"] { background: var(--merk); border-color: var(--merk); color: var(--merk-tekst); }
.dagtabs button[aria-selected="true"] .tab-datum { color: inherit; opacity: .8; }

.gids { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.gids-rij {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--lijn);
  background: var(--kaart);
  transition: border-color 150ms, opacity 150ms;
}

/* DJ-show: beeld, tekst, rechts NU/STRAKS en hoe lang nog */
.gids-rij.show {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 18px;
  padding: 12px 18px 12px 12px;
  border-radius: 18px;
}
.gids-beeld {
  position: relative;
  display: grid;
  place-items: center;
  width: 104px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: var(--zwart);
}
.gids-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gids-beeld .dj-plaat { width: 82%; }
.gids-emoji {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(15, 17, 22, .7);
  font-size: 1rem;
  line-height: 1;
}
.gids-tekst { display: grid; gap: 4px; min-width: 0; }
.gids-tijd { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .875rem; font-weight: 800; color: var(--ink-2); }
.gids-tijd svg { flex: none; color: var(--merk); }
.gids-naam { font-size: 1.25rem; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.gids-dj { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-size: .9375rem; color: var(--ink-2); }
.gids-dj:empty { display: none; }
.gids-rechts { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.gids-rest { margin: 0; font-size: .8125rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; }

/* AutoDJ: een smalle regel tussen de shows */
.gids-rij.auto {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  padding: 8px 18px;
  border-style: dashed;
  border-radius: 14px;
}
.gids-rij.auto .gids-tijd { flex: none; min-width: 116px; }
.gids-auto { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 2px 10px; min-width: 0; margin: 0; font-size: .9375rem; }
.gids-auto b { font-weight: 800; }
.gids-auto-icoon { font-size: 1.05rem; line-height: 1; }
.gids-auto-uitleg { font-size: .875rem; color: var(--ink-2); }
.gids-rij.auto .gids-rechts { flex-direction: row; align-items: center; }

/* Wat nu loopt: oranje rand en een balk onderaan hoe ver de show is */
.gids-voortgang { position: absolute; left: 0; right: 0; bottom: 0; display: none; height: 4px; background: var(--bg-2); }
.gids-voortgang span { display: block; width: var(--voortgang, 0%); height: 100%; border-radius: 0 2px 2px 0; background: var(--merk); }
.gids-rij.nu { border-style: solid; border-color: var(--merk); box-shadow: inset 0 0 0 1px var(--merk); }
.gids-rij.nu .gids-voortgang { display: block; }
.gids-rij.nu .gids-tijd { color: var(--merk); }
.gids-rij.nu .dj-plaat { animation: plaat-draai 6s linear infinite; }
.gids-rij.voorbij { opacity: .5; }

.show-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  font: 800 .6875rem/1 var(--font);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.show-badge.is-nu { background: var(--live); color: #fff; }
.show-badge.is-straks { background: var(--zwart); color: #fff; }

/* ======================================================================
   DJ's
   ====================================================================== */

.dj-rij {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 240px;
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 10px;
  margin: -4px -4px 0;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 64px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 64px), transparent);
}
.dj-rij::-webkit-scrollbar { display: none; }
.dj-rij.aan-eind { -webkit-mask-image: none; mask-image: none; }
.dj-rij:focus-visible { -webkit-mask-image: none; mask-image: none; outline-offset: -3px; }

.rij-knoppen { display: flex; gap: 10px; }
.rij-knop {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--kaart-vol);
  color: var(--ink);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--lijn);
  transition: background-color 150ms, color 150ms, opacity 150ms;
}
.rij-knop:hover { background: var(--merk); color: var(--merk-tekst); }
.rij-knop[aria-disabled="true"] { opacity: .35; cursor: default; }
.rij-knop[aria-disabled="true"]:hover { background: var(--kaart-vol); color: var(--ink); }
/* Elke DJ is een donkere kaart: bovenin de foto, of zonder foto een
   langspeelplaat met het logo van IRP als label. Daaronder naam, show,
   wanneer en een stukje tekst. Draait de DJ nu, dan staat er "Nu op IRP"
   op en draait de plaat rond. */
.dj-kaart {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--lijn);
  border-radius: var(--radius);
  background: var(--kaart);
  scroll-snap-align: start;
  transition: transform 200ms ease, border-color 200ms ease;
}
.dj-kaart:hover { transform: translateY(-3px); border-color: var(--merk); }
.dj-kaart.is-live { border-color: var(--live); }

.dj-beeld {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--zwart);
}
.dj-beeld.v0, .gids-beeld.v0 { background: var(--merk); }
.dj-beeld.v1, .gids-beeld.v1 { background: radial-gradient(circle at 50% 45%, #2a2e38, #15171c 70%); }
.dj-beeld.v2, .gids-beeld.v2 { background: radial-gradient(circle at 50% 45%, #3a2a20, #1a1512 70%); }
.dj-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.dj-plaat {
  position: relative;
  display: grid;
  place-items: center;
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 34%, rgba(255, 255, 255, .07) 34.5% 35.5%, transparent 36%),
    repeating-radial-gradient(circle, #111214 0 2px, #1c1d21 2px 3.5px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.dj-plaat::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 20deg, transparent 0 8%, rgba(255, 255, 255, .11) 13%, transparent 19% 56%, rgba(255, 255, 255, .08) 62%, transparent 68%);
  pointer-events: none;
}
.dj-plaat img { position: relative; width: 42%; height: 42%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px rgba(0, 0, 0, .35); }
.dj-kaart.is-live .dj-plaat { animation: plaat-draai 6s linear infinite; }
.dj-kaart.is-live .dj-plaat::after { animation: plaat-draai 6s linear infinite reverse; }

.dj-emoji {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(15, 17, 22, .6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 1.3rem;
  line-height: 1;
}
.dj-live {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--live);
  color: #fff;
  font: 800 .6875rem/1 var(--font);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dj-live .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.6s ease-in-out infinite; }

.dj-body { display: flex; flex-direction: column; flex: 1; gap: 4px; padding: 14px 16px 18px; }
.dj-naam { font-size: 1.125rem; line-height: 1.2; text-wrap: balance; }
.dj-show { font-size: .875rem; font-weight: 600; color: var(--ink-3); }
.dj-wanneer { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: .8125rem; font-weight: 700; color: var(--ink-2); }
.dj-wanneer svg { flex: none; color: var(--merk); }
.dj-bio {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  font-size: .875rem;
  color: var(--ink-2);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

@keyframes plaat-draai { to { transform: rotate(360deg); } }

/* ======================================================================
   Nieuws als compacte rijen
   ====================================================================== */

.nieuws-lijst { display: grid; gap: 16px; }
.nieuws-kaart {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  overflow: hidden;
  min-width: 0;
}
.nieuws-kaart.geen-beeld { grid-template-columns: 1fr; }
.nieuws-beeld { position: relative; align-self: stretch; min-height: 160px; overflow: hidden; background: var(--zwart); }
.nieuws-wazig {
  position: absolute;
  inset: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  object-fit: cover;
  filter: blur(18px) brightness(.5);
}
.nieuws-scherp { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; }
.nieuws-body { display: flex; flex-direction: column; align-items: flex-start; padding: 18px 22px 18px; min-width: 0; }
.nieuws-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.nieuws-titel { margin: 8px 0 6px; font-size: 1.1875rem; line-height: 1.2; overflow-wrap: anywhere; }
.nieuws-tekst { color: var(--ink-3); overflow-wrap: anywhere; font-size: .9375rem; }
.nieuws-tekst p + p { margin-top: 8px; }
.js .nieuws-kaart.ingekort .nieuws-tekst {
  max-height: 4.7em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 50%, transparent);
  mask-image: linear-gradient(#000 50%, transparent);
}
.lees-verder {
  margin-top: 8px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 700 .9375rem/1.2 var(--font);
  text-decoration: underline;
  text-decoration-color: var(--merk);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  cursor: pointer;
}
.nieuws-ouder { margin-top: 20px; }
.nieuws-ouder summary { cursor: pointer; font-weight: 700; margin-bottom: 16px; }

/* ======================================================================
   Foto's
   ====================================================================== */

.foto-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 190px;
  gap: 12px;
}
.foto { position: relative; margin: 0; min-width: 0; overflow: hidden; border-radius: var(--radius-s); background: var(--vlak); }
.foto:first-child { grid-column: span 2; grid-row: span 2; }
/* meer dan 9 foto's: de rest staat in het album (zonder JavaScript gewoon alles) */
.js .foto-extra { display: none; }
.foto-meer-rij { display: none; justify-content: center; margin-top: 22px; }
.js .foto-meer-rij { display: flex; }
.met-achtergrond .foto-meer-rij .knop-rand { color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.met-achtergrond .foto-meer-rij .knop-rand:hover { background: #fff; color: var(--zwart); }
.foto-link { display: block; width: 100%; height: 100%; }
.foto-link img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms; }
.foto-link:hover img { transform: scale(1.04); }
.foto figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .78));
  color: #fff;
  pointer-events: none;
}
.foto figcaption a { pointer-events: auto; }
.bijschrift { display: block; font-size: .875rem; font-weight: 700; line-height: 1.3; }
.foto:first-child .bijschrift { font-size: 1.0625rem; }
.credit { display: block; margin-top: 2px; font-size: .6875rem; color: rgba(255, 255, 255, .75); }
.credit a { color: rgba(255, 255, 255, .85); text-decoration-color: currentColor; text-decoration-thickness: 1px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  /* vegen naar links/rechts is voor de foto's, niet voor de terug-veeg van de browser */
  touch-action: pan-y pinch-zoom;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 72px;
  background: rgba(12, 13, 16, .94);
}
.lb-figuur { margin: 0; max-width: min(1200px, 100%); }
.lb-figuur img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 10px; }
.lb-figuur figcaption { margin-top: 12px; color: #fff; text-align: center; font-size: .9375rem; }
.lb-teller { display: block; margin-top: 4px; color: rgba(255, 255, 255, .6); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.lb-knop {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}
.lb-knop:hover { background: rgba(255, 255, 255, .26); }
.lb-sluit { top: 16px; right: 16px; }
.lb-vorige { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-volgende { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox :focus-visible { outline-color: #fff; }
body.lightbox-open { overflow: hidden; }

/* "+N"-tegel op de voorpagina en het fotoalbum over de site heen */
.foto.is-meer figcaption { display: none; }
.foto.is-meer .foto-link { position: relative; }
.foto-plus {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(12, 13, 16, .6);
  color: #fff;
  font: 800 clamp(1.5rem, 3vw, 2.5rem)/1 var(--font);
  transition: background-color 150ms;
}
.foto.is-meer .foto-link:hover .foto-plus { background: rgba(12, 13, 16, .42); }
body.album-open { overflow: hidden; }
.album {
  position: fixed;
  inset: 0;
  z-index: 390;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  background: rgb(12, 13, 16);
  color: #fff;
}
.album-kop {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1320px;
  margin: 0 auto 16px;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: rgb(12, 13, 16);
}
.album-kop h2 { min-width: 0; margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.75rem); text-align: left; color: #fff; }
.album-aantal { margin-left: 6px; font-size: .9375rem; font-weight: 600; color: rgba(255, 255, 255, .62); white-space: nowrap; }
.album-sluit {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font: 700 .9375rem/1 var(--font);
  cursor: pointer;
}
.album-sluit:hover { background: rgba(255, 255, 255, .26); }
.album-sluit span { font-size: 1.375rem; line-height: 1; }
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
  max-width: 1320px;
  margin: 0 auto;
}
.album-link { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 8px; background: rgba(255, 255, 255, .06); }
.album-link img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms; }
.album-link:hover img { transform: scale(1.04); }
.album :focus-visible { outline-color: #fff; }

/* ======================================================================
   Formulieren
   ====================================================================== */

.formulier .veld { margin-bottom: 14px; }
.formulier label { display: block; margin-bottom: 6px; font-size: .875rem; font-weight: 700; }
.formulier input,
.formulier textarea,
.formulier select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--veld-rand);
  border-radius: var(--radius-s);
  background: var(--veld);
  color: var(--ink);
  font: 400 1rem/1.4 var(--font);
}
.formulier textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; }
.formulier input:focus,
.formulier textarea:focus,
.formulier select:focus { border-color: var(--ink); outline: 3px solid var(--merk-zacht); outline-offset: 0; }
.veld-rij { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-voet { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 4px; }
.melding { font-size: .9375rem; font-weight: 600; }
.melding.ok { color: var(--ok-tekst); }
.melding.fout { color: var(--live); }
.honingpot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.melding-balk { margin-bottom: 20px; padding: 12px 16px; border-radius: var(--radius-s); font-weight: 600; }
.melding-balk.ok { background: #e6f5eb; color: #10552b; }
.melding-balk.fout { background: #fdeaea; color: #9b1c1c; }

/* ======================================================================
   Gastenboek (muur van berichten) en het contactblok
   ====================================================================== */

/* uitklapformulier: een knop die het formulier eronder openklapt */
.uitklap { margin-bottom: 20px; }
.uitklap > summary { list-style: none; display: inline-flex; cursor: pointer; }
.uitklap > summary::-webkit-details-marker { display: none; }
.uitklap > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.uitklap[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.uitklap-inhoud { margin-top: 14px; }

/* Gastenboek: de knop en de berichtjes in het midden, onder de kop. Elk
   berichtje is een ballonnetje naast een rondje met de voorletters, zoals
   in een chat; kort of lang, er blijven geen lege vakken over. */
#gastenboek .uitklap { text-align: center; }
#gastenboek .uitklap-inhoud { max-width: 640px; margin-inline: auto; text-align: left; }
.gb-lijst { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin: 8px auto 0; }
.gb-lijst .gb-leeg { text-align: center; }
.gb-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.gb-inhoud {
  min-width: 0;
  padding: 12px 18px 14px;
  border: 1px solid var(--lijn);
  border-radius: 4px 20px 20px 20px;
  background: var(--kaart);
}
.gb-rond {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--merk);
  color: var(--merk-tekst);
  font-size: .9375rem;
  font-weight: 800;
}
.gb-item:nth-child(3n+2) .gb-rond { background: var(--zwart); color: #fff; }
.gb-item:nth-child(3n) .gb-rond { background: var(--vlak); color: var(--ink); }
.gb-kop { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.gb-naam { min-width: 0; font-weight: 800; overflow-wrap: anywhere; }
.gb-datum { font-size: .75rem; color: var(--ink-2); opacity: .7; font-variant-numeric: tabular-nums; }
.gb-bericht { margin-top: 4px; font-size: .9375rem; line-height: 1.5; color: var(--ink-3); overflow-wrap: anywhere; }
.gb-meer-rij { margin-top: 20px; text-align: center; }
.gb-item:focus { outline: none; }

.contact-blok { overflow: hidden; }
.contact-boven { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.contact-tekst { display: grid; align-content: center; gap: 12px; padding: 32px 32px 28px; }
.contact-label { font-size: .8125rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--merk); }
.contact-tekst p { max-width: 52ch; color: var(--ink-3); }
.contact-tekst .contact-klein { font-size: .9375rem; color: var(--ink-2); }
.contact-beeld { position: relative; min-height: 240px; }
.contact-beeld img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-uitklap { margin: 0; padding: 0 32px 28px; }
.veld-rij-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ======================================================================
   Voettekst
   ====================================================================== */

.footer { padding-block: 40px; background: var(--zwart); color: rgba(255, 255, 255, .72); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 32px; }
.footer-merk { display: flex; align-items: center; gap: 14px; }
.footer-merk img { width: 48px; height: 48px; border-radius: 50%; }
.footer-naam { color: #fff; font-weight: 800; }
.footer-slogan { font-size: .875rem; }
.footer-tekst { font-size: .875rem; max-width: 62ch; }
.beheer-link { color: rgba(255, 255, 255, .6); font-size: .8125rem; text-decoration-color: currentColor; text-decoration-thickness: 1px; }
.footer :focus-visible { outline-color: #fff; }

/* ======================================================================
   Vaste spelerbalk onderaan
   ====================================================================== */

.spelerbalk {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--zwart);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.spelerbalk-inner { display: flex; align-items: center; gap: 14px; height: var(--balk-h); }
.spelerbalk :focus-visible { outline-color: #fff; }

.bar-play {
  flex: none;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--merk);
  color: var(--merk-tekst);
  cursor: pointer;
  transition: transform 150ms;
}
.bar-play:hover { transform: scale(1.05); }
.bar-logo { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.bar-tekst { flex: 1; min-width: 0; }
.bar-titel { font-size: 1rem; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-sub { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: rgba(255, 255, 255, .7); white-space: nowrap; overflow: hidden; }
.bar-status { font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; }
body.is-live .bar-status { color: var(--live-licht); }
/* "met Dj Jolanda" achter LIVE; wordt bij weinig ruimte afgekapt met ... */
.bar-dj { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-left: -3px; color: #fff; font-weight: 700; }
.bar-sub > span:not(.bar-dj):not(.eq) { flex: none; }
.bar-scheiding { opacity: .5; }
.eq-klein { color: var(--merk); height: 12px; }

.bar-volume { display: flex; align-items: center; gap: 10px; flex: none; }
.bar-mute {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.bar-mute.is-mute .golf { display: none; }
.bar-mute.is-mute { color: rgba(255, 255, 255, .55); }
#vol { width: 130px; accent-color: var(--merk); cursor: pointer; }

.bar-chat {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
}
.bar-chat:hover { background: rgba(255, 255, 255, .18); }

.bar-popup {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px 0 14px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.bar-popup:hover { background: rgba(255, 255, 255, .1); }
.bar-popup .ic-omhoog { display: none; }

/* ======================================================================
   Pop-up speler. Staat in speler.php (eigen venster op de computer) en in
   het schuifpaneel dat op de telefoon omhoog komt. Altijd donker.
   ====================================================================== */

.speler-pop, body.speler-pagina {
  --kaart: rgba(18, 20, 26, .84);
  --ink: #f3f4f6;
  --ink-2: #aab1bd;
  --ink-3: #d9dde4;
  --lijn: rgba(255, 255, 255, .1);
  --vlak: #2b2f38;
  --bg-2: rgba(255, 255, 255, .08);
  --veld: rgba(255, 255, 255, .06);
  color: var(--ink);
  color-scheme: dark;
}

.ps-speler {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 22px 20px 20px;
  border: 1px solid var(--lijn);
  border-radius: 24px;
  background: var(--kaart);
  text-align: center;
}

.ps-hoes {
  position: relative;
  display: grid;
  place-items: center;
  width: min(220px, 62vw);
  max-width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
}
.ps-hoes-wazig {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(22px) brightness(.55);
  transform: scale(1.3);
}
.ps-hoes-letters { color: #fff; font-size: 4rem; font-weight: 900; letter-spacing: -.02em; line-height: 1; }
.ps-hoes-logo.is-dj { object-fit: cover; }
.ps-hoes-logo {
  position: relative;
  width: 76%;
  height: 76%;
  object-fit: contain;
  border-radius: 50%;
}
body.speelt .ps-hoes-logo { animation: ps-adem 4s ease-in-out infinite; }
.ps-status {
  position: absolute;
  left: 50%;
  bottom: 12px;
  max-width: calc(100% - 24px);
  transform: translateX(-50%);
  white-space: nowrap;
  overflow: hidden;
}
.ps-status .status-tekst { overflow: hidden; text-overflow: ellipsis; }
/* dezelfde status naast het kleine logo, alleen als de chat ernaast staat */
.ps-status-info { display: none; max-width: 100%; overflow: hidden; white-space: nowrap; }
.ps-status-info .status-tekst { overflow: hidden; text-overflow: ellipsis; }

.ps-info { display: grid; gap: 4px; max-width: 100%; }
.ps-show { margin: 0; font-size: 1.5rem; font-weight: 900; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; overflow-wrap: anywhere; }
.ps-dj { margin: 0; font-size: .9375rem; color: var(--ink-2); }

.ps-nummer {
  width: 100%;
  min-width: 0;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
  text-align: left;
}
.ps-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--merk);
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ps-label .eq { color: var(--merk); height: 11px; }
.ps-nummer-tekst { display: flex; flex-direction: column; min-width: 0; margin: 4px 0 0; }

.ps-bediening { display: flex; align-items: center; justify-content: center; gap: 28px; }
.ps-play {
  width: 84px;
  height: 84px;
  background: var(--merk);
  color: var(--merk-tekst);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
}
.ps-rond {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: background 150ms, color 150ms;
}
.ps-rond:hover { background: rgba(255, 255, 255, .1); }
.ps-rond.is-actief { background: var(--merk); border-color: transparent; color: var(--merk-tekst); }
.ps-rond.is-mute { color: rgba(255, 255, 255, .5); }
.ps-rond.is-mute .golf { display: none; }

.ps-volume { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 280px; color: var(--ink-2); }
.ps-volume #vol { flex: 1; width: auto; min-width: 0; }

.ps-luisteraars { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .875rem; color: var(--ink-2); }
.ps-luisteraars b { color: #fff; }
.ps-stip { width: 8px; height: 8px; border-radius: 50%; background: #3ccf72; }

.ps-speler .speler-fout { width: 100%; text-align: left; background: rgba(224, 38, 45, .18); border: 1px solid rgba(255, 95, 100, .35); }

.ps-lijst {
  padding: 18px 20px;
  border: 1px solid var(--lijn);
  border-radius: 20px;
  background: var(--kaart);
}
.ps-lijst-kop { margin: 0 0 12px; font-size: 1rem; font-weight: 800; }
.ps-lijst .net-gedraaid li:nth-child(n+6) { display: none; }

/* Smalle spelerbalk als de chat erbij staat (telefoon) */
.ps-compact .ps-speler {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 10px;
  border-radius: 18px;
  text-align: left;
}
.ps-compact .ps-hoes,
.ps-compact .ps-info,
.ps-compact .ps-volume,
.ps-compact .ps-luisteraars,
.ps-compact .js-mute { display: none; }
.ps-compact .ps-bediening { display: contents; }
.ps-compact .ps-play { order: -1; width: 52px; height: 52px; box-shadow: none; }
.ps-compact .ps-play svg { width: 22px; height: 22px; }
.ps-compact .ps-nummer { flex: 1; order: 1; padding: 0; background: none; }
.ps-compact .js-chat-open { order: 2; flex: none; }
.ps-compact .ps-speler .speler-fout { order: 3; flex-basis: 100%; }

/* ---------- het schuifpaneel op de telefoon ---------- */

.speler-pop {
  position: fixed;
  inset: 0;
  z-index: 150;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #0b0d10;
  background: linear-gradient(180deg, color-mix(in srgb, var(--merk) 32%, #0b0d10) 0%, #0b0d10 55%);
  transform: translateY(100%);
  transition: transform 300ms cubic-bezier(.2, .8, .2, 1);
}
.speler-pop.open { transform: none; }
.pop-binnen {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 440px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: max(12px, env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-bottom, 0px));
}
.pop-kop { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; gap: 8px; }
.pop-titel { margin: 0; text-align: center; font-size: .9375rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.pop-open, html.pop-open body { overflow: hidden; }

/* Chat erbij: de chat van de pagina komt onder de smalle spelerbalk */
html.pop-chat #chat-kaart {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: var(--pop-chat-top, 180px);
  z-index: 160;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 18px 18px 0 0;
}
html.pop-chat #chat-kaart iframe { flex: 1; height: auto; min-height: 0; }
html.pop-chat #chat-kaart {
  --kaart: #12141a;
  --ink: #f3f4f6;
  --ink-2: #aab1bd;
  --lijn: rgba(255, 255, 255, .1);
  --bg-2: rgba(255, 255, 255, .08);
  --vlak: #2b2f38;
  background: var(--kaart);
  color: var(--ink);
}
html.pop-chat #chat-kaart .chat-balk { color-scheme: dark; }
html.pop-chat .speler-pop { overflow: hidden; }
html.pop-chat .speler-pop .ps-lijst { display: none; }
html.pop-chat #chat-kaart.chat-vol { top: 0; z-index: 300; border-radius: 0; }

@keyframes ps-adem { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }

/* Op een telefoon regel je het volume met de knoppen van de telefoon zelf */
@media (pointer: coarse) {
  .ps-volume { display: none; }
}
@media (max-height: 700px) {
  .ps-hoes { width: min(170px, 50vw); }
  .ps-speler { gap: 14px; }
}
@media (max-width: 699px), (pointer: coarse) {
  .bar-popup .ic-venster { display: none; }
  .bar-popup .ic-omhoog { display: block; }
  .bar-tekst { cursor: pointer; }
}
@media (prefers-reduced-motion: reduce) {
  body.speelt .ps-hoes-logo { animation: none; }
  .dj-kaart.is-live .dj-plaat, .dj-kaart.is-live .dj-plaat::after, .gids-rij.nu .dj-plaat { animation: none; }
  .dj-kaart:hover { transform: none; }
  .speler-pop { transition: none; }
}

/* ======================================================================
   De site als app: knop in de bovenbalk (computer), regel in het menu
   (telefoon en tablet) en het uitlegvenster voor iPhone en Mac
   ====================================================================== */

.knop-app {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px 0 14px;
  border: 1px solid var(--lijn);
  border-radius: 999px;
  background: var(--kaart);
  color: var(--ink);
  font: 700 .875rem/1 var(--font);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 150ms;
}
.knop-app:hover { border-color: var(--merk); }
.knop-app svg { flex: none; color: var(--merk); }
.menu .menu-app { display: none; }
.menu-app button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--merk-zacht);
  color: var(--ink);
  font: 700 1.0625rem/1 var(--font);
  text-align: left;
  cursor: pointer;
}
.menu-app button svg { flex: none; color: var(--merk); }

.app-uitleg {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  background: #15171c;
  color: #f3f4f6;
  color-scheme: dark;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.app-uitleg::backdrop { background: rgba(5, 6, 8, .7); }
.app-uitleg:not([open]) { display: none; }
.app-uitleg.is-los { position: fixed; top: 50%; left: 50%; z-index: 400; margin: 0; overflow: auto; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); }
.app-uitleg-kop { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.app-uitleg-kop img { flex: none; width: 56px; height: 56px; border-radius: 50%; }
.app-uitleg-kop h2 { margin: 0; font-size: 1.375rem; font-weight: 900; line-height: 1.15; }
.app-uitleg-kop p { margin: 4px 0 0; font-size: .9375rem; color: #aab1bd; }
.app-stappen { display: grid; gap: 12px; margin: 0 0 22px; padding: 0; list-style: none; counter-reset: stap; }
.app-stappen li { position: relative; padding-left: 40px; font-size: 1rem; line-height: 1.45; counter-increment: stap; }
.app-stappen li::before {
  content: counter(stap);
  position: absolute;
  left: 0;
  top: -1px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--merk);
  color: var(--merk-tekst);
  font-size: .875rem;
  font-weight: 800;
}
.app-stappen b { color: #fff; }
.deel-icoon { display: inline-block; vertical-align: -3px; color: var(--merk); }
.app-uitleg-knoppen { display: flex; justify-content: flex-end; margin: 0; }
.app-uitleg :focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Draait de site als app, dan is er geen eigen venster nodig voor de pop-up speler */
@media (min-width: 700px) and (pointer: fine) {
  .als-app .bar-popup { display: none; }
}

/* ======================================================================
   Alle tekst echt wit (body.tekst-wit, alleen op de donkere achtergrond)
   en de koppen in het midden (body.koppen-midden). index.php en speler.php
   zetten deze classes altijd.
   ====================================================================== */

body.met-achtergrond.tekst-wit,
body.speler-pagina.tekst-wit,
body.tekst-wit .speler-pop {
  --ink: #fff;
  --ink-2: #fff;
  --ink-3: #fff;
}
body.met-achtergrond.tekst-wit .sectie-intro,
body.met-achtergrond.tekst-wit .gb-leeg,
body.met-achtergrond.tekst-wit .sectie > .wrap > .leeg,
body.met-achtergrond.tekst-wit .dag-panel > .leeg,
body.met-achtergrond.tekst-wit .dj-show,
body.met-achtergrond.tekst-wit .dj-bio,
body.met-achtergrond.tekst-wit .dia-intro,
body.met-achtergrond.tekst-wit .credit,
body.met-achtergrond.tekst-wit .credit a,
body.met-achtergrond.tekst-wit .bar-sub,
body.met-achtergrond.tekst-wit .beheer-link { color: #fff; }
body.met-achtergrond.tekst-wit .ls-dj,
body.met-achtergrond.tekst-wit .ls-tijd,
body.met-achtergrond.tekst-wit .np-artiest,
body.met-achtergrond.tekst-wit .ls-label { opacity: 1; }
body.met-achtergrond.tekst-wit .dagtabs button[aria-selected="true"] .tab-datum { opacity: 1; }

body.koppen-midden .sectie-kop {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
body.koppen-midden .sectie-intro { margin-inline: auto; }
body.koppen-midden .kaart-titel { text-align: center; }
body.koppen-midden .footer-inner { flex-direction: column; justify-content: center; text-align: center; }
body.koppen-midden .footer-merk { justify-content: center; }

/* Spelerbalk weg zolang de oranje strook in beeld is en er nog niks speelt */
html.balk-wacht .spelerbalk { transform: translateY(110%); visibility: hidden; transition: none; }
.spelerbalk { transition: transform .25s ease, visibility 0s linear 0s; }
body.strook-in-beeld:not(.speelt) .spelerbalk:not(:focus-within) {
  transform: translateY(110%);
  visibility: hidden;
  transition: transform .25s ease, visibility 0s linear .25s;
}

/* Koppen die direct op de achtergrondfoto staan: zachte schaduw, ook boven een lichte wolk leesbaar */
.met-achtergrond .sectie-kop h2,
.met-achtergrond .sectie-intro { text-shadow: 0 1px 14px rgba(0, 0, 0, .55); }

/* Facebook: knop in de voettekst en regel in het menu op de telefoon */
.footer-fb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: .9375rem;
  font-weight: 700;
  text-decoration: none;
}
.footer-fb:hover { background: #1877f2; }
.menu .menu-fb { display: none; }
.menu-fb a svg { flex: none; }

/* ======================================================================
   Eigen achtergrondfoto (instelbaar in het beheer)

   index.php zet class "met-achtergrond" op de body als er een foto is
   ingesteld; render_stijl() zet de foto en de donkerte. De foto staat vast
   achter de hele site met een donkere laag erover. Kaarten en vlakken worden
   donker; alles wat direct op de foto staat wordt wit.
   ====================================================================== */

/* Met een foto erachter wordt alles donker en licht doorzichtig, zodat het
   een geheel vormt met de foto. Alleen het oranje (live-strook, knoppen) blijft fel. */
body.met-achtergrond {
  --kaart: rgba(18, 20, 26, .9);
  --kaart-vol: #1a1d24;
  --topbar: rgba(14, 16, 21, .96);
  --veld: rgba(255, 255, 255, .06);
  --veld-rand: rgba(255, 255, 255, .16);
  --vlak: #2b2f38;
  --bg-2: rgba(255, 255, 255, .08);
  --ink: #f3f4f6;
  --ink-2: #aab1bd;
  --ink-3: #d9dde4;
  --lijn: rgba(255, 255, 255, .1);
  --op-ink: #15171c;
  --ok-tekst: #5ee08f;
  color-scheme: dark;
  background: #0b0d10;
}
body.met-achtergrond .dagtabs button[aria-selected="true"] { background: var(--merk); color: var(--merk-tekst); }
body.met-achtergrond .show-badge.is-straks { background: #fff; color: var(--zwart); }
body.met-achtergrond .melding.fout { color: var(--live-licht); }
body.met-achtergrond .rij-knop { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
body.met-achtergrond .menu.open { box-shadow: 0 16px 32px rgba(0, 0, 0, .4); }
body.met-achtergrond .formulier input::placeholder,
body.met-achtergrond .formulier textarea::placeholder { color: #8b93a1; }
body.met-achtergrond .gb-item:nth-child(3n+2) .gb-rond { background: #fff; color: var(--zwart); }
body.met-achtergrond::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: #0b0d10;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
body.met-achtergrond::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(11, 13, 16, .55);
}

.met-achtergrond .band { background: transparent; }
.met-achtergrond .sectie-kop h2,
.met-achtergrond .sponsors-titel,
.met-achtergrond .nieuws-ouder summary { color: #fff; }
.met-achtergrond .sectie-intro { color: rgba(255, 255, 255, .84); }
.met-achtergrond .sectie-intro a { color: #fff; }
.met-achtergrond .sectie > .wrap > .leeg,
.met-achtergrond .gids-tijd span,
.met-achtergrond .dag-panel > .leeg,
.met-achtergrond .gb-leeg { color: rgba(255, 255, 255, .84); }

.met-achtergrond .dj-naam { color: #fff; }
.met-achtergrond .dj-show { color: rgba(255, 255, 255, .88); }
.met-achtergrond .dj-bio { color: rgba(255, 255, 255, .72); }

.met-achtergrond .foto .bijschrift { color: #fff; }
.met-achtergrond .foto .credit,
.met-achtergrond .foto .credit a { color: rgba(255, 255, 255, .7); }

.met-achtergrond .gb-meer-rij .knop-rand { color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.met-achtergrond .gb-meer-rij .knop-rand:hover { background: #fff; color: var(--zwart); }

.met-achtergrond .banner { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.met-achtergrond .footer { background: rgba(11, 13, 16, .88); }

/* focusrand: op de foto oranje (zichtbaar op wit en op donker), in het merkvlak zwart */
body.met-achtergrond :focus-visible { outline-color: var(--merk); }
body.met-achtergrond .live-strook :focus-visible { outline-color: var(--zwart); }
body.met-achtergrond .banner-dias :focus-visible { outline-color: #fff; }
body.met-achtergrond .spelerbalk :focus-visible,
body.met-achtergrond .footer :focus-visible,
body.met-achtergrond .lightbox :focus-visible { outline-color: #fff; }

/* ======================================================================
   Animaties
   ====================================================================== */

@keyframes eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
@keyframes dots { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ======================================================================
   Kleinere schermen
   ====================================================================== */

@media (max-width: 1180px) {
  .merk-slogan { display: none; }
  .menu a { padding: 0 10px; font-size: .875rem; }
  .merk-naam { max-width: 7.5em; white-space: normal; line-height: 1.1; }
}
@media (max-width: 1130px) {
  .knop-app { width: 44px; padding: 0; justify-content: center; }
  .knop-app span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (max-width: 1000px) {
  .menu-knop { display: inline-flex; }
  .menu {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    background: var(--topbar);
    border-bottom: 1px solid var(--lijn);
    box-shadow: 0 16px 32px rgba(0, 0, 0, .08);
  }
  .menu.open { display: block; }
  .menu .menu-app { display: block; margin-top: 6px; }
  .menu .menu-fb { display: block; }
  .menu .menu-fb a { gap: 10px; }
  .knop-app { display: none; }
  .menu ul { flex-direction: column; gap: 2px; padding: 10px max(16px, env(safe-area-inset-left, 0px)) 14px; }
  .menu a { display: flex; height: 48px; padding: 0 16px; border-radius: 12px; font-size: 1.0625rem; }

  .banner-dias { height: 340px; }
  .dia-tekst { padding: 24px 36px 60px; }
  .modus-logo .dia-beeld { inset: 24px 32px 24px auto; width: 38%; height: calc(100% - 48px); }
  .banner-stippen { left: 36px; }
  .live-strook { grid-template-columns: auto minmax(0, 1fr) auto; }
  .ls-nummer { grid-column: 1 / -1; }
  .onder { grid-template-columns: 1fr; gap: 0; }
  .zijbalk { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); padding-bottom: 64px; }
  .contact-boven { grid-template-columns: 1fr; }
  .contact-beeld { min-height: 200px; }
  .veld-rij-3 { grid-template-columns: 1fr 1fr; }
  .bar-chat { display: none; }
  .bar-popup { width: 42px; height: 42px; padding: 0; }
  .bar-popup-tekst { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (max-width: 640px) {
  :root { --balk-h: 68px; }
  .wrap {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  .sectie { padding-block: 52px; }
  .topbar-inner { height: 64px; gap: 10px; }
  .menu { top: 64px; }
  .merk-logo { width: 38px; height: 38px; }
  .merk-naam { max-width: 7.5em; font-size: .9375rem; line-height: 1.1; white-space: normal; }
  .knop-luister { height: 40px; padding: 0 12px; gap: 8px; font-size: .875rem; }

  .banner-sectie { padding-top: 12px; }
  .banner { border-radius: 20px; }
  .banner-dias { height: 452px; }
  .modus-foto .dia-beeld { height: 180px; }
  .modus-foto::after { background: linear-gradient(180deg, rgba(17, 19, 24, 0) 0, rgba(17, 19, 24, 0) 110px, #111318 180px); }
  .modus-logo .dia-wazig { height: 220px; }
  .modus-logo .dia-beeld { inset: 14px 16px auto 16px; width: auto; height: 156px; }
  .dia-tekst, .modus-logo .dia-tekst { justify-content: flex-end; max-width: none; padding: 0 20px 64px; gap: 10px; }
  .dia-titel { font-size: 1.75rem; line-height: 1.1; }
  .dia-intro { font-size: .9375rem; -webkit-line-clamp: 2; }
  .banner-stippen { left: 20px; bottom: 24px; }
  .banner-pijl { display: none; }
  .live-strook { grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; padding: 16px; }
  .ls-luisteraars { display: none; }
  .ls-show { font-size: 1.125rem; }
  .play-groot { width: 56px; height: 56px; }

  .sectie-kop { margin-bottom: 22px; }
  .dagtabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-inline: -16px;
    margin-block: -6px 14px;
    padding: 6px 16px;
    scroll-padding-inline: 16px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .dagtabs::-webkit-scrollbar { display: none; }
  .dagtabs button { flex: 0 0 76px; height: 58px; scroll-snap-align: start; }

  .gids-rij.show { grid-template-columns: 72px minmax(0, 1fr); gap: 0 12px; padding: 10px 12px 12px 10px; }
  .gids-beeld { width: 72px; border-radius: 10px; }
  .gids-emoji { right: 4px; bottom: 4px; width: 24px; height: 24px; font-size: .8125rem; }
  .gids-naam { font-size: 1.0625rem; }
  .gids-dj { font-size: .875rem; }
  .gids-rij.show .gids-rechts { grid-column: 2; flex-direction: row; align-items: center; }
  .gids-rij.show .gids-rechts:has(> :not([hidden])) { margin-top: 8px; }
  .gids-rij.auto { flex-wrap: wrap; gap: 4px 12px; padding: 10px 12px; }
  .gids-rij.auto .gids-tijd { min-width: 0; }
  .gids-rij.auto .gids-auto { flex: 1 1 auto; }
  .gids-auto-uitleg { display: none; }
  .show-badge { height: 22px; padding: 0 8px; font-size: .625rem; }

  .dj-rij { grid-auto-columns: 64%; gap: 14px; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .rij-knoppen { display: none; }
  .dj-naam { font-size: 1.0625rem; }
  .dj-body { padding: 12px 14px 16px; }
  .dj-emoji { width: 36px; height: 36px; font-size: 1.1rem; top: 10px; right: 10px; }
  .dj-live { left: 10px; top: 10px; }

  .kaart-chat iframe { height: 72vh; min-height: 460px; }
  .net-gedraaid li:nth-child(n+5) { display: none; }
  .chat-balk { padding-left: 14px; }
  .chat-balk-naam { display: none; }
  .chat-acties { width: 100%; justify-content: flex-end; }

  .nieuws-kaart { grid-template-columns: 1fr; }
  .nieuws-beeld { min-height: 0; aspect-ratio: 16 / 9; }
  .nieuws-body { padding: 16px 18px 18px; }
  .gb-lijst { gap: 12px; }
  .gb-item { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
  .gb-rond { width: 36px; height: 36px; font-size: .8125rem; }
  .gb-inhoud { padding: 10px 14px 12px; }
  .contact-tekst { padding: 24px 20px 20px; }
  .contact-uitklap { padding: 0 20px 20px; }
  .veld-rij-3 { grid-template-columns: 1fr; }
  /* drie kolommen, vierkante tegels: negen foto's in vier rijen */
  .foto-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: calc((100vw - 44px) / 3); gap: 6px; }
  .foto:first-child { grid-row: span 2; }
  .foto:not(:first-child) figcaption { display: none; }
  .album { padding-left: max(10px, env(safe-area-inset-left, 0px)); padding-right: max(10px, env(safe-area-inset-right, 0px)); }
  .album-kop { margin-bottom: 10px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); padding-bottom: 10px; }
  .album-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .album-link { border-radius: 4px; }
  .veld-rij { grid-template-columns: 1fr; }
  .kaart-pad { padding: 20px; }

  .sponsor { padding-right: 16px; }

  .bar-logo { display: none; }
  .bar-logo.is-dj { display: block; width: 44px; height: 44px; }
  /* live: de naam van de DJ gaat voor, het aantal luisteraars staat ook in het paneel */
  .bar-dj:not([hidden]) ~ span:not(.eq) { display: none; }
  .ls-knop { position: relative; display: block; }
  .ls-knop .ls-avatar { width: 76px; height: 76px; margin-block: 0; }
  .ls-knop .ls-avatar:not([hidden]) + .play-groot {
    position: absolute;
    right: -8px;
    bottom: -6px;
    width: 42px;
    height: 42px;
    box-shadow: 0 0 0 3px var(--merk);
  }
  .ls-knop .ls-avatar:not([hidden]) + .play-groot svg { width: 18px; height: 18px; }
  .ls-knop .ls-avatar:not([hidden]) + .play-groot .icoon-wacht i { width: 4px; height: 4px; }
  .bar-volume { display: none; }
  .straks-zij { display: none; }
  .knop-luister { display: none; }
  .bar-play { width: 46px; height: 46px; }
  .lightbox { padding: 64px 12px; }
  .lb-vorige, .lb-volgende { top: auto; bottom: 16px; transform: none; }
}

@media (max-width: 350px) {
  .merk-tekst { display: none; }
  .bar-logo.is-dj { width: 36px; height: 36px; }
  .bar-sub { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .eq i { animation: none; transform: scaleY(.6); }
  .icoon-wacht i, .live-stip, .status-pil .dot, .dj-live .dot { animation: none !important; }
  .dj-rij { scroll-behavior: auto; }
  .foto-link:hover img { transform: none; }
}
