:root {
	--bg: #2e2e2e;
	--surface: #2b2b2b;
	--surface-dark: #171717;
	--surface-deep: #111213;
	--surface-soft: #3b3b3b;
	--text: #ffffff;
	--muted: #b7b7b7;
	--muted-dark: #8d8d8d;
	--yellow: #fcde03;
	--pink: #ed5565;
	--green: #97ce68;
	--green-dark: #6ea83a;
	--blue: #00457b;
	--orange: #f56619;
	--focus: #ffffff;
	--radius: 3px;
	--shadow: 0 0 40px rgb(0 0 0 / 60%);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	min-width: 320px;
	margin: 0;
	color: var(--text);
	background: var(--bg) url("../images/wr-bg.jpg") center top / cover fixed no-repeat;
	font: 14px/1.45 Roboto, Arial, Helvetica, sans-serif;
}

body.modal-open {
	overflow: hidden;
}

img,
svg,
video,
iframe {
	max-width: 100%;
}

img {
	display: block;
}

button,
input,
textarea,
select {
	font: inherit;
}

button,
a {
	-webkit-tap-highlight-color: transparent;
}

button {
	border: 0;
	cursor: pointer;
}

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

a:hover {
	color: #fff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
}

h1,
h2,
h3,
p {
	margin-top: 0;
}

[hidden] {
	display: none !important;
}

.skip-link {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 10000;
	padding: 10px 14px;
	color: #111;
	background: var(--yellow);
	transform: translateY(-150%);
}

.skip-link:focus {
	transform: none;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.wrapper {
	position: relative;
	min-height: 100vh;
	padding-top: 240px;
}

.brand-title {
	display: none;
}

.site-shell {
	position: relative;
	z-index: 2;
	width: min(1200px, 100%);
	margin: 0 auto;
	overflow: visible;
	color: var(--text);
	background: var(--surface);
	border-radius: 4px 4px 0 0;
	box-shadow: var(--shadow);
}

.top {
	position: relative;
	display: flex;
	height: 70px;
	padding-left: 300px;
	background: var(--surface);
	border-radius: 4px 4px 0 0;
}

.logotype {
	position: absolute;
	inset: 0 auto auto 0;
	width: 300px;
	height: 70px;
	overflow: hidden;
	background: url("../images/logo.png") left center / contain no-repeat;
	text-indent: -1000px;
	transition: opacity 180ms ease;
}

.logotype:hover {
	opacity: .75;
}

.top-menu {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	min-width: 0;
	overflow: hidden;
}

.top-menu a {
	display: grid;
	height: 40px;
	padding: 0 15px;
	color: #aaa;
	border-right: 1px dotted #e3e3e3;
	font-size: 12px;
	line-height: 1.2;
	place-items: center;
	text-align: center;
	text-transform: uppercase;
	transition: color 180ms ease, background 180ms ease;
}

.top-menu a:hover {
	color: #111;
	background: var(--pink);
}

.top-actions {
	display: flex;
	flex: 0 0 auto;
	margin-left: auto;
}

.icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 58px;
	height: 70px;
	padding: 0 14px;
	color: #aaa;
	background: transparent;
	text-transform: uppercase;
	transition: color 180ms ease, background 180ms ease;
}

.icon-button svg,
.quick-search svg,
.favorites-link svg,
.watch-button svg,
.modal-close svg,
.details-toggle svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}

.icon-button span {
	margin-left: 10px;
	font-size: 12px;
}

.login-toggle {
	width: 70px;
	color: var(--green);
	background: var(--surface-dark);
}

.login-toggle:hover {
	color: var(--surface-dark);
	background: var(--green);
}

.menu-toggle {
	display: none;
}

.quick-search {
	position: absolute;
	z-index: 15;
	top: 90px;
	right: 20px;
	display: flex;
	width: 240px;
	height: 32px;
	border: 1px solid var(--yellow);
}

.quick-search input {
	min-width: 0;
	flex: 1;
	padding: 0 10px;
	color: #fff;
	background: rgb(0 0 0 / 18%);
	border: 0;
}

.quick-search input::placeholder {
	color: #9c9c9c;
}

.quick-search button {
	display: grid;
	width: 40px;
	color: #fff;
	background: transparent;
	place-items: center;
}

.quick-search button svg {
	width: 18px;
	height: 18px;
}

.genre-nav {
	position: relative;
	min-height: 150px;
	padding: 18px 20px 18px 150px;
	color: #fff;
	background: #333 url("../images/nav-bg.jpg") center 45% / cover no-repeat;
	box-shadow: inset 0 300px 0 rgb(0 0 0 / 20%);
}

.genre-title {
	display: inline-block;
	padding-bottom: 10px;
	margin-bottom: 10px;
	border-bottom: 3px solid var(--yellow);
	font-weight: 700;
	text-transform: uppercase;
}

.genre-nav ul {
	display: grid;
	grid-auto-flow: column;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	grid-template-rows: repeat(3, auto);
	padding: 0;
	margin: 0;
	column-gap: 18px;
	list-style: none;
}

.genre-nav li {
	margin: 0 0 3px;
	break-inside: avoid;
}

.genre-nav a {
	display: inline-block;
	padding: 2px 5px;
	color: #fff;
	font-size: 12px;
	text-transform: uppercase;
	transition: color 180ms ease, background 180ms ease;
}

.genre-nav a:hover {
	color: #111;
	background: var(--yellow);
}

.utility-line {
	display: flex;
	height: 40px;
	color: #fff;
	background: var(--surface-dark);
}

.favorites-link {
	position: relative;
	display: flex;
	width: 320px;
	flex: 0 0 320px;
	align-items: center;
	padding: 0 20px 0 84px;
	color: #fff;
	background: var(--pink);
	font-weight: 700;
	text-transform: uppercase;
}

.favorites-link::after {
	position: absolute;
	top: 100%;
	left: 0;
	width: 0;
	height: 0;
	border-top: 18px solid var(--pink);
	border-right: 18px solid transparent;
	content: "";
}

.favorites-link svg {
	width: 18px;
	height: 18px;
	margin-right: 14px;
}

.speedbar-line {
	min-width: 0;
	padding: 0 16px;
	overflow: hidden;
	line-height: 40px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.breadcrumbs a {
	text-decoration: underline;
}

.system-message {
	padding: 14px 20px;
	color: #7d4a20;
	background: #fce5ba;
}

.system-message-title {
	margin-bottom: 4px;
	font-weight: 700;
}

.content-layout {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	padding-top: 20px;
	background: var(--surface);
}

.sidebar {
	padding-left: 20px;
}

.sidebar-block {
	padding: 20px;
	margin-bottom: 20px;
}

.sidebar-block--dark {
	color: #fff;
	background: var(--surface-deep);
}

.sidebar-block--texture {
	color: #fff;
	background: #333 url("../images/nav-bg.jpg") center / cover no-repeat;
	box-shadow: inset 0 800px 0 rgb(0 0 0 / 42%);
}

.sidebar-title {
	margin: 0 0 20px;
	font-size: 18px;
	font-weight: 700;
}

.sidebar-movies {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px 12px;
}

.sidebar-movie,
.sidebar-wide {
	display: block;
	min-width: 0;
	color: #bdbdbd;
}

.sidebar-movie-image,
.sidebar-wide-image {
	position: relative;
	display: block;
	overflow: hidden;
	background: #242424;
}

.sidebar-movie-image {
	aspect-ratio: 2 / 3;
}

.sidebar-movie-image img,
.sidebar-wide-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 250ms ease;
}

.sidebar-movie:hover img,
.sidebar-wide:hover img {
	transform: scale(1.05);
}

.sidebar-movie-title {
	display: block;
	min-height: 36px;
	margin-top: 8px;
	overflow: hidden;
	text-align: center;
}

.rating-badge {
	position: absolute;
	right: auto;
	bottom: 0;
	left: 0;
	max-width: 100%;
	padding: 6px 9px;
	overflow: hidden;
	color: #fff;
	background: var(--green);
	font-size: 12px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rating,
.unit-rating {
	width: 115px;
	height: 23px;
}

.unit-rating {
	position: relative;
	padding: 0;
	margin: 0;
	color: #666;
	font-size: 20px;
	line-height: 23px;
	list-style: none;
	white-space: nowrap;
}

.unit-rating::before,
.unit-rating li.current-rating::before,
.unit-rating li a:hover::before {
	content: "\2605\2605\2605\2605\2605";
	letter-spacing: 2px;
}

.unit-rating li {
	padding: 0;
	margin: 0;
	list-style: none;
}

.unit-rating li.current-rating {
	position: absolute;
	z-index: 1;
	top: 0;
	left: 0;
	height: 23px;
	overflow: hidden;
	color: var(--yellow);
	font-size: 0;
	white-space: nowrap;
}

.unit-rating li.current-rating::before {
	font-size: 20px;
}

.unit-rating li a {
	position: absolute;
	z-index: 2;
	top: 0;
	width: 23px;
	height: 23px;
	overflow: hidden;
	color: transparent;
	font-size: 0;
	text-decoration: none;
}

.unit-rating li a:hover {
	left: 0;
	color: var(--yellow);
}

.unit-rating li a:hover::before {
	font-size: 20px;
}

.unit-rating a.r1-unit { left: 0; }
.unit-rating a.r1-unit:hover { width: 23px; }
.unit-rating a.r2-unit { left: 23px; }
.unit-rating a.r2-unit:hover { width: 46px; }
.unit-rating a.r3-unit { left: 46px; }
.unit-rating a.r3-unit:hover { width: 69px; }
.unit-rating a.r4-unit { left: 69px; }
.unit-rating a.r4-unit:hover { width: 92px; }
.unit-rating a.r5-unit { left: 92px; }
.unit-rating a.r5-unit:hover { width: 115px; }
.sidebar-wide {
	margin-bottom: 18px;
}

.sidebar-wide-image {
	aspect-ratio: 16 / 9;
	margin-bottom: 6px;
}

.poster-fallback {
	display: grid;
	width: 100%;
	height: 100%;
	min-height: 130px;
	padding: 16px;
	color: #ddd;
	background: linear-gradient(145deg, #333, #131313);
	place-items: center;
	text-align: center;
}

.content-column {
	min-width: 0;
	min-height: 600px;
	padding: 0 40px 30px;
}

.category-title {
	padding-bottom: 12px;
	margin: 0 0 24px;
	border-bottom: 3px solid var(--yellow);
	font-size: clamp(24px, 3vw, 34px);
	line-height: 1.2;
}

.site-desc {
	margin-top: 34px;
	padding: clamp(20px, 4vw, 36px);
	color: #d5d5d5;
	background: #202020;
	border-top: 4px solid var(--yellow);
	line-height: 1.65;
}

.site-desc h1,
.site-desc h2 {
	margin: 0 0 18px;
	color: #fff;
	line-height: 1.25;
}

.site-desc p {
	margin: 0 0 18px;
}

.site-desc p:last-child {
	margin-bottom: 0;
}

.site-desc img {
	width: auto;
	max-width: min(100%, 370px);
	height: auto;
	margin: 4px 22px 12px 0;
	float: left;
	border-radius: var(--radius);
}

.site-desc::after {
	display: block;
	clear: both;
	content: "";
}

.movie-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 22px 18px;
}

.movie-card {
	position: relative;
	z-index: 1;
	min-width: 0;
}

.movie-card:has(.movie-popover:not([hidden])) {
	z-index: 20;
}

.movie-poster {
	position: relative;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	background: #191919;
	border: 4px solid var(--surface-soft);
	border-radius: var(--radius);
	box-shadow: 0 0 0 1px #111;
}

.movie-poster > a,
.movie-poster img {
	display: block;
	width: 100%;
	height: 100%;
}

.movie-poster img {
	object-fit: cover;
}

.poster-overlay {
	position: absolute;
	inset: 0;
	display: grid;
	background: rgb(0 0 0 / 58%);
	opacity: 0;
	place-items: center;
	transition: opacity 180ms ease;
}

.movie-poster:hover .poster-overlay,
.movie-poster:focus-within .poster-overlay {
	opacity: 1;
}

.poster-play,
.play-icon {
	width: 56px;
	height: 56px;
	fill: none;
	stroke: #fff;
	stroke-width: 3;
}

.poster-play path,
.play-icon path {
	fill: #fff;
	stroke: none;
}

.details-toggle {
	position: absolute;
	z-index: 3;
	top: 0;
	right: 0;
	display: grid;
	width: 36px;
	height: 36px;
	padding: 0;
	color: #fff;
	background: var(--pink);
	place-items: center;
}

.details-toggle svg {
	width: 20px;
	height: 20px;
}

.details-toggle:hover {
	color: #111;
	background: var(--yellow);
}

.movie-title {
	height: 38px;
	margin: 10px 0 3px;
	overflow: hidden;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.35;
}

.movie-meta {
	height: 18px;
	overflow: hidden;
	color: #999;
	font-size: 12px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.movie-meta a {
	color: #aaa;
}

.movie-popover {
	position: absolute;
	z-index: 30;
	top: 0;
	left: calc(100% + 16px);
	width: 360px;
	padding: 20px;
	color: #ddd;
	background: var(--surface-dark);
	border-left: 4px solid var(--yellow);
	box-shadow: 0 14px 36px rgb(0 0 0 / 45%);
}

.movie-card:nth-child(5n) .movie-popover,
.movie-card:nth-child(5n - 1) .movie-popover {
	right: calc(100% + 16px);
	left: auto;
	border-right: 4px solid var(--yellow);
	border-left: 0;
}

.movie-popover time {
	display: block;
	margin-bottom: 10px;
	color: #999;
	font-style: italic;
}

.movie-popover p {
	margin-bottom: 12px;
}

.movie-popover-rating {
	display: inline-flex;
	min-height: 40px;
	align-items: center;
	padding: 0 14px;
	color: #fff;
	background: var(--surface);
	border-radius: 20px;
}

.pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 32px 0 10px;
}

.pagination a,
.pagination span {
	display: grid;
	min-width: 40px;
	min-height: 40px;
	padding: 0 10px;
	color: #333;
	background: #fff;
	place-items: center;
}

.pagination span {
	color: #fff;
	background: var(--blue);
}

.archive-playlist {
	width: 100%;
}

.archive-player-frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #000;
}

.archive-player-frame iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.archive-episodes {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 12px;
}

.archive-episode {
	min-width: 44px;
	padding: 9px 13px;
	color: #fff;
	background: #333;
	border-radius: 3px;
}

.archive-episode:hover,
.archive-episode[aria-pressed="true"] {
	color: #171717;
	background: var(--yellow);
}

.archive-playlist-error {
	padding: 22px;
	color: #fff;
	background: #342222;
}

.bottom-sections {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4%;
	padding: 24px 20px;
	background: var(--surface);
}

.section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.section-heading h2 {
	margin: 0;
	font-size: 18px;
	text-transform: uppercase;
}

.section-heading > a {
	padding: 10px 14px;
	color: #111;
	background: var(--yellow);
}

.news-item {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 18px;
	padding-bottom: 16px;
	margin-bottom: 16px;
	border-bottom: 1px solid #454545;
}

.news-item:nth-child(n + 3) {
	grid-template-columns: 100px 1fr;
	padding-bottom: 10px;
	margin-bottom: 10px;
}

.news-item:nth-child(n + 3) .news-image,
.news-item:nth-child(n + 3) p {
	display: none;
}

.news-image {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #161616;
}

.news-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.news-title {
	display: block;
	margin-bottom: 7px;
	font-size: 16px;
}

.news-item time {
	display: block;
	margin-bottom: 8px;
	color: #888;
	font-size: 12px;
}

.news-item p {
	margin: 0;
	color: #bbb;
	font-size: 13px;
}

.trailer-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

.trailer-item {
	min-width: 0;
	color: #ccc;
	text-align: center;
}

.trailer-image {
	position: relative;
	display: grid;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-bottom: 3px solid var(--yellow);
	background: #151515;
	place-items: center;
}

.trailer-image::after {
	position: absolute;
	inset: 0;
	background: rgb(0 0 0 / 20%);
	content: "";
}

.trailer-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.trailer-image .play-icon {
	position: absolute;
	z-index: 2;
}

.trailer-item > span:last-child {
	display: block;
	height: 40px;
	margin-top: 8px;
	overflow: hidden;
}

.footer {
	background: var(--surface-dark);
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	padding: 0 10px;
}

.footer-menu a {
	display: grid;
	min-height: 44px;
	padding: 0 12px;
	color: #fff;
	place-items: center;
	text-transform: uppercase;
}

.footer-menu a:hover {
	color: #111;
	background: var(--green);
}

.footer-line {
	display: flex;
	min-height: 76px;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 20px;
	background: #333 url("../images/nav-bg.jpg") center 80% / cover no-repeat;
	box-shadow: inset 0 200px 0 rgb(0 0 0 / 45%);
}

.footer-line p {
	margin: 0;
}

.social-links {
	display: flex;
	gap: 4px;
	padding: 3px;
	border: 1px solid var(--yellow);
}

.social-links a {
	display: grid;
	width: 38px;
	height: 38px;
	color: #fff;
	place-items: center;
	font-size: 12px;
	font-weight: 700;
}

.social-links a:hover {
	color: #111;
	background: var(--yellow);
}

.modal-backdrop {
	position: fixed;
	z-index: 9999;
	inset: 0;
	display: grid;
	padding: 20px;
	background: rgb(0 0 0 / 72%);
	place-items: center;
}

.login-modal {
	position: relative;
	width: min(420px, 100%);
	padding: 28px;
	color: #222;
	background: #f5f5f5;
	box-shadow: 0 20px 60px rgb(0 0 0 / 55%);
}

.login-modal h2 {
	margin-bottom: 22px;
	text-transform: uppercase;
}

.modal-close {
	position: absolute;
	top: 8px;
	right: 8px;
	display: grid;
	width: 44px;
	height: 44px;
	color: #222;
	background: transparent;
	place-items: center;
}

.login-form {
	display: grid;
	gap: 10px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
	width: 100%;
	height: 44px;
	padding: 0 12px;
	color: #111;
	background: #fff;
	border: 1px solid #bbb;
}

.login-check {
	display: flex;
	min-height: 44px;
	align-items: center;
	gap: 10px;
}

.login-form > button,
.submit-comment,
.vote-actions button {
	min-height: 44px;
	padding: 0 20px;
	color: #fff;
	background: var(--pink);
	font-weight: 700;
}

.login-form > button:hover,
.submit-comment:hover,
.vote-actions button:hover {
	color: #111;
	background: var(--yellow);
}

.login-links,
.user-panel nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	margin-top: 8px;
}

.login-links a,
.user-panel a {
	color: #164e79;
	text-decoration: underline;
}

.user-panel img {
	border-radius: 50%;
	object-fit: cover;
}

.vote-widget h3 {
	font-size: 15px;
}

.vote-list {
	margin-bottom: 16px;
}

.vote-list label {
	display: flex;
	min-height: 34px;
	align-items: center;
	gap: 8px;
}

.vote-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.vote-actions .button-secondary {
	color: #111;
	background: var(--yellow);
}

/* Full movie */
.full-movie,
.form-page,
.search-result,
.static-page {
	grid-column: 1 / -1;
	min-width: 0;
}

.movie-columns {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	grid-template-areas: "facts main";
	gap: 24px;
}

.movie-main {
	grid-area: main;
}

.movie-main h1,
.player-section > h2 {
	font-size: 20px;
	text-transform: uppercase;
}

.movie-intro {
	color: #c6c6c6;
}

.full-rating {
	display: inline-flex;
	min-height: 42px;
	align-items: center;
	padding: 0 14px;
	margin-bottom: 18px;
	background: var(--surface-dark);
	border-radius: 24px;
}

.full-description {
	color: #d0d0d0;
	line-height: 1.7;
}

.watch-button {
	display: inline-flex;
	min-height: 46px;
	align-items: center;
	gap: 10px;
	padding: 0 18px;
	margin: 18px 0 28px;
	color: #111;
	background: var(--yellow);
	font-weight: 700;
}

.watch-button svg {
	width: 18px;
	height: 18px;
}

.watch-button:hover {
	color: #fff;
	background: var(--green-dark);
}

.movie-facts {
	grid-area: facts;
}

.full-poster {
	aspect-ratio: 2 / 3;
	overflow: hidden;
	margin-bottom: 18px;
	background: #171717;
	border: 4px solid #171717;
	box-shadow: 0 0 0 1px #000;
}

.full-poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.movie-facts dl {
	margin: 0;
}

.movie-facts dl > div {
	display: grid;
	grid-template-columns: 78px minmax(0, 1fr);
	gap: 8px;
	padding: 8px 10px;
}

.movie-facts dl > div:nth-child(odd) {
	background: var(--surface-deep);
}

.movie-facts dt {
	font-weight: 700;
}

.movie-facts dd {
	min-width: 0;
	margin: 0;
	color: #ccc;
	overflow-wrap: anywhere;
}

.movie-facts dd a {
	text-decoration: underline;
}

.related-section {
	margin-top: 18px;
}

.related-section h2 {
	font-size: 18px;
	text-transform: uppercase;
}

.related-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 10px;
}

.related-card {
	display: block;
	min-width: 0;
	overflow: hidden;
	color: #ddd;
}

.related-image {
	display: block;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	margin-bottom: 6px;
	background: #171717;
}

.related-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.player-section {
	margin-top: 32px;
	scroll-margin-top: 20px;
}

.player-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-bottom: 8px;
}

.player-tabs button {
	min-height: 44px;
	padding: 0 18px;
	color: #fff;
	background: var(--surface-dark);
}

.player-tabs button[aria-selected="true"] {
	color: #111;
	background: var(--yellow);
}

.player-box {
	position: relative;
	min-height: 320px;
	overflow: hidden;
	background: #050505;
}

.player-box iframe,
.player-box video {
	display: block;
	width: 100%;
	min-height: 480px;
	border: 0;
}

.player-empty {
	display: grid;
	min-height: 220px;
	padding: 30px;
	color: #aaa;
	background: #101010;
	place-items: center;
	text-align: center;
}

.player-note {
	padding: 14px;
	color: #aaa;
	background: var(--surface-dark);
}

.tag-list {
	margin: 22px 0;
}

.tag-list a,
.tag {
	display: inline-block;
	padding: 5px 9px;
	margin: 3px;
	color: #111;
	background: var(--green);
}

.comments-section {
	margin-top: 30px;
}

.comments-section > h2,
.add-comment > h3 {
	font-size: 18px;
	text-transform: uppercase;
}

.comments-section > h2 span {
	color: #999;
}

.comment {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 14px;
	padding: 16px;
	margin-bottom: 12px;
	background: var(--surface-dark);
}

.comment-avatar img {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
}

.comment-body {
	min-width: 0;
}

.comment-body > header {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 10px;
}

.comment-author {
	font-weight: 700;
}

.comment-body time {
	color: #888;
	font-size: 12px;
}

.comment-text {
	overflow-wrap: anywhere;
}

.comment-body > footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
}

.comment-body > footer button,
.comment-body > footer a,
.comment-action {
	display: inline-flex;
	min-height: 36px;
	align-items: center;
	padding: 0 12px;
	color: #fff;
	background: #444;
}

.add-comment {
	padding: 20px;
	margin-top: 18px;
	color: #222;
	background: #f4f4f4;
}

.comment-guest-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 14px;
}

.comment-guest-fields label,
.comment-question {
	display: grid;
	gap: 6px;
	font-weight: 700;
}

.comment-guest-fields input,
.comment-question input {
	width: 100%;
	height: 44px;
	padding: 0 12px;
	color: #111;
	background: #fff;
	border: 1px solid #bbb;
}

.comment-editor {
	margin-bottom: 14px;
}

.comment-editor textarea {
	width: 100%;
	min-height: 150px;
	padding: 12px;
	color: #111;
	background: #fff;
	border: 1px solid #bbb;
}

.comment-question,
.comment-captcha {
	margin-bottom: 14px;
}

.submit-comment {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.search-result {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 20px;
	padding: 18px;
	margin-bottom: 16px;
	background: var(--surface-dark);
}

.search-result-image {
	display: block;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	background: #222;
}

.search-result-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.search-result h2 {
	font-size: 20px;
}

.search-result-meta {
	color: #999;
}

.form-page,
.static-page {
	padding: 22px;
	background: var(--surface-dark);
}

.form-page input,
.form-page select {
	min-height: 44px;
}

.static-content {
	color: #d0d0d0;
	line-height: 1.7;
}

@media (max-width: 1120px) {
	.wrapper {
		padding-top: 180px;
	}

	.top {
		padding-left: 270px;
	}

	.logotype {
		width: 270px;
	}

	.top-menu a {
		padding: 0 10px;
	}

	.genre-nav {
		padding-left: 120px;
	}

	.content-layout {
		grid-template-columns: 270px minmax(0, 1fr);
	}

	.sidebar {
		padding-left: 16px;
	}

	.content-column {
		padding-right: 24px;
		padding-left: 24px;
	}

	.movie-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.movie-card:nth-child(5n) .movie-popover,
	.movie-card:nth-child(5n - 1) .movie-popover {
		right: auto;
		left: calc(100% + 16px);
		border-right: 0;
		border-left: 4px solid var(--yellow);
	}

	.movie-card:nth-child(4n) .movie-popover,
	.movie-card:nth-child(4n - 1) .movie-popover {
		right: calc(100% + 16px);
		left: auto;
		border-right: 4px solid var(--yellow);
		border-left: 0;
	}
}

@media (max-width: 900px) {
	.wrapper {
		padding-top: 130px;
	}

	.top {
		padding-left: 250px;
	}

	.logotype {
		width: 250px;
	}

	.top-menu {
		display: none;
	}

	.menu-toggle {
		display: inline-grid;
	}

	.quick-search {
		right: 90px;
	}

	.genre-nav {
		display: none;
		min-height: 0;
		padding: 20px;
	}

	.genre-nav.is-open {
		display: block;
	}

	.genre-nav ul {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		grid-template-rows: repeat(5, auto);
	}

	.utility-line {
		height: auto;
		min-height: 40px;
	}

	.favorites-link {
		width: 260px;
		flex-basis: 260px;
		padding-left: 30px;
	}

	.content-layout {
		grid-template-columns: 230px minmax(0, 1fr);
	}

	.sidebar-block {
		padding: 14px;
	}

	.sidebar-movies {
		gap: 14px 8px;
	}

	.movie-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.movie-card:nth-child(4n) .movie-popover,
	.movie-card:nth-child(4n - 1) .movie-popover {
		right: auto;
		left: calc(100% + 16px);
		border-right: 0;
		border-left: 4px solid var(--yellow);
	}

	.movie-card:nth-child(3n) .movie-popover,
	.movie-card:nth-child(3n - 1) .movie-popover {
		right: calc(100% + 16px);
		left: auto;
		border-right: 4px solid var(--yellow);
		border-left: 0;
	}

	.bottom-sections {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 700px) {
	.wrapper {
		padding-top: 86px;
	}

	.brand-title {
		position: absolute;
		top: 20px;
		left: 50%;
		display: block;
		color: #fff;
		font-size: 18px;
		letter-spacing: .22em;
		white-space: nowrap;
		transform: translateX(-50%);
		text-shadow: 0 2px 5px rgb(0 0 0 / 35%);
	}

	.site-shell,
	.top {
		border-radius: 0;
	}

	.top {
		height: 64px;
		padding-left: 200px;
	}

	.logotype {
		width: 200px;
		height: 64px;
	}

	.icon-button {
		width: 52px;
		min-width: 52px;
		height: 64px;
		padding: 0;
	}

	.icon-button span {
		display: none;
	}

	.login-toggle {
		width: 52px;
	}

	.quick-search {
		top: 64px;
		right: 0;
		display: none;
		width: 100%;
		height: 48px;
		background: #1c1c1c;
	}

	.quick-search.is-open {
		display: flex;
	}

	.genre-nav {
		padding-top: 60px;
	}

	.genre-nav ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: repeat(9, auto);
	}

	.utility-line {
		display: block;
	}

	.favorites-link {
		width: 100%;
		min-height: 44px;
		padding-left: 20px;
	}

	.speedbar-line {
		min-height: 42px;
		line-height: 42px;
	}

	.content-layout {
		display: flex;
		flex-direction: column;
	}

	.content-column {
		order: -1;
		padding: 0 16px 24px;
	}

	.sidebar {
		padding: 0 16px;
	}

	.sidebar-movies {
		grid-template-columns: repeat(4, 1fr);
	}

	.sidebar-wide-list {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 12px;
	}

	.movie-popover,
	.movie-card:nth-child(n) .movie-popover {
		position: fixed;
		z-index: 1000;
		inset: 50% 16px auto;
		width: auto;
		max-height: 70vh;
		overflow: auto;
		border: 4px solid var(--yellow);
		transform: translateY(-50%);
	}

	.movie-columns {
		grid-template-columns: 180px minmax(0, 1fr);
		gap: 18px;
	}

	.related-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.player-box iframe,
	.player-box video {
		min-height: 360px;
	}

	.news-item {
		grid-template-columns: 140px 1fr;
	}
}

@media (max-width: 520px) {
	.site-desc img {
		width: 100%;
		max-width: none;
		margin: 0 0 16px;
		float: none;
	}

	.top {
		padding-left: 160px;
	}

	.logotype {
		width: 160px;
	}

	.search-toggle {
		margin-left: auto;
	}

	.genre-nav ul {
		grid-template-columns: 1fr;
		grid-template-rows: none;
	}

	.movie-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px 14px;
	}

	.sidebar-movies {
		grid-template-columns: repeat(2, 1fr);
	}

	.sidebar-wide-list {
		grid-template-columns: 1fr;
	}

	.bottom-sections {
		padding: 18px 16px;
	}

	.section-heading {
		align-items: flex-start;
		flex-direction: column;
	}

	.news-item {
		grid-template-columns: 100px 1fr;
	}

	.news-item p {
		display: none;
	}

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

	.movie-columns {
		display: flex;
		flex-direction: column;
	}

	.movie-facts {
		order: -1;
	}

	.full-poster {
		width: min(240px, 75%);
		margin-right: auto;
		margin-left: auto;
	}

	.related-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.player-box {
		min-height: 220px;
	}

	.player-box iframe,
	.player-box video {
		min-height: 240px;
	}

	.comment {
		grid-template-columns: 42px minmax(0, 1fr);
		padding: 12px;
	}

	.comment-avatar img {
		width: 42px;
		height: 42px;
	}

	.comment-guest-fields,
	.search-result {
		grid-template-columns: 1fr;
	}

	.search-result-image {
		width: 140px;
	}

	.footer-line {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}

/* Web Archive parity pass: 14 August 2020 */
.category-title {
	position: relative;
	padding-bottom: 12px;
	margin-bottom: 22px;
	border: 0;
	font-size: 16px;
	text-transform: uppercase;
}

.category-title::after {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 56px;
	height: 3px;
	background: var(--yellow);
	content: "";
}

.movie-meta {
	display: none;
}

.category-site-desc {
	padding: 22px 26px;
	border-top: 0;
	text-align: left;
}

.category-site-desc h1,
.category-site-desc h2 {
	text-align: center;
}

.rating-badge .rating,
.rating-badge .unit-rating {
	width: auto;
	height: auto;
}

.rating-badge .unit-rating li,
.rating-badge .unit-rating a {
	display: none;
}

.rating-badge .ratingtypeplusminus,
.rating-badge [data-ratig-layer-id] {
	display: inline !important;
	width: auto !important;
	height: auto !important;
	color: inherit !important;
	background: none !important;
}

.story-tools {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 18px;
}

.story-tools .full-rating {
	display: inline-flex;
	min-height: 42px;
	padding: 0;
	margin: 0;
	overflow: hidden;
	background: #171717;
	border-radius: 0;
}

.rate-button {
	display: grid;
	width: 44px;
	height: 42px;
	color: #fff;
	place-items: center;
}

.rate-button svg {
	width: 20px;
	height: 20px;
	fill: currentcolor;
}

.rate-button--minus {
	background: #ef5265;
}

.rate-button--plus {
	background: #8fc73e;
}

.rating-value {
	display: grid;
	min-width: 46px;
	padding: 0 8px;
	place-items: center;
}

.rating-value .rating,
.rating-value .unit-rating {
	width: auto;
	height: auto;
}

.rating-value .unit-rating li,
.rating-value .unit-rating a {
	display: none;
}

.rating-value .ratingtypeplusminus,
.rating-value [data-ratig-layer-id] {
	display: inline !important;
	width: auto !important;
	height: auto !important;
	color: #fff !important;
	background: none !important;
}

.share-links {
	display: flex;
	gap: 3px;
}

.share-links a {
	display: grid;
	min-width: 42px;
	height: 42px;
	padding: 0 8px;
	color: #fff;
	background: #3a3a3a;
	font-size: 11px;
	font-weight: 700;
	place-items: center;
}

.share-links a:hover {
	color: #171717;
	background: var(--yellow);
}

.player-empty--archive {
	position: relative;
	display: grid;
	min-height: 300px;
	overflow: hidden;
	padding: 0;
	background: #080808;
	place-items: center;
}

.player-empty--archive img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .72;
}

.player-empty--archive strong {
	position: relative;
	z-index: 1;
	padding: 12px 18px;
	color: #fff;
	background: rgb(0 0 0 / 76%);
	font-size: 19px;
	text-transform: uppercase;
}

.cinema-placeholder {
	position: absolute;
	width: min(360px, 72%);
	height: auto;
	fill: none;
	stroke: #444;
	stroke-width: 4;
}

/* Original /novosti listing: detailed rows, then five compact headlines. */
.archive-news-item,
.news-full {
	grid-column: 1 / -1;
	min-width: 0;
}

.archive-news-item {
	display: grid;
	grid-template-columns: 230px minmax(0, 1fr);
	gap: 22px;
	padding: 0 0 20px;
	margin: 0 0 20px;
	border-bottom: 1px solid #454545;
}

.archive-news-image {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #171717;
}

.archive-news-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.archive-comment-count {
	position: absolute;
	right: 0;
	bottom: 0;
	min-width: 32px;
	padding: 5px 8px;
	color: #fff;
	background: #ef5265;
	text-align: center;
}

.archive-news-copy h2 {
	margin: 0 0 8px;
	font-size: 18px;
	line-height: 1.35;
}

.archive-news-copy time {
	display: block;
	margin-bottom: 10px;
	color: #999;
	font-size: 12px;
}

.archive-news-copy p {
	margin: 0;
	color: #c9c9c9;
	line-height: 1.55;
}

.archive-news-item:nth-child(n + 4):nth-child(-n + 8) {
	display: block;
	padding: 9px 0;
	margin: 0;
	border-bottom: 1px solid #3d3d3d;
}

.archive-news-item:nth-child(n + 4):nth-child(-n + 8) .archive-news-image,
.archive-news-item:nth-child(n + 4):nth-child(-n + 8) .archive-news-copy p {
	display: none;
}

.archive-news-item:nth-child(n + 4):nth-child(-n + 8) .archive-news-copy {
	display: flex;
	align-items: baseline;
	gap: 14px;
}

.archive-news-item:nth-child(n + 4):nth-child(-n + 8) .archive-news-copy h2 {
	order: 2;
	margin: 0;
	font-size: 14px;
	font-weight: 400;
}

.archive-news-item:nth-child(n + 4):nth-child(-n + 8) .archive-news-copy time {
	flex: 0 0 auto;
	margin: 0;
}

.news-full h1 {
	margin-top: 0;
	font-size: 22px;
	line-height: 1.3;
}

.news-full-text {
	color: #d0d0d0;
	font-size: 15px;
	line-height: 1.7;
}

.news-full-text img {
	max-width: 100%;
	height: auto;
}

.news-related .related-grid {
	grid-template-columns: repeat(4, 1fr);
}

.news-related .related-card:nth-child(n + 5) {
	display: none;
}

.news-item--compact {
	display: block;
	grid-template-columns: none;
}

@media (max-width: 700px) {
	.archive-news-item {
		grid-template-columns: 150px minmax(0, 1fr);
		gap: 14px;
	}
}

@media (max-width: 520px) {
	.archive-news-item {
		display: block;
	}

	.archive-news-image {
		margin-bottom: 12px;
	}

	.archive-news-item:nth-child(n + 4):nth-child(-n + 8) .archive-news-copy {
		align-items: flex-start;
		flex-direction: column;
		gap: 4px;
	}

	.news-related .related-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
