/* Home page: leagues sidebar replaces the narrow category pill column */
.home-page--leagues-sidebar {
  --left-side: 260px;
}

.leagues-sidebar {
  padding: 12px 10px;
  gap: 12px;
  display: flex;
  flex-direction: column;
}

.leagues-sidebar .top-leagues-box {
  flex-shrink: 0;
  margin-bottom: 0;
}

.leagues-sidebar .all-categories-box {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
}

.top-leagues-box,
.all-categories-box {
  background: #151a1e;
  border-radius: 10px;
  overflow: hidden;
}

.top-leagues-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  background: #1a2127;
}

.top-leagues-header span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-leagues-list,
.all-categories-list,
.category-leagues ul {
  list-style: none;
  margin: 0;
  padding: 6px 8px 10px;
}

.top-leagues-list li a,
.category-leagues li a,
.leagues-sidebar .category-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
  color: #c7ccd1;
  text-decoration: none;
}

.top-leagues-list li a span,
.category-leagues li a span,
.leagues-sidebar .category-row__link span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-leagues-list li a img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.top-leagues-list li a i,
.category-leagues li a i,
.leagues-sidebar .category-row__toggle i {
  margin-left: auto;
  color: inherit;
  font-size: 0.9rem;
}

.top-leagues-list li.active a,
.top-leagues-list li a:hover,
.leagues-sidebar .all-categories-list > li.active > .category-row,
.leagues-sidebar .all-categories-list > li > .category-row:hover,
.category-leagues li.active a,
.category-leagues li a:hover {
  background: #1e252b;
  color: #fff;
}

.top-leagues-empty {
  padding: 8px 10px;
  color: #6b7278;
  font-size: 0.8rem;
}

.time-filter {
  width: 100%;
}

.time-filter__btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  color: #fff;
  background: hsl(var(--home-base));
}

.time-filter__menu {
  width: 100%;
}

.category-row__link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
}

.category-row__link i,
.category-row__link svg,
.category-row__link img {
  width: 18px;
  height: 18px;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  object-fit: contain;
  color: inherit;
}

.category-row__toggle {
  border: 0;
  background: transparent;
  color: #c7ccd1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
}

.category-row__toggle em {
  font-style: normal;
  color: #9aa3aa;
  font-size: 0.8rem;
}

.category-leagues {
  padding-left: 8px;
}

/* Sport category pill tabs */
.category-tabs-wrapper { overflow-x:auto; }
.category-tabs { display:flex; gap:8px; padding:10px 0; white-space:nowrap; }
.category-pill { display:inline-flex; align-items:center; gap:6px; padding:6px 14px; border-radius:20px; background:#1e252b; color:#c7ccd1; text-decoration:none; font-size:.9rem; }
.category-pill.active { background:transparent; color:#2ecc71; font-weight:600; }

/* Country chip row */
.country-filter-wrapper { overflow-x:auto; }
.country-filter { display:flex; gap:8px; padding:6px 0 14px; white-space:nowrap; }
.country-chip { display:inline-flex; align-items:center; gap:6px; padding:6px 12px; border-radius:20px; border:1px solid #2a3238; color:#c7ccd1; text-decoration:none; font-size:.85rem; }
.country-chip .fi { border-radius:50%; width:16px; height:16px; }
.country-chip.active { border-color:#2ecc71; color:#2ecc71; }

.match-row__time-list {
  display: none;
}

.header-mobile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn--login-outline {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  color: #fff !important;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 4px;
}

@media (max-width: 991px) {
  .mobile-betting {
    padding-bottom: 12px;
  }

  .mobile-sport-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 8px 4px 12px;
    border-bottom: 1px solid var(--home-border, #222);
  }

  .mobile-sport-tabs__item {
    flex: 1;
    min-width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 6px;
    color: #9aa4ab;
    text-decoration: none;
    font-size: 0.72rem;
    border-radius: 10px;
  }

  .mobile-sport-tabs__item i {
    font-size: 1.25rem;
  }

  .mobile-sport-tabs__item.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 700;
  }

  .mobile-sport-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px 4px;
  }

  .mobile-filter-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: #151c21;
    color: #fff;
    font-weight: 700;
  }

  .mobile-country {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mobile-country__head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 8px;
    background: transparent;
    border: 0;
    color: #fff;
  }

  .mobile-country__identity {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .mobile-country__identity .fi,
  .mobile-country__identity i {
    width: 22px;
    height: 16px;
    flex-shrink: 0;
  }

  .mobile-country__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9aa4ab;
  }

  .mobile-country__meta em {
    font-style: normal;
  }

  .mobile-country.is-open .mobile-country__head i {
    transform: rotate(180deg);
  }

  .mobile-country__leagues {
    list-style: none;
    margin: 0;
    padding: 0 0 8px;
    background: #1b2329;
  }

  .mobile-country__leagues a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px 12px 40px;
    color: #d5dde2;
    text-decoration: none;
  }

  .mobile-country__leagues a span:last-child {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9aa4ab;
  }

  .mobile-match-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 4px 0 12px;
  }

  .mobile-match-tabs a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 8px;
    background: #151c21;
    color: #c5ced4;
    text-decoration: none;
    font-weight: 700;
  }

  .mobile-match-tabs a.is-active {
    background: hsl(var(--base));
    color: #fff;
  }

  .mobile-match-list .match-row {
    margin: 0 0 8px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    background: transparent;
    padding: 12px 8px 14px;
  }

  .mobile-match-list .match-row__time-full,
  .mobile-match-list .match-row__time-short {
    display: none;
  }

  .mobile-match-list .match-row__time-list {
    display: inline;
  }

  .mobile-match-list .match-row__teams--inline {
    display: block;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
  }

  .mobile-match-list .match-row__teams--stack {
    display: none;
  }

  .mobile-match-list .match-row__more {
    background: hsl(var(--base));
    color: #fff;
    border-radius: 6px;
    padding: 4px 8px;
    min-width: 48px;
    justify-content: center;
  }

  .mobile-match-list .match-row__more-mobile {
    color: #fff;
  }

  .mobile-match-list .match-odd__value {
    color: hsl(var(--base));
    font-weight: 700;
  }
}

.header-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #fff !important;
  font-size: 1.35rem;
  text-decoration: none;
}

.match-detail__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px 6px;
}

.match-detail__back {
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
}

.match-detail__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  color: #c5ced4;
  font-size: 0.82rem;
}

.match-detail__time {
  margin-left: auto;
  white-space: nowrap;
}

.match-detail__teams {
  padding: 4px 8px 14px;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.match-detail__teams span {
  opacity: 0.7;
  margin: 0 6px;
}

.match-detail__tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 4px;
}

.match-detail__tab {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #9aa4ab;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 10px 12px;
}

.match-detail__tab.is-active {
  color: hsl(var(--base));
  box-shadow: inset 0 -2px 0 hsl(var(--base));
}

.market-acc {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.market-acc__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 8px;
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.market-acc__head.collapsed i {
  transform: none;
}

.market-acc__head:not(.collapsed) i,
.market-acc__head[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.market-acc__body {
  padding: 0 8px 14px;
}

.match-odd-group--wrap {
  flex-wrap: wrap;
}

.match-odd-group--wrap .match-odd {
  flex: 1 1 calc(50% - 8px);
}

.match-search__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 8px 0 16px;
  background: #12181c;
}

.match-search__bar i {
  color: #c5ced4;
  font-size: 1.2rem;
}

.match-search__bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  outline: none;
}

.match-search__clear {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.2rem;
}

.search-match {
  display: block;
  padding: 14px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: inherit;
  text-decoration: none;
}

.search-match__top,
.search-match__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.search-match__league {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9aa4ab;
  font-size: 0.8rem;
}

.search-match__time {
  color: #9aa4ab;
  font-size: 0.8rem;
}

.search-match__bottom {
  margin-top: 6px;
}

.search-match__bottom strong {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.search-match__more {
  background: hsl(var(--base));
  color: #fff;
  border-radius: 999px;
  padding: 3px 9px;
  font-weight: 800;
  font-size: 0.78rem;
}

.search-empty {
  padding: 24px 8px;
  color: #9aa4ab;
  text-align: center;
}

@media (max-width: 991px) {
  .home-page--search .footer,
  .home-page--search .footer-bottom--dark,
  .home-page--markets .footer,
  .home-page--markets .footer-bottom--dark {
    display: none;
  }

  .home-page--markets .sports-category:not(.leagues-sidebar),
  .home-page--search .sports-category:not(.leagues-sidebar) {
    display: none;
  }
}

.match-row__sport {
  font-size: 0.95rem;
  color: inherit;
  flex-shrink: 0;
}

.desktop-sport-tabs {
  display: flex;
  align-items: stretch;
  gap: 4px;
  padding: 6px 4px 12px;
  overflow-x: auto;
}

.desktop-sport-tabs__item {
  min-width: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 14px;
  color: #9aa4ab;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 8px;
}

.desktop-sport-tabs__item i {
  font-size: 1.35rem;
}

.desktop-sport-tabs__item.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: hsl(var(--base));
}

.desktop-sport-tabs__item--promo {
  margin-left: auto;
  background: hsl(var(--base));
  color: #fff;
  flex-direction: row;
  gap: 8px;
  min-width: auto;
  padding: 10px 18px;
  border-radius: 8px;
}

.desktop-sport-tabs__item--promo i {
  font-size: 1.1rem;
}

.desktop-match-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px;
  margin-bottom: 12px;
  background: var(--home-panel, #151c21);
  border: 1px solid var(--home-border, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
}

.desktop-match-tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  background: transparent;
  color: #c5ced4;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.desktop-match-tabs a.is-active {
  background: hsl(var(--base));
  color: #fff;
}

@media (min-width: 992px) {
  .match-board {
    background: var(--home-panel, #151c21);
    border: 1px solid var(--home-border, rgba(255, 255, 255, 0.08));
    border-radius: 12px;
    overflow: hidden;
  }

  .match-board__head,
  .match-board .match-row {
    display: grid;
    grid-template-columns: minmax(240px, 1.35fr) 1.05fr 1.05fr 0.7fr;
    gap: 10px;
    align-items: center;
  }

  .match-board__head {
    padding: 10px 14px;
    background: #1a2228;
    color: #c5ced4;
    font-size: 0.78rem;
    font-weight: 700;
  }

  .match-board__head-info {
    min-height: 1px;
  }

  .match-board .match-list {
    gap: 0;
  }

  .match-board .match-row {
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--home-border, rgba(255, 255, 255, 0.08));
    border-radius: 0;
    padding: 10px 14px;
    background: transparent;
  }

  .match-board .match-row__info {
    grid-column: 1;
    min-width: 0;
  }

  .match-board .match-row__markets {
    display: contents;
  }

  .match-board .match-odd-group--primary {
    grid-column: 2;
  }

  .match-board .match-odd-group--dc {
    grid-column: 3;
  }

  .match-board .match-odd-group--btts {
    grid-column: 4;
  }

  .match-board .match-row__head {
    border-bottom: 0;
    background: transparent;
    margin-bottom: 4px;
  }

  .match-board .match-row__body {
    margin-bottom: 0;
  }

  .match-board .match-row__more {
    background: hsl(var(--base));
    color: #111 !important;
    border-radius: 999px;
    padding: 4px 10px;
    min-width: auto;
    font-size: 0.72rem;
  }

  .match-board .match-row__more:hover {
    color: #111 !important;
    filter: brightness(1.08);
  }
}
