.top-header-scoreboard {
  position: absolute;
  height: 20%;
  width: 110%;
  background: #1e74fd;
  top: 0px;
  max-height: 200px;
}
/* Scoreboard Container */
.scoreboard {
  width: 100%;
  max-width: 800px;
  color: #fff;
  text-align: center;
  position: relative;
  background: linear-gradient(180deg, #1e1e1e 0%, #151515 100%);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Header (League Name and More Options) */
.score-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #aaa;
  margin-bottom: 20px;
}

.league-name {
  font-weight: bold;
}

.more-options {
  font-size: 18px;
  cursor: pointer;
}

/* Teams Section */
.teams {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.team {
  text-align: center;
  flex: 1;
  width: 40%;
}

.team img {
  height: 50px;
  border-radius: 8px;
}

.team-name {
  margin-top: 5px;
  font-size: 14px !important;
  font-weight: 500;
}

.team1 {
  text-align: left;
}
.team1-score {
  font-size: 30px;
}
.team2 {
  text-align: end;
}
.team2-score {
  font-size: 30px;
}
/* Score and Match Time */
.score-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  flex: 1;
}
.score-image-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
}

.score {
  font-size: 36px;
  font-weight: bold;
  display: block;
}

.match-time {
  font-size: 14px;
  color: #16ff00; /* Green Time Indicator */
  font-weight: bold;
}

/* Match Stage */
.match-stage {
  font-size: 14px;
  color: #aaa;
  /* margin-top: 5px; */
}

/* Action Button */
.action-button {
  width: 100%;
  background: transparent;
  color: #fff;
  font-weight: bold;
  border: none;
  padding: 10px;
  margin-top: 10px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  transition: color 0.3s ease-in-out;
}

.action-icon {
  margin-left: 5px;
  transition: transform 0.3s ease-in-out;
}

.rotate {
  transform: rotate(180deg);
}

/* Smooth Slide Down Effect */
.action-content {
  display: none;
  text-align: left;
  background: #2a2a2a;
  padding: 15px;
  border-radius: 8px;
  overflow: hidden;
}

/* Animation */
.slide-down {
  animation: slideDown 0.3s ease-in-out forwards;
}

.slide-up {
  animation: slideUp 0.3s ease-in-out forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 200px;
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    max-height: 200px;
  }
  to {
    opacity: 0;
    max-height: 0;
  }
}

/* Responsive */
@media screen and (min-width: 600px) {
  .team img {
    height: 80px;
  }
  .team-name {
    font-size: 18px;
  }
}
@media screen and (max-width: 390px) {
  .score {
    font-size: 28px;
  }
  .team img {
    height: 40px;
  }
  .team-name {
    font-size: 12px;
    width: 120px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

.loading-bar-container {
  margin-left: -5px;
  width: 40px;
  height: 3px;
  /* background: rgba(255, 255, 255, 0.1); */
  /* border-radius: 1.5px; */
  overflow: hidden;
  position: relative;
}

.loading-bar {
  /* position: absolute; */
  width: 20px;
  height: 100%;
  background: #ff3e3e; /* Red color similar to Google's live indicator */
  border-radius: 1.5px;
  animation: slide 3s ease-in-out infinite alternate;
}

@keyframes slide {
  0% {
    transform: translateX(0px) scaleX(0.5);
  }
  25% {
    transform: translateX(10px) scaleX(1.2);
  }
  50% {
    transform: translateX(25px) scaleX(0.5);
  }
  75% {
    transform: translateX(10px) scaleX(1.2);
  }
  100% {
    transform: translateX(0px) scaleX(0.4);
  }
}

.tabs {
  display: flex;
  background-color: rgb(25, 25, 25);
  justify-content: center;
  margin-top: 10px;
  gap: 10px;
  padding-inline: 20px;
  padding-block: 10px;
}

.tabs .tab {
  background: transparent;
  color: #aaa;
  font-size: 14px;
  padding: 5px 12px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
}

.tabs .tab.active {
  background: #444;
  color: white;
  border: 1px solid white;
  font-weight: bold;
}
