/* Hero Audio Player Styles */
.audio-player {
  padding: 0px;
  margin-bottom: 20px;
  user-select: none;
  position: relative;
  min-height: 40px;
  display: flex;
  gap: 0px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-around;
  margin: auto;
}

.open-audio-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #1A5B84, #12415d);
  color: #fff;
  border-radius: 999px;
  padding: 6px 16px;
  min-width: 130px;
  cursor: pointer;
  font-size: 16px;
}

.open-audio-box button {
  box-shadow: none;
  background: none;
  border: none;
  color: #fff;
}

.audio-title {
  font-size: 14px;
  line-height: 24px;
  font-weight: bold;
  padding-inline-end: 15px;
  cursor: pointer;
  max-width: calc(100% - 144px);
  color: #ebedef;
}

.audio-title marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  display: inline-flex;
}

.audio-player audio {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

.audio-box,
.audio-box:focus {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 510px;
  max-width: calc(100% - 32px);
  min-width: 290px;
  backdrop-filter: blur(10px);
  z-index: 10000;
  padding: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, opacity 0.4s ease;
  border-radius: 16px;
  overflow: hidden;
  user-select: none;
  transform: scale(1);
  background: rgba(10, 37, 54, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #CCD1D4;
}

.display-none {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
}

.audio-box.is-minimize {
  max-width: calc(100% - 70px - 15px);
  padding: 16px;
}

.audio-box.is-minimize .controls {
  display: none;
}

.minimal-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: ltr;
}

.min-controls {
  display: flex;
  gap: 8px;
}

.min-controls button,
.min-controls button:hover {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.min-controls .play-pause-btn {
  background: linear-gradient(135deg, #3eb8ab, #2c8178);
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  font-size: 14px;
  font-family: sans-serif;
  direction: ltr;
}

.progress-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}

.progress {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(135deg, #3eb8ab, #2c8178);
  width: 0%;
  transition: width 0.2s linear;
}

.time {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  opacity: 0.8;
  margin-top: -8px;
}

.main-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 4px 0;
}

.play-pause-btn,
.skip-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  color: #fff !important;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-pause-btn {
  width: 52px;
  height: 52px;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #3eb8ab, #2c8178);
}

.skip-btn {
  background: linear-gradient(135deg, #1A5B84, #12415d);
}

.additional-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #fff;
  cursor: pointer;
  width: 24px;
}

.volume {
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
}

.volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3eb8ab;
  cursor: pointer;
}/* Visualizer CSS */
.visualizer {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 20px;
}
.visualizer .bar {
  width: 3px;
  height: 100%;
  background-color: currentColor;
  border-radius: 2px;
  transform-origin: bottom;
  animation: none;
}
@keyframes grow {
  0% { transform: scaleY(0.2); }
  100% { transform: scaleY(1); }
}
/* Override visualizer with exact main.js styles */
.visualizer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 28px;
  margin-top: 1px;
  width: 25px; /* Adjust width to fit the 5 bars */
}
.visualizer .bar {
  width: 3px;
  background-color: currentColor;
  border-radius: 2px;
  animation: grow 0.5s infinite alternate;
  animation-play-state: paused;
}
@keyframes grow {
  from { height: 10px; }
  to { height: 100%; }
}
