/* Стили для контейнера и общего оформления */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #fff;
    background: #000;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1;
}

.post-media {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Стили для контейнера аудио */

/* Стили для стандартного аудиоплеера */
audio {
    width: 100%;
    max-width: 600px;
    margin: 0 auto; /* Центрирование по горизонтали */
    display: inline-block; /* Чтобы margin: 0 auto работал */
}



@media (min-width: 992px) {
    .post-media {
        max-width: 60%; /* Уменьшите значение для уменьшения размера */
        height: auto;
    }
}


/* Видео-фон */
.video-background, .gif-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.static-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

/* Шапка сайта */
header {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header h1 {
    font-size: 24px;
    margin: 0;
    color: #fff;
    flex: 1;
}

/* Стили для гамбургер-меню */
.hamburger-menu {
    display: none;
    cursor: pointer;
    z-index: 20;
    margin-left: 0px;
}

.hamburger-menu svg {
    fill: #fff;
}

/* Стили навигации */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
}

nav ul li a:hover {
    text-decoration: underline;
}

nav ul.collapsed {
    display: none;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.7);
    position: absolute;
    top: 60px; /* Отступ от верхнего края */
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    z-index: 9;
    padding: 20px;
    transition: all 0.3s ease-in-out;
}

nav ul.collapsed li {
    margin: 15px 0;
}

/* Основное содержимое */
main {
    padding: 20px;
    flex: 1;
}

/* Футер */
footer {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    position: relative;
}

/* Общие стили для иконок */
#toggle-music img,
#toggle-background img {
    border: none;
    outline: none;
    transition: all 0.3s ease;
}

/* Стили при наведении */
#toggle-music:hover img,
#toggle-background:hover img {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* Уберите стили по умолчанию для ссылок */
#toggle-music,
#toggle-background {
    text-decoration: none;
    outline: none;
    border: none;
    display: inline-block;
    vertical-align: middle;
    padding: 0;
    margin: 0;
    background: transparent;
}


/* Медиа-запросы для адаптации */
@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
    }

    nav ul {
        display: none;
    }

    nav ul.collapsed {
        display: flex;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.7);
        position: fixed;
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        width: 70%;
        max-width: 300px;
        z-index: 9;
        padding: 20px;
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.5);
    }

    header h1 {
        font-size: 18px;
    }
    
    nav ul li a {
        font-size: 16px;
    }

    main {
        padding: 10px;
        margin-bottom: 70px; /* Сохраняем отступ под футер */
    }

    footer {
        font-size: 12px;
        position: fixed;
        margin-top: auto; /* Позволяет футеру оставаться внизу страницы */
        bottom: 0;
        width: 100%;
    }

}

@media (max-width: 480px) {
    header h1 {
        font-size: 16px;
    }
    
    nav ul li a {
        font-size: 14px;
    }

    footer {
        font-size: 12px;
        position: fixed;
        margin-top: auto; /* Позволяет футеру оставаться внизу страницы */
        bottom: 0;
        width: 100%;
    }

    main {
        padding: 8px;
        margin-bottom: 70px; /* Сохраняем отступ под футер */
        flex: 1;
    }

}


