/* === Stump City custom audio player === */

.stump-audio-wrapper {
  margin-bottom: 1.75rem;
}

.stump-audio-player {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #1f2b24, #314639); /* deep greens */
  color: #f4f2eb; /* light, slightly warm text */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.stump-audio-player button {
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
}

.stump-audio-player .sap-play-pause {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--bgreen); /* warm trunk/accent colour */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.stump-audio-player .sap-play-pause:focus-visible,
.stump-audio-player .sap-mute:focus-visible {
  outline: 2px solid #f4f2eb;
  outline-offset: 2px;
}

.stump-audio-player .sap-main {
  flex: 1 1 200px;
  min-width: 0;
}

.sap-track-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-bottom: 0.4rem;
}

.sap-title {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.9rem;
}

.sap-caption {
  font-size: 0.8rem;
  opacity: 0.85;
}

.sap-progress {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sap-progress-bar {
  position: relative;
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(244, 242, 235, 0.2);
  overflow: hidden;
  cursor: pointer;
}

.sap-progress-fill {
  position: absolute;
  inset: 0;
  width: 0;
  background: var(--bgreen);
  transition: width 0.1s linear;
}

.sap-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  opacity: 0.8;
}

.sap-mute {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.sap-volume {
  width: 90px;
  accent-color: var(--bgreen);
}

/* Small screens: tighten padding & let volume full-width if needed */
@media (max-width: 600px) {
  .stump-audio-player {
    padding: 0.85rem 0.9rem;
  }

  .stump-audio-player .sap-volume {
    width: 100%;
  }
}
