
/* 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 */
    }

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

    @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;
            
        }
        
        /* Chat section minimum height on small screens */
        .chat-section-mobile {
            min-height: 30vh;
        }
    }

    @media (max-width: 767px) {
        /* Chat section minimum height on small screens */
        .chat-section-mobile {
            min-height: 80vh;
        }
        .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;
        }
    }