*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --geel: #ffd100;
  --geel-glow: #ffd10066;
  --geel-dim: #ffd10033;
  --bg: #0d0d0d;
  --card: #161616;
  --card2: #1c1c1c;
  --tekst: #ffffff;
  --tekst-dim: #888;
  --radius: 18px;
  --font-body: Montserrat, Arial, sans-serif;
  --font-head: Oswald, Impact, sans-serif;
}

html, body {
  height: 100%;
  background: #2d2d2d url('https://www.piratentwente.com/wp-content/uploads/2026/06/piraten-stream-twente-landschap.jpg') center center / cover fixed no-repeat;
  color: var(--tekst);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100svh;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
  overflow-y: auto;
}

/* ── Achtergrond ── */
.bg-orbs {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  overflow: hidden;
}
.bg-orbs::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%; transform: translateX(-50%);
  width: 420px; height: 420px;
  background: radial-gradient(circle, #f5c80018 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-orb 4s ease-in-out infinite;
}
.bg-orbs::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, #f5c80009 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-orb 6s ease-in-out infinite reverse;
}
@keyframes pulse-orb {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

/* ── Wrapper ── */
.wrapper {
  position: relative; z-index: 1;
  width: 100%; max-width: min(440px, 100vw);
  padding: clamp(10px, 3svh, 24px) clamp(14px, 4vw, 20px) clamp(14px, 4svh, 32px);
  display: flex; flex-direction: column;
  gap: clamp(8px, 1.8svh, 16px);
}

/* ── Header / Logo ── */
.logo-wrap {
  display: flex; flex-direction: column; align-items: center;
  gap: 0;
  padding-bottom: clamp(2px, 1svh, 6px);
}
.logo-wrap img {
  width: 100%;
  max-width: min(260px, 65vw, 26svh);
  height: auto;
  filter: drop-shadow(0 4px 24px #ffd10044);
}

/* ── Equalizer bars ── */
.eq-bars {
  display: flex; align-items: flex-end; gap: 3px;
  height: clamp(18px, 3svh, 28px);
  justify-content: center;
  opacity: 0.6;
}
.eq-bars span {
  display: block;
  width: 4px;
  border-radius: 2px 2px 0 0;
  background: var(--geel);
  transform-origin: bottom;
  animation: eq-bounce var(--d, 0.8s) ease-in-out infinite alternate;
  animation-play-state: paused;
}
.eq-bars span:nth-child(1)  { --d: 0.6s; height: 40%; }
.eq-bars span:nth-child(2)  { --d: 0.9s; height: 70%; }
.eq-bars span:nth-child(3)  { --d: 0.5s; height: 55%; }
.eq-bars span:nth-child(4)  { --d: 0.7s; height: 90%; }
.eq-bars span:nth-child(5)  { --d: 1.1s; height: 60%; }
.eq-bars span:nth-child(6)  { --d: 0.65s; height: 80%; }
.eq-bars span:nth-child(7)  { --d: 0.85s; height: 45%; }
.eq-bars span:nth-child(8)  { --d: 0.55s; height: 75%; }
.eq-bars span:nth-child(9)  { --d: 0.95s; height: 65%; }
.eq-bars span:nth-child(10) { --d: 0.75s; height: 85%; }
.eq-bars span:nth-child(11) { --d: 0.6s; height: 50%; }
.eq-bars span:nth-child(12) { --d: 1.0s; height: 70%; }

body.speelt .eq-bars span { animation-play-state: running; }

@keyframes eq-bounce {
  0%   { transform: scaleY(0.2); opacity: 0.5; }
  100% { transform: scaleY(1);   opacity: 1; }
}

/* ── Live badge ── */
.live-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: #1e1e1e;
  border: 1px solid #2a2a2a;
  border-radius: 99px;
  padding: 6px 16px;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 900;
  letter-spacing: 2px;
  color: var(--tekst-dim);
  align-self: center;
  transition: color 0.3s, border-color 0.3s;
}
.live-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #444;
  transition: background 0.3s, box-shadow 0.3s;
}
body.speelt .live-badge {
  color: var(--tekst);
  border-color: #3a3a3a;
}
body.speelt .live-badge .dot {
  background: var(--geel);
  box-shadow: 0 0 8px var(--geel);
  animation: blink-dot 1.5s ease-in-out infinite;
}
@keyframes blink-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── Main card ── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: clamp(14px, 2.5svh, 20px) clamp(14px, 4vw, 20px) clamp(12px, 2svh, 16px);
  border: 1px solid #222;
  display: flex; flex-direction: column;
  gap: clamp(10px, 2svh, 16px);
}

/* ── DJ info rij ── */
.info-rij {
  display: flex; align-items: center; gap: clamp(10px, 3vw, 14px);
}
.info-icoon {
  width: clamp(36px, 8vw, 46px); height: clamp(36px, 8vw, 46px);
  border-radius: 50%;
  background: #222;
  border: 2px solid #2e2e2e;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: clamp(15px, 4vw, 20px);
  color: var(--geel);
  transition: border-color 0.3s;
}
body.speelt .info-icoon.dj-icoon { border-color: var(--geel); }

.info-tekst { flex: 1; min-width: 0; }
.info-label {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--geel);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.info-naam {
  font-family: var(--font-head);
  font-size: clamp(18px, 5vw, 26px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.on-air-badge {
  display: inline-flex;
  background: var(--geel);
  color: #000;
  font-family: var(--font-body);
  font-size: 11px; font-weight: 900;
  letter-spacing: 1.5px;
  padding: 3px 10px;
  border-radius: 6px;
  margin-top: 4px;
  text-transform: uppercase;
}

/* ── Divider ── */
.divider { height: 1px; background: #222; margin: 0 -20px; }

/* ── Nummer info ── */
.nummer-rij {
  display: flex; align-items: center; gap: 14px;
}
.nummer-tekst { flex: 1; min-width: 0; }

/* Marquee wrapper — clips de scrollende tekst */
.marquee-wrap {
  overflow: hidden;
  position: relative;
  width: 100%;
}

/* De binnenste track — bevat twee kopieën zodat er geen lege ruimte is */
.marquee-track {
  display: flex;
  white-space: nowrap;
  will-change: transform;
}

/* Elke individuele tekst-span — padding-right = ruimte tussen herhalingen */
.marquee-track span {
  display: inline-block;
  padding-right: 60px;
}

.nummer-naam .marquee-track span {
  font-family: var(--font-head);
  font-size: clamp(18px, 5vw, 22px); font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.nummer-sub .marquee-track span {
  font-size: clamp(12px, 1.2vw, 15px);
  color: var(--tekst-dim);
}
.nummer-sub { margin-top: 1px; }

/* ── Play knop ── */
.play-wrap {
  display: flex; justify-content: center;
  padding: clamp(4px, 1svh, 8px) 0;
}
.play-btn {
  width: clamp(60px, 16vw, 80px); height: clamp(60px, 16vw, 80px);
  border-radius: 50%;
  border: 3px solid var(--geel);
  background: transparent;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: transform 0.15s, box-shadow 0.3s;
  box-shadow: 0 0 20px var(--geel-dim);
  -webkit-tap-highlight-color: transparent;
}
.play-btn::before {
  content: '';
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--geel-dim);
  animation: ring-pulse 2s ease-out infinite;
  opacity: 0;
}
body.speelt .play-btn::before { opacity: 1; }
@keyframes ring-pulse {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}
.play-btn:active { transform: scale(0.93); }
body.speelt .play-btn { box-shadow: 0 0 30px var(--geel-glow); }

.play-icon, .stop-icon { pointer-events: none; }
.stop-icon { display: none; }
body.speelt .play-icon { display: none; }
body.speelt .stop-icon { display: block; }

/* ── Kwaliteitsschakelaar ── */
.kwaliteit-wrap {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid #222;
  display: grid; grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.kwal-knop {
  display: flex; align-items: center; gap: clamp(6px, 1.5vw, 10px);
  padding: clamp(10px, 2svh, 14px) clamp(8px, 2vw, 16px);
  cursor: pointer;
  border: none; background: transparent;
  color: var(--tekst-dim);
  font-family: var(--font-body);
  font-size: clamp(10px, 2.8vw, 13px); font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
  justify-content: center;
}
.kwal-knop:first-child { border-right: 1px solid #222; }
.kwal-knop.actief {
  background: #1f1f1f;
  color: var(--tekst);
}
.kwal-badge {
  width: clamp(24px, 6vw, 32px); height: clamp(24px, 6vw, 32px);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(9px, 2.5vw, 11px); font-weight: 800;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.kwal-knop.actief .kwal-badge {
  background: var(--geel);
  color: #000;
}
.kwal-knop:not(.actief) .kwal-badge {
  background: #2a2a2a;
  color: #555;
}

/* ── Laden ── */
.laden-wrap {
  display: none;
  position: fixed; inset: 0; z-index: 100;
  background: rgba(13,13,13,0.85);
  align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.laden-wrap.zichtbaar { display: flex; }
.laden-ring {
  width: 48px; height: 48px; border-radius: 50%;
  border: 3px solid #222;
  border-top-color: var(--geel);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Android App Banner ── */
.android-banner {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #1c1c1c;
  border-top: 1px solid #2a2a2a;
  padding: 12px 16px;
  align-items: center;
  gap: 12px;
  z-index: 999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}
.android-banner.zichtbaar { display: flex; }
.android-banner-icoon {
  width: 44px; height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
}
.android-banner-tekst { flex: 1; min-width: 0; }
.android-banner-titel {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 700;
  color: var(--tekst);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.android-banner-sub {
  font-size: 11px; color: var(--tekst-dim);
  margin-top: 2px;
}
.android-banner-knop {
  background: var(--geel);
  color: #000;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 900;
  padding: 8px 16px;
  border-radius: 99px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.android-banner-sluit {
  background: none;
  border: none;
  color: var(--tekst-dim);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

/* ── Website knop ── */
.website-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--card);
  border: 1px solid #222;
  border-radius: var(--radius);
  padding: clamp(10px, 2svh, 14px) 20px;
  color: var(--tekst-dim);
  font-family: var(--font-body);
  font-size: clamp(10px, 2.8vw, 13px); font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.website-btn:hover { color: var(--tekst); }
.website-btn svg { flex-shrink: 0; }

/* ── Footer ── */
.footer {
  text-align: center;
  font-size: 11px; color: #333;
  letter-spacing: 1px;
  padding-bottom: 8px;
}

/* ── Fout toast ── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: #1e1e1e; border: 1px solid #333;
  border-radius: 12px; padding: 10px 20px;
  font-size: 13px; color: #ccc;
  transition: transform 0.3s ease;
  z-index: 200;
  white-space: nowrap;
  pointer-events: none;
}
.toast.zichtbaar { transform: translateX(-50%) translateY(0); }