.liveDataPage {
  margin-inline: 0;
  padding-top: 100px;
  margin-bottom: 100px;
  width: 100%;
}

.liveHeader {
  margin-top: 20px;
  display: flex;
  align-items: center;
}

.liveTitle {
  margin-top: 50px;
  font-size: 30px;
  font-weight: 800;
  box-sizing: content-box;
  text-align: center;
}

.liveBackBtn {
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(0, 0, 0, .25);
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  margin: 10px;
  top: 87px;
  left: 15px;
  z-index: 1;
  text-align: center;
  box-sizing: content-box;
  position: fixed;
  white-space: nowrap;
  width: 60px;
}

.liveWidgetCard {
  margin: 20px 20px 10px;
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(0, 0, 0, .20);
  border-radius: 16px;
  padding: 5px;
}

.liveCardTitle {
  margin: 0 0 10px;
  font-size: 14px;
  opacity: .9;
}

.game-teams {
  margin-bottom: 5px;
  margin-top: 5px;
}

.team-info {
  margin-bottom: 5px;
}

/* .btn-widget {
  color: #121212;
  background-color: #ffffff;
}

.btn-widget-link.active {
  background-color: #2eff38;
  color: #ffffff;
}

.btn-widget-link:hover {
  background-color: #a3a1a1;
}

date-picker .calendar-text {
  color: #03c0fa;
}

date-picker button.prev-day,
date-picker button.next-day {
  color: #03c0fa;
}

:where(api-sports-widget.initialized:not([data-type=config])) .widget-header .widget-toolbar .search-filter-button,
.modal-widget .widget-header .widget-toolbar .search-filter-button {
  color: #03c0fa;
} */


/* Live Data Tabs */
.liveTabs {
  display: flex;
  /* gap: 10px; */
  margin-bottom: 16px;
  padding: 6px;
  background: #121212;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.liveTabBtn {
  flex: 1;
  padding: 10px 14px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #bdbdbd;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
}

.liveTabBtn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.liveTabBtn.active {
  background: linear-gradient(135deg, #2d7cff, #1b56d6);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(45, 124, 255, 0.35);
}

.liveTabBtn:active {
  transform: scale(0.97);
}

.standingsLayout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 14px;
  margin-top: 12px;
  min-height: 520px;
}

.standingsLeft {
  background: #0f0f0f;
  border-radius: 12px;
  padding: 10px;
  overflow: auto;
}

.standingsLeagueBtn {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 10px 10px;
  border-radius: 10px;
  cursor: pointer;
  color: #fff;
  font-size: 14px;
}

.standingsRight {
  background: #0f0f0f;
  border-radius: 12px;
  padding: 12px;
  overflow: hidden;
}

.standingsHint {
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.75;
}

api-sports-widget th[data-title="Goals For : Against"] {
  display: none !important;
}


api-sports-widget .team-form {
  display: none !important;
}

/* Hide FORM column headers (all variants) */
api-sports-widget th[data-title="Form"],
api-sports-widget th[data-title="FORM"],
api-sports-widget th[data-title="Last 5 games"],
api-sports-widget [data-action="scheduled"] {
  display: none !important;
}

api-sports-widget .group-title {
  display: none !important;
}

api-sports-widget[data-type="standings"] .navtab-header {
  display: none !important;
}

api-sports-widget .header {
  display: none !important;
}

api-sports-widget[data-type="game"] [data-action="players"] {
  display: none !important;
}

.standingsLeagueBtn.active {
  cursor: default;
  pointer-events: none;
  opacity: 0.85;
  background: linear-gradient(50deg, #2d7cff, #1b56d6);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(45, 124, 255, 0.35);
}

.standingsLeagueBtn {
  display: flex;
  align-items: center;
  gap: 10px;
}

.leagueLogo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.standingsTitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: center;
  color: #fff;
}

.standingsTitleLogo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}





.matchesLayout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
  margin-top: 12px;
  min-height: 520px;
}

.matchesLeft {
  background: #0f0f0f;
  border-radius: 12px;
  padding: 10px;
  overflow: auto;
}

.matchMenuSingleBtn,
.matchMenuParentBtn,
.matchMenuChildBtn {
  width: 100%;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-align: left;
  padding: 10px 10px;
  border-radius: 10px;
}

.matchMenuSingleBtn.active,
.matchMenuChildBtn.active {
  background: #1f1f1f;
  cursor: default;
  pointer-events: none;
  opacity: 0.85;
  background: linear-gradient(30deg, #2d7cff, #1b56d6);
  color: #ffffff;
  box-shadow: 0 6px 6px rgba(45, 124, 255, 0.35);
}

.matchMenuParentBtn {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
}

.matchMenuChildren {
  margin-top: 6px;
  padding-left: 10px;
  display: grid;
  gap: 6px;
}

.matchLogo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  margin-right: 8px;
  vertical-align: middle;
}

.matchesRight {
  background: #0f0f0f;
  border-radius: 12px;
  padding: 12px;
  overflow: hidden;
}

.matchesTitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
}

.matchesTitleLogo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.matchMenuChevron {
  margin-left: auto;
}

.modal-widget-content .body {
  position: relative;
}

/* X button */
.modal-widget-content .body .apiPopupCloseBtn {
  position: absolute;
  top: 3px;
  right: 5px;

  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;

  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  font-size: 16px;
  line-height: 1;

  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease-in-out;
  z-index: 999999;
  /* ensure above widget UI */
}



.modal-widget-content .body .apiPopupCloseBtn:hover {
  transform: scale(1);
  color: #ff4d4d;
}

.modal-widget-content .body .apiPopupCloseBtn:active {
  transform: scale(0.50);
}


@media (max-width: 600px) {
  .liveTabBtn {
    font-size: 13px;
    padding: 9px 10px;
  }

  .liveTitle {
    font-size: 24px;
  }

  .liveHeader {
    margin-top: 20px;
    display: flex;
    align-items: center;
  }

}


@media (max-width: 768px) {
  .standingsLayout {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: unset;
  }

  /* LEFT becomes a horizontal scroll row */
  .standingsLeft {
    display: flex;
    gap: 8px;
    padding: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;

    /* smoother scrolling */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
  }

  .standingsLeft::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
  }

  /* Buttons become "chips" */
  .standingsLeagueBtn {
    width: auto;
    flex: 0 0 auto;
    text-align: center;
    padding: 9px 12px;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.06);
  }

  /* RIGHT panel below */
  .standingsRight {
    padding: 10px;
  }

  .standingsTitle {
    font-size: 14px;
    margin-bottom: 8px;
  }

  /* Optional: hide the hint on mobile to save space */
  .standingsHint {
    display: none;
  }

  .liveWidgetCard {
    margin: 20px 10px 10px;
    border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(0, 0, 0, .20);
    border-radius: 16px;
    padding: 5px;
  }

  .liveBackBtn {
    left: 3px;
    top: 60px;
    width: 40px;
  }

  .liveTitle {
    margin-top: 30px;
  }

  .matchesLayout {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .matchesLeft {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .matchesLeft::-webkit-scrollbar {
    display: none;
  }

  .matchMenuGroup {
    position: relative;
    flex: 0 0 auto;
  }

  .matchMenuSingleBtn {
    display: flex;
    width: 100%;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    text-align: left;
    padding: 10px 10px;
    border-radius: 10px;
  }

  .matchMenuChildBtn {
    display: block;
    width: 100%;
    margin: 6px 0;
    border-radius: 999px;
    padding: 4px 10px;
  }

  .matchMenuChildren {
    display: none;
  }

  .matchMenuGroup.open .matchMenuChildren {
    display: block;
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    z-index: 9999;

    padding: 8px;
    border-radius: 12px;
    background: rgba(15, 15, 15, 0.98);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);

    min-width: 220px;
    max-width: 260px;
    white-space: nowrap;
  }

  .matchesTitle {
    font-size: 14px;
  }

  .standingsTitleLogo {
    width: 22px;
    height: 22px;
  }

  .matchesTitleLogo {
    width: 22px;
    height: 22px;
  }


  .standingsRight {
    background: #0f0f0f;
    border-radius: 12px;
    padding: 12px 0px 0px;
    overflow: hidden;
  }

  .matchesRight {
    background: #0f0f0f;
    border-radius: 12px;
    padding: 12px 0px 0px;
    overflow: hidden;
  }

  .modal-widget-content .body .apiPopupCloseBtn {
    top: -2px;
    right: 0px;
    width: 24px;
    height: 24px;
    font-size: 14px;
  }
}



/* ✅ Extra small phones */
@media (max-width: 420px) {
  .standingsLeagueBtn {
    padding: 8px 10px;
    font-size: 12px;
  }

  .standingsTitle {
    font-size: 14px;
  }

  .standingsLeagueBtn.active {
    pointer-events: none;
  }

  .liveWidgetCard {
    margin: 20px 8px 10px;
    border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(0, 0, 0, .20);
    border-radius: 16px;
    padding: 5px;
  }

  .liveBackBtn {
    left: 3px;
    top: 60px;
    width: 40px;
  }

  .liveTitle {
    margin-top: 30px;
  }

  .leagueLogo {
    width: 18px;
    height: 18px;
  }

  .standingsTitleLogo {
    width: 20px;
    height: 20px;
  }

  .matchesTitleLogo {
    width: 20px;
    height: 20px;
  }

  .matchLogo {
    width: 18px;
    height: 18px;
  }

  .standingsRight {
    background: #0f0f0f;
    border-radius: 12px;
    padding: 12px 0px 0px;
    overflow: hidden;
  }

  .matchesRight {
    background: #0f0f0f;
    border-radius: 12px;
    padding: 12px 0px 0px;
    overflow: hidden;
  }
}