.filters-section {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f0f4ff 0%, #fff5f0 100%);
    border-radius: 8px;
    border: 2px solid #04f5ff;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: bold;
    color: #37003c;
    font-size: 1.05em;
}

.filter-group select {
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 0.95em;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-group select:focus {
    outline: none;
    border-color: #04f5ff;
    box-shadow: 0 0 5px rgba(4, 245, 255, 0.3);
}

.comparison-section {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: center;
}

.player-selector {
    flex: 1;
    min-width: 0;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-selector label {
    font-weight: bold;
    color: #37003c;
    font-size: 1.05em;
}

.player-search {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 6px 6px 0 0;
    font-size: 0.95em;
    background: white;
    transition: all 0.3s ease;
}

.player-search:focus {
    outline: none;
    border-color: #04f5ff;
    box-shadow: 0 0 5px rgba(4, 245, 255, 0.3);
}

.player-list {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 0 0 6px 6px;
    font-size: 0.95em;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
    max-height: 300px;
}

.player-list:focus {
    outline: none;
    border-color: #04f5ff;
    box-shadow: 0 0 5px rgba(4, 245, 255, 0.3);
}

.player-list option {
    padding: 8px;
}

.vs-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    color: #37003c;
    min-height: 100px;
}

.compare-button {
    display: block;
    margin: 20px auto;
    padding: 15px 50px;
    background: linear-gradient(135deg, #04f5ff, #00cc6a);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.compare-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(4, 245, 255, 0.4);
}

.comparison-results {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    margin: 30px 0;
    align-items: start;
}

.player-card {
    background: white;
    border: 3px solid #ddd;
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s ease;
}

.player-card.winner {
    border-color: #00ff87;
    box-shadow: 0 0 20px rgba(0, 255, 135, 0.3);
}

.player-card h3 {
    color: #37003c;
    margin: 0 0 5px 0;
    font-size: 1.5em;
}

.player-card .team {
    color: #666;
    margin: 0 0 15px 0;
    font-size: 0.9em;
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95em;
}

.stat span:first-child {
    font-weight: 600;
    color: #666;
}

.stat span:last-child {
    font-weight: bold;
    color: #37003c;
}

.stat.highlight {
    background: rgba(4, 245, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
    border: none;
}

.stat.highlight span:last-child {
    color: #04f5ff;
    font-size: 1.2em;
}

.vs {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    color: #37003c;
    padding: 0 20px;
}

.summary {
    background: linear-gradient(135deg, #f0f4ff 0%, #fff5f0 100%);
    border-left: 5px solid #04f5ff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 1.05em;
    color: #37003c;
}

.summary p {
    margin: 0;
}

.chart-container {
    background: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
    position: relative;
}

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

.chart-header h3 {
    margin: 0;
    color: #37003c;
}

.fullscreen-btn {
    background: #04f5ff;
    color: #37003c;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.fullscreen-btn:hover {
    background: #00cc6a;
}

.chart-wrapper {
    position: relative;
    height: 400px;
}

/* Responsive */
@media (max-width: 1024px) {
    .comparison-results {
        grid-template-columns: 1fr;
    }
    
    .vs,
    .vs-badge {
        display: none;
    }
}

@media (max-width: 768px) {
    .comparison-section {
        flex-direction: column;
    }
    
    .player-selector {
        width: 100%;
        max-width: none;
    }
    
    .filters-section {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }

    .chart-wrapper {
        height: 320px;
    }
}

@media (max-width: 480px) {
    .compare-button {
        width: 100%;
        padding: 12px 20px;
    }

    .player-card {
        padding: 16px;
    }

    .stat {
        font-size: 0.9em;
    }
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #04f5ff, #00cc6a);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(4, 245, 255, 0.4);
}
