/* Sports Betting lobby — LINE + featured markets */

.sb-page {
  padding-bottom: 32px;
}

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

.sb-title h1 {
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: 0.03em;
  line-height: 1.1;
}

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

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

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

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

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

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

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

.sb-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;
}

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

.sb-left,
.sb-right,
.sb-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;
}

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

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

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

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

.sb-mode button[data-live][aria-pressed="true"] {
  background: #c23b3b;
}

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

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

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

.sb-leagues {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.sb-league-link {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
  background: #0a1628;
  border: 1px solid transparent;
  color: #e8eef7;
  font-size: 12.5px;
  text-align: left;
  width: 100%;
}

.sb-league-link:hover {
  border-color: rgba(5, 129, 255, 0.35);
  background: rgba(5, 129, 255, 0.12);
}

.sb-league-link img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

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

.sb-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;
}

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

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

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

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

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

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

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

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

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

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

.sb-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;
}

.sb-chip img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

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

.sb-sport-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sb-sport-row::-webkit-scrollbar { display: none; }

.sb-sport-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #101e33;
  color: #d5e2f2;
  font-size: 13px;
  font-weight: 600;
}

.sb-sport-pill[aria-pressed="true"] {
  background: rgba(5, 129, 255, 0.22);
  border-color: rgba(5, 129, 255, 0.45);
  color: #fff;
}

.sb-sport-pill img {
  width: 20px;
  height: 20px;
}

.sb-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sb-card {
  background: #101e33;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 280px;
}

.sb-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
}

.sb-card-head img {
  width: 22px;
  height: 22px;
}

.sb-combo-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12.5px;
}

.sb-combo-row:last-of-type { border-bottom: 0; }

.sb-combo-row b {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.sb-event-hero {
  text-align: center;
  padding: 8px 4px 4px;
}

.sb-event-hero .league {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.sb-event-hero .teams {
  font-weight: 800;
  font-size: 14px;
  line-height: 1.35;
}

.sb-timer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 10px 0;
}

.sb-timer span {
  background: #0a1628;
  border-radius: 8px;
  padding: 6px 2px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}

.sb-timer strong {
  display: block;
  color: #fff;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.sb-odds-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

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

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

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

.sb-stake {
  margin-top: auto;
  display: grid;
  gap: 8px;
}

.sb-stake-input {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #0a1628;
  border-radius: 8px;
  padding: 8px 10px;
  border: 1px solid #24395a;
}

.sb-stake-input input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
}

.sb-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.sb-quick button {
  border: 1px solid rgba(5, 129, 255, 0.35);
  background: transparent;
  color: #9ec5ff;
  border-radius: 8px;
  padding: 6px 2px;
  font-size: 12px;
  font-weight: 700;
}

.sb-quick button:hover {
  background: rgba(5, 129, 255, 0.18);
  color: #fff;
}

.sb-place {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 13px;
}

.sb-place:hover { filter: brightness(1.08); }

.sb-place small {
  display: block;
  font-weight: 500;
  opacity: 0.85;
  font-size: 11px;
}

.sb-outright-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.sb-outright-tabs button {
  border: 0;
  background: #0a1628;
  color: #8ea3bd;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
}

.sb-outright-tabs button[aria-selected="true"] {
  background: rgba(5, 129, 255, 0.25);
  color: #fff;
}

.sb-outright-list {
  display: grid;
  gap: 6px;
}

.sb-outright-list button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: #0a1628;
  color: #e8eef7;
  padding: 8px 10px;
  font-size: 13px;
}

.sb-outright-list button:hover {
  background: rgba(5, 129, 255, 0.2);
}

.sb-outright-list b {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.sb-live-strip {
  display: grid;
  gap: 8px;
}

.sb-live-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  background: #101e33;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px;
}

.sb-live-card .meta {
  color: #ff6b6b;
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
}

.sb-live-card .teams {
  font-weight: 700;
  font-size: 13.5px;
}

.sb-live-card .league {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.sb-live-odds {
  display: flex;
  gap: 6px;
}

.sb-live-odds .sb-odd {
  min-width: 56px;
}

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

.sb-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;
}

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

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

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

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

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

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

.sb-teams .time {
  margin-top: 4px;
  color: #7f93ad;
  font-size: 11px;
  font-weight: 600;
}

.sb-teams .time.is-live {
  color: #ff6b6b;
}

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

.sb-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;
}

.sb-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;
}

.sb-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;
}

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

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

.sb-seo {
  margin-top: 28px;
  padding: 22px 0 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #b7c6da;
  font-size: 14.5px;
  line-height: 1.7;
}

.sb-seo h2 {
  color: #fff;
  font-size: clamp(22px, 3vw, 28px);
  margin-bottom: 12px;
  line-height: 1.25;
}

.sb-seo h3 {
  color: #e8eef7;
  font-size: 18px;
  margin: 20px 0 8px;
}

.sb-seo p { margin-bottom: 10px; }

.sb-seo a {
  color: #7ecbff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sb-faq {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.sb-faq details {
  background: #101e33;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 4px 14px;
}

.sb-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 0;
  font-weight: 700;
  color: #fff;
}

.sb-faq summary::-webkit-details-marker { display: none; }

.sb-faq summary::after {
  content: "›";
  float: right;
  transform: rotate(90deg);
  color: #7f93ad;
}

.sb-faq details[open] summary::after {
  transform: rotate(-90deg);
}

.sb-faq details p {
  padding-bottom: 12px;
  color: #b7c6da;
  margin: 0;
}

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

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

@media (max-width: 680px) {
  .sb-markets { display: none; }
  .sb-match {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .sb-teams { grid-column: 1 / -1; }
  .sb-live-card {
    grid-template-columns: 1fr;
  }
}
