:root {
    /* Modern app/SaaS direction, benchmarked directly against voltfm.nl
       (computed styles inspected live): near-black navy base, a vivid
       blue → purple → magenta → cyan gradient mesh for hero/buttons/accents,
       glassy translucent cards with a soft hairline border and a big diffuse
       shadow, bold Inter-style type. Deliberately not the old flat
       monochrome-blue theme, and not the wine-red pass either — both read
       too muted/uniform next to the real reference. */
    --bg: #0d1526;
    --surface: #141f36;
    --surface-2: #1a2744;
    --border: rgba(255, 255, 255, .08);
    --border-strong: rgba(255, 255, 255, .16);
    --ink: #eff8ff;
    --muted: #8f9dc2;
    --accent: #8271ad;
    --accent-2: #00d8ff;
    --accent-grad: linear-gradient(135deg, #6b5296, #8b74b8);
    --accent-solid: #8271ad;
    --success: #34d399;
    --success-grad: linear-gradient(135deg, #2f9142, #1c6b30);
    --error: #f87171;
    --gold: #e8b34a;
    --bronze: #d9864a;
    --pink: #ec4899;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-sm: 10px;
    --shadow: 0 34px 78px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255, 255, 255, .06);
    --shadow-sm: 0 18px 40px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05);
    --font: 'Inter', "Segoe UI Variable Text", "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
    --font-display: 'Inter', "Segoe UI Variable Text", "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
    /* RGB-drietal (geen kleur) achter de glazen panelen die op de
       paginachtergrond zweven (header, speler, speler-popover) — bewust
       gescheiden van --bg zelf, want dit moet in het lichte thema omdraaien
       naar wit terwijl losse tekst/scrim-kleuren elders (bv. de foto-scrims
       op nieuws/afspeelgeschiedenis-kaarten) juist altijd donker moeten
       blijven, ongeacht paginathema. */
    --glass-tint: 13, 21, 38;
}

/* Lichte variant — bewust alleen de tokens die daadwerkelijk met de
   paginachtergrond te maken hebben; accent/success/error/gold/bronze en de
   hero-sectie (die blijft een vast donker verloop, een merkelement) blijven
   ongewijzigd in beide thema's. */
[data-theme="light"] {
    --bg: #f4f6fb;
    --surface: #ffffff;
    --surface-2: #eef1f5;
    --border: rgba(15, 23, 42, .1);
    --border-strong: rgba(15, 23, 42, .2);
    --ink: #12172a;
    --muted: #5b6478;
    --glass-tint: 255, 255, 255;
}

* { box-sizing: border-box; }

/* Custom scrollbar, site-wide — applies to the page itself and to every
   scrollable element (dialogs, dropdown/date-picker panels, chat lists, ...)
   since ::-webkit-scrollbar isn't inherited and has to be targeted per
   element. scrollbar-width/-color cover Firefox the same way. */
html { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: var(--muted); }
*::-webkit-scrollbar-corner { background: transparent; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    line-height: 1.55;
}

body {
    min-height: 100vh;
    padding-bottom: calc(78px + env(safe-area-inset-bottom)); /* room for the docked player bar */
}

/* App shell — a fixed left sidebar (nav lives here, not a top bar) next to
   the scrolling content column. This is the single biggest structural break
   from the old "top nav + full-width hero band + stacked sections" template,
   and it applies to every page at once since it's the shared shell. */
.app-shell { display: flex; flex-direction: column; min-height: 100vh; }
.app-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
main { flex: 1; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-display);
    line-height: 1.05;
    margin: 0 0 .45em;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--muted); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding: .9em 1.6em;
    border-radius: var(--radius);
    font-weight: 800;
    font-size: .9rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform .12s ease, opacity .12s ease, box-shadow .12s ease;
}
.btn:hover { text-decoration: none; opacity: .92; }
.btn:active { transform: scale(.97); }
.btn-accent { background: var(--accent-grad); color: #fff; box-shadow: 0 8px 18px rgba(107, 82, 150, .28); }
.btn-accent:hover { box-shadow: 0 10px 22px rgba(107, 82, 150, .32); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-outline { background: transparent; color: var(--muted); border-color: var(--border); }
.btn-outline:hover { color: var(--error); border-color: var(--error); }
.btn-sm { padding: .55em 1.1em; font-size: .78rem; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Top navigation bar — sticky, glassy dark bar with a pill-highlight nav
   (not the old flat opaque top bar from before the sidebar experiment: this
   one blurs the page behind it and highlights the active link as a pill
   rather than an underline). */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(var(--glass-tint), .78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.site-header-inner {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 14px 32px;
    max-width: 1400px;
    margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-logo { height: 54px; width: auto; display: block; }
.main-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.main-nav a { color: var(--muted); font-weight: 600; font-size: .88rem; text-decoration: none; padding: 9px 15px; border-radius: 999px; white-space: nowrap; transition: background .15s ease, color .15s ease; }
.main-nav a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.main-nav a.active { background: var(--surface-2); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-actions .btn { width: auto; }

/* Dark/light-toggle — zie assets/js/theme-toggle.js. Welk icoon zichtbaar
   is, hangt puur van het data-theme-attribuut op <html> af (geen JS nodig
   om het icoon zelf te wisselen, enkel om het attribuut te zetten). */
.theme-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; padding: 0;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--ink);
    cursor: pointer;
}
.theme-toggle:hover { border-color: var(--border-strong); }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.menu-toggle {
    display: none;
    align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--ink);
    cursor: pointer; flex-shrink: 0; padding: 0; margin-left: auto;
}
.menu-toggle svg { width: 20px; height: 20px; }
/* Groepeer-wrapper rond .main-nav + .header-actions — op desktop onzichtbaar
   voor de layout (kinderen gedragen zich als losse flex-items van
   .site-header-inner); wordt pas het uitklappaneel zelf op mobiel, zie
   @media (max-width: 900px) hieronder. */
.mobile-nav-panel { display: contents; }

/* Flashes */
.flashes { margin: 20px 0 0; display: flex; flex-direction: column; gap: 8px; }
.flash { padding: 12px 16px; border-radius: var(--radius); font-size: .9rem; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid; }
.flash-success { border-left-color: var(--success); color: var(--success); }
.flash-error { border-left-color: var(--error); color: var(--error); }
.flash ul { margin: 0; padding-left: 1.2em; }

/* Toast notifications (assets/js/toast.js) — small, top-right (lands in/near
   the hero on initial view), auto-dismiss after 5s with a shrinking progress
   line, used for quick AJAX action feedback (favorieten, verzoekjes
   versturen) instead of a full page reload + .flash banner. */
.toast-container {
    position: fixed; top: 20px; right: 20px; z-index: 200;
    display: flex; flex-direction: column; gap: 10px;
    max-width: min(340px, calc(100vw - 40px));
}
.toast {
    position: relative; overflow: hidden;
    padding: 14px 16px 16px;
    border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border-strong); border-left: 3px solid;
    font-size: .88rem; font-weight: 500; line-height: 1.4;
    box-shadow: var(--shadow); cursor: pointer;
    animation: toast-in .2s ease;
}
.toast.toast-out { animation: toast-out .2s ease forwards; }
.toast-success { border-left-color: var(--success); color: var(--success); }
.toast-error { border-left-color: var(--error); color: var(--error); }
.toast::after {
    content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
    background: currentColor; transform-origin: left;
    animation: toast-countdown 5s linear forwards;
}
@keyframes toast-countdown { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes toast-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toast-out { from { opacity: 1; } to { opacity: 0; transform: translateX(24px); } }

/* Hero — used at the top of every public page. A vivid, own-brand gradient
   (warm violet → ember — deliberately not voltfm's cool blue/cyan/magenta
   mix) with two slow-drifting glow blobs, so every page's entrance carries
   the same bold signature, not just the homepage. */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1c1030 0%, #33184f 38%, #5a2350 68%, #8a3a24 100%);
    color: #fff;
    padding: 56px 0;
    min-height: 360px;
    display: flex;
    align-items: center;
    text-align: center;
}
.hero .wrap { width: 100%; }
.hero::before, .hero::after {
    content: ''; position: absolute; border-radius: 50%; filter: blur(20px); pointer-events: none;
}
.hero::before {
    top: -25%; left: -12%; width: 60%; height: 130%;
    background: radial-gradient(circle, rgba(232, 149, 47, .4), transparent 70%);
    animation: hero-drift-a 16s ease-in-out infinite;
}
.hero::after {
    bottom: -32%; right: -8%; width: 55%; height: 120%;
    background: radial-gradient(circle, rgba(107, 82, 150, .36), transparent 70%);
    animation: hero-drift-b 20s ease-in-out infinite;
}
@keyframes hero-drift-a { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(4%, 6%) scale(1.12); } }
@keyframes hero-drift-b { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-5%, -4%) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .hero::before, .hero::after { animation: none; } }

.hero .wrap { position: relative; z-index: 1; max-width: 720px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 700; letter-spacing: -0.01em; }
/* Vast lichte tekstkleur i.p.v. var(--muted)/var(--ink) — de hero blijft in
   beide thema's een donker verloop (merkelement, zie de token-uitleg
   hierboven bij :root), dus tekst erin moet altijd licht blijven, ongeacht
   welk thema de rest van de pagina heeft. */
.hero p { color: rgba(255, 255, 255, .82); max-width: 56ch; margin-left: auto; margin-right: auto; }
.hero .btn-row, .hero > .wrap > div[style] { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .btn { transition: transform .18s ease, box-shadow .18s ease, opacity .12s ease, background-color .18s ease, border-color .18s ease; }
.hero .btn:hover { transform: translateY(-2px); }
.hero .btn-accent {
    border-color: rgba(255, 255, 255, .22);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .26), 0 4px 12px rgba(107, 82, 150, .3);
}
.hero .btn-accent:hover { border-color: rgba(255, 255, 255, .32); box-shadow: 0 10px 22px rgba(0, 0, 0, .28), 0 5px 14px rgba(107, 82, 150, .32); }
.hero .btn-ghost {
    background: rgba(13, 21, 38, .4); color: #fff; border-color: rgba(255, 255, 255, .3);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero .btn-ghost:hover { border-color: #fff; background: rgba(13, 21, 38, .55); }
.hero-mark { display: none; }
.hero-onair { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; justify-content: center; }
.hero-onair .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(52, 211, 153, .25); }

/* Small metadata pill next to a section heading — e.g. Top 20's "Week van
   ..." next to "Deze week" — same quiet badge language as .schedule-bar-count
   rather than a standalone card competing with the hero for attention. */
.week-pill {
    display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
    font-size: .78rem; font-weight: 600; color: var(--ink);
    background: var(--surface-2); border: 1px solid var(--border);
    padding: 6px 13px; border-radius: 999px;
}
.week-pill svg { color: var(--accent-2); flex-shrink: 0; }

/* Every hero's illustration: one consistent treatment — large, faint, and
   behind the content (not a competing side panel), so it reads the same way
   whether the hero is plain centered text or has its own functional right
   column (homepage's now-playing card, account's stat panel). */
.hero-illustration-bg {
    position: absolute; z-index: 0; pointer-events: none; user-select: none;
    bottom: -60px; right: -60px;
    width: auto; height: auto;
    max-width: 50%; max-height: 340px;
    opacity: .14;
}
@media (max-width: 900px) { .hero-illustration-bg { display: none; } }

.hero-card {
    position: relative; z-index: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 28px 56px rgba(0, 0, 0, .45), 0 10px 24px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}
.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 36px 64px rgba(0, 0, 0, .5), 0 14px 30px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.hero-card img { border-radius: var(--radius); margin-bottom: 14px; aspect-ratio: 1/1; object-fit: cover; width: 100%; background: var(--surface-2); }

/* Section headings row */
/* Longhand (niet de padding-shorthand) — anders overschrijft dit .wrap's
   horizontale padding zodra een element beide classes heeft (net zoals
   ".wrap section" overal in de codebase), aangezien twee shorthand
   padding-regels met gelijke specificiteit elkaar volledig vervangen i.p.v.
   samenvoegen. */
.section { padding-top: 44px; padding-bottom: 44px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; gap: 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .btn { flex-shrink: 0; }

/* Section divider — one flat page background site-wide (no alternating
   bands, no colored glow); a plain hairline marks where one section ends
   and the next begins, the same quiet pattern used elsewhere on the site. */
.section-band { border-top: 1px solid var(--border); }

/* Over-ons — alternating image/text blocks below the shared .hero header;
   deliberately not the stacked hero/highlights-strip/cta pattern the rest of
   the site uses, so this page's body still reads as its own thing. */
.about-block { display: flex; align-items: center; gap: 48px; }
.about-block-reverse { flex-direction: row-reverse; }
.about-block-text { flex: 1.1; min-width: 280px; }
.about-block-text p { max-width: 56ch; }
.about-block-media {
    flex: 1; min-width: 240px; display: flex; align-items: center; justify-content: center;
    background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
    padding: 32px; box-shadow: var(--shadow); aspect-ratio: 4/3;
}
.about-block-media img { max-width: 260px; width: 100%; }

/* Over-ons — Topi (het mascottetje) komt op een paar plekken terug: een
   badge boven de hero-titel, en losse "quote"-regels verderop op de
   pagina. Bewust geen border-radius:50% op de mascotte-afbeeldingen zelf —
   het figuurtje staat niet gecentreerd/rond binnen zijn eigen SVG-canvas
   (de antennes steken boven het lijf uit), dus een cirkel-crop zou 'm er
   scheef afgesneden uit laten zien. */
.topi-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px; padding: 5px 16px 5px 5px;
    color: #fff; font-weight: 700; font-size: .82rem;
    margin-bottom: 18px;
}
.topi-hero-badge img { width: 26px; height: 26px; flex-shrink: 0; }
.topi-note { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.topi-note img { width: 40px; height: 40px; flex-shrink: 0; }
.topi-note p { margin: 0; font-style: italic; color: var(--muted); }
.topi-note-center { justify-content: center; text-align: left; }

/* Heel bewust terughoudend — een klein knipoogje op de gewone .hero-pagina's
   (Programma, Nieuws, Top 20, Team, Vacatures, Licentie, Contact), geen
   eigen sectie of grote afbeelding zoals op over-ons.php. */
.topi-hint {
    display: inline-flex; align-items: center; gap: 6px;
    margin: 14px auto 0; opacity: .8;
    color: rgba(255, 255, 255, .7); font-size: .78rem; font-weight: 500;
}
.topi-hint img { width: 18px; height: 18px; flex-shrink: 0; }

/* "TopiaFM" die live een regel uittypt (over-ons.php) — het blijft altijd
   evenveel plek innemen als de langste regel dankzij min-height, zodat de
   pagina niet omhoog springt zodra het typen klaar is. */
.typewriter-line { font-size: 1.25rem; font-weight: 700; color: var(--ink); min-height: 1.6em; }
.typewriter-prefix { color: var(--accent); margin-right: 6px; }
.typewriter-cursor { display: inline-block; margin-left: 2px; color: var(--accent); animation: typewriter-blink 1s step-end infinite; }
@keyframes typewriter-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .typewriter-cursor { animation: none; } }

/* Over-ons — "Waar we voor staan": los van .highlights-strip hieronder
   (die staat vast op 3 kolommen met randjes ertussen) — dit mogen er ook 4
   of meer worden, dus een los grid dat vanzelf meegroeit i.p.v. een vaste
   kolomtelling. */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.value-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.value-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.value-card p { margin: 0; color: var(--muted); font-size: .9rem; }

/* Over-ons — stat cards (its own numbers-band, not paired with an image) */
.stat-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 20px; text-align: center; }
.stat-card-value { display: block; font-size: 2.3rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; font-family: var(--font-display); }
.stat-card-label { display: block; margin-top: 6px; color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* Programma-balk (/schedule) — a neutral dark pill, not blue: the page's own
   .hero header above it already carries the blue, so this stays a plain
   surface (like other cards/panels) rather than stacking two blue bars. */
.schedule-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 16px 28px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 26px;
}
.schedule-bar-label { display: flex; align-items: baseline; gap: 10px; color: var(--ink); flex-wrap: wrap; }
.schedule-bar-day { font-weight: 800; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em; color: var(--accent); }
.schedule-bar-week { color: var(--muted); font-size: .92rem; }
.schedule-bar-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.schedule-bar-count { font-family: 'JetBrains Mono', var(--font); font-size: .72rem; font-weight: 700; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); padding: 4px 11px; border-radius: 999px; }

/* Programma (/schedule) — one row per show: square art, title + "Live met
   X", a small avatar+name tag, big bold time on the right. */
.rooster-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.rooster-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 16px 18px; display: flex; align-items: center; gap: 14px;
    transition: transform .18s ease, border-color .18s ease;
}
.rooster-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.rooster-card-top { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.rooster-card-art { width: 48px; height: 48px; border-radius: var(--radius-sm); object-fit: cover; background: var(--surface-2); flex-shrink: 0; }
.rooster-card-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rooster-card-title { font-weight: 700; font-size: .98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rooster-card-host { color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rooster-card-time { flex-shrink: 0; font-weight: 800; font-size: 1.1rem; color: var(--accent-2); font-family: var(--font-display); letter-spacing: -0.01em; }

/* Homepage — "Opkomende shows": the first few upcoming shows as side-by-side
   cards (league-fm.nl's programma-card composition — logo/avatar top-left,
   title + DJ badge, big bold time bottom-right of the card) instead of a
   list, since this is a highlight/teaser, not a full schedule. */
.upcoming-label-row { display: flex; justify-content: center; margin-bottom: 22px; }
.upcoming-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--surface); color: var(--ink); font-weight: 700; font-size: .8rem;
    text-transform: uppercase; letter-spacing: .04em; padding: 9px 20px; border-radius: 999px;
    border: 1px solid var(--border-strong);
}
.upcoming-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 320px)); gap: 16px; justify-content: center; }
.upcoming-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 20px; min-height: 132px; display: flex; flex-direction: column; gap: 8px;
    transition: transform .18s ease, border-color .18s ease;
    box-shadow: var(--shadow-sm);
}
.upcoming-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.upcoming-card-top { display: flex; align-items: flex-start; gap: 14px; }
.upcoming-card-top img { width: 52px; height: 52px; border-radius: var(--radius-sm); object-fit: cover; background: var(--surface-2); flex-shrink: 0; }
.upcoming-card-info { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.upcoming-card-title { font-weight: 800; font-size: 1.02rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upcoming-card-sub { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .84rem; }
.upcoming-card-badge { display: inline-flex; flex-shrink: 0; background: var(--surface-2); color: var(--ink); font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 9px; border-radius: 999px; }
.upcoming-card-time { margin-top: auto; align-self: flex-end; font-weight: 800; font-size: 1.5rem; color: var(--accent-2); font-family: var(--font-display); letter-spacing: -0.01em; }
.upcoming-foot { display: flex; justify-content: center; margin-top: 26px; }

/* Homepage — "TopiaFM Hit Week": the winning song from the last closed
   Rewind round, paired next to the current vote — a listener pick, not a
   chart position, so it gets its own spotlight card rather than reusing
   .top20-card. */
.hitweek-card { display: flex; gap: 18px; align-items: center; box-sizing: border-box; }
.hitweek-card img { width: 92px; height: 92px; border-radius: var(--radius); object-fit: cover; background: var(--surface-2); flex-shrink: 0; box-shadow: var(--shadow-sm); }
.hitweek-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hitweek-badge { display: inline-flex; align-self: flex-start; background: var(--surface-2); color: var(--accent-2); font-weight: 800; font-size: .64rem; text-transform: uppercase; letter-spacing: .05em; padding: 4px 11px; border-radius: 999px; margin-bottom: 2px; }
.hitweek-title { font-weight: 800; font-size: 1.15rem; }
.hitweek-artist { color: var(--muted); }
.hitweek-card .song-actions { margin-top: 8px; }

/* Homepage — Rewind + Hit van de Week als één samenhangende kaart i.p.v.
   twee losse kolommen die qua hoogte tegen elkaar op moesten wegen (die
   hadden fundamenteel verschillende inhoud — een stemlijst met aftel-regel
   vs. een enkele songkaart — waardoor ze nooit pixel-perfect gelijk liepen).
   Eén kader eromheen lost dat in één keer op: de kortste kant laat gewoon
   witruimte binnen dezelfde kaart zien, wat vanzelf overtuigend oogt. */
.rewind-hitweek-card {
    display: grid; grid-template-columns: 1fr 1px 1fr; gap: 32px; align-items: start;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 28px; box-shadow: var(--shadow-sm); box-sizing: border-box;
}
.rewind-hitweek-col { min-width: 0; }
.rewind-hitweek-divider { align-self: stretch; background: var(--border); }
@media (max-width: 900px) {
    .rewind-hitweek-card { grid-template-columns: 1fr; padding: 22px; gap: 24px; }
    .rewind-hitweek-divider { display: none; }
}

/* Homepage — twee gelijkwaardige kolommen naast elkaar (Nieuws + Jouw
   account), gewoon full-width gestapeld op mobiel. */
.homepage-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.homepage-duo-col { min-width: 0; display: flex; flex-direction: column; }
.homepage-duo-content { flex: 1; display: flex; }
.homepage-duo-content > * { flex: 1; }
@media (max-width: 900px) { .homepage-duo { grid-template-columns: 1fr; } }

/* Fully custom-styled dropdown (assets/js/custom-select.js) — the trigger AND
   the options panel are our own markup, so nothing falls back to the
   browser/OS's native <select> popup styling. */
.custom-select { position: relative; }
.custom-select-trigger {
    display: inline-flex; align-items: center; gap: 8px;
    padding: .6em 1.1em; border-radius: 999px; border: 1px solid var(--border-strong);
    background: var(--surface-2); color: var(--ink); font-weight: 700; font-size: .82rem;
    font-family: var(--font); cursor: pointer;
}
.custom-select-trigger:hover { border-color: var(--accent); }
.custom-select-trigger svg { flex-shrink: 0; opacity: .8; }
.custom-select-panel {
    position: absolute; top: calc(100% + 8px); left: 0; z-index: 10;
    min-width: 100%; max-height: 280px; overflow-y: auto;
    background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 6px;
}
.custom-select-option {
    display: block; width: 100%; text-align: left; white-space: nowrap;
    padding: 8px 12px; border-radius: var(--radius-sm); border: none; background: none;
    color: var(--ink); font-family: var(--font); font-size: .84rem; cursor: pointer;
}
.custom-select-option:hover { background: var(--surface); }
.custom-select-option.is-selected { color: var(--accent); font-weight: 600; }

/* Fully custom date picker (assets/js/custom-datepicker.js) — same idea as
   custom-select above, but a calendar panel instead of a flat option list. */
.date-picker { position: relative; }
.date-picker-input-wrap { position: relative; margin-top: 6px; }
.date-picker-input {
    width: 100%; margin-top: 0; padding: .75em 2.4em .75em .9em;
    border-radius: var(--radius-sm); border: 1px solid var(--border);
    background: var(--surface); color: var(--ink); font-weight: 400; font-size: .95rem;
    font-family: var(--font);
}
.date-picker-input.is-invalid { border-color: var(--error); }
.date-picker-icon-btn {
    position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
    display: flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; padding: 0; border: none; border-radius: var(--radius-sm);
    background: none; color: var(--muted); cursor: pointer;
}
.date-picker-icon-btn:hover { color: var(--accent); background: var(--surface-2); }
.date-picker-panel {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 20;
    width: 280px; max-width: calc(100vw - 40px);
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); padding: 14px;
}
.date-picker-header { display: flex; gap: 8px; margin-bottom: 10px; }
.date-picker-header select {
    flex: 1; margin-top: 0; padding: .4em .5em; font-size: .82rem;
    border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); color: var(--ink);
}
.date-picker-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; margin-bottom: 4px; }
.date-picker-weekdays span { font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.date-picker-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.date-picker-day {
    aspect-ratio: 1/1; border: none; border-radius: var(--radius-sm); background: none;
    color: var(--ink); font-family: var(--font); font-size: .84rem; cursor: pointer;
}
.date-picker-day:hover:not(:disabled) { background: var(--surface-2); }
.date-picker-day.is-outside { color: var(--muted); opacity: .6; }
.date-picker-day.is-today { box-shadow: inset 0 0 0 1px var(--accent); }
.date-picker-day.is-selected { background: var(--accent); color: #fff; font-weight: 700; }
.date-picker-day.is-disabled { color: var(--muted); opacity: .35; cursor: not-allowed; }
.date-picker-footer { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.date-picker-footer button { background: none; border: none; color: var(--accent); font-family: var(--font); font-size: .82rem; font-weight: 600; cursor: pointer; padding: 4px; }
.date-picker-footer button:hover { text-decoration: underline; }


/* Highlights strip — numbered, not icon+card (keeps it editorial rather than generic feature-grid) */
.highlights-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--border); }
.highlight { padding: 24px 22px 24px 0; border-right: 1px solid var(--border); }
.highlight:not(:first-child) { padding-left: 22px; }
.highlight:last-child { border-right: none; }
.highlight-number { display: block; font-size: .78rem; font-weight: 600; color: var(--accent); margin-bottom: 10px; letter-spacing: .04em; }

/* Nieuws — the one place cards (not list rows) still make sense: editorial
   content wants to lead with an image. Deliberately its own component (not
   the generic .card) so it can carry its own glassy, gradient-edge look. */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 360px)); gap: 20px; }
/* Homepage's "Laatste berichten" column is half-width (next to
   "Luisterstreak"), too narrow for the auto-fit minimum above to reliably
   keep 2 per row — force exactly 2 columns there instead. */
.homepage-duo-col .news-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 700px) { .homepage-duo-col .news-grid { grid-template-columns: 1fr; } }

/* Homepage "Jouw account" — profielfoto, naam, luisterstreak (zie
   get_listening_streak() in app/listening.php) en de open verzoeklijnen
   (hergebruikt account-sections/_requests-actions.php, dezelfde 10s
   live-refresh als op de Verzoekjes-pagina zelf). Vervangt de eerder hier
   getoonde "Wat je net hoorde"-lijst, die nu al in de speler zelf zit (zie
   .player-history). */
.account-mini-panel { margin-top: 18px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.account-mini-top { display: flex; align-items: center; gap: 14px; }
.account-mini-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--surface-2); }
.account-mini-avatar-fallback { display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; color: var(--ink); }
.account-mini-name { font-weight: 700; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-mini-stats { display: flex; gap: 24px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.account-mini-stat { display: flex; flex-direction: column; gap: 2px; }
.account-mini-stat-value { font-size: 1.3rem; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.account-mini-stat-label { font-size: .72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.account-mini-requests { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.account-mini-requests .requests-actions { margin-bottom: 0; }
.account-mini-cta { display: block; text-align: center; margin-top: 18px; }
.account-mini-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
/* Voorbeeldweergave voor uitgelogde bezoekers — dezelfde kaart met
   verzonnen data, gedimd en niet-klikbaar, zodat meteen duidelijk is wat je
   krijgt na inloggen i.p.v. alleen een lege tekstregel. Topi zelf blijft wel
   op volle kleur/scherpte praten — alleen de voorbeeldcijfers zijn gedimd. */
.account-mini-example { opacity: .5; filter: grayscale(.4); pointer-events: none; user-select: none; }
.account-mini-example .requests-actions { margin-bottom: 0; }
.account-mini-topi-note { margin-top: 16px; }
.account-mini-topi-note img { width: 32px; height: 32px; }
.news-card {
    display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; text-decoration: none; color: inherit;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); text-decoration: none; }
.news-card-media { aspect-ratio: 16/10; position: relative; overflow: hidden; }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.news-card:hover .news-card-media img { transform: scale(1.04); }
.news-card-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.news-card-title { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.news-card-meta { color: var(--muted); font-size: .8rem; }

/* Card grids */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 260px)); gap: 18px; }
.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}
.card-media { aspect-ratio: 16/10; background: var(--surface-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-tag { display: inline-flex; align-self: flex-start; align-items: center; padding: 3px 10px; border-radius: 999px; background: rgba(107, 82, 150, .12); color: var(--accent); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; flex-shrink: 0; }
.chart-row .card-tag { margin-left: auto; }
.card-title { font-weight: 600; font-size: 1.05rem; color: var(--ink); letter-spacing: -0.01em; }
.card-title a { color: inherit; text-decoration: none; }
.card-excerpt { color: var(--muted); font-size: .88rem; margin: 0; }
.card-meta { color: var(--muted); font-size: .76rem; margin-top: auto; }
.card { transition: transform .15s ease, box-shadow .15s ease; }
.card-grid a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* DJ cards — a padded round avatar sitting inside the card (not full-bleed),
   with name and role as plain text underneath, inside the same card — not a
   separate floating pill/badge stuck onto its edge. */
.dept-pill { display: inline-flex; background: var(--surface); border: 1px solid var(--border-strong); color: var(--ink); font-weight: 800; font-size: 1.02rem; padding: 8px 20px; border-radius: 999px; margin: 0 0 22px; letter-spacing: -0.01em; }
.dj-card { text-align: center; padding: 26px 16px 22px; }
.dj-card .card-media { aspect-ratio: 1/1; width: 104px; height: 104px; margin: 0 auto; border-radius: 50%; background: var(--surface-2); }
.dj-card .card-media img { border-radius: 50%; }
.dj-card .card-body { padding: 0; margin-top: 14px; align-items: center; gap: 3px; }
.dj-card .card-title { display: block; font-weight: 800; font-size: 1rem; color: var(--ink); }
.dj-card .dj-role { color: var(--muted); font-size: .8rem; }

.fav-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
    border-radius: 999px; padding: 6px 14px; font-size: .78rem; cursor: pointer; font-weight: 500;
}
.fav-btn.is-fav { color: var(--error); border-color: var(--error); }
.fav-btn.is-in-top30 { color: var(--accent); border-color: var(--accent); }
.fav-btn-icon { padding: 0; width: 32px; height: 32px; justify-content: center; flex-shrink: 0; font-size: 1.05rem; line-height: 1; }

/* Upcoming shows strip */
.shows-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.show-chip { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; text-align: center; box-shadow: var(--shadow-sm); }
.show-chip img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; background: var(--surface-2); }
.show-time { color: var(--accent); font-weight: 600; font-size: .78rem; margin-top: 4px; }

/* Top 20 */
/* Spotify/Linear-style list rows — the site's default way to show a
   collection now, replacing the old card-grid-everywhere pattern. One
   bordered container, hairline dividers between rows, a hover highlight per
   row instead of per-item card chrome. */
.chart-list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.chart-row { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--border); transition: background .12s ease; }
.chart-row:last-child { border-bottom: none; }
.chart-row:hover { background: var(--surface-2); }
a.chart-row, .chart-row.is-link { text-decoration: none; color: inherit; cursor: pointer; }
.chart-rank { width: 32px; font-weight: 700; font-size: 1.2rem; color: var(--muted); text-align: center; flex-shrink: 0; }
.chart-rank.rank-up { color: var(--success); }
.chart-rank.rank-down { color: var(--error); }
.chart-art { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--surface-2); flex-shrink: 0; }
.chart-art.is-round { border-radius: 999px; }
.chart-icon {
    width: 44px; height: 44px; border-radius: 8px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface-2); color: var(--accent-2);
}
.chart-meta { flex: 1; min-width: 0; }
.chart-song-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.chart-song-artist { color: var(--muted); font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.chart-weeks { font-size: .72rem; color: var(--muted); width: 74px; text-align: right; flex-shrink: 0; }
.chart-change { font-size: .78rem; color: var(--muted); width: 56px; text-align: right; font-weight: 600; }
.chart-trailing { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: auto; }

/* Top 20 — chart-position card grid, rank badge overlapping the artwork
   corner (deliberately a grid here, not a .chart-list row: this is the one
   place on the site where "which song, right now" wants to feel like a
   cover-wall you browse, not a data table you scan). */
.top20-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 240px)); gap: 18px; }
.top20-card { display: flex; flex-direction: column; }
.top20-card-art { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1/1; background: var(--surface-2); box-shadow: var(--shadow-sm); }
.top20-card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.top20-card:hover .top20-card-art img { transform: scale(1.04); }
.top20-rank {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    min-width: 34px; height: 34px; padding: 0 9px; border-radius: 999px;
    background: rgba(13, 21, 38, .68); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .18);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .84rem; color: #fff;
}
.top20-rank.rank-up { color: var(--success); }
.top20-rank.rank-down { color: var(--error); }
.top20-card-body { padding-top: 12px; display: flex; flex-direction: column; gap: 3px; }
.top20-card-title { font-weight: 700; font-size: .96rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top20-card-artist { color: var(--muted); font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top20-card-tags { display: flex; gap: 6px; margin-top: 6px; }

.badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.badge-new, .badge-up, .badge.rank-up { background: rgba(52, 211, 153, .12); color: var(--success); border-color: rgba(52, 211, 153, .3); }
.badge-down, .badge.rank-down { background: rgba(248, 113, 113, .12); color: var(--error); border-color: rgba(248, 113, 113, .3); }

/* Vacatures — cards instead of a plain list row, so an open role reads as
   an invitation rather than a table entry. */
.vacancy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); gap: 16px; }
.vacancy-card {
    position: relative; display: block; overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 22px; min-height: 170px; display: flex; flex-direction: column; gap: 12px;
    transition: transform .18s ease, border-color .18s ease;
}
.vacancy-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.vacancy-card-icon {
    position: absolute; top: 18px; right: 18px;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--surface-2); color: var(--accent-2);
    display: flex; align-items: center; justify-content: center;
}
.vacancy-card-title { font-size: 1.12rem; font-weight: 800; max-width: 78%; line-height: 1.25; }
.vacancy-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.vacancy-card-cta { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 6px; color: var(--accent-2); font-size: .82rem; font-weight: 700; }
.vacancy-card:hover .vacancy-card-cta { text-decoration: underline; }

/* FAQ accordion (vacatures, and anywhere else a details-list fits) */
.faq-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.faq-item { background: var(--surface); padding: 16px 20px; }
.faq-item summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--muted); font-size: 1.2rem; font-weight: 400; flex-shrink: 0; transition: transform .15s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 10px 0 0; color: var(--muted); }

/* Sollicitatie-statussen (Mijn sollicitaties + staff) */
.status-afwachting { background: var(--surface-2); color: var(--muted); }
.status-bekeken, .status-in_procedure { background: rgba(107, 82, 150, .12); color: var(--accent); border-color: rgba(107, 82, 150, .3); }
.status-afgewezen { background: rgba(248, 113, 113, .12); color: var(--error); border-color: rgba(248, 113, 113, .3); }
.status-aangenomen { background: rgba(52, 211, 153, .12); color: var(--success); border-color: rgba(52, 211, 153, .3); }

/* Arrow-based pager (recent-gespeeld, and any future paginated list) */
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 36px; }

/* Recent-gespeeld search box */
.history-search { display: flex; gap: 10px; margin-bottom: 24px; max-width: 460px; }
.history-search input { margin-top: 0; }
.history-search .btn { flex-shrink: 0; }

/* /recent-gespeeld — poster cards: full-bleed cover art with title/artist
   overlaid on a bottom gradient scrim, same composition as .news-card's
   banner treatment. */
.history-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 1100px) { .history-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px) { .history-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .history-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .history-grid { grid-template-columns: 1fr; } }
.history-poster-card { position: relative; aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.history-poster-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; display: block; }
.history-poster-card:hover img { transform: scale(1.04); }
.history-poster-card::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, rgba(13, 21, 38, .92), rgba(13, 21, 38, .1) 55%, transparent);
}
.history-poster-info { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.history-poster-title { font-weight: 700; font-size: .95rem; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 2px 6px rgba(0, 0, 0, .55); }
.history-poster-artist { color: rgba(255, 255, 255, .85); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 2px 6px rgba(0, 0, 0, .55); }
.history-poster-time { color: rgba(255, 255, 255, .65); font-size: .7rem; margin-top: 2px; text-shadow: 0 2px 6px rgba(0, 0, 0, .55); }

/* Favorite/remove heart overlaid top-right on any .card (history, chart,
   favorite DJ cards on the account favorites tab) */
.history-fav { position: absolute; top: 10px; right: 10px; z-index: 2; }

/* Groups a heart with its "open in Spotify" link — stacked in a card's
   corner, or inline at the end of a list row. */
.song-actions { display: flex; align-items: center; gap: 6px; }
.song-actions .history-fav { position: static; margin-left: 0; }
.song-actions.song-actions-overlay { position: absolute; top: 10px; right: 10px; z-index: 2; flex-direction: column; }
.spotify-link {
    width: 32px; height: 32px; flex-shrink: 0; border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
}
.spotify-link:hover { color: #1db954; border-color: #1db954; }

/* Favoriete nummers/DJ's — remove-heart affordances + a "x/30" counter */
.fav-count { color: var(--muted); font-size: .8rem; font-weight: 500; margin-left: 8px; }
.chart-row .song-actions { margin-left: auto; }

/* Repeat the beat / voting — nu wél een kader om de kolom (zie
   .homepage-duo-content), zodat dit visueel dezelfde "kaart"-hoogte deelt
   met de Hit van de Week-kaart ernaast i.p.v. los in de lucht te hangen. */
.vote-panel {
    width: 100%; box-sizing: border-box;
    display: flex; flex-direction: column;
}
.vote-countdown { font-weight: 700; font-size: 1.3rem; color: var(--accent); }
.vote-panel > p { margin: 0 0 8px; }
.vote-candidates { margin-top: 0; }
.vote-candidate .chart-art { border-radius: var(--radius-sm); }
.vote-bar-track { height: 6px; width: 160px; max-width: 40vw; background: var(--border); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.vote-bar-fill { height: 100%; background: var(--success-grad); }
.vote-count { font-size: .78rem; color: var(--muted); white-space: nowrap; }

/* Member CTA */
.cta-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: center;
    box-shadow: var(--shadow);
}
.cta-panel ul { margin: 0 0 20px; padding: 0; list-style: none; color: var(--ink); }
.cta-panel li { margin-bottom: 10px; padding-left: 1.5em; position: relative; }
.cta-panel li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.cta-panel a { text-decoration: none; }
.cta-panel a:hover { color: var(--accent); }

/* Forms */
form label { display: block; margin-bottom: 14px; font-weight: 600; font-size: .84rem; color: var(--muted); }
input, textarea, select {
    width: 100%;
    margin-top: 6px;
    padding: .75em .9em;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font);
    /* Nooit onder 16px — iOS Safari zoomt de hele pagina automatisch in
       zodra je een veld met een kleiner lettertype aantikt, en die zoom
       blijft (bij een pjax-navigatie, dus geen echte paginaherlading) ook
       op de volgende pagina hangen. */
    font-size: 1rem;
    font-weight: 400;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(107, 82, 150, .15); }

/* Range inputs (volume slider): the generic input padding/border above eats
   into the thumb's travel distance, so it can never quite reach either end —
   reset those back to nothing here. */
input[type="range"] {
    width: auto;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}
input[type="range"]:focus { box-shadow: none; }
.hint { color: var(--muted); font-size: .8rem; margin-top: -8px; }
.form-narrow { max-width: 440px; margin: 40px auto; }

/* Tables (legacy, staff now uses its own stylesheet) */
table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: .88rem; }
th { color: var(--muted); text-transform: uppercase; font-size: .7rem; letter-spacing: .05em; }
tr:last-child td { border-bottom: none; }

/* Account dashboard — an open split-layout-style pair (slim nav card +
   content), not one big boxed panel — matches how every other multi-column
   page on the site (vacatures, top20, news, ...) already reads. */
.account-shell { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
/* min-width:0 overrules a grid item's default min-width:auto — anders groeit
   deze kolom mee met de min-content-breedte van de mobiele tabbalk erin (7
   niet-afbrekende tabs op een rij) i.p.v. zich aan de 1fr-kolombreedte te
   houden, en trekt dat de hele pagina breder dan de viewport op mobiel. */
.account-shell-nav { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
/* Op desktop onzichtbaar voor de layout (.account-menu-toggle/.account-sidebar
   gedragen zich als losse flex-items van .account-shell-nav, zoals voorheen);
   wordt pas de positioneer-context voor het uitklappaneel op mobiel, zodat
   dat paneel relatief aan de knop hangt i.p.v. aan de hele kolom (die ook nog
   het zoekwidget eronder kan bevatten). */
.account-menu-wrap { display: contents; }
.account-sidebar {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 14px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 2px;
}
.account-sidebar a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--muted); font-weight: 500; font-size: .82rem; text-decoration: none; }
.account-sidebar a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.account-sidebar a.active { color: var(--ink); background: var(--surface-2); font-weight: 700; }
.account-content { min-width: 0; }
.account-sidebar-role { padding: 6px 14px 12px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }

/* Mobiel: i.p.v. een horizontaal scrollende tabbalk (verwarrend en gevoelig
   voor breedte-overflow) toont dit de huidige sectie als knop, die het
   sectiemenu (.account-sidebar) als uitklappaneel eronder opent. Verborgen
   op desktop — daar blijft .account-sidebar gewoon de vaste kolom. */
.account-menu-toggle {
    display: none;
    width: 100%; align-items: center; justify-content: space-between;
    padding: 13px 16px; margin: 0;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    color: var(--ink); font-weight: 700; font-size: .9rem; text-align: left;
    cursor: pointer;
}
.account-menu-toggle svg { flex-shrink: 0; transition: transform .15s ease; }
.account-menu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Account dashboard — its own gradient (deeper, 3-stop) rather than a copy of
   any reference site's palette, but still built from our existing tokens. */
/* The account area's welcome banner is now just the shared .hero with an
   extra flex row (.account-hero-inner) for the text + stats side by side —
   no separate gradient/background of its own anymore. */
.hero .wrap.account-hero-inner { max-width: 1080px; text-align: left; }
.account-hero-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.account-hero-inner p { margin: 0; }
.account-hero-stats { display: flex; flex-wrap: wrap; gap: 20px 28px; position: relative; z-index: 1; }
.account-stat { display: flex; flex-direction: column; gap: 4px; }
.account-stat-value { font-size: 1.7rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.account-stat-label { font-size: .74rem; color: rgba(255, 255, 255, .78); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

.account-panel-full { margin-top: 18px; }
.account-dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.account-panel-empty { font-size: .86rem; margin: 0; }

.account-tabs { display: flex; gap: 4px; margin-bottom: 22px; border-bottom: 1px solid var(--border); }
.account-tabs a { padding: 10px 4px; margin-right: 20px; color: var(--muted); font-weight: 600; font-size: .88rem; text-decoration: none; border-bottom: 2px solid transparent; }
.account-tabs a:hover { color: var(--ink); text-decoration: none; }
.account-tabs a.active { color: var(--accent); border-bottom-color: var(--accent); }

.account-overview-user { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.account-avatar { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--surface-2); color: var(--ink); font-weight: 800; font-size: 1.3rem; flex-shrink: 0; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--border-strong); }
.account-overview-info { min-width: 0; flex: 1; }
.account-overview-name { font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }
.account-overview-email { color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
.account-staff-badge { display: inline-block; background: rgba(107, 82, 150, .12); color: var(--accent); border: 1px solid rgba(107, 82, 150, .3); border-radius: 999px; padding: 4px 12px; font-size: .74rem; font-weight: 700; margin-bottom: 10px; }
.account-panel .btn { margin-bottom: 16px; }
.account-quick-links { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--border); padding-top: 14px; }
.account-quick-links a { font-size: .84rem; font-weight: 600; }

.account-empty-state { text-align: center; padding: 20px 20px 8px; }
.account-empty-illustration { max-width: 220px; margin: 0 auto 16px; }
.account-empty-state p { max-width: 40ch; margin-left: auto; margin-right: auto; }

.account-settings-block { margin-bottom: 18px; max-width: 420px; }
.account-settings-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.account-settings-row .account-settings-block { max-width: none; }
.account-settings-danger { border-color: rgba(248, 113, 113, .3); }
.account-settings-danger h3 { color: var(--error); }
.account-settings-avatar-preview { margin-bottom: 16px; }
.account-settings-avatar-preview .account-avatar { width: 64px; height: 64px; font-size: 1.4rem; }
.account-avatar-img { object-fit: cover; }

/* Login / register — full pages, not a bare centered form */
.auth-shell {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 44px;
    box-shadow: var(--shadow);
}
.auth-form-col h1 { margin-top: .3em; }
.auth-form-col form { margin-top: 22px; }
.auth-form-col .btn { width: 100%; justify-content: center; margin-top: 4px; }
.auth-switch { margin: 16px 0 0; font-size: .88rem; }
.auth-art-col { text-align: center; }
.auth-illustration { max-width: 280px; margin: 0 auto 20px; }
.auth-benefits { list-style: none; margin: 0; padding: 0; text-align: left; color: var(--ink); }
.auth-benefits li { margin-bottom: 10px; padding-left: 1.5em; position: relative; font-size: .9rem; }
.auth-benefits li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }

/* Chat */
.chat-window { display: flex; flex-direction: column; height: 60vh; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 80%; }
.chat-msg-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chat-msg-author { font-weight: 600; font-size: .78rem; color: var(--muted); }
.chat-msg-author.role-staff { color: var(--accent); }
.chat-msg-report { background: none; border: none; color: var(--muted); cursor: pointer; font-size: .8rem; padding: 2px 4px; opacity: .55; line-height: 1; }
.chat-msg-report:hover { opacity: 1; color: var(--error); }
.chat-msg-report:disabled { opacity: .4; cursor: default; color: var(--muted); }
.chat-msg-body { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 12px; font-size: .9rem; }
.chat-form { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--border); }
.chat-form input { margin: 0; }
.chat-record-btn { flex-shrink: 0; }
.chat-record-btn.is-recording { background: var(--error); color: #fff; border-color: var(--error); animation: pulse 1s infinite; }
.chat-msg audio { width: 220px; max-width: 100%; height: 34px; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

/* Player — full-width docked bar (not a floating pill), status row with a live
   pulse dot instead of a badge, icon-first controls. */
.player-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: rgba(var(--glass-tint), .82);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid var(--border);
    z-index: 50;
}
.player-bar-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 11px 20px;
    padding-bottom: calc(11px + env(safe-area-inset-bottom));
}
.player-toggle {
    width: 38px; height: 38px; border-radius: var(--radius-sm);
    background: var(--accent-grad); color: #fff;
    border: none; cursor: pointer; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(107, 82, 150, .35);
}
.player-toggle:disabled { cursor: default; opacity: .85; }
/* Draait terwijl audio.play() nog bezig is met (her)verbinden/bufferen — een
   live stream doet dat altijd vers (zie player.js), wat op mobiel merkbaar
   even kan duren; zonder dit bleef de knop tot dan gewoon het oude
   play-icoon tonen, wat aanvoelde als een onverklaarde vertraging/hapering. */
.icon-loading { animation: player-spin .7s linear infinite; }
@keyframes player-spin { to { transform: rotate(360deg); } }
.player-divider { width: 1px; align-self: stretch; margin: 4px 0; background: var(--border); flex-shrink: 0; }
.player-art { width: 38px; height: 38px; flex-shrink: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.player-art img { width: 100%; height: 100%; object-fit: cover; }
.player-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 1px; }
.player-status { display: flex; align-items: center; gap: 6px; min-width: 0; }
.player-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.player-status.is-live .player-status-dot { background: var(--success); box-shadow: 0 0 0 3px rgba(52, 211, 153, .22); animation: live-pulse 1.8s ease-in-out infinite; }
.player-status-label { font-size: .64rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-status.is-live .player-status-label { color: var(--success); }
.player-title { font-weight: 600; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-artist { color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-volume { display: flex; align-items: center; gap: 8px; color: var(--muted); flex-shrink: 0; }
.player-volume input { width: 80px; margin: 0; accent-color: var(--accent); }
.player-mute-toggle { display: flex; align-items: center; justify-content: center; background: none; border: none; padding: 0; color: inherit; cursor: pointer; }
.player-mute-toggle.is-muted { color: var(--error); }
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Custom audio-speler (bv. spraakberichten in de chat) — zelfde knopstijl
   als .player-toggle hierboven, vervangt het kale native <audio controls>.
   De echte <audio> blijft verborgen aanwezig als afspeel-engine, zie
   assets/js/custom-audio-player.js (gedeeld met het staff-paneel). */
.audio-player { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; }
.audio-player audio { display: none; }
.audio-player-toggle {
    flex-shrink: 0; width: 38px; height: 38px; border-radius: var(--radius-sm);
    background: var(--accent-grad); color: #fff;
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(107, 82, 150, .35);
}
.audio-player-toggle:hover { filter: brightness(1.08); }
.audio-player-toggle:disabled { cursor: default; opacity: .85; }
.audio-player-toggle .icon-loading { animation: audio-player-spin .7s linear infinite; }
@keyframes audio-player-spin { to { transform: rotate(360deg); } }
.audio-player-track { position: relative; flex: 1; height: 6px; background: var(--border); border-radius: 999px; cursor: pointer; }
.audio-player-progress { position: absolute; top: 0; left: 0; height: 100%; background: var(--accent); border-radius: 999px; width: 0%; pointer-events: none; }
.audio-player-handle { position: absolute; top: 50%; left: 0%; width: 14px; height: 14px; background: var(--accent); border: 2px solid var(--surface-2); border-radius: 50%; transform: translate(-50%, -50%); cursor: grab; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.audio-player-handle:active { cursor: grabbing; }
.audio-player-time { flex-shrink: 0; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.audio-player-mute { flex-shrink: 0; background: none; border: none; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; }
.audio-player-mute:hover { color: var(--ink); }

/* Recent afgespeeld — komt rechtstreeks uit AzuraCast's eigen now-playing
   buffer (zie $np['history'] / player.js), dus altijd actueel, ook als
   station_play_history nog moet wachten op de eerstvolgende cron.php-run. */
.player-history { position: relative; flex-shrink: 0; }
.player-history-toggle {
    width: 34px; height: 34px; border-radius: var(--radius-sm);
    background: transparent; border: 1px solid transparent; color: var(--muted);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .15s ease, color .15s ease;
}
.player-history-toggle:hover, .player-history-toggle[aria-expanded="true"] { background: var(--surface-2); color: var(--ink); }
.player-history-panel {
    position: absolute; right: 0; bottom: calc(100% + 12px);
    width: 300px; max-width: calc(100vw - 40px);
    background: rgba(var(--glass-tint), .96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-strong); border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
    z-index: 60;
}
.player-history-panel[hidden] { display: none; }
.player-history-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .84rem; margin: 0 0 10px; color: var(--ink); }
.player-history-list { display: flex; flex-direction: column; gap: 10px; list-style: none; margin: 0; padding: 0; max-height: 280px; overflow-y: auto; }
.player-history-list li { display: flex; align-items: center; gap: 10px; }
.player-history-list img { width: 36px; height: 36px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; background: var(--surface-2); }
.player-history-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 1px; }
.player-history-title { font-size: .82rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-history-artist { font-size: .74rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-history-time { font-size: .74rem; color: var(--muted); flex-shrink: 0; }
.player-history-empty { font-size: .82rem; color: var(--muted); margin: 0; }
.player-history-more { display: block; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); text-align: center; font-size: .8rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.player-history-more:hover { text-decoration: underline; }

/* Slaaptimer — zelfde popover-opzet als .player-history hierboven. */
.player-sleep { position: relative; flex-shrink: 0; }
.player-sleep-toggle {
    width: 34px; height: 34px; border-radius: var(--radius-sm);
    background: transparent; border: 1px solid transparent; color: var(--muted);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .15s ease, color .15s ease;
}
.player-sleep-toggle:hover, .player-sleep-toggle[aria-expanded="true"] { background: var(--surface-2); color: var(--ink); }
.player-sleep-toggle.is-active { color: var(--accent); }
.player-sleep-panel {
    position: absolute; right: 0; bottom: calc(100% + 12px);
    width: 220px; max-width: calc(100vw - 40px);
    background: rgba(var(--glass-tint), .96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-strong); border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
    z-index: 60;
}
.player-sleep-panel[hidden] { display: none; }
.player-sleep-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.player-sleep-option {
    padding: 8px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2);
    color: var(--ink); font-size: .84rem; font-weight: 600; cursor: pointer; text-align: center;
}
.player-sleep-option:hover { border-color: var(--border-strong); }
.player-sleep-option.is-selected { border-color: var(--accent); color: var(--accent); }
.player-sleep-cancel {
    display: block; width: 100%; margin-top: 10px; padding: 8px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: transparent; color: var(--muted); font-size: .82rem; cursor: pointer;
}
.player-sleep-cancel:hover { color: var(--ink); border-color: var(--border-strong); }
.player-sleep-status { margin: 10px 0 0; font-size: .8rem; color: var(--muted); text-align: center; }

.player-quality { position: relative; flex-shrink: 0; }
.player-quality-toggle {
    width: 34px; height: 34px; border-radius: var(--radius-sm);
    background: transparent; border: 1px solid transparent; color: var(--muted);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .15s ease, color .15s ease;
}
.player-quality-toggle:hover, .player-quality-toggle[aria-expanded="true"] { background: var(--surface-2); color: var(--ink); }
.player-quality-toggle.is-active { color: var(--accent); }
.player-quality-panel {
    position: absolute; right: 0; bottom: calc(100% + 12px);
    width: 200px; max-width: calc(100vw - 40px);
    background: rgba(var(--glass-tint), .96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-strong); border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
    z-index: 60;
}
.player-quality-panel[hidden] { display: none; }
.player-quality-options { display: flex; flex-direction: column; gap: 6px; }
.player-quality-option {
    padding: 8px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2);
    color: var(--ink); font-size: .84rem; font-weight: 600; cursor: pointer; text-align: center;
}
.player-quality-option:hover { border-color: var(--border-strong); }
.player-quality-option.is-selected { border-color: var(--accent); color: var(--accent); }
.player-quality-status { margin: 10px 0 0; font-size: .78rem; color: var(--muted); text-align: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 40px; }
/* Longhand (niet de padding-shorthand) — zelfde reden als .section: dit
   zou anders .wrap's horizontale padding overschrijven (class="wrap
   footer-grid"). */
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-top: 40px; padding-bottom: 28px; }
.footer-brand .brand { margin-bottom: 10px; }
.footer-tagline { color: var(--muted); font-size: .84rem; margin: 0 0 16px; max-width: 260px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.footer-social a:hover { color: var(--ink); border-color: var(--border-strong); background: var(--surface); }
.footer-col h4 { margin: 0 0 14px; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: .86rem; color: var(--ink); text-decoration: none; opacity: .85; }
.footer-col a:hover { color: var(--accent); opacity: 1; text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 16px; padding-bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; font-size: .78rem; color: var(--muted); }
.footer-version { font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

/* Herbruikbare Deezer-zoekcomponent (assets/js/deezer-picker.js) */
.deezer-picker { position: relative; margin-bottom: 14px; }
.deezer-picker-input { margin: 0; }
.deezer-picker-results {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5;
    max-height: 280px; overflow-y: auto;
    background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.deezer-picker-result { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; }
.deezer-picker-result:hover { background: var(--surface); }
.deezer-picker-result img { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; background: var(--surface); flex-shrink: 0; }
.deezer-picker-result-title { font-weight: 600; font-size: .88rem; }
.deezer-picker-result-artist { color: var(--muted); font-size: .78rem; }

/* Persoonlijke Top 30 builder */
.top30-search-wrap { position: relative; }
#top30-search-input { margin: 0; }
.top30-search-results {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5;
    max-height: 320px; overflow-y: auto;
    background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.top30-search-result { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; }
.top30-search-result:hover { background: var(--surface); }
.top30-search-result img { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; background: var(--surface); flex-shrink: 0; }
.top30-list-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.top30-list-head h2 { display: flex; align-items: center; gap: 4px; }
.top30-list-head p { margin: 0; }
.top30-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.top30-row {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.top30-row:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.top30-row img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--surface); flex-shrink: 0; box-shadow: var(--shadow-sm); }
.top30-rank {
    width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .8rem; color: var(--muted);
    background: var(--surface); border: 1px solid var(--border);
}
.top30-rank.rank-1 { background: rgba(232, 179, 74, .15); border-color: rgba(232, 179, 74, .4); color: var(--gold); }
.top30-rank.rank-2 { background: rgba(255, 255, 255, .1); border-color: var(--border-strong); color: var(--ink); }
.top30-rank.rank-3 { background: rgba(217, 134, 74, .15); border-color: rgba(217, 134, 74, .35); color: var(--bronze); }
.top30-meta { flex: 1; min-width: 0; }
.top30-title { font-weight: 600; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top30-artist { color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top30-controls { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.top30-move-btn, .top30-remove-btn {
    width: 28px; height: 28px; padding: 0; display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface);
    color: var(--muted); cursor: pointer; font-size: .82rem; line-height: 1; font-family: var(--font);
}
.top30-move-btn:hover:not(:disabled) { color: var(--accent); border-color: var(--accent); }
.top30-move-btn:disabled { opacity: .3; cursor: not-allowed; }
.top30-remove-btn { margin-left: 4px; font-size: 1rem; }
.top30-remove-btn:hover { color: var(--error); border-color: var(--error); }

/* Verzoekjes popups */
.requests-actions { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
dialog.app-dialog {
    width: min(420px, calc(100vw - 40px));
    padding: 26px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow);
}
dialog.app-dialog::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(2px); }
/* Zonder dit blijft de pagina áchter een open dialoog gewoon scrollbaar op
   mobiel — een scrollbeweging die niet exact binnen de popup begint (bv. per
   ongeluk net over de rand) beweegt dan de achtergrond i.p.v. de popup-
   inhoud, wat als "raar scrollgedrag" voelt. */
html:has(dialog[open]), body:has(dialog[open]) { overflow: hidden; }
dialog.app-dialog h3 { margin-top: 0; }
dialog.app-dialog form label:last-of-type { margin-bottom: 20px; }
.app-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* Wider dialog variant for longer forms (e.g. a sollicitatie) */
dialog.app-dialog-lg { width: min(560px, calc(100vw - 40px)); max-height: calc(100vh - 80px); overflow-y: auto; }

/* Team-member profile popup — avatar+bio header with a close/favorite
   corner, upcoming shows below. Opened from team.php's cards instead of
   navigating to a separate page. */
dialog.member-dialog { width: min(680px, calc(100vw - 40px)); max-height: calc(100vh - 80px); overflow-y: auto; }
.member-dialog-head { display: flex; gap: 22px; align-items: flex-start; position: relative; padding-right: 74px; }
.member-dialog-head img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; background: var(--surface-2); flex-shrink: 0; }
.member-dialog-headtext h3 { margin: 0 0 10px; color: var(--accent-2); }
.member-dialog-headtext p { margin: 0; color: var(--ink); line-height: 1.6; }
.member-dialog-actions { position: absolute; top: 0; right: 0; display: flex; align-items: center; gap: 8px; }
.member-dialog-close {
    width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border);
    background: var(--surface-2); color: var(--ink); cursor: pointer; font-size: 1rem;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.member-dialog-close:hover { border-color: var(--border-strong); }
.member-dialog h4 { margin: 28px 0 14px; }
.member-shows-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.member-dialog-profile-link { display: inline-block; margin-top: 20px; color: var(--accent-2); font-weight: 700; text-decoration: none; }
.member-dialog-profile-link:hover { text-decoration: underline; }

.cookie-notice {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
    max-width: 520px; margin: 0 auto;
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
    padding: 16px 18px; box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
}
.cookie-notice[hidden] { display: none; }
.cookie-notice p { margin: 0; flex: 1; min-width: 220px; font-size: .86rem; color: var(--ink); }
.cookie-notice a { color: var(--accent-2); text-decoration: underline; }
.member-show-card { background: var(--surface-2); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.member-show-date { color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.member-show-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.member-show-time { font-weight: 800; font-size: 1.3rem; color: var(--accent-2); font-family: var(--font-display); letter-spacing: -0.01em; }
.member-show-name { color: var(--muted); font-size: .84rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) {
    .member-dialog-head { flex-direction: column; padding-right: 0; padding-top: 44px; }
    /* Geen negatieve top meer (was voor het oude, gecentreerde popup-ontwerp) —
       in de bottom sheet duwde dit de sluitknop buiten de zichtbare rand.
       top:0 (de standaardregel hierboven) houdt 'm netjes binnen de
       gereserveerde 44px-strook bovenaan .member-dialog-head. */
    /* Bottom sheet i.p.v. een zwevend, gecentreerd venster — voelt op mobiel
       aan als een app-modaal i.p.v. een verkleinde desktop-popup. Geldt voor
       elke dialoog op de site, want ze delen allemaal deze basis-class. */
    dialog.app-dialog {
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        height: auto;
        margin: 0;
        position: fixed;
        inset: auto 0 0 0;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        border-bottom: none;
        padding-bottom: calc(26px + env(safe-area-inset-bottom));
        overflow-y: auto;
    }
}

/* Success checkmark (e.g. sollicitatie-bevestiging popup) */
.success-check {
    width: 56px; height: 56px; margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(52, 211, 153, .15);
    color: var(--success);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; font-weight: 700;
}

/* Nieuwsartikel — beeldbanner (met afbeelding) i.p.v. de gewone blauwe .hero */
.news-banner { position: relative; height: 380px; overflow: hidden; }
.news-banner img { width: 100%; height: 100%; object-fit: cover; }
.news-banner::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(13, 21, 38, .95), rgba(13, 21, 38, .25) 55%, transparent);
}
.news-banner-content { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding-bottom: 28px; }
.news-banner-content h1 { color: #fff; margin-bottom: 8px; }
.news-banner-meta { color: rgba(255, 255, 255, .82); font-size: .88rem; margin: 0; }
.article-share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.article-share-label { color: rgba(255, 255, 255, .82); font-size: .82rem; }
.article-share .btn-ghost {
    background: rgba(13, 21, 38, .4); color: #fff; border-color: rgba(255, 255, 255, .3);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.article-share .btn-ghost:hover { border-color: #fff; background: rgba(13, 21, 38, .55); }

.article-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 20px 0 32px; color: var(--ink); }

/* Generic content + sidebar split, used on any page with a main column and a
   handful of supporting info/action cards on the right (vacature-detail,
   contact, licentie, ...) — a soft, card-forward layout that reads as more
   "premium" than a single centered text column. */
.page-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; font-weight: 600; text-decoration: none; margin-bottom: 20px; }
.page-back:hover { color: var(--accent); }
.split-layout { display: grid; grid-template-columns: 1fr 320px; gap: 44px; align-items: start; }
.split-sidebar { display: flex; flex-direction: column; gap: 16px; }
/* .account-panel and .account-settings-block (the account area's own
   card-like blocks) share this exact same surface/border/radius/shadow
   chrome as .split-sidebar-card — one visual language, not three
   look-alike components — while keeping their own layout specifics
   (widths, the full-width-button rule) separate below. */
.split-sidebar-card, .account-panel, .account-settings-block {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 22px; box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.split-sidebar-card:hover, .account-panel:hover, .account-settings-block:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.split-sidebar-card h3, .account-panel h3, .account-settings-block h3 { margin: 0 0 8px; }
.split-sidebar-card p, .account-panel p, .account-settings-block p { margin: 0 0 16px; color: var(--muted); font-size: .9rem; }
.split-sidebar-card .btn { width: 100%; justify-content: center; }
.split-sidebar-card .flash { margin: 0; }
.split-sidebar-card:last-child p:last-child { margin-bottom: 0; }
.rail-now-playing .btn { margin-top: 14px; }

/* Licentie — official BUMA/STEMRA & Sena marks keep their own brand colors
   (not recolored to fit the dark theme), so they sit on a small light badge
   instead, the same way payment/partner logos usually stay legible on a
   dark page. */
.logo-badge { display: inline-flex; align-items: center; justify-content: center; background: #fff; border-radius: var(--radius); padding: 14px 20px; margin-bottom: 18px; }
.logo-badge img { display: block; height: 26px; width: auto; }
.rail-now-playing-row { display: flex; align-items: center; gap: 12px; }
.rail-now-playing-row img { width: 52px; height: 52px; border-radius: var(--radius-sm); object-fit: cover; background: var(--surface-2); flex-shrink: 0; box-shadow: var(--shadow-sm); }
.rail-now-playing-meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rail-now-playing-title { font-weight: 700; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-now-playing-artist { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Reacties */
.comments-section { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); }
.comment-list { display: flex; flex-direction: column; gap: 14px; margin: 18px 0 24px; }
.comment-item { display: flex; gap: 12px; }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--surface-2); flex-shrink: 0; }
.comment-body-wrap { flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.comment-author { font-weight: 700; font-size: .88rem; }
.comment-time { color: var(--muted); font-size: .74rem; margin-left: 8px; }
.comment-text { margin: 4px 0 0; overflow-wrap: anywhere; }

/* Misc pages */
.error-page { text-align: center; padding: 100px 20px; }
.error-page h1 { font-size: 5rem; color: var(--accent); margin: 0; }
.error-page-topi { width: 130px; margin: 24px auto 0; display: block; }
.error-page .topi-note { margin-bottom: 22px; }
.install-page { max-width: 520px; margin: 60px auto; padding-bottom: 60px; }
.install-page code { background: var(--surface-2); padding: 2px 6px; border-radius: 4px; }

@media (max-width: 900px) {
    .hero-split { grid-template-columns: 1fr; }
    .cta-panel { grid-template-columns: 1fr; }
    .split-layout { grid-template-columns: 1fr; }
    .highlights-strip { grid-template-columns: 1fr; }
    /* Top bar wordt een hamburgermenu: navigatie + inlogknoppen verdwijnen
       samen achter één uitklappaneel onder de header, i.p.v. horizontaal
       scrollen. .mobile-nav-panel is enkel een groepeer-wrapper — op desktop
       "display:contents" (onzichtbaar voor de layout, .main-nav en
       .header-actions gedragen zich alsof ze los in .site-header-inner
       staan); pas hier, op mobiel, wordt de wrapper zelf het paneel en
       stapelen .main-nav/.header-actions eronder in plaats van elk apart op
       dezelfde positie te proberen overlappen. */
    .site-header-inner { padding: 12px 16px; gap: 14px; }
    .brand-logo { height: 42px; }
    .menu-toggle { display: flex; }
    .mobile-nav-panel {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        max-height: 80vh;
        overflow-y: auto;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-sm);
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        margin: 0;
        padding: 12px;
        z-index: 39;
    }
    .mobile-nav-panel.is-open { display: flex; }
    .main-nav, .header-actions { flex-direction: column; align-items: stretch; gap: 4px; }
    .main-nav a { padding: 12px 14px; border-radius: var(--radius); }
    .header-actions { padding-top: 8px; border-top: 1px solid var(--border); margin-top: 4px; }
    .header-actions .btn { width: 100%; justify-content: center; }
    .account-shell { grid-template-columns: 1fr; gap: 16px; }
    .account-menu-wrap { display: block; position: relative; }
    .account-menu-toggle { display: flex; }
    .account-sidebar {
        display: none;
        position: absolute;
        top: calc(100% + 6px); left: 0; right: 0;
        max-height: 70vh; overflow-y: auto;
        z-index: 20;
    }
    .account-sidebar.is-open { display: flex; }
    .account-dash-grid { grid-template-columns: 1fr; }
    .account-hero-inner { flex-direction: column; align-items: flex-start; }
    .auth-shell { grid-template-columns: 1fr; padding: 28px; }
    .auth-art-col { order: -1; }
    .auth-illustration { max-width: 200px; }
    .account-settings-row { grid-template-columns: 1fr; }
    .schedule-bar { border-radius: var(--radius-lg); justify-content: flex-start; }
    .about-block, .about-block-reverse { flex-direction: column; align-items: stretch; gap: 24px; }
    .news-banner { height: 260px; }
}

@media (max-width: 560px) {
    .player-artist { display: none; }
    .player-volume { display: none; }
}
