/**
 * Página de liga (/sport/.../ID/) — tema claro Betano (fiel ao sportsbook original)
 */

body.league-page--betano-light,
body.league-page--betano-light [data-kds-theme="always-light"] {
  --sb-bg: #eef1f3;
  --sb-surface: #ffffff;
  --sb-surface-raised: #ffffff;
  --sb-surface-sunken: #f3f4f6;
  --sb-text: #2a3046;
  --sb-text-muted: #6b7280;
  --sb-divider: #e5e7eb;
  --sb-border: #e5e7eb;
  --sb-chip-bg: #f3f4f6;
  --sb-chip-border: #e5e7eb;
  --sb-accent: rgba(38, 144, 86, 1);
  --sb-accent-ghost: rgba(38, 144, 86, 0.08);
  --sb-accent-on: #ffffff;
  --sb-live: #ef4444;
  --sb-odds: #1f2937;
}

body.league-page--betano-light {
  background: var(--sb-bg);
  color: var(--sb-text);
}

/* Shell principal — igual home/ao vivo */
.sports-league-main {
  background: var(--sb-bg) !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

.layout-module-scss-module__95db7a__main .sports-league-main {
  overflow-x: hidden;
}

body.league-page--betano-light .sports-league-main .main-content-wrapper__content {
  width: 100%;
}

body.league-page--betano-light .sports-league-main .grid__column__main-content {
  background-color: var(--sb-bg);
}

body.league-page--betano-light .SportsbookShell-module-scss-module__1enTVa__page,
body.league-page--betano-light .SportsbookShell-module-scss-module__1enTVa__center,
body.league-page--betano-light .SportsbookShell-module-scss-module__1enTVa__grid {
  background: var(--sb-bg);
}

body.league-page--betano-light .sports-league-betano {
  background: transparent;
  color: var(--sb-text);
  padding: 0 12px;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 72px);
}

@media (min-width: 769px) {
  body.league-page--betano-light .sports-league-betano {
    padding: 0 16px 72px;
    max-width: 960px;
    margin: 0 auto;
  }
}

/* Banner da liga — gradiente escuro Betano (não sobrescrever surface) */
body.league-page--betano-light .sports-league-betano .styles-module-scss-module__oYRISq__header {
  margin-bottom: 4px;
}

body.league-page--betano-light .sports-league-betano .styles-module-scss-module__oYRISq__watermark img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

body.league-page--betano-light .sports-league-betano .local-league-fav {
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  font-size: 18px;
  line-height: 1;
}

body.league-page--betano-light .sports-league-betano .local-league-fav:hover,
body.league-page--betano-light .sports-league-betano .local-league-fav--active {
  color: #ff3c00;
}

/* Breadcrumb — sem card wrapper extra */
body.league-page--betano-light .sports-league-betano .styles-module-scss-module__rOjXyW__nav {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0 0 8px;
}

/* Nav de esportes — desktop sem card; mobile usa attached do chunk original */
@media (min-width: 769px) {
  body.league-page--betano-light .sports-league-betano .styles-module-scss-module__ANaF6G__container {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin-bottom: 8px;
  }

  body.league-page--betano-light .sports-league-betano .styles-module-scss-module__ANaF6G__item {
    background: var(--sb-surface);
    border-color: var(--sb-divider);
    color: var(--sb-text-muted);
  }

  body.league-page--betano-light .sports-league-betano .styles-module-scss-module__ANaF6G__itemActive,
  body.league-page--betano-light .sports-league-betano .styles-module-scss-module__ANaF6G__item:hover {
    color: var(--sb-text);
    background: var(--sb-surface-raised);
  }
}

.sports-home-betano .styles-module-scss-module__ANaF6G__containerAttached {
  margin: 0 0 8px;
}

.sports-home-betano .styles-module-scss-module__ANaF6G__item {
  background: #fff;
  border-color: #e5e7eb;
  color: #2a3046;
}

.sports-home-betano .styles-module-scss-module__ANaF6G__itemActive,
.sports-home-betano .styles-module-scss-module__ANaF6G__item:hover {
  background: rgba(38, 144, 86, 0.08);
  border-color: rgba(38, 144, 86, 1);
  color: rgba(38, 144, 86, 1);
}

.sports-sport-hub__header {
  padding: 12px 0 8px;
}

.sports-sport-hub__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--sb-text);
}

.sports-sport-hub__subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--sb-text-muted);
}

.sports-sport-hub__countries {
  margin-top: 8px;
}

.sports-sport-hub .local-country-list {
  max-height: none;
  padding: 0;
}

.sports-sport-hub .local-country-item {
  color: var(--sb-text);
}

.sports-sport-hub .local-country-item.active,
.sports-sport-hub .local-country-item:hover {
  background: var(--sb-accent-ghost);
}

.sports-sport-hub .local-champ-link {
  color: var(--sb-text);
}

.sports-sport-hub__tabs {
  display: flex;
  gap: 8px;
  margin: 4px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sb-divider);
}

.sports-sport-hub__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--sb-chip-border);
  background: var(--sb-chip-bg);
  color: var(--sb-text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sports-sport-hub__tab:hover {
  border-color: var(--sb-accent);
  color: var(--sb-accent);
}

.sports-sport-hub__tab--active {
  background: var(--sb-accent-ghost);
  border-color: var(--sb-accent);
  color: var(--sb-accent);
}

.sports-sport-ligas__filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 12px;
  margin-bottom: 4px;
  scrollbar-width: none;
}

.sports-sport-ligas__filters::-webkit-scrollbar {
  display: none;
}

.sports-sport-ligas__filter {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--sb-chip-border);
  background: var(--sb-surface);
  color: var(--sb-text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.sports-sport-ligas__filter--active,
.sports-sport-ligas__filter:hover {
  background: var(--sb-accent-ghost);
  border-color: var(--sb-accent);
  color: var(--sb-accent);
}

.sports-sport-ligas__matches {
  margin-top: 0;
}

.sports-sport-ligas .top-events-v2-show-more {
  margin-top: 12px;
}

body.league-page--betano-light .sports-league-betano .styles-module-scss-module__ANaF6G__icon {
  font-size: 18px;
  line-height: 1;
}

/* Filtros de mercado — linha simples, sem card */
body.league-page--betano-light .sports-league-betano .styles-module-scss-module__tdueaa__marketFilter {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--sb-divider);
  border-radius: 0;
  margin-bottom: 16px;
  padding: 0;
}

body.league-page--betano-light .sports-league-betano #matchList .local-empty {
  color: var(--sb-text-muted);
  background: var(--sb-surface);
  border: 1px solid var(--sb-divider);
  border-radius: 8px;
  padding: 24px 16px;
  text-align: center;
}

/* Cards e odds — respeitam o layout original v15BTq (coluna, chip-bg) */
body.league-page--betano-light .sports-league-betano .local-match-odd--selected.styles-module-scss-module__v15BTq__oddChip {
  background: var(--sb-accent) !important;
  border-color: var(--sb-accent) !important;
}

body.league-page--betano-light .sports-league-betano .local-match-odd--selected .styles-module-scss-module__v15BTq__oddValue {
  color: #fff !important;
}

body.league-page--betano-light .sports-league-betano .local-match-odd--selected .styles-module-scss-module__v15BTq__oddLabel {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Corrige odds brancas/invisíveis do bundle escuro no tema claro */
body.league-page--betano-light .sports-league-betano .styles-module-scss-module__v15BTq__oddValue {
  color: var(--sb-odds) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

body.league-page--betano-light .sports-league-betano .styles-module-scss-module__v15BTq__oddLabel {
  color: var(--sb-text-muted) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

body.league-page--betano-light .sports-league-betano .styles-module-scss-module__v15BTq__oddChip,
body.league-page--betano-light .sports-league-betano .league-odd-chip--betano {
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 40px !important;
  padding: 8px 10px !important;
  background: var(--sb-chip-bg) !important;
  border: 1px solid var(--sb-chip-border) !important;
  color: var(--sb-text) !important;
}

body.league-page--betano-light .sports-league-betano .styles-module-scss-module__tdueaa__dateGroupHeader.league-date-group-header {
  color: var(--sb-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 4px 10px;
}

body.league-page--betano-light .sports-league-betano .styles-module-scss-module__tdueaa__eventList {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.league-page--betano-light .sports-league-betano .league-match-card--betano {
  gap: 10px !important;
  padding: 10px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

body.league-page--betano-light .sports-league-betano .league-match-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

body.league-page--betano-light .sports-league-betano .league-match-card__build-bet {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 60, 0, 0.35);
  background: rgba(255, 60, 0, 0.08);
  color: #ff3c00;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

body.league-page--betano-light .sports-league-betano .league-match-card__head-actions {
  color: var(--sb-text-muted);
  display: inline-flex;
  align-items: center;
}

body.league-page--betano-light .sports-league-betano .league-match-card__teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
}

body.league-page--betano-light .sports-league-betano .league-match-card__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

body.league-page--betano-light .sports-league-betano .league-match-card__team--away {
  text-align: center;
}

body.league-page--betano-light .sports-league-betano .league-match-card__team .styles-module-scss-module__v15BTq__teamLogo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

body.league-page--betano-light .sports-league-betano .league-match-card__team .styles-module-scss-module__v15BTq__teamName {
  color: var(--sb-text);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.league-page--betano-light .sports-league-betano .league-match-card__datetime {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 54px;
  color: var(--sb-text-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

body.league-page--betano-light .sports-league-betano .league-match-card__odds {
  width: 100%;
}

body.league-page--betano-light .sports-league-betano .league-match-card__odds .styles-module-scss-module__v15BTq__marketSliderLabel {
  display: none;
}

body.league-page--betano-light .sports-league-betano .league-match-card__odds .styles-module-scss-module__v15BTq__marketSliderView:not([data-market-type="resultado"]) .styles-module-scss-module__v15BTq__marketSliderLabel {
  display: block;
  color: var(--sb-text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  text-align: center;
  text-transform: uppercase;
}

body.league-page--betano-light .sports-league-betano .styles-module-scss-module__v15BTq__marketViewRow.local-match-odds {
  gap: 8px;
}

body.league-page--betano-light .sports-league-betano .styles-module-scss-module__v15BTq__marketSliderDot {
  background: #d1d5db;
}

body.league-page--betano-light .sports-league-betano .styles-module-scss-module__v15BTq__marketSliderDotActive {
  background: var(--sb-accent);
}

/* Sidebar direita — minhas apostas */
body.league-page--betano-light .SportsbookShell-module-scss-module__1enTVa__right .styles-module-scss-module__FqczwG__container {
  background: var(--sb-surface);
  border: 1px solid var(--sb-divider);
  color: var(--sb-text);
}

body.league-page--betano-light .styles-module-scss-module__FqczwG__headerCard strong {
  color: var(--sb-text);
}

body.league-page--betano-light .styles-module-scss-module__FqczwG__headerCard__link {
  color: var(--sb-text-muted);
}

body.league-page--betano-light .styles-module-scss-module__FqczwG__tabs__item {
  color: var(--sb-text-muted);
}

body.league-page--betano-light .styles-module-scss-module__FqczwG__tabs__item--active {
  color: var(--sb-text);
}

body.league-page--betano-light .styles-module-scss-module__yuRyFW__disclaimer {
  background: var(--sb-surface);
  border-color: var(--sb-divider);
  color: var(--sb-text-muted);
}

body.league-page--betano-light .styles-module-scss-module__yuRyFW__title {
  color: var(--sb-text);
}

@media (min-width: 769px) {
  body.league-page--betano-light .SportsbookShell-module-scss-module__1enTVa__left {
    background: var(--sb-surface);
    border: 1px solid var(--sb-divider);
    border-radius: 8px;
  }

  body.league-page--betano-light .local-country-item {
    color: var(--sb-text);
  }

  body.league-page--betano-light .local-country-item.active,
  body.league-page--betano-light .local-country-item:hover {
    background: var(--sb-surface-sunken);
  }

  body.league-page--betano-light .local-champ-link {
    color: var(--sb-text-muted);
  }

  body.league-page--betano-light .local-champ-link:hover,
  body.league-page--betano-light .local-champ-link--active {
    background: rgba(38, 144, 86, 0.08);
    color: var(--sb-text);
  }
}

@media (max-width: 768px) {
  body.league-page--betano-light .sports-league-betano {
    padding: 0 8px calc(env(safe-area-inset-bottom, 0px) + 72px);
  }
}

/* Drawer — Alterar liga */
body.league-picker-open {
  overflow: hidden;
}

body.league-page--betano-light .league-picker-trigger {
  cursor: pointer;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
}

body.league-page--betano-light .styles-module-scss-module__rOjXyW__item.league-picker-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
}

.league-picker-drawer[hidden] {
  display: none !important;
}

.league-picker-drawer {
  position: fixed;
  inset: 0;
  z-index: 1300;
}

.league-picker-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.league-picker-drawer.is-open .league-picker-drawer__backdrop {
  opacity: 1;
}

.league-picker-drawer__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 85dvh;
  display: flex;
  flex-direction: column;
  background: #eef1f3;
  border-radius: 12px 12px 0 0;
  transform: translateY(100%);
  transition: transform 0.28s ease;
  overflow: hidden;
}

.league-picker-drawer.is-open .league-picker-drawer__panel {
  transform: translateY(0);
}

.league-picker-drawer__grabber {
  flex: none;
  min-height: 46px;
  padding: 8px 12px 10px;
  border-bottom: 1px solid #e5e7eb;
  background: #eef1f3;
  text-align: center;
}

.league-picker-drawer__handle {
  display: block;
  width: 22px;
  height: 3px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: #9ca3af;
}

.league-picker-drawer__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: #2a3046;
}

.league-picker-drawer__body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 8px 8px 0;
}

.league-picker-drawer__inner {
  height: 100%;
  background: #ffffff;
  border-radius: 8px 8px 0 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.league-picker-drawer__options {
  list-style: none;
  margin: 0;
  padding: 8px 8px 16px;
}

.league-picker-drawer__group + .league-picker-drawer__group {
  margin-top: 4px;
}

.league-picker-drawer__country {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 8px;
  color: #2a3046;
}

.league-picker-drawer__country-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.league-picker-drawer__flag-img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
}

.league-picker-drawer__flag-fallback {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e5e7eb;
}

.league-picker-drawer__country-name {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-picker-drawer__leagues {
  list-style: none;
  margin: 0;
  padding: 0 0 4px;
}

.league-picker-drawer__league-item {
  margin: 0 0 4px;
}

.league-picker-drawer__league-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 8px 0 24px;
  border-radius: 6px;
  color: #2a3046;
  text-decoration: none;
  border: 1px solid transparent;
}

.league-picker-drawer__league-link:hover,
.league-picker-drawer__league-link:focus {
  font-weight: 700;
  outline: 0;
}

.league-picker-drawer__league-link.is-active,
.league-picker-drawer__league-item.is-active .league-picker-drawer__league-link {
  font-weight: 700;
  background: #f3f4f6;
}

.league-picker-drawer__league-name {
  font-size: 12px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-picker-drawer__loading-item,
.league-picker-drawer__empty-item {
  min-height: 36px;
  padding: 0 8px 0 24px;
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #6b7280;
}

