/*
  In-page box score table styles
  --------------------------------
  This file contains only the CSS needed for the regular dark-mode box score table:
  - Team title bar
  - Horizontally scrollable stat table
  - Sticky player column for mobile
  - Team totals row
  - GameOn AIO link styling

  It expects the HTML generated by box-score-view.js.
*/
.gameon-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--gold);
}

.gameon-link {
  margin-top: 0;
  font-weight: 900;
}

.gameon-profile-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid #f0a052;
  border-radius: 8px;
  padding: 9px 13px;
  background: var(--orange);
  color: #080807;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(221, 139, 56, .16);
}

.gameon-profile-button:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: #080807;
}

.metric-note .gameon-link {
  margin-top: 12px;
  margin-left: 12px;
}

.muted-cell {
  color: var(--muted);
}

.box-score-grid,
.profile-grid,
.player-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.box-score-stack {
  display: grid;
  gap: 14px;
}

.box-table-panel {
  overflow: hidden;
  border: 1px solid #383b34;
  border-radius: 8px;
  background: #171916;
  color: var(--text);
}

.box-team-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #383b34;
  padding: 11px 13px;
  background: #20221e;
  color: var(--text);
  font-weight: 900;
}

.box-team-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.box-team-title strong {
  font-family: Oswald, sans-serif;
  font-size: 24px;
}

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

.box-table {
  min-width: 980px;
  color: var(--text);
}

.box-table th,
.box-table td {
  border-top: 1px solid #34372f;
  padding: 7px 8px;
  color: #f0eee8;
  font-size: 13px;
  text-align: center;
}

.box-table th {
  background: #1d1f1b;
  color: #c9c0a7;
  font-size: 12px;
}

.box-table th:first-child,
.box-table td:first-child {
  position: sticky;
  left: 0;
  width: 210px;
  border-right: 1px solid #3b3e36;
  box-shadow: 10px 0 14px -14px rgba(0, 0, 0, .9);
  text-align: left;
}

.box-table th:first-child {
  z-index: 3;
  background: #1d1f1b;
}

.box-table tbody tr:nth-child(odd) td:first-child {
  z-index: 2;
  background: #171916;
}

.box-table tbody tr:nth-child(even) td:first-child {
  z-index: 2;
  background: #20221e;
}

.box-table tbody tr:nth-child(odd) {
  background: #171916;
}

.box-table tbody tr:nth-child(even) {
  background: #20221e;
}

.box-table td a {
  color: var(--white);
  font-weight: 900;
}

.team-total-row {
  background: #2a2d27 !important;
  font-weight: 900;
}

.team-total-row td:first-child {
  background: #2a2d27 !important;
}


@media (max-width: 720px) {
  .box-table-panel {
    border-radius: 7px;
  }

  .box-team-title {
    gap: 10px;
    padding: 10px 11px;
  }

  .box-team-title h3 {
    min-width: 0;
    font-size: 18px;
    line-height: 1.05;
  }

  .box-team-title strong {
    font-size: 23px;
  }

  .box-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: var(--gold) #242720;
    scrollbar-width: thin;
  }

  .box-table {
    min-width: 736px;
    table-layout: fixed;
  }

  .box-table th,
  .box-table td {
    padding: 6px 6px;
    font-size: 12px;
    line-height: 1.12;
  }

  .box-table th {
    font-size: 10px;
  }

  .box-table th:first-child,
  .box-table td:first-child {
    width: 146px;
    min-width: 146px;
    max-width: 146px;
    padding-left: 8px;
    white-space: normal;
  }

  .box-table td:first-child a {
    display: inline;
    line-height: 1.15;
    white-space: normal;
  }

  .box-table th:nth-child(2),
  .box-table td:nth-child(2),
  .box-table th:nth-child(3),
  .box-table td:nth-child(3),
  .box-table th:nth-child(8),
  .box-table td:nth-child(8),
  .box-table th:nth-child(9),
  .box-table td:nth-child(9),
  .box-table th:nth-child(10),
  .box-table td:nth-child(10),
  .box-table th:nth-child(11),
  .box-table td:nth-child(11),
  .box-table th:nth-child(14),
  .box-table td:nth-child(14) {
    width: 42px;
  }

  .box-table th:nth-child(4),
  .box-table td:nth-child(4),
  .box-table th:nth-child(5),
  .box-table td:nth-child(5),
  .box-table th:nth-child(6),
  .box-table td:nth-child(6) {
    width: 54px;
  }

  .box-table th:nth-child(7),
  .box-table td:nth-child(7),
  .box-table th:nth-child(12),
  .box-table td:nth-child(12),
  .box-table th:nth-child(13),
  .box-table td:nth-child(13) {
    width: 50px;
  }

  .box-table th:nth-child(15),
  .box-table td:nth-child(15) {
    width: 68px;
  }

