:root {

  
  --main-bg: #ffffff;
  --main-color: #f00000;
  --main-color-hover : #d00000;
  --text-color: #000000;
  --accent-bg: #f2f2f2;
  --shadow: rgba(0, 0, 0, 0.2);
}



.audio-player {
  background: var(--main-bg);
  color: var(--text-color);
  padding: 1rem;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: rgba(0, 0, 0, 0.17) 0px -20px 25px 0px inset, rgba(0, 0, 0, 0.17) 0px 20px 25px 0px inset, 0 4px 10px var(--shadow);
  margin: auto; 
}

.audio-info {
  font-weight: bold;
  text-align: center;
}

.controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

button {
  background: var(--main-color);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  filter: brightness(0.9);
}

input[type="range"] {
  accent-color: var(--main-color);
}

/* Barre de progression */
#progress {
  flex-grow: 1;
}

/* Volume */
.volume-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#volume-icon {
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 2;
}

/* Slider de volume masqué par défaut */
/* Curseur volume orienté verticalement */
#volume {
  position: absolute;
  bottom: 150%;
  left: 50%;
  transform: translateX(-50%) rotate(-90deg);
  opacity: 0;
  pointer-events: none;
  width: 60px; /* devient hauteur une fois tourné */
  transition: opacity 0.2s ease;
  accent-color: var(--main-color);
}

/* Apparition au survol */
.volume-wrapper:hover #volume {
  opacity: 1;
  pointer-events: auto;
}



@media all and (max-width: 991px)
{

.audio-player {
	max-width: unset;
}

#volume {
  bottom: 150%;
  left: 50%;
  width: 150px; /* devient hauteur une fois tourné */
}

	
}
