@import "base.less";
@import "view.less";
@import "detail-item.less";
@import "detail-card.less";
@import "loading.less";

//影片信息里面的蓝色文字
@movie-a-color: rgba(52,135,194,0.7);

//间隔线色值
@line-color: rgba(255,255,255,0.5);

//影片信息里面展开按钮的渐变
@background-gradient: rgba(6,23,39,0);

//时间的背景色
@background-time: rgba(0,0,0,0.5);

//图解电影标题的渐变背景色
@background-img-start: rgba(0,0,0,0);
@background-img-end: rgba(0,0,0,0.3);

//图解电影的遮罩
@mask-img: rgba(0,0,0,0.2);

.module-box {
    box-shadow: inset 0 -1px 1px -1px @line-color;
    padding-bottom: 15px;
}
.module-box-noshadow {
    box-shadow: none;
}

.video-celebrity-words {
    .filter-btns {
        color: @movie-a-color;
    }
}

.title-common {
    padding: 0 12px;
    margin-bottom: 0.8em;
    color: @titleColor;
    font-size: 1.1em;
    font-weight: normal;
}

.open-status {
    position: relative;
    margin: 0 12px;
    color: @contentColor;
    line-height: 1.6em;
    font-size: 0.9em;
    &.open-con {
        overflow : hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        height: 62px;
    }
    .video-summary {
        margin-bottom: 10px;
    }
    .video-celebrity {
        box-shadow: none!important;
        padding-bottom: 0!important;
        margin-bottom: 0!important;
    }
    .open-btn {
        display: block;
        text-align: right;
        color: @movie-a-color;
        &.open-active {
            position: absolute;
            right: 0;
            bottom: -1px;
            background: linear-gradient(to left, @backgroundColor, @backgroundColor 30%, @background-gradient);
            width: 100px;
        }
    }
    .video-celebrity-info {
        margin: 0 0 5px 0;
    }
}

.video-scroller {
    display: -webkit-box;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    margin-left: 12px;
    &::-webkit-scrollbar {
        background: @backgroundColor;
        height: 0;
    }
    .messageNew {
        font-size: 0.9em;
        line-height: 1.5em;
        color: @infoColorWeak!important;
    }
    .loader {
        margin: 0 auto;
    }
    .video-item {
        display: block;
        padding-left: 0;
        padding-right: 10px;
        width: 25vw;
        .cover {
            position: relative;
            width: 100%;
            height: 36vw;
            img {
                width: 100%;
                height: 100%;
            }
            .info {
                bottom: 0;
                color: @titleColor;
                font-size: 0.8em;
                height: 18px;
                left: 0;
                line-height: 18px;
                padding: 5% 5% 0;
                position: absolute;
                text-align: left;
                width: 90%;
            }
        }
        .title {
            width: 100%;
            margin-top: 10px;
            overflow : hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            line-height: 1.5em;
            font-size: 0.9em;
        }
    }
    .video-wrap {
        width: 56vw;
        padding-right: 10px;
        .title {
            width: 100%;
            font-size: 0.9em;
            overflow : hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            line-height: 1.5em;
        }
        .video-box {
            display: block;
            position: relative;
            width: 100%;
            margin-bottom: 10px;
            height: 32vw;
            &,&:hover,&:active,&:visited,&:link,&:focus{
                -webkit-tap-highlight-color: transparent;
                outline:none;
                text-decoration: none;
            }
            .video-play {
                position: absolute;
                left: 50%;
                top: 50%;
                width: 10vw;
                height: 10vw;
                margin-left: -5vw;
                margin-top: -5vw;
                background-image: url(img/movie/play@3x.png);
                background-size: cover;
                background-position: center;
                background-repeat: no-repeat;
            }
            .video-runtime {
                position: absolute;
                right: 5px;
                bottom: 5px;
                padding: 0 2vw;
                height: 3vh;
                background: @background-time;
                border-radius: 10px;
                color: @contentColor;
                text-align: center;
                font-size: 0.7em;
                line-height: 3.2vh;
            }
        }
    }
}

.movie-img {
    position: relative;
    margin: 0 12px;
    height: 40vw;
    .play-img {
        z-index: 2;
        position: absolute;
        left: 50%;
        top: 50%;
        width: 14vw;
        height: 14vw;
        margin-left: -7vw;
        margin-top: -7vw;
        background-image: url(img/movie/play@3x.png);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    .runtime-img {
        z-index: 2;
        position: absolute;
        right: 5px;
        top: 5px;
        padding: 0 2vw;
        height: 3vh;
        background: @background-time;
        border-radius: 10px;
        color: @contentColor;
        text-align: center;
        font-size: 0.7em;
        line-height: 3.2vh;
    }
    .movie-title {
        position: absolute;
        bottom: 0;
        z-index: 2;
        box-sizing: border-box;
        width: 100%;
        min-height: 9vw;
        max-height: 18vw;
        padding: 0 3vw;
        margin: 0;
        font-weight: bold;
        font-size: 4.4vw;
        line-height: 1.4em;
        color: #fff;
        text-align: center;
        background: linear-gradient(to bottom,@background-img-start 0,@background-img-end 100%) repeat scroll 0 0;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    .mask {
        position: absolute;
        width: 100%;
        height: 100%;
        background: @mask-img;
        z-index: 1;
    }
}


@media screen and (max-width: 768px) and (min-width: 320px) {
    .detail-cards .cards .card-nopad {
        padding: 0!important;
    }
}

@media screen and (min-width: 768px) {
    .video-scroller {
        .video-item {
            width: 20vw;
            .cover {
                height: 30vw;
            }
        }
        .video-wrap {
            width: 35vw;
            .video-box {
                height: 20.6vw;
                .video-play {
                    width: 7vw;
                    height: 7vw;
                    margin-left: -3.5vw;
                    margin-top: -3.5vw;
                }
                .video-runtime {
                    height: 2vh;
                    padding: 0 1vw;
                    font-size: 0.8em;
                    line-height: 2vh;
                }
            }
        }
    }

    .movie-img {
        height: 30vw;
        .play-img {
            width: 10vw;
            height: 10vw;
            margin-left: -5vw;
            margin-top: -5vw;
        }
        .runtime-img {
            height: 2vh;
            padding: 0 1vw;
            font-size: 0.8em;
            line-height: 2vh;
        }
        .movie-title {
            font-size: 2.9vw;
            min-height: 6vw;
            max-height: 12vw;
        }
    }

    .open-status {
        &.open-con {
            height: 70px;
        }
        .open-btn {
            &.open-active {
                bottom: -2px;
            }
        }
    }

}
