/* Тест отступов */
/* * {
    outline: 1px solid rgb(255, 255, 255); 
} */

/* Основные стили */
body {
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
    margin: 0 auto;
    height: 100vh;
    background-color: black;
}

.overlay-frame {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Игнорирует клики */
    z-index: 1; /* Поверх всего контента */
    
    /* Основной эффект рамки */
    box-shadow: inset 0px 0px 115px 25px rgba(0, 0, 0, 0.7);
    
    /* Дополнительные параметры из вашего примера */
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
    margin: 0;
    background-color: transparent; /* Ваш черный фон не нужен */
}

/* Контейнер для обложки и плеера */
.player-wrapper {
    display: flex;
    justify-content: center; /* Центрируем содержимое */
    align-items: center; /* Выравниваем по вертикали */
    margin: 0 auto; /* Центрируем на странице */
    max-width: 960px; /* Ограничиваем ширину */
    position: relative; /* Для позиционирования обложки */
    padding-top: 10px;
    z-index: 6;
}

/* Блок обложки */
.cover-art {
    margin-right: 66%; /* Отступ между обложкой и плеером */
    background-color: #000000b2; /* Фон блока обложки (если обложка не загружена) */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Чтобы изображение не выходило за границы блока */
    position: absolute; /* Абсолютное позиционирование */
    border-radius: 10px;
    box-shadow: 0px 0px 0px 4px #00000045;
}

/* Обложка трека */
.cover-art img {
    height: 140px;
    width: 140px;
    border-radius: 15px;
    padding: 6px 8px 8px 8px;
    object-fit: cover;
}


/* Общие стили для .bg-grad */
.bg-grad {
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 3s linear, filter 0.2s ease;
    background-size: cover;
    background-position: center;
    background-color: #000000;
}

.bg-grad.active {
    opacity: 1;
}

/* Стили для конкретных фоновых изображений */
.bg-grad.one {
    background: url(img/1/fon1.jpg) no-repeat center/cover;
}

.bg-grad.two {
    background: url(img/1/fon2.webp) no-repeat center/cover;
}

.bg-grad.three {
    background: url(img/1/fon3.webp) no-repeat center/cover;
}

.bg-grad.four {
    background: url(img/1/fon4.webp) no-repeat center/cover;
}
 
.bg-grad.five {
    background: url(img/1/fon5.jpg) no-repeat center/cover;
}
/*
.bg-grad.six {
    background: url(img/1/fon6.webp) no-repeat center/cover;
}

.bg-grad.seven {
    background: url(img/1/fon7.webp) no-repeat center/cover;
} */

.foreground-grad {
    position: fixed;
    z-index: 5;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 3s linear, filter 0.2s ease;
    background-size: cover;
    background-position: center;
    pointer-events:none;
    background-color: #000000;
}

.foreground-grad.active {
    opacity: 1;
}

/* Стили для конкретных фоновых изображений */
.foreground-grad.one {
    background: url(img/1/2/fon1.webp) no-repeat center/cover;
}

.foreground-grad.two {
    background: url(img/1/2/fon2.webp) no-repeat center/cover;
}

.foreground-grad.three {
    background: url(img/1/2/fon3.webp) no-repeat center/cover;
}

.foreground-grad.four {
    background: url(img/1/2/fon4.webp) no-repeat center/cover;
}
 
.foreground-grad.five {
    background: url(img/1/2/fon5.webp) no-repeat center/cover;
}
/* 
.foreground-grad.six {
    background: url(img/1/fon6.webp) no-repeat center/cover;
}

.foreground-grad.seven {
    background: url(img/1/fon7.webp) no-repeat center/cover;
} */



/* анимация снежинок в окнах плеера */  
#snow {padding-top: 2px; background-image: url("img/3.png"), url("img/5.png"), url("img/1.png"); 
-webkit-animation: snow 20s linear infinite;-moz-animation: snow 20s linear infinite;-ms-animation: snow 20s linear infinite;animation: snow 20s linear infinite;}
@keyframes snow {0% {background-position: 0px 0px, 0px 0px, 0px 0px;} 
100% {background-position: 500px 1000px, 400px 400px, 300px 300px;}}
@-moz-keyframes snow {0% {background-position: 0px 0px, 0px 0px, 0px 0px;} 
100% {background-position: 500px 1000px, 400px 400px, 300px 300px;}}
@-webkit-keyframes snow {0% {background-position: 0px 0px, 0px 0px, 0px 0px;} 
100% {background-position: 500px 1000px, 400px 400px, 300px 300px;}}
@-ms-keyframes snow {0% {background-position: 0px 0px, 0px 0px, 0px 0px;} 
100% {background-position: 500px 1000px, 400px 400px, 300px 300px;}}


/* Блок плеера */
.audio-player-cont {
    background-color: #000000b2;
    border-radius: 10px;
    width: 450px;
    box-shadow: 0px 0px 0px 4px #00000045;
    color: rgb(255, 255, 255);
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    height: 155px;
    margin: 0 auto; /* Центрируем плеер */
    z-index: 2;
}

/* Блок плейлиста */
.playlist {
    background-color: #000000b2;
    border-radius: 10px;
    width: 450px;
    box-shadow: 0px 0px 0px 4px #00000045;
    color: rgb(255, 255, 255);
    font-family: Roboto;
    font-size: 14px;
    margin: 14px auto; /* Центрируем плейлист */
    transition: .5s;
    opacity: 0;
    visibility: hidden;
    z-index: 2;
}

.playlist.vispl {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
    z-index: 6;
    position:relative;
}

.playlist .playlist__title {
    text-align: center;
    background-color: #6b05ff69;
    width: 100px;
    margin: auto;
    border-radius: 5px;
    line-height: 15px;
    margin-top: 5px;
    padding: 5px;
}

.playlist ol {
    margin: auto;
    padding: 5px 10px 5px 25px;
    background-color: #000000c4;
    border-radius: 5px;
    margin: 5px;
    height: 400px;
    overflow-y: scroll;
}

.playlist ol::-webkit-scrollbar {
    width: 5px;
}

.playlist li {
    line-height: 1.5; /* Межстрочное расстояние */
    border-bottom: 1px solid #ffffff54;
    background-color: rgba(255, 0, 0, 0);
    transition: .4s ease .1s;
    color: rgb(255, 255, 255);
}

.playlist li.now,
.playlist li.now:hover,
.playlist li.now:active
 {
    border-bottom: 1px solid #ffffffd2;
    background-color: rgba(119, 0, 255, 0.42);
    cursor: default;
}

.playlist li:hover, 
.playlist li:active {
    border-bottom: 1px solid #ffffff75;
    background-color: rgba(218, 218, 218, 0.226);
    cursor: pointer;
}


.logo {
    float: left;
    text-align: center;

}

.logo__img {
    width: 110px;
    height: 110px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    height: 110px;
}

#doc_time {
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.445);
    width: 75px;
    margin: 0 auto;
    color: white;
    font-family: 'Roboto';
    font-size: 13px;
    margin-top: 3px;
}

.player {
    padding-top: 5px;
}

.song-title {
    width: 310px;
    padding: 5px 5px 5px 5px;
    white-space: nowrap;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.445);
    border-radius: 5px;
    margin-top: 4px;
    display:flex;
}

.song-slider {
    width: 310px;
    transition: .3s;
}

.current-time {
    float: left;
    font-size: 10px;
    
}

.duration {
    float: right;
    font-size: 10px;
    margin-right: 10px;
}

.current-time, .duration {
    background-color: rgba(0, 0, 0, 0.514);
    border-radius: 2px;
    padding: 1px;
}

.controllers {
    clear: right;
    display: flex;
    justify-content: space-evenly;
    align-content: center;
    margin: 0 auto;
    text-align: center;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
}

.centr {
    vertical-align: middle;
}

.volume-slider{
    width: 80px;
    margin: 5px auto;
    height: 25px;
}

.led1 {
    margin-left: 3px;
    cursor: pointer;
    transition: 0.2s linear;
    border: 3px solid rgb(0, 0, 0);
    border-radius: 50%;
}

.led1:hover {
    filter: sepia(1) hue-rotate(150deg);
}

.led1._active {
    filter: invert(100%);
}

.button {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.685);
    padding: 0.1em 0.4em;
    border-radius: .3em;
    color: rgb(0, 0, 0);
    float: right;
}

.button:hover {
    background: #ff000080;
    padding: 0.15em 0.4em;
    border-radius: .3em;
    color: rgb(255, 255, 255);

}

.upload_files button {
    text-decoration: none;
}

.ajax-reply {
    text-align: center;
}

.wrapper {
    padding: 5px;
    border-radius: 5px;
    background: #000000c4;
    margin: 5px;
}

.caver {
    height: 90px;
    border-radius: 10px;
    float: left;
    padding: 5px;
}

.caver:hover {
    padding: 5px;
    border: 2px rgba(0, 0, 0, 0.658);
    transform: scale(2);
    transition: 1s;
}

.cav {
    margin-left: 5px;
    height: 100px;
    margin-right: 5px;
    border-radius: 5px;
    background: #000000de;
}

.cavtext {
    height: 85px;
    font-size: 13px;
    padding: 5px;
    overflow-y: scroll;
    margin-top: 3px;
    font-family: Arial, Helvetica, sans-serif;
}

body.security {
    background: url(img/1/fon2.webp) no-repeat;
    top: 25%;
    left: 50%;
    transform: translate(-50%);
    position: absolute;
    background-size: 100%;
    font-family: sans-serif;
    overflow:hidden
}

.login-box {
    width: 400px;
    padding: 40px;
    background-color: rgba(0, 0, 0, .5);
    box-sizing: border-box;
    box-shadow: 0 15px 25px rgba(0, 0, 0, .6);
    border-radius: 10px;
    box-shadow: inset 0px 0px 115px 25px black;
}

.login__title {
    margin: 0 0 30px;
    padding: 0;
    color: #ffffff;
    text-align: center;
}

.user-box {
position: relative;
}

.user-box input {
width: 100%;
padding: 10px 0;
font-size: 16px;
color: #fff;
margin-bottom: 30px;
border: none;
border-bottom: 1px solid #fff;
outline: none;
background-color: transparent;
}

.user-box label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px 0;
    font-size: 16px;
    color: #fff;
    transition: .5s;
    cursor: pointer;
    margin-left: 5px;
}

.user-box input:focus ~ label,
.user-box input:active ~ label,
.user-box input:valid ~ label,
.user-box input:hover ~ label {
    top: -30px;
    left: 0;
    color: #ffffff;
    font-size: 12px;
}

.user-submit {
position: relative;
display: block;
padding: 10px 20px;
color: #ffffff;
font-size: 16px;
text-decoration: none;
text-transform: uppercase;
overflow: hidden;
transition: .5s;
letter-spacing: 2px;
background: black;
border-color: rgba(255, 0, 0, 0.438);
border-radius: 5px;
margin: 0 auto;
}

.user-submit:hover {
background-color: #f40303;
color: #fff;
border-radius: 5px;
box-shadow: 0 0 5px #f40303, 0 0 5px #f40303, 0 0 25px #f40303, 0 0 50px #f40303, 0 0 100px #f40303;
}

.user-submit span{
    position: absolute;
    display: block;
}

.logo__img img,
.logo__img .loader { 
    transition: .5s;
    opacity: 1;
    visibility: visible;
    height: 100px;
}
.logo__img._hide img,
.logo__img._hide .loader { 
    opacity: 0.1;
    visibility: hidden;
}

.site-footer {
    position: fixed; /* Фиксированное положение */
    bottom: 0; /* Прижимаем к низу */
    left: 0;
    width: 100%; /* На всю ширину */
    background-color: rgba(0, 0, 0, 0.7); /* Полупрозрачный чёрный фон */
    color: #fff; /* Белый текст */
    text-align: center; /* Выравнивание по центру */
    padding: 4px 0; /* Отступы сверху и снизу */
    font-family: 'Roboto', sans-serif; /* Шрифт, как у тебя в проекте */
    z-index: 1000; /* Чтобы подвал был поверх других элементов */
    border-top: 1px solid;
    border-color: #0000005e;

}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-content: flex-end;
    width: 200px;
    height: 20px;
    line-height: 0.9;
}

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Чтобы не блокировать клики */
    z-index: 100; /* Поверх других элементов */
}

/* Снежинки */
@keyframes snowflakeFall {
    0% {
        transform: translate(0px, 0px); /* Начальная позиция */
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        transform: translate(500px, 1000px); /* Конечная позиция для первой группы */
    }
}

@keyframes snowflakeFall2 {
    0% {
        transform: translate(0px, 0px); /* Начальная позиция */
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    100% {
        transform: translate(400px, 400px); /* Конечная позиция для второй группы */
    }
}

@keyframes snowflakeFall3 {
    0% {
        transform: translate(0px, 0px); /* Начальная позиция */
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
    100% {
        transform: translate(300px, 300px); /* Конечная позиция для третьей группы */
    }
}

.snowflake {
    position: absolute;
    top: -10%;
    color: white;
    user-select: none;
    pointer-events: none;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* Применяем разные анимации для разных групп снежинок */
.snowflake:nth-child(3n + 1) {
    animation-name: snowflakeFall;
}

.snowflake:nth-child(3n + 2) {
    animation-name: snowflakeFall2;
}

.snowflake:nth-child(3n + 3) {
    animation-name: snowflakeFall3;
}

.snowflake {
    position: absolute;
    top: -5%;
    color: white;
    user-select: none;
    pointer-events: none;
    animation-name: fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.snowflakes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4; /* Снежинки перед вторым фоном, но за плеером */
    overflow: hidden; /* Чтобы снежинки не выходили за пределы контейнера */
    pointer-events: none;
}

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

.snowflake {
    animation: fall linear infinite, fade linear infinite;
}

/* Стили для кнопок админа */
.admin-buttons {
    display: inline-block;
    margin-left: 15px;
}

.delete-btn {
    background: rgba(255, 0, 0, 0.3);
    border: none;
    border-radius: 3px;
    color: white;
    cursor: pointer;
    font-size: 12px;
    padding: 2px;
    transition: background 0.3s;
}

.delete-btn:hover {
    background: rgba(255, 0, 0, 0.8);
}

/* Стили для длинных названий (вместо <marquee>) */
.marquee-container {
    display: inline-block;
    max-width: 250px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Анимация для длинных названий */
@keyframes marquee-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.marquee-container:hover {
    animation: marquee-scroll 10s linear infinite;
    text-overflow: clip;
}

.download-btn {
    background: rgba(0, 150, 0, 0.3);
    border: none;
    border-radius: 3px;
    color: white;
    cursor: pointer;
    font-size: 12px;
    padding: 2px;
    transition: background 0.3s;
}

.download-btn:hover {
    background: rgba(0, 150, 0, 0.8);
}

/* Стили для кнопок управления */
.player-controls {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1000;
    display: flex;
    gap: 5px;
}

.control-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.control-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Иконка для выхода из полноэкранного режима */
.fullscreen .control-btn#toggleFullscreen i {
    transform: rotate(180deg);
}

/* Стили для скрытого интерфейса */
.ui-hidden .player-wrapper,
.ui-hidden .playlist,
.ui-hidden .site-footer {
    display: none;
}

.ui-hidden .player-controls {
    top: 10px;
    right: 10px;
}

.ui-hidden .control-btn#toggleUi i::before {
    content: "\f06e"; /* Иконка открытого глаза */
}

.control-btn {
    background: rgba(0,0,0,0.3);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(0,0,0,0.5);
    transform: scale(1.1);
}

.loader1.loader div {
    box-sizing: border-box;
}

.loader {
    position: relative;
    margin: 0 auto;
    width: 50px;
    height: 50px;
    display: block;
    overflow: hidden;
    box-sizing: border-box;
}

.logo__img .loader {
width: 100px;
height: 100px;
}

.loader div {
    height: 100%;
}

/* loader 1 */
.loader1,
.loader1 div {
    border-radius: 50%;
    padding: 1px;
    border: 2px solid #000;
    border-top-color: rgb(94, 0, 172);
    border-bottom-color: rgba(0, 57, 143, 0.993);
}

.logo__img .loader1,
.logo__img .loader1 div {
    transition: 0;
    opacity: 1;
    border: 1px solid #000;
    border-top-color: rgba(0, 0, 0, 0.445);
    border-bottom-color: rgb(0, 0, 0);
    background: #000000b3;
    box-shadow: 1px 1px 5px 1px #0000008e;
}   


/* Вложенные элементы лоадера */
.loader1 div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Центрируем вложенные элементы */
    border-radius: 50%;
    border: 22px solid #000;
    box-sizing: border-box;
    transition: all 0.2s ease; /* Плавное изменение размеров */
}

/* Исходные размеры элементов */
.loader1 div {
    width: 10%;
    height: 10%;
}

/* Цвета и тени */
.logo__img .loader1,
.logo__img .loader1 div {
    box-shadow: 1px 1px 10px 1px #2f00b3;
    background-image: url(audio.png);
    background-position: center center;
    background-size: 120px;
}

/* Динамическое изменение цвета */
.loader1.dynamic-color,
.loader1.dynamic-color div {
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

/* Общие стили для кнопок */
.control-btn {
    background: rgba(0,0,0,0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn {
    width: 40px;
    height: 40px;
}

/* Темная тема (style2.css) */
.control-btn {
    color: #fff;
    background: rgba(255,255,255,0.1);
}
.control-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}
.control-btn i.active {
    color: #4fc3f7;
    text-shadow: 0 0 8px currentColor;
}

/* Иконки */
.control-btn i {
    font-size: 16px;
}
.play-btn i {
    font-size: 18px;
}

/* Ползунок громкости */
.volume-slider {
    width: 80px;
    margin: 0 5px;
}
/* Мобильная адаптация */
@media (max-width: 768px) {
    /* Возвращаем кнопки управления в виде сетки 2x2 */
    .player-controls {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 8px;
        top: 10px;
        right: 10px;
        width: auto;
        z-index: 1000;
    }

    .control-btn {
        width: 42px !important;
        height: 42px !important;
        margin: 0;
        font-size: 18px;
    }
    
    /* Центрируем обложку */
    .player-wrapper {
        flex-direction: column;
        padding-top: 5px;
        max-width: 100%;
    }
    
    .cover-art {
        position: relative;
        margin: 0 auto 10px;
        width: 120px;
        height: 120px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .cover-art img {
        height: 100px;
        width: 100px;
        padding: 5px;
    }
    
    /* Убираем логотип и время */
    .logo {
        display: none;
    }
    
    #doc_time {
        display: none;
    }
    
    /* Оптимизация плеера */
    .audio-player-cont {
        width: 95%;
        max-width: 400px;
        height: auto;
        padding: 10px 0;
        margin: 0 auto;
    }
    
    .player {
        padding-top: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .song-title {
        width: 98%;
        text-align: center;
        font-size: 14px;
        margin-top: 5px;
    }
    
    .song-slider {
        width: 98%;
    }
    
    /* Улучшаем кнопки управления */
    .controllers {
        width: 100% !important;
        margin-top: 5px;
        justify-content: center;
        gap: 8px;
    }
    
    .control-btn {
        width: 40px !important;
        height: 40px !important;
        margin: 0;
    }
    
    .play-btn {
        width: 50px !important;
        height: 50px !important;
    }
    
    .volume-slider {
        width: 80px;
        margin: 0 5px;
    }
    
    /* Оптимизация плейлиста */
    .playlist {
        width: 95%;
        max-width: 400px;
        margin: 10px auto;
        border-radius: 10px;
    }
    
    .playlist__title {
        padding: 8px;
    }
    
    .playlist ol {
        height: 50vh;
        padding-left: 20px;
        font-size: 14px;
    }
    
    .footer-content {
        font-size: 12px;
    }

    /* Улучшение для очень маленьких экранов */
    @media (max-width: 480px) {
        .cover-art {
            width: 100px;
            height: 100px;
        }
        
        .cover-art img {
            height: 80px;
            width: 80px;
        }
        
        .song-title {
            font-size: 13px;
        }
        
        .control-btn {
            width: 36px !important;
            height: 36px !important;
        }
        
        .play-btn {
            width: 44px !important;
            height: 44px !important;
        }
        
        .volume-slider {
            width: 70px;
        }
    }
    
    /* Ландшафтная ориентация */
    @media (max-width: 768px) and (orientation: landscape) {
        .player-wrapper {
            flex-direction: row;
            align-items: flex-start;
        }
        
        .cover-art {
            margin: 0 15px 0 0;
        }
        
        .audio-player-cont {
            width: 70%;
        }
        
        .playlist {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 40vh;
            margin: 0;
            border-radius: 10px 10px 0 0;
        }
        
        .playlist ol {
            height: calc(40vh - 50px);
        }
    }
}

/* Адаптация страницы входа для мобильных */
@media (max-width: 768px) {
    body.security {
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        transform: none;
        position: static;
        padding: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        overflow: hidden;
    }
    
    .login-box {
        width: 90%;
        max-width: 350px;
        padding: 25px;
        margin: 0 auto;
        box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    }
    
    .login__title {
        font-size: 24px;
        margin: 0 0 20px;
    }
    
    .user-box input {
        font-size: 14px;
        padding: 12px 0;
        margin-bottom: 25px;
    }
    
    .user-box label {
        font-size: 14px;
        padding: 12px 0;
    }
    
    .user-box input:focus ~ label,
    .user-box input:active ~ label,
    .user-box input:valid ~ label,
    .user-box input:hover ~ label {
        top: -25px;
        font-size: 12px;
    }
    
    .user-submit {
        padding: 8px 16px;
        font-size: 14px;
        margin-top: 10px;
    }
    
    /* Улучшение для очень маленьких экранов */
    @media (max-width: 480px) {
        .login-box {
            padding: 20px 15px;
            width: 95%;
        }
        
        .login__title {
            font-size: 22px;
            margin-bottom: 15px;
        }
        
        .user-box input {
            padding: 10px 0;
            margin-bottom: 20px;
        }
        
        .user-submit {
            padding: 7px 14px;
            font-size: 13px;
        }
    }
    
    /* Пейзажная ориентация */
    @media (max-width: 768px) and (orientation: landscape) {
        body.security {
            padding: 10px;
        }
        
        .login-box {
            max-width: 320px;
            padding: 20px;
        }
        
        .user-box input {
            padding: 10px 0;
            margin-bottom: 20px;
        }
    }
}

/* Скрываем снежинки на мобильных устройствах */
@media (max-width: 768px) {
    .snowflakes {
        display: none;
    }
    
    /* Также скроем снег в плеере */
    .cover-snow {
        display: none;
    }
    
    /* Отключаем анимацию снега */
    #snow {
        animation: none !important;
        background-image: none !important;
    }
}

@media (max-width: 768px) {
    .footer-content br {
        display: none;
    }
    
    .footer-content {
        white-space: nowrap;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
        line-height: 1.3;
    }
}