.plantel-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.position-section {
  margin-bottom: 3rem;
}

.position-section h2 {
  color: #00439b;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #0088cc;
  padding-bottom: 0.5rem;
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  justify-content: center;
  margin: 0 auto;
}

.player-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  position: relative;
  max-width: 280px;
  margin: 0 auto;
}

.player-image {
  width: 100%;
  height: 320px;
  object-fit: contain;
}

@media (max-width: 1200px) {
  .players-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .players-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .player-image {
    height: 280px;
  }
}

@media (max-width: 600px) {
  .players-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
  }

  .player-image {
    height: 360px;
  }
  
  .player-card {
    max-width: 320px;
  }
}

.player-card:hover {
  transform: translateY(-5px);
}

.player-info {
  padding: 1rem;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.733);
}

.player-number {
  position: absolute;
  top: 10px;
  left: 10px;  /* Changed from right to left */
  background: #00439b;
  color: white;
  padding: 0.5rem;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  z-index: 1;  /* Added to ensure number appears above image */
}

.player-name {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0.5rem 0;
  color: #00439b;
}

@media (max-width: 768px) {
  .plantel-container {
    padding: 1rem;
  }

  .players-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

  .player-image {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .players-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 2fr));
  }

  .player-image {
    height: 300px;
  }
}

.player-details-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.player-details-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
}

.back-button {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: #00439b;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.player-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.player-detail-image {
  width: 300px;
  height: 300px;
  object-fit: contain;
  border-radius: 10px;
}

.player-header-info {
  flex: 1;
}

.player-number-large {
  font-size: 4rem;
  font-weight: bold;
  color: #00439b;
  margin: 1rem 0;
}

.player-position {
  font-size: 1.2rem;
  color: #666;
}

.player-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-item label {
  color: #666;
  font-size: 0.9rem;
}

.stat-item span {
  font-size: 1.2rem;
  font-weight: bold;
  color: #00439b;
}

@media (max-width: 768px) {
  .player-header {
    flex-direction: column;
    text-align: center;
  }

  .player-detail-image {
    width: 250px;
    height: 250px;
  }

  /* Estilos base para o histórico de clubes */
  .player-stats .stat-item div[style*="display: flex; gap: 20px; align-items: center;"] {
    display: flex;
    gap: 20px;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 8px;
  }
  
  .player-stats .stat-item img {
    width: 30px;
    height: 30px;
    object-fit: contain;
  }
  
  /* Layout responsivo para dispositivos móveis */
  @media (max-width: 768px) {
    .player-stats .stat-item div[style*="display: flex; gap: 20px; align-items: center;"] {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 12px;
      padding: 8px;
      align-items: center;
    }
  
    .player-stats .stat-item img {
      width: 40px;
      height: 40px;
    }
  
    /* Esconder labels em telas pequenas */
    .player-stats .stat-item div[style*="flex: 1;"] label {
      display: none;
    }
  
    /* Esconder o nome do clube e o escalão */
    .player-stats .stat-item div[style*="flex: 1;"] span:first-of-type,
    .player-stats .stat-item div[style*="flex: 1;"] span:nth-of-type(1) {
      display: none;
    }
  
    /* Mostrar apenas o emblema e a época */
    .player-stats .stat-item div[style*="flex: 1;"]:last-child {
      display: block;
    }
  
    .player-stats .stat-item div[style*="flex: 1;"]:last-child span {
      display: block !important;
      font-size: 1rem;
      font-weight: 500;
      color: #00439b;
      margin-left: auto;
    }
  
    /* Ajustar o caso especial de "Sem Clube" */
    .player-stats .stat-item label:only-child {
      display: inline-block;
      padding: 8px;
      background: rgba(0, 0, 0, 0.1);
      border-radius: 4px;
      font-size: 0.9rem;
    }
  }
}
