/* ============================================================
   VARIABLES
   ============================================================ */

:root {
  --bg: #090b0f;
  --panel: #11151b;
  --panel2: #171c23;
  --line: #2a3039;
  --text: #f4f6f8;
  --muted: #949ca7;
  --accent: #ff6a00;
  --accent2: #ff9b54;
  --green: #39d98a;
  --red: #ff5c6c;
  --shadow: 0 24px 70px rgba(0,0,0,.28);
}


/* ============================================================
   GENERAL
   ============================================================ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background:
    radial-gradient(
      circle at 75% -10%,
      #202632 0,
      var(--bg) 35%
    );

  color: var(--text);

  font-family:
    Inter,
    Arial,
    sans-serif;
}

button,
select {
  font: inherit;
}

.hidden {
  display: none !important;
}


/* ============================================================
   HEADER
   ============================================================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;

  min-height: 122px;

  padding: 7px 5vw;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 34px;

  background: rgba(9,11,15,.96);

  border-bottom:
    1px solid rgba(255,255,255,.08);

  backdrop-filter: blur(18px);
}


/* ============================================================
   JBM SPORTS BRAND
   ============================================================ */

.brand-wrap {
  display: flex;
  align-items: center;

  gap: 25px;

  min-width: 0;

  cursor: pointer;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;
}

.jbm-logo {
  display: block;

  width: auto;
  height: 112px;

  max-width: 315px;

  object-fit: contain;

  transition: opacity .15s ease;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding-left: 25px;

  border-left:
    1px solid rgba(255,255,255,.22);
}

.brand-title {
  color: var(--accent);

  font-size: 29px;
  line-height: 1;

  font-weight: 950;

  letter-spacing: .055em;

  white-space: nowrap;
}

.brand-tagline {
  margin-top: 10px;

  color: #d0d5dc;

  font-size: 17px;
  line-height: 1.2;

  font-weight: 700;

  letter-spacing: .015em;

  white-space: nowrap;
}


/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  display: flex;
  align-items: center;

  gap: 8px;
}

.nav-link {
  border: 0;

  color: #abb2bc;

  background: transparent;

  padding: 13px 15px;

  border-radius: 8px;

  cursor: pointer;

  font-size: 13px;

  font-weight: 850;

  letter-spacing: .08em;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;

  background: #1b2028;
}


/* ============================================================
   MAIN
   ============================================================ */

main {
  width:
    min(
      1500px,
      94vw
    );

  margin: 0 auto;
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 390px;

  padding: 82px 0 54px;

  display: grid;

  grid-template-columns:
    1.5fr .7fr;

  gap: 60px;

  align-items: center;
}

.eyebrow {
  color: var(--accent);

  font-size: 12px;

  letter-spacing: .2em;

  font-weight: 900;
}

h1 {
  margin: 12px 0 18px;

  font-size:
    clamp(
      46px,
      7vw,
      82px
    );

  line-height: .92;

  letter-spacing: -.055em;

  text-transform: uppercase;
}

h1 span {
  color: transparent;

  -webkit-text-stroke:
    1px #929aa5;
}

.hero p {
  max-width: 670px;

  color: #adb4bd;

  line-height: 1.7;

  font-size: 17px;
}


/* ============================================================
   LEAGUE SELECTOR
   ============================================================ */

.league-selector-card {
  background:
    linear-gradient(
      160deg,
      #1b2028,
      #0e1116
    );

  border:
    1px solid #303641;

  border-radius: 18px;

  padding: 24px;

  box-shadow: var(--shadow);
}

.league-selector-card label {
  display: block;

  color: var(--muted);

  font-size: 11px;

  letter-spacing: .18em;

  font-weight: 900;

  margin-bottom: 10px;
}

select {
  width: 100%;

  padding: 15px 14px;

  background: #080a0d;

  color: #ffffff;

  border:
    1px solid #343b45;

  border-radius: 10px;

  font-weight: 800;
}

.league-meta {
  margin-top: 14px;

  color: var(--muted);

  font-size: 13px;

  line-height: 1.6;
}


/* ============================================================
   STATUS
   ============================================================ */

.status-card {
  margin-bottom: 30px;

  padding: 20px;

  border:
    1px solid #29303a;

  border-radius: 14px;

  background: #11151b;

  color: #c7cbd1;
}

.status-card.error {
  border-color: #65323a;

  color: #ff8b96;
}


/* ============================================================
   SECTION HEADINGS
   ============================================================ */

.section-head {
  margin: 31px 0 19px;

  display: flex;

  align-items: end;

  justify-content: space-between;
}

.section-head h2 {
  margin: 5px 0 0;

  font-size: 31px;

  letter-spacing: -.03em;
}

.section-head.compact h2 {
  font-size: 25px;
}

.kicker {
  color: var(--accent);

  font-size: 14px;

  letter-spacing: .17em;

  font-weight: 950;
}


/* ============================================================
   GAME GRID
   ============================================================ */

.game-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0,1fr)
    );

  gap: 16px;
}

.live-card {
  position: relative;

  overflow: hidden;

  padding: 22px;

  border:
    1px solid #343b45;

  border-radius: 18px;

  background:
    linear-gradient(
      140deg,
      #1a2028,
      #0d1015
    );

  box-shadow: var(--shadow);

  cursor: pointer;
}

.live-card:before {
  content: '';

  position: absolute;

  inset: 0 auto 0 0;

  width: 4px;

  background: var(--red);
}

.live-badge {
  display: inline-flex;

  align-items: center;

  gap: 7px;

  padding: 6px 9px;

  border-radius: 999px;

  background: #3a1820;

  color: #ff8290;

  font-size: 11px;

  font-weight: 900;

  letter-spacing: .12em;
}

.live-dot {
  width: 7px;

  height: 7px;

  border-radius: 50%;

  background: #ff5c6c;

  box-shadow:
    0 0 12px #ff5c6c;
}

.score-row {
  display: grid;

  grid-template-columns:
    1fr auto;

  gap: 10px;

  margin-top: 17px;

  align-items: center;

  font-size: 22px;

  font-weight: 900;
}

.score {
  font-size: 34px;

  letter-spacing: -.04em;
}

.game-sub {
  margin-top: 14px;

  display: flex;

  justify-content: space-between;

  gap: 10px;

  color: var(--muted);

  font-size: 13px;
}


/* ============================================================
   DASHBOARD
   ============================================================ */

.dashboard-grid {
  margin-top: 42px;

  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 28px;
}

.dashboard-grid.lower {
  margin-bottom: 50px;

  align-items: start;
}

.stack {
  display: flex;

  flex-direction: column;

  gap: 11px;
}

.stack.wide {
  margin-bottom: 50px;
}


/* ============================================================
   GAME ROWS
   ============================================================ */

.game-row {
  display: grid;

  grid-template-columns:
    125px 1fr auto;

  gap: 15px;

  align-items: center;

  padding: 18px 17px;

  background: var(--panel);

  border:
    1px solid #252b33;

  border-radius: 12px;

  cursor: pointer;

  transition: .18s ease;
}

.game-row:hover {
  transform:
    translateY(-1px);

  border-color: #444c58;
}

.game-date {
  color: #b3bac4;

  font-size: 14px;

  line-height: 1.5;

  font-weight: 700;
}

.game-teams {
  font-size: 15px;

  font-weight: 900;

  line-height: 1.45;
}

.game-result {
  font-weight: 950;

  font-size: 20px;
}

.status-pill {
  display: inline-block;

  margin-top: 5px;

  color: #8f98a4;

  font-size: 11px;

  letter-spacing: .08em;
}

.live-text {
  color: var(--red);

  font-weight: 900;
}


/* ============================================================
   TABLES
   ============================================================ */

.table-card {
  overflow: hidden;

  background: var(--panel);

  border:
    1px solid #252b33;

  border-radius: 14px;
}

table {
  width: 100%;

  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;

  border-bottom:
    1px solid #232932;

  text-align: right;

  font-size: 13px;
}

th {
  color: #8f98a4;

  font-size: 10px;

  letter-spacing: .12em;
}

th:nth-child(2),
td:nth-child(2) {
  text-align: left;
}

tr:last-child td {
  border-bottom: 0;
}

.rank {
  width: 40px;

  color: #7d8793;
}

.team-cell {
  color: #ffffff;

  font-weight: 900;
}


/* ============================================================
   LEADERS
   ============================================================ */

.leaders-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0,1fr)
    );

  gap: 10px;
}

.leaders-grid.full {
  grid-template-columns:
    repeat(
      3,
      minmax(0,1fr)
    );

  margin-bottom: 50px;
}

.leader-card {
  padding: 17px;

  background: var(--panel);

  border:
    1px solid #252b33;

  border-radius: 14px;
}

.leader-title {
  margin-bottom: 11px;

  color: var(--accent);

  font-size: 11px;

  font-weight: 900;

  letter-spacing: .15em;
}

.leader-row {
  display: grid;

  grid-template-columns:
    24px 1fr auto;

  gap: 8px;

  align-items: center;

  padding: 8px 0;

  border-top:
    1px solid #222831;
}

.leader-row:first-of-type {
  border-top: 0;
}

.leader-pos {
  color: #747d88;

  font-size: 12px;
}

.leader-name {
  min-width: 0;

  overflow: hidden;

  white-space: nowrap;

  text-overflow: ellipsis;

  font-size: 13px;

  font-weight: 850;
}

.leader-team {
  margin-top: 2px;

  color: #737d89;

  font-size: 10px;
}

.leader-value {
  font-size: 19px;

  font-weight: 950;
}

.empty {
  padding: 22px;

  border:
    1px dashed #343b45;

  border-radius: 14px;

  color: #8f98a4;

  text-align: center;

  font-size: 15px;
}


/* ============================================================
   BACK BUTTON
   ============================================================ */

.back-button {
  margin: 34px 0 22px;

  padding: 12px 16px;

  border:
    1px solid #343b45;

  border-radius: 10px;

  background: #11151b;

  color: #dfe3e8;

  cursor: pointer;

  font-size: 12px;

  font-weight: 900;

  letter-spacing: .08em;
}

.back-button:hover {
  border-color: #596270;

  background: #181d24;
}


/* ============================================================
   CURRENT LEAGUE
   ============================================================ */

.league-brand-container {
  margin-top: 8px;
}

.league-brand-banner {
  padding: 24px 26px;

  display: flex;

  align-items: center;

  gap: 22px;

  background:
    linear-gradient(
      135deg,
      #171c23,
      #0d1015
    );

  border:
    1px solid #303641;

  border-radius: 18px;

  box-shadow: var(--shadow);
}

.league-brand-logo-wrap {
  width: 112px;
  height: 112px;

  flex:
    0 0 112px;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 7px;

  overflow: hidden;

  border-radius: 16px;

  background:
    rgba(255,255,255,.96);
}

.league-brand-logo {
  width: 100%;
  height: 100%;

  object-fit: contain;
}

.league-brand-logo-wrap.logo-error {
  display: none;
}

.league-brand-copy {
  min-width: 0;
}

.league-brand-eyebrow {
  margin-bottom: 7px;

  color: var(--accent);

  font-size: 11px;

  font-weight: 950;

  letter-spacing: .18em;
}

.league-brand-name {
  margin: 0;

  color: #ffffff;

  font-size:
    clamp(
      31px,
      4vw,
      46px
    );

  line-height: 1;

  font-weight: 1000;

  letter-spacing: -.035em;

  text-transform: uppercase;
}

.league-brand-meta {
  margin-top: 10px;

  color: #aab2bd;

  font-size: 14px;
}


/* ============================================================
   IMPORTANT:
   REPLACE LEAGUE "POWERED BY JBM SPORTS"
   ============================================================ */

.league-powered-by {
  margin-top: 10px;

  color: #747e8a;

  font-size: 0;

  font-weight: 900;

  letter-spacing: .14em;

  text-transform: uppercase;
}

.league-powered-by::after {
  content:
    "POWERED BY JBM SPORTS MANAGEMENT AND EVENTS";

  color: #747e8a;

  font-size: 9px;

  font-weight: 900;

  letter-spacing: .14em;

  text-transform: uppercase;
}


/* ============================================================
   GAME LEAGUE BRAND
   ============================================================ */

.game-league-brand {
  margin-top: 8px;

  padding: 20px 22px;

  display: flex;

  align-items: center;

  gap: 15px;

  background:
    linear-gradient(
      120deg,
      #171c23,
      #101318
    );

  border:
    1px solid #303641;

  border-radius: 14px;
}

.game-league-logo {
  width: 65px;

  height: 65px;

  padding: 5px;

  flex:
    0 0 65px;

  object-fit: contain;

  background: #ffffff;

  border-radius: 11px;
}

.game-league-name {
  color: #ffffff;

  font-size:
    clamp(
      25px,
      3vw,
      36px
    );

  line-height: 1.05;

  font-weight: 1000;

  letter-spacing: -.025em;

  text-transform: uppercase;
}

.game-league-meta {
  margin-top: 6px;

  color: #9da6b1;

  font-size: 13px;
}


/* ============================================================
   IMPORTANT:
   REPLACE GAME "POWERED BY JBM SPORTS"
   ============================================================ */

.game-powered-by {
  margin-top: 7px;

  color: #747e8a;

  font-size: 0;

  font-weight: 900;

  letter-spacing: .1em;

  text-transform: uppercase;
}

.game-powered-by::after {
  content:
    "POWERED BY JBM SPORTS MANAGEMENT AND EVENTS";

  color: #747e8a;

  font-size: 9px;

  font-weight: 900;

  letter-spacing: .1em;

  text-transform: uppercase;
}


/* ============================================================
   GAME HERO
   ============================================================ */

.game-hero-card {
  margin-top: 10px;

  padding: 27px 28px;

  border:
    1px solid #343b45;

  border-radius: 20px;

  background:
    linear-gradient(
      145deg,
      #1a2028,
      #0b0e12
    );

  box-shadow: var(--shadow);
}

.game-topline {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 16px;

  color: #c4cad2;

  font-size: 15px;

  line-height: 1.35;

  font-weight: 850;

  letter-spacing: .025em;

  text-transform: uppercase;
}

.game-status {
  color: #d5d9df;

  font-size: 14px;

  font-weight: 950;

  letter-spacing: .10em;
}

.game-status.is-live {
  color: var(--red);
}

.game-meta-line {
  margin-top: 8px;

  color: #aab2bd;

  font-size: 15px;

  line-height: 1.4;

  font-weight: 750;
}

.game-id-line {
  margin-top: 8px;

  color: #aab2bd;

  font-size: 14px;

  font-weight: 700;
}


/* ============================================================
   BIG SCOREBOARD
   ============================================================ */

.big-scoreboard {
  display: grid;

  grid-template-columns:
    1fr 150px 1fr;

  align-items: center;

  gap: 28px;

  padding: 37px 0 12px;
}

.big-team.right {
  text-align: right;
}

.big-team-name {
  font-size:
    clamp(
      26px,
      3vw,
      35px
    );

  font-weight: 950;

  text-transform: uppercase;

  letter-spacing: -.03em;
}

.big-score {
  margin-top: 5px;

  font-size:
    clamp(
      72px,
      9vw,
      102px
    );

  line-height: .92;

  font-weight: 1000;

  letter-spacing: -.07em;
}

.score-center {
  text-align: center;

  color: var(--accent);

  font-size: 27px;

  line-height: 1;

  font-weight: 1000;

  letter-spacing: .09em;
}

.score-center > div {
  padding: 12px 0;

  border-top:
    1px solid rgba(255,106,0,.75);

  border-bottom:
    1px solid rgba(255,106,0,.75);
}

.score-center span {
  display: block;

  margin-top: 10px;

  color: #727b87;

  font-size: 9px;

  letter-spacing: .13em;
}


/* ============================================================
   GAME PANELS
   ============================================================ */

.game-panel {
  margin-top: 18px;

  overflow: hidden;

  background: var(--panel);

  border:
    1px solid #252b33;

  border-radius: 16px;
}

.panel-title {
  padding: 15px 16px;

  border-bottom:
    1px solid #252b33;

  color: var(--accent);

  font-size: 12px;

  font-weight: 950;

  letter-spacing: .14em;
}

.table-scroll {
  overflow-x: auto;
}

.quarter-table th:first-child,
.quarter-table td:first-child,
.boxscore-table th:nth-child(2),
.boxscore-table td:nth-child(2) {
  text-align: left;
}


/* ============================================================
   BOX SCORE
   ============================================================ */

.boxscore-grid {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 18px;

  margin-bottom: 22px;
}

.boxscore-table {
  min-width: 820px;
}

.boxscore-table th:first-child,
.boxscore-table td:first-child {
  width: 42px;

  text-align: center;
}

.player-cell {
  color: #f3f5f7;

  font-weight: 850;
}

.stat-strong {
  color: #ffffff;

  font-weight: 950;
}

.totals-row td {
  border-top:
    2px solid #343b45;

  color: #dfe3e8;

  font-weight: 950;
}

.team-boxscore-name {
  padding: 16px 17px;

  border-bottom:
    1px solid #252b33;

  color: #ffffff;

  font-size: 24px;

  font-weight: 1000;

  letter-spacing: -.02em;

  text-transform: uppercase;
}


/* ============================================================
   BEST PLAYER
   ============================================================ */

.best-player-card {
  margin-top: 22px;

  margin-bottom: 50px;

  padding: 22px;

  background:
    linear-gradient(
      120deg,
      rgba(255,106,0,.10),
      #171c23 38%,
      #101318
    );

  border:
    1px solid #303641;

  border-radius: 17px;

  box-shadow: var(--shadow);
}

.best-player-kicker {
  color: var(--accent);

  font-size: 11px;

  font-weight: 950;

  letter-spacing: .17em;
}

.best-player-main {
  margin-top: 12px;

  display: flex;

  align-items: flex-end;

  justify-content: space-between;

  gap: 24px;
}

.best-player-name {
  color: #ffffff;

  font-size:
    clamp(
      22px,
      3vw,
      32px
    );

  font-weight: 1000;

  letter-spacing: -.025em;
}

.best-player-team {
  margin-top: 4px;

  color: var(--muted);

  font-size: 12px;
}

.best-player-impact {
  text-align: right;
}

.best-player-impact span {
  display: block;

  color: #747e8a;

  font-size: 9px;

  font-weight: 900;

  letter-spacing: .13em;
}

.best-player-impact strong {
  display: block;

  margin-top: 3px;

  color: #ffffff;

  font-size: 29px;

  font-weight: 1000;
}

.best-player-stats {
  margin-top: 20px;

  padding-top: 18px;

  display: grid;

  grid-template-columns:
    repeat(
      5,
      1fr
    );

  border-top:
    1px solid #2a3039;
}

.best-player-stat {
  text-align: center;

  border-right:
    1px solid #2a3039;
}

.best-player-stat:last-child {
  border-right: 0;
}

.best-player-stat strong {
  display: block;

  color: #ffffff;

  font-size: 22px;

  font-weight: 1000;
}

.best-player-stat span {
  display: block;

  margin-top: 3px;

  color: #7d8793;

  font-size: 9px;

  font-weight: 900;

  letter-spacing: .08em;
}


/* ============================================================
   FOOTER
   ============================================================ */

footer {
  margin-top: 60px;

  padding: 28px 5vw;

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 20px;

  border-top:
    1px solid #20252d;

  color: #69727e;

  font-size: 10px;

  letter-spacing: .12em;
}

.footer-brand {
  color: var(--accent);

  font-weight: 900;
}

footer span {
  color: var(--accent);
}


/* ============================================================
   TABLET
   ============================================================ */

@media(max-width:1000px) {

  .topbar {
    min-height: 105px;
  }

  .jbm-logo {
    height: 94px;

    max-width: 260px;
  }

  .brand-text {
    padding-left: 18px;
  }

  .brand-title {
    font-size: 23px;
  }

  .brand-tagline {
    font-size: 14px;
  }

  .game-topline {
    font-size: 14px;
  }

  .game-meta-line {
    font-size: 14px;
  }

}


/* ============================================================
   SMALL TABLET
   ============================================================ */

@media(max-width:800px) {

  .topbar {
    flex-direction: column;

    align-items: stretch;

    gap: 10px;

    padding-top: 8px;
    padding-bottom: 8px;
  }

  .brand-wrap {
    width: 100%;
  }

  .nav {
    width: 100%;

    overflow-x: auto;
  }

  .nav-link {
    flex:
      0 0 auto;

    padding: 9px 11px;
  }

  .hero {
    grid-template-columns:
      1fr;

    gap: 24px;

    padding-top: 50px;
  }

  .game-grid,
  .dashboard-grid,
  .leaders-grid.full {
    grid-template-columns:
      1fr;
  }

  .leaders-grid {
    grid-template-columns:
      1fr 1fr;
  }

  .game-row {
    grid-template-columns:
      110px 1fr auto;
  }

  .boxscore-grid {
    grid-template-columns:
      1fr;
  }

  .big-scoreboard {
    grid-template-columns:
      1fr 105px 1fr;

    gap: 12px;
  }

  footer {
    flex-direction: column;

    align-items: flex-start;
  }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media(max-width:520px) {

  main {
    width: 94vw;
  }

  .topbar {
    min-height: auto;
  }

  .brand-wrap {
    gap: 12px;
  }

  .jbm-logo {
    height: 76px;

    max-width: 180px;
  }

  .brand-text {
    padding-left: 12px;
  }

  .brand-title {
    font-size: 18px;

    letter-spacing: .025em;
  }

  .brand-tagline {
    margin-top: 5px;

    font-size: 11px;

    line-height: 1.25;

    letter-spacing: 0;

    white-space: normal;
  }

  .hero {
    padding-top: 38px;
  }

  .league-brand-name {
    font-size: 26px;

    line-height: 1.05;
  }

  .game-league-name {
    font-size: 24px;

    line-height: 1.05;
  }

  .kicker {
    font-size: 13px;
  }

  .section-head.compact h2 {
    font-size: 23px;
  }

  .game-date {
    font-size: 13px;

    font-weight: 750;
  }

  .game-row {
    grid-template-columns:
      1fr auto;

    padding: 16px;
  }

  .game-date {
    grid-column:
      1 / -1;
  }

  .game-teams {
    font-size: 14px;
  }

  .game-hero-card {
    padding: 19px;
  }

  .game-topline {
    font-size: 13px;
  }

  .game-status {
    font-size: 12px;
  }

  .game-meta-line {
    margin-top: 9px;

    font-size: 14px;

    line-height: 1.45;

    font-weight: 800;
  }

  .big-scoreboard {
    grid-template-columns:
      1fr 74px 1fr;

    gap: 8px;

    padding-top: 25px;
  }

  .big-team-name {
    font-size: 18px;
  }

  .big-score {
    font-size: 62px;
  }

  .score-center {
    font-size: 19px;

    letter-spacing: .04em;
  }

  .score-center > div {
    padding: 8px 0;
  }

  .score-center span {
    font-size: 7px;
  }

  .league-brand-banner {
    padding: 17px;

    gap: 13px;
  }

  .league-brand-logo-wrap {
    width: 78px;

    height: 78px;

    flex-basis: 78px;
  }

  .league-brand-meta {
    font-size: 11px;
  }

  /*
   * LONGER POWERED BY TEXT
   * slightly smaller on phone so it fits.
   */

  .league-powered-by::after,
  .game-powered-by::after {
    font-size: 7px;

    letter-spacing: .08em;
  }

  .game-league-logo {
    width: 52px;

    height: 52px;

    flex-basis: 52px;
  }

  .team-boxscore-name {
    font-size: 21px;
  }

  .score-row {
    font-size: 17px;
  }

  .score {
    font-size: 29px;
  }

  .leaders-grid {
    grid-template-columns:
      1fr;
  }

  .best-player-card {
    padding: 18px;
  }

  .best-player-main {
    align-items: flex-start;
  }

  .best-player-name {
    font-size: 21px;
  }

  .best-player-impact strong {
    font-size: 23px;
  }

  .best-player-stat strong {
    font-size: 18px;
  }

}



/* ============================================================
   CATEGORY SELECTOR
   ============================================================ */

.category-selector-wrap {
  margin-top: 18px;

  padding-top: 18px;

  border-top:
    1px solid #303641;
}


/* ============================================================
   HOME LEAGUE LEADERS
   ============================================================ */

.home-leaders-block {
  margin-top: 42px;

  margin-bottom: 50px;
}

.text-link-button {
  border: 0;

  background: transparent;

  color: var(--accent);

  cursor: pointer;

  font-size: 11px;

  font-weight: 950;

  letter-spacing: .08em;
}


/* ============================================================
   GAME STAGE
   ============================================================ */

.stage-pill {
  display: inline-block;

  margin-top: 5px;

  margin-left: 6px;

  color: var(--accent);

  font-size: 10px;

  font-weight: 850;

  letter-spacing: .06em;
}


/* ============================================================
   ARCHIVE
   ============================================================ */

.archive-list {
  display: flex;

  flex-direction: column;

  gap: 20px;

  margin-bottom: 50px;
}

.archive-league-card {
  overflow: hidden;

  background:
    linear-gradient(
      140deg,
      #171c23,
      #0d1015
    );

  border:
    1px solid #303641;

  border-radius: 18px;
}

.archive-league-head {
  padding: 22px;

  display: flex;

  align-items: center;

  gap: 18px;

  border-bottom:
    1px solid #292f38;
}

.archive-logo {
  width: 72px;

  height: 72px;

  padding: 5px;

  object-fit: contain;

  background: #ffffff;

  border-radius: 12px;
}

.archive-title {
  color: #ffffff;

  font-size: 24px;

  font-weight: 1000;

  text-transform: uppercase;
}

.archive-meta {
  margin-top: 5px;

  color: #9ca5b0;

  font-size: 12px;
}

.archive-category {
  padding: 18px 22px;
}

.archive-category + .archive-category {
  border-top:
    1px solid #252b33;
}

.archive-category-title {
  margin-bottom: 12px;

  color: var(--accent);

  font-size: 12px;

  font-weight: 950;

  letter-spacing: .14em;
}

.archive-game {
  display: grid;

  grid-template-columns:
    120px 1fr auto;

  gap: 15px;

  align-items: center;

  padding: 13px 0;

  border-top:
    1px solid #222831;
}

.archive-game:first-of-type {
  border-top: 0;
}

.archive-game-date {
  color: #aab2bd;

  font-size: 12px;
}

.archive-game-teams {
  font-weight: 850;
}

.archive-game-score {
  font-size: 18px;

  font-weight: 950;
}


@media(max-width:520px) {

  .text-link-button {
    font-size: 9px;
  }

  .archive-game {
    grid-template-columns:
      1fr auto;
  }

  .archive-game-date {
    grid-column:
      1 / -1;
  }

}



/* ============================================================
   HOME PAGE SIZE CLEANUP - AUG 25, 2026
   ============================================================ */

/* Smaller hero: EVERY GAME. ONE PLATFORM. */
.hero-title {
  font-size:
    clamp(
      48px,
      5.6vw,
      88px
    );

  line-height: .92;
}

.hero-title .outline {
  font-size: .88em;
}


/* Smaller current-league title on Home */
.league-title {
  font-size:
    clamp(
      28px,
      3vw,
      48px
    );

  line-height: 1.02;
}


/* Keep the league card balanced after reducing the title */
.league-card {
  padding:
    24px 28px;
}


/* Mobile */
@media(max-width:760px) {

  .hero-title {
    font-size:
      clamp(
        40px,
        13vw,
        62px
      );

    line-height: .94;
  }


  .league-title {
    font-size:
      clamp(
        25px,
        8vw,
        36px
      );

    line-height: 1.04;
  }

}


/* Small phones */
@media(max-width:520px) {

  .hero-title {
    font-size:
      clamp(
        36px,
        12vw,
        52px
      );
  }


  .league-title {
    font-size:
      clamp(
        23px,
        7.5vw,
        32px
      );
  }

}



/* ============================================================
   RESPONSIVE FULL BOX SCORE
   Desktop: full width
   Portrait mobile: horizontal scroll
   Landscape mobile: full width
   ============================================================ */

/* One team per row */
.boxscore-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 18px;
  margin-bottom: 22px;
}

/* Desktop / large screens */
.boxscore-panel .table-scroll {
  width: 100%;
  overflow-x: visible;
}

.boxscore-table {
  width: 100%;
  min-width: 0 !important;
  table-layout: fixed;
}

.boxscore-table th,
.boxscore-table td {
  padding: 11px 6px;
  font-size: 12px;
  white-space: nowrap;
  text-align: center;
}

.boxscore-table th:nth-child(1),
.boxscore-table td:nth-child(1) {
  width: 5%;
}

.boxscore-table th:nth-child(2),
.boxscore-table td:nth-child(2) {
  width: 25%;
  text-align: left;
}

.boxscore-table th:nth-child(3),
.boxscore-table td:nth-child(3),
.boxscore-table th:nth-child(4),
.boxscore-table td:nth-child(4),
.boxscore-table th:nth-child(5),
.boxscore-table td:nth-child(5),
.boxscore-table th:nth-child(6),
.boxscore-table td:nth-child(6),
.boxscore-table th:nth-child(7),
.boxscore-table td:nth-child(7),
.boxscore-table th:nth-child(8),
.boxscore-table td:nth-child(8),
.boxscore-table th:nth-child(9),
.boxscore-table td:nth-child(9),
.boxscore-table th:nth-child(10),
.boxscore-table td:nth-child(10) {
  width: 7%;
}

.boxscore-table th:nth-child(11),
.boxscore-table td:nth-child(11) {
  width: 9%;
  font-weight: 950;
}

/* Mobile portrait: keep readable and allow horizontal scrolling */
@media(max-width:760px) and (orientation:portrait) {

  .boxscore-panel {
    overflow: hidden !important;
  }

  .boxscore-panel .table-scroll {
    width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .boxscore-table {
    width: 680px !important;
    min-width: 680px !important;
    table-layout: fixed;
  }

  .boxscore-table th,
  .boxscore-table td {
    padding: 10px 6px !important;
    font-size: 11px !important;
    white-space: nowrap;
  }

  .boxscore-table th:nth-child(1),
  .boxscore-table td:nth-child(1) {
    width: 38px !important;
  }

  .boxscore-table th:nth-child(2),
  .boxscore-table td:nth-child(2) {
    width: 170px !important;
    text-align: left !important;
  }

  .boxscore-table th:nth-child(n+3),
  .boxscore-table td:nth-child(n+3) {
    width: 52px !important;
    text-align: center !important;
  }
}

/* Mobile landscape: fit the entire table */
@media(max-width:950px) and (orientation:landscape) {

  .boxscore-panel {
    overflow: visible !important;
  }

  .boxscore-panel .table-scroll {
    width: 100%;
    overflow-x: visible !important;
  }

  .boxscore-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
  }

  .boxscore-table th,
  .boxscore-table td {
    padding: 8px 3px !important;
    font-size: 10px !important;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .boxscore-table th:nth-child(1),
  .boxscore-table td:nth-child(1) {
    width: 5% !important;
  }

  .boxscore-table th:nth-child(2),
  .boxscore-table td:nth-child(2) {
    width: 25% !important;
    text-align: left !important;
  }

  .boxscore-table th:nth-child(3),
  .boxscore-table td:nth-child(3),
  .boxscore-table th:nth-child(4),
  .boxscore-table td:nth-child(4),
  .boxscore-table th:nth-child(5),
  .boxscore-table td:nth-child(5),
  .boxscore-table th:nth-child(6),
  .boxscore-table td:nth-child(6),
  .boxscore-table th:nth-child(7),
  .boxscore-table td:nth-child(7),
  .boxscore-table th:nth-child(8),
  .boxscore-table td:nth-child(8),
  .boxscore-table th:nth-child(9),
  .boxscore-table td:nth-child(9),
  .boxscore-table th:nth-child(10),
  .boxscore-table td:nth-child(10) {
    width: 7% !important;
  }

  .boxscore-table th:nth-child(11),
  .boxscore-table td:nth-child(11) {
    width: 9% !important;
    font-weight: 950;
  }
}

@media(max-width:520px) and (orientation:portrait) {
  .team-boxscore-name {
    padding: 12px 14px !important;
    font-size: 18px !important;
  }
}

/* ============================================================
   FINAL HEADING SIZE OVERRIDES
   KEEP THIS AT THE VERY BOTTOM
   ============================================================ */

/* EVERY GAME. ONE PLATFORM. */
.hero h1 {
  font-size: clamp(42px, 4vw, 60px) !important;
  line-height: .94 !important;
}

.hero h1 span {
  font-size: .88em !important;
}

/* CURRENT LEAGUE TITLE */
#leagueBranding .league-brand-name {
  font-size: 28px !important;
  line-height: 1.05 !important;
  letter-spacing: -0.02em !important;
}

/* TABLET */
@media(max-width:800px) {

  .hero h1 {
    font-size: clamp(38px, 8vw, 52px) !important;
  }

  #leagueBranding .league-brand-name {
    font-size: 25px !important;
  }

}

/* MOBILE */
@media(max-width:520px) {

  .hero h1 {
    font-size: clamp(34px, 10vw, 44px) !important;
  }

  #leagueBranding .league-brand-name {
    font-size: 22px !important;
  }

}



/* ============================================================
   GAMES PAGE - LARGER DETAILS + WINNER HIGHLIGHT
   ============================================================ */

.game-row {
  grid-template-columns: 150px 1fr 90px !important;
  min-height: 92px;
  padding: 18px 22px !important;
}

.game-date {
  font-size: 15px !important;
  line-height: 1.35;
  font-weight: 800 !important;
}

.game-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
}

.status-pill {
  margin-top: 0 !important;
  font-size: 11px !important;
}

.stage-pill {
  margin: 0 !important;
  font-size: 10px !important;
}

.game-teams {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  font-size: 17px !important;
  line-height: 1.2 !important;
}

.game-team-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d6dbe1;
  min-width: 0;
}

.game-team-name {
  font-weight: 850;
}

.game-team-line.winner-team {
  color: #ffffff;
}

.game-team-line.winner-team .game-team-name {
  font-weight: 1000;
}

.winner-label {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(57,217,138,.12);
  color: var(--green);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .12em;
}

.game-result {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  text-align: right;
  font-size: 19px !important;
  line-height: 1.1;
  font-weight: 800 !important;
  color: #aeb5bf;
}

.game-result .winner-score {
  color: #ffffff;
  font-size: 23px;
  font-weight: 1000;
}

@media(max-width:800px) {

  .game-row {
    grid-template-columns: 125px 1fr 65px !important;
  }

  .game-teams {
    font-size: 15px !important;
  }

}

@media(max-width:520px) {

  .game-row {
    grid-template-columns: 1fr 55px !important;
    min-height: auto;
    padding: 15px !important;
  }

  .game-date {
    grid-column: 1 / -1;
    font-size: 13px !important;
  }

  .game-teams {
    font-size: 14px !important;
  }

  .winner-label {
    font-size: 7px;
    padding: 3px 5px;
  }

  .game-result {
    font-size: 15px !important;
  }

  .game-result .winner-score {
    font-size: 18px;
  }

}


/* ============================================================
   GAMES PAGE - MATCHUP LAYOUT
   DATE | TEAM A | VS | TEAM B
   ============================================================ */

.game-matchup-card {
  display: grid !important;
  grid-template-columns: 150px minmax(0,1fr) 60px minmax(0,1fr);
  align-items: center;
  gap: 20px;
  padding: 18px 24px !important;
  min-height: 92px;
}

.game-matchup-info {
  align-self: center;
}

.game-matchup-date {
  color: #d5dae1;
  font-size: 15px;
  font-weight: 850;
}

.game-matchup-stage {
  margin-top: 6px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.matchup-team {
  min-width: 0;
  text-align: center;
}

.matchup-team-name {
  color: #b9c0c9;
  font-size: 17px;
  line-height: 1.15;
  font-weight: 750;
  text-transform: uppercase;
}

.matchup-score {
  margin-top: 6px;
  color: #aeb5bf;
  font-size: 23px;
  line-height: 1;
  font-weight: 750;
}

.matchup-winner .matchup-team-name {
  color: #ffffff;
  font-weight: 1000;
}

.matchup-winner .matchup-score {
  color: #ffffff;
  font-size: 26px;
  font-weight: 1000;
}

.matchup-vs {
  color: #737c88;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
  text-align: center;
}

.game-matchup-time {
  grid-column: 2 / 5;
  margin-top: 4px;
  color: #9199a5;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

@media(max-width:800px) {
  .game-matchup-card {
    grid-template-columns: 125px minmax(0,1fr) 42px minmax(0,1fr);
    gap: 10px;
  }

  .game-matchup-date {
    font-size: 13px;
  }

  .matchup-team-name {
    font-size: 15px;
  }

  .matchup-score {
    font-size: 20px;
  }

  .matchup-winner .matchup-score {
    font-size: 23px;
  }
}

@media(max-width:520px) {
  .game-matchup-card {
    grid-template-columns: 82px minmax(0,1fr) 26px minmax(0,1fr);
    gap: 5px;
    padding: 14px 10px !important;
    min-height: 76px;
  }

  .game-matchup-date {
    font-size: 11px;
  }

  .game-matchup-stage {
    margin-top: 4px;
    font-size: 7px;
    letter-spacing: .05em;
  }

  .matchup-team-name {
    font-size: 12px;
    white-space: normal;
  }

  .matchup-score {
    font-size: 17px;
  }

  .matchup-winner .matchup-score {
    font-size: 19px;
  }

  .matchup-vs {
    font-size: 8px;
  }

  .game-matchup-time {
    grid-column: 2 / 5;
    font-size: 9px;
  }
}



/* ============================================================
   FINAL MATCHUP GRID FIX
   Prevent older .game-row !important rules from overriding the
   four-column matchup layout.
   ============================================================ */

.game-row.game-matchup-card {
  display: grid !important;
  grid-template-columns: 150px minmax(0,1fr) 60px minmax(0,1fr) !important;
  align-items: center !important;
  gap: 20px !important;
}

/* Home page cards live inside half-width columns, so tighten them. */
#upcomingGames .game-row.game-matchup-card,
#recentGames .game-row.game-matchup-card {
  grid-template-columns: 120px minmax(0,1fr) 36px minmax(0,1fr) !important;
  gap: 10px !important;
  padding: 16px 18px !important;
}

#upcomingGames .matchup-team-name,
#recentGames .matchup-team-name {
  font-size: 15px !important;
}

#upcomingGames .matchup-score,
#recentGames .matchup-score {
  font-size: 20px !important;
}

#upcomingGames .matchup-winner .matchup-score,
#recentGames .matchup-winner .matchup-score {
  font-size: 23px !important;
}

#upcomingGames .game-matchup-time,
#recentGames .game-matchup-time {
  grid-column: 2 / 5 !important;
}

@media(max-width:800px) {
  .game-row.game-matchup-card,
  #upcomingGames .game-row.game-matchup-card,
  #recentGames .game-row.game-matchup-card {
    grid-template-columns: 105px minmax(0,1fr) 32px minmax(0,1fr) !important;
    gap: 8px !important;
  }
}

@media(max-width:520px) {
  .game-row.game-matchup-card,
  #upcomingGames .game-row.game-matchup-card,
  #recentGames .game-row.game-matchup-card {
    grid-template-columns: 76px minmax(0,1fr) 24px minmax(0,1fr) !important;
    gap: 4px !important;
    padding: 13px 9px !important;
  }

  #upcomingGames .matchup-team-name,
  #recentGames .matchup-team-name,
  .game-row.game-matchup-card .matchup-team-name {
    font-size: 12px !important;
  }

  #upcomingGames .matchup-score,
  #recentGames .matchup-score,
  .game-row.game-matchup-card .matchup-score {
    font-size: 17px !important;
  }

  #upcomingGames .matchup-winner .matchup-score,
  #recentGames .matchup-winner .matchup-score,
  .game-row.game-matchup-card .matchup-winner .matchup-score {
    font-size: 19px !important;
  }
}



/* ============================================================
   FINAL GAME TIME POSITION / EMPHASIS
   Time sits below stage in the left information column.
   ============================================================ */

.game-matchup-info .game-matchup-time,
#upcomingGames .game-matchup-info .game-matchup-time,
#recentGames .game-matchup-info .game-matchup-time {
  grid-column: auto !important;
  margin-top: 6px !important;
  color: #c7cdd5 !important;
  font-size: 13px !important;
  line-height: 1.1 !important;
  font-weight: 900 !important;
  text-align: left !important;
  letter-spacing: .01em;
}

@media(max-width:520px) {
  .game-matchup-info .game-matchup-time,
  #upcomingGames .game-matchup-info .game-matchup-time,
  #recentGames .game-matchup-info .game-matchup-time {
    grid-column: auto !important;
    margin-top: 5px !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    text-align: left !important;
  }
}


/* ============================================================
   LEAGUE LEADERS + SINGLE GAME RECORDS
   ============================================================ */

.leader-title {
  line-height: 1.25;
}

.records-section {
  margin-top: 54px;
  margin-bottom: 54px;
}

.records-head {
  margin-top: 0;
}

.records-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}

.record-card {
  padding: 17px;
  background: var(--panel);
  border: 1px solid #252b33;
  border-radius: 14px;
}

.record-title {
  margin-bottom: 11px;
  color: var(--accent);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 950;
  letter-spacing: .12em;
}

.record-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #222831;
}

.record-row:first-of-type {
  border-top: 0;
}

.record-player {
  min-width: 0;
}

.record-name {
  color: #f4f6f8;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.record-team {
  margin-top: 2px;
  color: #8b949f;
  font-size: 10px;
  font-weight: 750;
}

.record-game {
  margin-top: 4px;
  color: #69737f;
  font-size: 9px;
  line-height: 1.35;
}

.record-value {
  min-width: 54px;
  text-align: right;
}

.record-value strong {
  display: block;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  font-weight: 1000;
}

.record-value span {
  display: block;
  margin-top: 4px;
  color: #7d8793;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .08em;
}

@media(max-width:1000px) {
  .records-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media(max-width:800px) {
  .records-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width:520px) {
  .records-section {
    margin-top: 40px;
  }

  .records-grid {
    grid-template-columns: 1fr;
  }

  .record-card {
    padding: 15px;
  }

  .record-name {
    font-size: 12px;
  }

  .record-value strong {
    font-size: 21px;
  }
}