/* Controles do Player no Topo */
#player-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-play-toggle {
  background: #10b981;
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.2s;
}

.btn-play-toggle:hover {
  background: #059669;
  transform: scale(1.05);
}

.player-info {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  line-height: 1.2;
}

#player-status {
  color: #9ca3af;
  font-weight: 500;
}

/* Equalizador em CSS Puro (Substitui o efeito.gif) */
.equalizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
  width: 24px;
}

.equalizer span {
  display: block;
  width: 4px;
  height: 4px;
  background: #10b981;
  border-radius: 2px;
  transition: height 0.2s;
}

/* Só anima quando o player tiver a classe .is-playing */
.equalizer.is-playing span:nth-child(1) { animation: eq 0.6s infinite alternate; }
.equalizer.is-playing span:nth-child(2) { animation: eq 0.4s infinite alternate 0.2s; }
.equalizer.is-playing span:nth-child(3) { animation: eq 0.7s infinite alternate 0.1s; }
.equalizer.is-playing span:nth-child(4) { animation: eq 0.5s infinite alternate 0.3s; }

@keyframes eq {
  0% { height: 4px; }
  100% { height: 20px; }
}

/* Controle de Volume */
.volume-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

#volume-slider {
  width: 75px;
  accent-color: #10b981;
  cursor: pointer;
}

/* Esconde o volume em telas muito pequenas (celular usa botão físico) */
@media (max-width: 600px) {
  .volume-control { display: none; }
}
