/* =============================================================
   WC VIDEO MODAL — Component Styles
   Scoped entirely to .wc-vm-* classes.

   NOTE: The thumbnail trigger styles (.video-tile-thumb--trigger)
   are minimal here — the main card styles live in wc-why-card.css.
   ============================================================= */

/* ── Trigger thumb state ──────────────────────────────────── */
.video-tile-thumb--trigger {
  cursor: pointer;
}
.video-tile-thumb--trigger img {
  transition: transform 0.4s ease;
}
.video-tile-thumb--trigger:hover img {
  transform: scale(1.03);
}
.video-tile-thumb--trigger:focus-visible {
  outline: 2px solid var(--red-mid);
  outline-offset: 2px;
}

/* ── Modal Overlay ────────────────────────────────────────── */
.wc-vm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.wc-vm-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ── Modal Container ──────────────────────────────────────── */
.wc-vm-modal {
  background: var(--red-dark);
  border-radius: 12px;
  max-width: 900px;
  width: calc(100% - 32px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}
.wc-vm-overlay.is-open .wc-vm-modal {
  transform: translateY(0);
  opacity: 1;
}

/* ── Close Button ─────────────────────────────────────────── */
.wc-vm-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 50;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  line-height: 1;
  font-family: inherit;
}
.wc-vm-close:hover {
  background: var(--red-mid);
  color: var(--white);
  border-color: var(--red-mid);
}
.wc-vm-close:focus-visible {
  outline: 2px solid var(--salmon);
  outline-offset: 2px;
}

/* ── Player Wrapper ───────────────────────────────────────── */
.wc-vm-player {
  border-radius: 12px;
  overflow: hidden;
}

/* ── Screen ───────────────────────────────────────────────── */
.wc-vm-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1a0505;
  overflow: hidden;
}
.wc-vm-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.8s ease;
}
.wc-vm-screen video.is-faded {
  opacity: 0;
}
.wc-vm-rose-overlay {
  position: absolute;
  inset: 0;
  background: var(--red-dark);
  mix-blend-mode: multiply;
  opacity: 0.12;
  pointer-events: none;
  z-index: 2;
}

/* ── End Card ─────────────────────────────────────────────── */
.wc-vm-endcard {
  position: absolute;
  inset: 0;
  background: var(--red-dark);
  background-image:
    radial-gradient(circle at 30% 40%, rgba(137, 21, 21, 0.6) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(225, 36, 42, 0.15) 0%, transparent 40%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 3;
  pointer-events: none;
}
.wc-vm-endcard.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.wc-vm-endcard__registry {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 24px;
}
.wc-vm-endcard__cta {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 3.5vw, 32px);
  font-weight: 900;
  font-style: italic;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 8px;
}
.wc-vm-endcard__url {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 900;
  font-style: italic;
  color: var(--white);
  line-height: 1.2;
}

/* ── Play Overlay ─────────────────────────────────────────── */
.wc-vm-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(26, 5, 5, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
  z-index: 20;
  transition: opacity 0.3s;
}
.wc-vm-play-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.wc-vm-play-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: border-color 0.2s, transform 0.2s;
}
.wc-vm-play-overlay:hover .wc-vm-play-btn {
  border-color: var(--salmon);
  transform: scale(1.06);
}
.wc-vm-play-icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.85);
  margin-left: 4px;
}
.wc-vm-play-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* ── Subtitle ─────────────────────────────────────────────── */
.wc-vm-subtitle {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 75%;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  line-height: 1.5;
  z-index: 18;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.wc-vm-subtitle.is-visible {
  opacity: 1;
}

/* ── Progress Bar ─────────────────────────────────────────── */
.wc-vm-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  z-index: 15;
}
.wc-vm-progress__fill {
  height: 100%;
  background: var(--red-mid);
  width: 0%;
  transition: width 0.15s linear;
}

/* ── Controls Bar ─────────────────────────────────────────── */
.wc-vm-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.wc-vm-scene-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.wc-vm-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  border: none;
  padding: 0;
  flex-shrink: 0;
}
.wc-vm-dot:hover { background: rgba(255, 255, 255, 0.4); transform: scale(1.2); }
.wc-vm-dot.is-active { background: var(--red-mid); transform: scale(1.35); }
.wc-vm-dot.is-played { background: rgba(187, 32, 37, 0.4); }

.wc-vm-transport {
  display: flex;
  align-items: center;
  gap: 6px;
}
.wc-vm-ctrl {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.55);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  padding: 0;
}
.wc-vm-ctrl:hover {
  border-color: var(--red-mid);
  color: var(--white);
  background: rgba(187, 32, 37, 0.12);
}
.wc-vm-ctrl--pp {
  width: 38px;
  height: 38px;
  border-color: rgba(255, 255, 255, 0.2);
}

/* ── Language Dropdown ────────────────────────────────────── */
.wc-vm-lang-wrap { position: relative; display: flex; align-items: center; }
.wc-vm-lang-trigger {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.wc-vm-lang-trigger:hover { border-color: rgba(255, 255, 255, 0.3); color: var(--white); }
.wc-vm-lang-trigger svg { width: 14px; height: 14px; opacity: 0.5; }
.wc-vm-chevron { width: 10px; height: 10px; opacity: 0.4; transition: transform 0.2s; }
.wc-vm-lang-wrap.is-open .wc-vm-chevron { transform: rotate(180deg); }
.wc-vm-lang-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: var(--red-dark);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px;
  min-width: 160px;
  max-height: 220px;          /* ← add this */
  overflow-y: auto;           /* ← add this */
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 30;
}
.wc-vm-lang-wrap.is-open .wc-vm-lang-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.wc-vm-lang-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  border-radius: 4px;
  padding: 8px 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-align: left;
}
.wc-vm-lang-opt:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); }
.wc-vm-lang-opt.is-active { color: var(--white); font-weight: 700; }
.wc-vm-lang-opt.is-active::after { content: '\2713'; font-size: 12px; color: var(--salmon); }

/* ── Transcript ───────────────────────────────────────────── */
.wc-vm-transcript-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  cursor: pointer;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s;
  user-select: none;
}
.wc-vm-transcript-toggle:hover { background: rgba(255, 255, 255, 0.03); }
.wc-vm-transcript-toggle svg { width: 14px; height: 14px; color: rgba(255, 255, 255, 0.4); flex-shrink: 0; }
.wc-vm-transcript-toggle span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.wc-vm-chevron--transcript { margin-left: auto; color: rgba(255, 255, 255, 0.3); }
.wc-vm-transcript-toggle.is-open .wc-vm-chevron--transcript { transform: rotate(180deg); }
.wc-vm-transcript-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.wc-vm-transcript-panel.is-open { max-height: 280px; overflow-y: auto; }
.wc-vm-transcript-inner {
  padding: 16px 20px 20px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.55);
}
.wc-vm-transcript-line { padding: 4px 0; cursor: pointer; transition: color 0.2s; }
.wc-vm-transcript-line:hover { color: rgba(255, 255, 255, 0.8); }
.wc-vm-transcript-line.is-active { color: var(--white); font-weight: 500; }

/* ── Action Buttons ───────────────────────────────────────── */
.wc-vm-actions {
  display: flex;
  gap: 8px;
  padding: 16px 20px 20px;
  flex-wrap: wrap;
}
.wc-vm-action {
  flex: 1;
  min-width: 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: none;
}
.wc-vm-action svg { width: 14px; height: 14px; flex-shrink: 0; }
.wc-vm-action--primary { background: var(--red-bright); color: var(--white); }
.wc-vm-action--primary:hover { background: var(--red-mid); color: var(--white); }
.wc-vm-action--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.wc-vm-action--secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .wc-vm-overlay { align-items: flex-end; }
  .wc-vm-modal {
    max-width: 100%;
    width: 100%;
    border-radius: 12px 12px 0 0;
    max-height: 95vh;
  }
  .wc-vm-controls { flex-wrap: wrap; gap: 10px; justify-content: center; }
  .wc-vm-actions { flex-direction: column; }
  .wc-vm-subtitle { max-width: 90%; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .wc-vm-screen video,
  .wc-vm-endcard,
  .wc-vm-play-overlay,
  .wc-vm-subtitle,
  .wc-vm-dot,
  .wc-vm-ctrl,
  .wc-vm-play-btn,
  .wc-vm-modal { transition: none; }
}
/* =============================================================
   WC VIDEO MODAL — MODE B additions
   Add these rules to wc-video-modal.css
   ============================================================= */

/* ── Text overlay (MODE B post-video screens) ─────────────── */
.wc-vm-text-overlay {
  position: absolute;
  inset: 0;
  background: var(--red-dark);
  background-image:
    radial-gradient(circle at 30% 40%, rgba(137, 21, 21, 0.6) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(225, 36, 42, 0.15) 0%, transparent 40%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 3;
  pointer-events: none;
}
.wc-vm-text-overlay.is-visible {
  opacity: 1;
}
.wc-vm-text-overlay__text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 5vw, 44px);
  font-weight: 900;
  font-style: italic;
  color: var(--white);
  letter-spacing: -0.01em;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.wc-vm-text-overlay__text.is-show {
  opacity: 1;
}

/* ── Dot separator (between video dots and post dots) ─────── */
.wc-vm-dot-sep {
  width: 1px;
  height: 10px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 4px;
  flex-shrink: 0;
}

/* ── Post dots (text screens + end card in MODE B) ────────── */
.wc-vm-dot--post {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  cursor: default;
  border: none;
  padding: 0;
  flex-shrink: 0;
}
.wc-vm-dot--post.is-active {
  background: var(--red-mid);
  transform: scale(1.35);
}
.wc-vm-dot--post.is-played {
  background: rgba(187, 32, 37, 0.4);
}

/* ── Transcript post lines (non-clickable) ────────────────── */
.wc-vm-transcript-line--post {
  opacity: 0.4;
  cursor: default;
  font-style: italic;
}
.wc-vm-transcript-line--post.is-active {
  color: var(--white);
  font-weight: 500;
  opacity: 1;
}
@media (max-width: 640px) {
  .wc-vm-lang-dropdown {
    bottom: auto;
    top: calc(100% + 8px);
    max-height: 180px;
  }
}

.wc-vm-lang-dropdown::-webkit-scrollbar {
  width: 4px;
}
.wc-vm-lang-dropdown::-webkit-scrollbar-track {
  background: transparent;
}
.wc-vm-lang-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}