/* Football Live Ticker - Main + Sidebar Layout */

.football-ticker-container {
    background: #ffffff;
    border-radius: 12px;
    margin: 20px 0;
    padding: 0;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

/* Main Layout: Left Main + Right Sidebar */
.ticker-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0;
    min-height: 400px;
}

/* MAIN MATCH (LEFT SIDE) */
.main-match {
    background: #ffffff;
    padding: 24px;
    border-right: 1px solid #e5e7eb;
}

.main-match-item {
    position: relative;
}

/* Tournament Header */
.tournament-header {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tournament-header::before {
    content: "⬇";
    font-size: 12px;
    color: #6b7280;
}

.round-info {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    text-align: center;
    margin: 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Main Match Header */
.main-match-header {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.main-live-indicator {
    background: #dc2626;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

.main-live-indicator.halftime {
    background: #f59e0b;
}

.main-live-indicator.paused {
    background: #6b7280;
    animation: blink 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

/* Main Teams Layout */
.main-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 32px 0;
    gap: 24px;
}

.main-team-home, .main-team-away {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
    max-width: 140px;
}

.main-team-flag {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
}

.main-team-name {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    text-align: center;
    line-height: 1.2;
}

/* Main Match Center (Time/Score) */
.main-match-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 0 0 120px;
}

.main-match-time {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    text-align: center;
}

.main-match-date {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
}

.main-score-display {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 48px;
    font-weight: 700;
    color: #111827;
}

.main-home-score, .main-away-score {
    min-width: 60px;
    text-align: center;
}

.main-score-separator {
    color: #6b7280;
    font-weight: 400;
}

/* Main Events Section */
.main-events-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.main-events-header {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    text-align: center;
}

.main-events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.main-event-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.main-event-score {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
}

.main-event-time {
    background: #374151;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.main-event-player {
    color: #3b82f6;
    font-weight: 500;
    font-size: 14px;
}

/* SIDEBAR (RIGHT SIDE) */
.sidebar-matches {
    background: #f9fafb;
    border-left: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

/* Sidebar Header */
.sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.sidebar-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.tab {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
}

.tab.active {
    background: #f3f4f6;
    color: #111827;
    font-weight: 600;
}

.tab:hover:not(.active) {
    background: #f9fafb;
    color: #374151;
}

.sidebar-date {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

/* Sidebar Match Items */
.sidebar-match-item {
    padding: 12px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.sidebar-match-item:hover {
    background: #f9fafb;
}

.sidebar-match-item:last-of-type {
    border-bottom: none;
}

.sidebar-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sidebar-team {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.sidebar-team-flag {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.sidebar-team-name {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-score {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    flex-shrink: 0;
}

.sidebar-time {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.sidebar-score-numbers {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

/* Show More Section */
.show-more {
    padding: 16px 20px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: auto;
}

.show-more:hover {
    background: #f9fafb;
}

.show-more-text {
    font-size: 13px;
    color: #ec4899;
    font-weight: 500;
}

.show-more-arrow {
    color: #ec4899;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .ticker-layout {
        grid-template-columns: 1fr;
    }
    
    .main-match {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .sidebar-matches {
        border-left: none;
        border-top: 1px solid #e5e7eb;
    }
}

@media (max-width: 768px) {
    .main-match {
        padding: 16px;
    }
    
    .main-teams {
        margin: 24px 0;
        gap: 16px;
    }
    
    .main-team-flag {
        width: 60px;
        height: 45px;
        font-size: 30px;
    }
    
    .main-team-name {
        font-size: 16px;
    }
    
    .main-score-display {
        font-size: 36px;
        gap: 12px;
    }
    
    .sidebar-match-item {
        padding: 10px 16px;
    }
    
    .sidebar-header {
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .main-teams {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .main-match-center {
        order: -1;
        margin-bottom: 20px;
    }
    
    .main-team-home, .main-team-away {
        max-width: none;
        width: 100%;
    }
    
    .sidebar-team-name {
        font-size: 12px;
    }
    
    .sidebar-team-flag {
        width: 18px;
        height: 12px;
        font-size: 10px;
    }
}

/* Status Indicators */
.main-match-item[data-status="live"] .main-team-flag {
    border: 2px solid #10b981;
}

.main-match-item[data-status="finished"] {
    opacity: 0.8;
}

.sidebar-match-item[data-status="live"] {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border-left: 3px solid #10b981;
}

.sidebar-match-item[data-status="finished"] {
    opacity: 0.8;
}

/* Loading States */
.football-ticker-container.loading {
    opacity: 0.7;
    pointer-events: none;
}

.football-ticker-container.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}