/* ==========================================================================
   AXBETPLUS — PROFESSIONAL LIVE SCORE CENTER (livescore.css)
   Matches AXBETPLUS Dark Slate (#0b1118 / #0f161f), Emerald (#00e06c) & Gold (#facc15)
   ========================================================================== */

.nav-item { position: relative; }
.ls-nav-badge {
  margin-left: auto;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
  animation: lsPulse 1.8s infinite;
}
.ls-nav-badge[hidden] { display: none !important; }
.ls-preview-pill {
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(250, 204, 21, 0.16);
  border: 1px solid rgba(250, 204, 21, 0.35);
  color: #facc15;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.mob-nav-btn { position: relative; }
.ls-mob-dot {
  position: absolute;
  top: 7px;
  right: calc(50% - 14px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 2px #0f161f;
}
.ls-mob-dot[hidden] { display: none !important; }

@keyframes lsPulse {
  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); }
}

/* Header Card */
.ls-hero-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 18%, rgba(0, 224, 108, 0.14), transparent 48%),
    linear-gradient(145deg, #121c27 0%, #0b1118 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}
.ls-hero-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ls-hero-title h2 {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #f8fafc;
  margin: 0;
}
.ls-live-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 11.5px;
  font-weight: 800;
}
.ls-live-counter i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  display: inline-block;
  animation: lsPulse 1.6s infinite;
}
.ls-hero-sub {
  font-size: 12.5px;
  color: #94a3b8;
  margin-top: 4px;
}
.ls-hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ls-last-upd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 9px;
}
.ls-refresh-btn {
  height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid rgba(0, 224, 108, 0.3);
  background: rgba(0, 224, 108, 0.1);
  color: var(--emerald);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.ls-refresh-btn:hover { background: rgba(0, 224, 108, 0.18); }
.ls-refresh-btn.spinning svg { animation: lsSpin 0.8s linear infinite; }
@keyframes lsSpin { to { transform: rotate(360deg); } }

/* Sport Category Switcher (Football / Basketball ONLY) */
.ls-sport-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.ls-sport-btn {
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #111923;
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.16s ease;
}
.ls-sport-btn.active {
  background: linear-gradient(135deg, rgba(0, 224, 108, 0.18), rgba(0, 224, 108, 0.06));
  border-color: rgba(0, 224, 108, 0.5);
  color: #f8fafc;
  box-shadow: 0 4px 16px rgba(0, 224, 108, 0.12);
}

/* Search & Date Controls */
.ls-controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.ls-search-box {
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  background: #0d141d;
  border: 1px solid var(--border);
}
.ls-search-box:focus-within { border-color: rgba(0, 224, 108, 0.5); }
.ls-search-box input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: #f1f5f9;
  font-size: 13px;
}
.ls-search-clear {
  background: none;
  border: 0;
  color: #64748b;
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
}

.ls-date-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ls-live-mode-btn {
  height: 38px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.15s ease;
}
.ls-live-mode-btn:hover {
  border-color: rgba(239, 68, 68, 0.65);
  color: #fff;
}
.ls-live-mode-btn.active {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-color: #f87171;
  color: #fff;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.32);
}
.ls-live-mode-btn b {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
}
.ls-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  display: inline-block;
  animation: lsPulse 1.5s infinite;
}
.ls-live-mode-btn.active .ls-live-dot {
  background: #fff;
  box-shadow: 0 0 8px #fff;
}
.ls-date-picker-wrap {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0d141d;
  overflow: hidden;
}
.ls-date-step {
  width: 34px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.ls-date-step:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.ls-date-input {
  height: 36px;
  padding: 0 8px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: #e2e8f0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color-scheme: dark;
}

/* Status Filter Chips */
.ls-filter-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 12px;
  scrollbar-width: none;
}
.ls-filter-bar::-webkit-scrollbar { display: none; }
.ls-filter-chip {
  min-height: 36px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #101822;
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.ls-filter-chip.active {
  background: rgba(0, 224, 108, 0.14);
  border-color: rgba(0, 224, 108, 0.55);
  color: var(--emerald);
}
.ls-filter-chip b {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

/* Alert / Stale / Preview Banners */
.ls-banner {
  padding: 10px 14px;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.ls-banner.warn {
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.35);
  color: #fde68a;
}
.ls-banner.err {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.38);
  color: #fecaca;
}

/* League Accordions */
.ls-groups-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ls-league-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #0f161f;
  overflow: hidden;
}
.ls-league-card.is-featured {
  border-color: rgba(250, 204, 21, 0.25);
}
.ls-league-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
}
.ls-league-card.collapsed .ls-league-head { border-bottom-color: transparent; }
.ls-league-card.collapsed .ls-league-body { display: none; }

.ls-lg-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.ls-lg-flag { font-size: 16px; flex: 0 0 auto; line-height: 1; }
.ls-lg-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: 0 0 20px;
  border-radius: 4px;
}
.ls-lg-titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ls-lg-country {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}
.ls-lg-name {
  font-size: 13px;
  font-weight: 800;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ls-lg-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.ls-lg-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
}
.ls-star-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #475569;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
}
.ls-star-btn:hover { background: rgba(255, 255, 255, 0.05); color: #facc15; }
.ls-star-btn.active { color: #facc15; }
.ls-chevron {
  font-size: 12px;
  color: #64748b;
  transition: transform 0.18s ease;
}
.ls-league-card.collapsed .ls-chevron { transform: rotate(-90deg); }

/* Match Rows */
.ls-match-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 86px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.15s ease;
}
.ls-match-row:last-child { border-bottom: 0; }
.ls-match-row:hover { background: rgba(255, 255, 255, 0.03); }
.ls-match-row.is-live {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.07) 0%, rgba(15, 22, 31, 0) 60%);
}

/* Goal Alert: 5x glowing red score-box & row pulse + team GOL badge */
.ls-match-row.ls-goal-flash {
  animation: lsRowGoalBlink 0.55s ease-in-out 5;
}
@keyframes lsRowGoalBlink {
  0%, 100% {
    background: rgba(239, 68, 68, 0.08);
    box-shadow: inset 3px 0 0 rgba(239, 68, 68, 0.35);
  }
  50% {
    background: rgba(239, 68, 68, 0.30);
    box-shadow: inset 3px 0 0 #ef4444;
  }
}
@keyframes lsScoreGoalBlink {
  0%, 100% {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.45);
    color: #fecaca;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    transform: scale(1);
  }
  50% {
    background: #ef4444;
    border-color: #fca5a5;
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.45), 0 0 20px rgba(239, 68, 68, 0.85);
    transform: scale(1.12);
  }
}
@keyframes lsBballPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.08); background: rgba(249, 115, 22, 0.28); border-color: #fb923c; color: #fff; }
  100% { transform: scale(1); }
}

.ls-status-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.ls-st-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 800;
  color: #94a3b8;
}
.ls-st-pill.live {
  color: #f87171;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ls-st-pill.live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
}
.ls-st-pill.finished { color: #cbd5e1; }
.ls-st-pill.scheduled { color: var(--emerald); }
.ls-st-sub { font-size: 10px; color: #64748b; }

.ls-team-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ls-team-cell.home { justify-content: flex-end; text-align: right; }
.ls-team-cell.home .ls-team-logo,
.ls-team-cell.home .ls-team-ph { order: 3; }
.ls-team-cell.home .ls-rc-wrap { order: 2; }
.ls-team-cell.home .ls-team-txt { order: 1; }

.ls-team-logo, .ls-team-ph {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  object-fit: contain;
}
.ls-team-ph {
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-block;
}
.ls-team-txt {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ls-rc-wrap {
  display: inline-flex;
  gap: 2px;
  flex: 0 0 auto;
}
.ls-rc-card {
  width: 8px;
  height: 11px;
  border-radius: 2px;
  background: #ef4444;
  display: inline-block;
}

.ls-score-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.ls-score-box {
  min-width: 64px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 800;
  color: #f8fafc;
  text-align: center;
}
.ls-match-row.is-live .ls-score-box {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fecaca;
}
.ls-match-row.ls-goal-flash .ls-score-box {
  animation: lsScoreGoalBlink 0.55s ease-in-out 5;
  will-change: transform, box-shadow;
}
.ls-match-row.ls-bball-pop .ls-score-box {
  animation: lsBballPop 0.6s ease 1;
}
.ls-match-row.ls-goal-home .ls-team-cell.home .ls-team-txt,
.ls-match-row.ls-goal-away .ls-team-cell.away .ls-team-txt {
  color: #fca5a5;
  font-weight: 800;
}
.ls-goal-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #ef4444;
  border: 1px solid #fca5a5;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.4px;
  line-height: 1.1;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
  flex-shrink: 0;
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .ls-match-row.ls-goal-flash,
  .ls-match-row.ls-goal-flash .ls-score-box,
  .ls-match-row.ls-bball-pop .ls-score-box {
    animation: none !important;
  }
  .ls-match-row.ls-goal-flash .ls-score-box {
    background: #ef4444;
    border-color: #fca5a5;
    color: #ffffff;
  }
}
.ls-kickoff-box {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--emerald);
}
.ls-q-mini {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #64748b;
  white-space: nowrap;
}

/* Skeleton & Empty / Error States */
.ls-skeleton-card {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #0f161f;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ls-skel-line {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #16202c 25%, #1e2c3d 50%, #16202c 75%);
  background-size: 200% 100%;
  animation: lsShimmer 1.3s infinite;
}
@keyframes lsShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.ls-state-box {
  padding: 36px 20px;
  border-radius: 16px;
  border: 1px dashed var(--border);
  background: rgba(15, 22, 31, 0.6);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.ls-state-box .ls-st-ico { font-size: 30px; }
.ls-state-box h3 { font-size: 15px; font-weight: 800; color: #f8fafc; margin: 0; }
.ls-state-box p { font-size: 12.5px; color: #94a3b8; max-width: 380px; margin: 0; }

/* ==========================================================================
   MATCH DETAIL MODAL (Responsive Sheet on Mobile / Centered Modal on Desktop)
   ========================================================================== */
.ls-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(5, 9, 14, 0.82);
  backdrop-filter: blur(8px);
}
.ls-detail-modal.open { display: flex; }

.ls-detail-panel {
  width: min(820px, 100%);
  max-height: 90dvh;
  background: #0d141d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}
.ls-det-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: #111a26;
  border-bottom: 1px solid var(--border);
}
.ls-det-league {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  color: #cbd5e1;
  min-width: 0;
}
.ls-det-close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font-size: 16px;
  cursor: pointer;
}

.ls-det-scroll {
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ls-det-scroll > * {
  flex-shrink: 0;
}
.ls-scoreboard-hero {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 224, 108, 0.12), transparent 60%),
    #111924;
  border: 1px solid var(--border);
}
.ls-det-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.ls-det-team img { width: 46px; height: 46px; object-fit: contain; }
.ls-det-team strong { font-size: 14px; font-weight: 800; color: #f8fafc; }
.ls-det-team-actions { display: flex; align-items: center; gap: 4px; font-size: 11px; color: #64748b; }

.ls-det-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.ls-det-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
}
.ls-det-status {
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}
.ls-det-status.live { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.ls-det-venue { font-size: 11px; color: #64748b; }

/* Quarter table for Basketball */
.ls-q-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: #101822;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.ls-q-table th, .ls-q-table td {
  padding: 8px 10px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.ls-q-table th:first-child, .ls-q-table td:first-child { text-align: left; font-weight: 700; }
.ls-q-table th { color: #64748b; font-size: 11px; text-transform: uppercase; }
.ls-q-table td:last-child { font-family: 'JetBrains Mono', monospace; font-weight: 900; color: var(--emerald); }

/* Detail Subtabs */
.ls-det-tabs {
  display: flex;
  flex-shrink: 0;
  min-height: 40px;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.ls-det-tabs::-webkit-scrollbar { display: none; }
.ls-det-tab {
  min-height: 34px;
  padding: 6px 13px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: #111924;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.ls-det-tab.active {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #04110a;
  font-weight: 800;
}

/* Events Timeline */
.ls-timeline { display: flex; flex-direction: column; gap: 8px; }
.ls-ev-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 12.5px;
}
.ls-ev-min {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--emerald);
}
.ls-ev-side { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ls-ev-side.home { justify-content: flex-end; text-align: right; }
.ls-ev-side strong { color: #f1f5f9; font-size: 12.5px; }
.ls-ev-side small { display: block; color: #64748b; font-size: 11px; }

/* Dual Stats Bars */
.ls-stat-list { display: flex; flex-direction: column; gap: 11px; }
.ls-stat-item { display: flex; flex-direction: column; gap: 5px; }
.ls-stat-nums {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
}
.ls-stat-nums span:first-child, .ls-stat-nums span:last-child {
  font-family: 'JetBrains Mono', monospace;
  min-width: 48px;
}
.ls-stat-nums span:last-child { text-align: right; }
.ls-stat-bar {
  height: 7px;
  border-radius: 999px;
  background: #1b2736;
  display: flex;
  overflow: hidden;
  gap: 2px;
}
.ls-stat-bar i.h { background: var(--emerald); display: block; height: 100%; }
.ls-stat-bar i.a { background: #facc15; display: block; height: 100%; }

/* Football Lineup Pitch + Lists */
.ls-pitch {
  border-radius: 14px;
  border: 1px solid rgba(0, 224, 108, 0.28);
  background:
    linear-gradient(180deg, rgba(0, 224, 108, 0.08) 0%, rgba(11, 28, 22, 0.92) 50%, rgba(250, 204, 21, 0.08) 100%);
  padding: 12px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.ls-pitch-midline {
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
  margin: 10px 0;
}
.ls-pitch-head {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 800;
  color: #cbd5e1;
  margin-bottom: 6px;
}
.ls-pitch-rows { display: flex; flex-direction: column; gap: 8px; }
.ls-pitch-row {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 4px;
}
.ls-pitch-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  max-width: 68px;
}
.ls-pitch-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #00e06c;
  color: #04110a;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.ls-pitch-node.away .ls-pitch-dot {
  background: #facc15;
  color: #1a1302;
}
.ls-pitch-lbl {
  font-size: 10px;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 66px;
}
.ls-lineup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ls-lineup-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #101822;
  padding: 12px;
}
.ls-lineup-box h4 {
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}
.ls-formation-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(0, 224, 108, 0.14);
  color: var(--emerald);
}
.ls-player-list { display: flex; flex-direction: column; gap: 5px; }
.ls-pl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
}
.ls-pl-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 800;
  color: #facc15;
  min-width: 24px;
}
.ls-pl-pos { font-size: 10.5px; color: #64748b; font-weight: 700; }

/* Standings & Boxscore Tables */
.ls-table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: #101822; }
.ls-std-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ls-std-table th, .ls-std-table td {
  padding: 8px 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  white-space: nowrap;
}
.ls-std-table th { font-size: 10.5px; color: #64748b; text-transform: uppercase; background: rgba(255, 255, 255, 0.02); }
.ls-std-table th.l, .ls-std-table td.l { text-align: left; }
.ls-std-table tr.is-match-team { background: rgba(0, 224, 108, 0.1); }
.ls-std-team { display: flex; align-items: center; gap: 6px; }
.ls-std-team img { width: 18px; height: 18px; object-fit: contain; }

/* Form Pills */
.ls-form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.ls-form-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
}
.ls-res-pill {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ls-res-pill.W { background: rgba(0, 224, 108, 0.2); color: var(--emerald); }
.ls-res-pill.D { background: rgba(250, 204, 21, 0.2); color: #facc15; }
.ls-res-pill.L { background: rgba(239, 68, 68, 0.2); color: #f87171; }

/* Responsive Adjustments (320px to 1920px) */
@media (max-width: 768px) {
  .ls-match-row {
    grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr) 30px;
    grid-template-areas:
      "status status status star"
      "home score away star";
    gap: 6px;
    padding: 10px 10px;
  }
  .ls-status-col {
    grid-area: status;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .ls-team-cell.home { grid-area: home; }
  .ls-score-col { grid-area: score; }
  .ls-team-cell.away { grid-area: away; }
  .ls-match-star { grid-area: star; }
  .ls-team-txt { font-size: 12px; }
  .ls-score-box { min-width: 58px; font-size: 13px; padding: 4px 6px; }
  .ls-lineup-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .ls-detail-modal { padding: 0; align-items: flex-end; }
  .ls-detail-panel {
    width: 100%;
    max-height: 94dvh;
    border-radius: 18px 18px 0 0;
    padding-bottom: var(--safe-bottom, 0px);
  }
  .ls-scoreboard-hero {
    grid-template-columns: minmax(0, 1fr) 86px minmax(0, 1fr);
    padding: 12px 10px;
  }
  .ls-det-score { font-size: 22px; }
  .ls-det-team img { width: 36px; height: 36px; }
  .ls-det-team strong { font-size: 12.5px; }
}

@media (max-width: 360px) {
  .ls-hero-head { padding: 12px; }
  .ls-hero-title h2 { font-size: 16.5px; }
  .ls-live-mode-btn { padding: 0 10px; font-size: 11.5px; }
  .ls-date-step { width: 30px; }
  .ls-date-input { max-width: 118px; font-size: 11px; padding: 0 5px; }
}
