/* Player profile shares the app's charcoal surfaces and purple accent. */
#detail-modal { padding:24px; backdrop-filter:blur(8px); }
#detail-modal .modal-sheet { width:min(940px,100%); background:var(--bg); color:var(--ink); border:1px solid var(--line); padding:0; border-radius:20px; max-height:92dvh; overflow-y:auto; -webkit-overflow-scrolling:touch; display:flex; flex-direction:column; }
#detail-modal .sheet-handle { display:none; }
#detail-modal .sheet-head { margin:0; padding:16px 24px; align-items:center; border-bottom:1px solid var(--line); background:var(--card); position:sticky; top:0; z-index:10; }
#detail-modal .btn-close { width:36px;height:36px; }
#detail-modal .detail-hero, .player-page .detail-hero { padding:26px 24px; margin:0; background:var(--card); border:0; gap:20px; flex-shrink:0; }
#detail-modal .detail-hero-avatar-wrap, #detail-modal .detail-hero-avatar, .player-page .detail-hero-avatar-wrap, .player-page .detail-hero-avatar { width:88px;height:88px; }
#detail-modal .detail-hero-avatar, .player-page .detail-hero-avatar { border-radius:50%; background:var(--soft); }
#detail-modal .detail-hero-name, .player-page .detail-hero-name { font-size:28px; letter-spacing:-.04em; }
#detail-modal .detail-hero-club-crest, .player-page .detail-hero-club-crest { width:28px;height:28px; }
#detail-modal .health-grid, .player-page .health-grid { margin:0; padding:0 24px 24px; gap:0; background:var(--card); flex-shrink:0; display:grid; grid-template-columns:repeat(4,1fr); }
#detail-modal .health-card, .player-page .health-card { background:transparent;border:0;border-right:1px solid var(--line);border-radius:0;padding:8px 18px;gap:6px;display:flex;flex-direction:column; }
#detail-modal .health-card:first-child, .player-page .health-card:first-child { padding-left:0; }
#detail-modal .health-card:last-child, .player-page .health-card:last-child { border:0; }
#detail-modal .health-card strong, .player-page .health-card strong { font-size:25px;font-variant-numeric:tabular-nums; }
.detail-nav { display:flex;gap:24px;padding:0 24px;background:var(--card);border-bottom:1px solid var(--line); position:sticky; top:68px; z-index:9; }
.detail-nav button { position:relative; padding:16px 0;background:transparent;color:var(--muted);font-size:13px;font-weight:650;white-space:nowrap;cursor:pointer;border:none; }
.detail-nav button[aria-selected="true"] { color:var(--ink); }
.detail-nav button[aria-selected="true"]::after { content:'';position:absolute;bottom:0;left:0;right:0;height:3px;background:var(--accent);border-radius:3px 3px 0 0; }
.detail-nav button span { font-size:10px;padding:2px 5px;background:var(--soft);border-radius:4px;margin-left:4px; }
#detail-modal [role="tabpanel"], .player-page [role="tabpanel"] { padding:24px 24px 90px; flex:1; }
#detail-modal [hidden], .player-page [hidden] { display:none!important; }
.detail-section-heading { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px; }
.detail-section-heading h3,.detail-match-summary h3 { font-size:16px;letter-spacing:-.02em;margin:0; }
.detail-section-heading p,.detail-caption { font-size:11px;color:var(--muted);line-height:1.6;margin:5px 0 0; }
.detail-form-strip { display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:24px; }
.detail-form-strip button { display:flex;align-items:center;flex-direction:column;gap:10px;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:18px 8px;color:var(--ink);transition:background .15s,border-color .15s;cursor:pointer; }
.detail-form-strip button:hover { background:var(--soft-hover);border-color:var(--accent); }
.detail-form-strip strong { font-size:11px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.detail-form-strip small { font-size:10px;color:var(--muted); }
#detail-modal .rating-mini-badge, .player-page .rating-mini-badge { min-width:38px;padding:6px 8px;font-size:14px;font-weight:750;border-radius:6px; }
.detail-profile-card { padding:20px;background:var(--card);border:1px solid var(--line);border-radius:12px; }
#detail-modal .skill-bars-box, .player-page .skill-bars-box { background:transparent;border:0;padding:4px 0; }
#detail-modal .skill-bar-row, .player-page .skill-bar-row { padding:8px 0; }
#detail-modal .skill-track, .player-page .skill-track { background:var(--line);height:6px; }
#detail-modal .skill-fill, .player-page .skill-fill { border-radius:6px; }
#detail-modal .player-chart-card,#detail-modal .stat-tile,#detail-modal .match-timeline-box, .player-page .player-chart-card, .player-page .stat-tile, .player-page .match-timeline-box { background:var(--card);border:1px solid var(--line);border-radius:12px; }
#detail-modal .chart-canvas-wrap, .player-page .chart-canvas-wrap { height:260px; }
#detail-modal .chart-header-row, .player-page .chart-header-row { flex-wrap:wrap;gap:16px; }
#detail-modal .stat-tile, .player-page .stat-tile { padding:18px; }
#detail-modal .stat-tile h4, .player-page .stat-tile h4 { margin:0 0 14px;font-size:13px; }
#detail-modal .stat-row, .player-page .stat-row { padding:9px 0;border-bottom:1px solid var(--line);font-size:12px; }
.detail-match-label { display:block;font-size:11px;color:var(--muted);margin-bottom:8px; }
#detail-match-select { width:100%;padding:12px;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:8px;font:inherit; }
.detail-match-summary { display:flex;align-items:center;justify-content:space-between;padding:22px 0; }
#detail-modal .sheet-actions-bar, .player-page .sheet-actions-bar { position:sticky;bottom:0;margin-top:auto;padding:16px 24px;background:var(--card);border-top:1px solid var(--line);z-index:10; }
#detail-modal .btn-sheet-secondary, .player-page .btn-sheet-secondary { background:var(--soft);color:var(--ink);border:1px solid var(--line); }
#detail-modal button:focus-visible,#detail-match-select:focus-visible, .player-page button:focus-visible { outline:2px solid var(--accent);outline-offset:3px; }
#detail-modal .match-timeline-box, .player-page .match-timeline-box { overflow-x:auto; }
@media(max-width:600px) {
  #detail-modal { padding:0;align-items:flex-end; }
  #detail-modal .modal-sheet { border-radius:18px 18px 0 0;max-height:96dvh; }
  #detail-modal .sheet-head { padding:12px 16px; }
  #detail-modal .detail-hero { padding:20px 16px;gap:14px; }
  #detail-modal .detail-hero-name { font-size:22px; }
  #detail-modal .detail-hero-avatar-wrap,#detail-modal .detail-hero-avatar { width:64px;height:64px; }
  #detail-modal .health-grid { grid-template-columns:repeat(2,1fr);padding:0 16px 16px;gap:12px; }
  #detail-modal .health-card { padding:8px 0;border:0; }
  #detail-modal .health-card strong { font-size:23px; }
  .detail-nav { gap:20px;padding:0 16px;overflow-x:auto; }
  .detail-nav button { font-size:12px; }
  #detail-modal [role="tabpanel"] { padding:20px 16px; }
  .detail-form-strip { display:flex;overflow-x:auto;padding-bottom:6px; }
  .detail-form-strip button { min-width:102px; }
  #detail-modal .sheet-actions-bar { padding:12px 16px;padding-bottom:max(12px,env(safe-area-inset-bottom));flex-wrap:wrap; }
  #detail-modal .btn-sheet-primary { flex-basis:100%; }
  #detail-modal .stat-bars-grid { grid-template-columns:1fr; }
}
/* Sofascore Authentic Dark Theme: Pure Black Background, Charcoal Slate Cards (#171C1F), Rare Accent, Flat (No Gradients) */
:root {
  color-scheme: dark;
  --bg: #000000;
  --card: #171C1F;
  --soft: #111517;
  --soft-hover: #1D2327;
  --ink: #FFFFFF;
  --muted: #8C96A0;
  --line: #22282C;
  --line-subtle: #1C2225;
  --accent: #7C4DFF;
  --accent-hover: #916BFF;
  --accent-text: #A78BFA;
  --accent-soft: rgba(124, 77, 255, 0.12);
  --accent-medium: rgba(124, 77, 255, 0.22);
  --accent-border: rgba(124, 77, 255, 0.35);
  --green: #00B140;
  --green-soft: rgba(0,177,64,.12);
  --red: #EF4444;
  --red-soft: rgba(239,68,68,.12);
  --amber: #EAB308;
  --amber-soft: rgba(234,179,8,.12);
  --sofa-cyan: #00A3E0;
  --sofa-green: #00B140;
  --sofa-yellow: #EAB308;
  --sofa-orange: #F97316;
  --sofa-red: #EF4444;
  --green-sofa: var(--green);
  --button-bg: var(--accent);
  --button-fg: #FFF;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.8);
}
body { background: var(--bg); color:var(--ink); font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; }
button { color:inherit; }
button, a, input, select { -webkit-tap-highlight-color:transparent; }
button:focus-visible,a:focus-visible,[tabindex]:focus-visible,summary:focus-visible { outline:2px solid var(--accent-text); outline-offset:4px; }
input:focus-visible,select:focus-visible { outline:2px solid var(--accent-text); outline-offset:3px; }
button:disabled { cursor:default; opacity:.5; }
svg.lucide { width:18px; height:18px; flex-shrink:0; stroke-width:1.8; }
.mint { color:var(--green); }.violet { color:var(--accent-text); }.amber { color:var(--amber); }

/* Header (Sofascore Pure Dark Navbar) */
.header { background:#000000; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:50; }
.header-inner { max-width:1440px; height:68px; padding:0 32px; gap:24px; display:flex; align-items:center; justify-content:space-between; }
.brand { color:var(--ink); gap:10px; font-size:23px; display:flex; align-items:center; cursor:pointer; background:none; border:none; padding:0; }
.brand-logo { height:26px; width:auto; max-width:60px; object-fit:contain; display:block; flex-shrink:0; }
.brand-beta { font-size:9px;letter-spacing:.12em;color:var(--muted);border:1px solid var(--line);padding:2px 5px;border-radius:4px;margin-left:2px; }

/* Sticky Header Search */
.header-search { position:relative;display:flex;align-items:center;background:#171C1F;border:1px solid var(--line);border-radius:8px;height:38px;width:100%;max-width:340px;padding:0 12px;gap:9px;transition:all 0.15s ease;flex:1 1 280px; }
.header-search:focus-within { border-color:var(--accent);background:#1D2327; }
.header-search-icon { color:var(--muted);width:15px;height:15px;flex-shrink:0; }
.header-search input { background:transparent;border:none;color:var(--ink);font-size:12px;flex:1;min-width:0;height:100%; }
.header-search input::placeholder { color:var(--muted);font-size:12px; }
.header-search input::-webkit-search-cancel-button { display:none; }
.header-search-clear { color:var(--muted);width:20px;height:20px;display:flex;align-items:center;justify-content:center;border-radius:50%;cursor:pointer;background:transparent;border:none;padding:0;flex-shrink:0;transition:all 0.15s; }
.header-search-clear:hover { color:var(--ink);background:#22282C; }
.header-search-clear svg { width:13px;height:13px; }
.header-search-kbd { display:flex;align-items:center;pointer-events:none;flex-shrink:0; }
.header-search-kbd kbd { background:#111517;border:1px solid var(--line);color:var(--muted);font-size:10px;font-family:inherit;padding:2px 5px;border-radius:4px;line-height:1; }
.header-search-dropdown { position:absolute;top:calc(100% + 6px);left:0;right:0;min-width:340px;background:#171C1F;border:1px solid var(--line);border-radius:10px;box-shadow:0 16px 36px rgba(0,0,0,0.8);overflow:hidden;z-index:120;max-height:450px;overflow-y:auto; }
.search-dropdown-item { display:flex;align-items:center;gap:12px;padding:10px 14px;cursor:pointer;border-bottom:1px solid var(--line);transition:background 0.15s ease;text-align:left;width:100%;background:transparent;border-left:none;border-right:none;border-top:none; }
.search-dropdown-item:last-child { border-bottom:none; }
.search-dropdown-item:hover, .search-dropdown-item:focus-visible { background:#1D2327;outline:none; }
.search-dropdown-avatar { width:36px;height:36px;border-radius:50%;object-fit:cover;background:var(--soft);flex-shrink:0; }
.search-dropdown-info { flex:1;min-width:0; }
.search-dropdown-name { font-size:12px;font-weight:650;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.search-dropdown-meta { font-size:10px;color:var(--muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.search-dropdown-right { text-align:right;flex-shrink:0; }
.search-dropdown-value { font-size:11px;font-weight:700;color:var(--ink); }
.search-dropdown-footer { padding:10px 14px;font-size:11px;font-weight:600;color:var(--accent-text);background:#111517;display:flex;align-items:center;justify-content:space-between;cursor:pointer;border-top:1px solid var(--line);border-bottom:none;border-left:none;border-right:none;width:100%;text-align:left; }
.search-dropdown-footer:hover { background:#171C1F;color:var(--ink); }
.search-dropdown-empty { padding:24px 16px;text-align:center;font-size:12px;color:var(--muted); }

/* Navigation Tabs (Sofascore White Active Pill) */
.nav-segmented { align-self:center;background:none;padding:0;border-radius:0;gap:8px;display:flex; }
.nav-seg-btn { position:relative;padding:8px 16px;border-radius:8px;font-size:12.5px;font-weight:600;gap:8px;color:var(--muted);transition:all 0.15s ease;display:flex;align-items:center; }
.nav-seg-btn:hover { color:var(--ink);background:var(--card); }
.nav-seg-btn.active { color:#000000;background:#FFFFFF;box-shadow:none;font-weight:700; }
.nav-seg-btn.active svg { color:#000000; }
.nav-seg-btn.active::after { display:none; }
.header-right { gap:16px;display:flex;align-items:center; }
.header-club-level { display:inline-flex;align-items:center;gap:8px;min-width:0;padding:0;border:0;background:none;color:var(--ink);font:inherit;text-align:left;cursor:pointer;white-space:nowrap; }
.header-club-level-copy { display:flex;flex-direction:column;gap:4px;min-width:0;line-height:1.1; }
.header-club-level .sq-level-emblem { width:25px;height:32px;filter:drop-shadow(0 3px 6px #0006); }
.header-club-level-placeholder { display:grid;place-items:center;width:25px;height:32px;color:var(--accent-text); }
.header-club-level-placeholder svg { width:18px;height:18px; }
.header-club-level-copy small,.header-club-points small { display:block;overflow:hidden;text-overflow:ellipsis;color:var(--muted);font-size:9px;letter-spacing:.08em;font-weight:700; }
.header-club-level-copy b { display:block;overflow:hidden;text-overflow:ellipsis;color:var(--ink);font-size:12px;font-weight:600;letter-spacing:-.01em; }
.header-club-points { display:flex;flex-direction:column;gap:4px;min-width:74px;padding-left:10px;border-left:1px solid var(--line);line-height:1.1; }
.header-club-points b { display:flex;align-items:baseline;gap:5px;color:var(--ink);font-size:12px;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap; }
.header-club-points i { font-style:normal;font-size:10px;font-weight:700; }
.header-club-points .sq-positive { color:var(--green)!important; }
.header-club-points .sq-negative { color:#ff8585!important; }
.header-club-level:hover .header-club-level-copy b { color:var(--accent-text); }
.header-club-level:focus-visible { outline:2px solid var(--accent-text);outline-offset:3px;border-radius:5px; }
.header-avatar { height:34px;width:34px;display:grid;place-items:center;background:var(--card);border:1px solid var(--line);border-radius:50%;color:var(--muted);cursor:pointer; }
.header-avatar:hover { color:var(--ink);border-color:#38424A; }
.data-status { display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted);white-space:nowrap; }
.data-status>span { width:6px;height:6px;border-radius:50%;background:var(--green); }

/* Layout Shell */
.app-shell { max-width:1440px;margin:auto;display:grid;grid-template-columns:216px minmax(0,1fr); }
.sidebar { position:sticky;top:68px;height:calc(100vh - 68px);overflow:auto;padding:26px 18px 24px 24px;border-right:1px solid var(--line);scrollbar-width:thin;background:#000000; }
.rail-label { font-size:9px;font-weight:700;letter-spacing:.12em;color:var(--muted);margin:0 10px 12px; }
.rail-link { width:100%;display:flex;gap:10px;align-items:center;min-height:38px;padding:9px 12px;border-radius:8px;font-size:11.5px;color:var(--muted);text-align:left;margin:2px 0;transition:all 0.15s; }
.rail-link:hover { color:var(--ink);background:var(--card); }
.rail-link.active { color:var(--ink);background:var(--card);border:1px solid var(--line);font-weight:650; }
.rail-divider { height:1px;background:var(--line);margin:18px 10px; }
.rail-league { display:flex;align-items:center;text-align:left;gap:9px;width:100%;padding:10px 8px;font-size:11px;border-radius:8px;cursor:pointer; }
.rail-league:hover { background:var(--card); }
.league-emblem { width:26px;height:26px;display:grid;place-items:center;background:var(--card);border-radius:6px;font-size:14px;overflow:hidden; }
.league-emblem img { width:20px;height:20px;object-fit:contain; }
.rail-league small { display:block;margin-top:2px;font-size:9px;color:var(--muted); }
.rail-league svg { margin-left:auto;width:13px;color:var(--muted); }
.unavailable { opacity:.55; }
.rail-note { border:1px solid var(--line);background:var(--card);border-radius:10px;padding:14px 12px;margin-top:24px; }
.rail-note>svg { color:var(--accent-text);width:22px;height:22px;margin-bottom:10px; }
.rail-note strong { display:block;font-size:12px;color:var(--ink); }
.rail-note p { color:var(--muted);font-size:10px;line-height:1.5;margin-top:4px; }
.rail-note button { color:var(--accent-text);font-size:10.5px;font-weight:600;display:flex;gap:6px;align-items:center;margin-top:12px;cursor:pointer; }
.rail-note button:hover { color:var(--ink); }
.rail-note button svg { width:13px; }
.rail-help { font-size:10.5px;color:var(--muted);display:flex;gap:8px;align-items:center;padding:18px 8px 10px;cursor:pointer; }
.rail-help:hover { color:var(--ink); }
.rail-help svg { width:15px; }
.rail-footer { font-size:9px;color:var(--muted);letter-spacing:.12em;padding:0 8px; }

/* Main Container & Headings */
.container { width:100%;max-width:none;min-width:0;padding:24px 28px 40px;background:#000000; }
.page-heading { display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px; }
.breadcrumb { display:flex;align-items:center;gap:6px;font-size:10px;color:var(--muted);margin-bottom:6px; }
.breadcrumb svg { width:12px;height:12px; }
.page-heading h1 { font-size:22px;font-weight:750;letter-spacing:-.04em;line-height:1.2;color:var(--ink); }
.page-heading p { font-size:12px;line-height:1.6;color:var(--muted);margin-top:6px; }
.snapshot-label { font-size:10px;display:flex;gap:6px;align-items:center;color:var(--muted); }
.snapshot-label svg { width:12px; }

/* Flat Discovery Hero (NO GRADIENT) */
.discovery-hero { display:grid;grid-template-columns:1.12fr 1fr;min-height:260px;border:1px solid var(--line);border-radius:12px;overflow:hidden;position:relative;background:var(--card); }
.hero-copy { padding:26px;position:relative;z-index:1; }
.eyebrow { display:flex;align-items:center;gap:7px;font-size:9px;font-weight:700;letter-spacing:.13em;color:var(--muted); }
.eyebrow>span { height:5px;width:5px;background:var(--accent);border-radius:50%; }
.hero-copy h2 { font-size:clamp(26px,2.7vw,36px);line-height:1.14;font-weight:750;letter-spacing:-.045em;margin-top:14px;color:var(--ink); }
.hero-copy h2>span { color:var(--accent-text); }
.hero-copy p { font-size:12px;line-height:1.7;color:var(--muted);margin-top:10px; }
.hero-actions { display:flex;align-items:center;gap:14px;margin-top:20px; }
.primary-action { display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--accent);color:#fff;font-size:11.5px;font-weight:650;padding:10px 18px;border-radius:8px;min-height:38px;transition:background .15s; }
.primary-action:hover { background:var(--accent-hover); }
.primary-action svg { width:14px;height:14px; }
.quiet-action { display:flex;align-items:center;gap:6px;font-size:11px;font-weight:600;color:var(--muted);cursor:pointer; }
.quiet-action:hover { color:var(--ink); }
.quiet-action svg { width:14px; }

/* Flat Spotlight (NO GLOW BLOBS) */
.spotlight { padding:22px;display:flex;flex-direction:column;justify-content:center;position:relative;min-width:0;background:#111517;border-left:1px solid var(--line); }
.spotlight::before { display:none; }
.spotlight-label { font-size:9px;font-weight:700;color:var(--muted);display:flex;align-items:center;gap:6px;letter-spacing:.08em;margin-bottom:12px; }
.spotlight-label svg { width:13px;height:13px; }
.spotlight-person { display:flex;align-items:center;gap:16px;position:relative; }
.spotlight-portrait { position:relative;flex-shrink:0; }
.spotlight-portrait img { width:78px;height:78px;object-fit:cover;border-radius:50%;border:2px solid var(--line);background:var(--card); }
.spotlight-portrait>span { position:absolute;right:0;bottom:-2px;background:var(--green);color:#000;padding:2px 6px;border:2px solid #111517;border-radius:6px;font-size:11px;font-weight:800; }
.spotlight-person h3 { font-size:21px;font-weight:750;letter-spacing:-.03em;line-height:1.2;color:var(--ink); }
.spotlight-person p { font-size:11px;color:var(--muted);margin-top:5px; }
.spotlight-value-row { display:flex;align-items:baseline;gap:10px;margin-top:10px; }
.spotlight-value-row strong { font-size:19px;letter-spacing:-.04em;color:var(--ink); }
.spotlight-value-row small { font-size:10px;color:var(--green);font-weight:650; }
.spotlight-metrics { display:grid;grid-template-columns:repeat(3,1fr);margin-top:18px;padding-top:12px;border-top:1px solid var(--line); }
.spotlight-metrics>div { border-right:1px solid var(--line);padding-left:14px; }
.spotlight-metrics>div:first-child { padding-left:0; }
.spotlight-metrics>div:last-child { border:0; }
.spotlight-metrics small { display:block;font-size:9px;letter-spacing:.04em;color:var(--muted);margin-bottom:4px; }
.spotlight-metrics strong { font-size:16px;color:var(--ink); }
.spotlight-metrics strong>span { font-size:10px;color:var(--muted);font-weight:400; }
.spotlight-open { position:absolute;top:18px;right:18px;color:var(--muted);width:28px;height:28px;border-radius:50%;border:1px solid var(--line);display:grid;place-items:center; }
.spotlight-open:hover { color:var(--ink);background:var(--card); }

/* Discovery Search */
.discovery-search { display:flex;align-items:center;gap:12px;background:var(--card);border:1px solid var(--line);padding:0 15px;height:46px;border-radius:8px;margin:16px 0 22px; }
.discovery-search>svg { color:var(--muted);width:16px; }
.discovery-search input { background:transparent;border:none;min-width:0;flex:1;font-size:12px;color:var(--ink);height:36px; }
.discovery-search input::placeholder { color:var(--muted); }
.search-hint { font-size:8px;color:var(--muted);letter-spacing:.12em; }
.discovery-search button { color:var(--muted);width:30px;height:34px;display:grid;place-items:center; }

/* Panels & Radar (Sofascore Cards) */
.home-layout { grid-template-columns:minmax(0,1fr) 290px;gap:20px;align-items:start; }
.home-col-main,.home-col-side { min-width:0; }
.home-panel { padding:16px 18px;margin-bottom:20px;border:1px solid var(--line);border-radius:12px;background:var(--card);box-shadow:none; }
.home-panel-header { gap:8px;margin-bottom:14px;display:flex;justify-content:space-between;align-items:flex-start; }
.home-panel-title { font-size:13px;font-weight:700;display:flex;align-items:center;gap:8px;color:var(--ink); }
.home-panel-title svg { width:15px;height:15px;color:var(--muted); }
.panel-caption { font-size:10px;color:var(--muted);line-height:1.5;margin-top:3px; }
.text-link { display:flex;align-items:center;gap:4px;font-size:11px;font-weight:600;color:var(--accent-text);white-space:nowrap;cursor:pointer; }
.text-link:hover { color:var(--ink); }
.text-link svg { width:13px;height:13px; }

.radar-tabs { display:flex;border-bottom:1px solid var(--line);gap:16px;margin-bottom:2px; }
.radar-tabs button { padding:0 0 10px;position:relative;color:var(--muted);font-size:11px;font-weight:600;cursor:pointer; }
.radar-tabs button:hover { color:var(--ink); }
.radar-tabs button.active { color:var(--ink);font-weight:700; }
.radar-tabs button.active::after { content:"";position:absolute;bottom:-1px;left:0;right:0;height:2px;background:var(--accent); }

.radar-table-head,.radar-row { display:grid;grid-template-columns:minmax(125px,1fr) 42px 42px 86px 26px;gap:10px;align-items:center; }
.radar-table-head { font-size:8.5px;letter-spacing:.04em;color:var(--muted);padding:12px 0 8px;border-bottom:1px solid var(--line); }
.radar-table-head span:nth-child(4) { text-align:right; }
.radar-row { border-bottom:1px solid var(--line);padding:11px 0;transition:background 0.15s; }
.radar-row:last-child { border-bottom:0; }
.radar-row:hover { background:var(--soft); }
.radar-person { display:flex;align-items:center;gap:10px;text-align:left;min-width:0; }
.radar-person img { width:34px;height:34px;border-radius:50%;object-fit:cover;background:var(--soft);flex-shrink:0;border:1px solid var(--line); }
.radar-person>span { min-width:0; }
.radar-person strong { display:block;font-size:11.5px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink); }
.radar-person small { display:block;font-size:9.5px;color:var(--muted);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.radar-ovr { font-size:12px;font-weight:600;color:var(--ink); }
.radar-value { text-align:right; }
.radar-value strong { font-size:11.5px;display:block;color:var(--ink); }
.radar-value small { font-size:9px;display:block;margin-top:3px; }
.radar-more { width:26px;height:30px;display:grid;place-items:center;color:var(--muted); }
.radar-more svg { width:14px; }
.panel-footnote { font-size:9px;color:var(--muted);line-height:1.6;display:flex;align-items:center;gap:6px;margin-top:12px; }
.panel-footnote svg { width:12px;height:12px; }
.count-badge { font-size:9px;color:var(--muted);background:var(--soft);padding:4px 8px;border-radius:5px;white-space:nowrap;border:1px solid var(--line); }
.panel-header-action { display:flex;align-items:center;gap:6px; }
.panel-league-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%238E9CA8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 7px center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-family: inherit;
  font-size: 10px;
  font-weight: 650;
  padding: 3px 22px 3px 9px;
  cursor: pointer;
  transition: all 0.15s ease;
  max-width: 140px;
  text-overflow: ellipsis;
  outline: none;
  letter-spacing: -0.01em;
}
.panel-league-select:hover {
  border-color: var(--accent);
  background-color: #21292f;
}
.panel-league-select:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(124, 92, 255, 0.25);
}

/* Flat Squad Invite Card (NO GRADIENT) */
.squad-invite { background:var(--card);border:1px solid var(--line);border-radius:12px;padding:20px;margin-bottom:20px; }
.squad-invite-top { display:flex;justify-content:space-between;align-items:center;gap:6px; }
.squad-invite-top .eyebrow { font-size:8.5px;letter-spacing:.08em; }
.squad-invite-top>svg { color:var(--muted);height:20px;width:20px; }
.squad-invite h2 { font-size:20px;line-height:1.2;letter-spacing:-.03em;margin:16px 0 8px;color:var(--ink); }
.squad-invite p { font-size:11px;color:var(--muted);line-height:1.6; }
.squad-invite-stats { display:flex;justify-content:space-between;align-items:end;gap:8px;padding:16px 0;border-top:1px solid var(--line);margin-top:14px; }
.squad-invite-stats small { font-size:8.5px;letter-spacing:.06em;color:var(--muted);display:block;margin-bottom:5px; }
.squad-invite-stats strong { font-size:22px;letter-spacing:-.04em;color:var(--ink); }
.squad-invite-stats>span { font-size:10px;color:var(--muted);padding-bottom:4px; }
.squad-invite .primary-action { width:100%;justify-content:space-between; }

/* Upcoming squad fixtures reuse the same match-list language as the general feed. */
.squad-fixtures-panel { padding-bottom:16px; }
.squad-fixtures-panel .home-panel-header { margin-bottom:14px; }
.squad-fixtures-panel .sofa-matches-wrapper { margin-bottom:0; }
.squad-fixtures-panel .sofa-match-row { cursor:pointer; }
.squad-fixtures-panel .squad-fixture-time-col { flex-direction:column;align-items:center;justify-content:center;gap:2px; }
.squad-fixtures-panel .squad-fixture-countdown { color:#fff;font-size:8.5px;font-weight:650;line-height:1.2;letter-spacing:0;white-space:nowrap; }
.squad-fixtures-panel .squad-fixture-time { color:#fff;font-size:10px;font-weight:700;letter-spacing:.02em; }
.squad-fixtures-panel .fixture-team-owned .sofa-team-name { color:#fff; }
.squad-fixtures-panel .fixture-team-owned-mark { background:transparent;color:#fff; }
.squad-fixtures-panel .fixture-squad-note { display:flex;align-items:center;flex-wrap:wrap;gap:4px 6px;color:#fff; }
.squad-fixtures-panel .fixture-squad-chip { display:inline-flex;align-items:center;gap:4px;padding:2px 6px;border:1px solid var(--accent-border);border-radius:999px;background:var(--accent-soft);color:var(--accent-text); }
.squad-fixtures-panel .fixture-squad-chip svg { width:11px;height:11px;color:var(--accent-text); }
.squad-fixtures-panel .fixture-squad-label { color:var(--accent-text);font-size:8.5px;font-weight:700; }
.squad-fixtures-panel .fixture-squad-players { display:inline-flex;align-items:center;flex-wrap:wrap;gap:4px 7px;min-width:0; }
.squad-fixtures-panel .fixture-squad-player { display:inline-flex;align-items:center;gap:3px;min-width:0;color:#fff;font-size:8.5px;font-weight:650;line-height:1.2; }
.squad-fixtures-panel .fixture-squad-player>span:last-child { max-width:92px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.squad-fixtures-panel .fixture-squad-player-avatar { width:16px;height:16px;flex:0 0 16px;border-radius:50%;object-fit:cover;background:#30383a;border:1px solid #566166; }
.squad-fixtures-panel .fixture-squad-player-avatar-fallback { display:inline-grid;place-items:center;color:#fff;font-size:6px;font-weight:750; }
.squad-fixtures-panel .fixture-squad-player-more { color:#fff;font-size:8.5px;font-weight:700;white-space:nowrap; }
.squad-fixtures-empty { padding:4px 2px 1px;color:var(--muted);font-size:10px;line-height:1.55; }
.squad-fixtures-empty strong { display:block;color:var(--ink);font-size:11px;font-weight:650; }
.squad-fixtures-empty p { margin-top:4px; }
.squad-fixtures-empty button { display:inline-flex;align-items:center;gap:5px;margin-top:9px;color:var(--accent-text);font-size:10px;font-weight:650;cursor:pointer; }
.squad-fixtures-empty button svg { width:12px;height:12px; }

/* Standings */
.standings-table { font-size:10px;width:100%;border-collapse:collapse; }
.standings-table th { font-size:9px;font-weight:500;color:var(--muted);padding-bottom:8px;border-bottom:1px solid var(--line);text-align:left; }
.standings-table td { padding:9px 3px;border-bottom:1px solid var(--line); }
.standings-pos { font-size:10px;color:var(--muted); }
.standings-team { font-weight:600;color:var(--ink); }
.standings-pts { font-weight:750;color:var(--ink); }
.standings-panel .home-panel-title { font-size:12px; }
.panel-bottom-link { display:flex;align-items:center;justify-content:center;gap:6px;color:var(--accent-text);font-size:11px;font-weight:600;width:100%;padding-top:14px;cursor:pointer; }
.panel-bottom-link:hover { color:var(--ink); }
.panel-bottom-link svg { width:12px;height:12px; }
.power-meta { font-size:12px;display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;color:#FFFFFF; }
.power-team-name { display:inline-flex;align-items:center;gap:8px;color:#FFFFFF;font-weight:650; }
.power-team-name span { color:#FFFFFF; }
.power-team-crest { width:18px;height:18px;object-fit:contain;flex-shrink:0;border-radius:3px; }
.power-val { color:#FFFFFF!important;font-weight:750;font-size:12.5px;font-variant-numeric:tabular-nums; }
.power-meta span:last-child { color:#FFFFFF!important;font-weight:750; }
.power-track { height:5px;background:var(--soft);border-radius:3px;overflow:hidden; }
.power-row { margin-bottom:14px; }
.power-fill { background:var(--accent);height:100%; }

/* Sofascore Date Stepper */
.date-stepper-bar { display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;flex-wrap:wrap; }
.date-stepper { display:inline-flex;align-items:center;background:var(--soft);border:1px solid var(--line);border-radius:8px;padding:3px;gap:4px; }
.date-step-arrow { width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:6px;color:var(--muted);cursor:pointer;background:transparent;border:none;transition:all 0.15s ease; }
.date-step-arrow:hover:not(:disabled) { background:var(--card);color:var(--ink); }
.date-step-arrow:disabled { opacity:0.25;cursor:not-allowed; }
.date-step-arrow svg { width:15px;height:15px; }
.date-step-center { display:inline-flex;align-items:center;gap:8px;padding:5px 12px;border-radius:6px;background:var(--card);border:1px solid var(--line);color:var(--ink);cursor:pointer;transition:all 0.15s ease;user-select:none; }
.date-step-center:hover { background:var(--soft-hover);border-color:#2F3840; }
.date-step-badge { font-size:9.5px;font-weight:700;padding:2px 6px;border-radius:4px;background:var(--soft);color:var(--muted);display:inline-flex;align-items:center;gap:4px; }
.date-step-badge.today { background:var(--green-soft);color:var(--green); }
.date-step-badge.upcoming { background:rgba(59,130,246,0.12);color:#60A5FA; }
.date-step-badge.past { background:var(--soft);color:var(--muted); }
.date-step-main { font-size:12px;font-weight:650;color:var(--ink); }
/* Sofascore Compact Match Rows */
.sofa-matches-wrapper { background:var(--card);border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:16px; }
.sofa-league-header { display:flex;align-items:center;gap:8px;padding:9px 14px;background:#111517;border-bottom:1px solid var(--line);font-size:11px;color:var(--muted); }
.sofa-league-header strong { font-size:11.5px;font-weight:650;color:var(--ink); }
.sofa-league-header span:last-child { margin-left:auto;font-size:9px;letter-spacing:.06em;color:var(--muted); }
.sofa-league-logo { width:19px;height:19px;object-fit:contain;flex:none; }
.sofa-league-fallback { width:19px;height:19px;display:grid;place-items:center;font-size:13px;flex:none; }
.fixture-league-group + .fixture-league-group { border-top:5px solid var(--bg); }
.fixture-date-divider { display:flex;align-items:center;gap:10px;padding:10px 14px 7px;background:var(--bg);color:var(--muted);font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase; }
.fixture-date-divider::after { content:"";height:1px;flex:1;background:var(--line); }
.sofa-match-row { display:grid;grid-template-columns:56px minmax(130px,1fr) auto 28px;align-items:center;gap:12px;padding:10px 14px;border-bottom:1px solid var(--line);background:var(--card);transition:background 0.15s ease;cursor:pointer; }
.sofa-match-row.no-feature,
.sofa-match-row:not(:has(.sofa-feature-col)) { grid-template-columns:56px minmax(130px,1fr) 28px; }
.sofa-match-row:last-child { border-bottom:none; }
.sofa-match-row:hover { background:#1C2226; }
.sofa-time-col { display:flex;align-items:flex-start;justify-content:center;min-height:36px; }
.sofa-match-date { font-size:10.5px;font-weight:550;color:var(--muted);letter-spacing:-0.01em;white-space:nowrap; }
.sofa-match-status { font-size:10px;font-weight:700;color:var(--muted);letter-spacing:0.04em; }
.sofa-match-status.live { color:var(--green); }
.sofa-match-status.upcoming { color:var(--ink);font-weight:650;font-variant-numeric:tabular-nums; }
.sofa-teams-col { display:flex;flex-direction:column;gap:5px;min-width:0; }
.sofa-team-item { display:flex;align-items:center;gap:8px;min-width:0; }
.sofa-team-crest { width:16px;height:16px;border-radius:50%;object-fit:contain;flex-shrink:0; }
.sofa-team-name { font-size:12.5px;font-weight:650;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.fixture-team-owned .sofa-team-name { color:#eee7ff; }
.fixture-team-owned-mark { display:inline-flex;align-items:center;justify-content:center;flex:none;width:15px;height:15px;border-radius:4px;background:var(--accent-soft);color:var(--accent-text); }
.fixture-team-owned-mark svg { width:10px;height:10px; }
.fixture-squad-note { display:inline-flex;align-items:center;gap:4px;color:var(--accent-text);font-size:8.5px;font-weight:700;letter-spacing:.02em;margin-top:1px; }
.fixture-squad-note svg { width:11px;height:11px; }
.sofa-feature-col { display:flex;align-items:center;justify-content:center; }
.sofa-match-mvp { display:inline-flex;align-items:center;gap:6px;background:var(--soft);border:1px solid var(--line);border-radius:6px;padding:3px 7px;font-size:10.5px;transition:all 0.15s ease;cursor:pointer; }
.sofa-match-mvp:hover { background:#1D2327;border-color:#2F3840; }
.sofa-mvp-tag { font-size:8px;font-weight:750;color:var(--accent-text);letter-spacing:0.05em; }
.sofa-mvp-avatar { width:18px;height:18px;border-radius:50%;object-fit:cover;background:#181D20;flex-shrink:0; }
.sofa-mvp-player { font-size:10.5px;font-weight:600;color:var(--ink);max-width:110px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.sofa-mvp-chip { width:26px;height:18px;border-radius:4px;font-size:10px;font-weight:750;display:inline-flex;align-items:center;justify-content:center; }
.sofa-match-upcoming-pill { display:inline-flex;align-items:center;gap:5px;background:var(--soft);border:1px solid var(--line);border-radius:6px;padding:3px 8px;font-size:10.5px;color:var(--muted);font-weight:600; }
.sofa-match-upcoming-pill svg { width:11px;height:11px;color:var(--muted); }
.sofa-score-col { display:flex;flex-direction:column;gap:5px;align-items:flex-end;text-align:right; }
.sofa-score-num { font-size:13px;font-weight:750;color:var(--ink);line-height:16px; }
.sofa-score-num.muted { color:var(--muted);opacity:0.35;font-weight:500; }

@media(max-width:680px){
  .sofa-match-row { grid-template-columns:50px minmax(0,1fr) 28px;gap:8px;padding:9px 10px; }
  .sofa-feature-col { display:none; }
  .sofa-team-name { font-size:12px; }
}

.physical-badge-grid { grid-template-columns:repeat(3,minmax(0,1fr));gap:8px; }
.physical-badge-card { background:var(--soft);padding:12px 6px;border:1px solid var(--line);border-radius:8px; }
.physical-badge-card strong { color:var(--green);font-size:14px;margin:8px 0; }
.physical-badge-card small { font-size:9px;color:var(--muted); }
.physical-badge-card span { font-size:9px;color:var(--ink); }
.page-footer { display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:20px;font-size:10px;color:var(--muted); }
.page-footer button { display:flex;gap:7px;align-items:center;font-size:10px;color:var(--muted);cursor:pointer; }
.page-footer button:hover { color:var(--ink); }
.page-footer svg { width:12px; }
.loading-state { padding:35px 10px;text-align:center;color:var(--muted);font-size:12px; }

/* Market View & Filters */
.discovery-bar { background:var(--card);border:1px solid var(--line);border-radius:12px;padding:14px;margin-bottom:20px; }
.search-pill-box { background:var(--soft);border:1px solid var(--line);box-shadow:none;border-radius:8px; }
.search-pill-box input { color:var(--ink);background:transparent; }
.position-segmented { background:var(--soft);border-radius:8px;padding:3px;gap:2px; }
.pos-seg-btn { color:var(--muted);padding:6px 12px;font-size:11px;border-radius:6px;transition:all 0.15s; }
.pos-seg-btn.active { background:var(--card);color:var(--ink);box-shadow:none;font-weight:700;border:1px solid var(--line); }
.chip { background:var(--soft);color:var(--muted);border:1px solid var(--line);font-size:10px;border-radius:6px;padding:6px 10px;transition:all 0.15s; }
.chip:hover { background:var(--card);color:var(--ink); }
.chip.active { background:var(--card);border-color:var(--accent);color:var(--ink);box-shadow:none; }
.sort-box select { background:transparent;color:var(--ink);padding:6px 8px;border-radius:6px;font-size:11px;border:none; }
.sort-box select option { background:#171C1F;color:#FFFFFF; }
.section-title-bar h2 { font-size:15px; }

/* Player List Column Header */
.player-list-header { display:grid;grid-template-columns:minmax(220px,1fr) 110px 90px 130px 215px;align-items:center;gap:16px;padding:0 18px 8px;font-size:10px;font-weight:700;color:var(--muted);letter-spacing:0.05em;text-transform:uppercase;user-select:none; }
.player-list-header .col-bio { text-align:left; }
.player-list-header .col-form { text-align:center; }
.player-list-header .col-ovr { text-align:center; }
.player-list-header .col-val { text-align:right; }
.player-list-header .col-act { text-align:right; }

/* Player Cards (Sofascore List Style) */
.player-list { display:flex;flex-direction:column;gap:8px;background:transparent;border:none; }
.player-card { background:var(--card);border:1px solid var(--line);border-radius:12px;padding:14px 18px;display:grid;grid-template-columns:minmax(220px,1fr) 110px 90px 130px 215px;align-items:center;gap:16px;box-shadow:none;transition:transform 0.16s ease,background 0.16s ease,border-color 0.16s ease;cursor:pointer; }
.player-card:hover { background:#1D2327;border-color:#2E373E;transform:translateY(-1px); }
.rating-cell { display:flex;align-items:center;justify-content:center;gap:8px;width:110px; }
.power-cell { text-align:center;width:90px; }
.value-cell { text-align:right;width:130px; }
.actions-cell { display:flex;align-items:center;gap:8px;justify-content:flex-end;width:215px; }
.player-avatar { border-radius:50%;width:40px;height:40px;border:1px solid var(--line); }
.player-avatar .club-badge-mini { width:16px;height:16px; }
.player-name-text { font-size:12px;font-weight:650;color:var(--ink); }
.player-meta-text { font-size:10px;color:var(--muted); }
.pill-badge.hype { color:var(--muted);font-size:9.5px;font-weight:500;background:var(--soft);border:1px solid var(--line);border-radius:4px;padding:1.5px 6px;letter-spacing:0.01em; }
.pill-badge.status-missing { background:var(--red-soft);color:var(--red); }
.pill-badge.status-doubtful { background:var(--amber-soft);color:var(--amber); }

/* Sofascore Rating Chips */
.sofa-chip { width:32px;height:23px;font-size:11px;border-radius:5px;font-weight:750;display:inline-flex;align-items:center;justify-content:center; }
.sofa-chip.elite,.sofa-chip.great { background:var(--sofa-cyan);color:#08131D; }
.sofa-chip.neutral { background:var(--sofa-yellow);color:#1B1502; }
.sofa-chip.low,.sofa-chip.poor { background:var(--sofa-red);color:#FFFFFF; }
.sofa-chip.good { background:var(--sofa-green);color:#021508; }

.btn-action { border-radius:6px;cursor:pointer; }
.btn-icon { width:30px;height:30px;border-radius:6px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);background:var(--soft);color:var(--muted);transition:all 0.15s ease; }
.btn-icon:hover { background:var(--soft-hover);color:var(--ink);border-color:#2F3840; }
.btn-icon svg { width:14px;height:14px;color:var(--muted); }
.btn-icon:hover svg { color:var(--ink); }
.btn-action.buy { background:var(--accent);color:#fff;font-weight:600;padding:8px 14px; }
.btn-action.buy:hover { background:var(--accent-hover);box-shadow:none; }
.btn-action.owned { color:var(--green);background:var(--green-soft);border-color:transparent; }
.btn-sheet-primary { background:var(--accent);border-radius:8px; }
.btn-sheet-primary:hover { background:var(--accent-hover); }
.btn-sheet-secondary { background:var(--soft);color:var(--ink);border-color:var(--line);border-radius:8px; }
.sort-box { background:var(--soft);border:1px solid var(--line);border-radius:8px; }
.value-cell small { font-size:9px; }
.btn-reset-squad:hover,.btn-action.sell-mini:hover { background:var(--red-soft); }
.sidebar { scrollbar-color:var(--line) transparent; }
.sidebar::-webkit-scrollbar { width:3px; }
.sidebar::-webkit-scrollbar-thumb { background:var(--line); }

/* Squad & Pitch (NO GRADIENT) */
.wallet-hero { background:var(--card);border:1px solid var(--line);border-radius:12px; }
.squad-toolbar { background:var(--card);padding:8px;border:1px solid var(--line);border-radius:10px; }
.squad-view-toggle { background:var(--soft);border-radius:8px; }
.squad-view-btn { min-height:34px;border-radius:6px;font-size:11px; }
.squad-view-btn.active { background:#FFFFFF;color:#000000;box-shadow:none;font-weight:700; }
.pitch-container { background:#11231F;border:1px solid #1E3A34;box-shadow:none;border-radius:12px; }
.pitch-slot-empty { background:rgba(255,255,255,0.04); }
.pitch-lines,.pitch-penalty-top,.pitch-penalty-bottom,.pitch-center-circle { border-color:rgba(161,208,190,0.25); }
.pitch-half-line { background:rgba(161,208,190,0.25); }
.pitch-slot-val { color:#C4EFDF; }
.bench-card,.pitch-bench { background:var(--card);border:1px solid var(--line); }
.empty-state { background:var(--card);padding:40px 20px;text-align:center;color:var(--muted);font-size:12px;border:1px solid var(--line);border-radius:12px; }
.empty-state strong { color:var(--ink);display:block;margin-bottom:8px;font-size:17px; }
.empty-state button { margin-top:18px; }

/* Modals & Share Canvas (NO GRADIENT) */
.modal-sheet { background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:0 24px 60px rgba(0,0,0,0.9); }
.stat-tile,.skill-bars-box,.chart-card,.metric-card,.player-chart-card,.match-timeline-box { background:var(--card);border-color:var(--line); }
.timeline-toggle-bar { background:var(--soft);border-color:var(--line);color:var(--ink); }
.chart-switch-bar { background:var(--soft);border-color:var(--line); }
.chart-tab.active { background:var(--card);color:var(--ink);border-color:var(--line); }
.meta-tag { background:var(--soft);border-color:var(--line);color:var(--muted); }
.meta-tag.pos-tag { color:var(--ink);border-color:rgba(255,255,255,0.12); }
.skill-label i,.skill-label svg,.stat-tile-title i,.stat-tile-title svg,.sheet-section-title i,.sheet-section-title svg,.chart-title i,.chart-title svg { color:var(--muted); }
.timeline-table td { border-color:var(--line); }
.sheet-section-title { color:var(--ink); }
.sheet-actions-bar { background:var(--card);border-top:1px solid var(--line); }
.health-card { background:var(--soft);border:1px solid var(--line); }
.btn-sheet-primary { color:#fff; }
.modal-sheet input,.modal-sheet select { background:var(--soft)!important;border-color:var(--line)!important;color:var(--ink)!important; }
.share-canvas { background:#111517;border:1px solid var(--line);border-radius:16px;box-shadow:0 16px 40px rgba(0,0,0,0.8); }
.share-canvas::after { display:none; }
.share-brand-tag { color:var(--accent-text);font-weight:700; }
.method-dialog { position:fixed;inset:0;margin:auto;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:16px;padding:30px;width:min(520px,calc(100% - 32px));max-height:90dvh;overflow:auto;box-shadow:0 24px 60px rgba(0,0,0,0.9); }
.method-dialog::backdrop { background:rgba(0,0,0,0.8);backdrop-filter:blur(8px); }
.method-dialog>.btn-close { position:absolute;top:16px;right:16px;color:var(--muted); }
.method-dialog>.btn-close:hover { color:var(--ink); }
.method-dialog h2 { font-size:24px;letter-spacing:-.04em;margin-top:14px;color:var(--ink); }
.method-dialog>p { font-size:12px;color:var(--muted);margin-top:8px; }
.method-item { display:flex;gap:14px;margin-top:24px; }
.method-item>svg { color:var(--accent-text);width:20px;height:20px; }
.method-item h3 { font-size:14px;color:var(--ink); }
.method-item h3 span { color:var(--accent-text);font-size:11px;margin-left:5px; }
.method-item p { font-size:12px;color:var(--muted);line-height:1.7;margin-top:6px; }
.method-note { font-size:10px;line-height:1.7;background:var(--soft);color:var(--muted);padding:14px;border-radius:8px;margin-top:24px;border:1px solid var(--line); }

/* Responsive Media Queries */
@media(min-width:1440px){.container{padding:28px 36px;}.discovery-hero{min-height:280px;}.hero-copy{padding:30px;}.spotlight{padding:28px;}.home-layout{grid-template-columns:minmax(0,1fr) 310px;gap:24px;}.radar-row{padding:13px 0;}.radar-person strong{font-size:12px;}}
@media(max-width:1190px){.header-search{max-width:280px;}.app-shell{grid-template-columns:180px minmax(0,1fr);}.sidebar{padding:24px 12px;}.rail-link{font-size:10px;}.container{padding:22px 18px;}.home-layout{grid-template-columns:minmax(0,1fr) 260px;gap:16px;}.home-panel{padding:14px;}.hero-copy{padding:22px;}.hero-actions{gap:12px;}.quiet-action{font-size:9px;}.spotlight-person{gap:10px;}.spotlight-person h3{font-size:19px;}.spotlight-portrait img{width:68px;height:68px;}.radar-table-head,.radar-row{grid-template-columns:minmax(110px,1fr) 33px 33px 75px 18px;gap:7px;}.radar-person{gap:8px;}.radar-person img{width:30px;height:30px;}.radar-person strong{font-size:10px;}.radar-value strong{font-size:10px;}.radar-tabs{gap:16px;}.player-card,.player-list-header{grid-template-columns:minmax(180px,1fr) 100px 85px 120px 210px;gap:12px;}.rating-cell{width:100px;}.power-cell{width:85px;}.value-cell{width:120px;}.actions-cell{width:210px;gap:6px;}}
@media(max-width:1020px){.sidebar{display:none;}.app-shell{display:block;}.container{padding:22px;}.header-inner{padding:0 20px;height:64px;gap:14px;}.header-search{max-width:220px;}.nav-segmented{gap:8px;}.data-status{display:none;}.home-layout{grid-template-columns:minmax(0,1fr) 280px;}.hero-copy h2{font-size:34px;}.discovery-hero{grid-template-columns:1.1fr 1fr;}}
@media(max-width:760px){
  .header-inner{height:60px;padding:0 14px;gap:10px;}
  .brand{font-size:20px;}
  .brand-logo{height:22px;}
  .header-search{flex:1;max-width:none;height:36px;margin-left:4px;}
  .header-search-kbd{display:none;}
  .header-search-dropdown{position:fixed;top:64px;left:10px;right:10px;min-width:auto;max-height:60vh;}
  .nav-segmented{position:fixed;bottom:0;left:0;right:0;height:62px;padding:0 12px calc(env(safe-area-inset-bottom,0px));height:calc(62px + env(safe-area-inset-bottom,0px));background:#000000;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(3,1fr);gap:4px;z-index:60;}
  .nav-seg-btn{flex-direction:column;gap:4px;padding:8px 2px;font-size:9.5px;justify-content:center;border-radius:6px;}
  .nav-seg-btn svg{width:18px;height:18px;}
  .nav-seg-btn.active{background:#FFFFFF;color:#000000;}
  .nav-seg-btn.active svg{color:#000000;}
  .nav-seg-btn #nav-squad-badge{position:absolute;top:6px;left:calc(50% + 14px);font-size:8px!important;}
  .header-right{display:none;}
  .data-status{display:none;}
  .header-avatar{display:none;}
  .container{padding:18px 14px calc(80px + env(safe-area-inset-bottom,0px));}
  .page-heading{margin-bottom:18px;}
  .page-heading h1{font-size:20px;}
  .snapshot-label{display:none;}
  .discovery-hero{grid-template-columns:1fr;}
  .hero-copy{padding:20px;}
  .hero-copy h2{font-size:32px;}
  .hero-copy p{font-size:11.5px;}
  .hero-actions{gap:16px;}
  .spotlight{padding:18px 20px 20px;border-top:1px solid var(--line);border-left:none;background:#111517;}
  .spotlight-label{margin-bottom:12px;font-size:8px;}
  .spotlight-person{gap:12px;}
  .spotlight-person h3{font-size:20px;}
  .spotlight-portrait img{width:64px;height:64px;}
  .spotlight-value-row{margin-top:8px;}
  .spotlight-metrics{margin-top:16px;padding-top:12px;}
  .spotlight-metrics strong{font-size:16px;}
  .spotlight-open{right:16px;top:16px;}
  .discovery-search{margin:14px 0 18px;height:44px;}
  .search-hint{display:none;}
  .home-layout{grid-template-columns:1fr;gap:0;}
  .home-panel{padding:14px;margin-bottom:16px;}
  .home-panel-title{font-size:12.5px;}
  .radar-table-head,.radar-row{grid-template-columns:minmax(100px,1fr) 32px 32px 75px 18px;gap:8px;}
  .radar-person strong{font-size:11px;}
  .radar-value strong{font-size:11px;}
  .radar-row{padding:11px 0;}
  .home-col-side{display:grid;grid-template-columns:1fr;}
  .squad-invite{margin-bottom:16px;}
  .squad-invite h2 br,.squad-invite p br{display:none;}
  .squad-invite-stats{padding:16px 0;}
  .standings-table{font-size:11px;}
  .standings-table td{padding:10px 3px;}
  .squad-invite h2{margin-top:14px;}
  .physical-badge-card{padding:10px 4px;}
  .panel-caption{font-size:9px;}
  .fixture-team-row{font-size:12.5px;}
  .fixture-mvp-info{font-size:9px;}
  .page-footer{gap:10px;font-size:9px;}
  .page-footer button{font-size:9px;}
  .player-card{grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:14px;}
  .player-bio{grid-column:1;grid-row:1;gap:10px;}
  .value-cell{grid-column:2;grid-row:1;}
  .rating-cell{display:flex;grid-column:1;grid-row:2;gap:9px;}
  .power-cell{display:none;}
  .actions-cell{grid-column:2;grid-row:2;}
  .player-name-text{font-size:12px;}
  .player-meta-text{font-size:9px;}
  .player-avatar{width:36px;height:36px;}
  .spark-bars{display:flex;}
  .bio-title-row .hype{display:none;}
  .sub-filter-row{align-items:stretch;gap:12px;flex-direction:column;}
  .position-segmented{overflow:auto;width:100%;}
  .pos-seg-btn{flex:1;white-space:nowrap;padding:8px 6px;font-size:10px;}
  .sort-box{justify-content:space-between;}
  .search-pill-box{padding:0 12px;}
  .search-pill-box input{font-size:12px;}
  .chips-row{padding-bottom:5px;}
  .section-title-bar h2{font-size:13px;}
  .section-title-bar span{font-size:10px;}
  .squad-toolbar{align-items:stretch;flex-direction:column;gap:10px;}
  .squad-view-toggle{justify-content:center;}
  .btn-reset-squad{justify-content:center;padding:10px;}
  .wallet-hero{gap:14px;grid-template-columns:1fr 1fr;}
  .wallet-tile:last-child{grid-column:1/-1;}
  .modal-overlay{padding:8px;}
  .modal-sheet{max-height:92dvh;padding:18px 14px;}
  .sheet-actions-bar{flex-wrap:wrap;}
  .btn-sheet-primary{flex-basis:100%;}
  .timeline-table{font-size:10px;}
  .timeline-table th{font-size:9px;}
  .detail-hero-name{font-size:18px;}
  .detail-hero-meta{font-size:10px;}
  .health-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .toast-banner{bottom:80px;max-width:calc(100% - 24px);}
  .method-dialog{padding:24px 18px;}
  .method-dialog h2{font-size:22px;}
}
@media(max-width:380px){
  .container{padding-left:10px;padding-right:10px;}
  .hero-copy{padding:18px 14px;}
  .hero-copy h2{font-size:28px;}
  .home-panel{padding:12px;}
  .radar-table-head,.radar-row{gap:6px;grid-template-columns:minmax(90px,1fr) 28px 30px 68px 16px;}
  .radar-person img{width:26px;height:26px;}
  .radar-person strong{font-size:10px;}
  .radar-value strong{font-size:10px;}
  .data-status{display:none;}
  .hero-actions{gap:10px;}
  .primary-action{padding:10px;}
}
.mobile-ovr{display:none;}
.position-segmented{scrollbar-width:none;}.position-segmented::-webkit-scrollbar{display:none;}
.discovery-search:focus-within,.search-pill-box:focus-within{border-color:var(--accent);box-shadow:none;}
.discovery-search input:focus-visible,.search-pill-box input:focus-visible{outline:none;}
@media(min-width:761px) and (max-width:860px){.rating-cell{display:flex;}.power-cell{display:block;}}
@media(max-width:760px){.header{backdrop-filter:none;-webkit-backdrop-filter:none;}.header-inner{position:static;}.mobile-ovr{display:inline-flex;align-items:center;gap:5px;font-size:9px;color:var(--muted);}.mobile-ovr strong{font-size:11px;color:var(--ink);}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important;}}

/* Match center: data-dense, app-native presentation */
.match-page-shell{display:grid;grid-template-columns:390px minmax(0,1fr);gap:18px;align-items:start;margin-bottom:30px}
.match-info-rail{display:flex;flex-direction:column;gap:12px;position:sticky;top:86px}
.match-rail-card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:14px}
.match-rail-kicker{display:block;color:var(--muted);font-size:9px;font-weight:800;letter-spacing:.1em;margin-bottom:12px}
.match-rail-about>div{display:flex;gap:10px;align-items:flex-start;padding:11px 0;border-top:1px solid var(--line)}
.match-rail-about svg,.match-data-note svg{width:16px;height:16px;color:var(--accent-text);flex:none;margin-top:2px}
.match-rail-about div span{display:flex;flex-direction:column;gap:3px;min-width:0}
.match-rail-about strong,.match-data-note strong{font-size:11.5px;color:var(--ink)}
.match-rail-about small{font-size:10px;color:var(--muted);line-height:1.45}
.match-rail-title,.match-overview-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.match-rail-title span,.match-overview-title span{font-size:12px;font-weight:750;color:var(--ink)}
.match-rail-title small,.match-overview-title small{font-size:9px;font-weight:750;color:var(--muted);letter-spacing:.07em}
.match-leader-row{width:100%;display:flex;align-items:center;gap:8px;padding:9px 0;border-top:1px solid var(--line);color:var(--ink);text-align:left;background:transparent}
.match-leader-row:hover{background:var(--soft);margin-inline:-8px;padding-inline:8px;width:calc(100% + 16px);border-radius:7px}
.match-leader-row img{width:30px;height:30px;border-radius:50%;object-fit:cover;background:var(--soft)}
.match-leader-rank{font-size:10px;color:var(--muted);width:12px;text-align:center}
.match-leader-copy{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.match-leader-copy strong{font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.match-leader-copy small{font-size:9px;color:var(--muted)}
.match-data-note{display:flex;gap:10px}.match-data-note p{font-size:10px;line-height:1.5;color:var(--muted);margin:4px 0 0}
.match-page-shell .match-page-card{margin:0;background:var(--card);border-radius:12px}
.match-page-shell .match-hero-scoreboard{background:var(--card);padding:16px 22px 20px}
.match-competition-line{display:flex;justify-content:space-between;align-items:center;padding-bottom:16px;margin-bottom:16px;border-bottom:1px solid var(--line);font-size:10px;color:var(--muted)}
.match-competition-line span{font-weight:700;color:var(--ink)}
.match-page-shell .match-scoreboard-grid{max-width:520px;gap:28px}
.match-page-shell .match-team-crest-lg{width:58px;height:58px}
.match-page-shell .match-team-name-lg{font-size:15px}
.match-page-shell .match-score-digits{font-size:34px;letter-spacing:-.025em}
.match-page-shell .match-team-form-badge{background:var(--soft);border:1px solid var(--line);padding:3px 7px;border-radius:5px}
.match-score-footnote{margin-top:12px;font-size:10px;color:var(--muted)}
.match-page-shell .match-tabs{justify-content:flex-start;gap:24px;padding:0 20px;background:var(--soft);overflow-x:auto}
.match-page-shell .match-tab-btn{position:relative;padding:14px 0;border:0;border-radius:0;white-space:nowrap;font-size:11px}
.match-page-shell .match-tab-btn.active{background:transparent;border:0;color:var(--ink)}
.match-page-shell .match-tab-btn.active:after{content:'';position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--accent);border-radius:3px 3px 0 0}
.match-page-shell .match-modal-body{background:var(--bg);padding:16px;min-height:420px}
.match-overview-grid{display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:12px}
.match-overview-main,.match-mvp-card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:16px}
.match-key-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.match-key-metrics>div{background:var(--soft);border:1px solid var(--line);border-radius:9px;padding:12px}
.match-key-metrics>div>span{display:block;font-size:10px;color:var(--muted);text-align:center;margin-bottom:9px}
.match-key-metrics p{display:grid;grid-template-columns:1fr 28px 1fr;align-items:center;text-align:center;margin:0}
.match-key-metrics p strong{font-size:17px;color:var(--ink);font-variant-numeric:tabular-nums}
.match-key-metrics p i{height:4px;background:linear-gradient(90deg,var(--accent) 0 var(--home-share,50%),var(--amber) var(--home-share,50%) 100%);border-radius:4px}
.match-key-metrics small{display:block;font-size:8px;color:var(--muted);text-align:center;margin-top:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.match-goal-list{margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}
.match-goal-list button{display:grid;grid-template-columns:24px 1fr auto;align-items:center;gap:8px;width:100%;padding:8px;background:transparent;color:var(--ink);text-align:left;border-radius:7px}
.match-goal-list button:hover{background:var(--soft)}.match-goal-list button strong{font-size:11px}.match-goal-list button small{font-size:9.5px;color:var(--muted)}
.match-lineup-preview{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}
.match-team-leaders{border:1px solid var(--line);border-radius:9px;padding:12px}
.match-team-leaders button{display:grid;grid-template-columns:30px 1fr auto;align-items:center;gap:8px;width:100%;padding:7px 0;border-top:1px solid var(--line);background:transparent;color:var(--ink);text-align:left}
.match-team-leaders img{width:30px;height:30px;border-radius:50%;object-fit:cover;background:var(--soft)}
.match-team-leaders button>span{display:flex;flex-direction:column;gap:2px;min-width:0}.match-team-leaders button strong{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.match-team-leaders button small{font-size:8.5px;color:var(--muted)}
.match-mvp-card{text-align:center;align-self:start}.match-mvp-card>img{width:76px;height:76px;border-radius:50%;object-fit:cover;background:var(--soft);border:3px solid var(--line)}
.match-mvp-card h3{font-size:15px;margin:10px 0 3px}.match-mvp-card>p{font-size:10px;color:var(--muted);margin:0 0 9px}
.match-mvp-card>strong{display:inline-block;font-size:16px;padding:5px 10px}
.match-mvp-card>div{display:grid;grid-template-columns:repeat(3,1fr);margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.match-mvp-card>div span{font-size:13px;font-weight:750}.match-mvp-card>div small{display:block;font-size:8px;color:var(--muted);font-weight:500;margin-top:3px}
.match-mvp-card>button{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;margin-top:14px;padding:9px;background:var(--soft);border:1px solid var(--line);border-radius:7px;color:var(--ink);font-size:10px}.match-mvp-card>button svg{width:13px}
.match-player-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;background:var(--card);border:1px solid var(--line);border-radius:10px 10px 0 0;padding:12px}
.match-player-filters{display:flex;gap:5px}.match-player-filters button{padding:7px 11px;border-radius:6px;background:transparent;color:var(--muted);font-size:10px}.match-player-filters button.active{background:var(--accent);color:#fff}
.match-player-toolbar label{font-size:9px;color:var(--muted)}.match-player-toolbar select{margin-left:6px;background:var(--soft);color:var(--ink);border:1px solid var(--line);border-radius:6px;padding:6px 8px;font-size:10px}
.match-player-table-wrap{overflow-x:auto;border:1px solid var(--line);border-top:0;border-radius:0 0 10px 10px}
.match-player-table{width:100%;border-collapse:collapse;min-width:670px;background:var(--card)}
.match-player-table th{padding:9px 12px;color:var(--muted);font-size:8.5px;text-transform:uppercase;letter-spacing:.05em;text-align:center;background:var(--soft)}
.match-player-table th:first-child{text-align:left}.match-player-table td{padding:9px 12px;border-top:1px solid var(--line);font-size:10.5px;text-align:center;color:var(--muted);font-variant-numeric:tabular-nums}.match-player-table tr{cursor:pointer}.match-player-table tbody tr:hover{background:var(--soft-hover)}
.match-player-table td:first-child{display:flex;align-items:center;gap:9px;text-align:left;color:var(--ink)}.match-player-table td:first-child img{width:32px;height:32px;border-radius:50%;object-fit:cover;background:var(--soft)}.match-player-table td:first-child span{display:flex;flex-direction:column;gap:2px}.match-player-table td:first-child strong{font-size:10.5px}.match-player-table td:first-child small{font-size:8.5px;color:var(--muted)}
.match-source-note{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:9.5px;margin:10px 2px 0}.match-source-note svg{width:13px}
.match-page-shell .tactical-pitch-card,.match-page-shell .match-subs-card,.match-page-shell .match-missing-card,.match-page-shell .match-stats-list{background:var(--card)}
.match-missing-card{border:1px solid var(--line);border-radius:12px;padding:14px}.match-missing-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.match-missing-grid>div{display:flex;flex-direction:column;gap:7px}.match-missing-grid>div>strong{font-size:10px;color:var(--muted);padding-bottom:5px;border-bottom:1px solid var(--line)}
.match-missing-player{display:flex;align-items:center;gap:8px;background:transparent;color:var(--ink);text-align:left;padding:4px}.match-missing-player img{width:28px;height:28px;border-radius:50%;object-fit:cover}.match-missing-player span{display:flex;flex-direction:column;gap:2px}.match-missing-player strong{font-size:10px}.match-missing-player small,.match-empty-inline{font-size:8.5px;color:var(--muted)}
.match-page-shell .match-stats-list{gap:20px}.match-page-shell .match-stat-dual-track{height:6px}.match-page-shell .match-stat-fill-away{background:var(--amber)}
@media(max-width:980px){.match-page-shell{grid-template-columns:1fr}.match-info-rail{position:static;display:grid;grid-template-columns:1fr 1fr}.match-data-note{display:none}.match-overview-grid{grid-template-columns:1fr 190px}}
@media(max-width:680px){.match-info-rail{display:none}.match-page-shell{margin-inline:-10px}.match-page-shell .match-page-card{border-radius:0}.match-page-shell .match-hero-scoreboard{padding:14px 14px 18px}.match-page-shell .match-scoreboard-grid{gap:8px}.match-page-shell .match-team-crest-lg{width:44px;height:44px}.match-page-shell .match-team-name-lg{font-size:11px;white-space:normal}.match-page-shell .match-score-digits{font-size:27px}.match-page-shell .match-tabs{gap:20px;padding-inline:14px}.match-page-shell .match-modal-body{padding:10px}.match-overview-grid{grid-template-columns:1fr}.match-mvp-card{display:grid;grid-template-columns:58px 1fr auto;align-items:center;gap:10px;text-align:left}.match-mvp-card .match-rail-kicker{display:none}.match-mvp-card>img{width:58px;height:58px;grid-row:1/4}.match-mvp-card h3{margin:0}.match-mvp-card>p{margin:0}.match-mvp-card>strong{grid-column:3;grid-row:1/3}.match-mvp-card>div,.match-mvp-card>button{grid-column:1/-1}.match-key-metrics{grid-template-columns:1fr 1fr}.match-lineup-preview{grid-template-columns:1fr}.match-player-toolbar{align-items:stretch;flex-direction:column}.match-player-filters{overflow-x:auto}.match-player-filters button{white-space:nowrap}.match-missing-grid{grid-template-columns:1fr}.tactical-pitch-header>span{display:none}}

/* ==========================================================================
   Sofascore Match Center (Modal, Scoreboard, Tactical Pitch, Lineups, Stats)
   ========================================================================== */
.match-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.match-modal-overlay.open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
.match-modal-card {
  width: 100%;
  max-width: 880px;
  max-height: 94vh;
  background: #0E1214;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.match-modal-overlay.open .match-modal-card {
  transform: translateY(0) scale(1);
}
.match-modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: #0A0D0F;
}
.match-modal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.match-modal-breadcrumb strong {
  color: var(--ink);
  font-weight: 700;
}
.match-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.match-btn-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.match-btn-close:hover {
  background: var(--card);
  color: var(--ink);
  border-color: #38424B;
}
.match-hero-scoreboard {
  background: linear-gradient(180deg, #13171A 0%, #0E1214 100%);
  padding: 22px 20px 16px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.match-scoreboard-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  max-width: 640px;
  margin: 0 auto;
}
.match-team-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.match-team-crest-lg {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}
.match-team-name-lg {
  font-size: 14px;
  font-weight: 750;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.match-team-form-badge {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
}
.match-center-score-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.match-score-digits {
  font-size: 36px;
  font-weight: 850;
  color: #FFFFFF;
  letter-spacing: 0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.match-status-badge {
  font-size: 10.5px;
  font-weight: 750;
  padding: 3px 9px;
  border-radius: 5px;
  background: var(--soft);
  color: var(--muted);
  letter-spacing: 0.05em;
}
.match-status-badge.live {
  background: var(--green-soft);
  color: var(--green);
}
.match-status-badge.upcoming {
  background: rgba(59,130,246,0.14);
  color: #60A5FA;
}
.match-hero-scorers {
  margin-top: 14px;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.match-scorer-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.match-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  background: #0B0E10;
  border-bottom: 1px solid var(--line);
}
.match-tab-btn {
  padding: 7px 18px;
  font-size: 11.5px;
  font-weight: 650;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.match-tab-btn:hover {
  color: var(--ink);
  background: var(--soft);
}
.match-tab-btn.active {
  background: var(--card);
  color: #FFFFFF;
  border-color: var(--line);
  font-weight: 750;
}
.match-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #0E1214;
}
.tactical-pitch-card {
  background: #111517;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 20px;
}
.tactical-pitch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}
.tactical-pitch-team-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.tactical-pitch-team-badge .formation {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  background: var(--soft);
  padding: 2px 6px;
  border-radius: 4px;
}
.tactical-pitch-team-badge .avg-rating {
  font-size: 10.5px;
  font-weight: 750;
  color: var(--accent-text);
}
.tactical-pitch {
  position: relative;
  width: 100%;
  height: 640px;
  background: radial-gradient(ellipse at center, #153826 0%, #0c2016 100%);
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
}
.pitch-line-halfway {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}
.pitch-circle-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}
.pitch-spot-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
}
.pitch-penalty-top {
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 95px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: none;
}
.pitch-penalty-bottom {
  position: absolute;
  bottom: 0;
  left: 25%;
  right: 25%;
  height: 95px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: none;
}
.pitch-goal-top {
  position: absolute;
  top: 0;
  left: 38%;
  right: 38%;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: none;
}
.pitch-goal-bottom {
  position: absolute;
  bottom: 0;
  left: 38%;
  right: 38%;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: none;
}
.pitch-player-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.15s ease;
}
.pitch-player-node:hover {
  transform: translate(-50%, -50%) scale(1.12);
}
.pitch-player-avatar-wrap {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  background: #171C1F;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pitch-player-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.pitch-player-num-fallback {
  font-size: 12px;
  font-weight: 800;
  color: #FFFFFF;
}
.pitch-player-rating-chip {
  position: absolute;
  bottom: -4px;
  right: -8px;
  font-size: 9px;
  font-weight: 850;
  padding: 1px 4px;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,0.5);
  box-shadow: 0 2px 4px rgba(0,0,0,0.6);
  line-height: 12px;
}
.pitch-player-name {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 6px rgba(0, 0, 0, 0.8);
  max-width: 72px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.match-subs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.match-subs-card {
  background: #111517;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.match-subs-title {
  font-size: 11px;
  font-weight: 750;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.match-sub-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.15s ease;
  cursor: pointer;
}
.match-sub-item:hover {
  background: var(--soft);
}
.match-sub-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  background: #1D2327;
  flex-shrink: 0;
}
.match-sub-num {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  min-width: 18px;
}
.match-sub-name {
  font-size: 11.5px;
  font-weight: 650;
  color: var(--ink);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.match-sub-min {
  font-size: 9.5px;
  color: var(--green);
  font-weight: 600;
}

/* SofaScore-style managers and substitutes panel. */
.match-personnel-card {
  margin-bottom: 20px;
  padding: 18px 16px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.match-personnel-heading {
  margin: 0 0 15px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 780;
  text-align: center;
}
.match-personnel-subs-heading { margin-top: 24px; }
.match-personnel-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.match-personnel-columns > div { min-width: 0; padding: 0 18px; }
.match-personnel-columns > div:first-child { border-right: 1px solid #3d4549; }
.match-personnel-manager {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
}
.match-personnel-manager > img {
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid #697176;
  border-radius: 50%;
  background: #f5f5f3;
  object-fit: cover;
}
.match-personnel-manager > span { display: grid; gap: 3px; min-width: 0; }
.match-personnel-manager strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.match-personnel-manager small { color: var(--accent); font-size: 10.5px; font-weight: 650; }
.match-personnel-manager.empty { color: var(--muted); font-size: 10px; }
.match-personnel-player {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 59px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid #3d4549;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.match-personnel-player:last-child { border-bottom: 0; }
.match-personnel-player:hover { background: var(--soft); }
.match-personnel-avatar {
  width: 38px;
  height: 38px;
  border: 1px solid #737b80;
  border-radius: 50%;
  background: #f5f5f3;
  object-fit: cover;
}
.match-personnel-player-copy { display: grid; gap: 4px; min-width: 0; }
.match-personnel-player-name {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.15;
}
.match-personnel-player-name em { flex: none; color: var(--muted); font-style: normal; font-weight: 500; }
.match-personnel-player-name > span:not(.match-sub-event) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-personnel-substitution {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 9.5px;
  white-space: nowrap;
}
.match-personnel-substitution strong { color: #2ecb70; font-size: 10px; font-weight: 750; }
.match-personnel-substitution > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.match-sub-enter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  flex: none;
  border-radius: 50%;
  background: #2ecb70;
  color: #0f1714;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}
.match-personnel-player-rating { min-width: 28px; text-align: right; }
.match-personnel-rating { width: 28px; height: 25px; padding: 0; border-radius: 1px; font-size: 11px; }
.match-sub-event { display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: 9px; }
.match-sub-event.assist { width: 14px; height: 14px; border-radius: 3px; background: var(--accent); color: #fff; font-weight: 800; }
.match-sub-event.yellow,.match-sub-event.red { width: 8px; height: 12px; border-radius: 1px; }
.match-sub-event.yellow { background: #f5c400; }
.match-sub-event.red { background: #e84141; }
.match-stats-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #111517;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}
.match-stat-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.match-stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.match-stat-val {
  font-weight: 750;
  color: var(--ink);
  font-size: 13px;
  min-width: 48px;
}
.match-stat-val.home {
  text-align: left;
}
.match-stat-val.away {
  text-align: right;
}
.match-stat-val.leader {
  color: var(--accent-text);
  font-weight: 850;
}
.match-stat-val.away.leader {
  color: var(--amber);
}
.match-stat-title {
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
  text-align: center;
  flex: 1;
}
.match-stat-dual-track {
  height: 7px;
  background: #1C2226;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  gap: 2px;
}
.match-stat-fill-home {
  background: var(--accent);
  height: 100%;
  border-radius: 3px 0 0 3px;
  transition: width 0.3s ease;
}
.match-stat-fill-away {
  background: #EAB308;
  height: 100%;
  border-radius: 0 3px 3px 0;
  transition: width 0.3s ease;
}
.match-upcoming-state {
  text-align: center;
  padding: 48px 20px;
  background: #111517;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
}
.match-upcoming-state svg {
  width: 40px;
  height: 40px;
  color: var(--muted);
  margin-bottom: 12px;
  opacity: 0.6;
}
.match-upcoming-state h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.match-upcoming-state p {
  font-size: 12px;
  color: var(--muted);
  max-width: 380px;
  margin: 0 auto;
}
@media (max-width: 680px) {
  .match-modal-card { max-height: 98vh; border-radius: 12px 12px 0 0; }
  .match-modal-overlay { padding: 0; align-items: flex-end; }
  .match-scoreboard-grid { grid-template-columns: 1fr auto 1fr; gap: 8px; }
  .match-team-crest-lg { width: 40px; height: 40px; }
  .match-team-name-lg { font-size: 12.5px; }
  .match-score-digits { font-size: 28px; }
  .tactical-pitch { height: 560px; }
  .match-subs-grid { grid-template-columns: 1fr; }
  .match-personnel-columns { grid-template-columns: 1fr; }
  .match-personnel-columns > div { padding: 0 6px; }
  .match-personnel-columns > div:first-child { margin-bottom: 12px; padding-bottom: 12px; border-right: 0; border-bottom: 1px solid #3d4549; }
  .pitch-player-avatar-wrap { width: 32px; height: 32px; }
  .pitch-player-name { font-size: 9px; max-width: 58px; }
}

/* Rating chips stay compact and readable on top of player avatars. */
.match-page-shell .compact-player-rating {
  width: 21px;
  min-width: 21px;
  height: 17px;
  padding: 0 2px;
  right: -5px;
  bottom: -4px;
  border-radius: 4px;
  font-size: 8px;
  line-height: 17px;
  color: #fff !important;
}
.match-page-shell .compact-player-rating.elite { background: var(--sofa-cyan); }
.match-page-shell .compact-player-rating.good { background: var(--sofa-green); }
.match-page-shell .compact-player-rating.average { background: var(--sofa-yellow); }
.match-page-shell .compact-player-rating.low { background: var(--sofa-orange); }
.match-page-shell .compact-player-rating.poor { background: var(--sofa-red); }

/* Form and rating values use one consistent white treatment. */
.sofa-chip.elite,
.sofa-chip.great,
.sofa-chip.good,
.sofa-chip.average,
.sofa-chip.low,
.sofa-chip.poor,
.sofa-chip.neutral,
.rating-mini-badge.elite,
.rating-mini-badge.good,
.rating-mini-badge.average,
.rating-mini-badge.low,
.rating-mini-badge.poor {
  color: #fff !important;
}

/* SofaScore-style event placement: score under the avatar, events at its side. */
.match-page-shell .compact-player-rating {
  right: 50%;
  bottom: -12px;
  transform: translateX(50%);
  z-index: 3;
}
.match-page-shell .compact-player-name { margin-top: 15px; }
.match-page-shell .formation-events {
  position: absolute;
  top: 50%;
  margin: 0;
  min-height: 0;
  gap: 3px;
  transform: translateY(-50%);
  z-index: 4;
  align-items: center;
  white-space: nowrap;
}
.match-page-shell .formation-events-left { right: calc(100% - 3px); }
.match-page-shell .formation-events-right { left: calc(100% - 3px); }
.match-page-shell .formation-events-right-top {
  top: -2px;
  left: calc(100% - 3px);
  transform: none;
}
.match-page-shell .formation-events-right-bottom {
  top: auto;
  right: auto;
  bottom: -2px;
  left: calc(100% - 3px);
  transform: none;
}
.match-page-shell .formation-event.substitution {
  width: 15px;
  height: 15px;
  min-height: 15px;
  padding: 0;
  border: 1px solid #aeb5ba;
  border-radius: 50%;
  background: #eef0f1;
  color: #525c63;
  display: inline-flex;
  flex-direction: column;
  gap: 0;
  font-size: 8px;
  line-height: 6px;
}
.match-page-shell .substitution-arrow {
  display: block;
  height: 6px;
  font-size: 9px;
  line-height: 6px;
  font-style: normal;
  font-weight: 900;
}
.match-page-shell .substitution-arrow-in { color: #16a34a; }
.match-page-shell .substitution-arrow-out { color: #ef4444; }
.match-page-shell .formation-events-left .formation-event {
  order: 0;
}

/* ==========================================================
   DEDICATED FULL-PAGE SPA VIEWS (PLAYER, TEAM, MATCH)
   ========================================================== */

.page-top-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 10px 16px;
  background: #111517;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.page-nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.btn-back-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 650;
  color: #FFFFFF;
  background: #1C2226;
  border: 1px solid #283036;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.btn-back-nav:hover {
  background: #252D33;
  border-color: #3A4650;
  color: #FFFFFF;
}
.page-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 550;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.page-breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.page-breadcrumbs a:hover {
  color: #FFFFFF;
}
.page-breadcrumbs .current {
  color: #FFFFFF;
  font-weight: 700;
}
.page-breadcrumbs svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

/* Player Page Dedicated Container */
.player-page-card {
  background: #0E1214;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 30px;
}
.player-page .sheet-actions-bar {
  border-radius: 0 0 16px 16px;
}

/* Team standings: compact league dashboard, aligned with the app surfaces. */
.team-standings-shell { background:#111719;border:1px solid #2b353a;border-radius:14px;overflow:hidden;box-shadow:0 18px 45px rgba(0,0,0,.18); }
.team-standings-head { display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 24px;background:linear-gradient(120deg,#1f1b29 0%,#171d20 62%,#151b1e 100%);border-bottom:1px solid #33343d; }
.team-standings-head h2 { margin:7px 0 5px;color:#eef1f2;font-size:22px;line-height:1.1;letter-spacing:-.5px; }.team-standings-head p { color:#84929a;font-size:10px; }.team-standings-eyebrow { display:flex;align-items:center;gap:7px;color:#a995d1;font-size:9px;font-weight:750;letter-spacing:1.2px; }.team-standings-eyebrow svg { width:13px;height:13px; }
.team-standings-current { display:grid;grid-template-columns:auto auto;grid-template-rows:auto auto;column-gap:13px;align-items:center;min-width:210px;padding:12px 14px;border:1px solid #443b52;border-radius:9px;background:#ffffff08; }.team-standings-current>span { grid-column:1;font-size:10px;color:#aab3b8;white-space:nowrap; }.team-standings-current>strong { grid-column:2;grid-row:1/3;font-size:28px;line-height:1;color:#d8c7fa;font-variant-numeric:tabular-nums; }.team-standings-current>small { grid-column:1;color:#7f8d95;font-size:9px;margin-top:5px; }
.team-standings-legend { display:flex;align-items:center;gap:18px;padding:11px 24px;background:#151c1f;border-bottom:1px solid #2a3439;color:#7f8d95;font-size:9px; }.team-standings-legend span { display:flex;align-items:center;gap:6px;white-space:nowrap; }.team-standings-legend i { width:3px;height:11px;border-radius:2px;background:#5b6870; }.team-standings-legend .champions i { background:#9a78ef; }.team-standings-legend .europe i { background:#50c996; }.team-standings-legend .relegation i { background:#f05d62; }
.team-standings-table-wrap { overflow-x:auto; }.team-standings-table { width:100%;min-width:720px;border-collapse:collapse;color:#aeb8bd;font-size:11px;font-variant-numeric:tabular-nums; }.team-standings-table th { height:35px;padding:0 17px;background:#12191c;color:#6f7e87;font-size:8.5px;font-weight:650;letter-spacing:.08em;text-align:left;border-bottom:1px solid #2b353a; }.team-standings-table th:first-child { width:52px;text-align:center; }.team-standings-table th:nth-child(n+3) { width:68px;text-align:center; }.team-standings-table th:last-child { text-align:right;width:74px;padding-right:23px; }
.team-standings-table td { height:52px;padding:0 17px;border-bottom:1px solid #263136;text-align:center;transition:background .15s ease; }.team-standings-table tbody tr { position:relative;cursor:pointer;outline:0; }.team-standings-table tbody tr:last-child td { border-bottom:0; }.team-standings-table tbody tr:hover td,.team-standings-table tbody tr:focus-visible td { background:#1b2529; }.team-standings-table tbody tr.is-current td { background:#211c2e; }.team-standings-table tbody tr.is-current:hover td,.team-standings-table tbody tr.is-current:focus-visible td { background:#292137; }.team-standings-table tbody tr.is-current td:first-child { box-shadow:inset 3px 0 #8d67e8; }
.team-standing-position { display:grid;place-items:center;width:25px;height:25px;margin:auto;border-radius:7px;color:#8b989f;background:#20292d;font-size:10px;font-weight:750; }.team-standing-position.champions { color:#d8c8fb;background:#33264d; }.team-standing-position.europe { color:#89e0bd;background:#193a31; }.team-standing-position.relegation { color:#ff9b9e;background:#472529; }
.team-standings-table td:nth-child(2) { text-align:left;min-width:220px; }.team-standing-club { display:flex;align-items:center;gap:11px;min-width:0; }.team-standing-club>img { width:27px;height:27px;object-fit:contain;flex:0 0 auto; }.team-standing-club>span { display:flex;align-items:center;gap:8px;min-width:0; }.team-standing-club strong { color:#dce2e5;font-size:11.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }.team-standing-club small { padding:3px 6px;border:1px solid #5b4779;border-radius:5px;background:#392757;color:#d7c4ff;font-size:8px;white-space:nowrap; }
.team-standing-average.positive { color:#72d6ac; }.team-standing-average.negative { color:#ed8d91; }.team-standing-points { padding-right:23px!important;text-align:right!important;color:#f0f2f3;font-size:13px;font-weight:750; }.team-standings-foot { display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 18px;border-top:1px solid #2d373c;background:#151c1f;color:#718089;font-size:8.5px; }.team-standings-foot span { display:flex;align-items:center;gap:6px; }.team-standings-foot svg { width:11px;height:11px; }

@media(max-width:720px){.team-standings-head{align-items:flex-start;flex-direction:column;padding:18px}.team-standings-current{width:100%;min-width:0}.team-standings-legend{padding-inline:18px;overflow-x:auto}.team-standings-foot{align-items:flex-start;flex-direction:column}.team-standings-table th,.team-standings-table td{padding-inline:12px}.team-standing-club>img{width:24px;height:24px}}


/* Match Page Dedicated Container */
.match-page-card {
  background: #0E1214;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 30px;
}


/* Match center refinements: stable stat colors and compact side-by-side formation. */
.match-page-shell .match-stats-overview {
  --match-home-green: #46C95A;
  --match-away-violet: var(--accent);
  padding: 22px 22px 28px;
  gap: 0;
}
.match-stats-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 17px;
}
.match-stats-eyebrow {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  margin-bottom: 5px;
}
.match-stats-overview-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  letter-spacing: -.025em;
}
.match-stats-filter {
  min-width: 78px;
  padding: 9px 18px;
  border: 1px solid #dfe3e6;
  border-radius: 999px;
  background: #f3f4f6;
  color: #20252a;
  font-size: 12px;
  font-weight: 850;
}
.match-stats-filter:hover { background: #fff; }
.match-stats-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 0 0 13px;
  color: var(--muted);
  font-size: 9px;
}
.match-stats-legend span { display: inline-flex; align-items: center; gap: 5px; }
.match-stat-legend-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.match-stat-legend-dot.home { background: var(--match-home-green); }
.match-stat-legend-dot.away { background: var(--match-away-violet); }
.match-page-shell .match-stats-overview .match-stat-row {
  gap: 8px;
  padding: 14px 0 16px;
  border-top: 1px solid var(--line);
}
.match-page-shell .match-stats-overview .match-stat-header {
  display: grid;
  grid-template-columns: minmax(58px, 1fr) minmax(130px, 1.6fr) minmax(58px, 1fr);
  align-items: center;
  gap: 10px;
}
.match-page-shell .match-stats-overview .match-stat-val {
  min-width: 0;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.match-page-shell .match-stats-overview .match-stat-val.home {
  justify-self: start;
  background: var(--match-home-green);
  color: #061308;
  text-align: center;
}
.match-page-shell .match-stats-overview .match-stat-val.away {
  justify-self: end;
  background: var(--match-away-violet);
  color: #fff;
  text-align: center;
}
.match-page-shell .match-stats-overview .match-stat-title {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}
.match-page-shell .match-stats-overview .match-stat-dual-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  height: 9px;
  background: transparent;
  overflow: visible;
}
.match-page-shell .match-stats-overview .match-stat-half {
  height: 9px;
  display: flex;
  align-items: stretch;
  background: #2A3033;
  border-radius: 999px;
  overflow: hidden;
}
.match-page-shell .match-stats-overview .match-stat-half.home { justify-content: flex-end; }
.match-page-shell .match-stats-overview .match-stat-half.away { justify-content: flex-start; }
.match-page-shell .match-stats-overview .match-stat-half span {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: 999px;
  transition: width .25s ease;
}
.match-page-shell .match-stats-overview .match-stat-fill-home { background: var(--match-home-green); }
.match-page-shell .match-stats-overview .match-stat-fill-away { background: var(--match-away-violet); }

.match-page-shell .match-compact-formation-card { padding: 15px; overflow: hidden; }
.match-page-shell .match-compact-formation-header { margin-bottom: 10px; }
.match-page-shell .match-compact-formation-header .tactical-pitch-team-badge { flex: 1; }
.match-page-shell .match-compact-formation-header .tactical-pitch-team-badge:last-child { justify-content: flex-end; }
.match-page-shell .compact-tactical-pitch {
  height: 360px;
  min-height: 0;
  background: #101617;
  border-color: rgba(255,255,255,.2);
  border-radius: 10px;
  box-shadow: inset 0 0 32px rgba(0,0,0,.28);
}
.match-page-shell .compact-tactical-pitch .pitch-line-halfway {
  top: 0;
  bottom: 0;
  left: 50%;
  right: auto;
  width: 1px;
  height: auto;
}
.match-page-shell .compact-tactical-pitch .pitch-circle-center {
  width: 82px;
  height: 82px;
}
.match-page-shell .compact-tactical-pitch .pitch-penalty-top {
  top: 25%;
  bottom: 25%;
  left: 0;
  right: auto;
  width: 12%;
  height: auto;
  border: 1px solid rgba(255,255,255,.2);
  border-left: 0;
}
.match-page-shell .compact-tactical-pitch .pitch-penalty-bottom {
  top: 25%;
  bottom: 25%;
  left: auto;
  right: 0;
  width: 12%;
  height: auto;
  border: 1px solid rgba(255,255,255,.2);
  border-right: 0;
}
.match-page-shell .compact-tactical-pitch .pitch-goal-top {
  top: 40%;
  bottom: 40%;
  left: 0;
  right: auto;
  width: 4%;
  height: auto;
  border: 1px solid rgba(255,255,255,.2);
  border-left: 0;
}
.match-page-shell .compact-tactical-pitch .pitch-goal-bottom {
  top: 40%;
  bottom: 40%;
  left: auto;
  right: 0;
  width: 4%;
  height: auto;
  border: 1px solid rgba(255,255,255,.2);
  border-right: 0;
}
.compact-pitch-player {
  position: absolute;
  z-index: 10;
  width: 86px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}
.compact-pitch-player:hover { z-index: 20; transform: translate(-50%, -50%) scale(1.08); }
.compact-player-avatar {
  position: relative;
  display: flex;
  width: 31px;
  height: 31px;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #1b2224;
  box-shadow: 0 2px 7px rgba(0,0,0,.65);
}
.compact-player-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.compact-player-fallback { color: #fff; font-size: 10px; font-weight: 800; }
.compact-player-rating {
  position: absolute;
  right: -9px;
  bottom: -5px;
  min-width: 25px;
  padding: 2px 4px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,.5);
  box-shadow: 0 2px 4px rgba(0,0,0,.6);
  color: #fff;
  font-size: 9px;
  line-height: 1.1;
  font-weight: 850;
}
.compact-player-rating.elite { background: var(--sofa-cyan); color: #08131D; }
.compact-player-rating.good { background: var(--sofa-green); color: #021508; }
.compact-player-rating.average { background: var(--sofa-yellow); color: #1B1502; }
.compact-player-rating.low { background: var(--sofa-orange); color: #fff; }
.compact-player-rating.poor { background: var(--sofa-red); color: #fff; }
.compact-team-name { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.compact-team-logo { width: 24px; height: 24px; flex: none; object-fit: contain; }
.compact-team-info { width: 14px; height: 14px; color: var(--accent-text); flex: none; }
.compact-player-name {
  display: block;
  max-width: 86px;
  margin-top: 5px;
  overflow: hidden;
  color: #fff;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0,0,0,.95);
  white-space: nowrap;
}
.compact-player-name em { margin-right: 2px; color: #b8bec2; font-size: 8px; font-style: normal; }
.formation-events { display: flex; gap: 2px; margin-top: 3px; min-height: 12px; }
.formation-event { display: inline-flex; align-items: center; justify-content: center; min-height: 12px; padding: 1px 3px; border-radius: 3px; font-size: 8px; line-height: 1; font-style: normal; font-weight: 850; }
.formation-event.goal { color: #fff; background: #30383a; }
.formation-event.assist { color: #fff; background: var(--accent); }
.formation-event.yellow { width: 10px; height: 14px; min-height: 14px; padding: 0; background: #f5c400; }
.formation-event.red { width: 10px; height: 14px; min-height: 14px; padding: 0; background: #e84141; }
.formation-event.own-goal { color: #fff; background: #68727a; }
.formation-event-legend { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; padding-top: 11px; color: var(--muted); font-size: 9px; }
.formation-event-legend span { display: inline-flex; align-items: center; gap: 4px; }
.formation-event-legend .formation-event { min-width: 15px; }

@media (max-width: 680px) {
  .match-page-shell .match-stats-overview { padding: 18px 12px 22px; }
  .match-stats-overview-head h2 { font-size: 18px; }
  .match-page-shell .match-stats-overview .match-stat-header { grid-template-columns: minmax(50px, .8fr) minmax(98px, 1.6fr) minmax(50px, .8fr); gap: 6px; }
  .match-page-shell .match-stats-overview .match-stat-val { padding-inline: 7px; font-size: 14px; }
  .match-page-shell .match-stats-overview .match-stat-title { font-size: 11px; }
  .match-page-shell .match-stats-overview .match-stat-dual-track { gap: 10px; }
  .match-page-shell .match-compact-formation-card { padding: 10px; }
  .match-page-shell .compact-tactical-pitch { height: 285px; }
  .compact-pitch-player { width: 58px; }
  .compact-player-avatar { width: 25px; height: 25px; }
  .compact-player-name { max-width: 60px; font-size: 7.5px; }
  .compact-player-name em { font-size: 7px; }
  .compact-player-rating { right: -8px; min-width: 21px; padding: 1px 3px; font-size: 8px; }
  .formation-event { font-size: 7px; }
  .formation-event-legend { gap: 8px; }
}

/* Shared SofaScore rating treatment across lists, cards, player pages and the pitch. */
.sofa-chip,
.rating-mini-badge,
.pitch-sofa-chip,
.pitch-player-rating-chip {
  color: #fff !important;
  font-weight: 750;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .16);
}
.sofa-chip.elite,
.sofa-chip.great,
.rating-mini-badge.elite,
.rating-mini-badge.great {
  background: var(--sofa-cyan) !important;
}
.sofa-chip.good,
.rating-mini-badge.good {
  background: var(--sofa-green) !important;
}
.sofa-chip.average,
.sofa-chip.neutral,
.rating-mini-badge.average,
.rating-mini-badge.neutral {
  background: var(--sofa-yellow) !important;
}
.sofa-chip.low,
.rating-mini-badge.low {
  background: var(--sofa-orange) !important;
}
.sofa-chip.poor,
.rating-mini-badge.poor {
  background: var(--sofa-red) !important;
}

/* Keep the compact pitch chip consistent with every other rating widget. */
.match-page-shell .compact-player-rating {
  color: #fff !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .16);
}

/* Match event timeline replaces the former rating-leaders rail. */
.match-timeline-card { padding: 16px; }
.match-timeline-card .match-rail-title { margin-bottom: 10px; }
.match-timeline-list {
  max-height: 620px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #3b454b transparent;
}
.match-timeline-scoreline {
  display: grid;
  grid-template-columns: minmax(10px, 1fr) auto minmax(10px, 1fr);
  align-items: center;
  gap: 10px;
  margin: 0 0 7px;
  color: var(--ink);
}
.match-timeline-scoreline span { height: 1px; background: #4b555b; }
.match-timeline-scoreline strong { font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.match-timeline-period {
  display: grid;
  grid-template-columns: minmax(10px, 1fr) auto minmax(10px, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px 0 8px;
  color: var(--ink);
}
.match-timeline-period span { height: 1px; background: #4b555b; }
.match-timeline-period strong { font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.match-timeline-added-time {
  width: max-content;
  margin: 8px auto 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #303638;
  color: var(--ink);
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
}
.match-timeline-row {
  display: grid;
  grid-template-columns: 34px 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-align: left;
}
.match-timeline-row.away { grid-template-columns: minmax(0, 1fr) 22px 34px; }
.match-timeline-row.away .match-timeline-copy { order: 1; text-align: right; }
.match-timeline-row.away .match-timeline-icon { order: 2; }
.match-timeline-row.away .match-timeline-minute { order: 3; text-align: left; }
.match-timeline-row[onclick] { cursor: pointer; }
.match-timeline-row[onclick]:hover { margin-inline: -6px; padding-inline: 6px; width: calc(100% + 12px); background: var(--soft); border-radius: 7px; }
.match-timeline-minute {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.match-timeline-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1;
  font-style: normal;
  font-weight: 850;
}
.match-timeline-icon.goal { color: #fff; background: #30383a; }
.match-timeline-icon.assist { color: #fff; background: var(--accent); }
.match-timeline-icon.yellow { background: #f5c400; }
.match-timeline-icon.red { background: #e84141; }
.match-timeline-icon.substitution {
  flex-direction: column;
  gap: 0;
  border: 1px solid #aeb5ba;
  border-radius: 50%;
  background: #eef0f1;
  color: #525c63;
}
.match-timeline-icon .substitution-arrow {
  display: block;
  height: 8px;
  font-size: 12px;
  line-height: 8px;
  font-style: normal;
  font-weight: 900;
}
.match-timeline-copy { display: block; min-width: 0; }
.match-timeline-names { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.match-timeline-row.away .match-timeline-names { justify-content: flex-end; }
.match-timeline-copy strong,
.match-timeline-copy .match-event-secondary { overflow: hidden; font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.match-timeline-copy .match-event-secondary { color: var(--muted); font-weight: 400; }
.match-timeline-copy small { display: block; overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.match-timeline-score { display: inline-flex; align-items: center; flex: none; padding: 3px 9px; border: 2px solid var(--accent); border-radius: 999px; color: var(--ink); font-size: 15px; font-weight: 850; line-height: 1; }
.match-timeline-empty { padding: 12px 0 4px; color: var(--muted); font-size: 9px; line-height: 1.45; }

/* Shot data is a deliberately lazy match-detail surface. */
.shotmap-card { padding: 24px; background: var(--surface, #171b1d); }
.shotmap-summary { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:18px; margin-bottom:18px; }
.shotmap-summary > div { display:flex; align-items:center; gap:9px; min-width:0; }
.shotmap-summary > div:last-child { justify-content:flex-end; }
.shotmap-summary img { width:30px; height:30px; object-fit:contain; }
.shotmap-summary span { color:var(--ink); font-weight:750; }
.shotmap-summary strong { color:var(--muted); font-size:11px; font-weight:650; }
.shotmap-summary small { color:var(--muted); font-size:10px; text-align:center; }
.shotmap-pitch { position:relative; width:min(100%, 650px); aspect-ratio:0.78; margin:0 auto; overflow:hidden; border:2px solid #52615c; border-radius:18px; background:linear-gradient(180deg,#0d2c21,#123b2c); }
.shotmap-pitch::before { content:""; position:absolute; inset:2%; border:1px solid rgba(255,255,255,.42); pointer-events:none; }
.shotmap-half { position:absolute; left:2%; right:2%; top:50%; border-top:1px solid rgba(255,255,255,.42); }
.shotmap-circle { position:absolute; left:50%; top:50%; width:20%; aspect-ratio:1; border:1px solid rgba(255,255,255,.42); border-radius:50%; transform:translate(-50%,-50%); }
.shotmap-box { position:absolute; left:28%; width:44%; height:16%; border:1px solid rgba(255,255,255,.42); }
.shotmap-box.top { top:2%; border-top:0; }
.shotmap-box.bottom { bottom:2%; border-bottom:0; }
.shotmap-point { position:absolute; width:13px; height:13px; padding:0; border:2px solid rgba(255,255,255,.82); border-radius:50%; transform:translate(-50%,-50%); box-shadow:0 2px 8px rgba(0,0,0,.42); cursor:help; z-index:2; }
.shotmap-point.home { background:#7c4dff; }
.shotmap-point.away { background:#42c95c; }
.shotmap-point.goal { width:20px; height:20px; border:4px solid #fff; box-shadow:0 0 0 3px currentColor,0 3px 12px rgba(0,0,0,.52); }
.shotmap-legend { display:flex; justify-content:center; gap:18px; margin-top:14px; color:var(--muted); font-size:11px; }
.shotmap-legend span { display:flex; align-items:center; gap:6px; }
.shotmap-legend i { width:10px; height:10px; border-radius:50%; background:#7c4dff; }
.shotmap-legend i.away { background:#42c95c; }
.shotmap-legend i.goal { background:transparent; border:2px solid var(--ink); }

/* Detail pages share the club view's darker middle surface. */
#view-team {
  --team-surface:rgba(21,20,23,.74);
  --team-surface-soft:rgba(20,20,22,.68);
  --team-line:#39353d;
}
#view-team .page-top-nav-bar {
  background:rgba(21,20,23,.46);
  border-color:#302a39;
}
#view-team .team-hero-card {
  background:var(--team-surface);
  border-color:rgba(61,53,70,.82);
}
#view-team .team-metric-card {
  background:var(--team-surface-soft);
  border-color:var(--team-line);
}
#view-team .team-squad-group,
#view-team .team-standings-shell,
#view-team .sofa-matches-wrapper {
  background:var(--team-surface-soft);
  border-color:var(--team-line);
  box-shadow:none;
}
#view-team .team-squad-group-header {
  background:rgba(24,22,27,.76);
  border-bottom-color:var(--team-line);
}
#view-team .team-player-row {
  border-bottom-color:#2d2735;
}
#view-team .team-player-row:hover {
  background:#18161b;
}
#view-team .team-player-ovr {
  background:#221f26;
}
#view-team .team-player-add-btn {
  background:#1a181e;
  border-color:var(--team-line);
}
#view-team .team-player-add-btn:disabled:hover {
  background:#1a181e;
  border-color:var(--team-line);
}
#view-team .team-nav-tabs {
  border-bottom-color:var(--team-line);
}
#view-team .team-tab-btn.active {
  background:#26222d;
  border-color:#49375f;
}
#view-team .team-fixtures-pills {
  background:#100e12;
  border-color:var(--team-line);
}
#view-team .team-fix-pill.active {
  background:#221f28;
}
#view-team .sofa-match-row {
  background:transparent;
  border-bottom-color:var(--team-line);
}
#view-team .sofa-match-row:hover {
  background:#18161b;
}
#view-team .team-standings-head {
  background:linear-gradient(120deg,#1b181f 0%,#151417 62%,#111519 100%);
  border-bottom-color:var(--team-line);
}
#view-team .team-standings-legend,
#view-team .team-standings-foot {
  background:rgba(20,20,22,.58);
  border-color:var(--team-line);
}
#view-team .team-standings-table th {
  background:#16141a;
  border-bottom-color:var(--team-line);
}
#view-team .team-standings-table td {
  border-bottom-color:#2d2735;
}
#view-team .team-standings-table tbody tr:hover td {
  background:#18161b;
}
#view-team .team-standings-table tbody tr.is-current td {
  background:#221f28;
}

/* Season home uses the same darker middle surface as the club and detail views. */
body[data-view="home"] {
  --season-surface:rgba(21,20,23,.74);
  --season-surface-soft:rgba(20,20,22,.68);
  --season-line:#39353d;
  --card:var(--season-surface);
  --soft:var(--season-surface-soft);
  --soft-hover:#18161b;
  --line:var(--season-line);
}
body[data-view="home"] .home-panel,
body[data-view="home"] .discovery-hero,
body[data-view="home"] .discovery-search,
body[data-view="home"] .squad-invite,
body[data-view="home"] .home-portfolio-card,
body[data-view="home"] .home-club-card,
body[data-view="home"] .home-value-mini,
body[data-view="home"] .wallet-hero {
  background:var(--season-surface);
  border-color:var(--season-line);
  box-shadow:none;
}
body[data-view="home"] .home-portfolio-card,
body[data-view="home"] .home-club-card {
  background:var(--season-surface);
}
body[data-view="home"] .spotlight,
body[data-view="home"] .sofa-matches-wrapper {
  background:var(--season-surface-soft);
  border-color:var(--season-line);
}
/* Season fixtures read as one quiet list inside the panel. */
body[data-view="home"] .sofa-matches-wrapper {
  background:transparent;
  border:0;
  border-radius:0;
  margin-bottom:0;
}
body[data-view="home"] .sofa-league-header {
  background:transparent;
  border-bottom:1px solid rgba(255,255,255,.07);
  padding:9px 2px;
}
body[data-view="home"] .fixture-league-group + .fixture-league-group {
  border-top:1px solid rgba(255,255,255,.07);
}
body[data-view="home"] .sofa-match-row {
  padding:12px 2px;
  border-bottom:1px solid rgba(255,255,255,.07);
}
body[data-view="home"] .sofa-match-row:hover,
body[data-view="home"] .sofa-match-row:focus-visible {
  background:rgba(255,255,255,.035);
}
body[data-view="home"] .sofa-match-status.upcoming {
  color:#aeb4b9;
  font-weight:550;
}
body[data-view="home"] .fixture-team-owned-mark {
  background:rgba(255,255,255,.08);
  color:#aeb4b9;
}
body[data-view="home"] .fixture-squad-note {
  color:#9aa2a8;
}
body[data-view="home"] .spotlight {
  border-left-color:var(--season-line);
}
body[data-view="home"] .spotlight-portrait img {
  background:var(--season-surface);
  border-color:var(--season-line);
}
body[data-view="home"] .spotlight-person>span {
  border-color:var(--season-surface-soft);
}
body[data-view="home"] .radar-table-head,
body[data-view="home"] .radar-tabs {
  border-color:var(--season-line);
}
body[data-view="home"] .radar-row {
  border-bottom-color:#2d2735;
}
body[data-view="home"] .radar-row:hover {
  background:#18161b;
}
body[data-view="home"] .date-stepper {
  border:0;
  background:transparent;
  padding:0;
}
body[data-view="home"] .date-step-center {
  border:0;
  background:transparent;
}
body[data-view="home"] .panel-league-select,
body[data-view="home"] .count-badge,
body[data-view="home"] .physical-badge-card {
  border-color:var(--season-line);
}
body[data-view="home"] .home-portfolio-movements,
body[data-view="home"] .home-portfolio-footer,
body[data-view="home"] .home-club-score,
body[data-view="home"] .home-club-footer,
body[data-view="home"] .sq-score-grid,
body[data-view="home"] .sq-score-grid>div,
body[data-view="home"] .sq-club-foot,
body[data-view="home"] .sq-club-points-chart,
body[data-view="home"] .sq-points-chart-meta {
  border-color:var(--season-line);
}
body[data-view="home"] .sq-score-primary {
  background:rgba(255,255,255,.025);
}
body[data-view="home"] .sq-club-foot,
body[data-view="home"] .sq-club-points-chart {
  background:rgba(18,17,20,.32);
}

/* Squad fixture card: quiet monochrome treatment for the dark season surface. */
body[data-view="home"] .squad-fixtures-panel {
  background:rgba(18,17,20,.66);
  border-color:rgba(255,255,255,.12);
}
body[data-view="home"] .squad-fixtures-panel .home-panel-title svg,
body[data-view="home"] .squad-fixtures-panel .sofa-league-header > svg {
  color:#9aa2a8;
}
body[data-view="home"] .squad-fixtures-panel .text-link {
  color:#aeb4b9;
}
body[data-view="home"] .squad-fixtures-panel .text-link:hover {
  color:var(--ink);
}
body[data-view="home"] .squad-fixtures-panel .sofa-matches-wrapper {
  background:transparent;
  border:0;
  border-radius:0;
}
body[data-view="home"] .squad-fixtures-panel .sofa-league-header {
  gap:7px;
  padding:0 2px 10px;
  background:transparent;
  border-bottom:1px solid rgba(255,255,255,.07);
  color:#9aa2a8;
}
body[data-view="home"] .squad-fixtures-panel .sofa-league-header > svg {
  width:15px;
  height:15px;
}
body[data-view="home"] .squad-fixtures-panel .sofa-league-header strong {
  color:#c8cdd1;
  font-weight:600;
}
body[data-view="home"] .squad-fixtures-panel .sofa-league-header span:last-child {
  color:#7f888e;
}
body[data-view="home"] .squad-fixtures-panel .sofa-match-row {
  padding:12px 2px;
  border-bottom-color:rgba(255,255,255,.07);
}
body[data-view="home"] .squad-fixtures-panel .sofa-match-row:hover,
body[data-view="home"] .squad-fixtures-panel .sofa-match-row:focus-visible {
  background:rgba(255,255,255,.035);
}
body[data-view="home"] .squad-fixtures-panel .squad-fixture-countdown {
  color:#aeb4b9;
  font-weight:600;
}
body[data-view="home"] .squad-fixtures-panel .squad-fixture-time {
  color:#7f888e;
  font-weight:650;
}
body[data-view="home"] .squad-fixtures-panel .fixture-team-owned .sofa-team-name,
body[data-view="home"] .squad-fixtures-panel .sofa-team-name {
  color:#d8dce0;
}
body[data-view="home"] .squad-fixtures-panel .fixture-team-owned-mark {
  background:rgba(255,255,255,.07);
  color:#9aa2a8;
}
body[data-view="home"] .squad-fixtures-panel .fixture-squad-note {
  color:#aeb4b9;
}
body[data-view="home"] .squad-fixtures-panel .fixture-squad-chip {
  border:0;
  background:rgba(255,255,255,.07);
  color:#aeb4b9;
}
body[data-view="home"] .squad-fixtures-panel .fixture-squad-chip svg,
body[data-view="home"] .squad-fixtures-panel .fixture-squad-label {
  color:#aeb4b9;
}
body[data-view="home"] .squad-fixtures-panel .fixture-squad-player {
  color:#b8bec3;
  font-weight:600;
}
body[data-view="home"] .squad-fixtures-panel .fixture-squad-player-avatar {
  border-color:#4b5358;
  background:#2b3034;
}
body[data-view="home"] .squad-fixtures-panel .fixture-squad-player-more {
  color:#8f989e;
}

/* Season radar: personal contribution and evidence-led player discovery. */
.season-radar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 0;color:var(--muted)}
.season-radar-toolbar p{font-size:11px;line-height:1.6;margin:0}
.season-radar-toolbar label{display:flex;align-items:center;gap:8px;font-size:10px;white-space:nowrap}
.season-radar-toolbar select{background:var(--soft);color:var(--ink);border:1px solid var(--line);border-radius:7px;padding:7px;font:inherit}
.season-radar-player{width:100%;display:grid;grid-template-columns:minmax(150px,1.5fr) minmax(88px,.9fr) minmax(125px,1.1fr) minmax(100px,.9fr) minmax(130px,1.2fr);gap:12px;align-items:center;text-align:left;padding:14px 0;border-top:1px solid var(--line);cursor:pointer;color:var(--ink);background:transparent}
.season-radar-player:hover{background:var(--soft)}
.season-radar-player:focus-visible,.season-radar button:focus-visible,.season-radar select:focus-visible{outline:2px solid #7C4DFF;outline-offset:3px;border-radius:6px}
.season-radar-person{display:flex;gap:10px;align-items:center;min-width:0}
.season-radar-person>span:last-child{min-width:0}
.season-radar-person strong{display:block;font-size:12px}
.season-radar-person small{display:block;font-size:10px;color:var(--muted);margin-top:4px}
.season-radar-person em{display:block;font-style:normal;font-size:10px;line-height:1.5;color:var(--muted);margin-top:7px}
.season-radar-match>small,.season-radar-history>small,.season-radar-price>small{display:block;font-size:8px;letter-spacing:.06em;color:var(--muted);margin-bottom:7px}
.season-radar-match>strong{display:block;font-size:20px;font-weight:650}
.season-radar-match i{font-style:normal;font-size:10px;font-weight:400}
.season-radar-match>span{display:block;font-size:9px;color:var(--muted);line-height:1.5;margin-top:5px}
.season-radar-history>span{display:flex;align-items:center;gap:4px;margin-bottom:7px}.season-radar-history .sq-rating{font-size:10px;min-width:25px;width:25px;padding:3px 2px;border-radius:4px;text-align:center}.season-radar-history .sq-muted{display:inline-grid;place-items:center;min-width:25px;width:25px;height:19px;color:var(--muted);font-size:9px;border:1px solid var(--line);border-radius:4px}
.season-radar-price{text-align:right;min-width:0;display:flex;flex-direction:column;align-items:flex-end;gap:5px}.season-radar-price strong{font-size:12px;display:block}.season-radar-price>span{font-size:10px;color:#a98aff;display:block;margin-top:0}.season-radar-price-chart{display:flex;width:100%;max-width:150px;min-width:0;justify-content:flex-end;align-items:center;overflow:hidden;margin:0;min-height:43px}.season-radar-price-chart .mk-price-chart{width:100%;max-width:150px;min-width:0}.season-radar-price-chart .mk-price-chart svg{height:30px}.season-radar-price-chart .mk-price-chart>span{justify-content:flex-end;gap:8px}.season-radar-price-chart .mk-price-chart small{display:none}
.season-radar-empty{display:flex;align-items:center;flex-direction:column;gap:16px;padding:30px 16px;text-align:center}.season-radar-empty>svg{color:#a98aff;width:28px;height:28px}.season-radar-empty strong{font-size:12px;font-weight:500;color:var(--muted);line-height:1.7}
@media(max-width:1250px){.season-radar-player{grid-template-columns:minmax(130px,1.35fr) minmax(80px,.85fr) minmax(105px,1fr) minmax(92px,.9fr) minmax(115px,1.15fr);gap:9px}.season-radar-price-chart{justify-content:flex-start}.season-radar-price-chart .mk-price-chart{width:100%}}
@media(max-width:600px){.season-radar-toolbar{align-items:flex-start;flex-direction:column;gap:10px}.season-radar-player{grid-template-columns:minmax(0,1fr) minmax(112px,.7fr);gap:10px;padding:13px 0}.season-radar-person{grid-column:1;grid-row:1}.season-radar-match{grid-column:2;grid-row:1}.season-radar-history{grid-column:1;grid-row:2}.season-radar-price{grid-column:2;grid-row:2;text-align:left;align-items:flex-start}.season-radar-price-chart{grid-column:1 / -1;grid-row:3;justify-content:flex-start;max-width:none}.season-radar-price-chart .mk-price-chart{width:112px}.season-radar-person .sq-avatar{display:none}.season-radar .radar-tabs{gap:18px}.season-radar .radar-tabs button{font-size:11px}}
.season-radar-skeleton span{display:block;height:85px;margin:12px 0;border-radius:8px;background:linear-gradient(100deg,var(--soft),var(--line),var(--soft));background-size:200% 100%;animation:season-radar-pulse 1.5s ease-in-out infinite}
@keyframes season-radar-pulse{to{background-position:-200% 0}}
@media(prefers-reduced-motion:reduce){.season-radar-skeleton span{animation:none}}
