.errorMessage {
  visibility: hidden;
  color: red;
}

.custom-control.custom-checkbox.homeAwayTeamA,
.custom-control.custom-checkbox.favoriteDogTeamA,
.custom-control.custom-checkbox.somethingUpRightTeamB,
.custom-control.custom-checkbox.somethingDownRightTeamB {
  display: flex;
  justify-content: center;
}

.YDTSeriesRadioButtons {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 0 10px;
}

.radio-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
}

.d-flex.justify-content-center.mb-3 {
  display: flex !important;
  justify-content: center !important;
  align-items: center;
  width: 100%;
  gap: 10px;
}

.d-flex.justify-content-center.mb-3 .d-flex {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn {
  margin: 0 5px;
  min-width: 100px;
  font-size: 21px;
}

/* Center the form elements */
form.YDTSeriesRadioButtons {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Ensure radio buttons are centered */
.radio-group label {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 21px;
}

/* Remove the <br> tag spacing */
.filter-container br {
  display: none;
}

/* Remove blue border from radio buttons */
input[type="radio"] {
  display: inline-block !important;
  width: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative;
  z-index: 1000;
}

/* Add blue border to checkboxes */
.custom-checkbox .custom-control-input {
  width: 18px !important;
  height: 18px !important;
  border: 2px solid #0056b3 !important;
  border-radius: 3px !important;
  outline: none !important;
}

.custom-checkbox .custom-control-input:checked {
  background-color: #0056b3 !important;
  border-color: #0056b3 !important;
}

.custom-checkbox .custom-control-label::before {
  border: 2px solid #0056b3 !important;
  background-color: white !important;
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
  background-color: #0056b3 !important;
  border-color: #0056b3 !important;
}

/* Teams container styling */
.teams {
  width: 40% !important;
  text-align: center;
  padding: 0 10px;
}

/* Logo and stats container */
.teams > div {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Logo container styling */
.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 10px auto;
}

.logo-container img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Stats text styling */
.teams strong {
  display: block;
  text-align: center;
  margin: 2px 0;
  font-size: 18px;
  font-weight: bold;
}

/* Fix for the 4 boxes spacing */
.card.card-rounded {
  margin-bottom: 15px;
}

.card.card-rounded .d-flex.justify-content-between {
  align-items: center;
}

/* Center content in each section */
.card.p-3 .d-flex.justify-content-between {
  display: flex;
  justify-content: space-between;
  align-items: center !important;
  width: 100%;
}

.lines {
  width: 30%;
  text-align: center;
  padding: 0 10px;
}

/* Stats alignment */
.card.card-rounded .d-flex.justify-content-between.align-items-end {
  display: flex;
  justify-content: space-between;
  align-items: center !important;
  width: 100%;
  margin-top: 10px;
  text-align: center;
}

.card.card-rounded .d-flex.justify-content-between.align-items-end > div {
  text-align: center !important;
  width: 33%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card.card-rounded .d-flex.justify-content-between.align-items-end span {
  font-size: 15px !important;  /* Consistent size for all record numbers */
  line-height: 1.2;
  margin: 2px 0;
}

.card.card-rounded .d-flex.justify-content-between.align-items-start span.d-block b.role {
  font-size: 14px !important;  /* Consistent size for role labels */
  margin-bottom: 5px;
  text-align: center;
  width: 100%;
}

/* Center text in stats container */
.card.card-rounded .d-flex.justify-content-between.align-items-end .text-center {
  text-align: center !important;
}

.card.card-rounded .d-flex.justify-content-between.align-items-end .text-center span {
  font-size: 15px !important;  /* Consistent size for ATS/OU labels */
  font-weight: bold;
}

/* Make sure all stats have consistent weight */
.card.card-rounded .d-flex.justify-content-between.align-items-end div[data-not-rotated-game-role] span,
.card.card-rounded .d-flex.justify-content-between.align-items-end div[data-rotated-game-role] span {
  font-size: 15px !important;
  font-weight: bold;
}

/* Remove left/right alignment overrides */
.card.card-rounded .d-flex.justify-content-between.align-items-end div[data-not-rotated-game-role],
.card.card-rounded .d-flex.justify-content-between.align-items-end div[data-rotated-game-role] {
  text-align: center !important;
}

/* Ensure all spans and text are centered */
.card.card-rounded .d-flex span,
.card.card-rounded .d-flex strong,
.card.card-rounded .d-flex div {
  text-align: center;
}

/* General text alignment */
.card.card-rounded h5,
.card.card-rounded h6 {
  width: 100%;
  text-align: center;
  margin: 5px 0;
}

.card.card-rounded .d-block {
  text-align: center;
  width: 100%;
}

.card.card-rounded .d-block b.role {
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
}

/* ATS/OU text styling */
.teams h5:not(.mb-3) {
  margin: 5px 0;
  font-size: 18px;
  font-weight: bold;
}

.card.card-rounded .custom-checkbox {
  margin-top: 5px;
}

/* Center ATS/OU text below logo */
.card.card-rounded .d-flex.justify-content-between.align-items-end .text-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.card.card-rounded .d-flex.justify-content-between.align-items-end .text-center span {
  margin: 2px 0;
  line-height: 1.2;
  text-align: center;
  width: 100%;
}

/* Improve spacing between the boxes */
.col-12.col-lg-6.col-sm-12.col-md-6.my-2.px-md-1 {
  margin-bottom: 20px;
}

/* Center ATS/OU text below logo */
.card.card-rounded .d-flex.justify-content-between.align-items-end .text-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.card.card-rounded .d-flex.justify-content-between.align-items-end .text-center span {
  margin: 2px 0;
  line-height: 1.2;
  text-align: center;
  width: 100%;
}

/* Ensure logo container is centered */
.card.card-rounded .d-flex.justify-content-between {
  align-items: center;
}

.card.card-rounded .d-flex.justify-content-between .text-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Role labels and checkboxes alignment */
.card.card-rounded .d-flex.justify-content-between.align-items-start {
  display: flex;
  justify-content: space-between;
  align-items: center !important;
  width: 100%;
  margin-bottom: 10px;
}

.card.card-rounded .d-flex.justify-content-between.align-items-start span.d-block {
  text-align: center;
  width: 33%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card.card-rounded .d-flex.justify-content-between.align-items-start span.d-block b.role {
  text-align: center;
  width: 100%;
  margin-bottom: 5px;
}

/* Logo styling */
.card.card-rounded .text-center img {
  display: block;
  margin: 0 auto;
  max-width: 50px;
  max-height: 50px;
  width: auto;
  height: auto;
}

/* Role text styling */
.card.card-rounded .d-block b.role {
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
}

/* Checkbox alignment */
.custom-checkbox.custom-control {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

/* Main card layout improvements */
.card.p-3 .d-flex.justify-content-between {
  display: flex;
  justify-content: space-between;
  align-items: center !important;
  width: 100%;
}

/* Lines section styling */
.card.p-3 .lines {
  width: 25%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  min-height: 280px;
}

/* Stats groups container */
.card.p-3 .lines > div {
  flex: 1;
}

/* Top stat group (SU) */
.card.p-3 .lines h5:first-of-type,
.card.p-3 .lines h6:first-of-type {
  margin-top: 0;
  padding-top: 0;
}

/* Middle stat group (ATS) */
.card.p-3 .lines h5.mt-3,
.card.p-3 .lines h6:nth-of-type(2) {
  margin: 0;
  align-self: center;
}

/* Bottom stat group (O/U) */
.card.p-3 .lines h5:last-of-type,
.card.p-3 .lines h6:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Center section height match */
.card.p-3 .d-flex.justify-content-between > div:nth-child(2) {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Teams container height */
.card.p-3 .d-flex.justify-content-between > div:nth-child(2) > div:first-child {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Date container positioning */
.card.p-3 .d-flex.justify-content-center.w-100 {
  margin-top: auto;
}

/* Team section styling */
.teams.text-center {
  width: 50%;
  text-align: center;
}

/* Date container styling */
.date-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 10px 0;
}

.score-left, .score-right {
  width: 25%;
  font-size: 18px;
  font-weight: bold;
}

.date-time-container {
  width: 75%;
  text-align: center;
}

/* Logo container adjustments */
.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px auto;
}

.logo-container img {
  max-width: 80px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Text styling */
.teams h5 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
}

.lines h5 {
  margin-bottom: 5px;
}

.lines h6 {
  margin-bottom: 15px;
}

.date-container strong {
  display: block;
  width: 100%;
  text-align: center;
}

/* Add this new style for the date wrapper */
.d-flex.justify-content-center.w-100 {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.high-percentage {
  color: #0056b3;  /* Darker blue for better contrast */
  font-weight: 600;
}

.low-percentage {
  color: #d65108;  /* Darker orange for better contrast */
  font-weight: 600;
}

#gamesListView {
    display: grid;
    grid-template-columns: minmax(auto, 800px);  /* Single column with max width */
    justify-content: center;  /* Center the column */
    row-gap: 0;  /* Remove default gap since we're using margins */
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 30px;  /* Add padding at the bottom to match top spacing */
}

.btn-orange {
    background-color: #e76b06 !important;
    border-color: #e76b06 !important;
    color: white !important;
}

.btn-orange:hover {
    background-color: #fd7e14 !important;
    border-color: #fd7e14 !important;
    color: white !important;
}

.btn-blue {
    background-color: #0056b3 !important;
    border-color: #0056b3 !important;
    color: white !important;
}

.btn-blue:hover {
    background-color: #007bff !important;
    border-color: #007bff !important;
    color: white !important;
}

/* Remove previous left/right alignment rules that might conflict */
.card.card-rounded .d-flex.justify-content-between.align-items-start span.d-block:first-child,
.card.card-rounded .d-flex.justify-content-between.align-items-start span.d-block:last-child {
  text-align: center;
}

/* Update the role and checkbox container alignment */
.card.card-rounded .d-flex.justify-content-between.align-items-start span.d-block {
  text-align: center;
  width: 33%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Ensure all checkboxes are centered */
.custom-checkbox.custom-control {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

/* Remove any right-alignment styles */
.custom-control.custom-checkbox {
  justify-content: center !important;
}

/* Ensure the role text is centered */
.card.card-rounded .d-block b.role {
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
  text-align: center;
  width: 100%;
}

/* Filter container and buttons layout */
.d-flex.justify-content-center.mb-3.mt-3 {
  display: flex;
  align-items: center;
  justify-content: center !important;
  width: 100%;
  gap: 15px;
  padding: 20px 0;
  margin: 0;
}

.d-flex.justify-content-center.mb-3.mt-3 .d-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

/* Container for all elements */
.YDTSeriesRadioButtons {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  order: 2;
}

/* Update Stats button - first position */
.btn-orange {
  order: -1 !important;
}

/* Reset button - last position */
.btn-blue {
  order: 3;
}

/* Radio buttons */
.filter-container {
  order: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Ensure buttons maintain proper spacing */
.btn {
  margin: 0 5px;
  min-width: 150px;
  font-size: 18px;
}

/* Radio group styling */
.radio-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-size: 18px;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .d-flex.justify-content-center.mb-3.mt-3 {
    flex-direction: column;
    padding: 20px 0;
  }

  .d-flex.justify-content-center.mb-3.mt-3 .d-flex {
    flex-direction: column;
    width: 100%;
  }

  .YDTSeriesRadioButtons {
    width: 100%;
    margin-bottom: 10px;
  }

  .btn {
    width: 100%;
    max-width: 250px;
    margin: 5px 0;
  }

  /* New mobile styles for game boxes */
  .justify-content-center.mx-0.row {
    display: flex;
    flex-direction: column;
  }

  /* Make all boxes full width on mobile */
  .col-12.col-lg-6.col-sm-12.col-md-6.my-2.px-md-1 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  /* Reorder the boxes */
  [data-not-rotated-game-id] {
    /* order: 1; */
  }

  [data-rotated-game-id] {
    order: 2;
  }

  /* Add more space between box groups */
  .card.card-rounded {
    margin-bottom: 20px;
  }

  .stats-container {
    flex-direction: column;
    align-items: flex-start;
  }

  [data-tooltip]:before,
  .info-icon:hover:before {
    width: auto;
    white-space: normal;
    min-width: 200px;
    text-align: center;
    top: 130%;  /* Changed from bottom to top, increased for mobile */
  }

  /* Stats text size adjustments */
  .card.p-3 .lines h5 {
    font-size: 13px !important;
    margin-bottom: 2px;
  }

  .card.p-3 .lines h6 {
    font-size: 15px !important;
    margin-bottom: 8px;
  }

  /* Info icon size adjustment */
  .card.p-3 .lines .info-icon {
    width: 14px;
    height: 14px;
    font-size: 10px;
    margin-left: 2px;
  }

  /* Adjust lines container padding */
  .card.p-3 .lines {
    padding: 5px;
    min-height: 220px;
  }

  /* Adjust center section height */
  .card.p-3 .d-flex.justify-content-between > div:nth-child(2) {
    min-height: 220px;
  }

  /* Make team logos smaller */
  .logo-container img {
    max-width: 60px;
    max-height: 60px;
  }

  /* Adjust team names */
  .teams h5 {
    font-size: 14px !important;
  }

  /* Date container adjustments for mobile */
  .date-container {
    font-size: 12px;
    padding: 5px 0;
  }

  .score-left, .score-right {
    font-size: 13px;
    font-weight: bold;
  }

  .date-time-container {
    width: 75%;
  }

  .date-time-container .date {
    font-size: 13px;
    margin-bottom: 2px;
  }

  .date-time-container .time {
    font-size: 12px;
    color: #666;
  }

  /* Ensure proper alignment of scores */
  .score-left {
    text-align: right;
    padding-right: 5px;
  }

  .score-right {
    text-align: left;
    padding-left: 5px;
  }

  /* Remove card padding on mobile */
  .card.p-3 {
    padding: 0 !important;
  }

  /* Adjust scores to be smaller */
  .score-left, .score-right {
    font-size: 11px;
    font-weight: bold;
    width: 25%;
  }

  /* Ensure proper alignment of scores with smaller text */
  .score-left {
    text-align: right;
    padding-right: 3px;
  }

  .score-right {
    text-align: left;
    padding-left: 3px;
  }

  /* Adjust date container spacing for removed padding */
  .date-container {
    padding: 3px 0;
  }
}

/* Base text size adjustments */
body {
  font-size: 110%;
}

.card.card-rounded .d-block b.role {
  font-size: 15px;  /* Decreased from 18px */
}

.date-container {
  font-size: 15px;  /* Decreased from 18px */
}

.score-left, .score-right {
  font-size: 15px;  /* Decreased from 18px */
}

.card.card-rounded span.d-block {
  font-size: 14px !important;  /* Decreased from 16px */
}

.radio-group label {
  font-size: 18px;  /* Decreased from 21px */
}

.btn {
  font-size: 18px;  /* Decreased from 21px */
}

/* Tooltip styles */
[data-tooltip] {
  position: relative;
  cursor: help;
}

[data-tooltip]:before {
  content: attr(data-tooltip);
  position: absolute;
  top: 120%;  /* Changed from bottom to top to show below */
  left: 50%;
  transform: translateX(-50%);
  padding: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 1001;
  min-width: max-content;
}

[data-tooltip]:hover:before {
  visibility: visible;
  opacity: 1;
}

/* Info icon styles */
.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: #0056b3;
  color: white;
  border-radius: 50%;
  font-size: 12px;
  margin-left: 4px;
  cursor: help;
  position: relative;
}

.info-icon:hover:before {
  content: attr(data-tooltip);
  position: absolute;
  top: 120%;  /* Changed from bottom to top */
  left: 50%;
  transform: translateX(-50%);
  padding: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  visibility: visible;
  opacity: 1;
  z-index: 1001;
  min-width: max-content;
}

/* Ensure tooltips are always on top */
.card {
  position: relative;
}

/* Stats container improvements */
.stats-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Button improvements */
.btn {
  position: relative;
  overflow: hidden;
}

.btn:hover::after {
  content: attr(data-function);
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #666;
  white-space: nowrap;
}

/* Source attribution */
.data-source {
  text-align: right;
  color: #666;
  font-size: 12px;
  margin-top: 10px;
}

.event-separator {
  width: 100%;
  margin: -12px auto 30px auto;  /* -12px top, 30px bottom, auto left/right */
  height: 25px;  /* Adjusted for three stripes */
  border: 0;
  background: linear-gradient(
    to bottom,
    #000000 0px,
    #000000 10px,
    #ffffff 10px,
    #ffffff 15px,
    #d2b48c 15px,
    #d2b48c 25px
  );
}

/* Add this new style for the last separator to be reversed */
.event-separator:last-of-type {
  background: linear-gradient(
    to bottom,
    #d2b48c 0px,
    #d2b48c 10px,
    #ffffff 10px,
    #ffffff 15px,
    #000000 15px,
    #000000 25px
  );
}

.lines h5 {
  font-size: 15px !important;
  margin-bottom: 5px;
  font-weight: bold;
}

.lines h6 {
  font-size: 18px !important;
  font-weight: bold;
  margin-bottom: 6px !important;
  line-height: 1 !important;
  margin-top: -30px !important;  /* Added negative margin to pull numbers up */
}

.teams h5 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
}

.teams h6 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
}

.teams .d-none.d-md-block {
  font-size: 18px;
  font-weight: bold;
}

.teams .d-block.d-md-none {
  font-size: 18px;
  font-weight: bold;
}

/* Ensure consistent card spacing */
#gamesListView > div {
  margin-bottom: 0;  /* Remove default margin since separator handles spacing */
}

/* Ensure first card has proper top spacing */
#gamesListView > div:first-child {
  margin-top: 0;
}

/* Ensure last card has proper bottom spacing */
#gamesListView > div:last-child {
  margin-bottom: 0;
}

/* Role labels in the main card */
.lines h5 {
  font-size: 15px !important;
  margin-bottom: 5px;
  font-weight: bold;
}

/* Role labels in the boxes below */
.card.card-rounded .d-flex.justify-content-between.align-items-start span.d-block b.role {
  font-size: 14px !important;
  margin-bottom: 5px;
  text-align: center;
  width: 100%;
  font-weight: bold;
}

/* Ensure consistent size for all role text */
.role {
  font-size: 15px !important;
  font-weight: bold;
}

/* Record numbers size */
.lines h6 {
  font-size: 18px !important;
  font-weight: bold;
  margin-bottom: 15px;
}

/* Stats in the boxes */
.card.card-rounded .d-flex.justify-content-between.align-items-end span {
  font-size: 18px !important;  /* Matched to main stats size */
  line-height: 1.2;
  margin: 2px 0;
  font-weight: bold;
}

/* Main stats numbers */
.lines h6 {
  font-size: 18px !important;
  font-weight: bold;
  margin-bottom: 15px;
}

/* Box stats numbers */
.card.card-rounded .d-flex.justify-content-between.align-items-end span {
  font-size: 18px !important;  /* Matched to main stats size */
  line-height: 1.2;
  margin: 2px 0;
  font-weight: bold;
}

/* Stats container numbers */
.card.card-rounded .d-flex.justify-content-between.align-items-end div[data-not-rotated-game-role] span,
.card.card-rounded .d-flex.justify-content-between.align-items-end div[data-rotated-game-role] span {
  font-size: 18px !important;  /* Matched to main stats size */
  font-weight: bold;
}

/* Center stats text */
.stats-container span.d-block {
  font-size: 18px !important;  /* Matched to main stats size */
  font-weight: bold;
  text-align: center;
  width: 100%;
}

/* ATS/OU labels remain smaller */
.card.card-rounded .d-flex.justify-content-between.align-items-end .text-center strong {
  font-size: 15px !important;
  font-weight: bold;
}

/* Main card role labels (SU, ATS, O/U) */
.lines h5 {
  font-size: 15px !important;
  margin-bottom: 5px;
  font-weight: bold;
}

/* Box role labels (OFF ROAD, AWAY, etc.) */
.card.card-rounded .d-flex.justify-content-between.align-items-start span.d-block b.role {
  font-size: 14px !important;
  margin-bottom: 5px;
  text-align: center;
  width: 100%;
  font-weight: bold;
}

/* Ensure consistent size for all role text */
.role {
  font-size: 15px !important;
  font-weight: bold;
}

/* ATS/OU labels in boxes */
.card.card-rounded .d-flex.justify-content-between.align-items-end .text-center strong {
  font-size: 15px !important;
  font-weight: bold;
}

/* Make sure all role labels are consistent */
.card.card-rounded .d-flex span strong,
.card.card-rounded .d-flex b.role,
.lines h5 strong {
  font-size: 15px !important;
  font-weight: bold;
}

/* Style for TODAY | TOMORROW text */
.sport-content-conter {
  color: #000000 !important;
  font-size: 15px;
}

.sport-content-conter a {
  color: #000000 !important;
  text-decoration: none;
  font-weight: bold;
}

.sport-content-conter a:hover {
  color: #000000 !important;
  text-decoration: none;
}

/* Blur effect for non-logged in users */
.blurred-content {
  filter: blur(8px);
  opacity: 0.7;
  transition: all 0.3s ease;
}

/* Login overlay */
.login-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.98);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 90%;
  max-width: 400px;
}

.lock-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.login-overlay p {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.value-prop {
  font-size: 0.9rem;
  color: #666;
  margin: 1rem 0;
  line-height: 1.4;
}

.auth-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.btn-auth {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-signin {
  background: #3498db;
  color: white;
}

.btn-signin:hover {
  background: #2980b9;
}

.btn-register {
  background: #fff;
  color: #3498db;
  border: 2px solid #3498db;
}

.btn-register:hover {
  background: #f8f9fa;
}

@media (max-width: 768px) {
  .login-overlay {
    padding: 1.5rem;
    top: 50%;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
  }
  
  .lock-icon {
    font-size: 2rem;
  }
  
  .login-overlay p {
    font-size: 1rem;
  }
  
  .value-prop {
    font-size: 0.8rem;
  }
  
  .btn-auth {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* Remove all previous z-index related code and keep only this */
#navbar.header-bottom.fadeInDown.navbar-fixed {
  position: fixed;
  z-index: 9999;  /* Highest z-index to stay above everything */
}

/* Keep the blur and overlay styles but remove z-index properties */
.blurred-content {
  filter: blur(8px);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.login-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.98);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 90%;
  max-width: 400px;
}

@media (max-width: 768px) {
  .login-overlay {
    padding: 1.5rem;
    top: 50%;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
  }
}

/* Adjust spacing for mobile */
@media (max-width: 768px) {
  .lines h6 {
    margin-top: -20px !important;  /* Slightly less negative margin on mobile */
  }
}

/* Tooltip for info-icon */
.custom-tooltip {
  position: absolute;
  background: #222;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  font-size: 12px;
  z-index: 99999;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  opacity: 1;
  transition: opacity 0.2s;
}

.info-icon:hover:before {
  z-index: 99999;
}

@media (max-width: 767px) {
  /* Accordion header professional layout */
  .header-flex-align {
    display: flex;
    align-items: center;
    width: 100%;
  }
  .header-label-col {
    flex: 1;
    text-align: right;
  }
  .header-logo-col {
    flex: 1;
    display: flex;
    justify-content: center;
  }
  .header-pill-col {
    flex: 1;
    display: flex;
    justify-content: flex-start;
  }
  .header-pill {
    background: #222;
    color: #fff;
    border-radius: 16px;
    padding: 2px 16px;
    font-weight: 600;
    font-size: 1rem;
    min-width: 48px;
    text-align: center;
    display: inline-block;
  }
  .header-label {
    font-weight: bold;
    color: #17408B;
    font-size: 1rem;
  }
  .header-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: inline-block;
  }
  /* Only compact the filter controls row, not the accordion headers */
  .d-flex.justify-content-center.mb-3.mt-3,
  .d-flex.justify-content-center.mb-3.mt-3 > .d-flex {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 4px;
    width: 100%;
    justify-content: center;
  }
  .YDTSeriesRadioButtons,
  .btn.btn-orange,
  .btn.btn-blue {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    width: auto !important;
    max-width: unset !important;
    min-width: 0 !important;
    flex: 0 0 auto;
    font-size: 13px !important;
    padding: 4px 10px !important;
  }
  .btn {
    font-size: 13px !important;
    padding: 4px 10px !important;
    min-width: 0 !important;
    max-width: unset !important;
  }
  .filter-container {
    flex-direction: row !important;
    gap: 4px;
  }
  .radio-group label {
    font-size: 14px !important;
    margin-right: 2px;
  }
  .radio-group {
    gap: 2px;
  }
}