  /* Panel lateral */
        .sidebar {
            width: 280px;
            background: rgba(15, 23, 42, 0.95);
            border-right: 2px solid rgba(59, 130, 246, 0.3);
            padding: 30px 20px;
            display: flex;
            flex-direction: column;
            gap: 24px;
            box-shadow: 4px 0 20px rgba(0, 0, 0, 0.4);
        }

        .sidebar-header {
            text-align: center;
            padding-bottom: 20px;
            border-bottom: 1px solid rgba(59, 130, 246, 0.2);
        }

        .ps4-logo {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            border-radius: 10px;
            margin: 0 auto 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            font-weight: bold;
            color: white;
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
        }

        .sidebar-title {
            font-size: 18px;
            font-weight: 700;
            color: #ffffff;
            margin-bottom: 4px;
        }

        .sidebar-subtitle {
            font-size: 12px;
            color: #94a3b8;
        }

        .control-group {
            background: rgba(30, 41, 59, 0.5);
            border: 1px solid rgba(59, 130, 246, 0.2);
            border-radius: 10px;
            padding: 20px;
        }

        .control-title {
            font-size: 13px;
            font-weight: 600;
            color: #94a3b8;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 16px;
        }

        .control-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 0;
            border-bottom: 1px solid rgba(59, 130, 246, 0.1);
        }

        .control-item:last-child {
            border-bottom: none;
        }

        .control-label {
            font-size: 14px;
            color: #e2e8f0;
            font-weight: 500;
        }

        /* Switch estilo PS4 */
        .switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 26px;
        }

        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(71, 85, 105, 0.5);
            border: 2px solid rgba(71, 85, 105, 0.8);
            transition: all 0.3s ease;
            border-radius: 26px;
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 2px;
            bottom: 2px;
            background: #94a3b8;
            transition: all 0.3s ease;
            border-radius: 50%;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        input:checked + .slider {
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            border-color: #3b82f6;
            box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
        }

        input:checked + .slider:before {
            transform: translateX(24px);
            background: #ffffff;
            box-shadow: 0 2px 8px rgba(59, 130, 246, 0.5);
        }

        input:focus + .slider {
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
        }

        .stats {
            background: rgba(30, 41, 59, 0.5);
            border: 1px solid rgba(59, 130, 246, 0.2);
            border-radius: 10px;
            padding: 16px;
            margin-top: auto;
        }

        .stat-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
        }

        .stat-label {
            font-size: 13px;
            color: #94a3b8;
        }

        .stat-value {
            font-size: 18px;
            font-weight: 700;
            color: #3b82f6;
        }

        /* Área principal con cuadrícula */
        .main-content {
            flex: 1;
            overflow-y: auto;
            padding: 40px;
        }

        .main-header {
            margin-bottom: 32px;
        }

        .main-title {
            font-size: 32px;
            font-weight: 700;
            color: #ffffff;
            margin-bottom: 8px;
        }

        .main-subtitle {
            font-size: 14px;
            color: #94a3b8;
        }

        .games-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 20px;
        }

        .game-card {
            background: rgba(15, 23, 42, 0.95);
            border: 2px solid rgba(59, 130, 246, 0.3);
            border-radius: 12px;
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            cursor: pointer;
        }

        .game-card:hover {
            border-color: rgba(59, 130, 246, 0.6);
            box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
            transform: translateY(-4px);
        }

        .game-icon {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 36px;
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
        }

        .game-name {
            font-size: 14px;
            font-weight: 600;
            color: #ffffff;
            text-align: center;
            line-height: 1.4;
            min-height: 40px;
        }

        .game-switch {
            margin-top: 8px;
        }

        /* Responsive */
        @media (max-width: 1800px) {
            .games-grid {
                grid-template-columns: repeat(6, 1fr);
            }
        }

        @media (max-width: 1500px) {
            .games-grid {
                grid-template-columns: repeat(5, 1fr);
            }
        }

        @media (max-width: 1200px) {
            .games-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        @media (max-width: 900px) {
            .games-grid {
                grid-template-columns: repeat(3, 1fr);
            }
            
            .sidebar {
                width: 240px;
            }
        }

        @media (max-width: 768px) {
            .container {
                flex-direction: column;
            }
            
            .sidebar {
                width: 100%;
                height: auto;
                border-right: none;
                border-bottom: 2px solid rgba(59, 130, 246, 0.3);
            }
            
            .games-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        /* Scrollbar personalizado */
        .main-content::-webkit-scrollbar {
            width: 12px;
        }

        .main-content::-webkit-scrollbar-track {
            background: rgba(15, 23, 42, 0.5);
        }

        .main-content::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            border-radius: 6px;
        }

        .main-content::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
        }

        div#grid {
    position: absolute;
    top: 14px;
    background: #0e2335;
    border-radius: 18px;
    width: 1200px;
    height: 900px;
    overflow-y: auto;
    scrollbar-width: none;
    margin-left: calc(50% - 600px);
}

img.imggrid {
    width: 142px;
    height: 142px;
}

.btnterminado {
    width: 300px;
    bottom: 9px;
    position: absolute;
    margin-left: calc(50% - 193px);
}