/* League Table Styles */
.league_table_container {
  width: 100%;
  overflow-x: auto;
}

.league_table_container table {
  width: 100%;
  border-collapse: collapse;
}

.league_table_container table tr:first-child th {
  font-size: 36px;
  font-weight: bold;
  color: #fff !important;
  background-color: #000 !important;
  border: none;
  text-align: center;
  padding: 10px;
}

.league_table_container table tr:first-child th:first-child {
  text-align: right;
}

.league_table_container table tr td {
  border: 0px;
  font-size: 26px;
  padding: 10px;
  background: #fcfcfc;
}

.league_table_container table tr:nth-child(2) td {
  background-color: #dedede;
}

.league_table_container table tr.my-team td {
  background-color: #ed6b1f !important;
  color: #fff;
}

.league_table_container table tr:not(:nth-child(1)):not(:nth-child(2)) td {
  background-color: #fff;
}

.league_table_container table tr:nth-child(odd):not(:first-child) td {
  background-color: #f9f9f9;
}

td.points {
  text-align: center;
}

/* Next Match Styles */
.next_match_container {
  text-align: center;
  width: 100%;
  padding: 30px;
  background-color: #f0f0f0;
}

.next_match_container .next_match {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  width: 100%;
  gap: 40px;
}

.next_match_container .next_match .match_info {
  color: #333;
  font-size: 18px;
  font-weight: 400;
  display: flex;
  flex-direction: column;
}

.next_match .team_info img {
  max-height: 100px;
  width: auto;
}

.next_match .team_info {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.team_info.team_a {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

.team_info span {
  font-size: 30px;
  font-weight: bold;
  color: #333;
}

@media only screen and (max-width: 768px) {
  .next_match_container .next_match,
  .next_match_container .team_info {
    flex-direction: column;
  }
  .team_info.team_a {
    flex-direction: column-reverse;
  }
  .match_info {
    margin: 20px 0;
  }
}

/* Error message styles */
.league-table-error,
.next-match-error {
  background-color: #ffdddd;
  border: 1px solid #ff0000;
  color: #ff0000;
  padding: 10px;
  margin: 10px 0;
  text-align: center;
}
.matches-table-container {
  max-width: 1200px;
  margin: 0px auto 50px auto;
  color: #fff;
}

.matches-table-container h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #fff;
}

.matches-table {
  width: 100%;
  border-collapse: collapse;
}

.matches-table th,
.matches-table td {
  border: 1px solid #fff;
  padding: 8px;
  text-align: center;
}

.matches-table th {
  background: #ef6d01 !important;
  font-weight: bold;
  color: #fff;
  font-size: 24px;
}

.matches-table tr:nth-child(even) {
  background-color: #ffffff;
  color: #000000;
}

.matches-table tr:nth-child(odd) {
  background-color: #f9f9f9;
  color: #000000;
}

.matches-table-error {
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #fff;
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
}
.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.player-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.player-card:hover {
  transform: translateY(-5px);
}

.player-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.player-info {
  padding: 15px;
}

.player-name {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

.player-position {
  color: #666;
  font-size: 14px;
}

.player-number {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ed6b1f;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
