/* ===================== */
/* Mini Floating Waveform */
#mini-waveform {
  position: fixed;
  bottom: 20px; /* start off the screen */
  left: 1.5rem;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 50px;
  width: 120px;
  z-index: 9999;
  pointer-events: none;

  opacity: 0;
  transform: translateY(100%); /* start slightly below */
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#mini-waveform.show {
  opacity: 1;
  transform: translateY(0); /* slide up into view */
}

/* Match the modal / page color scheme */
.wave-bar {
  background-color: #EEE; /* dark neutral to fit tabs/modal styling */
  width: 4px;
  height: 10%;
  transition: height 0.05s linear;
  border-radius: 0; /* squared corners to match tabs/modal */
}

@keyframes wave {
  0%, 100% { height: 10%; }
  50% { height: 60%; } /* taller peak for visual pop */
}

/* Hide mini waveform on smaller screens to avoid overlap with single-column modals */
@media (max-width: 1015px) {
  #mini-waveform {
    display: none;
  }
}