/* "Watch" text button and the modal player for the under-a-minute customer video.
   Markup: brand/review/video/embed-snippet.html. Behaviour: /js/video.js. */

.vid-cta { margin: 18px 0 0; }
.vid-btn {
  display: inline-flex; align-items: center; gap: 12px; max-width: 100%;
  padding: 4px 0; background: none; border: 0; cursor: pointer; text-align: left;
  font: 500 0.98rem/1.35 var(--sans); color: inherit; text-decoration: none;
}
.night .vid-btn { color: var(--on-night-2); }
.vid-btn .vid-t { border-bottom: 1px solid currentColor; padding-bottom: 3px; transition: border-color 0.2s, color 0.2s; }
.vid-btn .vid-t small { font-size: inherit; opacity: 0.8; white-space: nowrap; }
.vid-btn:hover .vid-t { border-color: var(--tape); }
.night .vid-btn:hover { color: var(--on-night); }
.vid-ic {
  flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; border: 1px solid currentColor; color: inherit;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.vid-ic svg { width: 11px; height: 11px; margin-left: 2px; fill: var(--tape); }
.vid-btn:hover .vid-ic { border-color: var(--tape); }

/* ---- modal ---- */
.vid-dlg {
  width: min(1120px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px);
  padding: 0; border: 1px solid var(--night-line); border-radius: 3px; overflow: auto;
  background: var(--night); color: var(--on-night);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.75);
}
.vid-dlg::backdrop { background: rgba(6, 20, 16, 0.84); }
.vid-dlg[open] { animation: vid-in 260ms var(--ease-out) both; }
.vid-dlg[open]::backdrop { animation: vid-fade 260ms ease both; }
@keyframes vid-in { from { opacity: 0; transform: translateY(12px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes vid-fade { from { opacity: 0; } to { opacity: 1; } }

.vid-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--night-line); }
.vid-h { margin: 0; font: 400 1.15rem/1.25 var(--display); letter-spacing: -0.005em; }
.vid-h span { display: block; margin-top: 2px; font: 400 0.8rem/1.3 var(--sans); color: var(--on-night-2); letter-spacing: 0.02em; }
.vid-x {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  background: transparent; color: var(--on-night); border: 1px solid var(--night-line); border-radius: 2px;
  font: 500 0.92rem/1 var(--sans); cursor: pointer;
}
.vid-x:hover { border-color: var(--tape); }
.vid-x svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2; }
.vid-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.vid-frame video { display: block; width: 100%; height: 100%; background: #000; }
.vid-frame video:focus-visible { outline-offset: -3px; }
.vid-frame video::cue { font-family: var(--sans); font-size: clamp(0.9rem, 2.2vw, 1.35rem); line-height: 1.35; background: rgba(8, 24, 20, 0.82); color: #fbfaf6; }
.vid-foot { margin: 0; padding: 10px 20px 14px; font: 400 0.82rem/1.45 var(--sans); color: var(--on-night-2); }

@media (max-width: 520px) {
  .vid-head { padding: 10px 10px 10px 14px; }
  .vid-h { font-size: 1rem; }
  .vid-x { padding: 0 12px; }
  .vid-x .vid-xl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .vid-foot { padding: 8px 14px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .vid-dlg[open], .vid-dlg[open]::backdrop { animation: none; }
  .vid-btn .vid-t, .vid-ic { transition: none; }
}
html.still .vid-dlg[open], html.still .vid-dlg[open]::backdrop { animation: none; }
