﻿.c-standing {
    margin: 20px 0;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.c-h-standing {
    display: flex;
    align-items: center;
    background-color: #CF2228;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.c-h-standing a{
    padding: 12px 20px;
    display: flex;
    font-size: 14px;
    font-weight: 600;
    align-items: center;
    color: #fff;
}

.c-h-standing img {
    width: 14px;
    height: 14px;
    object-fit: cover;
    margin-right: 10px;
}

.c-b-standing{
    padding: 20px;
}


/* CSS bổ sung cho bảng xếp hạng */
.c-b-standing .ranking-table {
    background-color: white;
}

.c-b-standing .ranking-table img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.c-b-standing .ranking-table a {
    display: flex;
    align-items: center;
}

.c-b-standing .ranking-table th,
.c-b-standing .ranking-table td {
    padding: 12px 10px;
    text-align: center;
}

.c-b-standing .ranking-table th:first-child {
    text-align: left;
}

    .c-b-standing .ranking-table td:first-child .vitri {
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        color: #fff;
        background-color: #CF2228;
        width: 30px;
        height: 30px;
    }
.c-b-standing .ranking-table tr:hover td {
    background-color: #f0f0f0;
}

.c-b-standing .ranking-table tbody tr:last-child td {
    border-bottom: none;
}

.c-b-standing .ranking-table th:last-child,
.c-b-standing .ranking-table td:last-child {
    border-right: none;
}

.c-b-standing .form-badge {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    font-size: 12px;
    margin: 0 2px;
}

.c-b-standing .form-badge.win {
    background-color: #4caf50;
}

.c-b-standing .form-badge.draw {
    background-color: #9e9e9e;
}

.c-b-standing .form-badge.loss {
    background-color: #f44336;
}


/* Responsive cho màn hình < 1024px */
@media (max-width: 1023px) {
    .c-b-standing {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

        .c-b-standing .ranking-table {
            min-width: 1000px;
        }

            .c-b-standing .ranking-table td:first-child,
            .c-b-standing .ranking-table th:first-child {
                position: sticky;
                left: 0;
                z-index: 10;
                background-color: white;
                box-shadow: 2px 0 5px rgba(0,0,0,0.1);
            }

            .c-b-standing .ranking-table th:first-child {
                background-color: #fddede;
            }

            .c-b-standing .ranking-table tr:hover td:first-child {
                background-color: #f0f0f0;
            }
}