:root { --ink:#17202a; --muted:#718096; --line:#e6ebf0; --paper:#fff; --wash:#f5f7fa; --accent:#0d8f68; --accent-dark:#087153; --shadow:0 18px 50px rgba(23,32,42,.08); }
* { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:var(--wash); font:15px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.topbar { display:flex; align-items:center; justify-content:space-between; padding:28px clamp(20px,5vw,72px); color:white; background:linear-gradient(120deg,#102a35,#0d765d); }
h1,h2,h3,p { margin:0; } h1 { font-size:30px; letter-spacing:-.04em; } h2 { font-size:21px; letter-spacing:-.025em; } h3 { font-size:15px; margin-bottom:12px; } .last-import { margin-top:3px; color:#c5eee0; font-size:12px; }
.eyebrow { color:#75d6b5; font-size:11px; font-weight:800; letter-spacing:.16em; text-transform:uppercase; }
.status { border:1px solid rgba(255,255,255,.25); border-radius:999px; padding:5px 11px; font-size:12px; color:#d9fff1; }
.layout { display:grid; grid-template-columns:270px minmax(0,1fr); gap:24px; max-width:1400px; margin:28px auto; padding:0 24px; }
.panel { border:1px solid var(--line); border-radius:18px; background:var(--paper); box-shadow:var(--shadow); } .sidebar { align-self:start; padding:22px; }
.tabs { display:flex; gap:5px; padding:5px; border:1px solid var(--line); border-radius:12px; background:#eaf0f2; } .tab { flex:1; border:0; border-radius:8px; padding:10px 14px; color:var(--muted); background:transparent; font:inherit; font-weight:700; cursor:pointer; } .tab.active { color:var(--ink); background:white; box-shadow:0 2px 8px rgba(23,32,42,.08); }
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; } .sidebar .section-heading { margin-bottom:28px; }
label { display:block; color:var(--muted); font-size:12px; font-weight:700; margin:18px 0 7px; }
select { width:100%; border:1px solid #d8e0e7; border-radius:10px; padding:11px 12px; color:var(--ink); background:white; font:inherit; }
.fixture-view-toggle { display:grid; grid-template-columns:1fr 1fr; gap:4px; margin-top:18px; padding:4px; border-radius:10px; background:#eaf0f2; } .fixture-view-button { border:0; border-radius:7px; padding:8px 5px; color:var(--muted); background:transparent; font:inherit; font-size:12px; font-weight:700; cursor:pointer; } .fixture-view-button.active { color:var(--ink); background:white; box-shadow:0 2px 6px rgba(23,32,42,.08); } .fixture-team-select { margin-top:8px; }
.fixture-view-controls { display:flex; flex-direction:column; align-items:stretch; gap:8px; margin-bottom:10px; } .fixture-view-controls .fixture-view-toggle { width:100%; margin-top:0; } .fixture-view-controls .fixture-team-select { width:100%; margin-top:0; }
.team-games-tabs { display:grid; grid-template-columns:1fr 1fr; gap:4px; margin:4px 0 14px; padding:4px; border-radius:10px; background:#eaf0f2; } .team-games-tab { border:0; border-radius:7px; padding:9px; color:var(--muted); background:transparent; font:inherit; font-weight:700; text-align:center; cursor:pointer; } .team-games-tab.active { color:var(--ink); background:white; box-shadow:0 2px 6px rgba(23,32,42,.08); }
.muted,.empty { color:var(--muted); } .muted { margin-top:22px; font-size:13px; }
.games-panel,.details-panel { padding:24px; } .content { display:grid; gap:24px; min-width:0; }
.games-list { display:grid; gap:0; } .game-day-divider { display:flex; align-items:center; gap:12px; margin:18px 0 8px; color:var(--accent-dark); font-size:12px; font-weight:800; text-transform:uppercase; } .game-day-divider::before,.game-day-divider::after { content:""; height:2px; flex:1; background:var(--accent); opacity:.45; } .game-day-divider span { padding:7px 14px; border:1px solid #a7dfcc; border-radius:999px; background:#e6f7f0; white-space:nowrap; } .game-list-row { display:grid; grid-template-columns:minmax(0,1fr) 100px minmax(0,1fr); align-items:center; min-height:54px; border-bottom:1px solid var(--line); cursor:pointer; transition:background .15s; } .game-list-row:hover { background:#f0faf6; } .game-list-team { display:flex; align-items:center; gap:8px; min-width:0; overflow:hidden; padding:8px 16px; font-weight:700; } .game-list-team.home { justify-content:flex-end; text-align:right; } .game-list-team.away { justify-content:flex-start; text-align:left; } .game-list-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .game-list-center { padding:8px 6px; color:var(--ink); font-weight:900; text-align:center; white-space:nowrap; }
.team-icon { display:inline-flex; flex:0 0 28px; align-items:center; justify-content:center; width:28px; height:28px; overflow:hidden; border-radius:50%; } .team-icon img { display:block; width:28px; height:28px; max-width:28px; max-height:28px; object-fit:contain; } .team-icon-fallback { display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:50%; color:white; background:linear-gradient(135deg,#0d8f68,#102a35); font-size:14px; font-weight:800; }
.team-icon [hidden] { display:none !important; }
.game-day-divider { color:var(--muted); font-weight:700; }
.game-day-divider { justify-content:flex-start; }
.game-day-divider::before { display:none; }
.game-day-divider::after { height:1px; background:var(--line); opacity:1; }
.game-day-divider span { padding:5px 0; border:0; border-radius:0; background:transparent; }
.tables-panel { padding:24px; }
.count { color:var(--muted); font-size:13px; } .table-wrap { overflow:auto; }
.round-navigation { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; width:100%; margin:-4px 0 18px; color:var(--muted); } .round-navigation strong { min-width:110px; color:var(--ink); text-align:center; font-size:16px; line-height:1; } .round-arrow { display:inline-flex; align-items:center; justify-content:center; flex:0 0 32px; width:32px; height:32px; padding:0; border:1px solid #cfd8df; border-radius:50%; color:var(--ink); background:white; cursor:pointer; font:inherit; font-size:18px; line-height:1; } .round-navigation .round-arrow:first-child { justify-self:start; } .round-navigation .round-arrow:last-child { justify-self:end; } .round-arrow:hover:not(:disabled) { border-color:var(--accent); color:var(--accent-dark); background:#f0faf6; } .round-arrow:disabled { cursor:default; opacity:.35; }
.round-navigation[hidden], .team-games-tabs[hidden], .fixture-team-select[hidden] { display:none !important; }
table { width:100%; border-collapse:collapse; min-width:620px; } th { color:var(--muted); font-size:11px; letter-spacing:.08em; text-align:left; text-transform:uppercase; }
.sort-header { border:0; padding:0; color:inherit; background:transparent; font:inherit; letter-spacing:inherit; text-align:left; text-transform:inherit; cursor:pointer; }
.form-icons { white-space:nowrap; } .form-icons span { display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; margin-right:3px; border-radius:50%; color:#17202a; font-size:11px; font-weight:800; } .form-w { background:#72c49d; } .form-l { background:#ef9292; } .form-d { background:#c5cbd0; }
th,td { padding:14px 12px; border-bottom:1px solid var(--line); } tbody tr { cursor:pointer; transition:background .15s; } tbody tr:hover { background:#f0faf6; }
.leaderboard-player-row[aria-expanded="true"] { background:#f0faf6; }
.leaderboard-description { margin:0 0 16px; padding:12px 14px; border-left:3px solid var(--accent); color:var(--muted); background:#f5fbf8; font-size:13px; }
.leaderboard-details-row { cursor:default; background:#fbfcfd; }
.leaderboard-details-row:hover { background:#fbfcfd; }
.leaderboard-details-list { display:grid; gap:6px; margin:0; padding:4px 0 4px 28px; list-style:none; }
.leaderboard-details-list li { display:grid; grid-template-columns:130px minmax(180px,1fr) 60px 55px 70px; gap:12px; align-items:center; padding:8px 10px; border-left:3px solid var(--accent); color:var(--muted); font-size:12px; }
.leaderboard-details-list li strong { color:var(--ink); }
.round { color:var(--muted); font-size:13px; } .team { font-weight:700; } .score { font-weight:800; text-align:center; white-space:nowrap; } .upcoming { color:var(--muted); font-weight:500; }
.badge { display:inline-block; border-radius:999px; padding:4px 9px; background:#e6f7f0; color:var(--accent-dark); font-size:11px; font-weight:800; }
.empty { padding:30px 0; text-align:center; } .quiet-button { border:0; border-radius:8px; padding:7px 11px; color:var(--muted); background:var(--wash); cursor:pointer; }
.game-hero { padding:22px 10px 30px; text-align:center; } .hero-matchup { display:grid; grid-template-columns:1fr 1fr; font-size:20px; font-weight:800; } .hero-matchup span { padding:0 12px; } .hero-score { margin-top:8px; font-size:30px; font-weight:900; } .hero-round { color:var(--muted); font-size:12px; }
.detail-grid { display:grid; grid-template-columns:1fr; gap:28px; } .event-list,.stats-list { display:grid; gap:8px; }
.age-statistics { margin-top:28px; } .age-stats-list { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.team-stats-panel { padding:24px; } .summary-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:10px; } .summary-card { border:1px solid var(--line); border-radius:10px; padding:13px; } .summary-card strong { display:block; font-size:22px; } .summary-card span { color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.06em; } .season-age-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:24px; } .age-metric { border:1px solid var(--line); border-radius:10px; padding:12px; } .age-metric span { display:block; color:var(--muted); font-size:12px; } .age-metric strong { font-size:18px; } .result-WIN { color:var(--accent-dark); font-weight:800; } .result-DRAW { color:#a56b00; font-weight:800; } .result-LOSS { color:#b83b3b; font-weight:800; }
.team-stats-panel { padding:24px; } .summary-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:10px; } .summary-card { border:1px solid var(--line); border-radius:10px; padding:13px; } .summary-card strong { display:block; font-size:22px; } .summary-card span { color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.06em; } .season-age-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:24px; } .age-metric { border:1px solid var(--line); border-radius:10px; padding:12px; } .age-metric span { display:block; color:var(--muted); font-size:12px; } .age-metric strong { font-size:18px; } .result-WIN { color:var(--accent-dark); font-weight:800; } .result-DRAW { color:#a56b00; font-weight:800; } .result-LOSS { color:#b83b3b; font-weight:800; }
.age-card { border:1px solid var(--line); border-radius:12px; overflow:hidden; } .age-card h4 { padding:12px 14px; margin:0; background:#f0faf6; } .age-row { display:flex; justify-content:space-between; gap:15px; padding:10px 14px; border-top:1px solid var(--line); font-size:13px; } .age-value { font-weight:800; }
.event,.stat { display:flex; justify-content:space-between; gap:15px; border:1px solid var(--line); border-radius:10px; padding:10px 12px; font-size:13px; } .event-minute { color:var(--accent-dark); font-weight:800; } .event-type { color:var(--muted); font-size:12px; }
.player-stats-columns { display:grid; grid-template-columns:1fr 1fr; gap:28px; } .player-team-stats h4 { margin:0 0 10px; padding-bottom:8px; border-bottom:2px solid var(--line); } .player-stat-row { display:grid; grid-template-columns:minmax(150px,1fr) auto auto auto; align-items:center; gap:10px; padding:8px 10px; border-bottom:1px solid var(--line); font-size:12px; } .player-identity { display:grid; grid-template-columns:28px minmax(0,1fr); align-items:center; column-gap:7px; min-width:0; } .player-identity strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .player-identity small { font-size:11px; } .shirt-number { color:var(--muted); text-align:center; } .substitute-divider { margin:12px 0 4px; padding:6px 10px; color:var(--muted); background:var(--wash); font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; } .substitution-in { color:#168557; } .substitution-out { color:#b83b3b; }
.event-list { position:relative; gap:0; padding:4px 0; } .timeline-row { display:grid; grid-template-columns:1fr 1fr; min-height:48px; position:relative; } .timeline-row::before { content:""; position:absolute; top:0; bottom:0; left:50%; border-left:1px solid var(--line); } .timeline-content { display:flex; align-items:center; gap:8px; width:calc(100% - 14px); padding:5px 10px; border:1px solid var(--line); border-radius:10px; font-size:13px; background:white; z-index:1; } .timeline-row.home .timeline-content { grid-column:1; justify-self:end; justify-content:flex-end; text-align:right; } .timeline-row.away .timeline-content { grid-column:2; justify-self:start; } .event-icon { font-size:17px; line-height:1; } .timeline-row .event-minute { display:inline-flex; align-items:center; justify-content:center; min-width:28px; height:28px; padding:0 5px; border-radius:50%; color:#17202a; background:#e6ebf0; font-size:11px; font-weight:700; } .timeline-row .sub-in,.timeline-row .sub-out { display:block; } .timeline-row .sub-in { color:#168557; } .timeline-row .sub-out { color:#b83b3b; } .timeline-row.home .timeline-content:has(.sub-in), .timeline-row.away .timeline-content:has(.sub-in) { display:grid; grid-template-columns:1fr auto auto; } .timeline-row.home .timeline-content:has(.sub-in) .sub-in, .timeline-row.home .timeline-content:has(.sub-in) .sub-out, .timeline-row.away .timeline-content:has(.sub-in) .sub-in, .timeline-row.away .timeline-content:has(.sub-in) .sub-out { grid-column:1; } .timeline-row.home .timeline-content:has(.sub-in) .event-icon, .timeline-row.away .timeline-content:has(.sub-in) .event-icon { grid-column:2; grid-row:1 / span 2; } .timeline-row.home .timeline-content:has(.sub-in) .event-minute, .timeline-row.away .timeline-content:has(.sub-in) .event-minute { grid-column:3; grid-row:1 / span 2; } .timeline-break { display:flex; align-items:center; gap:10px; margin:14px 0; color:var(--muted); font-size:12px; text-align:center; } .timeline-break::before,.timeline-break::after { content:""; height:1px; flex:1; background:var(--line); } .timeline-break span { white-space:nowrap; }
.timeline-row .event-minute { position:absolute; left:50%; z-index:3; transform:translateX(-50%); }
.timeline-row.home .timeline-content { padding-right:26px; }
.timeline-row.away .timeline-content { padding-left:26px; }
.timeline-row .event-icon { position:absolute; top:50%; z-index:3; transform:translateY(-50%); }
.timeline-row.home .event-icon { left:calc(50% - 52px); }
.timeline-row.away .event-icon { left:calc(50% + 26px); }
.timeline-row { grid-template-columns:minmax(0,1fr) 56px minmax(0,1fr); align-items:center; }
.timeline-row::before { left:50%; }
.timeline-team { display:flex; align-items:center; gap:8px; min-height:48px; padding:8px 12px; border:1px solid var(--line); border-radius:10px; background:white; z-index:1; }
.home-side { grid-column:1; justify-content:flex-end; text-align:right; }
.away-side { grid-column:3; justify-content:flex-start; text-align:left; }
.timeline-row > .event-minute { grid-column:2; grid-row:1; position:static; justify-self:center; transform:none; }
.timeline-team .event-icon { position:static; transform:none; flex:0 0 auto; }
.event-copy { display:flex; flex-direction:column; min-width:0; }
.event-copy > span { white-space:nowrap; }
.timeline-break { margin:20px 0; color:var(--accent-dark); font-weight:800; text-transform:uppercase; }
.timeline-break::before,.timeline-break::after { height:2px; background:var(--accent); opacity:.5; }
.timeline-break span { padding:7px 14px; border:1px solid #a7dfcc; border-radius:999px; background:#e6f7f0; box-shadow:0 3px 10px rgba(13,143,104,.12); }
.toast { position:fixed; right:20px; bottom:20px; max-width:360px; padding:12px 16px; border-radius:10px; color:white; background:#b83b3b; box-shadow:var(--shadow); opacity:0; pointer-events:none; transition:opacity .2s; } .toast.visible { opacity:1; }
@media (max-width:800px) { .layout { grid-template-columns:1fr; margin-top:18px; padding:0 14px; } .sidebar { position:static; } .detail-grid,.age-stats-list,.season-age-grid,.player-stats-columns { grid-template-columns:1fr; } .summary-grid { grid-template-columns:repeat(2,1fr); } .topbar { padding:22px 20px; } }
