/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.player-cover {
  max-width: 354px;
}

.player-speed-step {
  width: 44px;
  height: 44px;
  background: transparent;
}

.player-speed-step:active {
  background: rgba(255, 255, 255, 0.12);
}

.player-speed-step:disabled {
  opacity: 0.3;
}

.player-speed-step:focus:not(:focus-visible),
.player-speed-preset:focus:not(:focus-visible),
.player-speed-button:focus:not(:focus-visible) {
  outline: none;
}

.player-speed-step:focus-visible,
.player-speed-preset:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -3px;
}

.player-speed-button:focus-visible {
  outline: 2px solid #1f4d4d;
  outline-offset: 2px;
}

/* WebKit can mark programmatic focus after a tap as focus-visible. Naming the
 * control keeps this above the :focus-visible rings wherever the rule sits. */
:is(.player-speed-step, .player-speed-preset, .player-speed-button).player-speed-pointer-focus:focus {
  outline: none;
}

@media (pointer: coarse) {
  .player-speed-preset {
    min-height: 44px;
  }
}

/* Share stays at the right on older apps. Follow the chevron's actual
 * visibility so capability discovery updates both positions together. */
[data-audio-player-target="minimizeButton"]:not(.hidden) ~ .player-share-button {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 390px) and (max-height: 700px) {
  .player-cover {
    max-width: 276px;
  }
}

@media (max-width: 390px) and (max-height: 670px) {
  .player-cover {
    max-width: 252px;
  }
}
