::-webkit-scrollbar {
    display: none;
}

html {
    background-color: #080808 !important; /* Подложка под слои */
    height: 100%;
}

/* === КОРНЕВАЯ СТРУКТУРА (Без скролла на ПК) === */
body {
    scrollbar-width: none;
    font-family: 'Doto', sans-serif;
    color: white;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    background-color: #080808;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 20px; /* Отступы между Header, Main и Footer */
    background-color: transparent; /* ОЧЕНЬ ВАЖНО для слоев фона */
    overscroll-behavior: none;
}

a, button {
    -webkit-tap-highlight-color: transparent;
}

/* СТИЛИ ДЛЯ СЛОЕВ ФОНА */
.background-layer {
    position: fixed;
    top: -20vh;
    left: 0;
    right: 0;
    bottom: -20vh;
    width: 100%;
    height: 140vh;
    z-index: 0; /* Подняли выше, чтобы не пряталось за фоном HTML */
    pointer-events: none;
}

/* Базовые стили стеклянных панелей */
.header-wrapper, .container, .footer {
    position: relative;
    z-index: 1;
    background: rgba(30, 30, 30, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 15px;
    padding: 10px;
    box-sizing: border-box;
    width: 100%; 
}

.header-wrapper, .footer {
    flex: 0 0 auto;
}

/* --- ВЕРХНЯЯ ПАНЕЛЬ (Шапка) --- */
.header-wrapper {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0; 
}
.logo img {
    height: 60px; 
    width: auto;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.212));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.logo a:hover img {
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.308)) drop-shadow(0 0 16px rgba(255, 255, 255, 0.205));
    transform: scale(1.03);
}

.navigation {
    flex: 1; 
    display: flex;
    align-items: center;
    justify-content: center;
}
.navigation-text {
    width: 100%;
}
.navigation-textass {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.hamburger, .mobile-only, .mobile-title { 
    display: none; 
}

/* КНОПКИ НАВИГАЦИИ */
.navigation-text-color {
    position: relative;
    overflow: hidden;
    display: block;
    padding: 15px 30px;
    color: #e0e0e0;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    transition: all 0.3s ease;
}
.navigation-text-color:hover {
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.308)) drop-shadow(0 0 25px rgba(255, 255, 255, 0.5));
    transform: scale(1.03);
}

/* --- ЦЕНТРАЛЬНЫЙ КОНТЕЙНЕР (Заполняет все свободное место) --- */
.container {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: row; 
    gap: 15px;
    align-items: stretch; 
}

/* Левый блок с YouTube видео */
.baner {
    flex: 1.5;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    overflow: hidden;
    min-height: 0;
}
.baner iframe {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    border: none;
}

/* Правый блок с музыкой */
.banermusic {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 0;
}

/* Spotify: жестко фиксируем высоту */
.spotify-block {
    flex: 0 0 152px !important;
    height: 152px !important;
}

/* SoundCloud: забирает ВСЁ оставшееся пространство по высоте */
.soundcloud-block {
    flex: 1 1 0;
    min-height: 0;
    height: 100%;
}

.soundcloudshit {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}
.soundcloudshit iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* --- ПОДВАЛ (Footer) --- */
.footerlink {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    gap: 20px;
}
.footerinfo {
    display: flex;
    flex-direction: row;
    gap: 40px;
    text-align: left;
}
.footer-block {
    display: flex;
    flex-direction: column;
}
.footertext {
    font-size: 20px;
    color: rgb(255, 255, 255);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.footericongrup {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.iconsatings {
    width: 22px;
    transition: transform 0.2s ease;
}
.iconsatings:hover {
    transform: scale(1.2);
}

.footerxtane {
    align-self: center;
    transition: transform 0.2s ease;
}
.footerxtane:hover {
    transform: scale(1.03);
}



/* --- АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ (< 1024px) --- */
@media (max-width: 1024px) {
    /* Снимаем ограничения, разрешаем стандартный скроллинг страницы */
    body {
        position: relative; 
        top: auto; 
        left: auto; 
        right: auto; 
        bottom: auto;

        height: auto; 
        overflow: auto;
        min-height: 100vh;
    }

    .header-wrapper {
        position: fixed; /* Отрываем шапку от фона */
        top: 20px;
        left: 20px;
        width: calc(100% - 40px); /* 100% минус боковые отступы (20+20) */
        z-index: 1000;
    }

    /* === МОБИЛЬНОЕ МЕНЮ === */
    .logo { 
        order: 1; 
    }

    .mobile-title {
        display: block; 
        position: absolute; /* Отрываем текст от других элементов */
        left: 50%; /* Сдвигаем ровно на середину экрана */
        top: 40px; /* Ставим ровно по вертикальному центру (10px отступ + 30px половина логотипа) */
        transform: translate(-50%, -50%); /* Корректируем по центру самого слова */
        font-size: 30px; /* Размер шрифта (можешь поменять под себя) */
        font-weight: 900; /* Жирность шрифта Doto */
        text-transform: uppercase;
        color: white;
        letter-spacing: 2px; /* Немного раздвинем буквы для красоты */
        z-index: 5;
    }

    .hamburger {
        display: flex;
        order: 3;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 10;
    }

    .hamburger span {
        width: 100%;
        height: 3px;
        background-color: white;
        border-radius: 10px;
        transition: all 0.3s linear;
    }

    /* Анимация превращения в крестик */
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -8px); }

    /* Скрываем кнопки по умолчанию */
    .navigation-text-item {
        order: 4;
        width: 100%;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        margin-top: 0;
        /* 1. Анимируем только нужные свойства, а не "all", чтобы не трогать фильтры */
        transition: opacity 0.3s ease-in-out, max-height 0.3s ease-in-out, margin-top 0.3s ease-in-out;
        /* 2. Принудительно включаем аппаратное ускорение */
        will-change: opacity, max-height;
        backface-visibility: hidden;
        transform: translateZ(0);
    }

    /* Центрируем текст кнопок */
    .navigation-text-color {
        text-align: center;
        display: block;
    }

    .navigation-textass {
        gap: 0; 
    }

    /* Когда меню открыто — плавно показываем элементы */
    .navigation-textass.menu-open .navigation-text-item {
        opacity: 0.99;
        max-height: 100px; /* Достаточно чтобы вместить кнопку */
        margin-top: 10px;  /* Плавный отступ между кнопками */
    }


    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .container {
        flex: none;
        flex-direction: column; 
        height: auto;
        overflow: visible;
        margin-top: 100px; /* Добавляем отступ, равный высоте закрытой шапки */
    }
    
    .baner {
        flex: none;
        height: auto;
        width: 100%;
    }
    
    .baner iframe {
        height: auto; 
        aspect-ratio: 16 / 9;
    }

    .banermusic {
        flex: none;
        height: auto;
    }
    
    /* На телефоне Soundcloud даем фиксированную удобную высоту */
    .soundcloud-block {
        height: 400px;
        flex: none;
    }

    /* Футер перестраиваем под телефон (все в колонку) */
    .footerlink {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    .footerinfo {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    .footer-block {
        align-items: center;
    }
    .footerxtane {
        margin-top: 10px;
    }
}