* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Verdana, sans-serif;
  background-color: #0a0a0a;
  color: #f4f4f4;
  line-height: 1.6;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1d1d1f;
  padding: 10px 5%;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid #e11d48;
}

.logo img {
  height: 50px;
  padding: 5px;  
  border-radius: 8px;
}

nav {
  display: flex;
  gap: 20px;
  margin: 0 auto;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  color: #3b82f6;
}

footer {
  background-color: #000;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 20px;
}

.player-detail {
  display: none;
}

.player-detail.active {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
}

.back-button:hover {
  background: #be123c;
}

.section {
  padding: 40px 20px;
  width: 100%;
  margin-bottom: 20px;
}
.section h1, .section h2, .section h3 {
  text-align: center;
  margin-bottom: 20px;
}
.section p {
  text-align: center;
  margin-bottom: 10px;
}

.hero-game {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #1e3a8a, #991b1b);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  flex-wrap: wrap;
}

.hero-game .team {
  text-align: center;
}

.hero-game img {
  height: 80px;
  margin-bottom: 10px;
}

.score h2 {
  font-size: 2rem;
  color: #fff;
}

.score p {
  font-size: 0.9rem;
  color: #ddd;
  margin: 8px 0;
}

.div-watch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.watch-btn {
  background: #e11d48;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

.watch-btn:hover {
  background: #be123c;
}

ul {
  list-style: none;
  margin-top: 10px;
}

.siglas-list li {
  margin: 5px 0;
}

.games-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.game-card {
  background: white;
  color: black;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.3s;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(255,255,255,0.1);
}

.game-card h4 {
  color: black;
}

.teams-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.team-logo img {
  height: 50px;
}

.versus {
  font-size: 1.2rem;
  font-weight: bold;
  color: #3b82f6;
}

.players-list {
  display: grid;
  grid-template-columns:  repeat(3, 2fr);
  gap: 20px;
}

.player-card {
  background: white;
  color: black;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.3s;
  cursor: pointer;
  text-decoration: none;
}

.player-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.player-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
  border: 3px solid #3b82f6;
}

.player-card h4 {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.conference {
  margin-bottom: 40px;
}

.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.team-card {
  background: white;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  transition: 0.3s;
  color: black;
}

.team-card:hover {
  transform: scale(1.05);
}

.team-card img {
  height: 60px;
  margin-bottom: 8px;
}

.player-detail {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 40px;
  background: #1f2937;
  padding: 40px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  flex-wrap: wrap;
}

.player-img-large {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #3b82f6;
}

.player-detail-info {
  flex: 1;
  min-width: 250px;
}

.player-detail-info h1 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 10px;
}

.player-detail-info .team {
  color: #ccc;
  margin-bottom: 15px;
}

.player-stats {
  list-style: none;
}

.player-stats li {
  margin-bottom: 8px;
  background: #111827;
  padding: 8px 12px;
  border-radius: 6px;
}

.back-button {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background: #e11d48;
  padding: 8px 15px;
  border-radius: 6px;
  font-weight: bold;
  margin: 20px;
}

/* Responsividade */

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .hero-game {
    flex-direction: column;
    text-align: center;
  }

  .hero-game img {
    height: 70px;
  }

  .score h2 {
    font-size: 1.6rem;
  }

  .players-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .teams-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .player-detail {
    flex-direction: column;
    text-align: center;
  }

  .player-img-large {
    width: 200px;
    height: 200px;
  }

  .player-detail-info h1 {
    font-size: 1.6rem;
  }

  .section {
    padding: 30px 10px;
  }

  .div-watch-btn {
    justify-content: center;
  }

  .watch-btn {
    width: 80%;
    font-size: 1rem;
  }

  footer {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 10px;
  }

  .logo img {
    height: 40px;
  }

  nav {
    flex-direction: column;
    gap: 10px;
  }

  .hero-game {
    padding: 20px;
    gap: 15px;
  }

  .hero-game img {
    height: 60px;
  }

  .score h2 {
    font-size: 1.4rem;
  }

  .games-list {
    grid-template-columns: 1fr;
  }

  .players-list {
    grid-template-columns: 1fr;
  }

  .teams-grid {
    grid-template-columns: 1fr;
  }

  .player-img-large {
    width: 150px;
    height: 150px;
  }

  .player-detail-info h1 {
    font-size: 1.4rem;
  }

  .watch-btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
  }

  .section h1, .section h2, .section h3 {
    font-size: 1.4rem;
  }

  .section p {
    font-size: 0.95rem;
  }

  footer {
    padding: 15px;
    font-size: 0.85rem;
  }
}
