/* ========================================================================== 
   PALA FM CENTRALE THEME-INSTELLINGEN - MAKKELIJK AANPASSEN
   ========================================================================== 

   Pas vooral de variabelen hieronder aan.
   Alles wat technisch is, staat lager in dit bestand netjes gekoppeld.

   Snel aanpassen:
   - Hele pagina album-art blur: --page-art-opacity, --page-art-blur, --page-art-scale, --page-art-dark-overlay
   - Player kleiner/groter:     --player-cover-size, --player-padding-y, --player-padding-x
   - Header:                   --header-padding-y, --header-logo-size, --header-radius
   - Header scroll:            staat bewust NIET sticky; scrollt gewoon mee uit beeld
   - Progress:                 --progress-height, --progress-transition, opacity-waarden
   - Zenderkaarten:            --station-card-min-width, --station-card-logo-size
   - Ronde hoeken algemeen:    --global-radius, --panel-radius, --button-radius
   ========================================================================== */

:root {
  /* Basis kleuren */
  --pf-bg: #070711;
  --pf-text: #f8fafc;
  --pf-muted: rgba(248, 250, 252, 0.72);
  --pf-border: rgba(255, 255, 255, 0.16);
  --pf-panel: rgba(255, 255, 255, 0.08);
  --pf-panel-strong: rgba(255, 255, 255, 0.13);
  --pf-brand: #8b5cf6;
  --pf-brand-2: #ec4899;
  --pf-red: #ef4444;
  --pf-green: #22c55e;

  /* Hele pagina album-art achtergrond */
  --page-art-opacity: 0.58;
  --page-art-blur: 46px;
  --page-art-scale: 1.12;
  --page-art-saturate: 1.12;
  --page-art-dark-overlay: rgba(7, 7, 17, 0.78);
  --palafm-page-art-url:
    radial-gradient(
      circle at 15% 0,
      rgba(139, 92, 246, 0.4),
      transparent 38rem
    ),
    radial-gradient(
      circle at 90% 24%,
      rgba(236, 72, 153, 0.24),
      transparent 34rem
    );

  /* Algemene layout */
  --page-max-width: 1680px;
  --page-side-gap: 28px;
  --global-radius: 8px;
  --panel-radius: 8px;
  --button-radius: 8px;
  --pill-radius: 999px;

  /* Header / topbar */
  --header-top: 10px;
  --header-margin-y: 14px;
  --header-padding-y: 8px;
  --header-padding-x: 14px;
  --header-radius: 8px;
  --header-bg: rgba(8, 8, 18, 0.84);
  --header-art-overlay-left: rgba(8, 10, 18, 0.8);
  --header-art-overlay-mid: rgba(8, 10, 18, 0.58);
  --header-art-overlay-right: rgba(8, 10, 18, 0.78);
  --header-logo-size: 34px;
  --header-logo-radius: 12px;
  --nav-button-padding-y: 7px;
  --nav-button-padding-x: 10px;

  /* Player */
  --player-margin-y: 4px;
  --player-radius: 8px;
  --player-padding-y: 8px;
  --player-padding-x: 10px;
  --player-gap: 10px;
  --player-cover-size: 82px;
  --player-cover-radius: 14px;
  --player-main-logo-size: 62px;
  --player-logo-radius: 14px;
  --player-badge-size: 24px;
  --player-title-size-min: 1.18rem;
  --player-title-size-fluid: 2.1vw;
  --player-title-size-max: 2.1rem;
  --player-backdrop-opacity: 0.55;
  --player-backdrop-blur: 22px;
  --player-backdrop-saturate: 1.1;
  --player-art-overlay-left: rgba(14, 15, 24, 0.48);
  --player-art-overlay-mid: rgba(14, 15, 24, 0.18);
  --player-art-overlay-right: rgba(14, 15, 24, 0.36);

  /* Nu speelt blok */
  --now-card-radius: 8px;
  --now-card-padding-y: 7px;
  --now-card-padding-x: 11px;
  --now-label-size: 0.68rem;
  --now-title-size-min: 0.95rem;
  --now-title-size-fluid: 1.8vw;
  --now-title-size-max: 1.12rem;
  --now-artist-size: 0.84rem;

  /* Knoppen/pills in player */
  --player-pill-font-size: 0.76rem;
  --player-pill-padding-y: 5px;
  --player-pill-padding-x: 8px;
  --player-button-font-size: 0.88rem;
  --player-button-padding-y: 7px;
  --player-button-padding-x: 11px;

  /* Minimalistische live-progress */
  --progress-height: 6px;
  --progress-radius: 999px;
  --progress-track-bg: rgba(255, 255, 255, 0.09);
  --progress-fill-opacity-start: 0.22;
  --progress-fill-opacity-end: 0.55;
  --progress-glow-opacity: 0.15;
  --progress-transition: 1200ms linear;

  /* Beste zenders */
  --best-card-width: 228px;
  --best-scroll-gap: 10px;
  --best-vote-star-size: 0.82rem;
  --best-vote-gap: 6px;
  --best-vote-stars-max-votes: 0; /* 0 = automatisch hoogste aantal votes als 5 sterren */
  --best-vote-star-empty: rgba(255, 255, 255, 0.24);
  --best-vote-star-filled: rgb(var(--art-rgb));
  --best-vote-star-glow: rgba(var(--art-rgb), 0.3);

  /* Zenderkaart grid */
  --station-card-min-width: 180px;
  --station-card-min-height: 70px;
  --station-card-radius: 10px;
  --station-card-padding-y: 10px;
  --station-card-padding-x: 11px;
  --station-card-logo-size: 40px;
  --station-card-logo-radius: 12px;
  --station-card-title-size: 0.94rem;
  --station-card-meta-size: 0.76rem;

  /* Alle zenders sectie */
  --all-stations-collapsed-height: 246px;
  --all-stations-expanded-height: 62vh;
  --all-stations-collapsed-height-mobile: 330px;
  --all-stations-expanded-height-mobile: 70vh;

  /* Autoplay/start overlay */
  --autoplay-radius: 16px;
  --autoplay-bg: linear-gradient(
    135deg,
    rgba(12, 14, 24, 0.88),
    rgba(22, 18, 34, 0.78)
  );
}

/* ========================================================================== 
   NORMALE STYLING - ALLES STAAT NETJES ONDER ELKAAR
   ========================================================================== */

:root {
  --bg: #070711;
  --card: rgba(255, 255, 255, 0.08);
  --card2: rgba(255, 255, 255, 0.13);
  --b: rgba(255, 255, 255, 0.16);
  --t: #f8fafc;
  --m: rgba(248, 250, 252, 0.68);
  --p: #8b5cf6;
  --p2: #ec4899;
  --r: #ef4444;
  --g: #22c55e;
}
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: var(--bg);
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  isolation: isolate;
  font-family:
    Inter,
    system-ui,
    Segoe UI,
    sans-serif;
  color: var(--t);
  background: var(--bg);
}

/* Hele website album-art achtergrond.
   Wordt live gevuld door palafm-home.js via --palafm-page-art-url. */
body::before {
  content: "";
  position: fixed;
  inset: calc(-1 * var(--page-art-blur));
  z-index: -2;
  pointer-events: none;
  background-image: var(--palafm-page-art-url);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: var(--page-art-opacity);
  filter: blur(var(--page-art-blur)) saturate(var(--page-art-saturate));
  transform: scale(var(--page-art-scale));
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 10% 0,
      rgba(139, 92, 246, 0.22),
      transparent 35rem
    ),
    radial-gradient(
      circle at 90% 30%,
      rgba(236, 72, 153, 0.14),
      transparent 34rem
    ),
    linear-gradient(180deg, var(--page-art-dark-overlay), rgba(7, 7, 17, 0.88));
}

body.has-page-art::before {
  opacity: var(--page-art-opacity);
}
a {
  color: inherit;
  text-decoration: none;
}
.top {
  position: sticky;
  top: 14px;
  z-index: 5;
  width: min(1280px, calc(100% - 28px));
  margin: 14px auto;
  padding: 12px 14px;
  border: 1px solid var(--b);
  border-radius: 22px;
  background: rgba(8, 8, 18, 0.78);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--p), var(--p2));
  display: grid;
  place-items: center;
  font-weight: 900;
}
.brand small {
  display: block;
  color: var(--m);
  margin-top: 2px;
}
nav {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
nav a,
.btn,
button {
  backdrop-filter: blur(8px);
  border: 1px solid var(--b);
  border-radius: 14px;
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--t);
  font-weight: 750;
  cursor: pointer;
}
.wrap {
  width: min(1280px, calc(100% - 28px));
  margin: 0 auto;
}
.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 22px;
  align-items: center;
  padding: 70px 0 38px;
}
h1 {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
  margin: 16px 0;
}
p {
  color: var(--m);
  line-height: 1.6;
}
.tag {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.17);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #ddd6fe;
  font-weight: 800;
}
.panel,
.card {
  border: 1px solid var(--b);
  border-radius: var(--station-card-radius);
  background: linear-gradient(180deg, var(--card2), var(--card));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}
.panel {
  padding: 22px;
}
.main {
  border: 0;
  background: linear-gradient(135deg, var(--p), var(--p2));
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}
.stats b {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
  text-align: center;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}
.card {
  padding: 22px;
}
.card:hover,
.btn:hover,
button:hover {
  transform: translateY(-1px);
}
code {
  display: block;
  padding: 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.25);
  color: #f5d0fe;
  overflow-wrap: anywhere;
}
.editor {
  width: min(1500px, calc(100% - 24px));
  margin: 0 auto;
  padding: 24px 0 48px;
}
.bar {
  display: grid;
  grid-template-columns: 1.2fr 220px 150px auto auto;
  gap: 10px;
  margin: 14px 0;
}
.input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid var(--b);
  background: rgba(0, 0, 0, 0.25);
  color: var(--t);
  padding: 10px;
  outline: none;
}
textarea {
  min-height: 82px;
}
.tablewrap {
  overflow: auto;
  max-height: calc(100vh - 260px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
}
table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  background: rgba(0, 0, 0, 0.14);
}
th,
td {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: middle;
}
th {
  position: sticky;
  top: 0;
  background: rgba(18, 18, 35, 0.97);
  z-index: 1;
  color: var(--m);
  font-size: 0.82rem;
}
.img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.ok {
  outline: 2px solid rgba(34, 197, 94, 0.55);
}
.bad {
  outline: 2px solid rgba(239, 68, 68, 0.8);
}
.pill {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--m);
  font-size: 0.78rem;
  white-space: nowrap;
}
.pill.good {
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
}
.pill.err {
  background: rgba(239, 68, 68, 0.14);
  color: #fecaca;
}
.url {
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--m);
  font-size: 0.84rem;
}
.modalbg {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.68);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modalbg.open {
  display: flex;
}
.modal {
  width: min(900px, 100%);
  max-height: 92vh;
  overflow: auto;
}
.form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.full {
  grid-column: 1/-1;
}
.notice {
  padding: 12px 14px;
  border-radius: 16px;
  margin: 10px 0;
  background: rgba(34, 197, 94, 0.13);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #dcfce7;
}
.notice.err {
  background: rgba(239, 68, 68, 0.13);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fecaca;
}
.login {
  width: min(440px, calc(100% - 28px));
  margin: 80px auto;
}
.preview {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 12px 0;
}
.preview img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
}
@media (max-width: 900px) {
  .hero,
  .grid,
  .form {
    grid-template-columns: 1fr;
  }
  .top {
    align-items: flex-start;
    flex-direction: column;
  }
  .bar {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr;
  }
}

/* Stream test in PalaFM editor */
.stream-test-box {
  margin: 12px 0 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.2);
}
.stream-test-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.stream-test-head p {
  margin: 4px 0 0;
  color: var(--m, rgba(248, 250, 252, 0.68));
  font-size: 0.9rem;
}
.stream-test-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.stream-btn {
  min-height: 38px;
  border-radius: 12px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--t, #f8fafc);
  font-weight: 800;
  cursor: pointer;
}
.stream-btn.play {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.35);
  backdrop-filter: blur(8px);
}
.stream-btn.stop {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.35);
  backdrop-filter: blur(8px);
}
.stream-test-box.testing {
  border-color: rgba(245, 158, 11, 0.45);
}
.stream-test-box.playing {
  border-color: rgba(34, 197, 94, 0.45);
}
.stream-test-box.error {
  border-color: rgba(239, 68, 68, 0.55);
}
@media (max-width: 700px) {
  .stream-test-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Quick player overlay */
.play-inline-btn {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.35);
}
.play-inline-btn.playing {
  background: rgba(139, 92, 246, 0.26);
  border-color: rgba(139, 92, 246, 0.55);
}
.quick-player-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 18;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(8px);
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
}
.quick-player-overlay.open {
  display: flex;
}
.quick-player-card {
  position: relative;
  width: min(980px, 100%);
  border: 1px solid var(--b);
  border-radius: 28px;
  background: linear-gradient(
    180deg,
    rgba(18, 18, 32, 0.98),
    rgba(12, 12, 24, 0.96)
  );
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.quick-player-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
  padding: 22px;
}
.quick-player-cover-wrap {
  position: relative;
  min-height: 240px;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(236, 72, 153, 0.18)),
    rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}
.quick-player-cover-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: blur(38px);
  transform: scale(1.15);
  opacity: 0.35;
}
.quick-player-cover-wrap:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 8, 18, 0.12),
    rgba(8, 8, 18, 0.48)
  );
}
.quick-player-logo {
  position: relative;
  z-index: 1;
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.quick-player-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.quick-player-meta h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.quick-player-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.quick-player-status {
  margin: 0;
  color: #e9d5ff;
  font-size: 1rem;
}
.quick-player-url {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--m);
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.quick-player-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 22px 22px;
}
.stream-btn.big {
  min-width: 150px;
  min-height: 46px;
  font-size: 1rem;
}
.qp-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  display: grid;
  place-items: center;
  z-index: 2;
}
.quick-player-overlay.testing .quick-player-card {
  box-shadow:
    0 0 0 1px rgba(245, 158, 11, 0.25),
    0 28px 90px rgba(0, 0, 0, 0.45);
}
.quick-player-overlay.playing .quick-player-card {
  box-shadow:
    0 0 0 1px rgba(34, 197, 94, 0.25),
    0 28px 90px rgba(0, 0, 0, 0.45);
}
.quick-player-overlay.error .quick-player-card {
  box-shadow:
    0 0 0 1px rgba(239, 68, 68, 0.35),
    0 28px 90px rgba(0, 0, 0, 0.45);
}
@media (max-width: 900px) {
  .quick-player-top {
    grid-template-columns: 1fr;
  }
  .quick-player-cover-wrap {
    min-height: 180px;
  }
  .quick-player-logo {
    width: 120px;
    height: 120px;
  }
  .quick-player-controls {
    padding-top: 0;
  }
}

/* Quick player cover loading/fallback */
.quick-player-logo.loading {
  opacity: 0.55;
  transform: scale(0.96);
}

.quick-player-logo {
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.quick-player-cover-wrap {
  isolation: isolate;
}

.quick-player-cover-wrap:before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 26px;
  background:
    radial-gradient(
      circle at 40% 20%,
      rgba(255, 255, 255, 0.18),
      transparent 42%
    ),
    linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(236, 72, 153, 0.14));
  z-index: 0;
}

.quick-player-cover-bg {
  transition:
    background-image 0.2s ease,
    opacity 0.2s ease;
}

/* Spotify-style live progress */
.spotify-progress {
  padding: 0 22px 22px;
  display: grid;
  gap: 8px;
}

.spotify-time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--m);
  font-size: 0.9rem;
  font-weight: 800;
}

.live-badge {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.32);
  border-radius: 999px;
  padding: 4px 9px;
  letter-spacing: 0.06em;
  font-size: 0.74rem;
}

.spotify-bar {
  position: relative;
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.spotify-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #8b5cf6, #ec4899);
  transition: width 0.45s linear;
}

.spotify-bar-fill:after {
  content: "";
  position: absolute;
  top: 50%;
  right: -7px;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: #fff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.5);
}

.spotify-bar-glow {
  position: absolute;
  inset: -12px;
  background: linear-gradient(
    90deg,
    rgba(34, 197, 94, 0.22),
    rgba(139, 92, 246, 0.16),
    rgba(236, 72, 153, 0.18)
  );
  filter: blur(14px);
  opacity: 0.65;
  pointer-events: none;
}

.quick-player-overlay.playing .spotify-bar-fill {
  animation: spotifyPulse 1.8s ease-in-out infinite;
}

@keyframes spotifyPulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.28);
  }
}

@media (max-width: 900px) {
  .spotify-progress {
    padding-top: 0;
  }
}

/* Spotify nieuwe stijl: verticale live-progress van boven naar beneden */
.spotify-progress.spotify-progress-vertical {
  padding: 0;
  position: absolute;
  top: 22px;
  right: 22px;
  bottom: 22px;
  width: 64px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  align-items: center;
  justify-items: center;
  z-index: 3;
  pointer-events: none;
}

.spotify-vertical-time {
  min-width: 54px;
  text-align: center;
  color: var(--t);
  font-size: 0.86rem;
  font-weight: 900;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.spotify-progress-vertical .live-badge {
  pointer-events: none;
  box-shadow: 0 0 22px rgba(34, 197, 94, 0.18);
}

.spotify-vertical-bar {
  position: relative;
  width: 12px;
  height: 100%;
  min-height: 170px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 18px 38px rgba(0, 0, 0, 0.25);
}

.spotify-progress-vertical .spotify-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  width: 100%;
  height: 0%;
  border-radius: inherit;
  background: linear-gradient(180deg, #22c55e 0%, #8b5cf6 55%, #ec4899 100%);
  transition: height 0.45s linear;
}

.spotify-progress-vertical .spotify-bar-fill:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: #fff;
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.55),
    0 0 28px rgba(139, 92, 246, 0.35);
}

.spotify-progress-vertical .spotify-bar-glow {
  position: absolute;
  inset: -18px;
  background: linear-gradient(
    180deg,
    rgba(34, 197, 94, 0.28),
    rgba(139, 92, 246, 0.2),
    rgba(236, 72, 153, 0.24)
  );
  filter: blur(16px);
  opacity: 0.7;
  pointer-events: none;
}

.quick-player-overlay.playing .spotify-progress-vertical .spotify-bar-fill {
  animation: spotifyVerticalPulse 1.8s ease-in-out infinite;
}

@keyframes spotifyVerticalPulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.3);
  }
}

/* maak ruimte rechts in de player voor de verticale progress */
.quick-player-card {
  padding-right: 76px;
}

.quick-player-controls {
  padding-right: 0;
}

@media (max-width: 900px) {
  .spotify-progress.spotify-progress-vertical {
    position: static;
    width: 100%;
    padding: 0 22px 22px;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto;
    gap: 10px;
    justify-items: stretch;
  }

  .spotify-vertical-bar {
    width: 100%;
    height: 10px;
    min-height: 10px;
  }

  .spotify-progress-vertical .spotify-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #8b5cf6, #ec4899);
  }

  .spotify-progress-vertical .spotify-bar-fill:after {
    top: 50%;
    right: -7px;
    bottom: auto;
    left: auto;
    transform: translateY(-50%);
  }

  .quick-player-card {
    padding-right: 0;
  }
}

/* Spotify-like wave progress as in screenshot */
.spotify-wave-progress {
  padding: 0 22px 22px;
  display: grid;
  gap: 10px;
}
.spotify-wave-time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.spotify-wave-wrap {
  position: relative;
  height: 46px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.spotify-wave-track {
  position: absolute;
  inset: auto 0 18px 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
}
.spotify-wave-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.spotify-wave-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.spotify-wave-line.wave-back {
  stroke: rgba(94, 206, 255, 0.45);
  stroke-width: 5;
  filter: drop-shadow(0 0 7px rgba(94, 206, 255, 0.35));
  animation: waveFloatBack 4.2s ease-in-out infinite;
}
.spotify-wave-line.wave-front {
  stroke: #8fe6ff;
  stroke-width: 4;
  filter: drop-shadow(0 0 9px rgba(68, 191, 255, 0.7));
  animation: waveFloatFront 3.4s ease-in-out infinite;
}
.spotify-wave-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(120, 220, 255, 0.16),
    rgba(58, 148, 255, 0.22),
    rgba(166, 110, 255, 0.18)
  );
  box-shadow: inset -18px 0 28px rgba(112, 217, 255, 0.18);
  transition: width 0.45s linear;
  pointer-events: none;
}
.spotify-wave-progress-fill:after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: -1px;
  width: 3px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.85),
    transparent
  );
  box-shadow: 0 0 14px rgba(111, 219, 255, 0.95);
}
.quick-player-overlay.playing .spotify-wave-progress-fill:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0)
  );
  animation: waveSweep 2.4s linear infinite;
}
@keyframes waveSweep {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(220%);
  }
}
@keyframes waveFloatFront {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}
@keyframes waveFloatBack {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(2px);
  }
}

/* Disable old vertical progress layout if still present */
.spotify-progress.spotify-progress-vertical,
.spotify-progress,
.spotify-vertical-bar,
.spotify-vertical-time {
  all: unset;
}

@media (max-width: 900px) {
  .spotify-wave-progress {
    padding: 0 22px 22px;
  }
  .spotify-wave-wrap {
    height: 40px;
  }
}

/* Now playing text */
.quick-now-playing {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.quick-now-label {
  color: #8fe6ff;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-now-playing strong {
  color: #fff;
  font-size: 1.15rem;
  line-height: 1.15;
}

.quick-now-playing small {
  color: var(--m);
  font-weight: 700;
}

/* PalaFM home player */
.logo-badge {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.home-radio-wrap {
  padding-bottom: 56px;
}
.home-player-shell {
  position: relative;
  margin: 34px 0 34px;
  min-height: 520px;
  display: grid;
  align-items: center;
}
.home-backdrop {
  position: absolute;
  inset: -34px calc(50% - 50vw);
  background-position: center;
  background-size: cover;
  filter: blur(34px);
  opacity: 0.55;
  transform: scale(1.02);
  pointer-events: none;
}
.home-backdrop:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 18% 16%,
      rgba(139, 92, 246, 0.34),
      transparent 32rem
    ),
    linear-gradient(180deg, rgba(7, 7, 17, 0.2), var(--bg));
}
.home-player-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 390px) 1fr;
  gap: 28px;
  overflow: hidden;
  padding: 26px;
}
.home-cover-card {
  position: relative;
  min-height: 390px;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.24),
    rgba(236, 72, 153, 0.16)
  );
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.home-cover-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: blur(34px);
  transform: scale(1.16);
  opacity: 0.5;
}
.home-cover-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 8, 18, 0.06),
    rgba(8, 8, 18, 0.52)
  );
}
.home-station-logo {
  position: relative;
  z-index: 1;
  width: min(230px, 62%);
  height: min(230px, 62%);
  object-fit: contain;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.home-player-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-width: 0;
}
.home-player-main h1 {
  font-size: clamp(2.3rem, 5.4vw, 5.6rem);
  margin: 0;
  max-width: 780px;
}
.home-now-card {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 780px;
}
.home-now-card span {
  color: #8fe6ff;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.home-now-card strong {
  font-size: clamp(1.2rem, 2.6vw, 2rem);
  line-height: 1.12;
}
.home-now-card small {
  color: var(--m);
  font-weight: 700;
}
.home-player-pills,
.home-player-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.home-fav-btn.active,
.station-tools button.active {
  background: rgba(236, 72, 153, 0.2);
  border-color: rgba(236, 72, 153, 0.45);
  color: #fbcfe8;
}
.home-status {
  margin: 0;
  color: #e9d5ff;
  font-weight: 750;
}
.home-wave-progress {
  grid-column: 1/-1;
  padding: 4px 0 0;
}
.home-player-shell.playing .spotify-wave-progress-fill {
  animation: waveSweep 2.4s linear infinite;
}
.home-section {
  margin: 28px 0;
}
.home-section-head,
.station-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.home-section h2,
.station-toolbar h2 {
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1;
  margin: 10px 0 0;
  letter-spacing: -0.045em;
}
.best-stations-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 2px 18px;
}
.best-stations-row::-webkit-scrollbar {
  height: 10px;
}
.best-stations-row::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}
.station-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 210px auto;
  gap: 10px;
  align-items: center;
  min-width: min(720px, 100%);
}
.station-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}
.station-card {
  width: 100%;
  min-height: 92px;
  text-align: left;
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: center;
  gap: 12px;
  border-radius: 20px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}
.station-card:hover,
.station-card.current {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.55);
  background: rgba(139, 92, 246, 0.16);
}
.station-card img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px;
}
.station-card b {
  display: block;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.station-card small {
  display: block;
  color: var(--m);
  font-weight: 650;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.station-card em {
  font-style: normal;
  color: #f9a8d4;
  font-size: 1.15rem;
}
.station-card.compact {
  flex: 0 0 245px;
  scroll-snap-align: start;
}
.empty-state {
  grid-column: 1/-1;
  padding: 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 980px) {
  .home-player-card {
    grid-template-columns: 1fr;
  }
  .home-cover-card {
    min-height: 260px;
  }
  .home-section-head,
  .station-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .station-tools {
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
  }
  .home-player-shell {
    min-height: auto;
  }
  .home-player-main h1 {
    font-size: clamp(2.1rem, 12vw, 4rem);
  }
}
@media (max-width: 560px) {
  .home-player-card {
    padding: 16px;
    border-radius: 22px;
  }
  .home-cover-card {
    min-height: 220px;
    border-radius: 22px;
  }
  .home-station-logo {
    width: 150px;
    height: 150px;
    border-radius: 24px;
  }
  .station-grid {
    grid-template-columns: 1fr;
  }
  .station-card.compact {
    flex-basis: 220px;
  }
  .home-player-actions .stream-btn.big,
  .home-player-actions .btn,
  .home-player-actions button {
    width: 100%;
  }
}

/* PalaFM home player compact fix */
.palafm-home .home-radio-wrap {
  padding-bottom: 42px;
}
.palafm-home .home-player-shell {
  margin: 18px 0 24px;
  min-height: auto;
}
.palafm-home .home-backdrop {
  inset: -18px calc(50% - 50vw);
  filter: blur(26px);
  opacity: 0.72;
  transform: scale(1.01);
}
.palafm-home .home-player-card {
  grid-template-columns: 220px 1fr;
  gap: 22px;
  padding: 20px;
  border-radius: 22px;
  align-items: center;
}
.palafm-home .home-cover-card {
  min-height: 220px;
  border-radius: 24px;
}
.palafm-home .home-station-logo {
  width: 142px;
  height: 142px;
  border-radius: 24px;
  padding: 14px;
}
.palafm-home .home-player-main {
  gap: 10px;
  justify-content: center;
}
.palafm-home .home-player-main h1 {
  font-size: clamp(2rem, 4.2vw, 4.1rem);
  line-height: 0.95;
  margin: 0;
  letter-spacing: -0.065em;
}
.palafm-home .home-now-card {
  padding: 12px 14px;
  border-radius: 17px;
  max-width: 780px;
}
.palafm-home .home-now-card strong {
  font-size: clamp(1.05rem, 2vw, 1.65rem);
}
.palafm-home .home-player-pills {
  gap: 8px;
}
.palafm-home .home-player-actions {
  gap: 9px;
}
.palafm-home .home-status {
  font-size: 0.92rem;
}
.palafm-home .home-wave-progress {
  grid-column: 1/-1;
  padding-top: 0;
}
.palafm-home .spotify-wave-progress {
  gap: 7px;
}
.palafm-home .spotify-wave-wrap {
  height: 34px;
  border-radius: 14px;
}
.palafm-home .spotify-wave-time-row {
  font-size: 0.9rem;
}
.palafm-home .home-player-shell.playing .spotify-wave-line.wave-front {
  animation-duration: 1.8s;
}
.palafm-home .home-player-shell.playing .spotify-wave-line.wave-back {
  animation-duration: 2.4s;
}
.palafm-home .home-player-shell.playing .spotify-wave-progress-fill:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.13),
    rgba(255, 255, 255, 0)
  );
  animation: waveSweep 1.9s linear infinite;
}
.palafm-home .home-player-shell.has-song-art .home-backdrop {
  opacity: 0.9;
  filter: blur(32px) saturate(1.25);
}
.palafm-home .home-player-shell.has-song-art .home-cover-bg {
  opacity: 0.82;
  filter: blur(26px) saturate(1.25);
}
@media (max-width: 980px) {
  .palafm-home .home-player-card {
    grid-template-columns: 1fr;
  }
  .palafm-home .home-cover-card {
    min-height: 210px;
  }
  .palafm-home .home-station-logo {
    width: 136px;
    height: 136px;
  }
}
@media (max-width: 560px) {
  .palafm-home .home-player-card {
    padding: 15px;
  }
  .palafm-home .home-cover-card {
    min-height: 190px;
  }
  .palafm-home .home-station-logo {
    width: 124px;
    height: 124px;
  }
  .palafm-home .spotify-wave-wrap {
    height: 32px;
  }
}

/* PalaFM homepage compact player + compact cards */
.palafm-home .home-player-shell {
  margin: 10px 0 18px;
  min-height: auto;
}
.palafm-home .home-backdrop {
  inset: -18px calc(50% - 50vw);
  filter: blur(22px);
  opacity: 0.48;
  transform: scale(1.01);
}
.palafm-home .home-player-card {
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 14px 16px 12px;
  border-radius: 18px;
  align-items: center;
}
.palafm-home .home-cover-card {
  min-height: 150px;
  border-radius: 18px;
}
.palafm-home .home-cover-bg {
  filter: blur(22px);
  transform: scale(1.12);
  opacity: 0.56;
}
.palafm-home .home-station-logo {
  width: 104px;
  height: 104px;
  border-radius: 18px;
  padding: 10px;
}
.palafm-home .home-station-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(11, 13, 25, 0.84);
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
}
.palafm-home .home-player-main {
  gap: 8px;
}
.palafm-home #homeLiveTag {
  padding: 6px 12px;
  font-size: 0.72rem;
}
.palafm-home .home-player-main h1 {
  font-size: clamp(1.55rem, 3vw, 3.25rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}
.palafm-home .home-now-card {
  padding: 10px 12px;
  border-radius: 16px;
  gap: 3px;
  max-width: 700px;
}
.palafm-home .home-now-card strong {
  font-size: clamp(1rem, 2vw, 1.5rem);
  line-height: 1.08;
}
.palafm-home .home-now-card small {
  font-size: 0.92rem;
  line-height: 1.25;
}
.palafm-home .home-player-pills .pill,
.palafm-home .home-fav-btn {
  font-size: 0.82rem;
  padding: 7px 10px;
}
.palafm-home .home-player-actions .stream-btn,
.palafm-home .home-player-actions .btn {
  padding: 10px 16px;
  font-size: 1rem;
  border-radius: 14px;
}
.palafm-home .home-status {
  font-size: 0.96rem;
}
.palafm-home .home-wave-progress {
  padding-top: 0;
}
.palafm-home .spotify-wave-time-row {
  font-size: 0.84rem;
  margin-bottom: 4px;
}
.palafm-home .spotify-wave-wrap {
  height: 28px;
  border-radius: 12px;
}
.palafm-home .spotify-wave-svg {
  opacity: 0.92;
}
.palafm-home .home-player-shell.has-song-art .home-backdrop {
  opacity: 0.94;
  filter: blur(24px) saturate(1.25);
}
.palafm-home .home-player-shell.has-song-art .home-cover-bg {
  opacity: 0.86;
  filter: blur(18px) saturate(1.18);
}
.palafm-home .home-section {
  margin: 20px 0;
}
.palafm-home .home-section h2,
.palafm-home .station-toolbar h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
}
.palafm-home .best-stations-row {
  gap: 10px;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.palafm-home .best-stations-row::-webkit-scrollbar {
  display: none;
}
.palafm-home .station-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.palafm-home .station-card {
  min-height: 74px;
  grid-template-columns: 44px 1fr 18px;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 16px;
}
.palafm-home .station-card img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  padding: 4px;
}
.palafm-home .station-card b {
  font-size: 0.94rem;
  white-space: normal;
  line-height: 1.05;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.palafm-home .station-card small {
  font-size: 0.76rem;
  line-height: 1.15;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
}
.palafm-home .station-card em {
  font-size: 1rem;
  align-self: flex-start;
}
.palafm-home .station-card.compact {
  flex: 0 0 215px;
}
.palafm-home .station-tools {
  grid-template-columns: minmax(180px, 1fr) 180px auto;
  min-width: min(620px, 100%);
}
@media (max-width: 980px) {
  .palafm-home .home-player-card {
    grid-template-columns: 120px 1fr;
    padding: 13px;
  }
  .palafm-home .home-cover-card {
    min-height: 120px;
  }
  .palafm-home .home-station-logo {
    width: 88px;
    height: 88px;
  }
  .palafm-home .station-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  }
}
@media (max-width: 640px) {
  .palafm-home .home-player-card {
    grid-template-columns: 1fr;
  }
  .palafm-home .home-cover-card {
    min-height: 116px;
  }
  .palafm-home .home-station-logo {
    width: 80px;
    height: 80px;
  }
  .palafm-home .station-grid {
    grid-template-columns: 1fr 1fr;
  }
  .palafm-home .station-tools {
    grid-template-columns: 1fr;
    min-width: 0;
  }
}
@media (max-width: 460px) {
  .palafm-home .station-grid {
    grid-template-columns: 1fr;
  }
}

/* PalaFM beste zenders echte CSS-auto-scroll */
.palafm-home .best-stations-row {
  overflow: hidden;
  scroll-snap-type: none;
  position: relative;
  padding: 2px 0 8px;
}
.palafm-home .best-scroll-track {
  display: flex;
  gap: 10px;
  width: max-content;
  will-change: transform;
  animation: palafmBestMarquee 55s linear infinite;
}
.palafm-home .best-stations-row:hover .best-scroll-track {
  animation-play-state: paused;
}
@keyframes palafmBestMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* PalaFM calmer art-driven player */
.palafm-home .home-player-shell,
.palafm-home .home-player-card {
  --art-rgb: 96, 165, 250;
}
.palafm-home .home-player-shell {
  margin: 6px 0 14px;
}
.palafm-home .home-backdrop {
  inset: -14px calc(50% - 50vw);
  filter: blur(18px) saturate(1.28);
  opacity: 0.72;
}
.palafm-home .home-player-card {
  position: relative;
  grid-template-columns: 122px 1fr;
  gap: 14px;
  padding: 12px 14px 10px;
  border-radius: 16px;
  overflow: hidden;
  background-color: rgba(18, 18, 28, 0.84);
  background-size: cover;
  background-position: center;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 16px 36px rgba(0, 0, 0, 0.24);
}
.palafm-home .home-player-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(14, 15, 24, 0.62),
    rgba(14, 15, 24, 0.28),
    rgba(14, 15, 24, 0.5)
  );
  pointer-events: none;
}
.palafm-home .home-player-card > * {
  position: relative;
  z-index: 1;
}
.palafm-home .home-cover-card {
  min-height: 122px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.palafm-home .home-cover-bg {
  filter: blur(14px) saturate(1.18);
  transform: scale(1.1);
  opacity: 0.78;
}
.palafm-home .home-station-logo {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}
.palafm-home .home-station-badge {
  width: 30px;
  height: 30px;
  right: 8px;
  bottom: 8px;
  border-radius: 10px;
}
.palafm-home .home-player-main {
  gap: 7px;
}
.palafm-home #homeLiveTag {
  font-size: 0.68rem;
  padding: 5px 10px;
}
.palafm-home .home-player-main h1 {
  font-size: clamp(1.4rem, 2.7vw, 2.8rem);
  line-height: 0.92;
}
.palafm-home .home-now-card {
  padding: 9px 12px;
  border-radius: 15px;
  max-width: 720px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}
.palafm-home .home-now-card span {
  font-size: 0.74rem;
}
.palafm-home .home-now-card strong {
  font-size: clamp(0.98rem, 1.9vw, 1.38rem);
}
.palafm-home .home-now-card small {
  font-size: 0.9rem;
}
.palafm-home .home-player-pills .pill,
.palafm-home .home-fav-btn {
  font-size: 0.8rem;
  padding: 6px 9px;
}
.palafm-home .home-player-actions .stream-btn,
.palafm-home .home-player-actions .btn {
  padding: 9px 15px;
  font-size: 0.98rem;
  border-radius: 13px;
}
.palafm-home .home-status {
  font-size: 0.92rem;
}
.palafm-home .home-wave-progress {
  padding-top: 2px;
}
.palafm-home .spotify-wave-time-row {
  font-size: 0.8rem;
  margin-bottom: 6px;
  opacity: 0.95;
}
.palafm-home .spotify-wave-wrap {
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.palafm-home .spotify-wave-track {
  display: none;
}
.palafm-home .spotify-wave-svg {
  display: none;
}
.palafm-home .spotify-wave-progress-fill {
  top: 2px;
  bottom: 2px;
  left: 2px;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(var(--art-rgb), 0.28),
    rgba(var(--art-rgb), 0.72)
  );
  box-shadow:
    0 0 18px rgba(var(--art-rgb), 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition:
    width 900ms linear,
    background 240ms ease,
    box-shadow 240ms ease;
}
.palafm-home .spotify-wave-progress-fill::after {
  content: "";
  position: absolute;
  right: 0;
  top: -2px;
  width: 14px;
  height: calc(100% + 4px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  filter: blur(5px);
  opacity: 0.65;
}
.palafm-home .home-player-shell.playing .spotify-wave-progress-fill::before {
  display: none;
}
.palafm-home .home-player-shell.has-song-art .home-backdrop {
  opacity: 0.92;
  filter: blur(20px) saturate(1.4);
}
.palafm-home .home-player-shell.has-song-art .home-player-card::before {
  background: linear-gradient(
    90deg,
    rgba(14, 15, 24, 0.56),
    rgba(14, 15, 24, 0.2),
    rgba(14, 15, 24, 0.42)
  );
}
.palafm-home .best-stations-row {
  padding: 2px 0 8px;
  overflow: hidden;
}
.palafm-home .best-scroll-track {
  animation: none !important;
  will-change: transform;
}
@media (max-width: 980px) {
  .palafm-home .home-player-card {
    grid-template-columns: 108px 1fr;
    padding: 11px 12px;
  }
  .palafm-home .home-cover-card {
    min-height: 108px;
  }
  .palafm-home .home-station-logo {
    width: 80px;
    height: 80px;
  }
}
@media (max-width: 640px) {
  .palafm-home .home-player-card {
    grid-template-columns: 1fr;
  }
  .palafm-home .home-cover-card {
    min-height: 108px;
  }
  .palafm-home .home-station-logo {
    width: 76px;
    height: 76px;
  }
}

/* PalaFM flatter player + calmer header */
.palafm-home .top {
  position: sticky;
  top: 10px;
  padding: 10px 14px;
  border-radius: 20px;
  background-color: rgba(8, 8, 18, 0.84);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.palafm-home .top::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 10, 18, 0.78),
    rgba(8, 10, 18, 0.56),
    rgba(8, 10, 18, 0.78)
  );
  pointer-events: none;
}
.palafm-home .top > * {
  position: relative;
  z-index: 1;
}
.palafm-home .top.has-art {
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.palafm-home .top .logo-badge {
  width: 38px;
  height: 38px;
  border-radius: 13px;
}
.palafm-home .brand {
  gap: 10px;
}
.palafm-home .brand b {
  font-size: 1.02rem;
}
.palafm-home .brand small {
  font-size: 0.92rem;
}
.palafm-home nav a {
  padding: 9px 12px;
}

.palafm-home .home-player-shell {
  margin: 4px 0 12px;
}
.palafm-home .home-backdrop {
  inset: -10px calc(50% - 50vw);
  filter: blur(16px) saturate(1.34);
  opacity: 0.82;
}
.palafm-home .home-player-card {
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 10px 12px 9px;
  border-radius: 15px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 12px 28px rgba(0, 0, 0, 0.22);
}
.palafm-home .home-player-card::before {
  background: linear-gradient(
    90deg,
    rgba(14, 15, 24, 0.48),
    rgba(14, 15, 24, 0.18),
    rgba(14, 15, 24, 0.36)
  );
}
.palafm-home .home-cover-card {
  min-height: 96px;
  border-radius: 14px;
}
.palafm-home .home-cover-bg {
  filter: blur(12px) saturate(1.16);
  opacity: 0.9;
}
.palafm-home .home-station-logo {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  padding: 5px;
}
.palafm-home .home-station-badge {
  width: 24px;
  height: 24px;
  right: 6px;
  bottom: 6px;
  border-radius: 8px;
  padding: 3px;
}
.palafm-home #homeLiveTag {
  padding: 4px 9px;
  font-size: 0.64rem;
  background: rgba(var(--art-rgb), 0.14);
  border-color: rgba(var(--art-rgb), 0.3);
  color: #eef2ff;
}
.palafm-home .home-player-main {
  gap: 6px;
}
.palafm-home .home-player-main h1 {
  font-size: clamp(1.3rem, 2.4vw, 2.45rem);
  line-height: 0.92;
  margin: 0;
}
.palafm-home .home-now-card {
  padding: 8px 11px 9px;
  border-radius: 13px;
  max-width: 760px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.05)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.palafm-home .home-now-card span {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #9be7ff;
}
.palafm-home .home-now-card strong {
  font-size: clamp(0.95rem, 1.8vw, 1.24rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.palafm-home .home-now-card small {
  font-size: 0.84rem;
  line-height: 1.22;
  color: rgba(248, 250, 252, 0.72);
  font-weight: 650;
}
.palafm-home .home-player-pills,
.palafm-home .home-player-actions {
  gap: 7px;
}
.palafm-home .home-player-pills .pill,
.palafm-home .home-fav-btn {
  font-size: 0.76rem;
  padding: 5px 8px;
  border-radius: 999px;
}
.palafm-home .home-player-actions .stream-btn,
.palafm-home .home-player-actions .btn {
  padding: 8px 13px;
  font-size: 0.94rem;
  border-radius: 12px;
}
.palafm-home .home-status {
  font-size: 0.88rem;
  color: rgba(248, 250, 252, 0.82);
}
.palafm-home .spotify-wave-time-row {
  font-size: 0.76rem;
  margin-bottom: 5px;
  color: rgba(248, 250, 252, 0.82);
}
.palafm-home .spotify-wave-wrap {
  height: 8px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.palafm-home .spotify-wave-progress-fill {
  top: 1px;
  bottom: 1px;
  left: 1px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(var(--art-rgb), 0.22),
    rgba(var(--art-rgb), 0.55)
  );
  box-shadow: 0 0 10px rgba(var(--art-rgb), 0.15);
  transition:
    width 1200ms linear,
    background 240ms ease,
    box-shadow 240ms ease;
}
.palafm-home .spotify-wave-progress-fill::after {
  width: 8px;
  top: -1px;
  height: calc(100% + 2px);
  opacity: 0.45;
  filter: blur(3px);
}
.palafm-home .home-player-shell.has-song-art .home-backdrop {
  opacity: 0.96;
  filter: blur(18px) saturate(1.44);
}
.palafm-home .home-player-shell.has-song-art .home-player-card::before {
  background: linear-gradient(
    90deg,
    rgba(14, 15, 24, 0.42),
    rgba(14, 15, 24, 0.14),
    rgba(14, 15, 24, 0.3)
  );
}
@media (max-width: 980px) {
  .palafm-home .home-player-card {
    grid-template-columns: 86px 1fr;
  }
  .palafm-home .home-cover-card {
    min-height: 86px;
  }
  .palafm-home .home-station-logo {
    width: 64px;
    height: 64px;
  }
}
@media (max-width: 640px) {
  .palafm-home .home-player-card {
    grid-template-columns: 1fr;
  }
  .palafm-home .home-cover-card {
    min-height: 92px;
  }
  .palafm-home .home-station-logo {
    width: 68px;
    height: 68px;
  }
}

/* PalaFM autoplay gate: browser-safe start overlay */
.palafm-home .home-player-card {
  position: relative;
}
.palafm-home .autoplay-gate[hidden] {
  display: none;
}
.palafm-home .autoplay-gate {
  position: absolute;
  right: 16px;
  bottom: 26px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(520px, calc(100% - 32px));
  padding: 12px 13px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(
    135deg,
    rgba(12, 14, 24, 0.88),
    rgba(22, 18, 34, 0.78)
  );
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}
.palafm-home .autoplay-gate strong {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
}
.palafm-home .autoplay-gate small {
  display: block;
  color: rgba(248, 250, 252, 0.72);
  font-weight: 650;
  line-height: 1.28;
  margin-top: 3px;
}
.palafm-home .autoplay-gate button {
  flex: 0 0 auto;
  border-color: rgba(var(--art-rgb), 0.35);
  background: rgba(var(--art-rgb), 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
@media (max-width: 720px) {
  .palafm-home .autoplay-gate {
    left: 12px;
    right: 12px;
    bottom: 18px;
    align-items: stretch;
    flex-direction: column;
  }
}

/* PalaFM installable app button */
.palafm-home .install-app-btn {
  background: linear-gradient(
    135deg,
    rgba(var(--art-rgb, 124, 58, 237), 0.28),
    rgba(236, 72, 153, 0.18)
  );
  border-color: rgba(255, 255, 255, 0.18);
}
.palafm-home .install-app-btn[hidden] {
  display: none !important;
}
@media (display-mode: standalone) {
  .palafm-home .install-app-btn {
    display: none !important;
  }
}

/* ========================================================================== 
   PALA FM CENTRALE KOPPELINGEN - HIERONDER HOEFT NORMAAL NIKS AANGEPAST
   ========================================================================== */

/* Basis variabelen koppelen aan oude namen */
:root {
  --bg: var(--pf-bg);
  --t: var(--pf-text);
  --m: var(--pf-muted);
  --b: var(--pf-border);
  --card: var(--pf-panel);
  --card2: var(--pf-panel-strong);
  --p: var(--pf-brand);
  --p2: var(--pf-brand-2);
  --r: var(--pf-red);
  --g: var(--pf-green);
}

/* Pagina */
body {
  color: var(--pf-text);
  background:
    radial-gradient(
      circle at 10% 0,
      color-mix(in srgb, var(--pf-brand) 28%, transparent),
      transparent 35rem
    ),
    radial-gradient(
      circle at 90% 30%,
      color-mix(in srgb, var(--pf-brand-2) 18%, transparent),
      transparent 34rem
    ),
    var(--pf-bg);
}
.wrap,
.top {
  width: min(var(--page-max-width), calc(100% - var(--page-side-gap)));
}

body.palafm-home {
  position: relative;
  min-height: 100vh;
  background: var(--pf-bg);
  overflow-x: hidden;
}

body.palafm-home::before {
  content: "";
  position: fixed;
  inset: -10vmax;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, var(--page-art-dark-overlay), var(--pf-bg)),
    var(--palafm-page-art-url);
  background-position: center;
  background-size: cover;
  filter: blur(var(--page-art-blur)) saturate(var(--page-art-saturate));
  opacity: var(--page-art-opacity);
  transform: scale(var(--page-art-scale));
  transition:
    background-image 240ms ease,
    opacity 240ms ease,
    filter 240ms ease;
}

body.palafm-home::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 50% 0,
      rgba(var(--art-rgb, 96, 165, 250), 0.16),
      transparent 36rem
    ),
    linear-gradient(180deg, rgba(7, 7, 17, 0.14), rgba(7, 7, 17, 0.78));
}

body.palafm-home > * {
  position: relative;
  z-index: 1;
}

/* Header */
.palafm-home .top,
.top {
  top: var(--header-top);
  margin: var(--header-margin-y) auto;
  padding: var(--header-padding-y) var(--header-padding-x);
  border-radius: var(--header-radius);
  background-color: var(--header-bg);
  border-color: var(--pf-border);
}
.palafm-home .top::before {
  background: linear-gradient(
    90deg,
    var(--header-art-overlay-left),
    var(--header-art-overlay-mid),
    var(--header-art-overlay-right)
  );
}
.logo-badge,
.palafm-home .top .logo-badge {
  width: var(--header-logo-size);
  height: var(--header-logo-size);
  border-radius: var(--header-logo-radius);
}
nav a,
.palafm-home nav a,
.palafm-home .install-app-btn {
  padding: var(--nav-button-padding-y) var(--nav-button-padding-x);
  border-radius: var(--button-radius);
}

/* Player */
.palafm-home .home-player-shell {
  margin: var(--player-margin-y) 0 calc(var(--player-margin-y) + 8px);
}
.palafm-home .home-backdrop {
  opacity: var(--player-backdrop-opacity);
  filter: blur(var(--player-backdrop-blur))
    saturate(var(--player-backdrop-saturate));
}
.palafm-home .home-player-card {
  grid-template-columns: var(--player-cover-size) 1fr;
  gap: var(--player-gap);
  padding: var(--player-padding-y) var(--player-padding-x)
    calc(var(--player-padding-y) - 1px);
  border-radius: var(--player-radius);
}
.palafm-home .home-player-card::before {
  background: linear-gradient(
    90deg,
    var(--player-art-overlay-left),
    var(--player-art-overlay-mid),
    var(--player-art-overlay-right)
  );
}
.palafm-home .home-cover-card {
  min-height: var(--player-cover-size);
  border-radius: var(--player-cover-radius);
}
.palafm-home .home-station-logo {
  width: var(--player-main-logo-size);
  height: var(--player-main-logo-size);
  border-radius: var(--player-logo-radius);
}
.palafm-home .home-station-badge {
  width: var(--player-badge-size);
  height: var(--player-badge-size);
  border-radius: calc(var(--player-badge-size) / 3);
}
.palafm-home .home-player-main h1 {
  font-size: clamp(
    var(--player-title-size-min),
    var(--player-title-size-fluid),
    var(--player-title-size-max)
  );
}

/* Nu speelt */
.palafm-home .home-now-card {
  padding: var(--now-card-padding-y) var(--now-card-padding-x)
    calc(var(--now-card-padding-y) + 1px);
  border-radius: var(--now-card-radius);
}
.palafm-home .home-now-card span {
  font-size: var(--now-label-size);
}
.palafm-home .home-now-card strong {
  font-size: clamp(
    var(--now-title-size-min),
    var(--now-title-size-fluid),
    var(--now-title-size-max)
  );
}
.palafm-home .home-now-card small {
  font-size: var(--now-artist-size);
}

/* Player buttons/pills */
.palafm-home .home-player-pills .pill,
.palafm-home .home-fav-btn {
  font-size: var(--player-pill-font-size);
  padding: var(--player-pill-padding-y) var(--player-pill-padding-x);
  border-radius: var(--pill-radius);
}
.palafm-home .home-player-actions .stream-btn,
.palafm-home .home-player-actions .btn {
  font-size: var(--player-button-font-size);
  padding: var(--player-button-padding-y) var(--player-button-padding-x);
  border-radius: var(--button-radius);
}

/* Progress */
.palafm-home .spotify-wave-wrap {
  height: var(--progress-height);
  border-radius: var(--progress-radius);
  background: var(--progress-track-bg);
}
.palafm-home .spotify-wave-progress-fill {
  border-radius: var(--progress-radius);
  background: linear-gradient(
    90deg,
    rgba(var(--art-rgb), var(--progress-fill-opacity-start)),
    rgba(var(--art-rgb), var(--progress-fill-opacity-end))
  );
  box-shadow: 0 0 10px rgba(var(--art-rgb), var(--progress-glow-opacity));
  transition:
    width var(--progress-transition),
    background 240ms ease,
    box-shadow 240ms ease;
}

/* Beste zenders */
.palafm-home .best-scroll-track {
  gap: var(--best-scroll-gap);
}
.palafm-home .station-card.compact {
  flex-basis: var(--best-card-width);
}

/* Zender grid */
.palafm-home .station-grid {
  grid-template-columns: repeat(
    auto-fill,
    minmax(var(--station-card-min-width), 1fr)
  );
}
.palafm-home .station-card {
  min-height: var(--station-card-min-height);
  padding: var(--station-card-padding-y) var(--station-card-padding-x);
  border-radius: var(--station-card-radius);
  grid-template-columns: var(--station-card-logo-size) 1fr 18px;
}
.palafm-home .station-card img {
  width: var(--station-card-logo-size);
  height: var(--station-card-logo-size);
  border-radius: var(--station-card-logo-radius);
}
.palafm-home .station-card b {
  font-size: var(--station-card-title-size);
}
.palafm-home .station-card small {
  font-size: var(--station-card-meta-size);
}
.palafm-home .station-card.compact .station-votes {
  display: flex;
  align-items: center;
  gap: var(--best-vote-gap);
  margin-top: 4px;
  line-height: 1;
  white-space: nowrap;
}
.palafm-home .station-card.compact .vote-rating {
  position: relative;
  display: inline-block;
  font-size: var(--best-vote-star-size);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--best-vote-star-empty);
}
.palafm-home .station-card.compact .vote-rating-base {
  color: var(--best-vote-star-empty);
}
.palafm-home .station-card.compact .vote-rating-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--rating-width, 0%);
  overflow: hidden;
  color: var(--best-vote-star-filled);
  text-shadow: 0 0 8px var(--best-vote-star-glow);
  white-space: nowrap;
}
.palafm-home .station-card.compact .vote-count {
  color: var(--pf-muted);
}

/* Autoplay/start overlay */
.palafm-home .autoplay-gate {
  border-radius: var(--autoplay-radius);
  background: var(--autoplay-bg);
}

/* Responsive centrale waarden */
@media (max-width: 980px) {
  :root {
    --player-cover-size: 86px;
    --player-main-logo-size: 64px;
    --station-card-min-width: 170px;
  }
}
@media (max-width: 640px) {
  :root {
    --player-cover-size: 92px;
    --player-main-logo-size: 68px;
  }
  .palafm-home .home-player-card {
    grid-template-columns: 1fr;
  }
}

/* ========================================================================== 
   Alle zenders inklappen/openen
   ========================================================================== */
.palafm-home .all-stations-panel {
  position: relative;
  overflow: hidden;
}

.palafm-home .all-stations-toggle {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--button-radius);
  padding: 10px 13px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    rgba(var(--art-rgb, 139, 92, 246), 0.34),
    rgba(255, 255, 255, 0.08)
  );
  cursor: pointer;
  white-space: nowrap;
}

.palafm-home .all-stations-toggle:hover,
.palafm-home .all-stations-toggle:focus-visible {
  border-color: rgba(var(--art-rgb, 139, 92, 246), 0.68);
  box-shadow: 0 0 0 3px rgba(var(--art-rgb, 139, 92, 246), 0.16);
  outline: none;
}

.palafm-home .all-stations-panel .station-grid {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  padding-right: 6px;
  transition: max-height 260ms ease;
}

.palafm-home .all-stations-panel.is-collapsed .station-grid {
  max-height: var(--all-stations-collapsed-height, 252px);
}

.palafm-home .all-stations-panel.is-expanded .station-grid {
  max-height: var(--all-stations-expanded-height, 640px);
}

.palafm-home .all-stations-panel .station-grid::-webkit-scrollbar {
  width: 10px;
}

.palafm-home .all-stations-panel .station-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.055);
  border-radius: 999px;
}

.palafm-home .all-stations-panel .station-grid::-webkit-scrollbar-thumb {
  background: rgba(var(--art-rgb, 139, 92, 246), 0.46);
  border-radius: 999px;
}

.palafm-home .all-stations-panel.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 74px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(7, 7, 17, 0),
    rgba(7, 7, 17, 0.92)
  );
}

.palafm-home .all-stations-panel.is-collapsed .all-stations-toggle {
  position: relative;
  z-index: 2;
}

@media (max-width: 980px) {
  .palafm-home .station-tools {
    grid-template-columns: 1fr;
  }

  .palafm-home .all-stations-toggle {
    width: 100%;
  }

  .palafm-home .all-stations-panel.is-collapsed .station-grid {
    max-height: var(--all-stations-collapsed-height-mobile, 330px);
  }

  .palafm-home .all-stations-panel.is-expanded .station-grid {
    max-height: var(--all-stations-expanded-height-mobile, 70vh);
  }
}


/* Beste zenders: votes als max. 5 sterren */


/* ==========================================================================
   FIX V18 - ALBUM ART ECHT OVER DE HELE PAGINA + HEADER NIET STICKY
   ==========================================================================

   Deze override staat bewust onderaan zodat oude dubbele regels geen invloed meer
   hebben. De album-art laag is fixed en ligt achter alle content over de volledige
   viewport/pagina. De header scrollt normaal mee uit beeld.
   ========================================================================== */

html {
  min-height: 100%;
  background-color: var(--pf-bg);
}

body,
body.palafm-home {
  min-height: 100%;
  background: transparent !important;
}

body.palafm-home::before {
  content: "";
  position: fixed !important;
  inset: -14vmax !important;
  z-index: 0 !important;
  pointer-events: none;
  background-image: var(--palafm-page-art-url) !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  opacity: var(--page-art-opacity) !important;
  filter: blur(var(--page-art-blur)) saturate(var(--page-art-saturate)) !important;
  transform: scale(var(--page-art-scale)) translateZ(0) !important;
  transform-origin: center center;
  transition:
    background-image 240ms ease,
    opacity 240ms ease,
    filter 240ms ease;
}

body.palafm-home::after {
  content: "";
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 50% 0,
      rgba(var(--art-rgb, 96, 165, 250), 0.18),
      transparent 38rem
    ),
    linear-gradient(
      180deg,
      rgba(7, 7, 17, 0.38),
      rgba(7, 7, 17, 0.78)
    );
}

body.palafm-home > * {
  position: relative;
  z-index: 1;
}

.top,
.palafm-home .top {
  position: relative !important;
  top: auto !important;
}


/* ==========================================================================
   FIX V19 - PREMIUM FM POLISH STAP 1 T/M 8
   ========================================================================== */

/* 1 + 2: plattere player en rustigere album-art sfeer */
html,
body.palafm-home {
  background-color: var(--pf-bg) !important;
}

body.palafm-home::before {
  opacity: var(--page-art-opacity) !important;
  filter: blur(var(--page-art-blur)) saturate(var(--page-art-saturate)) brightness(0.78) !important;
}

body.palafm-home::after {
  background:
    radial-gradient(circle at 18% 0, rgba(var(--art-rgb, 96, 165, 250), 0.14), transparent 34rem),
    radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.08), transparent 30rem),
    linear-gradient(180deg, rgba(7, 7, 17, 0.52), rgba(7, 7, 17, 0.88)) !important;
}

.palafm-home .home-radio-wrap {
  padding-bottom: 42px;
}

.palafm-home .home-player-shell {
  margin-top: 6px;
  margin-bottom: 18px;
}

.palafm-home .home-backdrop {
  opacity: 0.36 !important;
  filter: blur(28px) saturate(1.06) brightness(0.72) !important;
}

.palafm-home .home-player-card {
  grid-template-columns: minmax(76px, var(--player-cover-size)) 1fr;
  min-height: 0;
  align-items: center;
  border-radius: 12px;
  background-color: rgba(12, 13, 22, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 18px 46px rgba(0, 0, 0, 0.26);
}

.palafm-home .home-player-card::before {
  background:
    linear-gradient(90deg, rgba(9, 10, 18, 0.68), rgba(9, 10, 18, 0.36), rgba(9, 10, 18, 0.62));
}

.palafm-home .home-cover-card {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    0 10px 24px rgba(0, 0, 0, 0.18);
}

.palafm-home .home-station-logo {
  padding: 5px;
  background: rgba(255, 255, 255, 0.11);
}

.palafm-home .home-player-main {
  gap: 5px;
}

.palafm-home #homeLiveTag {
  width: fit-content;
  padding: 3px 8px;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
}

.palafm-home .home-player-main h1 {
  max-width: 720px;
  letter-spacing: -0.055em;
}

/* 6: Nu speelt-blok professioneler + kleine live equalizer */
.palafm-home .home-now-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  width: min(720px, 100%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.045));
  border-color: rgba(255, 255, 255, 0.075);
  backdrop-filter: blur(12px);
}

.palafm-home .home-now-card span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  color: rgb(var(--art-rgb, 155, 231, 255));
}

.palafm-home .home-now-card span::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background:
    linear-gradient(90deg,
      rgba(var(--art-rgb, 155, 231, 255), 0.35) 0 25%,
      transparent 25% 37%,
      rgba(var(--art-rgb, 155, 231, 255), 0.75) 37% 62%,
      transparent 62% 74%,
      rgba(var(--art-rgb, 155, 231, 255), 0.48) 74% 100%);
  box-shadow: 0 0 10px rgba(var(--art-rgb, 155, 231, 255), 0.3);
}

.palafm-home .home-now-card strong,
.palafm-home .home-now-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.palafm-home .home-player-pills {
  margin-top: 1px;
}

.palafm-home .home-player-pills .pill,
.palafm-home .home-fav-btn {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 255, 255, 0.105);
}

.palafm-home .home-player-actions {
  margin-top: 1px;
}

.palafm-home .home-player-actions .stream-btn,
.palafm-home .home-player-actions .btn {
  min-height: 36px;
  box-shadow: none;
}

.palafm-home .stream-btn.play {
  background: rgba(34, 197, 94, 0.18);
}

.palafm-home .stream-btn.stop {
  background: rgba(239, 68, 68, 0.13);
}

.palafm-home .home-status {
  margin-top: 0;
  margin-bottom: 0;
}

.palafm-home .home-wave-progress {
  padding-top: 4px;
}

.palafm-home .spotify-wave-time-row {
  margin-bottom: 4px;
  font-size: 0.72rem;
}

.palafm-home .spotify-wave-wrap {
  height: var(--progress-height);
  opacity: 0.92;
}

/* 3: Beste zenders strakker met fade-randen, rustiger cards en gekleurde sterren */
.palafm-home .home-section-head {
  margin-bottom: 10px;
}

.palafm-home .home-section-head p {
  margin: 0;
  font-size: 0.92rem;
}

.palafm-home .best-stations-row {
  position: relative;
  margin-inline: -2px;
  padding: 2px 22px 10px;
  mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

.palafm-home .best-scroll-track {
  gap: 9px;
}

.palafm-home .station-card.compact {
  flex: 0 0 var(--best-card-width);
  min-height: 66px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.058);
}

.palafm-home .station-card.compact:hover,
.palafm-home .station-card.compact.current {
  transform: translateY(-1px);
  border-color: rgba(var(--art-rgb, 139, 92, 246), 0.54);
  background: rgba(var(--art-rgb, 139, 92, 246), 0.13);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.palafm-home .station-card.compact .station-votes {
  opacity: 0.96;
}

.palafm-home .station-card.compact .vote-rating {
  color: rgba(255, 255, 255, 0.2);
}

.palafm-home .station-card.compact .vote-rating-fill {
  color: rgb(var(--art-rgb, 245, 158, 11));
  text-shadow: 0 0 10px rgba(var(--art-rgb, 245, 158, 11), 0.34);
}

.palafm-home .station-card.compact .vote-count {
  font-size: 0.72rem;
  color: rgba(248, 250, 252, 0.66);
}

/* 4: Alle zenders meer app-grid, controls beter uitgelijnd */
.palafm-home .all-stations-panel.panel {
  padding: 18px 20px 20px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.055));
}

.palafm-home .station-toolbar {
  align-items: center;
  gap: 18px;
}

.palafm-home .station-toolbar h2 {
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

.palafm-home .station-tools {
  grid-template-columns: minmax(220px, 1fr) 180px auto auto;
  align-items: center;
}

.palafm-home .station-tools .input,
.palafm-home .station-tools select,
.palafm-home .station-tools button {
  min-height: 38px;
  border-radius: 11px;
}

.palafm-home .all-stations-toggle {
  padding-inline: 12px;
  background: rgba(var(--art-rgb, 139, 92, 246), 0.18);
}

.palafm-home .station-grid {
  gap: 9px;
}

.palafm-home .station-card:not(.compact) {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.095);
}

.palafm-home .station-card:not(.compact):hover,
.palafm-home .station-card:not(.compact).current {
  transform: translateY(-1px);
  border-color: rgba(var(--art-rgb, 139, 92, 246), 0.48);
  background: linear-gradient(135deg, rgba(var(--art-rgb, 139, 92, 246), 0.16), rgba(255, 255, 255, 0.06));
}

.palafm-home .station-card.current em {
  color: rgb(var(--art-rgb, 249, 168, 212));
}

.palafm-home .all-stations-panel .station-grid {
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--art-rgb, 139, 92, 246), 0.42) rgba(255, 255, 255, 0.045);
}

/* 5: Header dunner en scrollt mee uit beeld */
.palafm-home .top {
  position: relative !important;
  top: auto !important;
  min-height: 0;
  margin-block: 10px;
  padding-block: var(--header-padding-y);
  border-radius: 12px;
  background-color: rgba(8, 8, 18, 0.76);
}

.palafm-home .top::before {
  background: linear-gradient(90deg, rgba(8,10,18,0.74), rgba(8,10,18,0.54), rgba(8,10,18,0.76));
}

.palafm-home .brand small {
  margin-top: 0;
}

.palafm-home nav {
  gap: 6px;
}

/* 7: stemmen = populariteit, halve sterren blijven percentage-accurate */
.palafm-home .station-card.compact .station-votes[title] {
  cursor: help;
}

/* 8: mobile-first polish */
@media (max-width: 980px) {
  .palafm-home .home-player-card {
    grid-template-columns: 78px 1fr;
    gap: 10px;
  }

  .palafm-home .home-cover-card {
    min-height: 78px;
  }

  .palafm-home .home-station-logo {
    width: 58px;
    height: 58px;
  }

  .palafm-home .station-toolbar {
    align-items: stretch;
  }

  .palafm-home .station-tools {
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-width: 0;
  }

  .palafm-home .station-tools .input {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .palafm-home .top {
    width: min(100% - 18px, var(--page-max-width));
    margin-top: 8px;
  }

  .palafm-home .top,
  .palafm-home .brand,
  .palafm-home nav {
    align-items: stretch;
  }

  .palafm-home nav a,
  .palafm-home nav button {
    flex: 1 1 auto;
    text-align: center;
    justify-content: center;
  }

  .palafm-home .wrap {
    width: min(100% - 18px, var(--page-max-width));
  }

  .palafm-home .home-player-card {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .palafm-home .home-cover-card {
    min-height: 76px;
  }

  .palafm-home .home-station-logo {
    width: 58px;
    height: 58px;
  }

  .palafm-home .home-now-card strong,
  .palafm-home .home-now-card small {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .palafm-home .home-now-card strong {
    -webkit-line-clamp: 2;
  }

  .palafm-home .home-now-card small {
    -webkit-line-clamp: 2;
  }

  .palafm-home .home-player-actions .stream-btn,
  .palafm-home .home-player-actions .btn {
    flex: 1 1 100%;
    width: 100%;
  }

  .palafm-home .best-stations-row {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
  }

  .palafm-home .best-scroll-track {
    animation: none !important;
  }

  .palafm-home .station-card.compact {
    scroll-snap-align: start;
  }

  .palafm-home .station-tools {
    grid-template-columns: 1fr;
  }

  .palafm-home .all-stations-panel.panel {
    padding: 15px;
  }

  .palafm-home .station-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 460px) {
  .palafm-home .station-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================================== 
   FIX V21 - RADIO APP FEATURES: NOTIFICATIES, MINI-PLAYER, FULLSCREEN PLAYER,
   SLEEP TIMER, RECENT, DETAIL, SHARE EN STREAM HERSTEL
   ========================================================================== */
:root {
  --mini-player-height: 72px;
  --mini-player-bottom: 14px;
  --mini-player-radius: 16px;
  --modal-card-radius: 22px;
  --modal-art-size: 220px;
}

body.modal-open {
  overflow: hidden;
}

.palafm-home .home-radio-wrap {
  padding-bottom: calc(var(--mini-player-height) + 52px);
}

.palafm-home .notify-app-btn,
.palafm-home .install-app-btn {
  background: rgba(var(--art-rgb, 139, 92, 246), 0.16);
  border-color: rgba(var(--art-rgb, 139, 92, 246), 0.28);
}

.palafm-home .notify-app-btn.active {
  color: #dcfce7;
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.36);
}

.palafm-home .sleep-control {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.palafm-home .sleep-control select {
  width: auto;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.065);
}

.palafm-home .sleep-control span {
  color: rgba(248, 250, 252, 0.7);
  font-size: 0.82rem;
  font-weight: 750;
}

.palafm-home .station-card {
  position: relative;
  grid-template-columns: var(--station-card-logo-size) 1fr 22px 20px;
}

.palafm-home .station-card.compact {
  grid-template-columns: var(--station-card-logo-size) 1fr 20px 18px;
}

.palafm-home .station-card i {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  align-self: start;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 950;
  color: rgba(248, 250, 252, 0.72);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.palafm-home .station-card i:hover {
  color: #fff;
  border-color: rgba(var(--art-rgb), 0.42);
  background: rgba(var(--art-rgb), 0.18);
}

.palafm-home .recent-section[hidden] {
  display: none;
}

.palafm-home .recent-stations-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}

.palafm-home .recent-stations-row::-webkit-scrollbar {
  display: none;
}

.palafm-home .mini-player[hidden] {
  display: none;
}

.palafm-home .mini-player {
  position: fixed;
  left: 50%;
  bottom: var(--mini-player-bottom);
  z-index: 30;
  width: min(760px, calc(100% - 24px));
  min-height: var(--mini-player-height);
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--mini-player-radius);
  background:
    linear-gradient(135deg, rgba(10, 11, 20, 0.86), rgba(15, 16, 28, 0.76));
  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.46),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(1.2);
  transform: translateX(-50%);
}

.palafm-home .mini-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  box-shadow: none;
}

.palafm-home .mini-main:hover {
  transform: none;
}

.palafm-home .mini-main img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.palafm-home .mini-main b,
.palafm-home .mini-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.palafm-home .mini-main b {
  font-size: 0.98rem;
}

.palafm-home .mini-main small {
  color: rgba(248, 250, 252, 0.68);
  font-size: 0.82rem;
  font-weight: 650;
}

.palafm-home .mini-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 13px;
  background: rgba(var(--art-rgb, 139, 92, 246), 0.16);
}

.palafm-home .mini-icon.active {
  color: #f9a8d4;
}

.palafm-home .player-modal[hidden],
.palafm-home .station-detail-modal[hidden] {
  display: none;
}

.palafm-home .player-modal,
.palafm-home .station-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 18px;
}

.palafm-home .player-modal-backdrop,
.palafm-home .station-detail-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 10%, rgba(var(--art-rgb, 139, 92, 246), 0.22), transparent 34rem),
    rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
}

.palafm-home .player-modal-card,
.palafm-home .station-detail-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(780px, calc(100vh - 34px));
  overflow: auto;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--modal-card-radius);
  background:
    linear-gradient(180deg, rgba(18, 19, 32, 0.92), rgba(10, 11, 20, 0.86));
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(18px) saturate(1.2);
}

.palafm-home .modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  font-size: 1.25rem;
  line-height: 1;
}

.palafm-home .modal-art {
  width: min(var(--modal-art-size), 56vw);
  height: min(var(--modal-art-size), 56vw);
  object-fit: contain;
  border-radius: 28px;
  padding: 12px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 62px rgba(0, 0, 0, 0.34);
}

.palafm-home .player-modal-card h2,
.palafm-home .station-detail-card h2 {
  margin: 2px 0 0;
  font-size: clamp(1.8rem, 6vw, 3.1rem);
  line-height: 0.98;
  text-align: center;
  letter-spacing: -0.05em;
}

.palafm-home .player-modal-card strong {
  max-width: 100%;
  text-align: center;
  font-size: clamp(1.05rem, 4vw, 1.45rem);
  overflow-wrap: anywhere;
}

.palafm-home .player-modal-card small,
.palafm-home .station-detail-card p {
  margin: 0;
  color: rgba(248, 250, 252, 0.72);
  text-align: center;
  font-weight: 650;
}

.palafm-home .modal-actions {
  display: flex;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 6px;
}

.palafm-home .modal-actions button.active {
  color: #fbcfe8;
  background: rgba(236, 72, 153, 0.18);
  border-color: rgba(236, 72, 153, 0.4);
}

.palafm-home .station-detail-card {
  justify-items: stretch;
  width: min(720px, 100%);
}

.palafm-home .station-detail-card > img {
  justify-self: center;
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 22px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
}

.palafm-home .detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.palafm-home .detail-grid div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.palafm-home .detail-grid span {
  color: rgba(248, 250, 252, 0.58);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.palafm-home .detail-grid b {
  overflow-wrap: anywhere;
}

.palafm-home .palafm-toast[hidden] {
  display: none;
}

.palafm-home .palafm-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--mini-player-bottom) + var(--mini-player-height) + 12px);
  z-index: 60;
  max-width: min(520px, calc(100% - 30px));
  padding: 11px 14px;
  border-radius: 999px;
  color: #fff;
  font-weight: 850;
  text-align: center;
  background: rgba(11, 13, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

@media (max-width: 700px) {
  :root {
    --mini-player-height: 66px;
    --mini-player-bottom: 10px;
    --modal-art-size: 190px;
  }

  .palafm-home .home-radio-wrap {
    padding-bottom: calc(var(--mini-player-height) + 40px);
  }

  .palafm-home .sleep-control,
  .palafm-home .sleep-control select {
    width: 100%;
  }

  .palafm-home .mini-player {
    width: calc(100% - 18px);
    grid-template-columns: 1fr auto auto;
    gap: 6px;
    padding: 7px;
  }

  .palafm-home .mini-main {
    grid-template-columns: 44px 1fr;
  }

  .palafm-home .mini-main img {
    width: 44px;
    height: 44px;
  }

  .palafm-home .miniNextBtn,
  .palafm-home #miniNextBtn {
    display: none;
  }

  .palafm-home .mini-icon {
    width: 39px;
    height: 39px;
  }

  .palafm-home .player-modal,
  .palafm-home .station-detail-modal {
    align-items: end;
    padding: 10px;
  }

  .palafm-home .player-modal-card,
  .palafm-home .station-detail-card {
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 24px 24px 18px 18px;
    padding: 18px 14px 16px;
  }

  .palafm-home .modal-actions button {
    flex: 1 1 42%;
  }

  .palafm-home .detail-grid {
    grid-template-columns: 1fr;
  }
}


/* ========================================================================== 
   FIX V22 - MOOIERE DROPDOWNS + RECENT BOVEN BESTE
   ========================================================================== */
:root {
  --dropdown-arrow-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.88)' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.palafm-home .station-tools .input {
  background: linear-gradient(180deg, rgba(17, 20, 33, 0.94), rgba(11, 13, 24, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 8px 22px rgba(0,0,0,0.14);
}

.palafm-home .station-tools select,
.palafm-home .sleep-control select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color-scheme: dark;
  color: #fff;
  font-weight: 760;
  letter-spacing: -0.01em;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background-color: rgba(12, 14, 25, 0.96);
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    var(--dropdown-arrow-svg);
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, right 12px center;
  background-size: auto, 16px 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 10px 24px rgba(0,0,0,0.14);
  padding-right: 40px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background-color .18s ease;
}

.palafm-home .station-tools select:hover,
.palafm-home .sleep-control select:hover {
  border-color: rgba(var(--art-rgb, 139, 92, 246), 0.34);
  background-color: rgba(16, 18, 31, 0.98);
}

.palafm-home .station-tools select:focus,
.palafm-home .sleep-control select:focus,
.palafm-home .station-tools .input:focus {
  outline: none;
  border-color: rgba(var(--art-rgb, 139, 92, 246), 0.52);
  box-shadow: 0 0 0 4px rgba(var(--art-rgb, 139, 92, 246), 0.14), 0 14px 30px rgba(0,0,0,0.24);
}

.palafm-home .station-tools select option,
.palafm-home .sleep-control select option {
  color: #f8fafc;
  background: #161827;
}

.palafm-home .station-tools select option:checked,
.palafm-home .sleep-control select option:checked {
  background: rgba(124, 58, 237, 0.7);
  color: #fff;
}

.palafm-home .station-tools select::-ms-expand,
.palafm-home .sleep-control select::-ms-expand {
  display: none;
}

.palafm-home .sleep-control {
  gap: 10px;
}

.palafm-home .sleep-control select {
  min-width: 190px;
  min-height: 38px;
}

.palafm-home .sleep-control span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.palafm-home .recent-section {
  order: 1;
}

.palafm-home .best-stations-row {
  order: 2;
}

@media (max-width: 700px) {
  .palafm-home .station-tools select,
  .palafm-home .sleep-control select,
  .palafm-home .station-tools .input {
    min-height: 42px;
    font-size: 0.95rem;
  }

  .palafm-home .sleep-control span {
    width: 100%;
    justify-content: flex-start;
  }
}


/* ========================================================================== 
   FIX V23 - ECHTE CUSTOM APP-DROPDOWNS
   ========================================================================== */
.palafm-home .native-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

.palafm-home .palafm-custom-select {
  position: relative;
  min-width: 170px;
  width: 100%;
  z-index: 20;
}

.palafm-home .sleep-control .palafm-custom-select {
  width: auto;
  min-width: 190px;
}

.palafm-home .palafm-custom-select-btn {
  width: 100%;
  min-height: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px 9px 14px;
  border-radius: 12px;
  color: #f8fafc;
  font-weight: 860;
  font-size: 0.86rem;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.025)),
    rgba(12, 14, 25, 0.94);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 10px 24px rgba(0,0,0,0.14);
  cursor: pointer;
}

.palafm-home .palafm-custom-select-btn span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.palafm-home .palafm-custom-select-btn b {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: rgba(255,255,255,0.86);
  background: rgba(var(--art-rgb, 139, 92, 246), 0.16);
  border: 1px solid rgba(var(--art-rgb, 139, 92, 246), 0.26);
  transition: transform .18s ease, background .18s ease;
}

.palafm-home .palafm-custom-select.is-open .palafm-custom-select-btn,
.palafm-home .palafm-custom-select-btn:hover,
.palafm-home .palafm-custom-select-btn:focus-visible {
  outline: none;
  border-color: rgba(var(--art-rgb, 139, 92, 246), 0.52);
  box-shadow: 0 0 0 4px rgba(var(--art-rgb, 139, 92, 246), 0.14), 0 16px 34px rgba(0,0,0,0.26);
}

.palafm-home .palafm-custom-select.is-open .palafm-custom-select-btn b {
  transform: rotate(180deg);
  background: rgba(var(--art-rgb, 139, 92, 246), 0.26);
}

.palafm-home .palafm-custom-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  max-height: min(330px, 54vh);
  overflow-y: auto;
  padding: 7px;
  border-radius: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.985);
  transform-origin: top;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 18% 0%, rgba(var(--art-rgb, 139, 92, 246), 0.18), transparent 42%),
    linear-gradient(180deg, rgba(24, 27, 43, 0.985), rgba(11, 13, 24, 0.985));
  box-shadow: 0 24px 70px rgba(0,0,0,0.48), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(22px) saturate(1.35);
  z-index: 200;
  transition: opacity .16s ease, transform .16s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--art-rgb, 139, 92, 246), 0.46) rgba(255,255,255,0.05);
}

.palafm-home .palafm-custom-select.is-open {
  z-index: 220;
}

.palafm-home .palafm-custom-select.is-open .palafm-custom-select-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.palafm-home .palafm-custom-select-menu button {
  width: 100%;
  min-height: 34px;
  display: grid;
  grid-template-columns: 1fr 18px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  color: rgba(248, 250, 252, 0.82);
  background: transparent;
  font-weight: 760;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
}

.palafm-home .palafm-custom-select-menu button span {
  opacity: 0;
  color: rgb(var(--art-rgb, 249, 168, 212));
  font-weight: 950;
}

.palafm-home .palafm-custom-select-menu button:hover,
.palafm-home .palafm-custom-select-menu button:focus-visible {
  outline: none;
  color: #fff;
  background: rgba(255,255,255,0.075);
  transform: none;
}

.palafm-home .palafm-custom-select-menu button.is-selected {
  color: #fff;
  background: linear-gradient(135deg, rgba(var(--art-rgb, 139, 92, 246), 0.34), rgba(255,255,255,0.07));
  border: 1px solid rgba(var(--art-rgb, 139, 92, 246), 0.22);
}

.palafm-home .palafm-custom-select-menu button.is-selected span {
  opacity: 1;
}

@media (max-width: 700px) {
  .palafm-home .palafm-custom-select,
  .palafm-home .sleep-control .palafm-custom-select {
    width: 100%;
    min-width: 0;
  }

  .palafm-home .palafm-custom-select-btn {
    min-height: 44px;
    font-size: 0.95rem;
  }

  .palafm-home .palafm-custom-select-menu {
    max-height: 46vh;
  }
}


/* ========================================================================== 
   FIX V24 - SLEEP TIMER CUSTOM DROPDOWN COMPACTER EN NETTER
   ========================================================================== */
.palafm-home .sleep-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: 100%;
  isolation: isolate;
  z-index: 45;
}

.palafm-home .sleep-control .palafm-custom-select,
.palafm-home .palafm-custom-select--sleep {
  width: auto;
  min-width: 156px;
  max-width: 190px;
  flex: 0 0 auto;
  z-index: 70;
}

.palafm-home .palafm-custom-select--sleep .palafm-custom-select-btn {
  min-height: 34px;
  padding: 7px 8px 7px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.02)),
    rgba(16, 18, 29, 0.86);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045), 0 8px 18px rgba(0,0,0,0.14);
}

.palafm-home .palafm-custom-select--sleep .palafm-custom-select-btn b {
  width: 19px;
  height: 19px;
  font-size: 0.78rem;
  opacity: 0.9;
}

.palafm-home .palafm-custom-select--sleep.is-open .palafm-custom-select-btn,
.palafm-home .palafm-custom-select--sleep .palafm-custom-select-btn:hover,
.palafm-home .palafm-custom-select--sleep .palafm-custom-select-btn:focus-visible {
  border-color: rgba(var(--art-rgb, 139, 92, 246), 0.42);
  box-shadow: 0 0 0 2px rgba(var(--art-rgb, 139, 92, 246), 0.12), 0 10px 24px rgba(0,0,0,0.22);
}

.palafm-home .palafm-custom-select--sleep .palafm-custom-select-menu {
  top: auto;
  bottom: calc(100% + 8px);
  left: 0;
  right: auto;
  width: 230px;
  max-height: 240px;
  padding: 6px;
  border-radius: 14px;
  transform: translateY(6px) scale(0.985);
  transform-origin: bottom left;
  z-index: 500;
}

.palafm-home .palafm-custom-select--sleep.is-open .palafm-custom-select-menu {
  transform: translateY(0) scale(1);
}

.palafm-home .palafm-custom-select--sleep .palafm-custom-select-menu button {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.82rem;
}

.palafm-home .sleep-control > span,
.palafm-home #sleepTimerStatus {
  min-height: 34px;
  padding: 0 11px;
  white-space: nowrap;
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.075);
}

@media (max-width: 700px) {
  .palafm-home .sleep-control {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .palafm-home .sleep-control .palafm-custom-select,
  .palafm-home .palafm-custom-select--sleep {
    width: 100%;
    max-width: none;
  }

  .palafm-home .palafm-custom-select--sleep .palafm-custom-select-menu {
    width: 100%;
    max-height: 280px;
  }

  .palafm-home .sleep-control > span,
  .palafm-home #sleepTimerStatus {
    width: 100%;
  }
}


/* ========================================================================== 
   FIX V25 - SLEEP TIMER STIJL MEER IN LIJN MET DE ANDERE KNOPPEN
   ========================================================================== */
.palafm-home .sleep-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.palafm-home .sleep-control .palafm-custom-select,
.palafm-home .palafm-custom-select--sleep {
  min-width: 192px;
  max-width: none;
}

.palafm-home .palafm-custom-select--sleep .palafm-custom-select-btn {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025)),
    rgba(20, 23, 36, 0.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 10px 24px rgba(0,0,0,0.14);
}

.palafm-home .palafm-custom-select--sleep .palafm-custom-select-btn b {
  width: auto;
  height: auto;
  min-width: 14px;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1;
  padding: 0;
}

.palafm-home .palafm-custom-select--sleep.is-open .palafm-custom-select-btn,
.palafm-home .palafm-custom-select--sleep .palafm-custom-select-btn:hover,
.palafm-home .palafm-custom-select--sleep .palafm-custom-select-btn:focus-visible {
  outline: none;
  border-color: rgba(var(--art-rgb, 139, 92, 246), 0.38);
  background:
    linear-gradient(180deg, rgba(var(--art-rgb, 139, 92, 246), 0.16), rgba(255,255,255,0.025)),
    rgba(20, 23, 36, 0.84);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 10px 24px rgba(0,0,0,0.16);
}

.palafm-home .palafm-custom-select--sleep.is-open .palafm-custom-select-btn b {
  transform: rotate(180deg);
  color: rgba(255,255,255,0.92);
  background: transparent;
}

.palafm-home .palafm-custom-select--sleep .palafm-custom-select-menu {
  width: 100%;
  min-width: 192px;
  border-radius: 16px;
}

.palafm-home .sleep-control > span,
.palafm-home #sleepTimerStatus {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 760;
  color: rgba(248, 250, 252, 0.76);
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

@media (max-width: 700px) {
  .palafm-home .sleep-control {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .palafm-home .sleep-control .palafm-custom-select,
  .palafm-home .palafm-custom-select--sleep,
  .palafm-home .palafm-custom-select--sleep .palafm-custom-select-menu,
  .palafm-home #sleepTimerStatus {
    width: 100%;
    min-width: 0;
  }
}


/* ========================================================================== 
   FIX V26 - SLEEP TIMER VEEL COMPACTER
   ========================================================================== */
.palafm-home .sleep-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: 100%;
  margin-top: 0;
}

.palafm-home .sleep-control .palafm-custom-select,
.palafm-home .palafm-custom-select--sleep {
  width: auto;
  min-width: 148px;
  max-width: 148px;
  flex: 0 0 auto;
}

.palafm-home .palafm-custom-select--sleep .palafm-custom-select-btn {
  min-height: 34px;
  height: 34px;
  padding: 6px 10px 6px 12px;
  border-radius: 18px;
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: -0.01em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 6px 16px rgba(0,0,0,0.10);
}

.palafm-home .palafm-custom-select--sleep .palafm-custom-select-btn b {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.68);
}

.palafm-home .palafm-custom-select--sleep.is-open .palafm-custom-select-btn,
.palafm-home .palafm-custom-select--sleep .palafm-custom-select-btn:hover,
.palafm-home .palafm-custom-select--sleep .palafm-custom-select-btn:focus-visible {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 8px 18px rgba(0,0,0,0.12);
}

.palafm-home .palafm-custom-select--sleep .palafm-custom-select-menu {
  width: 188px;
  min-width: 188px;
  max-height: 220px;
  padding: 5px;
  border-radius: 14px;
}

.palafm-home .palafm-custom-select--sleep .palafm-custom-select-menu button {
  min-height: 32px;
  padding: 7px 9px;
  font-size: 0.8rem;
  border-radius: 9px;
}

.palafm-home .sleep-control > span,
.palafm-home #sleepTimerStatus {
  min-height: 34px;
  height: 34px;
  padding: 0 11px;
  border-radius: 18px;
  font-size: 0.82rem;
  font-weight: 720;
}

@media (max-width: 700px) {
  .palafm-home .sleep-control {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    width: 100%;
  }

  .palafm-home .sleep-control .palafm-custom-select,
  .palafm-home .palafm-custom-select--sleep,
  .palafm-home .palafm-custom-select--sleep .palafm-custom-select-menu,
  .palafm-home #sleepTimerStatus {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .palafm-home .palafm-custom-select--sleep .palafm-custom-select-btn,
  .palafm-home #sleepTimerStatus {
    min-height: 38px;
    height: 38px;
    font-size: 0.88rem;
  }
}


/* ========================================================================== 
   FIX V27 - SLEEP TIMER ALS NORMALE PLAYER-KNOP, GEEN LOSSE ROMMELIGE RIJ
   ========================================================================== */
.palafm-home .home-player-actions .sleep-control {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  z-index: 40;
}

.palafm-home .home-player-actions .sleep-control .palafm-custom-select,
.palafm-home .home-player-actions .palafm-custom-select--sleep {
  width: auto !important;
  min-width: 112px !important;
  max-width: 132px !important;
  flex: 0 0 auto !important;
}

.palafm-home .home-player-actions .palafm-custom-select--sleep .palafm-custom-select-btn {
  min-height: 40px !important;
  height: 40px !important;
  padding: 10px 14px !important;
  border-radius: 14px !important;
  font-size: 0.94rem !important;
  font-weight: 850 !important;
  color: rgba(255,255,255,0.95) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025)),
    rgba(255,255,255,0.045) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 8px 18px rgba(0,0,0,0.12) !important;
}

.palafm-home .home-player-actions .palafm-custom-select--sleep .palafm-custom-select-btn b {
  width: auto !important;
  height: auto !important;
  min-width: 10px !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  color: rgba(255,255,255,0.72) !important;
  font-size: 0.78rem !important;
}

.palafm-home .home-player-actions .palafm-custom-select--sleep.is-open .palafm-custom-select-btn,
.palafm-home .home-player-actions .palafm-custom-select--sleep .palafm-custom-select-btn:hover,
.palafm-home .home-player-actions .palafm-custom-select--sleep .palafm-custom-select-btn:focus-visible {
  border-color: rgba(var(--art-rgb, 139, 92, 246), 0.42) !important;
  background:
    linear-gradient(180deg, rgba(var(--art-rgb, 139, 92, 246), 0.16), rgba(255,255,255,0.03)),
    rgba(255,255,255,0.055) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 10px 24px rgba(0,0,0,0.16) !important;
}

.palafm-home .home-player-actions .palafm-custom-select--sleep .palafm-custom-select-menu {
  top: calc(100% + 8px) !important;
  bottom: auto !important;
  left: 0 !important;
  right: auto !important;
  width: 190px !important;
  min-width: 190px !important;
  max-height: 220px !important;
  transform-origin: top left !important;
}

.palafm-home .home-player-actions .palafm-custom-select--sleep.is-open .palafm-custom-select-menu {
  transform: translateY(0) scale(1) !important;
}

.palafm-home .home-player-actions #sleepTimerStatus {
  display: none !important;
}

.palafm-home .home-player-actions .sleep-control.has-active-timer #sleepTimerStatus {
  display: inline-flex !important;
  align-items: center;
  min-height: 40px !important;
  height: 40px !important;
  padding: 0 12px !important;
  border-radius: 14px !important;
  font-size: 0.86rem !important;
  font-weight: 760 !important;
  color: rgba(255,255,255,0.84) !important;
  background: rgba(var(--art-rgb, 139, 92, 246), 0.12) !important;
  border: 1px solid rgba(var(--art-rgb, 139, 92, 246), 0.18) !important;
}

@media (max-width: 700px) {
  .palafm-home .home-player-actions .sleep-control,
  .palafm-home .home-player-actions .sleep-control .palafm-custom-select,
  .palafm-home .home-player-actions .palafm-custom-select--sleep {
    width: 100% !important;
    max-width: none !important;
  }

  .palafm-home .home-player-actions .palafm-custom-select--sleep .palafm-custom-select-btn {
    width: 100% !important;
  }

  .palafm-home .home-player-actions .palafm-custom-select--sleep .palafm-custom-select-menu {
    width: 100% !important;
    min-width: 0 !important;
  }
}


/* ========================================================================== 
   FIX V28 - SLEEP TIMER ALS KLEIN ICOON, GEEN LELIJKE BREDE KNOP
   ========================================================================== */
.palafm-home .home-player-actions .sleep-control {
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 6px !important;
  position: relative !important;
  z-index: 60 !important;
}

.palafm-home .home-player-actions .sleep-control .palafm-custom-select,
.palafm-home .home-player-actions .palafm-custom-select--sleep {
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  height: 42px !important;
  flex: 0 0 42px !important;
}

.palafm-home .home-player-actions .palafm-custom-select--sleep .palafm-custom-select-btn {
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  grid-template-columns: 1fr !important;
  border-radius: 14px !important;
  color: rgba(248, 250, 252, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025)),
    rgba(20, 23, 36, 0.74) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 8px 18px rgba(0,0,0,0.13) !important;
}

.palafm-home .home-player-actions .palafm-custom-select--sleep .palafm-custom-select-btn span,
.palafm-home .home-player-actions .palafm-custom-select--sleep .palafm-custom-select-btn b {
  display: none !important;
}

.palafm-home .home-player-actions .palafm-custom-select--sleep .palafm-custom-select-btn::before {
  content: "⏱";
  display: block;
  font-size: 1rem;
  line-height: 1;
  transform: translateY(1px);
}

.palafm-home .home-player-actions .palafm-custom-select--sleep.is-open .palafm-custom-select-btn,
.palafm-home .home-player-actions .palafm-custom-select--sleep .palafm-custom-select-btn:hover,
.palafm-home .home-player-actions .palafm-custom-select--sleep .palafm-custom-select-btn:focus-visible {
  outline: none !important;
  border-color: rgba(var(--art-rgb, 139, 92, 246), 0.48) !important;
  background:
    linear-gradient(180deg, rgba(var(--art-rgb, 139, 92, 246), 0.18), rgba(255,255,255,0.03)),
    rgba(20, 23, 36, 0.82) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 10px 22px rgba(0,0,0,0.18) !important;
}

.palafm-home .home-player-actions .palafm-custom-select--sleep .palafm-custom-select-menu {
  width: 206px !important;
  min-width: 206px !important;
  max-width: 206px !important;
  left: auto !important;
  right: 0 !important;
  top: calc(100% + 8px) !important;
  bottom: auto !important;
  transform-origin: top right !important;
  border-radius: 14px !important;
}

.palafm-home .home-player-actions .palafm-custom-select--sleep .palafm-custom-select-menu button {
  min-height: 34px !important;
  padding: 7px 9px !important;
  font-size: 0.8rem !important;
}

.palafm-home .home-player-actions #sleepTimerStatus {
  display: none !important;
  min-height: 30px !important;
  height: 30px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  color: rgba(248, 250, 252, 0.86) !important;
  background: rgba(var(--art-rgb, 139, 92, 246), 0.14) !important;
  border: 1px solid rgba(var(--art-rgb, 139, 92, 246), 0.28) !important;
}

.palafm-home .home-player-actions .sleep-control.has-active-timer #sleepTimerStatus {
  display: inline-flex !important;
  align-items: center !important;
}

@media (max-width: 700px) {
  .palafm-home .home-player-actions .sleep-control {
    display: inline-flex !important;
    width: auto !important;
  }

  .palafm-home .home-player-actions .sleep-control .palafm-custom-select,
  .palafm-home .home-player-actions .palafm-custom-select--sleep,
  .palafm-home .home-player-actions .palafm-custom-select--sleep .palafm-custom-select-btn {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
  }
}


/* ========================================================================== 
   FIX V29 - TIMER MENU KLIKBAAR: OPENT OMHOOG EN WORDT NIET GECLIPT
   ========================================================================== */
.palafm-home .home-player-shell,
.palafm-home .home-player-card,
.palafm-home .home-player-main,
.palafm-home .home-player-actions {
  overflow: visible !important;
}

.palafm-home .home-player-actions {
  position: relative !important;
  z-index: 180 !important;
}

.palafm-home .home-wave-progress {
  position: relative !important;
  z-index: 5 !important;
}

.palafm-home .home-player-actions .sleep-control,
.palafm-home .home-player-actions .palafm-custom-select--sleep {
  position: relative !important;
  z-index: 320 !important;
}

.palafm-home .home-player-actions .palafm-custom-select--sleep.is-open {
  z-index: 700 !important;
}

.palafm-home .home-player-actions .palafm-custom-select--sleep .palafm-custom-select-menu {
  top: auto !important;
  bottom: calc(100% + 10px) !important;
  right: 0 !important;
  left: auto !important;
  width: 214px !important;
  min-width: 214px !important;
  max-width: 214px !important;
  max-height: 250px !important;
  overflow-y: auto !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(8px) scale(0.98) !important;
  transform-origin: bottom right !important;
  z-index: 999 !important;
  box-shadow: 0 24px 70px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.08) !important;
}

.palafm-home .home-player-actions .palafm-custom-select--sleep.is-open .palafm-custom-select-menu {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
}

.palafm-home .home-player-actions .palafm-custom-select--sleep .palafm-custom-select-menu button {
  cursor: pointer !important;
  pointer-events: auto !important;
}

@media (max-width: 700px) {
  .palafm-home .home-player-actions .palafm-custom-select--sleep .palafm-custom-select-menu {
    right: auto !important;
    left: 0 !important;
    width: min(260px, calc(100vw - 28px)) !important;
    min-width: min(260px, calc(100vw - 28px)) !important;
    max-width: min(260px, calc(100vw - 28px)) !important;
    transform-origin: bottom left !important;
  }
}


/* ========================================================================== 
   FIX V30 - GROTE PLAYER ECHT ALS PLAYER + CHROME EXTENSION WRAPPER
   ========================================================================== */
.palafm-home .player-modal-card--radio {
  width: min(980px, 100%);
  max-height: min(860px, calc(100vh - 34px));
  justify-items: stretch;
  padding: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 16%, rgba(var(--art-rgb, 139, 92, 246), 0.18), transparent 22rem),
    linear-gradient(180deg, rgba(16, 18, 31, 0.95), rgba(9, 11, 21, 0.94));
}

.palafm-home .player-modal-inner {
  display: grid;
  grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.palafm-home .modal-art-column {
  display: grid;
  justify-items: center;
}

.palafm-home .modal-art-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 28px 70px rgba(0,0,0,0.28);
}

.palafm-home .modal-art-glow {
  position: absolute;
  inset: -14%;
  background-size: cover;
  background-position: center;
  filter: blur(28px) saturate(1.3);
  opacity: 0.68;
  transform: scale(1.06);
}

.palafm-home .player-modal-card--radio .modal-art {
  position: relative;
  z-index: 1;
  width: min(240px, 82%);
  height: min(240px, 82%);
  margin: 0;
  padding: 10px;
  border-radius: 24px;
  background: rgba(10, 12, 22, 0.64);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

.palafm-home .modal-main-column {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
}

.palafm-home .player-modal-card--radio h2,
.palafm-home .player-modal-card--radio strong,
.palafm-home .player-modal-card--radio small {
  text-align: left;
}

.palafm-home .player-modal-card--radio h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 0.92;
}

.palafm-home .player-modal-card--radio strong {
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  line-height: 1.08;
}

.palafm-home .player-modal-card--radio small {
  color: rgba(248,250,252,0.74);
  font-size: 0.98rem;
}

.palafm-home .modal-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.palafm-home .modal-wave-progress {
  margin-top: 4px;
}

.palafm-home .modal-wave-progress .spotify-wave-wrap {
  height: 34px;
  border-radius: 14px;
}

.palafm-home .modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.palafm-home .modal-volume {
  display: grid;
  gap: 6px;
  width: min(320px, 100%);
}

.palafm-home .modal-volume span {
  color: rgba(248,250,252,0.72);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.palafm-home .modal-volume input[type="range"] {
  width: 100%;
  accent-color: rgb(var(--art-rgb, 139, 92, 246));
}

.palafm-home .player-modal-card--radio .modal-actions {
  justify-content: flex-start;
  margin-top: 4px;
}

.palafm-home .player-modal-card--radio .modal-actions button {
  min-height: 44px;
  border-radius: 14px;
  font-weight: 800;
}

@media (max-width: 760px) {
  .palafm-home .player-modal-card--radio {
    padding: 18px 14px 16px;
  }

  .palafm-home .player-modal-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .palafm-home .modal-art-shell {
    width: min(280px, 100%);
    justify-self: center;
  }

  .palafm-home .modal-main-column {
    gap: 9px;
  }

  .palafm-home .player-modal-card--radio h2,
  .palafm-home .player-modal-card--radio strong,
  .palafm-home .player-modal-card--radio small {
    text-align: center;
  }

  .palafm-home .modal-pills,
  .palafm-home .player-modal-card--radio .modal-actions {
    justify-content: center;
  }

  .palafm-home .modal-volume {
    width: 100%;
  }
}


/* ========================================================================== 
   FIX V31 - GROTE PLAYER MEER SPOTIFY/TUNEIN + ALBUM ART ALS BLUR ACHTERGROND
   ========================================================================== */
.palafm-home .player-modal-card--radio {
  position: relative;
  isolation: isolate;
}

.palafm-home .player-modal-media-bg,
.palafm-home .player-modal-media-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
}

.palafm-home .player-modal-media-bg {
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: blur(34px) saturate(1.3);
  transform: scale(1.12);
  opacity: 0.34;
}

.palafm-home .player-modal-media-overlay {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(8, 10, 19, 0.88) 0%, rgba(8, 10, 19, 0.62) 45%, rgba(8, 10, 19, 0.86) 100%),
    linear-gradient(180deg, rgba(8,10,19,0.1), rgba(8,10,19,0.4));
}

.palafm-home .player-modal-card--radio .modal-close,
.palafm-home .player-modal-card--radio .player-modal-inner {
  position: relative;
  z-index: 1;
}

.palafm-home .modal-main-column {
  gap: 12px;
}

.palafm-home .modal-wave-progress {
  margin-top: 2px;
}

.palafm-home .modal-bottom-bar {
  display: grid;
  gap: 14px;
  margin-top: 2px;
}

.palafm-home .modal-transport {
  display: flex;
  align-items: center;
  gap: 12px;
}

.palafm-home .transport-btn {
  min-width: 52px;
  min-height: 52px;
  display: inline-grid;
  place-items: center;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 14px 34px rgba(0,0,0,0.2);
}

.palafm-home .transport-btn:hover,
.palafm-home .transport-btn:focus-visible {
  outline: none;
  border-color: rgba(var(--art-rgb, 139, 92, 246), 0.38);
  background: rgba(255,255,255,0.12);
}

.palafm-home .transport-btn--play {
  min-width: 76px;
  min-height: 76px;
  font-size: 1.85rem;
  background: linear-gradient(135deg, rgba(var(--art-rgb, 139, 92, 246), 0.82), rgba(236, 72, 153, 0.66));
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 22px 54px rgba(0,0,0,0.3), 0 0 0 6px rgba(var(--art-rgb, 139, 92, 246), 0.12);
}

.palafm-home .modal-side-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.palafm-home .modal-side-actions button {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 800;
  color: #fff;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
}

.palafm-home .modal-toolbar {
  margin-top: 2px;
}

.palafm-home .modal-volume {
  width: min(360px, 100%);
}

.palafm-home .modal-volume input[type="range"] {
  height: 6px;
}

@media (max-width: 760px) {
  .palafm-home .modal-bottom-bar {
    gap: 12px;
  }

  .palafm-home .modal-transport,
  .palafm-home .modal-side-actions {
    justify-content: center;
  }

  .palafm-home .transport-btn {
    min-width: 48px;
    min-height: 48px;
  }

  .palafm-home .transport-btn--play {
    min-width: 68px;
    min-height: 68px;
    font-size: 1.6rem;
  }

  .palafm-home .player-modal-media-bg {
    opacity: 0.28;
  }
}


/* ========================================================================== 
   FIX V33 - MAIN PLAYER MUTE + VOLUME EN GROTE PLAYER ALLEEN VIA SLUITKNOP DICHT
   ========================================================================== */
.palafm-home .home-audio-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(430px, 100%);
  margin-top: 2px;
}

.palafm-home .home-mute-btn {
  min-width: 44px;
  min-height: 38px;
  padding: 0 12px;
  display: inline-grid;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
}

.palafm-home .home-mute-btn.is-muted {
  color: #fbcfe8;
  border-color: rgba(236, 72, 153, 0.35);
  background: rgba(236, 72, 153, 0.12);
}

.palafm-home .home-volume-control {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 5px;
}

.palafm-home .home-volume-control span {
  color: rgba(248, 250, 252, 0.68);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.palafm-home .home-volume-control input[type="range"] {
  width: 100%;
  accent-color: rgb(var(--art-rgb, 139, 92, 246));
  cursor: pointer;
}

@media (max-width: 700px) {
  .palafm-home .home-audio-controls {
    width: 100%;
  }
}


/* ========================================================================== 
   FIX V43 - WEBSITE: INSTALLEER EXTENSIE SECTIE
   ========================================================================== */
.palafm-home .install-extension-link {
  background: rgba(var(--art-rgb, 139, 92, 246), 0.16);
  border-color: rgba(var(--art-rgb, 139, 92, 246), 0.28);
}

.palafm-home .extension-install-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 18px;
  align-items: center;
  padding: 20px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 0% 0%, rgba(var(--art-rgb, 139, 92, 246), .20), transparent 34rem),
    linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.045));
}

.palafm-home .extension-install-main h2 {
  margin: 8px 0 8px;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  letter-spacing: -0.05em;
}

.palafm-home .extension-install-main p {
  max-width: 760px;
  color: rgba(248,250,252,.78);
  font-weight: 650;
  line-height: 1.5;
}

.palafm-home .extension-install-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.palafm-home .extension-download-btn {
  background: linear-gradient(135deg, rgba(var(--art-rgb, 139, 92, 246), .38), rgba(34,197,94,.18));
  border-color: rgba(var(--art-rgb, 139, 92, 246), .42);
}

.palafm-home .extension-install-steps {
  margin: 0;
  padding: 14px 14px 14px 34px;
  border-radius: 12px;
  background: rgba(5, 7, 14, .34);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(248,250,252,.82);
  font-weight: 700;
  line-height: 1.55;
}

@media (max-width: 800px) {
  .palafm-home .extension-install-panel {
    grid-template-columns: 1fr;
  }
}


/* ========================================================================== 
   FIX V49 - EXTENSIE BLOK PAS TONEN NA KLIK OP EXTENSIE-KNOP
   ========================================================================== */
.palafm-home .extension-install-panel[hidden] {
  display: none !important;
}

.palafm-home .install-extension-link {
  cursor: pointer;
  color: #fff;
}

.palafm-home .install-extension-link.is-active {
  background: rgba(var(--art-rgb, 139, 92, 246), 0.30);
  border-color: rgba(var(--art-rgb, 139, 92, 246), 0.48);
}

.palafm-home .extension-install-panel.is-open {
  animation: extensionPanelIn .22s ease both;
}

@keyframes extensionPanelIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ========================================================================== 
   FIX V50 - WEBSITE: ANDROID APK DOWNLOAD GEKOPPELD AAN PALAFM-LATEST.JSON
   ========================================================================== */
.palafm-home .android-download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  color: #fff;
  font-weight: 850;
  text-decoration: none;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.30);
}

.palafm-home .android-download-link:hover,
.palafm-home .android-download-main-btn:hover {
  border-color: rgba(34, 197, 94, 0.50);
  background: rgba(34, 197, 94, 0.22);
}

.palafm-home .android-download-link.is-loading,
.palafm-home .android-download-main-btn.is-loading {
  opacity: .72;
}

.palafm-home .android-download-link.is-disabled,
.palafm-home .android-download-main-btn.is-disabled {
  opacity: .55;
  pointer-events: none;
}

.palafm-home .android-download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, .85fr);
  gap: 18px;
  align-items: center;
  padding: 20px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 197, 94, .18), transparent 32rem),
    linear-gradient(180deg, rgba(255,255,255,.078), rgba(255,255,255,.04));
}

.palafm-home .android-download-main h2 {
  margin: 8px 0;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  letter-spacing: -0.05em;
}

.palafm-home .android-download-main p {
  max-width: 780px;
  color: rgba(248,250,252,.78);
  font-weight: 650;
  line-height: 1.5;
}

.palafm-home .android-download-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.palafm-home .android-download-main-btn {
  background: linear-gradient(135deg, rgba(34,197,94,.34), rgba(var(--art-rgb, 139, 92, 246), .18));
  border-color: rgba(34,197,94,.40);
}

.palafm-home .android-release-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(5, 7, 14, .34);
  border: 1px solid rgba(255,255,255,.10);
}

.palafm-home .android-release-card span {
  color: rgba(248,250,252,.58);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.palafm-home .android-release-card b {
  font-size: 1.55rem;
  letter-spacing: -.035em;
}

.palafm-home .android-release-card small {
  color: rgba(248,250,252,.70);
  font-weight: 650;
  line-height: 1.45;
}

@media (max-width: 800px) {
  .palafm-home .android-download-panel {
    grid-template-columns: 1fr;
  }
}


/* ========================================================================== 
   FIX V51 - ANDROID APK PANEL TOGGLE ZOALS EXTENSIE
   ========================================================================== */
.palafm-home .android-download-link.is-active {
  border-color: rgba(34, 197, 94, 0.44);
  background: rgba(34, 197, 94, 0.26);
}

.palafm-home .android-download-panel[hidden] {
  display: none !important;
}

.palafm-home .android-download-panel.is-open {
  animation: extensionPanelIn .22s ease both;
}


/* PalaFM iOS install helper */
.palafm-home .ios-install-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(124, 58, 237, 0.32);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(12, 12, 22, 0.78));
}

.palafm-home .ios-install-panel[hidden] {
  display: none !important;
}

.palafm-home .ios-install-main h2 {
  margin: 6px 0 8px;
}

.palafm-home .ios-install-main p,
.palafm-home .ios-install-steps {
  margin: 0;
  color: var(--muted, #c9c9d6);
}

.palafm-home .ios-install-steps {
  padding-left: 22px;
  line-height: 1.7;
  min-width: min(360px, 100%);
}

.palafm-home .ios-install-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  color: inherit;
  font-size: 22px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .palafm-home .ios-install-panel {
    grid-template-columns: 1fr;
    padding-right: 48px;
  }
}
