#persistent-footer-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #65169e;
  color: #fff;
  padding: 10px 15px;
  z-index: 9999;
  overflow: hidden; /* wichtig für Canvas */
}

.player-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 2; /* liegt über dem Canvas */
}

.player-logo img {
  height: 40px;
}

.player-song {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.player-song span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 15s linear infinite;
}

@keyframes marquee {
  from { transform: translate(0, 0); }
  to { transform: translate(-100%, 0); }
}

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

.player-volume svg {
  flex-shrink: 0;
}

/* Standard-Style für Slider */
.player-volume input[type=range] {
  -webkit-appearance: none;
  width: 120px;
  height: 4px;
  background: #444;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

/* Webkit (Chrome, Edge, Safari) */
.player-volume input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1DB954; /* Spotify-Grün */
  cursor: pointer;
  border: none;
  margin-top: -5px;
}

/* Firefox */
.player-volume input[type=range]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1DB954;
  cursor: pointer;
  border: none;
}

.player-controls button {
  background: transparent;
  border: none;
  cursor: pointer;
}

/* Canvas für Waveform */
#sound-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3;
}
