@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #0e150f;
  --bg-panel: #161f15;
  --bg-panel-alt: #1c2619;
  --line: #2c3627;
  --gold: #d4a94a;
  --gold-light: #ecd08a;
  --text: #f0ece0;
  --text-muted: #9ba38c;
  --win: #6fae6a;
  --draw: #c9a94a;
  --loss: #b3564f;
  --radius: 3px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse 900px 500px at 50% -10%, #1c2718 0%, transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

h1, h2 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0;
}

/* ---------- Top nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 24px;
  background: rgba(14, 21, 15, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--gold-light);
  margin-right: auto;
}
.nav__brand img { width: 30px; height: auto; }

.nav__link {
  font-size: 0.92rem;
  color: var(--text-muted);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav__link:hover { color: var(--text); }
.nav__link.is-active { color: var(--gold-light); border-bottom-color: var(--gold); }

/* ---------- Layout ---------- */
main#app {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 56px 0 36px;
}
.hero__badge { width: 128px; height: auto; margin-bottom: 14px; filter: drop-shadow(0 6px 18px rgba(0,0,0,0.4)); }
.hero__title {
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  color: var(--gold-light);
}
.hero__sub { color: var(--text-muted); margin-top: 6px; font-size: 0.95rem; }

/* ---------- Summary strip ---------- */
.summary-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.summary-item {
  text-align: center;
  padding: 16px 4px;
  border-left: 1px solid var(--line);
}
.summary-item:first-child { border-left: none; }
.summary-num { display: block; font-family: 'Oswald', sans-serif; font-size: 1.6rem; color: var(--gold); }
.summary-label { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

/* ---------- Panels & tables ---------- */
.panel { margin-bottom: 36px; }
.panel__title {
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.table-wrap { overflow-x: auto; }

.stats-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 480px; }
.stats-table th {
  text-align: right;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.stats-table th.col-name, .stats-table td.col-name { text-align: left; }
.stats-table td {
  padding: 10px;
  text-align: right;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.stats-table tbody tr:hover { background: var(--bg-panel); cursor: pointer; }
.stats-table .num { font-variant-numeric: tabular-nums; }
.stats-table .num--accent { color: var(--gold-light); font-weight: 600; }

.player-cell { display: flex; align-items: center; gap: 10px; }
.player-cell:hover { color: var(--gold-light); }

.card { display: inline-block; width: 9px; height: 13px; border-radius: 1px; margin-right: 5px; vertical-align: middle; }
.card--yellow { background: #d9b23c; }
.card--red { background: #b3564f; }

.muted { color: var(--text-muted); font-size: 0.85em; }

/* ---------- Avatars ---------- */
.avatar { border-radius: 50%; object-fit: cover; flex: none; }
.avatar--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-panel-alt);
  color: var(--gold);
  font-family: 'Oswald', sans-serif;
  font-size: 0.85em;
  border: 1px solid var(--line);
}

/* ---------- Page heads ---------- */
.page-head { padding: 44px 0 24px; }
.page-head h1 { font-size: 2rem; color: var(--gold-light); }
.page-head__sub { color: var(--text-muted); margin-top: 6px; }

.back-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.back-link:hover { color: var(--gold-light); }

/* ---------- Squad grid ---------- */
.squad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
  margin-bottom: 40px;
}
.squad-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 10px;
  text-align: center;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.squad-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.squad-card .avatar { margin: 0 auto 10px; }
.squad-card__num { font-family: 'Oswald', sans-serif; color: var(--gold); font-size: 0.85rem; }
.squad-card__name { font-weight: 500; margin-top: 2px; font-size: 0.92rem; }
.squad-card__pos { color: var(--text-muted); font-size: 0.78rem; margin-top: 2px; }

/* ---------- Player page ---------- */
.player-head { display: flex; align-items: center; gap: 20px; margin-top: 18px; }
.player-head__num { color: var(--gold); font-family: 'Oswald', sans-serif; font-size: 0.9rem; }
.player-head__name { font-size: 1.9rem; color: var(--text); margin-top: 2px; }
.player-head__pos { color: var(--text-muted); margin: 2px 0 0; }
.player-bio { color: var(--text-muted); margin: 18px 0 0; max-width: 62ch; }

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  margin: 28px 0 36px;
}
.stat-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 8px;
  text-align: center;
}
.stat-card--accent { border-color: var(--gold); }
.stat-card__num { display: block; font-family: 'Oswald', sans-serif; font-size: 1.5rem; color: var(--gold-light); }
.stat-card__label { display: block; font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }

/* ---------- Fixtures list ---------- */
.game-list { display: flex; flex-direction: column; margin-bottom: 40px; }
.game-row {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.game-row:hover { background: var(--bg-panel); }
.game-row__result {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  border-radius: 50%;
  color: var(--bg);
}
.game-row__result--W { background: var(--win); }
.game-row__result--D { background: var(--draw); }
.game-row__result--L { background: var(--loss); }
.game-row__opponent { font-weight: 500; grid-column: 2; }
.game-row__meta { grid-column: 2; color: var(--text-muted); font-size: 0.8rem; margin-top: 2px; }
.game-row__score { grid-column: 3; grid-row: 1 / span 2; font-family: 'Oswald', sans-serif; color: var(--gold-light); font-size: 1.1rem; }

/* ---------- Game detail ---------- */
.game-head { padding: 36px 0 30px; text-align: center; }
.game-head__meta { color: var(--text-muted); font-size: 0.85rem; margin: 0 0 10px; }
.game-head__score { font-size: clamp(1.4rem, 4vw, 2rem); }
.game-head__num { color: var(--gold-light); }
.result-pill {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.03em;
}
.result-pill--win { background: rgba(111,174,106,0.18); color: var(--win); }
.result-pill--draw { background: rgba(201,169,74,0.18); color: var(--draw); }
.result-pill--loss { background: rgba(179,86,79,0.18); color: var(--loss); }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 30px 20px 50px;
}

@media (max-width: 560px) {
  .site-nav { gap: 16px; padding: 12px 16px; flex-wrap: wrap; }
  .summary-strip { grid-template-columns: repeat(3, 1fr); }
  .summary-item:nth-child(4) { border-left: none; }
}
