/* ============================================================
   TOP 2000 QUIZ: "red on paper"
   Minimalistisch: papierwit (of bijna-zwart), inktzwart, één rood.
   Geen verlopen of gloed; rood is een vlak (knoppen, geselecteerde
   chips, het label van de plaat). Mobile-first; de media queries
   onderaan breiden uit voor grotere schermen.
   ============================================================ */

/* ============================================================
   DESIGN TOKENS: licht (standaard)
   ============================================================ */
:root {
    --bg: #FAF7F2;
    --surface: #FFFFFF;
    --ink: #141414;
    --muted: #6B6660;
    --line: #E4DED5;
    --stage: #EFEAE2;

    --red: #E3000F;
    --red-hover: #B8000C;
    --on-red: #FFFFFF;

    --vinyl-edge: rgba(0, 0, 0, 0.25);

    --font-display: 'Archivo Black', 'Arial Black', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --radius: 10px;
    --radius-sm: 8px;

    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2.5rem;

    color-scheme: light;
}

/* ============================================================
   DONKER: expliciet gekozen, of volgens het systeem zolang er
   (nog) geen keuze is vastgelegd
   ============================================================ */
:root[data-theme="dark"] {
    --bg: #0F0F10;
    --surface: #181819;
    --ink: #F5F2EC;
    --muted: #A09B93;
    --line: #2C2C2F;
    --stage: #222224;

    --red: #FF2A3A;
    --red-hover: #FF5562;

    --vinyl-edge: rgba(255, 255, 255, 0.2);

    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --bg: #0F0F10;
        --surface: #181819;
        --ink: #F5F2EC;
        --muted: #A09B93;
        --line: #2C2C2F;
        --stage: #222224;

        --red: #FF2A3A;
        --red-hover: #FF5562;

        --vinyl-edge: rgba(255, 255, 255, 0.2);

        color-scheme: dark;
    }
}

/* ============================================================
   RESET & BASIS
   ============================================================ */
* {
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    line-height: 1.55;
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400; /* Archivo Black is al zwaar genoeg */
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0 0 var(--space-2) 0;
}

h1 {
    font-size: 1.7rem;
}

h2 {
    font-size: 1.15rem;
}

p {
    margin: 0 0 var(--space-2) 0;
}

a {
    color: var(--red);
}

code {
    font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

.eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.5rem;
}

.lead {
    color: var(--muted);
}

.empty {
    color: var(--muted);
    margin-top: var(--space-2);
}

/* ============================================================
   DE PLAAT: zwart vinyl, rood label, wit gaatje.
   Eén ding, overal hergebruikt: logo, play-knop, foutcode.
   ============================================================ */
.disc,
.vinyl__disc {
    display: inline-block;
    border-radius: 50%;
    background:
        radial-gradient(circle, var(--red) 0 28%, transparent 29%),
        conic-gradient(from 30deg, transparent 0 20%, rgba(255, 255, 255, 0.2) 26%, transparent 32% 70%, rgba(255, 255, 255, 0.2) 76%, transparent 82%),
        repeating-radial-gradient(circle, #131313 0 2px, #1d1d1d 2px 3px);
    box-shadow: 0 0 0 1px var(--vinyl-edge);
}

.disc--sm {
    width: 22px;
    height: 22px;
    flex: none;
}

.disc--md {
    width: 72px;
    height: 72px;
    margin-bottom: var(--space-3);
}

/* In de foutcode zit de plaat in een cijfer: net zo groot als de cijfers */
.disc--code {
    width: 0.78em;
    height: 0.78em;
    vertical-align: -0.04em;
}

.spin,
.vinyl.is-playing .vinyl__disc {
    animation: spin 2.6s linear infinite;
}

.disc--code.spin {
    animation-duration: 8s;
}

.site-header__brand:hover .disc--sm {
    animation: spin 1.4s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--surface);
    border-bottom: 4px solid var(--red);
}

/* Altijd één rij over de volle breedte, met dezelfde zijpadding links en
   rechts: het merk staat links tegen die padding, alles wat bij de opties
   hoort (de links en de thema-knop) staat rechts in één groep. Mobile-first:
   deze basis is de telefoon, de media queries onderaan maken het ruimer. */
.site-header {
    --header-pad: var(--space-2);
}

.site-header__bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem var(--header-pad);
}

.site-header__brand {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--ink);
}

.site-header__name {
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.site-header__accent {
    color: var(--red);
}

/* Op een smalle telefoon alleen "TOP 2000"; "QUIZ" komt erbij zodra er ruimte is */
.site-header__quiz {
    display: none;
}

/* Rechtergroep: de links (scrollen zijwaarts als ze niet passen, bv. een admin
   op een smalle telefoon) en vast aan de rand de thema-knop. */
.site-header__right {
    flex: 0 1 auto;
    min-width: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Ronde icoonknop: de thema-wissel */
.icon-btn {
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: var(--ink);
    background: none;
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.icon-btn:hover {
    color: var(--red);
    border-color: var(--red);
}

/* Maan in licht thema (=> naar donker), zon in donker thema (=> naar licht) */
.theme-toggle__icon--sun {
    display: none;
}

:root[data-theme="dark"] .theme-toggle__icon--moon {
    display: none;
}

:root[data-theme="dark"] .theme-toggle__icon--sun {
    display: block;
}

.site-nav {
    display: flex;
    align-items: center;
    min-width: 0;
}

.site-nav::-webkit-scrollbar {
    display: none;
}

.site-nav__link {
    flex: none;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.45rem 0.4rem;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav__link:hover {
    color: var(--ink);
}

.site-nav__link.is-active {
    color: var(--ink);
    border-bottom-color: var(--red);
}

.site-nav__link--button {
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: var(--font-body);
    cursor: pointer;
}

.site-nav__logout {
    flex: none;
    margin: 0;
}

/* Menu: op smal scherm 1 knop met een uitklapmenu onder de header (het menu
   hangt aan .site-header, dat sticky = gepositioneerd is). Voor admins wordt
   "breed" pas vanaf 900px bereikt, voor gewone gebruikers vanaf 600px. */
.site-nav__toggle {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ink);
    background: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
}

.site-nav__toggle:hover,
.site-nav.is-open .site-nav__toggle {
    color: var(--red);
    border-color: var(--red);
}

.site-nav__panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 0.25rem var(--header-pad) 0.75rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.site-nav.is-open .site-nav__panel {
    display: flex;
}

.site-nav__panel .site-nav__link {
    font-size: 0.95rem;
    padding: 0.7rem 0;
    text-align: left;
}

.site-nav__panel .site-nav__link--button {
    width: 100%;
}

.site-nav__sep {
    height: 1px;
    margin: 0.5rem 0;
    background: var(--line);
}

.site-nav__label {
    padding: 0.4rem 0 0.1rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

@media (min-width: 600px) {
    .site-nav:not(.site-nav--admin) .site-nav__toggle {
        display: none;
    }
}

@media (min-width: 900px) {
    .site-nav--admin .site-nav__toggle {
        display: none;
    }
}

/* ============================================================
   PAGE / CARD
   ============================================================ */
.page {
    padding: var(--space-3) var(--space-2) calc(var(--space-4) + env(safe-area-inset-bottom));
    max-width: 640px;
    margin: 0 auto;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--space-3) 1.25rem;
}

.card--auth {
    max-width: 420px;
    margin: clamp(0.5rem, 6vh, 3.5rem) auto 0;
}

.card--narrow {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   BADGE
   ============================================================ */
.badge {
    display: inline-block;
    color: var(--muted);
    border: 1px solid var(--line);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    margin-bottom: var(--space-2);
}

.badge--led {
    color: var(--ink);
    font-weight: 600;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.badge--used {
    color: var(--muted);
}

.badge--open {
    color: var(--red);
    border-color: var(--red);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    line-height: 1.2;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn--block {
    display: block;
    width: 100%;
}

.btn--primary {
    background: var(--red);
    color: var(--on-red);
}

.btn--primary:hover {
    background: var(--red-hover);
}

.btn--primary:disabled {
    background: var(--line);
    color: var(--muted);
    cursor: not-allowed;
}

.btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.btn--ghost:hover {
    border-color: var(--ink);
}

.btn--sm {
    padding: 0.55rem 0.9rem;
    font-size: 0.88rem;
}

.link-btn {
    background: none;
    border: none;
    padding: 0.25rem 0.4rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--red);
    cursor: pointer;
}

.link-btn:hover {
    text-decoration: underline;
}

/* Antwoordknop met "Weet ik niet" als rustige tekstknop ernaast */
.answer-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.answer-actions .btn {
    flex: 1;
}

.skip-btn {
    background: none;
    border: none;
    padding: 0.5rem 0.25rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
    cursor: pointer;
}

.skip-btn:hover {
    color: var(--ink);
}

/* Schakelaar (Shuffle op de setup-pagina): rustige tekst met een klein schuifje */
.toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 var(--space-3);
    color: var(--muted);
    font-size: 0.9rem;
    cursor: pointer;
}

.toggle__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.toggle__track {
    position: relative;
    flex: none;
    width: 2.2rem;
    height: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.toggle__track::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--muted);
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.toggle__input:checked + .toggle__track {
    background: var(--red);
    border-color: var(--red);
}

.toggle__input:checked + .toggle__track::after {
    transform: translateX(15px);
    background: var(--on-red);
}

.toggle__input:focus-visible + .toggle__track {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

.toggle__input:checked ~ .toggle__text {
    color: var(--ink);
}

/* Met Shuffle aan doen de spelvorm-keuzes niet mee, dus dim ze. */
.field:has(.toggle__input:checked) .mode-grid {
    opacity: 0.4;
    pointer-events: none;
}

.answer-actions--center {
    justify-content: center;
    margin-top: var(--space-1);
}

/* "Ouder of nieuwer?": het referentienummer met jaar naast het nummer dat je raadt */
.year-duel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: var(--space-2);
    margin: var(--space-2) 0 var(--space-3);
}

.year-duel__card {
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    background: var(--surface);
}

.year-duel__card--question {
    border-left: 3px solid var(--red);
}

.duel-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

/* Ranglijst: rang, naam, score en een regel detail */
.leaderboard {
    list-style: none;
    margin: var(--space-2) 0 0;
    padding: 0;
}

.leaderboard__row {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    grid-template-areas:
        "rank name score"
        ". detail detail";
    align-items: baseline;
    column-gap: var(--space-2);
    padding: 0.7rem 0.5rem;
    border-top: 1px solid var(--line);
}

.leaderboard__row.is-me {
    background: var(--surface);
    border-left: 3px solid var(--red);
}

.leaderboard__rank {
    grid-area: rank;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.leaderboard__name {
    grid-area: name;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leaderboard__score {
    grid-area: score;
    font-family: var(--font-display);
    font-variant-numeric: tabular-nums;
}

.leaderboard__detail {
    grid-area: detail;
    color: var(--muted);
    font-size: 0.85rem;
}

/* Open meldingen van spelers bij een track in de review-lijsten van de admin */
.report-box {
    margin: var(--space-2) 0;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--line);
    border-left: 3px solid var(--red);
    background: var(--surface);
}

.report-box__list {
    list-style: none;
    margin: 0.3rem 0 0;
    padding: 0;
}

.report-box__list li {
    padding: 0.3rem 0;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.report-box__meta {
    color: var(--muted);
    font-size: 0.8rem;
}

.report-box__message {
    display: block;
    color: var(--ink);
}

.report-box__more {
    margin: 0.2rem 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

/* Persoonlijke statistieken: tegels bovenaan, daaronder rijen met een balk */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.stat-tile {
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    background: var(--surface);
}

.stat-tile__value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    line-height: 1.1;
    margin: 0;
}

.stat-tile__label {
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0.2rem 0 0;
}

.stat-list {
    list-style: none;
    margin: var(--space-2) 0 0;
    padding: 0;
}

.stat-row {
    display: grid;
    grid-template-columns: minmax(5rem, 9rem) 1fr;
    grid-template-areas:
        "label bar"
        ". value";
    column-gap: var(--space-2);
    align-items: center;
    padding: 0.55rem 0;
    border-top: 1px solid var(--line);
}

.stat-row--missed,
.stat-row--recent {
    grid-template-columns: 1fr;
    grid-template-areas:
        "label"
        "value";
}

.stat-row__label {
    grid-area: label;
}

.stat-row__bar {
    grid-area: bar;
    width: 100%;
    height: 0.7rem;
}

.stat-row__bar::-webkit-meter-bar {
    background: var(--line);
    border: none;
    border-radius: 0;
}

.stat-row__bar::-webkit-meter-optimum-value,
.stat-row__bar::-webkit-meter-suboptimum-value,
.stat-row__bar::-webkit-meter-even-less-good-value {
    background: var(--red);
}

.stat-row__bar::-moz-meter-bar {
    background: var(--red);
}

.stat-row__value {
    grid-area: value;
    color: var(--muted);
    font-size: 0.85rem;
}

.year-compare {
    margin: var(--space-2) 0;
}

.year-points {
    color: var(--red);
    font-weight: 600;
    margin: 0 0 var(--space-1);
}

.year-streak {
    color: var(--muted);
    margin: 0 0 var(--space-2);
}

/* ============================================================
   ZOEKVELD & SUGGESTIES: alleen een onderlijn
   ============================================================ */
.search {
    margin: var(--space-3) 0 var(--space-2);
}

.search-input {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--ink);
    padding: 0.7rem 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--ink);
    border-radius: 0;
    transition: border-color 0.15s ease;
}

.search-input::placeholder {
    color: var(--muted);
}

.search-input:focus {
    outline: none;
    border-bottom-color: var(--red);
}

.suggestions {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface);
}

.suggestions:empty {
    display: none;
}

.suggestions li {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
}

.suggestions li:hover {
    background: var(--stage);
}

.suggestions li:last-child {
    border-bottom: none;
}

.suggestions__title {
    font-weight: 600;
    font-size: 0.95rem;
}

.suggestions__artist {
    font-size: 0.83rem;
    color: var(--muted);
}

/* ============================================================
   VIDEO / PLAY-KNOP
   ============================================================ */
.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 auto var(--space-3) auto;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #000;
    border: 1px solid var(--line);
}

.video-wrapper iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.stage {
    margin-top: var(--space-1);
}

/* Het podium van de plaat: een effen vlak, geen verloop */
.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    background: var(--stage);
}

/* De maat volgt de HOOGTE van het podium (niet de breedte), zodat de plaat
   op een smal scherm niet bijna de hele hoogte vult. */
.vinyl {
    position: relative;
    height: 56%;
    max-height: 150px;
    width: auto;
    aspect-ratio: 1;
    padding: 0;
    border: none;
    background: none;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease;
}

.vinyl:hover:not(:disabled) {
    transform: scale(1.04);
}

.vinyl:disabled {
    cursor: default;
}

.vinyl__disc {
    position: absolute;
    inset: 0;
}

.vinyl__icon {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    line-height: 1;
    color: #fff; /* staat op het rode label */
    margin-left: 0.1em;
}

/* Equalizer: dunne rode streepjes, alleen tijdens het afspelen */
.eq {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-overlay.is-playing .eq {
    opacity: 1;
}

.eq i {
    display: block;
    width: 3px;
    height: 100%;
    border-radius: 2px;
    background: var(--red);
    transform-origin: bottom;
    transform: scaleY(0.25);
}

.video-overlay.is-playing .eq i {
    animation: eq 0.9s ease-in-out infinite;
}

.eq i:nth-child(2) { animation-delay: 0.15s; }
.eq i:nth-child(3) { animation-delay: 0.3s; }
.eq i:nth-child(4) { animation-delay: 0.45s; }
.eq i:nth-child(5) { animation-delay: 0.6s; }

@keyframes eq {
    0%, 100% { transform: scaleY(0.25); }
    50% { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
    .spin,
    .vinyl.is-playing .vinyl__disc,
    .site-header__brand:hover .disc--sm,
    .video-overlay.is-playing .eq i {
        animation: none;
    }
}

/* ============================================================
   RESULTAAT
   ============================================================ */
.verdict {
    font-family: var(--font-display);
    font-size: 2.6rem;
    line-height: 1;
    margin: 0 0 var(--space-2);
}

.verdict--correct {
    color: var(--ink);
}

/* Een rode streep onder "Goed!" in plaats van een groene tint */
.verdict--correct::after {
    content: "";
    display: block;
    width: 2.2rem;
    height: 6px;
    margin-top: 0.6rem;
    background: var(--red);
}

.verdict--wrong {
    color: var(--red);
}

.verdict--skipped {
    color: var(--muted);
}

.your-answer {
    color: var(--muted);
}

.your-answer strong {
    color: var(--ink);
}

.reveal {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 1rem 0;
    margin-bottom: var(--space-3);
}

.reveal__label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.reveal__title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.reveal__artist {
    color: var(--red);
    font-weight: 600;
    margin: 0;
}

.reveal__year {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0.15rem 0 0;
}

/* Top 2000-noteringen per editie, onder het juiste antwoord */
.listings {
    margin-bottom: var(--space-3);
}

.listing-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.listing-chip {
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
}

.listings__empty {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Songtekst-modus: vertaald fragment als vraag, origineel erbij in het antwoord */
.lyric-card {
    margin: 0 0 var(--space-3);
    padding: 1rem 1.1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--red);
    border-radius: var(--radius-sm);
}

.lyric-card__label,
.lyric-reveal__label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 0.5rem;
}

.lyric-card__text {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.1rem;
    line-height: 1.5;
    white-space: pre-line;
}

.lyric-reveal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

/* Admin: songtekstenbeheer */
.lyric-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: var(--space-2);
}

.lyric-tab {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.lyric-tab.is-active,
.lyric-tab:hover {
    color: var(--ink);
    border-color: var(--ink);
}

.lyric-tab__count {
    margin-left: 0.25rem;
    font-variant-numeric: tabular-nums;
    opacity: 0.7;
}

.lyric-search {
    display: flex;
    gap: 0.5rem;
    margin-bottom: var(--space-3);
}

.lyric-list {
    list-style: none;
    margin: 0 0 var(--space-3);
    padding: 0;
}

.lyric-row {
    padding: 0.9rem 0;
    border-top: 1px solid var(--line);
}

.lyric-row__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.lyric-row__artist {
    display: block;
    color: var(--red);
    font-size: 0.9rem;
}

.lyric-row__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.lyric-row__form {
    margin: 0;
}

.lyric-card__text--small {
    font-size: 0.9rem;
}

.lyric-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.field__textarea {
    resize: vertical;
    line-height: 1.5;
}

/* Spelersmeldingen: link onder de vraag en het meldvenster */
.report-row {
    margin-top: var(--space-3);
    text-align: center;
}

dialog.modal {
    width: min(32rem, calc(100vw - 2rem));
    padding: var(--space-3);
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

dialog.modal::backdrop {
    background: rgba(0, 0, 0, 0.55);
}

.modal__title {
    margin: 0 0 0.25rem;
}

.modal__sub {
    margin: 0 0 var(--space-2);
    font-weight: 600;
}

.modal__artist {
    font-weight: 400;
    color: var(--muted);
}

.modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: var(--space-2);
}

.report-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0.4rem;
}

.report-message {
    margin: 0 0 0.4rem;
    padding: 0.6rem 0.8rem;
    background: var(--surface);
    border-left: 3px solid var(--line);
    white-space: pre-line;
}

.report-meta {
    margin: 0 0 0.6rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.4rem;
    margin-bottom: var(--space-3);
}

/* Losse labels naast elkaar, zonder scheidingstekens ertussen */
.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: var(--space-2);
}

.badge-row .badge {
    margin: 0;
}

.review-artist {
    color: var(--muted);
}

/* ============================================================
   FORMULIER-VELDEN
   ============================================================ */
form {
    margin: 0;
}

.field {
    margin-bottom: var(--space-2);
}

.field__label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.field__hint {
    font-weight: 400;
    margin-left: 0.35rem;
}

.link-btn--danger {
    color: var(--red);
}

.btn--danger {
    background: transparent;
    color: var(--red);
    border-color: var(--red);
}

.btn--danger:hover {
    background: var(--red);
    color: var(--on-red);
}

.user-list {
    list-style: none;
    margin: var(--space-2) 0 0;
    padding: 0;
}

/* De rij mag omslaan: op een smal scherm komt de knop onder de tekst in plaats van buiten de kaart. */
.user-list__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-1) var(--space-2);
    padding: 0.75rem 0;
    border-top: 1px solid var(--line);
}

/* min-width: 0 laat de tekst krimpen; zonder dat duwt een lang e-mailadres de knop uit de kaart. */
.user-list__info {
    flex: 1 1 14rem;
    min-width: 0;
}

.user-list__name {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.user-list__meta {
    color: var(--muted);
    font-size: 0.85rem;
    overflow-wrap: anywhere;
}

.user-list__item form {
    flex: none;
}

/* Compacte actieknop, zelfde maat als .btn--sm */
.user-list__item .btn {
    padding: 0.55rem 0.9rem;
    font-size: 0.88rem;
}

.field__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-1);
    margin-bottom: 0.4rem;
}

.field__head .field__label {
    margin: 0;
}

.field__input {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    padding: 0.75rem 0.9rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field__input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 1px var(--red);
}

.field__wrap {
    position: relative;
}

.field__wrap .field__input {
    padding-right: 2.9rem;
}

.field__toggle {
    position: absolute;
    top: 50%;
    right: 0.4rem;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    color: var(--ink);
    opacity: 0.6;
    background: none;
    border: 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.field__toggle:hover,
.field__toggle:focus-visible {
    opacity: 1;
}

.field__toggle .icon-eye__slash {
    display: none;
}

.field__toggle.is-visible .icon-eye__slash {
    display: inline;
}

.field__input--led {
    font-family: var(--font-display);
    font-size: 1.2rem;
    text-align: center;
}

.form-error,
.form-success {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: var(--space-2);
}

.form-error {
    background: transparent;
    border: 1px solid var(--red);
    border-left-width: 4px;
    color: var(--red);
}

.form-success {
    background: transparent;
    border: 1px solid var(--ink);
    border-left-width: 4px;
    color: var(--ink);
}

/* ============================================================
   QUIZ-SETUP
   ============================================================ */
.range-row {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.range-row .field__input {
    flex: 1;
    min-width: 0;
}

.range-row__sep {
    color: var(--muted);
    font-size: 0.9rem;
}

.year-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
    margin-bottom: var(--space-3);
}

.chip {
    position: relative;
    display: block;
    cursor: pointer;
}

.chip__input {
    position: absolute;
    opacity: 0;
    inset: 0;
    margin: 0;
    cursor: pointer;
}

.chip__label {
    display: block;
    text-align: center;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.5rem 0;
    color: var(--muted);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.chip:hover .chip__label {
    border-color: var(--ink);
    color: var(--ink);
}

.chip__input:checked + .chip__label {
    background: var(--red);
    color: var(--on-red);
    border-color: var(--red);
    font-weight: 600;
}

.chip__input:focus-visible + .chip__label {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

/* ============================================================
   PROFIEL
   ============================================================ */
.profile-head {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.profile-head .eyebrow {
    margin-bottom: 0.15rem;
}

.profile-head__name {
    margin: 0;
    font-size: 1.3rem;
    overflow-wrap: anywhere;
}

.avatar {
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--on-red);
    background: var(--red);
}

/* ============================================================
   ADMIN: uitnodigingen + clip review
   ============================================================ */
.invite-list {
    list-style: none;
    padding: 0;
    margin: var(--space-3) 0 0;
}

.invite-list__item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.8rem 0;
    border-top: 1px solid var(--line);
}

.invite-list__link {
    font-size: 0.78rem;
    word-break: break-all;
    color: var(--muted);
}

.invite-list__meta {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.invite-list__meta .badge {
    margin: 0;
}

.review-title {
    margin-top: var(--space-2);
}

.nudge-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-1);
    align-items: center;
}

.nudge-row .btn:last-child {
    grid-column: 1 / -1;
}

/* ============================================================
   FOUTPAGINA
   ============================================================ */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-3) 0;
}

.error-code {
    display: flex;
    align-items: center;
    margin: 0 0 var(--space-3);
    font-family: var(--font-display);
    font-size: clamp(5.5rem, 28vw, 11rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.error-page__title {
    font-size: 1.6rem;
}

.error-page .lead {
    max-width: 34rem;
}

.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    margin-top: var(--space-2);
}

/* ============================================================
   DEV-TABEL (/dev/songs, alleen buiten productie)
   ============================================================ */
table {
    display: block;
    overflow-x: auto;
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--space-2);
    background: var(--surface);
    font-size: 0.9rem;
}

th, td {
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--line);
}

th {
    color: var(--muted);
    font-weight: 600;
}

/* ============================================================
   VANAF TABLET / DESKTOP
   ============================================================ */
@media (min-width: 600px) {
    .site-header {
        --header-pad: var(--space-3);
    }

    .site-header__name {
        font-size: 1rem;
    }

    .site-header__quiz {
        display: inline;
    }

    .site-header__bar {
        gap: var(--space-2);
        padding-top: 0.8rem;
        padding-bottom: 0.8rem;
    }

    .site-nav__link {
        font-size: 0.85rem;
        padding: 0.5rem 0.55rem;
    }

    .icon-btn {
        width: 36px;
        height: 36px;
    }

    .year-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .invite-list__item {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .nudge-row {
        grid-template-columns: auto 1fr auto auto;
    }

    .nudge-row .btn:last-child {
        grid-column: auto;
    }
}

@media (min-width: 760px) {
    .site-nav__link {
        font-size: 0.9rem;
        padding: 0.5rem 0.65rem;
    }
}

@media (min-width: 900px) {
    .site-header {
        --header-pad: var(--space-4);
    }

    .site-header__name {
        font-size: 1.05rem;
    }

    h1 {
        font-size: 2.1rem;
    }

    .page {
        max-width: 720px;
        padding-top: var(--space-4);
    }

    .card {
        padding: var(--space-4);
    }

    .year-grid {
        grid-template-columns: repeat(7, 1fr);
    }

    .vinyl {
        height: 58%;
        max-height: 190px;
    }

    .verdict {
        font-size: 3.4rem;
    }

    .reveal__title {
        font-size: 1.6rem;
    }

    .error-page {
        padding-top: var(--space-4);
    }
}

/* Breed: de menu-inhoud staat gewoon in de balk. */
@media (min-width: 600px) {
    .site-nav:not(.site-nav--admin) .site-nav__panel {
        display: flex;
        position: static;
        flex-direction: row;
        align-items: center;
        padding: 0;
        background: none;
        border: none;
        box-shadow: none;
    }
}

@media (min-width: 900px) {
    .site-nav--admin .site-nav__panel {
        display: flex;
        position: static;
        flex-direction: row;
        align-items: center;
        padding: 0;
        background: none;
        border: none;
        box-shadow: none;
    }
}

@media (min-width: 600px) {
    .site-nav:not(.site-nav--admin) .site-nav__panel .site-nav__link { font-size: 0.85rem; padding: 0.5rem 0.55rem; }
    .site-nav:not(.site-nav--admin) .site-nav__sep,
    .site-nav:not(.site-nav--admin) .site-nav__label { display: none; }
}

@media (min-width: 900px) {
    .site-nav--admin .site-nav__panel .site-nav__link { font-size: 0.9rem; padding: 0.5rem 0.65rem; }
    .site-nav--admin .site-nav__sep:not(:first-of-type) { display: none; }
    .site-nav--admin .site-nav__label { display: none; }
    .site-nav--admin .site-nav__sep { width: 1px; height: 1.2rem; margin: 0 0.4rem; }
}
