a, .slidebar-close-btn { cursor: pointer; }

.slidebar-btn * {
    pointer-events: none;
}


#header h1 {align-items: baseline;}
#header h1 > span.small {
  font-size: 60%;
}

.btn-lp {
  display: inline-flex;
  align-items: center; 
  justify-content: center;
  width: 137px;
  height: 137px;
  border-radius: 50%;
  overflow: hidden;
  padding: 0;
  border: none;
  cursor: pointer;
}

/* ====== FÜR DIE KORREKTE ANZEIGE DER NUMMERRIERUNG DER TRACKLIST WENN ES AUF GEHT ======== */

/* Blendet ab dem 6. Element alles aus, wenn die Liste das Flag hat */
.mp3-list-style li:nth-child(n+6) {
  display: none;
}
.mp3-list-style.show li:nth-child(n+6) {
  display: list-item; /* Zeigt sie wieder als korrekt nummerierte Listenelemente an */
}


/* ====== DAS STOPPEN DER PAGEPLAYERS AM UNTEREN SEITENRAND ======== */

.pageplayer-sticky {
  position: sticky;
  bottom: 0;
  z-index: 999;
  line-height: 1.2;
  width: 100%;
  max-height: 50px;
  overflow: hidden;
}

/* ===== Player CSS ===== */

/* --- Haupt-Container (Eltern-Element) --- */
.pageplayer-box {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  padding: 5px 7px;
  font-size: 12px;
  font-family: sans-serif;
  line-height: 1;
  background: #ffd27f;
}

/* --- Linke Seite: Steuerung (Buttons) --- */
.pageplayer-controls {
  display: flex;
  flex-direction: row;
  gap: 7px;
}

.btn-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: #34393f;
  color: #e9eaed;
}

#btn-stop {
  display: none;
}

.btn-svg svg {
  width: 16px;
  height: 16px;
}

.is-playing #btn-play-pause.btn-svg,
.btn-svg:hover {
  color: #ffa500;
}

.btn-svg:active {
  color: #fff;
  transform: scale(0.9)
}

/* 1. Klicksicherheit bleibt */
#btn-play-pause svg { pointer-events: none; }

/* 2. Standard (Immer wenn NICHT gespielt wird: Zeige Play, verstecke Pause) */
#btn-play-pause .svg-play { display: inline-block !important; }
#btn-play-pause .svg-pause { display: none !important; }

/* 3. Aktiv (NUR wenn die Box die Klasse .is-playing hat: Verstecke Play, zeige Pause) */
.pageplayer-controls.is-playing #btn-play-pause .svg-play { display: none !important; }
.pageplayer-controls.is-playing #btn-play-pause .svg-pause { display: inline-block !important; }


/* --- Rechte Seite: Infos (Text & Progress) --- */

.pageplayer-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
  padding: 2px 0;
  width: 100%; /* WICHTIG: Zwingt die Box, den restlichen Platz einzunehmen */
  white-space: nowrap;
  overflow: hidden;
  
}

/* Obere Reihe: Titel & Status */
.pageplayer-text {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: baseline;
  gap: 3px;
  min-width: 0; 
  width: 100%;
  
}

.pageplayer-text small {
  display: none;
}

/* Untere Reihe: Scrubber & Zeiten */
.pageplayer-progress {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3px;
  width: 100%; /* WICHTIG: Damit die Zeile innerhalb der Info-Box voll ausfüllt */
}

.playtime {
  display: flex;
  flex-direction: row;
  align-items: center;
}

#time-current,
#time-duration {
  font-size: 10px;
  font-family: monospace;
  white-space: nowrap;
}

/* Fortschrittsbalken (Scrubber) */
#pageplayer-scrubber {
  flex-grow: 1;
  width: 100%;
  height: 5px;
  -webkit-appearance: none;
  appearance: none;
  background: #34393f;
  outline: none;
  border-radius: 3px;
  cursor: pointer;
}

#pageplayer-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e9eaed;
  cursor: pointer;
  border: 1px solid #34393f;
  transition: transform 0.1s ease; /* Optionale kleine Animation */
}

/* Für Firefox */
#pageplayer-scrubber::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e9eaed;
  cursor: pointer;
  border: 1px solid #34393f;
  transition: transform 0.1s ease;
}

.pageplayer-progress input[type="range"] {
  flex-grow: 1;
}


@media screen and (min-width: 50rem) {
  
  .pageplayer-sticky {
    max-height: 80px;
  }
  
  /* --- Haupt-Container (Eltern-Element) --- */
  .pageplayer-box {
    gap: 20px;
    padding: 7px 12px;
    font-size: 14px;
    line-height: 1.2;
  }
  
  /* --- Linke Seite: Steuerung (Buttons) --- */
  .pageplayer-controls {
    gap: 10px;
  }
  
  .btn-svg {
    width: 36px;
    height: 36px;
  }
  
  .btn-svg svg {
    width: 24px;
    height: 24px;
  }
  
  #btn-stop {
    display: inline-block;
  }
  
  /* --- Rechte Seite: Infos (Text & Progress) --- */
  
  .pageplayer-info {
    gap: 3px;
  }
  
  /* Obere Reihe: Titel & Status */
  .pageplayer-text {
    gap: 26px;
  }
  
  .pageplayer-text small {
    display: inline-block;
  }
  
  /* Untere Reihe: Scrubber & Zeiten */
  .pageplayer-progress {
    gap: 7px;
  }
  
  #time-current,
  #time-duration {
    font-size: 12px;
  }
  
  /* Fortschrittsbalken (Scrubber) */
  #pageplayer-scrubber {
    height: 6px;
    border-radius: 3px;
    max-width: 300px;
  }
  
  #pageplayer-scrubber::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
  }
  
  /* Für Firefox */
  #pageplayer-scrubber::-moz-range-thumb {
    width: 14px;
    height: 14px;
  }
  
}
