:root {
  --light-accent: #e6ced0;
  --dark-accent: #b06b9d;
}
audio {
  display: none;
}
.audio-player {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.player-controls {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 275px;
  padding: 0.5rem;
  background: var(--marker); /* colour of audio player */
  border-radius: 10px;
}
.play-button {
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 23px;
  height: 23px;
  cursor: pointer;
  position: relative;
}
.play-button::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 11px;
  border-color: transparent transparent transparent var(--dark-accent); /* colour of play button */
  transform: translateX(1.5px);
}
.play-button.pause::before,
.play-button.pause::after {
  content: '';
  width: 4px;
  height: 10px;
  background: var(--dark-accent); /* colour of pause button */
  border-radius: 0;
  position: relative;
  display: inline-block;
  box-shadow: none;
  border: none;
  transform: none;
}
.play-button.pause::before {
  margin-right: 1.5px;
}
.play-button.pause::after {
  margin-left: 1.5px;
}
.progress-time-wrapper {
  position: relative;
  flex: 1;
}
.progress-container {
  width: 165px;
  height: 6px;
  background: var(--light-accent); /* colour of progress bar */
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}
.progress-bar {
  background: var(--dark-accent); /* colour of progress tracker */
  width: 0%; /* width controlled by JS */
  height: 100%;
  border-radius: 3px;
  transition: width 0.1s linear;
}
.time-display {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  font-size: 0.65rem;
  color: var(--dark-accent); /* colour of time stamps */
  user-select: none;
  white-space: nowrap;
  pointer-events: none;
}
.audio-player figcaption {
  margin-top: 0.5rem;
  line-height: 1.2;
}