/* Live Score Section Styles */
.live-score-section {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
    overflow: hidden;
    position: relative;
}

.live-score-container {
    padding: 0;
}

/* Header */
.live-score-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.last-update {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.9;
}

.update-time {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* Filters */
.live-score-filters {
    padding: 20px 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.search-container {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #e9ecef;
    color: #2a5298;
}

.league-filter {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    min-width: 180px;
    transition: all 0.3s ease;
}

.league-filter:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.refresh-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.refresh-btn:active {
    transform: translateY(0);
}

/* Tabs */
.live-score-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.tab-btn.active {
    background: white;
    color: #2a5298;
    border-bottom: 3px solid #2a5298;
}

.tab-icon {
    font-size: 16px;
}

.tab-count {
    background: #dc3545;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.tab-btn.active .tab-count {
    background: #2a5298;
}

/* Loading & Error */
.loading-indicator {
    text-align: center;
    padding: 40px 20px;
    display: none;
}

.loading-indicator.show {
    display: block;
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    text-align: center;
    padding: 40px 20px;
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin: 20px;
}

/* Tab Content */
.tab-content-container {
    min-height: 400px;
}

.tab-content {
    display: none;
    padding: 0;
}

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

.no-matches {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    font-size: 16px;
}

/* League Section */
.league-section {
    border-bottom: 1px solid #e9ecef;
}

.league-section:last-child {
    border-bottom: none;
}

.league-header {
    background: #f8f9fa;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e9ecef;
}

.league-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.league-name {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.league-link {
    color: #2a5298;
    text-decoration: none;
    transition: color 0.3s ease;
}

.league-link:hover {
    color: #1e3c72;
    text-decoration: underline;
}

/* Matches List */
.matches-list {
    padding: 0;
}

.match-item {
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.3s ease;
    position: relative;
}

.match-item:last-child {
    border-bottom: none;
}

.match-item:hover {
    background: #f8f9fa;
}

.match-item.live-match {
    background: linear-gradient(90deg, rgba(220, 53, 69, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
    border-left: 4px solid #dc3545;
}

.match-link {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    text-decoration: none;
    color: inherit;
    gap: 20px;
}

.match-time {
    text-align: center;
    font-size: 13px;
    color: #6c757d;
    font-weight: 600;
    display: flex;
    flex-direction: column;
}

.live-time {
    display: block;
    color: #dc3545;
    font-weight: 700;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

.teams-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.team {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-team {
    justify-content: flex-end;
    text-align: right;
}

.away-team {
    justify-content: flex-start;
    text-align: left;
}

.team-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
}

.team-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-score {
    min-width: 60px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #2a5298;
}

.vs {
    color: #6c757d;
    font-size: 14px;
    font-weight: 600;
}

.match-status {
    min-width: 80px;
    text-align: center;
}

.status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status.live-status {
    background: green;
    color: white;
    animation: pulse 2s infinite;
}

.status.halftime {
    background: #ffc107;
    color: #212529;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.match-odds {
    min-width: 100px;
    text-align: center;
}

.odds-row {
    display: flex;
    gap: 5px;
    justify-content: space-between;
    align-items: center;
}

.odd-value {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    color: #495057;
}

.odd-label {
    font-size: 11px;
    color: #6c757d;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .live-score-header {
        padding: 15px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .live-score-filters {
        padding: 15px 20px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-container {
        min-width: auto;
    }
    
    .league-filter {
        min-width: auto;
    }
    
    .tab-btn {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .tab-text {
        display: none;
    }
    
    .match-link {
        padding: 10px;
        gap: 5px;
        flex-wrap: wrap;
    }
    
    .match-time {
        font-size: 12px;
        flex-direction: row;
        gap: 5px;
    }
    
    .teams-container {
        gap: 5px;
        width: 100%;
    }
    
    .team {
        justify-content: center;
        text-align: center;
        width:40%;
        gap:5px;
    }
    
    .team-name {
        width:80%
        font-size: 13px;
    }
    
    .match-score {
        font-size: 16px;
        width:20%;
    }
    
    .match-status {
        order: 3;
        min-width: auto;
    }
    
    .match-odds {
        order: 4;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .live-score-section {
        margin: 10px 0;
        border-radius: 8px;
    }
    
    .live-score-header {
        padding: 12px 15px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .live-score-filters {
        padding: 12px 15px;
    }
    
    .league-header {
        padding: 6px 10px;
    }
        
    .team-logo {
        width: 24px;
        height: 24px;
    }
}