body{
    scroll-behavior: smooth;
}

body::-webkit-scrollbar {
    width: 10px;               /* ширина scrollbar */
  }
  body::-webkit-scrollbar-track {
    background: #000000;        /* цвет дорожки */
  }
  body::-webkit-scrollbar-thumb {
    background-color: #BF17C2;    /* цвет плашки */
    border-radius: 10px;       /* закругления плашки */
    border: 2px solid black;  /* padding вокруг плашки */
  }

body{
    background: url(../img/background/main.png) no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    /* filter: brightness(30%); */
}

* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}
.press-start-2p-regular {
    font-family: "Press Start 2P", system-ui;
    font-weight: 400;
    font-style: normal;
  }

img{
    -webkit-user-drag: none;
}

body {
    background-color: #121212;
}

header{
    /* max-width: 1920px; */
    /* min-width: 1900px; */
    z-index: 1;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
    /* width: 100%; */
    /* max-height: 60px; */
    height: 7vh;
    background: linear-gradient(rgba(0, 0, 0, 0.9) 15%, rgba(0, 0, 0, 0.6) 100%);
    /* background-color: rgba(0, 0, 0, 0.2); */
    /* filter: blur(2px); */
}

@media (max-width: 991px){
    header{
        height: 10vh;
    }
}




header img{
    left: 4vw;
    width: 8vw;
    position: absolute;
    top: 0; bottom: 0;
    margin: auto;
}

@media(max-width: 600px){
    header img{
        margin: auto;
        left: 3vw;
        top: 0;
        bottom: 0;
        width: 30vw;
    }
}





@media only screen and (max-width: 991px){
    header input[type="search"]{
        display: none;
    }
}
.search-form button{
    background: none;
    border: none;
}




.search-button{
    position: absolute;
    top: 0; bottom: 0;
    margin: auto;
    right: 0;
    left: 40vw;
    cursor: pointer;
    height: 4.9vh;
    background-color: rgba(0, 0, 0, 0);
    padding: 0;
    border: none;

}

.search-form{
    position: relative;
    margin: auto;
    display: flex;
    align-items: center;
    margin-top: 1.1vh;
    margin-left: 27vw;
    width: 46vw;
    height: 4.9vh;
    background-image: url(../img/search2.png);
    background-size: cover;
    background-position: center;
}

@media(max-width: 600px){
    .search-form{
        background-image: none;
    }
}

@media(max-width: 600px){
    .search-form img{
        width: 57vw;
        left: 12.5vw;
        top: 3.5vh;
    }
}

.search-mobile{
    display: none;
}

@media(max-width: 600px){
    .search-mobile{ 
        display: block;

    }
}


input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

header input[type="search"]{
    position: absolute;
    left: 1vw;
            width: 44vw;
            height: 4vh;
            border: none;
            padding-left: 0;
            padding-right: 0;
            font-family: "Press Start 2P", system-ui;
            color: #fff;
            font-size: 16px;
            background-color: rgba(255, 255, 255, 0); /* Прозрачный фон */
            outline: none;
}

@media(max-width: 600px){
    header input[type="search"]{
        width: 53vw;
        height: 2.9vh;
        font-size: 9px;
        display: block;
        left: 14.5vw;
        top: 2.7vh;
        background: none;
        padding-left: 1vw;
        padding-right: 1vw;
    }
}

 

header .login-button{
    left: 91vw;
    position: absolute;
    top: 0; bottom: 0;
    margin: auto;
    cursor: pointer;
    border-radius: 3vh;
    /* border: solid 1px white; */
    /* background-color: #ffffff33; */
    /* font-family: "Press Start 2P", system-ui;
    text-align: center;
    color: #fff; */
    /* font-size: 90%; */
    width: 2.5vw;
    /* height:1.5vh; */
}

header .avatar-my a{

    position: absolute;

    width: 0;
    /* height: 3vh; */

    left: 83.5vw;
    top: 0; bottom: 0;
    margin: auto;
    color:white;
    font-size: 1.5vh;
}




header .user-info img{
    width:  2.5vw;
    height: 2.5vw;
    object-fit: cover;
    border-radius: 50%;

}

@media(max-width: 600px){
    header .avatar-my img{
        display: none;
    }
}

@media(max-width: 600px){
    header .friend-button-link img{
        display: none;
    }
}




header .user-info span{
    position: absolute;
    padding-top: 0.6vw;  
    padding-bottom: 0.5vw;
    top: 0; bottom: 0;
    margin: auto;
    color:white;
}

header .profile-link span:focus{
    background-color: #fff;
    color: #BF17C2;
}

header .friend-button{
    position: absolute;
    width: 2vw;
    margin: auto;
    left: 85vw;
}



.nav{
    display: flex;
    /* justify-content:space-evenly; */
    
}


nav{
    width: 100%;
    height: 10%;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    margin: auto;
    background-color: black;
    z-index: 1;
    display: none;
}

@media only screen and (max-width: 600px){
    nav{
        display:block ;
    }
}

@media only screen and (max-width: 600px){
    .mobile-nav{
        display: flex;
        flex-direction:row-reverse;
        justify-content:space-evenly;
        align-items: center;
        text-align: center;
        padding-top: 1vh;
    }
}


nav .login-button{
    /* left: 80vw; */
    /* position: absolute; */
    /* top: 0; bottom: 0;
    margin: auto; */
    cursor: pointer;
 
    /* border: solid 1px white; */
    /* background-color: #ffffff33; */
    /* font-family: "Press Start 2P", system-ui;
    text-align: center;
    color: #fff; */
    /* font-size: 90%; */
    width: 2.5vw;
    /* height:1.5vh; */
}

.login-button img{
    width:  7.9vw;
}

nav p{
    margin-top: 0.5vh;
    font-size: 1.1vh;
}

 .mobile-avatar-my a{

    /* position: absolute; */

    width: 0;
    /* height: 3vh; */

    /* left: 83.5vw; */
    top: 0; bottom: 0;
    /* margin: auto; */
    color:white;
    font-size: 1.5vh;
}

.mobile-user-info img{
    width:  10vw;
    height: 10vw;
    object-fit: cover;
    border-radius: 50%;
    border: solid 0.3vh #BF17C2;
}

nav .friend-button{
    width: 9.5vw;

}

nav .like-button{
    width: 9.5vw;
}

nav .main-button{
    width: 9.6vw;
}


.home-player-top{
    top: 0; left: 0; right: 0;
    margin: auto;
    border-bottom: solid 0.5vh #BF17C2;
    background: #000000;
    border-bottom-left-radius: 6vh;
    border-bottom-right-radius: 6vh;
    height: 55vh;
    overflow: hidden;
    position: absolute;
    width: 100%;
    display: block;
    unicode-bidi: isolate;
    cursor:auto;
}

@media only screen and (max-width: 991px) {
    .home-player-top{
        top: 12vh; left: 0; right: 0;
        margin: auto;
        border-bottom: none;
        box-shadow: 0 0 2vh rgba(0, 0, 0, 0.671);
        background: #000000;
        border-radius: 4vh;
        height: 55%;
        /* overflow: hidden; */
        position: absolute;
        width: 93%;
        display: block;
        /* unicode-bidi: isolate; */
        cursor: pointer;
    }
}

@media only screen and (max-width: 600px){
    .home-player-top{
        top: 12vh; left: 0; right: 0;
        margin: auto;
        border-bottom: none;
        box-shadow: 0 0 2vh rgba(0, 0, 0, 0.671);
        background: #000000;
        border-radius: 2vh;
        height: 30%;
        /* overflow: hidden; */
        position: absolute;
        width: 93%;
        display: block;
        /* unicode-bidi: isolate; */
        cursor: pointer;
    }
}






.home-player-top {
    .home-overlay, video {
        height: 100%;
        position: absolute;
        width: 100%;
        cursor:auto;
    }
}

/* @media only screen and (max-width: 991px) {
    .home-player-top {
        .home-overlay, video {
            height: 100%;
            position: absolute;
            top: 0;bottom: 0;
            left: 0; right: 0;
            margin: auto;
            width: 100%;
        }
    }
} */



.home-player-top {
    .home-overlay, img {
        height: 100%;
        position: absolute;
        width: 100%;
    }
}

.home-player-top {
    video {
        left: 0;
        object-fit: cover;
        top: 0;
        cursor:auto;
    }
}

.trailer {
    filter:opacity(50%);
    object-fit: contain;
    overflow-clip-margin: content-box;
    overflow: clip;
    cursor:auto;
}
  
.home-player-top {
    .home-title {
        display: flex;
        flex-direction: column;
        padding: 2vh 2vw;
        cursor:auto;
    }
}

@media only screen and (max-width: 991px) {
    .home-title {
        margin-bottom: 15vh;
    }
}

.home-player-top {
    & .home-title {
        h1 {
            margin-top: 16vh;
        }
    }
}

@media only screen and (max-width: 600px){
    .home-player-top {
        & .home-title {
            h1 {
                margin-top: 2.5vh;
            }
        }
    }}

    




.home-player-top {
    & .home-title {
        margin-left: 2vw;
    }
}

a, h1, h2, h3, h4, h5, h6, p {
    color: #fff;
    font-family: "Press Start 2P", system-ui;
    text-decoration: none;
}



.home-player-top h1 {
    filter: drop-shadow(0 0.5vh 0 #BF17C2);
    font-family: "Press Start 2P", system-ui;
    /* font-weight: 400; */
    /* font-style: normal; */
    letter-spacing: 0.2vw;
    display: block;
    font-size: 2vw;
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
}


@media only screen and (max-width: 600px){
    .home-player-top h1 {
        filter: drop-shadow(0 0.2vh 0 #BF17C2);
        font-family: "Press Start 2P", system-ui;
        /* font-weight: 400; */
        /* font-style: normal; */
        letter-spacing: 0.2vw;
        display: block;
        font-size: 3.5vw;

        unicode-bidi: isolate;
    }
}




.home-title p{
    width: 39%;
    letter-spacing: 0.1vw;
    color: #ffffffbe;
    font-family: "Courier New", system-ui;
    font-weight: bold;
    font-size:1vw;
    line-height: 2.2vh;
}


@media (max-width: 600px){
    .home-title p{
        width: 70%;
        letter-spacing: 0.2vw;
        font-size: 2vw;
        line-height: 1vh;
    }}





.home-player-top {
    .playButton.head {
        margin-bottom: 3vh;
        position: absolute;
        left: 1vw;
    }
}

@media only screen and (max-width: 991px) {
    .home-player-top {
        .playButton.head {
            display: none;
        }
    }
}

.actionButton.playButton, .actionButton.subscribeButton {
    margin-bottom: 2vh;
    margin-left: 3vw;
}

.actionButton.playButton {
    align-items: center;
    letter-spacing: 0.1vw;
    display: inline-flex;
    font-size: 0.7vw;
    transition: all 0.3s ease;
}

.actionButton.playButton:hover{
    filter: drop-shadow(0 0.3vh 0 #ffffff);
    margin-top: -2vh;
}

.actionButton.playButton:active{
    filter: drop-shadow(0 0 0 #ffffff);
    margin-top: -1.3vh;
}

@media (max-width: 720px) {
    .home-overlay {
        .actionButton {
            margin-bottom: 3vh;
            right: 3vw;
        }
    }
}

.actionButton {
    width: 9%;
    height: 8%;
    /* background-color: #BF17C2; */
    /* border: none;
    border-radius: 4vh;
    color: #fff; */
    cursor: pointer;
    display: inline-flex;
    font-family: "Press Start 2P", system-ui;
    font-size: 1vw;
    /* font-weight: 700; */
    margin-top: -1.5vh;
    /* padding: 1.7vh 1.5vw; */
    text-decoration: none;
    transition: all .2s ease-in-out;
}

a:-webkit-any-link {
    color: -webkit-link;
    cursor: pointer;
    text-decoration: none;
}




.anime-container img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    border-bottom: solid 0.5vh #BF17C2;
}

.anime-item:hover img {
    filter: blur(1px) brightness(30%);
    transition: all 0.3s ease;

    transform: translateY(-10px); /* Поднимаем блок при наведении */
}

@media only screen and (max-width: 768px){
    .anime-item:hover img{
        transform: none;
        transition: none;
        filter: none;
    }
}

.overlay {
    position: absolute;
    margin-top: -30vh;
    /* margin-left: 0.4vw; */
    padding-left: 0.2vw;
    padding-top: 1vh;
    /* top: 0; */
    /* left: 4vh; */
    width: 11.72%;
    /* height: 11vh; */
    border-bottom-right-radius: 3vh;
    border-bottom-left-radius: 3vh;
    /* background-color: rgba(0, 0, 0, 0.6);  */
    color: white;
    display: flex;
    filter: drop-shadow(0 0.3vh 0 #BF17C2);
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0; /* Начальное состояние - невидимый */
    transition: opacity 0.3s ease; /* Плавное появление */
    font-size: 18px;
    font-weight: bold;
}



.anime-item:hover .overlay {
    opacity: 1; /* Оверлей становится видимым */
    
}

@media only screen and (max-width: 768px){
    .overlay{
        display: none;
    }
}


.anime-name{
    width: calc((100% - 60px) / 7); /* 7 постеров в ряд с учетом gap */
    min-width: 150px;
    height: 200px;
    background-color: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .anime-name {
        width: calc((100% - 20px) / 3); /* 3 постера в ряд */
    }
}

.anime img{
    /* padding-top: 2vh; */
    margin-top: 5vh;
}

.anime{
    display: flex;
    gap: 10px;
    transition: transform 0.3s ease-in-out;
    overflow-x: auto;
    scroll-behavior: smooth;
    background-color: rgba(27, 27, 27, 0.6);
    box-shadow: 0 0 0.3vw #0000005e;
    height: 45vh;
}

.anime::-webkit-scrollbar {
    display: none;
}

.anime-container
 h1{
    filter: drop-shadow(0 0.5vh 0 #BF17C2);
    font-family: "Press Start 2P", system-ui;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.2vw;
    display: block;
    font-size: 1.8vw;
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
    margin-left: 2.3%;
}

@media only screen and (max-width: 600px){
    .anime-container
        h1{
            filter: drop-shadow(0 0.3vh 0 #BF17C2);
            font-family: "Press Start 2P", system-ui;
            font-weight: 400;
            font-style: normal;
            letter-spacing: 0.2vw;
            display: block;
            font-size: 5vw;
            margin-block-start: 0.67em;
            margin-block-end: 0.67em;
            margin-inline-start: 0px;
            margin-inline-end: 0px;
            unicode-bidi: isolate;
            margin-left: 2.3%;
        }
}





.anime{
    border-radius: 1vh;
    margin-top: 4vh;
    display: flex;
    gap: 3.5vh; /* Отступ между постерами */
    justify-content: center; /* Центрирование по горизонтали */
    flex-wrap: wrap; /* Перенос на новую строку при необходимости */
    /* display: inline-block; Чтобы блок не занимал всю ширину */
    /* overflow: hidden; */
    /* transition: transform 0.3s ease; */
}

@media only screen and (max-width: 991px){
    .anime{
        width: 100%;
}}



.anime img{
    cursor: pointer;
    /* width: 12vw; */
    border-radius: 3vh;
    border-bottom: solid 0.5vh #BF17C2 ;
    display: block;
}


@media only screen and (max-width: 991px){
    .anime img{
        border-radius: 1.5vh;
        border-bottom: solid 0.3vh #BF17C2 ;
}}




.popular {
    margin-top: 10vh;
}

@media (max-width: 600px){
    .popular {
        margin-top: 6vh;
    }
}



.main .popular
 h1{
    filter: drop-shadow(0 3px 0 #BF17C2);
    font-family: "Press Start 2P", system-ui;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.2vw;
    display: block;
    font-size: 1.8vw;
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
    margin-left: 2.3%;

}

@media only screen and (max-width: 991px){
    .main .popular
            h1{
                filter: drop-shadow(0 0.3vh 0 #BF17C2);
                font-family: "Press Start 2P", system-ui;
                font-weight: 400;
                font-style: normal;
                letter-spacing: 0.2vw;
                display: block;
                font-size: 4vw;
                margin-block-start: 0.67em;
                margin-block-end: 0.67em;
                margin-inline-start: 0px;
                margin-inline-end: 0px;
                unicode-bidi: isolate;
                margin-left: 2.3%;
}}









.ongoing {
    margin-top: 10vh;
}

@media only screen and (max-width: 991px){
    .ongoing {
        margin-top: 6vh;
    }
}






@media only screen and (max-width: 991px){
    .anime-info {
        filter: drop-shadow(0 0.2vh 0 #BF17C2);
        color: #fff;
        /* height: 190px; */
        margin: 0.1vh 0.5vw;
        overflow: hidden;
        /* padding: 10px 0; */
        position: absolute;
        /* top: 0; */
    }
}




.overlay {
    line-height: 2.2vh;
    font-size: 0.9vw;

    font-weight: bold;
    unicode-bidi: isolate;
}

@media only screen and (max-width: 991px){
    .anime-info h3 {
        line-height: 1.8vh;
        display: block;
        font-size: 2.1vw;
        margin-block-start: 1em;
        margin-block-end: 1em;
        margin-inline-start: 0px;
        margin-inline-end: 0px;
        font-weight: bold;
        unicode-bidi: isolate;
    }
}





.anime-info:hover{
    transition: all .3s ease;
}



footer{
    z-index: 1;
    position: absolute;
    left: 0;
    right: 0;
    margin-top: 10%;
    background-color: rgba(0, 0, 0, 0.9);
    height: 8vh;
}

@media only screen and (max-width: 750px){
    footer{
        display: none;
    }
}



footer h1{
    margin-top: 3vh;
    margin-left: 3vw;
    font-size: 1.3vw;
    filter: drop-shadow(0 0.4vh 0 #BF17C2);
}

@media only screen and (max-width: 750px){
    footer h1{
 
        margin-top: 3vh;
        margin-left: 3vw;
        font-size: 3vw;
        filter: drop-shadow(0 0.25vh 0 #BF17C2);
}}





.line{
    filter: blur(0.2vw);
    background-color: #121212;
    position:fixed;
    margin: auto;
    bottom: -1vh;
    height: 2.5vh;
    left: 0;
    right: 0;
}

@media screen and (max-width: 750px){
    .line{
        filter: blur(0.8vw);
        background-color: #121212;
        position:fixed;
        margin: auto;
        bottom: -1vh;
        height: 2.5vh;
        left: 0;
        right: 0;
    }}





.av{
    position: absolute;
    height: 70%;
    width: 70%;
}



.slider {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    /* margin-left: 0; */
    /* margin-right: 0; */
    height: 60vh;
    overflow: hidden;
}
.slide {
    position: absolute;
    top: 0;
    left: 100%;
    width: 102.8%;
    height: 102%;
    display: flex;
    align-items: center;
    justify-content: center;

}
.slide.active {
    left: -1.3vw;
}

.prev img, .next img{
    width: 1.2vw;
}
.prev, .next {
    position: absolute;
    top:30%;

    /* width: 0.1vw; */
    /* height: 0.1vh; */
    background:none;
    transform: translateY(-50%);
    border: none;
    padding: 10px;
    cursor: pointer;
    opacity: 0.3;
    /* transition: all .2s ease-in-out; */
}

@media only screen and (max-width: 600px){
    .prev, .next{
        display: none;
}
}

.prev:hover, .next:hover {
    opacity: 1;
    scale: 1.1;
}

.prev {
    left: 0.2vw;
}

.next {
    right: 0.2vw;
}



.scroll-top-btn {
    position: fixed;
    margin-top: 80vh;
    right: 2vw;
    font-family: "Press Start 2P", system-ui;
    color: white;
    border: none;
    background: none;
    transform: rotate(-90deg);
    cursor: pointer;
    display: none; /* Кнопка скрыта по умолчанию */
    transition: all 0.3s ease;
}

.scroll-top-btn span{
    font-size: 8vh;
    filter: drop-shadow(-1vh 0 0 #BF17C2);

    /* width:  2.5vw; */
    /* height: 4vw; */
    /* object-fit: cover; */
}

.scroll-top-btn:hover {
    /* scale: 1.1; */
    margin-top: 79.5vh;
}



/* Список друзей */





.friend-avatar   {
    width:  5.5vw;
    height: 5.5vw;
    object-fit: cover;
    border-radius: 50%;
    /* box-shadow: 0 0 10px #BF17C2; */
    border: solid 0.4vh #BF17C2;
    /* filter: drop-shadow(0 0.4vh 0 #BF17C2); */
    /* margin-top: 6vh; */
}

@media(max-width: 600px){
    .friend-avatar   {
        width:  21vw;
        height: 21vw;
    }
}




.friends-list-form{
    margin: auto;
    display: flex;
    flex-direction:row; 
    /* justify-content:space-around; */
    flex-wrap: wrap;
    /* align-items: center; */
    /* text-align: center; */

    /* width: 80%; */


}


.friend{
    background-color: #181818;
    padding-left: 2vw;
    padding-right: 2vw;
    padding-top: 3vh;
    padding-bottom: 3vh;
    margin-top: 2vh;
    border-radius: 2vh;
    box-shadow: 0 0 1vh rgba(0, 0, 0, 0.671);
    max-width: 40%;
    min-width: 40%;
    margin-left: 2vw;
    /* margin: auto; */
    display: flex;
    /* flex-direction: row; */
    /* justify-content: space-between; */
    /* flex-wrap: wrap; */
    /* align-items: center; */
    text-align: center;
    /* width: 80%; */
    margin-top: 3vh;
}

@media(max-width: 600px){
    .friend{

        margin-top: 2vh;
        border-radius: 2vh;
        box-shadow: 0 0 1vh rgba(0, 0, 0, 0.671);
        /* max-width: 90%; */
        min-width: 91%;
        margin-left: 2vw;
        /* margin: auto; */
        display: flex;
        /* flex-direction: row; */
        /* justify-content: space-between; */
        /* flex-wrap: wrap; */
        /* align-items: center; */
        text-align: center; 
        /* width: 80%; */
        margin-top: 3vh;
    }
}


.friends-list-form p{
    position: absolute;
    margin-left: 7vw;
    margin-top: -10vh;
    font-size: 1.4vh;
    max-width: 20%;
    /* margin: auto; */
    text-align:left;
    line-height: 2vh;
    filter: drop-shadow(0 0.3vh 0 #BF17C2);
}

@media(max-width: 600px){
    .friends-list-form p{
        position: absolute;
        margin-left: 26vw;
        margin-top: -9vh;
        font-size: 1.4vh;
        max-width: 30%;
        /* margin: auto; */
        text-align:left;
        line-height: 2vh;
        filter: drop-shadow(0 0.3vh 0 #BF17C2);
    }
}

.friends-form a{
    color: white;
}

.friends-form h2{
    margin-left: 1vw;
    letter-spacing: 0.2vw;
    filter: drop-shadow(0 0.4vh 0 #BF17C2);
}

@media(max-width: 600px){
    .friends-form h2{
        font-size: 2.6vh;
        padding-bottom: 5vh;
        line-height: 3.2vh;
    }
}

.friends-form {
    position: absolute;
    margin: auto;
    left: 0; right: 0;
    /* top: 0; bottom: 0; */
    width: 70%;
    background-color: #121212;
    border-top: solid 0.5vh #BF17C2 ;


    box-shadow: 0 0 2vh rgba(0, 0, 0, 0.671);
    margin-top: 15vh;

    padding-left: 2vw;
    padding-right: 2vw;
    padding-top: 2vh;
    padding-bottom: 4vh;
    /* padding: 2vh 2vh 2vh 2vh; */
    border-radius: 2vh;
    border-radius: 2vh;
}

@media(max-width: 600px){
    .friends-form{
        box-shadow: none;
        background: none;
        border: none;
        width: 90%;
    }
}

.back-button{
    position: absolute;
    color: white;
    margin-top: 9vh;
    margin-left: 2vw;
    filter: drop-shadow(0 0.8vh 0 #BF17C2);
    font-size: 6vh;
}

@media(max-width: 600px){
    .back-button{
        margin-top: 11vh;
    color: white;
    font-size: 4vh;
    filter: drop-shadow(0 0.5vh 0 #BF17C2);
    font-family: "Press Start 2P", system-ui;
    position: fixed;
    /* z-index: 1; */
    margin-left: 4vw;
    }
}

.user-search-form{
position: absolute;
    top: 3.3vh;
    /* left: 0; right: 0; */
    left: 45vw;
}

@media(max-width: 600px){
    .user-search-form{
        top: 9.9vh;
        left: 2vw;
    }
}

.user-search-form img{
    width:20vw;
}

@media(max-width: 600px){
    .user-search-form img{
        width: 90vw;
    }
}

#user-search{
    position: absolute;
    left: 0.5vw;
    margin-top: 0.5vh;
    /* margin-left: 46.6vw; */
    width: 95%;
    height: 65%;
    border: none;
    background: none;
    font-family: "Press Start 2P", system-ui;
    outline: none;
    color: white;
}

@media(max-width: 600px){
    #user-search{
        position: absolute;
        left: 3.5vw;
        margin-top: 0.5vh;
        /* margin-left: 46.6vw; */
        width: 95%;
        height: 65%;
        border: none;
        background: none;
        font-family: "Press Start 2P", system-ui;
        outline: none;
        color: white;
        font-size: 1.5vh;
    }
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus {
  -webkit-text-fill-color: white !important;
  -webkit-box-shadow: 0 0 0px 1000px #121212 inset !important;
}

.friends-form hr{
    margin: auto;
    opacity: 0.2;
    border: 0.3vh solid #bf17c2;
    border-radius: 1vh;
    /* margin-left: 10.5vw; */
    margin-top: 1vh;
    /* margin-bottom: 2vh; */
    width: 99%;
}


.delete-friend  img{

    border-radius: 0%;
    width: 7vw;
    transition: all 0.2s ease;
}

@media(max-width: 600px){
    .delete-friend  img{
        width: 26vw;
    }
}

.delete-friend  img:hover{
    margin-top: -0.6vh;
    filter: drop-shadow(0 0.3vh 0 #fff);
}

.delete-friend  img:active{
    margin-top: 0.4vh;
    filter: drop-shadow(0 0 0 #fff);
}

@media(max-width: 600px){
    .delete-friend  img:hover{
        scale: 1;
    }
}

.delete-friend{
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 15vw;
    margin-top: 7vh;
    /* margin: auto; */
}

@media(max-width: 600px){
    .delete-friend {
        margin-left: 30vw;
        margin-top: 6vh;
    }
}



.friends-request-form{
    margin: auto;
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
    /* flex-wrap: wrap; */
    /* align-items: center; */
    /* text-align: center; */
    width: 80%;
}


.request{
    background-color: #181818;
    padding-left: 2vw;
    padding-right: 2vw;
    padding-top: 3vh;
    margin-top: 2vh;
    border-radius: 2vh;
    box-shadow: 0 0 1vh rgba(0, 0, 0, 0.671);

    /* margin: auto; */
    display: flex;
    flex-direction: row;
    /* justify-content: space-between; */
    flex-wrap: wrap;
    align-items: center;
    text-align: center;
    /* width: 80%; */
    margin-top: 3vh;
}

.request p{
    font-size: 2vh;
    filter: drop-shadow(0 0.4vh 0 #BF17C2);
}

.request-buttons{
    margin: auto;
    margin-right: 0;
    margin-top: 7vh;
    /* position: absolute; */
}

.request-buttons button{
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 2vw;
    transition: 0.2s;

}

.request-buttons button:hover{
    transform: scale(1.1);
    filter: drop-shadow(0 0.4vh 0 #BF17C2);
}

@media(max-width: 600px){
    .request-buttons button:hover{
        transform: scale(1);
        filter: drop-shadow(0 0.4vh 0 #bf17c200);
    }
}

.decline-friend img{
    width: 2vw;
    /* margin-left: 2vw; */
}

@media(max-width: 600px){
    .decline-friend img{
        width: 6.3vw;
    }
}

.accept-friend img{
    width: 2.8vw;
}

@media(max-width: 600px){
    .accept-friend img{
        width: 9.3vw;
    }
}











.anime-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 65vh;
}

@media (max-width: 600px) {
    .anime-container {
        padding-bottom: 14vh;
        margin-top: 35vh;
    }
}

.anime-list {
    background-color: rgba(27, 27, 27, 0.6);
    box-shadow: 0 0 0.3vw #0000005e;
    padding-top: 4vh;
    padding-bottom: 4vh;
    padding-left: 1vw;
    padding-right: 1vw;
    border-radius: 3vh;

    display: flex;
    gap: 40px;
    transition: transform 0.3s ease-in-out;
    overflow-x: auto;
    scroll-behavior: smooth;
    /* width: 96%; */
    /* margin-left: 2vw; */
}

@media (max-width: 768px) {
    .anime-list {
        border-radius: 2vh;
        gap: 20px;
        padding-top: 2vh;
        padding-bottom: 2vh;
    }
}

/* Убираем стандартный скролл */
.anime-list::-webkit-scrollbar {
    display: none;
}

.anime-item img {
    border-radius: 1.5vh; ;
    /* filter: drop-shadow(0 0.4vh 0 #BF17C2); */
}

.anime-item {
    width: calc((100% - 60px) / 7); /* 7 постеров в ряд с учетом gap */
    min-width: 100%;
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30%;
}

/* Для мобильных: показываем только 3 постера */
@media (max-width: 768px) {
    .anime-item {
        width: calc((10% - 20px) / 3); /* 3 постера в ряд */
    }
}



.anime-container img{
    width: 12vw;
    max-height: 35vh;
    min-height: 35vh;
    cursor: pointer;
}

@media only screen and (max-width: 600px){
    .anime-container img{
        width: 32vw;
        min-height: 23.5vh;
        max-height: 23.5vh;
        /* object-fit: cover; */

    }
}



@media only screen and (max-width: 600px){
    body{
        background-color: #121212;
        background-image: none;
    }
}




.nothing{
    display: none;
}



@media (max-width: 600px) {
    .nothing{
        display: block;
        /* background-color: wheat; */
        width: 20vw;
        height: 3vh;
        margin-top: 6vh;
    }
}



.anime-scroll-wrapper {
    background-color: rgba(27, 27, 27, 0.6);
    box-shadow: 0 0 0.3vw #0000005e;
    border-radius: 2.5vh;

    height: 43.5vh;
    position: relative;
    overflow: hidden;
  }
  
  .anime-list-scroll {
    
    display: flex;
    gap: 2.5vh;
    /* justify-content: center; */
    /* flex-wrap: wrap; Перенос на новую строку при необходимости */
    overflow-x: auto;
    scroll-behavior: smooth;
    /* padding: 10px 40px; */
    padding-top: 4vh;
    padding-left: 1.5vw;
    padding-right: 2vw;
  }
  
  .scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3vw;
    height: 100%;
    /* background: rgba(0,0,0,0.4); */
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    opacity: 0;
    font-family: "Press Start 2P", system-ui;
    transition: opacity 0.2s ease;
  }
  
  
  .scroll-arrow.left {
    background: linear-gradient(90deg,rgba(0, 0, 0, 0.9) 15%, rgba(0, 0, 0, 0) 100%);

    left: 0;
  }
  
  .scroll-arrow.right {
    background: linear-gradient(270deg,rgba(0, 0, 0, 0.9) 15%, rgba(0, 0, 0, 0) 100%);
    right: 0;
  }
  
  .anime-scroll-wrapper:hover .scroll-arrow {
    opacity: 1;
  }

  .anime-list-scroll::-webkit-scrollbar {
    display: none;
  }
  .anime-list-scroll {
    -ms-overflow-style: none; /* IE и Edge */
    scrollbar-width: none;    /* Firefox */
  }

.anime-list a{
    color: white;
}

  .arrow-link {
    position: absolute;
    margin-top: -4vh;
    right: 0;
    font-size: 24px;
    height: 13.6%;
    padding-top: 10.4%;
    padding-left: 7%;
    padding-right: 2%;
    background: linear-gradient(270deg,rgba(0, 0, 0, 0.9) 15%, rgba(0, 0, 0, 0) 100%);
    border-top-right-radius:3vh ;
    border-bottom-right-radius:3vh ;
    text-decoration: none;
    opacity: 0;
    transform: translateX(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-size: 3vh;
    z-index: 1;
  }
  
  .anime-list:hover .arrow-link {
    opacity: 1;
    /* transform: translateX(5px); */
    border-top-right-radius:3vh ;
    border-bottom-right-radius:3vh ;
  }