/* Shared mobile Home / Shows / Scoreboards navigation. */
.ncs-mobile-navigation {
  display: none;
}

.ncs-mobile-navigation[hidden],
.ncs-mobile-navigation [hidden] {
  display: none !important;
}

@media (max-width: 768px) {
  html.ncs-mobile-navigation-ready body {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  html.ncs-mobile-navigation-ready .mobile-bottom-tabbar,
  html.ncs-mobile-navigation-ready .mobile-shows-sheet,
  html.ncs-mobile-navigation-ready .mobile-shows-overlay,
  html.ncs-mobile-navigation-ready [data-cfb-sports-nav],
  html.ncs-mobile-navigation-ready [data-scoreboard-sports-nav] {
    display: none !important;
  }

  body.ncs-mobile-menu-open {
    overflow: hidden;
  }

  .ncs-mobile-navigation {
    --ncs-mobile-gold: #f7d55f;
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: block;
    color: #fff;
    font-family: Satoshi, Arial, sans-serif;
    pointer-events: none;
  }

  .ncs-mobile-navigation,
  .ncs-mobile-navigation * {
    box-sizing: border-box;
  }

  .ncs-mobile-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(0, 0, 0, .32);
    pointer-events: auto;
    touch-action: none;
  }

  .ncs-mobile-dock {
    position: absolute;
    left: 50%;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: min(96vw, 560px);
    max-width: calc(100% - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 12px);
    margin: 0;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 18px;
    background: rgba(2, 2, 2, .94);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transform: translateX(-50%);
    pointer-events: auto;
  }

  .ncs-mobile-dock > a,
  .ncs-mobile-dock > button {
    appearance: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 6px 4px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .055);
    color: #f4f4f4;
    font: inherit;
    font-size: .68rem;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease;
  }

  .ncs-mobile-icon {
    display: block;
    font-size: 1.05rem;
    line-height: 1;
  }

  .ncs-mobile-label {
    display: block;
    white-space: nowrap;
  }

  .ncs-mobile-dock > .is-current,
  .ncs-mobile-dock > a[aria-current="page"],
  .ncs-mobile-dock > button[aria-expanded="true"] {
    border-color: transparent;
    background: linear-gradient(135deg, #ffe482, #f7d55f 50%, #b98521);
    color: #111;
  }

  .ncs-mobile-sheet {
    position: absolute;
    left: 50%;
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    z-index: 1;
    width: min(92vw, 420px);
    max-width: calc(100% - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 16px);
    max-height: calc(100vh - 102px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 102px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    margin: 0;
    padding: 12px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-padding-top: 64px;
    scroll-padding-bottom: 12px;
    border: 1px solid rgba(247, 213, 95, .3);
    border-radius: 18px;
    background: rgba(2, 2, 2, .97);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .52);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transform: translateX(-50%);
    pointer-events: auto;
    touch-action: pan-y;
    scrollbar-width: thin;
    scrollbar-color: #9b813a #14120c;
  }

  .ncs-mobile-sheet-heading {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 8px;
    background: #020202;
  }

  .ncs-mobile-sheet-heading h2 {
    margin: 0;
    padding: 2px 4px;
    color: var(--ncs-mobile-gold);
    font: inherit;
    font-size: .82rem;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .ncs-mobile-close {
    appearance: none;
    display: grid;
    flex: 0 0 44px;
    place-items: center;
    width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(247, 213, 95, .3);
    border-radius: 12px;
    background: rgba(255, 255, 255, .055);
    color: #fff;
    font: inherit;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
  }

  .ncs-mobile-links {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  /* Keep homepage href-based show-card centering out of both popup menus. */
  .ncs-mobile-navigation .ncs-mobile-sheet .ncs-mobile-links > a {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 12px;
    align-items: center;
    justify-self: stretch;
    gap: 10px;
    width: 100%;
    min-width: 0;
    min-height: 56px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .055);
    color: #fff;
    font: inherit;
    font-size: .94rem;
    font-weight: 900;
    line-height: 1.3;
    text-align: left;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: background-color .16s ease, border-color .16s ease;
  }

  .ncs-mobile-link-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(247, 213, 95, .22);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(247, 213, 95, .16), rgba(247, 213, 95, .04));
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 1.2rem;
    line-height: 1;
    text-align: center;
  }

  .ncs-mobile-link-label {
    min-width: 0;
  }

  .ncs-mobile-link-arrow {
    color: var(--ncs-mobile-gold);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
  }

  .ncs-mobile-navigation .ncs-mobile-sheet .ncs-mobile-links > a:hover,
  .ncs-mobile-navigation .ncs-mobile-sheet .ncs-mobile-links > a[aria-current="page"],
  .ncs-mobile-close:hover {
    border-color: var(--ncs-mobile-gold);
    background: rgba(247, 213, 95, .14);
  }

  .ncs-mobile-navigation a:focus-visible,
  .ncs-mobile-navigation button:focus-visible {
    outline: 2px solid var(--ncs-mobile-gold);
    outline-offset: 3px;
  }

  html.cfb-game-center-open .ncs-mobile-navigation,
  body.cfb-game-center-open .ncs-mobile-navigation,
  body.nfl-modal-open .ncs-mobile-navigation,
  body.nba-modal-open .ncs-mobile-navigation,
  body.wnba-modal-open .ncs-mobile-navigation,
  body.game-center-open .ncs-mobile-navigation,
  html.bayou-modal-open .ncs-mobile-navigation,
  body.bayou-modal-open .ncs-mobile-navigation,
  body.bayou-college-game-center-open .ncs-mobile-navigation {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ncs-mobile-navigation *,
  .ncs-mobile-navigation *::before,
  .ncs-mobile-navigation *::after {
    animation: none !important;
    transition: none !important;
  }
}
