/* LUG FA League — public site */

/* ---------- header ---------- */
/* --on-head / --on-hero are the text colours on the header and heroes. They are white on
   the league red; a club page swaps in its own colour and flips them to near-black when the
   colour is light (see teamTheme in site-shell.js). */
:root { --on-head: #fff; --on-hero: #fff; }
.site-head {
  position: sticky; top: 0; z-index: 30; background: var(--head); color: var(--on-head);
  box-shadow: 0 6px 20px -12px rgba(0, 0, 0, 0.5);
  transition: background-color 0.7s var(--ease-out), color 0.7s var(--ease-out);
}
body { transition: background-color 0.7s var(--ease-out); }
.head-bar { display: flex; align-items: center; gap: 12px; min-height: 58px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo img { width: 38px; height: 38px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25)); transition: transform 0.4s var(--ease-spring); }
.logo span { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; white-space: nowrap; }
.logo b { color: var(--on-head); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 3px; }
.head-tools { display: flex; align-items: center; gap: 8px; }
.season-pick select {
  appearance: none; min-height: 36px; padding: 0 30px 0 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--on-head) 25%, transparent); background: color-mix(in srgb, var(--on-head) 7%, transparent);
  color: inherit; font-size: 14px; font-weight: 600;
}
.season-pick option { color: #000; }
.season-pick { position: relative; }
.season-pick::after { content: ""; position: absolute; right: 14px; top: 50%; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-70%) rotate(45deg); pointer-events: none; }

.site-nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  position: relative; flex: none; padding: 12px 14px 14px; font-weight: 700; font-size: 15px;
  text-decoration: none; color: color-mix(in srgb, var(--on-head) 80%, transparent); transition: color 0.2s;
}
.site-nav a:first-child { margin-left: -14px; }
.site-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 4px; border-radius: 4px 4px 0 0;
  background: var(--on-head); transform: scaleY(0); transform-origin: bottom; transition: transform 0.25s var(--ease-out);
}
.site-nav a:hover { color: var(--on-head); }
.site-nav a[aria-current="page"] { color: var(--on-head); }
.site-nav a[aria-current="page"]::after { transform: scaleY(1); }

/* ---------- fixtures strip ---------- */
.strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.strip-inner { display: flex; align-items: stretch; gap: 8px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; scroll-snap-type: x proximity; }
.strip-inner::-webkit-scrollbar { display: none; }
.strip-label { flex: none; display: grid; place-content: center; padding: 0 12px 0 0; border-right: 1px solid var(--line); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); line-height: 1.2; text-align: center; }
.strip-label b { display: block; font-family: var(--font-display); font-size: 20px; color: var(--ink); letter-spacing: 0; }
.chip-match {
  flex: none; scroll-snap-align: start; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
  min-width: 190px; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); text-decoration: none;
  font-weight: 700; font-size: 14px; transition: background 0.2s, transform 0.2s var(--ease-spring);
}
.chip-match .side { display: flex; align-items: center; gap: 6px; }
.chip-match .side.away { flex-direction: row-reverse; }
.chip-match img { width: 22px; height: 22px; object-fit: contain; }
.chip-match .mid { font-family: var(--font-display); font-size: 15px; padding: 2px 8px; border-radius: 6px; background: var(--surface); white-space: nowrap; }
.chip-match.live .mid { background: var(--red-500); color: #fff; }
.strip-all { flex: none; display: grid; place-items: center; padding: 0 8px; font-weight: 700; font-size: 14px; color: var(--brand); text-decoration: none; white-space: nowrap; }

/* ---------- heroes ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--on-hero); isolation: isolate;
  background: var(--hero);
  padding-block: clamp(36px, 8vw, 84px) clamp(32px, 6vw, 64px);
}
.hero::before { /* pitch lines */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.16;
  background:
    radial-gradient(circle at 78% 50%, transparent 0 clamp(70px, 14vw, 150px), #fff clamp(70px, 14vw, 150px) calc(clamp(70px, 14vw, 150px) + 2px), transparent calc(clamp(70px, 14vw, 150px) + 3px)),
    linear-gradient(90deg, transparent calc(78% - 1px), #fff calc(78% - 1px) calc(78% + 1px), transparent calc(78% + 1px));
}
.hero::after { /* light sweep */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 90% at 90% 0%, rgba(255, 255, 255, 0.16), transparent 60%), radial-gradient(70% 90% at 0% 100%, rgba(0, 0, 0, 0.45), transparent 65%);
}
.hero .eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: color-mix(in srgb, var(--on-hero) 85%, transparent); }
.hero h1 { font-size: clamp(42px, 10vw, 104px); font-weight: 800; letter-spacing: -0.035em; line-height: 0.92; }
.hero p.lead { max-width: 52ch; margin: 16px 0 0; font-size: clamp(16px, 2vw, 19px); color: color-mix(in srgb, var(--on-hero) 82%, transparent); }
.hero .btn.ghost { color: var(--on-hero); border-color: color-mix(in srgb, var(--on-hero) 35%, transparent); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-stripes { position: absolute; left: 0; right: 0; bottom: 0; }
.page-hero h1 { font-size: clamp(38px, 8vw, 76px); }
/* Club pages: the whole page takes the club's colour (set by teamTheme) */
.team-hero { background: var(--hero); transition: background-color 0.7s var(--ease-out); }
.team-hero::after { background: radial-gradient(80% 100% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 60%), linear-gradient(100deg, rgba(0, 0, 0, 0.32), transparent 65%); }
.team-light .team-hero::after { background: radial-gradient(80% 100% at 100% 0%, rgba(255, 255, 255, 0.5), transparent 60%), linear-gradient(100deg, rgba(0, 0, 0, 0.08), transparent 65%); }
.team-light .hero::before { filter: invert(1); }
.team-light .hero .fact { background: rgba(255, 255, 255, 0.5); border-color: rgba(0, 0, 0, 0.1); }
body.team-themed { background: var(--team-page); }
body.team-themed .panel, body.team-themed .match-card, body.team-themed .player-card, body.team-themed .empty-state { border-color: color-mix(in srgb, var(--team) 22%, var(--line)); }
.team-hero .wrap { display: flex; align-items: center; gap: clamp(16px, 4vw, 36px); }
.team-hero .wrap > div { flex: 1; min-width: 0; }
@media (max-width: 640px) {
  .team-hero .wrap { flex-direction: column; align-items: flex-start; }
  .team-hero .facts, .profile .facts { grid-template-columns: repeat(2, 1fr); }
}
.team-hero .big-crest { width: clamp(96px, 20vw, 190px); aspect-ratio: 1; object-fit: contain; flex: none; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.45)); animation: crest-in 0.8s var(--ease-spring) both; }
@keyframes crest-in { from { transform: scale(0.6) rotate(-12deg); opacity: 0; } }

.kickoff-box { display: inline-flex; align-items: center; gap: 14px; margin-top: 26px; padding: 12px 18px; border-radius: 16px; background: rgba(0, 0, 0, 0.28); backdrop-filter: blur(6px); }
.kickoff-box small { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.kickoff-box strong { font-family: var(--font-display); font-size: clamp(24px, 5vw, 34px); font-variant-numeric: tabular-nums; }

/* ---------- layout ---------- */
.section { padding-block: clamp(28px, 5vw, 48px) 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(24px, 4.5vw, 34px); }
.section-head a { font-weight: 700; color: var(--brand); text-decoration: none; white-space: nowrap; }
.section-head a:hover { text-decoration: underline; }
.split { display: grid; gap: clamp(20px, 3vw, 32px); }
@media (min-width: 900px) { .split { grid-template-columns: 1.35fr 1fr; align-items: start; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(14px, 2.5vw, 20px); }
.empty-state { padding: 28px 18px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); }
main { min-height: 50vh; padding-bottom: 72px; }

/* ---------- match cards ---------- */
.match-list { display: grid; gap: 10px; }
@media (min-width: 720px) { .match-list.cols { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); } }
.match-card {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
  padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; transition: transform 0.25s var(--ease-spring), box-shadow 0.25s, border-color 0.25s;
}
.match-card .side { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 700; }
.match-card .side.away { flex-direction: row-reverse; text-align: right; }
.match-card .side span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-card .side img { width: 36px; height: 36px; object-fit: contain; flex: none; }
.match-card .center { display: grid; justify-items: center; gap: 2px; min-width: 74px; }
.score-box { font-family: var(--font-display); font-size: 22px; font-weight: 800; padding: 3px 10px; border-radius: 8px; background: var(--black); color: #fff; font-variant-numeric: tabular-nums; }
.time-box { font-family: var(--font-display); font-size: 18px; font-weight: 800; padding: 3px 10px; border-radius: 8px; border: 1px solid var(--line-strong); }
.match-card .note { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.match-card.live .score-box { background: var(--red-500); }
.match-card.live .note { color: var(--red-500); }
.short-name { display: none; }
@media (max-width: 480px) { .match-card .full-name { display: none; } .short-name { display: inline; } }
.day-head { margin: 22px 0 10px; font-size: 15px; font-weight: 800; color: var(--ink-2); }
.day-head:first-child { margin-top: 0; }

/* ---------- league table ---------- */
.league { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
.league th { padding: 8px 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-align: center; border-bottom: 2px solid var(--line); }
.league th.club, .league td.club { text-align: left; }
.league td { padding: 10px 6px; text-align: center; border-bottom: 1px solid var(--line); }
.league tbody tr { cursor: pointer; transition: background 0.2s; }
.league tbody tr:hover { background: var(--surface-2); }
.league .pos { width: 34px; font-weight: 800; position: relative; }
.league .pos::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 4px; background: var(--tc); }
.league tr.first .pos { color: var(--highlight); }
.league .club a { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; }
.league .club img { width: 28px; height: 28px; object-fit: contain; flex: none; }
.league .pts { font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.league .ded { color: var(--danger); font-weight: 700; }
.form { display: inline-flex; gap: 3px; }
.form i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-style: normal; font-size: 11px; font-weight: 800; color: #fff; }
.form .W { background: var(--win); } .form .D { background: var(--draw); } .form .L { background: var(--loss); }
.table-scroll { overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
@media (max-width: 640px) {
  .league .hide-sm { display: none; }
  .league .club .name { display: none; }
  .league .club .abbr { display: inline !important; }
}
.league .club .abbr { display: none; }
.league.compact td { padding: 8px 6px; }
.notes { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.notes li::before { content: "−"; color: var(--danger); font-weight: 800; margin-right: 8px; }

/* ---------- team & player cards ---------- */
.team-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.team-card {
  position: relative; overflow: hidden; display: grid; justify-items: center; gap: 10px; padding: 22px 14px 18px; text-align: center;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s, border-color 0.3s;
}
.team-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--tc); }
.team-card img { width: 92px; height: 92px; object-fit: contain; transition: transform 0.4s var(--ease-spring); }
.team-card h3 { font-size: 18px; }
.team-card .muted { font-size: 13px; }

.player-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (max-width: 420px) { .player-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.player-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}
.player-card .photo { position: relative; aspect-ratio: 4 / 5; background: linear-gradient(160deg, color-mix(in srgb, var(--tc) 55%, var(--black)), var(--black)); overflow: hidden; }
.player-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.player-card .num { position: absolute; top: 8px; left: 10px; font-family: var(--font-display); font-weight: 800; font-size: 26px; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); }
.player-card .photo .crest { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; object-fit: contain; }
.player-card .info { padding: 10px 12px 12px; }
.player-card .info strong { display: block; font-size: 15px; line-height: 1.2; }
.player-card .info span { font-size: 13px; color: var(--muted); }

/* ---------- stats lists ---------- */
.leaders { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.leaders a { display: grid; grid-template-columns: 26px 40px 1fr auto; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; text-decoration: none; transition: background 0.2s; }
.leaders a:hover { background: var(--surface-2); }
.leaders .rank { font-weight: 800; color: var(--muted); text-align: center; }
.leaders li:first-child .rank { color: var(--highlight); }
.leaders img { width: 40px; height: 50px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.leaders .who strong { display: block; line-height: 1.2; }
.leaders .who span { font-size: 13px; color: var(--muted); }
.leaders .val { font-family: var(--font-display); font-weight: 800; font-size: 22px; }

/* ---------- key facts ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.fact { padding: 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.fact b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.fact span { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.hero .facts { margin-top: 24px; }
.hero .fact { background: color-mix(in srgb, var(--on-hero) 10%, rgba(0, 0, 0, 0.18)); border-color: color-mix(in srgb, var(--on-hero) 14%, transparent); }
.hero .fact span { color: color-mix(in srgb, var(--on-hero) 72%, transparent); }

.window-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: var(--radius); background: linear-gradient(110deg, var(--black), var(--red-700)); color: #fff; }
.window-card small { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }
.window-card strong { font-family: var(--font-display); font-size: clamp(22px, 4vw, 30px); font-variant-numeric: tabular-nums; }

/* ---------- player profile ---------- */
.profile { display: grid; gap: clamp(18px, 4vw, 36px); align-items: end; }
@media (min-width: 720px) { .profile { grid-template-columns: minmax(220px, 300px) 1fr; } }
.profile-photo { width: min(300px, 70vw); aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.6); background: var(--black); animation: crest-in 0.8s var(--ease-out) both; }
.profile .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(54px, 10vw, 96px); line-height: 0.9; color: var(--on-hero); opacity: 0.9; }
.club-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 700; color: var(--on-hero); text-decoration: none; }
.club-link img { width: 28px; height: 28px; object-fit: contain; }
.career { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.career th, .career td { padding: 9px 8px; text-align: center; border-bottom: 1px solid var(--line); }
.career th { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.career th:first-child, .career td:first-child { text-align: left; }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.pill-btn { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 700; font-size: 14px; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.pill-btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.filters select { min-height: 38px; border-radius: 999px; padding: 0 14px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 600; }
.filters .grow { flex: 1 1 200px; }
.filters input { width: 100%; min-height: 38px; border-radius: 999px; padding: 0 14px; border: 1px solid var(--line-strong); background: var(--surface); }

/* ---------- match page ---------- */
.match-hero .wrap { text-align: center; }
.mh-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(8px, 3vw, 28px); margin-top: 14px; }
.mh-team { display: grid; justify-items: center; gap: 10px; color: var(--on-hero); text-decoration: none; font-weight: 800; font-size: clamp(15px, 2.6vw, 20px); }
.mh-team img { width: clamp(72px, 16vw, 130px); aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.4)); animation: crest-in 0.7s var(--ease-spring) both; }
.mh-score { font-family: var(--font-display); font-weight: 800; font-size: clamp(54px, 13vw, 112px); line-height: 1; font-variant-numeric: tabular-nums; }
.mh-status { display: inline-block; margin-top: 8px; padding: 4px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.3); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.timeline li { display: grid; grid-template-columns: 1fr 54px 1fr; align-items: center; gap: 8px; }
.timeline .min { justify-self: center; font-weight: 800; font-size: 13px; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); }
.timeline .ev { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.timeline .home .ev { grid-column: 1; justify-content: flex-end; text-align: right; }
.timeline .away .ev { grid-column: 3; }
.timeline li > .min { grid-column: 2; grid-row: 1; }
.timeline .ev small { display: block; color: var(--muted); }
.card-y, .card-r { display: inline-block; width: 11px; height: 15px; border-radius: 2px; flex: none; }
.card-y { background: #f2c418; } .card-r { background: var(--red-500); }

/* ---------- footer ---------- */
.site-foot { background: var(--black); color: rgba(255, 255, 255, 0.75); padding: 36px 0 48px; font-size: 14px; }
.site-foot a { color: #fff; text-decoration: none; font-weight: 600; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms); }
.reveal.in { opacity: 1; transform: none; }
.hero h1, .hero .eyebrow, .hero p.lead, .hero-cta, .kickoff-box, .hero .facts { animation: rise 0.7s var(--ease-out) both; }
.hero .eyebrow { animation-delay: 0.02s; }
.hero h1 { animation-delay: 0.06s; }
.hero p.lead { animation-delay: 0.14s; }
.hero-cta, .kickoff-box, .hero .facts { animation-delay: 0.2s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.skeleton { border-radius: var(--radius); background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ===================== refinements ===================== */

/* Header as a translucent red material; content scrolls underneath it */
.site-head {
  background: color-mix(in srgb, var(--head) 84%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  view-transition-name: site-head; /* stays put between pages instead of cross-fading */
}
@media (prefers-reduced-transparency: reduce) {
  .site-head { background: var(--head); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Feedback on press, not on release */
.match-card:active, .team-card:active, .player-card:active, .chip-match:active, .pill-btn:active, .leaders a:active {
  transform: scale(0.97); transition: transform 0.1s ease-out;
}

/* Home hero: copy on the left, floating crests on the right (below the copy on phones) */
.hero-home::before { display: none; }
.hero-grid { display: grid; gap: 8px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 24px; } }
.crest-field { position: relative; height: clamp(250px, 42vw, 470px); margin-top: 10px; --size: clamp(62px, 8.6vw, 108px); }
.crest-field::before { /* halfway line */
  content: ""; position: absolute; left: 50%; top: -12%; bottom: -12%; width: 2px; translate: -1px 0;
  background: linear-gradient(transparent, color-mix(in srgb, var(--on-hero) 22%, transparent) 20% 80%, transparent);
  animation: draw-line 1s var(--ease-out) 0.2s both;
}
.cf-ring {
  position: absolute; left: 50%; top: 50%; width: calc(var(--r, 120px) * 2); aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; border: 2px solid color-mix(in srgb, var(--on-hero) 22%, transparent);
  animation: ring-in 1.1s var(--ease-out) 0.15s both;
}
.cf-ring::after { /* centre spot */
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; translate: -50% -50%; border-radius: 50%;
  background: color-mix(in srgb, var(--on-hero) 35%, transparent);
}
@keyframes ring-in { from { scale: 0.2; opacity: 0; } }
@keyframes draw-line { from { transform: scaleY(0); } }
.cf-crest {
  position: absolute; left: 50%; top: 50%; width: var(--size); aspect-ratio: 1; margin: calc(var(--size) / -2);
  transform: scale(0.6); opacity: 0; transition: opacity 0.3s ease-out; will-change: transform; touch-action: none; cursor: grab;
  -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.cf-crest img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.35)); transition: filter 0.3s; }
.cf-crest:hover img { filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.45)); }
.cf-crest.is-dragging { cursor: grabbing; z-index: 2; }
.cf-crest.is-dragging img { filter: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.5)); }
@media (max-width: 899px) { .hero-home .hero-copy { text-align: left; } }

/* Headline rises in, line by line */
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero h1 .ln > span { display: inline-block; animation: line-up 0.9s var(--ease-out) both; }
.hero h1 .ln:nth-child(2) > span { animation-delay: 0.08s; }
.hero h1:has(.ln) { animation: none; }
@keyframes line-up { from { transform: translateY(105%); } }

/* Table rows cascade in */
.league tbody tr { animation: row-in 0.55s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms + 0.1s); }
@keyframes row-in { from { opacity: 0; transform: translateX(-12px); } }
.form i { animation: pop 0.4s var(--ease-spring) both; animation-delay: calc(var(--i, 0) * 50ms + 0.35s); }
@keyframes pop { from { transform: scale(0.8); opacity: 0; } }

/* Club crest carries over from the clubs grid to the club page */
::view-transition-group(*) { animation-duration: 0.45s; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }

/* Countdown digits roll when they change */
[data-countdown] { display: inline-block; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .hero h1 .ln > span, .league tbody tr, .form i, .cf-ring, .crest-field::before { animation: none !important; }
}

/* ===================== match cards (full names, scores, scorers) ===================== */
.match-list.cols { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.mc { display: grid; grid-template-columns: none; gap: 2px; padding: 12px 14px 14px; align-items: stretch; }
.mc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.mc-ko { font-family: var(--font-display); font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink); padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line-strong); }
.mc-ft { padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.mc-live { padding: 2px 9px; border-radius: 999px; background: var(--red-500); color: #fff; animation: live-pulse 1.6s ease-in-out infinite; }
@keyframes live-pulse { 50% { opacity: 0.65; } }
.mc-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 6px 0; }
.mc-row + .mc-row { border-top: 1px solid var(--line); }
.mc-row img { width: 34px; height: 34px; object-fit: contain; }
.mc-name { min-width: 0; display: grid; gap: 1px; }
.mc-name strong { font-size: 16px; font-weight: 700; line-height: 1.25; }
.mc-row.won .mc-name strong { font-weight: 800; }
.mc-scorers { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.mc-scorers::before { content: "⚽ "; font-size: 10px; }
.mc-score { font-family: var(--font-display); font-weight: 800; font-size: 26px; min-width: 32px; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.mc-row.won .mc-score { color: var(--ink); }
.mc-note { margin: 6px 0 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.mc.live { border-color: color-mix(in srgb, var(--red-500) 40%, var(--line)); }

/* Preview-data notice */
.demo-banner { background: var(--black); color: #fff; text-align: center; font-size: 13px; font-weight: 600; padding: 7px 16px; }

/* ===================== news ===================== */
.news-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.news-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform 0.3s var(--ease-spring), box-shadow 0.3s; }
.news-card:active { transform: scale(0.98); transition: transform 0.1s ease-out; }
.news-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-cover-blank { display: grid; place-items: end start; padding: 14px; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 22px;
  background: linear-gradient(135deg, var(--red-700), var(--black)); position: relative; overflow: hidden; }
.news-cover-blank::after { content: ""; position: absolute; right: -30px; top: -30px; width: 140px; height: 140px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.18); }
.news-cover-blank[data-kind="transfer"] { background: linear-gradient(135deg, var(--black), #3a3a3a); }
.news-cover-blank[data-kind="announcement"] { background: linear-gradient(135deg, #444, var(--red-800)); }
.news-body { display: grid; gap: 6px; padding: 14px 16px 16px; }
.news-kind { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.news-body h3 { font-size: 19px; line-height: 1.2; }
.news-body p { margin: 0; color: var(--ink-2); font-size: 15px; }
.news-body time { font-size: 13px; color: var(--muted); }
.news-grid .news-card:first-child:not(:only-child) { grid-column: 1 / -1; }
@media (min-width: 760px) {
  .news-grid .news-card:first-child:not(:only-child) { flex-direction: row; }
  .news-grid .news-card:first-child:not(:only-child) .news-cover { width: 55%; aspect-ratio: auto; min-height: 260px; }
  .news-grid .news-card:first-child:not(:only-child) h3 { font-size: 28px; }
}

.article { max-width: 720px; margin-inline: auto; }
.article-body { font-size: 18px; line-height: 1.65; }
.article-body h2 { font-size: 26px; margin: 28px 0 10px; }
.article-body h3 { font-size: 21px; margin: 22px 0 8px; }
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol { padding-left: 22px; margin: 0 0 16px; }
.article-body li { margin-bottom: 6px; }
.article-body blockquote { margin: 0 0 16px; padding: 4px 0 4px 16px; border-left: 4px solid var(--brand); font-size: 20px; font-style: italic; color: var(--ink-2); }
.article-body a { color: var(--brand); font-weight: 600; }
.highlights { list-style: none; margin: 0 0 28px; padding: 0; position: relative; }
.highlights::before { content: ""; position: absolute; left: 25px; top: 6px; bottom: 6px; width: 2px; background: var(--line-strong); }
.highlights li { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: start; padding: 8px 0; }
.highlights .hl-min { position: relative; z-index: 1; justify-self: center; min-width: 42px; text-align: center; font-weight: 800; font-size: 13px; padding: 4px 6px; border-radius: 999px; background: var(--brand); color: #fff; }
.highlights .hl-text { padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 16px; }
.report-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.report-link span { color: var(--brand); white-space: nowrap; }

/* ===================== live search ===================== */
.search-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; color: inherit;
  border: 1px solid color-mix(in srgb, var(--on-head) 25%, transparent); background: color-mix(in srgb, var(--on-head) 7%, transparent);
  transition: transform 0.1s ease-out, background 0.2s; }
.search-btn:active { transform: scale(0.92); }
.search-btn svg { width: 18px; height: 18px; }
.search-panel {
  position: fixed; z-index: 29; left: 0; right: 0; top: var(--head-h, 104px); max-height: calc(100svh - var(--head-h, 104px));
  overflow-y: auto; overscroll-behavior: contain;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--line); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.45);
  opacity: 0; transform: translateY(-6px); transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}
.search-panel.open { opacity: 1; transform: none; transition-duration: 0.2s; }
@media (max-width: 640px) { .search-panel { bottom: 0; max-height: none; } }
@media (prefers-reduced-transparency: reduce) { .search-panel { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.search-inner { padding-block: 14px 18px; }
.search-box { display: flex; align-items: center; gap: 10px; padding: 0 6px 0 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-strong); }
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.search-box > svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.search-box input { flex: 1; min-width: 0; min-height: 48px; border: 0; background: transparent; font-size: 17px; outline: none; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-close { border: 0; background: transparent; color: var(--brand); font-weight: 700; padding: 8px 10px; cursor: pointer; }
.search-results { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.search-results li[role=option] { animation: sr-in 0.28s var(--ease-out) both; animation-delay: calc(var(--i) * 22ms); }
@keyframes sr-in { from { opacity: 0; transform: translateY(6px); } }
.search-results a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; text-decoration: none; transition: background 0.15s; }
.search-results a:hover, .search-results li.active a { background: var(--surface-2); }
.search-results a:active { transform: scale(0.98); }
.sr-thumb { width: 40px; height: 50px; border-radius: 8px; object-fit: cover; flex: none; background: var(--surface-2); }
.sr-crest { width: 40px; height: 40px; object-fit: contain; flex: none; }
.sr-text { min-width: 0; display: grid; gap: 2px; }
.sr-text strong { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-text mark { background: color-mix(in srgb, var(--brand) 22%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.sr-text small { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-text small img { width: 16px; height: 16px; object-fit: contain; }
.search-note { padding: 14px 10px; color: var(--muted); font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .search-panel { transform: none; } .search-results li[role=option] { animation: none; } }

/* Comfortable tap areas on phones without changing how links look */
.section-head a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 6px; margin-inline: -6px; }
.league .club a { min-height: 40px; }
.club-link { min-height: 44px; }

/* Hover movement only where there is a real hover (on touch it would stick after a tap) */
@media (hover: hover) and (pointer: fine) {
  .logo:hover img { transform: rotate(-8deg) scale(1.06); }
  .chip-match:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--brand) 10%, var(--surface-2)); }
  .match-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
  .team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--tc) 50%, var(--line)); }
  .team-card:hover img { transform: scale(1.07) rotate(-4deg); }
  .player-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
  .player-card:hover .photo img { transform: scale(1.05); }
  .site-foot .crests a:hover { transform: translateY(-3px) scale(1.06); }
  .news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
}

/* ===================== phones ===================== */
.tabbar { display: none; }
@media (max-width: 720px) {
  /* the menu moves to a bottom tab bar, the header becomes one slim line */
  .site-nav { display: none; }
  .head-bar { min-height: 56px; }
  .logo span { font-size: 18px; }
  .tabbar {
    position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: repeat(6, 1fr);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
    border-top: 1px solid var(--line);
  }
  .tabbar a {
    display: grid; justify-items: center; gap: 3px; min-height: 48px; padding: 4px 0; border-radius: 12px;
    text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.01em;
    -webkit-tap-highlight-color: transparent; transition: transform 0.1s ease-out;
  }
  .tabbar a:active { transform: scale(0.94); }
  .tabbar svg { width: 23px; height: 23px; }
  .tabbar a[aria-current="page"] { color: var(--brand); }
  .tabbar a[aria-current="page"] svg { stroke-width: 2.3; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .site-foot { padding-bottom: 28px; }

  /* thumb-sized controls, and 16px text so iPhones don't zoom into form fields */
  .pill-btn, .filters select, .filters input { min-height: 44px; font-size: 16px; }
  .season-pick select { font-size: 16px; }
  .filters { gap: 8px; }
  .filters select { flex: 1 1 140px; }
  .section { padding-top: 26px; }
  .hero { padding-block: 28px 30px; }
  .page-hero h1 { font-size: clamp(34px, 10vw, 48px); }
  .mc-name strong { font-size: 15.5px; }
  .player-grid { gap: 10px; }
}
@media (prefers-reduced-transparency: reduce) { .tabbar { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* ===================== captain armband and coach ===================== */
/* the classic yellow armband */
.armband {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 5px;
  background: #f2c418; color: #141010; font: 800 12px/1 var(--font-body); letter-spacing: 0;
  vertical-align: 2px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}
.player-card .photo .armband { position: absolute; top: 40px; left: 10px; min-width: 24px; height: 24px; font-size: 13px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.15); }
.hero .eyebrow .armband { margin-left: 6px; vertical-align: 1px; }
.coach-card { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.coach-card img { width: 64px; height: 80px; border-radius: 10px; object-fit: cover; flex: none; background: var(--surface-2); }
.coach-card > div { display: grid; gap: 2px; min-width: 0; }
.coach-role { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.coach-card strong { font-size: 18px; }
.coach-cap { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.sr-text strong .armband { margin-left: 4px; }

/* ===================== footer ===================== */
.site-foot { padding: 40px 0 32px; background: var(--black); color: rgba(255, 255, 255, 0.72); font-size: 15px; }
.site-foot a { color: #fff; text-decoration: none; font-weight: 600; }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { width: 52px; height: 52px; }
.foot-brand span { display: grid; gap: 2px; }
.foot-brand strong { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; }
.foot-brand small { font-weight: 500; color: rgba(255, 255, 255, 0.6); font-size: 13px; }
.foot-up { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22); background: transparent; color: #fff; font-weight: 700; cursor: pointer; transition: transform 0.1s ease-out, background 0.2s; }
.foot-up:active { transform: scale(0.96); }
.foot-clubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding: 24px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.foot-clubs a { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 10px; border-radius: 12px; font-size: 14px; transition: background 0.2s; }
.foot-clubs img { width: 34px; height: 34px; object-fit: contain; flex: none; }
.foot-clubs a:active { transform: scale(0.98); }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 24px 0; }
.foot-cols h3 { margin: 0 0 10px; font-family: var(--font-body); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.foot-cols nav { display: grid; gap: 4px; align-content: start; }
.foot-cols nav a { min-height: 36px; display: flex; align-items: center; }
.foot-cols p { margin: 0 0 8px; }
.foot-base { display: flex; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; color: rgba(255, 255, 255, 0.5); }
.foot-base a { color: rgba(255, 255, 255, 0.6); font-weight: 500; }
@media (hover: hover) and (pointer: fine) {
  .foot-clubs a:hover { background: color-mix(in srgb, var(--tc) 22%, transparent); }
  .foot-up:hover, .site-foot nav a:hover { background: rgba(255, 255, 255, 0.08); }
  .site-foot nav a:hover { background: none; text-decoration: underline; }
}
@media (max-width: 720px) {
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-cols > div { grid-column: 1 / -1; }
  .foot-clubs { grid-template-columns: 1fr 1fr; }
  .foot-brand small { display: none; }
  /* no header search on phones (the Players page has its own) */
  .search-btn { display: none; }
}

/* ===================== fixtures: one list, played weeks folded ===================== */
.gw-block { margin-bottom: 26px; scroll-margin-top: calc(var(--head-h, 72px) + 12px); }
.gw-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 12px; font-size: 22px; }
.gw-title { font-family: var(--font-display); font-weight: 800; }
.gw-date { font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--muted); }
.gw-now { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: var(--brand); color: #fff; font: 800 12px/1.4 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; }
.gw-fold { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); margin-bottom: 10px; }
.gw-fold summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px 12px; padding: 14px 16px; cursor: pointer; list-style: none; min-height: 52px; -webkit-tap-highlight-color: transparent; border-radius: var(--radius); }
.gw-fold summary::-webkit-details-marker { display: none; }
.gw-fold summary::after { content: ""; grid-column: 3; grid-row: 1; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s var(--ease-out); justify-self: end; }
.gw-fold[open] summary::after { transform: rotate(-135deg); }
.gw-fold .gw-title { font-size: 18px; }
.gw-fold .gw-date { font-size: 14px; }
.gw-scores { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.gw-scores span { padding: 3px 9px; border-radius: 8px; background: var(--surface-2); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.gw-fold > .match-list { padding: 0 12px 12px; }
.gw-fold summary:active { background: var(--surface-2); }

/* ===================== table page stats ===================== */
.boards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.board-card .section-head h2 { font-size: 20px; }
.leaders .who span { display: flex; align-items: center; gap: 5px; }
.mini-crest { width: 16px !important; height: 16px !important; object-fit: contain !important; border-radius: 0 !important; background: none !important; }

/* ===================== player of the match ===================== */
.potm { margin-bottom: 24px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; }
.potm-head { display: grid; gap: 2px; }
.potm-kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); }
.potm-head strong { font-family: var(--font-display); font-size: 22px; }
.potm-winner { display: flex; align-items: center; gap: 12px; margin: 4px 0; text-decoration: none; }
.potm-winner img { width: 56px; height: 70px; border-radius: 10px; object-fit: cover; box-shadow: 0 0 0 3px #f2c418; }
.potm-team { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 15px; }
.potm-team img { width: 22px; height: 22px; object-fit: contain; }
.potm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.potm-pick { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 10px 6px 6px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); font: 600 14px/1.2 var(--font-body); color: var(--ink); text-align: left; cursor: pointer; transition: transform 0.1s ease-out, border-color 0.15s; -webkit-tap-highlight-color: transparent; }
.potm-pick:active { transform: scale(0.97); }
.potm-pick img { width: 36px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; }
.potm-pick.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, var(--surface)); }
.potm-confirm { display: grid; gap: 10px; padding-top: 4px; }
.potm-confirm p { margin: 0; }
.potm-confirm .btn { min-height: 50px; }
.potm-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.potm-results li { display: grid; grid-template-columns: 34px minmax(0, 1fr) 1.2fr 44px; align-items: center; gap: 10px; font-size: 14px; }
.potm-results img { width: 34px; height: 42px; border-radius: 6px; object-fit: cover; }
.potm-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.potm-bar { height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.potm-bar i { display: block; height: 100%; border-radius: inherit; background: var(--brand); transition: width 0.6s var(--ease-out); }
.potm-results b { text-align: right; font-variant-numeric: tabular-nums; }
.sub-on { color: var(--ok); }
.potm-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 10px; border-radius: 999px; background: #f2c418; color: #141010; font-size: 13px; font-weight: 800; }
.pslot-dot b { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); color: #fff; }

/* match page: back link, gold player of the match, no underlined names */
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin: -8px 0 6px; padding: 0 14px 0 10px; border-radius: 999px; color: var(--on-hero); background: rgba(0, 0, 0, 0.18); font-weight: 700; text-decoration: none; transition: transform 0.1s ease-out; }
.back-link:active { transform: scale(0.96); }
.timeline .ev, .timeline .ev strong, .timeline .ev small { text-decoration: none; }
.timeline a.ev { color: inherit; }
.potm-kicker { color: #c9a227; }
[data-theme="dark"] .potm-kicker { color: #f2c418; }
.potm-head strong .potm-star, .potm-winner .potm-star { font-size: 0.9em; }
.potm { border-color: color-mix(in srgb, #f2c418 45%, var(--line)); }
.potm-badge { background: linear-gradient(135deg, #f7d64a, #c9a227); }

/* club honours: gold trophy chips */
.honours { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.honour { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 999px; background: linear-gradient(135deg, #f7d64a, #c9a227); color: #2a1f00; font-size: 14px; font-weight: 800; box-shadow: 0 2px 10px -4px rgba(0, 0, 0, 0.4); }
.honour svg { width: 18px; height: 18px; fill: currentColor; }
.honours.compact { justify-content: center; margin-top: 4px; gap: 4px; }
.honours.compact .honour { padding: 3px 9px 3px 6px; font-size: 12px; }
.honours.compact .honour svg { width: 14px; height: 14px; }
.hero h1 .potm-star { font-size: 0.7em; vertical-align: 0.15em; margin-left: 8px; }

/* FA Cup bracket (fixtures page) */
.cup-bracket { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 16px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.cb-col { display: flex; flex-direction: column; gap: 10px; scroll-snap-align: start; }
.cb-ties { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 14px; }
.cb-col h3 { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cb-tie { position: relative; display: grid; gap: 2px; padding: 22px 12px 10px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: transform 160ms var(--ease-out), border-color 160ms; }
a.cb-tie:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { a.cb-tie:hover { border-color: var(--brand); } }
.cb-code { position: absolute; top: 6px; left: 12px; font-size: 11px; font-weight: 800; color: var(--brand); letter-spacing: 0.04em; }
.cb-team { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; min-height: 34px; font-weight: 600; }
.cb-team img { width: 26px; height: 26px; object-fit: contain; }
.cb-team b { font-family: var(--font-display); font-size: 18px; font-variant-numeric: tabular-nums; }
.cb-team.won { font-weight: 800; }
.cb-team.out { opacity: 0.5; }
.cb-team.tbc { grid-template-columns: 1fr; color: var(--muted); font-style: italic; font-weight: 500; }
.cb-foot { margin-top: 4px; font-size: 12px; color: var(--muted); }
