/* beal.one custom audio player
 *
 * Replaces the browser-default <audio controls> chrome with an ink-on-cream
 * editorial player. No drop shadows, no gradients, no rounded skeumorphism.
 * Cream/ink palette, serif/tabular type, 150ms transitions only.
 */

.beal-player {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(27, 31, 59, 0.1);
  border-radius: 9999px;
  background-color: rgba(27, 31, 59, 0.02);
}

.beal-player-toggle {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background-color: rgb(27, 31, 59); /* ink */
  color: rgb(245, 239, 230);          /* cream */
  cursor: pointer;
  transition: background-color 150ms cubic-bezier(.4, 0, .2, 1);
}

.beal-player-toggle:hover {
  background-color: rgb(42, 47, 88); /* ink-700 */
}

.beal-player-toggle:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgb(245, 239, 230), 0 0 0 4px rgb(27, 31, 59);
}

.beal-player-toggle svg {
  width: 1.125rem;
  height: 1.125rem;
  transition: opacity 150ms cubic-bezier(.4, 0, .2, 1);
}

.beal-player-progress {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-width: 0;
}

.beal-player-progress-bar {
  position: relative;
  width: 100%;
  height: 3px;
  background-color: rgba(27, 31, 59, 0.15);
  border-radius: 9999px;
  cursor: pointer;
  outline: none;
}

.beal-player-progress-bar:focus {
  box-shadow: 0 0 0 2px rgba(27, 31, 59, 0.4);
}

.beal-player-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: rgb(27, 31, 59);
  border-radius: 9999px;
}

.beal-player-time {
  flex: none;
  font-family: "Source Serif Pro", Georgia, serif;
  font-variant-numeric: tabular-nums;
  font-size: 0.8125rem;
  color: rgba(27, 31, 59, 0.6);
  min-width: 3.25rem;
  text-align: right;
}

@media (prefers-reduced-motion: reduce) {
  .beal-player-toggle,
  .beal-player-toggle svg {
    transition: none;
  }
}
