@charset "UTF-8";
/**
 * SquirrelAudioPlayer - Purple Squirrel Media Audio Player
 * https://purplesquirrel.media
 *
 * @version 1.0.0
 * @license MIT
 */
/**
 * Purple Squirrel Media Theme Colors
 */
:root {
  --psm-color-primary: #9b30ff;
  --psm-color-primary-dark: #7a1fe8;
  --psm-color-primary-deep: #3b0b7d;
  --psm-color-background: #0c0a12;
  --psm-color-background-light: #0f0b18;
  --psm-color-text: #f6f2ff;
  --psm-color-text-soft: #d4cde9;
  --psm-audio-waveform-color: rgba(155, 48, 255, 0.4);
  --psm-audio-progress-color: #9b30ff;
  --psm-audio-cursor-color: #f6f2ff;
}

/**
 * Main container styles
 */
.psm-audio {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #0c0a12;
  border: 1px solid rgba(155, 48, 255, 0.2);
  border-radius: 12px;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  color: #f6f2ff;
  box-sizing: border-box;
}
.psm-audio *, .psm-audio *::before, .psm-audio *::after {
  box-sizing: border-box;
}
.psm-audio:focus {
  outline: 2px solid #9b30ff;
  outline-offset: 2px;
}
.psm-audio:focus:not(:focus-visible) {
  outline: none;
}
.psm-audio--loading .psm-audio__waveform {
  opacity: 0.5;
}
.psm-audio--loading .psm-audio__loading {
  opacity: 1;
  visibility: visible;
}
.psm-audio--playing {
  border-color: rgba(155, 48, 255, 0.4);
  box-shadow: 0 4px 20px rgba(155, 48, 255, 0.3);
}
.psm-audio--error {
  border-color: #f97583;
}
.psm-audio--error .psm-audio__loading {
  opacity: 1;
  visibility: visible;
  color: #f97583;
}
.psm-audio--error .psm-audio__loading span::before {
  content: "Error loading audio";
}

.psm-audio__waveform {
  position: relative;
  width: 100%;
  min-height: 80px;
  background: #0f0b18;
  transition: opacity 0.3s ease;
}

.psm-audio__loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 10, 18, 0.8);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
  z-index: 10;
}
.psm-audio__loading span {
  color: #d4cde9;
  font-size: 13px;
}
.psm-audio__loading span::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 2px solid transparent;
  border-top-color: #9b30ff;
  border-radius: 50%;
  animation: psm-spin 0.8s linear infinite;
  vertical-align: middle;
}

@keyframes psm-spin {
  to {
    transform: rotate(360deg);
  }
}
/**
 * Control bar styles
 */
.psm-audio__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(12, 10, 18, 0.9), rgba(12, 10, 18, 0.7));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.psm-audio__control {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #f6f2ff;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.psm-audio__control:hover {
  background: rgba(155, 48, 255, 0.2);
  color: #9b30ff;
}
.psm-audio__control:active {
  background: rgba(155, 48, 255, 0.3);
  transform: scale(0.95);
}
.psm-audio__control:focus-visible {
  outline: 2px solid #9b30ff;
  outline-offset: 2px;
}
.psm-audio__control svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  pointer-events: none;
}

.psm-audio__control--play {
  width: 44px;
  height: 44px;
  background: linear-gradient(145deg, #7a1fe8, #3b0b7d);
  box-shadow: 0 4px 20px rgba(155, 48, 255, 0.3);
}
.psm-audio__control--play:hover {
  background: linear-gradient(145deg, #9b30ff, #7a1fe8);
  color: #f6f2ff;
}
.psm-audio__control--play svg {
  width: 22px;
  height: 22px;
}

.psm-audio__control--mute svg {
  width: 18px;
  height: 18px;
}

.psm-audio__control--speed {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  min-width: 36px;
}

.psm-audio__time {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: #d4cde9;
  min-width: 45px;
  text-align: center;
}
.psm-audio__time--current {
  color: #f6f2ff;
}
.psm-audio__time--duration {
  color: #8b7fa8;
}
.psm-audio__time--duration::before {
  content: "/";
  margin-right: 4px;
  opacity: 0.5;
}

.psm-audio__volume {
  display: flex;
  align-items: center;
  gap: 8px;
}

.psm-audio__volume-slider {
  appearance: none;
  width: 80px;
  height: 4px;
  background: rgba(155, 48, 255, 0.3);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.psm-audio__volume-slider:hover {
  background: rgba(155, 48, 255, 0.4);
}
.psm-audio__volume-slider::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  background: #9b30ff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(155, 48, 255, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.psm-audio__volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 20px rgba(155, 48, 255, 0.5);
}
.psm-audio__volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #9b30ff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(155, 48, 255, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.psm-audio__volume-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 20px rgba(155, 48, 255, 0.5);
}
.psm-audio__volume-slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
}
.psm-audio__volume-slider::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: transparent;
}

.psm-audio__speed {
  position: relative;
  margin-left: auto;
}

.psm-audio__speed-menu {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 8px;
  background: #1a1525;
  border: 1px solid rgba(155, 48, 255, 0.2);
  border-radius: 8px;
  padding: 6px;
  min-width: 80px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.psm-audio__speed-menu--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.psm-audio__speed-option {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: #d4cde9;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s ease;
}
.psm-audio__speed-option:hover {
  background: rgba(155, 48, 255, 0.2);
  color: #f6f2ff;
}
.psm-audio__speed-option--active {
  color: #9b30ff;
  font-weight: 600;
}
.psm-audio__speed-option--active::before {
  content: "✓";
  margin-right: 6px;
}

@media (max-width: 480px) {
  .psm-audio__controls {
    gap: 8px;
    padding: 10px 12px;
  }
  .psm-audio__control--play {
    width: 40px;
    height: 40px;
  }
  .psm-audio__control--play svg {
    width: 20px;
    height: 20px;
  }
  .psm-audio__volume-slider {
    width: 60px;
  }
  .psm-audio__time {
    font-size: 12px;
    min-width: 40px;
  }
}

/*# sourceMappingURL=squirrel-audio-player.css.map */
