.playback-rate-controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.playback-rate-strategy-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.playback-rate-strategy-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Let all four strategies share the row width evenly in Settings; they still
 * wrap gracefully in the narrow player popover. */
.playback-rate-strategy-btns > .btn {
  flex: 1 1 auto;
  white-space: nowrap;
}

.playback-rate-slider-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.playback-rate-label {
  font-size: 13px;
  font-weight: 500;
  min-width: 4.5rem;
  flex-shrink: 0;
}

.playback-rate-slider {
  flex: 1;
  min-width: 80px;
}

.playback-rate-value {
  font-size: 13px;
  color: var(--text-secondary);
  min-width: 3rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.playback-rate-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.player-playback-rate-popover,
.player-playback-rate-menu-section {
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.player-playback-rate-popover {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-playback-rate-menu-section {
  box-shadow: none;
}

.playback-rate-controls--compact .playback-rate-slider-row {
  gap: 0.5rem;
}

.playback-rate-controls--compact .playback-rate-slider {
  flex: 1;
  min-width: 0;
}

.playback-rate-controls--compact .playback-rate-strategy-row {
  gap: 0.35rem;
}

.player-playback-rate-btn {
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  min-width: 2.5rem;
  letter-spacing: -0.02em;
}

.player-playback-rate-btn--live {
  color: var(--accent);
}
