/* ============================================================
 *  Netflix-style Overlay – Card Modal
 * ============================================================ */

/* ── Lock scroll ─────────────────────────── */
body.n-overlay-open {
  overflow: hidden !important;
}

/* ── Kill any Webflow lightbox that sneaks through ── */
.w-lightbox-backdrop,
.w-lightbox-container {
  display: none !important;
}

/* ── Backdrop ────────────────────────────── */
#netflix-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 30px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #fff;
  box-sizing: border-box;
}

#netflix-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ── Card ────────────────────────────────── */
.n-card {
  position: relative;
  background: #181818;
  width: 100%;
  max-width: 900px;
  border-radius: 8px;
  box-shadow: 0 14px 60px rgba(0, 0, 0, 0.75);
  overflow: hidden;
  margin: 40px auto;
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(.4, 0, .2, 1),
    opacity 0.35s cubic-bezier(.4, 0, .2, 1);
}

#netflix-overlay.active .n-card {
  transform: scale(1);
  opacity: 1;
}

/* ── Close button ────────────────────────── */
.n-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: #181818;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100001;
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: background 0.2s;
}

.n-close-btn:hover {
  background: #333;
}

.n-close-btn span {
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

/* ── Hero (video background) ─────────────── */
.n-hero {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* 16 : 9 */
  background: #000;
  overflow: hidden;
}

.n-hero-video-container {
  position: absolute;
  top: -60px;
  /* crop YT title bar at top */
  left: -10px;
  right: -10px;
  bottom: -60px;
  /* crop YT bottom bar */
  pointer-events: none;
  overflow: hidden;
  background: #000;
}

.n-hero-video-container iframe {
  width: calc(100% + 20px);
  /* wider than container to crop */
  height: calc(100% + 120px);
  border: none;
  display: block;
}

/* ── Vignette gradient ───────────────────── */
.n-hero-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      #181818 0%,
      rgba(0, 0, 0, 0.6) 8%,
      transparent 25%,
      transparent 55%,
      #181818 100%);
  pointer-events: none;
  z-index: 2;
}

/* ── Hero overlay content ────────────────── */
.n-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0 40px 28px;
  z-index: 10;
  box-sizing: border-box;
}

.n-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0 0 1rem;
  line-height: 1.1;
  text-shadow: 2px 3px 10px rgba(0, 0, 0, 0.85);
  text-transform: uppercase;
  max-width: 80%;
}

/* ── Controls row ────────────────────────── */
.n-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.n-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.65rem 1.5rem;
  border-radius: 4px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s;
}

.n-btn:active {
  transform: scale(0.96);
}

.n-btn-play {
  background: #fff;
  color: #000;
}

.n-btn-play:hover {
  background: rgba(255, 255, 255, 0.8);
}

.n-btn-mute {
  background: rgba(109, 109, 110, 0.7);
  color: #fff;
}

.n-btn-mute:hover {
  background: rgba(109, 109, 110, 0.45);
}

/* ── Card body (info section) ────────────── */
.n-card-body {
  padding: 8px 40px 36px;
  background: #181818;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.n-metadata {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  width: 100%;
}

.n-metadata .meta-match {
  color: #46d369;
}

.n-metadata .meta-year {
  color: #bcbcbc;
}

.n-metadata .meta-age {
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 1px 5px;
  font-size: 0.78rem;
  color: #fff;
}

.n-description {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #d2d2d2;
  max-width: 72%;
  margin: 0;
}

/* ── Mobile ──────────────────────────────── */
@media (max-width: 768px) {
  #netflix-overlay {
    padding: 0;
  }

  .n-card {
    margin: 0;
    border-radius: 0;
    max-width: 100%;
    min-height: 100vh;
  }

  .n-hero {
    padding-top: 65%;
  }

  .n-hero-content {
    padding: 0 20px 20px;
  }

  .n-title {
    font-size: 1.7rem;
    max-width: 90%;
  }

  .n-card-body {
    padding: 12px 20px 28px;
  }

  .n-description {
    max-width: 100%;
  }
}