:root {
  --bg: #f3f5f7;
  --card: #ffffff;
  --primary: #306DC9;
  --primary-dark: #2558A5;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

  header {

  background: #306DC9;

  color: white;

  padding: 40px 20px;

  text-align: center;

  box-shadow: var(--shadow);

}

  color: white;
  padding: 40px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

header h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
}

header p {
  margin-top: 10px;
  opacity: 0.9;
}

.container {
  max-width: 1400px;
  margin: auto;
  padding: 20px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: -40px;
  margin-bottom: 30px;
}

.summary-card {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border-top: 4px solid #306DC9;
}

.summary-card h2 {
  margin: 0 0 10px 0;
  font-size: 15px;
  color: var(--muted);
  font-weight: 600;
}

.summary-card p {
  margin: 0;
  font-size: 42px;
  font-weight: 700;
  color: var(--primary);
}

.filters {
  display: flex;
  gap: 12px;
  align-items: center;
  background: white;
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.filters label {
  font-weight: 600;
}

.filters select {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 14px;
  background: white;
}

.section-title {
  font-size: 28px;
  margin-bottom: 18px;
}

.toplist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}

.player-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: 0.2s ease;
  border: 1px solid rgba(255,255,255,0.2);
  position: relative;
}

.player-card:hover {
  transform: translateY(-4px);
}

.rank {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--primary);
  color: white;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 700;
  background: #306DC9;
}

.player-card h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
}

.player-card .team-name {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.player-card .value {
  font-size: 38px;
  font-weight: 700;
  color: var(--primary);
}

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

.team-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border-top: 4px solid #306DC9;
}

.team-card h3 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 24px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 10px;
}

.team-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.team-row:last-child {
  border-bottom: none;
}

.team-row .name {
  color: var(--text);
}

.team-row .total {
  font-weight: 700;
  color: var(--primary);
}

@media (max-width: 768px) {

  header h1 {
    font-size: 28px;
  }

  .summary-card p {
    font-size: 32px;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
  }

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

}

.team-progress {
  margin-bottom: 18px;
}

.team-progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

.progress-bar {
  height: 12px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    #306DC9,
    #4C87E3
  );
  border-radius: 999px;
  transition: width 0.3s ease;
}

.footer {
  text-align: center;
  padding: 30px 20px;
  color: #64748b;
  font-size: 14px;
}

.club-progress-section {
  margin-bottom: 40px;
}

.club-progress-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.club-progress-card h2 {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 28px;
}

.club-progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 700;
}

.progress-bar.large {
  height: 20px;
}

.team-toggle {
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.team-toggle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.team-toggle-header h3 {
  margin: 0;
}

.toggle-icon {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.team-content {
  display: none;
  margin-top: 20px;
  animation: fadeDown 0.2s ease;
}

.team-content.open {
  display: block;
}

.team-toggle:hover .toggle-icon {
  transform: scale(1.1);
}

@keyframes fadeDown {

  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}

.chart-card {

  background: #fff;

  border-radius: 16px;

  padding: 24px;

  margin-bottom: 30px;

}

.distribution-row {

  margin-top: 20px;

}

.distribution-header {

  display: flex;

  justify-content: space-between;

  margin-bottom: 8px;

  font-weight: 600;

}

.club-logo {

  width: 120px;

  max-width: 40vw;

  display: block;

  margin: 0 auto 20px auto;

}


