﻿:root {
      --bg: #080c18; 
      --panel: rgba(14, 19, 40, 0.88);
      --panel-hover: rgba(20, 28, 58, 0.92);
      --surface-1: rgba(255,255,255,0.03);
      --surface-2: rgba(255,255,255,0.05);
      --surface-3: rgba(255,255,255,0.08);  
      --stroke: rgba(255,255,255,0.07);
      --stroke-hover: rgba(26, 201, 249, 0.25);
      --text: #edf2ff;
      --text-secondary: #a3b1d4;
      --muted: #6b7a9e;
      --accent: #64d4f4;
      --accent-glow: rgba(100,212,244,0.15); 
      --accent-2: #6efcb8;
      --danger: #f47272;
      --warning: #fbbf24;
      --success: #34d399;
      --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
      --shadow-md: 0 8px 30px rgba(0,0,0,0.3);
      --shadow-lg: 0 20px 60px rgba(0,0,0,0.4);
      --shadow-glow: 0 0 40px rgba(100,212,244,0.08);
      --radius-sm: 12px;
      --radius-md: 18px;
      --radius-lg: 24px;
      --radius-xl: 32px;
      --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Light theme (toggle in Settings) */
    [data-theme="light"] {
      --bg: #e8edf7;
      --panel: rgba(255, 255, 255, 0.9);
      --panel-hover: rgba(255, 255, 255, 0.98);
      --surface-1: rgba(15, 23, 42, 0.045);
      --surface-2: rgba(15, 23, 42, 0.07);
      --surface-3: rgba(15, 23, 42, 0.11);
      --stroke: rgba(15, 23, 42, 0.12);
      --stroke-hover: rgba(8, 145, 178, 0.4);
      --text: #0f172a;
      --text-secondary: #475569;
      --muted: #64748b;
      --accent: #0891b2;
      --accent-glow: rgba(8, 145, 178, 0.14);
      --accent-2: #059669;
      --danger: #dc2626;
      --warning: #ca8a04;
      --success: #059669;
      --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.07);
      --shadow-md: 0 8px 28px rgba(15, 23, 42, 0.1);
      --shadow-lg: 0 18px 48px rgba(15, 23, 42, 0.12);
      --shadow-glow: 0 0 28px rgba(8, 145, 178, 0.14);
      color-scheme: light;
    }
    [data-theme="light"] body::before {
      background:
        radial-gradient(ellipse 80% 60% at 10% 10%, rgba(8, 145, 178, 0.09), transparent),
        radial-gradient(ellipse 60% 50% at 90% 90%, rgba(5, 150, 105, 0.07), transparent),
        radial-gradient(ellipse 50% 40% at 50% 0%, rgba(99, 102, 241, 0.06), transparent);
    }
    [data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, 0.18); }
    [data-theme="light"] .league-logo::after {
      background: #fff; color: var(--text); border: 1px solid var(--stroke);
      box-shadow: var(--shadow-md);
    }
    [data-theme="light"] .league-logo:hover { border-color: rgba(15, 23, 42, 0.18); }
    [data-theme="light"] .modal-overlay,
    [data-theme="light"] .search-overlay { background: rgba(15, 23, 42, 0.45); }
    [data-theme="light"] .hero-logo { border-color: rgba(15, 23, 42, 0.1); }
    [data-theme="light"] .crest { border-color: rgba(15, 23, 42, 0.1); }
    [data-theme="light"] .fav-team-btn { background: rgba(15, 23, 42, 0.08); }
    [data-theme="light"] .mini-row,
    [data-theme="light"] .top-match-mini { border-top-color: rgba(15, 23, 42, 0.08); }
    [data-theme="light"] .btn .kbd { background: rgba(15, 23, 42, 0.08); }
    [data-theme="light"] .score.hidden { text-shadow: 0 0 14px rgba(15, 23, 42, 0.35); }
    [data-theme="light"] .ai-ring .ring-bg { stroke: rgba(15, 23, 42, 0.12); }
    [data-theme="light"] #langSelect {
      background-color: #fff;
      color: #0f172a;
      color-scheme: light;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230891b2' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    }
    [data-theme="light"] #langSelect:hover { border-color: rgba(8, 145, 178, 0.45); }
    [data-theme="light"] #langSelect:focus { box-shadow: 0 0 0 2px rgba(8, 145, 178, 0.2); }
    [data-theme="light"] #langSelect option {
      background-color: #fff;
      color: #0f172a;
    }
    [data-theme="light"] #langSelect option:checked,
    [data-theme="light"] #langSelect option:hover {
      background-color: #f0fdfa;
      color: #0f172a;
    }
    [data-theme="light"] #themeSelect {
      background-color: #fff;
      color: #0f172a;
      color-scheme: light;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230891b2' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
      -webkit-appearance: none;
      appearance: none;
      background-repeat: no-repeat;
      background-position: right 12px center;
      padding-right: 36px;
    }
    [data-theme="light"] #themeSelect option { background-color: #fff; color: #0f172a; }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { font-size: 15px; -webkit-font-smoothing: antialiased; color-scheme: dark; }
    body {
      background: var(--bg); color: var(--text);
      font-family: 'Inter', system-ui, -apple-system, sans-serif;
      min-height: 100vh; overflow-x: hidden; padding-bottom: 14px;
      transition: padding-bottom 420ms cubic-bezier(0.22, 1, 0.36, 1);
    }
    body.donation-bar-visible { padding-bottom: 110px; }
    body.modal-open {
      position: fixed;
      inset: 0;
      width: 100%;
      overflow: hidden;
      touch-action: none;
    }
    body::before {
      content: ''; position: fixed; inset: 0; z-index: -1;
      background:
        radial-gradient(ellipse 80% 60% at 10% 10%, rgba(100,212,244,0.08), transparent),
        radial-gradient(ellipse 60% 50% at 90% 90%, rgba(110,252,184,0.06), transparent),
        radial-gradient(ellipse 50% 40% at 50% 0%, rgba(139,92,246,0.05), transparent);
    }
    ::-webkit-scrollbar { width: 6px; height: 6px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

    .app {
      display: grid; grid-template-columns: 78px minmax(0, 1fr) 300px;
      gap: 14px; min-height: 100vh; padding: 14px; max-width: 1800px; margin: 0 auto;
    }

    /* SIDEBAR */
    .sidebar {
      background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--radius-xl);
      backdrop-filter: blur(20px); display: flex; flex-direction: column; align-items: center;
      padding: 16px 8px; gap: 6px; position: sticky; top: 14px;
      height: calc(100vh - 28px); overflow-y: auto; box-shadow: var(--shadow-md);
    }
    .sidebar-brand {
      width: 48px; height: 48px;
      background: #2f3747;
      border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
      font-weight: 900; font-size: 0.7rem; color: #080c18; margin-bottom: 10px;
    }
    .sidebar-brand img {
      width: 34px;
      height: 34px;
      object-fit: contain;
      border-radius: 8px;
    }
    .sidebar-divider { width: 36px; height: 1px; background: var(--stroke); margin: 4px 0; }

    .league-logo {
      width: 50px; height: 50px; border-radius: var(--radius-sm);
      display: flex; align-items: center; justify-content: center;
      border: 1.5px solid transparent; cursor: pointer; position: relative;
      transition: var(--transition); user-select: none; overflow: hidden;
      background: var(--surface-2);
    }
    .league-logo img {
      width: 32px;
      height: 32px;
      object-fit: contain;
      image-rendering: -webkit-optimize-contrast;
      image-rendering: crisp-edges;
    }
    .league-logo .fallback-text {
      font-weight: 800; font-size: 0.75rem; color: white;
    }
    .league-logo::after {
      content: attr(data-tooltip); position: absolute; left: calc(100% + 12px);
      top: 50%; transform: translateY(-50%); background: #1a2240; color: var(--text);
      padding: 6px 12px; border-radius: 8px; font-size: 0.73rem; font-weight: 600;
      white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.15s;
      box-shadow: var(--shadow-sm); z-index: 100;
    }
    .league-logo:hover::after { opacity: 1; }
    .league-logo:hover { transform: scale(1.08); border-color: rgba(255,255,255,0.15); }
    .league-logo.active { border-color: var(--accent); box-shadow: 0 0 20px rgba(100,212,244,0.2); }
    .logo-ll { background: linear-gradient(145deg, #ff6a5f, #ff3f47); }
    .logo-pl { background: linear-gradient(145deg, #8b5cf6, #ec4899); }
    .logo-bl { background: #d8192a; }
    .logo-sa { background: linear-gradient(160deg, #163a86, #0a1f55); }
    .logo-cl { background: linear-gradient(145deg, #0a1e8f, #040b3f); }
    .logo-l1 { background: linear-gradient(160deg, #2a7bff, #0f4fd3); }
    .logo-nl { background: linear-gradient(145deg, #253665, #111a3a); }
    .logo-wc { background: linear-gradient(145deg, #d4af37, #8b6914); }
    .logo-ot { background: linear-gradient(145deg, #10b981, #14b8a6); margin-top: auto; }
    .league-logo.logo-cl img,
    .league-logo.logo-ll img {
      width: 36px;
      height: 36px;
      filter: drop-shadow(0 1px 1px rgba(0,0,0,0.15));
    }
    .league-logo.logo-sa img {
      width: 30px;
      height: 36px;
      background: #ffffff;
      border-radius: 8px;
      padding: 3px 4px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    }
    .league-logo.logo-l1 img {
      width: 36px;
      height: 36px;
      filter: none;
    }
    .league-logo.logo-bl img {
      width: 34px;
      height: 34px;
      filter: none;
    }
    .league-logo.logo-ll img {
      filter: brightness(0) invert(1);
    }
    .league-logo.logo-cl img {
      filter: brightness(0) invert(1);
    }

    /* MAIN */
    .content {
      background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--radius-xl);
      backdrop-filter: blur(20px); box-shadow: var(--shadow-md);
      padding: 24px; display: flex; flex-direction: column; gap: 20px; min-width: 0;
    }
    .topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
    .title-block h1 {
      font-size: clamp(1.6rem, 2.2vw, 2.2rem); font-weight: 900; letter-spacing: -0.04em;
      color: #d4d9e6;
    }
    .title-block p { color: var(--muted); font-size: 0.87rem; margin-top: 6px; }
    .toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

    .btn {
      border: 1px solid var(--stroke); background: var(--surface-2);
      color: var(--text); padding: 10px 16px; border-radius: var(--radius-sm);
      font-weight: 600; font-size: 0.83rem; cursor: pointer; transition: var(--transition);
      display: inline-flex; align-items: center; gap: 6px; font-family: inherit;
    }
    .btn:hover { border-color: var(--stroke-hover); background: var(--surface-3); transform: translateY(-1px); }
    .btn:active { transform: translateY(0); }
    .btn.primary {
      background: linear-gradient(135deg, rgba(100,212,244,0.18), rgba(110,252,184,0.12));
      border-color: rgba(100,212,244,0.25);
    }
    .btn.primary:hover { background: linear-gradient(135deg, rgba(100,212,244,0.28), rgba(110,252,184,0.18)); box-shadow: 0 0 20px rgba(100,212,244,0.15); }
    .btn-icon { width: 40px; height: 40px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); }
    .btn .kbd { font-size: 0.65rem; padding: 2px 5px; border-radius: 4px; background: rgba(255,255,255,0.08); color: var(--muted); }

    .connection-badge {
      display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
      border-radius: 999px; font-size: 0.72rem; font-weight: 700;
      border: 1px solid var(--stroke); background: var(--surface-1);
    }
    .connection-dot { width: 7px; height: 7px; border-radius: 50%; }
    .connection-badge.live .connection-dot { background: var(--success); box-shadow: 0 0 8px var(--success); }
    .connection-badge.offline .connection-dot { background: var(--muted); }
    .connection-badge.error .connection-dot { background: var(--danger); }

    /* HERO */
    .hero {
      display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
      background: linear-gradient(135deg, var(--surface-2), var(--surface-1));
      border: 1px solid var(--stroke); border-radius: var(--radius-lg); padding: 20px;
      position: relative; overflow: hidden;
    }
    .hero::before {
      content: ''; position: absolute; inset: 0;
      background: radial-gradient(circle at 20% 50%, rgba(100,212,244,0.06), transparent 60%);
      pointer-events: none;
    }
    .hero-left { display: flex; align-items: center; gap: 16px; min-width: 0; z-index: 1; }
    .hero-logo {
      width: 64px; height: 64px; border-radius: var(--radius-md); flex: 0 0 auto;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.2rem; font-weight: 900; border: 1px solid rgba(255,255,255,0.1);
      box-shadow: var(--shadow-sm); overflow: hidden; background: var(--surface-2);
    }
    .hero-logo img { width: 48px; height: 48px; object-fit: contain; }
    .hero-logo.logo-ll { background: linear-gradient(145deg, #ff6a5f, #ff3f47); }
    .hero-logo.logo-pl { background: linear-gradient(145deg, #8b5cf6, #ec4899); }
    .hero-logo.logo-bl { background: #d8192a; }
    .hero-logo.logo-sa { background: linear-gradient(160deg, #163a86, #0a1f55); }
    .hero-logo.logo-cl { background: linear-gradient(145deg, #0a1e8f, #040b3f); }
    .hero-logo.logo-l1 { background: linear-gradient(160deg, #2a7bff, #0f4fd3); }
    .hero-logo.logo-wc { background: linear-gradient(145deg, #d4af37, #8b6914); }
    .hero-logo.logo-ot { background: linear-gradient(145deg, #10b981, #14b8a6); }
    .hero-logo.logo-cl img,
    .hero-logo.logo-ll img {
      filter: brightness(0) invert(1);
    }
    .hero-logo.logo-bl img {
      width: 48px;
      height: 48px;
      filter: none;
    }
    .hero-logo.logo-sa img {
      width: 46px;
      height: 54px;
      background: #ffffff;
      border-radius: 10px;
      padding: 3px 4px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.25);
      filter: none;
    }
    .hero-logo.logo-l1 img {
      width: 54px;
      height: 54px;
      filter: none;
    }
    .hero-copy h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
    .hero-copy .sub { color: var(--text-secondary); font-size: 0.85rem; margin-top: 4px; }
    .hero-nav { display: flex; align-items: center; gap: 8px; z-index: 1; }
    .nav-round {
      min-width: 140px; text-align: center; font-weight: 800; font-size: 0.88rem;
      padding: 12px 16px; border: 1px solid var(--stroke); border-radius: var(--radius-sm); background: var(--surface-2);
    }

    /* FILTER */
    .filter-bar {
      display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
      padding: 12px 16px; border-radius: var(--radius-md); background: var(--surface-1); border: 1px solid var(--stroke);
    }
    .filter-bar label { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); }
    .filter-bar input[type="range"] {
      -webkit-appearance: none; width: 120px; height: 4px;
      background: var(--stroke); border-radius: 2px; outline: none;
    }
    .filter-bar input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
      background: var(--accent); cursor: pointer; box-shadow: 0 0 10px rgba(100,212,244,0.4);
    }
    .filter-value { font-weight: 800; font-size: 0.85rem; color: var(--accent); min-width: 28px; }
    .filter-count { font-size: 0.78rem; color: var(--muted); margin-left: auto; }

    /* PAGES */
    .page { display: none; animation: fadeIn 0.3s ease; }
    .page.active { display: block; }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes spin { to { transform: rotate(360deg); } }
    @keyframes revealFocusPulse {
      0% { transform: translateY(0) scale(1); box-shadow: var(--shadow-sm); }
      50% { transform: translateY(-1px) scale(1.01); box-shadow: 0 0 0 1px rgba(100,212,244,0.25), 0 0 22px rgba(100,212,244,0.22); }
      100% { transform: translateY(0) scale(1); box-shadow: var(--shadow-sm); }
    }
    @keyframes twinkle {
      0%, 100% { opacity: 0.18; }
      50% { opacity: 0.55; }
    }
    @keyframes starsFloat {
      from { transform: translateY(0); }
      to { transform: translateY(-26px); }
    }
    @keyframes mustWatchPulse {
      0%, 100% {
        border-color: rgba(250, 204, 21, 0.45);
        box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.22), 0 0 18px rgba(250, 204, 21, 0.18);
      }
      50% {
        border-color: rgba(250, 204, 21, 0.75);
        box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.45), 0 0 30px rgba(250, 204, 21, 0.35);
      }
    }
    @keyframes badgePulse {
      0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 2px 10px rgba(250, 204, 21, 0.35);
      }
      50% {
        transform: translate(-50%, -50%) scale(1.06);
        box-shadow: 0 3px 16px rgba(250, 204, 21, 0.55);
      }
    }

    /* MATCH CARDS */
    .matches { display: flex; flex-direction: column; gap: 10px; }
    .match-card {
      border: 1px solid var(--stroke);
      background: linear-gradient(135deg, var(--surface-2), var(--surface-1));
      border-radius: var(--radius-md); padding: 14px 18px;
      display: grid; grid-template-columns: 32px minmax(0,1fr) auto;
      gap: 14px; align-items: center; cursor: pointer; transition: var(--transition);
      position: relative; animation: slideUp 0.3s ease both;
    }
    .must-watch-badge {
      position: absolute;
      top: 0;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: 3;
      background: #facc15;
      color: #1f2937;
      border: 1px solid #f59e0b;
      border-radius: 999px;
      padding: 4px 10px;
      font-size: 0.68rem;
      font-weight: 900;
      line-height: 1;
      white-space: nowrap;
      letter-spacing: 0.03em;
      text-transform: uppercase;
      box-shadow: 0 2px 10px rgba(250, 204, 21, 0.35);
      animation: badgePulse 2s ease-in-out infinite;
    }
    .match-center {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
    .must-watch-badge.must-watch-badge--score {
      top: 0;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: 4;
    }
    .match-card.must-watch,
    .top-card-match.must-watch {
      overflow: visible;
      border-color: rgba(250, 204, 21, 0.45);
      box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.25), 0 0 26px rgba(250, 204, 21, 0.2);
      animation: mustWatchPulse 2.2s ease-in-out infinite;
    }
    .match-card.must-watch::before,
    .top-card-match.must-watch::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      z-index: 0;
      border-radius: inherit;
      background:
        radial-gradient(circle at 12% 18%, rgba(255, 238, 138, 0.8) 0 1.4px, transparent 2px),
        radial-gradient(circle at 14% 64%, rgba(255, 238, 138, 0.7) 0 1.05px, transparent 2px),
        radial-gradient(circle at 19% 42%, rgba(255, 238, 138, 0.72) 0 1.1px, transparent 2px),
        radial-gradient(circle at 24% 28%, rgba(255, 238, 138, 0.74) 0 1.15px, transparent 2px),
        radial-gradient(circle at 28% 76%, rgba(255, 238, 138, 0.7) 0 1.1px, transparent 2px),
        radial-gradient(circle at 33% 14%, rgba(255, 238, 138, 0.76) 0 1.2px, transparent 2px),
        radial-gradient(circle at 37% 58%, rgba(255, 238, 138, 0.68) 0 1.0px, transparent 2px),
        radial-gradient(circle at 44% 35%, rgba(255, 238, 138, 0.72) 0 1.2px, transparent 2px),
        radial-gradient(circle at 52% 82%, rgba(255, 238, 138, 0.68) 0 1.05px, transparent 2px),
        radial-gradient(circle at 57% 18%, rgba(255, 238, 138, 0.76) 0 1.2px, transparent 2px),
        radial-gradient(circle at 61% 63%, rgba(255, 238, 138, 0.75) 0 1.5px, transparent 2px),
        radial-gradient(circle at 68% 41%, rgba(255, 238, 138, 0.74) 0 1.15px, transparent 2px),
        radial-gradient(circle at 72% 86%, rgba(255, 238, 138, 0.66) 0 1.0px, transparent 2px),
        radial-gradient(circle at 76% 22%, rgba(255, 238, 138, 0.72) 0 1.2px, transparent 2px),
        radial-gradient(circle at 82% 58%, rgba(255, 238, 138, 0.7) 0 1.1px, transparent 2px),
        radial-gradient(circle at 86% 40%, rgba(255, 238, 138, 0.74) 0 1.2px, transparent 2px),
        radial-gradient(circle at 88% 74%, rgba(255, 238, 138, 0.8) 0 1.3px, transparent 2px),
        radial-gradient(circle at 91% 62%, rgba(255, 238, 138, 0.7) 0 1.1px, transparent 2px),
        radial-gradient(circle at 93% 27%, rgba(255, 238, 138, 0.74) 0 1.2px, transparent 2px);
      animation-name: twinkle, starsFloat;
      animation-duration: 1.9s, 6s;
      animation-timing-function: ease-in-out, linear;
      animation-delay: 0s, 0s;
      animation-direction: alternate, normal;
      animation-fill-mode: both, both;
      animation-iteration-count: infinite, infinite;
      will-change: transform, opacity;
    }
    .match-card.must-watch > *:not(.must-watch-badge),
    .top-card-match.must-watch > *:not(.must-watch-badge) {
      position: relative;
      z-index: 1;
    }
    .match-card:hover { border-color: var(--stroke-hover); background: var(--panel-hover); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
    .match-card.reveal-focus {
      animation: revealFocusPulse 0.45s ease-out;
    }
    .crest-fav-wrap {
      display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto;
    }
    .fav-team-btn {
      background: rgba(0,0,0,0.35); border: 1px solid var(--stroke); cursor: pointer;
      font-family: inherit; color: var(--muted); transition: var(--transition);
    }
    .fav-team-btn--icon {
      width: 22px; height: 22px; padding: 0; border-radius: 6px; font-size: 0.7rem; font-weight: 900;
      line-height: 1; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    }
    .match-card:hover .fav-team-btn--icon { color: var(--text-secondary); border-color: var(--stroke-hover); }
    .fav-team-btn--icon.active {
      color: var(--warning); border-color: rgba(251,191,36,0.45);
      text-shadow: 0 0 10px rgba(251,191,36,0.35);
    }
    .fav-team-btn--icon:hover { transform: scale(1.08); }
    .modal-crest-fav {
      display: flex; align-items: center; justify-content: center; gap: 8px;
    }
    .modal-crest-fav .fav-team-btn--icon {
      width: 28px; height: 28px; font-size: 0.88rem; border-radius: 8px;
    }
    .fav-page-filters {
      display: none; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; margin-bottom: 16px;
      padding: 14px 16px; border-radius: var(--radius-md); background: var(--surface-1); border: 1px solid var(--stroke);
    }
    .fav-page-filters label { font-size: 0.72rem; font-weight: 600; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
    .fav-page-filters select {
      font: inherit; font-size: 0.82rem; padding: 6px 10px; border-radius: 8px;
      border: 1px solid var(--stroke); background: var(--surface-2); color: var(--text); min-width: 140px;
    }
    .fav-page-filters .fav-ai-wrap { min-width: 130px; }
    .fav-page-filters input[type="range"] { width: 120px; height: 4px; -webkit-appearance: none; background: var(--stroke); border-radius: 2px; }
    .fav-page-filters input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); cursor: pointer;
    }
    .fav-page-filters .fav-ai-val { font-size: 0.75rem; color: var(--accent); font-weight: 700; }
    .fav-more-row { display: flex; justify-content: center; margin-bottom: 14px; }
    .fav-more-row .btn { font-size: 0.88rem; padding: 10px 18px; }
    .match-index { font-size: 0.75rem; font-weight: 700; color: var(--muted); text-align: center; }

    .teams { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 12px; align-items: center; min-width: 0; }
    .team { display: flex; align-items: center; gap: 10px; min-width: 0; }
    .team.away { justify-content: flex-end; }
    .team-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; font-size: 0.9rem; }
    .team-pos { font-size: 0.72rem; color: var(--muted); font-weight: 600; }

    .crest {
      width: 40px; height: 40px; border-radius: var(--radius-sm); flex: 0 0 auto;
      display: flex; align-items: center; justify-content: center;
      font-size: 0.78rem; font-weight: 800; border: 1px solid rgba(255,255,255,0.08);
      overflow: hidden; background: var(--surface-2);
    }
    .crest img { width: 30px; height: 30px; object-fit: contain; }

    .score {
      min-width: 90px; text-align: center; font-size: 1.35rem; font-weight: 900;
      letter-spacing: 0.05em; padding: 8px 12px; border-radius: var(--radius-sm);
      border: 1px solid var(--stroke); background: var(--surface-2); transition: var(--transition);
    }
    .score.hidden { color: transparent; text-shadow: 0 0 12px rgba(255,255,255,0.25); user-select: none; }
    .score-label { display: block; font-size: 0.68rem; color: var(--muted); margin-top: 3px; letter-spacing: 0.04em; text-align: center; }
    .match-right { display: flex; align-items: center; gap: 12px; }

    .ai-ring { width: 52px; height: 52px; position: relative; flex: 0 0 auto; }
    .ai-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
    .ai-ring .ring-bg { fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 3; }
    .ai-ring .ring-fill { fill: none; stroke-width: 3; stroke-linecap: round; transition: stroke-dashoffset 0.8s ease; }
    .ai-ring .ring-value {
      position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
      font-size: 0.78rem; font-weight: 900;
    }
    .reveal-btn {
      background: none; border: 1px solid var(--stroke); color: var(--text-secondary);
      padding: 6px 12px; border-radius: 8px; font-size: 0.75rem; font-weight: 600;
      cursor: pointer; transition: var(--transition); font-family: inherit; white-space: nowrap;
    }
    .reveal-btn:hover { border-color: var(--stroke-hover); color: var(--text); }

    /* RIGHTBAR */
    .rightbar {
      background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--radius-xl);
      backdrop-filter: blur(20px); box-shadow: var(--shadow-md); padding: 18px;
      display: flex; flex-direction: column; gap: 12px;
      position: sticky; top: 14px; height: calc(100vh - 28px); overflow-y: auto;
    }
    .nav-card, .info-card, .widget-card {
      border: 1px solid var(--stroke); border-radius: var(--radius-md);
      padding: 14px; background: var(--surface-1);
    }
    .card-title {
      font-size: 0.78rem; font-weight: 700; color: var(--muted);
      text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px;
    }
    .card-title-btn {
      background: none;
      border: none;
      padding: 0;
      cursor: pointer;
      text-align: left;
      font-family: inherit;
    }
    .card-title-btn:hover { color: var(--accent); }
    .nav-list { display: flex; flex-direction: column; gap: 4px; }
    .nav-item {
      width: 100%; text-align: left; border: none; cursor: pointer;
      background: transparent; color: var(--text-secondary);
      border-radius: var(--radius-sm); padding: 10px 12px;
      font-weight: 600; font-size: 0.85rem; font-family: inherit;
      transition: var(--transition); display: flex; align-items: center; gap: 8px;
      text-decoration: none;
    }
    .nav-item:hover { background: var(--surface-2); color: var(--text); }
    .nav-item.active { background: linear-gradient(135deg, rgba(100,212,244,0.14), rgba(110,252,184,0.08)); color: var(--accent); }
    .nav-icon { font-size: 1rem; width: 20px; text-align: center; }

    .mini-list { display: flex; flex-direction: column; gap: 8px; }
    .mini-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,0.04); }
    .mini-row:first-child { border-top: none; padding-top: 0; }
    .mini-row .label { font-size: 0.82rem; color: var(--text-secondary); }
    .mini-row .value { font-weight: 800; font-size: 0.85rem; }
    .pill { font-size: 0.72rem; color: #080c18; background: var(--accent-2); padding: 4px 10px; border-radius: 999px; font-weight: 800; }

    .top-match-mini { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,0.04); }
    .top-match-mini:first-child { border-top: none; padding-top: 0; }
    .top-match-mini .tm-info { flex: 1; min-width: 0; }
    .top-match-mini .tm-teams { font-weight: 700; font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .top-match-mini .tm-league { font-size: 0.72rem; color: var(--muted); }
    .top-match-mini.must-watch {
      border: 1px solid rgba(250, 204, 21, 0.45);
      border-radius: 10px;
      padding: 8px;
      margin-top: 6px;
      box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.22), 0 0 18px rgba(250, 204, 21, 0.16);
      animation: mustWatchPulse 2.2s ease-in-out infinite;
    }
    .top-match-mini.must-watch:first-child { margin-top: 0; }
    .profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    @media (max-width: 900px) { .profile-grid { grid-template-columns: 1fr; } }

    .section-title { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
    .seo-content {
      margin-top: 18px;
      padding: 18px;
      border-radius: var(--radius-md);
      border: 1px solid var(--stroke);
      background: linear-gradient(135deg, var(--surface-2), var(--surface-1));
    }
    .seo-content h2 {
      font-size: 1.05rem;
      font-weight: 800;
      letter-spacing: -0.01em;
      margin-bottom: 10px;
    }
    .seo-content p {
      color: var(--text-secondary);
      font-size: 0.88rem;
      line-height: 1.6;
    }
    .seo-hubs {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      margin-top: 14px;
    }
    .seo-hubs article {
      background: var(--surface-1);
      border: 1px solid var(--stroke);
      border-radius: var(--radius-sm);
      padding: 12px;
    }
    .seo-hubs h3 {
      font-size: 0.86rem;
      margin-bottom: 8px;
      color: var(--text);
    }
    .seo-hubs ul {
      list-style: disc;
      margin-left: 18px;
      color: var(--text-secondary);
      display: grid;
      gap: 6px;
      font-size: 0.82rem;
      line-height: 1.4;
    }
    .seo-hubs a {
      color: var(--accent);
      text-decoration: none;
    }
    .seo-hubs a:hover {
      text-decoration: underline;
    }
    .seo-related {
      margin-top: 16px;
      padding-top: 14px;
      border-top: 1px solid var(--stroke);
    }
    .seo-related h3 {
      margin-bottom: 9px;
      font-size: 0.86rem;
      color: var(--text);
    }
    .seo-related ul {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 14px;
      list-style: none;
    }
    .seo-related a {
      color: var(--accent);
      font-size: 0.8rem;
      text-decoration: none;
    }
    .seo-related a:hover { text-decoration: underline; }
    .seo-note {
      margin-top: 12px;
      font-size: 0.8rem;
      color: var(--muted);
    }
    .seo-content-bottom-mobile { display: none; }

    /* CARDS */
    .top-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
    .top-card, .league-card {
      border: 1px solid var(--stroke); border-radius: var(--radius-md); padding: 16px;
      background: linear-gradient(135deg, var(--surface-2), var(--surface-1));
      transition: var(--transition); cursor: default;
    }
    .top-card:hover, .league-card:hover { border-color: var(--stroke-hover); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
    .league-tag { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
    .top-card h4, .league-card h4 { margin: 8px 0 10px; font-size: 0.95rem; font-weight: 700; }
    .top-card .big { font-size: 1.2rem; font-weight: 900; }

    /* TABLE */
    .table-wrap { overflow: auto; border-radius: var(--radius-md); border: 1px solid var(--stroke); }
    table { width: 100%; border-collapse: collapse; min-width: 580px; background: var(--surface-1); }
    th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 0.85rem; }
    th {
      color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
      position: sticky; top: 0; background: rgba(14,19,40,0.98); cursor: pointer;
      user-select: none; transition: var(--transition); font-weight: 700;
    }
    th:hover { color: var(--accent); }
    th.sorted { color: var(--accent); }
    th .sort-arrow { font-size: 0.65rem; margin-left: 4px; }
    td { font-weight: 500; }
    td strong { font-weight: 800; }
    tr:hover td { background: rgba(255,255,255,0.02); }
    .standings-pos {
      width: 28px; height: 28px; border-radius: 8px; display: inline-flex;
      align-items: center; justify-content: center; font-weight: 800; font-size: 0.8rem;
    }
    .pos-ucl { background: rgba(100,212,244,0.15); color: var(--accent); }
    .pos-uel { background: rgba(251,191,36,0.15); color: var(--warning); }
    .pos-uecl { background: rgba(167,139,250,0.18); color: #c4b5fd; }
    .pos-relpo { background: rgba(251,191,36,0.15); color: #f59e0b; }
    .pos-rel { background: rgba(244,114,114,0.15); color: var(--danger); }
    .standings-legend {
      display: none;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
      margin-top: 10px;
      color: var(--muted);
      font-size: 0.74rem;
    }
    .standings-legend__item {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(255,255,255,0.02);
      border: 1px solid var(--stroke);
      border-radius: 999px;
      padding: 4px 9px;
    }
    td .team-cell { display: flex; align-items: center; gap: 10px; }
    td .team-cell img { width: 22px; height: 22px; object-fit: contain; }

    /* ARCHIVE */
    .archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
    .archive-btn {
      padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--stroke);
      background: var(--surface-1); color: var(--text); cursor: pointer;
      font-weight: 600; font-size: 0.83rem; font-family: inherit;
      transition: var(--transition); text-align: center;
    }
    .archive-btn:hover { border-color: var(--stroke-hover); background: var(--surface-2); transform: translateY(-1px); }
    .archive-btn.current { border-color: var(--accent); background: var(--accent-glow); }

    /* STATS */
    .stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
    .stat-card { border: 1px solid var(--stroke); border-radius: var(--radius-md); padding: 18px; background: var(--surface-1); }
    .stat-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
    .stat-value { font-size: 2rem; font-weight: 900; margin: 8px 0; letter-spacing: -0.04em; }
    .stat-bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.06); overflow: hidden; margin-top: 8px; }
    .stat-bar-fill { height: 100%; border-radius: 2px; transition: width 0.8s ease; }
    .scorer-row { display: grid; grid-template-columns: 28px 34px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; }
    .scorer-crest { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .scorer-crest .crest { flex-shrink: 0; }
    .scorer-rank { font-weight: 800; color: var(--muted); font-size: 0.85rem; text-align: center; }
    .scorer-bar { flex: 1; height: 24px; border-radius: 6px; background: rgba(255,255,255,0.04); overflow: hidden; position: relative; }
    .scorer-bar-fill {
      height: 100%; border-radius: 6px; display: flex; align-items: center;
      padding: 0 10px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; transition: width 0.8s ease;
    }
    .scorer-val { font-weight: 800; font-size: 0.85rem; min-width: 30px; text-align: right; }
    .scorer-bar-wrap { display: flex; align-items: center; gap: 10px; }

    /* MODAL */
    .modal-overlay {
      position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.7);
      backdrop-filter: blur(8px); display: none; align-items: center;
      justify-content: center; padding: 20px; animation: fadeIn 0.2s ease;
    }
    .modal-overlay.active { display: flex; }
    .modal {
      background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--radius-xl);
      padding: 28px; max-width: 760px; width: 100%; box-shadow: var(--shadow-lg);
      animation: slideUp 0.3s ease; max-height: 90vh; overflow-y: auto;
    }
    .modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
    .modal-header h3 { font-size: 1.2rem; font-weight: 800; }
    .modal-close {
      background: none; border: 1px solid var(--stroke); color: var(--text);
      width: 36px; height: 36px; border-radius: 10px; cursor: pointer; font-size: 1.1rem;
      transition: var(--transition); display: flex; align-items: center; justify-content: center; font-family: inherit;
    }
    .modal-close:hover { background: var(--surface-2); border-color: var(--stroke-hover); }
    .modal-teams { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 20px 0; text-align: center; }
    .modal-team { display: flex; flex-direction: column; align-items: center; gap: 8px; }
    .modal-team .crest { width: 56px; height: 56px; font-size: 0.95rem; }
    .modal-team .crest img { width: 42px; height: 42px; }
    .modal-team .name { font-weight: 700; font-size: 0.95rem; }
    .modal-team .pos { font-size: 0.78rem; color: var(--muted); }
    .modal-vs { font-size: 2rem; font-weight: 900; color: var(--muted); }
    .modal-score {
      text-align: center; font-size: 2.5rem; font-weight: 900;
      padding: 16px; border-radius: var(--radius-md); background: var(--surface-2);
      border: 1px solid var(--stroke); margin: 16px 0; letter-spacing: 0.1em;
    }
    .modal-details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
    .modal-detail { padding: 12px; border-radius: var(--radius-sm); background: var(--surface-1); border: 1px solid var(--stroke); text-align: center; }
    .modal-detail .md-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
    .modal-detail .md-value { font-size: 1.1rem; font-weight: 800; margin-top: 4px; }
    .modal-section { margin-top: 18px; }
    .modal-section-title {
      font-size: 0.88rem; font-weight: 800; margin-bottom: 10px;
      text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-secondary);
    }
    .modal-api-note,
    .modal-lineups-note {
      margin-top: 10px; padding: 12px; border-radius: var(--radius-sm);
      background: rgba(100, 212, 244, 0.06); border: 1px solid rgba(100, 212, 244, 0.16);
      color: var(--text-secondary); font-size: 0.8rem; line-height: 1.45;
    }
    .modal-lineups-note { background: var(--surface-1); border-color: var(--stroke); color: var(--muted); }
    .modal-spoiler-card {
      margin: 14px 0 18px; padding: 14px; border-radius: var(--radius-md);
      border: 1px solid var(--stroke); background: var(--surface-1); overflow: hidden;
    }
    .modal-spoiler-header {
      display: flex; align-items: center; justify-content: space-between;
      gap: 14px; margin-bottom: 12px;
    }
    .modal-spoiler-kicker {
      font-size: 0.68rem; color: var(--accent); text-transform: uppercase;
      letter-spacing: 0.08em; font-weight: 800; margin-bottom: 4px;
    }
    .modal-spoiler-message { color: var(--muted); font-size: 0.82rem; line-height: 1.35; }
    .modal-spoiler-toggle { flex-shrink: 0; font-size: 0.82rem; padding: 9px 14px; }
    .modal-spoiler-body {
      filter: blur(9px); opacity: 0.45; pointer-events: none; user-select: none;
      transform: scale(0.995); transition: filter 0.28s ease, opacity 0.28s ease, transform 0.28s ease;
    }
    .modal-spoiler-card.strong-blur .modal-spoiler-body {
      filter: blur(18px); opacity: 0.24; transform: scale(0.985);
    }
    .modal-spoiler-card.revealed .modal-spoiler-body {
      filter: blur(0); opacity: 1; pointer-events: auto; user-select: auto; transform: none;
    }
    .modal-spoiler-rows {
      border-radius: var(--radius-sm); border: 1px solid var(--stroke);
      background: var(--surface-2); overflow: hidden;
    }
    .modal-spoiler-row {
      display: flex; align-items: center; justify-content: space-between;
      gap: 12px; padding: 12px 14px; border-top: 1px solid rgba(255,255,255,0.05);
    }
    .modal-spoiler-row:first-child { border-top: 0; }
    .modal-spoiler-row span { color: var(--muted); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
    .modal-spoiler-row strong { color: var(--text); font-size: 1.1rem; }
    .modal-section-loading {
      display: flex; align-items: center; justify-content: center; gap: 10px;
      padding: 18px; border-radius: var(--radius-sm); border: 1px solid var(--stroke);
      background: var(--surface-1); color: var(--muted); font-size: 0.84rem;
    }
    .lineup-card {
      border: 1px solid var(--stroke); border-radius: var(--radius-md);
      background: rgba(255,255,255,0.025);
      padding: 12px; overflow: hidden;
    }
    .lineup-tabs {
      display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
      border-bottom: 1px solid var(--stroke); padding-bottom: 10px; margin-bottom: 8px;
    }
    .lineup-tab {
      min-width: 0; padding: 9px 10px; border-radius: 6px;
      border: 1px solid transparent; background: transparent; color: var(--text);
      font: inherit; font-size: 0.84rem; font-weight: 800; cursor: pointer;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: var(--transition);
    }
    .lineup-tab.active {
      border-color: rgba(214, 255, 63, 0.9);
      box-shadow: inset 0 -2px 0 rgba(214, 255, 63, 0.95);
      background: rgba(214, 255, 63, 0.06); color: #f4ff9d;
    }
    .lineup-updated { color: var(--muted); font-size: 0.72rem; text-align: right; margin: 4px 2px 8px; }
    .lineup-side-panel { display: none; }
    .lineup-side-panel.active { display: block; }
    .lineup-meta-row {
      display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
      color: var(--muted); font-size: 0.75rem; margin: 8px 2px 10px;
    }
    .lineup-meta-row strong { color: var(--text); }
    .lineup-pitch {
      position: relative; min-height: 420px; border-radius: 12px; overflow: hidden;
      border: 1px solid rgba(160, 255, 134, 0.22);
      background:
        linear-gradient(90deg, rgba(255,255,255,0.035) 0 16.66%, transparent 16.66% 33.33%, rgba(255,255,255,0.025) 33.33% 50%, transparent 50% 66.66%, rgba(255,255,255,0.025) 66.66% 83.33%, transparent 83.33%),
        linear-gradient(180deg, #3d942d 0%, #2d7423 100%);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
    }
    .lineup-field-outline {
      position: absolute; inset: 18px 24px; border: 2px solid rgba(222, 255, 199, 0.48);
      border-radius: 8px; pointer-events: none;
    }
    .lineup-center-circle {
      position: absolute; left: 50%; top: 50%; width: 136px; height: 136px;
      border: 2px solid rgba(222, 255, 199, 0.34); border-radius: 50%;
      transform: translate(-50%, -50%); pointer-events: none;
    }
    .lineup-pitch::before {
      content: ""; position: absolute; left: 24px; right: 24px; top: 50%;
      border-top: 2px solid rgba(222, 255, 199, 0.38); pointer-events: none;
    }
    .lineup-penalty-box {
      position: absolute; left: 34%; width: 32%; height: 66px;
      border: 2px solid rgba(222, 255, 199, 0.42); pointer-events: none;
    }
    .lineup-penalty-top { top: 18px; border-top: 0; }
    .lineup-penalty-bottom { bottom: 18px; border-bottom: 0; }
    .lineup-player {
      position: absolute; z-index: 3; transform: translate(-50%, -50%);
      display: flex; flex-direction: column; align-items: center; gap: 5px;
      width: 96px; text-align: center;
    }
    .lineup-player-action {
      border: 0; padding: 0; background: transparent; color: inherit; font: inherit; cursor: pointer;
    }
    .lineup-player-action:hover .lineup-avatar,
    .lineup-player-action:focus-visible .lineup-avatar {
      border-color: var(--accent); box-shadow: 0 0 0 3px rgba(214,255,63,0.18), 0 4px 14px rgba(0,0,0,0.28);
    }
    .lineup-player-action:focus-visible { outline: none; }
    .lineup-avatar {
      position: relative; width: 36px; height: 36px; border-radius: 50%;
      border: 2px solid rgba(255,255,255,0.78); background: rgba(8,12,24,0.82);
      display: flex; align-items: center; justify-content: center;
      color: var(--accent); font-weight: 900; font-size: 0.72rem; overflow: hidden;
      box-shadow: 0 3px 10px rgba(0,0,0,0.22);
    }
    .lineup-avatar img {
      position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1;
    }
    .lineup-avatar span { position: relative; z-index: 0; }
    .lineup-player-name {
      max-width: 92px; padding: 4px 7px; border-radius: 999px;
      background: rgba(5,8,16,0.76); color: rgba(255,255,255,0.94); font-size: 0.65rem;
      font-weight: 900; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
      box-shadow: 0 3px 8px rgba(0,0,0,0.18);
    }
    .lineup-subtitle {
      margin: 12px 2px 8px; color: var(--text-secondary);
      font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
    }
    .lineup-bench-grid {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
      gap: 8px;
    }
    .lineup-bench-player {
      display: flex; align-items: center; gap: 8px; min-width: 0;
      padding: 8px; border: 1px solid var(--stroke); border-radius: 8px;
      background: rgba(255,255,255,0.035); color: var(--text-secondary);
      font-size: 0.78rem; font-weight: 700; text-align: left; font-family: inherit; cursor: pointer;
    }
    .lineup-bench-player:hover,
    .lineup-bench-player:focus-visible {
      border-color: rgba(214,255,63,0.45); background: rgba(214,255,63,0.055); outline: none;
    }
    .lineup-bench-player .lineup-avatar { width: 28px; height: 28px; font-size: 0.58rem; flex: 0 0 auto; }
    .lineup-bench-player span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .lineup-empty,
    .timeline-empty {
      padding: 14px; border-radius: var(--radius-sm); background: var(--surface-2);
      border: 1px solid var(--stroke); color: var(--muted); text-align: center; font-size: 0.82rem;
    }
    .timeline-list {
      position: relative; display: flex; flex-direction: column; gap: 14px; padding: 4px 0;
    }
    .timeline-list::before {
      content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
      border-left: 1px solid rgba(255,255,255,0.1);
    }
    .timeline-event {
      position: relative; display: grid; grid-template-columns: 1fr 62px 1fr;
      gap: 10px; align-items: center;
    }
    .timeline-event.away .timeline-card { grid-column: 3; }
    .timeline-event.home .timeline-card { grid-column: 1; }
    .timeline-minute {
      grid-column: 2; grid-row: 1; z-index: 2; justify-self: center;
      color: var(--accent); font-size: 0.82rem; font-weight: 900;
      background: var(--panel); border: 1px solid var(--stroke); border-radius: 999px; padding: 5px 8px;
    }
    .timeline-card {
      display: flex; align-items: center; gap: 10px; min-width: 0;
      padding: 12px; border-radius: 8px; border: 1px solid var(--stroke);
      background: var(--surface-2);
    }
    .timeline-card strong { display: block; color: var(--text); font-size: 0.82rem; line-height: 1.2; }
    .timeline-card small { display: block; color: var(--muted); font-size: 0.73rem; margin-top: 3px; }
    .timeline-player-link {
      appearance: none; border: 0; padding: 0; background: transparent; color: var(--text);
      font: inherit; font-weight: 900; cursor: pointer; text-align: left; border-bottom: 1px solid rgba(214,255,63,0.35);
    }
    .timeline-player-link:hover,
    .timeline-player-link:focus-visible { color: var(--accent); outline: none; }
    .timeline-sub-separator { color: var(--muted); font-weight: 900; }
    .timeline-type {
      flex: 0 0 auto; min-width: 30px; height: 30px; border-radius: 999px;
      display: inline-flex; align-items: center; justify-content: center;
      background: rgba(100, 212, 244, 0.12); color: var(--accent);
      font-size: 0.66rem; font-weight: 900; border: 1px solid rgba(100, 212, 244, 0.22);
    }
    .timeline-card.goal .timeline-type { background: rgba(110,252,184,0.14); color: var(--accent-2); border-color: rgba(110,252,184,0.24); }
    .timeline-card.yellow .timeline-type { background: rgba(251,191,36,0.16); color: #fbbf24; border-color: rgba(251,191,36,0.35); }
    .timeline-card.red .timeline-type { background: rgba(239,68,68,0.14); color: #f87171; border-color: rgba(239,68,68,0.3); }
    .timeline-card.sub .timeline-type { background: rgba(100,212,244,0.12); color: var(--accent); }
    .timeline-legend {
      display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
      margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--stroke);
      color: var(--muted); font-size: 0.72rem; font-weight: 700;
    }
    .timeline-legend > span {
      color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.06em; margin-right: 2px;
    }
    .timeline-legend-item {
      display: inline-flex; align-items: center; gap: 5px;
      padding: 5px 8px; border: 1px solid var(--stroke); border-radius: 999px; background: rgba(255,255,255,0.035);
    }
    .timeline-legend-item strong { color: var(--accent); font-size: 0.66rem; }
    .modal-player-profile-card {
      position: relative; padding: 14px; border: 1px solid rgba(214,255,63,0.22);
      border-radius: var(--radius-md); background: linear-gradient(180deg, rgba(214,255,63,0.06), var(--surface-1));
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    }
    .modal-player-profile-close {
      position: absolute; top: 10px; right: 10px; width: 30px; height: 30px;
      border-radius: 50%; border: 1px solid var(--stroke); background: var(--surface-2);
      color: var(--muted); cursor: pointer; font: inherit; font-weight: 900;
    }
    .modal-player-profile-close:hover,
    .modal-player-profile-close:focus-visible { color: var(--text); border-color: var(--accent); outline: none; }
    .player-profile-head {
      display: flex; align-items: center; gap: 14px; padding-right: 34px;
    }
    .player-profile-head h4 { margin: 0; font-size: 1.1rem; font-weight: 900; color: var(--text); }
    .player-profile-head p { margin-top: 4px; color: var(--muted); font-size: 0.78rem; line-height: 1.35; }
    .player-team-grid {
      display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px;
    }
    .player-team-card {
      display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px;
      min-width: 0; padding: 10px; border: 1px solid var(--stroke); border-radius: 9px;
      background: rgba(255,255,255,0.035); color: var(--text); text-align: left; font: inherit; cursor: pointer;
    }
    .player-team-card:hover,
    .player-team-card:focus-visible { border-color: rgba(214,255,63,0.45); background: rgba(214,255,63,0.055); outline: none; }
    .player-team-card.disabled { cursor: default; opacity: 0.62; }
    .player-team-card.disabled:hover { border-color: var(--stroke); background: rgba(255,255,255,0.035); }
    .player-team-card span {
      display: block; color: var(--muted); font-size: 0.64rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
    }
    .player-team-card strong {
      display: block; min-width: 0; color: var(--text); font-size: 0.84rem; font-weight: 900;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .player-team-card em { display: block; color: var(--muted); font-size: 0.7rem; font-style: normal; margin-top: 2px; }
    .player-team-card small { color: var(--accent); font-size: 0.68rem; font-weight: 800; white-space: nowrap; }
    .player-team-visual {
      width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
      background: rgba(255,255,255,0.045); overflow: hidden;
    }
    .player-team-logo .crest,
    .player-team-logo img { width: 28px !important; height: 28px !important; object-fit: contain; }
    .player-team-flag img { width: 30px; height: 22px; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255,255,255,0.14); }
    .player-team-flag-fallback {
      display: inline-flex !important; width: 30px; height: 22px; align-items: center; justify-content: center;
      border-radius: 4px; background: var(--surface-2); color: var(--accent); font-size: 0.62rem !important;
    }
    .player-profile-photo {
      position: relative; flex: 0 0 auto; width: 58px; height: 58px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center; overflow: hidden;
      border: 2px solid rgba(214,255,63,0.65); background: var(--surface-2);
      color: var(--accent); font-size: 0.9rem; font-weight: 900;
    }
    .player-profile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
    .player-profile-photo span { position: relative; z-index: 0; }
    .player-profile-grid {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px;
    }
    .player-profile-fact {
      padding: 10px; border: 1px solid var(--stroke); border-radius: 8px;
      background: rgba(255,255,255,0.035); min-width: 0;
    }
    .player-profile-fact span {
      display: block; color: var(--muted); font-size: 0.66rem; font-weight: 800;
      text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px;
    }
    .player-profile-fact strong {
      display: block; color: var(--text); font-size: 0.88rem; font-weight: 900;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .player-profile-loading-note { color: var(--muted); font-size: 0.76rem; margin-bottom: 8px; }
    .player-event-list {
      margin-top: 10px; border: 1px solid var(--stroke); border-radius: 8px; overflow: hidden;
      background: rgba(255,255,255,0.025);
    }
    .player-event-row {
      display: grid; grid-template-columns: 46px 42px 1fr; gap: 8px; align-items: center;
      padding: 8px 10px; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.78rem;
    }
    .player-event-row:first-child { border-top: 0; }
    .player-event-row span { color: var(--accent); font-weight: 900; }
    .player-event-row strong {
      width: 32px; height: 24px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
      color: var(--accent); background: rgba(100,212,244,0.12); font-size: 0.62rem; font-style: normal;
    }
    .player-event-row strong.goal { color: var(--accent-2); background: rgba(110,252,184,0.14); }
    .player-event-row strong.yellow { color: #fbbf24; background: rgba(251,191,36,0.16); }
    .player-event-row strong.red { color: #f87171; background: rgba(239,68,68,0.14); }
    .player-event-row em { color: var(--text-secondary); font-style: normal; font-weight: 700; }

    /* SEARCH */
    .search-overlay {
      position: fixed; inset: 0; z-index: 1100; background: rgba(0,0,0,0.75);
      backdrop-filter: blur(10px); display: none; align-items: flex-start;
      justify-content: center; padding: 80px 20px 20px;
    }
    .search-overlay.active { display: flex; }
    .search-box {
      background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--radius-xl);
      width: 100%; max-width: 600px; box-shadow: var(--shadow-lg); animation: slideUp 0.25s ease; overflow: hidden;
    }
    .search-input-wrap { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--stroke); }
    .search-input-wrap .icon { font-size: 1.2rem; color: var(--muted); }
    .search-input {
      flex: 1; background: none; border: none; outline: none;
      color: var(--text); font-size: 1.05rem; font-family: inherit; font-weight: 500;
    }
    .search-input::placeholder { color: var(--muted); }
    .search-hint { padding: 10px 20px; font-size: 0.75rem; color: var(--muted); }
    .search-results { max-height: 400px; overflow-y: auto; }
    .search-result { display: flex; align-items: center; gap: 12px; padding: 12px 20px; cursor: pointer; transition: var(--transition); }
    .search-result:hover { background: var(--surface-2); }
    .search-result .sr-info { flex: 1; min-width: 0; }
    .search-result .sr-team { font-weight: 700; font-size: 0.9rem; }
    .search-result .sr-meta { font-size: 0.78rem; color: var(--muted); }
    .search-result-fixture .sr-crests {
      display: flex; align-items: center; gap: 6px; flex-shrink: 0;
    }
    .search-result-fixture .sr-vs {
      font-size: 0.62rem; font-weight: 800; color: var(--muted); letter-spacing: 0.02em;
    }
    .search-result .sr-badge { font-size: 0.72rem; color: var(--muted); font-weight: 600; margin-top: 2px; }
    .search-team-toolbar {
      display: none; align-items: center; gap: 12px; padding: 10px 20px;
      border-bottom: 1px solid var(--stroke); flex-wrap: wrap;
    }
    .search-team-toolbar .btn { padding: 6px 12px; font-size: 0.78rem; }
    .search-selected-label {
      font-weight: 800; font-size: 0.9rem; color: var(--accent); flex: 1;
      min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .search-match-filters {
      display: none; flex-wrap: wrap; gap: 10px 14px; padding: 10px 20px 12px;
      border-bottom: 1px solid var(--stroke); align-items: flex-end; background: var(--surface-1);
    }
    .search-match-filters label {
      font-size: 0.72rem; color: var(--muted); font-weight: 600;
      display: flex; flex-direction: column; gap: 4px;
    }
    .search-match-filters select {
      font: inherit; font-size: 0.8rem; padding: 6px 8px; border-radius: 8px;
      border: 1px solid var(--stroke); background: var(--surface-2); color: var(--text); min-width: 120px;
    }
    .search-match-filters .sf-ai-wrap { min-width: 120px; }
    .search-match-filters input[type="range"] {
      width: 110px; height: 4px; border-radius: 2px; background: var(--stroke);
      -webkit-appearance: none; outline: none;
    }
    .search-match-filters input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
      background: var(--accent); cursor: pointer;
    }
    .search-match-filters .sf-ai-val { font-size: 0.75rem; color: var(--accent); font-weight: 700; }

    /* SETTINGS */
    .settings-panel {
      border: 1px solid var(--stroke); border-radius: var(--radius-md); padding: 20px;
      background: var(--surface-1); margin-bottom: 16px;
    }
    .settings-panel h4 { font-size: 0.95rem; font-weight: 800; margin-bottom: 14px; }
    .form-group { margin-bottom: 14px; }
    .form-group label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
    .form-input {
      width: 100%; padding: 10px 14px; border-radius: var(--radius-sm);
      border: 1px solid var(--stroke); background: var(--surface-2);
      color: var(--text); font-family: inherit; font-size: 0.88rem; outline: none;
      transition: var(--transition);
    }
    .form-input:focus { border-color: var(--accent); }
    .form-input::placeholder { color: var(--muted); }
    /* Native <select> dropdown: OS often paints light list while text stays light — force readable */
    #langSelect {
      background-color: #141a32;
      color: #edf2ff;
      color-scheme: dark;
      cursor: pointer;
      -webkit-appearance: none;
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364d4f4' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 12px center;
      padding-right: 36px;
    }
    #langSelect:hover { border-color: rgba(100, 212, 244, 0.35); }
    #langSelect:focus { box-shadow: 0 0 0 2px rgba(100, 212, 244, 0.2); }
    #langSelect option {
      background-color: #141a32;
      color: #edf2ff;
      padding: 10px 12px;
    }
    #langSelect option:checked,
    #langSelect option:hover {
      background-color: #1e2a4a;
      color: #fff;
    }
    #themeSelect {
      background-color: #141a32;
      color: #edf2ff;
      color-scheme: dark;
      cursor: pointer;
      -webkit-appearance: none;
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364d4f4' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 12px center;
      padding-right: 36px;
    }
    #themeSelect:hover { border-color: rgba(100, 212, 244, 0.35); }
    #themeSelect:focus { box-shadow: 0 0 0 2px rgba(100, 212, 244, 0.2); }
    #themeSelect option {
      background-color: #141a32;
      color: #edf2ff;
      padding: 10px 12px;
    }
    #themeSelect option:checked,
    #themeSelect option:hover {
      background-color: #1e2a4a;
      color: #fff;
    }
    .settings-divider {
      height: 1px; background: var(--stroke); margin: 16px 0;
    }
    .auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    @media (max-width: 640px) { .auth-grid { grid-template-columns: 1fr; } }
    .auth-actions { display: flex; gap: 8px; flex-wrap: wrap; }
    .auth-status {
      margin-top: 10px; padding: 10px 14px; border-radius: var(--radius-sm);
      border: 1px solid var(--stroke); background: var(--surface-2);
      font-size: 0.82rem; color: var(--text-secondary);
      display: flex; justify-content: space-between; gap: 10px; align-items: center;
    }
    .auth-status strong { color: var(--text); }
    .form-help { font-size: 0.72rem; color: var(--muted); margin-top: 6px; line-height: 1.5; }
    .form-actions { display: flex; gap: 8px; flex-wrap: wrap; }
    .settings-donate-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
    .donate-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      text-decoration: none;
      font-size: 0.8rem;
      padding: 9px 12px;
    }
    .donate-btn__logo {
      width: 20px;
      height: 20px;
      border-radius: 6px;
      background: rgba(255,255,255,0.95);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
      overflow: hidden;
    }
    .donate-btn__logo img {
      width: 16px;
      height: 16px;
      object-fit: contain;
      display: block;
    }
    .donate-btn__logo svg {
      width: 14px;
      height: 14px;
      fill: currentColor;
      display: block;
    }
    .donate-btn--paypal {
      background: linear-gradient(135deg, #003087, #0070ba);
      border-color: rgba(0, 112, 186, 0.45);
      color: #fff;
    }
    .donate-btn--stripe {
      background: linear-gradient(135deg, #635bff, #7a73ff);
      border-color: rgba(99, 91, 255, 0.45);
      color: #fff;
    }
    .donate-btn--stripe .donate-btn__logo { color: #635bff; }
    .donate-btn--stripe .donate-btn__logo svg {
      margin-left: 1px;
    }
    .donate-btn:hover {
      color: #fff;
      border-color: transparent;
    }
    .api-status { margin-top: 10px; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.82rem; font-weight: 600; }
    .api-status.ok { background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.2); color: var(--success); }
    .api-status.err { background: rgba(244,114,114,0.1); border: 1px solid rgba(244,114,114,0.2); color: var(--danger); }

    /* LOADING */
    .loading-overlay {
      display: flex; align-items: center; justify-content: center; gap: 12px;
      padding: 40px; color: var(--muted); font-weight: 600;
    }
    .spinner {
      width: 24px; height: 24px; border: 3px solid var(--stroke);
      border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite;
    }
    .last-updated { font-size: 0.72rem; color: var(--muted); font-weight: 500; }

    /* TOAST */
    .toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
    .toast {
      background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--radius-sm);
      padding: 12px 18px; box-shadow: var(--shadow-md); backdrop-filter: blur(20px);
      animation: slideUp 0.3s ease; display: flex; align-items: center; gap: 10px;
      font-size: 0.85rem; font-weight: 600; max-width: 360px; transition: all 0.3s;
    }
    .toast.success { border-left: 3px solid var(--success); }
    .toast.info { border-left: 3px solid var(--accent); }
    .toast.error { border-left: 3px solid var(--danger); }
    @media (orientation: landscape) {
      .toast-container {
        left: 20px;
        right: auto;
        align-items: flex-start;
      }
    }

    /* TOP MATCHES FILTERS (carruseles horizontales) */
    .top-filters {
      display: flex; flex-direction: column; gap: 12px;
      margin-bottom: 16px; padding: 14px 16px;
      border-radius: var(--radius-md); background: var(--surface-1); border: 1px solid var(--stroke);
    }
    .top-filter-block {
      display: grid; grid-template-columns: minmax(72px, 88px) 1fr; gap: 10px; align-items: center;
      min-width: 0;
    }
    .top-filter-label {
      font-size: 0.7rem; font-weight: 700; color: var(--muted);
      text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.2;
    }
    .top-filter-scroll {
      display: flex; flex-wrap: nowrap; gap: 8px; align-items: center;
      overflow-x: auto; overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
      scroll-snap-type: x proximity;
      padding: 4px 2px 8px;
      margin: -4px -2px -8px;
      scrollbar-width: thin;
      scrollbar-color: rgba(255,255,255,0.15) transparent;
      mask-image: linear-gradient(90deg, #000 92%, transparent 100%);
    }
    .top-filter-scroll::-webkit-scrollbar { height: 5px; }
    .top-filter-scroll::-webkit-scrollbar-thumb {
      background: rgba(255,255,255,0.12); border-radius: 4px;
    }
    .top-filter-chip {
      flex: 0 0 auto; scroll-snap-align: start;
      padding: 8px 14px; border-radius: 999px;
      border: 1px solid var(--stroke); background: var(--surface-2);
      color: var(--text-secondary); font-family: inherit; font-size: 0.8rem; font-weight: 600;
      cursor: pointer; transition: var(--transition); outline: none; white-space: nowrap;
    }
    .top-filter-chip:hover { border-color: var(--stroke-hover); color: var(--text); background: var(--surface-3); }
    .top-filter-chip.active {
      border-color: rgba(100,212,244,0.45); color: var(--accent);
      background: linear-gradient(135deg, rgba(100,212,244,0.12), rgba(110,252,184,0.06));
      box-shadow: 0 0 16px rgba(100,212,244,0.08);
    }
    .top-filter-search {
      flex: 1; min-width: 140px;
      padding: 8px 12px; border-radius: var(--radius-sm);
      border: 1px solid var(--stroke); background: var(--surface-2);
      color: var(--text); font-family: inherit; font-size: 0.82rem; font-weight: 500;
      outline: none; transition: var(--transition);
    }
    .top-filter-search:focus { border-color: var(--accent); }
    .top-filter-search::placeholder { color: var(--muted); }
    .top-filter-count { font-size: 0.78rem; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
    .top-filter-search-wrap {
      display: flex; align-items: center; gap: 10px; min-width: 0;
    }
    .top-filter-search-wrap .top-filter-search { flex: 1; min-width: 0; }

    /* SPOILER CARD */
    .top-card-match {
      border: 1px solid var(--stroke); border-radius: var(--radius-md); padding: 16px;
      background: linear-gradient(135deg, var(--surface-2), var(--surface-1));
      transition: var(--transition); cursor: pointer; position: relative;
    }
    .top-card-match:hover { border-color: var(--stroke-hover); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
    .top-card-teams { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
    .top-card-team { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
    .top-card-team.away { justify-content: flex-end; text-align: right; }
    .top-card-team-name { font-weight: 700; font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .top-card-vs { font-weight: 800; color: var(--muted); font-size: 0.75rem; flex-shrink: 0; }
    .top-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
    .top-card-spoiler {
      padding: 6px 14px; border-radius: var(--radius-sm); border: 1px solid var(--stroke);
      background: var(--surface-2); font-weight: 800; font-size: 0.9rem;
      color: transparent; text-shadow: 0 0 14px rgba(255,255,255,0.3); user-select: none;
      cursor: pointer; transition: var(--transition); text-align: center; min-width: 60px;
    }
    .top-card-spoiler.revealed { color: var(--text); text-shadow: none; }
    .top-card-spoiler:hover { border-color: var(--stroke-hover); }

    /* BATCH LOADING SCREEN */
    .batch-loading {
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      padding: 60px 20px; gap: 20px; text-align: center;
    }
    .batch-loading h3 { font-size: 1.1rem; font-weight: 700; }
    .batch-loading .progress-bar {
      width: 100%; max-width: 320px; height: 6px; border-radius: 3px;
      background: var(--surface-3); overflow: hidden;
    }
    .batch-loading .progress-fill {
      height: 100%; border-radius: 3px; transition: width 0.4s ease;
      background: linear-gradient(90deg, var(--accent), var(--accent-2));
    }
    .batch-loading .progress-text { font-size: 0.82rem; color: var(--muted); }

    .empty-state { text-align: center; padding: 48px 20px; color: var(--muted); }
    .empty-state .icon { font-size: 2.5rem; margin-bottom: 12px; }
    .empty-state p { font-size: 0.9rem; }
    .favorites-grid { display: flex; flex-direction: column; gap: 10px; }

    .shortcuts-hint {
      display: flex; gap: 16px; flex-wrap: wrap; padding: 10px 14px;
      border-radius: var(--radius-sm); background: var(--surface-1);
      border: 1px solid var(--stroke); font-size: 0.75rem; color: var(--muted);
    }
    .shortcuts-hint span { display: flex; align-items: center; gap: 4px; }
    .shortcuts-hint .key { background: var(--surface-3); padding: 2px 6px; border-radius: 4px; font-weight: 700; color: var(--text-secondary); font-family: inherit; }
    .legal-links {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      padding: 10px 14px;
      border-radius: var(--radius-sm);
      border: 1px solid var(--stroke);
      background: var(--surface-1);
    }
    .legal-link-btn {
      border: 1px solid var(--stroke);
      background: var(--surface-2);
      color: var(--text-secondary);
      padding: 6px 10px;
      border-radius: 999px;
      font-size: 0.75rem;
      font-weight: 700;
      cursor: pointer;
      transition: var(--transition);
    }
    .legal-link-btn:hover {
      color: var(--text);
      border-color: var(--stroke-hover);
      background: var(--surface-3);
    }
    .donation-bar {
      position: fixed;
      right: 14px;
      bottom: 14px;
      width: min(460px, calc(100% - 28px));
      z-index: 270;
      border: 1px solid var(--stroke);
      border-radius: var(--radius-lg);
      background: rgba(8, 12, 24, 0.92);
      backdrop-filter: blur(20px);
      box-shadow: var(--shadow-lg);
      opacity: 0;
      pointer-events: none;
      transform: translate3d(0, 18px, 0) scale(0.985);
      visibility: hidden;
      transition:
        opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 420ms;
    }
    body.donation-bar-visible .donation-bar {
      animation: donationBarIn 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
      opacity: 1;
      pointer-events: auto;
      transform: translate3d(0, 0, 0) scale(1);
      visibility: visible;
      transition-delay: 0s;
    }
    @keyframes donationBarIn {
      from {
        opacity: 0;
        transform: translate3d(0, 18px, 0) scale(0.985);
      }
      to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
      }
    }
    .donation-bar__content {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 12px;
      padding: 14px 18px 16px;
      position: relative;
    }
    .donation-close-btn {
      display: inline-flex;
      position: absolute;
      top: 8px;
      right: 8px;
      border: 1px solid var(--stroke);
      background: var(--surface-2);
      color: var(--text);
      width: 28px;
      height: 28px;
      border-radius: 999px;
      font-size: 1rem;
      line-height: 1;
      font-weight: 700;
      cursor: pointer;
      align-items: center;
      justify-content: center;
      transition: var(--transition);
    }
    .donation-close-btn:hover {
      border-color: var(--stroke-hover);
      background: var(--surface-3);
    }
    .donation-bar__text {
      flex: 0 0 auto;
      min-width: 0;
      padding-right: 34px;
    }
    .donation-bar__title {
      font-size: 0.82rem;
      font-weight: 800;
      color: var(--text);
      margin-bottom: 4px;
    }
    .donation-bar__text p {
      color: var(--text-secondary);
      font-size: 0.82rem;
      line-height: 1.5;
    }
    .donation-links {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: stretch;
    }
    .donation-link {
      display: inline-flex;
      align-items: center;
      justify-content: flex-start;
      min-width: 0;
      flex: 1 1 calc(50% - 8px);
      gap: 10px;
      padding: 8px 14px 8px 10px;
      border-radius: 12px;
      border: 1px solid var(--stroke);
      color: #fff;
      font-size: 0.8rem;
      font-weight: 700;
      text-decoration: none;
      transition: var(--transition);
      box-shadow: var(--shadow-sm);
    }
    .donation-link__logo {
      width: 30px;
      height: 30px;
      border-radius: 8px;
      background: rgba(255,255,255,0.92);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
    }
    .donation-link__logo svg {
      width: 19px;
      height: 19px;
      fill: currentColor;
    }
    .donation-link__logo img {
      width: 20px;
      height: 20px;
      object-fit: contain;
      display: block;
    }
    .donation-link__label {
      display: inline-flex;
      flex-direction: column;
      line-height: 1.1;
      letter-spacing: 0.01em;
    }
    .donation-link__label small {
      font-size: 0.58rem;
      text-transform: uppercase;
      opacity: 0.9;
      letter-spacing: 0.08em;
    }
    .donation-link__label strong {
      font-size: 0.88rem;
      font-weight: 800;
    }
    .donation-link:hover {
      transform: translateY(-1px);
      border-color: transparent;
      box-shadow: var(--shadow-md);
    }
    .donation-link--paypal {
      background: linear-gradient(135deg, #003087, #0070ba);
      color: #ffffff;
    }
    .donation-link--paypal .donation-link__logo { color: #003087; }
    .donation-link--stripe {
      background: linear-gradient(135deg, #635bff, #7a73ff);
      color: #ffffff;
    }
    .donation-link--stripe .donation-link__logo { color: #635bff; }
    .donation-link--stripe .donation-link__logo svg {
      margin-left: 1px;
    }
    body.donation-bar-hidden .donation-bar { display: none; }
    body.donation-bar-hidden { padding-bottom: 14px; }
    .legal-doc {
      display: grid;
      gap: 10px;
      color: var(--text-secondary);
      font-size: 0.87rem;
      line-height: 1.6;
    }
    .legal-doc h4 {
      color: var(--text);
      font-size: 0.95rem;
      margin-bottom: 2px;
    }
    .legal-doc p strong { color: var(--text); }

    .mobile-nav-drawer { display: none; }
    .mobile-nav-toggle {
      width: 100%;
      border: 1px solid var(--stroke);
      background: rgba(8, 12, 24, 0.9);
      color: var(--text);
      border-radius: 12px;
      padding: 14px 16px;
      font-size: 0.95rem;
      font-weight: 800;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      cursor: pointer;
      backdrop-filter: blur(16px);
      box-shadow: var(--shadow-md);
    }
    .mobile-nav-menu {
      margin-top: 8px;
      border: 1px solid var(--stroke);
      border-radius: 12px;
      background: var(--panel);
      backdrop-filter: blur(16px);
      padding: 8px;
      display: none;
      max-height: 48vh;
      overflow: auto;
    }
    .mobile-nav-menu.open { display: block; }
    .mobile-top-strip { display: none; }
    .mobile-top-strip .mts-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 7px;
      font-size: 0.74rem;
      color: var(--muted);
    }
    .mobile-top-strip .mts-link {
      border: 0;
      background: transparent;
      color: var(--accent);
      font-weight: 800;
      font-size: 0.78rem;
      cursor: pointer;
      padding: 0;
    }
    .mobile-top-strip .mts-scroll {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      padding-bottom: 2px;
      scroll-snap-type: x mandatory;
    }
    .mobile-top-strip .mts-scroll::-webkit-scrollbar { height: 4px; }
    .mobile-top-strip .mts-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 999px; }
    .mobile-top-strip .mts-card {
      flex: 0 0 132px;
      scroll-snap-align: start;
      border: 1px solid var(--stroke);
      border-radius: 10px;
      background: linear-gradient(135deg, var(--surface-2), var(--surface-1));
      padding: 7px 8px;
      cursor: pointer;
    }
    .mobile-top-strip .mts-card.must-watch {
      border-color: rgba(250, 204, 21, 0.45);
      box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.22), 0 0 18px rgba(250, 204, 21, 0.16);
      animation: mustWatchPulse 2.2s ease-in-out infinite;
    }
    .mobile-top-strip .mts-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 5px;
    }
    .mobile-top-strip .mts-crest {
      width: 24px;
      height: 24px;
      border-radius: 7px;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      background: var(--surface-2);
      border: 1px solid var(--stroke);
      flex: 0 0 auto;
    }
    .mobile-top-strip .mts-crest img { width: 17px; height: 17px; object-fit: contain; }
    .mobile-top-strip .mts-score {
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
    }
    .mobile-top-strip .mts-score .ai-ring {
      width: 30px;
      height: 30px;
    }
    .mobile-top-strip .mts-score .ai-ring .ring-bg,
    .mobile-top-strip .mts-score .ai-ring .ring-fill {
      stroke-width: 2.4;
    }
    .mobile-top-strip .mts-score .ai-ring .ring-value {
      font-size: 0.55rem;
    }
    .mobile-top-strip .mts-card .d { margin-top: 4px; font-size: 0.6rem; color: var(--muted); text-align: center; }

    @media (max-width: 1200px) {
      .app { grid-template-columns: 78px 1fr; }
      .rightbar { display: none; }
    }
    @media (max-width: 800px) {
      .app { display: flex; flex-direction: column; padding: 10px; gap: 10px; }
      .sidebar { flex-direction: row; overflow-x: auto; position: static; height: auto; padding: 10px; gap: 8px; border-radius: var(--radius-lg); }
      .sidebar-brand { margin-bottom: 0; margin-right: 8px; }
      .sidebar-divider { width: 1px; height: 32px; margin: 0 4px; }
      .league-logo::after { display: none; }
      .league-logo { width: 44px; height: 44px; }
      .content { border-radius: var(--radius-lg); padding: 16px; }
      .hero { grid-template-columns: 1fr; }
      .hero-nav { justify-content: center; }
      .match-card { grid-template-columns: 1fr; }
      .match-card .match-index { display: none; }
      .teams { grid-template-columns: 1fr; gap: 8px; }
      .team.away { justify-content: flex-start; }
      .score { min-width: unset; }
      .match-right { justify-content: center; }
      .filter-bar { flex-direction: column; align-items: flex-start; }
      .filter-count { margin-left: 0; }
      .topbar { flex-direction: column; }
      .seo-hubs { grid-template-columns: 1fr; }
      .legal-links { padding: 9px 10px; }
      .donation-bar {
        right: 10px;
        width: min(420px, calc(100% - 20px));
        bottom: 10px;
        border-radius: 16px;
      }
      .donation-bar__content {
        padding: 12px;
      }
      .donation-link {
        justify-content: center;
      }
      .modal-spoiler-header {
        flex-direction: column;
        align-items: stretch;
      }
      .modal-spoiler-toggle {
        width: 100%;
        justify-content: center;
      }
      .lineup-pitch { min-height: 360px; }
      .lineup-player { width: 78px; }
      .lineup-player-name { max-width: 78px; font-size: 0.62rem; padding: 4px 6px; }
      .lineup-avatar { width: 36px; height: 36px; }
      .lineup-center-circle { width: 120px; height: 120px; }
      .timeline-event { grid-template-columns: 1fr 54px 1fr; gap: 6px; }
      .timeline-card { padding: 10px; gap: 8px; }
      .timeline-card strong { font-size: 0.76rem; }
      .timeline-type { min-width: 26px; height: 26px; }
      .player-profile-head { align-items: flex-start; }
      .player-team-grid { grid-template-columns: 1fr; }
      .player-team-card { grid-template-columns: 34px 1fr; }
      .player-team-card small { grid-column: 2; }
      .player-profile-grid { grid-template-columns: 1fr 1fr; }
      .player-event-row { grid-template-columns: 40px 38px 1fr; }
    }
    @media (max-width: 800px) and (orientation: portrait) {
      body { padding-bottom: 86px; }
      body.donation-bar-visible { padding-bottom: 194px; }
      body.donation-bar-hidden { padding-bottom: 86px; }
      .toast-container {
        top: 188px;
        bottom: auto;
        left: 8px;
        right: 8px;
        align-items: center;
      }
      .toast {
        width: 100%;
        max-width: 520px;
      }
      .app { display: block; padding: 10px 10px 90px; }
      .sidebar {
        position: fixed;
        top: 8px;
        left: 8px;
        right: 8px;
        z-index: 260;
        border-radius: 14px;
        height: 64px;
        padding: 6px 10px;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
      }
      .sidebar-brand { width: 46px; height: 46px; margin-right: 8px; }
      .sidebar-brand img { width: 32px; height: 32px; }
      .sidebar-divider { width: 1px; height: 30px; margin: 0 4px; }
      .league-logo { width: 46px; height: 46px; flex: 0 0 auto; }
      .league-logo img { width: 30px; height: 30px; }

      .content {
        margin-top: 10px;
        border-radius: 14px;
        padding: 12px 12px 20px;
        display: flex;
        flex-direction: column;
      }
      .shortcuts-hint { display: none; }
      #page-overview .seo-content { display: none; }
      .seo-content-bottom-mobile {
        display: block;
        order: 92;
        margin-top: 8px;
      }
      .legal-links {
        order: 93;
        margin-top: 10px;
      }
      .topbar {
        order: 90;
        margin-top: 10px;
      }
      .settings-panel {
        order: 91;
        margin-top: 8px;
      }

      .mobile-top-strip {
        display: block;
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        z-index: 1;
        margin: 74px 0 0;
        padding: 8px 10px;
        border-radius: 14px;
        border: 1px solid var(--stroke);
        background: var(--panel);
        backdrop-filter: blur(20px);
      }

      .hero {
        position: sticky;
        top: 78px;
        left: auto;
        right: auto;
        width: auto;
        z-index: 252;
        margin: 8px 0 0;
        padding: 9px 10px;
        border-radius: 14px;
        border: 1px solid var(--stroke);
        background: rgba(8, 12, 24, 0.9);
        backdrop-filter: blur(20px);
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 58px;
        overflow: visible;
        box-shadow: var(--shadow-md);
      }
      .hero-left { flex: 0 0 auto; min-width: 0; }
      .hero-copy { display: none; }
      .hero-logo { width: 42px; height: 42px; border-radius: 10px; }
      .hero-logo img { width: 27px; height: 27px; }

      .hero-nav { flex: 1; gap: 6px; }
      .hero-nav .btn { padding: 7px 10px; font-size: 0.76rem; min-width: auto; }
      .hero-nav .nav-round {
        min-width: 0;
        padding: 7px 10px;
        font-size: 0.78rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .filter-bar {
        position: sticky;
        top: 148px;
        left: auto;
        right: auto;
        z-index: 251;
        margin: 6px 0 0;
        border-radius: 12px;
        padding: 6px 10px;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
        background: #0b1224;
        border-color: rgba(255,255,255,0.1);
        backdrop-filter: none;
        box-shadow: var(--shadow-sm);
      }
      .filter-bar label { font-size: 0.74rem; white-space: nowrap; }
      .filter-bar input[type="range"] { width: 105px; }
      .filter-value { min-width: 30px; font-size: 0.78rem; }
      .filter-count, .last-updated { display: none; }

      .matches { gap: 8px; }
      .match-card {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        padding: 12px 12px;
        border-radius: 12px;
        min-height: 66px;
      }
      .match-card .match-index { display: none; }
      .teams {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 6px;
      }
      .team { gap: 6px; }
      .team.away { justify-content: flex-end; }
      .team-name {
        max-width: 96px;
        font-size: 0.8rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .team-pos { font-size: 0.66rem; }
      .crest { width: 42px; height: 42px; border-radius: 10px; }
      .crest img { width: 28px; height: 28px; }
      .fav-team-btn--icon { width: 18px; height: 18px; font-size: 0.62rem; border-radius: 5px; }
      .score {
        min-width: 62px;
        font-size: 0.95rem;
        padding: 4px 6px;
      }
      .score-label { font-size: 0.58rem; margin-top: 1px; }
      .matches .reveal-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-top: 3px;
        padding: 4px 8px;
        font-size: 0.64rem;
      }
      .match-right { justify-content: flex-end; }
      .ai-ring { width: 36px; height: 36px; }
      .ai-ring .ring-value { font-size: 0.62rem; }

      .mobile-nav-drawer {
        display: block;
        position: fixed;
        left: 8px;
        right: 8px;
        bottom: 8px;
        z-index: 280;
      }
      .donation-bar {
        bottom: 76px;
        right: 8px;
        width: calc(100% - 16px);
        border-radius: 14px;
      }
      body.donation-bar-hidden .donation-bar { display: none; }
      .donation-close-btn {
        position: absolute;
        top: 8px;
        right: 8px;
      }
      .donation-bar__content { padding-top: 34px; }
      .mobile-nav-drawer .mobile-nav-menu {
        background: rgba(8, 12, 24, 0.9);
        border-color: var(--stroke);
        backdrop-filter: blur(16px);
      }
      .mobile-nav-menu .nav-item {
        width: 100%;
        justify-content: flex-start;
      }
    }
    @media (max-width: 430px) and (orientation: portrait) {
      .team-name, .team-pos { display: none; }
    }
