.movie-section .container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0 50px;
}

.inner-banner-section {
    display: none;
}

.live-container {
    margin: 100px 100px 0;
    overflow-x: hidden;
}

.slider-section {
    color: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slider-tabs {
    display: flex;
    gap: 20px;
}

.featured-slider {
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.favorite-slider {
    margin: 0 50px;
    overflow: hidden;
}

.tab {
    background: none;
    border: none;
    color: #fff;
    opacity: 1;
    font-size: 28px;
    line-height: 36px;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 10px 0;
    transition: all 0.3s ease;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(255, 86, 134, 0.5);
    position: relative;
}

.slider-tabs .tab:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF5686, #D60056);
    transition: width 0.3s ease;
}

.slider-tabs .tab:hover:after,
.slider-tabs .tab.active:after {
    width: 100%;
}

.slider-tabs .tab:hover {
    color: #FF5686;
    transform: translateY(-2px);
}

.match-live-info .live-match-name {
    margin-bottom: 0;
    color: #FFFFFF;
    font-size: 18px;
    line-height: 24px;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(255, 86, 134, 0.4);
    transition: all 0.3s ease;
}

.match-card:hover .match-live-info .live-match-name {
    transform: translateY(-1px);
    color: #ccc;
    font-size: 20px;
    line-height: 28px;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 5px 0;
    transition: color 0.3s;
    font-weight: 700;
}

.tab.active {
    color: #fff;
    border-bottom: 2px solid #ff0000;
    opacity: 1;
}

.all-matches {
    color: #FF5686;
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.match-card {
    background: #2a2a2a;
    border-radius: 16px;
    padding: 30px 20px 30px 20px;
    text-align: center;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
}

.match-card:hover:not(:has(.favorite-btn:hover)) .watch-btn {
    border: 1px solid #D60056;
    box-shadow: 0 0 12px 0 #BB3657 inset;
    color: #FF5686;
}

.match-card:hover:not(:has(.favorite-btn:hover)) .watch-btn .play-icon {
    content: url('/assets/images/svg/play-active.svg');
}

.match-card.vip .vip-tag {
    background: #ECB316;
    width: 64px;
    height: 24px;
    border-top-left-radius: 16px;
    border-bottom-right-radius: 16px;
    color: #000;
    position: absolute;
    top: 0;
    left: 0;
}

.match-card.vip .vip-tag img {
    width: 12px;
    height: 12px;
}

.match-card.vip .vip-tag span {
    font-size: 10px;
    line-height: 12px;
    font-weight: 700;
}

.match-card.free .free-tag {
    background: #32cd32;
    padding: 2px 8px;
    border-top-left-radius: 16px;
    border-bottom-right-radius: 16px;
    font-size: 12px;
    color: #fff;
    position: absolute;
    top: 0;
    left: 0;
}

.match-card.live .live-tag {
    background: #32cd32;
    padding: 2px 16px;
    border-top-left-radius: 8px;
    border-bottom-right-radius: 16px;
    font-size: 12px;
    color: #0E0D12;
    position: absolute;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    top: 0;
    left: 0;
}

.match-card.live {
    background-image: url('/assets/images/frontend/features/live-demo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    height: 162px;
    position: relative;
}

.match-live-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8px 16px;
    background: #000000;
    opacity: 0.7;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 2px;
    cursor: pointer;
}

.match-live-info .live-tournament {
    color: #E1E5F6;
    opacity: 0.7;
    font-size: 14px;
    line-height: 16px;
    margin-bottom: 0;
}

.match-live-info .live-match-name {
    margin-bottom: 0;
    color: #FFFFFF;
    font-size: 18px;
    line-height: 24px;
    font-weight: 800;
}

.live-slider {
    position: relative;
    padding-bottom: 30px;  /* Add space for pagination dots */
}

.live-slider .swiper-pagination {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
}

.live-slider .swiper-pagination-bullet {
    width: 16px;
    height: 2px;
    background: #E1E5F6;
    opacity: 1;
    margin: 0 2px !important;
}

.live-slider .swiper-pagination-bullet-active {
    background: #D60056;
    width: 16px;
    height: 2px;
}

.match-info {
    font-size: 14px;
    color: #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.match-result {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.match-result .result-team {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.league {
    font-size: 16px;
    display: flex;
    justify-content: space-between;
}

.league .tournament-name {
    color: #878686;
    z-index: 10;
}

.live {
    color: #49CF4D;
    font-weight: 600;
}

.match-action {
    display: flex;
    justify-content: center;
    gap: 12px;
    color: #E1E5F6;
}

.swiper-container {
    overflow: hidden;
}

.swiper-button-prev,
.swiper-button-next {
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translateY(50%);
}

.swiper-button-prev {
    background-image: url('/assets/images/svg/arrow-to-left.svg');
    left: -10px;
}

.swiper-button-next {
    background-image: url('/assets/images/svg/arrow-to-right.svg');
    right: -10px;
}

.swiper-button-prev:after, .swiper-button-next:after {
    font-size: 20px !important;
}

.match-logo {
    text-align: center;
    display: flex;
    gap: 12px;
    margin: auto 0;
}

.match-time {
    text-align: right;
    display: flex;
    gap: 2px;
    flex-direction: column;
}

.match-time .time {
    font-weight: 700;
    font-size: 24px;
    color: white;
    letter-spacing: 1px;
}

.content {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
}

.list-games {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.list-games-header {
    display: flex;
    gap: 12px;
}

.tab-header {
    width: fit-content;
    height: 44px;
    line-height: 44px;
    border-radius: 44px;
    border: 1px solid #292F40;
    text-align: center;
    align-items: center;
    padding: 0 24px;
    font-weight: 700;
    color: #bfc2d3;
    letter-spacing: 1px;
    cursor: pointer;
}

.tab-header.active {
    border: 1px solid #D60056;
    box-shadow: 0 0 12px 0 #BB3657 inset;
    color: #FF5686;
}

.list-games-content {
    display: flex;
    gap: 32px;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 350px;
}

.sidebar-content > img {
    border-radius: 14px;
}

.standings {
    width: 100%;
    max-width: 500px;
    background: #1c1c1c;
    padding: 15px;
    border-radius: 10px;
    color: #E1E5F6;
    font-weight: 600;
}
.standings h3 {
    font-size: 20px;
    margin-bottom: 10px;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    text-align: left;
    padding: 3px;
}
th:first-child, td:first-child {
    padding-left: 0;
}
th:last-child, td:first-child {
    padding-left: 0;
}
td:first-child {
    text-align: center;
}
th {
    color: #888;
}
td img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 8px;
}
.view-all-standing {
    display: block;
    text-align: right;
    color: #ff4a6e;
    text-decoration: none;
    margin-top: 10px;
}
.t-ellipsis-1 {
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    word-break: break-word;
    white-space: normal;
}

.t-ellipsis-2 {
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    word-break: break-word;
    white-space: normal;
}

.standings-header {
    display: flex;
    justify-content: space-between;
}

.select_tournament {
    display: flex;
    align-items: center;
    height: 28px;
    line-height: 28px;
    gap: 4px;
    position: relative;
    padding: 0 12px;
    border-radius: 8px;
    color: #e0e0e0;
    font-family: Arial, sans-serif;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.select_tournament:hover {
    background: #3c3c3c; /* Slightly lighter on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Enhanced shadow on hover */
}

.select_tournament ul {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #2c2c2c;
    border-radius: 8px;
    z-index: 1000;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.2s ease;
}

.select_tournament ul.d-block {
    display: block;
}

.select_tournament li {
    list-style: none;
    cursor: pointer;
    padding: 8px 12px; /* Added padding for better click area */
    color: #e0e0e0; /* Consistent text color */
    transition: background 0.2s ease; /* Smooth background transition */
}

.select_tournament li:hover {
    background: #444; /* Hover effect for list items */
    border-radius: 4px; /* Rounded corners on hover */
    color: #ffffff; /* Brighter text on hover */
}

.select_tournament img {
    width: 16px;
    height: 16px; /* Ensure consistent size */
    transition: transform 0.3s ease; /* Rotate arrow on click */
}

.select_tournament.active img {
    transform: rotate(180deg); /* Rotate arrow when dropdown is open */
}

/* Optional: Add a custom style for the selected tournament text */
.selected-tournament {
    flex-grow: 1; /* Allow text to grow and fill space */
    overflow: hidden;
    text-overflow: ellipsis; /* Handle long text with ellipsis */
    white-space: nowrap; /* Prevent text wrapping */
}

/* Modal */
#loginModal .modal-content {
    padding: 8px;
}

#loginModal .modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
}

#loginModal .text-login {
    color: #E1E5F6;
}

#loginModal .list-btn-modal {
    display: flex;
    gap: 24px;
    color: #E1E5F6;
}

#loginModal .list-btn-modal button {
    width: 125px;
    height: 40px;
    line-height: 16px;
    background-color: #292F40;
}

#loginModal .list-btn-modal a {
    width: 125px;
    height: 40px;
    line-height: 16px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
}

/* Animation for dropdown appearance */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (min-width: 0) and (max-width: 959px) {
    .inner-banner-section {
        display: none;
    }
    .movie-section .container {
        padding: 0;
        gap: 32px;
    }

    .slider-section {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 0 16px;
    }

    .slider-header {
        align-items: flex-start;
        margin-bottom: 0;
    }

    .slider-header .all-matches {
        font-size: 12px;
        line-height: 34px;
    }

    .sidebar-content {
        display: none;
    }

    .featured-slider {
        overflow: unset;
        margin: 0;
    }

    .favorite-slider {
        overflow: unset;
        margin: 0;
    }

    .slider-tabs {
        gap: 0;
    }

    .tab {
        font-size: 16px;
        padding: 2px 10px;
    }

    .list-games {
        gap: 16px;
    }

    .match-card {
        padding: 8px;
    }

    .match-card .league {
        font-size: 12px;
        justify-content: end;
    }

    .match-info {
        flex-direction: column;
        gap: 8px;
        align-items: unset;
    }

    .match-result {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    .match-name {
        display: flex;
        gap: 4px;
    }

    .match-name .team-name {
        text-align: left;
        color: #D0D0D0;
    }

    .match-time-container {
        display: flex;
        flex-direction: column;
        text-align: start;
    }

    .match-time-container .match-time {
        flex-direction: row;
        gap: 8px;
    }

    .match-time-container .match-time .date {
        font-weight: 400;
        font-size: 14px;
        color: #E1E5F6;
    }

    .match-time-container .match-time .time {
        font-weight: 400;
        font-size: 14px;
        color: #E1E5F6;
    }

    .content {
        display: block;
    }

    .list-games-header {
        width: 100%; /* Hoặc chiều rộng cố định tùy giao diện */
        padding-left: 16px;
        height: 42px;
    }

    .tab-container {
        display: flex; /* Sắp xếp các tab theo hàng ngang */
        gap: 8px;
        overflow-x: auto; /* Kích hoạt cuộn ngang */
        white-space: nowrap; /* Ngăn các tab xuống dòng */
        -webkit-overflow-scrolling: touch; /* Cải thiện cuộn trên thiết bị di động */
    }

    .tab-header {
        display: inline-block; /* Đảm bảo các tab nằm trên cùng dòng */
        background: #333; /* Màu nền tab */
        color: #fff; /* Màu chữ */
        border-radius: 20px; /* Bo góc giống ảnh */
        cursor: pointer; /* Con trỏ tay khi hover */
        transition: background 0.3s; /* Hiệu ứng chuyển đổi */
        line-height: 32px;
        height: 40px;
        padding: 4px 16px;
    }

    /* Ẩn thanh cuộn trên một số trình duyệt nếu muốn */
    .tab-container::-webkit-scrollbar {
        display: none; /* Ẩn thanh cuộn trên Chrome, Safari, Edge */
    }

    .tab-container {
        -ms-overflow-style: none; /* Ẩn thanh cuộn trên IE và Edge */
        scrollbar-width: none; /* Ẩn thanh cuộn trên Firefox */
    }

    .content {
        padding: 0 16px;
    }

    .movie-section {
        overflow-x: hidden;
    }

    /*.modal*/
    #loginModal {
        height: 100vh;
        background: black;
    }

    .live-slider {
        padding-bottom: 20px;
    }
}

@media (min-width: 960px) and (max-width: 1400px) {
    .movie-section .container {
        padding: 0;
    }

    .sidebar-content {
        width: 250px;
    }

    .standings {
        padding: 8px;
        overflow-x: hidden;
    }

    .standings .standings-header {
        font-size: 16px;
    }

    .standings .standings-header .select_tournament {
        font-size: 14px;
    }

    .standings table th {
        font-size: 12px;
        padding: 3px;
    }

    .standings table th:first-child {
        padding-left: 0;
    }

    .standings table th:last-child {
        padding-right: 0;
    }

    .standings table td:first-child {
        padding-left: 0;
    }

    .standings table td:last-child {
        padding-right: 0;
    }

    .standings table td {
        font-size: 12px;
        padding: 3px 6px;
    }
}
