/**
 * כדורסל – התאמות CSS (נטען אחרי football.css שמספק את הפריסה הבסיסית)
 */

/* ========== תוצאות רבעים – טבלה במשחק בודד ========== */
.basketball-quarter-scores {
  margin: 0 18px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.basketball-quarter-scores-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  overflow: hidden;
}

.basketball-quarter-scores-table thead {
  background: rgba(255, 255, 255, 0.06);
}

.basketball-quarter-scores-table th {
  padding: 8px 10px;
  font-weight: 600;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
  white-space: nowrap;
}

.basketball-quarter-scores-table td {
  padding: 8px 10px;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.basketball-quarter-scores-team {
  text-align: right !important;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.basketball-quarter-scores-total {
  font-weight: 800;
  color: #fff;
  background: rgba(249, 115, 22, 0.12);
}

thead .basketball-quarter-scores-total {
  background: rgba(249, 115, 22, 0.18);
  color: rgba(255, 255, 255, 0.75);
}

/* ========== בג׳ סטטוס לייב כדורסל – רבעים ========== */
.basketball-live-match-status {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* ========== שוקי כדורסל ראשיים: Spread / Total / Money ========== */
.basketball-markets-head {
  grid-template-columns: repeat(3, 1fr);
}

.basketball-markets-head span {
  text-align: center;
}

.basketball-league-main-odds-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  align-items: stretch;
  width: 100%;
  height: 100%;
  line-height: 1;
}

.basketball-league-main-odds-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 0;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background .16s ease;
}

.basketball-league-main-odds-line + .basketball-league-main-odds-line {
  border-top: 1px solid rgba(255,255,255,.06);
}

.basketball-league-main-odds-line:hover {
  background: rgba(255,255,255,.05);
}

.basketball-league-main-odds-label {
  color: rgba(255,255,255,.74);
  font-size: .72em;
  font-weight: 600;
}

.basketball-league-main-odds-num {
  color: var(--lb-odds, #facc15);
  font-weight: 800;
}

/* ========== דף ליגה – שורות משחקים ========== */
.basketball-fixtures-row {
  cursor: pointer;
}

.basketball-games-wrap {
  min-height: 120px;
}

.basketball-empty-state {
  padding: 32px 16px;
  text-align: center;
}

/* ========== טאבים במשחק בודד ========== */
.basketball-single-match-tabs {
  margin: 0;
}

/* ========== סטטיסטיקות עם צדדים ========== */
.basketball-stats-with-sides {
  margin-top: 8px;
}

/* ========== טבלת ליגה ========== */
.basketball-league-standings-card {
  margin-top: 16px;
}

/* ========== הימורים זמינים – פאנל ========== */
.basketball-odds-panel {
  width: 100%;
}

.basketball-odds-bookmaker {
  background: rgba(18, 24, 38, 0.96);
  border-radius: 12px;
  overflow: hidden;
}

.basketball-odds-bookmaker .football-odds-bet-header {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
}

.basketball-odds-table {
  direction: ltr;
}

.basketball-odds-table .football-odds-table-head,
.basketball-odds-table .football-odds-table-row {
  gap: 4px;
}

.basketball-odds-table .football-odds-table-head {
  padding: 6px 8px;
  background: rgba(255,255,255,.075);
}

.basketball-odds-table.football-odds-table--matrix .football-odds-table-row {
  padding: 5px 8px;
}

.basketball-odds-table .football-odds-table-hcap-col,
.basketball-odds-table .football-odds-table-hcap,
.basketball-odds-table .football-odds-table-col-head {
  direction: rtl;
}

.basketball-odds-table .football-odds-table-col-head {
  border-radius: 5px;
  min-height: 24px;
  padding: 5px 6px;
  font-size: .66rem;
}

.basketball-odds-table .football-odds-table-hcap {
  border-radius: 6px;
  background: rgba(255,255,255,.045);
  color: rgba(255,255,255,.74);
}

.basketball-odds-table-cell {
  min-height: 38px;
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
}

.basketball-odds-table-cell .basketball-odds-value-odd,
.basketball-odds-value-cell .basketball-odds-value-odd {
  font-size: .88rem;
  color: #facc15;
}

.basketball-odds-value-label {
  color: rgba(255,255,255,.76);
}

.football-single-fixture-slip-root .basketball-odds-table-cell.basketball-odds-cell--slip,
.football-single-fixture-slip-root .basketball-odds-value-cell.basketball-odds-cell--slip {
  background: rgba(245, 197, 24, 0.16) !important;
  box-shadow: inset 0 0 0 1px rgba(245, 197, 24, 0.42);
}

/* Live block styles → css/live-blocks.css */

/* ========== בחירת תאריך ========== */
#basketball-date-input {
  direction: ltr;
}

/* ========== רספונסיבי ========== */
@media (max-width: 600px) {
  .basketball-quarter-scores {
    margin: 0 10px 10px;
  }

  .basketball-quarter-scores-table th,
  .basketball-quarter-scores-table td {
    padding: 6px 5px;
    font-size: 0.75rem;
  }

  .basketball-quarter-scores-team {
    max-width: 90px;
  }

  .basketball-odds-table.football-odds-table--cols-2.football-odds-table--with-row-label .football-odds-table-head,
  .basketball-odds-table.football-odds-table--cols-2.football-odds-table--with-row-label .football-odds-table-row {
    grid-template-columns: 44px repeat(2, minmax(0, 1fr));
  }

  .basketball-odds-table .football-odds-table-col-head {
    font-size: .56rem;
    padding: 4px 3px;
  }

  .basketball-odds-table-cell {
    min-height: 34px;
  }
}

/* מצב דמו – באנר */
.basketball-demo-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.15) 0%, rgba(34, 197, 94, 0.12) 100%);
  border: 1px solid rgba(245, 197, 24, 0.35);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  line-height: 1.45;
}

.basketball-demo-banner-badge {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  background: rgba(245, 197, 24, 0.9);
  color: #1a1a1a;
}

.basketball-demo-banner-text {
  flex: 1 1 220px;
  min-width: 0;
}
