/* mattyinthepits.com - shared styles */
:root {
  --bg: #0a0a0b;
  --bg-2: #111114;
  --card: #16161a;
  --line: #26262c;
  --text: #f4f4f5;
  --muted: #9a9aa3;
  --red: #ff1e1e;
  --red-deep: #c4000c;
  --glow: rgba(255, 30, 30, .35);
  --radius: 14px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Titillium Web', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- nav ---------- */
nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: rgba(10, 10, 11, .72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
nav.scrolled { border-bottom-color: var(--line); background: rgba(10, 10, 11, .9); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-style: italic; letter-spacing: .5px; text-transform: uppercase; }
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.brand span b { color: var(--red); }
.nav-links { display: flex; gap: 26px; font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: 1px; }
.nav-links a { color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-social { display: flex; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2);
  transition: border-color .2s, transform .2s, background .2s;
}
.icon-btn:hover { border-color: var(--red); transform: translateY(-2px); background: #1a0a0b; }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 40px 0 90px; overflow: hidden; isolation: isolate; }
.speedlines { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.speedlines i {
  position: absolute; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: .0; animation: streak linear infinite;
}
@keyframes streak {
  0% { transform: translateX(-30vw); opacity: 0; }
  10% { opacity: .55; }
  100% { transform: translateX(130vw); opacity: 0; }
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 55% at 50% 38%, rgba(255, 30, 30, .18), transparent 70%),
    repeating-linear-gradient(115deg, transparent 0 46px, rgba(255,255,255,.018) 46px 47px);
}
.hero-inner { display: grid; justify-items: center; text-align: center; }
.logo-ring { position: relative; width: min(400px, 78vw); aspect-ratio: 1; margin: 10px 0 28px; }
.logo-ring::before {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 65%, var(--red) 85%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: spin 4s linear infinite;
}
.logo-ring::after {
  content: ""; position: absolute; inset: 8%; border-radius: 50%; z-index: -1;
  box-shadow: 0 0 90px 20px var(--glow);
  animation: pulse 3.2s ease-in-out infinite;
}
.logo-ring img { width: 100%; height: 100%; border-radius: 50%; animation: float 6s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { box-shadow: 0 0 120px 30px rgba(255, 30, 30, .22); } }
@keyframes float { 50% { transform: translateY(-8px); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--red);
}
.eyebrow::before, .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--red); }
h1 {
  margin: 10px 0 8px; font-size: clamp(40px, 8vw, 78px); line-height: 1;
  font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -1px;
}
h1 b { color: var(--red); }
.tagline { color: var(--muted); font-size: clamp(17px, 2.4vw, 20px); max-width: 560px; margin: 0 0 32px; }

.cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 12px; font-weight: 700; font-size: 16px;
  text-transform: uppercase; letter-spacing: 1px;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn svg { width: 22px; height: 22px; }
.btn-red {
  background: linear-gradient(135deg, var(--red), var(--red-deep)); color: #fff;
  box-shadow: 0 8px 30px -8px var(--glow);
  transform: skewX(-8deg);
}
.btn-red > * { transform: skewX(8deg); }
.btn-red:hover { transform: skewX(-8deg) translateY(-3px); box-shadow: 0 14px 40px -8px rgba(255,30,30,.6); }
.btn-ghost { border: 1px solid var(--line); background: var(--bg-2); transform: skewX(-8deg); }
.btn-ghost > * { transform: skewX(8deg); }
.btn-ghost:hover { border-color: var(--text); transform: skewX(-8deg) translateY(-3px); }

.checker {
  height: 18px; opacity: .9;
  background:
    conic-gradient(#fff 25%, #0a0a0b 0 50%, #fff 0 75%, #0a0a0b 0) 0 0 / 18px 18px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
          mask: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}

/* ---------- sections ---------- */
section.block { padding: 80px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-head h2 {
  margin: 0; font-size: clamp(30px, 4.5vw, 44px); line-height: 1.05;
  font-weight: 900; font-style: italic; text-transform: uppercase;
}
.sec-head h2 small { display: block; font-size: 13px; font-style: normal; letter-spacing: 3px; color: var(--red); font-weight: 700; margin-bottom: 6px; }
.sec-link { color: var(--muted); font-weight: 600; font-size: 15px; display: inline-flex; gap: 6px; align-items: center; }
.sec-link:hover { color: var(--red); }

/* ---------- videos ---------- */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.video {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.video:hover { transform: translateY(-5px); border-color: var(--red); box-shadow: 0 18px 40px -18px var(--glow); }
.thumb { position: relative; aspect-ratio: 16/9; background: #000; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.video:hover .thumb img { transform: scale(1.05); }
.thumb .play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(transparent 50%, rgba(0,0,0,.6)); opacity: 0; transition: opacity .25s;
}
.video:hover .play { opacity: 1; }
.play svg { width: 62px; height: 62px; filter: drop-shadow(0 4px 14px rgba(0,0,0,.6)); }
.tag { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; background: var(--red); padding: 3px 8px; border-radius: 6px; }
.video-body { padding: 14px 16px 16px; }
.video-title { font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.video-meta { margin-top: 6px; font-size: 14px; color: var(--muted); }

.empty {
  text-align: center; padding: 60px 24px; border: 1px dashed #3a3a42; border-radius: 20px;
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.015) 14px 28px);
}
.empty .lights { display: flex; gap: 12px; justify-content: center; margin-bottom: 22px; }
.empty .lights i { width: 22px; height: 22px; border-radius: 50%; background: #2a0d0f; border: 2px solid #3a1214; }
.empty .lights i.on { background: var(--red); border-color: var(--red); box-shadow: 0 0 18px var(--red); }
.empty h3 { margin: 0 0 6px; font-size: 26px; font-weight: 900; font-style: italic; text-transform: uppercase; }
.empty p { margin: 0 0 22px; color: var(--muted); }

/* ---------- tiktok ---------- */
.tt-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center; }
.tt-copy p { color: var(--muted); margin: 0 0 24px; font-size: 18px; }
.tt-copy .tt-stats { margin: -12px 0 24px; font-size: 15px; color: var(--text); font-weight: 700; }
/* our own clip grid (data/tiktok.json); no TikTok script on the page */
.tt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tt-clip { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid var(--line);
  transition: transform .2s, border-color .2s; }
.tt-clip:hover, .tt-clip:focus-visible { transform: translateY(-3px); border-color: var(--red); }
.tt-clip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tt-clip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.82)); pointer-events: none; }
.tt-plays { position: absolute; left: 10px; top: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 8px;
  font-size: 12px; font-weight: 700; color: #fff; background: rgba(0,0,0,.55); }
.tt-plays svg { width: 11px; height: 11px; }
.tt-desc { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1; font-size: 13px; font-weight: 600; color: #fff; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tt-follow { grid-column: 1 / -1; display: grid; place-items: center; gap: 8px; text-align: center; padding: 60px 20px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--line); color: var(--muted); }
.tt-follow svg { width: 40px; height: 40px; color: var(--text); }
.tt-follow b { color: var(--text); font-size: 18px; }
@media (max-width: 900px) {
  .tt-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 42%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .tt-clip { scroll-snap-align: start; }
}

/* ---------- shared club bits ---------- */
:root { --win: #22c55e; --draw: #a1a1aa; --loss: #ef4444; }
.updated { color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 8px; }
.updated::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--win); box-shadow: 0 0 10px var(--win); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.label { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.res { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; font-weight: 900; font-size: 14px; color: #0a0a0b; flex: none; }
.res.W { background: var(--win); } .res.D { background: var(--draw); } .res.L { background: var(--loss); color: #fff; }
.crest { width: 40px; height: 40px; object-fit: contain; flex: none; }

/* ---------- hero club strip ---------- */
.club-strip {
  margin-top: 30px; display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center;
  padding: 10px 18px 10px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(22,22,26,.8);
  font-weight: 600; font-size: 15px; transition: border-color .2s;
}
.club-strip:hover { border-color: var(--red); }
.club-strip img { width: 34px; height: 34px; object-fit: contain; }
.club-strip .sep { width: 4px; height: 4px; border-radius: 50%; background: #55555e; }
.club-strip .hot { color: var(--win); }
.club-strip[hidden] { display: none; }

/* ---------- club overview ---------- */
.club-grid { display: grid; grid-template-columns: 340px 1fr; gap: 20px; }
.club-id { padding: 30px; text-align: center; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; }
.club-id::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(70% 50% at 50% 30%, rgba(255,30,30,.2), transparent 70%);
}
.club-id > * { position: relative; }
.club-id .big-crest { width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 10px 30px rgba(255,30,30,.35)); animation: float 6s ease-in-out infinite; }
.club-id h3 { margin: 16px 0 4px; font-size: 28px; font-weight: 900; font-style: italic; text-transform: uppercase; line-height: 1.1; word-break: break-word; }
.club-id .sub { color: var(--muted); font-size: 15px; }
.sr { margin-top: 20px; display: grid; gap: 2px; }
.sr b { font-size: 44px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.pill { font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0,0,0,.3); }
.pill.hot { border-color: rgba(34,197,94,.5); color: var(--win); }

.club-main { display: grid; gap: 20px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile { padding: 18px 18px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); position: relative; overflow: hidden; }
.tile b { display: block; font-size: 36px; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; }
.tile.accent::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c, var(--red)); }
.wdl-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: #222; margin: 12px 0 8px; }
.wdl-bar i { display: block; height: 100%; transition: width 1.2s cubic-bezier(.2,.8,.2,1); width: 0; }
.wdl-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.wdl-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: var(--c); }
.row2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.season { padding: 22px; display: flex; gap: 18px; align-items: center; }
.season img { width: 92px; height: 92px; object-fit: contain; flex: none; }
.season h4 { margin: 2px 0 6px; font-size: 24px; font-weight: 900; font-style: italic; text-transform: uppercase; }
.season .line { color: var(--muted); font-size: 15px; }
.season .line b { color: var(--text); }
.form-panel { padding: 22px; }
.form { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.form { flex-wrap: nowrap; }
.form .res { cursor: default; flex: 1 1 0; width: auto; height: auto; max-width: 30px; aspect-ratio: 1; min-width: 0; font-size: 13px; }

/* ---------- results ---------- */
.results { display: grid; gap: 10px; }
.match { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color .2s; }
.match[open], .match:hover { border-color: #3a3a44; }
.match summary { list-style: none; cursor: pointer; padding: 14px 18px; display: grid; grid-template-columns: 30px 150px 1fr auto 1fr 24px; gap: 16px; align-items: center; }
.match summary::-webkit-details-marker { display: none; }
.m-date { font-size: 13px; color: var(--muted); line-height: 1.3; }
.m-date b { color: var(--text); font-weight: 600; display: block; font-size: 14px; }
.m-team { display: flex; align-items: center; gap: 12px; font-weight: 700; min-width: 0; }
.m-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-team.home { justify-content: flex-end; text-align: right; }
.m-score { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 1px; min-width: 76px; text-align: center; padding: 2px 10px; border-radius: 10px; background: rgba(0,0,0,.35); }
.chev { width: 18px; height: 18px; color: var(--muted); transition: transform .25s; }
.match[open] .chev { transform: rotate(90deg); }
.m-tags { grid-column: 2 / -1; display: flex; gap: 8px; flex-wrap: wrap; margin-top: -4px; font-size: 13px; color: var(--muted); align-items: center; }
.m-tags .ball { display: inline-flex; align-items: center; gap: 6px; }
.m-tags svg { width: 14px; height: 14px; }
.tagx { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.tagx.motm { border-color: rgba(250,204,21,.45); color: #facc15; }
.m-body { border-top: 1px solid var(--line); padding: 14px 18px 12px; display: grid; gap: 14px; background: rgba(0,0,0,.18); }
.lineup { display: grid; gap: 2px; }
.lineup-row { display: grid; grid-template-columns: minmax(0,1fr) 46px 30px 30px 30px 44px 38px 58px 50px 50px 34px 56px; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.lineup-row:last-child { border-bottom: 0; }
.lineup-row.head { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.lineup-row .num { text-align: center; font-variant-numeric: tabular-nums; }
.rating { display: inline-block; min-width: 44px; text-align: center; font-weight: 700; padding: 2px 6px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.pos { font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 5px; margin-right: 8px; background: #26262c; color: var(--muted); }
.dim { opacity: .45; }

/* ---------- squad ---------- */
.leaders { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.leader { padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
.leader .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,30,30,.12); color: var(--red); flex: none; }
.leader .ico svg { width: 22px; height: 22px; }
.leader .who { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader .val { font-size: 22px; font-weight: 700; line-height: 1.1; }
.leader > div:last-child { min-width: 0; }
.squad { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.squad .player { flex: 0 1 calc((100% - 36px) / 3); min-width: 0; }
.player {
  position: relative; overflow: hidden; border-radius: 20px; padding: 22px 20px 18px;
  background: linear-gradient(160deg, #1d1d23 0%, #131317 60%);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
  transition: transform .25s, border-color .25s;
}
.player:hover { transform: translateY(-5px); border-color: var(--role, var(--red)); }
.player::before {
  content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--role, var(--red)) 30%, transparent), transparent 70%);
}
.player .top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; }
.player .ovr b { display: block; font-size: 46px; font-weight: 700; line-height: .9; }
.player .ovr span { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--role, var(--red)); }
.player .role { font-size: 11px; font-weight: 700; letter-spacing: 2px; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--role, var(--red)) 18%, transparent); color: var(--role, var(--red)); }
.player h4 { margin: 18px 0 0; font-size: 21px; font-weight: 900; line-height: 1.15; word-break: break-word; position: relative; }
.player .pro { color: var(--muted); font-size: 14px; position: relative; }
.pstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; position: relative; }
.pstats div { background: rgba(0,0,0,.3); border-radius: 10px; padding: 8px 6px; text-align: center; }
.pstats b { display: block; font-size: 20px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pstats span { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.pfoot { display: flex; justify-content: space-between; margin-top: 12px; font-size: 13px; color: var(--muted); position: relative; }
.pfoot b { color: var(--text); }

/* ---------- join ---------- */
.join {
  position: relative; overflow: hidden; border-radius: 24px; padding: 50px 44px;
  background: linear-gradient(120deg, #2a0306 0%, #160406 45%, #0f0f12 100%);
  border: 1px solid #3a1416;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center;
}
.join::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, transparent 0 40px, rgba(255,30,30,.05) 40px 42px);
}
.join::after {
  content: ""; position: absolute; right: -80px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,30,30,.25), transparent 65%); pointer-events: none;
}
.join > * { position: relative; z-index: 1; }
.join h2 { margin: 6px 0 12px; font-size: clamp(34px, 5vw, 54px); line-height: 1; font-weight: 900; font-style: italic; text-transform: uppercase; }
.join h2 b { color: var(--red); }
.join p { color: #c9c9cf; margin: 0 0 22px; font-size: 18px; max-width: 520px; }
.want { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.want span { font-weight: 700; padding: 7px 14px; border-radius: 10px; background: rgba(255,30,30,.14); border: 1px solid rgba(255,30,30,.4); }
.join-side { display: grid; gap: 12px; }
.join-fact { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.06); }
.join-fact .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,30,30,.14); color: var(--red); flex: none; }
.join-fact .ico svg { width: 20px; height: 20px; }
.join-fact b { display: block; }
.join-fact span { color: var(--muted); font-size: 14px; }

[data-club][hidden] { display: none !important; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0 50px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer .disclaimer { max-width: 560px; font-size: 13px; opacity: .8; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .club-grid { grid-template-columns: 1fr; }
  .leaders { grid-template-columns: repeat(2, 1fr); }
  .squad .player { flex-basis: calc((100% - 18px) / 2); }
}
@media (max-width: 900px) {
  .videos { grid-template-columns: repeat(2, 1fr); }
  .tt-wrap { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .row2 { grid-template-columns: 1fr; }
  .join { grid-template-columns: 1fr; padding: 40px 28px; }
  .match summary { grid-template-columns: 30px 1fr auto 1fr 18px; }
  .match summary .m-date { display: none; }
  .m-tags { grid-column: 1 / -1; margin-top: 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .videos { grid-template-columns: 1fr; }
  section.block { padding: 60px 0; }
  .btn { padding: 13px 20px; font-size: 15px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile b { font-size: 30px; }
  .leaders { grid-template-columns: 1fr; }
  .match summary { grid-template-columns: 26px 1fr auto 1fr; gap: 8px; padding: 12px; }
  .match summary .chev { display: none; }
  .res { width: 26px; height: 26px; font-size: 13px; }
  .m-team { flex-direction: column; gap: 4px; font-size: 13px; text-align: center; }
  .m-team.home { flex-direction: column-reverse; text-align: center; justify-content: center; }
  .m-team span { white-space: normal; overflow-wrap: anywhere; }
  .crest { width: 32px; height: 32px; }
  .m-score { font-size: 20px; min-width: 0; padding: 2px 6px; }
  .m-body { padding: 12px; }
  .lineup-row { grid-template-columns: minmax(0,1fr) 30px 30px 50px; font-size: 14px; }
  .lineup-row .hide-sm { display: none; }
  .season { flex-direction: column; text-align: center; }
  .join { padding: 34px 20px; }
  .club-strip { border-radius: 18px; gap: 10px; }
  .club-strip .sep.s2 { display: none; }
  .leaders { grid-template-columns: 1fr 1fr; gap: 10px; }
  .leader { padding: 14px; }
  .leader .ico { display: none; }
  .leader .val { font-size: 19px; }
  .squad .player { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   v2: history page, player profiles, charts, shared bits
   ===================================================================== */
.player { display: block; }
.pmore { position: relative; display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--role, var(--red)); }
.pmore svg { width: 16px; height: 16px; transition: transform .2s; }
.player:hover .pmore svg { transform: translateX(4px); }
a.leader { transition: border-color .2s, transform .2s; }
a.leader:hover { border-color: #3a3a44; transform: translateY(-2px); }
.plink { border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.plink:hover { color: var(--red); border-bottom-color: var(--red); }
.nav-links a.active { color: var(--text); }
.sec-head .sec-links { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.hint { color: var(--muted); font-size: 14px; }

/* ---------- sub-page header ---------- */
.page-head { position: relative; padding: 46px 0 40px; overflow: hidden; isolation: isolate; }
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 90% at 15% 0%, color-mix(in srgb, var(--accent, var(--red)) 22%, transparent), transparent 70%),
    repeating-linear-gradient(115deg, transparent 0 46px, rgba(255,255,255,.018) 46px 47px);
}
.page-head h1 { text-align: left; font-size: clamp(40px, 7vw, 72px); margin: 10px 0 10px; word-break: break-word; }
.page-head .lead { color: var(--muted); font-size: 18px; margin: 0; max-width: 680px; }
.page-head .lead b { color: var(--text); }
.eyebrow.left::after { display: none; }
.back { display: flex; width: fit-content; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: 15px; margin-bottom: 18px; transition: color .2s; }
.back:hover { color: var(--text); }
.back svg { width: 18px; height: 18px; }
section.block.tight { padding: 50px 0; }
.loading { padding: 80px 0; text-align: center; color: var(--muted); }

/* ---------- charts ---------- */
.chart-card { padding: 22px 22px 16px; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 14px; }
.chart-head .big { font-size: 44px; font-weight: 700; line-height: 1; }
.chart-head .delta { font-weight: 700; font-size: 15px; margin-left: 10px; }
.chart-head .delta.up { color: var(--win); }
.chart-head .delta.down { color: var(--loss); }
.chart-head .note { color: var(--muted); font-size: 14px; }
.chart { position: relative; touch-action: pan-y; }
.chart svg { display: block; width: 100%; overflow: visible; outline: none; }
.chart svg:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 6px; }
.chart .grid { stroke: #26262c; stroke-width: 1; shape-rendering: crispEdges; }
.chart .tick { fill: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; font-family: inherit; }
.chart .endlabel { fill: var(--text); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; font-family: inherit; }
.chart .reflabel { fill: var(--muted); font-size: 12px; font-weight: 700; font-family: inherit; }
.chart .line { fill: none; stroke: var(--red); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: rgba(255,30,30,.10); }
.chart .dot { fill: var(--red); stroke: var(--card); stroke-width: 2; }
.chart .ref { stroke: #9a9aa3; stroke-width: 1; opacity: .7; shape-rendering: crispEdges; }
.chart .star { fill: #facc15; font-size: 12px; }
.chart .bar { fill: var(--red); transition: fill .15s; }
.chart .bar.hot { fill: #ff6b6b; }
.chart .hit { fill: transparent; cursor: default; }
.chart .xhair { stroke: #5b5b66; stroke-width: 1; shape-rendering: crispEdges; }
.tip {
  position: absolute; z-index: 5; pointer-events: none; left: 0; top: 0;
  background: #0f0f12; border: 1px solid #33333b; border-radius: 10px; padding: 8px 12px;
  font-size: 13px; line-height: 1.35; white-space: nowrap; box-shadow: 0 12px 30px rgba(0,0,0,.55);
  opacity: 0; transition: opacity .12s;
}
.tip.on { opacity: 1; }
.tip strong { display: block; font-size: 18px; font-weight: 700; color: var(--text); }
.tip span { display: block; color: var(--muted); }
.chart-empty { display: grid; place-items: center; text-align: center; min-height: 200px; color: var(--muted); padding: 20px;
  border: 1px dashed #3a3a42; border-radius: 14px; background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.015) 14px 28px); }
.chart-empty b { display: block; color: var(--text); font-size: 18px; margin-bottom: 4px; }
details.tv { margin-top: 10px; font-size: 14px; }
details.tv summary { cursor: pointer; color: var(--muted); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
details.tv summary:hover { color: var(--text); }
details.tv .tbl-wrap { margin-top: 10px; max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }

/* ---------- tables ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 12px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; background: var(--card); }
.tbl td { padding: 10px 12px; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .n { text-align: center; }
.tbl .club { display: flex; align-items: center; gap: 12px; font-weight: 700; min-width: 0; }
.tbl .club img { width: 30px; height: 30px; object-fit: contain; flex: none; }
.tbl .club span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl tr.link { cursor: pointer; transition: background .15s; }
.tbl tr.link:hover { background: rgba(255,255,255,.03); }
.tbl-panel { overflow: hidden; }
.tbl-scroll { overflow-x: auto; }
.mini-wdl { display: flex; gap: 2px; height: 8px; width: 100%; min-width: 70px; }
.mini-wdl i { display: block; height: 100%; border-radius: 999px; }
.more-btn { display: block; margin: 16px auto 0; font: inherit; font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 22px; cursor: pointer; transition: border-color .2s; }
.more-btn:hover { border-color: var(--red); }

/* ---------- records ---------- */
.records { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.record { padding: 18px 20px 16px; position: relative; overflow: hidden; display: block; transition: border-color .2s, transform .2s; }
.record.clickable { cursor: pointer; }
.record.clickable:hover { border-color: #3a3a44; transform: translateY(-2px); }
.record .ico { position: absolute; right: 16px; top: 16px; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,30,30,.12); color: var(--red); }
.record .ico svg { width: 20px; height: 20px; }
.record .val { display: block; font-size: 38px; font-weight: 700; line-height: 1.05; margin: 6px 0 8px; }
.record .who { font-weight: 700; margin-bottom: 2px; overflow-wrap: anywhere; }
.record .ctx { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 14px; min-width: 0; }
.record .ctx img { width: 24px; height: 24px; object-fit: contain; flex: none; }
.record .ctx span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record.empty-rec .val { color: #55555e; }

/* ---------- filters + day groups ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; align-items: center; }
.filters .sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.chip { font: inherit; font-size: 14px; font-weight: 700; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--muted); cursor: pointer; transition: all .15s; }
.chip:hover { color: var(--text); border-color: #3a3a44; }
.chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.chip .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; background: var(--c); }
.day { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin: 22px 4px 2px; display: flex; justify-content: space-between; gap: 10px; }
.day span:last-child { letter-spacing: 1px; }
.match.flash { animation: flash 2.2s ease-out; }
@keyframes flash { 0%, 30% { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,30,30,.25); } }

/* ---------- match body: us-vs-them bars ---------- */
.vs-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 26px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.vs { display: grid; grid-template-columns: 44px 1fr 44px; gap: 4px 10px; align-items: center; font-size: 15px; }
.vs .lbl { grid-column: 1 / -1; text-align: center; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.vs b { font-variant-numeric: tabular-nums; font-weight: 700; }
.vs b.them { text-align: right; color: var(--muted); font-weight: 700; }
.vs-bar { display: flex; gap: 2px; height: 8px; }
.vs-bar i { display: block; height: 100%; border-radius: 999px; min-width: 4px; }
.vs-bar i.us { background: var(--red); }
.vs-bar i.them { background: #52525b; }

/* ---------- player profile ---------- */
.p-hero { position: relative; padding: 40px 0 46px; overflow: hidden; isolation: isolate; }
.p-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(40% 80% at 12% 40%, color-mix(in srgb, var(--role, var(--red)) 26%, transparent), transparent 70%),
    repeating-linear-gradient(115deg, transparent 0 46px, rgba(255,255,255,.018) 46px 47px);
}
.p-top { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; }
.p-badge {
  width: 200px; padding: 26px 20px 22px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--role, var(--red)) 30%, #1d1d23) 0%, #131317 70%);
  border: 1px solid color-mix(in srgb, var(--role, var(--red)) 45%, transparent); border-radius: 22px;
  clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 36px, 100% 100%, 0 100%);
}
.p-badge .ovr { display: block; font-size: 84px; font-weight: 700; line-height: .9; }
.p-badge .ovr-k { display: block; font-size: 11px; letter-spacing: 2px; color: var(--muted); font-weight: 700; margin-top: 6px; text-transform: uppercase; }
.p-badge .posn { display: block; font-weight: 900; letter-spacing: 3px; color: var(--role, var(--red)); font-size: 20px; margin-top: 4px; }
.p-badge .role { display: inline-block; margin-top: 14px; font-size: 11px; font-weight: 700; letter-spacing: 2px; padding: 4px 12px; border-radius: 999px; background: rgba(0,0,0,.35); color: var(--text); }
.p-name h1 { text-align: left; margin: 8px 0 4px; font-size: clamp(36px, 6.5vw, 70px); word-break: break-word; }
.p-name .pro { color: var(--muted); font-size: 18px; }
.p-name .pills { justify-content: flex-start; }
.p-switch { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.p-switch a { font-size: 14px; font-weight: 700; padding: 6px 12px 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0,0,0,.3); color: var(--muted); display: inline-flex; align-items: center; gap: 8px; transition: all .15s; }
.p-switch a i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.p-switch a:hover { color: var(--text); border-color: #3a3a44; }
.p-switch a.on { color: var(--text); border-color: var(--role, var(--red)); }
.tile .sub { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.extra { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; color: var(--muted); font-size: 15px; }
.extra b { color: var(--text); }
.form-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 18px; align-items: start; }
.statlist { padding: 8px 20px; }
.statlist div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.statlist div:last-child { border-bottom: 0; }
.statlist span { color: var(--muted); }
.statlist b { font-variant-numeric: tabular-nums; }
.best { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.perf { padding: 18px 20px; display: block; position: relative; overflow: hidden; transition: border-color .2s, transform .2s; }
.perf:hover { border-color: #3a3a44; transform: translateY(-2px); }
.perf .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.perf .rating { font-size: 22px; padding: 4px 10px; border-radius: 10px; }
.perf .vs-line { display: flex; gap: 10px; align-items: center; margin-top: 14px; font-weight: 700; min-width: 0; }
.perf .vs-line img { width: 30px; height: 30px; object-fit: contain; flex: none; }
.perf .vs-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.perf .line { color: var(--muted); font-size: 14px; margin-top: 6px; }
.perf .line b { color: var(--text); }
.since-note { color: var(--muted); font-size: 14px; margin: -14px 0 22px; }

@media (max-width: 1000px) {
  .records { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .best { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .vs-list { grid-template-columns: 1fr; gap: 10px; }
  .p-top { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 560px) {
  .records { grid-template-columns: 1fr; }
  .record .val { font-size: 32px; }
  .best { grid-template-columns: 1fr; }
  .tbl { font-size: 14px; }
  .tbl th, .tbl td { padding: 9px 8px; }
  .tbl .hide-sm { display: none; }
  .tbl .club img { width: 24px; height: 24px; }
  .tbl .club { gap: 8px; }
  .chart-card { padding: 18px 14px 12px; }
  .chart-head .big { font-size: 36px; }
  .page-head { padding: 34px 0 30px; }
  .page-head .lead { font-size: 16px; }
  .p-badge { width: 100%; display: grid; grid-template-columns: auto 1fr; text-align: left; gap: 0 18px; align-items: center; padding: 18px 20px; }
  .p-badge .ovr { font-size: 64px; grid-row: span 4; }
  .p-badge .ovr-k, .p-badge .posn { margin-top: 0; }
  .p-badge .role { margin-top: 4px; justify-self: start; }
}

/* ---------- partnerships (history page) ---------- */
.duos { padding: 4px 22px; }
.duo { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.duo:last-child { border-bottom: 0; }
.duo .rk { grid-row: span 2; font-weight: 700; font-style: italic; font-size: 20px; color: var(--muted); text-align: center; }
.duo .names { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 700; }
.duo .names a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.duo .names svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.duo .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.duo .n b { font-size: 22px; font-weight: 700; }
.duo .n span { color: var(--muted); font-size: 13px; margin-left: 5px; }
.duo .track { height: 6px; border-radius: 4px; background: rgba(255,255,255,.05); }
.duo .track i { display: block; height: 100%; border-radius: 4px; background: var(--red); }
.duo .sub { text-align: right; color: var(--muted); font-size: 13px; white-space: nowrap; }
.duo-note { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 760px; }
.duo-note b { color: var(--text); }
@media (max-width: 560px) {
  .duos { padding: 2px 16px; }
  .duo { grid-template-columns: 22px minmax(0, 1fr) auto; gap: 6px 12px; }
  .duo .names { font-size: 15px; gap: 6px; }
}

/* ---------- stats page ---------- */
.stats-tbl th button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.stats-tbl th button:hover, .stats-tbl th.on button { color: var(--text); }
.stats-tbl th button:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 3px; }
.stats-tbl th i { font-style: normal; font-size: 8px; color: var(--red); min-width: 8px; }
.stats-tbl td.on { background: rgba(255,255,255,.025); }
.lead-val { display: inline-block; min-width: 34px; padding: 2px 8px; border-radius: 7px; font-weight: 700; color: #fff; background: rgba(255,30,30,.16); border: 1px solid rgba(255,30,30,.45); }
.stats-tbl .rating.lead-r { box-shadow: 0 0 0 1.5px currentColor; }
.stats-tbl .pl { position: sticky; left: 0; z-index: 1; background: var(--card); text-align: left; }
.stats-tbl th.pl { z-index: 2; }
.stats-tbl .pl-in { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; white-space: nowrap; }
.stats-tbl .pl-in i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.stats-tbl .rating { display: inline-block; padding: 2px 8px; border-radius: 8px; font-weight: 700; }
.tiles .tile .sub a { color: var(--text); }

/* ---------- next milestones (player page) ---------- */
.ms-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 30px 0 12px; }
.ms-head h3 { margin: 0; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--text); }
.ms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.ms { padding: 16px 18px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.ms-top { display: flex; flex-direction: column; gap: 4px; }
.ms-top b { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ms-top .of { color: var(--muted); font-size: 14px; font-weight: 600; }
.ms-bar { height: 6px; border-radius: 4px; background: rgba(255,255,255,.06); margin: 12px 0 9px; }
.ms-bar i { display: block; height: 100%; border-radius: 4px; background: var(--red); }
.ms-sub { color: var(--muted); font-size: 13px; }
.ms.close .ms-sub { color: var(--text); font-weight: 700; }

/* ---------- goals + assisters in match details ---------- */
.m-goals { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.m-side .label { display: block; margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.m-side li { display: grid; gap: 2px; }
.m-side .g { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.m-side .g b { font-weight: 700; font-size: 13px; color: var(--muted); }
.m-side .a { display: inline-flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--muted); padding-left: 1px; }
.m-side .a a { color: var(--text); }
.m-side svg { width: 15px; height: 15px; flex: none; color: var(--muted); }
.m-side .a svg { margin-top: 3px; }
.m-side .none { color: var(--muted); font-size: 14px; }
@media (max-width: 560px) { .m-goals { grid-template-columns: 1fr; } }

/* ---------- trophy cabinet (player page) ---------- */
.cabinet { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.trophy { padding: 18px 20px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); position: relative; overflow: hidden; }
.trophy::before { content: ""; position: absolute; inset: 0; background: radial-gradient(240px 120px at 0 0, color-mix(in srgb, var(--k) 12%, transparent), transparent 70%); pointer-events: none; }
.t-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; position: relative; }
.t-ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--k);
  background: color-mix(in srgb, var(--k) 14%, transparent); border: 1px solid color-mix(in srgb, var(--k) 38%, transparent); }
.t-ic svg { width: 21px; height: 21px; }
.t-top b { font-size: 30px; font-weight: 700; font-style: italic; }
.trophy .label { color: var(--text); position: relative; }
.trophy ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 3px; color: var(--muted); font-size: 14px; position: relative; }
.trophy li.more { font-size: 13px; }

/* ---------- hall of fame (history page) ---------- */
.hof { display: grid; grid-template-columns: 1.7fr 1fr; gap: 20px; align-items: start; }
.hof-h { margin: 0 0 12px; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.hof-x { display: block; color: var(--muted); font-size: 13px; }
.hof-tbl td { vertical-align: top; }
.hof-empty { display: flex; gap: 16px; align-items: center; padding: 20px 22px; }
.hof-empty > svg { width: 34px; height: 34px; color: #facc15; flex: none; }
.hof-empty b { display: block; margin-bottom: 4px; }
.hof-empty span { color: var(--muted); font-size: 14px; }
.hof-nights { padding: 4px 18px; }
.hof-night { display: grid; grid-template-columns: auto auto 1fr; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.hof-night:last-child { border-bottom: 0; }
.hof-night .d { font-weight: 700; white-space: nowrap; }
.hof-night .r { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hof-night .s { display: flex; align-items: center; gap: 8px; justify-content: flex-end; min-width: 0; text-align: right; }
.hof-night .s svg { width: 15px; height: 15px; color: #facc15; flex: none; }
.hof-night .s .hof-x { display: inline; margin-left: 6px; }
.hof-note { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
@media (max-width: 900px) { .hof { grid-template-columns: 1fr; } }

/* ---------- health dot (homepage footer) ---------- */
footer { position: relative; }
.health { position: absolute; right: 10px; bottom: 8px; }
.health button { width: 24px; height: 24px; display: grid; place-items: center; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 50%; }
.health button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.health i { width: 7px; height: 7px; border-radius: 50%; background: #55555f; transition: background .2s; }
.health[data-level="ok"] i { background: var(--win); box-shadow: 0 0 6px rgba(34,197,94,.6); }
.health[data-level="warn"] i { background: #eab308; box-shadow: 0 0 6px rgba(234,179,8,.6); }
.health[data-level="bad"] i { background: var(--loss); box-shadow: 0 0 6px rgba(239,68,68,.6); }
.health-pop { position: absolute; right: 0; bottom: 30px; width: 270px; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0,0,0,.5); font-size: 13px; z-index: 5; }
.health-pop b { display: block; margin-bottom: 6px; font-size: 14px; }
.health-pop .hl { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; color: var(--muted); }
.health-pop .hl span:last-child { color: var(--text); text-align: right; }
.health-pop .hl.warn span:last-child { color: #eab308; }
.health-pop .hl.bad span:last-child { color: var(--loss); }
.lineup-row .of { color: var(--muted); }

/* ---------- how they play (player page) ---------- */
.hp { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
.hp-rows { padding: 14px 22px 8px; }
.hp-legend { display: flex; gap: 18px; font-size: 13px; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.hp-legend span { display: inline-flex; align-items: center; gap: 7px; }
.hp-legend i.me { width: 14px; height: 8px; border-radius: 4px; background: var(--red); }
.hp-legend i.avg { width: 2px; height: 14px; border-radius: 1px; background: #e4e4e7; }
.hp-row { display: grid; grid-template-columns: 128px minmax(0, 1fr) 92px 118px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.hp-row:last-child { border-bottom: 0; }
.hp-l { color: var(--muted); font-size: 14px; }
.hp-track { position: relative; height: 8px; border-radius: 4px; background: rgba(255,255,255,.06); }
.hp-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--red); }
.hp-track b { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 1px; background: #e4e4e7; }
.hp-v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hp-v small { font-weight: 600; color: var(--muted); font-size: 12px; }
.hp-r { font-size: 13px; color: var(--muted); white-space: nowrap; }
.hp-r.up { color: var(--text); }
.hp-style { padding: 16px 22px; display: grid; gap: 18px; }
.sb-l { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.sb-l b { color: var(--text); font-variant-numeric: tabular-nums; }
.sb-bar { display: flex; gap: 2px; height: 10px; margin: 7px 0; border-radius: 4px; overflow: hidden; }
.sb-bar i { display: block; height: 100%; }
.sb-k { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.sb-k span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sb-k span > i { width: 9px; height: 9px; border-radius: 3px; }
.sb-k b { color: var(--text); font-variant-numeric: tabular-nums; }
.sb-k em { font-style: normal; font-size: 12px; }
@media (max-width: 900px) { .hp { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .hp-row { grid-template-columns: 100px minmax(0, 1fr) 70px; }
  .hp-r { grid-column: 2 / -1; margin-top: -4px; }
  .hp-v small { display: none; }
}

/* ---------- compare page ---------- */
.cmp-pick { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: end; }
.cmp-sel { display: grid; gap: 8px; }
.cmp-sel select { font: inherit; font-weight: 700; font-size: 17px; color: var(--text); background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--c);
  border-radius: 12px; padding: 12px 14px; cursor: pointer; width: 100%; }
.cmp-sel select:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.cmp-vs { font-weight: 900; font-style: italic; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; }
.cmp { padding: 8px 22px 12px; }
.cmp-top { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
.cmp-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cmp-who:last-child { flex-direction: row-reverse; text-align: right; }
.cmp-who > i { width: 6px; align-self: stretch; border-radius: 3px; background: var(--c); flex: none; }
.cmp-who span { display: grid; min-width: 0; }
.cmp-who b { font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-who small { color: var(--muted); font-size: 13px; }
.cmp-who em { margin-left: auto; font-style: normal; font-size: 13px; color: var(--muted); white-space: nowrap; }
.cmp-who:last-child em { margin-left: 0; margin-right: auto; }
.cmp-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 150px minmax(0, 1fr) 76px; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.cmp-row:last-child { border-bottom: 0; }
.cmp-l { text-align: center; color: var(--muted); font-size: 14px; }
.cmp-v { font-weight: 700; font-variant-numeric: tabular-nums; }
.cmp-v.a { text-align: right; } .cmp-v.b { text-align: left; }
.cmp-bar { display: flex; height: 8px; border-radius: 4px; background: rgba(255,255,255,.05); }
.cmp-bar.a { justify-content: flex-end; }
.cmp-bar i { display: block; height: 100%; border-radius: 4px; }
@media (max-width: 560px) {
  .cmp-pick { grid-template-columns: 1fr; gap: 10px; } .cmp-vs { padding: 0; text-align: center; }
  .cmp { padding: 6px 14px 10px; }
  .cmp-top { grid-template-columns: 1fr; gap: 10px; }
  .cmp-who:last-child { flex-direction: row; text-align: left; } .cmp-who:last-child em { margin-left: auto; margin-right: 0; }
  .cmp-row { grid-template-columns: 52px minmax(0, 1fr) 96px minmax(0, 1fr) 52px; gap: 8px; }
  .cmp-l { font-size: 12px; }
}

/* ---------- opponent profile ---------- */
.opp-top { display: flex; gap: 26px; align-items: center; margin-top: 10px; }
.opp-crest { width: 120px; height: 120px; object-fit: contain; flex: none; filter: drop-shadow(0 12px 24px rgba(0,0,0,.5)); }
.opp-head h1 { margin-top: 6px; }
.opp-head .pills { margin-top: 10px; }
.opp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.opp-th { padding: 16px 16px 6px; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.opp-p { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; white-space: nowrap; }
.opp-p i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.m-club { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--muted); }
.m-club:hover { color: var(--text); }
.m-club svg { width: 16px; height: 16px; }
@media (max-width: 900px) { .opp-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .opp-top { flex-direction: column; align-items: flex-start; gap: 14px; } .opp-crest { width: 84px; height: 84px; } }

/* ---------- personal bests + badges (player page) ---------- */
.pb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pb { padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.pb:hover { border-color: #3a3a44; transform: translateY(-2px); }
.pb b { display: block; font-size: 30px; font-weight: 700; line-height: 1.1; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.pb .sub { color: var(--muted); font-size: 13px; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.badge { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px dashed var(--line); opacity: .62; }
.badge.on { opacity: 1; border-style: solid; border-color: rgba(250,204,21,.35); background: linear-gradient(135deg, rgba(250,204,21,.08), var(--card) 55%); transition: transform .2s; }
.badge.on:hover { transform: translateY(-2px); }
.badge > i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--muted); background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.badge.on > i { color: #facc15; background: rgba(250,204,21,.12); border-color: rgba(250,204,21,.4); }
.badge > i svg { width: 20px; height: 20px; }
.badge span { display: grid; gap: 2px; min-width: 0; }
.badge b { font-size: 16px; }
.badge small { color: var(--muted); font-size: 13px; }
.badge em { font-style: normal; font-size: 12px; color: #facc15; margin-top: 2px; }
.badge em.lock { color: var(--muted); }

/* ---------- race chart (stats page) ---------- */
.race-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.race-tabs .chip { font-size: 13px; padding: 5px 12px; }
.chart text.race-end { font-size: 13px; font-weight: 700; fill: var(--text); }
.chart text.race-end .v { fill: var(--muted); font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
