/* ============================================
   CSS Variables & Base Styles
   ============================================ */
:root {
    --font-family: "Montserrat", sans-serif;
    --color-gold: linear-gradient(
        90deg,
        #ffde29,
        #fff17a 18.5%,
        #ffde29 38%,
        #ffd852 58%,
        #fff17a 75.5%,
        #ffde29 88%,
        #fe7
    );
}

body {
    font-family: var(--font-family) !important;
}

.main-content {
    padding: 16px;
}

/* ============================================
   Match List & Schedule Styles
   ============================================ */
#match--list_wrapper .match--list_item a:hover,
#match--schedule_wrapper .match--schedule_item a:hover,
.match--schedule_item_template {
    color: inherit;
}

#page-match--schedule_wrapper .ltdTitlt {
    width: 66.67%;
    margin: 0 auto;
}

.bg-gold,
.bg-gold:hover {
    background-image: var(--color-gold);
}

.xl\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ============================================
   Button Styles
   ============================================ */
.btn-join-room {
    background-color: #0000003d;
    border: 2px solid #f9e82e;
    border-radius: 8px;
    color: #f9e82e;
    font-weight: 600;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    font-size: 1.1rem;
    padding: 10px 20px;
    text-transform: uppercase;
    white-space: nowrap;
}

.btn-join-room:hover {
    background: linear-gradient(90deg, #f9e82e, #f9cc2e);
    color: #000;
}

/* ============================================
   Video Container Styles
   ============================================ */
.dv2-video-container {
    position: relative;
    width: 100%;
    min-height: 400px;
}

.dv2-video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.dv2-video-container.aspect-video {
    aspect-ratio: 16 / 9;
}

.dv2-video-container.aspect-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============================================
   Loading Spinner Styles
   ============================================ */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.dv2-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10;
}

.dv2-loading .spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* ============================================
   Stream Layout Styles
   ============================================ */
.stream-full-width .main-content-stream-video {
    width: 100%;
}

.luongson-bet {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.luongson-bet a {
    background: #ffc71c;
    border-radius: 4px;
    color: #000;
    cursor: pointer;
    display: inline-block;
    font-size: 12px;
    height: 28px;
    line-height: 28px;
    margin-top: 0;
    text-decoration: none;
    width: 70px;
    text-align: center;
    font-weight: bold;
}

.match--schedule_bet {
    background: #ffc71c;
    border-radius: 4px;
    color: #000 !important;
    cursor: pointer;
    display: inline-block;
    font-size: 12px;
    margin-top: 0;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    padding: 5px 15px;
}

.luongson-bet a:hover, .match--schedule_bet:hover {
    background: #bf0426;
    color: white !important;
}


/* ============================================
   Match Info Overlay Styles
   ============================================ */
/* Match info overlay responsive styles */
@media (min-width: 768px) {
    #simulate-the-match-content-center {
        gap: 1rem !important;
        padding: 1rem !important;
    }

    .match-info__lname {
        font-size: 12px !important;
        padding: 4px 12px !important;
    }

    #simulate-the-match-content-center h4 {
        font-size: 18px !important;
    }

    .timeBox {
        font-size: 24px !important;
        gap: 12px !important;
    }

    .teams {
        font-size: 14px !important;
        gap: 1rem !important;
        margin-top: 0.5rem !important;
    }

    .homeTeam,
    .guestTeam {
        max-width: 150px !important;
    }

    .teams .vs {
        font-size: 13px !important;
    }
}

/* ============================================
   Responsive Styles - Mobile First
   ============================================ */

/* Mobile (<= 550px) */
@media (max-width: 550px) {
    .dv2-video-container {
        min-height: auto;
    }

    #simulate-the-match-content-center {
        top: 35%;
    }
}

/* Mobile (<= 640px) */
@media (max-width: 640px) {
    .main-content {
        padding: 5px;
    }
}

/* Mobile & Tablet (<= 768px) */
@media (max-width: 768px) {
    .btn-join-room {
        font-size: 12px;
    }
}

/* Tablet and Mobile (< 1024px) */
@media (max-width: 1024px) {
    .stream-detail-livechat {
        /* Hide chat on mobile and tablet */
        display: none;
    }

    /* Hide right logo section on mobile */
    .right-logo-section {
        display: none;
    }

    .main-content {
        padding: 10px;
    }
}

/* Desktop (>= 1024px) */
@media (min-width: 1024px) {
    .right-logo-section {
        display: flex;
    }
}

/* Filter match list text visibility - always show on both mobile and desktop */
.filter-match-text {
    display: block;
}