.player-directory-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px 0;
}

.player-directory-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.player-directory-title {
  font-size: 32px;
  color: #14323d;
  margin: 0;
}

.player-directory-search input {
  padding: 10px 15px;
  border-radius: 50px;
  border: 1px solid #ddd;
  width: 300px;
  font-size: 16px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>');
  background-repeat: no-repeat;
  background-position: 10px center;
  padding-left: 40px;
}

.player-directory-filters {
  display: flex;
  justify-content: space-between;
  margin-bottom: 60px;
  border-radius: 50px;
  /* overflow: hidden; */
  /* border: 1px solid #ddd; */
  margin-left: 40px;
}

.team-filter {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  line-height: 1em;
  padding: 15px 20px;
  background: white;
  border: none;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
  text-align: center;
  border-radius: 50px 50px;
  width: calc(100% + 50px);
  margin-left: -40px;
  box-shadow: 5px 8px 18px rgb(0 0 0 / 11%);
}

.team-filter:hover {
  background: #f5f5f5;
}

.team-filter.active {
  background: #14323d;
  color: white;
  z-index: 9999 !important;
}

.irish-team {
  background-position: 20px center;
  padding-left: 45px;
}

.world-team {
  background-position: 20px center;
  padding-left: 45px;
}

.italian-team {
  background-position: 20px center;
  padding-left: 45px;
}

.player-directory-grid {
  background-color: #f0f3f5;
  padding: 45px;
  border-radius: 48px;
  filter: drop-shadow(7px 14px 24px rgba(0, 0, 0, 0.04));
}

.player-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.player-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

.player-card {
  background: white;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  /* For animation */
  opacity: 1;
  max-height: 800px;
}

.player-card:hover {
  transform: translateY(-5px);
}

.player-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 15px;
}

.player-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-name {
  font-size: 22px;
  color: #14323d;
  margin: 0px 0;
  text-align: center;
  padding: 0;
}

.player-stats {
  width: 100%;
  margin-top: 15px;
  max-width: 255px;
}

.stats-header,
.stats-values {
  display: flex;
  justify-content: space-between;
}

.stats-header {
  color: white;
  border-radius: 5px 5px 0 0;
}

.stat-col.l {
  border-left: 1px solid hsl(202.5deg 21.05% 85.1% / 30%);
  border-right: 1px solid hsl(202.5deg 21.05% 85.1% / 30%);
}

.stats-header .stat-col {
  font-weight: 600;
}

.player-card[data-team="IRISH"] .stats-header {
  background-color: #089247;
}

.player-card[data-team="WORLD"] .stats-header {
  background-color: #153749;
}

.player-card[data-team="ITALIAN"] .stats-header {
  background-color: #cf2b37;
}
.player-card[data-team="IRISH"] .player-name {
  color: #089247;
}
.player-card[data-team="WORLD"] .player-name {
  color: #153749;
}
.player-card[data-team="ITALIAN"] .player-name {
  color: #cf2b37;
}

.stats-values {
  background-color: #f5f5f5;
  border-radius: 0 0 5px 5px;
}

.stat-col {
  flex: 1;
  text-align: center;
  padding: 5px 10px;
  font-weight: 400;
  font-size: 14px;
}

.hidden {
  display: none;
}

.show-more-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

#show-more-btn {
  background-color: #153749;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 18px 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#show-more-btn:hover {
  background-color: #1a4555;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.team-filter:not(.active) {
  border: 1px solid #d1dbe1;
}

.team-filter[data-team="IRISH"] {
  z-index: 4;
}

.team-filter[data-team="WORLD"] {
  z-index: 3;
}

.team-filter[data-team="ITALIAN"] {
  z-index: 2;
}
input#player-search {
  padding: 15px 40px;
}
.team-filter img {
  width: 22px;
  height: 22px;
  display: block;
}

@media (max-width: 980px) {
  .player-directory-filters {
    flex-direction: column;
    max-width: 400px;
    row-gap: 20px;
    margin-left: auto;
    margin-right: auto;
  }

  .player-directory-header {
    flex-direction: column;
    gap: 40px;
  }

  .team-filter {
    margin-left: 0;
    width: 100%;
  }

  .player-directory-search input {
    max-width: 400px;
    width: 100%;
    display: block;
  }
  .player-directory-grid {
    padding: 20px;
  }
}
@media (max-width: 580px) {
  .player-cards-container {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
  }
}

.player-card {
  border: none;
  box-shadow: none;
  padding: 0;
  border: none;
  box-shadow: none;
  padding: 0;
  height: 100%;
  display: flex;
  justify-content: center;
  min-height: 111px;
}

.player-image {
  display: none;
}

.player-stats {
  display: none;
}
.player-badges {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
}

.badge-wrapper {
  max-width: 55px;
}
a.player-filter-btn.subtle-btn {
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 16px;
  color: --var(button-bg-color);
}

.player-directory-header {
  align-items: baseline;
}
