        /* ═══════════════════════════════════════════════════════════
           ClutchMX · Dark Theme · Full Design System
           ═══════════════════════════════════════════════════════════ */


        /* ── CSS Variables ──────────────────────────────────────── */
        :root {
            --bg:           #0a0a0a;
            --bg-card:      #111118;
            --bg-card2:     #1a1a22;
            --bg-card3:     #16161f;
            --border:       #1e1e2e;
            --border-hover: #2e2e44;
            --accent:       #9147ff;
            --accent-dim:   rgba(145, 71, 255, 0.15);
            --accent-glow:  rgba(145, 71, 255, 0.35);
            --accent2:      #4caf50;
            --accent2-dim:  rgba(76, 175, 80, 0.15);
            --live:         #ff4444;
            --live-dim:     rgba(255, 68, 68, 0.15);
            --gold:         #ffd700;
            --silver:       #c0c0c0;
            --bronze:       #cd7f32;
            --text:         #f0f0f0;
            --text-muted:   #666;
            --text-sub:     #999;
            --winner:       #9147ff;
            --radius-sm:    8px;
            --radius-md:    12px;
            --radius-lg:    16px;
            --radius-xl:    20px;
            --shadow:       0 4px 24px rgba(0,0,0,0.5);
            --shadow-accent: 0 4px 32px rgba(145,71,255,0.2);
            --nav-height:   56px;
        }

        /* ── Reset & Base ───────────────────────────────────────── */
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

        html, body {
            background: var(--bg);
            color: var(--text);
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            font-size: 16px;
            line-height: 1.55;
            -webkit-font-smoothing: antialiased;
            -webkit-text-size-adjust: 100%;
            text-size-adjust: 100%;
        }

        @media (max-width: 600px) {
            html, body { font-size: 17px; }
        }
        @media (max-width: 420px) {
            html, body { font-size: 18px; }
        }

        a { color: inherit; text-decoration: none; }
        img { display: block; max-width: 100%; }
        button { font-family: inherit; cursor: pointer; }

        /* ── Top Navigation Bar ─────────────────────────────────── */
        #site-nav {
            position: sticky;
            top: 0;
            z-index: 100;
            height: var(--nav-height);
            background: rgba(10, 10, 10, 0.95);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 20px;
            gap: 16px;
        }

        /* Móvil: blur en sticky bar es muy caro para pintura/LCP — fondo sólido */
        @media (max-width: 768px) {
            #site-nav {
                backdrop-filter: none;
                -webkit-backdrop-filter: none;
                background: rgba(10, 10, 10, 0.99);
            }
        }

        .nav-brand {
            font-size: .95rem;
            font-weight: 900;
            letter-spacing: .5px;
            color: white;
            display: flex;
            align-items: center;
            gap: 8px;
            white-space: nowrap;
        }

        .nav-brand-text {
            background: linear-gradient(90deg, #9147ff, #c084fc);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .nav-links a {
            font-size: .82rem;
            font-weight: 600;
            color: var(--text-sub);
            padding: 6px 14px;
            border-radius: var(--radius-sm);
            transition: color .2s, background .2s;
        }

        .nav-links a:hover {
            color: white;
            background: var(--bg-card2);
        }

        .nav-menu-core .nav-group-label {
            font-size: 0.58rem;
            font-weight: 800;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            color: #6b6b8f;
            padding: 6px 4px 6px 10px;
            user-select: none;
        }

        /* ── Nav Auth Section ────────────────────────────────────── */
        .nav-auth {
            display: flex;
            align-items: center;
            margin-left: auto;
        }

        .nav-user-wrap {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .nav-user-badge {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 1px;
        }

        .nav-user-role {
            font-size: .58rem;
            font-weight: 700;
            letter-spacing: 1px;
            color: var(--accent);
        }

        .nav-user-name {
            font-size: .78rem;
            font-weight: 600;
            color: var(--text);
            white-space: nowrap;
            max-width: 110px;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .nav-btn {
            border: none;
            border-radius: var(--radius-sm);
            font-family: inherit;
            font-size: .75rem;
            font-weight: 700;
            letter-spacing: .5px;
            padding: 7px 14px;
            cursor: pointer;
            transition: all .15s;
            white-space: nowrap;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
        }

        .nav-btn-login {
            background: var(--accent);
            color: #fff;
        }

        .nav-btn-login:hover {
            background: #a855f7;
            transform: translateY(-1px);
        }

        .nav-btn-logout {
            background: transparent;
            border: 1px solid #2a2a3a;
            color: var(--text-muted);
        }

        .nav-btn-logout:hover {
            border-color: #444;
            color: var(--text);
        }

        /* ── Roster Completo (admin/coach) ───────────────────────── */
        .roster-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .roster-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 12px 16px;
            display: flex;
            align-items: center;
            gap: 14px;
            transition: border-color .15s;
        }

        .roster-card:hover { border-color: var(--border-hover); }

        .roster-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: var(--bg-card2);
            border: 2px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            font-size: 1.2rem;
            overflow: hidden;
        }

        .roster-info { flex: 1; min-width: 0; }

        .roster-name {
            font-size: .88rem;
            font-weight: 700;
            color: var(--text);
        }

        .roster-meta {
            font-size: .74rem;
            color: var(--text-muted);
            margin-top: 3px;
        }

        .roster-number {
            font-size: 1.3rem;
            font-weight: 900;
            color: var(--accent);
            flex-shrink: 0;
        }

        /* ── Líderes estadísticos ────────────────────────────────── */
        .lideres-wrap {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
            padding: 16px 0;
        }

        .lideres-col {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            overflow: hidden;
        }

        .lideres-header {
            background: var(--bg-card2);
            border-bottom: 1px solid var(--border);
            padding: 12px 16px;
            font-size: .72rem;
            font-weight: 800;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: var(--accent);
        }

        .lider-row {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 14px;
            border-bottom: 1px solid var(--border);
            transition: background .15s;
        }

        .lider-row:last-child { border-bottom: none; }
        .lider-row:hover { background: rgba(255,255,255,.025); }

        .lider-pos { font-size: .78rem; font-weight: 800; color: var(--text-muted); width: 18px; text-align: center; flex-shrink: 0; }

        .lider-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--bg-card2); border: 1px solid var(--border); flex-shrink: 0; }

        .lider-avatar-ph { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-card2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0; }

        .lider-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }

        .lider-nombre { font-size: .83rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

        .lider-equipo { font-size: .7rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

        .lider-stat { font-size: 1.05rem; font-weight: 900; color: white; flex-shrink: 0; }

        /* ── Team Hero ───────────────────────────────────────────── */
        .team-hero {
            background: linear-gradient(160deg, #0a0a0a 0%, #0d0a1e 60%, #0a0a0a 100%);
            padding: 28px 20px 32px;
            border-bottom: 1px solid var(--border);
        }

        .team-hero-inner {
            display: flex;
            align-items: center;
            gap: 20px;
            max-width: 920px;
            margin: 0 auto;
            flex-wrap: wrap;
        }

        .team-hero-logo {
            width: 90px; height: 90px;
            border-radius: var(--radius-md);
            background: var(--bg-card2);
            border: 2px solid var(--border);
            display: flex; align-items: center; justify-content: center;
            overflow: hidden; flex-shrink: 0;
        }

        .team-hero-logo img { width: 100%; height: 100%; object-fit: contain; }
        .team-hero-name { font-size: 1.8rem; font-weight: 900; color: white; }
        .team-roster-list { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }

        .result-label.win  { color: var(--accent2); }
        .result-label.loss { color: #ff5555; }

        /* ── Player Hero ─────────────────────────────────────────── */
        .player-hero {
            background: linear-gradient(160deg, #0a0a0a 0%, #0a0d1e 60%, #0a0a0a 100%);
            padding: 28px 20px 32px;
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            gap: 24px;
            max-width: 920px;
            margin: 0 auto;
            flex-wrap: wrap;
        }

        .player-hero-avatar {
            width: 100px; height: 100px;
            border-radius: 50%;
            background: var(--bg-card2);
            border: 3px solid var(--border);
            display: flex; align-items: center; justify-content: center;
            overflow: hidden; flex-shrink: 0;
        }

        .player-hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
        .player-hero-name { font-size: 1.7rem; font-weight: 900; color: white; }

        /* ── Player Stats Grid ───────────────────────────────────── */
        .player-stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
            gap: 10px;
        }

        .player-stat-box {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 14px 8px;
            text-align: center;
        }

        .player-stat-val {
            display: block;
            font-size: 1.6rem;
            font-weight: 900;
            color: white;
            line-height: 1;
        }

        .player-stat-lbl {
            display: block;
            font-size: .65rem;
            font-weight: 700;
            letter-spacing: 1px;
            color: var(--accent);
            margin-top: 6px;
        }

        /* ── Blazor App Container ───────────────────────────────── */
        #app { min-height: calc(100vh - var(--nav-height)); }

        /* ── Loading / Error States ─────────────────────────────── */
        .loading-splash {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: calc(100vh - var(--nav-height));
            background: var(--bg);
            color: var(--text-muted);
            gap: 16px;
        }

        .loading-splash-spinner {
            position: relative;
            width: 100px;
            height: 100px;
            border: 3px solid var(--border);
            border-top-color: var(--accent);
            border-radius: 50%;
            animation: spin .8s linear infinite;
        }

        .loading-splash-spinner img {
            position: absolute;
            inset: 0;
            width: 80px;
            height: 80px;
            margin: auto;
            border-radius: 50%;
            object-fit: cover;
        }

        .loading-splash-label {
            font-size: .8rem;
            font-weight: 700;
            letter-spacing: 2px;
            color: var(--text-muted);
        }

        .loading-wrap {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 80px 20px;
            gap: 16px;
            color: var(--text-muted);
        }

        .spinner {
            width: 36px;
            height: 36px;
            border: 3px solid var(--border);
            border-top-color: var(--accent);
            border-radius: 50%;
            animation: spin .8s linear infinite;
        }

        .error-banner {
            background: var(--live-dim);
            border: 1px solid rgba(255,68,68,.3);
            color: var(--live);
            border-radius: var(--radius-md);
            padding: 20px;
            margin: 32px auto;
            max-width: 500px;
            text-align: center;
            font-size: .9rem;
        }

        .empty-msg {
            color: var(--text-muted);
            font-size: .88rem;
            padding: 32px;
            text-align: center;
        }

        @keyframes spin { to { transform: rotate(360deg); } }

        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(16px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to   { opacity: 1; }
        }

        @keyframes pulseGlow {
            0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
            50%       { box-shadow: 0 0 40px var(--accent-glow), 0 0 60px rgba(145,71,255,.15); }
        }

        /* ── Sections ───────────────────────────────────────────── */
        .section {
            max-width: 920px;
            margin: 0 auto;
            padding: 36px 16px;
            animation: fadeInUp .4s ease both;
        }

        .section-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px;
        }

        .section-title {
            font-size: 1.05rem;
            font-weight: 800;
            color: white;
            letter-spacing: .4px;
            position: relative;
            padding-left: 14px;
        }

        .section-title::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 18px;
            background: var(--accent);
            border-radius: 2px;
        }

        .section-count {
            font-size: .7rem;
            font-weight: 700;
            background: var(--accent-dim);
            color: var(--accent);
            border: 1px solid rgba(145,71,255,.3);
            border-radius: 20px;
            padding: 2px 9px;
        }

        /* ── Home Hero ──────────────────────────────────────────── */
        .site-hero {
            position: relative;
            background: linear-gradient(160deg, #0a0a0a 0%, #13082a 50%, #0a0a0a 100%);
            padding: 72px 20px 56px;
            text-align: center;
            border-bottom: 1px solid var(--border);
            overflow: hidden;
        }

        .hero-glow {
            position: absolute;
            top: -60px;
            left: 50%;
            transform: translateX(-50%);
            width: 500px;
            height: 300px;
            background: radial-gradient(ellipse at center, rgba(145,71,255,.18) 0%, transparent 70%);
            pointer-events: none;
        }

        .hero-content {
            position: relative;
            z-index: 1;
            animation: fadeInUp .5s ease both;
        }

        .hero-ball {
            font-size: 3rem;
            margin-bottom: 12px;
            display: block;
            filter: drop-shadow(0 0 20px rgba(145,71,255,.5));
        }

        .hero-badge-row {
            margin-bottom: 16px;
        }

        .hero-pill {
            display: inline-block;
            background: var(--accent);
            color: white;
            font-size: .7rem;
            font-weight: 700;
            letter-spacing: 2px;
            text-transform: uppercase;
            padding: 4px 14px;
            border-radius: 20px;
        }

        .hero-title {
            font-size: 3rem;
            font-weight: 900;
            color: white;
            letter-spacing: -1px;
            line-height: 1;
            margin-bottom: 12px;
        }

        .hero-sub {
            font-size: 1.15rem;
            font-weight: 600;
            color: var(--text-sub);
            margin-bottom: 6px;
        }

        .hero-sub2 {
            font-size: .82rem;
            color: var(--text-muted);
        }

        /* ── Home Leagues Horizontal Scroll ─────────────────────── */
        .home-leagues-scroll {
            display: flex;
            gap: 14px;
            overflow-x: auto;
            padding-bottom: 8px;
            scrollbar-width: thin;
            scrollbar-color: var(--border) transparent;
        }

        .home-leagues-scroll::-webkit-scrollbar { height: 4px; }
        .home-leagues-scroll::-webkit-scrollbar-track { background: transparent; }
        .home-leagues-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

        .home-league-card {
            flex-shrink: 0;
            width: 200px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 20px 16px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            text-align: center;
            transition: border-color .2s, transform .2s, box-shadow .2s;
        }

        .home-league-card:hover {
            border-color: var(--accent);
            transform: translateY(-3px);
            box-shadow: var(--shadow-accent);
        }

        .home-league-logo {
            width: 80px;
            height: 80px;
            border-radius: 14px;
            background: var(--bg-card2);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            border: 1px solid var(--border);
        }

        .home-league-logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .home-league-icon { font-size: 2.2rem; }

        .home-league-body {
            display: flex;
            flex-direction: column;
            gap: 4px;
            width: 100%;
        }

        .home-league-name {
            font-size: .9rem;
            font-weight: 700;
            color: white;
            line-height: 1.3;
        }

        .home-league-season {
            font-size: .72rem;
            color: var(--text-muted);
        }

        .home-league-cta {
            font-size: .75rem;
            font-weight: 700;
            color: var(--accent);
            margin-top: 4px;
        }

        /* ── Game Tiles Grid ────────────────────── */
        .game-tiles-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 12px;
        }

        .game-tile {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            transition: border-color .2s, transform .2s, box-shadow .2s;
        }

        .game-tile:hover {
            border-color: var(--accent);
            transform: translateY(-2px);
            box-shadow: var(--shadow-accent);
        }

        .game-tile-status-bar {
            font-size: .62rem;
            font-weight: 800;
            letter-spacing: 1.5px;
            text-align: center;
            padding: 5px 10px;
        }

        .final-bar    { background: rgba(255,255,255,.04); color: var(--text-muted); }
        .live-bar     { background: var(--live-dim);       color: var(--live); }
        .upcoming-bar { background: var(--accent-dim);     color: var(--accent); }

        .game-tile-date {
            font-size: .7rem;
            color: var(--text-muted);
            text-align: center;
            padding: 8px 12px 0;
        }

        .game-tile-teams {
            display: flex;
            flex-direction: column;
            gap: 6px;
            padding: 10px 16px 16px;
        }

        .game-tile-team {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .tile-logo-wrap {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: var(--bg-card2);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            flex-shrink: 0;
            border: 1px solid var(--border);
        }

        .tile-logo {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .tile-logo-ph { font-size: 1rem; }

        .tile-team-name {
            flex: 1;
            font-size: .82rem;
            font-weight: 600;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .tile-score {
            font-size: .95rem;
            font-weight: 800;
            color: var(--text-muted);
            font-variant-numeric: tabular-nums;
            min-width: 28px;
            text-align: right;
        }

        .tile-winner .tile-team-name { color: white; }
        .tile-loser  .tile-team-name { color: var(--text-muted); }
        .tile-score-winner           { color: white; }

        .tile-winner .tile-logo-wrap { border-color: rgba(145,71,255,.4); }
        .logo-dim                    { opacity: .45; }

        /* Upcoming game tile VS layout */
        .upcoming-teams {
            flex-direction: row !important;
            align-items: center !important;
            justify-content: space-between;
            gap: 8px;
        }

        .upcoming-teams .game-tile-team {
            flex: 1;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            text-align: center;
        }

        .upcoming-teams .tile-team-name {
            font-size: .75rem;
            text-align: center;
        }

        .tile-vs-block {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .tile-vs {
            font-size: .75rem;
            font-weight: 800;
            color: var(--text-muted);
            background: var(--bg-card2);
            border-radius: 6px;
            padding: 4px 8px;
        }

        /* ── League Hero ────────────────────────────────────────── */
        .league-hero {
            background: linear-gradient(160deg, #0a0a0a 0%, #13082a 60%, #0a0a0a 100%);
            border-bottom: 1px solid var(--border);
            padding: 40px 20px 36px;
            position: relative;
            overflow: hidden;
        }

        .league-hero::before {
            content: '';
            position: absolute;
            top: -80px;
            left: 50%;
            transform: translateX(-50%);
            width: 600px;
            height: 300px;
            background: radial-gradient(ellipse, rgba(145,71,255,.12) 0%, transparent 70%);
            pointer-events: none;
        }

        .league-hero-inner {
            position: relative;
            z-index: 1;
            max-width: 920px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            gap: 24px;
            flex-wrap: wrap;
            animation: fadeInUp .4s ease both;
        }

        .league-hero-logo-wrap {
            width: 90px;
            height: 90px;
            border-radius: var(--radius-lg);
            background: var(--bg-card);
            border: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            flex-shrink: 0;
            box-shadow: 0 4px 20px rgba(0,0,0,.6);
        }

        .league-hero-logo-img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .league-hero-text {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .league-hero-name {
            font-size: 2rem;
            font-weight: 900;
            color: white;
            letter-spacing: -.5px;
            line-height: 1.1;
        }

        .season-badge {
            display: inline-block;
            background: var(--accent-dim);
            color: var(--accent);
            border: 1px solid rgba(145,71,255,.3);
            border-radius: 20px;
            font-size: .72rem;
            font-weight: 700;
            letter-spacing: .5px;
            padding: 3px 12px;
            width: fit-content;
        }

        .league-hero-desc {
            font-size: .82rem;
            color: var(--text-muted);
            margin-top: 4px;
        }

        /* ── League View Tab Bar ────────────────────────────────── */
        .lv-tabs-wrap {
            background: var(--bg-card);
            border-bottom: 1px solid var(--border);
            position: sticky;
            top: var(--nav-height);
            z-index: 50;
        }

        .lv-tabs {
            max-width: 920px;
            margin: 0 auto;
            display: flex;
            overflow-x: auto;
            scrollbar-width: none;
        }

        .lv-tabs::-webkit-scrollbar { display: none; }

        .lv-tab {
            background: none;
            border: none;
            border-bottom: 2px solid transparent;
            padding: 14px 20px;
            font-size: .85rem;
            font-weight: 600;
            color: var(--text-muted);
            cursor: pointer;
            transition: color .2s, border-color .2s;
            white-space: nowrap;
            margin-bottom: -1px;
        }

        .lv-tab:hover { color: white; }
        .lv-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

        /* ── League View Content ────────────────────────────────── */
        .lv-content {
            max-width: 920px;
            margin: 0 auto;
            padding: 28px 16px 48px;
            animation: fadeIn .3s ease both;
        }

        /* ── Standings Table ────────────────────────────────────── */
        .standings-wrap {
            overflow-x: auto;
            border-radius: var(--radius-md);
            border: 1px solid var(--border);
            background: var(--bg-card);
        }

        .standings-table {
            width: 100%;
            border-collapse: collapse;
            font-size: .85rem;
        }

        .standings-table thead tr {
            background: var(--bg-card2);
            border-bottom: 1px solid var(--border);
        }

        .standings-table th {
            padding: 12px 14px;
            font-size: .7rem;
            font-weight: 700;
            color: var(--text-muted);
            letter-spacing: .8px;
            text-transform: uppercase;
            text-align: center;
        }

        .standings-table th.col-team { text-align: left; }

        .standings-table td {
            padding: 11px 14px;
            text-align: center;
            color: var(--text-sub);
            vertical-align: middle;
        }

        .standings-table td.col-team { text-align: left; }

        .standings-row {
            border-bottom: 1px solid var(--border);
            transition: background .15s;
        }

        .standings-row:last-child { border-bottom: none; }
        .standings-row:hover { background: rgba(255,255,255,.03); }

        .standings-row.rank-gold   { border-left: 3px solid var(--gold);   }
        .standings-row.rank-silver { border-left: 3px solid var(--silver); }
        .standings-row.rank-bronze { border-left: 3px solid var(--bronze); }

        .standings-team {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .team-logo-sm {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: contain;
            background: var(--bg-card2);
            border: 1px solid var(--border);
            flex-shrink: 0;
        }

        .team-logo-sm-placeholder {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: var(--bg-card2);
            border: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: .9rem;
            flex-shrink: 0;
        }

        .standings-team-name {
            font-size: .88rem;
            font-weight: 600;
            color: var(--text);
            white-space: nowrap;
        }

        .rank-num {
            font-size: .85rem;
            font-weight: 700;
            color: var(--text-muted);
        }

        .pts-value {
            font-size: .92rem;
            font-weight: 800;
            color: white;
        }

        /* ── Match Cards (Calendar / Results) ───────────────────── */
        .match-date-group {
            margin-bottom: 28px;
        }

        .match-date-header {
            font-size: .72rem;
            font-weight: 700;
            color: var(--text-muted);
            letter-spacing: 1px;
            text-transform: uppercase;
            padding: 6px 0 10px;
            border-bottom: 1px solid var(--border);
            margin-bottom: 10px;
        }

        .match-card {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: center;
            gap: 12px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 14px 16px;
            margin-bottom: 8px;
            transition: border-color .2s, transform .15s, box-shadow .2s;
        }

        .match-card:hover {
            border-color: var(--accent);
            transform: translateY(-1px);
            box-shadow: 0 4px 16px rgba(145,71,255,.12);
        }

        .match-card-team {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
        }

        .match-card-team-right {
            flex-direction: row-reverse;
            text-align: right;
        }

        .match-team-logo {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            object-fit: contain;
            background: var(--bg-card2);
            border: 1px solid var(--border);
            flex-shrink: 0;
        }

        .match-team-logo-ph {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--bg-card2);
            border: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            flex-shrink: 0;
        }

        .match-team-name {
            font-size: .88rem;
            font-weight: 600;
            color: var(--text);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            flex: 1;
        }

        .match-card-center {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 5px;
            flex-shrink: 0;
        }

        .match-vs {
            font-size: .72rem;
            font-weight: 800;
            color: var(--text-muted);
            background: var(--bg-card2);
            border-radius: 6px;
            padding: 4px 10px;
        }

        .match-time {
            font-size: .78rem;
            font-weight: 600;
            color: var(--text-sub);
        }

        .status-badge-live {
            font-size: .62rem;
            font-weight: 800;
            letter-spacing: .5px;
            color: var(--live);
            background: var(--live-dim);
            border-radius: 20px;
            padding: 3px 8px;
            animation: pulseGlow 2s ease-in-out infinite;
        }

        .status-badge-upcoming {
            font-size: .62rem;
            font-weight: 700;
            letter-spacing: .5px;
            color: var(--accent);
            background: var(--accent-dim);
            border-radius: 20px;
            padding: 3px 8px;
        }

        /* ── Result Cards ───────────────────────────────────────── */
        .result-score {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .score-num {
            font-size: 1.3rem;
            font-weight: 900;
            color: var(--text-muted);
            font-variant-numeric: tabular-nums;
            min-width: 30px;
            text-align: center;
            line-height: 1;
        }

        .score-num.score-winner { color: white; }

        .score-sep {
            font-size: 1rem;
            font-weight: 700;
            color: var(--border-hover);
        }

        .final-badge {
            font-size: .6rem;
            font-weight: 800;
            letter-spacing: 1px;
            color: var(--text-muted);
            background: var(--bg-card2);
            border-radius: 20px;
            padding: 2px 8px;
        }

        .team-winner { color: var(--winner) !important; }
        .team-loser  { color: var(--text-muted) !important; }

        /* ── Teams Grid (League View) ───────────────────────────── */
        .lv-teams-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 14px;
        }

        .lv-team-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 20px 14px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            text-align: center;
            transition: border-color .2s, transform .2s, box-shadow .2s;
        }

        .lv-team-card:hover {
            border-color: var(--accent);
            transform: translateY(-2px);
            box-shadow: var(--shadow-accent);
        }

        .lv-team-logo-wrap {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: var(--bg-card2);
            border: 2px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .lv-team-logo {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .lv-team-name {
            font-size: .9rem;
            font-weight: 700;
            color: white;
            line-height: 1.3;
        }

        .lv-categoria-badge {
            font-size: .65rem;
            font-weight: 700;
            background: var(--accent-dim);
            color: var(--accent);
            border: 1px solid rgba(145,71,255,.3);
            border-radius: 20px;
            padding: 3px 10px;
        }

        .lv-player-count {
            font-size: .72rem;
            color: var(--text-muted);
        }

        /* ── Partido / Match Detail ──────────────────────────────── */
        .partido-hero {
            background: linear-gradient(160deg, #0a0a0a 0%, #13082a 60%, #0a0a0a 100%);
            padding: 32px 20px;
            border-bottom: 1px solid var(--border);
        }

        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: .82rem;
            color: var(--accent);
            margin-bottom: 20px;
        }

        .back-link:hover { text-decoration: underline; }

        .partido-date {
            text-align: center;
            font-size: .78rem;
            color: var(--text-muted);
            margin-bottom: 24px;
        }

        .scoreboard {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            gap: 16px;
            align-items: center;
            max-width: 600px;
            margin: 0 auto;
        }

        .team-side {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
        }

        .team-logo-lg {
            width: 70px;
            height: 70px;
            border-radius: var(--radius-md);
            object-fit: contain;
        }

        .team-logo-placeholder {
            width: 70px;
            height: 70px;
            border-radius: var(--radius-md);
            background: var(--bg-card2);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
        }

        .team-name-lg {
            font-size: .9rem;
            font-weight: 700;
            text-align: center;
        }

        .score-center { text-align: center; }

        .final-score {
            font-size: 2.4rem;
            font-weight: 900;
            color: white;
            font-variant-numeric: tabular-nums;
            line-height: 1;
        }

        .final-score.live { color: var(--live); }

        .vs-big {
            font-size: 1.6rem;
            font-weight: 800;
            color: #333;
        }

        .status-badge {
            display: inline-block;
            margin-top: 8px;
            font-size: .68rem;
            font-weight: 700;
            letter-spacing: 1px;
            padding: 3px 10px;
            border-radius: 20px;
        }

        .status-badge.final    { background: #1e1e1e; color: #666; }
        .status-badge.live     { background: var(--live-dim);   color: var(--live); }
        .status-badge.upcoming { background: var(--accent-dim); color: var(--accent); }

        /* ── Match Logs ─────────────────────────────────────────── */
        .logs-list { display: flex; flex-direction: column; gap: 6px; }

        .log-row {
            display: flex;
            gap: 12px;
            align-items: center;
            padding: 10px 14px;
            border-radius: var(--radius-sm);
            background: var(--bg-card);
            font-size: .84rem;
        }

        .log-row.local    { border-left: 3px solid var(--accent); }
        .log-row.visitante{ border-left: 3px solid var(--accent2); }
        .log-quarter      { font-size: .7rem; color: var(--text-muted); min-width: 28px; }
        .log-event        { flex: 1; color: var(--text); }
        .log-points       { font-weight: 800; color: var(--accent2); }
        .log-player       { font-size: .78rem; color: var(--text-muted); }

        /* ── Academias ──────────────────────────────────────────── */
        .academias-grid { display: flex; flex-direction: column; gap: 10px; }

        .academia-card {
            display: flex;
            align-items: center;
            gap: 16px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 16px;
            transition: border-color .2s, transform .15s;
        }

        .academia-card:hover {
            border-color: var(--accent);
            transform: translateY(-2px);
        }

        .academia-logo-wrap {
            width: 60px;
            height: 60px;
            border-radius: var(--radius-md);
            background: var(--bg-card2);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            flex-shrink: 0;
        }

        .academia-logo { width: 100%; height: 100%; object-fit: contain; }

        .academia-info {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .academia-nombre { font-size: .97rem; font-weight: 700; color: white; }
        .academia-ciudad { font-size: .78rem; color: var(--text-muted); }

        .academia-stats {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-top: 4px;
        }

        .stat-pill {
            font-size: .72rem;
            background: var(--bg-card2);
            border: 1px solid var(--border);
            border-radius: 20px;
            padding: 3px 10px;
            color: var(--text-muted);
            white-space: nowrap;
        }

        .stat-pill.accent { border-color: var(--accent); color: var(--accent); }
        .stat-pill.green  { border-color: var(--accent2); color: var(--accent2); }

        .academia-hero {
            background: linear-gradient(160deg, #0a0a0a 0%, #13082a 60%, #0a0a0a 100%);
            padding: 28px 20px 32px;
            border-bottom: 1px solid var(--border);
        }

        .academia-hero-body {
            display: flex;
            align-items: center;
            gap: 20px;
            max-width: 920px;
            margin: 12px auto 0;
            flex-wrap: wrap;
        }

        .academia-hero-logo {
            width: 80px;
            height: 80px;
            border-radius: var(--radius-lg);
            background: var(--bg-card2);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            flex-shrink: 0;
            border: 2px solid var(--border);
        }

        .academia-hero-logo img { width: 100%; height: 100%; object-fit: contain; }
        .academia-hero-name { font-size: 1.7rem; font-weight: 800; color: white; margin: 0 0 4px; }
        .academia-hero-city { font-size: .82rem; color: var(--text-muted); margin: 0; }

        /* ── Tabs Bar (generic) ─────────────────────────────────── */
        .tabs-bar {
            display: flex;
            gap: 4px;
            border-bottom: 1px solid var(--border);
            margin-bottom: 20px;
            overflow-x: auto;
            scrollbar-width: none;
        }

        .tabs-bar::-webkit-scrollbar { display: none; }

        .tab-btn {
            background: none;
            border: none;
            border-bottom: 2px solid transparent;
            padding: 10px 18px;
            font-size: .88rem;
            font-weight: 600;
            color: var(--text-muted);
            cursor: pointer;
            transition: color .2s, border-color .2s;
            margin-bottom: -1px;
            white-space: nowrap;
        }

        .tab-btn:hover { color: white; }
        .tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

        /* ── Teams Grid (generic) ───────────────────────────────── */
        .teams-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 12px;
        }

        .team-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 16px 12px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            text-align: center;
            transition: border-color .2s;
        }

        .team-card:hover { border-color: var(--accent); }

        .team-card-logo {
            width: 52px;
            height: 52px;
            border-radius: var(--radius-sm);
            background: var(--bg-card2);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .team-card-logo img { width: 100%; height: 100%; object-fit: contain; }
        .team-card-name     { font-size: .88rem; font-weight: 700; color: white; }

        .categoria-badge {
            font-size: .65rem;
            background: var(--accent-dim);
            color: var(--accent);
            border-radius: 20px;
            padding: 2px 8px;
            border: 1px solid rgba(145,71,255,.3);
        }

        .team-card-players { font-size: .72rem; color: var(--text-muted); }

        /* ── Players Grid ───────────────────────────────────────── */
        .players-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
            gap: 12px;
        }

        .player-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 16px 10px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            text-align: center;
        }

        .player-avatar {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background: var(--bg-card2);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .player-avatar img { width: 100%; height: 100%; object-fit: cover; }
        .player-name { font-size: .78rem; font-weight: 600; color: var(--text); }

        /* ── Matches List (generic) ─────────────────────────────── */
        .matches-list { display: flex; flex-direction: column; gap: 8px; }

        .match-row {
            display: grid;
            grid-template-columns: 90px 1fr 80px;
            align-items: center;
            gap: 12px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 14px 16px;
            transition: border-color .2s;
        }

        .match-row:hover { border-color: var(--accent); }

        .match-date    { font-size: .72rem; color: var(--text-muted); }
        .match-teams   { display: flex; align-items: center; gap: 10px; overflow: hidden; }
        .team-name     { font-size: .88rem; font-weight: 600; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .team-name.winner { color: var(--winner); }

        .vs-badge {
            background: var(--bg-card2);
            border-radius: 6px;
            padding: 3px 8px;
            font-size: .7rem;
            font-weight: 700;
            color: var(--text-muted);
            flex-shrink: 0;
        }

        .score-badge {
            background: var(--bg-card2);
            border-radius: 8px;
            padding: 5px 12px;
            font-size: .9rem;
            font-weight: 800;
            color: white;
            flex-shrink: 0;
            font-variant-numeric: tabular-nums;
        }

        .match-status, .result-label {
            font-size: .72rem;
            color: var(--text-muted);
            text-align: right;
        }

        /* ── League Cards (compact list) ────────────────────────── */
        .leagues-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 12px;
        }

        .league-card {
            display: flex;
            align-items: center;
            gap: 14px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 16px;
            transition: border-color .2s, transform .15s;
        }

        .league-card:hover {
            border-color: var(--accent);
            transform: translateY(-2px);
        }

        .league-logo {
            width: 48px;
            height: 48px;
            border-radius: var(--radius-md);
            background: var(--bg-card2);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            flex-shrink: 0;
        }

        .league-logo img { width: 100%; height: 100%; object-fit: contain; }
        .league-icon     { font-size: 1.5rem; }
        .league-info     { flex: 1; min-width: 0; }
        .league-name     { display: block; font-weight: 700; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .league-season   { display: block; font-size: .75rem; color: var(--text-muted); margin-top: 2px; }
        .chevron         { font-size: 20px; color: #444; }

        /* ── Responsive Breakpoints ──────────────────────────────── */
        @media (min-width: 640px) {
            .lv-teams-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (min-width: 900px) {
            .lv-teams-grid {
                grid-template-columns: repeat(4, 1fr);
            }

            .hero-title { font-size: 3.6rem; }
            .league-hero-name { font-size: 2.4rem; }
        }

        @media (max-width: 600px) {
            .hero-title       { font-size: 2rem; }
            .hero-sub         { font-size: .95rem; }
            .league-hero-name { font-size: 1.5rem; }

            .match-card {
                grid-template-columns: 1fr;
                gap: 10px;
            }

            .match-card-team-right {
                flex-direction: row;
            }

            .match-row {
                grid-template-columns: 70px 1fr 60px;
            }

            .scoreboard  { gap: 10px; }
            .final-score { font-size: 1.8rem; }

            .team-logo-lg,
            .team-logo-placeholder {
                width: 54px;
                height: 54px;
            }

            .game-tiles-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .nav-links a {
                padding: 6px 8px;
                font-size: .78rem;
            }
        }

        @media (max-width: 380px) {
            .game-tiles-grid {
                grid-template-columns: 1fr;
            }

            .lv-teams-grid {
                grid-template-columns: 1fr;
            }
        }

        /* ── Responsive móvil — tabla de posiciones y general ── */
        @media (max-width: 600px) {

            /* Navbar: compactar en móvil */
            #site-nav {
                padding: 0 10px;
                gap: 6px;
            }
            .nav-brand-text { font-size: .82rem; }
            /* .nav-links en móvil: site-nav-mobile.css (drawer); no fila con overflow-x aquí */
            .nav-user-role  { display: none; }
            .nav-user-name  { font-size: .75rem; }
            .nav-btn        { font-size: .72rem; padding: 5px 10px; }

            /* League tabs */
            .lv-tab { padding: 11px 14px; font-size: .78rem; }

            /* Tabla de posiciones */
            .standings-table th,
            .standings-table td {
                padding: 9px 7px;
                font-size: .75rem;
            }
            .standings-table th.col-team,
            .standings-table td.col-team {
                padding-left: 8px;
                max-width: 120px;
            }
            /* Ocultar PF y PC (col 6 y 7) en móvil — menos críticos */
            .standings-table th:nth-child(6),
            .standings-table td:nth-child(6),
            .standings-table th:nth-child(7),
            .standings-table td:nth-child(7) {
                display: none;
            }
            /* Truncar nombre de equipo */
            .team-link {
                max-width: 90px;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                display: inline-block;
            }
            /* Logo más pequeño en tabla */
            .team-logo-sm {
                width: 24px;
                height: 24px;
            }
            .standings-team { gap: 6px; }

            /* Partidos */
            .match-row {
                grid-template-columns: 60px 1fr 50px;
                padding: 8px 10px;
            }
            .match-team-name { font-size: .8rem; }

            /* Sección equipos: 2 columnas en móvil */
            .lv-teams-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            /* Vista general de liga */
            .lv-content {
                padding: 16px 10px 40px;
            }
            .league-hero-name { font-size: 1.4rem; }
            .hero-title { font-size: 1.8rem; }
        }

        @media (max-width: 400px) {
            /* Ocultar también DIF en pantallas muy pequeñas (col 8 → col 6 después de ocultar PF/PC) */
            /* Usando nth-child real */
            .standings-table th:nth-child(8),
            .standings-table td:nth-child(8) {
                display: none;
            }
            .team-link { max-width: 72px; }
            .nav-user-name { display: none; }
        }

        /* ══════════════════════════════════════════════════════
           ACADEMIA DASHBOARD MODULE
           ══════════════════════════════════════════════════════ */

        /* ── Hero ─────────────────────────────────────────────── */
        .acad-hero {
            position: relative;
            background: linear-gradient(160deg, #0a0a0a 0%, #0a111a 50%, #0a0a0a 100%);
            border-bottom: 1px solid var(--border);
            overflow: hidden;
            padding: 32px 20px 28px;
        }
        .acad-hero-glow {
            position: absolute; top:-80px; left:50%; transform:translateX(-50%);
            width:600px; height:300px;
            background: radial-gradient(ellipse at center, rgba(76,175,80,.12) 0%, transparent 70%);
            pointer-events:none;
        }
        .acad-hero-inner {
            max-width: 920px; margin: 0 auto;
            display: flex; align-items: center; gap: 20px;
            flex-wrap: wrap; position: relative; z-index:1;
        }
        .acad-hero-logo {
            width: 72px; height: 72px; border-radius: 16px;
            background: linear-gradient(135deg, rgba(76,175,80,.3), rgba(145,71,255,.3));
            border: 1px solid rgba(76,175,80,.3); display: flex;
            align-items: center; justify-content: center; font-size: 2rem; flex-shrink:0;
        }
        .acad-hero-badge {
            display: inline-block; background: rgba(76,175,80,.2);
            color: #4caf50; border: 1px solid rgba(76,175,80,.4);
            border-radius: 20px; font-size: .68rem; font-weight: 800;
            letter-spacing: 1px; padding: 3px 12px; margin-bottom: 6px;
        }
        .acad-hero-title {
            font-size: 1.8rem; font-weight: 900; color: white; line-height:1;
        }
        .acad-hero-sub { font-size: .82rem; color: var(--text-muted); margin-top:4px; }
        .acad-hero-stats {
            display: flex; gap: 12px; margin-left: auto; flex-wrap: wrap;
        }
        .acad-stat-pill {
            background: var(--bg-card); border: 1px solid var(--border);
            border-radius: var(--radius-md); padding: 10px 16px;
            display: flex; flex-direction: column; align-items: center;
            text-align: center; min-width: 72px;
        }
        .acad-stat-num { font-size: 1.4rem; font-weight: 900; color: white; }
        .acad-stat-lbl { font-size: .65rem; font-weight: 700; color: var(--text-muted); letter-spacing: .5px; margin-top:2px; }

        /* ── Role Bar ──────────────────────────────────────────── */
        .acad-role-bar {
            background: var(--bg-card); border-bottom: 1px solid var(--border);
            display: flex; gap: 0; overflow-x: auto; padding: 0 20px;
            max-width: 920px; margin: 0 auto;
        }
        .acad-role-btn {
            background: transparent; border: none; color: var(--text-muted);
            font-size: .82rem; font-weight: 700; padding: 14px 20px;
            cursor: pointer; white-space: nowrap; border-bottom: 3px solid transparent;
            transition: all .2s; letter-spacing: .3px;
        }
        .acad-role-btn:hover { color: white; }
        .acad-role-btn.active { color: #4caf50; border-bottom-color: #4caf50; }

        /* ── Section Layout ────────────────────────────────────── */
        .acad-section {
            max-width: 920px; margin: 0 auto; padding: 24px 16px;
            animation: fadeInUp .35s ease both;
        }
        .acad-two-col {
            display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
        }

        /* ── KPI Grid ──────────────────────────────────────────── */
        .acad-kpi-grid {
            display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
            margin-bottom: 20px;
        }
        .acad-kpi-card {
            border-radius: var(--radius-md); padding: 18px 14px;
            display: flex; flex-direction: column; align-items: center;
            text-align: center; border: 1px solid transparent; gap:6px;
        }
        .acad-kpi-card.accent { background: var(--accent-dim); border-color: rgba(145,71,255,.3); }
        .acad-kpi-card.green  { background: var(--accent2-dim); border-color: rgba(76,175,80,.3); }
        .acad-kpi-card.gold   { background: rgba(255,215,0,.08); border-color: rgba(255,215,0,.25); }
        .acad-kpi-card.red    { background: var(--live-dim); border-color: rgba(255,68,68,.3); }
        .acad-kpi-icon { font-size: 1.4rem; }
        .acad-kpi-num  { font-size: 1.9rem; font-weight: 900; color: white; }
        .acad-kpi-lbl  { font-size: .67rem; font-weight: 700; letter-spacing:.5px; color: var(--text-muted); }

        /* ── Card ──────────────────────────────────────────────── */
        .acad-card {
            background: var(--bg-card); border: 1px solid var(--border);
            border-radius: var(--radius-lg); overflow: hidden;
        }
        .acad-card-header {
            display: flex; align-items: center; justify-content: space-between;
            padding: 14px 16px; border-bottom: 1px solid var(--border);
            background: var(--bg-card2);
        }
        .acad-card-title { font-size: .82rem; font-weight: 800; letter-spacing: .5px; color: white; }
        .acad-badge {
            background: var(--accent-dim); color: var(--accent);
            font-size: .68rem; font-weight: 700; border-radius: 20px;
            padding: 2px 8px; border: 1px solid rgba(145,71,255,.3);
        }

        /* ── Player List ───────────────────────────────────────── */
        .acad-player-list { padding: 8px; display: flex; flex-direction: column; gap: 4px; }
        .acad-player-row {
            display: flex; align-items: center; gap: 10px;
            padding: 10px 8px; border-radius: var(--radius-sm); cursor: pointer;
            transition: background .15s;
        }
        .acad-player-row:hover { background: rgba(255,255,255,.04); }
        .acad-player-row.selected { background: var(--accent-dim); }
        .acad-player-avatar {
            width: 38px; height: 38px; border-radius: 50%;
            background: linear-gradient(135deg, #9147ff33, #4caf5033);
            border: 1px solid var(--border); display: flex;
            align-items: center; justify-content: center; flex-shrink:0;
        }
        .acad-avatar-initials { font-size: .95rem; font-weight: 900; color: var(--accent); }
        .acad-player-info { flex:1; min-width:0; }
        .acad-player-name { font-size: .85rem; font-weight: 700; color: white; display: block; }
        .acad-player-meta { font-size: .7rem; color: var(--text-muted); }
        .acad-mini-stat  { font-size: .72rem; font-weight: 700; color: var(--accent2); }
        .acad-player-ovr {
            width: 36px; height: 36px; border-radius: 8px;
            display: flex; align-items: center; justify-content: center;
            font-size: .9rem; font-weight: 900; color: #000; flex-shrink:0;
        }

        .acad-shot-btn {
            display: flex; align-items: center; justify-content: center;
            width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
            background: rgba(145,71,255,.15); border: 1px solid rgba(145,71,255,.35);
            font-size: .85rem; text-decoration: none; opacity: 0;
            transition: opacity .15s, background .15s;
        }
        .acad-player-row:hover .acad-shot-btn { opacity: 1; }
        .acad-shot-btn:hover { background: rgba(145,71,255,.35); }

        /* ── Next Games ────────────────────────────────────────── */
        .acad-game-row {
            padding: 12px 16px; border-bottom: 1px solid var(--border);
            display: flex; flex-direction: column; gap: 2px;
        }
        .acad-game-row:last-child { border-bottom: none; }
        .acad-game-date { font-size: .7rem; color: var(--accent2); font-weight: 700; }
        .acad-game-teams { font-size: .85rem; font-weight: 700; color: white; }
        .acad-game-venue { font-size: .72rem; color: var(--text-muted); }

        /* ── Form ──────────────────────────────────────────────── */
        .acad-form { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
        .acad-input {
            background: var(--bg-card2); border: 1px solid var(--border);
            border-radius: var(--radius-sm); color: white; font-family: inherit;
            font-size: .83rem; padding: 9px 12px; width: 100%;
            transition: border-color .2s;
        }
        .acad-input:focus { outline: none; border-color: var(--accent2); }
        .acad-textarea { min-height: 70px; resize: vertical; }
        .acad-btn-primary {
            background: linear-gradient(135deg, #4caf50, #388e3c);
            color: white; border: none; border-radius: var(--radius-md);
            font-family: inherit; font-size: .84rem; font-weight: 800;
            padding: 11px; cursor: pointer; transition: transform .15s, opacity .15s;
        }
        .acad-btn-primary:hover { transform: translateY(-1px); opacity:.9; }
        .acad-success-msg {
            background: var(--accent2-dim); border: 1px solid rgba(76,175,80,.35);
            color: var(--accent2); border-radius: var(--radius-sm);
            padding: 8px 12px; font-size: .8rem; font-weight: 600;
        }

        /* ── Table ─────────────────────────────────────────────── */
        .acad-table-wrap { overflow-x: auto; }
        .acad-table {
            width: 100%; border-collapse: collapse; font-size: .78rem;
        }
        .acad-table th {
            background: var(--bg-card2); color: var(--accent); font-weight: 800;
            letter-spacing: .8px; font-size: .67rem; text-transform: uppercase;
            padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left;
        }
        .acad-table td {
            padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text);
        }
        .acad-table tr:last-child td { border-bottom: none; }
        .acad-table tr:hover td { background: rgba(255,255,255,.02); }
        .acad-mini-bar {
            width: 60px; height: 6px; background: var(--bg-card2);
            border-radius: 3px; overflow: hidden; display: inline-block; margin-right:4px;
        }
        .acad-mini-bar-fill {
            height: 100%; border-radius: 3px; transition: width .3s;
        }
        .acad-mini-bar-fill.green  { background: #4caf50; }
        .acad-mini-bar-fill.accent { background: #9147ff; }
        .acad-mini-bar-fill.red    { background: #ff5555; }

        /* ── FIFA Card ─────────────────────────────────────────── */
        .acad-fifa-wrap {
            display: flex; gap: 24px; align-items: flex-start;
            margin-bottom: 20px; flex-wrap: wrap;
        }
        .acad-fifa-card {
            width: 220px; min-width: 200px; flex-shrink: 0;
            background: linear-gradient(160deg, #1a2a12 0%, #0d1d08 60%, #0a0e06 100%);
            border: 1px solid rgba(255,215,0,.25);
            border-radius: 16px; padding: 20px 16px;
            display: flex; flex-direction: column; align-items: center;
            box-shadow: 0 8px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(255,215,0,.1);
            position: relative; overflow: hidden;
        }
        .acad-fifa-card::before {
            content: ''; position: absolute; inset:0;
            background: linear-gradient(135deg, rgba(255,215,0,.06) 0%, transparent 50%);
            pointer-events: none;
        }
        .acad-fifa-header {
            display: flex; align-items: center; gap: 8px;
            width: 100%; margin-bottom: 12px;
        }
        .acad-fifa-ovr {
            font-size: 2.2rem; font-weight: 900;
            background: linear-gradient(135deg, #ffd700, #ff9f00);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent;
            background-clip: text; line-height: 1;
        }
        .acad-fifa-pos {
            font-size: .9rem; font-weight: 900; color: rgba(255,215,0,.8);
            text-transform: uppercase; letter-spacing: .5px;
        }
        .acad-fifa-flag { margin-left: auto; font-size: 1.4rem; }
        .acad-fifa-avatar {
            width: 120px; height: 120px; margin-bottom: 12px;
        }
        .acad-fifa-avatar-inner {
            width: 100%; height: 100%; border-radius: 50%;
            background: linear-gradient(135deg, rgba(255,215,0,.15), rgba(145,71,255,.15));
            border: 2px solid rgba(255,215,0,.3);
            display: flex; align-items: center; justify-content: center;
        }
        .acad-fifa-name {
            font-size: 1.05rem; font-weight: 900; color: white;
            letter-spacing: .3px; text-align: center; margin-bottom: 2px;
        }
        .acad-fifa-club {
            font-size: .68rem; color: rgba(255,215,0,.6);
            letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px;
        }
        .acad-fifa-stats-row {
            display: grid; grid-template-columns: repeat(3, 1fr);
            gap: 8px; width: 100%;
        }
        .acad-fifa-attr {
            display: flex; flex-direction: column; align-items: center;
            background: rgba(255,255,255,.05); border-radius: 8px; padding: 6px 4px;
        }
        .acad-fifa-attr .val {
            font-size: 1rem; font-weight: 900;
            background: linear-gradient(135deg, #ffd700, #ff9f00);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .acad-fifa-attr .lbl {
            font-size: .6rem; font-weight: 700; color: rgba(255,255,255,.5);
            letter-spacing: .5px;
        }

        /* ── Player Detail / Bio ───────────────────────────────── */
        .acad-player-detail { flex: 1; min-width: 280px; display: flex; flex-direction: column; gap: 16px; }
        .acad-bio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
        .acad-bio-item {
            background: var(--bg-card); border: 1px solid var(--border);
            border-radius: var(--radius-sm); padding: 10px 12px;
        }
        .acad-bio-lbl { font-size: .65rem; font-weight: 700; color: var(--accent2); letter-spacing: .8px; display:block; }
        .acad-bio-val { font-size: .88rem; font-weight: 700; color: white; display:block; margin-top:2px; }

        /* ── Radar Chart ───────────────────────────────────────── */
        .acad-radar-wrap {
            background: var(--bg-card); border: 1px solid var(--border);
            border-radius: var(--radius-lg); padding: 16px; flex:1;
        }
        .acad-radar-title { font-size: .78rem; font-weight: 800; color: var(--accent); margin-bottom: 10px; letter-spacing:.5px; }
        .acad-radar-svg { width: 100%; max-width: 260px; display: block; margin: 0 auto; }
        .acad-radar-legend { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
        .acad-legend-item { display: flex; align-items: center; gap: 8px; }
        .acad-legend-dot { width: 8px; height: 8px; border-radius: 50%; background: #9147ff; flex-shrink:0; }
        .acad-legend-name { font-size: .72rem; color: var(--text-muted); min-width: 80px; }
        .acad-legend-bar { flex:1; height: 5px; background: var(--bg-card2); border-radius: 3px; overflow:hidden; }
        .acad-legend-fill { height:100%; background: linear-gradient(90deg, #9147ff, #c084fc); border-radius:3px; }
        .acad-legend-val { font-size: .72rem; font-weight: 800; color: white; min-width: 28px; text-align: right; }

        /* ── Big Stats Grid ────────────────────────────────────── */
        .acad-stats-grid-large {
            display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 14px;
        }
        .acad-stat-card {
            background: var(--bg-card2); border: 1px solid var(--border);
            border-radius: var(--radius-md); padding: 16px 10px;
            display: flex; flex-direction: column; align-items: center; text-align: center;
        }
        .acad-stat-big { font-size: 1.7rem; font-weight: 900; color: white; }
        .acad-stat-label { font-size: .62rem; font-weight: 800; color: var(--accent); letter-spacing: 1px; margin-top:4px; }

        /* ── Line Chart ────────────────────────────────────────── */
        .acad-line-chart-wrap { padding: 14px 10px; }
        .acad-linechart-svg { width: 100%; }

        /* ── Metrics List ──────────────────────────────────────── */
        .acad-metrics-list { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
        .acad-metric-row { display: flex; align-items: center; gap: 10px; }
        .acad-metric-name { font-size: .78rem; color: var(--text-muted); min-width: 100px; }
        .acad-metric-bar { flex:1; height: 8px; background: var(--bg-card2); border-radius: 4px; overflow:hidden; }
        .acad-metric-fill { height:100%; border-radius:4px; transition: width .5s ease; }
        .acad-metric-fill.accent { background: linear-gradient(90deg, #9147ff, #c084fc); }
        .acad-metric-fill.green  { background: linear-gradient(90deg, #4caf50, #66bb6a); }
        .acad-metric-fill.gold   { background: linear-gradient(90deg, #ffd700, #ffb300); }
        .acad-metric-fill.red    { background: linear-gradient(90deg, #ff5555, #ff7777); }
        .acad-metric-val { font-size: .72rem; font-weight: 800; color: white; min-width: 48px; text-align: right; }

        /* ── Comments ──────────────────────────────────────────── */
        .acad-comment-row { padding: 12px 16px; border-bottom: 1px solid var(--border); }
        .acad-comment-row:last-child { border-bottom: none; }
        .acad-comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
        .acad-comment-date { font-size: .7rem; color: var(--accent2); font-weight: 700; }
        .acad-comment-ex { font-size: .7rem; color: var(--text-muted); background: var(--bg-card2); padding: 2px 8px; border-radius: 10px; }
        .acad-comment-text { font-size: .82rem; color: var(--text-sub); font-style: italic; }

        /* ── Padre View ────────────────────────────────────────── */
        .acad-padre-header {
            display: flex; align-items: center; gap: 18px;
            background: linear-gradient(135deg, var(--bg-card), var(--bg-card2));
            border: 1px solid var(--border); border-radius: var(--radius-lg);
            padding: 20px 24px; margin-bottom: 20px;
        }
        .acad-padre-avatar {
            width: 70px; height: 70px; border-radius: 50%;
            background: linear-gradient(135deg,rgba(76,175,80,.25),rgba(145,71,255,.25));
            border: 2px solid rgba(76,175,80,.4);
            display:flex; align-items:center; justify-content:center; font-size:2rem; flex-shrink:0;
        }
        .acad-padre-name { font-size: 1.4rem; font-weight: 900; color: white; margin-bottom:2px; }
        .acad-padre-sub { font-size: .78rem; color: var(--text-muted); }
        .acad-padre-ovr-badge {
            display: inline-block; margin-top: 6px;
            background: linear-gradient(135deg, #ffd700, #ff9f00);
            color: #000; font-size: .72rem; font-weight: 900; letter-spacing:.8px;
            border-radius: 20px; padding: 3px 12px;
        }

        /* ── Payments ──────────────────────────────────────────── */
        .acad-pay-row {
            display: flex; align-items: center; justify-content: space-between;
            padding: 14px 16px; border-bottom: 1px solid var(--border);
        }
        .acad-pay-row:last-child { border-bottom: none; }
        .acad-pay-concepto { font-size: .84rem; font-weight: 700; color: white; }
        .acad-pay-fecha { font-size: .7rem; color: var(--text-muted); margin-top:2px; }
        .acad-pay-monto { font-size: .95rem; font-weight: 900; color: white; text-align:right; }
        .acad-pay-status {
            display: block; font-size: .68rem; font-weight: 800;
            border-radius: 20px; padding: 3px 10px; margin-top: 2px;
            text-align: right; letter-spacing: .3px;
        }
        .acad-pay-status.paid    { background: var(--accent2-dim); color: var(--accent2); }
        .acad-pay-status.pending { background: rgba(255,215,0,.1); color: #ffd700; }

        /* ── Responsive Media Queries ──────────────────────────── */
        @media (max-width: 768px) {
            .acad-two-col { grid-template-columns: 1fr; }
            .acad-kpi-grid { grid-template-columns: repeat(2, 1fr); }
            .acad-stats-grid-large { grid-template-columns: repeat(2, 1fr); }
            .acad-fifa-wrap { flex-direction: column; align-items: center; }
        }
        @media (max-width: 500px) {
            .acad-kpi-grid { grid-template-columns: repeat(2, 1fr); }
            .acad-fifa-card { width: 100%; }
        }

        /* ── Teams View (Dashboard) ─────────────────────────────── */
        .acad-teams-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        .acad-team-card {
            background: #121216;
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 20px;
            display: flex;
            align-items: center;
            gap: 16px;
            cursor: pointer;
            transition: all 0.2s ease;
            position: relative;
            overflow: hidden;
        }

        .acad-team-card:hover {
            transform: translateY(-4px);
            border-color: var(--accent);
            background: #1a1a20;
        }

        .acad-team-logo-wrap {
            width: 64px;
            height: 64px;
            background: #080808;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            flex-shrink: 0;
            overflow: hidden;
        }

        .acad-team-img { width: 100%; height: 100%; object-fit: contain; }
        .acad-team-logo-placeholder { opacity: 0.6; }

        .acad-team-info { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
        .acad-team-name { color: #fff; font-weight: 800; font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .acad-team-cat { color: var(--accent); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; }
        .acad-team-meta { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }

        .acad-team-action {
            font-size: 0.8rem;
            font-weight: 700;
            color: var(--accent);
            margin-top: 10px;
            opacity: 0;
            transition: opacity 0.2s;
        }

        .acad-team-card:hover .acad-team-action { opacity: 1; }
