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

:root {
  --bg:       #080b0f;
  --panel:    #0f141a;
  --panel2:   #141b24;
  --border:   #1e2a38;
  --accent:   #00a86b;   /* field green */
  --gold:     #f5c842;
  --red:      #e04040;
  --yellow:   #f0b040;
  --blue:     #4a9eff;
  --text:     #e8edf2;
  --sub:      #8a9ab0;
  --muted:    #4a5a6a;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}

/* ── Header ─────────────────────────────────────── */
header {
  background: linear-gradient(135deg, #050b08, #0a1a12, #080b0f);
  border-bottom: 2px solid var(--accent);
  padding: 28px 20px 0;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.logo { font-size: 52px; line-height: 1; flex-shrink: 0; }

.header-text h1 {
  font-size: clamp(20px, 4vw, 34px);
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.header-text h1 span { color: var(--accent); }
.header-text .tagline { font-size: 14px; color: var(--sub); margin-top: 6px; line-height: 1.5; }

.ai-disclaimer {
  max-width: 1100px;
  margin: 0 auto 14px;
  background: rgba(0,168,107,0.07);
  border: 1px solid rgba(0,168,107,0.3);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  color: rgba(0,168,107,0.8);
}

/* ── Summary bar ──────────────────────────────────── */
.summary-bar {
  max-width: 1100px;
  margin: 0 auto 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.summary-stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 18px;
  text-align: center;
  flex: 1;
  min-width: 100px;
}

.summary-stat .val { font-size: 26px; font-weight: 800; color: var(--accent); }
.summary-stat .lbl { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; margin-top: 2px; }

/* ── Tabs ────────────────────────────────────────── */
.tabs {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}

.tab {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.tab:hover  { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── Tab content ─────────────────────────────────── */
.tab-content { display: none; padding: 32px 20px; }
.tab-content.active { display: block; }
.container { max-width: 1100px; margin: 0 auto; }

.section-intro { margin-bottom: 28px; }
.section-intro h2 { font-size: 22px; color: var(--text); margin-bottom: 8px; font-weight: 800; }
.section-intro h2 span { color: var(--accent); }
.section-intro p  { font-size: 14px; color: var(--sub); line-height: 1.7; max-width: 800px; }

/* ── Verdict badges ───────────────────────────────── */
.verdict {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.verdict-confirmed { background: rgba(224,64,64,0.12); color: var(--red); border: 1px solid rgba(224,64,64,0.3); }
.verdict-refuted   { background: rgba(0,168,107,0.12); color: var(--accent); border: 1px solid rgba(0,168,107,0.3); }
.verdict-mixed     { background: rgba(245,200,66,0.12); color: var(--yellow); border: 1px solid rgba(245,200,66,0.3); }
.verdict-noflag    { background: rgba(74,158,255,0.12); color: var(--blue);   border: 1px solid rgba(74,158,255,0.3); }

.pos-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.pos-qb { background: rgba(74,158,255,0.15); color: var(--blue); }
.pos-rb { background: rgba(0,168,107,0.15); color: var(--accent); }
.pos-wr { background: rgba(245,200,66,0.15); color: var(--yellow); }
.pos-te { background: rgba(224,64,64,0.15); color: var(--red); }

.era-badge {
  font-size: 10px;
  color: var(--muted);
  background: var(--border);
  padding: 2px 7px;
  border-radius: 4px;
}

.pick-badge {
  font-size: 11px;
  color: var(--sub);
}

/* ── Player cards ─────────────────────────────────── */
.player-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 16px;
  transition: border-color 0.15s;
}
.player-card:hover { border-color: #2a3a4a; }

.player-card.verdict-confirmed-card { border-left: 3px solid var(--red); }
.player-card.verdict-refuted-card   { border-left: 3px solid var(--accent); }
.player-card.verdict-mixed-card     { border-left: 3px solid var(--yellow); }
.player-card.verdict-noflag-card    { border-left: 3px solid var(--blue); }

.player-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.player-name { font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 5px; }

.player-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.player-header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

/* ── Two-column injury layout ─────────────────────── */
.injury-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 680px) { .injury-grid { grid-template-columns: 1fr; } }

.injury-col {
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}

.col-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.col-before { color: var(--yellow); }
.col-after  { color: var(--red); }

.injury-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.injury-list li {
  font-size: 13px;
  color: var(--sub);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.injury-list li::before { content: "•"; position: absolute; left: 0; color: var(--muted); }

/* ── Draft impact box ─────────────────────────────── */
.draft-impact {
  background: rgba(245,200,66,0.05);
  border: 1px solid rgba(245,200,66,0.2);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--sub);
  line-height: 1.6;
}
.draft-impact strong { color: var(--yellow); }

/* ── Verdict box ──────────────────────────────────── */
.verdict-box {
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 10px;
}
.verdict-box.confirmed { background: rgba(224,64,64,0.06); border: 1px solid rgba(224,64,64,0.2); color: var(--sub); }
.verdict-box.refuted   { background: rgba(0,168,107,0.06); border: 1px solid rgba(0,168,107,0.2); color: var(--sub); }
.verdict-box.mixed     { background: rgba(245,200,66,0.06); border: 1px solid rgba(245,200,66,0.2); color: var(--sub); }
.verdict-box.noflag    { background: rgba(74,158,255,0.06); border: 1px solid rgba(74,158,255,0.2); color: var(--sub); }
.verdict-box strong    { color: var(--text); }

/* ── Source links ─────────────────────────────────── */
.sources {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.source-link {
  font-size: 11px;
  color: var(--blue);
  text-decoration: none;
  background: rgba(74,158,255,0.08);
  border: 1px solid rgba(74,158,255,0.2);
  padding: 2px 8px;
  border-radius: 4px;
  transition: background 0.15s;
}
.source-link:hover { background: rgba(74,158,255,0.16); }

/* ── Overview / Scatter ────────────────────────────── */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.ov-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
}
.ov-card:hover { border-color: #2a3a4a; transform: translateY(-1px); }
.ov-card.confirmed-bg { border-left: 3px solid var(--red); }
.ov-card.refuted-bg   { border-left: 3px solid var(--accent); }
.ov-card.mixed-bg     { border-left: 3px solid var(--yellow); }
.ov-card.noflag-bg    { border-left: 3px solid var(--blue); }

.ov-name   { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.ov-meta   { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.ov-injury { font-size: 12px; color: var(--sub); margin-bottom: 6px; line-height: 1.5; }

/* ── Findings box ─────────────────────────────────── */
.findings {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
}
.findings h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.findings ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.findings li {
  font-size: 14px;
  color: var(--sub);
  padding-left: 22px;
  position: relative;
  line-height: 1.6;
}
.findings li::before { position: absolute; left: 0; }
.findings li.confirmed::before { content: "🔴"; font-size: 11px; top: 2px; }
.findings li.refuted::before   { content: "🟢"; font-size: 11px; top: 2px; }
.findings li.neutral::before   { content: "⚪"; font-size: 11px; top: 2px; }

/* ── Filters ──────────────────────────────────────── */
.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filter-btn {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--sub);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.15s;
}
.filter-btn:hover { border-color: #3a4a5a; color: var(--text); }
.filter-btn.active { background: rgba(0,168,107,0.12); border-color: var(--accent); color: var(--accent); }

/* ── Methodology ─────────────────────────────────── */
.methodology { max-width: 780px; }
.methodology h2 { font-size: 22px; color: var(--text); font-weight: 800; margin-bottom: 16px; }
.methodology h3 { font-size: 15px; color: var(--text); margin: 22px 0 10px; font-weight: 700; }
.methodology p  { font-size: 14px; color: var(--sub); line-height: 1.7; margin-bottom: 10px; }

.method-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin: 10px 0;
  font-size: 13px;
  color: var(--sub);
  line-height: 1.7;
}
.method-box strong { color: var(--text); }

.disclaimer {
  font-size: 12px;
  color: var(--muted);
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  font-style: italic;
}

/* ── Pct bar ──────────────────────────────────────── */
.pct-bar-wrap { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.pct-track { height: 6px; background: #222; border-radius: 3px; overflow: hidden; flex: 1; }
.pct-fill  { height: 100%; border-radius: 3px; }
.fill-red    { background: var(--red); }
.fill-green  { background: var(--accent); }
.fill-yellow { background: var(--yellow); }
.pct-label { font-size: 11px; color: var(--sub); width: 30px; text-align: right; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 600px) {
  .player-header { flex-direction: column; }
  .player-header-right { align-items: flex-start; }
  .summary-bar { gap: 8px; }
  .summary-stat { min-width: 80px; }
}
