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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 30px;
    text-align: center;
}

header h1 {
    color: #667eea;
    font-size: 2.5em;
    font-weight: 700;
}

section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 25px;
}

h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.8em;
    font-weight: 600;
}

h3 {
    color: #555;
    margin-bottom: 12px;
    font-size: 1.2em;
    font-weight: 600;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.collection-btn {
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-align: center;
}

.collection-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.collection-btn.active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.5);
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.model-btn {
    padding: 12px 16px;
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.model-btn:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.model-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.all-models-btn {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    color: #333;
    font-weight: 700;
    border: none;
}

.all-models-btn:hover {
    background: linear-gradient(135deg, #8fd3f4 0%, #84fab0 100%);
}

.all-models-btn.active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.filters-group {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 30px;
    align-items: start;
}

.filter-block {
    display: flex;
    flex-direction: column;
}

.providers-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.provider-btn {
    padding: 10px 20px;
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.provider-btn:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.provider-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.time-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.time-btn {
    padding: 10px 16px;
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.time-btn:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.time-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.reset-zoom-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
    margin-top: 25px;
}

.reset-zoom-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.5);
}

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

.chart-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    color: #666;
    font-size: 14px;
}

.stat-item strong {
    color: #667eea;
    font-size: 16px;
}

.chart-container {
    position: relative;
    height: 500px;
    margin-bottom: 15px;
}

.chart-hint {
    text-align: center;
    color: #999;
    font-size: 13px;
    font-style: italic;
}

.loader {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

@media (max-width: 1024px) {
    .filters-group {
        grid-template-columns: 1fr;
    }
    
    .collections-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    header h1 {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    section {
        padding: 15px;
    }
    
    .collections-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .models-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .chart-container {
        height: 350px;
    }
    
    header h1 {
        font-size: 1.5em;
    }
}
