/* Campaign film player.
 *
 * Two encodes exist: a 16:9 cut for desktop and a 9:16 cut for phones. Only one
 * is ever fetched, chosen by case-video.js, because downloading both would cost
 * a phone visitor tens of megabytes for a file it will not show.
 *
 * The stage reserves its aspect box up front so the page does not shift when the
 * video element gets its source (CLS stays at 0), and the aspect itself flips at
 * the same 720px breakpoint the script tests, so the reserved box always matches
 * the cut that will actually load.
 */
.cv { margin: 20px 0 10px; }

.cv__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--primary-deep);
}

.cv__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: var(--primary-deep);
}

/* the cover sits on top until the viewer presses it */
.cv__cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(to bottom, rgba(10,10,10,0.1), rgba(10,10,10,0.45));
  transition: opacity 0.4s var(--ease);
}
.cv__cover[hidden] { display: none; }

.cv__play {
  width: 72px;
  height: 72px;
  border-radius: var(--pill);
  background: rgba(255,255,255,0.95);
  display: grid;
  place-items: center;
  transition: transform 0.35s var(--ease);
}
.cv__play svg { width: 30px; height: 30px; fill: var(--primary-deep); margin-left: 3px; }
.cv__cover:hover .cv__play { transform: scale(1.08); }

.cv__cover em {
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}

.cs-sec__note { color: var(--grey-400); font-size: 0.8rem; margin-top: 10px; }

@media (max-width: 720px) {
  /* Only the 16:9 encode exists today, so the stage stays 16:9 at every width --
     a 9/16 box here would crop the wide film to a letterbox sliver. When the
     vertical cut lands in assets/video/ak-reel-9x16.mp4, restore:
         .cv__stage { aspect-ratio: 9 / 16; max-width: 440px; margin: 0 auto; }
     and re-enable the TALL branch in case-video.js. */
  .cv__play { width: 60px; height: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .cv__cover, .cv__play { transition: none; }
}
