/*
LordVHD CosmosNeon 2026 - Основные стили шаблона
Палитра: #05010f (космос) | #00e5ff (циан) | #ff00aa (магента) | #ffcc00 (золото)
Версия: 1.0 | 28.07.2026
*/

/* ============================================================
   БЛОК 1: УНИКАЛЬНЫЕ CSS АНИМАЦИИ
============================================================ */

@keyframes float3d {
	0%, 100% { transform: translateY(0) rotateX(0) rotateY(0); }
	25% { transform: translateY(-8px) rotateX(2deg) rotateY(-1deg); }
	50% { transform: translateY(-14px) rotateX(0) rotateY(2deg); }
	75% { transform: translateY(-6px) rotateX(-2deg) rotateY(0); }
}

@keyframes cosmicPulse {
	0%, 100% { 
		box-shadow: 
			0 0 5px rgba(0,229,255,0.4),
			0 0 12px rgba(0,229,255,0.2),
			0 0 24px rgba(0,229,255,0.1);
	}
	33% {
		box-shadow: 
			0 0 8px rgba(255,0,170,0.5),
			0 0 20px rgba(255,0,170,0.25),
			0 0 35px rgba(124,77,255,0.15);
	}
	66% {
		box-shadow: 
			0 0 6px rgba(255,204,0,0.45),
			0 0 15px rgba(255,204,0,0.2),
			0 0 28px rgba(255,0,170,0.1);
	}
}

@keyframes auroraText {
	0%, 100% { 
		background-position: 0% 50%;
		filter: drop-shadow(0 0 6px rgba(0,229,255,0.4));
	}
	50% { 
		background-position: 100% 50%;
		filter: drop-shadow(0 0 10px rgba(255,0,170,0.5));
	}
}

@keyframes borderFlow {
	0% { background-position: 0% 50%; }
	100% { background-position: 200% 50%; }
}

@keyframes slideInUpStagger {
	from { opacity: 0; transform: translateY(60px) scale(0.96); filter: blur(6px); }
	to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes zoomInSmooth {
	from { opacity: 0; transform: scale(0.9); }
	to   { opacity: 1; transform: scale(1); }
}

@keyframes glitchShake {
	0%, 100% { transform: translate(0); filter: hue-rotate(0deg); }
	10% { transform: translate(-2px, 1px); filter: hue-rotate(5deg); }
	20% { transform: translate(2px, -1px); }
	30% { transform: translate(-1px, 2px); filter: hue-rotate(-5deg); }
	40% { transform: translate(1px, -2px); }
	50% { transform: translate(-2px, -1px); }
}

@keyframes spinSlowReverse {
	from { transform: rotate(360deg); }
	to   { transform: rotate(0deg); }
}

@keyframes orbitMove {
	0%   { transform: rotate(0deg) translateX(20px) rotate(0deg); }
	100% { transform: rotate(360deg) translateX(20px) rotate(-360deg); }
}

@keyframes shimmerSweep {
	0%   { background-position: -200% 0; }
	100% { background-position: 200% 0; }
}

/* ============================================================
   БЛОК 2: БАЗОВАЯ РАЗМЕТКА И WRAPPER
============================================================ */

body { position: relative; overflow-x: hidden; }
body.cosmos-body { overflow-x: hidden; }

.wrapper {
	min-width: 320px;
	overflow: hidden;
	position: relative;
}

.wrapper__container {
	max-width: var(--max-width);
	margin: 0 auto;
	position: relative;
	z-index: 20;
}

.wrapper__container--main {
	background: 
		linear-gradient(180deg, 
			rgba(8, 2, 25, 0.985) 0%, 
			rgba(11, 4, 32, 0.98) 40%,
			rgba(5, 1, 15, 0.99) 100%);
	box-shadow: 
		0 0 120px rgba(0, 229, 255, 0.08),
		0 0 60px rgba(255, 0, 170, 0.05),
		inset 0 1px 0 rgba(0, 229, 255, 0.04);
	border-left: 1px solid rgba(0, 229, 255, 0.06);
	border-right: 1px solid rgba(0, 229, 255, 0.06);
	position: relative;
}

.wrapper__container--main::before {
	content: '';
	position: absolute;
	inset: 0;
	background: 
		radial-gradient(ellipse 85% 40% at 50% -5%, rgba(124, 77, 255, 0.09) 0%, transparent 70%),
		radial-gradient(ellipse 60% 40% at 15% 105%, rgba(0, 229, 255, 0.07) 0%, transparent 70%),
		radial-gradient(ellipse 60% 40% at 85% 105%, rgba(255, 0, 170, 0.07) 0%, transparent 70%);
	pointer-events: none;
	z-index: -1;
}

.content {
	padding: 22px var(--indent);
	min-height: 100vh;
	position: relative;
}

.content:has(.descr),
.content:has(.page__related),
.content:has(.carou--lastviewed) {
	padding-bottom: 0;
}

.has-branding { padding-top: 200px; }

.scrolltop {
	position: fixed; width: 46px; height: 46px; right: 16px; bottom: 16px; padding: 0;
	z-index: 990; border-radius: 50%; font-size: 16px; opacity: 0; scale: 0 0;
	background: linear-gradient(135deg, #00e5ff, #ff00aa);
	border: 1px solid rgba(255,255,255,0.15);
	color: #fff; font-weight: 700;
	box-shadow: 0 6px 25px rgba(0, 229, 255, 0.3);
	animation: cosmicPulse 4s ease infinite;
}
.scrolltop.is-active { scale: 1 1; opacity: 1; }
.scrolltop:hover { 
	transform: translateY(-3px) scale(1.05); 
	box-shadow: 0 10px 35px rgba(255, 0, 170, 0.4);
}

.overlay {
	position: fixed; z-index: 998; left: 0; top: 0; width: 100%; height: 100%; 
	opacity: 0.85; 
	background: 
		radial-gradient(ellipse at center, rgba(10,0,30,0.9) 0%, rgba(0,0,0,0.98) 100%);
	cursor: pointer; display: none;
	backdrop-filter: blur(8px);
}

/* ============================================================
   БЛОК 3: HEADER И МЕНЮ (Космический стиль)
============================================================ */

.cosmos-header {
	padding: 0 var(--indent);
	position: sticky;
	z-index: 100;
	left: 0; top: 0;
	background: 
		linear-gradient(180deg, 
			rgba(2, 0, 8, 0.98) 0%, 
			rgba(8, 2, 25, 0.95) 100%);
	backdrop-filter: blur(24px) saturate(160%);
	-webkit-backdrop-filter: blur(24px) saturate(160%);
	border-bottom: 1px solid rgba(0, 229, 255, 0.18);
	box-shadow: 
		0 6px 35px rgba(0, 0, 0, 0.65),
		0 1px 0 rgba(255, 0, 170, 0.08),
		inset 0 -1px 0 rgba(255, 204, 0, 0.04);
	height: 84px;
}

.cosmos-header::before {
	content: '';
	position: absolute;
	bottom: -1px; left: 0; right: 0; height: 2px;
	background: linear-gradient(90deg, 
		transparent 0%,
		#00e5ff 15%,
		#7c4dff 35%,
		#ff00aa 50%,
		#ffcc00 65%,
		#7c4dff 85%,
		transparent 100%);
	background-size: 300% 100%;
	animation: borderFlow 6s linear infinite;
	opacity: 0.75;
}

.cosmos-header::after {
	content: '';
	position: absolute;
	top: 0; left: 50%; transform: translateX(-50%);
	width: 60%; height: 100%;
	background: radial-gradient(ellipse 70% 90% at 50% 0%, rgba(124, 77, 255, 0.08), transparent 70%);
	pointer-events: none;
}

.header-is-sticky .cosmos-header {
	translate: 0 -200%;
	transition: translate 0.45s cubic-bezier(0.2, 0, 0.2, 1);
}

/* --- Logo --- */
.logo {
	display: flex;
	align-items: center;
	font-family: 'Orbitron', sans-serif;
	font-weight: 900;
	color: var(--tt);
	padding-left: 0;
	text-transform: uppercase;
	position: relative;
	font-size: 28px;
	height: 44px;
	letter-spacing: 2.5px;
	gap: 5px;
}

.logo::before { display: none; }

.logo span {
	background: linear-gradient(135deg, #00e5ff 0%, #7c4dff 40%, #ff00aa 70%, #ffcc00 100%);
	background-size: 300% 300%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: auroraText 5s ease infinite;
}

.logo-glow {
	font-style: normal;
	font-family: 'Orbitron', sans-serif;
	font-size: 13px;
	font-weight: 700;
	padding: 2px 8px;
	margin-left: 4px;
	border-radius: 4px;
	background: linear-gradient(135deg, rgba(0,229,255,0.12), rgba(255,0,170,0.12));
	border: 1px solid;
	border-image: linear-gradient(135deg, #00e5ff, #ff00aa) 1;
	color: var(--cyan);
	text-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
	letter-spacing: 1.5px;
	animation: cosmicPulse 3s ease infinite;
}

.logo:hover { transform: scale(1.02); }
.logo:hover span { animation-duration: 2s; }

/* --- Search block --- */
.search-block { position: relative; }
.search-block__input, .search-block__input:focus {
	padding: 0 46px 0 16px; border: 1px solid rgba(0, 229, 255, 0.22); 
	height: 42px; line-height: 42px;
	background: rgba(2, 0, 15, 0.7);
	border-radius: 10px;
	box-shadow: 
		inset 0 0 25px rgba(124, 77, 255, 0.05),
		0 0 0 1px rgba(255, 255, 255, 0.02);
	backdrop-filter: blur(10px);
	color: var(--tt);
	font-size: 13px;
	transition: all 0.35s cubic-bezier(0.2,0,0.2,1);
}
.search-block__input:focus {
	border-color: var(--pink);
	box-shadow: 
		inset 0 0 30px rgba(255, 0, 170, 0.08),
		0 0 0 3px rgba(255, 0, 170, 0.12),
		0 0 25px rgba(0, 229, 255, 0.15);
	transform: translateY(-1px);
}
.search-block__input:not(:focus)::placeholder {
	color: var(--tt-fade); opacity: 0.65; font-size: 12px; letter-spacing: 0.3px;
}
.search-block__btn {
	position: absolute; right: 0; top: 0; height: 42px; font-size: 15px; width: 44px;
	color: var(--cyan);
	border-radius: 0 10px 10px 0;
}
.search-block__btn:hover {
	color: #fff;
	background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(255,0,170,0.15));
	text-shadow: 0 0 10px currentColor;
}

/* --- Header buttons --- */
.header__theme-select { color: var(--gold); }
.header__theme-select:hover { 
	color: #fff !important;
	text-shadow: 0 0 12px var(--gold), 0 0 20px var(--orange);
	transform: rotate(20deg) scale(1.1);
}
.dt .header__theme-select::before { content:"\f755"; }

.header__btn-login {
	height: 40px; padding: 0 22px;
	border-radius: 10px;
	background: linear-gradient(135deg, rgba(0,229,255,0.1), rgba(255,0,170,0.1));
	border: 1px solid;
	border-image: linear-gradient(135deg, rgba(0,229,255,0.4), rgba(255,0,170,0.4)) 1;
	color: #fff !important;
	font-family: 'Exo 2', sans-serif;
	font-weight: 700;
	letter-spacing: 1px;
	transition: all 0.3s ease;
}
.header__btn-login:hover {
	background: linear-gradient(135deg, rgba(0,229,255,0.22), rgba(255,0,170,0.22));
	box-shadow: 
		0 0 0 1px rgba(255,255,255,0.1),
		0 8px 30px rgba(0, 229, 255, 0.25);
	transform: translateY(-2px);
}
.header__btn-login.btn-cosmos {
	border: none;
}

/* --- Menu --- */
.header__menu { margin: 0 26px; }
.header__menu li { position: relative; }
.header__menu > li > a {
	display: flex; align-items: center; height: 84px;
	text-transform: uppercase;
	font-size: 13px; font-weight: 700; opacity: 0.78;
	font-family: 'Exo 2', 'Oswald', sans-serif;
	letter-spacing: 1.2px;
	padding: 0 4px;
	position: relative;
}
.header__menu > li > a::after {
	content: '';
	position: absolute;
	bottom: 28px; left: 50%; transform: translateX(-50%) scaleX(0);
	width: 70%; height: 2px;
	background: linear-gradient(90deg, #00e5ff, #ff00aa, #ffcc00);
	background-size: 200% 100%;
	animation: borderFlow 3s linear infinite;
	transition: transform 0.35s cubic-bezier(0.2,0,0.2,1);
	opacity: 0.8;
}
.header__menu > li:hover > a::after { transform: translateX(-50%) scaleX(1); }

.menu-icon {
	font-size: 15px;
	margin-right: 8px;
	background: linear-gradient(135deg, #00e5ff, #ff00aa);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.header__menu-hidden {
	background: 
		linear-gradient(180deg, rgba(5, 1, 15, 0.98) 0%, rgba(11, 4, 32, 0.97) 100%);
	border-top: 2px solid;
	border-image: linear-gradient(90deg, #00e5ff, #7c4dff, #ff00aa, #ffcc00) 1;
	box-shadow: 
		0 12px 40px rgba(0, 0, 0, 0.55),
		0 0 30px rgba(0, 229, 255, 0.08);
	backdrop-filter: blur(20px);
	position: absolute; left: -30px; top: 99%;
	width: 260px; z-index: 10; padding: 24px 28px; display: grid; gap: 8px 28px; 
	opacity: 0; visibility: hidden; translate: 0 35px;
	border-radius: 0 0 12px 12px;
}
div.header__menu-hidden {
	grid-template-columns: repeat(4, 1fr);
	width: 980px;
	left: 50%;
	transform: translateX(-50%);
	padding: 28px 32px;
}
.header__menu-hidden-col { display: grid; gap: 7px; align-content: start; }
.header__menu-hidden li:not(:has(a)) {
	font-weight: 700;
	font-family: 'Exo 2', sans-serif;
	font-size: 12px;
	letter-spacing: 1px;
	color: var(--cyan);
	text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
	margin-bottom: 6px;
	padding-bottom: 6px;
	border-bottom: 1px dashed rgba(0, 229, 255, 0.2);
	text-transform: uppercase;
}
.header__menu-hidden a {
	opacity: 0.85;
	font-size: 13px;
	padding: 3px 0;
	position: relative;
}
.header__menu-hidden a::before {
	content: '';
	display: inline-block;
	width: 5px; height: 5px;
	border-radius: 50%;
	background: linear-gradient(135deg, #00e5ff, #ff00aa);
	margin-right: 8px;
	vertical-align: middle;
	box-shadow: 0 0 6px currentColor;
	opacity: 0.5;
	transition: all 0.3s ease;
}
.header__menu-hidden a:hover::before {
	opacity: 1;
	transform: scale(1.6);
	box-shadow: 0 0 10px currentColor;
}

.cosmos-header .header__menu li:has(.header__menu-hidden)::before {
	content: ''; position: absolute; left: 50%; bottom: 0; 
	border: 7px solid transparent;
	border-bottom: 0;
	border-top-color: transparent;
	width: 0; height: 0;
	margin-left: -7px;
}
.cosmos-header .header__menu li:has(.header__menu-hidden)::after {
	content: ''; position: absolute; left: 50%; bottom: 0; 
	border: 6px solid transparent;
	border-bottom: 0;
	border-top-color: #00e5ff;
	margin-left: -6px;
	filter: drop-shadow(0 -1px 3px rgba(0, 229, 255, 0.5));
}

/* ============================================================
   БЛОК 4: CAROUSEL (Банер / Тренды)
============================================================ */

.carou.cosmos-carou {
	background: 
		linear-gradient(135deg, rgba(2, 0, 10, 0.96) 0%, rgba(15, 4, 45, 0.96) 100%);
	margin: 0 var(--indent-negative);
	padding: 26px var(--indent) 30px var(--indent);
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid rgba(0, 229, 255, 0.12);
}
.content > .carou { margin-top: -22px; margin-bottom: 24px; }

.carou.cosmos-carou::before {
	content: '';
	position: absolute;
	inset: 0;
	background: 
		radial-gradient(ellipse 100% 60% at 20% 0%, rgba(0, 229, 255, 0.08), transparent 60%),
		radial-gradient(ellipse 100% 60% at 80% 100%, rgba(255, 0, 170, 0.07), transparent 60%);
	pointer-events: none;
}

.carou--lastviewed { margin-top: 0 !important; margin-bottom: 0 !important; }
.carou--lastviewed:not(:has(.item)) { display: none; }

.cosmos-carou-caption {
	color: #fff;
	font-size: 20px;
	font-weight: 800;
	margin-bottom: 24px;
	font-family: 'Orbitron', 'Exo 2', sans-serif;
	letter-spacing: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	text-transform: uppercase;
}

.cosmos-carou-caption > span {
	flex: 0 1 auto;
	display: inline-flex;
}

.cosmos-line {
	flex: 1;
	min-width: 60px;
	height: 1px;
	background: linear-gradient(90deg, transparent, #00e5ff, #7c4dff, #ff00aa, #ffcc00, #7c4dff, #00e5ff, transparent);
	background-size: 300% 100%;
	animation: borderFlow 4s linear infinite;
	opacity: 0.7;
	box-shadow: 0 0 8px currentColor;
}

/* ============================================================
   БЛОК 5: SECTIONS (Секции контента)
============================================================ */

.sect:not(:last-child) { margin-bottom: 34px; }
.sect.cosmos-sect {
	padding: 24px;
	margin: 0 calc(-1 * var(--indent)) 34px calc(-1 * var(--indent));
	padding-left: var(--indent);
	padding-right: var(--indent);
	background: 
		linear-gradient(135deg, rgba(8, 2, 25, 0.5) 0%, rgba(11, 4, 32, 0.3) 100%);
	border-top: 1px solid rgba(0, 229, 255, 0.1);
	border-bottom: 1px solid rgba(255, 0, 170, 0.08);
	position: relative;
}
.sect.cosmos-sect::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0; height: 1px;
	background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.4), rgba(255, 0, 170, 0.4), transparent);
}

.sect__header { margin-bottom: 22px; position: relative; }
.sect.cosmos-sect .sect__header { margin-bottom: 24px; }

.sect__title {
	font-size: 22px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 16px;
	font-family: 'Orbitron', 'Exo 2', sans-serif;
	letter-spacing: 1px;
}
.sect__title :is(h1,h2,h3) { font-size: inherit; }

.cosmos-title {
	text-transform: uppercase;
	background: linear-gradient(135deg, #fff 30%, #00e5ff 50%, #ff00aa 80%);
	background-size: 250% 250%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: auroraText 6s ease infinite;
}

.cosmos-title-line {
	flex: 1;
	min-width: 40px;
	height: 2px;
	background: linear-gradient(90deg, transparent, #00e5ff, #7c4dff, #ff00aa, transparent);
	border-radius: 2px;
	opacity: 0.6;
}

.sect__header:has(.sect__tabs) { margin-bottom: 14px; }
.sect__tabs { gap: 10px; }
.sect__tabs button {
	background: rgba(0, 229, 255, 0.05);
	border: 1px solid rgba(0, 229, 255, 0.2);
	color: var(--tt-fade-0);
	text-transform: uppercase;
	font-weight: 700;
	font-family: 'Exo 2', sans-serif;
	font-size: 12px;
	letter-spacing: 0.8px;
	height: 36px;
	padding: 0 18px;
	border-radius: 8px;
	transition: all 0.3s ease;
}
.sect__tabs button.is-active {
	background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(255,0,170,0.15));
	border-color: transparent;
	color: #fff;
	box-shadow: 
		0 0 0 1px rgba(255,255,255,0.1) inset,
		0 4px 20px rgba(0, 229, 255, 0.2);
	position: relative;
	overflow: hidden;
}
.sect__tabs button.is-active::before {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
	animation: shimmerSweep 2.5s linear infinite;
	background-size: 200% 100%;
}

/* Speedbar */
.speedbar {
	color: var(--tt-fade);
	font-size: 12px;
	padding: 14px 0;
	margin-top: -22px;
	letter-spacing: 0.3px;
}
.speedbar.cosmos-speedbar {
	border-bottom: 1px dashed rgba(0, 229, 255, 0.18);
	margin-bottom: 14px;
}
.speedbar a { color: var(--cyan); position: relative; }
.speedbar a::after {
	content: '›';
	margin: 0 8px;
	color: var(--tt-fade);
}
.speedbar span:last-child a::after { display: none; }

/* Descr (SEO-текст внизу) */
.descr {
	color: var(--tt-fade-0);
	display: grid; gap: 12px;
	background: 
		linear-gradient(135deg, rgba(8, 2, 25, 0.8) 0%, rgba(15, 4, 45, 0.7) 100%);
	padding: 26px var(--indent);
	margin: 0 var(--indent-negative);
	border-top: 1px solid rgba(124, 77, 255, 0.18);
	border-bottom: 1px solid rgba(255, 0, 170, 0.12);
	position: relative;
}
.descr::before {
	content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
	background: linear-gradient(90deg, transparent, #7c4dff, #ff00aa, transparent);
}
.descr :is(h1,h2,h3) {
	font-size: 20px;
	font-weight: 800;
	color: var(--tt);
	font-family: 'Orbitron', sans-serif;
	letter-spacing: 0.8px;
}
.descr a {
	color: var(--cyan);
	text-decoration: none;
	border-bottom: 1px dotted rgba(0, 229, 255, 0.5);
	position: relative;
}
.descr a:hover { color: var(--pink); border-color: var(--pink); }
.descr ul li { position: relative; padding-left: 28px; margin-left: 12px; margin-bottom: 4px; }
.descr ul li::before {
	content:"\f005";
	font-family: 'Font Awesome 5 Pro';
	font-weight: 300;
	background: linear-gradient(135deg, #ffcc00, #ff00aa);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	position: absolute; left: 0; top: 0;
}

/* ============================================================
   БЛОК 6: ITEM CARDS (Карточки фильмов)
============================================================ */

.item {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	animation: slideInUpStagger 0.7s cubic-bezier(0.2, 0, 0.2, 1) both;
}
.grid-items .item:nth-child(1) { animation-delay: 0.03s; }
.grid-items .item:nth-child(2) { animation-delay: 0.06s; }
.grid-items .item:nth-child(3) { animation-delay: 0.09s; }
.grid-items .item:nth-child(4) { animation-delay: 0.12s; }
.grid-items .item:nth-child(5) { animation-delay: 0.15s; }
.grid-items .item:nth-child(6) { animation-delay: 0.18s; }
.grid-items .item:nth-child(7) { animation-delay: 0.21s; }
.grid-items .item:nth-child(8) { animation-delay: 0.24s; }

.item__img {
	box-shadow: 
		0 4px 20px rgba(0, 0, 0, 0.5),
		0 0 0 1px rgba(0, 229, 255, 0.1) inset;
	overflow: hidden;
	border-radius: 12px;
	aspect-ratio: 2 / 3;
	position: relative;
}

.item__img::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1.5px;
	background: linear-gradient(135deg, rgba(0,229,255,0) 40%, rgba(0,229,255,0.4), rgba(255,0,170,0.4), rgba(0,229,255,0) 60%);
	background-size: 300% 300%;
	animation: borderFlow 4s ease infinite;
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0;
	transition: opacity 0.4s ease;
	z-index: 2;
	pointer-events: none;
}
.item:hover .item__img::after { opacity: 1; }

.item__label {
	font-size: 11px;
	padding: 4px 12px;
	border-radius: 6px 6px 6px 0;
	font-weight: 800;
	font-family: 'Exo 2', sans-serif;
	letter-spacing: 0.8px;
	background: linear-gradient(135deg, #ff00aa, #7c4dff);
	color: #fff;
	position: absolute;
	left: 10px; top: 10px; z-index: 4;
	box-shadow: 
		0 4px 15px rgba(255, 0, 170, 0.4),
		0 0 0 1px rgba(255,255,255,0.1) inset;
	clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
}
.item__label.new-label {
	background: linear-gradient(135deg, #00e5ff, #00ffa3);
	box-shadow: 0 4px 15px rgba(0, 229, 255, 0.4), 0 0 0 1px rgba(255,255,255,0.1) inset;
}
.item__label.hot-label {
	background: linear-gradient(135deg, #ff2d55, #ffcc00);
	box-shadow: 0 4px 15px rgba(255, 45, 85, 0.4), 0 0 0 1px rgba(255,255,255,0.1) inset;
}

.item__badge {
	position: absolute;
	right: 10px; top: 10px; z-index: 4;
	display: flex; flex-direction: column; gap: 6px; align-items: flex-end;
}
.badge-tech {
	font-size: 10px;
	font-weight: 800;
	font-family: 'Exo 2', sans-serif;
	letter-spacing: 0.5px;
	padding: 3px 8px;
	border-radius: 5px;
	color: #fff;
	text-transform: uppercase;
	box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.badge-ai { background: linear-gradient(135deg, #7c4dff, #00e5ff); }
.badge-vr { background: linear-gradient(135deg, #ff00aa, #ffcc00); }
.badge-8k { background: linear-gradient(135deg, #ff8a00, #ff2d55); }
.badge-int { background: linear-gradient(135deg, #00ffa3, #00e5ff); }
.badge-4k { background: linear-gradient(135deg, #2196f3, #7c4dff); }
.badge-hdr { background: linear-gradient(135deg, #ffcc00, #ff8a00); }

.item__desc {
	position: absolute; inset: 0; z-index: 3; color: #fff; 
	--tt: #fff; --bdc: rgba(255,255,255,0.35);
	text-align: center;
	padding: 16px 12px 14px;
	display: flex; flex-direction: column; justify-content: flex-end;
}

.item__title {
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 6px;
	line-height: 1.25;
	font-family: 'Exo 2', sans-serif;
	letter-spacing: 0.3px;
	text-shadow: 0 2px 8px rgba(0,0,0,0.85);
}

.item__year { opacity: 0.9; font-size: 12px; margin-bottom: 4px; color: var(--cyan); font-weight: 600; }

.item__meta {
	font-size: 11px;
	opacity: 0.85;
	color: var(--tt-fade-0);
	margin-bottom: 8px;
}

.item__rates {
	line-height: 1;
	border-top: 1px solid var(--bdc);
	padding-top: 10px; margin-top: 6px;
	display: flex; justify-content: space-around;
	gap: 8px;
}
.item__rates-item { font-size: 11px; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.item__rates-item::before {
	content: attr(data-text);
	display: inline;
	margin-right: 2px;
	text-transform: uppercase;
	font-weight: 800;
	font-family: 'Exo 2', sans-serif;
	letter-spacing: 0.5px;
	font-size: 10px;
}
.item__rates-item.kp { color: #ff8a00; }
.item__rates-item.kp::before { color: #ff8a00; }
.item__rates-item.imdb { color: #ffcc00; }
.item__rates-item.imdb::before { color: #ffcc00; }

.item__btn-info {
	cursor: pointer; position: absolute; right: 0; top: 0; z-index: 5; 
	border-radius: 0 0 0 10px;
	translate: 0 -100%; opacity: 0;
	background: linear-gradient(135deg, rgba(0,229,255,0.25), rgba(255,0,170,0.25));
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255,255,255,0.15);
	color: #fff;
	height: 36px;
	padding: 0 14px;
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 0.8px;
}

.item__rates:not(:has(.item__rates-item:nth-child(2))) { justify-content: center; }

/* Hover overlay для item */
.item .img-overlay-icon::before {
	border-radius: 12px;
	font-family: 'Font Awesome 5 Pro';
	content: "\f04b";
	font-weight: 900;
}
.item:hover .img-overlay-icon::before {
	opacity: 1;
}

/* ============================================================
   БЛОК 7: TRAILER / POPUP
============================================================ */

.trl {
	background-color: rgba(2, 0, 12, 0.94);
	position: fixed; z-index: 990; left: 0; top: 0; 
	width: 100%; height: 100%;
	overflow-x: hidden; overflow-y: auto;
	backdrop-filter: blur(15px);
}
.trl::before {
	content: ''; position: absolute; inset: 0;
	background: 
		radial-gradient(ellipse at 20% 0%, rgba(0, 229, 255, 0.07), transparent 50%),
		radial-gradient(ellipse at 80% 100%, rgba(255, 0, 170, 0.06), transparent 50%);
	pointer-events: none;
}
.trl__close {
	position: absolute; right: 24px; top: 24px;
	font-size: 36px; color: #fff;
	width: 48px; height: 48px;
	border-radius: 50%;
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.1);
	display: grid; place-items: center;
	transition: all 0.3s ease;
}
.trl__close:hover {
	background: linear-gradient(135deg, #ff2d55, #ff00aa);
	border-color: transparent;
	transform: rotate(90deg) scale(1.05);
	box-shadow: 0 6px 25px rgba(255, 0, 170, 0.4);
}
.trl__inner {
	width: 100%; max-width: 780px;
	margin: 0 auto;
	color: #fff;
	padding: 100px 26px 30px;
	position: relative;
}
.trl__btn {
	height: 46px; padding: 0 48px; margin: 18px 0; width: 100%;
	border-radius: 10px;
	font-weight: 800;
	letter-spacing: 1.5px;
}
.trl h1 {
	margin-bottom: 18px; margin-top: 24px;
	font-size: 28px;
	font-family: 'Orbitron', sans-serif;
	letter-spacing: 1px;
	background: linear-gradient(135deg, #fff, #00e5ff, #ff00aa);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	background-size: 200% 200%;
	animation: auroraText 4s ease infinite;
}
.trl .page__text, .trl .full-text {
	color: #b8c5d6; margin: 0px; padding: 0; background: none;
	line-height: 1.65;
}
.trl-is-opened { overflow: hidden; }

/* Tooltip popup info */
.th-active { z-index: 100; }
.th-text {
	display: none;
	background: linear-gradient(180deg, rgba(5, 1, 15, 0.98), rgba(15, 4, 45, 0.97));
	border-left: 3px solid;
	border-image: linear-gradient(180deg, #00e5ff, #ff00aa) 1;
	cursor: auto; 
	padding: 22px;
	text-align: left; position: absolute; z-index: 1000; 
	width: 480px;
	box-shadow: 
		0 15px 50px rgba(0, 0, 0, 0.6),
		0 0 30px rgba(0, 229, 255, 0.12);
	backdrop-filter: blur(18px);
	min-height: 100px;
	font-size: 13px;
	border-radius: 0 12px 12px 0;
}
.pop-left .th-text { border-left: 0; border-right: 3px solid; border-image: linear-gradient(180deg, #ff00aa, #00e5ff) 1; border-radius: 12px 0 0 12px; }
.th-text-loader {
	text-align: center; font-size: 20px;
	color: var(--cyan); padding-top: 20px;
	text-shadow: 0 0 12px var(--cyan);
}
.th-text .not-shown-ajax, .th-text h1 a, .th-text h1 small { display: none; }
.th-text h1 { font-size: 19px; font-family: 'Orbitron', sans-serif; letter-spacing: 0.6px; margin-bottom: 10px; }
.th-text .full-text {
	display: -webkit-box; -webkit-line-clamp: 7; line-clamp: 7; 
	-webkit-box-orient: vertical; overflow: hidden;
	margin: 15px 0;
	color: var(--tt-fade-0);
	line-height: 1.6;
}
.th-text .page__btn-trailer {
	width: 100%; margin-top: 22px;
	height: 42px; border-radius: 10px;
}

/* ============================================================
   БЛОК 8: FOOTER (Космический футер)
============================================================ */

.footer {
	padding: 44px var(--indent) 24px;
	background: 
		linear-gradient(180deg, 
			rgba(5, 1, 15, 0.96) 0%, 
			rgba(2, 0, 8, 1) 100%);
	color: var(--tt-fade);
	--tt: #fff; --tt-fade: #8fa3bb; --bdc: rgba(0, 229, 255, 0.2);
	position: relative;
	overflow: hidden;
	border-top: 1px solid rgba(0, 229, 255, 0.15);
}
.footer::before {
	content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
	background: linear-gradient(90deg, transparent, #00e5ff, #7c4dff, #ff00aa, #ffcc00, transparent);
	background-size: 300% 100%;
	animation: borderFlow 7s linear infinite;
	opacity: 0.7;
}
.footer::after {
	content: ''; position: absolute; inset: 0; pointer-events: none;
	background: 
		radial-gradient(ellipse 100% 60% at 50% 0%, rgba(124, 77, 255, 0.08), transparent 60%);
}

.footer__one, .footer__two { position: relative; z-index: 1; }
.footer__two {
	border-top: 1px solid var(--bdc);
	padding-top: 22px;
	margin-top: 44px;
}

.footer__notify {
	border-left: 1px solid var(--bdc);
	padding-left: 22px;
	font-size: 13px;
	line-height: 1.55;
}

.footer__copyright {
	font-size: 14px;
	color: var(--tt-fade-0);
	font-weight: 500;
	letter-spacing: 0.3px;
}

.footer__menu {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	font-family: 'Exo 2', 'Oswald', sans-serif;
	letter-spacing: 0.8px;
	gap: 10px 28px;
}
.footer__menu a {
	padding: 4px 0;
	position: relative;
	opacity: 0.9;
}
.footer__menu a::after {
	content: '';
	position: absolute; bottom: 0; left: 0;
	width: 0; height: 2px;
	background: linear-gradient(90deg, #00e5ff, #ff00aa);
	transition: width 0.35s ease;
}
.footer__menu a:hover::after { width: 100%; }

/* Tech badges */
.neon-tech { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.tech-badge {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.8px;
	font-family: 'Exo 2', sans-serif;
	padding: 5px 12px;
	border-radius: 6px;
	text-transform: uppercase;
	color: #fff;
	position: relative;
	overflow: hidden;
}
.tech-badge::before {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
	background-size: 200% 100%;
	animation: shimmerSweep 3s linear infinite;
}
.tech-badge:nth-child(1) { background: linear-gradient(135deg, #00e5ff, #2196f3); }
.tech-badge:nth-child(2) { background: linear-gradient(135deg, #7c4dff, #ff00aa); }
.tech-badge:nth-child(3) { background: linear-gradient(135deg, #ff00aa, #ffcc00); }
.tech-badge:nth-child(4) { background: linear-gradient(135deg, #00ffa3, #00e5ff); }
.tech-badge:nth-child(5) { background: linear-gradient(135deg, #ff8a00, #ff2d55); }
.tech-badge:nth-child(6) { background: linear-gradient(135deg, #ffcc00, #ff8a00); }

.cosmos-footer-logo { margin-bottom: 4px; }

/* ============================================================
   БЛОК 9: PAGINATION
============================================================ */

.pagination {
	gap: 22px 12px;
	padding-top: 14px;
	position: relative;
}
.pagination::before {
	content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
	width: 50%; height: 1px;
	background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.4), transparent);
}
.pagination__pages a, .pagination__pages span, .pagination > a, .pagination > span 
{display: grid; place-items: center; color: var(--tt-fade-0);
height: 40px; min-width: 40px; padding: 0 14px; border-radius: 10px;
background: rgba(0, 229, 255, 0.04);
border: 1px solid rgba(0, 229, 255, 0.15);
font-weight: 600;
font-family: 'Exo 2', sans-serif;
letter-spacing: 0.5px;
transition: all 0.3s ease;}
.pagination__pages { gap: 10px; font-size: 14px; }
.pagination__pages span:not(.nav_ext) {
	color: #fff;
	background: linear-gradient(135deg, #00e5ff, #7c4dff, #ff00aa);
	background-size: 200% 200%;
	animation: cosmosBtnShift 3s ease infinite;
	border: none;
	box-shadow: 
		0 4px 20px rgba(0, 229, 255, 0.3),
		0 0 0 1px rgba(255,255,255,0.1) inset;
}
.pagination__btns {
	height: 40px;
	border-radius: 10px; overflow: hidden;
	background: rgba(0, 229, 255, 0.04);
	border: 1px solid rgba(0, 229, 255, 0.15);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.pagination__btns > * {
	width: 44px; display: grid; place-items: center;
	color: var(--cyan); font-size: 16px;
	transition: all 0.3s ease;
}
.pagination__btns > *:hover { background: linear-gradient(135deg, rgba(0,229,255,0.2), rgba(255,0,170,0.2)); color: #fff; }
.pagination__btns > span { color: var(--tt-fade); }
.pagination__btn-loader:has(span:not(.fal)) { display: none; }
.pagination__btn-loader a { min-width: 380px; border-radius: 10px; }

/* ============================================================
   БЛОК 10: INNER PAGE (Полная страница фильма)
============================================================ */

.page__bg {
	box-shadow: 
		0 8px 40px rgba(0, 0, 0, 0.5),
		0 0 0 1px rgba(0, 229, 255, 0.08) inset;
	background: 
		linear-gradient(180deg, rgba(8, 2, 25, 0.96) 0%, rgba(5, 1, 15, 0.98) 100%);
	margin: 0 var(--indent-negative);
	border-radius: 0;
	position: relative;
	overflow: hidden;
}
.page__bg::before {
	content: ''; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(ellipse 100% 50% at 50% 0%, rgba(124, 77, 255, 0.08), transparent 70%);
}

.page__cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 0;
	position: relative;
	z-index: 1;
}
.page__cols:not(:has(.page__cols-right)) { display: block; }
.page__cols-left { padding: 26px; padding-bottom: 0; }
.page__cols-right {
	background: 
		linear-gradient(180deg, rgba(15, 4, 45, 0.6) 0%, rgba(8, 2, 25, 0.8) 100%);
	padding: 26px;
	border-left: 1px solid rgba(0, 229, 255, 0.1);
}

.page__main {
	display: grid;
	gap: 18px 26px;
	grid-template-columns: 220px minmax(0, 1fr); 
	grid-template-areas: "poster header" "poster info";
	grid-template-rows: auto 1fr;
	margin-bottom: 30px;
}
.page__poster {
	grid-area: poster;
	border-radius: 12px;
	overflow: hidden;
	align-self: start;
	box-shadow:
		0 12px 40px rgba(0, 0, 0, 0.6),
		0 0 0 1px rgba(0, 229, 255, 0.15);
	position: relative;
}
.page__poster::after {
	content: ''; position: absolute; inset: 0;
	border-radius: inherit;
	padding: 2px;
	background: linear-gradient(135deg, #00e5ff, #7c4dff, #ff00aa, #ffcc00);
	background-size: 300% 300%;
	animation: cosmosBtnShift 5s ease infinite;
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}
.page__header { grid-area: header; }
.page__info { grid-area: info; }

.page__img::after { opacity: 0.6; height: 40%; }

.page__rating-ext { position: relative; z-index: 10; font-size: 13px; }
.page__rating-ext a {
	display: flex; align-items: center; padding: 0 14px; font-weight: 700; gap: 10px;
	height: 44px;
	border-radius: 10px;
	background: rgba(0, 229, 255, 0.05);
	border: 1px solid rgba(0, 229, 255, 0.18);
	transition: all 0.3s ease;
}
.page__rating-ext a:hover {
	background: rgba(0, 229, 255, 0.1);
	box-shadow: 0 4px 20px rgba(0, 229, 255, 0.2);
}
.page__rating-ext a .fal {
	display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; 
	font-size: 15px; color: #fff;
	background: linear-gradient(135deg, #00ffa3, #00e5ff);
	box-shadow: 0 2px 10px rgba(0, 255, 163, 0.35);
}
.page__rating-ext a + a .fal {
	background: linear-gradient(135deg, #ff8a00, #ffcc00);
	box-shadow: 0 2px 10px rgba(255, 138, 0, 0.35);
}

.page__ratingscore-ring {
	width: 56px; font-weight: 800; font-size: 16px; font-family: 'Orbitron', sans-serif;
	background: rgba(5, 1, 15, 0.9);
	color: #fff;
	box-shadow: 
		0 4px 20px rgba(0, 0, 0, 0.5),
		0 0 0 1px rgba(0, 229, 255, 0.2) inset;
	position: absolute; left: 50%; top: 0; translate: -50% -50%;
	isolation: isolate;
	border-radius: 50%;
	aspect-ratio: 1;
	display: grid; place-items: center;
}
.page__ratingscore-ring::before {
	content: ''; position: absolute; z-index: -2; inset: 0; border-radius: 50%; 
	background: conic-gradient(from 0deg, #00e5ff 0%, #7c4dff 40%, #ff00aa 70%, #ffcc00 var(--p), rgba(15, 4, 45, 0.8)  var(--p));
	box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}
.page__ratingscore-ring::after {
	content: ''; position: absolute; z-index: -1; 
	background: rgba(5, 1, 15, 0.95);
	inset: 3px; border-radius: 50%;
}

.page__header h1 {
	font-size: 26px;
	font-weight: 800;
	font-family: 'Orbitron', sans-serif;
	letter-spacing: 0.8px;
	line-height: 1.2;
	background: linear-gradient(135deg, #fff, #00e5ff, #ff00aa);
	background-size: 250% 250%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: auroraText 6s ease infinite;
}
.page__header h1 a { font-size: 13px; margin-left: 10px; -webkit-text-fill-color: initial; color: var(--cyan); }

.page__text .full-text {
	color: #a8bad0;
	line-height: 1.75;
	font-size: 14.5px;
}
.page__text { margin-bottom: 24px; position: relative; }

.js-hide-text { max-height: 200px; overflow: auto; }
.show-text {
	position: absolute; z-index: 2; left: 0; bottom: 0px;
	width: 100%; height: 40px; font-size: 13px;
	background: linear-gradient(180deg, transparent, rgba(8, 2, 25, 0.97) 40%);
	color: var(--cyan);
	font-weight: 700;
	letter-spacing: 0.8px;
	border: none;
	border-radius: 0;
}
.show-text:hover { color: var(--pink); background: linear-gradient(180deg, transparent, rgba(15, 4, 45, 0.98) 40%); }
.show-text::before { display: none; }

.js-hide-text[style]::before {
	content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 65%; 
	background: linear-gradient(to top, rgba(8, 2, 25, 1) 10%, transparent 100%);
	z-index: 1;
	pointer-events: none;
}

.page__list {
	line-height: 1.45;
	font-size: 13.5px;
	display: grid;
	gap: 7px 24px; 
	grid-template-columns: repeat(auto-fill,minmax(270px,1fr));
	padding: 20px;
	background: rgba(15, 4, 45, 0.4);
	border-radius: 12px;
	border: 1px solid rgba(0, 229, 255, 0.1);
}
.page__list li > span:first-child {
	font-weight: 700;
	margin-right: 6px;
	color: var(--cyan);
	font-family: 'Exo 2', sans-serif;
	letter-spacing: 0.3px;
}
.page__list li > span:first-child::after { content: ':'; }
.page__list a {
	color: var(--pink);
	text-decoration: none;
	border-bottom: 1px dotted rgba(255, 0, 170, 0.4);
}
.page__list a:hover { color: var(--cyan); border-color: var(--cyan); }
.page__list-wide { grid-column: 1 / -1; }
.page__list-rates { grid-row: span 2; }

/* Badges в секции */
.badge-cosmos {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.8px;
	font-family: 'Exo 2', sans-serif;
	padding: 3px 9px;
	border-radius: 5px;
	text-transform: uppercase;
	color: #fff;
	vertical-align: middle;
}
.badge-cosmos.new {
	background: linear-gradient(135deg, #00e5ff, #00ffa3);
	margin-left: 6px;
	box-shadow: 0 2px 10px rgba(0, 229, 255, 0.4);
	animation: cosmicPulse 2.5s ease infinite;
}
.badge-cosmos.hot {
	background: linear-gradient(135deg, #ff2d55, #ffcc00);
	margin-left: 6px;
	box-shadow: 0 2px 10px rgba(255, 45, 85, 0.4);
	animation: cosmicPulse 2s ease infinite;
}
.badge-cosmos.ai {
	background: linear-gradient(135deg, #7c4dff, #00e5ff);
	margin-left: 6px;
}
.badge-cosmos.vr {
	background: linear-gradient(135deg, #ff00aa, #ffcc00);
	margin-left: 6px;
}
