/* Pluq audio — head stylesheet (this file only).
   Hides the native <audio> immediately so it does not flash before the waveform player
   is ready. CSS bundles always render in the <head>, so this is in place before first paint.
   Safety net: if the enhancement never shows up (JS missing or failed), the original comes
   back by itself after 2.5 s via this animation. */
.post-files-audio audio,
.jp-audio audio,
.jp-video audio,
[id^="jp_container_"] audio {
  visibility: hidden;
  animation: pq-native-reveal 1ms linear 2.5s forwards;
}

@keyframes pq-native-reveal {
  to { visibility: visible; }
}

/* Failed or impossible: the original must simply come back. */
[data-pq-audio="failed"] audio,
[data-pq-audio="unavailable"] audio {
  visibility: visible;
  animation: none;
}

/* Al vervangen: het blok zelf is dan verborgen, hier hoeft niets meer te gebeuren. */
.pq-audio-replaced audio {
  animation: none;
}
