/* ==========================================================================
   SOWIN LIVE ARENA — STANDARD 1360px WIDTH, EQUAL COLUMN HEIGHT & CLEAN NAV
   ========================================================================== */

/* Top Header Navigation Anti-Overlap Guard (Desktop > 900px ONLY so mobile header never overflows!) */
@media (min-width: 901px) {
  .top-header .header-inner {
    gap: 0.65rem;
  }
  .top-header .header-brand-world-group {
    gap: 0.6rem;
    flex-shrink: 0;
  }
  .top-header .sowin-world-switcher {
    flex-shrink: 0;
  }
  .top-header .world-switch-btn {
    padding: 0.4rem 0.72rem;
    font-size: 0.81rem;
    white-space: nowrap;
  }
  .top-header .main-nav {
    flex-shrink: 0;
    gap: 0.18rem;
    padding: 0.24rem;
  }
  .top-header .main-nav .nav-tab {
    padding: 0.42rem 0.74rem;
    font-size: 0.81rem;
    white-space: nowrap;
  }
  .top-header .header-actions {
    gap: 0.45rem;
    flex-shrink: 0;
  }
}

.live-arena-shell {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-bottom: 3rem;
}

/* Header Nav Live Badge Pulse */
.nav-tab-live {
  position: relative;
}
.nav-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.65);
  animation: livePulseDot 2s infinite;
  flex-shrink: 0;
}
.nav-live-dot.is-standby {
  background: #64748b;
  box-shadow: none;
  animation: none;
}
@keyframes livePulseDot {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.65); }
  70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ==========================================================================
   1. TOP BROADCAST SCOREBOARD RIBBON — ZERO CLIPPING INSIDE 1360px
   ========================================================================== */
.la-scoreboard-ribbon {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.55rem 0.7rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  scrollbar-width: thin;
}

.la-game-chip {
  flex: 0 0 184px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.34rem;
  padding: 0.46rem 0.62rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
  text-align: left;
  color: var(--text-primary);
  min-width: 184px;
}
[data-theme="light"] .la-game-chip {
  background: #f8fafc;
}
.la-game-chip:hover {
  border-color: rgba(255, 255, 255, 0.26);
}
.la-game-chip.is-active {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.09);
}
.la-game-chip.is-all-chip {
  padding: 0.46rem 0.78rem;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.76rem;
  white-space: nowrap;
}

.la-game-chip-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
}
.la-game-clock {
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
}
.la-game-chip.is-final .la-game-clock {
  color: var(--text-muted);
}

.la-game-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
}
.la-team-side {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.la-team-logo-sm {
  width: 17px;
  height: 17px;
  object-fit: contain;
  flex-shrink: 0;
}
.la-team-logo-xs {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
  vertical-align: middle;
}

/* ==========================================================================
   2. COMMAND HEADER BAR
   ========================================================================== */
.la-command-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
}

.la-title-cluster {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.la-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #f87171;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
[data-theme="light"] .la-live-indicator {
  color: #dc2626;
}
.la-live-indicator.is-standby {
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(148, 163, 184, 0.25);
  color: var(--text-secondary);
}
[data-theme="light"] .la-live-indicator.is-standby {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}
.la-main-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.16rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-primary);
}
.la-sync-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Mode Switcher Tabs */
.la-mode-tabs {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.45);
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  gap: 3px;
}
[data-theme="light"] .la-mode-tabs {
  background: #f1f5f9;
}
.la-mode-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.42rem 0.82rem;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.la-mode-btn:hover {
  color: var(--text-primary);
}
.la-mode-btn.is-active {
  background: rgba(255, 255, 255, 0.11);
  color: var(--text-primary);
}
[data-theme="light"] .la-mode-btn.is-active {
  background: #ffffff;
  color: #0f172a;
}
.la-lbl-short {
  display: none;
}

.la-sim-controls {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}
.la-btn-sim {
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.42rem 0.82rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
[data-theme="light"] .la-btn-sim {
  background: #0f172a;
  color: #ffffff;
}
.la-btn-sim:hover {
  background: rgba(255, 255, 255, 0.13);
}
.la-btn-ghost {
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.42rem 0.68rem;
  border-radius: 8px;
  cursor: pointer;
}
.la-btn-ghost:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   3. MAIN 2-COLUMN ARENA LAYOUT — EXACT SAME BOTTOM HEIGHT LINE!
   ========================================================================== */
.la-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 0.9rem;
  align-items: stretch;
}
#la-main-stage-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
@media (max-width: 1120px) {
  .la-main-grid {
    grid-template-columns: 1fr;
  }
}

.la-squad-hero-card {
  flex: 1;
  height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  overflow: visible;
  position: relative;
}

/* Squad Picker Bar with Opaque Dropdown */
.la-squad-picker-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  z-index: 50;
}
.la-squad-pills {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: nowrap;
  min-width: 0;
}
.la-squad-pill-btn {
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  padding: 0.42rem 0.78rem;
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.la-squad-pill-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.24);
}
.la-squad-pill-btn.is-active {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  color: var(--text-primary);
}
.la-squad-pill-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 800;
  color: #10b981;
}

.la-more-squads-wrap {
  position: relative;
  flex-shrink: 0;
}
.la-more-squads-btn {
  border: 1px solid rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.08);
  color: var(--text-primary);
  padding: 0.42rem 0.78rem;
  border-radius: 9px;
  font-size: 0.77rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  white-space: nowrap;
  transition: all 0.15s ease;
}
[data-theme="light"] .la-more-squads-btn {
  background: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
}
.la-more-squads-btn:hover,
.la-more-squads-btn.is-open {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.2);
}

.la-more-squads-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 375px;
  max-width: 90vw;
  max-height: 330px;
  overflow-y: auto;
  scrollbar-width: thin;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 0.55rem;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(16, 185, 129, 0.25);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
[data-theme="light"] .la-more-squads-menu {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.15);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.22);
}
.la-more-menu-header {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0.3rem 0.6rem 0.2rem;
}
.la-more-squad-item {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  padding: 0.6rem 0.78rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  text-align: left;
  font-size: 0.81rem;
  font-weight: 700;
  transition: all 0.14s ease;
}
[data-theme="light"] .la-more-squad-item {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.07);
}
.la-more-squad-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}
[data-theme="light"] .la-more-squad-item:hover {
  background: #f1f5f9;
}
.la-more-squad-item.is-active {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.14);
}

.la-comp-tag {
  font-size: 0.71rem;
  font-weight: 700;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  padding: 0.3rem 0.62rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}
[data-theme="light"] .la-comp-tag {
  background: #f8fafc;
}

/* Telemetry Strip */
.la-telemetry-banner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}
.la-stat-box {
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.22rem;
  min-height: 88px;
}
[data-theme="light"] .la-stat-box {
  background: #f8fafc;
}
.la-stat-box.is-primary {
  border-color: rgba(16, 185, 129, 0.38);
  background: rgba(16, 185, 129, 0.05);
}
.la-stat-box.is-rank-box {
  border-color: rgba(56, 189, 248, 0.32);
  background: rgba(56, 189, 248, 0.04);
}
.la-stat-box.is-target-box {
  border-color: rgba(168, 85, 247, 0.32);
  background: rgba(168, 85, 247, 0.04);
}
.la-stat-box.is-reward-box {
  border-color: rgba(245, 158, 11, 0.36);
  background: rgba(245, 158, 11, 0.05);
}
.la-stat-box.is-reward-box.is-outside {
  border-color: var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}
[data-theme="light"] .la-stat-box.is-reward-box.is-outside {
  background: #f8fafc;
}
.la-stat-lbl {
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  white-space: nowrap;
}
.la-stat-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.44rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  line-height: 1.15;
  white-space: nowrap;
}
.la-stat-val.is-reward-val {
  font-size: 1.06rem;
  color: #fbbf24;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
[data-theme="light"] .la-stat-val.is-reward-val {
  color: #b45309;
}
.la-stat-box.is-reward-box.is-outside .la-stat-val.is-reward-val {
  color: var(--text-secondary);
}
.la-stat-box.is-primary .la-stat-val {
  color: #10b981;
}
.la-rank-delta-pill {
  font-size: 0.69rem;
  font-weight: 800;
  padding: 0.1rem 0.36rem;
  border-radius: 5px;
  background: rgba(16, 185, 129, 0.16);
  color: #10b981;
}
.la-rank-delta-pill.is-down {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}
.la-stat-sub {
  font-size: 0.71rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.la-sparkline-svg {
  width: 100%;
  height: 28px;
  display: block;
  overflow: visible;
}

/* Target Progress Rail */
.la-target-rail-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.la-target-rail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
}
.la-target-rail {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  position: relative;
}
[data-theme="light"] .la-target-rail {
  background: #e2e8f0;
}
.la-target-rail-fill {
  height: 100%;
  border-radius: 999px;
  background: #10b981;
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   4. 5-CARD LIVE LINEUP GRID — TALL SYMMETRICAL CARDS MATCHING FEED HEIGHT
   ========================================================================== */
.la-cards-court-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
  align-items: stretch;
}
@media (max-width: 1120px) {
  .la-cards-court-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.la-player-card {
  position: relative;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 0.85rem 0.56rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 26px 56px 74px 18px 112px 44px;
  gap: 0.68rem;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}
[data-theme="light"] .la-player-card {
  background: #ffffff;
}
.la-player-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
}
[data-theme="light"] .la-player-card:hover {
  border-color: rgba(15, 23, 42, 0.32);
}

.la-player-card.is-just-scored {
  border-color: #10b981;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.4), 0 12px 28px -10px rgba(16, 185, 129, 0.45);
}
.la-player-card.is-just-tov {
  border-color: #ef4444;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.4);
}

/* ROW 1 (26px exact): Clock on left, Concise Edition Bonus on right */
.la-card-top-bar {
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.22rem;
  font-size: 0.62rem;
  font-weight: 700;
  min-width: 0;
}
.la-card-clock-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
.la-card-clock-badge.is-final {
  color: var(--text-muted);
}
.la-card-bonus-pill {
  padding: 0.12rem 0.32rem;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
[data-theme="light"] .la-card-bonus-pill {
  background: #f1f5f9;
}

/* ROW 2 (56px exact): Avatar + Name + Official Team Logos Matchup (Fits 100% Inside Card!) */
.la-card-identity {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  max-width: 100%;
}
.la-player-avatar-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  border: 1.5px solid var(--border-subtle);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.la-player-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.la-player-name-col {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  overflow: hidden;
}
.la-player-name {
  font-weight: 800;
  font-size: 0.84rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.la-player-matchup {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  line-height: 1.2;
  max-width: 100%;
}
.la-player-matchup .la-team-logo-xs {
  width: 12px;
  height: 12px;
}

/* ROW 3: Big Score Hero Strip */
.la-card-score-strip {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 0.42rem 0.55rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.065);
  min-width: 0;
  overflow: hidden;
}
[data-theme="light"] .la-card-score-strip {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
}
.la-card-pts-left {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.la-card-score-strip .la-stat-lbl {
  overflow: hidden;
  text-overflow: ellipsis;
}
.la-card-game-sub {
  font-size: 0.65rem;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.la-card-pts-main {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.38rem;
  font-weight: 800;
  color: #10b981;
  line-height: 1.1;
}
.la-card-pts-main.is-unplayed {
  color: var(--text-muted);
}
.la-card-pts-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 0.63rem;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  flex: 0 0 auto;
}

/* ROW 4 (18px exact): Squad Share Progress Bar */
.la-contrib-row {
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  font-size: 0.66rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.la-contrib-track {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
[data-theme="light"] .la-contrib-track {
  background: #e2e8f0;
}
.la-contrib-fill {
  height: 100%;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.82);
  transition: width 0.4s ease;
}

/* ROW 5 (112px exact): 2x4 Box Score Matrix */
.la-boxscore-grid {
  height: 112px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, 1fr);
  gap: 3px;
  min-width: 0;
}
.la-bstat {
  background: rgba(255, 255, 255, 0.032);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  padding: 0 2px;
  transition: background 0.25s ease, border-color 0.25s ease;
}
[data-theme="light"] .la-bstat {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.05);
}
.la-bstat.is-stat-bumped {
  background: rgba(16, 185, 129, 0.26);
  border-color: rgba(16, 185, 129, 0.55);
}
.la-bstat-k {
  font-size: 0.54rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: -0.02em;
}
.la-bstat-v {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-primary);
}
.la-bstat.is-tov .la-bstat-v {
  color: var(--text-secondary);
}

/* ROW 6 (44px exact): High-Contrast Readable Live Event Banner */
.la-card-event-banner {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.28rem;
  padding: 0 0.45rem;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.038);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  min-width: 0;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
[data-theme="light"] .la-card-event-banner {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.09);
}
.la-card-event-banner.is-live-flash {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #ffffff;
}
[data-theme="light"] .la-card-event-banner.is-live-flash {
  background: #d1fae5;
  color: #065f46;
}
.la-card-event-banner.is-neg-flash {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fecaca;
}
.la-card-event-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.la-card-event-delta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.71rem;
  font-weight: 800;
  padding: 0.14rem 0.38rem;
  border-radius: 5px;
  background: rgba(16, 185, 129, 0.22);
  color: #34d399;
  flex-shrink: 0;
}
[data-theme="light"] .la-card-event-delta {
  color: #047857;
}
.la-card-event-delta.is-neg {
  background: rgba(239, 68, 68, 0.22);
  color: #f87171;
}

/* ==========================================================================
   5. MULTI-SQUAD COMMAND CENTER GRID
   ========================================================================== */
.la-multi-squad-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
@media (max-width: 900px) {
  .la-multi-squad-grid {
    grid-template-columns: 1fr;
  }
}
.la-multi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.la-multi-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}
.la-multi-title {
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--text-primary);
}
.la-multi-comp {
  font-size: 0.73rem;
  color: var(--text-muted);
}
.la-multi-score-big {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.38rem;
  font-weight: 800;
  color: var(--text-primary);
  text-align: right;
}
.la-multi-roster-list {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}
.la-multi-player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.42rem 0.68rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  cursor: pointer;
}
[data-theme="light"] .la-multi-player-row {
  background: #f8fafc;
}
.la-multi-player-row.is-just-scored {
  border-color: rgba(16, 185, 129, 0.6);
  background: rgba(16, 185, 129, 0.08);
}

/* ==========================================================================
   6. CUSTOM WATCHLIST & TEAM LOGO FILTER PILLS IN PICKER MODAL
   ========================================================================== */
.la-watchlist-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.la-add-player-btn {
  border: 1px solid #10b981;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.48rem 0.95rem;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
[data-theme="light"] .la-add-player-btn {
  color: #047857;
}
.la-add-player-btn:hover {
  background: #10b981;
  color: #fff;
}

.la-custom-picker-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}
.la-player-toggle-chip {
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-secondary);
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}
.la-player-toggle-chip.is-selected {
  border-color: rgba(16, 185, 129, 0.65);
  background: rgba(16, 185, 129, 0.12);
  color: var(--text-primary);
}

.la-team-logo-filter-strip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.35rem 0.15rem 0.5rem;
  scrollbar-width: thin;
}
.la-team-filter-pill {
  flex: 0 0 auto;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  padding: 0.34rem 0.65rem;
  border-radius: 9px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  transition: all 0.14s ease;
}
[data-theme="light"] .la-team-filter-pill {
  background: #f8fafc;
}
.la-team-filter-pill:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-primary);
}
.la-team-filter-pill.is-active {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  color: var(--text-primary);
}

.la-picker-search-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.55);
  color: var(--text-primary);
  font-size: 0.86rem;
  outline: none;
}
[data-theme="light"] .la-picker-search-input {
  background: #f8fafc;
}
.la-picker-search-input:focus {
  border-color: #10b981;
}
.la-picker-list {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  max-height: 370px;
  overflow-y: auto;
  padding-right: 4px;
}
.la-picker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.52rem 0.75rem;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}
[data-theme="light"] .la-picker-row {
  background: #f8fafc;
}
.la-picker-row.is-selected {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

/* ==========================================================================
   7. RIGHT COLUMN: LIVE PLAY-BY-PLAY STREAM (ALIGNED TO LEFT SQUAD BOTTOM LINE)
   ========================================================================== */
.la-feed-panel {
  height: 100%;
  max-height: 678px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.la-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.la-feed-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.94rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.42rem;
}
.la-feed-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.52rem;
  overflow-y: auto;
  padding-right: 2px;
}
.la-feed-item {
  position: relative;
  padding: 0.62rem 0.72rem 0.62rem 0.82rem;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid var(--border-subtle);
  border-left: 3.5px solid #10b981;
  display: flex;
  flex-direction: column;
  gap: 0.34rem;
  transition: transform 0.18s ease, background 0.22s ease;
}
[data-theme="light"] .la-feed-item {
  background: #f8fafc;
}
.la-feed-item.is-new-item {
  animation: laFeedSlideIn 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes laFeedSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Distinct Left Accent Bar & Action Pill Color per Basketball Play Category (Instant Recognition from Afar!) */
.la-feed-item[data-play-type="THREE_PT"] { border-left-color: #38bdf8; }
.la-feed-item[data-play-type="POINTS"],
.la-feed-item[data-play-type="FREE_THROW"] { border-left-color: #10b981; }
.la-feed-item[data-play-type="REBOUND"] { border-left-color: #f59e0b; }
.la-feed-item[data-play-type="ASSIST"] { border-left-color: #a855f7; }
.la-feed-item[data-play-type="BLOCK"] { border-left-color: #60a5fa; }
.la-feed-item[data-play-type="STEAL"] { border-left-color: #2dd4bf; }
.la-feed-item[data-play-type="TURNOVER"] { border-left-color: #ef4444; }
.la-feed-item[data-play-type="ON_COURT"] { border-left-color: #64748b; }

.la-feed-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}
.la-feed-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.la-feed-action-pill {
  font-family: 'Space Grotesk', 'JetBrains Mono', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 0.16rem 0.48rem;
  border-radius: 6px;
  white-space: nowrap;
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.34);
}
[data-theme="light"] .la-feed-action-pill {
  background: #ecfdf5;
  color: #047857;
}
.la-feed-action-pill[data-pill-type="THREE_PT"] {
  background: rgba(56, 189, 248, 0.17);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}
[data-theme="light"] .la-feed-action-pill[data-pill-type="THREE_PT"] {
  background: #e0f2fe;
  color: #0369a1;
}
.la-feed-action-pill[data-pill-type="REBOUND"] {
  background: rgba(245, 158, 11, 0.17);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}
[data-theme="light"] .la-feed-action-pill[data-pill-type="REBOUND"] {
  background: #fef3c7;
  color: #b45309;
}
.la-feed-action-pill[data-pill-type="ASSIST"] {
  background: rgba(168, 85, 247, 0.17);
  border-color: rgba(168, 85, 247, 0.4);
  color: #c084fc;
}
[data-theme="light"] .la-feed-action-pill[data-pill-type="ASSIST"] {
  background: #f3e8ff;
  color: #7e22ce;
}
.la-feed-action-pill[data-pill-type="BLOCK"] {
  background: rgba(96, 165, 250, 0.18);
  border-color: rgba(96, 165, 250, 0.42);
  color: #60a5fa;
}
[data-theme="light"] .la-feed-action-pill[data-pill-type="BLOCK"] {
  background: #dbeafe;
  color: #1d4ed8;
}
.la-feed-action-pill[data-pill-type="STEAL"] {
  background: rgba(45, 212, 191, 0.17);
  border-color: rgba(45, 212, 191, 0.4);
  color: #2dd4bf;
}
[data-theme="light"] .la-feed-action-pill[data-pill-type="STEAL"] {
  background: #ccfbf1;
  color: #0f766e;
}
.la-feed-action-pill[data-pill-type="TURNOVER"] {
  background: rgba(239, 68, 68, 0.17);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}
[data-theme="light"] .la-feed-action-pill[data-pill-type="TURNOVER"] {
  background: #fee2e2;
  color: #b91c1c;
}
.la-feed-action-pill[data-pill-type="ON_COURT"] {
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(148, 163, 184, 0.3);
  color: var(--text-secondary);
}

.la-feed-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}
.la-feed-player-line {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.28;
}
.la-feed-action-desc {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.32;
}
.la-feed-milestone-pill {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.12rem 0.42rem;
  border-radius: 5px;
  background: rgba(251, 191, 36, 0.18);
  color: #fbbf24;
  width: fit-content;
}
[data-theme="light"] .la-feed-milestone-pill {
  background: #fef3c7;
  color: #b45309;
}
.la-feed-meta-foot {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.66rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}
.la-feed-delta-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.18rem 0.48rem;
  border-radius: 7px;
  background: rgba(16, 185, 129, 0.16);
  color: #10b981;
  white-space: nowrap;
  flex-shrink: 0;
}
.la-feed-delta-badge.is-neg {
  background: rgba(239, 68, 68, 0.16);
  color: #ef4444;
}

/* Modal Backdrop & Card */
.la-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.76);
  backdrop-filter: blur(4px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.la-modal-card {
  width: 100%;
  max-width: 600px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.75);
}
[data-theme="light"] .la-modal-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.15);
}
.la-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border-subtle);
}
.la-formula-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.la-formula-table th,
.la-formula-table td {
  padding: 0.42rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}
.la-formula-table th {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-muted);
}
.la-formula-table td.is-num {
  font-family: 'JetBrains Mono', monospace;
  text-align: right;
  font-weight: 700;
}

/* ==========================================================================
   8. CINEMATIC LIVE ARENA LOADING STAGE (RADAR SWEEP & 5-CARD FORMATION WAVE)
   ========================================================================== */
#view-live {
  position: relative;
  min-height: 68vh;
}

#view-live.is-la-loading #live-arena-root {
  filter: blur(8px);
  opacity: 0.35;
  pointer-events: none;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.la-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 920;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(9, 13, 24, 0.56);
  backdrop-filter: blur(10px);
  animation: laOverlayFadeIn 0.22s ease;
}
[data-theme="light"] .la-loading-overlay {
  background: rgba(241, 245, 249, 0.72);
}
.la-loading-overlay.hidden {
  display: none !important;
}

@keyframes laOverlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.la-loader-card {
  width: 100%;
  max-width: 472px;
  background: #0f172a;
  border: 1.5px solid rgba(16, 185, 129, 0.34);
  border-radius: 24px;
  padding: 1.95rem 2rem 1.7rem;
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.68), 0 0 42px rgba(16, 185, 129, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}
[data-theme="light"] .la-loader-card {
  background: #ffffff;
  border-color: rgba(16, 185, 129, 0.42);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.16), 0 0 32px rgba(16, 185, 129, 0.1);
}

.la-loader-scene {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.la-loader-hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.78rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.36);
}
.la-loader-hud-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: laHudPulse 0.95s ease-in-out infinite alternate;
}
.la-loader-hud-txt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: #34d399;
}
[data-theme="light"] .la-loader-hud-txt {
  color: #047857;
}

@keyframes laHudPulse {
  from { transform: scale(0.82); opacity: 0.55; }
  to { transform: scale(1.25); opacity: 1; }
}

.la-radar-stage {
  position: relative;
  width: 196px;
  height: 158px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.la-radar-svg {
  position: absolute;
  width: 176px;
  height: 176px;
  animation: laSlowSpin 22s linear infinite;
}
.la-radar-sweep {
  position: absolute;
  width: 156px;
  height: 156px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(16, 185, 129, 0.34) 0deg, rgba(56, 189, 248, 0.08) 55deg, transparent 105deg, transparent 360deg);
  animation: laRadarSweep 2.4s linear infinite;
  pointer-events: none;
}

@keyframes laRadarSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes laSlowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

.la-radar-blip {
  position: absolute;
  z-index: 4;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(16, 185, 129, 0.55);
  color: #34d399;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}
[data-theme="light"] .la-radar-blip {
  background: #ecfdf5;
  color: #047857;
}
.la-radar-blip.b1 {
  top: 8px;
  right: 8px;
  animation: laBlipFloat 2.1s ease-in-out infinite;
}
.la-radar-blip.b2 {
  bottom: 10px;
  left: 4px;
  border-color: rgba(56, 189, 248, 0.55);
  color: #38bdf8;
  animation: laBlipFloat 2.1s ease-in-out 0.7s infinite;
}
[data-theme="light"] .la-radar-blip.b2 {
  background: #f0f9ff;
  color: #0369a1;
}
.la-radar-blip.b3 {
  top: 14px;
  left: 10px;
  border-color: rgba(251, 191, 36, 0.55);
  color: #fbbf24;
  animation: laBlipFloat 2.1s ease-in-out 1.35s infinite;
}
[data-theme="light"] .la-radar-blip.b3 {
  background: #fffbeb;
  color: #b45309;
}

@keyframes laBlipFloat {
  0%, 100% { transform: translateY(0) scale(0.94); opacity: 0.65; }
  50% { transform: translateY(-4px) scale(1.06); opacity: 1; }
}

/* 5-Card Formation Wave Inside Radar */
.la-loader-formation {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}
.la-mini-slot {
  width: 28px;
  height: 44px;
  border-radius: 7px;
  background: linear-gradient(165deg, #1e293b, #0f172a);
  border: 1px solid rgba(148, 163, 184, 0.32);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 5px 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--text-secondary);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  animation: laCardWave 1.5s ease-in-out infinite;
}
[data-theme="light"] .la-mini-slot {
  background: linear-gradient(165deg, #ffffff, #f1f5f9);
  border-color: rgba(15, 23, 42, 0.16);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.1);
}
.la-mini-slot.is-center {
  width: 34px;
  height: 54px;
  border-color: #10b981;
  background: linear-gradient(165deg, rgba(16, 185, 129, 0.24), rgba(15, 23, 42, 0.95));
  color: #ffffff;
  font-size: 0.85rem;
}
[data-theme="light"] .la-mini-slot.is-center {
  background: linear-gradient(165deg, #d1fae5, #ecfdf5);
}
.la-mini-slot i {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 99px;
  background: #10b981;
  opacity: 0.85;
}
.la-mini-slot.s1 { animation-delay: 0s; }
.la-mini-slot.s2 { animation-delay: 0.14s; }
.la-mini-slot.s3 { animation-delay: 0.28s; }
.la-mini-slot.s4 { animation-delay: 0.42s; }
.la-mini-slot.s5 { animation-delay: 0.56s; }

@keyframes laCardWave {
  0%, 100% { transform: translateY(0); border-color: rgba(148, 163, 184, 0.28); }
  45% { transform: translateY(-7px); border-color: #10b981; box-shadow: 0 10px 20px rgba(16, 185, 129, 0.28); }
}

.la-loader-pips {
  display: flex;
  align-items: center;
  gap: 6px;
}
.la-lpip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.48rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: all 0.22s ease;
}
[data-theme="light"] .la-lpip {
  background: #f8fafc;
}
.la-lpip.is-active {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.55);
  color: #34d399;
}
[data-theme="light"] .la-lpip.is-active {
  background: #ecfdf5;
  color: #047857;
}
.la-lpip-line {
  width: 14px;
  height: 1.5px;
  background: var(--border-subtle);
}

.la-loader-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.42rem;
}
.la-loader-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.14rem;
  font-weight: 800;
  color: var(--text-primary);
}
.la-loader-step-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.la-loader-step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.14rem 0.42rem;
  border-radius: 5px;
  background: rgba(16, 185, 129, 0.16);
  color: #10b981;
}

.la-loader-rail {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  position: relative;
}
[data-theme="light"] .la-loader-rail {
  background: #e2e8f0;
}
.la-loader-rail-bar {
  width: 45%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981, #38bdf8, #10b981);
  animation: laRailSlide 1.35s ease-in-out infinite;
}
@keyframes laRailSlide {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(230%); }
}

/* ==========================================================================
   9. MOBILE / NARROW VIEWPORT DESKTOP-ONLY PROFESSIONAL GATE (<= 900px)
   ========================================================================== */
.la-mobile-desktop-gate {
  display: none;
}

@media (max-width: 900px) {
  #view-live {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  #view-live #live-arena-root,
  #view-live #la-loading-overlay {
    display: none !important;
  }

  #view-live .la-mobile-desktop-gate {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.85rem 0.35rem 5.5rem;
    min-height: 64vh;
  }

  .la-mdg-card {
    position: relative;
    width: 100%;
    max-width: min(410px, calc(100vw - 28px));
    box-sizing: border-box;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1.5px solid var(--border-subtle);
    border-radius: 20px;
    padding: 1.45rem 1.05rem 1.35rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.9rem;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
  }
  [data-theme="light"] .la-mdg-card {
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
  }

  .la-mdg-glow {
    position: absolute;
    top: -60px;
    width: 200px;
    height: 120px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, transparent 72%);
    pointer-events: none;
  }

  .la-mdg-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
    box-sizing: border-box;
    gap: 0.36rem;
    padding: 0.26rem 0.62rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.11);
    border: 1px solid rgba(16, 185, 129, 0.34);
    color: #34d399;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.57rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.35;
  }
  [data-theme="light"] .la-mdg-badge {
    background: #ecfdf5;
    color: #047857;
  }
  .la-mdg-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    flex-shrink: 0;
  }

  /* Mini Desktop Monitor Illustration */
  .la-mdg-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0.15rem 0;
    max-width: 100%;
  }
  .la-mdg-monitor {
    width: min(192px, 68vw);
    height: 108px;
    box-sizing: border-box;
    border-radius: 12px;
    background: #0b1120;
    border: 2px solid rgba(148, 163, 184, 0.32);
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  }
  [data-theme="light"] .la-mdg-monitor {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
  }
  .la-mdg-monitor-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .la-mdg-win-dots {
    display: inline-flex;
    gap: 4px;
  }
  .la-mdg-win-dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.45);
    display: inline-block;
  }
  .la-mdg-live-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.52rem;
    font-weight: 800;
    color: #10b981;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(16, 185, 129, 0.14);
  }
  .la-mdg-monitor-body {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 38px;
    gap: 6px;
    align-items: stretch;
  }
  .la-mdg-mini-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
  }
  .la-mdg-mini-cards span {
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.22);
  }
  [data-theme="light"] .la-mdg-mini-cards span {
    background: #ffffff;
    border-color: #e2e8f0;
  }
  .la-mdg-mini-cards span.is-lit {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.18);
  }
  .la-mdg-mini-feed {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .la-mdg-mini-feed i {
    flex: 1;
    border-radius: 4px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.24);
    display: block;
  }
  .la-mdg-stand {
    width: 44px;
    height: 7px;
    background: rgba(148, 163, 184, 0.28);
    border-radius: 0 0 6px 6px;
  }
  .la-mdg-phone-chip {
    position: absolute;
    bottom: -5px;
    right: -4px;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: #0f172a;
    border: 1px solid rgba(56, 189, 248, 0.48);
    color: #38bdf8;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.58rem;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
  }
  [data-theme="light"] .la-mdg-phone-chip {
    background: #f0f9ff;
    color: #0369a1;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  }

  .la-mdg-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0.1rem 0 0;
    color: var(--text-primary);
  }
  .la-mdg-desc {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
    max-width: 100%;
  }

  .la-mdg-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.36rem;
    width: 100%;
  }
  .la-mdg-feat-pill {
    font-size: 0.69rem;
    font-weight: 700;
    padding: 0.26rem 0.54rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
  }
  [data-theme="light"] .la-mdg-feat-pill {
    background: #f8fafc;
  }

  .la-mdg-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.48rem;
    margin-top: 0.2rem;
  }
  .la-mdg-btn {
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    padding: 0.66rem 0.75rem;
    border-radius: 11px;
    font-size: 0.82rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: transform 0.14s ease, opacity 0.14s ease;
  }
  .la-mdg-btn.is-primary {
    background: #10b981;
    color: #ffffff;
    border: 1px solid #10b981;
  }
  .la-mdg-btn.is-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
  }
  [data-theme="light"] .la-mdg-btn.is-secondary {
    background: #f1f5f9;
  }
}
