/* Sports betting page. Loaded only from sports-betting/index.html. */

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.crumb a { color: var(--gold); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

.sb-top {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 14px;
}

.sb-title h1 {
  margin: 0 0 6px;
  font-size: 32px;
  letter-spacing: 0.04em;
  line-height: 1;
}

.sb-title p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.sb-hero { position: relative; min-width: 0; }

.sb-slide {
  display: none;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #1a1408;
  min-height: 148px;
}

.sb-slide.is-on { display: block; }

.sb-slide img {
  width: 100%;
  height: 156px;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.sb-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(245, 197, 24, 0.94) 0%, rgba(245, 197, 24, 0.78) 26%, rgba(245, 197, 24, 0.18) 50%, rgba(0, 0, 0, 0) 68%);
  pointer-events: none;
  z-index: 1;
}

.sb-copy {
  position: absolute;
  z-index: 2;
  left: 18px;
  top: 50%;
  transform: translateY(-54%);
  max-width: min(380px, 58%);
  color: #1a1408;
}

.sb-copy .kicker {
  margin: 0 0 2px;
  color: #3a2d08;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.sb-copy h2 {
  margin: 0 0 10px;
  color: #14120a;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.sb-dots {
  position: absolute;
  left: 18px;
  bottom: 10px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.sb-dots button {
  width: 22px;
  height: 4px;
  border: 0;
  border-radius: 4px;
  background: rgba(20, 16, 8, 0.35);
  padding: 0;
  cursor: pointer;
}

.sb-dots button[aria-current="true"] { background: #1a1406; }

.sb-board {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr) 228px 76px;
  gap: 12px;
  align-items: start;
  margin-top: 14px;
}

.sb-side,
.slip-card,
.sb-main {
  min-width: 0;
}

.sb-side {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
}

.mode-row,
.group-row,
.sb-views {
  display: flex;
  gap: 6px;
}

.mode-row { margin-bottom: 8px; }

.mode-btn,
.group-btn,
.view-btn,
.sb-chip,
.slip-tab,
.side-link,
.odd,
.gear {
  font: inherit;
  cursor: pointer;
}

.mode-btn,
.group-btn {
  flex: 1;
  border: 0;
  border-radius: 8px;
  padding: 7px 6px;
  font-size: 12px;
  font-weight: 800;
  background: #222836;
  color: #d5dbe4;
}

.mode-btn.is-on,
.group-btn.is-on,
.view-btn.is-on,
.sb-chip.is-on,
.slip-tab.is-on {
  background: var(--gold);
  color: var(--ink);
}

.side-search {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
  background: #10141b;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 8px;
}

.side-search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 13px;
}

.side-search input::placeholder { color: #8b93a3; }

.league-list,
.fav-list { display: flex; flex-direction: column; gap: 2px; }

.side-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  text-decoration: none;
  border: 0;
  background: transparent;
  color: #d5dbe4;
  border-radius: 8px;
  padding: 7px 6px;
  font-size: 13px;
  font-weight: 700;
}

.side-link:hover,
.side-link:focus-visible { background: #222836; color: #fff; }

.side-link svg { width: 16px; height: 16px; flex: 0 0 auto; }

.side-link b {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.group-row { margin: 8px 0; }

.fav-label {
  margin: 8px 4px 4px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}

.sb-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.view-btn {
  border: 0;
  background: transparent;
  color: #d5dbe4;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 10px;
  border-radius: 999px;
}

.sb-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 8px;
  scrollbar-width: thin;
}

.sb-chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #1a1e27;
  color: #e8edf5;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.match-list { display: flex; flex-direction: column; gap: 10px; }

.match {
  background: #12161d;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}

.match.sb-off { display: none !important; }

.fav-list .side-link.is-on {
  background: rgba(245, 197, 24, 0.16);
  color: var(--gold);
}

.match-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.match-top strong { color: #fff; font-size: 13px; }

.live-pill {
  color: var(--green);
  font-weight: 800;
}

.live-pill::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--green);
  transform: translateY(-1px);
}

.match-body {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.teams {
  width: 168px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding-bottom: 2px;
}

.team {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  font-size: 13px;
  font-weight: 800;
}

.team em {
  margin-left: auto;
  font-style: normal;
  color: var(--gold);
  font-size: 12px;
}

.cc {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  display: inline-grid;
  place-items: center;
  font-size: 8px;
  font-weight: 800;
  color: #fff;
  flex: 0 0 auto;
  letter-spacing: 0;
}

.cc.bd { background: #006a4e; }
.cc.eng { background: #cf142b; }
.cc.us { background: #3c3b6e; }
.cc.ae { background: #00732f; }
.cc.zw { background: #f7d117; color: #1a1408; }
.cc.wi { background: #7b0041; }
.cc.ind { background: #ff9933; color: #1a1408; }
.cc.au { background: #00843d; }
.cc.za { background: #007a4d; }
.cc.lk { background: #8d153a; }
.cc.pk { background: #01411c; }
.cc.isl { background: #0b3d91; }
.cc.kb { background: #e85d04; }
.cc.ten { background: #c4d600; color: #1a1408; }
.cc.bb { background: #e03a3e; }
.cc.bad { background: #1d4e89; }
.cc.tt { background: #2a9d8f; }
.cc.es { background: #6c63ff; }

.mkts {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  flex: 1;
  min-width: 0;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.mkt { flex: 0 0 auto; min-width: 132px; }

.mkt-name {
  margin: 0 0 6px;
  min-height: 32px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  max-width: 28ch;
}

.mkt-cols { display: flex; gap: 4px; align-items: flex-end; }

.mkt-cols > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.mkt-lab {
  color: #8b93a3;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.odd {
  min-width: 48px;
  border: 0;
  border-radius: 8px;
  background: #f4f6f8;
  color: #16140c;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 6px;
  line-height: 1;
}

.odd:hover,
.odd:focus-visible,
.odd.is-on { background: var(--gold); }

.all-markets {
  align-self: center;
  margin-left: auto;
  color: var(--gold);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
}

.all-markets:hover { text-decoration: underline; }

.sb-empty,
.sb-predict {
  background: #12161d;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.sb-empty { color: var(--muted); margin: 0; }

.sb-predict h2 { margin: 0 0 8px; font-size: 18px; }
.sb-predict li { margin: 6px 0; color: #d5dbe4; }
.sb-predict .btn { margin-top: 8px; }

.sb-format {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.sb-format select {
  letter-spacing: 0;
  font-weight: 800;
  background: #f4f6f8;
  color: #16140c;
  border: 0;
  border-radius: 8px;
  padding: 7px 10px;
}

.sb-note {
  margin: 10px auto 0;
  max-width: 680px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.slip-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}

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

.slip-tabs { display: flex; gap: 4px; margin-bottom: 10px; }

.page-sports .slip-tabs button.slip-tab {
  flex: 1;
  border: 0;
  border-bottom: 0;
  border-radius: 8px;
  background: #222836;
  color: #d5dbe4;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 2px;
}

.page-sports .slip-tabs button.slip-tab.is-on {
  background: var(--gold);
  color: #16140c;
  border-bottom-color: transparent;
}

.page-sports .odd,
.page-sports .odd:hover,
.page-sports .odd:focus-visible,
.page-sports .odd.is-on {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: #f4f6f8;
  color: #16140c;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 6px;
  line-height: 1;
  text-decoration: none;
}

.page-sports .odd:hover,
.page-sports .odd:focus-visible,
.page-sports .odd.is-on {
  background: var(--gold);
  color: #16140c;
  border-color: transparent;
}

.slip-empty {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 16px 6px;
}

.slip-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slip-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px;
  align-items: center;
  background: #10141b;
  border-radius: 8px;
  padding: 8px;
  font-size: 12px;
}

.slip-list button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.slip-code input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  background: #10141b;
  color: #fff;
  border-radius: 8px;
  padding: 9px 10px;
  margin-bottom: 8px;
}

.slip-go { width: 100%; margin-bottom: 8px; }

.slip-hint {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.gear {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: #2a3140;
  color: #fff;
  font-weight: 800;
  padding: 9px 8px;
}

.sb-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sb-rail a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 64px;
  text-align: center;
  text-decoration: none;
  color: #d5dbe4;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  padding: 6px 4px;
}

.sb-rail a:hover { color: #fff; border-color: var(--gold); }
.sb-rail svg { width: 20px; height: 20px; color: var(--gold); }

.page-sports .seo-bar h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.page-sports [hidden] { display: none !important; }

.btn-login,
.btn-reg { white-space: nowrap; }

@media (max-width: 1100px) {
  .sb-board { grid-template-columns: 176px minmax(0, 1fr) 210px; }
  .sb-rail {
    grid-column: 1 / -1;
    flex-direction: row;
    overflow-x: auto;
  }
  .sb-rail a { flex: 0 0 88px; min-height: 72px; }
  .sb-copy h2 { font-size: 22px; }
}

@media (max-width: 900px) {
  .sb-top,
  .sb-board { grid-template-columns: 1fr; }
  .sb-main { order: 1; }
  .sb-slip { order: 2; }
  .sb-side { order: 3; }
  .sb-rail { order: 4; }
  .sb-title h1 { font-size: 28px; }
  .sb-slide img { height: 168px; }
  .sb-copy { max-width: 70%; }
  .teams { width: 132px; }
}

@media (max-width: 640px) {
  .sb-copy { left: 12px; max-width: 78%; }
  .sb-copy h2 { font-size: 20px; margin-bottom: 8px; }
  .sb-slide img { height: 176px; }
  .sb-tools { align-items: flex-start; flex-direction: column; }
  .match-body { flex-direction: column; }
  .teams { width: 100%; }
  .team em { margin-left: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .sb-slide img { transition: none; }
}
