/* roboto-regular - cyrillic_latin */
@font-face {
	font-display: swap;
	/* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 400;
	src: url('fonts/roboto-v30-cyrillic_latin-regular.woff2') format('woff2');
	/* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* roboto-italic - cyrillic_latin */
@font-face {
	font-display: swap;
	/* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
	font-family: 'Roboto';
	font-style: italic;
	font-weight: 400;
	src: url('fonts/roboto-v30-cyrillic_latin-italic.woff2') format('woff2');
	/* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* roboto-500 - cyrillic_latin */
@font-face {
	font-display: swap;
	/* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 500;
	src: url('fonts/roboto-v30-cyrillic_latin-500.woff2') format('woff2');
	/* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* roboto-500italic - cyrillic_latin */
@font-face {
	font-display: swap;
	/* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
	font-family: 'Roboto';
	font-style: italic;
	font-weight: 500;
	src: url('fonts/roboto-v30-cyrillic_latin-500italic.woff2') format('woff2');
	/* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* roboto-700 - cyrillic_latin */
@font-face {
	font-display: swap;
	/* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 700;
	src: url('fonts/roboto-v30-cyrillic_latin-700.woff2') format('woff2');
	/* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* roboto-700italic - cyrillic_latin */
@font-face {
	font-display: swap;
	/* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
	font-family: 'Roboto';
	font-style: italic;
	font-weight: 700;
	src: url('fonts/roboto-v30-cyrillic_latin-700italic.woff2') format('woff2');
	/* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0
}

body {
	font-family: 'Roboto', sans-serif;
	font-size: 16px;
	line-height: 1.5;
	margin: auto;
	background-color: #151515;
}

a {
	color: #fff;
	text-decoration: none;
}

br {
	margin-top: -5px;
	margin-bottom: -5px;
}

header {
	display: grid;
	background-color: #151515;
	align-items: center;
	grid-template-columns: 1fr auto;
	position: sticky;
	width: 100%;
	top: 0;
	z-index: 8;
	padding: 10px 20px;
	grid-gap: 10px;
	backdrop-filter: blur(10px);
}

header .btn {
	border-radius: 7px;
	font-size: 22px;
	color: #8c8c8c;
	height: 46px;
	width: 46px;
	display: inline-flex;
	justify-content: center;
	align-items: center;
}

header .btn:hover {
	background-color: #2d2d2d;
}

.header__search {
	display: block;
	width: 100%;
	padding: 15px;
	background-color: #2d2d2d;
	border: 0;
	color: #fff;
	border-radius: 7px;
}

main {
	display: block;
	color: #ddd;
	min-height: 100vh;
	background-color: #151515;
	width: 100%;
}

.container {
	padding: 20px;
	padding-bottom: 10vh;
}

aside {
	min-height: 100vh;
	background-color: #242424;
	display: grid;
	align-content: space-between;
	position: fixed;
	top: 0;
	width: auto;
	left: 0;
}

aside .logo {
	display: block;
	font-size: 26px;
	margin-bottom: 30px;
	text-align: center;
	margin-top: 20px;
	font-weight: 500;
}

aside .logo a {
	color: #ddd;
}

.sidemenu__block {
	display: grid;
}

.sidemenu__link {
	display: inline-flex;
	color: #939393;
	align-items: center;
	grid-gap: 12px;
	height: 60px;
	width: 60px;
	justify-content: center;
}

.sidemenu__link:hover {
	background-color: #404040;
	color: #ddd;
}

.sidemenu__block i {
	font-size: 22px;
}

.content__wrapper {
	display: flex;
	align-items: flex-start;
	max-width: 1200px;
	margin: 0 auto;
}

input,
button,
textarea {
	font-family: sans-serif;
	font-size: 16px;
	margin: 10px 0;
	display: block;
	outline: none;
}

textarea {
	box-sizing: border-box;
	resize: vertical;
	min-height: 200px;
	line-height: 1.5;
}

.input__btn {
	display: inline-block;
	padding: 15px;
	border: 0;
	background-color: #56425c;
	color: #c7b5cc;
	cursor: pointer;
	border-radius: 7px;
}

.input__text {
	display: block;
	padding: 15px;
	width: 100%;
	border: 0;
	background-color: #333;
	color: #fff;
	border-radius: 7px;
}

.title {
	display: block;
	font-size: 20px;
	font-weight: 500;
}

.hidden {
	display: none;
	/* Скрываем блок с данными фильма по умолчанию */
}

.movie__found {
	overflow: hidden;
	position: relative;
	display: inline-grid;
	justify-items: center;
	grid-gap: 10px;
	cursor: pointer;
}

.movie__found img {
	max-width: 150px;
}

.main__title {
	display: block;
	font-size: 20px;
	font-weight: 500;
}

.movies__box {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-gap: 20px;
	margin-top: 15px;
}

.movie__block {
	overflow: hidden;
	position: relative;
	display: flex;
	flex-direction: column;
	grid-gap: 15px;
	transition: all .3s ease-in-out;
	background-color: #242424;
	border-radius: 10px;
	border: 1px solid #333;
}

.movie__btn {
	display: block;
	text-align: center;
	background-color: #694475;
	padding: 7px;
	border-radius: 7px;
	color: #e1b9ee;
	opacity: .7;
}

.movie__block:hover .movie__btn {
	opacity: 1;
}

.movie {
	overflow: hidden;
	position: relative;
	height: 0;
	padding: 25% 0;
	display: block;
}

.movie img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	top: 0;
}

.movie__title {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	display: block;
	color: #fff;
	font-weight: 500;
}

.movie__subtitle {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	display: block;
	color: #999;
	font-size: 13px;
	max-width: 100%;
}

.movie__item {
	padding: 0 15px;
}

.movie__links {
	padding: 0 15px 15px 15px;
}

.movie__person__block {
	display: grid;
	grid-gap: 10px;
	margin-top: 15px;
}

.movie__person {
	display: grid;
	background-color: #2b2b2b;
	padding: 15px;
	border-radius: 7px;
}

.movie__person__title {
	font-weight: 500;
}

.movie__person__subtitle {
	font-size: 14px;
	color: #999;
}

.cover__post {
	position: relative;
	display: block;
	overflow: hidden;
	height: 0;
	padding: 25% 0;
	border-radius: 10px;
}

.cover__post:before {
	content: "";
	height: 100%;
	width: 100%;
	background-image: linear-gradient(to top, #000 5%, #0000 100%);
	position: absolute;
	display: block;
	z-index: 2;
	top: 0;
}

.cover__post img {
	position: absolute;
	margin: auto;
	width: 100%;
	object-fit: cover;
	height: 100%;
	top: 0;
}

.cover__post__title {
	position: absolute;
	z-index: 2;
	color: #fff;
	bottom: 37px;
	left: 20px;
	font-size: 20px;
	display: block;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	width: 85%;
	font-weight: 500;
}

.cover__post__subtitle {
	position: absolute;
	z-index: 2;
	color: #b3b3b3;
	bottom: 15px;
	left: 20px;
	display: block;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	width: 85%;
	font-size: 14px;
}

/* -------------------- Favorite Button ----------------- */
.favorite__button {
	display: inline-flex;
	padding: 5px;
	font-size: 24px;
	border: 0;
	border-radius: 5px;
	background-color: #646464;
	cursor: pointer;
	position: absolute;
	right: 10px;
	top: 0;
	color: #b7b7b7;
}

.favorited {
	background-color: #ff8135;
	color: #442410;
}

/* -------------------- Movie Full Page ----------------- */
.full__container {
	display: grid;
	grid-template-columns: 250px 1fr;
	grid-gap: 20px;
}

.full__title {
	font-size: 20px;
	font-weight: 500;
}

.full__subtitle {
	color: #999;
	margin-bottom: 15px;
}

.full__desc {
	background-color: #2b2b2b;
	padding: 15px;
	border-radius: 7px;
}

.full__desc span {
	display: block;
	font-size: 18px;
	font-weight: 500;
	margin-bottom: 10px;
	color: #919191;
}

.full__iframe {
	margin-top: 20px;
	position: relative;
	overflow: hidden;
	border-radius: 7px;
}

.full__iframe iframe {
	display: block;
	width: 100%;
	height: 440px;
}

.full__cover {
	position: relative;
	overflow: hidden;
	height: 0;
	padding: 70% 0;
	border-radius: 7px;
	margin-bottom: 20px;
}

.full__cover img {
	position: absolute;
	top: 0;
	object-fit: cover;
	width: 100%;
	height: 100%;
}

.full__items {
	display: grid;
	grid-gap: 3px;
	margin-bottom: 15px;
	grid-template-columns: 170px 1fr;
}

.full__items span {
	text-transform: lowercase;
	font-size: 14px;
	font-weight: 500;
	color: #777;
}

.full__items a {
	border-bottom: 1px dashed;
	color: #ddd;
}

/*-------------------------------------------------------*/
.search_box {
	position: relative;
}

.search_result {
	position: absolute;
	top: 100%;
	left: 0;
	background: #2d2d2d;
	padding: 7px;
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
	width: 100%;
	border-radius: 7px;
}

.search_result a {
	display: block;
	color: #f7f7f7;
	padding: 10px;
	border-radius: 7px;
}

.search_result a:hover {
	background-color: #444;
}

/* ---------------- Rating Content --------------- */
.rating__title {
	padding: 0 20px;
	font-size: 18px;
	padding-top: 20px;
	color: var(--font-1);
	text-align: center;
	background-color: var(--rating);
	border-top: 1px solid #8a8a8a29;
}

.f__rating__block {
	display: grid;
	justify-items: center;
	grid-gap: 7px;
	padding: 20px;
	background-color: #2b2b2b;
	margin: 20px 0;
	border-radius: 7px;
}

.rating {
	display: grid;
	justify-content: center;
	gap: 10px;
	align-items: flex-start;
}

.user__rating {
	display: block;
	text-align: center;
}

.average-rating {
	display: flex;
	justify-content: center;
	padding-bottom: 10px;
}

.average-rating big {
	font-size: 32px;
	color: #4fb34f;
	line-height: 38px;
}

.average-rating small {
	font-size: 16px;
	color: #666;
}

.star-rating {
	display: flex;
	flex-direction: row-reverse;
	justify-content: center;
	margin-top: 5px;
}

.star-rating input[type="radio"] {
	display: none;
	/* Hide the radio buttons */
}

.star-rating label {
	background-color: #646464;
	width: 45px;
	height: 45px;
	background-repeat: no-repeat;
	cursor: pointer;
	border-radius: 8px;
	align-items: center;
	justify-content: center;
	display: inline-flex;
	color: #d0d0d0;
	border: 3px solid #2b2b2b;
}

@media (width <=768px) {
	.star-rating label {
		width: 35px;
		height: 35px;
	}
}

.star-rating input[type="radio"]:hover~label {
	background-repeat: no-repeat;
	cursor: pointer;
	background-color: #ff964a;
	color: #000;
}

.star-rating label:before {
	content: "";
}

.star-rating input[type="radio"]:checked~label {
	background-repeat: no-repeat;
	background-color: #ff7a2a;
	color: #fff;
}

/* -------------------- Mobile Views -------------------- */

@media screen and (width <=768px) {
	header {
		border-bottom: 1px solid #3a3a3a;
	}

	.content__wrapper {
		grid-template-columns: 1fr;
	}

	aside {
		min-height: auto;
		position: fixed;
		left: 0;
		bottom: 0;
		width: 100%;
		z-index: 8;
		top: auto;
	}

	.sidemenu__block {
		display: grid;
		width: 100%;
		justify-items: center;
		padding: 7px;
		grid-template-columns: repeat(5, 1fr);
		grid-gap: 0;
	}

	.sidemenu__block a {
		width: 46px;
		height: 46px;
		align-items: center;
		justify-content: center;
		display: flex;
		border-radius: 7px;
	}

	.movies__box {
		grid-template-columns: 1fr;
	}

	.full__container {
		grid-template-columns: 1fr;
	}

	.cover__post {
		padding: 30% 0;
	}
}