 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', sans-serif;
            min-height: 100vh;
            background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e1b4b 100%);
            color: #f1f5f9;
        }

        .orb {
            position: fixed;
            border-radius: 50%;
            filter: blur(80px);
            opacity: 0.4;
            pointer-events: none;
            z-index: 0;
        }
        .orb-1 { top: -10rem; left: -10rem; width: 30rem; height: 30rem; background: radial-gradient(circle, rgba(56, 189, 248, 0.4), transparent); }
        .orb-2 { bottom: -10rem; right: -10rem; width: 35rem; height: 35rem; background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent); }

        .container {
            position: relative;
            z-index: 1;
            max-width: 1400px;
            margin: 0 auto;
            padding: 1.5rem;
        }

        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 2rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .logo h1 {
            font-size: 1.5rem;
            background: linear-gradient(135deg, #fff, #38bdf8);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            cursor: pointer;
        }

        .logo p {
            font-size: 0.8rem;
            color: #94a3b8;
        }

        .admin-badge {
            display: flex;
            align-items: center;
            gap: 1rem;
            background: rgba(56, 189, 248, 0.1);
            padding: 0.5rem 1rem;
            border-radius: 60px;
            border: 1px solid rgba(56, 189, 248, 0.3);
        }

        /* Navegación de ligas */
        .liga-nav {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
            margin-bottom: 2rem;
            background: rgba(0, 0, 0, 0.3);
            padding: 0.5rem;
            border-radius: 60px;
        }

        .liga-btn {
            padding: 0.75rem 1.5rem;
            background: transparent;
            border: none;
            border-radius: 40px;
            color: #94a3b8;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }

        .liga-btn.active {
            background: linear-gradient(135deg, #38bdf8, #0ea5e9);
            color: #020617;
        }

        .admin-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .card {
            background: rgba(15, 23, 42, 0.7);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 24px;
            padding: 1.5rem;
            transition: all 0.3s;
        }

        .card:hover {
            border-color: rgba(56, 189, 248, 0.3);
        }

        .card h2 {
            font-size: 1.3rem;
            margin-bottom: 1rem;
            color: #38bdf8;
        }

        .form-group {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1rem;
            flex-wrap: wrap;
        }

        .form-group input {
            flex: 1;
            padding: 0.75rem 1rem;
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            color: white;
        }

        .btn {
            padding: 0.75rem 1.25rem;
            border: none;
            border-radius: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }

        .btn-primary {
            background: linear-gradient(135deg, #38bdf8, #0ea5e9);
            color: #020617;
        }

        .btn-secondary {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
        }

        .btn-danger {
            background: rgba(239, 68, 68, 0.15);
            border: 1px solid rgba(239, 68, 68, 0.3);
            color: #ef4444;
        }

        .btn-success {
            background: linear-gradient(135deg, #10b981, #059669);
            color: white;
        }

        .btn-sm {
            padding: 0.4rem 0.8rem;
            font-size: 0.8rem;
        }

        .teams-list {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin: 1rem 0;
            max-height: 200px;
            overflow-y: auto;
        }

        .team-tag {
            background: rgba(56, 189, 248, 0.1);
            border: 1px solid rgba(56, 189, 248, 0.2);
            border-radius: 40px;
            padding: 0.4rem 0.8rem;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.85rem;
        }

        .remove-team {
            background: none;
            border: none;
            color: #ef4444;
            cursor: pointer;
            font-size: 1rem;
        }

        /* ==================== CLASIFICACIÓN RESPONSIVE ==================== */
        .standings-wrapper {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            margin: 0 -0.5rem;
            padding: 0 0.5rem;
        }

        .standings-table {
            width: 100%;
            min-width: 550px;
            border-collapse: collapse;
            font-size: 0.85rem;
        }

        .standings-table th,
        .standings-table td {
            padding: 0.6rem 0.4rem;
            text-align: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            white-space: nowrap;
        }

        .standings-table th {
            color: #38bdf8;
            font-weight: 600;
        }

        .standings-table td:first-child,
        .standings-table th:first-child {
            text-align: left;
            position: sticky;
            left: 0;
            background: rgba(15, 23, 42, 0.95);
            z-index: 1;
        }

        /* Scrollbar personalizada */
        .standings-wrapper::-webkit-scrollbar {
            height: 4px;
        }

        .standings-wrapper::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
        }

        .standings-wrapper::-webkit-scrollbar-thumb {
            background: #38bdf8;
            border-radius: 10px;
        }

        /* ==================== CALENDARIO ==================== */
        .jornada {
            margin-bottom: 1rem;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 16px;
            overflow: hidden;
        }

        .jornada-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem 1rem;
            background: rgba(56, 189, 248, 0.1);
            cursor: pointer;
        }

        .jornada-partidos {
            padding: 0.75rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .partido {
            background: rgba(0, 0, 0, 0.2);
            border-radius: 12px;
            padding: 1rem;
        }

        .partido-equipos {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .equipo-nombre {
            font-weight: 600;
            font-size: 1rem;
        }

        .vs {
            color: #38bdf8;
            font-weight: 700;
        }

        .sets-container {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            justify-content: center;
            margin-bottom: 1rem;
        }

        .set-card {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 12px;
            padding: 0.75rem;
            text-align: center;
            min-width: 100px;
        }

        .set-card label {
            font-size: 0.7rem;
            color: #94a3b8;
            display: block;
            margin-bottom: 0.3rem;
        }

        .set-inputs {
            display: flex;
            gap: 0.5rem;
            justify-content: center;
            align-items: center;
        }

        .set-inputs input {
            width: 50px;
            padding: 0.4rem;
            text-align: center;
            background: rgba(0, 0, 0, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            color: white;
        }

        .resultado-badge {
            background: #10b981;
            color: white;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.75rem;
        }

        .resultado-detalle {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-top: 0.5rem;
            font-size: 0.8rem;
            color: #10b981;
        }

        .collapsed .jornada-partidos {
            display: none;
        }

        .info-text {
            color: #94a3b8;
            font-size: 0.85rem;
            margin: 1rem 0;
        }

        .full-width {
            grid-column: 1 / -1;
        }

        .action-buttons {
            display: flex;
            gap: 0.5rem;
            justify-content: flex-end;
            margin-top: 0.5rem;
        }

        /* ==================== RESPONSIVE ==================== */
        @media (max-width: 768px) {
            .container { padding: 1rem; }
            .header { flex-direction: column; text-align: center; }
            .liga-nav { border-radius: 20px; justify-content: center; }
            .liga-btn { padding: 0.5rem 1rem; font-size: 0.8rem; }
            .admin-grid { grid-template-columns: 1fr; }
            .partido-equipos { flex-direction: column; text-align: center; }
            .sets-container { flex-direction: column; align-items: center; }
            .set-card { width: 100%; }
            .card { padding: 1rem; }
            .card h2 { font-size: 1.1rem; }
        }

        @media (max-width: 640px) {
            .standings-table {
                min-width: 480px;
                font-size: 0.7rem;
            }
            .standings-table th,
            .standings-table td {
                padding: 0.4rem 0.2rem;
            }
        }