/* ============================================================
   VegasBet — Live board (/live)
   Wide, live-only board: 1X2 (placeable) + derived Handicap/Total
   display columns. Palette-only, no blue.
   ============================================================ */

.live-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 0 48px;
}

/* The shared sport-tabs bar is laid out for /sports, where its background box is
   offset past the left sidebar. /live has no sidebar and a centered 1180px board,
   so that offset leaves the bar's background detached to the right. Re-center the
   background box on the same 1180px box as the board. */
.page-main-live .stb-inner {
  flex: none;
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

/* The tabs-nav-wrapper (flex constraint layer) and the arrow buttons are styled
   in matches.css, which /sports loads but /live does NOT. Without them the
   wrapper had no `min-width:0`/`flex:1`, so as a flex child of .stb-inner it
   grew to its full content width — the sport-tabs-list then never scrolled and
   the tabs overflowed the header, clipped by body{overflow-x:clip} (last tabs
   unreachable). Re-declare them here so /live's tab bar scrolls exactly like
   /sports, on desktop and touch. */
.sport-tabs-bar .tabs-nav-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.sport-tabs-bar .tabs-arrow {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(124, 58, 237, 0.4);
  color: #a855f7;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  padding: 0;
}
.sport-tabs-bar .tabs-arrow:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: #a855f7;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
  color: #ffffff;
}
/* Hide the tab-list scrollbar (arrows + swipe handle navigation) — matches
   /sports, and keeps the mobile scroll clean. */
.sport-tabs-bar .sport-tabs-list {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sport-tabs-bar .sport-tabs-list::-webkit-scrollbar {
  display: none;
}

/* ── Header ─────────────────────────────────────────────────── */
.live-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.live-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}
.live-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--purple-dim);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 999px;
}

/* Pulsing live dot (self-contained so live.css needs no other sheet) */
.live-indicator { display: inline-flex; align-items: center; }
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
  animation: live-pulse 1.8s ease-out infinite;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ── Board container ────────────────────────────────────────── */
.live-board {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

/* ── Column-header row ──────────────────────────────────────── */
.lb-head {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 10px 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-card);
}
.lb-head-event {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}
.lb-head-title {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 5px;
}
.lb-head .lb-cells .lb-head-sub {
  flex: 1;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ── Match row ──────────────────────────────────────────────── */
.lb-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-card);
  cursor: pointer;
  transition: background var(--transition);
}
.lb-row:last-child { border-bottom: none; }
.lb-row:hover { background: var(--bg-card-hover); }

/* ── Event cell ─────────────────────────────────────────────── */
.lb-event {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.lb-league {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-teams { display: flex; flex-direction: column; gap: 2px; }
.lb-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.lb-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-score {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
  min-width: 16px;
  text-align: right;
}
.lb-time {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
}

/* ── Markets ────────────────────────────────────────────────── */
.lb-markets {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}
.lb-mgroup--1x2  { width: 174px; }
.lb-mgroup--pair { width: 136px; }
.lb-cells { display: flex; gap: 4px; }

/* ── One odds cell ──────────────────────────────────────────── */
.lb-cell {
  flex: 1;
  min-width: 0;
  height: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: var(--radius-md);
  background: var(--bg-match);
  border: 1px solid var(--border-subtle);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.lb-cell-lbl {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}
.lb-cell-odds {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Placeable 1X2 cell */
.lb-cell--bet:hover {
  border-color: var(--accent);
  background: var(--purple-dim);
  transform: translateY(-1px);
}
.lb-cell--bet.selected {
  background: var(--purple);
  border-color: var(--purple);
}
.lb-cell--bet.selected .lb-cell-lbl,
.lb-cell--bet.selected .lb-cell-odds { color: #fff; }

/* Display cell (derived Handicap/Total — opens the match to place) */
.lb-cell--disp .lb-cell-odds { color: var(--text-primary); }
.lb-cell--disp:hover { border-color: var(--border); background: var(--bg-elevated); }

/* Suspended / unavailable */
.lb-cell--off { opacity: 0.5; }
.lb-cell--off .lb-cell-odds { color: var(--text-muted); }

/* ── Empty state ────────────────────────────────────────────── */
.live-empty {
  text-align: center;
  padding: 64px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
}
.live-empty-icon { font-size: 40px; margin-bottom: 12px; }
.live-empty-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.live-empty-sub { font-size: 13px; color: var(--text-secondary); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet — drop the Total column, keep 1X2 + Handicap */
@media (max-width: 900px) {
  .lb-mgroup--tot { display: none; }
}

/* Phone — 1X2 only (extra markets still reachable by opening the match) */
@media (max-width: 640px) {
  .lb-mgroup--hcp { display: none; }
  .lb-markets { gap: 0; }
  .lb-mgroup--1x2 { width: 150px; }
  .lb-head, .lb-row { padding-left: 12px; padding-right: 12px; gap: 10px; }
  .lb-name { font-size: 13px; }
  .lb-cell { height: 44px; }
}

@media (max-width: 380px) {
  .lb-mgroup--1x2 { width: 120px; }
  .lb-cell-odds { font-size: 13px; }
}
