/* Sports Ticker Styles */
.sports-ticker-container {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    height: 50px;
    display: flex;
    align-items: center;
    font-family: 'Arial', sans-serif;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 10px 0;
}

.sports-ticker-content {
    white-space: nowrap;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    color: white;
    font-weight: bold;
    font-size: 14px;
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform;
}

.score-item {
    display: inline-flex;
    align-items: center;
    margin-right: 40px;
    padding: 0 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    height: 32px;
}

.game {
    display: flex;
    align-items: center;
    gap: 8px;
}

.teams {
    display: flex;
    align-items: center;
    gap: 5px;
}

.away-team,
.home-team {
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.away-team.winning,
.home-team.winning {
    background: #4CAF50;
    color: white;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

.score {
    font-weight: bold;
    font-size: 16px;
    color: #FFD700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    margin: 0 3px;
}

.vs {
    color: #ccc;
    font-size: 12px;
    margin: 0 2px;
}

.status {
    font-size: 11px;
    color: #FFD700;
    background: rgba(255, 215, 0, 0.2);
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: normal;
}

.loading,
.error,
.no-scores {
    color: #FFD700;
    font-style: italic;
    padding: 0 20px;
}

.error {
    color: #ff6b6b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sports-ticker-container {
        height: 45px;
    }
    
    .sports-ticker-content {
        font-size: 12px;
    }
    
    .score-item {
        margin-right: 30px;
        height: 28px;
    }
    
    .score {
        font-size: 14px;
    }
    
    .status {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .sports-ticker-container {
        height: 40px;
    }
    
    .sports-ticker-content {
        font-size: 11px;
    }
    
    .score-item {
        margin-right: 25px;
        height: 24px;
        padding: 0 10px;
    }
    
    .away-team,
    .home-team {
        padding: 1px 4px;
        font-size: 10px;
    }
    
    .score {
        font-size: 12px;
    }
    
    .status {
        font-size: 9px;
        padding: 1px 4px;
    }
}

/* Animation Enhancements */
.sports-ticker-container:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

.score-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* Dark Theme Variation */
.sports-ticker-container.dark-theme {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-color: #555;
}

.sports-ticker-container.dark-theme .sports-ticker-content {
    color: #ecf0f1;
}

.sports-ticker-container.dark-theme .score {
    color: #f39c12;
}

.sports-ticker-container.dark-theme .status {
    color: #f39c12;
    background: rgba(243, 156, 18, 0.2);
}

/* Light Theme Variation */
.sports-ticker-container.light-theme {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: #dee2e6;
    color: #333;
}

.sports-ticker-container.light-theme .sports-ticker-content {
    color: #333;
}

.sports-ticker-container.light-theme .score-item {
    background: rgba(0, 0, 0, 0.1);
}

.sports-ticker-container.light-theme .away-team,
.sports-ticker-container.light-theme .home-team {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.sports-ticker-container.light-theme .away-team.winning,
.sports-ticker-container.light-theme .home-team.winning {
    background: #28a745;
    color: white;
}

.sports-ticker-container.light-theme .score {
    color: #007bff;
}

.sports-ticker-container.light-theme .status {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
}

/* Breaking News Style */
.sports-ticker-container.breaking {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .sports-ticker-content {
        animation: none !important;
        transform: none !important;
    }
    
    .sports-ticker-container:hover {
        transform: none;
    }
    
    .score-item:hover {
        transform: none;
    }
}