/* assets/wow-21.css: de ideeën van 21st.dev in de stijl van IRP (goedgekeurd 2026-12-03). Hoort bij assets/wow-21.js.
   Alles hangt aan body.fx-21. Iets van de site verbergen gebeurt alleen als het script klaar is (fx21-aan,
   fx21-tel, fx21-teller, fx21-balk); zonder JavaScript blijft de pagina dus zoals hij was.
   Voorpagina: 1 neon, 2 sticker LIVE, 3 aftellen, 4 lichtrand, 6 schuivende band, 8 glans.
   Luisterpagina: 3 teller van de luisteraars, 7 dansende balkjes. */

body.fx-21 { --t-or: #ff6b1a; --t-or-licht: #ffb37a; --t-wit: #f3f1ee; --t-zacht: rgba(243, 241, 238, .66); --t-lijn: rgba(243, 241, 238, .13); }

/* ------------------------------------------------------------------ 1. Neon ON AIR */
.t1-neon { display: none; }
body.fx-21 .t1-neon {
  display: inline-flex; align-items: center; position: relative;
  padding: 7px 14px 6px; border-radius: 6px;
  background: linear-gradient(#0d0b0a, #070605);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 1px 0 rgba(255, 255, 255, .05), 0 6px 18px rgba(0, 0, 0, .5);
}
/* twee schroefjes waar het bordje aan hangt */
body.fx-21 .t1-neon::before,
body.fx-21 .t1-neon::after { content: ""; position: absolute; top: 50%; width: 3px; height: 3px; margin-top: -1.5px; border-radius: 50%; background: #2b2724; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
body.fx-21 .t1-neon::before { left: 4px; }
body.fx-21 .t1-neon::after { right: 4px; }
.t1-buis { display: inline-flex; }
.t1-buis i {
  font: 400 22px/1 Anton, Impact, sans-serif; font-style: normal; letter-spacing: .1em; text-transform: uppercase;
  color: #ffe6d6;
  text-shadow: 0 0 1px #fff, 0 0 7px var(--t-or), 0 0 16px rgba(255, 107, 26, .85), 0 0 30px rgba(255, 107, 26, .4);
}
.t1-buis .t1-sp { width: .34em; }
/* uit: de buis is er wel, maar brandt niet */
.t1-neon.is-uit .t1-buis i { color: #3a2114; text-shadow: 0 1px 0 rgba(255, 255, 255, .05); }
/* aangaan: elke letter hapert op zijn eigen manier en blijft daarna rustig branden */
.t1-neon.is-start .t1-buis i { animation: t1-aan 1.7s steps(1, end) both; }
.t1-neon.is-start .t1-buis i:nth-child(2) { animation-name: t1-aan-b; animation-delay: .12s; }
.t1-neon.is-start .t1-buis i:nth-child(4) { animation-delay: .3s; }
.t1-neon.is-start .t1-buis i:nth-child(5) { animation-name: t1-aan-b; animation-delay: .22s; }
.t1-neon.is-start .t1-buis i:nth-child(6) { animation-name: t1-aan-c; animation-delay: .38s; }
@keyframes t1-aan {
  0%, 9%, 16%, 34% { color: #3a2114; text-shadow: 0 1px 0 rgba(255, 255, 255, .05); }
  6%, 13%, 28%, 40%, 100% { color: #ffe6d6; text-shadow: 0 0 1px #fff, 0 0 7px #ff6b1a, 0 0 16px rgba(255, 107, 26, .85), 0 0 30px rgba(255, 107, 26, .4); }
}
@keyframes t1-aan-b {
  0%, 22%, 30%, 52% { color: #3a2114; text-shadow: 0 1px 0 rgba(255, 255, 255, .05); }
  18%, 26%, 46%, 58%, 100% { color: #ffe6d6; text-shadow: 0 0 1px #fff, 0 0 7px #ff6b1a, 0 0 16px rgba(255, 107, 26, .85), 0 0 30px rgba(255, 107, 26, .4); }
}
@keyframes t1-aan-c {
  0%, 14%, 44%, 50%, 70% { color: #3a2114; text-shadow: 0 1px 0 rgba(255, 255, 255, .05); }
  10%, 40%, 47%, 64%, 76%, 100% { color: #ffe6d6; text-shadow: 0 0 1px #fff, 0 0 7px #ff6b1a, 0 0 16px rgba(255, 107, 26, .85), 0 0 30px rgba(255, 107, 26, .4); }
}

/* ------------------------------------------------------------------ 2. Sticker LIVE op de hoes */
/* zoals in een platenzaak, met een lampje dat klopt; de hoes staat in 3D en de sticker draait mee */
.t2-live { display: none; }
body.fx-21 .t2-kaart .dj-wanneer-pil,
body.fx-21 .t2-kaart .dj-live { display: none !important; }
body.fx-21 .t2-kaart .t2-live {
  position: absolute; right: 12px; top: 12px; z-index: 4;
  display: grid; gap: 3px; padding: 8px 11px 7px 10px; border-radius: 4px;
  background: linear-gradient(170deg, #ff7d33, #ff6b1a 55%, #f25c0c); color: #170a03;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 3px 8px rgba(0, 0, 0, .5);
  transform: rotate(3deg); transform-origin: 100% 0; white-space: nowrap; pointer-events: none;
}
.t2-boven { display: flex; align-items: center; gap: 7px; }
.t2-live b { font: 400 21px/1 Anton, Impact, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.t2-n { font: 700 11.5px/1.1 Figtree, system-ui, sans-serif; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.t2-lamp { position: relative; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px rgba(23, 10, 3, .85), 0 0 8px #fff; }
.t2-lamp::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #fff; animation: t2-klop 2s cubic-bezier(.2, .6, .3, 1) infinite; }
@keyframes t2-klop { 0% { transform: scale(1); opacity: .75; } 70%, 100% { transform: scale(3); opacity: 0; } }
@media (max-width: 640px) {
  body.fx-21 .t2-kaart .t2-live { right: 8px; top: 8px; padding: 6px 9px 6px 8px; }
  .t2-live b { font-size: 17px; }
  .t2-n { font-size: 10.5px; }
}

/* ------------------------------------------------------------------ 3. Rollende cijfers */
/* het vak is een gewoon stukje tekst op de regel; elk cijfer is een venstertje van precies één regel hoog */
.t3-rol { display: inline-block; line-height: 1.25; white-space: nowrap; vertical-align: baseline; font-variant-numeric: tabular-nums; }
.t3-c { position: relative; display: inline-block; vertical-align: bottom; width: .62em; height: 1.25em; overflow: hidden; }
.t3-c b { display: block; height: 1.25em; font-weight: inherit; text-align: center; }
.t3-c b.t3-oud { position: absolute; left: 0; right: 0; top: 0; }
.t3-c b.in-op { animation: t3-in-op .5s cubic-bezier(.2, .8, .2, 1) both; }
.t3-c b.uit-op { animation: t3-uit-op .5s cubic-bezier(.2, .8, .2, 1) both; }
.t3-c b.in-neer { animation: t3-in-neer .5s cubic-bezier(.2, .8, .2, 1) both; }
.t3-c b.uit-neer { animation: t3-uit-neer .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes t3-in-op { from { transform: translateY(100%); } to { transform: none; } }
@keyframes t3-uit-op { from { transform: none; } to { transform: translateY(-100%); } }
@keyframes t3-in-neer { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes t3-uit-neer { from { transform: none; } to { transform: translateY(100%); } }
.t3-vast { display: inline; }
/* het aftellen in de lichtbak: het vak van de site wordt verborgen zolang het eigen vak telt */
.t3-over, .t3-luister { display: none; }
body.fx-21.fx21-tel .kop-straks .js-straks-over:not(.t3-over) { display: none; }
body.fx-21.fx21-tel .t3-over:not([hidden]) { display: inline; }
.t3-over .t3-rol { margin-left: .28em; }
/* de teller op de luisterpagina: kleine trommels, als een kilometerteller. Het vak van de site blijft voor schermlezers. */
body.fx-21.fx21-teller #luisteraars { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
body.fx-21.fx21-teller .t3-luister { display: inline; }
.t3-luister .t3-rol { margin-right: 5px; line-height: 22px; font-size: 14px; }
.t3-luister .t3-c {
  width: 15px; height: 22px; margin-right: 2px; border-radius: 3px; color: #fff; font-weight: 700;
  background: linear-gradient(#030303, #201d1a 42%, #201d1a 58%, #030303);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.t3-luister .t3-c b { height: 22px; }

/* ------------------------------------------------------------------ 4. Lichtrand die de muis volgt (alleen pc) */
.t4-rand, .t4-was { display: none; }
@media (hover: hover) and (pointer: fine) {
  body.fx-21 .t4-pos { position: relative; }
  body.fx-21 .t4-rand, body.fx-21 .t4-was { display: block; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s ease; z-index: 3; }
  body.fx-21 .t4-rand {
    padding: 2px;
    background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), #ffc8a0, #ff6b1a 22%, rgba(255, 107, 26, .5) 48%, rgba(255, 107, 26, 0) 76%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
  }
  body.fx-21 .t4-was { background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 107, 26, .17), rgba(255, 107, 26, 0) 62%); }
  body.fx-21 .dj-beeld > .t4-rand, body.fx-21 .dj-beeld > .t4-was { backface-visibility: hidden; }
  body.fx-21 .t4-groep.is-bij .t4-rand, body.fx-21 .t4-groep.is-bij .t4-was { opacity: 1; }
}

/* ------------------------------------------------------------------ 6. Schuivende band met berichten uit het gastenboek */
.t6-band { display: none; }
body.fx-21 .t6-band { display: block; padding: 30px 0 34px; background: #0b0a09; border-top: 1px solid var(--t-lijn); }
.t6-kop { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0 0 16px; font: 600 12px/1.2 Figtree, system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--t-zacht); }
.t6-kop a { color: var(--t-or); text-decoration: none; letter-spacing: .04em; text-transform: none; font-size: 14px; white-space: nowrap; }
.t6-kop a:hover { text-decoration: underline; text-underline-offset: 3px; }
.t6-venster { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.t6-venster:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.t6-baan { display: flex; width: max-content; animation: t6-schuif 95s linear infinite; }
.t6-venster:hover .t6-baan, .t6-venster:focus .t6-baan, .t6-venster:active .t6-baan { animation-play-state: paused; }
.t6-rij { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
.t6-rij li { display: flex; align-items: baseline; gap: 12px; padding-right: 30px; white-space: nowrap; }
.t6-rij li::after { content: ""; align-self: center; width: 7px; height: 7px; margin-left: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--t-or); }
.t6-tekst { font: 500 19px/1.5 Figtree, system-ui, sans-serif; color: var(--t-wit); }
.t6-tekst::before { content: "\201C"; color: var(--t-or); margin-right: 2px; }
.t6-tekst::after { content: "\201D"; color: var(--t-or); margin-left: 1px; }
.t6-naam { font: 600 12px/1 Figtree, system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--t-zacht); }
@keyframes t6-schuif { to { transform: translateX(-50%); } }
@media (max-width: 640px) { .t6-tekst { font-size: 17px; } body.fx-21 .t6-band { padding: 24px 0 26px; } }

/* ------------------------------------------------------------------ 7. Dansende balkjes (luisterpagina) */
.t7-vak { display: none; }
body.fx-21.fx21-balk #golf { display: none; }
body.fx-21.fx21-balk .t7-vak { display: block; width: 100%; max-width: 400px; height: 104px; margin: 12px auto 2px; }
.t7-balk { display: block; width: 100%; height: 100%; }

/* ------------------------------------------------------------------ 8. Glans over "Luister live" en het label bij het nieuws */
.t8-glans { display: none; }
body.fx-21 #play, body.fx-21 .t8-tag { position: relative; }
body.fx-21 .t8-glans { display: block; position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
body.fx-21 .t8-glans::before {
  content: ""; position: absolute; top: -30%; bottom: -30%; left: 0; width: 34%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .5) 50%, rgba(255, 255, 255, 0));
  transform: translateX(-160%) skewX(-18deg); animation: t8-veeg 8s ease-in-out infinite;
}
body.fx-21 .t8-tag .t8-glans::before { animation-delay: 4s; }
/* uit zodra de radio speelt (app.js zet body.speelt) of verbindt */
body.fx-21.speelt .t8-glans, body.fx-21 #play.is-wacht .t8-glans { display: none; }
@keyframes t8-veeg { 0%, 82% { transform: translateX(-160%) skewX(-18deg); } 100% { transform: translateX(460%) skewX(-18deg); } }

/* ------------------------------------------------------------------ Minder beweging: alles stil */
@media (prefers-reduced-motion: reduce) {
  .t1-neon.is-start .t1-buis i { animation: none; }
  .t2-lamp::after { animation: none; opacity: 0; }
  .t3-c b { animation: none !important; }
  .t3-c b.t3-oud { display: none; }
  .t6-baan { animation: none; }
  .t6-venster { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .t6-rij[aria-hidden="true"] { display: none; }
  body.fx-21 .t8-glans::before { animation: none; }
  body.fx-21 .t4-rand, body.fx-21 .t4-was { transition: none; }
}

/* 6b. De band als smalle balk net onder de speler (body.fx21-band-boven, 3-12): even breed als het toestel en de kaarten,
   zelfde rand en paneel, alles op één regel: label links, berichten in het midden, "Schrijf ook iets" rechts. */
body.fx-21 .t6-band.t6-boven { grid-column: 1 / -1; margin: 8px 0 0; padding: 0 18px; border: 1px solid var(--lijn, rgba(255, 255, 255, .08)); border-radius: 12px; background: var(--paneel, #11100e); }
.t6-boven .t6-in { display: flex; align-items: center; gap: 18px; max-width: none; height: 50px; margin: 0; padding: 0; }
.t6-boven .t6-kop { display: contents; }
.t6-boven .t6-kop span { order: 0; flex: none; font: 600 13px/1 Figtree, system-ui, sans-serif; letter-spacing: 0; text-transform: none; color: var(--t-zacht); }
.t6-boven .t6-venster { order: 1; flex: 1 1 auto; min-width: 0; }
.t6-boven .t6-kop a { order: 2; flex: none; font-size: 13px; }
.t6-boven .t6-tekst { font-size: 15px; line-height: 1.3; }
.t6-boven .t6-naam { font-size: 11px; }
.t6-boven .t6-rij li { padding-right: 24px; }
.t6-boven .t6-rij li::after { margin-left: 14px; width: 6px; height: 6px; }
@media (max-width: 640px) {
  body.fx-21 .t6-band.t6-boven { padding: 0 12px; }
  .t6-boven .t6-in { gap: 12px; height: 44px; }
  .t6-boven .t6-kop span { display: none; }
  .t6-boven .t6-tekst { font-size: 14px; }
}
/* telefoon en tablet (één kolom): de balk direct onder de speler, vóór "Straks op IRP"; alleen de berichten, zonder knop */
@media (max-width: 1000px) {
  body.fx21-band-boven .nw-raster > .nw-toestel { order: 0; }
  body.fx21-band-boven .nw-raster > .t6-boven { order: 1; }
  body.fx21-band-boven .nw-raster > .nw-zij { order: 2; }
  body.fx21-band-boven .nw-raster > .kop-kaarten { order: 3; }
}
@media (max-width: 640px) {
  .t6-boven .t6-kop a { display: none; }
}
