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 вокруг плашки */
  }

* {
    -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: 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;
}

@media(max-width: 600px){
    body{
        background: none;
        background-color: #121212; ;
    }
}

a, h1, h2, h3, h4, h5, h6, p {
    color: #fff;
    font-family: "Press Start 2P", system-ui;
    text-decoration: none;
}


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;
}


.result {
    position: absolute;
    top: 10vh; left: 10vw;
    margin: auto;
    font-size: 1.5vw;
    filter: drop-shadow(0 0.4vh 0 #BF17C2);
}

@media(max-width: 600px){
    .result{
        top: 11vh;
        left: 4vw;
        margin: auto;
        font-size: 6.5vw;
    }
}

.anime-search-results{
    position: absolute;
    top: 17vh; left: 2vw; right: 2vw;
    margin: auto;   
    width: 80%;
    background-color: rgba(27, 27, 27, 0.75);
    box-shadow: 0 0 0.3vw #0000005e;

    padding: 0 0 5vh 3vw;
    border-top: solid 0.5vh #BF17C2;
    /* border-top-left-radius: 3vh;
    border-top-right-radius: 3vh; */
    border-radius: 3vh;
}

@media(max-width: 600px){
    .anime-search-results{
        border: none;
        width: 90%;
        box-shadow: none;
        background: none;
        padding-bottom: 14vh;
        left: -4vw;
        z-index: -1;
    }
}

.anime-search-results h2{
    filter: drop-shadow(0 0.4vh 0 #BF17C2);
    letter-spacing: 0.1vw;
    
}

@media(max-width: 600px){
    .anime-search-results h2{
        filter: drop-shadow(0 0.3vh 0 #BF17C2);
    }
}

.anime-search-results h3{
    margin-top: 3vh;
    letter-spacing: 0.1vw;
}

.anime-search-results img{
    z-index: 1;

    height: 35vh;

    width: 12vw;
    cursor: pointer;
    border-radius: 3vh;
    border-bottom: solid 0.5vh #BF17C2 ;
    margin-top: 5vh;
}

@media(max-width: 600px){
    .anime-search-results img{
        width: 27vw;
        height: 19vh;
        border-radius: 1vh;
        border-bottom: solid 0.4vh #BF17C2 ;

    }
}


@media(max-height: 700px){
    .anime-search-results img{
        width: 27vw;
        height: 22vh;
        border-radius: 1vh;
        border-bottom: solid 0.4vh #BF17C2 ;

    }
}

.no-results{
    margin-left: 9.7vw;
    /* margin: auto; */
    margin-top: 20vh;
}

@media(max-width: 600px){
    .no-results{
        margin-left: 1.7vw;
        /* margin: auto; */
        margin-top: 20vh;
    }
}

.info{
    position: absolute;
    left: 17vw; 
    margin-top: -35vh;
    font-size: 0.8vw;
    /* margin: auto; */
}

@media(max-width: 600px){
    .info{
        left: 36vw;
        margin-top: -20vh;
        font-size: 2.3vw;
        line-height: 2vh;

    }
}

@media(max-height: 700px){
    .info{
        left: 36vw;
        margin-top: -24vh;
        font-size: 2.3vw;
        line-height: 2vh;

    }
}

.video-item h2{
    filter: drop-shadow(0 0.4vh 0 #BF17C2);
}

@media(max-width: 600px){
    .video-item h2{
        filter: drop-shadow(0 0.3vh 0 #BF17C2);
    }
}


.video-item h3{
    font-size: 0.7vw;
    color: #ebebeb;
    margin-top: 3vh;
} 

@media(max-width: 600px){
    .video-item h3{
        font-size: 2.4vw;
        color: #ebebeb;
        margin-top: 1vh;

    }
}

/* 
.desc{
    position: absolute;
    left: 15vw; 
    width: 550%;
    margin-top: -35vh;
} */



.description {
    /* position: absolute; */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: wrap;
    width: 85%;
    /* line-height: 2vh; */
    display: block;   
    /* left: 15vw;  */
    /* top: 7vh; */
    margin-top: 3vh;
    letter-spacing: 0.1vw;
    line-height: 2.5vh;
    font-size: 1vw;
    color: #d9d9d9ee ;
    font-family: "Courier New", system-ui;
    font-weight: bold;
}

@media(max-width: 600px){
    .description{
        display: none;
    }}






.line{
    filter: blur(0.2vw);
    background-color: #121212;
    position:fixed;
    margin: auto;
    bottom: -1vh;
    height: 2.5vh;
    left: 0;
    right: 0;
}




.no-result{
    position: absolute;
    top: 20vh; left: 10vw;
    margin: auto;
    font-size: 1vw;
}

@media(max-width: 600px){
    .no-result{
        left: 4vw;
    margin: auto;
    font-size: 5vw;
    }
}


.search-results{
    position: absolute;
    top: 17vh; left: 2vw; right: 2vw;
    margin: auto;   
    width: 80%;
    background-color: #181818;
    box-shadow: 0 0 0.5vw rgba(0, 0, 0, 0.856);
    padding: 0 0 5vh 3vw;
    border-top: solid 0.5vh #BF17C2;
    /* border-top-left-radius: 3vh;
    border-top-right-radius: 3vh; */
    border-radius: 3vh;
}

@media(max-width: 600px){
    .search-results{
        border: none;
        box-shadow: none;
        width: 90%;
        background: none;
        padding-bottom: 14vh;
        left: -3vw;

    }
}

.search-results img{
    width:  10vw;
    height: 10vw;
    object-fit: cover;
    margin-top: 5vh;
    border-radius: 50%;
    margin-left: -1vw;
    filter: drop-shadow(0 0.5vh 0 #BF17C2);

}

@media(max-width: 600px){
    .search-results img{
        width: 21vw;
        height: 21vw;
        object-fit: cover;
        margin-top: 5vh;
        border-radius: 50%;
        margin-left: -1vw;
        filter: drop-shadow(0 0.4vh 0 #BF17C2);

    }
}

.user-item h2{
    /* position: absolute; */
    margin-top: 22vh;
    margin-left: -2vw;
    font-size: 3vh;
    filter: drop-shadow(0 0.4vh 0 #BF17C2);   
}

@media(max-width: 600px){
    .user-item h2{
    /* position: absolute; */
    margin-top: 12vh;
    margin-left: -7vw;
    font-size: 2vh;
    filter: drop-shadow(0 0.4vh 0 #BF17C2); 
    }
}

@media(max-height: 700px){
    .user-item h2{
    /* position: absolute; */
    margin-top: 14vh;
    margin-left: -7vw;
    font-size: 2vh;
    filter: drop-shadow(0 0.4vh 0 #BF17C2); 
    }
}


.user-item hr{
    opacity: 0.2;
    border: 0.3vh solid #bf17c2;
    border-radius: 1vh;
    margin-left: 10.5vw;
    margin-top: 2vh;
    /* margin-bottom: 2vh; */
    width: 70%;
    /* filter: drop-shadow(0 0.5vh 0 #BF17C2); */
}

@media(max-width: 600px){
    .user-item hr{
        display: none;
    }
}





/* ФИЛЬТРЫ */

.filter-container { margin-top: 10vh; right: 0; margin-bottom: 20px; display: flex; gap: 15px; flex-direction: column; z-index: 1; position: fixed;}
.filter-dropdown {
  position: relative;
}
.filter-dropdown button {
  width: 12vw;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  border: 2px solid #BF17C2;
  border-right: none;
  background-color: #191919;
  color: white;
  border-top-left-radius: 1vh;
  border-bottom-left-radius: 1vh;
  font-family: "Press Start 2P", system-ui;
  font-size: 16px;
}
.filter-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 12vw;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #BF17C2;
  background-color: #121212;
  border-top-left-radius: 1vh;
  border-bottom-left-radius: 1vh;
  color: white;
  z-index: 1;
  font-family: "Courier New", system-ui;
}
.filter-options label {
  display: block;
  padding: 5px;
  cursor: pointer;
}
.filter-options input {
  margin-right: 5px;
  accent-color: #BF17C2;
}



#genre-options::-webkit-scrollbar-track{
	background-color: #121212;
}

#genre-options::-webkit-scrollbar{
	width:  10px;
	background-color: #121212;
}

#genre-options::-webkit-scrollbar-thumb{
    background-color: #BF17C2;    /* цвет плашки */
    border-radius: 10px;       /* закругления плашки */
    border: 2px solid black;  /* padding вокруг плашки */
}

@media(max-width: 600px){
    .filter-container{
        /* left: 0; */
        flex-direction: row;
        position: relative;
        margin-top: 11vh;
        z-index: 0;
        gap: 10px;
        flex-wrap: wrap;

    }
}

@media(max-width: 600px){
    .filter-dropdown button{
        width: 37.1vw;
        border: 2px solid #BF17C2;
        border-radius: 1vh;
        font-size: 12px;
        text-align: center;

    }
}

@media(max-width: 600px){
    .filter-options{
        width: 37.1vw;
        border: 2px solid #BF17C2;
        border-radius: 1vh;
        font-size: 12px;
    }
}






/* Стиль кнопки "Наверх" */
.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;
    z-index: 1;
}

@media only screen and (max-width: 600px){
    .scroll-top-btn {
        margin-left: 19vw;
    }
}

.scroll-top-btn span{
    font-size: 8vh;
    filter: drop-shadow(-1vh 0 0 #BF17C2);
}

@media only screen and (max-width: 600px){
    .scroll-top-btn span{
        font-size: 4vh;
        filter: drop-shadow(-0.4vh 0 0 #BF17C2);
    }
}

.scroll-top-btn:hover {
    /* scale: 1.1; */
    margin-top: 79.5vh;
}


