/* Modern Football Results Table Styles */
.football-round-wrapper {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: auto !important;
    max-height: 600px;
    margin: 25px 0;
    border: 1px solid #e8e8e8;
    animation: slideInUp 0.8s ease-out;
    position: relative;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Date Section Styles */
.fixture-date {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-bottom: 0;
    border-radius: 0;
    overflow: hidden;
}

.fixture-date:not(:last-child) {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

/* Heading Styles */
.fixture-date .heading {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 20px 25px;
    margin: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.fixture-date .heading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Today's matches special styling */
.fixture-date:has(.heading:contains("hôm nay")) .heading {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

/* Tomorrow's matches special styling */
.fixture-date:has(.heading:contains("ngày mai")) .heading {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

/* Yesterday's matches special styling */
.fixture-date:has(.heading:contains("hôm qua")) .heading {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #2c3e50;
}

/* Teams List Styles */
.list-teams-sidebar {
    background: #fff;
    margin: 0 !important;
    padding: 0;
    list-style: none;
    border: none;
}

.list-teams-sidebar li {
    border: none;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

.list-teams-sidebar li:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f4fd 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.list-teams-sidebar li:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

/* Teams Item Styles */
.teams-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    position: relative;
    min-height: 80px;
}

.teams-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.teams-item:hover::before {
    opacity: 1;
}

/* Team Club Styles */
.teams-club {
    flex: 1;
    display: flex;
    align-items: center;
}

.teams-club1 {
    justify-content: flex-end;
    padding-right: 20px;
}

.teams-club2 {
    justify-content: flex-start;
    padding-left: 20px;
}

/* Team Name and Logo Styles */
.name-club {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 15px;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.teams-club1 .name-club {
    flex-direction: row-reverse;
}

.teams-club1 .name-club span {
    text-align: right;
    font-weight: 700;
}

.teams-club2 .name-club span {
    text-align: left;
    font-weight: 700;
}

.name-club img {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.name-club:hover img {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Score and Time Styles */
.teams-number {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    padding: 0 15px;
}

.teams-number .soccer {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    min-width: 60px;
    box-shadow: 0 4px 12px rgba(238, 90, 36, 0.3);
    transition: all 0.3s ease;
}

.teams-number .soccer:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(238, 90, 36, 0.4);
}

.teams-number small {
    color: #7f8c8d;
    font-size: 12px;
    font-weight: 500;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

/* Video Highlight Link Styles */
.teams-number div a {
    color: #667eea;
    text-decoration: none;
    font-size: 12px !important;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 15px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f4fd 100%);
    border: 1px solid #e3f2fd;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 4px;
}

.teams-number div a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Mobile Video Highlight */
.list-teams-sidebar li > div:last-child {
    text-align: center;
    padding: 15px 25px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f4fd 100%);
    border-top: 1px solid #e3f2fd;
}

.list-teams-sidebar li > div:last-child a {
    color: #667eea !important;
    text-decoration: none;
    font-size: 13px !important;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    background: #fff;
    border: 2px solid #667eea;
    transition: all 0.3s ease;
    display: inline-block;
}

.list-teams-sidebar li > div:last-child a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Match Status Indicators */
.teams-item.live::before {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    opacity: 1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.teams-item.finished::before {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    opacity: 1;
}

.teams-item.scheduled::before {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    opacity: 1;
}

/* Scrollbar Styling */
.football-round-wrapper::-webkit-scrollbar {
    width: 8px;
}

.football-round-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.football-round-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

.football-round-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .football-round-wrapper {
        border-radius: 12px;
        margin: 15px 0;
        max-height: 500px;
    }
    
    .fixture-date .heading {
        font-size: 16px;
        padding: 15px 20px;
    }
    
    .teams-item {
        padding: 15px 20px;
        min-height: 70px;
    }
    
    .teams-club1 {
        padding-right: 15px;
    }
    
    .teams-club2 {
        padding-left: 15px;
    }
    
    .name-club {
        font-size: 13px;
        gap: 8px;
    }
    
    .name-club img {
        width: 24px !important;
        height: 24px !important;
    }
    
    .teams-number {
        min-width: 100px;
        padding: 0 10px;
    }
    
    .teams-number .soccer {
        font-size: 14px;
        padding: 6px 12px;
        min-width: 50px;
    }
    
    .teams-number small {
        font-size: 11px;
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    .football-round-wrapper {
        border-radius: 8px;
        margin: 10px 0;
        max-height: 400px;
        overflow: auto !important;
    }
    
    .fixture-date .heading {
        font-size: 14px;
        padding: 12px 15px;
    }
    
    .teams-item {
        padding: 12px 15px;
        min-height: 60px;
        flex-direction: column;
        gap: 10px;
    }
    
    .teams-club {
        width: 100%;
        justify-content: center;
    }
    
    .teams-club1,
    .teams-club2 {
        padding: 0;
        justify-content: center;
    }
    
    .teams-club1 .name-club {
        flex-direction: row;
    }
    
    .name-club {
        font-size: 12px;
        gap: 6px;
    }
    
    .name-club img {
        width: 20px !important;
        height: 20px !important;
    }
    
    .teams-number {
        min-width: auto;
        padding: 0;
        order: -1;
    }
    
    .teams-number .soccer {
        font-size: 13px;
        padding: 5px 10px;
        min-width: 45px;
    }
    
    .teams-number small {
        font-size: 10px;
        padding: 2px 5px;
    }
}

/* Loading State */
.football-round-wrapper.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Print Styles */
@media print {
    .football-round-wrapper {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .fixture-date .heading {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
    
    .teams-item:hover {
        background: #f9f9f9 !important;
        transform: none !important;
        box-shadow: none !important;
    }
    
    .teams-number .soccer {
        background: #f0f0f0 !important;
        color: #000 !important;
        box-shadow: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .football-round-wrapper {
        background: #1a1a1a;
        border-color: #333;
    }
    
    .list-teams-sidebar {
        background: #1a1a1a;
    }
    
    .list-teams-sidebar li {
        border-bottom-color: #333;
    }
    
    .list-teams-sidebar li:hover {
        background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
    }
    
    .name-club {
        color: #fff;
    }
    
    .teams-number small {
        background: #2a2a2a;
        border-color: #333;
        color: #ccc;
    }
}

/* Future Fixtures Styles */
.football-fixtures-wrapper {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 25px 0;
    border: 1px solid #e8e8e8;
    animation: slideInUp 0.8s ease-out;
    max-height: 500px;
    overflow-y: auto;
}

.football-header {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 20px 25px;
    margin: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.football-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

/* Future fixtures special styling */
.football-header:contains("hôm nay") {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.football-header:contains("ngày mai") {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.football-header:contains("hôm qua") {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #2c3e50;
}

/* Future fixtures team styles */
.football-fixtures-wrapper .teams-item {
    position: relative;
}

.football-fixtures-wrapper .teams-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.football-fixtures-wrapper .teams-item:hover::after {
    opacity: 1;
}

/* Future fixtures soccer time styling */
.football-fixtures-wrapper .teams-number .soccer {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

.football-fixtures-wrapper .teams-number .soccer:hover {
    box-shadow: 0 6px 16px rgba(78, 205, 196, 0.4);
}

/* Future fixtures link styles */
.fm-schedule-link {
    color: #4ecdc4 !important;
    text-decoration: none;
    font-size: 13px !important;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    background: #fff;
    border: 2px solid #4ecdc4;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 10px;
}

.fm-schedule-link:hover {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

.btn-f-more {
    color: #4ecdc4;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f4fd 100%);
    border: 2px solid #4ecdc4;
}

.btn-f-more:hover {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

/* Responsive for future fixtures */
@media (max-width: 768px) {
    .football-fixtures-wrapper {
        border-radius: 12px;
        margin: 15px 0;
    }
    
    .football-header {
        font-size: 16px;
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .football-fixtures-wrapper {
        border-radius: 8px;
        margin: 10px 0;
    }
    
    .football-header {
        font-size: 14px;
        padding: 12px 15px;
    }
}
