/* Landing video stage: YT-style poster + play, native mp4, founder note */

/* Poster fills the stage until the user hits play (YouTube pattern). */
.video-player .video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #05080d;
  z-index: 1;
  pointer-events: none;
}
.video-player.is-playing .video-poster,
.video-player.is-playing-ready .video-poster { opacity: 0; visibility: hidden; }

.video-player .video-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #03060a;
  opacity: 1;
  z-index: 2;
}
.video-player .video-embed {
  z-index: 2;
  background: #05080d;
}
.video-player .is-hidden,
.video-player [hidden] { display: none !important; }

/* Big center play — visible on poster, hidden only while media is live or note is open */
.video-player .hero-play {
  z-index: 4;
  opacity: 1;
  pointer-events: auto;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, .5);
  background: rgba(8, 12, 18, .42);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}
.video-player .hero-play .pp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.video-player .hero-play .pp svg,
.video-player .hero-play .i-play {
  width: 28px;
  height: 28px;
  display: block;
  transform: translateX(2px);
}
.video-player .hero-play:hover {
  transform: scale(1.06);
  background: rgba(12, 18, 28, .58);
}
.video-player.note-open .hero-play,
.video-player.is-playing .hero-play,
.video-player.is-playing-ready .hero-play {
  opacity: 0;
  pointer-events: none;
}

/* Bigger glass note */
.video-note {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: clamp(14px, 3vw, 28px);
  background:
    radial-gradient(80% 70% at 50% 40%, rgba(125, 211, 252, .12), transparent 62%),
    linear-gradient(165deg, rgba(4, 10, 18, .72), rgba(6, 12, 22, .86));
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
}
.video-note-card {
  position: relative;
  margin: auto; /* keeps the card centered yet scrollable when taller than the stage */
  width: min(560px, 100%);
  padding: clamp(22px, 3.4vw, 30px) clamp(20px, 3vw, 28px) clamp(18px, 2.6vw, 24px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .14);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03) 42%, rgba(8, 14, 24, .55)),
    rgba(10, 16, 26, .42);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  backdrop-filter: blur(22px) saturate(1.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .12) inset,
    0 24px 60px rgba(0, 0, 0, .38);
  color: rgba(255, 255, 255, .94);
}
.video-note-heart {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 160, 180, .28);
  background: rgba(255, 120, 150, .12);
  color: #ff9bb0;
  font-size: 15px;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(255, 120, 150, .12);
}
.video-note-kicker {
  margin: 0;
  font: 700 11px/1.2 var(--grotesk, system-ui);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #9ad9ff;
}
.video-note-card h3 {
  margin: 10px 0 14px;
  max-width: 92%;
  font: 600 clamp(22px, 3.2vw, 30px)/1.15 var(--grotesk, system-ui);
  letter-spacing: -0.03em;
}
.video-note-card p {
  margin: 0 0 12px;
  font-size: clamp(13.5px, 1.55vw, 15px);
  line-height: 1.6;
  color: rgba(255, 255, 255, .8);
}
.video-note-thanks {
  margin: 4px 0 16px !important;
  color: #ffb3c4 !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
}
.video-note-go {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  color: #041018;
  font: 700 12.5px/1 var(--grotesk, system-ui);
  letter-spacing: .05em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #b6e6ff, #7dd3fc);
  box-shadow: 0 10px 24px rgba(125, 211, 252, .22);
  transition: transform .15s ease, filter .15s ease;
}
.video-note-go:hover { transform: translateY(-1px); filter: brightness(1.04); }
.video-note-go:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Quality picker — only while mp4 is live */
.video-player .vq {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
}
.video-player .vq-btn {
  height: 28px;
  min-width: 58px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  color: #fff;
  font: 700 10px/1 var(--grotesk, system-ui);
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(8,12,18,.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
}
.video-player .vq-btn:hover { background: rgba(12,18,28,.72); }
.video-player .vq-pop {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 88px;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(8,12,18,.92);
  box-shadow: 0 12px 28px rgba(0,0,0,.3);
}
.video-player .vq.open .vq-pop { display: flex; flex-direction: column; gap: 2px; }
.video-player .vq-pop button {
  height: 28px;
  border: 0;
  border-radius: 7px;
  text-align: left;
  padding: 0 10px;
  color: rgba(255,255,255,.82);
  background: transparent;
  font: 600 11px/1 var(--grotesk, system-ui);
  cursor: pointer;
}
.video-player .vq-pop button:hover { background: rgba(255,255,255,.08); color: #fff; }
.video-player .vq-pop button[aria-selected="true"] { background: rgba(125,211,252,.18); color: #9ad9ff; }
.video-player.note-open .vq { opacity: .35; pointer-events: none; }
.video-player.mode-frame .vq,
.video-player.is-armed .vq { display: none; }

/* Guide-rail cards now live in nexa-video-rail.css (single owner, no overrides). */
@media (max-width: 640px) {
  /* The player box is ~170px tall on phones - far too small to host overlays.
     Lift the founder note and the video list out to viewport level instead.
     transform AND backdrop-filter both create a containing block that would trap
     position:fixed inside the card, so the card goes solid on phones. */
  .meet {
    transform: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--bg);
    /* isolation traps the sheets' z-index inside the card, letting later
       sections paint over them */
    isolation: auto;
  }
  .video-note {
    position: fixed;
    inset: 0;
    z-index: 90;
    padding: 16px 14px;
    /* no full-screen backdrop blur on phones - slow, and flaky with position:fixed */
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background:
      radial-gradient(80% 70% at 50% 40%, rgba(125, 211, 252, .1), transparent 62%),
      rgba(4, 9, 16, .94);
  }
  .video-note-card {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background:
      linear-gradient(155deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03) 42%, rgba(8, 14, 24, .6)),
      #0b1220;
  }
  .video-note-card { padding: 18px 16px 16px; border-radius: 16px; }
  .video-note-card h3 { font-size: 20px; }
  .video-note-card p { font-size: 13px; }
  .video-note-heart { top: 12px; right: 12px; width: 30px; height: 30px; font-size: 13px; }
  .video-note-go { height: 42px; }
  .video-player .hero-play { width: 64px; height: 64px; }
}
