.fixed-audio-bar {
  z-index: 9999;
  background: #ffffff;
  border: 1px solid #f0f0f6;
  border-radius: 12px;
  width: 100%;
  max-width: 330px;
  padding: 20px;
  display: flex;
  row-gap: 10px;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  color: #c64eba;
  position: fixed;
  bottom: 25px;
  right: 25px;
  box-shadow: 0 3px 6px rgba(17, 17, 84, 0.08),
    0 0.6px 0.8px rgba(16, 16, 101, 0.04);
  margin-bottom: 0;
  transition: all 0.3s ease;
}

.fixed-audio-bar:hover {
  transform: translate3d(0px, -8px, 0px) scale3d(1, 1, 1) rotateX(0deg)
    rotateY(0deg) rotateZ(-2deg) skew(0deg, 0deg);
  box-shadow: 0px 0px 4px 1px #f5a132;
}

.fixed-audio-bar p {
  font-size: 14px;
  margin: 10px 0;
  font-weight: 600;
  text-align: center;
}

.fixed-audio-bar .audio-link-container {
  margin-top: 15px;
}

.fixed-audio-bar .audio-link {
  color: #fff;
  text-align: center;
  background-color: #090f1d;
  border: 1px solid #090f1d;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.fixed-audio-bar .audio-link:hover {
  color: #090f1d;
  background-color: transparent;
}

.audio-controls {
  display: flex;
  align-items: center;
  width: 100%;
}

.play-pause {
  background: none;
  border: none;
  font-size: 24px;
  user-select: none;
  cursor: pointer;
  color: #c64eba;
  padding: 5px 10px !important;
}

.play-pause:hover {
  color: #c64eba;
  background: none;
}

.progress-bar {
  flex-grow: 1;
  height: 5px;
  background-color: #ddd;
  margin: 0 10px;
  border-radius: 5px;
  position: relative;
}

.progress {
  height: 100%;
  background-color: #c64eba;
  border-radius: 5px;
  width: 0%;
}

.time {
  font-size: 14px;
  color: #333;
}

.volume-container {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 15px;
}

.volume-slider-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 5px;
}

.volume-control {
  -webkit-appearance: none;
  width: 50px;
  height: 4px;
  border: none !important;
  border-radius: 2px !important;
  background: #ddd !important;
  padding: 0px !important;
  outline: none !important;
}

.volume-control::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #c64eba;
  cursor: pointer;
  transition: all 0.2s;
}

.volume-control::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.volume-percentage {
  font-size: 12px;
  color: #666;
  min-width: 40px;
}

.fixed-audio-bar.collapsed {
  width: 60px;
  height: 60px;
  padding: 10px;
  overflow: hidden;
  border-radius: 50%;
}


.fixed-audio-bar.collapsed .audio-link,
.fixed-audio-bar.collapsed p,
.fixed-audio-bar.collapsed .audio-controls {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fixed-audio-bar.collapsed .toggle-btn {
  opacity: 1;
  visibility: visible;
}

.close-btn svg {
  width: 20px;
}
.play-btn svg {
  width: 20px;
}

.toggle-btn:hover {
  color: #a53a8f;
}

.close-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #ffffff;
  border: 1px solid #f0f0f6;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 10000;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.play-btn {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.fixed-audio-bar.collapsed .audio-content {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.fixed-audio-bar.collapsed .play-btn {
  display: block;
}


.fixed-audio-bar.collapsed .close-btn {
  display: none;
}