/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/
.xoilac-container {
            display: flex;
            max-width: 1200px;
            margin: 20px auto;
        }
        .xoilac-sidebar {
            width: 30%;
            background: #222;
            padding: 20px;
            border-radius: 8px;
        }
        .xoilac-title {
            color: #00ff00;
        }
        .xoilac-menu {
            list-style: none;
            padding: 0;
        }
        .xoilac-menu li {
            margin: 10px 0;
        }
        .xoilac-menu a {
            color: #fff;
            text-decoration: none;
        }
        .xoilac-menu a:hover {
            color: #00ff00;
        }
        .xoilac-content {
            width: 70%;
            padding: 20px;
        }
        .xoilac-content img {
            width: 100%;
            border-radius: 8px;
        }
/*************** ADD CUSTOM CSS HERE ***************/
/* Định dạng menu */
.menu-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #171718;
    padding: 10px;
    border-radius: 8px;
    flex-wrap: wrap;
	margin-bottom: 12px;
}

.btn-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.3s, border-color 0.3s;
	color: #9C9C9C;
}

.btn-custom .badge {
    width: 31px;
    height: 18px;
    border-radius: 38px;
    background-color: #1C222F;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #999999;
    font-size: 11px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 13px; /* Space between text and badge */
}

/* Red button similar to Bootstrap's btn-danger */
.btn-danger {
    background-color: #191920;
    color: white;
    border: 1px solid #90020c;
}

.btn-danger:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
}

/* Outline secondary button similar to Bootstrap's btn-outline-secondary */
.btn-outline-secondary {
    background-color: transparent;
    color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}





/* navbar thong tin tran dau */
.score-card {
    background-color: #171718;
    color: white;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Mặc định là trắng opacity 10% */
    width: 100%;
    font-family: 'Roboto', sans-serif;
    position: relative;
    overflow: hidden;
}
/* Khi type = 2, border sẽ có màu đỏ */
.score-card.type-2 {
    border-color: red;
}

.score-card::before {
    content: "";
    background: url('https://img.upanh.tv/2025/03/25/bg-match.png') center/cover no-repeat;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    opacity: 1;
}

.content {
    position: relative;
    z-index: 2;
}

.team-container {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 120px;
    max-width: 100%;
    overflow: hidden;
}

.team-flag {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.text-team {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

.match-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
    font-size: 12px;
}

.match-status {
    background: #171718;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    box-shadow: -1px 0 0 rgba(255, 255, 255, 0.1),
                1px 0 0 rgba(255, 255, 255, 0.1),
                0 1px 0 rgba(255, 255, 255, 0.1);
}

.grid-match__vs {
    background: linear-gradient(125deg, #1553ef, #0c3089 27.66%, #0c1a4c 68.97%);
    color: #FFF;
    text-align: center;
    font-size: 18px;
    font-weight: 400;
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 10px;
    font-family: 'Oswald', sans-serif;
}

.commentator {
    background: linear-gradient(0deg, #191918, #1a1a1a);
    padding: 10px 15px;
    margin-top: 15px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 42px;
    line-height: 42px;
    box-shadow: -1px -1px 0px rgba(255, 255, 255, 0.1),
                1px -1px 0px rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    position: relative;
    z-index: 10;
    font-size: 12px;
}

.caster-name {
    color: #00ff00;
    font-weight: bold;
}

.viewer-count {
    display: flex;
    align-items: center;
    gap: 4px;
}

.viewer-count img {
    width: 16px;
    height: 16px;
}

/* Điều chỉnh chiều rộng container */
@media (min-width: 1024px) {
    .header-wrapper .container {
        max-width: 1330px !important; /* Giữ max-width là 1330px */
        width: 100%;
    }
}

/* Hiển thị 2 cột, đảm bảo max width container = 1330px */
.match-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    
    max-width: 1330px;
    margin: 0 auto;
}

/* Mỗi hàng 2 cột, tính toán kích thước card hợp lý */
.match-container .col {
    width: 660px; /* Đảm bảo mỗi card rộng đúng 660px */
    max-width: 660px;
}
@media (max-width: 430px) { 
    .menu-container {
        display: flex;
        flex-wrap: nowrap; /* Ngăn các phần tử xuống dòng */
        overflow-x: auto; /* Cho phép cuộn ngang */
        white-space: nowrap;
        width: 400px; /* Kích thước phù hợp với iPhone 14 Pro Max */
        
        padding: 8px 5px; /* Thêm padding để tránh bị mất phần trên */
        justify-content: flex-start;
        align-items: center; /* Căn giữa theo chiều dọc */
        margin: auto; /* Căn giữa theo chiều ngang */
        border-radius: 8px;
        background-color: #171718;
        -ms-overflow-style: auto; /* Hiển thị thanh cuộn trên IE/Edge */
    }

    /* Hiển thị thanh cuộn trên Chrome, Safari */
    .menu-container::-webkit-scrollbar {
        height: 4px;
    }

    .menu-container::-webkit-scrollbar-track {
        background: #1c1c1e;
        border-radius: 4px;
    }

    .menu-container::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }

    .btn-custom {
        flex: 0 0 auto; /* Không cho phép co dãn */
        font-size: 12px;
        padding: 8px 12px; /* Thêm padding để căn giữa */
        margin-right: 8px;
    }

    .btn-custom .badge {
        width: 28px;
        height: 16px;
        font-size: 10px;
        margin-left: 8px;
    }
}




/* Tablet: vẫn giữ 2 cột */
@media (max-width: 1024px) {
    .match-container .col {
        flex: 0 1 calc(50% - 10px);
        max-width: 50%;
    }
}

/* Mobile: hiển thị 1 cột */
@media (max-width: 768px) {
    .match-container .col {
        flex: 0 1 100%;
        max-width: 100%;
    }
}

/* Mobile tối ưu */
@media only screen and (max-width: 48em) {
    /*************** ADD MOBILE ONLY CSS HERE ***************/
}