/* ============================================================
   OB FETISH — VIDEO LIGHTBOX
   Trailer popup player with post-trailer membership CTA
   ============================================================ */

/* ----------------------------------------------------------
   LIGHTBOX BASE
   ---------------------------------------------------------- */
.obf-lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.obf-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

/* Backdrop */
.obf-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

/* ----------------------------------------------------------
   LIGHTBOX PANEL
   ---------------------------------------------------------- */
.obf-lightbox__wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 80px rgba(0,0,0,0.8);
  transform: scale(0.95) translateY(16px);
  transition: transform var(--transition-slow);
}

.obf-lightbox.is-open .obf-lightbox__wrap {
  transform: scale(1) translateY(0);
}

/* Close button */
.obf-lightbox__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 10;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--border-default);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  backdrop-filter: var(--glass-blur);
  transition: all var(--transition-fast);
}

.obf-lightbox__close:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: scale(1.1);
}

/* ----------------------------------------------------------
   PLAYER AREA
   ---------------------------------------------------------- */
.obf-lightbox__player {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.obf-lightbox__video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}

/* Custom video controls accent */
.obf-lightbox__video::-webkit-media-controls-panel {
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

/* Bunny / iframe wrapper */
.obf-lightbox__iframe-wrap {
  position: absolute;
  inset: 0;
}

.obf-lightbox__iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ----------------------------------------------------------
   INFO BAR (title + meta)
   ---------------------------------------------------------- */
.obf-lightbox__info {
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}

.obf-lightbox__title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.obf-lightbox__meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
  white-space: nowrap;
}

/* ----------------------------------------------------------
   POST-TRAILER CTA OVERLAY
   ---------------------------------------------------------- */
.obf-lightbox__cta {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 35, 0.94);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.4s ease forwards;
  z-index: 5;
}

.obf-lightbox__cta-inner {
  text-align: center;
  padding: var(--space-8);
  max-width: 440px;
}

.obf-lightbox__cta-icon {
  width: 72px;
  height: 72px;
  background: rgba(200, 16, 46, 0.12);
  border: 2px solid rgba(200, 16, 46, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin: 0 auto var(--space-5);
  animation: pulse-glow 2.5s ease infinite;
}

.obf-lightbox__cta-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-2xl));
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.obf-lightbox__cta-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  line-height: var(--leading-loose);
}

.obf-lightbox__cta-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
}

.obf-lightbox__cta-btn {
  width: 100%;
  max-width: 280px;
  justify-content: center;
}

.obf-lightbox__replay-btn {
  font-size: var(--text-xs);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
  padding: var(--space-2);
}

.obf-lightbox__replay-btn:hover {
  color: var(--text-secondary);
}

/* ----------------------------------------------------------
   MAKE THUMBNAIL + HERO CLICKABLE — cursor & hover cues
   ---------------------------------------------------------- */

/* Grid cards — full thumb is now a trigger */
.obf-video-card__thumb {
  cursor: pointer;
}

/* Hero: the entire slide is the click target */
.obf-hero-slide {
  cursor: pointer;
}

/* Hero content sits on top but should pass clicks through
   except for its own interactive children */
.obf-hero-slide__content {
  pointer-events: none;
}

.obf-hero-slide__content a,
.obf-hero-slide__content button,
.obf-hero-slide__content .obf-btn {
  pointer-events: auto;
}

/* Subtle "click to play" ring on card hover */
.obf-video-card:hover .obf-video-card__play {
  opacity: 1;
}

/* ----------------------------------------------------------
   LIGHT MODE OVERRIDES
   ---------------------------------------------------------- */
[data-theme="light"] .obf-lightbox__backdrop {
  background: rgba(10, 20, 40, 0.88);
}

[data-theme="light"] .obf-lightbox__wrap {
  background: var(--bg-card);
  border-color: var(--border-default);
}

[data-theme="light"] .obf-lightbox__cta {
  background: rgba(240, 244, 248, 0.95);
}

/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  .obf-lightbox {
    padding: 0;
    align-items: flex-end;
  }

  .obf-lightbox__wrap {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-width: 100%;
    max-height: 90vh;
    overflow-y: auto;
  }

  .obf-lightbox__cta-inner {
    padding: var(--space-6) var(--space-5);
  }

  .obf-lightbox__info {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}
