/* Cinematic video ad player — PDPM Audit Optimization Group */

.video-ad-section {
  background: #0a1210;
  color: #f0faf8;
  border-top: 1px solid rgba(158, 224, 212, 0.12);
  border-bottom: 1px solid rgba(158, 224, 212, 0.12);
}

.video-ad-section .section-title {
  color: #fff;
}

.video-ad-section .section-intro {
  color: rgba(235, 248, 245, 0.78);
}

.video-ad-wrap {
  margin-top: 2rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.video-ad-player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(165deg, #071a18 0%, #0c2824 40%, #1a0808 100%);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-ad-player.is-playing .video-ad-poster {
  opacity: 0;
  pointer-events: none;
}

.video-ad-poster {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
  background: linear-gradient(165deg, rgba(7, 26, 24, 0.92) 0%, rgba(26, 8, 8, 0.88) 100%);
  transition: opacity 0.5s ease;
}

.video-ad-poster h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  font-weight: 600;
  color: #fff;
  max-width: 22ch;
  line-height: 1.2;
}

.video-ad-poster p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(235, 248, 245, 0.7);
}

.video-ad-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #1f8f80 0%, var(--brand) 100%);
  color: #f6fffc;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(22, 107, 98, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}

.video-ad-play-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 36px rgba(22, 107, 98, 0.55);
}

.video-ad-play-btn svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.video-ad-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.video-ad-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  text-align: center;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

.video-ad-scene.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.video-ad-scene-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e85c5c;
  margin-bottom: 0.75rem;
}

.video-ad-scene-kicker--brand {
  color: #9ee0d4;
}

.video-ad-scene-kicker--gold {
  color: var(--gold-bright);
}

.video-ad-scene-headline {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.2vw, 2.65rem);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
  max-width: 18ch;
}

.video-ad-scene-headline--wide {
  max-width: 24ch;
}

.video-ad-scene-headline--stat {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  color: #e85c5c;
  max-width: none;
}

.video-ad-scene-sub {
  margin: 0.85rem 0 0;
  font-size: clamp(0.88rem, 2vw, 1.05rem);
  line-height: 1.55;
  color: rgba(235, 248, 245, 0.82);
  max-width: 36ch;
}

.video-ad-scene-sub strong {
  color: #9ee0d4;
  font-weight: 600;
}

.video-ad-scene-cta {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--gold-bright);
}

.video-ad-scene-url {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: #9ee0d4;
}

.video-ad-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
  z-index: 2;
}

.video-ad-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.video-ad-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
}

.video-ad-controls button {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.video-ad-controls button:hover {
  background: rgba(255, 255, 255, 0.22);
}

.video-ad-controls button svg {
  width: 0.85rem;
  height: 0.85rem;
  fill: currentColor;
}

.video-ad-progress {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}

.video-ad-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand), #9ee0d4);
  border-radius: 2px;
  transition: width 0.15s linear;
}

.video-ad-time {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  font-variant-numeric: tabular-nums;
  min-width: 4.5rem;
  text-align: right;
}

.video-ad-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2.75rem;
  z-index: 3;
  padding: 0 1.25rem;
  text-align: center;
  font-size: clamp(0.78rem, 1.8vw, 0.92rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.4s;
}

.video-ad-player.is-playing .video-ad-caption.is-visible {
  opacity: 1;
}

.video-ad-transcript {
  margin-top: 1.5rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-ad-transcript summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  color: rgba(235, 248, 245, 0.9);
}

.video-ad-transcript summary:hover {
  color: #9ee0d4;
}

.video-ad-transcript-body {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(235, 248, 245, 0.72);
}

.video-ad-transcript-body p {
  margin: 0 0 1rem;
}

.video-ad-transcript-body p:last-child {
  margin-bottom: 0;
}

.video-ad-cta-row {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.video-ad-cta-row .btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #f0faf8;
}

.video-ad-cta-row .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.video-ad-cta-row .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.video-ad-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 1.5rem 0 0;
}

.video-ad-tab {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(240, 250, 248, 0.85);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.video-ad-tab:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.video-ad-tab.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #f6fffc;
}

.video-ad-tab-badge {
  opacity: 0.75;
  font-weight: 500;
  margin-left: 0.25rem;
}

.video-ad-player--tv .video-ad-scene-headline {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.video-ad-player--tv .video-ad-grain {
  opacity: 0.18;
}

.video-ad-voice-note {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(235, 248, 245, 0.55);
}

[data-video-mute].is-muted {
  opacity: 0.55;
}

@media (max-width: 640px) {
  .video-ad-scene-headline {
    max-width: none;
  }

  .video-ad-caption {
    bottom: 3rem;
    font-size: 0.72rem;
  }
}
