/* ============================================================
   Video Embed — Facade Pattern
   Thumbnail + play button shown until user interacts.
   ============================================================ */

.video-embed {
  display: block;
  width: 100%;
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  background: var(--color-gray-900, #111);
}

/* ── Facade (before iframe loads) ── */
.video-embed__facade {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--color-gray-900, #111);
  cursor: pointer;
}

.video-embed__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.video-embed__facade:hover .video-embed__thumb {
  transform: scale(1.02);
  opacity: 0.85;
}

.video-embed__thumb-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-gray-800, #1f2937);
}

/* ── Play button ── */
.video-embed__play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.video-embed__play-icon {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.video-embed__play:hover .video-embed__play-icon,
.video-embed__play:focus-visible .video-embed__play-icon {
  transform: scale(1.12);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
}

.video-embed__play:focus-visible {
  outline: 2px solid var(--color-accent, #c9a227);
  outline-offset: -4px;
  border-radius: 50%;
}

/* ── Unavailable state ── */
.video-embed__unavailable {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray-100, #f3f4f6);
  color: var(--color-gray-500, #6b7280);
  font-size: 14px;
}

/* ── Platform badge ── */
.video-embed[data-platform="youtube"] .video-embed__play-icon circle {
  fill: rgba(255, 0, 0, 0.75);
}

.video-embed[data-platform="vimeo"] .video-embed__play-icon circle {
  fill: rgba(26, 183, 234, 0.75);
}
