
/* ArtPlayer Custom Styles */
    .artplayer {
        width: 100% !important;
        height: auto !important;
        min-height: 400px;
        aspect-ratio: 16/9;
    }

    .artplayer-video {
        width: 100% !important;
        height: auto !important;
        min-height: 400px;
        object-fit: contain;
    }

    #art-player-container {
        min-height: 400px;
        width: 100%;
    }

    #art-player-container .art-video-player {
        min-height: 400px;
        width: 100%;
    }

    #art-player-container video {
        min-height: 400px;
        width: 100%;
    }

    /* Responsive Layout Styles */
    .video-chat-box {
        display: flex;
        flex-direction: row;
        gap: 24px;
    }
    .col-video {
        width: 70%;
    }
    .col-chat {
        width: 30%;
        overflow: hidden; /* Ensure only inner content scrolls */
    }

    /* Desktop: chat section keeps 16/9 aspect ratio */
    .chat-section-aspect {
        aspect-ratio: 16/9;
    }

    /* Inner chat flex: tab panels take remaining space */
    .chat-section-flex {
        min-height: 0;
    }
    .chat-tab-panel {
        flex: 1 1 0%;
        min-height: 0;
    }

    @media (max-width: 1023px) {
        .video-chat-box {
            flex-direction: column;
        }
        .col-video {
            width: 100%;
        }
        .col-chat {
            width: 100%;
        }

        /* Trên mobile: container mx-auto (main) có khoảng cách 2 bên */
        main#main.site-main.container.mx-auto:has(#luongsonlive-chat-section) {
            padding-left: 16px !important;
            padding-right: 16px !important;
            max-width: none !important;
            width: 100% !important;
        }

        /* Chat = 100% trong main (cùng khoảng cách 2 bên) */
        #luongsonlive-chat-section.col-chat.chat-section-mobile,
        #luongsonlive-chat-section {
            width: 100% !important;
            max-width: none !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
            padding-left: 0 !important;
            padding-right: 0 !important;
            box-sizing: border-box !important;
        }

        /* Mobile/tablet: chiều cao CỐ ĐỊNH để 100% bên trong resolve đúng, flex fill */
        .chat-section-mobile.chat-section-aspect {
            aspect-ratio: auto;
            height: 50vh !important;
            min-height: 280px;
            display: flex !important;
            flex-direction: column !important;
        }
        .chat-section-inner {
            height: 100% !important;
            min-height: 0 !important;
            flex: 1 1 0% !important;
            display: flex !important;
            flex-direction: column !important;
        }
        .chat-section-flex {
            flex: 1 1 0% !important;
            min-height: 0 !important;
            height: auto !important;
        }
        .chat-tab-panel.luongsonlive-live-chat-panel,
        .chat-tab-panel.luongsonlive-ranking-panel {
            flex: 1 1 0% !important;
            min-height: 0 !important;
            height: auto !important;
        }
        .luongsonlive-chat-iframe-wrap,
        .luongsonlive-chat-iframe-wrap > div {
            height: 100% !important;
            min-height: 0 !important;
        }
        #luongsonlive-chat-section iframe {
            height: 100% !important;
            min-height: 100% !important;
        }
    }

    @media (max-width: 1023px) {
        .container {
            padding-left: 16px;
            padding-right: 16px;
        }
        
        /* Ensure proper spacing on mobile */
        .flex-col.gap-2 > * {
            margin-bottom: 16px;
        }
        
        /* Chat section height adjustment for mobile */
        #match-details-content {
            margin-top: 16px;
            
        }
    }

    @media (max-width: 767px) {
        /* Mobile: chat section cao hơn + khoảng cách 2 bên nhỏ hơn */
        .chat-section-mobile.chat-section-aspect {
            height: 80vh !important;
            min-height: 320px;
        }
        main#main.site-main.container.mx-auto:has(#luongsonlive-chat-section) {
            padding-left: 12px !important;
            padding-right: 12px !important;
        }
        .container {
            padding-left: 12px;
            padding-right: 12px;
        }
        
        /* Smaller gaps on very small screens */
        .flex-col.gap-2 > * {
            margin-bottom: 12px;
        }
    }

    /* Match Content Styles */
    .match-content {
        padding: 30px;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 10px;
        margin-bottom: 30px;
        line-height: 1.8;
    }

    .match-content h2,
    .match-content h3 {
        margin-top: 0;
    }

    .match-content p {
        margin-bottom: 15px;
    }

    /* Commentators Styles */
    .match-commentators {
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 10px;
        padding: 20px;
    }

    .section-title {
        margin: 0 0 15px;
        font-size: 18px;
        font-weight: bold;
    }

    .commentators-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .commentator-item {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 15px;
        border-bottom: 1px solid #eee;
    }

    .commentator-item.main-commentator {
        background: #fff9e6;
        font-weight: bold;
    }

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

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

    .commentator-name {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .badge {
        background: #ff9800;
        color: white;
        padding: 2px 8px;
        border-radius: 3px;
        font-size: 0.8em;
    }

    .status-online {
        color: #00b300;
        margin-left: auto;
        font-size: 12px;
    }

    /* Loading animation */
    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }

    .animate-spin {
        animation: spin 1s linear infinite;
    }

    /* Loading and error states */
    #ranking-loading {
        background: rgba(11, 10, 110, 0.8);
    }

    #ranking-list .text-center {
        
    }

    .scrollbar-custom {
        scrollbar-width: thin;
        scrollbar-color: #FFDE29 #f1f1f1;
    }

    .scrollbar-custom::-webkit-scrollbar {
        width: 6px;
    }

    .scrollbar-custom::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .scrollbar-custom::-webkit-scrollbar-thumb {
        background: #FFDE29;
        border-radius: 3px;
    }

    .scrollbar-custom::-webkit-scrollbar-thumb:hover {
        background: #FFF17A;
    }

    /* Align ranking UI with match-template.php */
    .font-fz-kn-game {
        font-family: 'Arial', sans-serif;
    }

    #ranking-list {
        background: #f4f4f5;
        height: 100%; /* Fill parent so inner wrapper can scroll */
    }

    #ranking-list.dark {
        background: #0b0a6e;
    }

    #ranking-list li:hover {
        background-color: #e5e7eb;
    }

    #ranking-list.dark li:hover {
        background-color: #1e3a8a;
    }

    /* Match Details Content Styles */
    #match-details-content {
        margin-top: 24px;
        margin-bottom: 24px;
    }

    #match-details-content .container {
        
    }

    .hidden-match-not-found {
        display: block;
    }

    @media (max-width: 1023px) {
        #match-details-content {
            margin-top: 16px;
        }
        
        #match-details-content .container {
            padding-left: 12px;
            padding-right: 12px;
        }
    }

    @media (max-width: 767px) {
        #match-details-content .container {
            padding-left: 8px;
            padding-right: 8px;
        }
    }

    /* Other Commentators Section Styles */
    .swiper-commentators-in-room {
        width: 100%;
        display: flex;
        align-items: stretch;
    }

    .swiper-commentators-in-room .swiper-wrapper {
        display: flex;
        align-items: stretch;
    }

    .swiper-commentators-in-room .swiper-slide {
        height: auto;
        display: flex;
    }

    .swiper-commentators-in-room .swiper-slide > div {
        width: 100%;
        display: flex;
    }
    
    .swiper-commentators-in-room-live-prev,
    .swiper-commentators-in-room-live-next {
        display: flex;
        align-items: center;
        justify-content: center;
        align-self: stretch;
    }

    /* Ensure commentator name text is always white */
    .swiper-commentators-in-room .swiper-slide span.text-white,
    .swiper-commentators-in-room .swiper-slide span[class*="text-xs font-semibold"] {
        color: #ffffff !important;
    }

    /* Ensure follow count text is always white */
    .swiper-commentators-in-room .swiper-slide div[class*="text-xs font-medium"] span,
    .swiper-commentators-in-room .swiper-slide div.text-white span {
        color: #ffffff !important;
    }


    /* sm:hidden md:inline */
    @media (max-width: 767px) {
        .sm\:hidden {
            display: none;
        }
    }
    @media (min-width: 768px) {
        .md\:hidden {
            display: none;
        }
    }