:root {
  --bg: #0f1115;
  --bg-card: #171a21;
  --text: #e8e9ec;
  --text-dim: #9aa0ac;
  --accent: #e8590c;
  --border: #262a33;
  --max-width: 960px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.lang-nav a {
  color: var(--text-dim);
  text-decoration: none;
  margin-left: 0.75rem;
  font-size: 0.85rem;
}

.lang-nav a:hover { color: var(--accent); }

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.hero { padding: 1.5rem 0 2rem; }
.hero h1 { font-size: 2rem; margin: 0 0 0.5rem; }
.hero p { color: var(--text-dim); margin: 0; }

.country-grid, .player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.country-card, .player-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  text-decoration: none;
  color: var(--text);
}

.country-card:hover, .player-card:hover { border-color: var(--accent); }
.country-card .flag { font-size: 1.75rem; }
.country-card .count { color: var(--text-dim); font-size: 0.8rem; }

h2 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-dim); }

.article-list { list-style: none; padding: 0; margin: 0; }
.article-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.article-list a { color: var(--text); text-decoration: none; font-weight: 600; }
.article-list a:hover { color: var(--accent); }
.article-list .meta { color: var(--text-dim); font-size: 0.8rem; }

.empty { color: var(--text-dim); }

.article h1 { font-size: 1.6rem; margin-bottom: 0.25rem; }
.article .meta { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 1rem; }
.stat-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.stat-line span {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
}
.article p { margin: 0 0 1rem; }
.article .back a { color: var(--accent); text-decoration: none; }

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.8rem;
}
