/* ---------------------------------------------------------------
   Chr Recette Audio — lecteur front-end custom
--------------------------------------------------------------- */

.chrra-front-player {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Bouton lecture / pause */
.chrra-front-player__btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FF1213;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .2s;
  padding: 0;
}
.chrra-front-player__btn:hover,
.chrra-front-player__btn:focus-visible {
  opacity: .85;
  outline: 2px solid #FF1213;
  outline-offset: 2px;
}
.chrra-front-player__btn svg {
  fill: #fff;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

/* Annule la règle globale [aria-hidden=true]:not(.splide__slide) { display:none }
   Spécificité (0,3,0) > (0,2,0) de la règle globale */
.chrra-front-player .chrra-front-player__btn [aria-hidden="true"] {
  display: block;
}

/* Icône pause masquée par défaut — même spécificité (0,3,0), ordre après → gagne */
.chrra-front-player .chrra-front-player__btn .icon-pause { display: none; }
.chrra-front-player--playing .chrra-front-player__btn .icon-play  { display: none; }
.chrra-front-player--playing .chrra-front-player__btn .icon-pause { display: block; }

/* Zone centrale : barre de progression + temps */
.chrra-front-player__progress {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

/* Piste */
.chrra-front-player__track {
  position: relative;
  height: 4px;
  background: #d0d0d0;
  border-radius: 2px;
  cursor: pointer;
}

/* Remplissage rouge */
.chrra-front-player__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #FF1213;
  border-radius: 2px;
  pointer-events: none;
  transition: width .1s linear;
}

/* Input range superposé, transparent pour la hit zone */
.chrra-front-player__seek {
  position: absolute;
  inset: -6px 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
  height: calc(100% + 12px);
}

/* Temps affiché */
.chrra-front-player__time {
  font-size: .68rem;
  color: #666;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
