body {
  margin: 0;
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  background: #fff;
  color: #111;
  text-align: center;
  transition:
    background 0.3s,
    color 0.3s;
}

body.dark {
  background: #111;
  color: #fff;
}

h1 {
  font-size: 6vw;
  margin: 20px 0;
  background: linear-gradient(90deg, #1db954, #00d4ff, #1db954);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#themeToggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #1db954;
  color: #fff;
  border: none;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
}

#themeToggle:hover {
  transform: scale(1.1);
}

.stats-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.team {
  background: #e8f5e9;
  border-radius: 15px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 200px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

body.dark .team {
  background: #222;
}

.team:hover {
  transform: translateY(-5px);
  box-shadow:
    0 0 15px #1db954,
    0 0 25px #00d4ff;
}

.team-name {
  font-weight: bold;
  font-size: 1.2rem;
}

.team-stats {
  font-size: 0.9rem;
}

.bar-container {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  height: 20px;
  overflow: hidden;
}

.bar {
  height: 100%;
  width: 0;
  border-radius: 10px;
  transition: width 1.5s ease-in-out;
}

.scorer-box {
  max-width: 400px;
  margin: 30px auto;
  padding: 15px;
  border-radius: 15px;
  background-color: #e8f5e9;
  text-align: left;
  color: #111;
  transition: background 0.3s;
}

body.dark .scorer-box {
  background: #222;
  color: #fff;
}

.scorer-box h2 {
  text-align: center;
  background: linear-gradient(90deg, #1db954, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
}

.scorer-list li {
  padding: 8px;
  margin: 5px 0;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  transition: all 0.3s;
}

.scorer-list li:hover {
  background: rgba(29, 185, 84, 0.3);
}

.scorer-list .points {
  font-weight: bold;
  color: #1db954;
}

.back-btn {
  background: #1db954;
  color: #fff;
  height: 50px;
  width: 90%;
  max-width: 180px;
  font-size: 1rem;
  border-radius: 25px;
  margin: 15px auto;
  display: block;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border: none;
  transition: all 0.3s;
}

.back-btn:hover {
  box-shadow:
    0 0 15px #1db954,
    0 0 25px #00d4ff;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  h1 {
    font-size: 8vw;
  }

  .team-name {
    font-size: 1.1rem;
  }

  .team-stats {
    font-size: 0.85rem;
  }

  .bar-container {
    height: 18px;
  }

  .team {
    height: 180px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 12vw;
  }

  .team-name {
    font-size: 0.95rem;
  }

  .team-stats {
    font-size: 0.8rem;
  }

  .bar-container {
    height: 14px;
  }

  .team {
    height: 160px;
  }

  .stats-dashboard {
    gap: 10px;
    padding: 0 10px;
  }
}

@keyframes pop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}
