/* SINGLE MATCH PAGE STYLES - TARGETED RESET */
body.single-match-page .single-match-container {
    box-sizing: border-box !important;
}

body.single-match-page {
    background: #1a1a1a !important;
    /* Đen như trang chủ */
    color: #ffffff !important;
    /* Text trắng như trang chủ */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    min-height: 100vh !important;
    position: relative !important;
    overflow-x: hidden !important;
}

body.single-match-page::before {
    content: '' !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background:
        radial-gradient(circle at 20% 80%, rgba(34, 197, 94, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%) !important;
    z-index: -1 !important;
    pointer-events: none !important;
}

body.single-match-page .single-match-container {
    background: transparent !important;
    min-height: 100vh !important;
    padding: 30px 0 !important;
}

body.single-match-page .single-match-container .container {
    max-width: 1140px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* CONTENT WRAPPER - XÓA VÌ KHÔNG CẦN */

/* LOADING INDICATOR */
body.single-match-page .loading-time {
    position: fixed !important;
    top: 10px !important;
    right: 10px !important;
    background: #22c55e !important;
    color: white !important;
    padding: 5px 10px !important;
    border-radius: 5px !important;
    font-size: 12px !important;
    z-index: 1000 !important;
    animation: fadeOut 3s ease-out forwards !important;
}

@keyframes fadeOut {
    0% {
        opacity: 1 !important;
    }

    70% {
        opacity: 1 !important;
    }

    100% {
        opacity: 0 !important;
    }
}

/* HEADER SECTION - BOOTSTRAP DESIGN */
body.single-match-page .match-header {
    background: #2a2a2a !important;
    /* Xám đen như card trang chủ */
    border-radius: 12px !important;
    padding: 25px 20px !important;
    margin-bottom: 30px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid #333333 !important;
    /* Viền xám đậm */
}

/* BADGES - ENHANCED DESIGN */
body.single-match-page .badge {
    display: inline-block !important;
    padding: 12px 25px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-radius: 25px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px) !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
}

body.single-match-page .badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

body.single-match-page .badge:hover::before {
    left: 100%;
}

body.single-match-page .badge-live {
    background: linear-gradient(135deg, #ef4444, #dc2626, #b91c1c) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    animation: livePulse 2s infinite !important;
    box-shadow:
        0 8px 25px rgba(239, 68, 68, 0.4) !important,
        0 0 30px rgba(239, 68, 68, 0.3) !important;
}

body.single-match-page .badge-live:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow:
        0 12px 35px rgba(239, 68, 68, 0.5) !important,
        0 0 40px rgba(239, 68, 68, 0.4) !important;
}

body.single-match-page .badge-upcoming {
    background: linear-gradient(135deg, #f59e0b, #d97706, #b45309) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    animation: pulse 3s infinite !important;
    box-shadow:
        0 8px 25px rgba(245, 158, 11, 0.4) !important,
        0 0 30px rgba(245, 158, 11, 0.3) !important;
}

body.single-match-page .badge-upcoming:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow:
        0 12px 35px rgba(245, 158, 11, 0.5) !important,
        0 0 40px rgba(245, 158, 11, 0.4) !important;
}

body.single-match-page .badge-finished {
    background: linear-gradient(135deg, #22c55e, #16a34a, #15803d) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow:
        0 8px 25px rgba(34, 197, 94, 0.4) !important,
        0 0 30px rgba(34, 197, 94, 0.3) !important;
}

body.single-match-page .badge-finished:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow:
        0 12px 35px rgba(34, 197, 94, 0.5) !important,
        0 0 40px rgba(34, 197, 94, 0.4) !important;
}

/* LEAGUE INFO - ENHANCED */
body.single-match-page .league-name {
    color: #fbbf24 !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    text-shadow:
        0 0 20px rgba(251, 191, 36, 0.5),
        2px 2px 4px rgba(0, 0, 0, 0.5) !important;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px !important;
    position: relative !important;
}

body.single-match-page .league-name::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
    border-radius: 2px;
}

body.single-match-page .match-time {
    color: #d1d5db !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    background: rgba(42, 42, 42, 0.8) !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: inline-block !important;
}

/* TEAMS AND SCORE CONTAINER */
body.single-match-page .teams-score-container {
    max-width: 800px !important;
    margin: 0 auto !important;
    padding: 20px 0 !important;
}

/* TEAMS AND SCORE ROW ALIGNMENT */
body.single-match-page .row.no-gutters.align-items-center.justify-content-center {
    min-height: 200px !important;
    align-items: center !important;
    margin: 0 !important;
}

/* TEAM COLUMNS ALIGNMENT */
body.single-match-page .col-3 {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 180px !important;
    padding: 0 15px !important;
}

body.single-match-page .col-6 {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 180px !important;
    padding: 0 15px !important;
}

/* TEAM CONTAINER - NEW STRUCTURE */
body.single-match-page .team-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    height: 160px !important;
    /* Fixed height for consistency */
}

/* TEAM LOGOS - ENHANCED */
body.single-match-page .team-logo {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto 15px auto !important;
    /* Center the logo container */
    height: 100px !important;
    /* Fixed height for logo area */
    width: 100% !important;
}

body.single-match-page .team-logo-img {
    width: 80px !important;
    height: 80px !important;
    object-fit: contain !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 8px !important;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 0 3px rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
    margin: 0 auto !important;
    /* Center the image */
    display: block !important;
    /* Ensure it behaves as block element */
}

body.single-match-page .team-logo-img:hover {
    transform: translateY(-5px) scale(1.1) !important;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 0 4px rgba(255, 255, 255, 0.2) !important;
}

body.single-match-page .team-avatar {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    font-size: 24px !important;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 0 3px rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    margin: 0 auto !important;
    /* Center the avatar */
}

body.single-match-page .team-avatar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: rotate 3s linear infinite;
}

body.single-match-page .team-avatar:hover {
    transform: translateY(-5px) scale(1.1) !important;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 0 4px rgba(255, 255, 255, 0.2) !important;
}

body.single-match-page .team-avatar.bg-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8, #1e40af) !important;
}

body.single-match-page .team-avatar.bg-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626, #b91c1c) !important;
}

/* SCORE SECTION */
body.single-match-page .score-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    height: 160px !important;
    /* Same height as team containers */
    width: 100% !important;
}

body.single-match-page .score-display {
    background: rgba(42, 42, 42, 0.8) !important;
    /* Xám đen như trang chủ */
    border: 2px solid #fbbf24 !important;
    /* Vàng như điểm số trang chủ */
    border-radius: 15px !important;
    padding: 15px 20px !important;
    margin-bottom: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.single-match-page .score-home,
body.single-match-page .score-away {
    color: #fbbf24 !important;
    /* Vàng như điểm số trang chủ */
    font-size: 42px !important;
    /* Tăng kích thước từ 28px lên 42px */
    font-weight: 900 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
}

body.single-match-page .score-divider {
    color: #94a3b8 !important;
    font-size: 36px !important;
    /* Tăng kích thước từ 24px lên 36px */
    font-weight: bold !important;
    margin: 0 15px !important;
}

body.single-match-page .status-container {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

body.single-match-page .match-status {
    font-size: 16px !important;
    /* Tăng từ 14px lên 16px */
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 8px 16px !important;
    /* Tăng padding */
    border-radius: 20px !important;
    /* Tăng border-radius */
    background: rgba(42, 42, 42, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: inline-block !important;
    position: relative !important;
    overflow: hidden !important;
    margin: 0 !important;
    /* Remove margin-top để nó nằm ngay dưới score */
}

body.single-match-page .match-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

body.single-match-page .match-status:hover::before {
    left: 100%;
}

body.single-match-page .match-status.text-danger {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    animation: livePulse 2s infinite !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3) !important;
}

/* Default match status (finished) */
body.single-match-page .match-status:not(.text-danger) {
    color: #22c55e !important;
    background: rgba(34, 197, 94, 0.1) !important;
    border-color: rgba(34, 197, 94, 0.3) !important;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.2) !important;
}

/* VS SECTION */
body.single-match-page .vs-section {
    background: rgba(148, 163, 184, 0.1) !important;
    border: 2px solid #94a3b8 !important;
    border-radius: 15px !important;
    padding: 15px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    height: 120px !important;
    /* Consistent height */
}

body.single-match-page .vs-text {
    color: #94a3b8 !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    margin-bottom: 5px !important;
}

body.single-match-page .kickoff-time {
    color: #fbbf24 !important;
    font-size: 12px !important;
    font-weight: bold !important;
}

body.single-match-page .match-header::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent) !important;
    animation: shimmer 3s infinite !important;
}

@keyframes shimmer {
    0% {
        left: -100% !important;
    }

    100% {
        left: 100% !important;
    }
}

body.single-match-page .match-status-center {
    margin-bottom: 20px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

body.single-match-page .live-badge,
body.single-match-page .upcoming-badge,
body.single-match-page .finished-badge {
    display: inline-block !important;
    padding: 12px 25px !important;
    border-radius: 30px !important;
    font-weight: bold !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    animation: pulse 2s infinite !important;
    position: relative !important;
    z-index: 1 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

body.single-match-page .live-badge {
    background: linear-gradient(135deg, #dc2626, #ef4444) !important;
    color: white !important;
    box-shadow:
        0 8px 25px rgba(220, 38, 38, 0.4),
        0 0 30px rgba(220, 38, 38, 0.3) !important;
    animation: livePulse 1.5s infinite !important;
}

body.single-match-page .upcoming-badge {
    background: linear-gradient(135deg, #f59e0b, #fbbf24) !important;
    color: white !important;
    box-shadow:
        0 8px 25px rgba(245, 158, 11, 0.4),
        0 0 30px rgba(245, 158, 11, 0.3) !important;
}

body.single-match-page .finished-badge {
    background: linear-gradient(135deg, #059669, #10b981) !important;
    color: white !important;
    box-shadow:
        0 8px 25px rgba(5, 150, 105, 0.4),
        0 0 30px rgba(5, 150, 105, 0.3) !important;
}

@keyframes livePulse {

    0%,
    100% {
        transform: scale(1) !important;
        box-shadow:
            0 8px 25px rgba(220, 38, 38, 0.4),
            0 0 30px rgba(220, 38, 38, 0.3) !important;
    }

    50% {
        transform: scale(1.08) !important;
        box-shadow:
            0 12px 35px rgba(220, 38, 38, 0.6),
            0 0 40px rgba(220, 38, 38, 0.5) !important;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1) !important;
    }

    50% {
        transform: scale(1.05) !important;
    }
}

body.single-match-page .match-info {
    margin-bottom: 30px !important;
}

body.single-match-page .match-round {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #aaff77 !important;
    margin-bottom: 5px !important;
}

body.single-match-page .match-datetime {
    font-size: 16px !important;
    color: #cbd5e1 !important;
    opacity: 0.9 !important;
}

/* TEAMS SECTION */
body.single-match-page .teams-section {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 60px !important;
    flex-wrap: wrap !important;
    margin: 30px 0 !important;
}

body.single-match-page .team {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    min-width: 140px !important;
    position: relative !important;
}

body.single-match-page .team-badge {
    width: 100px !important;
    height: 100px !important;
    margin-bottom: 20px !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.single-match-page .team-badge img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 8px !important;
    opacity: 0 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

body.single-match-page .team-placeholder {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    font-size: 22px !important;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.3),
        0 0 0 3px rgba(255, 255, 255, 0.1) !important;
    position: relative !important;
    overflow: hidden !important;
}

body.single-match-page .team-placeholder::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent) !important;
    animation: rotate 3s linear infinite !important;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg) !important;
    }

    100% {
        transform: rotate(360deg) !important;
    }
}

body.single-match-page .home-placeholder {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8, #1e40af) !important;
}

body.single-match-page .away-placeholder {
    background: linear-gradient(135deg, #ef4444, #dc2626, #b91c1c) !important;
}

/* TEAM NAME IN HEADER - CORRECTED */
body.single-match-page .team-name {
    color: #ffffff !important;
    /* Trắng như trang chủ */
    font-weight: 600 !important;
    font-size: 16px !important;
    margin: 0 auto !important;
    /* Center the name */
    text-align: center !important;
    line-height: 1.2 !important;
    height: 40px !important;
    /* Fixed height for consistency */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    /* Ensure full width for centering */
    background: transparent !important;
    /* No background for header names */
    padding: 0 !important;
    /* No padding for header names */
    border: none !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    transition: none !important;
    position: static !important;
    overflow: visible !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
}

/* Remove hover effects for header team names */
body.single-match-page .team-name::before {
    display: none !important;
}

body.single-match-page .team-name:hover {
    background: transparent !important;
    border-color: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}

/* COUNTDOWN SECTION - ENHANCED */
.countdown-section {
    margin-bottom: 35px !important;
}

.upcoming-match-notice {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(51, 65, 85, 0.8)) !important;
    border-radius: 20px !important;
    padding: 30px !important;
    border: 2px solid rgba(245, 158, 11, 0.4) !important;
    backdrop-filter: blur(15px) !important;
    margin: 0 5px !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(245, 158, 11, 0.2) !important;
}

.upcoming-match-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.1), transparent);
    animation: shimmer 3s infinite;
}

.upcoming-title {
    color: #fbbf24 !important;
    margin-bottom: 15px !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    text-shadow:
        0 0 20px rgba(251, 191, 36, 0.5),
        2px 2px 4px rgba(0, 0, 0, 0.5) !important;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative !important;
    z-index: 2 !important;
}

.upcoming-time {
    color: #e2e8f0 !important;
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 10px 20px !important;
    border-radius: 15px !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    display: inline-block !important;
    position: relative !important;
    z-index: 2 !important;
}

/* MAIN CONTENT */
.main-content {
    margin-bottom: 45px !important;
    padding: 0 5px !important;
}

.main-content .row {
    margin-left: -15px !important;
    margin-right: -15px !important;
    margin-bottom: 15px !important;
    /* Giảm từ 30px xuống 15px */
}

/* Đặc biệt cho row thứ 2 chứa thống kê - đưa lên gần hơn */
.main-content .row:nth-child(2) {
    margin-top: -10px !important;
    /* Đưa lên gần video player */
}

.main-content .col-lg-8,
.main-content .col-lg-4,
.main-content .col-12 {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* CONTENT LEFT - VIDEO AND STATS */
.content-left {
    width: 100% !important;
    background: #2a2a2a !important;
    /* Xám đen như card trang chủ */
    border-radius: 15px !important;
    padding: 25px !important;
    /* Giảm padding dưới để gần thống kê hơn */
    margin-top: 0px !important;
    /* Xóa margin-top để dính liền với video */
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 0 1px #333333 !important;
    /* Viền xám đậm */
    position: relative;
    overflow: hidden;
}

.content-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.02) 0%, transparent 50%);
    z-index: 1;
}

.content-left h3 {
    color: #ffffff !important;
    /* Trắng như trang chủ */
    margin-bottom: 25px;
    font-size: 24px;
    text-align: center;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

/* VIDEO SECTION - FULL WIDTH */
/* .main-content .row:first-child .video-section {
    margin-bottom: 2rem !important;
} */

/* VIDEO SECTION */
.video-section {
    background: #2a2a2a !important;
    /* Xám đen như card trang chủ */
    border-radius: 15px !important;
    overflow: hidden;
    margin-bottom: 10px !important;
    /* Giảm để gần thống kê hơn */
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 0 1px #333333 !important;
    /* Viền xám đậm */
    position: relative;
}

.server-btn {
    position: absolute;
    bottom: 10%;
    text-align: center;
}

#jwplayer-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Căn giữa cả theo chiều ngang và dọc */
    width: 100% !important;
    /* Đảm bảo khớp với parent */
    height: 100% !important;
    min-width: unset !important;
    /* Loại bỏ kích thước cố định */
    min-height: unset !important;
    overflow: hidden;
}

.video-placeholder {
    position: relative;
    width: 100%;
    padding-top: 27%;
    /* Tỷ lệ 16:9 */
    padding-bottom: 39% !important;
    /* Tỷ lệ 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
    display: block;
    /* Loại bỏ display: flex vì không cần thiết */
}

.video-placeholder iframe,
.video-placeholder video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
}

@media (min-width: 1600px) {
    .video-placeholder {
        max-height: 600px;
        min-height: 520px;
    }
}

@media (max-width: 768px) {
    .video-placeholder {
        padding-bottom: 75%;
        /* Tỷ lệ 4:3 cho mobile */
    }
}


.video-placeholder {
    position: relative;
    width: 100%;
    height: 400px;
    background: #1a1a1a;
    /* Đen như nền trang chủ */
    /* display: flex; */
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(34, 197, 94, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.video-overlay {
    text-align: center;
    color: #ffffff;
    /* Trắng như trang chủ */
    z-index: 2;
    position: relative;
}

.play-button {
    background: #22c55e !important;
    /* Xanh lá như trang chủ */
    color: white;
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow:
        0 10px 30px rgba(34, 197, 94, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.play-button::before {
    content: '▶';
    margin-right: 10px;
    font-size: 16px;
}

.play-button:hover {
    background: linear-gradient(135deg, #00e676, #4caf50);
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 15px 40px rgba(170, 255, 119, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* STATISTICS SECTION */
.statistics-section {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: 15px !important;
    padding: 20px;
    /* Giảm từ 30px xuống 20px */
    margin-bottom: 0 !important;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.05) !important;
    position: relative;
    overflow: hidden;
}

.statistics-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.statistics-section h3 {
    color: #fbbf24;
    margin-bottom: 25px;
    font-size: 24px;
    text-align: center;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 15px !important;
    position: relative;
    z-index: 2;
}

.stat-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    padding: 0 10px 0 10px !important;
    background: rgba(42, 42, 42, 0.8) !important;
    /* Xám đen như card trang chủ */
    border-radius: 8px !important;
    border: 1px solid #333333 !important;
    /* Viền xám đậm */
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-size: 12px !important;
}

.stat-row:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.stat-home,
.stat-away {
    font-weight: bold;
    font-size: 18px;
    color: #fbbf24 !important;
    /* Vàng như điểm số trang chủ */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.stat-home {
    text-align: center;
}

.stat-away {
    text-align: center;
}

.stat-label {
    text-align: center;
    color: #d1d5db !important;
    /* Xám nhạt như trang chủ */
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* MATCH INFO TABS */
.match-info-tabs {
    background: #2a2a2a !important;
    /* Xám đen như card trang chủ */
    border-radius: 15px !important;
    margin-bottom: 25px !important;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 0 1px #333333 !important;
    /* Viền xám đậm */
    overflow: hidden;
}

.tab-navigation {
    display: flex;
    background: #1a1a1a !important;
    border-bottom: 1px solid #333333;
    overflow-x: auto;
    position: relative;
    z-index: 5;
    /* Ẩn thanh kéo ngang */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}

.tab-navigation::-webkit-scrollbar {
    display: none;
    /* WebKit browsers */
}

.tab-btn {
    flex: 1;
    padding: 12px 8px;
    background: transparent;
    border: none;
    color: #d1d5db;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    position: relative;
    z-index: 10;
    /* Đảm bảo có thể click */
    user-select: none;
    /* Tránh select text */
}

.tab-btn:hover {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.tab-btn.active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border-bottom-color: #22c55e;
}

.tab-content {
    min-height: 200px;
    /* Giảm từ 300px để phù hợp với thống kê */
    max-height: 250px;
    /* Giảm từ 400px để cân bằng */
    overflow-y: auto;
    /* Ẩn thanh kéo */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}

.tab-content::-webkit-scrollbar {
    display: none;
    /* WebKit browsers */
}

.tab-pane {
    display: none;
    padding: 15px;
    /* Giảm từ 20px để tiết kiệm không gian */
}

.tab-pane.active {
    display: block;
}

/* CHAT TAB */
.chat-container {
    height: 200px;
    /* Giảm từ 300px để cân bằng với thống kê */
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 15px;
    border-bottom: 1px solid #333333;
    margin-bottom: 15px;
}

.chat-message {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.4;
}

.chat-user {
    color: #fbbf24;
    font-weight: bold;
    margin-right: 5px;
}

.chat-text {
    color: #d1d5db;
}

.chat-input {
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 8px 12px;
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 20px;
    color: #ffffff;
    font-size: 12px;
}

.chat-input input::placeholder {
    color: #6b7280;
}

.chat-input button {
    padding: 8px 15px;
    background: #22c55e;
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-input button:hover {
    background: #16a34a;
}

/* STATS TAB */
.detailed-stats {
    padding: 10px 0;
}

.team-comparison .team-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

/* Removed duplicate team-logo CSS - kept only main block at top */
.team-badge-small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: white;
}

.team-badge-small.home-team {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.team-badge-small.away-team {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.team-logo span {
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
}

.vs-divider {
    color: #94a3b8;
    font-weight: bold;
    font-size: 14px;
}

.stats-comparison {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    background: rgba(42, 42, 42, 0.8);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #333333;
}

.stat-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.home-stat,
.away-stat {
    color: #fbbf24;
    font-weight: bold;
    font-size: 14px;
}

.stat-name {
    color: #d1d5db;
    font-size: 12px;
    font-weight: 600;
}

.stat-bar {
    display: flex;
    height: 6px;
    background: #1a1a1a;
    border-radius: 3px;
    overflow: hidden;
}

.home-bar {
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    transition: width 0.5s ease;
}

.away-bar {
    background: linear-gradient(90deg, #ef4444, #dc2626);
    transition: width 0.5s ease;
    margin-left: auto;
}

/* LINEUP TAB */
.lineup-container {
    text-align: center;
}

.lineup-header {
    display: flex;
    margin-bottom: 20px;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
}

.lineup-toggle {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    color: #d1d5db;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lineup-toggle.active {
    background: #22c55e;
    color: white;
}

.lineup-placeholder {
    color: #94a3b8;
    font-style: italic;
    margin-top: 20px;
    /* Giảm từ 40px */
}

/* EVENTS TAB */
.events-placeholder {
    color: #94a3b8;
    font-style: italic;
    text-align: center;
    margin-top: 20px;
    /* Giảm từ 40px */
}

/* TABLE TAB */
.league-table h4 {
    color: #fbbf24;
    margin-bottom: 15px;
    font-size: 16px;
    text-align: center;
}

.table-container {
    overflow-x: auto;
}

.standings-table {
    width: 100%;
    font-size: 11px;
    border-collapse: collapse;
}

.standings-table th {
    background: #1a1a1a;
    color: #fbbf24;
    padding: 8px 4px;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid #333333;
}

.standings-table td {
    padding: 6px 4px;
    text-align: center;
    color: #d1d5db;
    border-bottom: 1px solid #333333;
}

.standings-table .team-name {
    text-align: left;
    color: #ffffff;
    font-weight: 600;
}

.standings-table .points {
    color: #22c55e;
    font-weight: bold;
}

.standings-table .champion-zone {
    background: rgba(34, 197, 94, 0.1);
}

.standings-table .europa-zone {
    background: rgba(245, 158, 11, 0.1);
}

/* SIDEBAR STYLES */
.content-right {
    background: #2a2a2a !important;
    /* Xám đen như card trang chủ */
    border-radius: 15px !important;
    padding: 20px;
    /* Giảm từ 25px để compact hơn */
    height: fit-content;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 0 1px #333333 !important;
    /* Viền xám đậm */
    position: relative;
    overflow: hidden;
    margin-top: 0 !important;
}

.content-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 30%, rgba(34, 197, 94, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.content-right h3 {
    color: #ffffff !important;
    /* Trắng như trang chủ */
    margin-bottom: 20px;
    /* Giảm từ 25px */
    font-size: 20px;
    text-align: center;
    border-bottom: 2px solid rgba(51, 51, 51, 0.5);
    /* Viền xám đậm */
    padding-bottom: 12px;
    /* Giảm từ 15px */
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

/* SCROLLABLE MATCHES CONTAINER */
.matches-container {
    max-height: 400px;
    /* Giới hạn chiều cao tối đa */
    overflow-y: auto;
    /* Cho phép cuộn dọc */
    padding-right: 5px;
    /* Tạo không gian cho scrollbar */
    /* position: relative; */
    z-index: 2;

    /* CSS custom properties for fade effects */
    --fade-top-opacity: 0;
    --fade-bottom-opacity: 0;

    /* Custom scrollbar styles */
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: #22c55e #333333;
    /* Firefox - thumb và track */
}

/* Webkit scrollbar styles cho Chrome, Safari, Edge */
.matches-container::-webkit-scrollbar {
    width: 6px;
    /* Độ rộng scrollbar */
}

.matches-container::-webkit-scrollbar-track {
    background: #333333;
    /* Màu nền track */
    border-radius: 3px;
}

.matches-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    /* Màu thumb gradient */
    border-radius: 3px;
    transition: background 0.3s ease;
}

.matches-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    /* Màu khi hover */
}

/* Fade effect cho top và bottom với CSS variables */
.matches-container::before,
.matches-container::after {
    content: '';
    position: absolute;
    left: 0;
    right: 5px;
    /* Không che scrollbar */
    height: 15px;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.matches-container::before {
    top: 0;
    background: linear-gradient(to bottom, #2a2a2a, transparent);
    opacity: var(--fade-top-opacity, 0);
}

.matches-container::after {
    bottom: 0;
    background: linear-gradient(to top, #2a2a2a, transparent);
    opacity: var(--fade-bottom-opacity, 0);
}

/* Show fade effects when scrollable */
.matches-container.has-scroll::before,
.matches-container.has-scroll::after {
    opacity: 1;
}

/* Smooth scroll behavior */
.matches-container {
    scroll-behavior: smooth;
}

/* Add subtle padding for better visual */
.matches-container .match-card:first-child {
    margin-top: 5px;
}

.matches-container .match-card:last-child {
    margin-bottom: 5px;
}

.match-card {
    background: rgba(42, 42, 42, 0.9) !important;
    /* Xám đen như card trang chủ */
    border: 1px solid #333333 !important;
    /* Viền xám đậm */
    border-radius: 12px !important;
    padding: 12px !important;
    /* Giảm từ 15px để compact hơn */
    margin-bottom: 12px !important;
    /* Giảm từ 15px để gần nhau hơn */
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-bottom: 4px solid transparent !important;
    /* Thêm border bottom mặc định */
    min-height: auto !important;
    /* Để chiều cao tự động */
    height: auto !important;
    /* Không cố định chiều cao */
}

/* Border màu cho từng loại trận đấu */
.match-card:has(.live-indicator) {
    border-bottom-color: #22c55e !important;
    /* Xanh lá cho LIVE */
}

.match-card:has(.finished-indicator) {
    border-bottom-color: #6b7280 !important;
    /* Xám cho KẾT THÚC */
}

.match-card:has(.upcoming-indicator) {
    border-bottom-color: #f59e0b !important;
    /* Cam cho SẮP DIỄN RA */
}

/* Fallback cho trình duyệt không hỗ trợ :has() */
.match-card.live-match {
    border-bottom-color: #22c55e !important;
}

.match-card.finished-match {
    border-bottom-color: #6b7280 !important;
}

.match-card.upcoming-match {
    border-bottom-color: #f59e0b !important;
}

.match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.5s ease;
}

.match-card:hover::before {
    left: 100%;
}

.match-card:hover {
    background: rgba(51, 51, 51, 0.9);
    /* Xám đậm hơn khi hover */
    border-color: #22c55e;
    /* Xanh lá khi hover */
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* Hover effects cho border bottom theo loại trận đấu */
.match-card.live-match:hover {
    border-bottom-color: #16a34a !important;
    /* Xanh lá đậm hơn khi hover */
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(34, 197, 94, 0.3) !important;
    /* Thêm glow effect */
}

.match-card.finished-match:hover {
    border-bottom-color: #4b5563 !important;
    /* Xám đậm hơn khi hover */
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(107, 114, 128, 0.3) !important;
}

.match-card.upcoming-match:hover {
    border-bottom-color: #d97706 !important;
    /* Cam đậm hơn khi hover */
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(245, 158, 11, 0.3) !important;
}

.match-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    /* Giảm từ 6px */
    font-size: 11px;
    /* Giảm từ 12px */
    color: #d1d5db;
    /* Xám nhạt như trang chủ */
}

/* TEAM LAYOUT STYLES */
.match-teams {
    margin-bottom: 6px;
    /* Giảm margin */
}

.team-vs-team {
    display: flex;
    flex-direction: column;
    gap: 4px;
    /* Khoảng cách nhỏ giữa 2 team */
}

.team-side {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Khoảng cách giữa logo, tên và điểm */
    padding: 2px 0;
    /* Padding nhỏ */
}

.team-logo-small {
    width: 40px !important;
    /* Nhỏ hơn logo trang chủ */
    height: 40px !important;
    flex-shrink: 0;
    /* Không thu nhỏ */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.team-logo-img-small {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-name-small {
    flex: 1;
    /* Chiếm không gian còn lại */
    color: #ffffff !important;
    /* Trắng như trang chủ */
    font-size: 12px !important;
    /* Nhỏ hơn */
    font-weight: 600 !important;
    line-height: 1.2;
    text-align: left;
    min-width: 125px;
}


@media (max-width: 768px) {
    .match-teams {
        justify-content: center;
    }
}

.team-score {
    font-weight: bold;
    color: #fbbf24 !important;
    /* Vàng như điểm số trang chủ */
    font-size: 14px !important;
    /* Nhỏ hơn một chút */
    min-width: 20px;
    /* Đảm bảo có chỗ cho điểm số */
    text-align: right;
}

.match-time {
    text-align: center;
    color: #d1d5db;
    font-size: 10px;
    font-style: italic;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* STATUS INDICATORS */
.live-indicator {
    background: #22c55e;
    /* Xanh lá như trang chủ */
    color: white;
    padding: 2px 6px;
    /* Giảm padding */
    border-radius: 8px;
    /* Giảm border-radius */
    font-size: 9px;
    /* Giảm font-size */
    font-weight: bold;
}

.finished-indicator {
    background: #6b7280;
    /* Xám như trang chủ */
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: bold;
}

.upcoming-indicator {
    background: #f59e0b;
    /* Cam như trang chủ */
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: bold;
}

/* MATCH DETAILS SECTION */
.match-details-section {
    background: #2a2a2a !important;
    /* Xám đen như card trang chủ */
    border-radius: 15px !important;
    padding: 15px;
    margin-top: 15px !important;
    margin-bottom: 0 !important;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 0 1px #333333 !important;
    /* Viền xám đậm */
    position: relative;
    overflow: hidden;
}

.match-details-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 25% 25%, rgba(34, 197, 94, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.match-details-section h2 {
    color: #fbbf24;
    margin-bottom: 15px;
    font-size: 24px;
    text-align: center;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px !important;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.detail-item {
    background: #2a2a2a !important;
    /* Xám đen như card trang chủ */
    padding: 20px;
    border-radius: 12px !important;
    border: 1px solid #333333 !important;
    /* Viền xám đậm */
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(30, 41, 59, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}


.match-description {
    background: rgba(30, 41, 59, 0.6) !important;
    padding: 25px;
    border-radius: 12px !important;
    border: 1px solid rgba(59, 130, 246, 0.15) !important;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.match-description h4 {
    color: #fbbf24;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.match-description p {
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 16px;
}

/* NAVIGATION SECTION */
.navigation-section {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px !important;
}

.back-button {
    display: inline-block;
    background: linear-gradient(135deg, #aaff77, #00e676, #4caf50);
    color: white;
    padding: 15px 35px;
    border-radius: 25px !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow:
        0 6px 20px rgba(170, 255, 119, 0.25) !important,
        0 0 0 1px rgba(255, 255, 255, 0.05) !important;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.back-button::before {
    content: '←';
    margin-right: 10px;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.back-button:hover::before {
    transform: translateX(-5px);
}

.back-button:hover {
    background: linear-gradient(135deg, #00e676, #4caf50, #388e3c);
    transform: translateY(-2px) !important;
    box-shadow:
        0 8px 25px rgba(170, 255, 119, 0.35) !important,
        0 0 0 1px rgba(255, 255, 255, 0.1) !important;
    color: white;
    text-decoration: none;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    body.single-match-page .single-match-container {
        padding: 20px 0 !important;
    }

    body.single-match-page .single-match-container .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    body.single-match-page .match-header {
        padding: 20px 15px !important;
        margin-bottom: 25px !important;
    }

    body.single-match-page .team-avatar,
    body.single-match-page .team-logo-img {
        width: 50px !important;
        height: 50px !important;
        font-size: 16px !important;
    }

    body.single-match-page .score-home,
    body.single-match-page .score-away {
        font-size: 24px !important;
    }

    body.single-match-page .vs-text {
        font-size: 20px !important;
    }

    .main-content .col-lg-8,
    .main-content .col-lg-4,
    .main-content .col-12 {
        margin-bottom: 20px !important;
    }

    .video-section {
        height: 250px;
        margin-bottom: 25px;
    }

    @media (max-width: 768px) {
        .video-section {
            min-height: 300px !important;
            margin-bottom: 25px !important;
        }
    }

    /* On mobile, stack statistics and sidebar vertically */
    .main-content .row:nth-child(2) {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    body.single-match-page .single-match-container {
        padding: 15px 0 !important;
    }

    body.single-match-page .single-match-container .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .match-header {
        padding: 20px 15px;
        margin-bottom: 25px !important;
    }

    .main-content {
        gap: 20px !important;
    }

    .teams-section {
        flex-direction: column;
        gap: 20px;
    }

    .score-section {
        order: -1;
        margin-bottom: 20px;
    }

    .current-score {
        font-size: 32px;
    }

    .vs-display {
        font-size: 20px;
        padding: 8px 15px;
    }

    .video-placeholder {
        height: 200px;
    }

    .play-button {
        padding: 12px 25px;
        font-size: 14px;
    }

    .back-button {
        padding: 12px 25px;
        font-size: 14px;
    }

    .match-card {
        margin-bottom: 10px !important;
        padding: 10px !important;
    }

    .team-logo-small {
        width: 18px !important;
        height: 18px !important;
    }

    .team-name-small {
        font-size: 11px !important;
    }

    .team-score {
        font-size: 12px !important;
    }

    .match-card-header {
        font-size: 10px !important;
        margin-bottom: 6px !important;
    }

    .live-indicator,
    .finished-indicator,
    .upcoming-indicator {
        font-size: 8px !important;
        padding: 1px 4px !important;
    }

    .match-time {
        font-size: 9px !important;
    }

    /* Matches container on mobile */
    .matches-container {
        max-height: 300px;
        /* Giảm chiều cao trên mobile */
        padding-right: 3px;
        /* Giảm padding cho scrollbar */
    }

    .matches-container::-webkit-scrollbar {
        width: 4px;
        /* Scrollbar nhỏ hơn trên mobile */
    }

    .matches-container::before,
    .matches-container::after {
        height: 12px;
        /* Fade effect nhỏ hơn trên mobile */
    }

    .match-details-section {
        margin-top: 15px !important;
        margin-bottom: 15px !important;
        padding: 20px !important;
    }

    .details-grid {
        gap: 12px !important;
    }

    .stats-grid {
        gap: 12px !important;
    }
}


#stats-subtabs {
    justify-content: center;
}

.stats-grid,
.stats-grid .stat-row,
.stats-grid .stat-home,
.stats-grid .stat-away,
.stats-grid .stat-label {
    color: #fff !important;
}

.team-score-full {
    /* background-size: cover !important; */
    min-height: 150px;
    /* display: flex; */
    align-items: center;
    /* căn giữa nội dung theo chiều dọc */
    justify-content: center;
    /* căn giữa nội dung theo chiều ngang */
    padding-top: 35px;
    border-radius: 25px;
    margin-bottom: 20px;
}

@media (min-width: 1024px) {
    .team-score-full {
        padding-top: 50px;
    }
}


.league-table th,
.league-table td {
    border: 1px solid #333;
    padding: 0 !important;
    text-align: center !important;
}








.video-section {
    position: relative;
    width: 100%;
}

.video-placeholder {
    position: relative;
    padding-bottom: 56.25%;
    /* Tỷ lệ 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
}

.video-placeholder iframe,
.video-placeholder video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.server-list {
    display: flex;
    justify-content: center;
    /* Căn giữa các button */
    flex-wrap: wrap;
    /* Cho phép button xuống dòng nếu cần */
    margin-top: 1rem;
    /* Giữ khoảng cách với video */
    position: relative;
    /* Đảm bảo không bị ảnh hưởng bởi position của video */
    z-index: 10;
    /* Đảm bảo button nằm trên các phần tử khác nếu cần */
}

.server-btn {
    padding: 8px 16px;
    margin: 5px;
    border: 1px solid #ccc;
    background: #f8f8f8;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.server-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.server-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.video-placeholder {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
}

.video-placeholder iframe,
.video-placeholder video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
}

@media (max-width: 768px) {
    .video-placeholder {
        padding-bottom: 75%;
    }
}

.server-btn {
    padding: 8px 16px;
    margin: 5px;
    border: 1px solid #ccc;
    background: #f8f8f8;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.server-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.server-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.video-placeholder {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
}

.video-placeholder iframe,
.video-placeholder video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
}

#jwplayer-container {
    position: absolute;
    top: 50%;
    left: 50%;
    /* width: 100% !important;
            height: 100% !important; */
    min-width: 800px !important;
    min-height: 600px !important;
    overflow: hidden;
}

#jwplayer-container>div,
#jwplayer-container>iframe,
#jwplayer-container>video {
    width: 100% !important;
    height: 100% !important;
    border: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.jwplayer {
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 768px) {
    .video-placeholder {
        padding-bottom: 75%;
        /* 4:3 ratio for mobile */
    }

    #jwplayer-container {
        padding-bottom: 75%;
        /* Đồng bộ với .video-placeholder */
    }
}

.server-btn {
    padding: 8px 16px;
    margin: 5px;
    border: 1px solid #ccc;
    background: #f8f8f8;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.server-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.server-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}


.video-placeholder {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
}

.video-placeholder iframe,
.video-placeholder video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
}

@media (max-width: 768px) {
    .video-placeholder {
        padding-bottom: 75%;
    }
}

.server-btn {
    padding: 8px 16px;
    margin: 5px;
    border: 1px solid #ccc;
    background: #f8f8f8;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.server-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.server-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.video-placeholder {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
}

.video-placeholder iframe,
.video-placeholder video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
}

#jwplayer-container {
    position: absolute;
    top: 50%;
    left: 50%;
    /* width: 100% !important;
            height: 100% !important; */
    min-width: 800px !important;
    min-height: 600px !important;
    overflow: hidden;
}

#jwplayer-container>div,
#jwplayer-container>iframe,
#jwplayer-container>video {
    width: 100% !important;
    height: 100% !important;
    border: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.jwplayer {
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 768px) {
    .video-placeholder {
        padding-bottom: 75%;
        /* 4:3 ratio for mobile */
    }

    #jwplayer-container {
        padding-bottom: 75%;
        /* Đồng bộ với .video-placeholder */
    }
}

.server-btn {
    padding: 8px 16px;
    margin: 5px;
    border: 1px solid #ccc;
    background: #f8f8f8;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.server-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.server-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.server-list > .server-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0;
}

.server-cpong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #6c757d;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease;
}

.server-cpong:hover {
  background: #5a6268;
}

.server-cpong.active {
  background: #28a745;
  border-color: #28a745;
}

.server-cpong:disabled {
  opacity: .6;
  cursor: not-allowed;
}
.server-list {
    margin-bottom: 10px!important;
}