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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    padding: 0 20px 20px 20px;
    padding-top: 80px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 50%, rgba(204, 0, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(204, 0, 0, 0.1) 0%, transparent 50%);
    animation: pulse 15s ease-in-out infinite;
    z-index: 0;
}

@keyframes pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.header {
    padding: 40px 30px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.logo-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.logo {
    width: clamp(140px, 15vw, 220px);
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    display: block;
    position: relative;
    z-index: 1;
}

.header h1 {
    font-size: 2.8em;
    font-weight: 800;
    margin-bottom: 8px;
    color: #cc0000;
    text-shadow: 0 2px 20px rgba(204, 0, 0, 0.3);
    letter-spacing: -1px;
    position: relative;
}

.header .subtitle {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
}

.classification-wrapper {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.classification-tab {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1em;
    text-decoration: none;
    display: inline-block;
}

.classification-tab:hover {
    background: rgba(40, 40, 40, 0.9);
    border-color: rgba(204, 0, 0, 0.3);
    color: white;
}

.rounds-nav {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.round-tab {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1em;
}

.round-tab:hover {
    background: rgba(40, 40, 40, 0.9);
    border-color: rgba(204, 0, 0, 0.3);
    color: white;
}

.round-tab.active {
    background: linear-gradient(135deg, #cc0000, #ff1a1a);
    border-color: #cc0000;
    color: white;
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.4);
}

.round-section {
    display: none;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    margin-bottom: 30px;
}

.round-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.round-header {
    background: linear-gradient(135deg, #cc0000 0%, #8b0000 100%);
    padding: 30px;
    text-align: center;
}

.round-header h2 {
    font-size: 2em;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.round-header .date {
    font-size: 1.3em;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.schedule-wrapper {
    padding: 30px;
}

.match-card {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    overflow: hidden;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.match-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #cc0000, #ff3333);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.match-card:hover {
    background: rgba(40, 40, 40, 0.9);
    border-color: rgba(204, 0, 0, 0.3);
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.match-card:hover::before {
    transform: scaleY(1);
}

.time-badge {
    background: linear-gradient(135deg, #cc0000, #ff1a1a);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.4em;
    min-width: 100px;
    text-align: center;
    flex-shrink: 0;
}

.time-badge.time-finished {
    background: #444;
}

.team {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.15em;
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.team.winner {
    color: #00ff88;
    font-weight: 800;
}

.score.winner {
    color: #00ff88;
}

.score-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 120px;
    justify-content: center;
}

.score {
    font-size: 1.8em;
    font-weight: 800;
    color: #ffffff;
}


.score-divider {
    color: rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

.vs-badge {
    background: rgba(204, 0, 0, 0.2);
    color: #cc0000;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9em;
    border: 1px solid rgba(204, 0, 0, 0.3);
    text-transform: uppercase;
}

.footer {
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .match-card { 
        flex-direction: column; 
        padding: 20px;
        flex-wrap: nowrap;
    }
    .score-container { 
        margin: 10px 0; 
        width: 100%; 
    }
    .team {
        order: 1;
    }
    .team:last-child {
        order: 3;
    }
}

.stats-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(204,0,0,0.12);
    border: 1px solid rgba(204,0,0,0.3);
    color: #cc0000;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.2s;
    margin-left: auto;
    flex-shrink: 0;
    cursor: pointer;
    white-space: nowrap;
}
.stats-btn:hover {
    background: rgba(204,0,0,0.25);
    border-color: #cc0000;
    color: #ff3333;
}
.stats-btn svg { flex-shrink: 0; }
@media (max-width: 768px) { .stats-btn { margin: 8px auto 0; } }
