/* ============================================================
 * Video card primitive — play-circle front + phone-frame reel back
 * Pair with primitives/video-card.js for runtime behavior.
 * ============================================================ */

.play-circle {
  width: clamp(120px, 14vw, 180px);
  height: clamp(120px, 14vw, 180px);
  border-radius: 50%;
  border: 3px solid var(--jaz-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  /* Inner fill pulses translucent blue — animated background so mobile/touch
   * users see the effect without needing a hover state (no outer glow). */
  animation: play-circle-fill-pulse 2.4s ease-in-out infinite;
  will-change: background, transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform 260ms cubic-bezier(0.65, 0, 0.35, 1),
              border-color 260ms ease;
}
.card-video:hover .play-circle {
  transform: scale(1.08);
  border-color: var(--jaz-blue-bright);
  animation-duration: 1.4s;
}
.card-video:hover .play-circle svg { fill: var(--jaz-blue-bright); }
.card.is-flipped .play-circle { animation: none; }
.play-circle svg { fill: var(--jaz-blue); margin-left: 6px; width: 50%; height: 50%; }

/* Inner translucent fill pulse — the only animated effect on the play circle.
 * No outer glow / no box-shadow / no filter drop-shadow. */
@keyframes play-circle-fill-pulse {
  0%, 100% { background: rgba(57,112,230,0); }
  50%       { background: rgba(57,112,230,0.16); }
}

/* Reduced-motion: disable the fill pulse too (engine.css covers other anims) */
@media (prefers-reduced-motion: reduce) {
  .play-circle { animation: none !important; background: transparent !important; }
}

/* One-shot zoom on scroll-into-view. The cta-zoom-once keyframe is
 * defined in cta.css (the canonical owner); video-card.css references it. */
.section.in-view .play-circle {
  animation: play-circle-fill-pulse 2.4s ease-in-out infinite,
             cta-zoom-once 1400ms cubic-bezier(0.45, 0, 0.55, 1) 350ms 1 both;
}

.video-headline {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 6vw, 88px);
  letter-spacing: -0.025em;
  color: var(--white);
  line-height: 0.95;
}
.video-meta {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 3.52px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
}

/* === Phone frame (back face) === */
.phone-frame {
  width: 260px;
  height: 462px;
  background: var(--jaz-bg-deep);
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.10);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.phone-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
}

/* === Countdown overlay === */
.video-prompt {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(10,20,36,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity 400ms ease;
  pointer-events: none;
  border-radius: inherit;
}
.video-prompt[data-state="gone"] { opacity: 0; }
.video-prompt .countdown {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 96px;
  line-height: 1;
  color: var(--white);
  letter-spacing: -0.04em;
  text-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.video-prompt .prompt-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

/* === Sound toggle pill === */
.sound-toggle {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 240ms ease, background 200ms ease, transform 200ms ease;
}
.sound-toggle:hover {
  background: var(--jaz-blue);
  transform: translateX(-50%) translateY(-1px);
}
.sound-toggle.hidden { opacity: 0; pointer-events: none; }

@media (max-width: 900px) {
  .video-headline { font-size: clamp(40px, 9vw, 80px); }
  .phone-frame { width: 240px; height: 426px; }
}
