.audio-embed-widget {
  width: 320px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 12px;
  font-family: Arial, sans-serif;
  overflow: hidden;
  animation: pulse 2s infinite;
}

/* Effet “pulse” */
@keyframes pulse {
  0%   { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
  50%  { box-shadow: 0 6px 16px rgba(0,0,0,0.2); }
  100% { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
}

.audio-embed-widget .controls {
  display: flex;
  align-items: center;
}

.audio-embed-widget .toggle-btn {
  font-family: 'Material Icons';
  font-size: 22px;
  background: #4640FF;
  color: #fff;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s;
}

.audio-embed-widget .toggle-btn:hover {
  transform: scale(1.1);
}

.audio-embed-widget .flash-title {
  margin-left: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 20px; /* demandé */
  color: #333;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.audio-embed-widget .flash-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 300;     /* light */
  font-style: italic;   /* italique */
  font-size: 12px;      /* discret */
  color: #666;
}

.audio-embed-widget .flash-logo {
  margin-left: auto;
  height: 24px;
  width: auto;
}

.audio-embed-widget .progress-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.audio-embed-widget .progress-bar {
  position: relative;
  flex: 1;
  height: 7px;
  background: #eee;
  border-radius: 3.5px;
  overflow: hidden;
  cursor: pointer;
}

/* Barre calculée au sous-pixel via transform (GPU) */
.audio-embed-widget .progress-bar .progress {
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
  /* Aucune transition: on gère l’animation au RAF */
  background: #000;
}

.audio-embed-widget .countdown {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  color: #555;
  white-space: nowrap;
}
