.d500-audio-player {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;

  width: 100%;
  min-height: 60px;
  padding: 0 22px;
  box-sizing: border-box;

  background: var(--d500-audio-bg, #971217);
  border-radius: 5px;
  color: var(--d500-audio-color, #fff);

  transition: padding 0.2s ease, min-height 0.2s ease;
}

/* Expand the player when playback starts */
.d500-audio-player.is-playing {
  min-height: 72px;
  padding-bottom: 12px;
}

.d500-audio-label {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.d500-audio-player audio {
  display: none;
}

.d500-audio-play {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

.d500-audio-menu {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 22px;
  line-height: 1;
}

/* Progress track */
.d500-audio-progress {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 8px;

  height: 3px;
  overflow: hidden;

  background: rgba(255, 255, 255, 0.35);
  border-radius: 999px;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.d500-audio-player.is-playing .d500-audio-progress {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

.d500-audio-progress-fill {
  width: 0;
  height: 100%;
  background: var(--d500-audio-color, #fff);
  border-radius: inherit;
}
