@import "base.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 {
    .lineBottom();
    padding-bottom: 4vw;

    &>* {
        padding: 0 3vw;
    }
}

.module-box-noshadow {
    box-shadow: none;
    border: none;
}

.title-common {
    margin: 4vw 0;
    color: @titleColor;
    font-size: 4.5vw;
    font-weight: normal;

    a.more {
        float: right;
        font-size: 3.6vw;
        color: @titleColor;
        background-image: url(img/app-arrow.svg);
        padding-right: 4.5vw;
        background-size: 5.5vw auto;
        background-position: right 1px;
        background-repeat: no-repeat;
        opacity: 0.6;
        margin-right: -1vw;

        @media screen and (min-width: 768px){
            font-size: 2.6vw;
            padding-right: 3.2vw;
            background-size: 3.6vw;
            background-position: right 4px;
        }
    }
}

.open-status {
    position: relative;
    color: @contentColor;
    line-height: 5.5vw;
    font-size: 3.8vw;

    .video-summary {
        margin-bottom: 10px;
    }

    &.open-con {
        overflow : hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        height: 16.5vw;

        .video-summary {
            margin-bottom: 0;
        }
    }

    .open-btn {
        display: block;
        text-align: right;
        color: @movie-a-color;
        height: 5.5vw;

        &.open-active {
            position: absolute;
            right: 3vw;
            bottom: 1px;
            background: linear-gradient(to left, @backgroundColor, @backgroundColor 30%, @background-gradient);
            width: 100px;
        }
    }

    .video-celebrity-info {
        margin: 0 0 5px 0;

        .video-celebrity-words {
            color: @infoColor;

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

.video-scroller {
    display: -webkit-box;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;

    &::-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: 3vw;
        width: 25vw;

        .cover {
            position: relative;
            width: 100%;
            height: 36vw;

            img {
                width: 100%;
                height: 100%;
            }

            .info {
                bottom: 0;
                color: @titleColor;
                font-size: 3vw;
                height: 5vw;
                left: 0;
                line-height: 5vw;
                padding: 0 1vw;
                position: absolute;
                text-align: left;
                width: 100%;
                box-sizing: border-box;
            }
        }
        .title {
            width: 100%;
            margin-top: 2vw;
            overflow : hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            line-height: 1.3;
            font-size: 3.5vw;
        }
    }

    .video-wrap {
        width: 56vw;
        padding-right: 3vw;

        .title {
            width: 100%;
            font-size: 3.5vw;
            overflow : hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            line-height: 1.4;
            color: @titleColor;
        }
        .video-box {
            display: block;
            position: relative;
            width: 100%;
            margin-bottom: 2.5vw;
            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 1.5vw;
                height: 4.8vw;
                background: @background-time;
                border-radius: 2.4vw;
                color: @contentColor;
                text-align: center;
                font-size: 2.6vw;
                line-height: 4.8vw;
            }
        }
    }
}

.movie-img {
    padding: 0;
    position: relative;
    margin: 0 3vw;
    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: 2vw;
        top: 2vw;
        padding: 0 2vw;
        height: 5vw;
        background: @background-time;
        border-radius: 2.5vw;
        color: @contentColor;
        text-align: center;
        font-size: 3vw;
        line-height: 5vw;
    }
    .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;
    }
}


.review-list {
    padding: 0;
}

.review-item {
    padding: 0 3vw;
    margin-top: 4vw;
    line-height: 1.5;
    display: block;

    &:active {
        background-color: @linkActiveColor;
    }

    .title {
        color: @titleColor;
        font-size: 4.2vw;
        line-height: 1.4;
    }

    .info {
        color: @infoColor;
        margin: 1vw 0 1.5vw;

        >* {
            display: inline-block;
            vertical-align: middle;
            line-height: 5vw;
            font-size: 3vw;
            margin-right: 1.5vw;
        }

        .avatar {
            width: 5vw;
            height: 5vw;
            border-radius: 2.5vw;
        }
    }

    .content {
        font-size: 3.5vw;
        color: @contentColor;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow-y: hidden;
        text-overflow: ellipsis;
    }
}


@media screen and (min-width: 768px) {

    .title-common {
        // color: @titleColor;
        // font-weight: normal;
        margin: 3vw 0;
        font-size: 3.2vw;
    }

    .open-status {
        // position: relative;
        // color: @contentColor;
        line-height: 3.5vw;
        font-size: 2.5vw;

        &.open-con {
            height: 10.5vw;
        }

        .open-btn {
            // display: block;
            // text-align: right;
            // color: @movie-a-color;
            height: 3.5vw;

            &.open-active {
                // position: absolute;
                // right: 3vw;
                // bottom: 0;
                // background: linear-gradient(to left, @backgroundColor, @backgroundColor 30%, @background-gradient);
                width: 200px;
            }
        }
    }

    .video-scroller {

        // 相关推荐
        .video-item {
            // display: block;
            // padding-left: 0;
            // padding-right: 3vw;
            // width: 25vw;

            .cover {
                // position: relative;
                // width: 100%;
                // height: 36vw;
                
                .info {
                    // bottom: 0;
                    // color: @titleColor;
                    font-size: 2vw;
                    height: 4vw;
                    // left: 0;
                    line-height: 4vw;
                    // padding: 0 1vw;
                    // position: absolute;
                    // text-align: left;
                    // width: 100%;
                    // box-sizing: border-box;
                }
            }
            .title {
                // width: 100%;
                // margin-top: 2vw;
                // overflow : hidden;
                // text-overflow: ellipsis;
                // display: -webkit-box;
                // -webkit-line-clamp: 2;
                // -webkit-box-orient: vertical;
                // line-height: 1.5;
                font-size: 2.5vw;
            }
        }

        .video-wrap {
            // width: 56vw;
            // padding-right: 3vw;

            .title {
                // width: 100%;
                font-size: 2.5vw;
                // overflow : hidden;
                // text-overflow: ellipsis;
                // display: -webkit-box;
                // -webkit-line-clamp: 2;
                // -webkit-box-orient: vertical;
                // line-height: 1.5;
            }
            .video-box {
                // display: block;
                // position: relative;
                // width: 100%;
                margin-bottom: 2vw;
                // height: 32vw;

                .video-runtime {
                    // position: absolute;
                    // right: 5px;
                    // bottom: 5px;
                    // padding: 0 2vw;
                    height: 3vw;
                    // background: @background-time;
                    border-radius: 1.5vw;
                    // color: @contentColor;
                    // text-align: center;
                    font-size: 2vw;
                    line-height: 3vw;
                }
            }
        }
    }

    .movie-img {
        // padding: 0;
        // position: relative;
        // margin: 0 3vw;
        // height: 40vw;

        .play-img {
            // z-index: 2;
            // position: absolute;
            // left: 50%;
            // top: 50%;
            width: 12vw;
            height: 12vw;
            margin-left: -6vw;
            margin-top: -6vw;
            // 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: 2vw;
            top: 2vw;
            padding: 0 2vw;
            height: 4vw;
            // background: @background-time;
            border-radius: 2vw;
            // color: @contentColor;
            // text-align: center;
            font-size: 2vw;
            line-height: 4vw;
        }
        .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: 4vw;
            line-height: 1.4;
            // 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;
        }
    }


    .review-item {

        .title {
            // color: @titleColor;
            font-size: 3vw;
        }

        .info {

            >* {
                line-height: 3.8vw;
                font-size: 2.4vw;
                margin-right: 1vw;
            }

            .avatar {
                width: 3.8vw;
                height: 3.8vw;
                border-radius: 1.9vw;
            }
        }

        .content {
            font-size: 2.4vw;
            color: @contentColor;
        }
    }
}















