:root{
  --player-accent: #ff3b3b;
  --player-muted: rgba(255,255,255,0.75);
  --player-border: rgba(255,255,255,0.10);
}

/* Header mini player (right side) */
.header-player{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.hp-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.hp-btn img{
  width: 26px;
  height: 26px;
  display: block;
  filter: drop-shadow(0 0 10px rgba(255,59,59,0.22));
}

.hp-range{
  -webkit-appearance: none;
  appearance: none;
  width: 110px;
  height: 6px;
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  outline: none;
}

/* Thumb */
.hp-range::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--player-accent);
  border: 1px solid rgba(0,0,0,0.6);
}

.hp-range::-moz-range-thumb{
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--player-accent);
  border: 1px solid rgba(0,0,0,0.6);
}

.hp-wave{
  height: 22px;
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  margin-left: 2px;
}

.hp-bar{
  width: 2px;
  height: 8px;
  background: var(--player-accent);
  opacity: 0.85;
  transform-origin: bottom;
  animation: hp-bounce 0.55s infinite ease-in-out;
}

.hp-bar:nth-child(odd){
  animation-duration: 0.45s;
}
.hp-bar:nth-child(3n){
  animation-duration: 0.65s;
}

@keyframes hp-bounce{
  0%, 100% { transform: scaleY(0.25); opacity: 0.45; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* When paused/muted (JS adds .is-stopped) */
.header-player.is-stopped .hp-bar{
  animation: none;
  opacity: 0.25;
  transform: scaleY(0.25);
}

/* When the player sits under the left logo */
.header-left .header-player{
  justify-content: flex-start;
}


.header-player-center{ margin: 10px auto 0; }
