#nome::placeholder,
#posicao::placeholder,
#clube::placeholder,
#jogos::placeholder,
#gols::placeholder,
#assistencias::placeholder,
#foto::placeholder {
  opacity: 50%;
}

.player-card {
  background: linear-gradient(180deg, #1e3c72, #2a5298);
  color: #fff;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.player-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.player-card .player-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid gold;
  object-fit: cover;
  margin: 0 auto 15px;
  display: block;
}

.player-card h5 {
  margin: 5px 0;
  font-weight: bold;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.player-card h6 {
  color: #ffd700;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.player-card p small {
  color: #ccc;
  font-style: italic;
}

.player-card.favorita {
  background: linear-gradient(135deg, #FFD700 60%, #FFF8DC 100%);
  border: 2px solid #FFD700;
  color: black;
}
.player-card.favorita p small {
  color: black;
}

.player-card.favorita h6 {
  color: black;
}

.stats {
  display: flex;
  justify-content: space-around;
  margin: 15px 0;
}

.stats span {
  font-size: 0.8rem;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 10px;
  border-radius: 12px;
}

.botao {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  padding: 10px;
  margin: 0 4px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.botao:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.botao img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.botao.favorito {
  background: rgba(255, 215, 0, 0.2);
}

.botao.favorito img {
  filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(0deg);
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.botao[data-action="edit"]:hover {
  background: rgba(0, 123, 255, 0.3);
}

.botao[data-action="delete"]:hover {
  background: rgba(220, 53, 69, 0.3);
}

.botao[title="Favoritar"]:hover {
  background: rgba(255, 193, 7, 0.3);
}

.player-card nav {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 15px;
}

.player-img {
  background: linear-gradient(90deg, #2a5298 0%, #1e3c72 50%, #2a5298 100%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.player-img[src]:not([src=""]) {
  background: none;
  animation: none;
}

#alert-container {
  display: none;
}