/* assets/css/websites-play.css — where the play button on a website video sits, and how big it is
   (lib/Websites/PlayButton.php). A section with a video carries its choices as ws-pb-<spot> and ws-pb-m / ws-pb-s; every
   play button drawn on a video's picture carries ws-pb. Loaded after every look's own sheet; a chosen spot is marked
   important so it wins over each design's own placement, at any width. No colours here: each look keeps its own button. */

/* ── Size: shrunk toward the spot it sits in, so a corner button keeps its gap from the edge ── */
.ws-pb-m .ws-pb { scale: .74; }
.ws-pb-s .ws-pb { scale: .55; }

/* ── Spot: a 3 x 3 grid, --pb-gap in from the edges; the bottom row rises by --pb-lift above words drawn along the bottom ── */
:is(.ws-pb-tl, .ws-pb-tm, .ws-pb-tr, .ws-pb-ml, .ws-pb-mm, .ws-pb-mr, .ws-pb-bl, .ws-pb-bm, .ws-pb-br) .ws-pb { position: absolute !important; z-index: 3; margin: 0 !important; }
:is(.ws-pb-tl, .ws-pb-tm, .ws-pb-tr) .ws-pb { top: var(--pb-gap, 14px) !important; bottom: auto !important; }
:is(.ws-pb-ml, .ws-pb-mm, .ws-pb-mr) .ws-pb { top: 50% !important; bottom: auto !important; }
:is(.ws-pb-bl, .ws-pb-bm, .ws-pb-br) .ws-pb { top: auto !important; bottom: calc(var(--pb-gap, 14px) + var(--pb-lift, 0px)) !important; }
:is(.ws-pb-tl, .ws-pb-ml, .ws-pb-bl) .ws-pb { left: var(--pb-gap, 14px) !important; right: auto !important; }
:is(.ws-pb-tm, .ws-pb-mm, .ws-pb-bm) .ws-pb { left: 50% !important; right: auto !important; }
:is(.ws-pb-tr, .ws-pb-mr, .ws-pb-br) .ws-pb { left: auto !important; right: var(--pb-gap, 14px) !important; }
.ws-pb-tl .ws-pb { translate: 0 0 !important; transform-origin: 0 0; }
.ws-pb-tm .ws-pb { translate: -50% 0 !important; transform-origin: 50% 0; }
.ws-pb-tr .ws-pb { translate: 0 0 !important; transform-origin: 100% 0; }
.ws-pb-ml .ws-pb { translate: 0 -50% !important; transform-origin: 0 50%; }
.ws-pb-mm .ws-pb { translate: -50% -50% !important; transform-origin: 50% 50%; }
.ws-pb-mr .ws-pb { translate: 0 -50% !important; transform-origin: 100% 50%; }
.ws-pb-bl .ws-pb { translate: 0 0 !important; transform-origin: 0 100%; }
.ws-pb-bm .ws-pb { translate: -50% 0 !important; transform-origin: 50% 100%; }
.ws-pb-br .ws-pb { translate: 0 0 !important; transform-origin: 100% 100%; }

/* A design whose own spot is a corner shrinks toward that corner too */
:is(.ws-pb-m, .ws-pb-s) .rp-reel-play { transform-origin: 0 0; }
:is(.ws-pb-m, .ws-pb-s) .rpb-play { transform-origin: 0 100%; }
:is(.ws-pb-m, .ws-pb-s) .rpb-video .rpb-play { transform-origin: 50% 50%; }
:is(.ws-pb-m, .ws-pb-s) :is(.rp-ixy-play, .gd-play i) { transform-origin: 100% 100%; }

/* Words drawn along the bottom of the picture: the bottom row sits above them */
.rp-reel-big { --pb-lift: 92px; }
.rp-reel-sm { --pb-lift: 58px; }
.rsp-vid { --pb-lift: 74px; }
.gd-play { --pb-lift: 46px; }

/* What shares a corner with the button moves across, or up */
.ws-pb-br :is(.rpx-len, .ws-vid-d) { right: auto; left: 10px; }
.ws-pb-tr .rpx-kind { right: auto; left: 10px; }
.ws-pb-tr .rsp-vid-tag { right: auto; left: 16px; }
.ws-pb-tl .rp-ixy-mo { left: auto; right: 12px; }
.ws-pb-bl .rp-ixy-tag { left: auto; right: 14px; }
:is(.ws-pb-bl, .ws-pb-bm, .ws-pb-br) .ws-vid-cap { top: 18px; bottom: auto; }   /* the Video section's title bar goes to the top */
