/* ==========================================================================
   cs-video — <lite-youtube> facade embed (paired with cs-video.js)
   --------------------------------------------------------------------------
   Poster + ripple play button; cs-video.js swaps the poster for the real
   iframe on click. Zero YouTube payload until then. Used on the blog
   long-form blocks, commercial, and the dining landing pages.

   The base .video-play-button / .play-icon / .ripple rules and the
   `ripple-pulse` keyframe are global (main.css, loaded site-wide); this file
   only carries the facade-specific layout.
   ========================================================================== */

.cs-video {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.cs-video lite-youtube {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000 center center / cover no-repeat;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}
.cs-video lite-youtube::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.28));
  transition: background 0.2s ease;
}
.cs-video lite-youtube:hover::before {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.16));
}
.cs-video .video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none; /* clicks pass to the <lite-youtube> element */
}
.cs-video .play-icon {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
  transition: transform 0.3s ease, filter 0.3s ease;
}
.cs-video .play-icon circle { transition: opacity 0.3s ease, fill 0.3s ease; }
.cs-video .ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
}
.cs-video .ripple-1 { animation: ripple-pulse 2.4s infinite 0s; }
.cs-video .ripple-2 { animation: ripple-pulse 2.4s infinite 0.8s; }
.cs-video .ripple-3 { animation: ripple-pulse 2.4s infinite 1.6s; }

/* Hover/focus — re-scoped from the home wrapper to the facade element.
   Keep the translate(-50%,-50%) — the global .play-icon is absolutely
   centered with it, so a bare scale() would drop the centering. */
.cs-video lite-youtube:hover .play-icon,
.cs-video lite-youtube:focus-visible .play-icon {
  transform: translate(-50%, -50%) scale(1.12);
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.85)) drop-shadow(0 0 28px rgba(255, 255, 255, 0.55));
}
.cs-video lite-youtube:hover .play-icon circle,
.cs-video lite-youtube:focus-visible .play-icon circle { fill: #fff; opacity: 1; }
.cs-video lite-youtube:hover .ripple,
.cs-video lite-youtube:focus-visible .ripple {
  animation-play-state: paused;
  opacity: 0 !important;
  transition: opacity 0.3s ease;
}
.cs-video lite-youtube:focus-visible { outline: 2px solid #abc578; outline-offset: 3px; }

/* Activated — iframe replaces the poster */
.cs-video lite-youtube.is-activated { cursor: default; background-image: none !important; }
.cs-video lite-youtube.is-activated::before,
.cs-video lite-youtube.is-activated .video-play-button { display: none; }
.cs-video lite-youtube iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.cs-video__caption {
  font-family: "Gotham", Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #6b6c68;
  text-align: center;
  margin: 12px 0 0;
}

@media (max-width: 768px) {
  .cs-video .video-play-button { width: 60px; height: 60px; }
  .cs-video .ripple { width: 80px; height: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-video .ripple { display: none; }
}
