/* Shared in-view video player for the homepage and product pages.
   Portrait R36S footage extracted from Retro Lab, requested 22 Oct 2026. */

.sr-play { padding: 56px 0 0; }
.sr-play[hidden] { display: none; }
.sr-play__head { margin-bottom: 22px; }
.sr-play__lede { margin: 10px 0 0; max-width: 46ch; color: var(--sr-muted); font-size: 15px; line-height: 1.5; text-wrap: pretty; }
.sr-play__film { margin: 0; }

/* the picture: one 16:9 "little studio", like the line-up tiles, with a faint edge so dark footage keeps its shape */
.sr-play__frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: var(--pp-tile); isolation: isolate; }
.sr-play__frame::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); pointer-events: none; }
.sr-play__video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; background: var(--pp-tile); cursor: pointer; }
/* iPhone Low Power Mode can draw its own big play glyph over the poster; ours is the only one */
.sr-play__video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.sr-play__film.is-standin .sr-play__video { display: none; }

/* paused, and not about to start by itself (tapped pause, reduced motion, or the phone refused to autoplay):
   a play mark in the middle of the picture. Decorative; the caption button is the control. */
.sr-play__glyph { position: absolute; left: 50%; top: 50%; z-index: 2; display: grid; place-items: center; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: rgba(20, 22, 26, .78); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); color: var(--pp-ink);
  opacity: 0; transform: scale(.9); pointer-events: none; transition: opacity 200ms ease, transform 200ms var(--ease-out); }
.sr-play__glyph svg { width: 22px; height: 22px; margin-left: 3px; fill: currentColor; }
.sr-play__film.is-held .sr-play__glyph { opacity: 1; transform: none; }
.sr-play__film.is-failed .sr-play__glyph { display: none; }

/* caption row under the picture: what it shows on the left, play/pause on the right (kept off the footage so the
   button never fights the picture for contrast, and clear of the bars fixed to the screen edges) */
.sr-play__cap { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; color: var(--sr-muted); font-size: 14px; line-height: 1.4; }
.sr-play__cap p { margin: 0; }
.sr-play__toggle { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: var(--sr-fill); color: var(--pp-ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: box-shadow 160ms ease, transform 150ms var(--ease-out); }
.sr-play__toggle svg { width: 16px; height: 16px; fill: currentColor; }
.sr-play__toggle .sr-play__i-play,
.sr-play__film.is-paused .sr-play__toggle .sr-play__i-pause { display: none; }
.sr-play__film.is-paused .sr-play__toggle .sr-play__i-play { display: block; }
.sr-play__toggle:not(:disabled):active { transform: scale(.96); }
.sr-play__toggle:disabled { color: rgba(243, 243, 240, .3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .sr-play__toggle:not(:disabled):hover { box-shadow: inset 0 0 0 1px var(--pp-ink); }
}
/* without JavaScript the poster shows on its own */
html:not(.js) .sr-play__toggle, html:not(.js) .sr-play__glyph { display: none; }

/* stand-in (local preview only, see product-video.js): the studio render in the frame, clearly marked */
.sr-play__standin { position: absolute; inset: 0; }
.sr-play__standin .pv-console { position: absolute; left: -10.3%; top: -14.2%; width: 120.6%; }
.sr-play__tag { position: absolute; left: 12px; top: 12px; z-index: 4; padding: 7px 11px; border-radius: 999px; background: rgba(20, 22, 26, .88);
  box-shadow: inset 0 0 0 1px rgba(255, 210, 90, .55); color: var(--pp-gold); font: 600 12px/1.2 var(--pp-text); letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 640px) {
  .sr-play__tag { left: 8px; top: 8px; padding: 5px 9px; font-size: 10px; }
  .sr-play__tag-more { display: none; }
}

/* R36S: its renders are square and upright, so the stand-in stands in the middle of a lighter studio, edges faded */
.pv-showroom[data-model="r36s"] .sr-play__frame,
.pv-showroom[data-model="r36s"] .sr-play__video { background: rgb(19 19 23); }
.pv-showroom[data-model="r36s"] .sr-play__standin .pv-console { left: 50%; top: -4%; width: 60%; margin-left: -30%; }
.pv-showroom[data-model="r36s"] .sr-play__standin .pv-console__img {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }

@media (min-width: 1024px) {
  .sr-play { padding-top: 88px; }
  .sr-play__frame { border-radius: 18px; }
  .sr-play__tag { left: 16px; top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .sr-play__toggle, .sr-play__glyph { transition: none; }
  .sr-play__toggle:not(:disabled):active { transform: none; }
  .sr-play__glyph { transform: none; }
}
@media (prefers-contrast: more) {
  .sr-play__toggle { box-shadow: inset 0 0 0 1px #8b8d96; }
}
@media (forced-colors: active) {
  .sr-play__toggle { border: 1px solid ButtonText; }
  .sr-play__frame { border: 1px solid CanvasText; }
}

/* Keep the original upright footage intact, with one shared reading width. */
.sr-play--portrait .sr-play__head,
.sr-play--portrait .sr-play__film { max-width: 560px; margin-inline: auto; }
.sr-play--portrait .sr-play__frame { aspect-ratio: 914 / 1080; }
/* Square all-angles film (27 Oct 2026): same reading width as the upright clip above it. */
.sr-play--square .sr-play__head,
.sr-play--square .sr-play__film { max-width: 560px; margin-inline: auto; }
.sr-play--square .sr-play__frame { aspect-ratio: 1 / 1; }
.sr-play--home { background: var(--pp-bg); --sr-muted: var(--pp-muted); --sr-fill: rgba(255, 255, 255, .05); }
.sr-play__toggle:focus-visible { outline: 2px solid var(--pp-gold); outline-offset: 4px; }
