/* Base */
:root {
  --ink: #111827;
  --dark: #0b1220;
  --accent: #16a34a;
  --bg: #f7f8fa;
  --white: #fff;
  --muted: #6b7280;
  --live: #dc2626;
  --line: #e6e8ec;
  --soft: #f3f5f7;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 system-ui, "Segoe UI", Tahoma, sans-serif;
}
.wrap { width: min(1040px, calc(100% - 32px)); margin-inline: auto; }
a { color: inherit; }
img, .mark { display: block; object-fit: contain; flex: 0 0 auto; }
.s32 { width: 32px; height: 32px; }
.s64 { width: 64px; height: 64px; }
.crest { border-radius: 50%; background: var(--soft); padding: 3px; }
.mark {
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50%;
}
.skip { position: absolute; inset-inline-start: 8px; top: -40px; background: var(--white); padding: 6px 10px; }
.skip:focus { top: 8px; }

/* Header */
.bar {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--dark);
  color: var(--white);
  box-shadow: inset 0 3px 0 var(--accent);
}
.bar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; }
.brand b { display: block; font-size: 1.05rem; line-height: 1.1; font-weight: 800; }
.brand small { display: block; color: #9ca3af; font-size: 0.72rem; }
.menu { position: relative; }
.menu summary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  list-style: none;
  cursor: pointer;
  color: var(--white);
  border: 1px solid #243044;
  border-radius: 999px;
  background: #121a2b;
}
.menu summary::-webkit-details-marker { display: none; }
.menu nav { display: none; }
.menu[open] nav {
  display: flex;
  flex-direction: column;
  position: absolute;
  inset-inline-start: 0;
  top: calc(100% + 8px);
  min-width: 210px;
  padding: 6px;
  background: var(--dark);
  border: 1px solid #243044;
  border-radius: 12px;
}
.menu a { color: #d1d5db; text-decoration: none; padding: 10px 12px; border-radius: 8px; }
.menu a[aria-current="page"] { color: #fff; background: #162033; }

/* Board */
.page-head { padding-top: 26px; }
.eyebrow { margin: 0; color: var(--accent); font-size: 0.78rem; font-weight: 800; }
h1 { font-size: 1.55rem; line-height: 1.25; margin: 6px 0 0; font-weight: 800; }
.date { color: var(--muted); margin: 6px 0 0; font-size: 0.92rem; }
.days {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin: 18px 0 14px;
  padding: 4px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.days a {
  display: grid;
  place-items: center;
  min-height: 40px;
  padding: 6px 2px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
}
.days a[aria-current="page"] { background: var(--ink); color: var(--white); }
.now {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin: 0 0 12px;
  padding: 0 12px;
  color: var(--live);
  font-weight: 800;
  text-decoration: none;
  background: #fef2f2;
  border-radius: 999px;
}
.day-label { margin: 26px 0 0; font-size: 1.05rem; font-weight: 800; }
.league {
  margin-top: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.league h2 {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  border-inline-start: 3px solid var(--accent);
  background: #f8faf9;
  font-size: 0.95rem;
}
.match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.4rem minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  direction: ltr;
  min-height: 68px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.league .match:last-child { border-bottom: 0; }
.match:hover { background: #fafbfc; }
.team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.team-away { justify-content: flex-end; text-align: end; }
.name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.when, .score {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1px;
  min-height: 48px;
  padding: 4px 2px;
  border-radius: 10px;
  background: var(--soft);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.when b, .score b { font-weight: 800; font-size: 0.95rem; }
.when.live, .score.live { background: #fef2f2; }
.min { font-size: 0.75rem; color: var(--muted); }
.live b, .live .min { color: var(--live); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--live);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.6;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge .dot { background: #fff; }
.now .dot { background: var(--live); }
.empty { color: var(--muted); background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }

/* Match */
.crumb { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 0.85rem; padding-top: 18px; }
.crumb a { color: var(--accent); text-decoration: none; font-weight: 700; }
.crumb span::before { content: "/"; margin-inline-end: 6px; color: #d1d5db; }
.panel, .prose {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin-top: 14px;
}
.scoreboard {
  background: var(--dark);
  color: #fff;
  border: 0;
  padding: 22px 16px;
}
.scoreboard .name, .scoreboard .score b { color: #fff; }
.scoreboard .state { color: #9ca3af; }
.scoreboard .crest, .scoreboard .mark { background: #fff; color: var(--ink); }
.scoreboard .when, .scoreboard .score { background: transparent; }
.face {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  direction: ltr;
}
.side { display: grid; justify-items: center; gap: 8px; min-width: 0; text-align: center; }
.side .name { white-space: normal; font-weight: 800; }
.score b { font-size: 1.85rem; }
.state { color: var(--muted); font-size: 0.85rem; }
h2 { font-size: 1.05rem; margin: 0; font-weight: 800; }
.prose h2 { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
dl { margin: 10px 0 0; }
dl div {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 8px;
  padding: 10px 8px;
  border-radius: 8px;
}
dl div:nth-child(odd) { background: var(--soft); }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 650; }
.prose p { margin: 12px 0 0; }
button {
  appearance: none;
  border: 0;
  background: var(--accent);
  color: var(--white);
  font: inherit;
  font-weight: 800;
  width: 100%;
  min-height: 48px;
  padding: 8px 16px;
  margin-top: 12px;
  border-radius: 12px;
  cursor: pointer;
}
iframe { width: 100%; aspect-ratio: 16/9; border: 0; background: #070b14; margin-top: 12px; border-radius: 12px; }

/* Footer */
.site-foot {
  margin-top: 40px;
  background: var(--dark);
  color: #d1d5db;
  padding: 28px 0 32px;
  box-shadow: inset 0 3px 0 var(--accent);
}
.foot-grid { display: grid; gap: 16px; }
.site-foot strong { color: var(--white); font-size: 1.05rem; }
.site-foot p { margin: 6px 0 0; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px; }
.site-foot nav a {
  color: var(--white);
  text-decoration: none;
  min-height: 36px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  background: #121a2b;
  border-radius: 999px;
}
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 380px) {
  .days a { font-size: 0.75rem; }
  .match { grid-template-columns: minmax(0, 1fr) 4.8rem minmax(0, 1fr); padding: 10px; }
}
@media (min-width: 720px) {
  h1 { font-size: 2rem; }
  .menu summary { display: none; }
  .menu nav {
    display: flex;
    flex-direction: row;
    position: static;
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
    gap: 2px;
  }
  .menu a { padding: 8px 12px; }
  .menu a[aria-current="page"] { background: transparent; box-shadow: inset 0 -2px 0 var(--accent); }
  .foot-grid { grid-template-columns: 1.3fr 1.4fr 1fr; align-items: start; }
  button { width: auto; min-width: 180px; }
  .score b { font-size: 2.4rem; }
}
@media (max-width: 719px) {
  .face { grid-template-columns: 1fr; justify-items: center; gap: 14px; }
  .side { grid-template-columns: auto auto; align-items: center; }
}
@media (prefers-reduced-motion: no-preference) {
  .dot { animation: pulse 1.6s ease-in-out infinite; }
}
@keyframes pulse { 50% { opacity: 0.35; } }
