/* NILSportsTech mobile home: one viewport, one film, chrome over the image. */
.nst-nav__utility { display: none; }

/* The fullscreen drawer is used on desktop too. Its secondary destinations
   sit below the signup card instead of disappearing with the page footer. */
.nst-nav__switch:checked ~ .nst-nav .nst-nav__utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 14px 2px 0;
}
.nst-nav__utility-label {
  color: rgba(255,255,255,.30);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
}
.nst-nav__utility-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 17px;
}
.nst-nav__utility-links a {
  color: rgba(255,255,255,.58);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .10em;
  line-height: 1.4;
  text-decoration: none;
  text-transform: uppercase;
}
.nst-nav__utility-links a:hover { color: #ff4a15; }

@media (max-width: 760px) {
  /* Watch owns the phone viewport. This sheet loads last, and its generic
     non-Home masthead rules were otherwise bringing the Home header back over
     the cinema after the cinema sheet had hidden it. */
  body.nst-cinema {
    width: 100%;
    height: 100dvh;
    overflow: hidden !important;
    background: #000;
  }
  body.nst-cinema .nst-head,
  body.nst-cinema .nst-nav,
  body.nst-cinema .nst-ticker,
  body.nst-cinema .nst-watchview__topics {
    display: none !important;
  }
  body.nst-cinema .nst {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    padding: 0 !important;
    overflow: hidden;
  }
  body.nst-cinema .nst-watchview,
  body.nst-cinema .nst-watchfeed {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    min-height: 0;
    margin: 0;
    padding: 0;
  }
  body.nst-cinema .nst-wpanel {
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
  }
  /* Watch uses the same quiet transport as Home. The clip title and athlete
     are already printed immediately above it, so repeating the title inside a
     second black player row wastes the bottom of a phone screen. */
  body.nst-cinema .nst-wpanel .nst-playing:not([hidden]) {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: calc(env(safe-area-inset-bottom,0px) + 10px);
    width: auto;
    display: grid;
    grid-template-columns: auto minmax(56px,1fr) 36px;
    grid-template-areas: "transport track sound";
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body.nst-cinema .nst-wpanel .nst-playing__transport {
    grid-area: transport;
    gap: 4px;
  }
  body.nst-cinema .nst-wpanel .nst-playing__btn {
    width: 36px;
    height: 36px;
  }
  body.nst-cinema .nst-wpanel .nst-playing__btn--step {
    width: 30px;
    height: 30px;
  }
  body.nst-cinema .nst-wpanel .nst-playing__track {
    grid-area: track;
    grid-column: auto;
    min-width: 0;
  }
  body.nst-cinema .nst-wpanel .nst-playing__btn[data-playing-sound] {
    grid-area: sound;
    position: static;
    margin: 0;
    justify-self: end;
  }
  body.nst-cinema .nst-wpanel .nst-playing__thumb,
  body.nst-cinema .nst-wpanel .nst-playing__text,
  body.nst-cinema .nst-wpanel .nst-playing__time,
  body.nst-cinema .nst-wpanel .nst-playing__next {
    display: none !important;
  }

  body.nst-front-screen,
  body.nst-front-screen .nst,
  body.nst-front-screen [data-front-view] {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    background: #08080a;
  }

  body.nst-front-screen .nst-ticker { display: none; }
  body.nst-front-screen .nst-index { display: none !important; }
  body.nst-front-screen .nst-hero__stage { touch-action: pan-x; }
  body.nst-front-screen .nst-hero__stage.is-reel-up,
  body.nst-front-screen .nst-hero__stage.is-reel-down {
    animation: nst-home-reel-in .24s ease-out both;
  }
  @keyframes nst-home-reel-in {
    from { opacity: .72; transform: scale(1.012); }
    to { opacity: 1; transform: scale(1); }
  }

  body.nst-front-screen .nst-head {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-rows: 48px 50px;
    gap: 8px 10px;
    padding: calc(env(safe-area-inset-top,0px) + 8px) 14px 20px;
    color: #fff;
    background: linear-gradient(to bottom,rgba(5,5,7,.96) 0%,rgba(5,5,7,.72) 66%,transparent 100%);
    border: 0;
    box-shadow: none;
  }

  body.nst-front-screen .nst-brand {
    grid-column: 1;
    grid-row: 1;
    gap: 9px;
    min-width: 0;
  }
  body.nst-front-screen .nst-nav__burger {
    width: 32px;
    height: 42px;
    margin: 0;
    padding: 0;
    color: #fff;
  }
  body.nst-front-screen .nst-brand__mark {
    --mark: 34px;
    flex: 0 0 var(--mark);
    color: #fff;
  }
  body.nst-front-screen .nst-brand__word {
    color: #fff;
    font-size: 15px;
    letter-spacing: .105em;
  }
  body.nst-front-screen .nst-brand__tag {
    display: block;
    color: rgba(255,255,255,.52);
    font-size: 6px;
    line-height: 1;
    letter-spacing: .16em;
  }

  body.nst-front-screen .nst-head__actions {
    grid-column: 2;
    grid-row: 1;
    gap: 6px;
  }
  body.nst-front-screen .nst-head__actions .nst-btn {
    min-height: 38px;
    padding: 9px 12px;
    font-size: 10px;
    letter-spacing: .08em;
    white-space: nowrap;
  }
  body.nst-front-screen .nst-head__actions .nst-btn--light {
    padding-inline: 13px;
  }
  body.nst-front-screen .nst-head__actions .nst-btn--light::after { content: none; }

  /* Mobile navigation is a real screen, not a white strip dropped between the
     header and the film. The header stays above it so the burger becomes the
     close control and the brand keeps the visitor oriented. */
  body.nst-network-shell .nst-nav__switch:checked ~ .nst-head {
    grid-template-columns: 1fr;
    grid-template-rows: 48px;
    padding-bottom: 10px;
    background: #09090b;
  }
  body.nst-network-shell .nst-nav__switch:checked ~ .nst-head .nst-brand {
    grid-column: 1;
    width: 100%;
  }
  body.nst-network-shell .nst-nav__switch:checked ~ .nst-head .nst-head__actions,
  body.nst-network-shell .nst-nav__switch:checked ~ .nst-head .nst-ask {
    display: none;
  }
  body.nst-network-shell .nst-nav__switch:checked ~ .nst-nav {
    position: fixed;
    inset: 0;
    z-index: 49;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    height: 100dvh;
    padding: calc(env(safe-area-inset-top,0px) + 82px) 18px calc(env(safe-area-inset-bottom,0px) + 20px);
    overflow-y: auto;
    color: #fff;
    background:
      radial-gradient(circle at 12% 18%,rgba(255,74,21,.16),transparent 34%),
      rgba(7,7,10,.97);
    border: 0;
    box-shadow: none;
    backdrop-filter: blur(28px) saturate(1.25);
    -webkit-backdrop-filter: blur(28px) saturate(1.25);
  }
  body.nst-network-shell .nst-nav__switch:checked ~ .nst-nav > :is(span,a) {
    display: flex;
    align-items: center;
    min-height: 62px;
    padding: 16px 14px;
    gap: 14px;
    color: rgba(255,255,255,.68);
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.10);
    border-radius: 0;
    font-size: 18px;
    letter-spacing: .12em;
    text-decoration: none;
  }
  body.nst-network-shell .nst-nav__switch:checked ~ .nst-nav > :is(span,a) svg {
    width: 21px;
    height: 21px;
  }
  body.nst-network-shell .nst-nav__switch:checked ~ .nst-nav > .is-active {
    padding-bottom: 16px;
    color: #fff;
    border-bottom-color: rgba(255,255,255,.10);
  }
  body.nst-network-shell .nst-nav__switch:checked ~ .nst-nav > .is-active svg {
    color: #ff4a15;
  }
  body.nst-network-shell .nst-nav__switch:checked ~ .nst-nav .nst-nav__start {
    min-height: 76px;
    margin-top: auto;
    padding: 17px 18px;
    color: #fff;
    background: #ff4a15;
    border: 0;
    border-radius: 16px;
  }
  body.nst-network-shell .nst-nav__switch:checked ~ .nst-nav .nst-nav__start svg,
  body.nst-network-shell .nst-nav__switch:checked ~ .nst-nav .nst-nav__start b,
  body.nst-network-shell .nst-nav__switch:checked ~ .nst-nav .nst-nav__startsub {
    color: #fff;
  }
  body.nst-network-shell .nst-nav__switch:checked ~ .nst-nav .nst-nav__startsub {
    opacity: .72;
  }

  /* The old page footer belongs in the menu now that the home screen no
     longer scrolls. Keep these quieter than navigation and the signup CTA. */
  .nst-nav__switch:checked ~ .nst-nav .nst-nav__utility {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 9px 16px;
    padding: 11px 4px 0;
  }
  .nst-nav__utility-label {
    color: rgba(255,255,255,.30);
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .16em;
  }
  .nst-nav__utility-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 15px;
  }
  .nst-nav__utility-links a {
    color: rgba(255,255,255,.58);
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .10em;
    line-height: 1.4;
    text-decoration: none;
    text-transform: uppercase;
  }
  .nst-nav__utility-links a:active,
  .nst-nav__utility-links a:hover {
    color: #ff4a15;
  }

  body.nst-front-screen .nst-ask {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    min-height: 50px;
    padding: 0 16px;
    gap: 10px;
    color: #fff;
    background: rgba(12,12,15,.72);
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 999px;
    box-shadow: 0 12px 36px rgba(0,0,0,.22);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  body.nst-front-screen .nst-ask__label { display: none; }
  body.nst-front-screen .nst-ask__dot { color: #ff4a15; }
  body.nst-front-screen .nst-ask__input {
    min-width: 0;
    color: #fff;
    font-size: 15px;
  }
  body.nst-front-screen .nst-ask__input::placeholder { color: rgba(255,255,255,.48); }

  body.nst-front-screen .nst-hero,
  body.nst-front-screen .nst-hero:has(.nst-hero__stage.is-portrait) {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    min-height: 0;
    margin: 0;
    overflow: hidden !important;
  }
  body.nst-front-screen .nst-hero__stage,
  body.nst-front-screen .nst-hero__stage.is-portrait,
  body.nst-front-screen .nst-hero:has(.nst-hero__stage.is-portrait) .nst-hero__stage {
    position: absolute;
    inset: 0;
    --nst-cap: 100dvh;
    --nst-frame-w: 100vw;
    width: 100%;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0;
    padding: 0;
    overflow: hidden !important;
  }
  body.nst-front-screen .nst-hero__stage > video:not(.nst-hero__mirror),
  body.nst-front-screen .nst-hero__stage > img:not(.nst-hero__mirror),
  body.nst-front-screen .nst-hero__stage .nst-hero__video:not(.nst-hero__mirror),
  body.nst-front-screen .nst-hero__stage .nst-hero__cover {
    width: 100vw !important;
    height: 100dvh !important;
    object-fit: cover !important;
  }
  body.nst-front-screen .nst-hero__stage::before {
    height: 190px;
    background: linear-gradient(to bottom,rgba(8,8,10,.92),rgba(8,8,10,.36) 58%,transparent);
  }

  body.nst-front-screen .nst-hero__body,
  body.nst-front-screen .nst-hero__stage.is-portrait .nst-hero__body,
  body.nst-front-screen:has(.nst-playing:not([hidden])) .nst-hero__body {
    inset: auto 0 0 !important;
    width: 100% !important;
    max-width: none !important;
    padding: 112px 18px calc(env(safe-area-inset-bottom,0px) + 126px) !important;
    gap: 7px;
    align-items: flex-start !important;
    text-align: left !important;
    background: linear-gradient(to top,rgba(8,8,10,.88) 0%,rgba(8,8,10,.72) 42%,transparent 100%);
  }
  body.nst-front-screen .nst-hero__kicker {
    gap: 7px;
    padding-left: 10px;
    border-left: 2px solid #ff4a15;
    font-size: 9px;
    letter-spacing: .15em;
  }
  body.nst-front-screen .nst-hero__kicker .nst-avatar {
    width: 24px;
    height: 24px;
  }
  body.nst-front-screen .nst-hero__title,
  body.nst-front-screen .nst-hero__stage.is-portrait .nst-hero__title,
  body.nst-front-screen .nst-hero__stage.is-wide .nst-hero__title {
    max-width: min(100%,20ch);
    font-size: clamp(24px,6.9vw,30px) !important;
    line-height: .98;
    letter-spacing: 0;
    -webkit-line-clamp: 2;
  }
  body.nst-front-screen .nst-hero__caption { display: none; }
  body.nst-front-screen .nst-hero__actions {
    justify-content: flex-start !important;
    flex-wrap: nowrap;
    width: auto;
    gap: 7px;
    padding-top: 5px;
  }
  body.nst-front-screen .nst-hero__actions .nst-btn {
    min-height: 42px;
    padding: 10px 15px;
    font-size: 10px;
    letter-spacing: .09em;
  }

  body.nst-front-screen::after {
    display: none;
    content: none;
  }
  body.nst-front-screen .nst-playing:not([hidden]) {
    left: 14px;
    right: 68px;
    bottom: calc(env(safe-area-inset-bottom,0px) + 12px);
    width: auto;
    display: grid;
    grid-template-columns: auto minmax(56px,1fr) 36px;
    grid-template-areas: "transport track sound";
    align-items: center;
    gap: 7px;
    padding: 8px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }
  body.nst-front-screen .nst-playing__transport {
    grid-area: transport;
    gap: 4px;
  }
  body.nst-front-screen .nst-playing__btn {
    width: 36px;
    height: 36px;
  }
  body.nst-front-screen .nst-playing__btn--step {
    width: 30px;
    height: 30px;
  }
  body.nst-front-screen .nst-playing__track {
    grid-area: track;
    grid-column: auto;
    min-width: 0;
  }
  body.nst-front-screen .nst-playing__btn[data-playing-sound] {
    grid-area: sound;
    position: static;
    margin: 0;
    justify-self: end;
  }
  body.nst-front-screen .nst-playing__thumb,
  body.nst-front-screen .nst-playing__text,
  body.nst-front-screen .nst-playing__time,
  body.nst-front-screen .nst-playing__next {
    display: none !important;
  }
  body.nst-front-screen .nst-browse {
    right: 14px;
    bottom: calc(env(safe-area-inset-bottom,0px) + 20px);
    width: 40px;
    height: 40px;
    justify-content: center;
    padding: 0;
    color: #ff4a15;
    background: rgba(10,10,12,.64);
    border-color: rgba(255,255,255,.20);
    box-shadow: 0 10px 28px rgba(0,0,0,.30);
  }
  body.nst-front-screen .nst-browse svg {
    width: 19px;
    height: 19px;
  }

  body.nst-front-screen .nst-upnext [data-upnext] {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 18px 10px;
    overflow-x: hidden;
    overflow-y: auto;
    align-content: start;
    padding: 10px 6px 24px;
    scroll-snap-type: none;
  }
  body.nst-front-screen .nst-upnext__drawerhead {
    min-height: 58px;
    padding: 0 6px 10px;
    justify-content: space-between;
    align-items: center;
  }
  body.nst-front-screen .nst-upnext__drawerlabel {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }
  body.nst-front-screen .nst-upnext__drawerlabel b {
    color: #fff;
    font-family: var(--cond);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .08em;
  }
  body.nst-front-screen .nst-upnext__drawerlabel span {
    color: rgba(255,255,255,.48);
    font-family: var(--mono);
    font-size: 9px;
    line-height: 1;
    letter-spacing: .15em;
    text-transform: uppercase;
  }
  body.nst-front-screen .nst-upnext__drawerhead button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.08);
  }
  body.nst-front-screen .nst-upnext__drawerhead button svg {
    width: 19px;
    height: 19px;
  }
  body.nst-front-screen .nst-upnext__item {
    width: auto;
    min-width: 0;
    flex: none;
  }
  body.nst-front-screen .nst-upnext__thumb {
    height: auto;
    aspect-ratio: 16 / 10;
  }
  body.nst-front-screen:has(.nst-upnext.is-open) .nst-playing,
  body.nst-front-screen:has(.nst-upnext.is-open) .nst-browse {
    opacity: 0;
    pointer-events: none;
  }

  /* Apps become an edge-to-edge identity wall on a phone. Two across keeps
     faces and team art large enough to read without turning 130 apps into a
     one-card-per-screen list. */
  .nst-apps .nst-appgrid {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 2px !important;
    padding: 2px 0 0 !important;
    background: #08080a;
  }
  .nst-apps .nst-app {
    gap: 0 !important;
    border-radius: 0 !important;
    background: #08080a !important;
    overflow: hidden !important;
  }
  .nst-apps .nst-app--lit { border-top: 0 !important; }
  .nst-apps .nst-app__frame {
    aspect-ratio: 4 / 5 !important;
    border-radius: 0 !important;
  }
  .nst-apps .nst-app__body {
    height: 68px;
    min-height: 0;
    padding: 9px 11px 10px !important;
    gap: 5px !important;
    background: #08080a;
    overflow: hidden;
  }
  .nst-apps .nst-app__who {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
  }
  .nst-apps .nst-app__name {
    flex: 0 1 auto;
    font-size: clamp(18px,5vw,22px) !important;
    line-height: .98 !important;
  }
  .nst-apps .nst-app__identity {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 10px;
    font-size: 8px;
  }
  .nst-apps .nst-app__frame > .nst-app__flag--new {
    display: none !important;
  }
  .nst-apps .nst-app__first-mobile {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 4px 6px;
    color: #ff4a15;
    border: 1px solid rgba(255,74,21,.48);
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 6px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .10em;
    white-space: nowrap;
  }
}

/* Directory views keep the same two-tier mobile masthead as the film, but in
   normal document flow. The older header let the lockup keep its desktop
   width, so LOG IN was painted over the end of NILSPORTSTECH. */
@media (max-width: 760px) {
  body:not(.nst-front-screen) .nst-head {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-rows: 48px 50px;
    gap: 8px 10px;
    width: 100%;
    padding: calc(env(safe-area-inset-top,0px) + 8px) 14px 20px;
    color: #fff;
    background: rgba(8,8,10,.96);
    border-bottom: 0;
  }
  body:not(.nst-front-screen) .nst-brand {
    grid-column: 1;
    grid-row: 1;
    gap: 7px;
    min-width: 0;
  }
  body:not(.nst-front-screen) .nst-nav__burger {
    width: 32px;
    height: 42px;
    margin: 0;
    padding: 0;
    color: #fff;
  }
  body:not(.nst-front-screen) .nst-brand__mark {
    --mark: 34px;
    flex: 0 0 var(--mark);
    color: #fff;
  }
  body:not(.nst-front-screen) .nst-brand__word {
    color: #fff;
    font-size: 15px;
    letter-spacing: .105em;
  }
  body:not(.nst-front-screen) .nst-brand__tag {
    color: rgba(255,255,255,.46);
    font-size: 6px;
    letter-spacing: .16em;
  }
  body:not(.nst-front-screen) .nst-head__actions {
    grid-column: 2;
    grid-row: 1;
    gap: 6px;
  }
  body:not(.nst-front-screen) .nst-head__actions .nst-btn {
    min-height: 38px;
    padding: 9px 12px;
    font-size: 10px;
    letter-spacing: .08em;
    white-space: nowrap;
  }
  body:not(.nst-front-screen) .nst-head__actions .nst-btn--light::after { content: none; }
  body:not(.nst-front-screen) .nst-ask {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    min-height: 50px;
    padding: 0 16px;
    color: #fff;
    background: #111115;
    border-color: rgba(255,255,255,.16);
    border-radius: 999px;
  }
  body:not(.nst-front-screen) .nst-ask__label,
  body:not(.nst-front-screen) .nst-ask__key { display: none; }
  body:not(.nst-front-screen) .nst-ask__input {
    min-width: 0;
    color: #fff;
    font-size: 15px;
  }
  body:not(.nst-front-screen) .nst-ask__input::placeholder { color: rgba(255,255,255,.42); }
}

/* Apps and the Watch index hide the ticker, so they must not retain the
   desktop ticker's reserved 36px above the shared masthead. */
body.nst-network-shell:not(.nst-front-screen):not(.nst-cinema) .nst {
  padding-top: 0;
}

@media (max-width: 390px) {
  body.nst-front-screen .nst-brand__word { font-size: 13px; }
  body.nst-front-screen .nst-brand__tag { font-size: 5.5px; }
  body.nst-front-screen .nst-head__actions .nst-btn--ghost { display: none; }
  body:not(.nst-front-screen) .nst-brand { gap: 6px; }
  body:not(.nst-front-screen) .nst-nav__burger { width: 23px; }
  body:not(.nst-front-screen) .nst-brand__mark { --mark: 28px; }
  body:not(.nst-front-screen) .nst-brand__word { font-size: 12px; letter-spacing: .07em; }
  body:not(.nst-front-screen) .nst-brand__tag { display: none; }
  body:not(.nst-front-screen) .nst-head__actions .nst-btn {
    padding-inline: 8px;
    font-size: 8px;
  }
}
