@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --color-white: #fff;
    --spacing: 0.25rem;
    --text-sm: 0.875rem;
    --text-sm--line-height: calc(1.25 / 0.875);
    --font-weight-medium: 500;
    --radius-md: 0.375rem;
    --default-transition-duration: 150ms;
    --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr { height: 0; color: inherit; border-top-width: 1px; }
  abbr:where([title]) { text-decoration: underline dotted; }
  h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
  a { color: inherit; text-decoration: inherit; }
  b, strong { font-weight: bolder; }
  small { font-size: 80%; }
  sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
  sub { bottom: -0.25em; }
  sup { top: -0.5em; }
  table { text-indent: 0; border-color: inherit; border-collapse: collapse; }
  ol, ul, menu { list-style: none; }
  img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; }
  img, video { max-width: 100%; height: auto; }
  button, input, select, optgroup, textarea, ::file-selector-button { font: inherit; color: inherit; border-radius: 0; background-color: transparent; opacity: 1; }
  textarea { resize: vertical; }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button { appearance: button; }
  [hidden]:where(:not([hidden="until-found"])) { display: none !important; }
}
@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
}
:root {
  font-family: Manrope, Arial, sans-serif;
  color: #f4f4f4;
  background: #090909;
  font-synthesis: weight;
  --accent: #ff512f;
  --muted: #919191;
  --border: #292929;
  --background: #090909;
  --foreground: #f4f4f4;
  --radius: 0.6rem;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; background: none; color: inherit; transition: background 0.18s, color 0.18s, border-color 0.18s; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: not-allowed; opacity: 0.35; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
input:focus, select:focus, textarea:focus { outline: 1px solid var(--accent); }
svg { flex-shrink: 0; }
::selection { background: #ff512f55; color: white; }
html { scroll-behavior: smooth; scrollbar-color: #373737 #101010; }
p { line-height: 1.7; }
h1, h2, h3, p { margin: 0; }
.muted { color: var(--muted); }
.orange { color: var(--accent); }
.site-shell { overflow-x: hidden; }
.topbar, main, .site-footer { max-width: 1400px; margin: 0 auto; padding-left: 48px; padding-right: 48px; }
.topbar { height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid #222; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 18px; letter-spacing: -0.6px; flex-shrink: 0; }
.brand b { font-weight: 800; }
.brand small { display: block; color: #7c7c7c; font-size: 7px; letter-spacing: 1.6px; margin-top: 3px; }
.brand-mark { width: 37px; height: 37px; background: var(--accent); color: #fff; display: grid; place-items: center; border-radius: 10px; transform: rotate(-7deg); }
.brand-mark svg { transform: rotate(7deg); }
nav { display: flex; align-items: center; gap: 28px; margin-left: 24px; }
nav button { padding: 12px 0; font-size: 12px; color: #8d8d8d; position: relative; }
nav button.active { color: #fff; }
nav button.active:after { content: ""; position: absolute; bottom: 2px; left: 0; right: 0; margin: auto; width: 16px; height: 2px; background: var(--accent); }
.topbar-right { display: flex; align-items: center; gap: 20px; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: #b9b9b9; white-space: nowrap; }
.status i, .live-update i { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: #78c99d; box-shadow: 0 0 7px #78c99d25; }
.clocks { display: flex; gap: 14px; color: #888; font-size: 10px; font-variant-numeric: tabular-nums; }
.clocks span { display: flex; align-items: center; gap: 6px; }
.clocks b { color: #b7b7b7; font-weight: 500; }
.hero { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 72px; padding: 57px 30px 52px; min-height: 383px; }
.orbital-glow { position: absolute; pointer-events: none; inset: -260px -100px -100px -100px; z-index: -1; opacity: 0.58; background: radial-gradient(ellipse 90px 220px at 5% 32%, #ffc2376b, transparent 75%), radial-gradient(ellipse 200px 160px at 9% 10%, #ff4d2370, transparent 80%), radial-gradient(ellipse 110px 190px at 99% 51%, #ff582959, transparent 80%), radial-gradient(ellipse 70px 150px at 96% 45%, #d836bc42, transparent 70%), radial-gradient(ellipse 150px 90px at 99% 25%, #32c6f243, transparent 75%); filter: blur(20px); }
.eyebrow { font-size: 9px; letter-spacing: 1.8px; font-weight: 600; color: #a8a8a8; display: flex; align-items: center; gap: 8px; }
.mini-line { height: 1px; width: 18px; background: var(--accent); }
h1 { font-size: 55px; line-height: 1.11; letter-spacing: -2.8px; font-weight: 600; margin: 18px 0 16px; }
h1 span { color: #737373; }
.hero-copy > p { color: #9a9a9a; font-size: 12px; line-height: 1.85; margin-bottom: 24px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 39px; padding: 10px 16px; border: 1px solid transparent; border-radius: 6px; font-size: 11px; font-weight: 600; }
.button.primary { background: var(--accent); color: #fff; border-color: #ff684b; }
.button.primary:hover { background: #ed4020; }
.button.secondary { background: #222; border-color: #343434; }
.button.secondary:hover { background: #2c2c2c; }
.hero-note { display: inline-block; color: #656565; font-size: 10px; margin-left: 15px; }
.hero-live { max-width: 395px; width: 100%; justify-self: end; padding-top: 13px; }
.live-card { background: linear-gradient(110deg, #1b1b1b, #121212); border: 1px solid #333; border-radius: 12px; padding: 21px 24px 16px; box-shadow: 0 18px 60px #0006; transform: rotate(-1.5deg); }
.live-card-top { display: flex; align-items: center; justify-content: space-between; color: var(--accent); margin-bottom: 23px; }
.live-card-top .status { font-size: 8px; letter-spacing: 1.3px; color: #b6b6b6; }
.live-card-top .status i { background: var(--accent); box-shadow: 0 0 8px #ff512f33; }
.now-track { display: flex; gap: 17px; align-items: center; }
.cover { width: 43px; height: 43px; border-radius: 6px; background: #252525; display: grid; place-items: center; overflow: hidden; padding: 0; color: #737373; flex-shrink: 0; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.now-track .cover { width: 77px; height: 77px; border-radius: 8px; }
.now-track > div { min-width: 0; }
.now-track small { font-size: 7px; letter-spacing: 1.3px; color: #727272; }
.now-title { display: block; font-size: 19px; letter-spacing: -0.6px; font-weight: 700; margin: 5px 0 4px; padding: 0; text-align: left; }
.artist-line { font-size: 9px; color: #9b9b9b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.6; }
.artist-line button, .artist-line a, .artist-line span { color: inherit; padding: 0; text-align: left; cursor: pointer; }
.artist-line button:hover, .artist-line a:hover, .artist-line span:hover { text-decoration: underline; text-underline-offset: 3px; color: var(--accent); }
.track-meta { font-size: 9px; color: #777; display: flex; gap: 8px; margin-top: 3px; }
.now-progress { margin-top: 22px; }
.progress-track { height: 3px; background: #333; border-radius: 5px; overflow: hidden; }
.progress-track i { display: block; height: 100%; background: var(--accent); }
.now-progress > div:last-child { display: flex; justify-content: space-between; font-size: 8px; color: #838383; margin-top: 8px; font-variant-numeric: tabular-nums; }
.live-card-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 13px; border-top: 1px solid #2c2c2c; }
.live-card-bottom > span:first-child { display: flex; gap: 6px; align-items: center; font-size: 8px; color: #737373; }
.equalizer { display: flex; align-items: center; gap: 2px; height: 15px; }
.equalizer i { width: 2px; height: 7px; background: var(--accent); animation: eq 1.2s infinite alternate; }
.equalizer i:nth-child(2) { height: 13px; animation-delay: 0.3s; }
.equalizer i:nth-child(3) { height: 10px; animation-delay: 0.7s; }
.equalizer i:nth-child(4) { height: 15px; animation-delay: 0.2s; }
.equalizer i:nth-child(5) { height: 8px; animation-delay: 0.6s; }
.live-under { font-size: 9px; color: #6d6d6d; text-align: center; margin-top: 21px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.live-under i { width: 3px; height: 3px; border-radius: 50%; background: #707070; }
.dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 16px; margin-bottom: 23px; }
.dashboard-heading .eyebrow { font-size: 8px; color: #777; letter-spacing: 1.8px; margin-bottom: 7px; }
h2 { font-size: 25px; letter-spacing: -0.8px; font-weight: 600; line-height: 1.3; }
.dashboard-heading h2 span { color: var(--accent); }
.live-update { font-size: 9px; color: #828282; display: flex; gap: 7px; align-items: center; padding-bottom: 3px; }
.live-update i { width: 4px; height: 4px; }
.filters { border: 1px solid var(--border); border-radius: 9px; display: flex; align-items: center; gap: 5px; padding: 17px 19px; background: #141414; margin-bottom: 5px; flex-wrap: wrap; }
.select-field { min-width: 126px; }
.select-field label, .search-field label { display: block; color: #777; font-size: 8px; letter-spacing: 0.5px; margin-bottom: 7px; }
.select-field > div { position: relative; display: flex; align-items: center; gap: 5px; }
.select-field select { appearance: none; background: none; border: 0; color: #d5d5d5; font-size: 10px; width: 100%; padding: 2px 15px 2px 0; cursor: pointer; min-height: 20px; }
.select-field svg { position: absolute; right: 0; pointer-events: none; color: #7d7d7d; }
.select-field option { background: #1d1d1d; color: #ddd; }
.decade-field { min-width: 100px; }
.short-field { min-width: 65px; }
.filter-divider { width: 1px; height: 31px; background: #2b2b2b; margin: 0 4px; }
.search-field { min-width: 90px; flex: 1; }
.search-field > div { display: flex; align-items: center; gap: 7px; color: #6e6e6e; }
.search-field input { background: none; border: 0; color: #ddd; width: 100%; font-size: 10px; min-width: 0; padding: 2px 0; min-height: 20px; }
.search-field input::placeholder { color: #696969; }
.switch-field { display: flex; gap: 8px; align-items: center; font-size: 9px; color: #8d8d8d; margin-left: 6px; white-space: nowrap; cursor: pointer; }
.switch-field input { position: absolute; opacity: 0; width: 28px; height: 17px; }
.switch { width: 27px; height: 15px; display: block; border-radius: 20px; background: #333; padding: 3px; transition: background 0.2s; }
.switch i { display: block; width: 9px; height: 9px; border-radius: 100%; background: #888; transition: transform 0.2s; }
.switch-field input:checked + .switch { background: var(--accent); }
.switch-field input:checked + .switch i { transform: translateX(12px); background: #fff; }
.clear-search { padding: 4px; background: #292929; border-radius: 4px; cursor: pointer; }

/* MODAL STYLES */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}
.modal-card {
  background: #141414;
  border: 1px solid #282828;
  border-radius: 12px;
  width: 100%;
  max-width: 580px;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  color: #888;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
}
.modal-close:hover { color: #fff; }
.modal-eyebrow {
  font-size: 8px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #888;
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.modal-card h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #fff;
}
.modal-track-info {
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.modal-track-info img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
}
.modal-track-info strong {
  display: block;
  font-size: 15px;
  color: #fff;
}
.modal-track-info span {
  font-size: 12px;
  color: #999;
}

/* OVER DIT NUMMER MODAL DETAILS & RECHTSBOVEN KNOPPEN */
.modal-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.header-quick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 32px;
}

.btn-fragment-top, .btn-youtube-top, .btn-songrights-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-fragment-top {
  background: #1f1f1f;
  border: 1px solid #333;
  color: #fff;
}
.btn-fragment-top:hover { background: #2a2a2a; }

.btn-songrights-top {
  background: #1f1f1f;
  border: 1px solid #333;
  color: #aaa;
}
.btn-songrights-top:hover { background: #2a2a2a; color: #fff; }

.btn-youtube-top {
  background: #ff000015;
  border: 1px solid #ff000040;
  color: #ff4d4d;
}
.btn-youtube-top:hover { background: #ff000025; border-color: #ff0000; }

.detail-header {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}
.detail-cover {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  flex-shrink: 0;
}
.detail-main-title {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 4px;
}
.detail-artist-name {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 0px;
}
.modal-eyebrow-id {
  margin-left: 6px;
  color: #888;
  font-variant-numeric: tabular-nums;
}

/* RIJ MET METRICS ONDER DE COVER */
.detail-stats-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.stat-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-box label {
  font-size: 9px;
  color: #777;
  font-weight: 500;
  text-transform: uppercase;
}
.stat-box .value-container {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
  word-break: break-word;
}

/* EXTRA INFORMATIEVELDEN INLINE MET VASTE LABELBREEDTE VOOR UITLIJNING */
.detail-extra-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 11px;
}
.extra-info-item {
  display: flex;
  gap: 12px;
  align-items: baseline;
  word-break: break-word;
  width: 100%;
}
.extra-info-item label {
  font-size: 9px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 120px;
  flex-shrink: 0;
}
.extra-info-item span {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

/* GROTE OPVALLENDE AANVRAAGKNOP ONDERIN */
.btn-request-full {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  border: 1px solid #ff684b;
}
.btn-request-full:hover { background: #ed4020; }

.form-group {
  margin-bottom: 16px;
  text-align: left;
}
.form-group label {
  display: block;
  font-size: 11px;
  color: #aaa;
  margin-bottom: 6px;
}
.form-group label small { color: #666; }
.form-group input, .form-group textarea {
  width: 100%;
  background: #191919;
  border: 1px solid #2e2e2e;
  border-radius: 6px;
  padding: 10px 14px;
  color: #fff;
  font-size: 12px;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #555; }
.modal-note {
  font-size: 10px;
  color: #777;
  margin-top: 18px;
  margin-bottom: 18px;
  line-height: 1.4;
}
.modal-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 12px;
  font-size: 12px;
}

/* AANVRAAGKNOP + BROADCAST-SCHAKELAAR OP ÉÉN RIJ */
.request-actions-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}
.request-actions-row #submitBtn {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}
.request-actions-row .request-broadcast-btn {
  display: none;
  flex: 0 0 46px;
  width: 46px;
  min-width: 46px;
  height: auto;
  min-height: 44px;
  padding: 0;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 700;
  align-self: stretch;
}

/* Broadcast-knop naast 'Vraag dit nummer aan' in de detailpop-up */
.detail-request-actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}
.detail-request-actions #detailRequestBtn {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}
.detail-request-actions .detail-request-broadcast {
  display: none;
  flex: 0 0 48px;
  width: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 700;
  place-items: center;
}

/* DYNAMISCHE UITLIJNING & GELIJKE HOOGTE VOOR REGELS */
.dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; align-items: stretch; transition: grid-template-columns 0.3s ease; }
.dashboard-grid.logged-out { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel { background: #121212; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; min-width: 0; display: flex; flex-direction: column; }
.dashboard-grid > .panel { height: 660px; min-height: 660px; max-height: 660px; box-sizing: border-box; }
.chart-panel #chartRowsContainer, #queueRowsContainer, .history-panel #historyRowsContainer { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
#queueRowsContainer { flex-grow: 1; }

/* VASTE HOOGTE VOOR ALLE PANEL HEADERS */
.panel-heading { height: 32px; min-height: 32px; max-height: 32px; padding: 14px 17px 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; box-sizing: border-box; }
.panel-title { display: flex; align-items: center; gap: 8px; }
.panel-title > svg { color: #808080; width: 15px; }
.panel-title h3 { font-size: 12px; font-weight: 600; white-space: nowrap; }
.count-badge { background: #242424; border: 1px solid #333; border-radius: 4px; color: #8a8a8a; padding: 1px 5px; font-size: 8px; }
.panel-heading > .muted { font-size: 8px; white-space: nowrap; }
.status.small { font-size: 7px; letter-spacing: 1px; gap: 5px; }
.status.small i { height: 4px; width: 4px; }

.chart-tabs { 
  margin: 5px 17px 4px; 
  padding: 2px 4px; 
  background: #181818; 
  border-radius: 8px; 
  display: flex; 
  gap: 3px; 
  overflow-x: hidden; 
  height: 31px;
  min-height: 31px;
  max-height: 31px;
  box-sizing: border-box;
  align-items: center;
}

.chart-tabs button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 2px; 
  font-size: 9.5px;
  font-weight: 500;
  color: #777;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.chart-tabs button:hover {
  color: #bbb;
}
.chart-tabs button.active {
  color: #f4f4f4;
  background: #232323;
  border-color: #383838;
}
.chart-tabs button.active::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 2px;
}

.panel-description { height: 40px; min-height: 40px; max-height: 40px; box-sizing: border-box; padding: 5px 0 0; margin: 0 17px; font-size: 9px; color: #777; display: block; line-height: 1.5; }

/* KOLOMKOPPEN (VASTE HOOGTE VOOR UNIFORMITEIT) */
.column-labels { display: grid; grid-template-columns: 1fr 45px 39px 34px 25px; gap: 6px; color: #626262; font-size: 6px; letter-spacing: 0.9px; padding: 0 17px; height: 32px; align-items: center; border-bottom: 1px solid #262626; box-sizing: border-box; }
.column-labels span:not(:first-child) { text-align: center; }

/* UNIFORME VASTE HOOGTE VOOR ALLE TRACK ROWS */
.track-row { display: flex; align-items: center; gap: 10px; padding: 0 15px; height: 50px; min-height: 50px; max-height: 50px; border-bottom: 1px solid #242424; box-sizing: border-box; transition: background 0.2s; }
.track-row:hover { background: #181818; }
button.fragment-active { border-color: var(--accent) !important; box-shadow: 0 0 0 2px rgba(255,81,47,0.25) !important; }
.track-row.is-now-playing { background: rgba(255,81,47,0.07); box-shadow: inset 3px 0 0 var(--accent); }
.track-row.is-now-playing:hover { background: rgba(255,81,47,0.12); }
.track-row.top-riser { background: rgba(121,199,165,0.08); box-shadow: inset 3px 0 0 #79c7a5; }
.track-row.top-riser:hover { background: rgba(121,199,165,0.14); }
.track-row.top-faller { background: rgba(199,120,105,0.08); box-shadow: inset 3px 0 0 #c77869; }
.track-row.top-faller:hover { background: rgba(199,120,105,0.14); }

.rank { font-size: 11px; color: #686868; width: 17px; flex-shrink: 0; text-align: center; font-variant-numeric: tabular-nums; }
.top-rank { color: #ff795c; }
.cover-wrapper { position: relative; flex-shrink: 0; }
.cover-play { position: absolute; bottom: -3px; right: -3px; background: #292929; border: 1px solid #4b4b4b; border-radius: 50%; height: 17px; width: 17px; display: grid; place-items: center; padding: 0; color: #fff; }
.cover-play:hover { background: var(--accent); }
.track-copy { flex: 1; min-width: 0; }
.track-title { display: block; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; width: 100%; text-align: left; padding: 0; line-height: 1.4; cursor: pointer; }
.track-title:hover { color: var(--accent); text-decoration: underline; }
.artist-line { font-size: 9px; line-height: 1.5; color: #9b9b9b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.movement { display: flex; align-items: center; justify-content: center; gap: 2px; width: 33px; font-size: 8px; color: #737373; flex-shrink: 0; }
.movement.up { color: #79c7a5; }
.movement.down { color: #c77869; }
.movement.nieuw { color: #f1c40f; font-weight: 700; font-size: 7px; letter-spacing: 0.5px; }

.weeks-count { font-size: 9px; width: 22px; text-align: center; color: #aaa; flex-shrink: 0; }
.weeks-count small { display: block; font-size: 6px; color: #676767; }
.duration { font-size: 8px; color: #797979; width: 30px; text-align: right; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.add-track { border: 1px solid #333; border-radius: 5px; background: #222; width: 24px; height: 24px; display: grid; place-items: center; padding: 0; color: #aaa; flex-shrink: 0; cursor: pointer; }
.add-track:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.add-track:disabled { background: #1a1a1a; border-color: #262626; color: #444; cursor: not-allowed; opacity: 0.5; }
.add-track:disabled:hover { background: #1a1a1a; border-color: #262626; color: #444; }

.queue .cover, .history .cover { width: 32px; height: 32px; border-radius: 4px; }
.queue, .history { padding: 0 13px; gap: 8px; height: 50px; min-height: 50px; max-height: 50px; }
.queue .rank { font-size: 9px; width: 15px; }
.history-time { font-size: 7px; color: #6e6e6e; width: 30px; text-align: center; flex-shrink: 0; }
.now-pill { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 6px; letter-spacing: 0.8px; color: var(--accent); background: #ff512f15; border: 1px solid #ff512f30; padding: 3px 4px; border-radius: 3px; }
.now-pill-countdown { display: block; margin-top: 2px; font-size: 7px; line-height: 1; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.request-label { flex-shrink: 0; margin-left: 6px; padding: 2px 5px; border: 1px solid rgba(255,81,47,0.3); border-radius: 4px; background: rgba(255,81,47,0.08); color: #ff896f; font-size: 7px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.history:first-of-type { background: #ff512f04; }
.panel-footer { padding: 13px 17px; display: flex; align-items: center; justify-content: space-between; background: #141414; min-height: 49px; color: #6f6f6f; font-size: 8px; }
.week-arrows { display: flex; gap: 9px; }
.week-arrows button { display: grid; place-items: center; padding: 2px; color: #999; }
.history-more { width: 100%; display: flex; gap: 8px; justify-content: center; align-items: center; font-size: 8px; color: #898989; padding: 19px 6px; background: #151515; }
.bottom-note { display: flex; align-items: center; gap: 8px; color: #5e5e5e; font-size: 9px; padding: 24px 2px 35px; flex-wrap: wrap; }
.bottom-note > span:last-child { margin-left: auto; display: flex; gap: 12px; align-items: center; font-size: 8px; }
.site-footer { display: flex; align-items: center; gap: 18px; padding-top: 25px; padding-bottom: 32px; font-size: 9px; color: #666; flex-wrap: wrap; }
.site-footer { display: grid !important; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 5px; }
.footer-col { display:flex; align-items:center; justify-content:center; gap:12px; text-align:center; flex-wrap:wrap; }
.site-footer .footer-note { justify-content:center !important; }
@media (max-width: 1000px){ .site-footer { grid-template-columns: 1fr; gap: 12px; } }
.footer-note { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; color: #5e5e5e; font-size: 9px; }
.footer-note i { display:inline-block; width:3px; height:3px; border-radius:50%; background:#5e5e5e; margin:0 6px; vertical-align:middle; }
.empty-state { padding: 36px 20px; display: flex; align-items: center; flex-direction: column; gap: 12px; color: #888; font-size: 12px; text-align: center; min-height: 140px; }

/* WACHTRIJ & NET GEDRAAID: KOLOMMEN EXACT UITGELIJND */
.column-labels.side-labels { display: grid; grid-template-columns: 38px 32px 1fr 34px 30px; gap: 8px; padding: 0 13px; align-items: center; box-sizing: border-box; }
.column-labels.side-labels.logged-in { grid-template-columns: 38px 32px 1fr 34px 30px 24px; }
.column-labels.side-labels span { text-align: center; }
.column-labels.side-labels span:first-child { text-align: center; }
.column-labels.side-labels span:nth-child(2) { text-align: left; }
.column-labels.side-labels span:nth-child(3) { text-align: left; }
.column-labels.side-labels span:nth-child(4) { text-align: center; }
.column-labels.side-labels span:nth-child(5) { text-align: right; }
.column-labels.side-labels.logged-in span:last-child { text-align: center; }

.queue .weeks-count, .history .weeks-count { width: 34px; text-align: center; }
.queue .duration, .history .duration { width: 30px; text-align: right; }
.history .history-time, .history .now-pill { width: 38px; min-width: 38px; flex-shrink: 0; box-sizing: border-box; text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* PAUZE-ICOON */
.pause-icon { display: flex; gap: 2px; align-items: center; justify-content: center; }
.pause-icon i { display: block; width: 2px; height: 7px; background: currentColor; border-radius: 0.5px; }
@keyframes eq { to { transform: scaleY(0.4); } }
#liveCard { transition: opacity 0.45s ease, translate 0.45s ease; }
#liveCard.swap { opacity: 0; translate: -120vw 0; }
#liveCard.enter { opacity: 0; translate: 120vw 0; transition: none; }
#npCover { width: 100%; height: 100%; object-fit: cover; }

/* VERFIJNDE RADIOSTUDIO-STIJL */
.live-card {
  transform: rotate(-1.5deg);
  border-color: rgba(255,255,255,0.09);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 92% 4%, rgba(255,81,47,0.17), transparent 43%),
    linear-gradient(145deg, #1b1d20 0%, #121315 68%, #101112 100%);
  box-shadow: 0 22px 60px rgba(0,0,0,0.48), inset 0 1px 0 rgba(255,255,255,0.04);
}
.live-card-top { margin-bottom: 25px; }
.live-card-top .status { color: #c4c6ca; }
.now-track .cover {
  width: 88px;
  height: 88px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 28px rgba(0,0,0,0.42), 0 0 28px rgba(255,81,47,0.09);
}
.now-track small { color: #a0a2a6; }
.now-title { font-size: 20px; letter-spacing: -0.45px; }
.artist-line { color: #b0b2b6; }
.progress-track { height: 4px; background: #303237; }
.progress-track i { background: linear-gradient(90deg, #ff684b, #ff512f); }
.live-card-bottom { border-top-color: rgba(255,255,255,0.09); }
.equalizer i { border-radius: 2px; box-shadow: 0 0 8px rgba(255,81,47,0.22); }

.panel {
  border-color: #2c2e32;
  border-radius: 14px;
  background: linear-gradient(155deg, #151618 0%, #111214 100%);
  box-shadow: 0 14px 36px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.025);
}
.panel-title h3 { letter-spacing: 0.1px; }
.panel-description { color: #92949a; }
.count-badge { background: #24262a; border-color: #35383d; color: #b0b2b6; }
.chart-tabs {
  background: #191a1d;
  border: 1px solid #292b30;
}
.chart-tabs button.active {
  color: #fff;
  background: linear-gradient(135deg, #30231f, #242224);
  border-color: #694033;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.chart-tabs button.active::before { box-shadow: 0 0 8px rgba(255,81,47,0.55); }
.track-row { border-bottom-color: rgba(255,255,255,0.075); }
.track-row:hover { background: rgba(255,255,255,0.035); }
.track-row.is-now-playing {
  background: linear-gradient(90deg, rgba(255,81,47,0.12), rgba(255,81,47,0.025) 72%);
  box-shadow: inset 3px 0 0 #ff684b;
}
.track-row.is-now-playing:hover {
  background: linear-gradient(90deg, rgba(255,81,47,0.17), rgba(255,81,47,0.04) 72%);
}
.track-row.has-broadcast .rank {
    font-weight: 800;
    color: #ffffff;
    font-size: 10px;
}

/* Stijlen voor de audio-besturing in de header */
.topbar-player {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 20px;
  padding-left: 20px;
}

.play-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent, #ff512f);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255, 81, 47, 0.25);
  transition: background 0.18s, transform 0.18s;
  cursor: pointer;
  border: 0;
}

.play-btn:hover {
  background: #ed4020;
  transform: scale(1.04);
}

.play-btn:active {
  transform: scale(0.97);
}

.play-btn svg {
  display: none;
}

.play-btn .icon-play {
  display: block;
}

.playing .play-btn .icon-play {
  display: none;
}

.playing .play-btn .icon-pause {
  display: block;
}

.player-state {
  font-size: 10px;
  letter-spacing: 1.2px;
  color: #8a8a8a;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.player-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6d6d6d;
  display: inline-block;
}

.playing .player-state {
  color: #b6b6b6;
}

.playing .player-state i {
  background: #78c99d;
  box-shadow: 0 0 8px #78c99d55;
  animation: pulse 1.4s infinite alternate;
}

@keyframes pulse {
  to {
    opacity: 0.35;
  }
}

.volume {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: #8a8a8a;
}

.volume input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 70px;
  height: 4px;
  background: #333;
  border-radius: 5px;
  outline: none;
  cursor: pointer;
}

.volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent, #ff512f);
  border: 0;
}

.volume input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent, #ff512f);
  border: 0;
}

@media (max-width: 1024px) {
  .topbar, main, .site-footer { padding-left: 20px; padding-right: 20px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 30px 10px; }
  .hero-live { justify-self: center; max-width: 100%; }
  .dashboard-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 900px) {
  .topbar-player {
    display: none;
  }
}

@media (max-width: 768px) {
  .topbar { height: auto; flex-direction: column; padding-top: 15px; padding-bottom: 15px; gap: 15px; }
  nav { margin-left: 0; gap: 18px; }
  h1 { font-size: 36px; letter-spacing: -1.5px; }
  .filters { flex-direction: column; align-items: stretch; gap: 12px; }
  .filter-divider { display: none; }
  .select-field, .decade-field, .short-field, .search-field { width: 100%; min-width: 100%; }
  .switch-field { margin-left: 0; margin-top: 5px; }
  .modal-card { padding: 20px 16px; }
  .detail-header { grid-template-columns: 80px 1fr; gap: 12px; }
  .detail-cover { width: 80px; height: 80px; }
  .detail-main-title { font-size: 20px; }
  .site-footer, .bottom-note { flex-direction: column; align-items: flex-start; gap: 10px; }
  .site-footer > span:last-child, .bottom-note > span:last-child { margin-left: 0; }
  .footer-note { justify-content: flex-start; }
}