/* GoalTrack palette (docs/briefing.md section 9) */
:root {
  --bg: #0A0A0A;
  --text: #FFFFFF;
  --muted: #8A94A6;
  --gold: #D4AF37;
  --line: #1E1E1E;
  /* surfaces */
  --card: #141414; --card2: #111111; --chip: #1E1E1E; --chip2: #2c2c2c; --hover: #2a2a2a;
  /* inverted button (white on dark theme, dark on light theme) */
  --inv: #FFFFFF; --on-inv: #0A0A0A; --on-gold: #0A0A0A;
  --odds: #F5C400; --gold-soft: #17140a; --gold-line: #3a3115;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F4F5F7; --text: #101216; --muted: #5B6474; --gold: #A98512; --line: #E1E4EA;
  --card: #FFFFFF; --card2: #FFFFFF; --chip: #E8EAEF; --chip2: #D3D7DE; --hover: #E3E6EB;
  --inv: #101216; --on-inv: #FFFFFF; --odds: #8A5A00; --gold-soft: #FBF3D6; --gold-line: #E6D28A;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  padding-bottom: 24px;
}

h1, h2, h3 { font-family: "Poppins", sans-serif; }

.top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; }
.brand { display: flex; align-items: center; color: var(--text); text-decoration: none; }
.brand { min-width: 0; }
.brand img { mix-blend-mode: lighten; display: block; height: 22px; width: auto; max-width: 100%; }
.actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pill { display: flex; align-items: center; gap: 6px; background: var(--chip); border-radius: 999px; padding: 4px; }
.livebtn {
  display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none;
  border: 1px solid var(--chip2); border-radius: 999px; padding: 6px 10px; font-weight: 600; font-size: 14px; white-space: nowrap;
}
.livebtn .dot { width: 10px; height: 10px; border-radius: 50%; background: #6b7280; }
.livebtn.on { color: var(--text); border-color: #E5484D; }
.livebtn.on .dot { background: #E5484D; }
.iconbtn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border: none; cursor: pointer;
  background: transparent; color: var(--text); font: inherit;
}
.iconbtn.round { background: var(--chip); border-radius: 50%; width: 42px; height: 42px; }
.iconbtn.cal span {
  display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid var(--text); border-radius: 6px;
  font-size: 13px; font-weight: 700;
}

/* Bubbles (calendar and menu) */
.bubble {
  position: absolute; right: 12px; top: 62px; z-index: 20; min-width: 230px;
  background: var(--chip); border: 1px solid var(--chip2); border-radius: 16px; padding: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .6);
}
.bubble[hidden] { display: none; }
.bubble a, .bubble .row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px; color: var(--text); text-decoration: none; border-radius: 10px;
}
.bubble a:hover { background: var(--hover); }
.cal-pop form { padding: 8px; display: grid; gap: 8px; }
.cal-pop label { color: var(--muted); font-size: 13px; }
.cal-pop input {
  background: var(--bg); color: var(--text); border: 1px solid var(--chip2); border-radius: 8px;
  padding: 10px; font: inherit; color-scheme: dark;
}
.toggle {
  border: 1px solid var(--muted); background: transparent; color: var(--muted); border-radius: 999px;
  padding: 4px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.toggle.on { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Row under the header: day strip (home) and the magnifying glass */
.subbar { display: flex; align-items: center; gap: 4px; padding: 0 12px; max-width: 900px; margin: 0 auto; }
.subbar .grow { flex: 1; }
.search-btn { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--chip); }
.search { padding: 8px 12px; max-width: 900px; margin: 0 auto; }
.search[hidden] { display: none; }
.search input {
  width: 100%; background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font: inherit; font-size: 14px;
}
.search input::placeholder { color: var(--muted); }

main { padding: 16px; max-width: 900px; margin: 0 auto; }
.muted { color: var(--muted); }

/* Lists (players, clubs, national teams) */
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-bottom: 1px solid var(--line); }
.list a {
  display: block; padding: 14px 4px;
  color: var(--text); text-decoration: none;
}
.list a:hover { background: var(--card); }
.list .name { display: block; font-weight: 600; }
.list .sub { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.tag { color: var(--muted); font-size: 11px; font-weight: 400; }

/* Profile pages */
.back { color: var(--muted); text-decoration: none; font-size: 14px; }
.facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 0;
}
.facts div { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.facts dt { color: var(--muted); font-size: 13px; }
.facts dd { margin: 4px 0 0; font-weight: 600; font-size: 17px; }
@media (min-width: 768px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
}
.facts a { color: var(--text); }

h2 { font-size: 18px; margin: 24px 0 8px; }

/* Last results with W/D/L chips */
.results { list-style: none; margin: 0; padding: 0; }
.results li {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 4px 10px;
  align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line);
}
.results .score { font-weight: 600; }
.results .date { grid-column: 2 / 4; color: var(--muted); font-size: 13px; }
.chip {
  display: inline-grid; place-items: center; width: 24px; height: 24px;
  border-radius: 6px; font-size: 12px; font-weight: 600; color: #FFFFFF;
  background: #3A3F4A;
}
.chip-W { background: #1F7A44; }
.chip-L { background: #9B2C2C; }
.form { display: flex; gap: 4px; margin-top: 6px; }
.chip-sm { width: 18px; height: 18px; border-radius: 4px; font-size: 10px; }

/* (switch) */
.switch { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
.switch a { padding: 8px 18px; color: var(--muted); text-decoration: none; font-size: 14px; }
.switch a.on { background: var(--chip); color: var(--text); font-weight: 600; }

.source { color: var(--muted); font-size: 12px; margin-top: 16px; }
.small { font-size: 12px; font-weight: 400; font-family: "Inter", sans-serif; }

.when { display: block; color: var(--muted); font-size: 13px; }

/* Match page */
.scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin: 16px 0 0; padding: 20px 12px; border: 1px solid var(--line); border-radius: 12px; }
.scoreboard .side { color: var(--text); text-decoration: none; font-weight: 600; font-family: "Poppins", sans-serif; }
.scoreboard .side:last-child { text-align: right; }
.scoreboard .big { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 28px; }
.lineups { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lineup h3 { font-size: 15px; margin: 0 0 4px; color: var(--muted); }

/* Phone: nav fixed at the bottom */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; background: var(--bg); border-top: 1px solid var(--line);
}
.nav a {
  flex: 1; text-align: center; padding: 14px 4px;
  color: var(--muted); text-decoration: none; font-size: 13px;
}
.nav a.on { color: var(--text); font-weight: 600; }

/* Desktop: nav moves to the top, under the header */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .nav {
    position: static; justify-content: center; gap: 8px;
    border-top: none; border-bottom: 1px solid var(--line);
  }
  .nav a { flex: 0 0 auto; padding: 12px 16px; font-size: 15px; }
  body { display: flex; flex-direction: column; }
  .top { order: 0; } .nav { order: 1; } main { order: 2; width: 100%; }
}

/* Follow button */
.follow {
  background: transparent; color: var(--text); border: 1px solid var(--text);
  border-radius: 999px; padding: 6px 16px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.follow.on { background: var(--text); color: var(--bg); }
h1 + .follow, h1 + .follow + .tag { margin-top: 0; }

/* Search results: link on the left, Follow button on the right */
.found li { display: flex; align-items: center; gap: 12px; }
.found li a { flex: 1; min-width: 0; }

/* Following chips on the matches screen */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.fchip { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.fchip a { color: var(--text); text-decoration: none; padding: 6px 4px 6px 12px; font-size: 14px; }
.fchip button { background: none; border: none; color: var(--muted); padding: 6px 12px 6px 8px; cursor: pointer; font: inherit; }

/* Date strip */
.days { flex: 1; min-width: 0; display: flex; gap: 22px; overflow-x: auto; padding: 8px 2px 12px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.days a {
  flex: 0 0 auto; color: var(--muted); text-decoration: none; font-family: "Poppins", sans-serif;
  font-weight: 600; font-size: 18px; padding-bottom: 6px; border-bottom: 3px solid transparent; white-space: nowrap;
}
.days a.on { color: var(--text); border-bottom-color: var(--text); }

/* Following box */
.followbox { background: var(--card); border-radius: 18px; margin: 8px 0 16px; overflow: hidden; }
.followbox summary {
  list-style: none; cursor: pointer; padding: 16px; font-family: "Poppins", sans-serif; font-weight: 700; font-size: 18px;
  display: flex; align-items: center; gap: 12px; background: var(--chip2);
}
.followbox summary::-webkit-details-marker { display: none; }
.followbox summary::after { content: "⌃"; margin-left: auto; color: var(--muted); }
.followbox:not([open]) summary::after { content: "⌄"; }
.followbox .chips { padding: 12px 12px 0; }
.followbox .pad { padding: 4px 16px 16px; }
.followbox .matches a { padding-left: 16px; padding-right: 16px; }

/* Matches list: status | home | score or time | away */
h2.comp { font-size: 14px; color: var(--muted); font-weight: 600; margin: 20px 0 4px; }
.matches { list-style: none; margin: 0; padding: 0; }
.matches li { border-bottom: 1px solid var(--line); }
.matches a.m {
  display: grid; grid-template-columns: 40px minmax(0,1fr) auto minmax(0,1fr) 40px; gap: 8px; align-items: center;
  padding: 14px 4px; color: var(--text); text-decoration: none;
}
.matches a.m:hover { background: var(--card); }
.matches .status { color: var(--muted); font-size: 12px; font-weight: 600; }
.team { font-weight: 600; }
.team.away { text-align: right; }
.mid { font-family: "Poppins", sans-serif; font-weight: 700; min-width: 54px; text-align: center; }
.livetxt { color: #E5484D; font-weight: 700; }
.is-live .mid { color: #E5484D; }

/* Language list */
.list a.current .name::after { content: " ✓"; }
.transfers .sub { margin-top: 3px; }

/* Lineup builder */
.picker { display: flex; gap: 8px; align-items: center; margin: 8px 0; flex-wrap: wrap; }
.picker a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: 14px; }
.picker a.on { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 600; }
.slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.slots select {
  background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 10px; font: inherit; font-size: 14px;
}

/* Match page: scorers, tabs, lineup, table, stats, H2H */
.scorers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 10px 12px; font-size: 13px; }
.scorers ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; align-content: start; }
.scorers .sc-away { text-align: right; }
.scorers a { color: var(--text); text-decoration: none; }
.ico { display: inline-flex; width: 14px; height: 14px; vertical-align: -2px; flex: none; }
.ico svg { width: 100%; height: 100%; display: block; }
.tabs { display: flex; border-bottom: 1px solid var(--line); margin: 14px 0 14px; overflow-x: auto; }
.tabs a { flex: 1; text-align: center; padding: 10px 8px; color: var(--muted); text-decoration: none; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--text); font-weight: 600; border-bottom-color: var(--gold); }
.players { list-style: none; margin: 0; padding: 0; }
.players li { display: flex; align-items: center; gap: 6px; padding: 7px 2px; border-bottom: 1px solid var(--line); font-size: 13px; min-width: 0; }
.players .num { color: var(--muted); width: 18px; text-align: right; flex: none; font-size: 12px; }
.players .name { color: var(--text); text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icons { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; flex: none; }
.icons .min { font-size: 10px; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); align-items: center; font-size: 12px; color: var(--muted); }
.legend .lg { display: inline-flex; align-items: center; gap: 5px; }
.league { width: 100%; border-collapse: collapse; font-size: 13px; }
.league th { color: var(--muted); font-weight: 500; text-align: center; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.league td { text-align: center; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.league .tname { text-align: left; }
.league .tname a { color: var(--text); text-decoration: none; font-weight: 600; }
.league tr.me td { background: var(--card); }
.league tr.me td:first-child { box-shadow: inset 3px 0 var(--gold); }
.league .formcol .form { margin: 0; justify-content: center; }
.stat { margin-bottom: 18px; }
.stat-head { display: grid; grid-template-columns: 1fr auto 1fr; font-size: 14px; margin-bottom: 6px; }
.stat-head span { color: var(--muted); font-size: 13px; }
.stat-head strong:last-child { text-align: right; }
.stat-head .lead { color: var(--gold); }
.bar { display: flex; gap: 4px; height: 6px; }
.bar span { background: #2A2F3A; border-radius: 3px; }
.bar .h { border-radius: 3px 0 0 3px; } .bar .a { border-radius: 0 3px 3px 0; }
.bar .lead { background: var(--gold); }
.h2h-sum { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; text-align: center; margin: 4px 0 10px; }
.h2h-sum div { border: 1px solid var(--line); border-radius: 10px; padding: 12px 6px; }
.h2h-sum strong { display: block; font-family: "Poppins", sans-serif; font-size: 26px; }
.lineup { min-width: 0; } .lineups { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }

/* Pitch (actual lineup) */
.pitch { position: relative; height: 520px; background: #1b1d21; border-radius: 12px; overflow: hidden; margin-top: 4px; }
.pitch-lines::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: #2a2d33; }
.pitch-lines::after { content: ""; position: absolute; left: 50%; top: 50%; width: 90px; height: 90px; margin: -45px 0 0 -45px; border: 2px solid #2a2d33; border-radius: 50%; }
.pp { left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--text); width: 62px; }
.av { position: relative; width: 40px; height: 40px; border-radius: 50%; background: #3a3d44; display: block; }
.face { width: 100%; height: 100%; border-radius: 50%; display: block; }
.face.sm { width: 34px; height: 34px; flex: none; background: #3a3d44; }
.pn { font-size: 10.5px; font-weight: 600; margin-top: 4px; text-align: center; line-height: 1.2; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; align-items: center; }
.pn .n { color: var(--muted); }
.pn .ico { width: 12px; height: 12px; }
.av .ico { width: 15px; height: 15px; background: #1b1d21; border-radius: 50%; padding: 1px; }
.c-tl { position: absolute; left: -10px; top: -14px; display: flex; flex-direction: column; align-items: center; }
.c-tl .min { font-size: 9px; font-weight: 700; line-height: 1; margin-bottom: 1px; }
.c-bl { position: absolute; left: -8px; bottom: -2px; display: flex; }
.c-tr { position: absolute; right: -8px; top: -4px; }
.c-br { position: absolute; right: -10px; bottom: -4px; display: flex; flex-direction: column; gap: 1px; }
.panel { background: var(--card); border-radius: 12px; padding: 14px 12px; margin-top: 14px; }
.panel h2 { text-align: center; font-size: 15px; margin: 0 0 10px; }
.panel .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 13px; }
.panel .two .r { text-align: right; }
.panel .cols { gap: 14px; align-items: start; }
.plist { list-style: none; margin: 0; padding: 0; }
.plist li { display: flex; align-items: center; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.plist .num { color: var(--muted); width: 18px; text-align: right; font-size: 12px; flex: none; }
.plist .pname { text-decoration: none; color: var(--text); min-width: 0; flex: 1; display: block; }
.plist .name { display: block; font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plist .pos { display: block; font-size: 11px; color: var(--muted); }
.plist .icons .min { color: #2EB24F; }
@media (max-width: 420px) { .av, .face { width: 36px; height: 36px; } .panel .cols .face.sm { display: none; } }

/* Phone: pitch is vertical (home on top, away at the bottom); wider screens: horizontal like FotMob */
@media (max-width: 700px) {
  .pitch { height: 820px; }
  .pp { left: calc(var(--y) * 1%); top: calc(var(--x) * 1%); width: 70px; }
  .pitch-lines::before { left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 2px; }
}
@media (min-width: 701px) { .pitch { height: 480px; } }

/* Badges, team rows, H2H rows */
.badge { flex: none; display: inline-block; vertical-align: middle; }
.rowteam { display: flex; align-items: center; gap: 10px; }
h1.rowteam { gap: 12px; }
.team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.team.away { justify-content: flex-end; }
.team .tn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.scoreboard .side { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.scoreboard .side:last-child { text-align: center; }
.league .tname a.rowteam { display: inline-flex; }
.h2h-list { list-style: none; margin: 0; padding: 0; }
.h2h-list li { border-bottom: 1px solid var(--line); }
.h2h-list a { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px 10px; align-items: center; padding: 12px 4px; color: var(--text); text-decoration: none; }
.h2h-list .hd { grid-column: 1 / 4; display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.h2h-list .hteam { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; font-weight: 600; }
.h2h-list .hteam.away { justify-content: flex-end; }
.h2h-list .tn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.h2h-list .hscore { background: var(--chip); border-radius: 8px; padding: 6px 12px; font-weight: 700; font-family: "Poppins", sans-serif; }

.matches .team .tn { white-space: normal; overflow: visible; font-size: 14px; line-height: 1.2; }
.matches .team { align-items: center; }
.scoreboard { align-items: start; }
.scoreboard .big { align-self: center; }
@media (max-width: 700px) { .pitch { height: 920px; } }

/* Sign in (demo, no accounts yet) */
.cc { color: var(--muted); font-weight: 500; margin-right: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.auth { max-width: 420px; }
.auth-title { font-size: 20px; margin: 8px 0 14px; color: var(--text); }
.auth-form { display: grid; gap: 14px; }
.auth-form[hidden], .auth [hidden] { display: none; }
.auth-form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.auth-form input { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--text); font: inherit; font-size: 15px; }
.auth-form input:focus { outline: 1px solid var(--gold); }
.btn { background: var(--inv); color: var(--on-inv); border: 0; border-radius: 999px; padding: 12px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.auth-switch { margin-top: 18px; font-size: 14px; }
.linkbtn { background: none; border: 0; color: var(--text); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 0; }
.auth-note { margin-top: 14px; font-size: 13px; border-left: 2px solid var(--gold); padding-left: 10px; }

/* Search: its own round bubble in the header, next to the Live pill */
.search-btn { width: 42px; height: 42px; flex: none; margin: 0; }
.actions { gap: 6px; }
@media (max-width: 420px) { .brand img { height: 19px; } .pill .livebtn { padding: 0 10px; } }

/* Search bar: sits left of the Live pill as a round bubble; opening turns it into the bar in place */
.searchbar { display: flex; align-items: center; background: var(--chip); border-radius: 999px; min-width: 0; }
.searchbar input { display: none; background: transparent; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 15px; padding: 0 14px 0 0; min-width: 0; width: 0; }
.searchbar input::placeholder { color: var(--muted); }
.top.searching .searchbar input { display: block; width: 220px; }
.top.searching .searchbar { outline: 1px solid var(--text); }
@media (max-width: 700px) {
  .top.searching .brand, .top.searching .pill { display: none; }
  .top.searching .actions { flex: 1; }
  .top.searching .searchbar { flex: 1; }
  .top.searching .searchbar input { width: 100%; }
}

/* Commentary feed (live-blog style, inside the match page) */
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fcard { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.fmin { flex: none; align-self: flex-start; background: #F5C400; color: var(--card2); font-weight: 700; font-size: 12px; border-radius: 999px; padding: 3px 8px; font-family: "Poppins", sans-serif; }
.fbody { min-width: 0; flex: 1; }
.fbody p { margin: 8px 0 0; font-size: 14px; line-height: 1.45; }
.ftitle { font-family: "Poppins", sans-serif; font-size: 15px; }
.fplayer { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--text); text-decoration: none; }
.fplayer .face.sm { width: 30px; height: 30px; }
.fplayer .pn2 { display: block; font-size: 13px; font-weight: 600; }
.fplayer .pp2 { display: block; font-size: 11px; color: var(--muted); }
.fplayer .ico { margin-left: auto; width: 18px; height: 18px; }
.fcard.k-goal { border-color: var(--gold); background: linear-gradient(180deg, #2a2208, var(--card) 60%); }
.fcard.k-kickoff .fmin, .fcard.k-ht .fmin, .fcard.k-ft .fmin { background: #2A2F3A; color: var(--text); }
.fcard.k-red { border-color: #7a2326; }
.tabs a { font-size: 13px; padding: 10px 4px; }

/* Date strip: 3 days and arrows */
.days { justify-content: space-between; align-items: center; gap: 6px; overflow: visible; padding: 8px 0 12px; }
.days a.day { flex: 1; text-align: center; padding: 0 4px 6px; }
.days a.arrow { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--chip); color: var(--text); display: grid; place-items: center; font-size: 22px; line-height: 1; text-decoration: none; border: 0; padding: 0 0 3px; }
.days a.arrow:hover { background: var(--hover); }

/* Club page (FotMob-style) */
.chead { display: flex; align-items: center; gap: 14px; margin: 14px 0 4px; }
.chead .ctitle { flex: 1; min-width: 0; }
.chead h1 { margin: 0; font-size: 24px; }
.chead p { margin: 2px 0 0; font-size: 13px; }
.ctabs { margin-top: 10px; }
.ctabs a { flex: 0 0 auto; padding: 10px 12px; }
.card { background: var(--card); border-radius: 14px; padding: 14px; }
.card h2 { font-size: 15px; margin: 0 0 12px; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.card h2 .cc2 { font-weight: 500; text-decoration: none; }
.ov { display: grid; gap: 12px; }
@media (min-width: 800px) { .ov { grid-template-columns: 1fr 1fr; } .ov .wide { grid-column: span 1; } }
.formrow { display: flex; gap: 10px; justify-content: space-between; }
.fbox { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; }
.fscore { font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 6px; color: #fff; background: #3A3F4A; }
.fscore.chip-W { background: #1F7A44; } .fscore.chip-L { background: #9B2C2C; }
.nextm { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; color: var(--text); text-decoration: none; }
.nteam { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; font-weight: 600; }
.ncenter { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ncenter strong { font-family: "Poppins", sans-serif; font-size: 20px; }
.minipitch { position: relative; height: 440px; background: #1b1d21; border-radius: 12px; overflow: hidden; }
.mp { position: absolute; transform: translate(-50%, 50%); width: 66px; display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--text); }
.mp .face { width: 34px; height: 34px; background: #3a3d44; }
.mpn { font-size: 10.5px; font-weight: 600; margin-top: 3px; text-align: center; white-space: nowrap; }
.mpg { font-size: 10px; color: var(--muted); display: flex; align-items: center; gap: 2px; margin-top: 1px; }
.mpg .ico { width: 11px; height: 11px; }
.fxlist { display: grid; }
.fx { display: grid; grid-template-columns: 78px 22px minmax(0,1fr) 56px 24px; gap: 8px; align-items: center; padding: 12px 2px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 13px; }
.fx-date { color: var(--muted); font-size: 12px; line-height: 1.3; }
.fx-ha { color: var(--muted); font-weight: 600; text-align: center; }
.fx-opp { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; }
.fx-opp .tn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-score { text-align: center; font-weight: 700; font-family: "Poppins", sans-serif; }
.grp { font-size: 15px; margin: 18px 0 4px; color: var(--muted); }
.center { text-align: center; margin: 0; }
.sq a { display: flex; align-items: center; gap: 10px; }
.sq .sqn { width: 22px; text-align: right; color: var(--muted); font-size: 12px; flex: none; }
.sq .sqm { display: block; min-width: 0; }
.pstats td.hl { color: var(--gold); font-weight: 700; }
.pstats .tname a { color: var(--text); text-decoration: none; font-weight: 600; }
.tstats .trow { display: flex; justify-content: space-between; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.newsc { display: block; color: var(--text); text-decoration: none; }
.newsc .ftitle { display: block; margin: 4px 0; }
.newsc p { margin: 0; font-size: 14px; color: #cfd3da; }
.fcard:has(.newsc) { display: block; }

.tscroll { overflow-x: auto; }
.pstats th, .pstats td { padding-left: 6px; padding-right: 6px; }
.pstats .tname { min-width: 150px; }
.minipitch::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: #2a2d33; }

main { min-width: 0; max-width: 100%; }
.tscroll { width: 100%; max-width: 100%; }
.pstats { min-width: 400px; }
.switch { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.switch a { white-space: nowrap; padding: 8px 14px; }

/* Player page (FotMob-style) */
.pgrid { display: grid; gap: 12px; margin-top: 10px; }
.pcol { display: grid; gap: 12px; align-content: start; min-width: 0; }
@media (min-width: 800px) { .pgrid { grid-template-columns: 1.35fr 1fr; } }
.pcard { padding: 0; overflow: hidden; }
.phead { display: flex; align-items: center; gap: 14px; padding: 16px; }
.pface { width: 64px; height: 64px; border-radius: 50%; background: rgba(0,0,0,.35); flex: none; }
.ptitle { flex: 1; min-width: 0; }
.ptitle h1 { margin: 0 0 4px; font-size: 22px; line-height: 1.15; }
.ptitle a { color: var(--text); text-decoration: none; font-size: 14px; }
.pbody { display: grid; gap: 16px; padding: 16px; }
@media (min-width: 500px) { .pbody { grid-template-columns: 1fr 1fr; } }
.pfacts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; }
.pfacts div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.pfacts dt { font-size: 12px; color: var(--muted); }
.pfacts dd { margin: 3px 0 0; font-weight: 600; font-size: 15px; }
.pfacts a { color: var(--text); }
.ppos h3 { margin: 0 0 8px; font-size: 14px; }
.ppos p { margin: 2px 0; }
.pp-main { font-weight: 600; font-size: 14px; }
.pdiagram { position: relative; height: 150px; margin-top: 12px; background: #2a2d33; border-radius: 10px; overflow: hidden; }
.pd-mid { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: #3a3d44; }
.pd-dot { position: absolute; width: 22px; height: 22px; margin: 0 0 -11px -11px; border-radius: 50%; background: #8A94A6; opacity: .8; }
.pd-dot.main { background: #1E5FBF; opacity: 1; outline: 2px solid #fff; }
.vchart, .radar { width: 100%; height: auto; display: block; }
.radar { max-width: 360px; margin: 0 auto; }
.tnote { margin: -6px 0 6px; }
.sgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 8px; text-align: center; }
.sbox strong { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 18px; font-family: "Poppins", sans-serif; }
.sbox span.small { display: block; margin-top: 4px; }
.rating { background: #1F7A44; border-radius: 6px; padding: 2px 8px; font-size: 14px; }
.cardbox { display: inline-block; width: 12px; height: 16px; border-radius: 2px; }
.cardbox.y { background: #F5C400; } .cardbox.r { background: #E5242B; }
.chead2 { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); margin: 16px 0 6px; font-weight: 600; }
.cnums { display: flex; gap: 0; }
.cnums span { width: 56px; text-align: right; font-weight: 500; font-size: 11px; }
.clist { list-style: none; margin: 0; padding: 0; }
.clist li { border-bottom: 1px solid var(--line); }
.crow { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--text); text-decoration: none; }
.cinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cinfo strong { font-size: 14px; }
.cnum { width: 56px; text-align: right; font-weight: 600; font-size: 14px; }

/* Search suggestions dropdown */
.suggest { position: absolute; right: 12px; top: 62px; z-index: 30; width: min(460px, calc(100vw - 24px)); max-height: 72vh; display: flex; flex-direction: column;
  background: var(--chip); border: 1px solid var(--chip2); border-radius: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.6); overflow: hidden; }
.suggest[hidden] { display: none; }
.sg-chips { display: flex; gap: 6px; padding: 12px; overflow-x: auto; border-bottom: 1px solid var(--line); flex: none; }
.sg-chips button { flex: none; border: 0; border-radius: 999px; padding: 9px 13px; font: inherit; font-weight: 600; font-size: 14px; background: var(--chip2); color: var(--text); cursor: pointer; }
.sg-chips button.on { background: var(--inv); color: var(--on-inv); }
.sg-list { overflow-y: auto; min-height: 0; }
.sg { display: flex; align-items: center; gap: 14px; padding: 12px 16px; color: var(--text); text-decoration: none; }
.sg:hover, .sg:focus-visible { background: var(--hover); }
.sg-ico { flex: none; width: 40px; display: grid; place-items: center; }
.sg-face { width: 36px; height: 36px; border-radius: 50%; background: var(--chip2); }
.sg-trophy { width: 28px; height: 28px; color: #D4AF37; }
.sg-pair { display: flex; }
.sg-pair svg + svg { margin-left: -6px; }
.sg-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sg-text strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-text .muted { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-score { flex: none; font-weight: 700; font-family: "Poppins", sans-serif; font-size: 14px; }
.sg-empty { margin: 0; padding: 18px 16px; color: var(--muted); }
@media (max-width: 700px) { .suggest { left: 12px; right: 12px; width: auto; } }

/* Lineup builder: pitch with clickable slots + player picker */
.fpick { flex-wrap: wrap; }
.lb-pitch { margin-top: 12px; display: flex; flex-direction: column; justify-content: space-around; gap: 6px; min-height: 520px; padding: 18px 6px;
  border-radius: 16px; border: 1px solid #2b6b3f;
  background: repeating-linear-gradient(180deg, #1c5a31 0 52px, #1f6638 52px 104px); }
.lb-row { display: flex; justify-content: space-evenly; gap: 4px; }
.lb-slot { background: none; border: 0; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 20%; min-width: 0; padding: 2px; cursor: pointer; font: inherit; }
.lb-disc { position: relative; width: 52px; height: 52px; border-radius: 50%; background: rgba(0,0,0,.35); border: 2px dashed rgba(255,255,255,.6); display: grid; place-items: center; }
.lb-disc svg { width: 100%; height: 100%; fill: rgba(255,255,255,.35); border-radius: 50%; }
.lb-plus { position: absolute; font-style: normal; font-size: 24px; font-weight: 700; line-height: 1; }
.lb-slot.filled .lb-disc { border-style: solid; border-color: #fff; background: #1E5FBF; }
.lb-slot.filled .lb-disc svg { fill: #fff; }
.lb-slot.filled .lb-plus { display: none; }
.lb-name { font-size: 12px; font-weight: 600; text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,.7); }
.lb-slot:not(.filled) .lb-name { opacity: .8; font-weight: 500; }
.lb-foot { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 4px; gap: 10px; }
.ghost { background: var(--chip2); color: var(--text); border: 0; border-radius: 999px; padding: 9px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
body.lb-open { overflow: hidden; }
.lb-modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: center; }
.lb-modal[hidden] { display: none; }
.lb-sheet { width: 100%; max-width: 520px; max-height: 85vh; display: flex; flex-direction: column; background: var(--chip); border-radius: 18px 18px 0 0; overflow: hidden; }
@media (min-width: 701px) { .lb-modal { align-items: center; } .lb-sheet { border-radius: 18px; } }
.lb-head { display: flex; gap: 8px; align-items: center; padding: 12px; }
.lb-search { flex: 1; padding-left: 14px; gap: 8px; outline: 1px solid #fff; }
.lb-search input { display: block; flex: 1; width: auto; background: transparent; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 16px; padding: 12px 14px 12px 0; min-width: 0; }
.pk { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 16px; background: none; border: 0; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.pk:hover, .pk:focus-visible { background: var(--hover); }
.pk:disabled { opacity: .45; cursor: default; }
.pk-in { flex: none; font-size: 12px; color: var(--muted); }
.pk .sg-text { flex: 1; }

/* Play-money betting */
.odds { display: flex; gap: 6px; padding: 0 12px 10px 12px; }
.odd { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 6px; min-width: 0; background: var(--chip2); color: var(--text); border: 1px solid var(--chip2); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.odd span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.odd b { font-family: "Poppins", sans-serif; font-weight: 600; color: var(--odds); }
.odd:hover, .odd:focus-visible { border-color: var(--text); }
.odds .odd { padding: 6px 10px; }
.odds-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.odds-grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.odds-grid.g3 .odd { flex-direction: column; align-items: flex-start; gap: 2px; }
.bet-card h2 { margin-top: 0; }
.bet-team { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin: 14px 0 6px; }
.bet-players { list-style: none; margin: 0; padding: 0; }
.bet-players li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.bp-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bet-players .odd { flex: none; min-width: 74px; justify-content: center; }
.claim { display: block; width: calc(100% - 16px); margin: 4px 8px 8px; padding: 12px; border-radius: 10px; border: 0; background: #F5C400; color: var(--card2); font: inherit; font-weight: 700; cursor: pointer; }
.claim:disabled { background: var(--chip2); color: var(--muted); cursor: default; }
.slip { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: center; }
.slip[hidden], .toast[hidden] { display: none; }
.slip-sheet { position: relative; width: 100%; max-width: 520px; background: var(--chip); border-radius: 18px 18px 0 0; padding: 18px 16px 22px; display: grid; gap: 10px; }
@media (min-width: 701px) { .slip { align-items: center; } .slip-sheet { border-radius: 18px; } }
.slip-x { position: absolute; top: 12px; right: 12px; padding: 7px 12px; }
.slip-sheet p { margin: 0; }
.slip-pick b { font-size: 18px; }
.slip-odds { color: var(--odds); font-family: "Poppins", sans-serif; font-weight: 600; margin-left: 6px; }
.slip-stake { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.slip-stake input { background: var(--bg); color: var(--text); border: 1px solid var(--chip2); border-radius: 10px; padding: 12px; font: inherit; font-size: 18px; }
.slip-chips { padding: 0; border: 0; }
.slip-err { color: #ff6b6b; font-size: 13px; min-height: 0; }
.slip-err:empty { display: none; }
.primary { background: var(--inv); color: var(--on-inv); border: 0; border-radius: 12px; padding: 14px; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70; background: var(--inv); color: var(--on-inv); padding: 12px 18px; border-radius: 999px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.5); max-width: calc(100vw - 32px); text-align: center; }
.bets-bal { margin: 8px 0; }
.blist { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.bcard { display: flex; justify-content: space-between; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.bmain { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bright { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.bs { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.bs.won { background: #1F7A44; } .bs.lost { background: #7a1f24; }

/* Betting tab: categories with many markets */
.bet-cat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin: 0 0 12px; }
.bet-cat-h { margin: 0; padding: 14px 14px 4px; font-size: 17px; }
.bet-mk { padding: 4px 14px 14px; border-top: 1px solid var(--line); }
.bet-mk h3 { margin: 12px 0 8px; font-size: 14px; color: var(--muted); font-weight: 600; }
.bet-rlabel { margin: 8px 0 4px; font-size: 13px; }
.odds-grid.c1 { grid-template-columns: minmax(0, 1fr); }
.odds-grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.odds-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.odds-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.odds-grid .odd { flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px; min-width: 0; }
.odds-grid .odd span { max-width: 100%; font-size: 12px; }
.bet-prow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.bp-btns { display: flex; gap: 6px; flex: none; }
.bp-btns .odd { flex: none; min-width: 74px; justify-content: center; padding: 8px 10px; }
.bet-prow .bp-name { flex: 1; }
.bs.void { background: var(--chip2); }
.bet-mks { display: block; }
.bet-mk { min-width: 0; }

/* Accounts */
.auth-err { background: #3a1517; border: 1px solid #7a1f24; color: #ffb3b3; border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; font-size: 14px; }
.auth-ok { background: #12301f; border: 1px solid #1F7A44; color: #bff0d0; border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; font-size: 14px; }
.auth-note { margin: 0 0 12px; font-size: 13px; border-left: 2px solid var(--gold); padding-left: 10px; color: var(--muted); }
.auth-form input.codeinput { font-size: 28px; letter-spacing: .4em; text-align: center; font-family: "Poppins", sans-serif; }
.auth-alt { margin-top: 14px; font-size: 14px; color: var(--muted); }
a.linkbtn { text-decoration: underline; color: var(--text); }
.menu-link { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--text); font: inherit; padding: 12px; border-radius: 10px; cursor: pointer; }
.menu-link:hover { background: var(--hover); }
.auth-form input { width: 100%; box-sizing: border-box; min-width: 0; }
.auth-form input.codeinput { font-size: 24px; letter-spacing: .25em; }

/* My bets */
.bets-hero { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: linear-gradient(135deg, var(--gold-soft), var(--card) 60%); border: 1px solid var(--gold-line); border-radius: 18px; padding: 18px 20px; margin: 8px 0 12px; }
.bets-hero-l { display: block; color: var(--muted); font-size: 13px; margin-bottom: 2px; }
.bets-hero-v { font-family: "Poppins", sans-serif; font-size: 34px; color: var(--gold); }
.bets-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bets-stats > div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bets-stats b { font-family: "Poppins", sans-serif; font-size: 20px; }
.bets-stats span { color: var(--muted); font-size: 12px; }
.bets-stats small { color: var(--muted); font-size: 11px; }
.bets-stats .pos { color: #3DDC84; } .bets-stats .neg { color: #ff6b6b; }
.bets-note { margin: 10px 0 0; font-size: 13px; }
.bets-empty { text-align: center; background: var(--card); border: 1px dashed var(--chip2); border-radius: 18px; padding: 28px 18px; margin: 14px 0; }
.bets-empty[hidden], .bets-filter[hidden] { display: none; }
.bets-empty h2 { margin: 10px 0 6px; font-size: 22px; }
.bets-empty p { color: var(--muted); margin: 0 auto 16px; max-width: 360px; line-height: 1.5; }
.bets-cta { display: inline-block; text-decoration: none; padding: 12px 22px; border-radius: 999px; }
.bets-how { list-style: none; margin: 22px auto 0; padding: 0; display: grid; gap: 8px; max-width: 360px; text-align: left; }
.bets-how li { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.bets-how span { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: var(--on-gold); font-weight: 700; font-size: 13px; }
.bets-filter { display: flex; gap: 8px; margin: 14px 0 4px; }
.fchipbtn { background: transparent; border: 1px solid var(--chip2); color: var(--muted); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.fchipbtn.on { background: var(--inv); color: var(--on-inv); border-color: var(--text); }
.bcard { border-left: 3px solid #5a5a5a; }
.bcard.open { border-left-color: var(--gold); } .bcard.won { border-left-color: #3DDC84; } .bcard.lost { border-left-color: #E5484D; }
.odd-chip { font-family: "Poppins", sans-serif; background: var(--chip); color: var(--gold); border-radius: 8px; padding: 1px 7px; font-size: 13px; margin-left: 4px; }
.bright b { font-size: 16px; }
.bcard.won .bright b { color: #3DDC84; } .bcard.lost .bright b { color: #ff6b6b; }
@media (max-width: 420px) { .bets-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Back arrow under the header */
.subbar:has(> .backarrow) { max-width: none; width: 100%; margin: 0; padding-left: 0; }
.backarrow { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-left: 0; border-radius: 50%; color: var(--text); text-decoration: none; }
.backarrow:hover { background: var(--chip); }

/* Transfer centre */
.tr-count { margin: 0 0 4px; }
.tr-day { font-size: 15px; color: var(--muted); font-weight: 600; margin: 18px 0 8px; }
.tr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tr-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 10px; }
.tr-player { color: var(--text); text-decoration: none; font-weight: 700; font-family: "Poppins", sans-serif; font-size: 16px; padding-right: 60px; }
.tr-big { position: absolute; top: 12px; right: 12px; background: var(--gold); color: var(--on-gold); font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.tr-move { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.tr-club a { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; min-width: 0; font-size: 14px; }
.tr-club.r a { justify-content: flex-end; text-align: right; }
.tr-club b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-club svg { flex: none; }
.tr-arrow { color: var(--gold); }
.tr-fee { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 8px; }
.tr-fee b { color: var(--gold); font-family: "Poppins", sans-serif; }
.tr-more { display: inline-block; margin: 16px 0; text-decoration: none; }

/* Language page */
.lang-hint { margin: 0 0 14px; }
.lang-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lang-opt { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; color: var(--text); text-decoration: none; }
.lang-opt:hover { background: var(--hover); }
.lang-opt.current { border-color: var(--gold); background: var(--gold-soft); }
.lang-code { flex: none; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--chip); color: var(--muted); font-family: "Poppins", sans-serif; font-weight: 700; font-size: 13px; }
.lang-opt.current .lang-code { background: var(--gold); color: var(--on-gold); }
.lang-name { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.lang-name b { font-size: 17px; font-weight: 600; }
.lang-name small { color: var(--muted); font-size: 13px; }
.lang-check { flex: none; color: var(--gold); }

/* Calendar (date picker) */
.cal-pop { width: min(340px, calc(100vw - 24px)); padding: 14px 12px 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head b { font-family: "Poppins", sans-serif; font-size: 16px; text-transform: capitalize; }
.cal-nav { width: 34px; height: 34px; border: none; border-radius: 50%; background: var(--chip2); color: var(--text); cursor: pointer; display: inline-grid; place-items: center; }
.cal-nav:hover { background: var(--chip2); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; text-align: center; }
.cal-wd { color: var(--muted); font-size: 12px; padding: 8px 0 10px; text-transform: capitalize; border-bottom: 1px solid var(--chip2); margin-bottom: 6px; grid-column: auto; }
.cal-day { height: 40px; width: 40px; margin: 0 auto; border: none; border-radius: 50%; background: transparent; color: var(--text); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.cal-day.out { color: #5c6270; font-weight: 400; }
.cal-day:hover { background: var(--chip2); }
.cal-day.today { background: #2a2d33; }
.cal-day.sel { background: var(--inv); color: var(--on-inv); }

/* The score sits exactly in the middle: the empty column on the right mirrors the status column on the left */
.matches a.m::after { content: ""; }
@media (max-width: 700px) { .matches a.m { grid-template-columns: 30px minmax(0,1fr) auto minmax(0,1fr) 30px; gap: 6px; } }

/* Light theme: the wordmark PNG is white on black, so it becomes dark text on the page colour */
:root[data-theme="light"] img[src*="logo-wordmark"] { filter: invert(1); mix-blend-mode: multiply; }

/* Surfaces that stay dark in both themes (pitches, player header) keep the dark-theme colours inside */
.pitch, .minipitch, .phead, .lb-pitch { --text: #FFFFFF; --muted: #8A94A6; --inv: #FFFFFF; --on-inv: #0A0A0A; --chip: #1E1E1E; --chip2: #2c2c2c; --line: #1E1E1E; color: #FFFFFF; }
