:root {
  --bg: #0b0e14; --panel: #12161f; --panel2: #171c27; --line: #232a38; --text: #f4f1ea; --muted: #8f99ab;
  --c1: #f4f1ea; --c2: #0b0e14; --acc: #f4f1ea; --accrgb: 244,241,234; --live: #ff3b5c; --gold: #f2c14e; --green: #3ddc84;
  --cond: 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif; --sans: 'Barlow', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--cond); text-transform: uppercase; letter-spacing: .02em; margin: 0; line-height: 1; }
h1 { font-size: 44px; font-weight: 900; }
h2 { font-size: 28px; font-weight: 800; }
h3 { font-size: 16px; font-weight: 700; color: var(--muted); letter-spacing: .12em; margin: 26px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
h4 { font-size: 15px; font-weight: 700; letter-spacing: .08em; display: flex; align-items: center; gap: 6px; }
.muted { color: var(--muted); } .small { font-size: 12px; }
.crest { display: inline-block; vertical-align: middle; flex: none; object-fit: contain; }
.btn { display: inline-block; background: var(--text); color: var(--bg); font-family: var(--cond); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 10px 18px; font-size: 16px; border-radius: 3px; }
.btn.small { padding: 6px 12px; font-size: 13px; }
.tag { display: inline-block; background: var(--acc); color: #0b0e14; font-family: var(--cond); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding: 4px 10px; font-size: 12px; border-radius: 2px; }
.more { display: inline-block; margin-top: 10px; font-family: var(--cond); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--muted); font-size: 13px; }
.more:hover { color: var(--text); }

/* header */
.top { background: var(--bg); }
.masthead { position: relative; overflow: hidden; display: flex; align-items: center; gap: 28px; padding: 11px 24px; background: linear-gradient(100deg, #0d1118 0%, #151b26 55%, #0d1118 100%); border-bottom: 1px solid var(--line); }
.masthead::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(112deg, transparent 0 26px, rgba(255,255,255,.055) 26px 34px);
  -webkit-mask-image: linear-gradient(90deg, transparent 38%, #000); mask-image: linear-gradient(90deg, transparent 38%, #000); }
.masthead > * { position: relative; }
.wordmark { display: flex; align-items: stretch; gap: 14px; }
/* Crown matches the full height of the two text lines beside it. */
.crown { align-self: stretch; height: auto; width: auto; aspect-ratio: 48 / 34; fill: currentColor; flex: none; filter: drop-shadow(0 1px 0 rgba(0,0,0,.6)); }
img.crown { object-fit: contain; object-position: center; }
.wm-img { display: block; height: 30px; width: auto; }
.wm-lockup { display: block; height: clamp(46px, 8.2vw, 112px); width: auto; max-width: 100%; }
.wordmark.has-lockup { align-items: center; }
.wm-txt { display: flex; flex-direction: column; gap: 5px; }
.wm-a { font-family: 'Archivo', var(--cond); font-weight: 800; font-stretch: 125%; font-size: 28px; line-height: .86; letter-spacing: .015em; text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 30%, #9aa6b8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wm-b { font-family: var(--cond); font-size: 11px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: #8b97a9; }
.mh-credit { margin-left: auto; font-family: var(--cond); font-size: 11px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: #7f8b9d; text-align: right; line-height: 1.7; }
.mh-credit b { color: #4da3ff; font-weight: 700; }
.mh-credit i { display: inline-block; width: 26px; height: 1px; background: #4da3ff; vertical-align: 3px; margin-left: 6px; }
.mh-words { display: grid; gap: 2px; padding-left: 22px; border-left: 1px solid rgba(242,193,78,.5); }
.mh-words i { font-family: var(--cond); font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: #8b97a9; }
.navbar { display: flex; align-items: center; gap: 16px; padding: 6px 24px; background: rgba(11,14,20,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
nav { display: flex; gap: 4px; }
nav a { font-family: var(--cond); text-transform: uppercase; font-weight: 700; letter-spacing: .1em; font-size: 15px; padding: 8px 12px; color: var(--muted); border-radius: 3px; }
nav a:hover { color: var(--text); background: var(--panel2); }
.nav-season { font-family: var(--cond); font-size: 11px; letter-spacing: .24em; color: var(--muted); margin-left: auto; }
.navbar > .me { margin-left: 0; }
.me-club { display: flex; align-items: center; gap: 8px; font-family: var(--cond); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 16px; padding: 4px 10px 4px 4px; border: 1px solid var(--line); border-left: 4px solid var(--acc); border-radius: 3px; }
@media (max-width: 1150px) { .mh-words { display: none; } }
@media (max-width: 980px) { .mh-credit { display: none; } }
@media (max-width: 900px) {
  .mh-credit, .mh-words, .nav-season { display: none; }
  .wm-a { font-size: 22px; } .wm-b { letter-spacing: .2em; font-size: 10px; }
  .wm-img { height: 22px; } .wm-lockup { height: clamp(32px, 12vw, 58px); }
  .masthead { padding: 10px 14px; gap: 12px; }
  .navbar { padding: 4px 14px; gap: 8px; }
  .navbar nav { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .navbar nav::-webkit-scrollbar { display: none; }
  .navbar > .me { flex: none; margin-left: auto; }
  .me-club span { display: none; }
}
.ticker { display: flex; align-items: center; gap: 18px; padding: 6px 24px; background: #15111a; border-bottom: 1px solid #2a1a24; font-family: var(--cond); font-size: 15px; overflow-x: auto; white-space: nowrap; }
.ticker-label { color: var(--live); font-weight: 800; letter-spacing: .2em; }
.tick-item { display: inline-flex; gap: 6px; align-items: baseline; } .tick-item em { color: var(--muted); font-style: normal; font-size: 12px; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(255,59,92,.6); animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,59,92,.6);} 70% { box-shadow: 0 0 0 8px rgba(255,59,92,0);} 100% { box-shadow: 0 0 0 0 rgba(255,59,92,0);} }

main { max-width: 1180px; margin: 0 auto; padding: 20px 24px 60px; }
footer { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 20px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.cols { display: grid; grid-template-columns: 1.55fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } h1 { font-size: 34px; } }

/* choose */
.choose-hero { text-align: center; padding: 26px 0 10px; }
.choose-hero h1 { font-size: 64px; margin-top: 6px; } .choose-hero p { color: var(--muted); font-size: 16px; }
.tagline { display: inline-block; font-family: var(--cond); text-transform: uppercase; letter-spacing: .28em; font-size: 12px; font-weight: 700; color: var(--muted); }
.club-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: 20px; }
.club-card { position: relative; overflow: hidden; isolation: isolate; border: 1px solid var(--line); border-top: 4px solid var(--acc); border-radius: 6px; padding: 26px 18px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; transition: transform .18s, border-color .18s;
  background: radial-gradient(120% 80% at 50% -10%, rgba(var(--accrgb), .26), transparent 70%), linear-gradient(180deg, #131822, #0e121a); }
.cc-stripes { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(118deg, transparent 0 22px, rgba(var(--accrgb), .5) 22px 30px);
  opacity: .16; -webkit-mask-image: linear-gradient(195deg, #000, transparent 70%); mask-image: linear-gradient(195deg, #000, transparent 70%); }
.club-card.has-art { background-image: linear-gradient(180deg, rgba(8,11,16,.46) 0%, rgba(8,11,16,.84) 46%, rgba(8,11,16,.95) 100%), var(--card);
  background-size: cover, cover; background-position: center top; }
.club-card.has-art .cc-stripes { display: none; }
.club-card:hover { transform: translateY(-3px); border-color: var(--acc); }
.club-card.current { outline: 2px solid var(--acc); }
.cc-no { position: absolute; top: 8px; left: 12px; font-family: var(--cond); font-size: 13px; font-weight: 700; letter-spacing: .1em; color: rgba(var(--accrgb), .95); }
.club-card h2 { font-size: 25px; margin-top: 10px; }
.cc-code { font-family: var(--cond); font-weight: 800; font-size: 14px; letter-spacing: .3em; color: rgb(var(--accrgb)); }
.cc-city { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; font-family: var(--cond); padding-top: 7px; border-top: 1px solid var(--line); width: 100%; }
.cc-city i { font-style: normal; opacity: .45; margin: 0 4px; }
.cc-motto { font-family: var(--cond); text-transform: uppercase; letter-spacing: .2em; font-size: 12px; font-weight: 700; color: rgb(var(--accrgb)); }
.club-card p { color: var(--muted); font-size: 12.5px; margin: 8px 0 0; }
.club-hero .cc-motto { display: block; margin: 4px 0 2px; }

/* hero */
.hero { background: radial-gradient(1200px 300px at 50% -60%, rgba(255,255,255,.08), transparent), var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 22px 24px 26px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--acc); }
.hero-label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--cond); font-weight: 800; letter-spacing: .22em; font-size: 13px; color: var(--muted); }
.hero.is-live .hero-label { color: var(--live); }
.hero-fx, .sb-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; margin-top: 14px; }
.ht { display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--cond); font-weight: 800; text-transform: uppercase; font-size: 24px; letter-spacing: .04em; }
.ht.me b { text-decoration: underline; text-decoration-color: var(--acc); text-underline-offset: 6px; text-decoration-thickness: 3px; }
.hm { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 200px; }
.countdown { font-family: var(--cond); font-weight: 900; font-size: 64px; letter-spacing: .04em; font-variant-numeric: tabular-nums; line-height: 1; }
.ko { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-family: var(--cond); }
.score { font-family: var(--cond); font-weight: 900; font-size: 72px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.clock { font-family: var(--cond); font-weight: 700; font-size: 18px; color: var(--live); letter-spacing: .1em; }
.hero .btn { margin-top: 16px; }
.hero.champ h1 { font-size: 56px; margin-top: 10px; } .hero.champ p { color: var(--muted); }
@media (max-width: 640px) { .hero-fx, .sb-main { grid-template-columns: 1fr; } .ht { flex-direction: row; font-size: 18px; } .countdown { font-size: 44px; } .score { font-size: 56px; } .hm { min-width: 0; } }

/* fixtures */
.fx-list { display: flex; flex-direction: column; gap: 6px; } .fx-list.two { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(400px, 100%), 1fr)); }
.fx { display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; font-family: var(--cond); font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.fx:hover { background: var(--panel2); }
.fx.mine { border-left: 4px solid var(--acc); }
.fx.live { border-color: #3a1e28; }
.fx-team { display: flex; align-items: center; gap: 8px; min-width: 0; } .fx-team.home { justify-content: flex-end; text-align: right; } .fx-team.away { justify-content: flex-start; text-align: left; }
.fx-team.me .tn { color: var(--text); } .fx .tn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx .score { font-size: 20px; padding: 0 6px; min-width: 52px; text-align: center; } .fx .vs { color: var(--muted); font-size: 14px; min-width: 52px; text-align: center; }
.fx .st { font-size: 11px; letter-spacing: .1em; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; min-width: 60px; justify-content: flex-end; }
.fx .st.live { color: var(--live); } .fx .st.ft { color: var(--muted); }
.fx.big { padding: 14px 16px; font-size: 20px; } .fx.big .score { font-size: 34px; }
.bump { animation: bump .9s ease; } @keyframes bump { 0% { transform: scale(1);} 30% { transform: scale(1.25); color: var(--gold);} 100% { transform: scale(1);} }
.report-lead { color: var(--muted); margin: 10px 0 0; } .report-lead b { color: var(--text); font-family: var(--cond); font-size: 18px; text-transform: uppercase; }
.live-strip { margin-top: 20px; }

/* table */
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 14px; }
.table th { font-family: var(--cond); font-weight: 700; letter-spacing: .1em; color: var(--muted); font-size: 12px; text-align: center; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.table td { padding: 7px 4px; text-align: center; border-bottom: 1px solid var(--line); }
.table .club, .table th.club { text-align: left; }
.table .club a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cn-s { display: none; } .table .club a { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.table .pos { color: var(--muted); width: 28px; } .table .pts { font-weight: 700; font-family: var(--cond); font-size: 17px; }
.table tr.me td { background: rgba(255,255,255,.04); } .table tr.me .club a { color: var(--text); }
.table tr.me td:first-child { box-shadow: inset 4px 0 0 var(--acc); }
.table tr.first .pos { color: var(--gold); font-weight: 700; }
.table .form { text-align: left; }
.f { display: inline-block; width: 18px; height: 18px; line-height: 18px; text-align: center; font-size: 10px; font-weight: 700; border-radius: 2px; margin-right: 2px; font-style: normal; font-family: var(--cond); }
.f.W { background: var(--green); color: #05230f; } .f.D { background: #4b5566; color: #fff; } .f.L { background: var(--live); color: #fff; }
.ranked { list-style: none; padding: 0; margin: 0; counter-reset: r; }
.ranked li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); counter-increment: r; }
.ranked li::before { content: counter(r); color: var(--muted); width: 20px; font-family: var(--cond); font-weight: 700; }
.ranked li a { display: flex; align-items: center; gap: 8px; flex: 1; } .ranked em { font-style: normal; font-family: var(--cond); font-size: 20px; font-weight: 800; }

/* news */
.news-list { display: flex; flex-direction: column; }
.news { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.news:hover .nh span { text-decoration: underline; }
.news .when { color: var(--muted); font-size: 12px; font-family: var(--cond); text-transform: uppercase; letter-spacing: .06em; }
.news .nh { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15.5px; }
.news.mine .nh { font-weight: 600; } .news.mine .when::before { content: '●'; color: var(--acc); margin-right: 5px; font-size: 9px; vertical-align: 2px; }
.news.k-report .nh { font-family: var(--cond); text-transform: uppercase; font-size: 17px; font-weight: 700; }
.news-full { padding: 18px 0; border-bottom: 1px solid var(--line); max-width: 760px; }
.news-full .when { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 12px; font-family: var(--cond); text-transform: uppercase; letter-spacing: .06em; }
.nf-club { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.nf-club:hover { color: var(--text); }
.nf-sep { font-style: normal; opacity: .45; }
.news-full h2 { font-size: 26px; margin: 6px 0 8px; } .news-full p { margin: 0; color: #cfd5df; }

/* club + player */
.club-hero.has-art { background-image: linear-gradient(100deg, rgba(8,11,16,.92) 0%, rgba(8,11,16,.72) 55%, rgba(8,11,16,.90) 100%), var(--card);
  background-size: cover, cover; background-position: center 35%; }
.club-hero { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-left: 8px solid var(--acc); border-radius: 8px; padding: 24px; }
.club-hero .sub, .player-hero .sub { color: var(--muted); font-size: 13px; margin: 6px 0; } .club-hero .identity { margin: 10px 0 12px; max-width: 700px; font-size: 16px; }
.pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.pc { display: grid; grid-template-columns: 92px 1fr; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 5px; overflow: hidden; align-items: stretch; }
.pc:hover { background: var(--panel2); border-color: var(--acc); }
.pc-img { position: relative; background: #161a22; display: flex; align-items: stretch; }
.pc-img img { width: 92px; height: 153px; display: block; object-fit: cover; object-position: center top; }
.pc-no { position: absolute; top: 0; left: 0; z-index: 2; width: 26%; height: 16%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.62)), rgb(var(--accrgb));
  color: #f4f1ea; font-family: var(--cond); font-weight: 900; font-size: 12px; line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% 58%, 74% 100%, 0 100%); }
.pc-body { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 8px 0; min-width: 0; }
.pc-name { font-family: var(--cond); font-weight: 800; font-size: 20px; text-transform: uppercase; letter-spacing: .02em; line-height: 1; }
.pc-meta { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-family: var(--cond); }
.pc-blurb { font-size: 12.5px; color: #cfd5df; } .pc-stats { font-size: 12px; color: var(--muted); margin-top: auto; }
.pc-form i { display: inline-block; font-style: normal; font-size: 11px; font-family: var(--cond); padding: 1px 4px; border-radius: 2px; background: #232a38; margin-right: 3px; } .pc-form i.g { background: var(--green); color: #05230f; } .pc-form i.b { background: var(--live); }
.inj { color: var(--live); }
.player-hero { display: grid; grid-template-columns: 252px 1fr 260px; gap: 26px; background: var(--panel); border: 1px solid var(--line); border-left: 8px solid var(--acc); border-radius: 8px; padding: 24px; align-items: start; }
/* Player page shows the full trading-card crop: photo, name plate, squad number. */
.pcard { position: relative; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #0f131b; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.pcard .portrait { display: block; width: 100%; aspect-ratio: 230 / 383; object-fit: cover; object-position: center top; border-radius: 0; }
.pcard-no { position: absolute; top: 0; left: 0; z-index: 2; width: 26%; height: 16%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.62)), rgb(var(--accrgb));
  color: #f4f1ea; font-family: var(--cond); font-weight: 900; font-size: 26px; line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% 58%, 74% 100%, 0 100%); }
/* Name plate sits inset over the foot of the photo, like the source cards. */
.pcard-plate { display: block; text-align: center; position: relative; z-index: 1;
  margin: -20px 5px 8px; padding: 7px 6px 8px;
  background: linear-gradient(180deg, rgba(22,27,37,.97), rgba(10,13,19,.99));
  border: 1px solid rgba(255,255,255,.15); border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0,0,0,.55); }
.pcard .pcard-plate h1 { font-weight: 900; line-height: 1.04; letter-spacing: .01em; margin: 0; white-space: nowrap; color: #f7f5f1; }
.pcard .pcard-plate i { display: block; font-style: normal; font-family: var(--cond); font-size: 17px; font-weight: 900;
  letter-spacing: .13em; color: rgb(var(--accrgb)); margin-top: 2px; }
.ph-club { color: var(--muted); font-family: var(--cond); text-transform: uppercase; letter-spacing: .1em; font-size: 13px; } .ph-club a { display: inline-flex; align-items: center; gap: 6px; }
.player-hero h1 { font-size: 54px; margin: 6px 0 2px; }
.ph-arch { font-family: var(--cond); font-weight: 800; letter-spacing: .2em; color: var(--acc); font-size: 15px; margin: 0; }
.ph-blurb { font-size: 17px; margin: 10px 0; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; margin-top: 12px; max-width: 520px; }
.stat { display: grid; grid-template-columns: 34px 1fr 30px; align-items: center; gap: 8px; font-family: var(--cond); font-weight: 700; font-size: 13px; }
.sl { color: var(--muted); letter-spacing: .1em; } .sv { text-align: right; font-size: 15px; }
.sb { height: 7px; background: #232a38; border-radius: 4px; overflow: hidden; } .sb i { display: block; height: 100%; background: var(--text); } .sb i.hi { background: var(--gold); } .sb i.lo { background: var(--live); }
.ph-season { background: var(--panel2); border-radius: 6px; padding: 14px; } .ph-season h4 { color: var(--muted); letter-spacing: .16em; margin-bottom: 8px; }
.big-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.big-stats div { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; background: var(--panel); border-radius: 4px; }
.big-stats b { font-family: var(--cond); font-size: 28px; font-weight: 900; line-height: 1; } .big-stats span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.fr { font-style: normal; font-family: var(--cond); font-weight: 700; } .fr.g { color: var(--green); } .fr.b { color: var(--live); }
@media (max-width: 900px) { .player-hero { grid-template-columns: 1fr; } .pcard { max-width: 260px; } .club-hero { grid-template-columns: 1fr; } }

/* match */
.scoreboard { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px 24px 22px; text-align: center; }
.scoreboard.live { border-color: #3a1e28; box-shadow: 0 0 0 1px rgba(255,59,92,.15), 0 12px 40px rgba(255,59,92,.08); }
.sb-label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--cond); font-weight: 800; letter-spacing: .2em; font-size: 13px; color: var(--muted); }
.scoreboard.live .sb-label { color: var(--live); }
.scorers { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 10px; color: var(--muted); font-size: 13px; } .scorers span:first-child { text-align: right; } .scorers span:last-child { text-align: left; }
.report { max-width: 760px; margin: 22px 0 6px; } .report h2 { font-size: 34px; margin-bottom: 10px; } .report p { color: #cfd5df; font-size: 16px; }
.motm-line { font-family: var(--cond); text-transform: uppercase; letter-spacing: .08em; color: var(--gold) !important; }
.preview { margin: 14px 0; }
.feed { list-style: none; padding: 0; margin: 0; }
.ev { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: start; }
.ev-min { font-family: var(--cond); font-weight: 800; font-size: 16px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; padding-top: 1px; }
.ev-body { display: flex; align-items: flex-start; gap: 8px; } .ev-body .crest { margin-top: 1px; }
.ev-text { flex: 1; } .ev-score { font-family: var(--cond); font-weight: 900; font-size: 20px; color: var(--gold); }
.ev.goal { background: linear-gradient(90deg, rgba(242,193,78,.14), transparent); padding-left: 8px; margin-left: -8px; border-radius: 4px; } .ev.goal .ev-text { font-weight: 600; font-size: 16px; } .ev.goal .ev-min { color: var(--gold); }
.ev.red .ev-text { color: var(--live); font-weight: 600; } .ev.yellow .ev-min { color: var(--gold); }
.ev.halftime, .ev.fulltime, .ev.kickoff, .ev.secondhalf { background: var(--panel2); padding-left: 8px; margin-left: -8px; border-radius: 4px; } .ev.halftime .ev-text, .ev.fulltime .ev-text { font-family: var(--cond); text-transform: uppercase; font-weight: 800; letter-spacing: .06em; }
.ev.filler .ev-text { color: var(--muted); }
.ev.fresh { animation: slidein .5s ease; } @keyframes slidein { from { opacity: 0; transform: translateY(-8px);} to { opacity: 1; transform: none;} }
.ev-link { color: var(--muted); font-size: 12px; font-family: var(--cond); text-transform: uppercase; letter-spacing: .08em; margin-left: 8px; }
.lineups { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lineup ol { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13px; } .lineup li { padding: 4px 0; border-bottom: 1px solid var(--line); } .lineup li b { display: inline-block; width: 22px; color: var(--muted); font-family: var(--cond); }
.lineup .rt { font-style: normal; color: var(--gold); font-family: var(--cond); font-weight: 700; margin-left: 4px; } .motm { color: var(--gold); }
.lineup h4 { padding-bottom: 6px; border-bottom: 2px solid var(--acc); }
body.goal-flash { animation: flash 1.8s ease; } @keyframes flash { 0% { background: var(--bg);} 15% { background: #2b2410;} 100% { background: var(--bg);} }
#toast { position: fixed; right: 20px; bottom: 20px; z-index: 50; background: var(--panel2); border: 1px solid var(--gold); border-radius: 8px; box-shadow: 0 16px 50px rgba(0,0,0,.6); animation: slidein .4s ease; }
#toast a { display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; } #toast img { width: 64px; height: 75px; border-radius: 4px; object-fit: cover; object-position: center 22%; }
#toast b { display: block; font-family: var(--cond); font-size: 20px; text-transform: uppercase; letter-spacing: .04em; } #toast em { display: block; font-style: normal; color: var(--muted); font-size: 12px; }
.round.current h3 { color: var(--text); }
.round { margin-bottom: 8px; }

/* social queue */
.social-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; margin-top: 14px; }
.social { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.social.is-done { opacity: .45; }
.social-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); } .social-meta .done { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.social textarea { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 4px; padding: 8px; font: 14px/1.4 var(--sans); resize: vertical; }
.social-actions { display: flex; align-items: center; gap: 10px; } .btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); cursor: pointer; }

/* inline name links in prose */
.ln { border-bottom: 1px solid rgba(244,241,234,.22); }
.ln:hover { border-bottom-color: var(--gold); color: #fff; }
.scorers a { border-bottom: 1px solid rgba(244,241,234,.22); } .scorers a:hover { border-bottom-color: var(--gold); }
.hero-fx .ht:hover b, .hero-fx .hm:hover { opacity: .85; }

/* Narrow viewports: drop the least useful columns rather than letting the table wrap.
   Width-based only, so the desktop layout is untouched. */
@media (max-width: 760px) {
  .table .form, .table .gfa { display: none; }
  .table .cn { display: none; } .table .cn-s { display: inline; }
  .table th, .table td { padding: 8px 3px; font-size: 13.5px; }
  .table .pts { font-size: 16px; }
  main { padding: 16px 14px 48px; }
}
@media (max-width: 520px) {
  .table .wdl { display: none; }
  .table .club a { gap: 6px; }
  .ranked li { gap: 8px; } .ranked em { font-size: 17px; }
}

/* pre-match form guide */
.preview-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; }
.pv-club { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--acc); border-radius: 6px; padding: 14px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.pv-head { display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: var(--cond); font-size: 19px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.pv-pos { font-family: var(--cond); font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgb(var(--accrgb)); }
.pv-pos i { font-style: normal; color: var(--muted); font-size: 11px; letter-spacing: .14em; }
.pv-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; }
.pv-nums span { display: flex; flex-direction: column; gap: 1px; background: var(--panel2); border-radius: 4px; padding: 7px 4px; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-family: var(--cond); }
.pv-nums b { font-size: 21px; font-family: var(--cond); font-weight: 900; color: var(--text); line-height: 1; }
.pv-form { display: flex; gap: 3px; }
.pv-scorer { font-size: 12px; color: var(--muted); } .pv-scorer a { color: var(--text); border-bottom: 1px solid rgba(244,241,234,.22); }
.pv-v { align-self: center; font-family: var(--cond); font-size: 22px; font-weight: 900; color: var(--muted); }
@media (max-width: 560px) { .preview-grid { grid-template-columns: 1fr; } .pv-v { display: none; } }

/* stats */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0 4px; }
.stat-tile { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--acc); border-radius: 6px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.stat-tile b { font-family: var(--cond); font-size: 34px; font-weight: 900; line-height: 1; }
.stat-tile span { font-family: var(--cond); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stat-tile em { font-style: normal; font-size: 12px; color: var(--muted); }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 120px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 10px; }
.spark span { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; }
.spark i { display: block; width: 100%; background: rgb(var(--accrgb)); border-radius: 2px 2px 0 0; min-height: 2px; }
.spark em { font-style: normal; font-family: var(--cond); font-size: 10px; color: var(--muted); }

/* replay controls */
.sb-scorers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; margin-top: 10px; }
.sb-scorers .sc { list-style: none; margin: 0; padding: 0; font-family: var(--cond); font-size: 12px; line-height: 1.5; letter-spacing: .04em; color: var(--muted); }
.sb-scorers .sc.home { text-align: right; }
.sb-scorers .sc.away { text-align: left; }
.sb-scorers .sc-who { color: var(--text); text-transform: uppercase; }
.sb-scorers .sc-min { color: var(--muted); }
.sb-scorers .sc:empty { min-height: 0; }
.sb-scorers .sc-card { display: inline-block; width: 7px; height: 10px; background: #e5342b; border-radius: 1px; vertical-align: -1px; margin-right: 5px; }
.sb-scorers .sc-red .sc-who { color: var(--muted); }
@media (max-width: 560px) { .sb-scorers { gap: 6px 12px; } .sb-scorers .sc { font-size: 11px; } }
.rx-stage { position: relative; }
.rx-goal { position: absolute; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--panel); border-radius: 6px; pointer-events: none; overflow: visible; }
.rx-goal[hidden] { display: none; }
.rx-goal b { font-family: var(--cond); font-size: clamp(30px, 6.5vw, 58px); line-height: 1; letter-spacing: .04em; color: var(--live); text-shadow: 0 0 18px rgba(255,59,92,.45); }
.rx-goal.in { animation: goalin .22s ease-out both, goalflash .34s steps(1) 7 both; }
.rx-goal.in b { color: inherit; text-shadow: none; }
@keyframes goalin { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes goalflash {
  0%, 49.9% { background: var(--g1, var(--panel)); color: var(--g2, var(--live)); }
  50%, 100% { background: var(--g2, var(--panel)); color: var(--g1, var(--live)); }
}
@media (prefers-reduced-motion: reduce) {
  .rx-goal.in { animation: none; background: var(--g1, var(--panel)); }
  .rx-goal.in b { color: var(--g2, var(--live)); }
}
#rx-others .fx { cursor: pointer; }
.rx-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; }
.rx-speed { font-family: var(--cond); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.rx-speed select { background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; font: inherit; letter-spacing: 0; }
.rx-status { width: 100%; text-align: center; font-family: var(--cond); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
#rx-others .fx { cursor: pointer; }
.rx-link { margin: 14px 0 0; }

/* interest capture */
.foot-ask { color: var(--text); font-family: var(--cond); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.foot-ask:hover { color: var(--gold); }
.ask { position: fixed; left: 20px; bottom: 20px; z-index: 49; width: min(360px, calc(100vw - 40px)); box-sizing: border-box;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 16px 16px 14px;
  box-shadow: 0 16px 50px rgba(0,0,0,.6); opacity: 0; transform: translateY(12px);
  animation: askin .35s ease 4s forwards; transition: opacity .25s, transform .25s; }
.ask.out { opacity: 0 !important; transform: translateY(12px) !important; }
@keyframes askin { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ask { animation: none; opacity: 1; transform: none; } }
.ask p { margin: 0 24px 12px 0; font-size: 14px; line-height: 1.45; }
.ask p b { display: block; margin-bottom: 2px; }
.ask-x { position: absolute; top: 6px; right: 8px; background: none; border: 0; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 6px; }
.ask-x:hover { color: var(--text); }
.ask-btns, .ask-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ask .btn { border: 0; cursor: pointer; }
.ask input[type=email], .ask textarea { flex: 1; min-width: 0; width: 100%; box-sizing: border-box; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 4px; padding: 7px 9px; font: 14px/1.4 var(--sans); }
.ask textarea { margin-bottom: 8px; resize: vertical; }
.ask-skip { background: none; border: 0; color: var(--muted); font: 13px var(--sans); cursor: pointer; padding: 6px 2px; text-decoration: underline; }
.ask-done { margin: 0; color: var(--green); }
@media (max-width: 560px) { .ask { left: 12px; right: 12px; bottom: 12px; width: auto; } }

.feedback { max-width: 620px; }
.feedback .lede { color: var(--muted); font-size: 16px; line-height: 1.55; margin-bottom: 26px; }
.fb-form fieldset { border: 1px solid var(--line); border-radius: 6px; padding: 10px 16px 14px; margin: 0 0 18px; }
.fb-form legend { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 0 6px; }
.fb-opt { display: flex; gap: 10px; align-items: center; padding: 7px 0; cursor: pointer; }
.fb-field { display: block; margin-bottom: 18px; font-weight: 500; }
.fb-field textarea, .fb-field input { display: block; width: 100%; box-sizing: border-box; margin-top: 6px; background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 4px; padding: 9px 11px; font: 15px/1.45 var(--sans); }
.fb-form .btn { border: 0; cursor: pointer; margin-bottom: 12px; }
.fb-err { color: #ff8a8a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.admin-table { overflow-x: auto; margin-top: 18px; }
.admin-table table { border-collapse: collapse; width: 100%; font-size: 13px; }
.admin-table th, .admin-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
.admin-table td.msg { white-space: normal; min-width: 240px; max-width: 420px; }
nav a.nav-ask { color: var(--gold); }

/* matches page, BBC-style ordering */
.round-focus { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 4px 16px 16px; margin-bottom: 14px; }
.kicker { display: inline-flex; align-items: center; gap: 6px; margin-right: 10px; padding: 2px 8px; border-radius: 3px;
  background: var(--text); color: var(--bg); font-size: 12px; letter-spacing: .1em; vertical-align: 2px; }
.kicker.live { background: var(--live); color: #fff; }
.more-fx { margin: 0 0 22px; }
.more-fx > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px;
  border: 1px solid var(--line); border-radius: 4px; font-family: var(--cond); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.more-fx > summary::-webkit-details-marker { display: none; }
.more-fx > summary::before { content: '\25B8'; transition: transform .15s; }
.more-fx[open] > summary::before { transform: rotate(90deg); }
.more-fx > summary:hover { border-color: var(--muted); }
.more-fx > summary .muted { font-family: var(--sans); font-weight: 400; letter-spacing: 0; text-transform: none; }
.more-fx[open] > summary { margin-bottom: 14px; }
.fx-group { font-family: var(--cond); text-transform: uppercase; letter-spacing: .06em; margin: 26px 0 6px; }
@media (max-width: 560px) { .round-focus { padding: 2px 10px 12px; } .kicker { margin-bottom: 4px; } }
.fx .tc { display: none; font-weight: 700; letter-spacing: .04em; }
@media (max-width: 560px) { .fx:not(.big) .tn { display: none; } .fx:not(.big) .tc { display: inline; } }
