/* SportOdds app layer — keeps navy/mint; no redesign */

.so-board-empty {
  padding: 18px 12px;
  color: var(--theme-one, #88b6ff);
  font-size: 14px;
}
.so-view-count {
  color: var(--theme-one, #88b6ff);
  font-size: 13px;
  margin: 4px 0 0;
}

/* Team crests beside match names */
.so-team-line > a,
.so-team-line a {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}
.so-team-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 22px;
  background: #0f1724;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.so-team-logo--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: #2a3548;
}
.match__vs .flag img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

/* Fixing carousel rail + arrows */
.so-fixing-rail {
  position: relative;
  display: block;
}
.so-fixing-rail .match__fixing__wrap.so-scroll-carousel {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 4px 36px 10px;
  -webkit-overflow-scrolling: touch;
}
.so-fixing-rail .match__fixing__items {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-width: 260px;
}
.so-fixing-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(136, 182, 255, 0.35);
  background: var(--header, #202a39);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.so-fixing-arrow:hover {
  background: var(--active-color, #09ff8d);
  color: #0b121c;
  border-color: transparent;
}
.so-fixing-arrow--prev {
  left: 6px;
}
.so-fixing-arrow--next {
  right: 6px;
}
@media (max-width: 767px) {
  .so-fixing-arrow {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .so-fixing-rail .match__fixing__wrap.so-scroll-carousel {
    padding-left: 30px;
    padding-right: 30px;
  }
}

.point__box.so-selected {
  outline: 1px solid var(--active-color, #09ff8d);
  color: var(--active-color, #09ff8d) !important;
  box-shadow: inset 0 0 0 1px rgba(9, 255, 141, 0.35);
}
.point__box.so-tick-up {
  color: var(--active-color, #09ff8d) !important;
}
.point__box.so-tick-down {
  color: #ff6b6b !important;
}
/* Reserve meta line height so Live clock never pops in and jumps the page */
.so-live-meta {
  display: flex !important;
  align-items: center;
  gap: 8px;
  min-height: 18px;
  margin: 4px 0 0 !important;
  line-height: 18px;
}
.so-live-clock,
.so-kickoff {
  display: inline-block;
  min-width: 7ch;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.so-live-badge,
a.so-live-badge {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  color: var(--active-color, #09ff8d) !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
  flex: 0 0 auto;
}
.so-live-label {
  color: inherit;
}
.so-live-pulse {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--active-color, #09ff8d);
  flex: 0 0 8px;
  box-shadow: 0 0 0 0 rgba(9, 255, 141, 0.7);
  animation: so-live-pulse 1.4s ease-out infinite;
}
.so-live-pulse::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(9, 255, 141, 0.55);
  animation: so-live-ring 1.4s ease-out infinite;
}
@keyframes so-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(9, 255, 141, 0.65); }
  70% { box-shadow: 0 0 0 8px rgba(9, 255, 141, 0); }
  100% { box-shadow: 0 0 0 0 rgba(9, 255, 141, 0); }
}
@keyframes so-live-ring {
  0% { transform: scale(0.85); opacity: 0.9; }
  70% { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(0.85); opacity: 0; }
}
.so-section-live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.so-section-live .so-live-pulse {
  width: 10px;
  height: 10px;
  flex-basis: 10px;
}
/* Custom sidebar accordion — no Bootstrap collapse (fixes empty gap) */
.so-side-wrap {
  color: #fff;
}
.so-side-pane[hidden],
.so-acc__panel[hidden] {
  display: none !important;
}
.so-side-pane.is-active {
  display: block !important;
}
.so-acc__item {
  border-bottom: 1px solid #4c546a;
}
.so-acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: transparent;
  border: 0;
  color: #fff !important;
  cursor: pointer;
  text-align: left;
}
.so-acc__left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff !important;
  font-size: 15px;
}
.so-acc__left i {
  color: var(--theme-one, #88b6ff);
}
.so-acc__right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9aa7bd !important;
  font-size: 12px;
}
.so-acc__right .fa-chevron-down {
  transition: transform 0.2s ease;
  font-size: 10px;
}
.so-acc__item.is-open .so-acc__right .fa-chevron-down {
  transform: rotate(180deg);
}
.so-acc__panel {
  padding: 0 10px 8px 34px;
}
.so-side-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(76, 84, 106, 0.55);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 12px;
  line-height: 1.35;
}
.so-side-row:last-child {
  border-bottom: 0;
}
.so-side-row:hover .so-side-row__teams {
  color: var(--active-color, #09ff8d) !important;
}
.so-side-row__teams {
  color: #fff !important;
  flex: 1;
  min-width: 0;
}
.so-side-row__meta {
  color: var(--theme-one, #88b6ff) !important;
  font-size: 10px;
  white-space: nowrap;
}
.so-side-empty {
  color: var(--theme-one, #88b6ff) !important;
  font-size: 12px;
  padding: 6px 0;
}

.so-slip-empty {
  padding: 18px 12px;
  text-align: center;
  color: var(--theme-one, #88b6ff);
}
.so-slip-empty h6 {
  color: #fff;
  margin-bottom: 6px;
}

/* Betslip CTA: button.cmn--btn2 has no default text color; disabled was invisible */
.so-betslip .cmn--btn2,
.betslip__wrap .cmn--btn2,
.so-slip-sheet .cmn--btn2 {
  color: #fff !important;
  border: 0;
  width: 100%;
  cursor: pointer;
}
.so-betslip .cmn--btn2 span,
.betslip__wrap .cmn--btn2 span,
.so-slip-sheet .cmn--btn2 span {
  color: #fff !important;
}
.so-betslip .cmn--btn2:disabled,
.betslip__wrap .cmn--btn2:disabled,
.so-slip-sheet .cmn--btn2:disabled,
.so-betslip .cmn--btn2.so-cta-muted {
  opacity: 1 !important;
  filter: none !important;
  background: #2a3548 !important;
  color: #fff !important;
  cursor: not-allowed;
}
.so-betslip .cmn--btn2:disabled span,
.betslip__wrap .cmn--btn2:disabled span,
.so-slip-sheet .cmn--btn2:disabled span,
.so-betslip .cmn--btn2.so-cta-muted span {
  color: #c8d6e8 !important;
}
.so-betslip .cmn--btn2:disabled::before,
.so-betslip .cmn--btn2.so-cta-muted::before {
  display: none;
}
.so-stake-input {
  width: 88px;
  background: var(--header, #202a39);
  border: 1px solid rgba(136, 182, 255, 0.25);
  color: #fff;
  border-radius: 4px;
  padding: 4px 8px;
}
.so-slip-clear {
  display: block;
  width: 100%;
  margin-top: 10px;
  background: transparent;
  border: 1px solid rgba(136, 182, 255, 0.3);
  color: var(--theme-one, #88b6ff);
  border-radius: 4px;
  padding: 8px;
  cursor: pointer;
}
.so-market-group .so-market-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0;
}
.so-market-group .point__box {
  min-width: 72px;
  text-align: center;
}

/* Mobile dock + slip sheet */
.so-mobile-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  display: flex;
  background: var(--header, #202a39);
  border-top: 1px solid rgba(136, 182, 255, 0.2);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.so-mobile-dock a,
.so-mobile-dock button {
  flex: 1;
  background: none;
  border: 0;
  color: var(--theme-one, #88b6ff);
  text-align: center;
  font-size: 11px;
  padding: 4px 2px;
  position: relative;
}
.so-mobile-dock i {
  display: block;
  font-size: 16px;
  margin-bottom: 2px;
}
.so-slip-count {
  position: absolute;
  top: 0;
  right: 18%;
  background: var(--active-color, #09ff8d);
  color: #0b121c;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  min-width: 16px;
  line-height: 16px;
  padding: 0 4px;
}
.so-slip-sheet[hidden] {
  display: none !important;
}
.so-slip-sheet {
  position: fixed;
  inset: 0;
  z-index: 100001;
}
.so-slip-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.so-slip-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 85vh;
  overflow: auto;
  background: var(--subheader, #161f2c);
  border-radius: 12px 12px 0 0;
  padding: 16px 14px 24px;
}
.so-slip-sheet__close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
body.so-slip-open {
  overflow: hidden;
}
.so-footer {
  width: 100%;
  margin-top: 24px;
}
.so-footer .footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
@media (min-width: 992px) {
  .so-mobile-dock {
    display: none !important;
  }
}
@media (max-width: 991px) {
  body {
    padding-bottom: 64px;
  }
  .so-footer {
    margin-bottom: 72px;
  }

  /* Mobile drawer menu — chrome + ThemeForest headers */
  .header-section {
    position: sticky;
    top: 0;
    z-index: 100000;
  }
  .header-wrapper .main-menu {
    display: block !important;
    flex-wrap: unset !important;
    left: 0;
    right: 0;
    padding: 8px 12px 16px !important;
    background: var(--header, #202a39) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  }
  .header-wrapper .main-menu:not(.active) {
    height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  .header-wrapper .main-menu.active {
    height: auto !important;
    max-height: calc(100vh - var(--so-header-h, 72px) - 72px);
  }
  .header-wrapper .main-menu > li {
    width: 100% !important;
    flex: none !important;
  }
  .header-wrapper .main-menu > li > a {
    display: block !important;
    padding: 12px 10px !important;
    white-space: normal !important;
  }
  .header-wrapper .main-menu .cmn-grp {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 10px !important;
  }

  /* Odds boards — kill 1000px lock, shrink chips, show scroll */
  .main__body__wrap {
    overflow: visible;
  }
  .main__body__wrap .live__heightlight,
  .main__body__wrap .live__heightlight .height__table,
  .main__body__wrap .live__heightlight .tab-pane {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(136, 182, 255, 0.45) transparent;
  }
  .main__body__wrap .live__heightlight::-webkit-scrollbar,
  .main__body__wrap .live__heightlight .height__table::-webkit-scrollbar,
  .main__body__wrap .live__heightlight .tab-pane::-webkit-scrollbar {
    height: 4px;
    display: block !important;
  }
  .main__body__wrap .live__heightlight::-webkit-scrollbar-thumb,
  .main__body__wrap .live__heightlight .height__table::-webkit-scrollbar-thumb,
  .main__body__wrap .live__heightlight .tab-pane::-webkit-scrollbar-thumb {
    background: rgba(136, 182, 255, 0.45);
    border-radius: 4px;
  }
  .main__body__wrap .live__heightlight .main__table {
    width: max-content !important;
    min-width: 100%;
    max-width: none;
  }
  .main__table .table__wrap .table__items .t__items {
    min-width: 0;
    max-width: 140px;
  }
  .main__table .table__wrap .table__items .t__items .so-team-line span:last-child,
  .main__table .table__wrap .table__items .t__items p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .point__box,
  .main__table .table__wrap .table__items .mart__point__items .point__box,
  .main__table .table__wrap .table__items .mart__point__two .point__box {
    width: 48px !important;
    min-width: 48px;
    height: 44px !important;
    font-size: 12px;
  }
  .main__table .table__wrap .table__items .mart__point__two .mart__point__right {
    padding-left: 12px;
  }
  .main__table .table__wrap .table__items {
    gap: 0 8px;
  }
  .match__fixing__items {
    min-width: 220px;
  }
  .match__fixing__items .match__point li {
    width: 56px;
  }
}
