@import "base.less";

.yearSelect {
    display: -webkit-box;
    overflow-x: scroll;
    width: 100%;
    box-shadow: 0 1px 1px -1px rgba(0, 0, 0, 0.5);
    height: 6vh;

    a {
        display: block;
        width: 10vw;
        height: 100%;
        line-height: 6vh;
        margin: 0 2vw;
        color: #666;
        text-align: center;
        font-size: 3.6vw;

        &.current {
            color: #000;
        }
    }

    @media screen and (min-width: 768px) {
        height: 4vh;

        a {
            display: block;
            width: 8vw;
            height: 100%;
            line-height: 4vh;
            margin: 0 1vw;
            font-size: 2.2vw;
        }
    }
}

.rangeSelect {
    display: -webkit-box;
    overflow-x: scroll;
    width: 100%;
    box-shadow: 0 1px 1px -1px rgba(0, 0, 0, 0.5);
    height: 6vh;

    a {
        display: block;
        width: 16vw;
        height: 100%;
        line-height: 6vh;
        margin: 0 2vw;
        color: #666;
        text-align: center;
        font-size: 3.6vw;

        &.current {
            color: #000;
        }
    }

    @media screen and (min-width: 768px) {
        height: 4vh;

        a {
            display: block;
            width: 12vw;
            height: 100%;
            line-height: 4vh;
            margin: 0 1vw;
            font-size: 2.2vw;
        }
    }
}
 
// 电视剧列表
.tv-list {
    box-sizing: border-box;
    height: 60vh;
    overflow-y: scroll;
    padding-bottom: 3vh;

    a {
        display: block;
        float: left;
        width: 15%;
        margin: 3% 2.5% 0;
        height: 8vw;
        line-height: 8vw;
        text-align: center;
        color: #666;
        border-radius: 0.75vw;
        box-sizing: border-box;
        font-size: 3.5vw;
        background-color: #eee;

        &:active {
            background: #ddd;
        }

        &.highlight {
            color: @highlightColor;
        }
    }

    @media screen and (min-width: 768px) {
        padding-bottom: 2.5vh;

        a {
            margin: 2.5% 2.5% 0;
            height: 5vw;
            line-height: 5vw;
            border-radius: 0.5vw;
            font-size: 2vw;
        }
    }
}


// 电视剧列表
.tv-list-inline {
    display: -webkit-box;
    overflow-x: scroll;
    // margin-right: 3vw;
    // padding-right: 0;

    a {
        display: block;
        // float: left;
        width: 14vw;
        margin: 0 3vw 0 0;
        height: 9vw;
        line-height: 9vw;
        text-align: center;
        color: @linkColor;
        border-radius: 1vw;
        box-sizing: border-box;
        border: @lineColor 1px solid;
        font-size: 3.8vw;

        &:active {
            background: @linkActiveColor;
        }

        &.highlight {
            color: @highlightColor;
        }

        @media screen and (min-width: 768px) {
            width: 10vw;
            height: 5.5vw;
            line-height: 5.5vw;
            font-size: 2.8vw;
            border-radius: 0.5vw;
        }
    }
}


.show-list-inline {
    display: -webkit-box;
    overflow-x: scroll;

    a.show-item {
        display: block;
        width: 30vw;
        margin-right: 3.5vw;
        overflow: hidden;

        .thumb {
            height: 18vw;
            position: relative;
            background-size: cover;
            background-position: center;

            .date {
                position: absolute;
                bottom: 0;
                right: 0;
                font-size: 3vw;
                line-height: 4vw;
                padding-top: 2vw;
                padding-right: 1vw;
                width: 100%;
                background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
                text-align: right;
            }
        }

        .title {
            font-size: 3.5vw;
            line-height: 1.3;
            margin-top: 1vw;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            display: -webkit-box;
        }

        &:active {
            background: @linkActiveColor;
        }

        &.highlight {

            .title {
                color: @highlightColor;
            }
        }

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

            .title {
                font-size: 2.5vw;
            }

            .thumb {
                // height: 18vw;
                // position: relative;
                // background-size: cover;
                // background-position: center;

                .date {
                    // position: absolute;
                    // bottom: 0;
                    // right: 0;
                    font-size: 2.2vw;
                    // line-height: 5vw;
                    // padding-top: 2vw;
                    // padding-right: 1vw;
                    // width: 100%;
                    // background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
                    // text-align: right;
                }
            }
        }
    }
}


//综艺列表
.show-list {
    height: 60vh;
    overflow-y: scroll;
    
    .show-item {
        display: block;
        padding: 2vw 3vw;
        width: 100%;
        box-sizing: border-box;
        position: relative;
        height: 16vw;
        overflow: hidden;
        box-shadow: 0 1px 1px -1px rgba(0, 0, 0, 0.3);

        .icon {
            position: absolute;
            left: 3vw;
            top: 2vw;
            width: 18vw;
            height: 12vw;
            background-size: cover;
            background-position: center;
        }

        .info {
            padding-left: 20vw;
            width: 100%;
            box-sizing: border-box;
            
            .name {
                font-size: 4vw;
                color: #666;
                line-height: 1.75;
                .ellipsis();
            }

            .summary {
                color: #999;
                font-size: 3.5vw;
            }
        }

        &.highlight .name {
            color: @highlightColor;
        }

        &:active {
            background-color: #eee;
        }
    }

    @media screen and (min-width: 768px) {
        .show-item {
            // display: block;
            padding: 1.5vw 3vw;
            // width: 100%;
            // box-sizing: border-box;
            // position: relative;
            height: 13vw;
            // overflow: hidden;
            // box-shadow: 0 1px 1px -1px rgba(0, 0, 0, 0.3);


            .icon {
                // position: absolute;
                // left: 3vw;
                top: 1.5vw;
                width: 16vw;
                height: 10vw;
                // background-size: cover;
                // background-position: center;
            }

            .info {
                padding-left: 18vw;
                // width: 100%;
                // box-sizing: border-box;
                
                .name {
                    font-size: 2.5vw;
                    line-height: 6vw;
                    // color: #666;
                    // line-height: 1.75;
                    // .ellipsis();
                }

                .summary {
                    // color: #999;
                    font-size: 2vw;
                }
            }
        }
    }
}



.episode{
    position: relative;

    .icon-tv{
        position: absolute;
        right: 3px;
        top: 3px;
        background-repeat: no-repeat;
        background-size: 10px;
        height: 10px;
        width: 10px;
    }

    .downloading{
        background-image: url('img/wait_list.svg');
    }

    .downloaded{
        background-image: url('img/done_list.svg');
    }

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

        .icon-tv{
            right: 5px;
            top: 5px;
        }
        
    }
    .summary{
        position: relative;
        .icon-show{
            position: absolute;
            right: 0;
            bottom: 0;
            background-repeat: no-repeat;
            background-size: 10px;
            background-position: center left;
            height: 16px;
            width: auto;
            font-size: 0.9em;
            padding-left: 12px; 
            line-height: 16px;

        }

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

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

            
        }

        @media screen and (min-width: 768px){
            .icon-show{
                height: 16px;
                font-size: 0.9em;
                padding-left: 12px; 
                line-height: 16px;
            }
        }
    }
    
}



#episode-panel {
    position: fixed;
    top: 100%;
    width: 100%;
    height: 65vh;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -1px 1px -1px rgba(255, 255, 255, 0.5);
    box-sizing: border-box;
    color: #000;
    overflow: hidden;


    .panel-head {
        color: #000;
        height: 7vh;
        line-height: 7vh;
        padding: 0 3vw;
        position: relative;
        box-shadow: 0 1px 1px -1px rgba(0, 0, 0, 0.5);
        box-sizing: border-box;
        font-size: 4vw;

        .close {
            position: absolute;
            top: 0;
            right: 2vw;
            width: 10vw;
            height: 100%;
            background: url('img/cancel@3x.png');
            background-size: 4vh;
            background-position: right;
            background-repeat: no-repeat;
        }
    }

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

        .panel-head {
            color: #000;
            height: 5vh;
            line-height: 5vh;
            padding: 0 3vw;
            font-size: 2.5vw;

            .close {
                position: absolute;
                top: 0;
                right: 2vw;
                width: 8vw;
                height: 100%;
                background: url('img/cancel@3x.png');
                background-size: 3vh;
                background-position: right;
                background-repeat: no-repeat;
            }
        }
    }
}





