/* LEGACY SPORTS — COMPACT SCOREBOARD (basketball Live Scores)
   Small score tiles in a grid, like a pro league's results page: team rows on the left,
   score / time / LIVE on the right. Sections: Live now, Up next, Results. */

.scores-content {
  padding: 48px 0 90px;
}

.sb-day {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 34px 0 2px;
  color: #151a1f;
  font: 800 18px "Sofia Sans", sans-serif;
}

.sb-day:first-child {
  margin-top: 0;
}

.sb-sub {
  margin: 0 0 14px;
  color: #8a8782;
  font-size: 12px;
}

.sb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 12px;
}

/* ---------- TILE ---------- */
.sb-tile {
  display: flex;
  align-items: stretch;
  border: 1px solid #e3dfd9;
  border-radius: 10px;
  background: #fff;
  transition: box-shadow .15s ease, transform .15s ease;
}

.sb-tile:hover {
  box-shadow: 0 6px 18px rgba(21, 26, 31, .08);
  transform: translateY(-1px);
}

.sb-tile.is-live {
  border-color: rgba(201, 8, 12, .45);
  box-shadow: 0 0 0 1px rgba(201, 8, 12, .2);
}

.sb-teams {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
}

.sb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
}

.sb-row + .sb-row {
  margin-top: 6px;
}

.sb-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #151a1f;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-score {
  min-width: 26px;
  color: #151a1f;
  font-size: 16px;
  font-weight: 800;
  text-align: right;
}

.sb-row.is-loser .sb-name,
.sb-row.is-loser .sb-score {
  color: #9a968f;
  font-weight: 600;
}

.sb-tile.is-live .sb-score {
  color: #c9080c;
}

/* Light crests need an outline on white tiles. */
.sb-tile .crest--white,
.sb-tile .crest--logo,
.sb-tile .crest--tbd {
  box-shadow: inset 0 0 0 1px #d6d2cc;
}

.sb-tile .crest--tbd {
  background: #f1efeb;
  color: #9a968f;
}

/* ---------- RIGHT SIDE ---------- */
.sb-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 84px;
  padding: 10px 8px;
  border-left: 1px solid #eeebe6;
  text-align: center;
}

.sb-time {
  color: #151a1f;
  font-size: 14px;
  font-weight: 800;
}

.sb-ft {
  color: #151a1f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

.sb-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #c9080c;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.sb-live i,
.sb-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: sb-pulse 1.4s ease-in-out infinite;
}

.sb-pulse {
  width: 9px;
  height: 9px;
  background: #c9080c;
}

@keyframes sb-pulse {
  50% { opacity: .25; }
}

.sb-meta {
  color: #8a8782;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .4px;
  line-height: 1.3;
}

.sb-meta:empty {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .sb-live i,
  .sb-pulse {
    animation: none;
  }
}

/* Game clock under LIVE (game-clock.js counts it down; red in the last 2 minutes) */
.sb-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #151a1f;
  font: 400 22px/1 "Bebas Neue", sans-serif;
  letter-spacing: .5px;
  font-variant-numeric: tabular-nums;
}
.sb-period {
  color: #8a8782;
  font: 700 9px/1.4 "Sofia Sans", sans-serif;
  letter-spacing: .6px;
  text-transform: uppercase;
}
.sb-clock.is-late,
.sb-clock .is-late { color: #c9080c; }
.sb-tile.is-late { box-shadow: inset 3px 0 0 #c9080c; }
