.person-info{
    display: flex;
    align-items: center;
    gap: 20px;
    background-repeat: no-repeat;
    background-size: cover;
    height: 70vh;
    z-index: 1;
    position: relative;
    margin-bottom: 50px;
    background-image: url(../img/unknown-bg-person.svg);
}

.person-info:before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0, 0, 0, .5);
    z-index: -1;
}

.person-info h1{
    color: var(--primary);
}

.person-info img{
    height: 400px;
    object-fit: contain;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}

.person-info img:hover{
    transform: scale(1.05);
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -o-transform: scale(1.05);
}

.person-info-area{
    line-height: 2;
}

.person{
    display: flex;
    align-items: center;
    gap: 50px;
}

.person-bio{
    margin-bottom: 50px;
}

.person-bio h2{
    margin-bottom: 10px;
    color: var(--primary);
}

.birth-place{
    text-transform: capitalize;
}

.person-link{
    transition: all .5s;
    -webkit-transition: all .5s;
    -moz-transition: all .5s;
    -ms-transition: all .5s;
    -o-transition: all .5s;
}

.person-link:hover{
    color: var(--menu);
}

.movies-header{
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.sort-select{
    display: flex;
    align-items: center;
    background: var(--primary_hover);
    padding: 5px 10px;
    height: fit-content;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    transition: all .5s;
    -webkit-transition: all .5s;
    -moz-transition: all .5s;
    -ms-transition: all .5s;
    -o-transition: all .5s;
}

.sort-select:hover{
    background: var(--primary);
}

.sort-select select{
    cursor: pointer;
    background: transparent;
    border: none;
    color: var(--text);
}

.person-movies ul{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.person-movies li{
    list-style: none;
    flex-grow: 1;
}

.person-movies .film-title{
    display: flex;
    align-items: center;
    height: 30px;
    padding: 0 10px;
    background: var(--secondary);
    transition: all .5s;
    -webkit-transition: all .5s;
    -moz-transition: all .5s;
    -ms-transition: all .5s;
    -o-transition: all .5s;
}

.person-movies a:hover .film-title{
    background: var(--secondary_hover);
}

.person-movies a:hover img{
    opacity: .5;
}

.person-movies span{
    position: relative;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 20px;
    text-overflow: ellipsis;
}

.person-movies a{
    width: 100%;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.person-movies img{
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top;
}

.person-films:hover img{
    object-position: center;
}

.movie-credits h2{
    margin-bottom: 10px;
    color: var(--primary);
}

.name-and-share{
    display: flex;
    align-items: center;
    gap: 10px;
}

.name-and-share img{
    width: 20px !important;
    height: 20px !important;
    cursor: pointer;
    height: fit-content;
    padding: 5px;
    box-shadow: inset 0 0 0 var(--text);
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

.name-and-share img:hover{
    box-shadow: inset 0 -50px var(--primary);
    transform: scale(1.2);
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -ms-transform: scale(1.2);
    -o-transform: scale(1.2);
}

@media screen and (max-width: 950px) {
    .person-movies ul{
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 700px) {
    .person{
        flex-direction: column;
        gap: 10px;
    }

    .person-info{
        height: auto;
        padding: 50px 0;
    }

    .person-movies ul{
        grid-template-columns: repeat(2, 1fr);
    }

    .person-movies img{
        height: 200px;
        object-fit: cover;
        object-position: top;
    }

    .person-films:hover img{
        object-position: bottom;
    }
}

@media screen and (max-width: 500px) {
    .movies-header{
        flex-direction: column;
    }

    .sort-select{
        margin: 5px 0 15px;
    }

    .sort-select select{
        width: 100%;
    }

    .person-movies a{
        width: auto;
    }
}