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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0a0a;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Градиентный фон */
.bg-gradient {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 30% 70%, rgba(80, 20, 120, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(20, 100, 180, 0.15) 0%, transparent 50%),
                #0a0a0a;
    z-index: -1;
    transition: all 0.8s ease;
}

/* Фоны визуализаций */
.bg-gradient.space {
    background: radial-gradient(circle at 50% 50%, rgba(100, 50, 200, 0.2) 0%, transparent 40%),
                radial-gradient(circle at 20% 80%, rgba(50, 100, 200, 0.15) 0%, transparent 35%),
                radial-gradient(circle at 80% 20%, rgba(200, 100, 50, 0.12) 0%, transparent 30%),
                #0a0a14;
}

.bg-gradient.neon {
    background: radial-gradient(circle at 30% 70%, rgba(255, 0, 127, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 255, 255, 0.2) 0%, transparent 50%),
                #0a0a1a;
}

.bg-gradient.forest {
    background: radial-gradient(circle at 30% 70%, rgba(34, 139, 34, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(46, 125, 50, 0.15) 0%, transparent 50%),
                linear-gradient(180deg, #0a1a0a 0%, #050f05 100%);
}

.bg-gradient.ocean {
    background: radial-gradient(circle at 30% 70%, rgba(0, 150, 200, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 100, 150, 0.15) 0%, transparent 50%),
                linear-gradient(180deg, #0a1a2e 0%, #050a14 100%);
}

.bg-gradient.dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 50%, #0a0a14 100%);
}

/* Панель управления */
.settings-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    gap: 16px;
    align-items: center;
    background: rgba(20, 20, 25, 0.8);
    backdrop-filter: blur(12px);
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-group label {
    font-size: 13px;
    color: #aaa;
    white-space: nowrap;
    font-weight: 500;
}

.settings-group select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.settings-group select:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.settings-group select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.settings-group select option {
    background: #1a1a2e;
    color: #fff;
}

.equalizer-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
}

.equalizer-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
}

.equalizer-toggle i {
    margin-right: 6px;
}

/* Панель эквалайзера */
.equalizer-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
    pointer-events: none;
    z-index: 200;
    background: rgba(20, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 28px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.equalizer-panel.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.eq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 16px;
}

.eq-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.eq-close {
    background: none;
    border: none;
    color: #888;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.3s;
}

.eq-close:hover {
    color: #fff;
}

.eq-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.eq-slider {
    display: flex;
    align-items: center;
    gap: 12px;
}

.eq-slider label {
    min-width: 70px;
    font-size: 12px;
    color: #aaa;
    font-weight: 500;
    text-align: right;
}

.eq-range {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: pointer;
}

.eq-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #52c41a, #95de64);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(82, 196, 26, 0.4);
}

.eq-range::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #52c41a, #95de64);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(82, 196, 26, 0.4);
}

.eq-value {
    min-width: 40px;
    text-align: right;
    font-size: 12px;
    color: #52c41a;
    font-weight: 600;
}

.eq-presets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.preset-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #aaa;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.preset-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.preset-btn.active {
    background: linear-gradient(135deg, #52c41a, #52c41a);
    border-color: #52c41a;
    color: #fff;
}

/* Контейнер */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px 60px;
}

/* Шапка */
.header {
    text-align: center;
    margin-bottom: 80px;
}

.logo {
    font-size: 72px;
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
}

.tagline {
    font-size: 16px;
    color: #888;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 12px;
}

.subtitle {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Сетка плееров */
.players-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    margin-bottom: 100px;
}

.player-card {
    background: rgba(20, 20, 25, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 36px;
    transition: all 0.4s ease;
}

.player-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(28, 28, 35, 0.85);
    transform: translateY(-4px);
}

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

.channel-name {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.status {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #666;
    font-weight: 600;
}

.status.active {
    color: #52c41a;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Визуалайзер */
.visualizer {
    height: 80px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 12px 8px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    margin-bottom: 28px;
    overflow: hidden;
    position: relative;
}

.bar {
    width: 5px;
    height: 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    transition: height 0.2s ease;
}

.bar.active {
    background: linear-gradient(to top, #52c41a, #b7eb8f);
}

.waveform-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Кнопки и громкость */
.controls {
    display: flex;
    align-items: center;
    gap: 24px;
}

.play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.play-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.play-btn.playing {
    background: #fff;
    color: #0a0a0a;
    box-shadow: 0 0 30px rgba(255,255,255,0.5);
}

.play-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
}

.volume-control {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
}

.volume-icon {
    font-size: 18px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.volume-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.12);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.volume-value {
    min-width: 40px;
    text-align: right;
    font-size: 14px;
    color: #888;
    font-weight: 500;
}

.channel-desc {
    margin-top: 20px;
    font-size: 15px;
    color: #777;
    line-height: 1.5;
}

/* Футер */
.footer {
    text-align: center;
    padding: 60px 0 40px;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: #555;
    font-size: 14px;
}

.contact-link {
    color: #888;
 text-decoration: none;
 border-bottom: 1px dotted #666;
 transition: color 0.3s;
}

.contact-link:hover {
    color: #fff;
}

.disclaimer {
    margin-top: 16px;
    font-size: 12px;
    color: #444;
}

/* Адаптив */
@media (max-width: 1024px) {
    .settings-panel {
        flex-wrap: wrap;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .container { padding: 60px 20px 40px; }
    .logo { font-size: 56px; }
    .players-grid { grid-template-columns: 1fr; }
    .controls { flex-direction: column; align-items: stretch; gap: 20px; }
    .play-btn { width: 70px; height: 70px; margin: 0 auto; }
    
    .settings-panel {
        top: 10px;
        right: 10px;
        left: 10px;
        justify-content: center;
        gap: 10px;
    }
    
    .settings-group select {
        min-width: 100px;
        font-size: 11px;
    }
    
    .equalizer-toggle {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .equalizer-panel {
        max-width: 90%;
        padding: 20px;
    }
    
    .eq-presets {
        grid-template-columns: repeat(2, 1fr);
    }
}