/* Audio Playing Badge */
.audio-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 32px;
  height: 32px;
  margin: 0.5em;
  background: #4caf50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  animation: badge-bounce 1s ease-in-out infinite;
}

/* Bounce Animation for Badge */
@keyframes badge-bounce {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

/* Audio Bars Inside Badge */
.audio-badge::before,
.audio-badge::after {
  content: "";
  position: absolute;
  width: 3px;
  background: white;
  border-radius: 2px;
}

.audio-badge::before {
  height: 10px;
  left: 8px;
  animation: audio-bar-1 0.5s ease-in-out infinite;
}

.audio-badge::after {
  height: 14px;
  right: 8px;
  animation: audio-bar-2 0.5s ease-in-out infinite 0.2s;
}

/* Audio Bar Animations */
@keyframes audio-bar-1 {
  0%,
  100% {
    height: 6px;
  }

  50% {
    height: 12px;
  }
}

@keyframes audio-bar-2 {
  0%,
  100% {
    height: 10px;
  }

  50% {
    height: 14px;
  }
}

/* Hide Badge When Audio is Not Playing */
.org-tooltip:not(.audio-playing) .audio-badge {
  display: none;
}
