/* PitchKeep — Premier League purple, pitch green, gold. Third desk. */
@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;600;700;800&display=swap");

:root {
  --purple: #37003c;
  --purple-2: #4c1454;
  --pitch: #00ff85;
  --pitch-2: #00c853;
  --gold: #e8c547;
  --ivory: #f6f3ee;
  --ivory-2: #fffdf8;
  --ink: #1a0a24;
  --muted: #4d3b56;
  --line: rgba(55, 0, 60, 0.14);
  --shadow: 0 10px 30px rgba(55, 0, 60, 0.14);
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: linear-gradient(180deg, #d4f5e4 0%, var(--ivory-2) 40%, #f0e6f4 100%);
  color: var(--ink);
}
a { color: #5b1470; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 18px 18px 56px; }
header.site {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--purple); border-radius: 18px; padding: 12px 16px; color: #fff;
  box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); }
.brand h1 { margin: 0; font-size: 22px; letter-spacing: 0.04em; }
.brand h1 .word-pitch { color: var(--pitch); }
.brand h1 .word-keep { color: var(--gold); }
.brand p { margin: 2px 0 0; color: #d7c6dc; font-size: 13px; font-weight: 700; }
nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 12px; }
nav a { color: #fff; text-decoration: none; font-weight: 800; font-size: 13px; }
nav a:hover, nav a[aria-current="page"] { color: var(--gold); }
.hero {
  margin: 22px 0; border-radius: 22px; overflow: hidden; min-height: 280px;
  background: var(--purple) center/cover no-repeat; border: 1px solid var(--line);
  display: grid; align-items: end;
}
.hero-card { background: linear-gradient(180deg, transparent, rgba(55,0,60,0.86)); color: #fff; padding: 28px; }
.hero-card h2 { margin: 0; font-size: 40px; letter-spacing: -0.03em; }
.hero-card h2 .word-pitch { color: var(--pitch); }
.hero-card h2 .word-keep { color: var(--gold); }
.hero-card p { margin: 8px 0 0; max-width: 62ch; line-height: 1.5; }
.kicker { color: #0a8f52; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; margin: 0 0 8px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.panel.analysis p { line-height: 1.65; font-size: 16.5px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-decoration: none; color: inherit; }
.tile:hover { border-color: var(--pitch-2); }
.tile h3 { margin: 0 0 6px; color: var(--purple); }
.tile p { margin: 0; color: var(--muted); line-height: 1.45; }
.note { color: var(--muted); font-size: 14px; line-height: 1.55; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: #0a8f52; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
tr:hover td { background: rgba(0, 200, 83, 0.06); }
.rk { font-weight: 800; color: var(--purple); width: 48px; }
.val { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.pos { display: inline-block; min-width: 42px; padding: 2px 7px; border-radius: 999px; background: #d4f5e4; font-weight: 800; font-size: 12px; }
.pos.FWD { background: #f8d0d6; }
.pos.MID { background: #d6e4fb; }
.pos.DEF { background: #d7f0d9; }
.pos.GKP { background: #f7e6c8; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.filters button, .filters a {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 7px 12px; font-weight: 800; cursor: pointer; font-size: 13px; text-decoration: none;
}
.filters button.active, .filters a.active { background: var(--purple); color: #fff; border-color: var(--purple); }
.sources-box { margin-top: 22px; }
.sources-box ol { margin: 0; padding-left: 22px; }
footer { margin-top: 28px; color: var(--muted); font-size: 13px; text-align: center; }
.sport-switch {
  display: inline-block; margin: 18px 6px 0; padding: 12px 22px; border-radius: 999px;
  font-weight: 800; text-decoration: none; letter-spacing: 0.04em;
}
.sport-switch.bb { background: #0b1f3a; color: #f4ebd0; border: 3px solid #1f6b3a; }
.sport-switch.fb { background: #d6ebf7; color: #c8102e; border: 3px solid #c8102e; }
.sport-switch.pl { background: #37003c; color: #00ff85; border: 3px solid #e8c547; }
a.player-link { color: inherit; text-decoration: none; border-bottom: 1px dashed rgba(55,0,60,0.35); }
a.player-link:hover { color: var(--purple); }
.player-hero {
  display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px;
  box-shadow: var(--shadow); margin: 8px 0 18px;
}
.player-hero img {
  width: 220px; height: 220px; object-fit: cover; object-position: top center;
  border-radius: 16px; border: 4px solid var(--purple); background: var(--purple);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { display: inline-block; background: #d4f5e4; border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 800; }
.stat-strip { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.stat-pill {
  background: var(--purple); color: #fff; border-radius: 14px; padding: 10px 14px; min-width: 72px;
}
.stat-pill small { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pitch); }
.stat-pill strong { font-size: 22px; }
.rank-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.rank-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.rank-card small { display: block; color: #0a8f52; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 11px; }
.rank-card strong { display: block; font-size: 28px; color: var(--purple); }
.rank-card span { color: var(--muted); font-weight: 700; }
table.boards { font-size: 15px; }
table.boards tr.hi td { background: rgba(0, 200, 83, 0.14); font-weight: 800; }
table.boards tr.lo td { background: rgba(200,16,46,0.08); }
.player-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.player-card { text-align: center; padding: 12px; }
.player-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top center;
  border-radius: 14px; border: 3px solid var(--purple); background: var(--purple);
}
.player-card h3 { margin: 8px 0 0; font-size: 15px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.fact small { display: block; color: #0a8f52; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.fact strong { font-size: 16px; color: var(--purple); }
.plusminus { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
.pm { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 16px; overflow: hidden; background: #000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trade-search { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.trade-search input[type="search"] {
  width: 100%; font: inherit; font-size: 17px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
}
.trade-hits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0; }
.trade-hit { text-align: left; border: 1px solid var(--line); background: var(--ivory); border-radius: 12px; padding: 10px 12px; cursor: pointer; font: inherit; }
.trade-add-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cta { display: inline-block; margin-top: 16px; background: var(--purple); color: #fff;
  text-decoration: none; font-weight: 800; padding: 12px 18px; border-radius: 999px; border: 0; cursor: pointer; font: inherit; }
.cta.alt { background: #0a8f52; }
.trade-board { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.trade-side header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.trade-side h3 { margin: 0; }
.trade-total { margin: 0; font-size: 28px; font-weight: 800; color: #0a8f52; }
.trade-list small { display: block; color: var(--muted); }
.trade-list { list-style: none; margin: 12px 0; padding: 0; min-height: 80px; }
.trade-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.trade-clear { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 800; cursor: pointer; }
.trade-verdict { margin-top: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; text-align: center; }
.trade-verdict.fair { border-color: #0a8f52; }
.trade-verdict.a { border-color: var(--purple); }
.trade-verdict.b { border-color: #c8102e; }
@media (max-width: 860px) {
  header.site { flex-direction: column; align-items: flex-start; }
  nav { justify-content: flex-start; }
  .grid, .grid-3, .plusminus, .player-hero, .trade-hits, .trade-board, .rank-grid { grid-template-columns: 1fr; }
  .player-grid, .facts { grid-template-columns: repeat(2, 1fr); }
  .player-hero img { width: 100%; height: 280px; }
  .hero-card h2 { font-size: 26px; }
}
