/* Auto-Play and Shredflix-controlled fullscreen player */
.shredflix-player {
  position: relative;
}

.shredflix-player--snowboard { --player-sport-accent: #E50914; }
.shredflix-player--skate { --player-sport-accent: #C8A000; }
.shredflix-player--surf { --player-sport-accent: #00B4D8; }
.shredflix-player--ski { --player-sport-accent: #A855F7; }
.shredflix-player--wake { --player-sport-accent: #10B981; }

/* Keep normal players entirely clear for the YouTube iframe UI. */
.shredflix-player-chrome {
  display: none;
}

.shredflix-fullscreen-button {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 0.35rem;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  cursor: pointer;
  padding: 0.45rem 0.7rem;
  transition: opacity 0.2s ease;
}

[data-controller~="fullscreen-player"].is-fullscreen-controls-hidden .shredflix-fullscreen-button {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.shredflix-fullscreen-reveal-surface {
  display: none;
}

.shredflix-player.is-shredflix-fullscreen {
  display: grid;
  grid-template-rows: 3.5rem minmax(0, 1fr);
  background: #000;
  inset: 0;
  position: fixed;
  z-index: 10000;
  width: 100vw;
  height: 100vh;
  max-width: none;
  padding-bottom: 0;
  border-radius: 0;
}

.shredflix-player.is-shredflix-fullscreen .shredflix-player-chrome {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  grid-row: 1;
  justify-content: space-between;
  min-height: 3.5rem;
  padding: 0.5rem 0.75rem;
  position: relative;
}

.shredflix-player.is-shredflix-fullscreen iframe {
  grid-row: 2;
  height: 100%;
  position: relative;
  width: 100%;
}

.shredflix-player.is-shredflix-fullscreen .shredflix-fullscreen-logo {
  color: var(--player-sport-accent, var(--sport-accent));
  display: block;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.85));
  line-height: 0;
  pointer-events: none;
  user-select: none;
  width: clamp(5.75rem, 12vw, 9rem);
}

.shredflix-player.is-shredflix-fullscreen .shredflix-fullscreen-logo svg {
  display: block;
  height: auto;
  width: 100%;
}

.shredflix-player.is-shredflix-fullscreen .shredflix-fullscreen-reveal-surface {
  background: transparent;
  border: 0;
  cursor: default;
  display: none;
  inset: 0;
  position: absolute;
  z-index: 1;
}

.shredflix-player.is-shredflix-fullscreen.is-fullscreen-controls-hidden .shredflix-fullscreen-reveal-surface {
  display: block;
}

.shredflix-player.is-shredflix-fullscreen .shredflix-fullscreen-button {
  position: relative;
  z-index: 2;
}

body.shredflix-fullscreen-fallback {
  overflow: hidden;
}

.auto-play-page {
  margin: 0 auto;
  max-width: 1400px;
  padding: 2rem;
}

.auto-play-launch {
  display: flex;
  justify-content: flex-start;
  margin: 1.25rem 0 2.5rem;
  padding: 0 0.5rem;
}

.auto-play-launch + .movie-rows {
  margin-top: 0;
}

.shred-shuffle-button {
  align-items: center;
  display: inline-flex;
  gap: 0.55rem;
  line-height: 1.2;
  text-decoration: none;
}

.shred-shuffle-button svg {
  fill: none;
  flex: 0 0 auto;
  height: 1.25rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.25;
  width: 1.25rem;
}

.shred-shuffle-onboarding-card {
  align-items: center;
  background: rgba(var(--sport-accent-rgb), 0.08);
  border: 1px dashed rgba(var(--sport-accent-rgb), 0.5);
  display: flex;
  height: auto;
  justify-content: center;
  min-width: 0;
  width: min(100%, 38rem);
}

.shred-shuffle-onboarding-card__content {
  align-items: center;
  display: flex;
  gap: 1rem;
  padding: 1rem;
  text-align: left;
  width: 100%;
}

.shred-shuffle-onboarding-card__content > svg {
  color: var(--sport-accent);
  flex: 0 0 auto;
  height: 2rem;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
  width: 2rem;
}

.shred-shuffle-onboarding-card__heading {
  color: var(--sport-accent);
  font-size: 1rem;
  margin: 0 0 0.25rem;
}

.shred-shuffle-onboarding-card__text {
  color: #b3b3b3;
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0;
}

.shred-shuffle-onboarding-card__actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 0.5rem;
}

.shred-shuffle-onboarding-card__button {
  border: 1px solid var(--sport-accent);
  border-radius: 0.25rem;
  color: var(--sport-accent);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.5rem 0.7rem;
  text-decoration: none;
  white-space: nowrap;
}

.shred-shuffle-onboarding-card__button:hover,
.shred-shuffle-onboarding-card__button:focus-visible {
  background: rgba(var(--sport-accent-rgb), 0.16);
}

.shred-shuffle-onboarding-card__button--primary {
  background: var(--sport-accent);
  color: var(--sport-accent-text);
}

.shred-shuffle-onboarding-card__button--primary:hover,
.shred-shuffle-onboarding-card__button--primary:focus-visible {
  filter: brightness(1.12);
}

@media (max-width: 640px) {
  .shred-shuffle-onboarding-card__content {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .shred-shuffle-onboarding-card__actions {
    width: 100%;
  }

  .shred-shuffle-onboarding-card__button {
    flex: 1 1 auto;
    text-align: center;
  }
}

.auto-play-header {
  margin-bottom: 1rem;
}

.auto-play-navigation-row {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.auto-play-navigation-row > div {
  min-width: 0;
}

.auto-play-title-row {
  min-width: 0;
}

.auto-play-title-row h1 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  min-width: 0;
}

.auto-play-navigation-actions {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}

.auto-play-navigation-fullscreen-button,
.auto-play-mode-link {
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 0.35rem;
  color: #fff;
  cursor: pointer;
  font: inherit;
  padding: 0.45rem 0.7rem;
  text-decoration: none;
  white-space: nowrap;
}

.auto-play-mode-link {
  display: inline-flex;
  margin-top: 0.5rem;
}

.auto-play-sport,
.auto-play-mode-label {
  margin: 0.5rem 0 0;
}

.auto-play-eyebrow,
.auto-play-header p {
  color: var(--sport-accent);
  font-weight: 700;
}

.auto-play-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.auto-play-controls button {
  background: var(--sport-accent);
  border: 0;
  border-radius: 0.35rem;
  color: var(--sport-accent-text);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0.7rem 1rem;
}

.auto-play-controls p {
  font-weight: 700;
  margin: 0;
}

@media (max-width: 768px) {
  .auto-play-page { padding: 1rem; }
  .auto-play-launch { margin: 1rem 0 2rem; }
  .auto-play-navigation-row { gap: 0.5rem; }
  .auto-play-navigation-fullscreen-button { padding: 0.4rem 0.5rem; }
  .shredflix-player.is-shredflix-fullscreen {
    grid-template-rows: 3rem minmax(0, 1fr);
  }
  .shredflix-player.is-shredflix-fullscreen .shredflix-player-chrome {
    min-height: 3rem;
    padding: 0.375rem 0.5rem;
  }
}
