:root {
    --bg-main: #0a0a0c;
    --bg-secondary: #121215;
    --text-main: #e0e0e0;
    --text-muted: #888;
    --accent-red: #d32f2f;
    --neon-red: rgba(211, 47, 47, 0.8);
    --font-main: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent; /* Убирает синий квадрат при тапе на мобилках */
}

/* ================= ЭФФЕКТ СВЕЧЕНИЯ ЭКРАНА ================= */
#edge-glow {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none; /* Пропускает клики сквозь себя */
    z-index: 9999;
    box-shadow: inset 0 0 0px var(--neon-red);
    transition: box-shadow 0.4s ease;
}

/* Классы, которые будет добавлять JS */
#edge-glow.glow-tap {
    box-shadow: inset 0 0 40px rgba(211, 47, 47, 0.5);
}
#edge-glow.glow-scroll {
    box-shadow: inset 0 0 80px rgba(211, 47, 47, 0.9);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--accent-red); border-radius: 4px; }

.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* Анимации */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

@keyframes breatheNeon {
    0% { box-shadow: 0 0 5px var(--neon-red); border-color: transparent; }
    50% { box-shadow: 0 0 20px var(--neon-red), inset 0 0 10px var(--neon-red); border-color: var(--accent-red); }
    100% { box-shadow: 0 0 5px var(--neon-red); border-color: transparent; }
}

@keyframes pulseBtn {
    0% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(211, 47, 47, 0); }
    100% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0); }
}

/* Меню */
.navbar {
    position: fixed; top: 0; width: 100%; padding: 20px 50px;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(10, 10, 12, 0.85); backdrop-filter: blur(10px);
    z-index: 1000; transition: 0.3s ease;
}
.logo { font-size: 26px; font-weight: 800; letter-spacing: 1px; color: #fff; white-space: nowrap; }
.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a { color: var(--text-main); text-decoration: none; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; }
.nav-links a:hover { color: var(--accent-red); text-shadow: 0 0 8px var(--neon-red); }
.streaming-icons a { color: var(--text-muted); font-size: 18px; margin-left: 15px; transition: 0.3s; }
.streaming-icons a:hover { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.8); }

/* HERO */
.hero-section { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.parallax-bg { position: absolute; top: -10%; left: 0; width: 100%; height: 120%; background: linear-gradient(to bottom, rgba(10,10,12,0.4), rgba(10,10,12,0.9)), url('../img/hero-bg.jpg') center/cover no-repeat; z-index: 1; }
.nature-particles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.particle { position: absolute; background: rgba(255, 255, 255, 0.15); border-radius: 50%; animation: floatUp 15s infinite linear; }
@keyframes floatUp { 0% { transform: translateY(100vh) scale(0); opacity: 0; } 20% { opacity: 0.8; } 80% { opacity: 0.3; } 100% { transform: translateY(-10vh) scale(1.5); opacity: 0; } }

.hero-content { position: relative; z-index: 3; padding: 0 20px; width: 100%; }
.hero-content h1 { font-size: 4rem; font-weight: 800; margin-bottom: 20px; color: #fff; text-transform: uppercase; letter-spacing: 3px; text-shadow: 0 5px 15px rgba(0,0,0,0.8); }
.hero-content p { font-size: 1.1rem; color: #bbb; margin-bottom: 40px; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }

.btn-glow { font-family: var(--font-main); display: inline-block; padding: 15px 40px; background: transparent; color: #fff; text-decoration: none; font-size: 1rem; font-weight: 600; text-transform: uppercase; border: 1px solid var(--accent-red); transition: 0.4s; cursor: pointer; border-radius: 4px;}
.btn-glow:hover { background: var(--accent-red); box-shadow: 0 0 20px var(--neon-red); }
.pulse-btn { animation: pulseBtn 2s infinite; }

/* Треки и остальное... (Оставил без изменений для ПК) */
.tracks-section { padding: 80px 0; background: var(--bg-main); position: relative; z-index: 10; }
.section-title { font-size: 2.5rem; margin-bottom: 50px; text-align: center; font-weight: 300; }
.neon-text { font-weight: 800; color: #fff; text-shadow: 0 0 15px var(--neon-red); }
.category-block { margin-bottom: 50px; }
.category-block h3 { font-size: 1.3rem; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; color: #fff; }
.subtitle { font-size: 0.8rem; color: var(--accent-red); margin-left: 10px; text-transform: uppercase; letter-spacing: 1px; }
.track-list { list-style: none; }
.track-item { display: flex; align-items: center; padding: 15px 20px; margin-bottom: 10px; background: var(--bg-secondary); border-radius: 8px; transition: 0.3s; border-left: 3px solid transparent; cursor: pointer; }
.track-item:hover { transform: translateX(8px); background: #1a1a1e; border-left: 3px solid var(--accent-red); }
.track-item:hover .play-btn { opacity: 1; color: var(--accent-red); text-shadow: 0 0 10px var(--neon-red); }
.track-item.playing { background: #1a1a1e; border-left: 3px solid var(--accent-red); animation: breatheNeon 2s infinite; }
.track-item.playing .play-btn { opacity: 1; color: #fff; text-shadow: 0 0 15px var(--neon-red); }
.track-item.playing .track-name { color: #fff; font-weight: 600; }
.track-num { font-size: 0.9rem; color: var(--text-muted); width: 40px; font-weight: 600; }
.track-name { flex-grow: 1; font-size: 1rem; color: #ccc; transition: 0.3s; }
.play-btn { opacity: 0.3; transition: 0.3s; font-size: 1.2rem; }
.top-3 .track-item { padding: 20px; background: linear-gradient(90deg, var(--bg-secondary) 0%, rgba(211, 47, 47, 0.08) 100%); }

.vote-section { padding: 80px 0; background: linear-gradient(0deg, var(--bg-main) 0%, #111 100%); text-align: center; }
.vote-desc { color: var(--text-muted); margin-bottom: 40px; }
.vote-form { max-width: 400px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.custom-select { width: 100%; padding: 15px; background: var(--bg-main); color: #fff; border: 1px solid rgba(255,255,255,0.2); border-radius: 5px; font-family: var(--font-main); outline: none; transition: 0.3s; }
.custom-select:focus { border-color: var(--accent-red); box-shadow: 0 0 15px rgba(211, 47, 47, 0.4); }
.hidden-message { display: none; margin-top: 20px; color: #fff; text-shadow: 0 0 10px var(--neon-red); font-weight: 600; font-size: 1.2rem; }
footer { text-align: center; padding: 25px; background: #050505; color: #444; font-size: 0.8rem; }

/* ================= АДАПТИВНОСТЬ ДЛЯ СМАРТФОНОВ ================= */
@media (max-width: 768px) {
    /* Меню */
    .navbar { padding: 15px; flex-direction: column; background: transparent; backdrop-filter: none; border: none; box-shadow: none !important;}
    .logo { font-size: 20px; text-align: center; width: 100%; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
    .nav-links { display: none; } /* На мобилках скрываем ссылки меню, чтобы не закрывали лицо */
    .streaming-icons { display: none; }

    /* ГЛАВНЫЙ ЭКРАН: Освобождаем центр для лица */
    .hero-section {
        align-items: stretch; /* Позволяем контенту растянуться на 100% высоты */
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        justify-content: space-between; /* Распихивает текст вверх, кнопку вниз */
        padding-top: 80px; /* Отступ сверху под логотип */
        padding-bottom: 40px; /* Отступ снизу для кнопки */
        height: 100%; /* Занимает весь экран */
    }

    .hero-text-wrapper {
        margin-top: 20px; /* Немного опускаем текст от логотипа */
    }

    .hero-content h1 { font-size: 2rem; letter-spacing: 1px; margin-bottom: 10px; }
    .hero-content p { font-size: 0.95rem; line-height: 1.4; padding: 0 10px; }
    
    /* Кнопка в самом низу на всю ширину */
    #randomTrackBtn {
        width: 100%;
        margin-top: auto; /* На всякий случай выталкиваем в самый низ */
        font-size: 1.1rem;
        padding: 18px 0;
        background: rgba(10, 10, 12, 0.5); /* Полупрозрачный фон для читаемости */
        backdrop-filter: blur(5px);
    }

    .section-title { font-size: 1.8rem; }
    .track-item { padding: 15px; }
    .track-name { font-size: 0.9rem; line-height: 1.3; padding-right: 10px; }
    .track-num { width: 30px; }
}