/* ══════════════════════════════════════
   DEMO VIDEO — poster + play button, native controls once playing.
   Markup: figure.vid > .vid-frame > video + button.vid-play (+ .vid-len)
   Behaviour lives in assets/video.js.
   ══════════════════════════════════════ */
.vid { max-width: 960px; margin: 0 auto; position: relative; }

/* soft blue glow behind the frame */
.vid::before {
  content: ""; position: absolute; inset: 8% 6% -6%; z-index: -1;
  background: radial-gradient(60% 60% at 50% 50%, var(--blue-glow), transparent 70%);
  filter: blur(30px);
}

.vid-frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 20px; border: 1px solid var(--line);
  background: var(--paper-deep); box-shadow: var(--shadow-lg);
}
.vid-frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--paper-deep); }

/* big play button over the poster */
.vid-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  border: 0; padding: 0; cursor: pointer;
  background: rgba(15, 23, 42, 0); transition: background .3s var(--snap);
}
.vid-play:hover { background: rgba(15, 23, 42, .06); }
.vid-play:focus-visible { outline: 3px solid var(--blue-ring); outline-offset: -3px; }
.vid-play-ico {
  position: relative; width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--neon-soft), var(--neon) 55%, var(--neon-line));
  box-shadow: var(--shadow-blue), 0 0 0 8px rgba(255, 255, 255, .55);
  transition: transform .3s var(--bounce);
}
.vid-play-ico svg { width: 30px; height: 30px; margin-left: 4px; }
.vid-play:hover .vid-play-ico { transform: scale(1.07); }
/* gentle pulse ring so it reads as playable */
.vid-play-ico::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid var(--blue-ring); animation: vid-pulse 2.4s ease-out infinite;
}
@keyframes vid-pulse {
  0%   { transform: scale(1);    opacity: .9; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* length chip, bottom-right */
.vid-len {
  position: absolute; right: 14px; bottom: 14px; pointer-events: none;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: var(--ink);
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line);
  padding: 5px 10px; border-radius: 99px; box-shadow: var(--shadow-sm);
}

.vid.is-playing .vid-play,
.vid.is-playing .vid-len { display: none; }

.vid-cap { margin-top: 16px; text-align: center; font-size: .84rem; color: var(--ink-soft); }

@media (max-width: 640px) {
  .vid-frame { border-radius: 14px; }
  .vid-play-ico { width: 62px; height: 62px; box-shadow: var(--shadow-blue), 0 0 0 6px rgba(255, 255, 255, .55); }
  .vid-play-ico svg { width: 22px; height: 22px; margin-left: 3px; }
  .vid-len { right: 10px; bottom: 10px; font-size: .72rem; padding: 4px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .vid-play-ico::after { animation: none; display: none; }
}
