@charset "UTF-8";

@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i&subset=cyrillic');
@import url('reset.css');

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #343433;
}

.back {
	position: fixed;
	z-index: 5;
	top: 0;
	left: 0;
	padding: 25px 20px;
}
.back .left {
	width: 20px;
	height: 20px;
	color: #fcfcfc;
	display: block;
}

.switch {
	display: flex;
	justify-content: center;
	margin: 20px 0;
}
.switch > a {
	color: #d3d3d1;
	font-size: 18px;
	font-weight: 400;
	display: block;
	padding: 10px;
	border-radius: 10px;
	text-align: center;
	background: rgb(255 255 255 / .05);
	width: calc(100% / 2);
}
.switch > a:first-child {
	margin-right: 10px;
}
.switch > a:last-child {
	margin-left: 10px;
}
.switch > a.active {
	color: #fcfcfc;
	background: #feb801;
}
.switch > a.disable {
	color: rgb(211 211 209 / 30%);
	pointer-events: none;
}

.search-wrapper {
	padding: 20px;
}

.search-wrapper h2 {
	color: #feb801;
	font-size: 20px;
	font-weight: 600;
	text-align: center;
	margin: 20px 0;
}

.nothing {
	text-align: center;
	font-size: 18px;
	font-weight: 400;
	line-height: 100px;
	margin: 20px 0;
	color: #d3d3d1;
}

.search-form form {
	display: block;
	position: relative;
}
.search-form label {
	font-size: 14px;
	color: #d3d3d1;
	display: block;
}
.search-form input {
	background: transparent;
	border: none;
	display: block;
	width: 100%;
	color: #d3d3d1;
	font-size: 20px;
	line-height: 40px;
	font-weight: 400;
	border-bottom: 2px solid #feb801;
}
.search-form .clear {
	width: 40px;
	color: #fff;
	position: absolute;
	top: 0;
	right: 0;
	padding: 14px;
	cursor: pointer;
}
.search-form .clear > svg {
	display: block;
}

.list-label {
	display: none;
	color: #fff;
	font-weight: 600;
	font-size: 18px;
	margin: 20px 0 10px 0;
}

.list {
	display: none;
	/*overflow: hidden;*/
	flex-direction: column;
}
.list.active {
	display: flex;
}
.list li {
	display: block;
	padding: 15px;
	margin-bottom: 20px;
	border-radius: 10px;
	background: rgb(255 255 255 / .05);
}
.list li:last-child {
	margin-bottom: 0;
}
.list li a {
	display: block;
	overflow: hidden;
	flex-direction: row;
	align-items: center;
	text-decoration: none;
	color: #fcfcfc;
	position: relative;
}
.list li .wrapper {
    position: absolute;
    left: 115px;
	right: 0;
    top: 50%;
    transform: translateY(-50%);
}
.list li:nth-child(even) .wrapper {
	left: 0;
	right: 115px;
}
.list li .poster {
	border-radius: 5px;
	width: 100px;
	height: 150px;
	margin-right: 15px;
	background-size: cover;
	background-position: center;
	float: left;
}
.list li:nth-child(even) .poster {
	margin-right: auto;
	margin-left: 15px;
	float: right;
}
.list li .title {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 10px;
}
.list li .body,
.list li .year,
.list li .genre {
	font-size: 16px;
	font-weight: 300;
	color: #d3d3d1;
	margin-bottom: 10px;
}
.list li .genre {
	text-transform: capitalize;
}

article {
    left: 0;
    top: 0;
	width: 100%;
	height: 100%;
	position: fixed;
	overflow: hidden;
	overflow-y: auto;
	background: rgb(52 52 51);
}
article .add-to-watchlist {
	font-size: 18px;
	font-weight: 400;
	display: block;
	padding: 10px;
	border-radius: 10px;
	text-align: center;
	color: #fcfcfc;
    border: 2px solid #feb801;
	margin-bottom: 20px;
}
article.focus {
	overflow: hidden !important;
}
article .poster {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center 0;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
}
article.focus .poster {
	background-position: center !important;
	left: 10px;
	right: 10px;
}
article .poster-blur {
	visibility: hidden;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
	position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
	z-index: 1;
	filter: blur(20px);
	opacity: .5;
}
article.focus .poster-blur {
	visibility: visible;
}
article .body {
	padding: 20px 20px 80px 20px;
	color: #d3d3d1;
	position: absolute;
	width: 100%;
	top: 50%;
	z-index: 3;
	background: linear-gradient(180deg, rgba(52 52 51 / 0) 0, rgba(52 52 51 / 90%) 50px, rgb(52 52 51 / 100%) 200px);
	min-height: 50%;
	transition: top .2s linear;
}
article.focus .body {
	top: 100% !important;
	background: linear-gradient(180deg, rgba(52 52 51 / 0) 0, rgba(52 52 51 / 100%) 50px) !important;
}
article .body .header {
	color: #fcfcfc;
	line-height: 40px;
	overflow: hidden;
	display: flex;
    align-items: flex-end;
	margin-bottom: 20px;
}
article .body .header .title {
	font-size: 28px;
	font-weight: 700;
	width: calc(100% - 80px);
}
article .body .header .rating {
	width: 80px;
	float: right;
	text-align: right;
}
article .body .header .rating .star {
	color: #feb801;
	width: 20px;
	margin-right: 5px;
	vertical-align: middle;
}
article .body .header .rating .num {
	font-size: 18px;
	font-weight: 600;
	vertical-align: middle;
}
article .body .plot {
	text-align: left;
}
article .body strong {
	color: #fcfcfc;
	font-weight: 700;
}
article .body p {
	margin-bottom: 20px;
	line-height: 24px;
	font-size: 16px;
}
article .body dl dt {
	display: inline-block;
	margin-right: 5px;
}
article .body dl dd {
	display: inline-block;
}
article .body dl a {
	color: #feb801;
	margin: 0 5px;
	display: inline-block;
}
article .body dl a:after {
	content: ',';
}
article .body dl dd:last-child a:after {
	content: '';
}

@media screen and (min-width:750px){
	.switch {
		display: none;
	}

	.list-label {
		display: block;
	}

	.list {
		display: block;
		white-space: nowrap;
	}
	/*.is-mobile .list {
		overflow: auto;
	}*/
	.list.active {
		display: block;
	}
	.list li {
		width: 100px;
		display: inline-block;
		padding:0;
		overflow: hidden;
		margin: 0;
		margin-right: 10px;
		transition: .2s width;
	}
	.list li.init-hover {
		width: 250px !important;
		transition: none !important;
	}
	.list li.hover {
		width: 250px;
	}
	.list li:last-child {
		margin-right: 0;
	}
	.list li .poster {
		margin: 0 !important;
		transition: .2s width;
		filter: none;
	}
	.list li.init-hover .poster {
		width: 250px !important;
		transition: none !important;
	}
	.list li.hover .poster {
		width: 250px;
	}
	.list li .wrapper {
		display: none;
	}
	
	article .poster-blur {
		visibility: visible !important;
	}
}