@import "base.less";
// @import "list.less";
@import "loading.less";
// @import "video-list.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;
			}
		}
	}
}

.list-content{
	padding: 10px;
	background-color: #eee;

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

		padding: 20px;
	}
}

// 视频列表
.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: 25%;
		padding: 5px;
		font-size: 0.88em;
		position: relative;
		box-sizing: border-box;
		// margin-bottom: 10px;

		img {
			display: block;
			width: 100%;
			height: 88px;
			margin: 0 auto;
			.placeholder();
		}

		.title {
			margin: 3px 0 0;
			color: @titleColor;
			text-align: left;
			height: 2.4em;
			line-height: 1.2em;
			font-size: 1em;
			overflow: hidden;
			// text-overflow: ellipsis;
   //  		white-space: nowrap;
    		// font-size: 1.1em;
		}

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

		.score{
			top: 72px;
		    color: rgba(255, 255, 255, 0.7);
		    // font-size: 1em;
		    left: 5px;
		    line-height: 21px;
		    overflow: hidden;
			text-overflow: ellipsis;
    		white-space: nowrap;
		    padding: 0 5%;
		    position: absolute;
		    text-align: left;
		    width: 63px;
		    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));	
			background: rgba(0, 0, 0, 0.5) none repeat scroll 0 0;
		}
	}


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

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

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

			img {
				height: 108px;
			}

			.title {
				height: 2.4em;
			}

			.score{
				top: 90px;	
				height: 23px;
				width: 76px;
				line-height: 23px;
			}
		}
	}
	

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

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

		.video-item {
			// padding-left: 15px;
			// font-size: 0.95em;

			img {
				height: 121px;
			}

			.score{
				top: 102px;		
				height: 24px;
				line-height: 24px;
				width: 86px;
			}
		}
	}

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

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

		.video-item {
			padding: 10px;
			font-size: 1.1em;
			// margin-bottom: 20px;

			img {
				height: 221px;
			}

			.title {
				margin-top: 8px;
			}

			.score{
				left: 10px;
				top: 203px;	
				height: 27px;
				width: 157px;	
				line-height: 27px;
			}
		}
	}
}


// 视频列表
.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: 0 0 10px;
	padding: 5px;
	position: relative;
	// .lineBottom();
	background: #fff;

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

	.cate-head {
		margin: 5px;
		height: 25px;

		.cate-title {
			display: inline-block;
			// font-weight: bold;
			width: 70%;
			height: 25px;
			line-height: 27px;
			overflow: hidden;
			text-overflow: ellipsis;
		    white-space: nowrap;
			padding-left: 30px;
			background-image: url('img/index/home_hot@2x.png?v=2');
			background-position: 0 3px;
			background-repeat: no-repeat;
			background-size: 22px 22px;
			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;
			}
		}

		a.more {
			float: right;
			display: inline-block;
			padding-right: 15px;
			color: #999;
			// font-size: 0.9em;
			line-height: 27px;
			height: 25px;
			background-image: url('img/code@2x.png?v=2');
			background-repeat: no-repeat;
			background-size: 10px 10px;
			background-position: right 9px;
		}
	}
}


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

	.cate-list {
		padding: 10px;
		margin: 0 0 20px;

		.cate-head {
			margin: 10px;

			.cate-title {
				font-size: 1.2em;
				height: 25px;
				width: 85%;
			}

			a.more {
				font-size: 1.2em;
				line-height: 28px;
				background-position: right 10px;
			}
		}
	}
}


// @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;

	.cate-head .cate-title{
		background-image: url('img/index/home_top@2x.png?v=2');
		background-position: 0 3px;
		background-repeat: no-repeat;
		background-size: 22px 22px;
	}

	.cate-head a.more{

	}

	@media screen and (min-width: 768px) {
		.cate-head a.more{
			font-size: 1.2em;
		}
	}

	.chart-scroller{
		padding: 5px 0;

		@media screen and (min-width: 768px) {
			padding: 10px 0;
		}
	}
	.video-list-home {

		.video-item-con{
			float: left;
			width: 50%;
		}

		.video-item {
			// height: 44px;
			margin-bottom: 0;
			width: 100%;
			padding: 0 5px;
			box-sizing: border-box;
			// display: table;
			// border-bottom: 1px solid rgba(255, 255, 255, 0.1);

			.img-con{
				// display: table-cell;
				float: left;
				width: 28%;
				height: 38px;
				position: relative;
				overflow: hidden;

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

			}

			.word-con{
				// display: table-cell;
				float: left;
				height: 37px;
				width: 72%;
				// vertical-align: middle;
				position: relative;
				border-bottom: rgba(0, 0, 0, 0.1) 1px solid;

				  @media screen and (-webkit-min-device-pixel-ratio : 1.5), screen and (min-device-pixel-ratio : 1.5) {
				    & {
				      border:0;
				      -webkit-box-shadow: inset 0 -1px 1px -1px rgba(0, 0, 0, 0.3);
				    }
				  }

				.title{
					width: 100%;
					padding-left: 10px;
					font-size: 1em;
					box-sizing: border-box;
					overflow: hidden;
					margin-top: 0;
					height: 20px;
					line-height: 22px;
				}

				.info{
					width: 90%;
					padding-left: 10px;
					overflow: hidden;
					box-sizing: border-box;
					margin-top: 0;
					display: block;
					font-size: 1.0em;
				}

				.arrow{
					width: 10px;
					height: 10px;
					border-top: 1px solid rgba(0, 0, 0, 0.3);
					border-right: 1px solid rgba(0, 0, 0, 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;

				.img-con{

					height: 46px;

				}

				.word-con{
					// width: 170px;
					height: 45px;

					.title{
						height: 26px;
						line-height: 28px;
					}
				}

			}

		}		

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

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

					height: 51px;

				}

				.word-con{
					// width: 190px;
					height: 50px;
					
					.title{
						height: 30px;
						line-height: 32px;
					}
				}

			}

		}	

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

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

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

					img{
						// width: 50px;
					}

				}

				.word-con{
					height: 95px;
					// width: 230px;

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

					.info{
						padding-left: 20px;
					}

					.arrow{
						top: 18px;
					}

				}

			}

		}	

	}

}

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

.native-ad{
	margin-left: 10px;
	margin-right: 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;
	}

	.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: 17px;
			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-left: 0px;
		margin-right: 20px;
		float: left;
		width: 354px;

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

		.title-con{
			padding: 0 10px;

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

			.caption{
				font-size: 14px;
			}

			.ad-icon{
				margin-top: 12px;
				width: 46px;
				height: 24px;
				font-size: 16px;
				border-radius: 4px;
				line-height: 26px;
			}
			
		}
	}
}

#scroller .native-ad{
	margin: 0;
}

// 专题区域
.special-cate-list {
	margin: 0 0 10px;
	position: relative;
	background-color: #fff;
	padding: 1px 0 0px;
	// .lineBottom();

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

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

		.special-cate-title {
			width: 80%;
			height: 25px;
			line-height: 27px;
			overflow: hidden;
			text-overflow: ellipsis;
		    white-space: nowrap;
			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;
			color: #ff3c00;

			.special-cate-caption{
				font-size: 10px;
				color: #ffc031;
			}

		}

		a.more {
			float: right;
			display: inline-block;
			padding-right: 15px;
			line-height: 27px;
			height: 25px;
			color: #999;
			// font-size: 0.9em;
			background-image: url('img/code@2x.png?v=2');
			background-repeat: no-repeat;
			background-size: 10px 10px;
			background-position: right 9px;
		}
	}
}


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

	.special-cate-list {
		padding: 1px 0 10px;
		margin: 0 0 20px;

		.special-cate-head {
			margin: 15px 20px 15px;
			line-height: 28px;

			.special-cate-title {
				height: 28px;
				font-size: 1.3em;
				width: 85%;

				.special-cate-caption{
					font-size: 14px;
				}
			}

			a.more {
				font-size: 1.2em;
				background-position: right 10px;
			}
		}
	}
}

.special-list-home{

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

	.special-item {
		display: block;
		float: left;
		text-align: center;
		width: 25%;
		padding-right: 10px;
		font-size: 0.8em;
		box-sizing: border-box;
		position: relative;

		img {
			display: block;
			width: 100%;
			height: 88px;
			margin: 0 auto;
			.placeholder();
		}

		.title {
			margin: 5px 0 0;
			color: @titleColor;
			text-align: left;
			height: 2.4em;
			line-height: 1.2em;

			// text-overflow: ellipsis;
   //  		white-space: nowrap;
			overflow: hidden;
		}

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

		.score{
			top: 67px;
		    color: rgba(255, 255, 255, 0.7);
		    font-size: 0.8em;
		    left: 0;
		    line-height: 21px;
		    padding: 0 5%;
		    position: absolute;
		    text-align: left;	
		    width: 62px;
		    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));	
			background: rgba(0, 0, 0, 0.5);
			overflow: hidden;
			text-overflow: ellipsis;
    		white-space: nowrap;
		}
	}


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

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

		.special-item {
			// font-size: 0.9em;

			img {
				height: 108px;
			}

			.score{
				// font-size: 0.9em;
				top: 85px;	
				height: 23px;
				width: 76px;
				line-height: 23px;
			}
		}
	}
	

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

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

		.special-item {
			font-size: 0.95em;

			img {
				height: 121px;
			}

			.score{
				top: 97px;		
				height: 24px;
				width: 86px;
				// font-size: 1.1em;
				line-height: 24px;
			}
		}
	}

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

		.special-scroller {
			padding-left: 20px;
		}

		.special-item {
			padding-right: 20px;
			font-size: 1.1em;

			img {
				height: 221px;
			}

			.title {
				margin-top: 8px;
			}

			.score{
				top: 188px;	
				height: 33px;
				width: 157px;
				line-height: 33px;	
			}
		}
	}
}