/* A video's place (CR-105), for the videoTile macro (_includes/video.njk) and /js/video.js: YouTube's still and the
   gold play button, then the player in the same place once pressed. Looks, as the app draws them:
   - page:          Client Love's stream (video_tile.dart): near-black ground, the gold hairline, a soft warm shadow;
                    a 52px play button (46 on a phone) with a 14 × 18 triangle.
   - panel:         Client Love's dark certification panel: #0B0B0B ground, the dark hairline, no shadow; a 48px play
                    button (44 on a phone) with a 13 × 16 triangle.
   - certification: Certification's videos (certification_screen.dart _VideoTile): always 16:9, dark-card ground, the
                    still at 85%; a 60px play button with a 16 × 20 triangle.
   Each triangle sits 2px right of centre, as the app paints it. Sizes are px, as the app's are: they don't follow the
   text size. Phone under 900px (Breakpoints.wide). */

.video {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--hairline-strong); border-radius: 6px;
  background: var(--near-black); box-shadow: 0 2px 10px rgba(138, 107, 16, 0.078);
}
.video--short { aspect-ratio: 9 / 16; }
.video--panel { border-color: #3A3528; border-radius: 5px; background: #0B0B0B; box-shadow: none; }
.video--certification { aspect-ratio: 16 / 9; border-color: #3A3528; border-radius: 6px; background: var(--dark-card); box-shadow: none; }

/* The still and its play button: a link without the script, a button with it. */
.video-tile {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; font: inherit; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
/* The focus ring, drawn over the still (an outline would sit under it). */
.video-tile:focus-visible { outline: none; }
.video-tile:focus-visible::after {
  content: ""; position: absolute; inset: 2px; border: 2px solid var(--gold-icon); border-radius: 4px; pointer-events: none;
}
.video-tile__still { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.video--certification .video-tile__still { opacity: 0.85; }

.video-tile__play {
  position: relative; display: flex; align-items: center; justify-content: center; flex: none;
  width: 52px; height: 52px; border-radius: 50%; background: var(--gold); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.349);
}
.video-tile__play::before {
  content: ""; position: relative; left: 2px; width: 14px; height: 18px; background: var(--near-black);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.video--panel .video-tile__play { width: 48px; height: 48px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.451); }
.video--panel .video-tile__play::before { width: 13px; height: 16px; }
.video--certification .video-tile__play { width: 60px; height: 60px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.451); }
.video--certification .video-tile__play::before { width: 16px; height: 20px; }

/* The player, in the still's place. */
.video iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }

@media (max-width: 899.98px) {
  .video--page .video-tile__play { width: 46px; height: 46px; }
  .video--panel .video-tile__play { width: 44px; height: 44px; }
}
