/* Live Games lobby — sticky three-column shell */

.lg-page {
  padding-bottom: 24px;
}

.lg-top {
  display: grid;
  grid-template-columns: minmax(200px, 300px) minmax(0, 1fr);
  gap: 16px;
  align-items: end;
  margin: 18px 0 14px;
}

.lg-title h1 {
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.lg-title p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  max-width: 32ch;
}

.lg-banners {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 148px;
  background: var(--card);
}

.lg-banners .hero-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.lg-banners .hero-track::-webkit-scrollbar { display: none; }

.lg-slide {
  position: relative;
  min-width: 100%;
  scroll-snap-align: start;
  aspect-ratio: 920 / 220;
  min-height: 148px;
}

.lg-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lg-banners .dots {
  right: 12px;
  bottom: 10px;
}

.lg-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) minmax(220px, 280px) 70px;
  gap: 14px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.lg-layout > * {
  min-width: 0;
  max-width: 100%;
}

.lg-left,
.lg-right,
.lg-rail {
  position: sticky;
  top: calc(var(--header) + 10px);
  max-height: calc(100vh - var(--header) - 20px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #2a4568 transparent;
}

.lg-panel {
  background: #101e33;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 10px;
}

.lg-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.lg-mode button {
  border: 0;
  border-radius: 8px;
  padding: 9px 8px;
  background: #0a1628;
  color: #c5d4e8;
  font-weight: 700;
  font-size: 13px;
}

.lg-mode button[aria-pressed="true"] {
  background: var(--blue);
  color: #fff;
}

.lg-tools {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.lg-tools button {
  flex: 1;
  border: 0;
  border-radius: 8px;
  background: #0a1628;
  color: #8ea3bd;
  padding: 8px 4px;
  font-size: 11px;
}

.lg-tools button:hover { color: #fff; }

.lg-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lg-tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 4px;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 2px solid transparent;
}

.lg-tabs button[aria-selected="true"] {
  color: #fff;
  border-bottom-color: var(--blue);
}

.lg-sports {
  display: grid;
  gap: 2px;
}

.lg-sport {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 8px 8px;
  border-radius: 8px;
  color: #e8eef7;
  font-size: 13.5px;
  border: 0;
  background: transparent;
  text-align: left;
  width: 100%;
}

.lg-sport:hover,
.lg-sport[aria-current="true"] {
  background: rgba(5, 129, 255, 0.16);
}

.lg-sport img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.lg-sport .count {
  color: #7f93ad;
  font-size: 12px;
  background: #0a1628;
  border-radius: 999px;
  padding: 2px 7px;
  min-width: 28px;
  text-align: center;
}

.lg-sport .chev {
  color: #5f7592;
  font-size: 12px;
}

.lg-center {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.lg-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.lg-filters::-webkit-scrollbar { display: none; }

.lg-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--card);
  color: #d5e2f2;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.lg-chip img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.lg-chip[aria-pressed="true"],
.lg-chip:hover {
  background: rgba(5, 129, 255, 0.22);
  border-color: rgba(5, 129, 255, 0.4);
  color: #fff;
}

.lg-league {
  background: #101e33;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
}

.lg-league-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #0d1a2d;
  color: #c5d4e8;
  font-size: 13px;
  font-weight: 700;
}

.lg-league-head .live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ff6b6b;
  font-size: 12px;
  font-weight: 700;
}

.lg-markets {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(6, minmax(52px, 1fr));
  gap: 6px;
  padding: 6px 12px;
  color: #7f93ad;
  font-size: 11px;
  text-align: center;
}

.lg-markets span:first-child { text-align: left; }

.lg-match {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(6, minmax(52px, 1fr));
  gap: 6px;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.lg-teams {
  min-width: 0;
}

.lg-teams .row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 2px 0;
}

.lg-teams .score {
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.lg-teams .meta {
  margin-top: 4px;
  color: #ff6b6b;
  font-size: 11px;
  font-weight: 700;
}

.lg-odd {
  display: grid;
  place-items: center;
  min-height: 36px;
  border-radius: 8px;
  background: #16263e;
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: #f0f4fa;
  font-weight: 700;
  font-size: 13px;
  padding: 4px;
}

.lg-odd:hover {
  background: rgba(5, 129, 255, 0.28);
  border-color: rgba(5, 129, 255, 0.45);
}

.lg-odd small {
  display: block;
  color: #7f93ad;
  font-size: 10px;
  font-weight: 500;
}

.lg-odd-link {
  grid-column: 2 / -1;
  justify-self: end;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  border: 0;
  padding: 8px 4px;
}

.lg-odd-link:hover { color: #7ecbff; }

.lg-break {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: #ffd000;
  font-weight: 800;
  font-size: 14px;
  background: rgba(255, 208, 0, 0.06);
  border-radius: 10px;
}

.lg-format {
  display: flex;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 12px;
  padding: 4px 2px 8px;
}

.lg-format strong { color: #d5e2f2; }

.betslip {
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

.betslip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8ea3bd;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.betslip-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.betslip-tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 2px solid transparent;
}

.betslip-tabs button[aria-selected="true"] {
  color: #fff;
  border-bottom-color: var(--blue);
}

.betslip-empty {
  flex: 1;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 8px;
  padding: 24px 12px;
  color: var(--muted);
}

.betslip-empty .ticket {
  width: 56px;
  height: 56px;
  margin: 0 auto 6px;
  border-radius: 12px;
  background: linear-gradient(160deg, #1a4f9a, #0d2a55);
  display: grid;
  place-items: center;
  font-size: 24px;
}

.betslip-empty b {
  color: #e8eef7;
  font-size: 15px;
}

.betslip-empty span {
  font-size: 12.5px;
  line-height: 1.4;
}

.betslip-code {
  width: 100%;
  border: 1px solid #24395a;
  background: #0a1628;
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 10px;
  color: #c5d4e8;
  text-align: left;
}

.betslip-settings {
  width: 100%;
  margin-top: 8px;
  border: 0;
  border-radius: 10px;
  background: #0a1628;
  color: #c5d4e8;
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
}

.lg-rail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 4px;
  background: #0d1a2d;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  align-items: center;
}

.lg-rail a {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 100%;
  text-align: center;
  color: #c5d4e8;
  font-size: 10px;
  line-height: 1.15;
  padding: 4px 2px;
  border-radius: 10px;
}

.lg-rail a:hover {
  background: rgba(5, 129, 255, 0.16);
  color: #fff;
}

.lg-rail img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

@media (max-width: 1200px) {
  .lg-layout {
    grid-template-columns: 220px minmax(0, 1fr) 64px;
  }
  .lg-right { display: none; }
  .lg-markets,
  .lg-match {
    grid-template-columns: minmax(160px, 1.5fr) repeat(4, minmax(48px, 1fr));
  }
  .lg-markets span:nth-child(n + 6),
  .lg-match .lg-odd:nth-child(n + 6) { display: none; }
}

@media (max-width: 980px) {
  .lg-top { grid-template-columns: 1fr; }
  .lg-layout {
    grid-template-columns: 1fr;
  }
  .lg-left,
  .lg-rail {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .lg-rail {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .lg-rail a { width: auto; min-width: 72px; }
  .lg-markets,
  .lg-match {
    grid-template-columns: 1fr repeat(3, minmax(56px, 1fr));
  }
  .lg-markets span:nth-child(n + 5),
  .lg-match .lg-odd:nth-child(n + 5) { display: none; }
}

@media (max-width: 680px) {
  .lg-markets { display: none; }
  .lg-match {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .lg-teams { grid-column: 1 / -1; }
  .lg-odd-link { grid-column: 1 / -1; justify-self: start; }
}
