:root {
  --p1: #e74c3c;
  --p1-light: #ff6b6b;
  --p2: #3498db;
  --p2-light: #74b9ff;
  --bg: #0a0a0f;
  --surface: #12121a;
  --surface2: #1a1a2e;
  --border: #2a2a3e;
  --text: #e8e8f0;
  --text-dim: #8888aa;
  --gold: #f1c40f;
  --green: #2ecc71;
  --red: #e74c3c;
  --blue: #3498db;
  --purple: #9b59b6;
  --orange: #e67e22;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
}

a { color: var(--p2-light); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Nav */
nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
nav .container {
  display: flex;
  align-items: center;
  gap: 32px;
}
nav .logo {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
}
nav .nav-links { display: flex; gap: 24px; }
nav .nav-links a {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
}
nav .nav-links a:hover,
nav .nav-links a.active { color: var(--text); text-decoration: none; }

/* Hero */
.hero {
  padding: 48px 20px 32px;
  text-align: center;
  background: linear-gradient(180deg, #1a0a1e 0%, var(--bg) 100%);
}
.hero h1 {
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.hero .subtitle {
  font-size: 0.9rem;
  color: var(--text-dim);
  letter-spacing: 1px;
}

/* Content */
.content { padding: 32px 0 64px; }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
}
th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th {
  background: var(--surface2);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
}
td { font-size: 0.95rem; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }
.rank-cell {
  font-weight: 700;
  color: var(--gold);
  font-size: 1.1rem;
  width: 50px;
  text-align: center;
}
.model-cell a { font-weight: 600; }
.win { color: var(--green); font-weight: 600; }
.loss { color: var(--red); font-weight: 600; }

/* MPS bars */
.mps-bar-container {
  margin: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mps-bar-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  min-width: 70px;
  text-align: right;
}
.mps-bar-track {
  flex: 1;
  height: 14px;
  background: var(--surface2);
  border-radius: 3px;
  overflow: hidden;
}
.mps-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s;
}
.mps-bar-fill.outcome { background: var(--gold); }
.mps-bar-fill.economy { background: var(--green); }
.mps-bar-fill.military { background: var(--red); }
.mps-bar-fill.strategic { background: var(--purple); }
.mps-bar-value {
  font-size: 0.75rem;
  color: var(--text);
  min-width: 35px;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 16px;
}
.card h2 {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 16px;
}
.card h3 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 12px;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-box {
  background: var(--surface2);
  border-radius: 6px;
  padding: 16px;
  text-align: center;
}
.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* TV report */
.tv-report {
  background: var(--surface2);
  border-left: 3px solid var(--gold);
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
  font-style: italic;
  line-height: 1.8;
  color: var(--text);
}
.tv-report p { margin-bottom: 12px; }
.tv-report p:last-child { margin-bottom: 0; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* About page */
.about-content h2 {
  font-family: 'Cinzel', Georgia, serif;
  color: var(--gold);
  font-size: 1.3rem;
  margin: 32px 0 12px;
}
.about-content h2:first-child { margin-top: 0; }
.about-content p { margin-bottom: 12px; color: var(--text); }
.about-content ul { margin: 0 0 12px 24px; }
.about-content li { margin-bottom: 6px; }
.about-content code {
  background: var(--surface2);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}

/* Responsive */
@media (max-width: 600px) {
  th, td { padding: 8px 10px; font-size: 0.85rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  nav .container { gap: 16px; }
  nav .logo { font-size: 1rem; }
}
