/* ==========================================
   Ambient Background Music Player Stylesheet
   Theme: Folio (Accent: #b8a07e)
   ========================================== */

.ambient-player-widget {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 12px;
  background: rgba(26, 24, 22, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(184, 160, 126, 0.35);
  border-radius: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 15px rgba(184, 160, 126, 0.15);
  font-family: var(--nav-font, 'Poppins', sans-serif);
  color: #ffffff;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.ambient-player-widget:hover {
  border-color: rgba(184, 160, 126, 0.7);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3), 0 0 20px rgba(184, 160, 126, 0.25);
  transform: translateY(-2px);
}

/* Play/Pause Button */
.ambient-btn-toggle {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #b8a07e 0%, #967f60 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(184, 160, 126, 0.4);
  transition: all 0.3s ease;
  position: relative;
  outline: none;
}

.ambient-btn-toggle:hover {
  transform: scale(1.08);
  background: linear-gradient(135deg, #c7af8d 0%, #a58e6e 100%);
}

.ambient-btn-toggle:active {
  transform: scale(0.95);
}

/* Sound Wave Equalizer Icon */
.ambient-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
  width: 18px;
}

.ambient-equalizer span {
  width: 3px;
  background-color: #b8a07e;
  border-radius: 2px;
  height: 4px;
  transition: height 0.3s ease;
}

.ambient-player-widget.is-playing .ambient-equalizer span:nth-child(1) {
  animation: eqBounce 1.2s infinite ease-in-out alternate;
}

.ambient-player-widget.is-playing .ambient-equalizer span:nth-child(2) {
  animation: eqBounce 1.6s infinite ease-in-out 0.2s alternate;
}

.ambient-player-widget.is-playing .ambient-equalizer span:nth-child(3) {
  animation: eqBounce 1.1s infinite ease-in-out 0.4s alternate;
}

.ambient-player-widget.is-playing .ambient-equalizer span:nth-child(4) {
  animation: eqBounce 1.4s infinite ease-in-out 0.1s alternate;
}

@keyframes eqBounce {
  0% { height: 3px; }
  100% { height: 16px; }
}

/* Track Info Text */
.ambient-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.ambient-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #ffffff;
  white-space: nowrap;
}

.ambient-subtitle {
  font-size: 10px;
  color: #b8a07e;
  font-weight: 400;
  white-space: nowrap;
}

/* Controls section: Volume & Mode */
.ambient-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

/* Volume Container & Slider */
.ambient-volume-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ambient-vol-icon {
  font-size: 14px;
  color: #b8a07e;
  cursor: pointer;
  transition: color 0.2s;
}

.ambient-vol-icon:hover {
  color: #ffffff;
}

.ambient-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 55px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  cursor: pointer;
  transition: background 0.3s;
}

.ambient-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #b8a07e;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0,0,0,0.5);
  transition: transform 0.2s;
}

.ambient-volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  background: #ffffff;
}

/* Pulse animation for notice */
.ambient-player-widget.prompt-pulse {
  animation: widgetPulse 2s infinite alternate;
}

@keyframes widgetPulse {
  0% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 10px rgba(184, 160, 126, 0.2); }
  100% { box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3), 0 0 25px rgba(184, 160, 126, 0.6); }
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .ambient-player-widget {
    bottom: 15px;
    left: 15px;
    padding: 6px 12px;
    gap: 8px;
  }
  .ambient-volume-slider {
    width: 40px;
  }
  .ambient-subtitle {
    display: none;
  }
}
