/* Branding: Aston Villa palette (teamcolorcodes.com). */
:root {
  --primary: #670e36;   /* claret */
  --accent: #fee505;    /* yellow */
  --blue: #95bfe5;      /* sky blue (matches logo) */
  --bg: #f6f7f5;
  --card: #ffffff;
  --text: #1b1f1d;
  --muted: #5d6762;
  --line: #e1e5e2;
  --win: #1e8a4c;
  --loss: #c0392b;
  --draw: #7a8580;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111513;
    --card: #1a201d;
    --text: #eef1ef;
    --muted: #9aa5a0;
    --line: #2a322e;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; }
.nav nav a { color: var(--blue); text-decoration: none; margin-left: 16px; }
.nav nav a:hover { opacity: 1; color: var(--accent); }

main { max-width: 960px; margin: 0 auto; padding: 0 16px 40px; }
section { margin-top: 40px; }
h2 { margin: 0 0 12px; font-size: 1.4rem; border-left: 4px solid var(--blue); padding-left: 10px; }

.hero { text-align: center; padding: 40px 0 8px; margin-top: 0; }
.hero .logo { width: min(320px, 70vw); height: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero p { margin-top: 8px; }
.hero p { margin: 0; color: var(--muted); }
.record { margin-top: 14px; display: inline-flex; gap: 8px; }
.pill { padding: 4px 12px; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 600; font-size: .9rem; }
.pill.w { background: var(--win); } .pill.l { background: var(--loss); } .pill.d { background: var(--draw); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.next h2 { border: 0; padding: 0; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.next .vs { font-size: 1.6rem; font-weight: 700; }
.next .meta { color: var(--muted); }

.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.stage { display: block; font-size: .8rem; color: var(--muted); }
tr.me td { background: color-mix(in srgb, var(--blue) 25%, transparent); font-weight: 700; }
.res { font-weight: 700; }
.res.W { color: var(--win); } .res.L { color: var(--loss); } .res.D { color: var(--draw); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.player { display: flex; align-items: center; gap: 12px; }
.num { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: var(--blue); display: grid; place-items: center; font-weight: 800; }
.player .name { font-weight: 600; }
.player .pos { color: var(--muted); font-size: .85rem; }

.post { margin-bottom: 12px; }
.post h3 { margin: 0; }
.post time { color: var(--muted); font-size: .85rem; }
.post p { margin: 8px 0 0; white-space: pre-line; }

footer { text-align: center; padding: 24px 16px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }
footer .social-row { margin-bottom: 12px; }
footer .social { display: inline-flex; color: var(--muted); transition: color .15s, transform .15s; }
footer .social:hover, footer .social:focus-visible { color: var(--primary); transform: scale(1.1); }
@media (prefers-color-scheme: dark) { footer .social:hover, footer .social:focus-visible { color: var(--accent); } }
