@import "variables.less";

.leplayer--ended
{
	.leplayer-next
	{
		display: block;
	}
}

.leplayer--mini
{
	.leplayer-next
	{
		z-index: @z-index-miniplayer + 2;
		@media (max-width: 750px) {
			display: none;
		}

		&::after {
			display: none;
		}

		&__box {
			width: 170px;
			right: auto;
			top: 0;
			left: 0;
			bottom: 0;
			flex: 0 0 170px;
			margin-left: auto;
			position: absolute;
			background: @color-background;
			transform: none;
			height: auto;
		}

		&__cancel {
			margin-top: 15px;
		}

		&__poster {
			width: 100%;
			flex: 0 0 100%;
			background-size: auto 100%;
			background-position: center;
		}

		&__content {
			display: none;
		}

		&--auto {
			.leplayer-next__play {
				margin-top: -20px;
			}
		}

	}
}

.leplayer--fullscreen

{

	.leplayer-next
	{
		z-index: @z-index-fullscreen + 7;

		@media (min-width: 440px) {
          .leplayer-next__box {

                  max-width: 600px;

                  height: 200px;
          }

          .leplayer-next__head {
              margin-bottom: 80px;
          }

          .leplayer-next__poster {
              width: 60%;
          }

          .leplayer-next__content {
              width: 40%;
          }
		}

		.leplayer-next__play {
			font-size: 30px;
		}
	}
}


.leplayer-next {
	position: absolute;
	display: none;
	vertical-align: top;
	opacity: 1;
	overflow: hidden;
	width: 100%;
	height: 100%;
	transition: all .1s cubic-bezier(0.4, 0.0, 1, 1);
	top: 0;
	z-index: @z-index-base + 7;
	background-size: cover;
	&::after {
		content: '';
		position: absolute;
		background: rgba(0, 0, 0, 0.6);
		top: 0;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: -1;
	}

	&__box {
		max-width: 400px;
		display: flex;
		height: 143px;
		position: absolute;
		width: 100%;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		background: fade(@color-background, 67%);
		color: black;
		@media (max-width: 440px) {
			max-width: 300px;
		}
	}

	&__poster {
		width: 50%;
		align-items: center;
		justify-content: center;
		background-size: cover;
		background-color: black;
		background-repeat: no-repeat;
		display: flex;
	}

	&__content {
		width: 50%;
		padding: 10px;
		box-sizing: border-box;
		font-size: 13px;
		overflow: hidden;
	}

	&__title {
		display: block;
		font-weight: 500;
	}

	&__description {
		display: block;
		margin-top: 5px;
		@media (max-width: 440px) {
			display: none;
		}
	}

	&__time {
		background: rgba(0, 0, 0, 0.8);
		border-radius: 1px;
		bottom: 10px;
		color: #fff;
		padding: 1px 5px 0 5px;
		position: absolute;
		right: 10px;
	}

	&__head {
		text-align: center;
		font-weight: bold;
		width: 100%;
		color: white;
		position: absolute;
		margin-left: auto;
		margin-right: auto;
		bottom: 50%;
		margin-bottom: 80px;
	}

	&__mini-title
	{
		display: none;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		color: white;
		font-size: 13px;
	}

	&__cancel
	{
		position: absolute;
		top: 55%;
		margin-top: 30px;
		cursor: pointer;
		display: none;
		border: none;
		box-shadow: none;
		background-color: transparent;
		padding: 0.2em;
		color: white;
		&:hover
		{
			background-color: rgba(255,255,255,0.25);
			border-radius: 2px;
		}
	}

	&__play {
		display: block;
		width: 2em;
		height: 2em;
		background-color: @color-background;
		border-radius: 50%;
		position: static;
		font-size: 30px;
	}

	&__close {
		background: none;
		border: none;
		text-shadow: none;
	}

	&__svg-spinner {
		position: absolute;
		left: 0;
		top: 0;
		color: @color-primary;
		display: none;
	}
}

.leplayer-next--auto
{
	.leplayer-next__cancel
	{
		display: inline-block;
	}


	.leplayer-next__play {
		width: 2.2em;
		height: 2.2em;
		position: relative;
	}

	.leplayer-next__button {
		width: 2em;
		height: 2em;
		margin-left: 0.1em;
		margin-top: 0.1em;
		border-radius: 50%;
		text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
		cursor: pointer;
		color: @color-primary;
		&:hover
		{
			opacity: fade(@color-active, 80%);
		}
	}

	.leplayer-next__svg-spinner {
		display: block;
	}
}
