/* STUPPLAYS — PLYR CONTROL LAYOUT STYLE 1
   UI-only: matches the supplied compact black/red reference.
   Control classes, DOM order and JS behavior are intentionally unchanged.
*/

/* Main card + popup control shell */
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  height: 60px !important;
  min-height: 60px !important;
  padding: 8px 10px 8px 12px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  background: rgba(4,4,5,.94) !important;
  box-shadow: 0 7px 18px rgba(0,0,0,.48) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: visible !important;
}

/* Keep the card bar compact and centered exactly as the reference. */
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub {
  left: 50% !important;
  right: auto !important;
  bottom: 9px !important;
  width: 98% !important;
  max-width: 1400px !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
}

/* Four compact red circular controls. */
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-pp,
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-stop,
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-mute,
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-expand,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-pp,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-stop,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-mute,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-expand {
  flex: 0 0 40px !important;
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  border: 1px solid #e50914 !important;
  background: #e50914 !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
}

#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-pp:hover,
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-stop:hover,
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-mute:hover,
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-expand:hover,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-pp:hover,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-stop:hover,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-mute:hover,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-expand:hover {
  background: #e50914 !important;
  border-color: #e50914 !important;
  transform: none !important;
}

/* Time labels: larger and clean like the reference. */
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-time,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-time {
  flex: 0 0 auto !important;
  min-width: 3.15em !important;
  color: #f5f5f5 !important;
  font-size: 18px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  font-variant-numeric: tabular-nums !important;
  white-space: nowrap !important;
  text-align: center !important;
}

/* Long scrub bar: visually thicker with a large white thumb. */
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-track,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-track {
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: 90px !important;
  height: 28px !important;
  min-height: 28px !important;
  margin: 0 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  touch-action: none !important;
}

#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-track-bg,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-track-bg {
  top: 50% !important;
  height: 7px !important;
  margin-top: -3.5px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.30) !important;
}

#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-fill,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-fill {
  top: 50% !important;
  height: 7px !important;
  margin-top: -3.5px !important;
  border-radius: 999px !important;
  background: #e50914 !important;
}

#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-thumb,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-thumb {
  width: 14px !important;
  height: 14px !important;
  margin: -7px 0 0 -7px !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: 0 1px 7px rgba(0,0,0,.55) !important;
}

/* Quality selector: right-side outlined pill like the reference. */
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-q-wrap,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-q-wrap {
  flex: 0 0 auto !important;
  position: relative !important;
  margin: 0 !important;
}

#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-q-btn,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-q-btn {
  width: 128px !important;
  min-width: 128px !important;
  height: 40px !important;
  min-height: 40px !important;
  box-sizing: border-box !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255,255,255,.25) !important;
  background: rgba(0,0,0,.55) !important;
  color: #fff !important;
  font: 800 14px/40px system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
}

#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-q-btn:hover,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-q-btn:hover {
  background: rgba(0,0,0,.70) !important;
  border-color: rgba(255,255,255,.38) !important;
}

/* Quality menu remains functional and opens above the pill. */
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-q-menu,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-q-menu {
  bottom: calc(100% + 8px) !important;
  left: auto !important;
  right: 0 !important;
  border-radius: 10px !important;
}

/* Do not alter LIVE/VOD visibility rules; only style controls that are visible. */
.cinematic-slide[data-live="on"] .poster-wrapper > .sp-custom-scrub .sp-scrub-pp,
.cinematic-slide[data-live="on"] .poster-wrapper > .sp-custom-scrub .sp-scrub-stop,
.sp-custom-scrub.sp-live-scrub .sp-scrub-pp,
.sp-custom-scrub.sp-live-scrub .sp-scrub-stop {
  /* Existing visibility rules remain authoritative. */
}

/* Mobile: same visual language, scaled so every visible control stays inside the bar. */
@media (max-width: 767px) {
  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub,
  html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub {
    gap: 6px !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 6px 7px !important;
    border-radius: 11px !important;
  }

  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub {
    bottom: 7px !important;
    width: 98% !important;
    max-width: 98% !important;
  }

  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-pp,
  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-stop,
  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-mute,
  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-expand,
  html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-pp,
  html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-stop,
  html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-mute,
  html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-expand {
    flex-basis: 32px !important;
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    font-size: 12px !important;
  }

  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-time,
  html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-time {
    min-width: 2.5em !important;
    font-size: 12px !important;
  }

  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-track,
  html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-track {
    min-width: 45px !important;
    height: 24px !important;
    min-height: 24px !important;
  }

  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-q-btn,
  html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-q-btn {
    width: 82px !important;
    min-width: 82px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 6px !important;
    border-radius: 8px !important;
    font-size: 10px !important;
    line-height: 32px !important;
  }
}

@media (max-width: 420px) {
  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub,
  html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub {
    gap: 4px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-pp,
  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-stop,
  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-mute,
  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-expand {
    flex-basis: 30px !important;
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
  }

  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-q-btn {
    width: 72px !important;
    min-width: 72px !important;
    font-size: 9px !important;
  }
}

/* ================================================================
   STUPPLAYS — STYLE 1 FINAL CONTROL ORDER
   Play/Pause → Mute → Expand → Time → Scrub → Quality
   Stop is intentionally hidden from the visible control bar.
   UI/layout only — existing JS handlers remain untouched.
   ================================================================ */

#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub {
  left: 50% !important;
  right: auto !important;
  width: 98% !important;
  max-width: 1400px !important;
  transform: translateX(-50%) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 11px !important;
  box-sizing: border-box !important;
}

/* Exact visible order. */
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-pp,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-pp {
  order: 1 !important;
}

#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-mute,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-mute {
  order: 2 !important;
}

#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-expand,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-expand {
  order: 3 !important;
}

#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-cur,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-cur {
  order: 4 !important;
}

#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-track,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-track {
  order: 5 !important;
  flex: 1 1 auto !important;
}

#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-q-wrap,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-q-wrap {
  order: 6 !important;
  flex: 0 0 auto !important;
  margin-left: 0 !important;
}

/* Stop remains available to the existing JS code but is not part of Style 1. */
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-stop,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-stop {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  min-width: 0 !important;
  flex: 0 0 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

/* Keep the actual scrub interaction on top and easy to drag/click. */
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-track,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-track {
  position: relative !important;
  pointer-events: auto !important;
  touch-action: none !important;
  cursor: pointer !important;
}

/* Quality stays locked to the far right of the bar. */
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-q-wrap,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-q-wrap {
  margin-left: auto !important;
}

@media (max-width: 767px) {
  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub,
  html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub {
    gap: 6px !important;
    width: 98% !important;
    max-width: 98% !important;
  }

  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-q-wrap,
  html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-q-wrap {
    margin-left: auto !important;
  }
}

@media (max-width: 420px) {
  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub,
  html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub {
    gap: 4px !important;
  }
}


/* STUPPLAYS — controller-owned Style 1 final override
   Exact order: Play/Pause -> Mute -> Expand -> Current -> Scrub -> Duration -> Quality.
   This is deliberately the last layer so older control CSS cannot reorder the bar. */
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub {
  left: 50% !important;
  right: auto !important;
  bottom: 10px !important;
  width: calc(100% - 8px) !important;
  max-width: 1400px !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 8px 12px !important;
  height: 48px !important;
  min-height: 48px !important;
  box-sizing: border-box !important;
}
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-pp { order:1 !important; }
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-mute { order:2 !important; }
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-expand { order:3 !important; }
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-cur { order:4 !important; }
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-track { order:5 !important; flex:1 1 auto !important; min-width:90px !important; }
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-dur { order:6 !important; }
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-q-wrap { order:7 !important; margin-left:0 !important; flex:0 0 auto !important; }
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-stop { display:none !important; width:0 !important; min-width:0 !important; flex:0 0 0 !important; margin:0 !important; padding:0 !important; border:0 !important; }
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-pp,
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-mute,
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-expand {
  flex:0 0 34px !important;
  width:34px !important;
  min-width:34px !important;
  height:34px !important;
  min-height:34px !important;
  border-radius:50% !important;
  box-sizing:border-box !important;
}
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-q-btn {
  width:128px !important;
  min-width:128px !important;
  height:40px !important;
  min-height:40px !important;
  padding:0 12px !important;
  border-radius:10px !important;
  box-sizing:border-box !important;
  font-size:14px !important;
  line-height:40px !important;
}
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-track {
  height:28px !important;
  min-height:28px !important;
}
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-track-bg,
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-fill {
  height:8px !important;
  margin-top:-4px !important;
  border-radius:6px !important;
}
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-thumb {
  width:16px !important;
  height:16px !important;
  margin:-8px 0 0 -8px !important;
}
@media (max-width: 767px) {
  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub {
    width:calc(100% - 6px) !important;
    bottom:6px !important;
    gap:5px !important;
    padding:6px 7px !important;
    height:42px !important;
    min-height:42px !important;
    max-width:none !important;
  }
  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-pp,
  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-mute,
  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-expand {
    flex-basis:30px !important;
    width:30px !important;
    min-width:30px !important;
    height:30px !important;
    min-height:30px !important;
    font-size:11px !important;
  }
  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-time { font-size:11px !important; min-width:2.5em !important; }
  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-track { min-width:35px !important; height:24px !important; }
  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-q-btn {
    width:82px !important; min-width:82px !important; height:30px !important; min-height:30px !important;
    padding:0 5px !important; font-size:10px !important; line-height:30px !important;
  }
}
@media (max-width: 420px) {
  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub { gap:4px !important; padding-left:5px !important; padding-right:5px !important; }
  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-pp,
  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-mute,
  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-expand {
    flex-basis:28px !important; width:28px !important; min-width:28px !important; height:28px !important; min-height:28px !important;
  }
  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-q-btn { width:74px !important; min-width:74px !important; font-size:9px !important; }
}


/* ================================================================
   STUPPLAYS — STYLE 1 REFERENCE MATCH (FINAL)
   Reference layout:
   Pause -> Stop -> Mute -> Expand -> Current -> Scrub -> Duration -> Quality
   Black rounded bar, 40px red controls, 60px desktop height.
   This is UI-only; playback/state logic remains in the controller.
   ================================================================ */

#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub {
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 11px !important;
  height: 60px !important;
  min-height: 60px !important;
  padding: 8px 10px 8px 12px !important;
  left: 50% !important;
  right: auto !important;
  bottom: 9px !important;
  width: calc(100% - 8px) !important;
  max-width: 1400px !important;
  margin: 0 !important;
  transform: translateX(-50%) !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  background: rgba(4,4,5,.94) !important;
  box-shadow: 0 7px 18px rgba(0,0,0,.48) !important;
  overflow: visible !important;
}

/* Reference's four red circular controls. */
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-pp,
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-stop,
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-mute,
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-expand,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-pp,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-stop,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-mute,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-expand {
  order: initial !important;
  flex: 0 0 40px !important;
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  border: 1px solid #e50914 !important;
  background: #e50914 !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
  transform: none !important;
}

#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-pp i,
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-stop i,
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-mute i,
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-expand i,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-pp i,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-stop i,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-mute i,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-expand i {
  margin: 0 !important;
  color: #fff !important;
  line-height: 1 !important;
  font-size: 15px !important;
  pointer-events: none !important;
}

#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-pp:hover,
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-stop:hover,
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-mute:hover,
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-expand:hover,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-pp:hover,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-stop:hover,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-mute:hover,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-expand:hover {
  background: #e50914 !important;
  border-color: #e50914 !important;
  transform: none !important;
}

/* Exact button order. */
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-pp { order: 1 !important; }
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-stop { order: 2 !important; }
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-mute { order: 3 !important; }
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-expand { order: 4 !important; }
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-cur { order: 5 !important; }
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-track { order: 6 !important; }
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-dur { order: 7 !important; }
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-q-wrap { order: 8 !important; }

html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-pp { order: 1 !important; }
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-stop { order: 2 !important; }
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-mute { order: 3 !important; }
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-expand { order: 4 !important; }
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-cur { order: 5 !important; }
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-track { order: 6 !important; }
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-dur { order: 7 !important; }
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-q-wrap { order: 8 !important; }

/* Time labels and progress bar match the reference proportions. */
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-time,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-time {
  flex: 0 0 auto !important;
  min-width: 3.15em !important;
  color: #f5f5f5 !important;
  font-size: 18px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  font-variant-numeric: tabular-nums !important;
  white-space: nowrap !important;
  text-align: center !important;
}

#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-track,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-track {
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: 90px !important;
  height: 28px !important;
  min-height: 28px !important;
  margin: 0 !important;
  position: relative !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  touch-action: none !important;
}

#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-track-bg,
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-fill,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-track-bg,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-fill {
  top: 50% !important;
  height: 7px !important;
  margin-top: -3.5px !important;
  border-radius: 999px !important;
}

#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-track-bg,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-track-bg {
  background: rgba(255,255,255,.30) !important;
}

#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-fill,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-fill {
  background: #e50914 !important;
}

#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-thumb,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-thumb {
  width: 14px !important;
  height: 14px !important;
  margin: -7px 0 0 -7px !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: 0 1px 7px rgba(0,0,0,.55) !important;
}

/* Quality pill at the right, same proportions as the reference. */
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-q-wrap,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-q-wrap {
  flex: 0 0 auto !important;
  position: relative !important;
  margin-left: 0 !important;
}

#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-q-btn,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-q-btn {
  width: 128px !important;
  min-width: 128px !important;
  height: 40px !important;
  min-height: 40px !important;
  box-sizing: border-box !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255,255,255,.25) !important;
  background: rgba(0,0,0,.55) !important;
  color: #fff !important;
  font: 800 14px/40px system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
}

#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-q-menu,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-q-menu {
  bottom: calc(100% + 8px) !important;
  left: auto !important;
  right: 0 !important;
  border-radius: 10px !important;
}

/* Keep the quality selector at the far right. */
#sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-q-wrap,
html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-q-wrap {
  margin-left: auto !important;
}

@media (max-width: 767px) {
  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub,
  html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub {
    height: 52px !important;
    min-height: 52px !important;
    width: calc(100% - 6px) !important;
    max-width: calc(100% - 6px) !important;
    bottom: 7px !important;
    gap: 6px !important;
    padding: 6px 7px !important;
    border-radius: 11px !important;
  }

  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-pp,
  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-stop,
  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-mute,
  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-expand,
  html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-pp,
  html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-stop,
  html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-mute,
  html body #sp-plyr-overlay.is-open #sp-plyr-stage > .sp-custom-scrub .sp-scrub-expand {
    flex-basis: 32px !important;
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    font-size: 12px !important;
  }

  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-pp i,
  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-stop i,
  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-mute i,
  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-expand i {
    font-size: 12px !important;
  }

  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-time {
    min-width: 2.5em !important;
    font-size: 12px !important;
  }

  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-track {
    min-width: 45px !important;
    height: 24px !important;
    min-height: 24px !important;
  }

  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-q-btn {
    width: 82px !important;
    min-width: 82px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 6px !important;
    border-radius: 8px !important;
    font-size: 10px !important;
    line-height: 32px !important;
  }
}

@media (max-width: 420px) {
  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub {
    gap: 4px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-pp,
  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-stop,
  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-mute,
  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-expand {
    flex-basis: 30px !important;
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
  }

  #sp-walkthrough .cinematic-slide .poster-wrapper > .sp-custom-scrub .sp-scrub-q-btn {
    width: 72px !important;
    min-width: 72px !important;
    font-size: 9px !important;
  }
}
