/*
 * Tap-to-load players (front page and /music/): the YouTube thumbnail and mix cover are buttons, and
 * players.js swaps in the real player only when tapped. Moved here from home.css (2026-11-09) so the Music
 * page can share them.
 */

/* ---- Tap-to-load play buttons: video thumbnail (16:9) and mix cover (square) + red play circle ---- */
.sbx-video-play.sbx-video-play,
.sbx-mix-play.sbx-mix-play {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  cursor: pointer;
  aspect-ratio: 1;
  overflow: hidden;
}

.sbx-video-play.sbx-video-play {
  aspect-ratio: 16 / 9;
}

.sbx-video-play .sbx-video-cover,
.sbx-mix-play .sbx-mix-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* While the YouTube thumbnail is still downloading, Chrome sized the button from the pending image (0px tall),
   so single videos jumped 213px when it arrived (CLS 0.19). Out of the flow, the 16:9 ratio alone sets the height. */
.sbx-video-play .sbx-video-cover {
  position: absolute;
  inset: 0;
}

.sbx-play-icon,
.sbx-mix-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--e-global-color-primary, #e21c21);
  display: grid;
  place-items: center;
}

.sbx-play-icon::after,
.sbx-mix-icon::after {
  content: '';
  border-left: 22px solid #fff;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  margin-left: 6px;
}

.sbx-mix-play:hover .sbx-play-icon,
.sbx-mix-icon {
  background: #b8151a;
}

.sbx-mix-player {
  padding: 16px 16px 0;
}

/* The YouTube player keeps the thumbnail's 16:9 box. */
.sbx-video-player iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}

.sbx-mix-player iframe {
  display: block;
  width: 100%;
}

/* Elementor's kit styles every <button> focus with a white outline, which beats theme-mode.css on these two
   buttons; doubling the class wins, so they get the same 2px Accent ring as the rest of the site. */
.sbx-video-play.sbx-video-play:focus-visible,
.sbx-mix-play.sbx-mix-play:focus-visible {
  outline: 2px solid var(--e-global-color-accent);
  outline-offset: 2px;
  box-shadow: none;
}

/* ---- Logo buttons (Music page rows and the Home release card); moved from music.css 2026-11-09 ---- */
.sbx-music-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Doubled class: the kit's link colour (Accent) would otherwise win. */
.sbx-music-link.sbx-music-link,
.sbx-music-play.sbx-music-play:not(.sbx-music-cover-play) {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--e-global-color-fieldbd);
  border-radius: 50%;
  background: transparent;
  color: var(--e-global-color-text);
  transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}

.sbx-music-link.sbx-music-link:hover,
.sbx-music-link.sbx-music-link:focus-visible {
  color: var(--e-global-color-accent);
  border-color: var(--e-global-color-accent);
}

/* ▶: filled brand red with a white icon, like the Home page's play circles. */
.sbx-music-play.sbx-music-play:not(.sbx-music-cover-play) {
  border-color: var(--e-global-color-primary);
  background: var(--e-global-color-primary);
  color: #fff;
  cursor: pointer;
}

.sbx-music-play.sbx-music-play:not(.sbx-music-cover-play):hover {
  border-color: #b8151a;
  background: #b8151a;
}

.sbx-music-link.sbx-music-link:focus-visible,
.sbx-music-play.sbx-music-play:focus-visible {
  outline: 2px solid var(--e-global-color-accent);
  outline-offset: 2px;
  box-shadow: none;
}
