
:root {
  --bg: #f4f1e8;
  --paper: #fffaf0;
  --ink: #1d1b17;
  --muted: #6b6255;
  --line: #d7c9ac;
  --accent: #8a5b21;
  --accent-2: #275f63;
  --button: #fff7df;
  --player-bg: rgba(255,250,240,.96);
  --body-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display-font: var(--body-font);
  --player-h: 132px;
}

body.era-prewar {
  --bg: #d7c7a5;
  --paper: #f3ead4;
  --ink: #19120c;
  --muted: #5a4a37;
  --line: #8a7358;
  --accent: #4b2b13;
  --accent-2: #211811;
  --button: #eadabf;
  --player-bg: rgba(237,224,196,.96);
  --body-font: "Times New Roman", Times, serif;
  --display-font: "Times New Roman", Times, serif;
}

body.era-sixties {
  --bg: #e7e1cc;
  --paper: #fff7dd;
  --ink: #141414;
  --muted: #5c5649;
  --line: #b9a978;
  --accent: #a0492d;
  --accent-2: #245f67;
  --button: #f1d98a;
  --player-bg: rgba(255,247,221,.96);
  --body-font: Georgia, "Times New Roman", serif;
  --display-font: Georgia, "Times New Roman", serif;
}

body.era-eighties {
  --bg: #e7e9ef;
  --paper: #f8f4e8;
  --ink: #101820;
  --muted: #4d5663;
  --line: #9ba7b8;
  --accent: #e35d8f;
  --accent-2: #006f9f;
  --button: #e6f0ff;
  --player-bg: rgba(248,244,232,.96);
  --body-font: Arial, Helvetica, "Courier New", sans-serif;
  --display-font: "Courier New", Arial, sans-serif;
}

body.era-now {
  --bg: #f5f7f4;
  --paper: #ffffff;
  --ink: #161616;
  --muted: #5f6661;
  --line: #cdd6cf;
  --accent: #2f6f54;
  --accent-2: #236cb3;
  --button: #edf5ee;
  --player-bg: rgba(255,255,255,.96);
  --body-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display-font: var(--body-font);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-bottom: var(--player-h);
  font-family: var(--body-font);
  background: var(--bg);
  color: var(--ink);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  padding: 24px 32px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--paper) 84%, white), var(--bg));
}

.title-mark {
  display: block;
  max-width: 920px;
}

.title-mark img {
  display: block;
  width: min(100%, 920px);
  height: auto;
}

.site-intro {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 760px;
  font-size: 1rem;
}

main { padding: 24px 32px; }

.controls {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.intro-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.intro-block h2 {
  margin: 0 0 6px;
  font-family: var(--display-font);
}

.intro-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.intro-play-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.view-controls {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

#countLabel {
  color: var(--muted);
  font-size: .92rem;
  margin-left: auto;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .82rem;
  color: var(--muted);
}

input, select, button {
  font: inherit;
  border: 1px solid var(--line);
  background: #fffdf8;
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 11px;
}

button {
  cursor: pointer;
  background: var(--button);
}

button.active,
button[aria-pressed="true"].active,
.toggle-button[aria-pressed="true"] {
  background: var(--accent-2);
  color: white;
  border-color: var(--accent-2);
}

.layout {
  display: grid;
  grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr);
  gap: 24px;
  align-items: start;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 1.2rem;
}

.map-heading { align-items: flex-start; }

.section-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.section-actions button {
  padding: 8px 10px;
  font-size: .9rem;
}

.side-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 12px;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.side-toolbar button {
  padding: 8px 10px;
  font-size: .9rem;
}

.side-toolbar [hidden] {
  display: none !important;
}

.audio-list { display: grid; gap: 10px; }

.audio-card {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 16px;
  padding: 14px 16px;
  transition: border-color .12s ease, background .12s ease;
}

.audio-card:hover,
.audio-card.active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--paper) 86%, var(--button));
}

.audio-card button.title-button {
  all: unset;
  cursor: pointer;
  display: inline;
  color: var(--accent-2);
  font-weight: 750;
  font-size: 1.05rem;
  line-height: 1.25;
  font-family: var(--display-font);
}

.audio-card button.title-button:hover { text-decoration: underline; }

.meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: .88rem;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  background: color-mix(in srgb, var(--paper) 80%, white);
}

.source {
  margin: 10px 0 0;
  color: color-mix(in srgb, var(--ink) 84%, var(--muted));
  font-size: .95rem;
}

.filehint { display: none; }

.side-column {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 18px;
}

.map-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
}

.map-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.marker {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  transform: translate(-50%, -50%);
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 999px;
  border: 2px solid #fffdf8;
  background: var(--accent-2);
  color: white;
  display: grid;
  place-items: center;
  font-size: .75rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
  z-index: 5;
}

.marker.active,
.marker:hover {
  background: var(--accent);
}

.marker.current {
  background: #f2c94c;
  color: #1d1b17;
  border-color: #1d1b17;
  box-shadow: 0 0 0 4px color-mix(in srgb, #f2c94c 36%, transparent), 0 2px 10px rgba(0,0,0,.25);
}

.marker.active.current {
  background: var(--accent);
  color: white;
}

.marker::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  top: 125%;
  transform: translateX(-50%);
  background: rgba(29,27,23,.88);
  color: white;
  padding: 5px 7px;
  border-radius: 7px;
  white-space: nowrap;
  font-size: .72rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
}

.marker:hover::after { opacity: 1; }

.map-note {
  color: var(--muted);
  font-size: .88rem;
}

.text-panel,
.colophon {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 18px;
  padding: 16px;
}

.active-text {
  max-height: 58vh;
  overflow: auto;
  white-space: pre-wrap;
  line-height: 1.45;
  font-family: var(--body-font);
  font-size: .96rem;
}

.active-text h3 {
  margin-top: 0;
  font-family: var(--display-font);
}

.empty-text { color: var(--muted); }

.fragment-image {
  max-width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  margin: 0 0 12px;
}

.colophon {
  margin-top: 28px;
  line-height: 1.45;
}

.colophon h2 {
  margin-top: 0;
  font-family: var(--display-font);
}

.colophon a { color: var(--accent-2); }

.player-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: var(--player-h);
  display: grid;
  grid-template-columns: minmax(240px, 440px) auto minmax(260px, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px 24px;
  background: var(--player-bg);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
  z-index: 20;
}

.now-playing {
  display: grid;
  gap: 5px;
  min-width: 0;
}

#nowTitle {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#nowMeta,
#nowQueue {
  color: var(--muted);
  font-size: .9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.transport {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 1.2rem;
  line-height: 1;
  border-radius: 999px;
}

.icon-button.active {
  background: var(--accent-2);
  color: white;
}

.svg-icon {
  display: inline-grid;
  place-items: center;
  width: 1.22em;
  height: 1.22em;
}

.svg-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button .svg-icon {
  width: 1.35em;
  height: 1.35em;
}

#shuffleBtn .svg-icon svg {
  fill: none;
}

audio { width: 100%; }

@media (max-width: 1120px) {
  .controls { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .layout { grid-template-columns: 1fr; }
  .side-column { position: static; }
}

@media (max-width: 760px) {
  :root { --player-h: 228px; }
  .site-header, main { padding-left: 16px; padding-right: 16px; }
  .controls { grid-template-columns: 1fr; }
  .section-actions { justify-content: flex-start; }
  .section-actions button,
  .side-toolbar button { flex: 1 1 auto; }
  .intro-block { display: grid; }
  #countLabel { margin-left: 0; flex-basis: 100%; }
  .player-bar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 14px;
  }
  .transport { justify-content: flex-start; }
  .active-text { max-height: 44vh; }
}

/* =========================================================
   VISUELE KOPPELING MET INTRO
   Alleen overrides voor de hoofdsite. Intro.css niet aanpassen.
   ========================================================= */

:root {
  --drawn-line: #111111;
  --drawn-shadow: 10px 10px 0 rgba(0,0,0,.18);
  --drawn-shadow-small: 6px 6px 0 rgba(0,0,0,.16);
  --drawn-radius: 28px;

  --body-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display-font: var(--body-font);

  --bg: #f4f1e8;
  --paper: #fff8d8;
  --ink: #17130f;
  --muted: #534b40;
  --line: #111111;
  --button: #fff7df;
}

/* Zelfde achtergrondverloop als intro */
body {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.45;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.35), transparent 30%),
    linear-gradient(180deg, var(--bg), #efe989);
}

/* Bovenlijn in intro-achtige tekenstijl */
.site-header {
  border-bottom: 4px solid var(--drawn-line);
  box-shadow: 0 8px 0 rgba(0,0,0,.14);
}

/* Kaders meer als introkaart */
.controls,
.intro-block,
.side-toolbar,
.audio-card,
.map-wrap,
.text-panel,
.colophon {
  border: 4px solid var(--drawn-line);
  border-radius: var(--drawn-radius);
  box-shadow: var(--drawn-shadow-small);
}

/* Geselecteerd fragment krijgt dezelfde stevige kaartlogica */
.audio-card.active {
  border-color: var(--drawn-line);
  background: #fff8d8;
  box-shadow: var(--drawn-shadow);
  transform: translate(-2px, -2px);
}

/* Hover minder wild, maar wel voelbaar */
.audio-card:hover {
  border-color: var(--drawn-line);
  background: #fff8d8;
}

/* Fragmenttitels iets meer intro-achtig */
.audio-card button.title-button {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 800;
}

/* Knoppen meer als introknop, maar kleiner */
button,
input,
select {
  border: 3px solid var(--drawn-line);
  border-radius: 999px;
}

button {
  box-shadow: 4px 4px 0 rgba(0,0,0,.18);
}

button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 rgba(0,0,0,.18);
}

/* Player-balk als onderaan geplaatste introkaart */
.player-bar {
  border-top: 4px solid var(--drawn-line);
  box-shadow: 0 -8px 0 rgba(0,0,0,.14);
}

/* Audio-element zelf niet te cartoonachtig maken */
audio {
  border-radius: 999px;
}

/* Mobile: schaduwen en randen iets rustiger */
@media (max-width: 760px) {
  body {
    font-size: 1rem;
  }

  .controls,
  .intro-block,
  .side-toolbar,
  .audio-card,
  .map-wrap,
  .text-panel,
  .colophon {
    border-width: 3px;
    border-radius: 20px;
    box-shadow: 6px 6px 0 rgba(0,0,0,.14);
  }

  .audio-card.active {
    box-shadow: 6px 6px 0 rgba(0,0,0,.18);
  }

  .site-header {
    border-bottom-width: 3px;
    box-shadow: 0 6px 0 rgba(0,0,0,.12);
  }

  .player-bar {
    border-top-width: 3px;
    box-shadow: 0 -6px 0 rgba(0,0,0,.12);
  }
}

/* =========================================================
   'HOE WERKT' DIT - KADER
   ========================================================= */

.help-panel {
  margin: 0 0 18px;
  padding: 16px 18px;
  background: var(--paper);
  border: 4px solid var(--drawn-line);
  border-radius: var(--drawn-radius);
  box-shadow: var(--drawn-shadow-small);
}

.help-panel summary {
  cursor: pointer;
  font-weight: 850;
  color: var(--accent-2);
  list-style: none;
}

.help-panel summary::-webkit-details-marker {
  display: none;
}

.help-panel summary::before {
  content: "＋ ";
  color: var(--accent);
}

.help-panel[open] summary::before {
  content: "− ";
}

.help-content {
  margin-top: 12px;
  max-width: 860px;
}

.help-content p {
  margin: 0 0 10px;
  color: var(--muted);
}

.help-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .help-panel {
    border-width: 3px;
    border-radius: 20px;
    box-shadow: 6px 6px 0 rgba(0,0,0,.14);
  }
}

/* =========================================================
   CORRECTIE: GETEKENDE STIJL ALLEEN WAAR NODIG
   ========================================================= */

/* Eerst alle te brede kader-effecten terugzetten */
.controls,
.intro-block,
.side-toolbar,
.audio-card,
.map-wrap,
.text-panel,
.colophon,
.help-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: none;
}

/* Bovenrand site wel stevig, zoals intro */
.site-header {
  border-bottom: 4px solid #111111;
  box-shadow: 0 8px 0 rgba(0,0,0,.14);
}

/* Playerbalk ook stevig, zoals intro */
.player-bar {
  border-top: 4px solid #111111;
  box-shadow: 0 -8px 0 rgba(0,0,0,.14);
}

/* Gewone fragmentkaarten blijven rustig */
.audio-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: none;
  transform: none;
}

/* Alleen bij hover krijgt fragment een getekend kader */
.audio-card:hover {
  border: 4px solid #111111;
  box-shadow: 6px 6px 0 rgba(0,0,0,.16);
  background: #fff8d8;
  transform: translate(-1px, -1px);
}

/* Geselecteerd fragment krijgt duidelijkere getekende staat */
.audio-card.active {
  border: 4px solid #111111;
  box-shadow: 10px 10px 0 rgba(0,0,0,.18);
  background: #fff8d8;
  transform: translate(-2px, -2px);
}

/* Als geselecteerd én hover: niet dubbel overdreven */
.audio-card.active:hover {
  box-shadow: 10px 10px 0 rgba(0,0,0,.18);
}

/* Knoppen weer rustiger, anders wordt alles te cartoon */
button,
input,
select {
  border: 1px solid var(--line);
  box-shadow: none;
  transform: none;
}

/* Iconknoppen in player mogen iets steviger blijven */
.player-bar button {
  border: 3px solid #111111;
  box-shadow: 4px 4px 0 rgba(0,0,0,.18);
}

/* Hover op playerknoppen */
.player-bar button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 rgba(0,0,0,.18);
}

/* Mobile: bovenrand en player iets minder zwaar */
@media (max-width: 760px) {
  .site-header {
    border-bottom-width: 3px;
    box-shadow: 0 6px 0 rgba(0,0,0,.12);
  }

  .player-bar {
    border-top-width: 3px;
    box-shadow: 0 -6px 0 rgba(0,0,0,.12);
  }

  .audio-card:hover,
  .audio-card.active {
    border-width: 3px;
    box-shadow: 6px 6px 0 rgba(0,0,0,.16);
  }
}

/* =========================================================
   FIX: KAARTMARKERS NIET LATEN VERSPRINGEN OP HOVER
   ========================================================= */

.map-wrap .marker,
.map-wrap .marker:hover,
.map-wrap .marker:focus,
.map-wrap .marker:focus-visible,
.map-wrap .marker.active,
.map-wrap .marker.current,
.map-wrap .marker.active.current {
  transform: translate(-50%, -50%);
}

/* Voorkom dat algemene button-hover-schaduw op markers inwerkt */
.map-wrap .marker:hover,
.map-wrap .marker:focus-visible {
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}

/* Huidige/actieve marker behoudt eigen highlight */
.map-wrap .marker.current {
  box-shadow:
    0 0 0 4px color-mix(in srgb, #f2c94c 36%, transparent),
    0 2px 10px rgba(0,0,0,.25);
}
/* =========================================================
   Verberg knop 'Speel zichtbare lijst af'
   ========================================================= */
#playAllBtn {
  display: none !important;
}
/* =========================================================
   Verberg metadata-labels in fragmentkaders
   ========================================================= */
   .audio-card .meta {
  display: none !important;
}
/* =========================================================
   Meer filters minder prominent maken
   ========================================================= */
.controls {
  grid-template-columns: repeat(3, minmax(160px, 1fr));
}

.more-filters {
  margin: -4px 0 18px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.more-filters summary {
  cursor: pointer;
  font-weight: 750;
  color: var(--accent-2);
}

.more-filters-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

@media (max-width: 760px) {
  .controls,
  .more-filters-grid {
    grid-template-columns: 1fr;
  }
}


.active-selection {
  margin: 0 0 12px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: .92rem;
}

.colophon summary {
  cursor: pointer;
  font-family: var(--display-font);
  font-weight: 850;
  color: var(--accent-2);
  list-style: none;
}

.colophon summary::-webkit-details-marker {
  display: none;
}

.colophon summary::before {
  content: "＋ ";
  color: var(--accent);
}

.colophon[open] summary::before {
  content: "− ";
}

.colophon-content {
  margin-top: 14px;
  margin-bottom: 14px;
}

/* =========================================================
   INTERFACE VEREENVOUDIGEN
   Alleen Ordening, Dossier en Locatie zichtbaar houden
   ========================================================= */

/* Verberg categorie, brontype en zoekbalk zonder JS stuk te maken */
.controls label:has(#categoryFilter),
.controls label:has(#sourceTypeFilter),
.controls label:has(#searchInput) {
  display: none !important;
}

/* Maak de filterbalk drie kolommen breed */
.controls {
  grid-template-columns: repeat(3, minmax(160px, 1fr));
}

@media (max-width: 760px) {
  .controls {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   FIX: GENOEG RUIMTE ONDERAAN VOOR FIXED AUDIOPLAYER
   ========================================================= */

:root {
  --player-h: 65px;
}

body {
  padding-bottom: calc(var(--player-h) + 48px);
}

.colophon {
  margin-bottom: 80px;
}

@media (max-width: 760px) {
  :root {
    --player-h: 260px;
  }

  body {
    padding-bottom: calc(var(--player-h) + 64px);
  }

  .colophon {
    margin-bottom: 96px;
  }
}

/* Verberg tijdstijlknop */
#toggleEraBtn {
  display: none !important;
}

/* =========================================================
   MOBIEL: ORDENING EN FILTERS INKLAPBAAR
   ========================================================= */

.filter-drawer {
  margin-bottom: 16px;
}

.filter-drawer summary {
  display: none;
}

/* Desktop: filters gewoon open tonen */
@media (min-width: 761px) {
  .filter-drawer {
    display: block;
  }

  .filter-drawer summary {
    display: none;
  }

  .filter-drawer .controls {
    margin-bottom: 14px;
  }
}

/* Mobiel: compact inklapblok */
@media (max-width: 760px) {
  .filter-drawer {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    margin-bottom: 14px;
  }

  .filter-drawer summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    cursor: pointer;
    padding: 12px 14px;
    font-weight: 800;
    color: var(--accent-2);
  }

  .filter-drawer summary::-webkit-details-marker {
    display: none;
  }

  .filter-drawer summary::before {
    content: "＋";
    color: var(--accent);
    font-weight: 900;
  }

  .filter-drawer[open] summary::before {
    content: "−";
  }

  #filterSummary {
    font-weight: 500;
    color: var(--muted);
    font-size: .85rem;
    text-align: right;
  }

  .filter-drawer .controls {
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0 0 16px 16px;
    margin: 0;
    padding: 12px;
    background: transparent;
  }
}

/* Mobiel: tekst van filterdrawer links uitlijnen */
@media (max-width: 760px) {
  .filter-drawer summary {
    justify-content: flex-start;
    text-align: left;
  }

  .filter-drawer summary span {
    text-align: left;
  }
}

/* Verberg aantal fragmenten */
#countLabel {
  display: none !important;
}

/* =========================================================
   MOBIEL: ORDENING EN FILTERS ONDER DE FRAGMENTEN
   ========================================================= */

@media (max-width: 760px) {
  main {
    display: flex;
    flex-direction: column;
  }

  .intro-block {
    order: 1;
  }

  .help-panel {
    order: 2;
  }

  .layout {
    order: 3;
  }

  .filter-drawer {
    order: 4;
    margin-top: 18px;
    margin-bottom: 18px;
  }

  .colophon {
    order: 5;
  }
}

.help-intro {
  margin: 0 0 14px;
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  font-size: 1em;
  line-height: 1.45;
}

/* Hoe werkt dit-kader op desktop breder maken */
.help-content {
  max-width: none;
}

/* =========================================================
   PLAYERBEDIENING DUIDELIJKER MAKEN
   ========================================================= */

#playAllBtn {
  display: inline-flex !important;
}

.transport {
  display: flex;
  align-items: center;
  gap: 8px;
}

.playlist-button {
  width: auto;
  min-width: auto;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.main-play-button {
  width: 52px;
  height: 52px;
  font-size: 1.45rem;
  background: var(--accent-2);
  color: white;
  border-color: #111111;
}

.main-play-button:hover {
  background: var(--accent);
}

@media (max-width: 760px) {
  .transport {
    flex-wrap: wrap;
  }

  .playlist-button {
    order: 1;
    flex: 1 1 100%;
    justify-content: center;
  }

  #prevBtn {
    order: 2;
  }

  #playPauseBtn {
    order: 3;
  }

  #nextBtn {
    order: 4;
  }

  #shuffleBtn {
    order: 5;
  }
}

/* Grote play/pauze-knop zonder emoji-rendering */
.main-play-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  font-size: 0;
  line-height: 1;
  overflow: hidden;
}

/* Play-driehoek */
.main-play-button::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 17px solid currentColor;
}

/* Pauze-icoon */
.main-play-button.is-playing::before {
  width: 18px;
  height: 22px;
  margin-left: 0;
  border: 0;
  background:
    linear-gradient(
      to right,
      currentColor 0 6px,
      transparent 6px 12px,
      currentColor 12px 18px
    );
}

/* Extra zekerheid tegen rare mobiele emoji/blok-rendering */
.main-play-button {
  appearance: none;
  -webkit-appearance: none;
  text-decoration: none;
}

/* Speel selectie op mobiel weer smal in dezelfde rij */
@media (max-width: 760px) {
  .transport {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }

  #prevBtn {
    order: 1;
  }

  #playPauseBtn {
    order: 2;
  }

  #nextBtn {
    order: 3;
  }

  #shuffleBtn {
    order: 4;
  }

  #playAllBtn {
    order: 5;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    justify-content: center;
    font-size: .9rem;
    white-space: nowrap;
  }

  .playlist-button {
    flex: 0 0 auto !important;
    width: auto !important;
  }
}

/* Play/pauze knop goed zichtbaar houden bij donkermodus */
.main-play-button,
.main-play-button:hover,
.main-play-button:focus,
.main-play-button:focus-visible {
  background: #f2c94c !important;
  color: #111111 !important;
  border-color: #111111 !important;
}

/* Voorkomt dat mobiele browsers form controls donker gaan interpreteren */
.main-play-button {
  color-scheme: light;
}

/* infolinks */
.more-info-links {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: .92rem;
}

.more-info-links h4 {
  margin: 0 0 8px;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}

.more-info-links a {
  display: block;
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin: 4px 0;
}

.more-info-links a::after {
  content: " ↗";
  text-decoration: none;
}