* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #333;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.last-update {
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.tabs {
    display: flex;
    background: #f5f5f5;
    border-bottom: 2px solid #e0e0e0;
}

.tab {
    flex: 1;
    padding: 18px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    color: #666;
}

.tab:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.tab.active {
    background: white;
    color: #667eea;
    border-bottom: 3px solid #667eea;
}

main {
    padding: 30px;
    min-height: 500px;
}

.loading {
    text-align: center;
    padding: 100px 20px;
    font-size: 1.2rem;
    color: #999;
}

.match-card, .team-card, .prediction-card, .alert-card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.match-card:hover, .team-card:hover, .prediction-card:hover, .alert-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.match-teams {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.5rem;
    font-weight: bold;
}

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

.vs {
    color: #999;
    font-weight: normal;
}

.match-meta {
    font-size: 0.9rem;
    color: #666;
}

.stage-badge {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.stat-item {
    background: white;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #667eea;
}

.form-badges {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.form-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    color: white;
}

.form-badge.W { background: #4caf50; }
.form-badge.D { background: #ff9800; }
.form-badge.L { background: #f44336; }

.prediction-prob {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.prob-item {
    flex: 1;
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.prob-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.prob-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #667eea;
}

.scoreline-list {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.scoreline-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.alert-card.HIGH {
    border-left: 5px solid #f44336;
}

.alert-card.MEDIUM {
    border-left: 5px solid #ff9800;
}

.alert-card.LOW {
    border-left: 5px solid #2196f3;
}

.alert-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.alert-meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 10px;
}

.alert-impact {
    background: #fff3cd;
    padding: 12px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 0.95rem;
}

.confidence-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.confidence-badge.High {
    background: #4caf50;
    color: white;
}

.confidence-badge.Medium {
    background: #ff9800;
    color: white;
}

.confidence-badge.Low {
    background: #f44336;
    color: white;
}

.disclaimer {
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    border-left: 4px solid #ffc107;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .match-teams {
        font-size: 1.2rem;
    }
    
    .tabs {
        overflow-x: auto;
    }
    
    .tab {
        min-width: 120px;
    }
}
