#movie{
    padding: 80px 0 185.5px 0;
    background-image: url(../img/bg-inner-sm.png);
}


#movie .movie-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1294px;
    margin: 0 auto;
    row-gap: 60px;
    width: calc(100% - 40px);
    margin-top: 80px;
}

#movie .movie-wrap{
    width: 48.8755%;
}

#movie .movie-wrap .movie-title{
    font-size: 23px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: 2;
    letter-spacing: normal;
    text-align: center;
    color: #000;
    margin-top: 20px;
    padding: 0 23px;
}

#movie .movie-wrap .company{
    font-size: 20px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: 2;
    letter-spacing: normal;
    text-align: center;
    color: #000;
    margin-top: 0px;
}

#movie .movie-wrap .thumbnail{
    width: 100%;
    height: 340px;
    object-fit: cover;
    object-position: center;
}
#movie .movie-wrap .movie-item:hover{
    opacity: .7;
}

/* Popup */
#movie .popup {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

#movie .popup-content {
    width: 80%;
    max-width: 1209px;
    padding: 25px 25px 40px 25px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 8px 8px 0 rgba(0, 0, 0, 0.35);
    background-image: linear-gradient(to bottom, #fff, #ebebeb);
}


#movie .popup-content .movie-ttl{
    font-size: 26px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.77;
    letter-spacing: 1.3px;
    text-align: center;
    color: #181818;
    margin: 43px 0 32px 0;
    padding: 0 75px;
}

#movie .popup-content .link-list{
    max-width: 928px;
    margin: 0 auto;
    justify-content: center;
    gap: 35px;
}

#movie .popup-content .link-list li a{
    font-size: 26px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.77;
    letter-spacing: 1.3px;
    text-align: center;
    color: #fff;
    display: block;
    padding: 18.6px 90px 16.4px;
    border-radius: 35px;
    background-image: linear-gradient(to bottom, #000, #505050);
    width: fit-content;
    position: relative;
}

#movie .popup-content .link-list li a img{
    position: absolute;
    max-width: 30px;
    top:50%;
    transform: translateY(-50%);
    right:45.7px;
    transition: .3s;
}
#movie .popup-content .link-list li a:hover img{
    right:40.7px;
}
#movie .close-btn {
    font-size: 25px;
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
}

#movie .popup-movie-text {
    position: relative;
    /*min-height: 553px;*/
    padding: 30.7px 27.5px 28.5px 28.1px;
    box-shadow: 5px 5px 5px 0 rgba(0, 0, 0, 0.15);
    background-color: #fff;
}
#movie .tiktok-embed{
    max-height: 626px;
}
#movie .popup-movie-text iframe,
#movie .popup-movie-text video {
    min-height: 626px;
}

#movie .movie-list .novideos{
    width: 100%;
    text-align: center;
}

@media(max-width: 767px){
    #movie .movie-wrap {
        width: 100%;
    }
    #movie .movie-wrap .thumbnail {
        height: 191px;
    }
    #movie .movie-wrap .movie-title {
        font-size: 14px;
    }
    #movie .movie-wrap .company {
        font-size: 16px;
        margin-top:10px;
    }
    #movie .movie-list{
        row-gap: 40px;
    }
    #movie .popup-content{
        padding: 30px 15px 30px;
    }
    #movie .popup-content .movie-ttl {
        font-size: 19px;
        margin: 23px 0 18px 0;
    }
    #movie .popup-content .link-list li a{
        font-size: 14px;
        padding: 8.6px 30px;
    }

    #movie .popup-content .link-list li a img {
        max-width: 14px;
        right: 10.7px;
    }
    #movie .popup-movie-text iframe{
        height: 100%;
        min-height: unset;
    }
    #movie .popup-movie-text {
        position: relative;
        width: 100%;
        height: 159px;
        padding: 0;

    }
    
    #movie .popup-content .link-list {
        gap: 20px;
    }
}
