@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%;
	height: 0;
	padding-bottom: 49%;
	position: relative;
	overflow: hidden;
	background: url(img/loading.gif) center no-repeat #000;
	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;
			}
		}
	}
}

@media screen and (min-width: 768px) {
		#home-slider {
			padding-bottom: 41.5%
		}
}

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

	.scroller {
		padding-left: 10px;
		// -webkit-transform: translateZ(0px);
		overflow-x: scroll;
    	display: -webkit-box;
	}

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

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

		.dislike {
			display: block;
			position: absolute;
			width: 84px;
			height: 112px;
			top: 0;
			background-color: rgba(0, 0, 0, 0.8);
			.retina('img/suggestion_close.png', 40px, 40px, center, center);
		}

		.title {
			margin: 5px 0 0;
			color: @titleColor;
			text-align: left;
			max-height: 4.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;
			}

			.dislike {
				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;
			}

			.dislike {
				width: 110px;
				height: 145px;
			}

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

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

		.scroller {
			padding-left: 25px;
		}

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

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

			.dislike {
				width: 120px;
				height: 160px;
			}

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

			.score{
				left: 0px;
				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-image: url('img/icons.png?v=7');
			background-repeat: no-repeat;
			background-size: 22px 325px;
			background-position: 0 1px;
			font-size: 1.1em;
			color: @titleColor;

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

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

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

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

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

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

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

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

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

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

			&.juchang {
				background-position: 0 -225px;
			}

			&.chart {
				background-position: 0 -250px;
			}

			&.keji {
				background-position: 0 -275px;
			}

			&.suggestion {
				background-position: 0 -300px;
			}
		}

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

		.info {
			float: right;
			display: inline-block;
			padding-left: 10px;
			color: #999;
			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-left: 10px;
		display: -webkit-box;
    	overflow-x: scroll;
	}

	a {
		display: block;
		//float: left;
		width: 130px;
		margin-right: 10px;
	}

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


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

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

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

		img{
			height: 85px;
		}
	}


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

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

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

		img{
			height: 92px;
		}
	}


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

		.scroller {
			padding-left: 20px;
			display: -webkit-box;
    		overflow-x: scroll;
		}

		a {
			width: 190px;
			padding-right: 20px;
		}

		img{
			height: 96px;
		}
	}
}

.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-con{
	.lineBottom();

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

		a{
			display: block;
			height: 157px;
			padding-bottom: 15px;
			overflow: hidden;
		}

		img{
			width: 100%;
			height: 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: 15px;
			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);
				overflow: hidden;
			    text-overflow: ellipsis;
			    white-space: nowrap;
			    height: 12px;
			}

			.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-con{

		.native-ad{

			a{
				height: 185px;
			}

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

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

				.title{
					line-height: 24px;
				}	

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

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

		.native-ad{
			a{
				height: 206px;
			}

			.title-con{

				.title{
					line-height: 28px;
				}

				.caption{
					
				}

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

@media screen and (min-width: 768px) {
	.native-ad-con{
		.lineBottom();
		padding-left: 20px;

		.native-ad{
			margin-right: 20px;
			margin-left: 0;
			float: left;
			width: 354px;
			border: 0;
			-webkit-box-shadow: none;

			a{
				height: 185px;
			}

			.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;
					height: 18px;
				}

				.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;
		}

	}
}










