@import "base.less";
// @import "view.less";
@import "list.less";
// @import "detail-item.less";
// @import "detail-card.less";
@import "loading.less";
@import "video-list.less";
// @import "special.less";


// 首页轮播
#home-slider {
	width: 100%;
	position: relative;
	overflow: hidden;
	background: url(img/loading.gif) center no-repeat @backgroundColor;
	background-size: 25px 25px;

	#scroller {
		position: absolute;
		height: 100%;
		-webkit-transform: translateZ(0px);
	}

	.slide {
		width: 100%;
		height: 100%;
		display: block;
		float: left;
		background-size: cover;
	}

	#indicator {
		position: absolute;
		bottom: 0;
		height: 10px;
		padding: 0 0 10px;
		z-index: 2;
		width: 100%;
		left: 50%;
		text-align: center;
		background-image: url(img/indicators@2x.png);
		background-repeat: repeat-x;
		background-size: 20px 10px;

		.dot {
			width: 20px;
			height: 10px;

			.inner {
				border-radius: 5px;
				background: rgba(255, 255, 255, 0.5);
				margin: 1px 6px;
				width: 8px;
				height: 8px;
			}
		}
	}
}


// 视频列表
.video-list-home {
	padding-bottom: 15px;
	position: relative;
	overflow-x: auto;
	overflow-y: hidden;

	.scroller {
		padding-right: 10px;
		// -webkit-transform: translateZ(0px);
	}

	.video-item {
		display: block;
		float: left;
		text-align: center;
		width: 84px;
		padding-left: 10px;
		font-size: 0.9em;
		position: relative;

		img {
			display: block;
			width: 84px;
			height: 112px;
			margin: 0 auto;
			.placeholder();
		}

		.title {
			margin: 5px 0 0;
			color: @titleColor;
			text-align: left;
			// max-height: 3.6em;
			overflow: hidden;
		}

		.info {
			margin: 5px 0 0;
			font-size: 0.78em;
			color: @infoColor;
			text-align: left;
		}

		.score{
			top: 91px;
		    color: #fff;
		    font-size: 0.8em;
		    left: 10px;
		    line-height: 18px;
		    padding: 5% 5% 0;
		    position: absolute;
		    text-align: left;	
		    width: 84px;
		    box-sizing: border-box;
		    height: 21px;
		    background: -moz-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5));
			background: -o-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5));
			background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5));
			background: -ms-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5));	
		}
	}


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

		// .scroller {
		// 	padding-right: 14px;
		// }

		.video-item {
			width: 100px;
			// padding-left: 14px;
			font-size: 0.9em;

			img {
				width: 100px;
				height: 145px;
			}

			.score{
				top: 122px;	
				height: 23px;
				width: 100px;
			}
		}
	}
	

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

		// .scroller {
		// 	padding-right: 15px;
		// }

		.video-item {
			width: 110px;
			// padding-left: 15px;
			font-size: 0.9em;

			img {
				width: 110px;
				height: 145px;
			}

			.score{
				top: 121px;		
				height: 24px;
				width: 110px;
			}
		}
	}

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

		.scroller {
			padding-right: 25px;
		}

		.video-item {
			width: 120px;
			padding-left: 20px;
			font-size: 1.1em;

			img {
				width: 120px;
				height: 160px;
			}

			.title {
				margin-top: 8px;
				// max-height: 3.3em;
			}

			.score{
				left: 20px;
				top: 133px;	
				height: 27px;
				width: 120px;	
			}
		}
	}
}


// 视频列表
.video-list-landscape {

	.video-item {

		img {
			width: 84px;
			height: 63px;
		}
	}


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

		.video-item {
			width: 100px;

			img {
				width: 100px;
				height: 75px;
			}
		}
	}
	

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

		.video-item {
			width: 110px;

			img {
				width: 110px;
				height: 80px;
			}
		}
	}


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

		.video-item {
			width: 120px;

			img {
				width: 120px;
				height: 90px;
			}
		}
	}
}


// 分类标题区域
.cate-list {
	margin: 15px 0 0;
	position: relative;
	.lineBottom();

	&:last-child {
		border: 0;
		-webkit-box-shadow: none;
	}

	.cate-head {
		line-height: 25px;
		margin: 0 10px 10px;

		.cate-title {
			display: inline-block;
			font-weight: bold;
			// padding-left: 25px;
			// background: url('img/icons.png?v=4') no-repeat;
			// background-size: 22px 250px;
			font-size: 1.1em;
			color: @titleColor;

			&.movie {
				background-position: 0 1px;
			}

			&.tv {
				background-position: 0 -20px;
			}

			&.zongyi {
				background-position: 0 -45px;
			}

			&.dongman {
				background-position: 0 -67px;
			}

			&.yule {
				background-position: 0 -45px;
			}

			&.girls {
				background-position: 0 -90px;
			}

			&.news {
				background-position: 0 -113px;
			}

			&.funny {
				background-position: 0 -136px;
			}

			&.jishi {
				background-position: 0 -158px;
			}

			&.youxi {
				background-position: 0 -181px;
			}

			&.juchang {
				background-position: 0 -204px;
			}
			&.chart{
				background-position: 0 -227px;
			}
		}

		a.more {
			float: right;
			display: inline-block;
			padding-left: 10px;
			color: #919191;
			// font-size: 0.9em;
		}
	}
}


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

	.cate-list {
		.cate-head {
			margin: 0 20px 15px;

			.cate-title {
				font-size: 1.2em;
			}

			a.more {
				font-size: 1em;
			}
		}
	}
}


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

// 	.cate-list {
// 		.cate-head {
// 			margin: 0 15px 15px;
// 		}
// 	}
// }

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

// 	.cate-list {
// 		.cate-head {
// 			margin: 0 14px 15px;
// 		}
// 	}
// }



// 专题列表
.special-list {
	padding-bottom: 10px;
	overflow-x: auto;
	overflow-y: hidden;

	.scroller {
		padding-right: 10px;
	}

	a {
		display: block;
		float: left;
		width: 178px;
		padding-left: 10px;
	}

	img {
		width: 100%;
		border-radius: 5px;
		height: 85px;
	}


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

		// .scroller {
		// 	padding-right: 14px;
		// }

		a {
			width: 210px;
			// padding-left: 14px;
		}

		img {
			height: 100px;
		}
	}


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

		// .scroller {
		// 	padding-right: 15px;
		// }

		a {
			width: 230px;
			// padding-left: 15px;
		}

		img {
			height: 109px;
		}
	}


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

		.scroller {
			padding-right: 20px;
		}

		a {
			width: 240px;
			padding-left: 20px;
		}

		img {
			height: 114px;
		}
	}
}

.chart-list{
	border-bottom: none;
	box-shadow: none;

	.chart-scroller{
		padding-right: 0;
	}
	.video-list-home {

		.video-item-con{
			float: left;
			width: 194px;
		}

		.video-item {
			height: 44px;
			width: 194px;
			box-sizing: border-box;
			display: table;
			border-bottom: 1px solid rgba(255, 255, 255, 0.1);

			.img-con{
				display: table-cell;
				width: 44px;
				height: 44px;
				position: relative;
				overflow: hidden;

				img{
					position: absolute;
					left: 0;
					top: -20%;
					width: 44px;
					height: auto;
					background: none;
				}

			}

			.word-con{
				display: table-cell;
				height: 44px;
				width: 150px;
				vertical-align: middle;
				position: relative;

				.title{
					width: 90%;
					padding-left: 10px;
					font-size: 1.0em;
					box-sizing: border-box;
					overflow: hidden;
					margin-top: 0;
					height: 15px;
					line-height: 15px;
				}

				.info{
					width: 90%;
					padding-left: 10px;
					overflow: hidden;
					box-sizing: border-box;
					margin-top: 0;
				}

				.arrow{
					width: 10px;
					height: 10px;
					border-top: 1px solid rgba(255, 255, 255, 0.3);
					border-right: 1px solid rgba(255, 255, 255, 0.3);
					position: absolute;
					top: 15px;
					right: 5px;
					.rotation(45deg);
				}

			}

		}

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

			.video-item-con{
				width: 214px;
			}

			.video-item {
				width: 214px;

				.word-con{
					width: 170px;
				}

			}

		}		

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

			.video-item-con{
				width: 234px;
			}
			
			.video-item {
				width: 234px;

				.word-con{
					width: 190px;
					
					.title{
						height: 16px;
						line-height: 16px;
					}
				}

			}

		}	

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

			.video-item-con{
				width: 280px;
			}
			
			.video-item {
				height: 50px;
				width: 280px;

				.img-con{
					width: 50px;
					height: 50px;

					img{
						width: 50px;
					}

				}

				.word-con{
					height: 50px;
					width: 230px;

					.title{
						height: 18px;
						line-height: 18px;
						padding-left: 20px;
					}

					.info{
						padding-left: 20px;
					}

					.arrow{
						top: 18px;
					}

				}

			}

		}	

	}

}

.touch-visible .word-con:active{
    background: @linkActiveColor;
}

.native-ad{
	margin-right: 10px;
	margin-left: 10px;
	height: 157px;
	display: block;
	overflow: hidden;
	position: relative;

	img{
		width: 100%;
	}

	.close{
		background-image: url('img/close@2x.png?v=2');
		background-repeat: no-repeat;
		background-size: cover;
		position: absolute;
		width: 24px;
		height: 24px;
		top: 5px;
		right: 5px;
	}

	.ad-notice{
		position: absolute;
		top: 0;
		right: 0;
		background-image: url('img/ad_logo@2x.png?v=2');
		background-size: cover;
		width: 20px;
		height: 14px;
	}

	.title-con{
		position: absolute;
		bottom: 0;
		left: 0;
		height: 27%;
		width: 100%;
		color: #fff;
		padding: 5px 5px;
		font-size: 14px;
		box-sizing: border-box;
		background: rgba(0, 0, 0, 0.75);

		.title{
			line-height: 22px;
		}

		.caption{
			font-size: 10px;
			display: block;
			color: rgba(255, 255, 255, 0.6);
		}

		.ad-icon{
			float: right;
			margin-top: 10px;
			width: 30px;
			height: 15px;
			line-height: 15px;
			font-size: 10px;
			border: 1px solid rgba(255, 255, 255, 0.3);
			color: rgba(255, 255, 255, 0.4);
			text-align: center;
			border-radius: 3px;
		}
		
	}
}

@media screen and (min-width: 375px) {
	.native-ad{
		height: 185px;

		.close{
			top: 10px;
			right: 10px;
		}

		.title-con{
			padding: 7px 10px;
			font-size: 16px;	

			.title{
				line-height: 24px;
			}	

			.caption{
				font-size: 12px;
			}	
		}
	}
}

@media screen and (min-width: 414px) {
	.native-ad{
		height: 206px;

		.title-con{

			.title{
				line-height: 28px;
			}

			.caption{
				
			}

			.ad-icon{
				margin-top: 15px;
			}
			
		}
	}
}

@media screen and (min-width: 768px) {
	.native-ad-con{

		padding-left: 20px;

	}

	.native-ad{
		height: 185px;
		margin-right: 20px;
		margin-left: 0;
		float: left;
		width: 354px;

		.close{
			top: 10px;
			right: 10px;
			width: 36px;
			height: 36px;
		}

		.ad-notice{
			background-image: url('img/ad_logo@3x.png?v=2');
			background-size: cover;
			// width: 40px;
			// height: 28px;
		}

		.title-con{
			padding: 0 10px;

			.title{
				line-height: 30px;
				font-size: 18px;
			}

			.caption{
				font-size: 14px;
			}

			.ad-icon{
				margin-top: 15px;
				width: 40px;
				height: 20px;
				font-size: 12px;
				border-radius: 4px;
				line-height: 20px;
			}
			
		}
	}
}

#scroller .native-ad{
	margin: 0;
	position: relative;

	.ad-icon{
		width: 30px;
		height: 15px;
		line-height: 15px;
		font-size: 10px;
		border: 1px solid rgba(255, 255, 255, 0.3);
		color: rgba(255, 255, 255, 0.4);
		text-align: center;
		border-radius: 3px;
		position: absolute;
		right: 10px;
		bottom: 10px;
		background: rgba(0, 0, 0, 0.5);
	}

	.ad-notice{
		position: absolute;
		top: 0;
		right: 0;
		background-image: url('img/ad_logo@2x.png?v=2');
		background-size: cover;
		width: 30px;
		height: 21px;
	}

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

		.ad-icon{
			width: 40px;
			height: 20px;
			line-height: 20px;
			font-size: 12px;
			right: 15px;
			bottom: 15px;
		}

		.ad-notice{
			background-image: url('img/ad_logo@3x.png?v=2');
			background-size: cover;
			width: 40px;
			height: 28px;
		}

	}
}

.guide-con{
	height: 100%;
	width: 100%;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 3;

	.guide-bg{
		background-image: url('img/guide/guide_bg.png?v=1'); 
		background-size: cover;
		background-repeat: no-repeat;
		padding-top: 0;
		box-sizing: border-box;
		height: 100%;
		width: 100%;
		position: relative;

		.guide-pop{
			background-image: url('img/guide/guide_pop.png?v=1'); 
			background-size: cover;
			background-repeat: no-repeat;
			box-sizing: border-box;
			width: 260px;
			height: 410px;
			padding: 95px 20px 0;
			position: absolute;
			left: 50%;
			margin-left: -130px;

			p{
				margin: 0;
			}

			.title{
				color: #fff;
				font-size: 14px;
				text-align: center;
				line-height: 20px;
			}

			.info-input{
				margin-top: 12px;
				padding: 0 10px;
				height: 34px;
				color: #fff;
				
				span{
					display: inline-block;
					height: 34px;
					line-height: 34px;
					vertical-align: middle;
				}
			}

			#birthday_input, #sex_input{
				background: none;
				border: none;
				height: 32px;
				margin-left: 18px;
				color: #fff;
				width: 130px;
				padding: 0 0 0 10px;
				vertical-align: middle;
			}

			.guide-btn{
				margin-top: 22px;
				text-align: center;

				#submit_btn{
					display: inline-block;
					height: 38px;
					line-height: 38px;
					width: 134px;
					color: #000;
					font-size: 16px;
				}
			}
		}

		@media screen and (device-height: 568px){
			padding-top: 25px;
		}

		@media screen and (min-width: 375px) {
            padding-top: 70px;
        }

        @media screen and (min-width: 414px) {
            padding-top: 100px;
        }

        @media screen and (min-width: 768px) {
            padding-top: 150px;

            .guide-pop{
            	width: 400px;
				height: 630px;
				padding: 160px 40px 0;
				margin-left: -200px;

				.title{
					color: #fff;
					font-size: 20px;
					text-align: center;
					line-height: 24px;
				}

				.info-input{
					margin-top: 20px;
					padding: 0 15px;
					height: 48px;
					color: #fff;
					font-size: 20px;
					
					span{
						display: inline-block;
						height: 48px;
						line-height: 48px;
						vertical-align: middle;
					}
				}

				#birthday_input, #sex_input{
					height: 48px;
					margin-left: 18px;
					width: 205px;
					padding: 0 0 0 15px;
				}

				.guide-btn{
					margin-top: 38px;

					#submit_btn{
						height: 54px;
						line-height: 54px;
						width: 204px;
						font-size: 20px;
					}
				}
            }
        }
	}

}

//star-list
.stars-list{
	margin: 15px 0 0;
	position: relative;
	display: none;
	.lineBottom();

	&:last-child {
		border: 0;
		-webkit-box-shadow: none;
	}

	.stars-list-home{
		padding-bottom: 15px;
		position: relative;
		overflow-x: auto;
		overflow-y: hidden;

		.scroller {
			padding-right: 10px;
			// -webkit-transform: translateZ(0px);
		}

		.video-item {
			display: block;
			float: left;
			text-align: center;
			width: 75px;
			padding-left: 10px;
			font-size: 0.9em;
			position: relative;
			margin-top: 15px;

			img {
				display: block;
				// width: 75px;
				// height: 100px;
				width: 67px;
				height: 90px;
				margin: 0 auto;
				.placeholder();
			}

			.title {
				margin: 10px 0 0;
				color: @titleColor;
				text-align: left;
				// max-height: 3.6em;
				overflow: hidden;
				text-align: center;
			}
		}


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

			// .scroller {
			// 	padding-right: 14px;
			// }

			.video-item {
				// width: 100px;
				// padding-left: 14px;
				font-size: 0.9em;

				// img {
				// 	width: 100px;
				// 	height: 145px;
				// }

				.title {
					margin: 15px 0 0;
				}
			}
		}
		

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

			// .scroller {
			// 	padding-right: 15px;
			// }

			.video-item {
				// width: 110px;
				// padding-left: 15px;
				font-size: 0.9em;

				// img {
				// 	width: 110px;
				// 	height: 145px;
				// }
			}
		}

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

			.scroller {
				padding-right: 20px;
			}

			.video-item {
				// width: 120px;
				padding-left: 20px;
				font-size: 1.1em;
				margin-top: 20px;

				// img {
				// 	width: 120px;
				// 	height: 160px;
				// }

				.title {
					margin-top: 20px;
					// max-height: 3.3em;
				}
			}
		}
	}
}