 /* display games */
.nba-card {
  --divider-gap: 15px;  /* horizontal spacing between score and video */
  --divider-color: rgba(0, 0, 0, 0.1);
  position: relative;
  display: flex;
  align-items: center;
}

/* Left and right layout */
.nba-card .teams {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.nba-card .right-panel {
  width: 120px;
  flex-shrink: 0;
  text-align: center;
}

/* Divider centered between sides */
.nba-card .divider {
  width: 1px;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.25); /* more visible on AMOLED */
  margin: 0 var(--divider-gap);
  position: relative;
  flex-shrink: 0;      /* prevents collapsing on mobile flexbox */
  min-height: 60px;    /* ensures it always has visible height */
}

/* Team row spacing */
.nba-card .team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  position: relative;
}

/* Add spacing on the right of score */
.nba-card .score {
  min-width: 36px;
  text-align: right;
  font-weight: 600;
}

/* Winner indicator: a right-pointing triangle placed beside divider (not overlapping) */
.nba-card .winner-row::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(var(--divider-gap) * -1 + 0px); /* sits just before the divider */
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 9px solid #000; /* triangle pointing right */
}

/* Emphasize winner row */
.nba-card .winner-row .team-name,
.nba-card .winner-row .score {
  font-weight: 700;
  color: #000;
}

 /* for smaller logos */
.scale-logo {
  transform: scale(1.29);
}

#game-details {
  .score-card {
    background: white;
    border-radius: 8px;
    padding: 13px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
  .score-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
  }
  .league-info {
      font-size: 15px;
      color: #333;
  }
  .league-name {
      font-weight: 600;
      color: #1d4ed8;
  }
  .game-time {
      color: #666;
  }
  .game-status {
      font-size: 15px;
      color: #666;
      font-weight: 500;
  }
  .main-score {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: start;
      margin-bottom: 20px;
  }
  .team-info {
      display: flex;
      flex-direction: column;
      align-items: center;
  }
  .team-logo {
      width: 60px;
      height: 40px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 8px;
      font-size: 32px;
  }
  .team-name {
      font-size: 15px;
      font-weight: 500;
      color: #333;
      margin-bottom: 2px;
  }
  .team-record {
      font-size: 13px;
      color: #666;
  }
  .score-section {
      display: inline-flex;
      align-items: center;
      white-space: nowrap;
      margin-top: 8px;
  }
  .score-large {
      font-size: 30px;
      font-weight: 400;
      color: #333;
      line-height: 1;
  }
  .score-separator {
      font-size: 32px;
      color: #999;
      font-weight: 300;
      margin: 0 10px;
  }
  .quarter-scores {
      border-top: 1px solid #e5e7eb;
      padding-top: 15px;
  }
  .quarter-scores table {
      width: 100%;
      table-layout: fixed;
  }
  .quarter-scores th {
      text-align: center;
      font-weight: 500;
      color: #666;
      padding: 8px 4px;
      font-size: 13px;
      width: 30px;
  }
  .quarter-scores th:first-child {
      text-align: left;
      width: auto;
  }
  .quarter-scores td {
      text-align: center;
      padding: 5px 4px;
      font-size: 14px;
      color: #333;
      width: 50px;
  }
  .quarter-scores td:first-child {
      text-align: left;
      font-weight: 500;
      font-size: 13px;
      width: auto;
  }
  .quarter-scores td:last-child {
      font-weight: 600;
  }

  .team-full {
    display: none;
  }
  .team-abbr {
    display: inline;
  }

  .team-name-full {
    display: none;
  }
  .team-name-abbr {
    display: inline;
  }

  @media (min-width: 768px) {
    .score-card {
        max-width: 900px;
        padding: 20px;
    }
    .header {
        margin-bottom: 30px;
    }
    .league-info {
        font-size: 18px;
    }
    .game-status {
        font-size: 18px;
    }
    .main-score {
        margin-bottom: 15px;
    }
    .team-logo {
        width: 90px;
        height: 50px;
        font-size: 40px;
        margin-bottom: 12px;
    }
    .team-name {
        font-size: 20px;
    }
    .team-record {
        font-size: 16px;
    }
    .score-large {
        font-size: 40px;
    }
    .score-separator {
        font-size: 48px;
        margin: 0 15px;
    }
    .quarter-scores {
        padding-top: 20px;
    }

    .quarter-scores th {
        width: 40px;
    }

    .quarter-scores th {
        font-size: 15px;
        padding: 10px 8px;
    }
    .quarter-scores td {
        font-size: 16px;
        padding: 5px 8px;
    }
    .quarter-scores td:first-child {
        font-size: 18px;
    }

    .team-full {
      display: inline;
    }
    .team-abbr {
        display: none;
    }

    .team-name-full {
        display: inline;
    }
    .team-name-abbr {
        display: none;
    }
  }

  @media (min-width: 1200px) {
    .score-card {
        max-width: 1100px;
        padding: 20px;
    }
    .team-logo {
        width: 110px;
        height: 60px;
        font-size: 56px;
    }
    .team-name {
        font-size: 24px;
    }
    .team-record {
        font-size: 18px;
    }
    .score-large {
        font-size: 40px;
    }
    .score-separator {
        font-size: 56px;
        margin: 0 20px;
    }
    .quarter-scores th,
    .quarter-scores td {
        font-size: 18px;
        padding: 5px 8px;
    }
    .quarter-scores th {
        width: 50px;
    }
  }
}

.dark-green {
  color: darkgreen !important;
}

.dark-red {
  color: darkred !important;
}

.page-title h1.game-date {
    font-size: 14px;
    font-weight: 400;
}

.page-title h1.vs {
    font-size: 28px !important;
    font-weight: 500 !important;
}

.main-standings {
    .standings-container {
        background-color: white;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        overflow: hidden;
    }
    .conference-tabs {
        border-bottom: 2px solid #e9ecef;
        display: flex;
    }
    .conference-tab {
        padding: 15px 10px;
        font-weight: 500;
        color: #6c757d;
        cursor: pointer;
        flex: 1;
        text-align: center;
        transition: all 0.2s;
    }
    .conference-tab:hover {
        color: #212529;
    }
    .conference-tab.active {
        color: #212529;
        border-bottom: 3px solid #0d6efd;
        margin-bottom: -2px;
    }
    .standings-table {
        margin: 0;
    }
    .standings-table thead th {
        background-color: white;
        border-bottom: 2px solid #dee2e6;
        font-size: 0.875rem;
        font-weight: 600;
        color: #6c757d;
        padding: 12px 8px;
        text-align: center;
        white-space: nowrap;
    }
    .standings-table thead th:nth-child(1) {
        width: 40px;
        min-width: 40px;
    }
    .standings-table thead th:nth-child(2) {
        width: 300px;
        min-width: 150px;
    }
    .standings-table tbody td {
        padding: 8px 8px;
        vertical-align: middle;
        text-align: center;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    .standings-table tbody td:nth-child(1) {
        width: 40px;
        min-width: 40px;
    }
    .standings-table tbody td:nth-child(2) {
        width: 300px;
        min-width: 150px;
    }
    .standings-table tbody tr {
        border-bottom: 1px solid #f1f3f5;
    }
    .standings-table tbody tr:hover {
        background-color: #f8f9fa;
    }
    .team-cell {
        text-align: left !important;
        font-weight: 600;
        width: 300px;
        min-width: 300px;
    }
    .team-logo {
        width: 30px;
        height: 30px;
        margin-right: 10px;
        vertical-align: middle;
    }
    .rank-cell {
        color: #6c757d;
        font-weight: 500;
    }
    .streak-win {
        color: #198754;
        font-weight: 600;
    }
    .streak-loss {
        color: #dc3545;
        font-weight: 600;
    }

    /* Mobile responsive - hide columns and adjust team width */
    @media (max-width: 768px) {
        .standings-table {
            font-size: 0.85rem;
        }
        .standings-table thead th {
            padding: 12px 4px;
            font-size: 0.8rem;
        }
        .standings-table tbody td {
            padding: 8px 4px;
            font-size: 0.85rem;
        }
        /* Reduce team column to 160px on mobile */
        .standings-table thead th:nth-child(2) {
            width: 160px;
            min-width: 160px;
        }
        .standings-table tbody td:nth-child(2) {
            width: 160px;
            min-width: 160px;
        }
        .team-cell {
            width: 160px;
            min-width: 160px;
        }

        /* Hide Pct, Conf, Home, Away, Strk columns on mobile */
        .standings-table thead th:nth-child(5),    /* Pct */
        .standings-table thead th:nth-child(7),    /* Conf */
        .standings-table thead th:nth-child(8),    /* Home */
        .standings-table thead th:nth-child(9),    /* Away */
        .standings-table thead th:nth-child(11),   /* Strk */
        .standings-table tbody td:nth-child(5),
        .standings-table tbody td:nth-child(7),
        .standings-table tbody td:nth-child(8),
        .standings-table tbody td:nth-child(9),
        .standings-table tbody td:nth-child(11) {
            display: none;
        }

        .conference-tab {
            font-size: 0.9rem;
        }
    }
}

.color-black { color: black !important; }

.player-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.player-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2px;
}
.player-team {
    font-size: 0.75rem;
    color: #666;
}
.stat-header {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
}
.stat-value {
    font-size: 1.05rem;
    font-weight: 400;
}

/* Mobile responsive font sizes */
@media (max-width: 767.98px) {
    .stat-header {
        font-size: 0.65rem;
    }
    .stat-value {
        font-size: 0.9rem;
    }
    .player-name {
        font-size: 0.9rem;
    }
}
.game-leaders-card {
    background: white;
    border-radius: 8px;
    padding: 13px;
    margin: 0 auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.leaders {
    .leaders-container {
        margin: 0 auto;
        background-color: white;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    .leaders-header {
        background-color: #f8f9fa;
        padding: 12px 20px;
        border-bottom: 1px solid #dee2e6;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 600;
        font-size: 14px;
        color: #212529;
        text-transform: uppercase;
    }
    .leader-row {
        display: flex;
        align-items: center;
        padding: 4px 12px;
        border-bottom: 1px solid #e9ecef;
        transition: background-color 0.2s;
    }
    .leader-row:hover {
        background-color: #f8f9fa;
    }
    .leader-row:last-child {
        border-bottom: none;
    }
    .rank {
        font-size: 16px;
        font-weight: 600;
        color: #6c757d;
        min-width: 10px;
    }
    .player-image {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
        margin: 0 10px;
        background-color: #e9ecef;
    }
    .player-info {
        flex-grow: 1;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .player-name {
        font-size: 15px;
        font-weight: 500;
        text-decoration: none;
    }
    .team-abbr {
        font-size: 13px;
        color: #6c757d;
        font-weight: 500;
    }
    .points {
        font-size: 16px;
        font-weight: 500;
        color: #212529;
        min-width: 50px;
        text-align: right;
    }

    @media (max-width: 576px) {
        .leaders-header, .leader-row {
            padding: 5px 10px;
        }
        .player-image {
            width: 35px;
            height: 35px;
            margin: 0 7px;
        }
        .player-name {
            font-size: 14px;
        }
        .points {
            font-size: 14px;
        }
        .rank {
            min-width: 10px;
            font-size: 13px;
        }
    }
}

@media (max-width: 768px) {
  .services .service-item {
    padding: 15px;
  }
}