/* Night Activities only: phone/tablet video layout.
 * Keep the approved desktop composition and all shared site chrome untouched.
 * The YouTube viewport follows the container, never the phone's screen height.
 */
@media (max-width: 900px), (max-width: 1024px) and (pointer: coarse) {
  body[data-page="night"] .night-video-hero {
    display: block;
    min-height: 0;
    height: auto;
    padding: 0;
    overflow: hidden;
    background: #000;
  }

  body[data-page="night"] .night-video-hero .night-hero-content {
    width: 100%;
    min-height: 0;
    height: auto;
    margin: 0 auto;
    padding: 20px 16px 18px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  /* Natural image sizing removes the old negative-margin overlap. */
  body[data-page="night"] .night-video-hero .night-brand-window {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(320px, 100%);
    max-width: 320px;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    margin: 0 auto;
    overflow: visible;
    background: transparent;
    filter: none;
  }

  body[data-page="night"] .night-video-hero .night-brand-window > .night-brand-logo {
    position: static;
    inset: auto;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 160px;
    margin: 0;
    object-fit: contain;
    object-position: center;
    transform: none;
  }

  body[data-page="night"] .night-video-hero .night-tagline {
    width: auto;
    max-width: 36rem;
    margin: 12px auto 0;
    padding: 0;
    font-size: 11px;
    line-height: 1.6;
    letter-spacing: .075em;
    text-align: center;
    white-space: normal;
    overflow-wrap: break-word;
  }

  body[data-page="night"] .night-video-hero .night-hero-content > .btn {
    min-height: 44px;
    margin: 12px auto 0;
    padding: 11px 20px;
    font-size: 12px;
    line-height: 20px;
  }

  body[data-page="night"] .night-video-hero .night-video-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #000;
  }

  /* Full landscape frame; 200px is YouTube's minimum player height.
   * Only the narrowest phones have tiny letterbox bars, never cropped footage.
   */
  body[data-page="night"] .night-video-stage .night-video-bg {
    position: relative;
    inset: auto;
    flex: none;
    width: 100%;
    height: auto;
    min-height: 200px;
    max-height: none;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    z-index: 0;
    background: #000;
  }

  body[data-page="night"] .night-video-stage .night-video-bg iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    transform: none;
  }

  body[data-page="night"] .night-video-stage .night-video-shade {
    display: none;
  }

  /* Put the audio control below the small video, not on top of the footage. */
  body[data-page="night"] .night-video-stage .night-sound-toggle {
    position: relative;
    inset: auto;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 124px;
    min-height: 44px;
    margin: 10px auto 12px;
    padding: 10px 18px;
    font-size: 13px;
    line-height: 20px;
    border-color: rgba(255, 255, 255, .42);
    background: #171717;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    touch-action: manipulation;
  }
}
