:root {
  --primary: #c8f53b;
  --dark: #080c10;
  --card: #111820;
  --border: #1e2a38;
  --text-muted: #6b7280;
}

* { box-sizing: border-box; }

body {
  background-color: var(--dark);
  color: white;
  font-family: 'DM Sans', sans-serif;
}

/* SIDEBAR NAV BUTTONS */
.nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  color: #6b7280;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background: #1e2a38;
  color: white;
}

.nav-btn.active {
  background: rgba(200, 245, 59, 0.12);
  color: var(--primary);
  border-left: 3px solid var(--primary);
}

.nav-icon { font-size: 1.1rem; }

/* MOBILE NAV BUTTONS */
.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
  padding: 8px 4px;
  background: transparent;
  border: none;
  color: #6b7280;
  font-size: 0.6rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-nav-btn span {
  display: block;
  font-family: 'DM Sans', sans-serif;
}

.mobile-nav-btn.active { color: var(--primary); }

/* SECTIONS */
.section {
  display: none;
  animation: fadeIn 0.3s ease;
}

.section.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* LEAGUE BUTTONS */
.league-btn {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--card);
  color: #9ca3af;
  font-size: 0.85rem;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

.league-btn:hover {
  border-color: var(--primary);
  color: white;
}

.league-btn.active {
  background: var(--primary);
  color: var(--dark);
  border-color: var(--primary);
  font-weight: 600;
}

/* TEAM CARDS */
.team-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.team-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 245, 59, 0.08);
}

.team-card img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
  background: #1e2a38;
  padding: 4px;
}

.team-card-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.team-card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* FORM BADGES */
.form-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.form-badge.W { background: rgba(34,197,94,0.2); color: #4ade80; }
.form-badge.D { background: rgba(234,179,8,0.2);  color: #facc15; }
.form-badge.L { background: rgba(239,68,68,0.2);  color: #f87171; }

/* EVENT CARDS */
.event-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(30, 42, 56, 0.5);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.82rem;
}

.event-teams { font-weight: 500; color: white; }
.event-date  { font-size: 0.72rem; color: var(--text-muted); }

.event-score {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.1rem;
  color: var(--primary);
  letter-spacing: 2px;
}

/* STANDINGS TABLE */
.standings-row {
  display: grid;
  grid-template-columns: 32px 36px 1fr 40px 40px 40px 40px 60px 80px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.83rem;
  transition: background 0.15s ease;
  gap: 4px;
}

.standings-row:last-child { border-bottom: none; }
.standings-row:hover { background: rgba(200, 245, 59, 0.04); }

.standings-header {
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.standings-row img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.pts-badge {
  background: rgba(200, 245, 59, 0.15);
  color: var(--primary);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  text-align: center;
  font-family: 'Bebas Neue', cursive;
  font-size: 1rem;
  letter-spacing: 1px;
}

/* FIXTURE CARDS */
.fixture-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.2s ease;
}

.fixture-card:hover { border-color: #2e3d4f; }

.fixture-team {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 500;
}

.fixture-team.right {
  flex-direction: row-reverse;
  text-align: right;
}

.fixture-team img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.fixture-vs { text-align: center; }

.fixture-time {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.2rem;
  color: var(--primary);
  letter-spacing: 2px;
}

.fixture-date-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* HEAD TO HEAD */
.h2h-summary {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 20px;
  text-align: center;
}

.h2h-stat-value {
  font-family: 'Bebas Neue', cursive;
  font-size: 3rem;
  line-height: 1;
}

.h2h-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.h2h-team-name {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.6rem;
  letter-spacing: 1px;
}

/* FAVOURITES */
.fav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.fav-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.fav-card img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 12px;
}

.fav-card-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.fav-card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.fav-remove-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(239,68,68,0.15);
  color: #f87171;
  border: none;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.7rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}

.fav-card:hover .fav-remove-btn { opacity: 1; }

/* H2H DROPDOWN */
.h2h-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.15s;
}

.h2h-dropdown-item:hover {
  background: rgba(200, 245, 59, 0.08);
  color: var(--primary);
}

.h2h-dropdown-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* SELECTED PILL */
.selected-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(200, 245, 59, 0.1);
  border: 1px solid var(--primary);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--primary);
}

.selected-pill img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* SPINNER */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #2e3d4f; }