/* Product video block — reusable, privacy-friendly YouTube embed.
   Markup and how to add a new video: see README.md ("Product videos"). */
.vid { margin: 0; width: 100%; max-width: 880px; }
.vid[hidden], .vid-section[hidden], section[hidden] { display: none; }
.vid-frame {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 16px; overflow: hidden; background: #0b1220;
  border: 1px solid var(--gray-200, #e5e7eb);
  box-shadow: 0 24px 60px -24px rgba(15, 23, 42, 0.35);
}
.vid-frame img, .vid-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block;
}
.vid-frame img { object-fit: cover; transition: transform .3s ease, filter .3s ease; }
a.vid-frame { cursor: pointer; text-decoration: none; }
a.vid-frame:hover img { transform: scale(1.02); filter: brightness(0.92); }
a.vid-frame:focus-visible { outline: 3px solid var(--accent, #3b5bdb); outline-offset: 3px; }
.vid-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.94); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex; align-items: center; justify-content: center; transition: transform .2s ease;
}
.vid-play::before {
  content: ""; margin-left: 6px; border-style: solid;
  border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #1e3a5f;
}
a.vid-frame:hover .vid-play { transform: translate(-50%, -50%) scale(1.08); }
.vid-length {
  position: absolute; right: 12px; bottom: 12px; padding: 3px 8px; border-radius: 6px;
  background: rgba(0, 0, 0, 0.72); color: #fff; font-size: 12px; font-weight: 600; line-height: 1.4;
}
.vid figcaption { margin-top: 12px; font-size: 14px; color: var(--gray-500, #6b7280); line-height: 1.5; }
.vid figcaption a { color: inherit; }
.vid-section { display: flex; flex-direction: column; align-items: center; text-align: center; }
.vid-section .vid { margin-top: 28px; text-align: left; }
@media (max-width: 600px) {
  .vid-frame { border-radius: 12px; }
  .vid-play { width: 60px; height: 60px; }
  .vid-play::before { border-width: 10px 0 10px 17px; margin-left: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .vid-frame img, .vid-play { transition: none; }
}
