.past-champions-container {
  max-width: 1600px;
  margin: 0 auto;
  width: 80%;
  padding: 80px 0;
  margin-bottom: 50px;
}

.past-champions-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 32px;
  font-weight: bold;
}
body:not(.logged-in) .past-champions-title {
  margin-bottom: 80px;
}
.champions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  gap: 30px;
  row-gap: 60px;
  margin-bottom: 30px;
}

.champion-card {
  border-radius: 8px;

  font-size: 16px;

  position: relative;
  transition: transform 0.3s ease;
}

.champion-card:hover {
  transform: translateY(-5px);
}

.champion-year-badge {
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  margin: auto;
  max-width: max-content;
  background-color: #1a3a5f;
  color: white;
  padding: 5px 30px;
  font-size: 20px;
  border-radius: 20px;
  font-weight: 700;
  z-index: 2;
}

.champion-team-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background-color: #eaeff2;

  padding-top: 50px;
  padding-bottom: 30px;
  border-radius: 48px 48px 0 0;
}

.team-flag {
  width: 30px;
  height: auto;
  margin-right: 10px;
}

.team-name {
  font-weight: 700;
  font-size: 20px;
}

.champion-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.champion-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.champion-details {
  padding: 15px;
  padding-bottom: 30px;
  background: #eaeff2;
  border-radius: 0 0 48px 48px;
}

.captain-info {
  display: flex;
  justify-content: center;
  text-align: center;
  margin-bottom: 15px;
  /* border-bottom: 1px solid #e0e0e0; */
  background: #fff;
  max-width: max-content;
  margin: auto;
  padding: 5px 20px;
  border-radius: 50px;
  font-size: 14px;
  gap: 20px;
  margin-top: -35px;
  z-index: 1;
  position: relative;
  box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.captain-label,
.assistant-captain-label {
  font-weight: bold;
}

.players-list {
  display: flex;
  font-size: 14px;
}

.players-column {
  flex: 1;
}

.left-column {
  padding-right: 10px;
}

.right-column {
  padding-left: 10px;
  border-left: 1px solid #e0e0e0;
}

.player-item {
  margin-bottom: 5px;
}

.load-more-container {
  text-align: center;
  margin: 20px 0;
}

.load-more-button {
  background-color: #1a3a5f;
  color: white;

  padding: 14px 28px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.load-more-button:hover {
  background-color: #0f2a4f;
}

.champion-card.hidden {
  display: none;
}

.admin-edit-container {
  text-align: right;
  margin-bottom: 20px;
}

.admin-edit-button {
  display: block;
  max-width: max-content;
  margin: auto;
  margin-bottom: 80px;
  background-color: #1a3a5f;
  color: white;
  padding: 8px 15px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.admin-edit-button:hover {
  background-color: #0f2a4f;
}

.no-champions {
  text-align: center;
  font-style: italic;
  color: #666;
}

.past-champions-edit-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 100px 20px;
}

.back-button-container {
  margin-bottom: 20px;
}

.back-button {
  display: inline-block;
  background-color: #f0f0f0;
  color: #333;
  padding: 8px 15px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.back-button:hover {
  background-color: #e0e0e0;
}

.players-list {
  max-width: 300px;
  margin: auto;
  margin-top: 30px;
}
span.team-name[data-team="IRISH"] {
  color: #089247;
}
span.team-name[data-team="WORLD"] {
  color: #1a428a;
}
span.team-name[data-team="ITALIAN"] {
  color: #cf2b37;
}
@media (max-width: 980px) {
  .champions-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .champions-grid {
    grid-template-columns: 1fr;
  }

  .players-list {
    flex-direction: column;
  }

  .right-column {
    border-left: none;
    padding-left: 0;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
  }
  .players-list {
    text-align: center;
  }

  .players-column.right-column {
    padding-top: 0;
    margin-top: 0;
    border: 0;
  }

  .players-column.left-column {
    padding-right: 0;
  }

  .captain-info {
    flex-direction: column;
    width: 100%;
    max-width: unset;
    gap: 0px;
    padding: 15px 10px;
    margin-top: -50px;
  }
  .champion-team-header {
    border-radius: 28px 28px 0 0;
  }
  .champion-details {
    border-radius: 0 0 28px 28px;
  }
}
