[data-component="deepstats"] .col-6 { flex: 0 0 100%; max-width: 100%; }
        [data-component="deepstats"] .col-4 { flex: 0 0 50%; max-width: 50%; }
        [data-component="deepstats"] .stats-col-12, [data-component="deepstats"] .stats-col-6, [data-component="deepstats"] .stats-col-4,[data-component="deepstats"] .stats-col-3 {
            padding: 10px;
        }
        
        [data-component="deepstats"] .active {
            background: #0099ff00;
        }
        
        .stats-user {
            background: linear-gradient(135deg, #1a1a2e, #16213e);
            border-radius: 15px;
            padding: 20px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            height: 100%;
            position: relative;
            overflow: hidden;
        }

        .stats-user:hover {
            transform: translateY(-2px);
            box-shadow: 
                0 10px 30px rgba(0, 0, 0, 0.2),
                0 0 20px rgba(0, 255, 110, 0.1);
        }

        .stats-user::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #00ff6e, #0099ff, #ff6b6b);
            border-radius: 15px 15px 0 0;
        }

        [data-component="deepstats"] .playing-card-container {
            transform: scale(0.36);
            top: -188px;
            position: absolute;
            left: -107px;
        }

        .stats-user h1 {
            font-size: 1.5rem;
            margin-bottom: 15px;
            text-align: center;
            background: linear-gradient(45deg, #00ff6e, #0099ff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* Card Styles */
        .stats-playing-card-container {
            width: 140px;
            height: 230px;
            margin: 10px;
            position: relative;
            display: inline-block;
            transition: all 0.3s ease;
        }

        .stats-splaying-card-container:hover {
            transform: scale(1.05) !important;
            z-index: 10 !important;
        }

        .stats-playing-card {
            width: 100%;
            height: 100%;
            border-radius: 10px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border: 2px solid #00ff6e;
            position: relative;
            overflow: hidden;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        }

        /* Card positioning for teams */
        .top-team {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            position: relative;
        }

        .top-card {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 200px;
        }

        /* Stats table */
        .table {
            display: table;
            width: 100%;
            margin-top: 20px;
        }

        .table-row {
            display: table-row;
        }

        .table-cell {
            display: table-cell;
            padding: 10px;
            text-align: center;
            font-weight: bold;
            width: 50%;
        }

        .win {
            color: #00ff6e;
        }

        .loss {
            color: #ff7878;
        }

        /* Profile images */
        .profile-img {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            margin: 0 auto 10px;
            display: block;
        }

        /* Tab system */
        .tab-container {
            display: flex;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            margin: 20px 0;
            overflow: hidden;
        }

        .tab-button {
            flex: 1;
            padding: 15px;
            background: transparent;
            border: none;
            color: #ffffff;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1rem;
        }

        .tab-button:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .tab-button.active {
            background: linear-gradient(45deg, #00ff6e, #0099ff);
        }

        .tab-content {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            padding: 20px;
            margin-top: 20px;
        }

        .stats-content {
            display: none;
        }

        .stats-content.active {
            display: block;
        }

        /* FIXED History table - ensuring full width */
        .history-table {
            width: 100% !important;
            border-collapse: collapse;
            margin-top: 20px;
            table-layout: fixed;
            box-sizing: border-box;
        }

        .history-table th,
        .history-table td {
            padding: 12px;
            text-align: left;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            box-sizing: border-box;
            word-wrap: break-word;
        }

        .history-table th {
            background: rgba(255, 255, 255, 0.1);
            font-weight: bold;
        }

        .history-table tr:hover {
            background: rgba(255, 255, 255, 0.05);
        }

        .player-info {
            display: flex;
            justify-content: center;
            gap: 10px;
            width: 100%;
            align-items: center;
        }

        .player-info img {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .player-info p {
            margin: 0;
            flex: 1;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        /* Ensure table container takes full width */
        .table-container {
            width: 100%;
            overflow-x: auto;
        }

        .text-white {
            color: #ffffff;
        }

        @media (max-width: 768px) {
            [data-component="deepstats"] .col-4 { flex: 0 0 100%; max-width: 100%; }
            [data-component="deepstats"] .col-3 { flex: 0 0 50%; max-width: 50%; }

            .top-team, .top-card {
                height: auto;
                min-height: 120px;
            }

            .history-table {
                font-size: 0.9rem;
            }

            .history-table th,
            .history-table td {
                padding: 8px;
            }

            .stats-playing-card-container {
                width: 110px;
                height: 190px;
                margin: 3px;
            }

            [data-component="deepstats"] .playing-card-container {
                transform: scale(0.3);
                top: -207px;
                position: absolute;
                left: -121px;
            }

            .table {
                margin-top: 50px;
            }
        }

        @media (max-width: 576px) {
            [data-component="deepstats"] .col-3 { flex: 0 0 100%; max-width: 100%; }
            
            .container {
                padding: 10px;
            }

            .stats-user {
                padding: 15px;
            }

            .stats-user h1 {
                font-size: 1rem;
            }
            
            .tab-button {
                padding: 10px;
                font-size: 0.9rem;
            }

            .history-table {
                font-size: 0.8rem;
            }

            .player-info {
                flex-direction: column;
                text-align: center;
                gap: 5px;
            }

            .stats-playing-card-container {
                width: 60px;
                height: 100px;
                margin: 3px;
            }

            [data-component="deepstats"] .playing-card-container{
                transform: scale(0.15);
                top: -252px;
                position: absolute;
                left: -147px;
            }
        }

        @media (max-width: 480px) {
            /* Keep thead but move it to the left side of each row */
            .history-table thead {
                display: none; /* Hide the original header */
            }
            
            .history-table tbody tr {
                display: block;
                border: 1px solid rgba(255, 255, 255, 0.1);
                margin-bottom: 10px;
                border-radius: 8px;
                background: rgba(255, 255, 255, 0.02);
            }
            
            .history-table tbody td {
                display: block;
                text-align: left; /* Changed from right to left */
                border: none;
                padding: 8px 15px;
                position: relative;
                padding-left: 45%; /* Space for the label */
            }
            
            .history-table tbody td:before {
                content: attr(data-label);
                position: absolute;
                left: 15px;
                width: 40%;
                text-align: left;
                font-weight: bold;
                color: #00ff6e;
                top: 8px; /* Align with the content */
            }
            
            .player-info {
                justify-content: flex-start; /* Changed from flex-end to flex-start */
            }
        }

        .history-table tbody tr.selected {
            background: rgba(0, 255, 110, 0.1);
            border-color: #00ff6e;
        }

        /* Animation effects */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .stats-user {
            animation: fadeInUp 0.6s ease-out;
        }

        .stats-user:nth-child(2) { animation-delay: 0.1s; }
        .stats-user:nth-child(3) { animation-delay: 0.2s; }
        .stats-user:nth-child(4) { animation-delay: 0.3s; }