/**
 * AllGames sport lobby (/sports/cricket|soccer|tennis).
 * Dark gold theme. Do not load Airbuzz style-glob here.
 */
html.sport-lobby-page #site-loader {
  display: none;
  visibility: hidden;
}

.ag-sp {
  --ag-gold: #c9a84c;
  --ag-gold2: #e8c96a;
  --ag-bg: #050505;
  --ag-card: #0e0e0e;
  --ag-row: #121212;
  --ag-line: rgba(255, 255, 255, 0.08);
  --ag-text: #ececec;
  --ag-muted: #9a9a9a;
  --ag-back: #a0d8fb;
  --ag-lay: #fdc9d4;
  --ag-back-light: #d4e8f8;
  --ag-lay-light: #f7e7eb;
  --ag-live: #34d399;
  color: var(--ag-text);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.55rem 0.7rem 5.25rem;
}

.ag-sp a {
  color: inherit;
  text-decoration: none;
}

.ag-sp-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.ag-sp-crumb {
  font-size: 0.75rem;
  color: var(--ag-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ag-sp-crumb a {
  color: var(--ag-gold);
}

.ag-sp-title {
  margin: 0.2rem 0 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #c9a84c;
}

.ag-sp-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.1);
  color: var(--ag-live);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.ag-sp-live i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.ag-sp-top-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ag-sp-results {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ag-gold) !important;
  letter-spacing: 0.04em;
}

.ag-sp-allmark {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ag-gold);
  border: 1px solid rgba(201, 168, 76, 0.45);
  border-radius: 4px;
}

.ag-sp-hcount {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ag-muted);
  letter-spacing: 0;
}

.ag-sp-codes {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 0 0.85rem;
  padding-bottom: 0.15rem;
}

.ag-sp-codes::-webkit-scrollbar {
  display: none;
}

.ag-sp-codes a {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  min-width: 4.6rem;
  padding: 0.45rem 0.55rem 0.4rem;
  border-radius: 10px;
  border: 1px solid var(--ag-line);
  background: var(--ag-card);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.ag-sp-codes img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.ag-sp-codes a.is-on {
  border-color: rgba(201, 168, 76, 0.55);
  background: linear-gradient(165deg, rgba(201, 168, 76, 0.16), transparent 60%), var(--ag-card);
  color: var(--ag-gold);
}

.ag-sp-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--ag-line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--ag-card);
  margin-bottom: 0.7rem;
}

html.sport-lobby-page .main .ag-sp-tabs button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  box-shadow: none;
  min-height: 0;
  color: var(--ag-muted);
  font: 700 0.78rem/1.1 inherit;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.7rem 0.35rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}

html.sport-lobby-page .main .ag-sp-tabs button.is-on {
  color: var(--ag-text);
  border-bottom-color: var(--ag-gold);
  background: rgba(201, 168, 76, 0.08);
}

.ag-sp-tabs b {
  display: inline-block;
  margin-left: 0.2rem;
  color: var(--ag-gold);
  font-weight: 800;
}

.ag-sp-legend {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ag-muted);
  margin: 0 0 0.35rem;
  padding: 0 0.15rem;
}

.ag-sp-legend span {
  width: 2.6rem;
  text-align: center;
}

.ag-sp-card {
  border: 1px solid var(--ag-line);
  border-radius: 12px;
  background: var(--ag-card);
  overflow: hidden;
}

.ag-sp-card-h {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  background: linear-gradient(90deg, rgba(201, 168, 76, 0.18), transparent 55%), #161616;
  border-bottom: 1px solid var(--ag-line);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ag-gold);
}

.ag-sp-card-h img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.ag-sp-block + .ag-sp-block .ag-sp-card-h {
  border-top: 1px solid var(--ag-line);
}

a.ag-match {
  color: inherit;
  text-decoration: none;
}

.ag-match {
  display: grid;
  grid-template-columns: minmax(7.5rem, 1fr) auto;
  gap: 0.35rem 0.5rem;
  align-items: center;
  padding: 0.48rem 0.65rem;
  border-top: 1px solid var(--ag-line);
  cursor: pointer;
}

.ag-match.is-noprice {
  opacity: 0.55;
}

.ag-match:first-child {
  border-top: 0;
}

.ag-match:hover {
  background: rgba(201, 168, 76, 0.05);
}

.ag-match-comp {
  font-size: 0.62rem;
  color: var(--ag-muted);
  margin-bottom: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ag-match-teams {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ag-text);
}

.ag-match-teams small {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  color: #c8c8c8;
}

.ag-match-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem 0.4rem;
  margin-top: 0.18rem;
  font-size: 0.64rem;
  color: var(--ag-muted);
}

.ag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.06rem 0.34rem;
  border-radius: 4px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.ag-pill-live {
  color: var(--ag-live);
  background: rgba(52, 211, 153, 0.12);
}

.ag-pill-bm {
  color: var(--ag-gold);
  background: rgba(201, 168, 76, 0.12);
}

.ag-pill-f {
  color: #7dd3fc;
  background: rgba(125, 211, 252, 0.12);
}

.ag-pill-tv {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.14);
}

.ag-odds {
  display: flex;
  gap: 0.32rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ag-odds-col {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  align-items: stretch;
}

.ag-odds-col em {
  display: block;
  font-style: normal;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ag-muted);
  text-align: center;
  max-width: 5.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ag-odds-pair {
  display: flex;
  gap: 0.18rem;
}

.ag-odds-pair span {
  min-width: 2.55rem;
  height: 36px;
  padding: 0 0.22rem;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #141414;
}

.ag-odds-pair .back {
  background: var(--ag-back);
  color: #141414;
}

.ag-odds-pair .lay {
  background: var(--ag-lay);
  color: #141414;
}

.ag-odds-pair .is-empty {
  background: #2a2a2a;
  color: #666;
}

.ag-empty {
  padding: 1.6rem 1rem;
  text-align: center;
  color: var(--ag-muted);
  font-size: 0.85rem;
}

.ag-empty strong {
  display: block;
  color: var(--ag-text);
  margin-bottom: 0.3rem;
}

@media (max-width: 720px) {
  .ag-sp {
    padding: 0.45rem 0.5rem 5.5rem;
  }

  .ag-sp-title {
    font-size: 1.1rem;
  }

  .ag-match {
    grid-template-columns: minmax(6.5rem, 1fr) auto;
    align-items: center;
    padding: 0.42rem 0.42rem;
    gap: 0.3rem 0.4rem;
  }

  .ag-odds {
    width: auto;
    justify-content: flex-end;
  }

  .ag-odds-col {
    flex: 0 0 auto;
    min-width: 0;
  }

  .ag-odds-pair {
    width: auto;
  }

  .ag-odds-pair span {
    min-width: 2.35rem;
    height: 34px;
    font-size: 0.74rem;
  }

  html.sport-lobby-page .main .ag-sp-tabs button {
    font-size: 0.66rem;
    padding: 0.55rem 0.12rem;
  }
}

@media (min-width: 900px) {
  .ag-sp {
    padding-top: 1rem;
  }
}

@keyframes agBlinkBack {
  0%, 100% { background: var(--ag-back); }
  50% { background: var(--ag-back-light); }
}
@keyframes agBlinkLay {
  0%, 100% { background: var(--ag-lay); }
  50% { background: var(--ag-lay-light); }
}
.ag-odds-pair .back.rate-changing {
  animation: agBlinkBack 0.5s ease;
}
.ag-odds-pair .lay.rate-changing {
  animation: agBlinkLay 0.5s ease;
}
