:root {
      --bg: #07111f;
      --card: rgba(15, 31, 54, 0.82);
      --line: rgba(255,255,255,0.12);
      --text: #eef6ff;
      --muted: #b7c7de;
      --accent: #4bb7ff;
      --accent-2: #89f0ff;
      --gold: #ffd166;
      --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html,
    body {
      min-height: 100%;
      font-family: "Segoe UI", Arial, sans-serif;
      color: var(--text);
      background:
        radial-gradient(circle at top, rgba(61, 112, 174, 0.28), transparent 30%),
        linear-gradient(180deg, #020814 0%, #06101e 55%, #071420 100%);
      overflow-x: hidden;
    }



    .visually-hidden {
      position: absolute !important;
      width: 1px !important;
      height: 1px !important;
      padding: 0 !important;
      margin: -1px !important;
      overflow: hidden !important;
      clip: rect(0 0 0 0) !important;
      white-space: nowrap !important;
      border: 0 !important;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    a:focus-visible,
    button:focus-visible {
      outline: 2px solid var(--accent-2);
      outline-offset: 4px;
    }

    body::before,
    body::after {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: -2;
    }

    body::before {
      background-image:
        radial-gradient(2px 2px at 10% 20%, rgba(255,255,255,.9), transparent),
        radial-gradient(2px 2px at 30% 80%, rgba(255,255,255,.65), transparent),
        radial-gradient(1.5px 1.5px at 55% 35%, rgba(255,255,255,.8), transparent),
        radial-gradient(2px 2px at 80% 25%, rgba(255,255,255,.75), transparent),
        radial-gradient(1.5px 1.5px at 75% 70%, rgba(255,255,255,.8), transparent),
        radial-gradient(2px 2px at 90% 82%, rgba(255,255,255,.7), transparent),
        radial-gradient(1.5px 1.5px at 14% 64%, rgba(255,255,255,.8), transparent),
        radial-gradient(2px 2px at 45% 14%, rgba(255,255,255,.75), transparent);
      animation: twinkle 8s linear infinite alternate;
      opacity: 0.95;
    }

    body::after {
      background:
        radial-gradient(circle at 50% 50%, rgba(70, 185, 255, 0.10), transparent 18%),
        radial-gradient(circle at 20% 20%, rgba(155, 100, 255, 0.08), transparent 22%),
        radial-gradient(circle at 80% 80%, rgba(255, 120, 120, 0.06), transparent 20%);
      animation: nebulaMove 18s ease-in-out infinite alternate;
    }

    @keyframes twinkle {
      0% { transform: translateY(0) scale(1); opacity: .85; }
      100% { transform: translateY(-12px) scale(1.04); opacity: 1; }
    }

    @keyframes nebulaMove {
      0% { transform: translate3d(0, 0, 0) scale(1); }
      100% { transform: translate3d(0, -20px, 0) scale(1.06); }
    }

    .container {
      width: min(1280px, calc(100% - 32px));
      margin: 0 auto;
    }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 50;
      backdrop-filter: blur(12px);
      background: rgba(4, 11, 22, 0.84);
      border-bottom: 1px solid rgba(255,255,255,0.08);
      box-shadow: 0 10px 40px rgba(0,0,0,0.18);
    }

    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding: 14px 0;
      flex-wrap: nowrap;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 14px;
      min-width: 0;
      flex: 1 1 auto;
      max-width: 420px;
    }

    .logo-slot {
      width: 72px;
      height: 72px;
      border-radius: 18px;
      display: grid;
      place-items: center;
      overflow: hidden;
      background: transparent;
      flex-shrink: 0;
    }

    .logo-slot img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }

    .brand-text .brand-title {
      font-size: clamp(16px, 1.65vw, 24px);
      font-weight: 800;
      line-height: 1.1;
      letter-spacing: 0.01em;
    }

    .brand-text p {
      margin-top: 4px;
      color: var(--muted);
      font-size: 12px;
    }

    .nav-toggle {
      display: none;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: rgba(255,255,255,0.04);
      color: var(--text);
      cursor: pointer;
      flex-shrink: 0;
    }

    .nav-toggle span,
    .nav-toggle span::before,
    .nav-toggle span::after {
      content: "";
      display: block;
      width: 20px;
      height: 2px;
      background: white;
      border-radius: 999px;
      position: relative;
      transition: .25s ease;
    }

    .nav-toggle span::before { position: absolute; top: -6px; }
    .nav-toggle span::after { position: absolute; top: 6px; }

    .main-nav {
      flex: 0 1 auto;
      min-width: 0;
    }

    .menu {
      list-style: none;
      display: flex;
      align-items: center;
      gap: 4px;
      flex-wrap: nowrap;
      justify-content: flex-end;
      white-space: nowrap;
    }

    .menu > li {
      position: relative;
    }

    .menu > li > a,
    .menu > li > button {
      color: var(--text);
      background: transparent;
      border: 0;
      cursor: pointer;
      font: inherit;
      font-size: 14px;
      padding: 10px 10px;
      border-radius: 12px;
      transition: 0.25s ease;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      white-space: nowrap;
    }

    .menu > li > a:hover,
    .menu > li > button:hover,
    .menu > li:hover > a,
    .menu > li:hover > button {
      background: rgba(255,255,255,0.08);
      color: var(--accent-2);
    }

    .dropdown-arrow {
      width: 8px;
      height: 8px;
      border-right: 2px solid currentColor;
      border-bottom: 2px solid currentColor;
      transform: rotate(45deg) translateY(-1px);
      transition: transform .2s ease;
    }

    .has-submenu:hover .dropdown-arrow,
    .has-submenu.open .dropdown-arrow {
      transform: rotate(225deg) translateY(-1px);
    }

    .submenu {
      position: absolute;
      top: calc(100% + 10px);
      left: 0;
      min-width: 200px;
      list-style: none;
      padding: 10px;
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 18px;
      background: rgba(7, 16, 31, 0.95);
      backdrop-filter: blur(16px);
      box-shadow: var(--shadow);
      opacity: 0;
      visibility: hidden;
      transform: translateY(8px);
      transition: .25s ease;
    }

    .submenu li a {
      display: block;
      padding: 12px 14px;
      border-radius: 12px;
      color: var(--muted);
      transition: .2s ease;
    }

    .submenu li a:hover {
      background: rgba(255,255,255,0.08);
      color: var(--text);
    }

    .has-submenu:hover .submenu,
    .has-submenu.open .submenu {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    main {
      position: relative;
      padding: 42px 0 60px;
    }

    .site-footer {
      padding: 20px 0 40px;
    }

    .footer-inner {
      background: rgba(4,11,22,.82);
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 24px;
      padding: 24px;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      grid-auto-rows: 1fr;
      gap: 20px;
      align-items: stretch;
    }

    .footer-block {
      min-width: 0;
      min-height: 260px;
      height: 100%;
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 20px;
      background: rgba(255,255,255,.04);
      padding: 22px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 18px;
    }

    .footer-title h3 {
      font-size: 20px;
      margin-bottom: 6px;
    }

    .socials {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .social-link {
      display: flex;
      align-items: center;
      gap: 12px;
      min-height: 64px;
      padding: 12px 14px;
      border-radius: 16px;
      border: 1px solid rgba(255,255,255,.1);
      background: rgba(255,255,255,.05);
      transition: .22s ease;
      font-weight: 700;
    }

    .social-link:hover {
      background: rgba(255,255,255,.1);
      color: var(--accent-2);
      transform: translateY(-2px);
    }

    .social-icon-slot {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      background: rgba(255,255,255,.08);
      border: 1px solid rgba(255,255,255,.1);
      display: grid;
      place-items: center;
      overflow: hidden;
      flex-shrink: 0;
    }

    .social-icon-slot img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }

    .social-link span {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .support-card {
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .support-brand {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      gap: 24px;
      min-width: 0;
      height: 100%;
      text-align: center;
    }

    .support-logo-slot {
      width: 160px;
      height: 160px;
      border-radius: 28px;
      background: rgba(255,255,255,.06);
      border: 1px dashed rgba(255,255,255,.18);
      display: grid;
      place-items: center;
      overflow: hidden;
      flex-shrink: 0;
      color: var(--muted);
      font-size: 12px;
      text-align: center;
      padding: 12px;
      transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
    }

    .support-logo-slot:hover {
      background: rgba(255,255,255,.1);
      border-color: rgba(137,240,255,.42);
      transform: translateY(-2px) scale(1.05);
      box-shadow: 0 10px 24px rgba(0,0,0,.22);
    }

    .support-logo-slot img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }

    .support-copy {
      text-align: center;
    }

    .support-copy a {
      color: var(--text);
      transition: color .22s ease;
    }

    .support-copy a:hover {
      color: var(--accent-2);
    }

    .support-copy strong {
      display: block;
      font-size: 1.5rem;
      line-height: 1.3;
      margin-bottom: 0;
      color: inherit;
      text-align: center;
      transition: color .22s ease;
    }

    .nav-toggle.active span {
      background: transparent;
    }

    .nav-toggle.active span::before {
      top: 0;
      transform: rotate(45deg);
    }

    .nav-toggle.active span::after {
      top: 0;
      transform: rotate(-45deg);
    }

    .nmhl-roster-section {
      padding: 28px 0 10px;
    }

    .nmhl-roster-head {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 28px;
    }

    .nmhl-roster-puck {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: radial-gradient(circle at 30% 30%, #3b4350, #0f141c 65%);
      box-shadow: inset 0 -2px 4px rgba(255,255,255,0.08), 0 4px 10px rgba(0,0,0,0.18);
      flex: 0 0 24px;
    }

    .nmhl-roster-head h1 {
      margin: 0;
      font-size: clamp(2rem, 4vw, 3.2rem);
      letter-spacing: 0;
      color: #ffffff;
    }

    .nmhl-roster-card {
      border-radius: 24px;
      background: rgba(255,255,255,0.92);
      border: 1px solid rgba(9,40,103,0.08);
      box-shadow: 0 18px 40px rgba(8,31,80,0.12);
      padding: 28px;
      margin-bottom: 36px;
      color: #14213d;
    }

    .nmhl-roster-top {
      display: flex;
      justify-content: space-between;
      gap: 18px;
      align-items: flex-start;
      flex-wrap: wrap;
      margin-bottom: 18px;
    }

    .nmhl-roster-title h2 {
      margin: 0 0 8px;
      font-size: clamp(1.35rem, 2.5vw, 2rem);
      color: #0c2d75;
    }

    .nmhl-roster-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 46px;
      padding: 0 18px;
      border-radius: 999px;
      border: none;
      cursor: pointer;
      transition: transform .2s ease, box-shadow .2s ease;
      font: inherit;
      font-weight: 800;
      letter-spacing: 0.01em;
      color: #082052;
      background: linear-gradient(135deg, #ffcc5e, #f0b83b);
      box-shadow: 0 18px 32px rgba(240,184,59,0.24);
    }

    .nmhl-roster-button:hover:not(:disabled) {
      transform: translateY(-2px);
    }

    .nmhl-roster-button:disabled {
      opacity: .65;
      cursor: wait;
      transform: none;
    }

    .nmhl-roster-meta {
      margin-bottom: 16px;
      color: #0f3f96;
      font-weight: 700;
      line-height: 1.5;
    }

    .nmhl-roster-sort-row {
      display: flex;
      flex-wrap: nowrap;
      align-items: flex-start;
      gap: 12px;
      margin: 0 0 16px;
    }

    .nmhl-roster-sort {
      position: relative;
      display: inline-flex;
      flex: 0 1 auto;
      z-index: 20;
    }

    .nmhl-roster-stat-sort .nmhl-roster-sort-toggle,
    .nmhl-roster-stat-sort .nmhl-roster-sort-menu {
      min-width: 180px;
    }

    .nmhl-roster-sort-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      min-height: 46px;
      min-width: 240px;
      padding: 0 18px;
      border-radius: 999px;
      border: 1px solid rgba(11,46,119,0.12);
      background: linear-gradient(135deg, #ffcc5e, #f0b83b);
      color: #082052;
      cursor: pointer;
      font: inherit;
      font-weight: 900;
      box-shadow: 0 14px 26px rgba(240,184,59,0.2);
      transition: transform .2s ease, box-shadow .2s ease;
    }

    .nmhl-roster-sort-toggle:hover {
      transform: translateY(-2px);
      box-shadow: 0 18px 32px rgba(240,184,59,0.26);
    }

    .nmhl-roster-sort-toggle::after {
      content: "";
      width: 9px;
      height: 9px;
      border-right: 2px solid currentColor;
      border-bottom: 2px solid currentColor;
      transform: rotate(45deg) translateY(-2px);
      transition: transform .2s ease;
      flex: 0 0 auto;
    }

    .nmhl-roster-sort.open .nmhl-roster-sort-toggle::after {
      transform: rotate(225deg) translateY(-2px);
    }

    .nmhl-roster-sort-menu {
      position: absolute;
      top: calc(100% + 10px);
      left: 0;
      min-width: 240px;
      display: grid;
      gap: 8px;
      padding: 10px;
      border-radius: 18px;
      border: 1px solid rgba(11,46,119,0.12);
      background: #ffffff;
      box-shadow: 0 18px 36px rgba(8,31,80,0.18);
      opacity: 0;
      visibility: hidden;
      transform: translateY(8px);
      transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
    }

    .nmhl-roster-sort.open .nmhl-roster-sort-menu {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .nmhl-roster-sort-button {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      min-height: 40px;
      width: 100%;
      padding: 0 14px;
      border-radius: 12px;
      border: 1px solid transparent;
      background: #ffffff;
      color: #0c2d75;
      cursor: pointer;
      font: inherit;
      font-weight: 800;
      text-align: left;
      transition: background .2s ease, border-color .2s ease, color .2s ease;
    }

    .nmhl-roster-sort-button:hover,
    .nmhl-roster-sort-button:focus-visible {
      background: rgba(11,46,119,0.06);
      border-color: rgba(11,46,119,0.1);
    }

    .nmhl-roster-sort-button.is-active {
      color: #082052;
      background: rgba(240,184,59,0.22);
      border-color: rgba(240,184,59,0.4);
    }

    .nmhl-roster-table-wrap {
      overflow: auto;
      border-radius: 20px;
      border: 1px solid rgba(9,40,103,0.08);
      background: #fff;
      min-height: 280px;
    }

    .nmhl-roster-table {
      width: 100%;
      min-width: 760px;
      border-collapse: collapse;
      font-size: 0.96rem;
    }

    .nmhl-roster-table thead {
      background: linear-gradient(180deg, #123a8f, #0c2d75);
      color: #fff;
    }

    .nmhl-roster-table th,
    .nmhl-roster-table td {
      padding: 12px 14px;
      text-align: left;
      border-bottom: 1px solid rgba(9,40,103,0.08);
      white-space: nowrap;
    }

    .nmhl-roster-table tbody tr:nth-child(even) {
      background: rgba(11,46,119,0.03);
    }

    .nmhl-roster-table tbody tr:hover {
      background: rgba(31,92,197,0.08);
    }

    .nmhl-roster-table td[colspan] {
      white-space: normal;
      line-height: 1.6;
      color: #10367e;
    }

    .nmhl-roster-table td:nth-child(3) {
      text-transform: lowercase;
      color: #0f3f96;
      font-weight: 800;
    }

    .nmhl-roster-loading {
      min-height: 280px;
      display: grid;
      place-items: center;
      margin: 0;
      padding: 24px;
      border-radius: 18px;
      background: rgba(11,46,119,0.05);
      color: #10367e;
      line-height: 1.6;
      font-weight: 800;
      text-align: center;
    }

    .nmhl-roster-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-top: 16px;
      flex-wrap: wrap;
    }

    .nmhl-roster-help {
      color: #10367e;
      line-height: 1.6;
      flex: 1 1 320px;
    }

    .nmhl-roster-help a {
      color: #0f3f96;
      font-weight: 800;
      text-decoration: underline;
    }

    .nmhl-roster-help code {
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
      font-size: 0.92em;
    }

    @media (max-width: 900px) {
      .site-header {
        position: sticky;
      }

      .header-inner {
        align-items: center;
        flex-wrap: wrap;
        padding: 10px 0;
      }

      .brand {
        max-width: calc(100% - 58px);
      }

      .logo-slot {
        width: 58px;
        height: 58px;
        border-radius: 14px;
      }

      .brand-text .brand-title {
        font-size: clamp(15px, 4vw, 20px);
      }

      .brand-text p {
        font-size: 11px;
      }

      .nav-toggle {
        display: inline-flex;
      }

      .main-nav {
        width: 100%;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height .28s ease, opacity .22s ease;
      }

      .main-nav.active {
        max-height: min(80vh, 680px);
        opacity: 1;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-bottom: 4px;
      }

      .menu {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
        gap: 8px;
        padding: 10px 0 4px;
        white-space: normal;
      }

      .menu > li > a,
      .menu > li > button {
        width: 100%;
        min-height: 46px;
        justify-content: space-between;
        background: rgba(255,255,255,.045);
        border: 1px solid rgba(255,255,255,.08);
        font-size: 15px;
        padding: 12px 14px;
      }

      .submenu {
        position: static;
        min-width: auto;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        margin-top: 8px;
        padding: 8px;
        border-radius: 14px;
        background: rgba(255,255,255,0.045);
      }

      .has-submenu.open .submenu {
        display: block;
      }

      .submenu li a {
        padding: 12px 14px;
      }

      .footer-block {
        min-height: auto;
      }
    }

    @media (max-width: 700px) {
      .nmhl-roster-card {
        padding: 20px;
      }

      .nmhl-roster-button,
      .nmhl-roster-sort-row,
      .nmhl-roster-sort,
      .nmhl-roster-sort-toggle,
      .nmhl-roster-sort-menu {
        width: 100%;
        min-width: 0;
      }

      .nmhl-roster-sort-menu {
        min-width: 100%;
      }

      .nmhl-roster-table {
        min-width: 680px;
      }
    }

    @media (max-width: 640px) {
      .container {
        width: min(100% - 20px, 1280px);
      }

      main {
        padding: 20px 0 34px;
      }

      .header-inner {
        gap: 10px;
      }

      .logo-slot {
        width: 52px;
        height: 52px;
        border-radius: 12px;
      }

      .brand {
        gap: 10px;
      }

      .brand-text .brand-title {
        line-height: 1.15;
      }

      .brand-text p {
        display: block;
        margin-top: 3px;
        font-size: 10px;
        line-height: 1.25;
      }

      .nav-toggle {
        width: 42px;
        height: 42px;
      }

      .footer-inner {
        grid-template-columns: 1fr;
        border-radius: 20px;
        padding: 16px;
        gap: 16px;
      }

      .footer-block {
        border-radius: 18px;
        padding: 18px;
        gap: 16px;
        text-align: center;
      }

      .footer-title h3 {
        text-align: center;
      }

      .support-brand {
        flex-direction: column;
        gap: 14px;
        text-align: center;
      }

      .support-logo-slot {
        width: 120px;
        height: 120px;
        border-radius: 22px;
      }

      .support-copy strong {
        font-size: 1.1rem;
        text-align: center;
      }

      .socials {
        grid-template-columns: 1fr;
      }

      .social-link {
        min-height: 58px;
        padding: 10px 12px;
        justify-content: center;
      }
    }


    /* NMHL roster block — visual style synced with table.html */
    .site-footer {
      padding: 44px 0 40px;
    }

    .nmhl-roster-section {
      padding: 28px 0 50px;
    }

    .nmhl-roster-section > .container {
      margin: 0 auto;
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 28px;
      background:
        linear-gradient(135deg, rgba(14, 34, 62, 0.82), rgba(8, 17, 34, 0.94)),
        rgba(255,255,255,0.03);
      box-shadow: var(--shadow);
      padding: 30px clamp(18px, 3vw, 34px);
      overflow: hidden;
    }

    .nmhl-roster-head {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 20px;
    }

    .nmhl-roster-puck {
      width: 48px;
      height: 48px;
      object-fit: contain;
      display: block;
      flex: 0 0 48px;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
    }

    .nmhl-roster-head h1 {
      margin: 0;
      font-size: clamp(28px, 4vw, 46px);
      line-height: 1.08;
      font-weight: 900;
      letter-spacing: 0;
      color: var(--text);
    }

    .nmhl-roster-card {
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 22px;
      background: rgba(255,255,255,0.045);
      padding: 18px;
      backdrop-filter: blur(12px);
      color: var(--text);
      box-shadow: none;
      margin-bottom: 0;
    }

    .nmhl-roster-top {
      display: flex;
      gap: 12px;
      align-items: center;
      flex-wrap: wrap;
      margin-bottom: 16px;
    }

    .nmhl-roster-title h2 {
      margin: 0;
      font-size: clamp(22px, 3vw, 32px);
      line-height: 1.1;
      color: var(--text);
      font-weight: 900;
    }

    .nmhl-roster-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      min-height: 46px;
      padding: 0 18px;
      border-radius: 14px;
      border: 1px solid transparent;
      cursor: pointer;
      transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
      font: inherit;
      font-weight: 800;
      letter-spacing: 0.01em;
      color: #04111f;
      background: linear-gradient(135deg, var(--accent), #66d4ff);
      box-shadow: 0 14px 28px rgba(75,183,255,0.22);
    }

    .nmhl-roster-button:hover:not(:disabled) {
      transform: translateY(-2px);
      box-shadow: 0 10px 24px rgba(0,0,0,.22);
      border-color: rgba(137,240,255,.34);
    }

    .nmhl-roster-button:disabled {
      opacity: .65;
      cursor: wait;
      transform: none;
    }

    .nmhl-roster-meta {
      margin-bottom: 18px;
      padding: 12px;
      border-radius: 16px;
      background: rgba(15, 31, 54, 0.62);
      border: 1px solid rgba(255,255,255,0.1);
      color: var(--text);
      font-weight: 800;
      line-height: 1.55;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }

    .nmhl-roster-meta-main {
      min-width: 220px;
      flex: 1 1 auto;
    }

    .nmhl-roster-updated-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 34px;
      padding: 7px 12px;
      border-radius: 999px;
      border: 1px solid rgba(91, 200, 250, 0.28);
      background: rgba(91, 200, 250, 0.12);
      color: #d8f6ff;
      font-size: 13px;
      font-weight: 900;
      white-space: nowrap;
    }

    .nmhl-roster-updated-badge span {
      color: var(--muted);
      font-weight: 700;
    }

    .nmhl-roster-sort {
      position: relative;
      display: inline-flex;
      flex: 0 1 auto;
      margin: 0;
      z-index: 20;
    }

    .nmhl-roster-sort.open {
      z-index: 120;
    }

    .nmhl-roster-sort-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      min-height: 44px;
      min-width: 240px;
      padding: 0 18px;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(255,255,255,0.07);
      color: var(--text);
      cursor: pointer;
      font: inherit;
      font-weight: 800;
      box-shadow: none;
      transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
    }

    .nmhl-roster-sort-toggle:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 22px rgba(0,0,0,0.18);
      border-color: rgba(137,240,255,.34);
      background: rgba(255,255,255,0.09);
    }

    .nmhl-roster-sort-toggle::after {
      content: "";
      width: 9px;
      height: 9px;
      border-right: 2px solid currentColor;
      border-bottom: 2px solid currentColor;
      transform: rotate(45deg) translateY(-2px);
      transition: transform .2s ease;
      flex: 0 0 auto;
    }

    .nmhl-roster-sort.open .nmhl-roster-sort-toggle::after {
      transform: rotate(225deg) translateY(-2px);
    }

    .nmhl-roster-sort-menu {
      position: absolute;
      top: calc(100% + 10px);
      left: 0;
      min-width: 240px;
      display: grid;
      gap: 8px;
      padding: 10px;
      border-radius: 18px;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(7, 16, 31, 0.97);
      backdrop-filter: blur(16px);
      box-shadow: var(--shadow);
      opacity: 0;
      visibility: hidden;
      transform: translateY(8px);
      transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
    }

    .nmhl-roster-sort.open .nmhl-roster-sort-menu {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .nmhl-roster-sort-button {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      min-height: 40px;
      width: 100%;
      padding: 0 14px;
      border-radius: 12px;
      border: 1px solid transparent;
      background: transparent;
      color: var(--muted);
      cursor: pointer;
      font: inherit;
      font-weight: 800;
      text-align: left;
      transition: background .2s ease, border-color .2s ease, color .2s ease;
    }

    .nmhl-roster-sort-button:hover,
    .nmhl-roster-sort-button:focus-visible {
      background: rgba(255,255,255,0.08);
      border-color: rgba(255,255,255,0.1);
      color: var(--text);
    }

    .nmhl-roster-sort-button.is-active {
      color: #04111f;
      background: linear-gradient(135deg, var(--accent), #66d4ff);
      border-color: transparent;
      box-shadow: 0 12px 22px rgba(75,183,255,0.18);
    }

    .nmhl-roster-table-wrap {
      overflow: auto;
      border-radius: 18px;
      border: 1px solid rgba(255,255,255,0.1);
      background: rgba(7, 17, 31, 0.58);
      min-height: 280px;
    }

    .nmhl-roster-group + .nmhl-roster-group {
      border-top: 1px solid rgba(255,255,255,0.1);
    }

    .nmhl-roster-group-title {
      margin: 0;
      padding: 14px 16px;
      color: var(--text);
      font-size: 15px;
      font-weight: 900;
      letter-spacing: 0;
    }

    .nmhl-roster-loading {
      min-height: 280px;
      display: grid;
      place-items: center;
      padding: 24px;
      margin: 0;
      border-radius: 0;
      background: transparent;
      color: var(--muted);
      font-weight: 800;
      text-align: center;
    }

    .nmhl-roster-table {
      --sticky-number-width: 58px;
      --sticky-name-width: clamp(230px, 30vw, 340px);
      width: 100%;
      min-width: 760px;
      border-collapse: separate;
      border-spacing: 0;
      font-size: 0.96rem;
      color: var(--text);
      background: transparent;
    }

    .nmhl-roster-table thead {
      background: transparent;
      color: var(--accent-2);
    }

    .nmhl-roster-table th,
    .nmhl-roster-table td {
      padding: 13px 14px;
      text-align: left;
      border-bottom: 1px solid rgba(255,255,255,0.08);
      vertical-align: middle;
      white-space: nowrap;
    }

    .nmhl-roster-table th {
      color: var(--accent-2);
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: .04em;
      background: rgba(255,255,255,0.05);
      font-weight: 900;
    }

    .nmhl-roster-table tr:last-child td {
      border-bottom: none;
    }

    .nmhl-roster-table tbody tr:nth-child(even) {
      background: transparent;
    }

    .nmhl-roster-table tbody tr:hover {
      background: rgba(255,255,255,0.055);
    }

    .nmhl-roster-table tbody tr.nmhl-roster-playoff-row {
      background: rgba(75,183,255,0.07);
    }

    .nmhl-roster-table tbody tr.nmhl-roster-playoff-row td:nth-child(2) {
      color: #ffffff;
      font-weight: 400;
      letter-spacing: 0;
    }

    .nmhl-roster-playoff-align {
      display: inline-grid;
      grid-template-areas: "label";
    }

    .nmhl-roster-playoff-name-measure {
      grid-area: label;
      visibility: hidden;
      font-weight: 800;
      white-space: nowrap;
    }

    .nmhl-roster-playoff-label {
      grid-area: label;
      justify-self: end;
      display: inline-flex;
      align-items: center;
      white-space: nowrap;
    }

    .nmhl-roster-playoff-label-arrow {
      margin-right: 2px;
    }

    .nmhl-roster-table th:first-child,
    .nmhl-roster-table td:first-child {
      position: sticky;
      left: 0;
      z-index: 3;
      width: var(--sticky-number-width);
      min-width: var(--sticky-number-width);
      max-width: var(--sticky-number-width);
      text-align: center;
    }

    .nmhl-roster-table th:nth-child(2),
    .nmhl-roster-table td:nth-child(2) {
      position: sticky;
      left: var(--sticky-number-width);
      z-index: 3;
      width: var(--sticky-name-width);
      min-width: var(--sticky-name-width);
      max-width: var(--sticky-name-width);
      white-space: normal;
      box-shadow: 10px 0 18px -14px rgba(0,0,0,0.65);
    }

    .nmhl-roster-table thead th:first-child,
    .nmhl-roster-table thead th:nth-child(2) {
      z-index: 5;
      background: rgba(255,255,255,0.07);
    }

    .nmhl-roster-table tbody td:first-child,
    .nmhl-roster-table tbody td:nth-child(2) {
      background: rgba(7, 17, 31, 0.96);
    }

    .nmhl-roster-table tbody tr:hover td:first-child,
    .nmhl-roster-table tbody tr:hover td:nth-child(2) {
      background: rgba(12, 29, 52, 0.98);
    }

    .nmhl-roster-table td:first-child {
      color: var(--muted);
      font-weight: 800;
    }

    .nmhl-roster-table td:nth-child(2) {
      font-weight: 800;
      line-height: 1.35;
    }

    .nmhl-roster-table td:nth-child(3),
    .nmhl-roster-table td:last-child {
      color: var(--accent-2);
      font-weight: 900;
      text-transform: none;
    }

    .nmhl-roster-table td[colspan] {
      position: static;
      left: auto;
      z-index: auto;
      width: auto;
      min-width: 0;
      max-width: none;
      white-space: normal;
      box-shadow: none;
      text-align: left;
      line-height: 1.6;
      color: var(--muted);
      background: rgba(255,255,255,0.045);
    }

    .nmhl-roster-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-top: 14px;
      flex-wrap: wrap;
    }

    .nmhl-roster-legend {
      flex: 1 1 100%;
      color: #cfe0f2;
      font-size: 13px;
      line-height: 1.6;
      padding: 12px 14px;
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 10px;
      background: rgba(255,255,255,0.04);
    }

    .nmhl-roster-legend-key {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 30px;
      min-height: 22px;
      margin: 0 3px 3px 0;
      padding: 2px 7px;
      color: var(--muted);
      font-weight: 800;
      line-height: 1;
      border-radius: 7px;
      background: rgba(7, 17, 31, 0.96);
      border: 1px solid rgba(255,255,255,.08);
    }

    .nmhl-roster-help {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.5;
      flex: 1 1 320px;
    }

    .nmhl-roster-help a {
      color: var(--accent-2);
      font-weight: 800;
      text-decoration: none;
    }

    .nmhl-roster-help a:hover {
      text-decoration: underline;
    }

    .nmhl-roster-help code {
      color: #d7ebff;
      background: rgba(0,0,0,.22);
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 8px;
      padding: 2px 6px;
    }

    @media (max-width: 1080px) {
      .footer-inner {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 720px) {
      .nmhl-roster-section {
        padding: 20px 0 34px;
      }

      .nmhl-roster-section > .container {
        margin-bottom: 0;
        padding: 22px 14px;
        border-radius: 22px;
      }

      .nmhl-roster-head {
        margin-bottom: 16px;
      }

      .nmhl-roster-head h1 {
        font-size: clamp(28px, 9vw, 36px);
      }

      .nmhl-roster-card {
        padding: 14px;
        border-radius: 18px;
      }

      .nmhl-roster-top {
        display: block;
      }

      .nmhl-roster-sort-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
      }

      .nmhl-roster-button,
      .nmhl-roster-sort,
      .nmhl-roster-sort-toggle,
      .nmhl-roster-sort-menu {
        width: 100%;
        min-width: 0;
      }

      .nmhl-roster-button {
        margin-top: 14px;
      }

      .nmhl-roster-sort-menu {
        min-width: 100%;
      }

      .nmhl-roster-meta {
        padding: 11px;
        border-radius: 14px;
        font-size: 14px;
      }

      .nmhl-roster-footer {
        align-items: stretch;
      }

      .nmhl-roster-help {
        flex-basis: 100%;
        font-size: 12px;
      }
    }

    @media (max-width: 560px) {
      .nmhl-roster-table {
        --sticky-number-width: 42px;
        --sticky-name-width: 164px;
        min-width: 620px;
        font-size: 12px;
      }

      .nmhl-roster-table th,
      .nmhl-roster-table td {
        padding: 8px 7px;
        line-height: 1.2;
      }

      .nmhl-roster-table th {
        font-size: 10px;
        letter-spacing: 0;
      }

      .nmhl-roster-table td:first-child {
        font-size: 11px;
      }

      .nmhl-roster-table td:nth-child(2) {
        line-height: 1.2;
      }

      .nmhl-roster-table td:nth-child(3),
      .nmhl-roster-table td:last-child {
        font-weight: 800;
      }

      .nmhl-roster-group-title {
        padding: 10px 12px;
        font-size: 13px;
      }
    }

    .roster-league-tabs {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: center;
      margin: 0 0 14px;
      padding: 0 0 14px;
      border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .roster-season-control,
    .nmhl-season-select-label {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 44px;
      padding: 0;
      color: var(--muted);
      font: inherit;
      font-weight: 800;
      line-height: 1.3;
    }

    .roster-season-control select,
    .nmhl-season-select {
      min-width: 92px;
      min-height: 44px;
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 14px;
      appearance: none;
      -webkit-appearance: none;
      background-color: rgba(255,255,255,0.07);
      background-image: linear-gradient(45deg, transparent 50%, #aac1dc 50%), linear-gradient(135deg, #aac1dc 50%, transparent 50%);
      background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
      background-size: 7px 7px, 7px 7px;
      background-repeat: no-repeat;
      color: var(--text);
      color-scheme: dark;
      cursor: pointer;
      padding: 0 42px 0 14px;
      font: inherit;
      font-weight: 900;
      outline: none;
      transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
    }

    .roster-season-control select:hover,
    .roster-season-control select:focus,
    .nmhl-season-select:hover,
    .nmhl-season-select:focus {
      box-shadow: 0 10px 22px rgba(0,0,0,0.18);
      border-color: rgba(137,240,255,.34);
      background-color: rgba(255,255,255,0.09);
    }

    .roster-season-control select option,
    .nmhl-season-select option {
      color: #eef6ff;
      background: #07101f;
    }

    .roster-league-tab {
      min-height: 44px;
      min-width: 74px;
      padding: 0 18px;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(255,255,255,0.07);
      color: var(--text);
      cursor: pointer;
      font: inherit;
      font-weight: 900;
      transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
    }

    .roster-league-tab:hover:not(:disabled),
    .roster-league-tab:focus-visible:not(:disabled) {
      transform: translateY(-2px);
      border-color: rgba(137,240,255,.34);
      background: rgba(255,255,255,0.1);
    }

    .roster-league-tab.is-active {
      color: #04111f;
      background: linear-gradient(135deg, var(--accent), #66d4ff);
      border-color: transparent;
      box-shadow: 0 12px 22px rgba(75,183,255,0.18);
    }

    .roster-league-tab:disabled,
    .roster-league-tab.is-active:disabled {
      cursor: not-allowed;
      opacity: 0.45;
      color: rgba(232, 241, 255, 0.58);
      background: rgba(255,255,255,0.04);
      border-color: rgba(255,255,255,0.08);
      box-shadow: none;
      transform: none;
    }


    .nmhl-roster-title p {
      margin-top: 8px;
      color: var(--muted);
      line-height: 1.55;
      font-size: 15px;
      font-weight: 700;
    }

    .hk-native-select {
      position: absolute !important;
      width: 1px !important;
      height: 1px !important;
      opacity: 0 !important;
      pointer-events: none !important;
      overflow: hidden !important;
      clip-path: inset(50%) !important;
    }

    .hk-custom-select {
      position: relative;
      display: inline-flex;
      min-width: var(--hk-select-min, 92px);
      vertical-align: middle;
      z-index: 35;
    }

    .hk-custom-select.is-open {
      z-index: 95;
    }

    .roster-season-control .hk-custom-select {
      --hk-select-min: 92px;
    }

    .hk-custom-select-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      width: 100%;
      min-height: 44px;
      padding: 0 18px;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(255,255,255,0.07);
      color: var(--text);
      cursor: pointer;
      font: inherit;
      font-weight: 800;
      text-align: left;
      transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
    }

    .hk-custom-select-toggle:hover,
    .hk-custom-select-toggle:focus-visible {
      box-shadow: 0 10px 22px rgba(0,0,0,0.18);
      border-color: rgba(137,240,255,.34);
      background: rgba(255,255,255,0.09);
      outline: none;
    }

    .hk-custom-select-toggle::after {
      content: "";
      width: 9px;
      height: 9px;
      border-right: 2px solid currentColor;
      border-bottom: 2px solid currentColor;
      transform: rotate(45deg) translateY(-2px);
      transition: transform .2s ease;
      flex: 0 0 auto;
    }

    .hk-custom-select.is-open .hk-custom-select-toggle::after {
      transform: rotate(225deg) translateY(-2px);
    }

    .hk-custom-select-menu {
      position: absolute;
      top: calc(100% + 10px);
      left: 0;
      min-width: 100%;
      display: grid;
      gap: 8px;
      padding: 10px;
      border-radius: 18px;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(7, 16, 31, 0.97);
      backdrop-filter: blur(16px);
      box-shadow: var(--shadow);
      opacity: 0;
      visibility: hidden;
      transform: translateY(8px);
      transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
      max-height: 320px;
      overflow: auto;
    }

    .hk-custom-select.is-open .hk-custom-select-menu {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .hk-custom-select-option {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      min-height: 40px;
      width: 100%;
      padding: 0 14px;
      border-radius: 12px;
      border: 1px solid transparent;
      background: transparent;
      color: var(--muted);
      cursor: pointer;
      font: inherit;
      font-weight: 800;
      text-align: left;
      transition: background .2s ease, border-color .2s ease, color .2s ease;
    }

    .hk-custom-select-option:hover,
    .hk-custom-select-option:focus-visible {
      background: rgba(255,255,255,0.08);
      border-color: rgba(255,255,255,0.1);
      color: var(--text);
      outline: none;
    }

    .hk-custom-select-option.is-active {
      color: #04111f;
      background: linear-gradient(135deg, var(--accent), #66d4ff);
      border-color: transparent;
      box-shadow: 0 12px 22px rgba(75,183,255,0.18);
    }

    .hk-custom-select.is-disabled {
      opacity: .6;
      pointer-events: none;
    }

    @media (max-width: 700px) {
      .hk-custom-select {
        width: 100%;
        min-width: 0;
      }
    }

    .nmhl-roster-head h1 {
      display: flex;
      align-items: center;
      gap: 14px;
      flex-wrap: nowrap;
      white-space: nowrap;
    }

    .roster-page-logo {
      width: clamp(42px, 5vw, 62px);
      height: clamp(42px, 5vw, 62px);
      flex: 0 0 auto;
      object-fit: contain;
      padding: 6px;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,.16);
      background: rgba(255,255,255,.1);
      box-shadow: 0 14px 30px rgba(0,0,0,.18);
    }

    .roster-page-title-main,
    .roster-page-team {
      display: inline-flex;
      align-items: center;
      min-width: 0;
      font-size: 1em;
    }

    .roster-page-team {
      color: var(--accent-2);
      font-weight: 900;
      line-height: 1.08;
    }

    @media (max-width: 560px) {
      .nmhl-roster-head h1 {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        grid-template-rows: auto;
        column-gap: 10px;
        row-gap: 2px;
        width: 100%;
        white-space: normal;
      }

      .roster-page-logo {
        width: 42px;
        height: 42px;
        padding: 4px;
        border-radius: 12px;
        grid-row: 1;
        align-self: center;
      }

      .roster-page-title-main,
      .roster-page-team {
        display: block;
        min-width: 0;
        font-size: clamp(21px, 6.1vw, 27px);
        line-height: 1.02;
        overflow-wrap: anywhere;
      }

      .roster-page-title-main {
        grid-column: 2;
        grid-row: 1;
      }

      .roster-page-team {
        grid-column: 2;
        grid-row: 1;
      }
    }
