.mpp-player-container {
  width: 100%;
}

.mpp-align-center {
  margin: 0 auto 1rem;
}

.mpp-align-left {
  margin: 0 auto 1rem 0;
}

.mpp-align-right {
  margin: 0 0 1rem auto;
}

.mpp-player {
  display: inline-flex;
  align-items: center;
  padding: 1px 12px; /* about half the original vertical padding */
  border-radius: 999px;
  border: 1px solid #d0d0d0;
  background-color: #fafafa;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  color: #333333;
}

.mpp-play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;  /* roughly half the original 28px button size */
  height: 16px;
  margin-right: 10px;
  border-radius: 999px;
  border: none;
  background: #ffffff;
  cursor: pointer;
  padding: 0;
  outline: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.mpp-play-button:focus-visible {
  box-shadow: 0 0 0 2px #4c9ffe;
}

.mpp-icon {
  width: 0;
  height: 0;
  border-style: solid;
}

.mpp-icon-play {
  margin-left: 2px;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #000000;
}

.mpp-icon-pause {
  width: 10px;
  height: 12px;
  border: none;
  background: none;
  position: relative;
}

.mpp-icon-pause::before,
.mpp-icon-pause::after {
  content: "";
  position: absolute;
  top: 0;
  width: 3px;
  height: 12px;
  background-color: #000000;
}

.mpp-icon-pause::before {
  left: 0;
}

.mpp-icon-pause::after {
  right: 0;
}

.mpp-time {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.mpp-current-time,
.mpp-duration,
.mpp-separator {
  display: inline-block;
}

/* Optional progress bar */
.mpp-progress-wrapper {
  flex: 1;
  margin: 0 10px; /* center between button and time */
}

.mpp-progress {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 0.5px; /* 50% thinner line */
  /* Use a CSS variable to show played vs. remaining portions */
  background: linear-gradient(
    to right,
    #000000 0%,
    #000000 var(--mpp-progress, 0%),
    #e3e3e3 var(--mpp-progress, 0%),
    #e3e3e3 100%
  );
  border-radius: 999px;
  cursor: pointer;
}

.mpp-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 8px;  /* slightly bigger dot */
  height: 8px;
  border-radius: 50%;
  background-color: #000000;
  border: none;
  margin-top: -3px; /* nudge dot slightly down to sit in the middle of the line */
  transform: scale(0); /* hidden by default */
  transition: transform 120ms ease-out;
}

.mpp-progress::-moz-range-thumb,
.mpp-progress::-ms-thumb {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #000000;
  border: none;
  transform: scale(0); /* hidden by default */
  transition: transform 120ms ease-out;
}

/* Show dot on hover or keyboard focus */
.mpp-progress:hover::-webkit-slider-thumb,
.mpp-progress:focus-visible::-webkit-slider-thumb,
.mpp-progress:hover::-moz-range-thumb,
.mpp-progress:focus-visible::-moz-range-thumb,
.mpp-progress:hover::-ms-thumb,
.mpp-progress:focus-visible::-ms-thumb {
  transform: scale(1);
}
.mpp-progress::-ms-thumb {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #000000;
  border: none;
}
