/* ===== LỊCH THI ĐẤU PAGE STYLES - ĐỒNG BỘ VỚI BANG XẾP HẠNG ===== */

/* GENERAL PAGE STYLING */
body.page-template-lich-thi-dau {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #1e3c72 100%) !important;
    background-attachment: fixed !important;
    min-height: 100vh !important;
    color: #ffffff !important;
}

/* CONTAINER AND GRID FIX */
.page-template-lich-thi-dau .container {
    max-width: 1200px !important;
}

.page-template-lich-thi-dau .row {
    margin-left: -15px !important;
    margin-right: -15px !important;
}

.page-template-lich-thi-dau .col-lg-8,
.page-template-lich-thi-dau .col-lg-4 {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* PAGE TITLE */
.page-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #4c935c !important;
    text-align: center !important;
    margin-bottom: 30px !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
    padding: 20px 0 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 15px !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* SCHEDULE TABS */
.schedule-tabs {
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-bottom: 30px !important;
    flex-wrap: wrap !important;
}

.schedule-tabs button {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff ;
    padding: 15px 20px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    min-width: 120px !important;
    text-align: center !important;
}

.schedule-tabs button span {
    display: block !important;
    font-size: 12px !important;
    color: #fbbf24 !important;
    margin-top: 3px !important;
}

.schedule-tabs button:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: #4c935c !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(76, 147, 92, 0.3) !important;
}

.schedule-tabs button.active {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #1e3c72;
    border-color: #fbbf24 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4) !important;
}

.schedule-tabs button.active span {
    color: #1e3c72 !important;
}

/* SCHEDULE TABLE */
.schedule-table {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 15px !important;
    padding: 20px !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-bottom: 40px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

/* SCHEDULE LEAGUE */
.schedule-league {
    margin-bottom: 30px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.league-title {
    background: linear-gradient(135deg, #4c935c, #22c55e) !important;
    color: #ffffff !important;
    padding: 15px 20px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    display: flex !important;
    align-items: center !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.league-title span {
    margin-right: 10px !important;
    font-size: 18px !important;
}

/* SCHEDULE MATCH - IMPROVED LAYOUT WITH GRID FOR DETAILS */
.schedule-match {
    display: grid !important;
    grid-template-columns: 80px 1fr 120px 100px !important;
    grid-template-rows: auto auto !important;
    gap: 15px 15px !important;
    padding: 15px 20px !important;
    transition: all 0.3s ease !important;
    align-items: flex-start !important;
    min-height: 50px !important;
}

/* MATCH TEAMS CONTAINER - ENSURE PROPER WRAPPING */
.match-teams {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

/* MATCH DETAILS - SPAN ACROSS ALL COLUMNS */
.match-details {
    grid-column: 1 / -1 !important;  /* Span từ cột 1 đến cột cuối */
    display: flex !important;
    justify-content: space-between !important;
    gap: 8px !important;
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-top: 5px !important;
    padding-top: 8px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.match-details .stadium,
.match-details .commentator {
    background: rgba(255, 255, 255, 0.05) !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: center !important;
    font-size: 10px !important;
    flex: 1 !important;  /* Chiếm đều không gian */
    max-width: 48% !important;  /* Giới hạn chiều rộng */
}

.schedule-match:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: translateX(5px) !important;
}

.match-time {
    color: #fbbf24 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-align: center !important;
    background: rgba(251, 191, 36, 0.2) !important;
    padding: 8px 5px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(251, 191, 36, 0.3) !important;
}

.match-odds {
    color: #22c55e !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-align: center !important;
    background: rgba(34, 197, 94, 0.1) !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
}

/* IMPROVED MATCH STATUS BUTTON */
.match-status {
    text-align: center !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    padding: 8px 12px !important;
    border-radius: 20px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    min-width: 90px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Status Colors */
.match-status.live {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #ffffff !important;
    animation: pulse 2s infinite !important;
}

.match-status.upcoming {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #ffffff !important;
}

/* SPECIAL STATUS STYLES */
.match-status.unknown,
.match-status:contains("Chưa"),
.match-status:contains("chưa") {
    background: linear-gradient(135deg, #6b7280, #4b5563) !important;
    color: #ffffff !important;
    font-size: 10px !important;
    padding: 8px 6px !important;
    min-width: 85px !important;
}

.match-status.finished {
    background: linear-gradient(135deg, #6b7280, #4b5563) !important;
    color: #ffffff !important;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

/* CONTENT SECTION */
.content-section {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 15px !important;
    padding: 30px !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-bottom: 40px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.content-section h2 {
    color: #4c935c !important;
    font-weight: 700 !important;
    margin-top: 25px !important;
    margin-bottom: 15px !important;
    font-size: 22px !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.content-section p {
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
    font-size: 16px !important;
}

.content-section b {
    color: #fbbf24 !important;
    font-weight: 700 !important;
}

/* ADS SECTION */
.ads-section {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 15px !important;
    padding: 30px !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-bottom: 40px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    text-align: center !important;
}

/* SIDEBAR STYLES */
.sidebar {
    padding-left: 20px !important;
}

.widget {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 15px !important;
    padding: 25px !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-bottom: 30px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.widget-title {
    color: #4c935c !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid rgba(76, 147, 92, 0.3) !important;
}

/* FEATURED MATCHES */
.featured-match {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
}

.featured-match:last-child {
    border-bottom: none !important;
}

.featured-match:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    padding-left: 10px !important;
    border-radius: 8px !important;
}

/* FEATURED MATCH LINKS */
.featured-match .match-link {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.3s ease !important;
}

.featured-match .match-link:hover {
    color: inherit !important;
    text-decoration: none !important;
}

.match-info .time {
    color: #fbbf24 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    display: block !important;
}

.match-info .teams {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    display: block !important;
    margin-top: 3px !important;
}

.featured-match .league {
    color: #22c55e !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    background: rgba(34, 197, 94, 0.2) !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
}

/* LATEST NEWS */
.news-item {
    padding: 12px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
}

.news-item:last-child {
    border-bottom: none !important;
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    padding-left: 10px !important;
    border-radius: 8px !important;
}

.news-item a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    display: block !important;
    transition: color 0.3s ease !important;
}

.news-item a:hover {
    color: #4c935c !important;
}

.news-time {
    color: #fbbf24 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    display: block !important;
    margin-top: 5px !important;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .schedule-tabs {
        gap: 5px !important;
    }
    
    .schedule-tabs button {
        min-width: 90px !important;
        padding: 12px 15px !important;
        font-size: 12px !important;
    }
    
    .schedule-match {
        grid-template-columns: 60px 1fr !important;
        gap: 10px !important;
        padding: 12px 15px !important;
    }
    
    /* HIDE DETAILS ON MOBILE */
    .match-details {
        display: none !important;
    }
    
    .match-odds,
    .match-status {
        display: none !important;
    }
    
    .sidebar {
        padding-left: 0 !important;
        margin-top: 30px !important;
    }
    
    .page-title {
        font-size: 22px !important;
        padding: 15px 0 !important;
    }
    
    .content-section,
    .ads-section,
    .widget {
        padding: 20px !important;
    }
}

/* TABLET RESPONSIVE */
@media (max-width: 992px) and (min-width: 769px) {
    .schedule-match {
        grid-template-columns: 70px 1fr 100px 80px !important;
        gap: 12px !important;
    }
    
    .match-status {
        font-size: 10px !important;
        padding: 6px 8px !important;
        min-width: 70px !important;
    }
}

@media (max-width: 480px) {
    .schedule-tabs button {
        min-width: 80px !important;
        padding: 10px 12px !important;
        font-size: 11px !important;
    }
    
    .match-teams {
        font-size: 13px !important;
    }
    
    .match-time {
        font-size: 14px !important;
        padding: 6px 4px !important;
    }
}

/* LOADING ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.schedule-league {
    animation: fadeIn 0.6s ease-out !important;
}

.schedule-league:nth-child(2) {
    animation-delay: 0.2s !important;
}

.schedule-league:nth-child(3) {
    animation-delay: 0.4s !important;
}

/* SCROLL EFFECTS */
.schedule-table {
    transition: all 0.3s ease !important;
}

.schedule-table:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4) !important;
}