/* NEXTBORN V17.1 — MOBILE FULLSCREEN SCROLL VIDEO FIX
   Mobile-only. Desktop untouched. No app logic changed. */

@media (max-width: 760px) {

  /* Never let any parent constrain the cinematic scroll to a column */
  .v11-film,
  .v11-film-second,
  .scroll-film,
  [data-scroll-video]{
    width:100vw!important;
    max-width:100vw!important;
    min-width:100vw!important;
    margin-left:calc(50% - 50vw)!important;
    margin-right:calc(50% - 50vw)!important;
    padding-left:0!important;
    padding-right:0!important;
    overflow:visible!important;
  }

  /* Sticky viewport must be the entire phone screen */
  .v11-film .scroll-sticky,
  .v11-film-second .scroll-sticky,
  .scroll-film .scroll-sticky,
  [data-scroll-video] .scroll-sticky{
    position:sticky!important;
    top:0!important;
    left:0!important;
    right:0!important;
    width:100vw!important;
    max-width:100vw!important;
    min-width:100vw!important;
    height:100svh!important;
    min-height:100svh!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    border:0!important;
    border-radius:0!important;
    background:#020304!important;
    contain:none!important;
  }

  /* Force any scroll-controlled video to truly cover the viewport.
     Explicit left/top centering avoids inherited 50%-width/grid rules. */
  .scroll-sticky > video,
  .scroll-sticky .scroll-video,
  .v11-film video.scroll-video,
  .v11-film-second video.scroll-video,
  .scroll-film video,
  [data-scroll-video] video{
    display:block!important;
    position:absolute!important;
    z-index:0!important;
    left:50%!important;
    top:50%!important;
    right:auto!important;
    bottom:auto!important;

    width:100vw!important;
    min-width:100vw!important;
    max-width:none!important;

    height:100svh!important;
    min-height:100svh!important;
    max-height:none!important;

    margin:0!important;
    padding:0!important;

    object-fit:cover!important;
    object-position:center center!important;

    transform:translate3d(-50%,-50%,0)!important;
    transform-origin:center center!important;

    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    clip-path:none!important;
  }

  /* Overlay covers the same full viewport */
  .scroll-sticky .film-vignette,
  .v11-film .film-vignette,
  .v11-film-second .film-vignette{
    position:absolute!important;
    z-index:1!important;
    inset:0!important;
    width:100vw!important;
    height:100svh!important;
    max-width:none!important;
    margin:0!important;
    border:0!important;
    pointer-events:none!important;
  }

  /* Copy is full-width overlay, never a grid column */
  .scroll-sticky .film-copy,
  .v11-film .film-copy,
  .v11-film-second .film-copy{
    position:relative!important;
    z-index:3!important;
    width:calc(100% - 28px)!important;
    max-width:calc(100% - 28px)!important;
    height:100%!important;
    margin:0 auto!important;
    padding-left:0!important;
    padding-right:0!important;
    overflow:visible!important;
  }

  /* Make mobile copy breathe a little more */
  .film-copy h1,
  .film-copy h2{
    max-width:100%!important;
    font-size:clamp(38px,11vw,52px)!important;
    line-height:.94!important;
  }

  .film-copy p{
    max-width:94%!important;
  }

  /* Buttons remain inside screen */
  .film-actions{
    width:100%!important;
    max-width:100%!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:8px!important;
  }

  .film-actions .v11-btn{
    min-width:0!important;
    max-width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  /* Progress line spans the phone */
  .film-progress{
    width:auto!important;
    max-width:none!important;
    left:14px!important;
    right:14px!important;
  }
}

/* Very narrow phones */
@media (max-width: 390px) {
  .film-copy h1,
  .film-copy h2{
    font-size:clamp(34px,10.8vw,45px)!important;
  }
  .film-actions{
    grid-template-columns:1fr!important;
  }
  .film-actions .v11-btn{
    min-height:40px!important;
  }
}