/* =========================================================
   STIJL: NACHTCLUB
   Donker en fel: violet-zwart, limoen en koraal, met gloed. Koppen in
   Unbounded, tekst in Outfit.
   Indeling: neon-entree met alles gecentreerd (start), een lichtlijn als
   tijdlijn met kaarten om en om links en rechts, en de DJ-booth rechts
   (spel).
   ========================================================= */
[data-theme="club"] {
  --bg-0: #0d0716;
  --page-bg:
    radial-gradient(60% 50% at 12% 8%, rgba(198, 255, 61, 0.1), transparent 70%),
    radial-gradient(55% 50% at 92% 88%, rgba(255, 111, 97, 0.15), transparent 70%),
    radial-gradient(120% 90% at 50% 0%, #1b0f2e 0%, #0d0716 70%);
  --page-texture: radial-gradient(rgba(198, 180, 255, 0.06) 1px, transparent 1.6px);
  --page-texture-size: 22px 22px;
  --page-texture-mask: linear-gradient(to bottom, #000, transparent 80%);

  --panel: rgba(24, 13, 40, 0.8);
  --panel-2: #1f1333;
  --panel-3: #2a1b44;
  --sunken: rgba(10, 5, 18, 0.55);
  --field-bg: #120a1f;
  --timeline-bg: transparent;

  --ink: #f5f0ff;
  --muted: #a99bc4;
  --line-soft: rgba(198, 180, 255, 0.1);
  --line: rgba(198, 180, 255, 0.2);
  --line-strong: rgba(198, 180, 255, 0.42);
  --hover-wash: rgba(198, 180, 255, 0.07);

  --accent: #c6ff3d;
  --accent-deep: #a6e01a;
  --accent-ink: #12081f;
  --accent-soft: rgba(198, 255, 61, 0.1);
  --accent-line: rgba(198, 255, 61, 0.5);
  --coral: #ff6f61;
  --glow: 0 0 16px rgba(198, 255, 61, 0.45), 0 0 40px rgba(198, 255, 61, 0.18);
  --glow-coral: 0 0 16px rgba(255, 111, 97, 0.5), 0 0 40px rgba(255, 111, 97, 0.2);

  --success: #5dfc9a;
  --success-soft: rgba(93, 252, 154, 0.12);
  --ok-ink: #d6ffe6;
  --error: #ff6f61;
  --error-soft: rgba(255, 111, 97, 0.14);
  --err-ink: #ffd9d4;
  --warn: #ffb547;
  --focus: #c6ff3d;

  --font-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --font-body: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-num: "Unbounded", "Segoe UI", sans-serif;
  --font-title: "Outfit", "Segoe UI", sans-serif;
  --display-weight: 700;
  --display-case: uppercase;
  --display-tracking: 0.02em;
  --title-weight: 700;
  --title-case: none;
  --title-size: 1rem;
  --title-tracking: 0;
  --label-tracking: 0.18em;
  --h1-color: #c6ff3d;

  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow-panel: 0 20px 50px rgba(5, 0, 15, 0.6);

  --btn-font: "Unbounded", "Segoe UI", sans-serif;
  --btn-weight: 700;
  --btn-case: uppercase;
  --btn-tracking: 0.04em;
  --btn-size: 0.82rem;
  --btn-small-size: 0.72rem;
  --btn-radius: 999px;
  --btn-shadow: var(--glow);
  --btn-shadow-hover: 0 0 24px rgba(198, 255, 61, 0.65), 0 0 60px rgba(198, 255, 61, 0.25);
  --btn-hover-transform: translateY(-1px) scale(1.02);
  --btn-shadow-active: 0 0 10px rgba(198, 255, 61, 0.5);
  --btn-active-transform: scale(0.98);

  --chip-radius: 999px;
  --chip-mark-radius: 50%;
  --chip-size: 0.88rem;
  --chip-tracking: 0;
  --chip-bg: rgba(31, 19, 51, 0.6);
  --chip-active-bg: rgba(198, 255, 61, 0.14);
  --chip-active-ink: #c6ff3d;
  --chip-active-border: #c6ff3d;
  --chip-active-shadow: 0 0 14px rgba(198, 255, 61, 0.35), inset 0 0 10px rgba(198, 255, 61, 0.15);

  --card-bg: #1f1333;
  --card-ink: #f5f0ff;
  --card-muted: #cbbde6;
  --card-frame: 1px solid rgba(198, 180, 255, 0.28);
  --card-radius: 14px;
  --stub-bg: #ff6f61;
  --stub-ink: #12081f;
  --title-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  --scrim: linear-gradient(to bottom, rgba(13, 7, 22, 0.7), rgba(13, 7, 22, 0.25));
  --missed-bg: #2a0f24;
  --missed-stub-ink: #12081f;

  --unknown-bg: linear-gradient(135deg, rgba(198, 255, 61, 0.18), rgba(255, 111, 97, 0.18)), #1f1333;
  --unknown-ink: #f5f0ff;
  --play-shadow:
    0 0 0 10px rgba(198, 255, 61, 0.07),
    0 0 0 11px rgba(198, 255, 61, 0.35),
    0 0 0 22px rgba(198, 255, 61, 0.04),
    0 0 0 23px rgba(198, 255, 61, 0.2),
    0 0 34px rgba(198, 255, 61, 0.5);
  --progress-fill: linear-gradient(90deg, #ff6f61, #c6ff3d);
  --progress-radius: 999px;
  --overlay-bg: rgba(8, 3, 15, 0.78);
  --scroll-thumb: rgba(198, 180, 255, 0.3);
  --scroll-track: transparent;

  --grade-s: #c6ff3d;
  --grade-a: #5dfc9a;
  --grade-b: #f5f0ff;
  --grade-c: #ffb547;
  --grade-d: #ff6f61;
}

/* ---------- Algemeen: glas en neon ---------- */
/* Unbounded maakt in het Nederlands van "IJ" één teken dat op een U lijkt ("TUDLUN"). */
html[data-theme="club"] {
  font-feature-settings: "locl" 0;
}

html[data-theme="club"] .panel {
  border: 1px solid rgba(198, 180, 255, 0.14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

html[data-theme="club"] .btn-ghost {
  border-color: rgba(198, 180, 255, 0.35);
}

html[data-theme="club"] .btn-ghost:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(198, 255, 61, 0.3);
}

html[data-theme="club"] .spotify-status {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding-inline: 14px;
}

html[data-theme="club"] .mode-btn {
  font-weight: 600;
}

html[data-theme="club"] .mode-btn::before {
  width: 9px;
  height: 9px;
  border: 0;
  background: rgba(198, 180, 255, 0.3);
}

html[data-theme="club"] .mode-btn.active::before {
  content: "";
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

html[data-theme="club"] .mode-btn:hover {
  border-color: rgba(198, 255, 61, 0.5);
}

html[data-theme="club"] .mode-buttons.rounds-switch {
  border-color: rgba(198, 180, 255, 0.25);
}

html[data-theme="club"] .rounds-btn.active,
html[data-theme="club"] .players-btn.active,
html[data-theme="club"] .lobby-mode-btn.active,
html[data-theme="club"] .seg-btn.active {
  box-shadow: var(--glow);
}

/* ---------- Startscherm: neon-entree, alles gecentreerd ---------- */
html[data-theme="club"] .start-card {
  border: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  justify-items: center;
  text-align: center;
}

html[data-theme="club"] .start-head {
  flex-direction: column;
  gap: 14px;
}

html[data-theme="club"] .logo {
  width: 62px;
  height: 62px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
  box-shadow: var(--glow), inset 0 0 14px rgba(198, 255, 61, 0.3);
  text-shadow: 0 0 10px var(--accent);
}

html[data-theme="club"] h1 {
  font-weight: 900;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  letter-spacing: 0.06em;
  text-shadow:
    0 0 6px rgba(198, 255, 61, 0.9),
    0 0 22px rgba(198, 255, 61, 0.6),
    0 0 48px rgba(198, 255, 61, 0.35);
  animation: neonFlicker 7s infinite;
}

html[data-theme="club"] .subtitle {
  color: var(--coral);
  letter-spacing: 0.3em;
  text-shadow: 0 0 12px rgba(255, 111, 97, 0.55);
}

html[data-theme="club"] .mode-panel {
  width: 100%;
  justify-items: center;
  gap: 16px;
}

html[data-theme="club"] .mode-title {
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.2em;
}

html[data-theme="club"] .mode-group {
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 8px;
}

html[data-theme="club"] .mode-group-label {
  color: var(--coral);
}

html[data-theme="club"] .mode-group .mode-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

html[data-theme="club"] .mode-group .mode-btn {
  width: auto;
  padding: 0 18px;
}

html[data-theme="club"] .mode-group .mode-buttons.rounds-switch {
  display: grid;
  width: min(340px, 100%);
}

html[data-theme="club"] .start-footer {
  flex-direction: column;
  align-items: center;
  border-top: 0;
  padding-top: 4px;
}

html[data-theme="club"] .selected-mode-display {
  flex: none;
  color: var(--muted);
  font-weight: 500;
}

html[data-theme="club"] .btn-start {
  min-height: 60px;
  padding-inline: 44px;
  font-size: 0.95rem;
}

html[data-theme="club"] .rules {
  grid-template-columns: repeat(3, auto);
  justify-content: center;
  gap: 8px 22px;
  color: var(--muted);
  font-size: 0.84rem;
}

html[data-theme="club"] .rules li {
  padding: 0;
  background: none;
  text-align: left;
}

html[data-theme="club"] .rules li::before {
  font-size: 0.95rem;
  color: var(--coral);
  text-shadow: 0 0 10px rgba(255, 111, 97, 0.5);
}

/* ---------- Spelscherm: DJ-booth en lichtlijn ---------- */
html[data-theme="club"] .stat-value {
  font-weight: 700;
  text-shadow: 0 0 14px rgba(198, 255, 61, 0.45);
}

html[data-theme="club"] #streak {
  color: var(--coral);
  text-shadow: 0 0 14px rgba(255, 111, 97, 0.5);
}

html[data-theme="club"] .game-mode-display {
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(198, 255, 61, 0.25);
}

html[data-theme="club"] .progress-bar {
  height: 8px;
}

html[data-theme="club"] .progress-fill {
  box-shadow: 0 0 12px rgba(198, 255, 61, 0.6);
}

html[data-theme="club"] .unknown-card {
  border: 1.5px solid rgba(198, 255, 61, 0.6);
  border-radius: 18px;
  box-shadow: var(--glow);
}

html[data-theme="club"] .unknown-icon {
  border-left: 1.5px dashed rgba(198, 255, 61, 0.45);
  color: var(--accent);
  font-weight: 900;
  text-shadow: 0 0 14px rgba(198, 255, 61, 0.8);
}

html[data-theme="club"] .unknown-card .hint {
  opacity: 0.7;
}

html[data-theme="club"] .playback-controls {
  padding-block: 26px 4px;
}

html[data-theme="club"] .play-btn {
  width: 96px;
  height: 96px;
}

html[data-theme="club"] .play-btn.is-playing {
  animation: clubPulse 1.2s ease-in-out infinite;
}

html[data-theme="club"] .wave-container {
  margin-top: 26px;
}

html[data-theme="club"] #wave-animation {
  height: 30px;
  gap: 5px;
}

html[data-theme="club"] .wave-bar {
  width: 6px;
  border-radius: 3px;
  background: linear-gradient(to top, var(--coral), var(--accent));
  box-shadow: 0 0 8px rgba(198, 255, 61, 0.5);
}

html[data-theme="club"] .youtube-link {
  border-radius: 999px;
  border-color: rgba(198, 180, 255, 0.3);
}

html[data-theme="club"] .guess-section {
  border: 1px solid var(--line);
  border-radius: 16px;
}

html[data-theme="club"] .guess-toggle-btn {
  border-radius: 999px;
  background: transparent;
}

html[data-theme="club"] .guess-toggle-btn::after {
  box-shadow: 0 0 10px rgba(198, 255, 61, 0.6);
}

html[data-theme="club"] .input-group input {
  border-radius: 12px;
}

html[data-theme="club"] .input-group input:focus {
  box-shadow: 0 0 0 3px rgba(198, 255, 61, 0.15), 0 0 16px rgba(198, 255, 61, 0.25);
}

html[data-theme="club"] .reveal-section {
  border: 1px solid rgba(198, 255, 61, 0.35);
  border-radius: 18px;
  box-shadow: 0 0 24px rgba(198, 255, 61, 0.12);
}

html[data-theme="club"] .song-info h3 {
  text-shadow: 0 0 14px rgba(198, 255, 61, 0.5);
}

html[data-theme="club"] #song-year {
  border-radius: 999px;
  border-color: var(--coral);
  color: var(--coral);
  font-weight: 700;
  font-size: 1rem;
  text-shadow: 0 0 10px rgba(255, 111, 97, 0.6);
  transform: none;
}

html[data-theme="club"] .timeline-card {
  box-shadow: 0 0 18px rgba(155, 100, 255, 0.12);
}

html[data-theme="club"] .timeline-year {
  font-weight: 700;
  font-size: 0.86rem;
}

html[data-theme="club"] .timeline-card.is-missed {
  box-shadow: var(--glow-coral);
}

/* Net geplaatst: een limoen gloed */
html[data-theme="club"] .timeline-card.is-new:not(.is-missed) {
  box-shadow: 0 0 0 2px var(--accent), 0 0 26px rgba(198, 255, 61, 0.55);
}

html[data-theme="club"] .timeline-missed-label {
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 800;
}

/* Lage kaart op desktop: het stempel naast het jaartal, zodat de titel zichtbaar blijft */
@media (min-width: 701px) and (min-height: 501px), (min-width: 701px) and (pointer: fine) {
  html[data-theme="club"] .timeline-card.is-missed .timeline-info {
    padding-top: 0;
  }

  html[data-theme="club"] .timeline-missed-label {
    top: auto;
    right: 48px;
    bottom: 12px;
    transform: none;
  }
}

/* ---------- Eindscherm: neonscore ---------- */
html[data-theme="club"] .end-card .logo {
  margin-bottom: 4px;
}

html[data-theme="club"] .final-score {
  font-weight: 900;
  text-shadow:
    0 0 8px rgba(198, 255, 61, 0.9),
    0 0 26px rgba(198, 255, 61, 0.55),
    0 0 60px rgba(198, 255, 61, 0.3);
}

html[data-theme="club"] .grade {
  font-weight: 900;
  box-shadow: 0 0 18px currentColor, inset 0 0 14px color-mix(in srgb, currentColor 40%, transparent);
  text-shadow: 0 0 12px currentColor;
}

html[data-theme="club"] .stat-card {
  border: 1px solid var(--line);
  border-radius: 16px;
}

/* ---------- Desktop: booth rechts, lichtlijn links ---------- */
@media (min-width: 701px) and (min-height: 501px), (min-width: 701px) and (pointer: fine) {
  html[data-theme="club"] .start-shell {
    width: min(900px, 100%);
  }

  html[data-theme="club"] .start-card {
    grid-template-areas:
      "head"
      "modes"
      "footer"
      "rules";
  }

  html[data-theme="club"] .start-head { grid-area: head; }
  html[data-theme="club"] .mode-panel { grid-area: modes; }
  html[data-theme="club"] .rules { grid-area: rules; }

  html[data-theme="club"] h1 {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
  }

  /* De startknop blijft onderin in beeld, op een vervaging naar de achtergrond */
  html[data-theme="club"] .start-footer {
    grid-area: footer;
    justify-self: stretch;
    position: sticky;
    bottom: 0;
    z-index: 3;
    padding: 18px 0 16px;
    background: radial-gradient(55% 100% at 50% 100%, var(--bg-0) 45%, transparent 100%);
  }

  html[data-theme="club"] .game-main {
    grid-template-columns: minmax(0, 1fr) clamp(310px, 25vw, 360px);
    grid-template-rows: minmax(0, 1fr);
    grid-template-areas: "timeline booth";
  }

  html[data-theme="club"] .timeline-section {
    grid-area: timeline;
  }

  html[data-theme="club"] .card-section {
    grid-area: booth;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "audio"
      "card"
      "status"
      "side";
    align-content: start;
    align-items: stretch;
    gap: 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  html[data-theme="club"] .current-card-display {
    height: 112px;
  }

  /* Smalle booth: de bonusvelden onder elkaar */
  html[data-theme="club"] .guess-content {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  html[data-theme="club"] .guess-inputs {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-theme="club"] .guess-btn {
    width: 100%;
  }

  html[data-theme="club"] .reveal-section {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "info"
      "feedback"
      "next";
  }

  /* Lichtlijn: een gloeiende lijn in het midden en een echte zigzag. Elke plek heeft
     een eigen rij over de hele breedte (de knop op de lijn), de kaarten wisselen
     links en rechts af. Met een negatieve marge schuiven ze in elkaar, zodat de
     volgorde strikt van boven naar beneden loopt en elke knop precies tussen twee
     kaarten zit. Knoppen tellen niet mee in nth-of-type, dus de kaarten wisselen
     echt om en om. */
  html[data-theme="club"] .timeline-container {
    --overlap: 34px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
    align-items: center;
    gap: 8px 0;
    padding: 18px 22px;
    border: 0;
    background:
      linear-gradient(90deg, transparent calc(50% - 1.5px), #c6ff3d calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)) local,
      linear-gradient(90deg, transparent calc(50% - 12px), rgba(198, 255, 61, 0.16) 50%, transparent calc(50% + 12px)) local;
  }

  html[data-theme="club"] .drop-zone {
    grid-column: 1 / -1;
    justify-self: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 2px solid rgba(198, 255, 61, 0.7);
    border-radius: 50%;
    background: #12081f;
    box-shadow: 0 0 14px rgba(198, 255, 61, 0.45);
  }

  html[data-theme="club"] .drop-zone::before {
    width: auto;
    height: auto;
    border: 0;
    background: none;
    color: var(--accent);
    font-size: 1.4rem;
  }

  /* Alleen voor schermlezers: de plek heeft al een aria-label */
  html[data-theme="club"] .drop-zone span:not(.zone-pointers) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  html[data-theme="club"] .drop-zone:hover:not(.is-disabled) {
    background: var(--accent);
    transform: scale(1.12);
    box-shadow: 0 0 22px rgba(198, 255, 61, 0.9), 0 0 50px rgba(198, 255, 61, 0.4);
  }

  html[data-theme="club"] .drop-zone:hover:not(.is-disabled)::before {
    background: none;
    color: var(--accent-ink);
  }

  html[data-theme="club"] .drop-zone.is-disabled {
    opacity: 0.25;
  }

  html[data-theme="club"] .timeline-card {
    grid-column: 1;
    width: auto;
    height: 98px;
    margin: calc(-1 * var(--overlap)) 8px calc(-1 * var(--overlap)) 0;
    padding: 12px;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  html[data-theme="club"] .timeline-card:nth-of-type(even) {
    grid-column: 3;
    margin: calc(-1 * var(--overlap)) 0 calc(-1 * var(--overlap)) 8px;
  }

  /* De spookkaart staat zonder plek ertussen naast het volgende kaartje (zelfde rij).
     Die rij krijgt de volle hoogte, anders raken de buren aan dezelfde kant elkaar. */
  html[data-theme="club"] .timeline-card.is-missed,
  html[data-theme="club"] .timeline-card.is-missed + .timeline-card {
    margin-block: 0;
  }

  html[data-theme="club"] .timeline-title {
    max-height: calc(2 * 1.15em + 1px);
  }

  html[data-theme="club"] .timeline-year {
    justify-self: start;
    height: 26px;
    margin: 0;
    padding: 0 12px;
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(255, 111, 97, 0.5);
  }

  html[data-theme="club"] .spotify-source-link {
    right: 10px;
    bottom: 10px;
  }
}

/* ---------- Telefoon: booth boven, lichtlijn links ---------- */
@media (max-width: 700px), (pointer: coarse) and (max-height: 500px) {
  /* backdrop-filter maakt van het paneel het kader voor position: fixed;
     dan zou de uitslagbalk in de booth blijven hangen in plaats van onderin beeld. */
  html[data-theme="club"] .card-section,
  html[data-theme="club"] .start-card {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  html[data-theme="club"] .card-section {
    background: #170d26;
  }

  html[data-theme="club"] .playback-controls {
    padding-block: 18px;
  }

  html[data-theme="club"] .play-btn {
    width: 72px;
    height: 72px;
  }

  /* Ruimte voor de gloedringen rond de afspeelknop */
  html[data-theme="club"] .audio-block {
    margin-inline: 22px 8px;
  }

  html[data-theme="club"] .wave-container {
    margin-top: 18px;
  }

  html[data-theme="club"] .rules {
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
  }

  html[data-theme="club"] .timeline-container {
    border: 0;
    background:
      linear-gradient(90deg, transparent 24.5px, #c6ff3d 24.5px 27.5px, transparent 27.5px) local,
      linear-gradient(90deg, transparent 14px, rgba(198, 255, 61, 0.14) 26px, transparent 38px) local;
  }

  html[data-theme="club"] .drop-zone {
    justify-content: flex-start;
    min-height: 40px;
    padding: 0 0 0 1px;
    border: 0;
    background: none;
  }

  html[data-theme="club"] .drop-zone::before {
    width: 34px;
    height: 34px;
    border: 2px solid rgba(198, 255, 61, 0.7);
    background: #12081f;
    color: var(--accent);
    box-shadow: 0 0 12px rgba(198, 255, 61, 0.45);
  }

  html[data-theme="club"] .drop-zone:hover:not(.is-disabled) {
    background: none;
  }

  html[data-theme="club"] .timeline-card {
    width: auto;
    margin-left: 48px;
  }

  html[data-theme="club"] .timeline-year {
    font-size: 0.8rem;
  }

  html[data-theme="club"] .reveal-section {
    background: #1a0f2b;
  }
}

@keyframes neonFlicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.55; }
}

@keyframes clubPulse {
  0%, 100% { box-shadow: var(--play-shadow); }
  50% {
    box-shadow:
      0 0 0 12px rgba(198, 255, 61, 0.12),
      0 0 0 13px rgba(198, 255, 61, 0.55),
      0 0 0 26px rgba(198, 255, 61, 0.06),
      0 0 0 27px rgba(198, 255, 61, 0.35),
      0 0 50px rgba(198, 255, 61, 0.75);
  }
}

/* ---------- Record en eindoverzicht ---------- */
html[data-theme="club"] .record-display {
  border-radius: 999px;
}

html[data-theme="club"] .record-display.is-new {
  box-shadow: var(--glow);
  text-shadow: 0 0 10px rgba(198, 255, 61, 0.6);
}

html[data-theme="club"] .recap-card {
  border-radius: 12px;
  background: rgba(31, 19, 51, 0.7);
}

html[data-theme="club"] .recap-card.is-placed .recap-year {
  text-shadow: 0 0 10px rgba(198, 255, 61, 0.5);
}

/* ---------- Feest: neon ---------- */
html[data-theme="club"] .players-editor,
html[data-theme="club"] .player-list {
  justify-content: center;
}

html[data-theme="club"] .player-row {
  border-radius: 999px;
  overflow: hidden;
}

html[data-theme="club"] .player-row::before {
  border-right-color: rgba(198, 180, 255, 0.2);
  color: var(--coral);
}

html[data-theme="club"] .score-chip {
  border-color: rgba(198, 180, 255, 0.25);
  border-radius: 999px;
  background: rgba(10, 5, 18, 0.5);
}

html[data-theme="club"] .score-chip.is-active {
  border-color: var(--accent);
  background: transparent;
  color: var(--accent);
  box-shadow: 0 0 10px rgba(198, 255, 61, 0.45), inset 0 0 8px rgba(198, 255, 61, 0.12);
  text-shadow: 0 0 10px rgba(198, 255, 61, 0.6);
}

html[data-theme="club"] .score-chip.is-active .score-points {
  color: var(--accent);
}

/* Banner: neonbuis in koraal */
html[data-theme="club"] .turn-banner {
  border: 2px solid var(--coral);
  border-radius: 999px;
  background: rgba(13, 7, 22, 0.9);
  box-shadow: var(--glow-coral);
  color: #fff;
  font-size: clamp(1.3rem, 3.6vw, 2.2rem);
  text-shadow: 0 0 6px var(--coral), 0 0 22px rgba(255, 111, 97, 0.7);
}

html[data-theme="club"] .podium-row {
  border-color: rgba(198, 180, 255, 0.2);
  border-radius: 999px;
  background: rgba(31, 19, 51, 0.7);
  padding-inline: 18px;
}

html[data-theme="club"] .podium-row.place-1 {
  border: 2px solid var(--accent);
  background: rgba(198, 255, 61, 0.08);
  box-shadow: var(--glow);
}

html[data-theme="club"] .podium-row.place-1 .podium-place,
html[data-theme="club"] .podium-row.place-1 .podium-name,
html[data-theme="club"] .podium-row.place-1 .podium-score {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(198, 255, 61, 0.6);
}

html[data-theme="club"] .podium-row.place-1 .podium-stats {
  color: var(--ink);
}

html[data-theme="club"] .podium-row.place-2 .podium-place,
html[data-theme="club"] .podium-row.place-3 .podium-place {
  color: var(--coral);
}

@media (max-width: 700px), (pointer: coarse) and (max-height: 500px) {
  html[data-theme="club"] .podium-row {
    border-radius: 18px;
  }
}

/* ---------- Telefoon: kleinere neonknop, de lichtlijn links is de tik-lijn ---------- */
@media (max-width: 700px), (pointer: coarse) and (max-height: 500px) {
  html[data-theme="club"] .playback-controls {
    padding-block: 8px;
  }

  html[data-theme="club"] .play-btn {
    width: 54px;
    height: 54px;
  }

  html[data-theme="club"] .audio-block {
    margin-inline: 12px 4px;
  }

  html[data-theme="club"] .unknown-card strong {
    font-size: 1rem;
  }

  /* Nachtclub heeft al een eigen lichtlijn: geen extra stippellijn */
  html[data-theme="club"] .drop-zone {
    min-height: 36px;
  }

  html[data-theme="club"] .drop-zone::after {
    display: none;
  }

  html[data-theme="club"] .drop-zone::before {
    width: 30px;
    height: 30px;
  }
}

/* ---------- Groot scherm: de hoes als scherp vierkantje rechts in het kaartje ---------- */
@media (min-width: 701px) and (min-height: 501px), (min-width: 701px) and (pointer: fine) {
  html[data-theme="club"] .timeline-card .timeline-cover-background {
    inset: 50% 12px auto auto;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    opacity: 1;
    transform: translateY(-50%);
    box-shadow: 0 0 0 1px rgba(198, 180, 255, 0.25), 0 6px 16px rgba(0, 0, 0, 0.45);
  }

  html[data-theme="club"] .timeline-card.has-album-cover::before {
    background: none;
  }

  html[data-theme="club"] .timeline-card.has-album-cover .timeline-info {
    padding-right: 84px;
  }

  html[data-theme="club"] .spotify-source-link {
    top: calc(50% + 20px);
    right: 6px;
    bottom: auto;
    width: 24px;
    height: 24px;
    box-shadow: 0 0 0 2px #1a0f2b;
  }

  html[data-theme="club"] .spotify-source-link .spotify-source-icon {
    width: 17px;
    height: 17px;
  }

  html[data-theme="club"] .timeline-card.has-album-cover .timeline-missed-label {
    right: 92px;
  }
}

/* =========================================================
   Groot scherm, solo en feest: nieuwe indeling over het hele scherm
   Bovenin de dansvloer: lichtbakken (vierkante hoezen met een neonrand, titel en
   artiest eronder, het jaar als koraalkleurige pil), met de lichtlijn horizontaal door
   elke rij en de plekken als gloeiende knoppen erop. Onderin de DJ-booth als
   mengpaneel: score, afspeelknop, het onbekende nummer en de bonus of de uitslag.
   ========================================================= */
@media (min-width: 701px) and (min-height: 501px), (min-width: 701px) and (pointer: fine) {
  html[data-theme="club"] #game-screen:not([data-online]) {
    --booth-h: clamp(150px, 21vh, 196px);

    .game-layout {
      grid-template-columns: clamp(250px, 19vw, 330px) minmax(0, 1fr);
      grid-template-rows: minmax(0, 1fr) auto;
      grid-template-areas:
        "timeline timeline"
        "top stage";
    }

    /* ---------- Mengpaneel ---------- */
    .game-topbar {
      grid-template-columns: auto minmax(0, 1fr);
      grid-template-areas:
        "stats stats"
        "progress progress"
        "home mode";
      align-content: center;
      border-color: rgba(198, 255, 61, 0.25);
      box-shadow: 0 0 24px rgba(198, 255, 61, 0.08);
    }

    .game-topbar.has-scoreboard {
      grid-template-areas:
        "stats stats"
        "progress progress"
        "board board"
        "home mode";
    }

    .card-section {
      grid-template-columns: auto minmax(230px, 0.8fr) minmax(0, 1.6fr);
      grid-template-rows: auto auto;
      grid-template-areas:
        "audio card side"
        "status status status";
      align-items: center;
      gap: 10px clamp(16px, 1.8vw, 30px);
      padding: 14px clamp(16px, 1.8vw, 26px);
      min-height: var(--booth-h);
      overflow: visible;
      border-color: rgba(198, 255, 61, 0.25);
      box-shadow: 0 0 30px rgba(198, 255, 61, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .card-section:has(#next-round-btn:not([hidden])) {
      grid-template-rows: auto auto;
    }

    .playback-controls {
      grid-template-columns: auto auto;
      align-items: center;
      gap: 22px;
      padding: 0;
    }

    .audio-block {
      margin: 0 0 0 24px;
    }

    .wave-container {
      margin-top: 14px;
    }

    .current-card-display {
      height: calc(var(--booth-h) - 28px);
      align-self: center;
    }

    .unknown-card strong {
      font-size: clamp(1.15rem, 1.6vw, 1.5rem);
    }

    .guess-section {
      align-self: center;
    }

    /* Bij de onthulling: de uitslag over het hele vak naast de afspeelknop */
    .card-section:has(#next-round-btn:not([hidden])) .reveal-section {
      grid-area: auto;
      grid-column: 2 / -1;
      grid-row: 1;
    }

    .reveal-section {
      grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr);
      grid-template-areas:
        "info feedback"
        "info next";
      align-content: center;
      gap: 10px 22px;
      padding: 12px 18px;
    }

    .song-info.has-cover,
    .song-info.has-cover.is-stacked {
      grid-template-columns: auto minmax(0, 1fr);
      justify-items: start;
      column-gap: 20px;
      text-align: left;
    }

    .song-info.has-cover .song-cover,
    .song-info.has-cover.is-stacked .song-cover {
      grid-row: 1 / span 3;
      width: calc(var(--booth-h) - 30px);
      margin: 0;
      border-radius: 14px;
      box-shadow: 0 0 0 2px var(--accent), 0 0 26px rgba(198, 255, 61, 0.55);
    }

    .song-info.has-cover > :not(.song-cover),
    .song-info.has-cover.is-stacked > :not(.song-cover) {
      grid-column: 2;
      justify-self: start;
    }

    .song-info.has-cover > h3 {
      justify-self: stretch;
    }

    .song-info h3 {
      font-family: var(--font-display);
      font-size: clamp(1.3rem, 2vw, 1.9rem);
    }

    /* ---------- Dansvloer ---------- */
    .timeline-section {
      border-color: rgba(198, 180, 255, 0.12);
    }

    .timeline-container {
      --rij-start: 4;
      --card-max: 330px;
      --tile-ratio: 1;
      --band-h: clamp(56px, calc(var(--card-w) * 0.3), 76px);
      --tile-extra: var(--band-h);
      --slot-w: 46px;
      --col-gap: 8px;
      --row-gap: 24px;
      --tl-pad-x: 18px;
      --tl-pad-y: 20px;
      --tl-border: 0px;
      border: 0;
      background: none;
    }

    /* De plekken: gloeiende knoppen op de lichtlijn, die door de hele rij loopt */
    .drop-zone {
      align-self: center;
      height: var(--slot-w);
      padding: 0;
      border: 2px solid rgba(198, 255, 61, 0.7);
      border-radius: 50%;
      background: #12081f;
      box-shadow: 0 0 14px rgba(198, 255, 61, 0.45);
    }

    .drop-zone::after {
      content: "";
      position: absolute;
      top: 50%;
      left: -100vw;
      right: -100vw;
      z-index: -1;
      height: 3px;
      margin-top: -1.5px;
      background: #c6ff3d;
      box-shadow: 0 0 10px rgba(198, 255, 61, 0.7), 0 0 26px rgba(198, 255, 61, 0.35);
      pointer-events: none;
    }

    .drop-zone::before {
      width: auto;
      height: auto;
      border: 0;
      background: none;
      color: var(--accent);
      font-size: 1.4rem;
    }

    .drop-zone span:not(.zone-pointers) {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip: rect(0 0 0 0);
      white-space: nowrap;
    }

    .drop-zone:hover:not(.is-disabled) {
      background: var(--accent);
      transform: none;
      box-shadow: 0 0 22px rgba(198, 255, 61, 0.9), 0 0 50px rgba(198, 255, 61, 0.4);
    }

    .drop-zone:hover:not(.is-disabled)::before {
      color: var(--accent-ink);
    }

    .drop-zone.is-disabled {
      opacity: 1;
      border-color: rgba(198, 255, 61, 0.35);
      box-shadow: none;
    }

    .drop-zone.is-disabled::before {
      opacity: 0.3;
    }

    /* Lichtbak: de hoes vierkant bovenin, titel en artiest eronder */
    .timeline-card {
      gap: 0;
      padding: 0 14px;
      grid-template-rows: minmax(0, 1fr) var(--band-h);
      border-radius: 16px;
      box-shadow: 0 0 0 1px rgba(198, 180, 255, 0.28), 0 0 24px rgba(155, 100, 255, 0.28);
    }

    .timeline-card .timeline-cover-background {
      inset: 0 0 auto 0;
      width: 100%;
      height: calc(100% - var(--band-h));
      border-radius: 16px 16px 0 0;
      transform: none;
      box-shadow: none;
    }

    /* Zonder hoes: een gloeiende noot in plaats van een gat */
    .timeline-card:not(.has-album-cover)::before {
      content: "\266A";
      position: absolute;
      inset: 0 0 auto 0;
      z-index: 1;
      height: calc(100% - var(--band-h));
      display: grid;
      place-items: center;
      background:
        radial-gradient(circle at 50% 45%, rgba(198, 255, 61, 0.22), transparent 60%),
        linear-gradient(135deg, rgba(198, 255, 61, 0.12), rgba(255, 111, 97, 0.14)),
        #1a0f2b;
      color: var(--accent);
      font-size: calc(var(--card-w) * 0.34);
      text-shadow: 0 0 18px rgba(198, 255, 61, 0.8);
    }

    .timeline-info,
    .timeline-card.has-album-cover .timeline-info,
    .timeline-card.is-missed .timeline-info {
      grid-row: 2;
      height: var(--band-h);
      align-content: center;
      padding: 0;
    }

    .timeline-title {
      max-height: calc(2 * 1.12em + 1px);
      line-height: 1.12;
    }

    .timeline-year {
      position: absolute;
      top: 10px;
      left: 10px;
      z-index: 3;
      height: 28px;
      margin: 0;
      padding: 0 12px;
      border-radius: 999px;
      font-size: clamp(0.82rem, calc(var(--card-w) / 16), 1.05rem);
    }

    /* "Hoorde hier" onderin de hoes, niet over de jaarpil */
    .timeline-missed-label,
    .timeline-card.has-album-cover .timeline-missed-label {
      top: auto;
      right: 10px;
      bottom: calc(var(--band-h) + 10px);
    }

    .spotify-source-link {
      top: calc(100% - var(--band-h) - 34px);
      right: 8px;
      bottom: auto;
    }
  }

  /* ---------- Eindscherm: neonscore en een rooster van gloeiende hoezen ---------- */
  html[data-theme="club"] #end-screen:not([data-online]) {
    .end-card {
      border: 0;
      background: transparent;
      box-shadow: none;
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
    }

    .final-score {
      font-size: clamp(5rem, 9vw, 8rem);
    }

    .grade {
      width: 110px;
      height: 110px;
      font-size: 3rem;
    }
  }
}

/* ---------- Eindoverzicht (groot scherm en telefoon) ---------- */
html[data-theme="club"] #end-screen:not([data-online]) {
  .end-recap {
    padding: 20px;
    border: 1px solid rgba(198, 180, 255, 0.16);
    border-radius: 22px;
    background: rgba(24, 13, 40, 0.7);
    box-shadow: 0 0 40px rgba(155, 100, 255, 0.12);
  }

  .recap-title {
    color: var(--accent);
    font-size: 1.2rem;
    letter-spacing: 0.12em;
    text-shadow: 0 0 12px rgba(198, 255, 61, 0.5);
  }

  .recap-card {
    border: 0;
    border-radius: 16px;
    background: #1f1333;
    box-shadow: 0 0 0 1px rgba(198, 180, 255, 0.28), 0 0 22px rgba(155, 100, 255, 0.22);
  }

  .recap-card.is-missed {
    box-shadow: 0 0 0 2px var(--coral), var(--glow-coral);
  }

  .recap-card::before {
    background:
      radial-gradient(circle at 50% 45%, rgba(198, 255, 61, 0.22), transparent 60%),
      #1a0f2b;
  }

  .recap-year {
    position: absolute;
    top: 8px;
    left: 8px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--coral);
    color: var(--accent-ink);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 24px;
  }

  .recap-card.is-placed .recap-year {
    background: var(--accent);
    color: var(--accent-ink);
  }

  .recap-card {
    grid-template-areas:
      "cover cover"
      "text text"
      "mark mark";
  }

  .recap-mark {
    justify-self: start;
    padding-left: 10px;
  }
}

/* Telefoon: de kaartjes staan naast de lichtlijn (smaller), dus in de grootste stand een iets kleinere hoes */
@media (max-width: 700px), (pointer: coarse) and (max-height: 500px) {
  html[data-theme="club"] .timeline-card {
    --thumb-xl: 124px;
  }
}
