/* Annonces, retours d'erreur et repères de navigation clavier. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sr-only.is-visible {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(680px, calc(100vw - 32px));
  height: auto;
  margin: 0;
  padding: 12px 18px;
  overflow: visible;
  clip-path: none;
  white-space: normal;
  border: 2px solid #084887;
  border-radius: 12px;
  background: #fff;
  color: #084887;
  font: 500 14px/1.4 "FunnelSans", sans-serif;
  box-shadow: 4px 4px 0 #084887;
  z-index: 10000;
}

/* Focus des titres pour les lecteurs d'ecran, sans decoration de commande. */
[tabindex="-1"]:focus { outline: none; }

/* Focus clavier sur les conteneurs des curseurs transparents existants. */
.player-progress:has(input:focus-visible),
.player-volume-slider:has(input:focus-visible) {
  outline: auto;
  outline-offset: 4px;
}

.player-controls:focus-within { opacity: 1; pointer-events: auto; }
.marker-tooltip.is-visible { pointer-events: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
