/* Bulle flottante "Écouter" — version autonome pour Podcast Helper */
.aop-listen {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 0 !important;
  outline: none !important;
  cursor: pointer;
  background: #111 !important;
  background-color: #111 !important;
  color: #fff !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
  padding: 12px 20px !important;
  border-radius: 999px !important;
  line-height: 1;
  white-space: nowrap;
  position: fixed !important;
  bottom: 24px !important;
  right: 18px !important;
  z-index: 9001;
  transform: translateY(calc(100% + 40px));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.15s ease;
}

.aop-listen.aop-fab-visible {
  transform: translateY(0);
  animation: aop-fab-pulse 2.4s ease-out infinite;
}

.aop-listen.aop-fab-visible:hover,
.aop-listen.aop-fab-visible.is-open {
  animation: none;
}

.aop-listen:hover,
.aop-listen.is-open {
  background: #7d2d81 !important;
  background-color: #7d2d81 !important;
  color: #fff !important;
}

@keyframes aop-fab-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(17, 17, 17, 0.35); }
  55%  { box-shadow: 0 0 0 16px rgba(17, 17, 17, 0); }
  100% { box-shadow: 0 0 0 0 rgba(17, 17, 17, 0); }
}

.aop-fab-emoji {
  display: inline-block;
  animation: aop-emoji-vibrate 1.8s ease-in-out infinite;
  transform-origin: center;
}

@keyframes aop-emoji-vibrate {
  0%, 100% { transform: rotate(0deg); }
  10%      { transform: rotate(-18deg); }
  20%      { transform: rotate(16deg); }
  30%      { transform: rotate(-12deg); }
  40%      { transform: rotate(10deg); }
  50%      { transform: rotate(-6deg); }
  60%      { transform: rotate(4deg); }
  70%      { transform: rotate(-2deg); }
  80%      { transform: rotate(1deg); }
  90%      { transform: rotate(0deg); }
}

.aop-bubbles:not([hidden])::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
  pointer-events: none;
  animation: aop-backdrop-in 0.2s ease both;
}

@keyframes aop-backdrop-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.aop-bubbles {
  position: fixed;
  bottom: 72px;
  right: 18px;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 7px;
  z-index: 9000;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
}

.aop-bubbles[hidden] {
  display: none !important;
}

@keyframes aop-bubble-in {
  from {
    opacity: 0;
    transform: translateX(18px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.aop-bubble,
body .aop-bubble,
body .aop-bubbles a {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 999px !important;
  background: #fff !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.13);
  text-decoration: none !important;
  color: #111 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.12s ease;
  animation: aop-bubble-in 0.28s cubic-bezier(0.34, 1.46, 0.64, 1) both;
}

body .aop-bubble:nth-child(1) { animation-delay: 0ms; }
body .aop-bubble:nth-child(2) { animation-delay: 60ms; }
body .aop-bubble:nth-child(3) { animation-delay: 120ms; }
body .aop-bubble:nth-child(4) { animation-delay: 180ms; }
body .aop-bubble:nth-child(5) { animation-delay: 240ms; }
body .aop-bubble:nth-child(6) { animation-delay: 300ms; }
body .aop-bubble:nth-child(7) { animation-delay: 360ms; }

body .aop-bubble:hover,
body .aop-bubbles a:hover {
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
  transform: translateX(-3px);
  color: #111 !important;
}

.aop-bubble-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 10px;
  display: inline-block;
}

.aop-bubble-arr {
  margin-left: 4px;
  color: #888 !important;
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 899px) {
  .aop-listen {
    bottom: 110px !important;
  }
  .aop-bubbles {
    bottom: 168px;
  }
}

@media (max-width: 380px) {
  .aop-listen {
    padding: 10px 15px !important;
    font-size: 14px !important;
  }
}