/* ============================================
   LORDFILM TEMPLATE - MODERN DARK THEME 2025
   ============================================ */

   :root {
	--bg: #0a0a0a;
	--bg-secondary: #111;
	--bg-card: #151515;
	--bg-hover: #1a1a1a;
	--border: #222;
	--text: #fff;
	--text-secondary: #999;
	--text-muted: #555;
	--accent: #14b8a6;
	--accent-hover: #0d9488;
	--orange: #ff6b00;
	--green: #22c55e;
	--yellow: #f5c518;
	--radius: 8px;
	--radius-lg: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: var(--text);
	background: var(--bg);
}
a { color: var(--text); text-decoration: none; transition: all 0.2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* ============================================
   HEADER - COMPACT & MODERN
   ============================================ */
.header {
	background: linear-gradient(180deg, #0f0f0f 0%, var(--bg) 100%);
	padding: 14px 0;
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid var(--border);
}

.header__container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	gap: 24px;
}

.header__logo {
	display: flex;
	align-items: center;
	font-size: 24px;
	font-weight: 700;
	white-space: nowrap;
	flex-shrink: 0;
}

.header__logo .logo-text { 
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 1px;
}
.header__logo .logo-dot { 
	color: var(--orange); 
	margin-left: 2px;
	font-size: 28px;
}

.header__nav {
	display: flex;
	align-items: center;
	gap: 6px;
}

.header__nav a {
	padding: 8px 14px;
	color: var(--text-secondary);
	font-size: 13px;
	font-weight: 500;
	border-radius: var(--radius);
	transition: all 0.2s;
}

.header__nav a:hover {
	color: #fff;
	background: rgba(255,255,255,0.05);
}

.header__nav-accent {
	background: var(--accent) !important;
	color: #fff !important;
}

.header__nav-accent:hover {
	background: var(--accent-hover) !important;
}

/* SEARCH - WIDE */
.header__search {
	flex: 1;
	max-width: 500px;
	margin-left: auto;
}

.header__search form {
	display: flex;
	align-items: center;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 50px;
	overflow: hidden;
	transition: all 0.2s;
}

.header__search form:focus-within {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.header__search .search-icon {
	margin-left: 16px;
	color: var(--text-muted);
	flex-shrink: 0;
}

.header__search input[type="text"] {
	flex: 1;
	background: transparent;
	border: none;
	padding: 12px 14px;
	color: var(--text);
	font-size: 14px;
	outline: none;
}

.header__search input::placeholder { 
	color: var(--text-muted); 
}

.header__search button {
	background: var(--accent);
	color: #fff;
	padding: 12px 24px;
	font-weight: 600;
	font-size: 13px;
	margin: 4px;
	border-radius: 50px;
	transition: all 0.2s;
}

.header__search button:hover { 
	background: var(--accent-hover); 
}

/* ============================================
   BURGER MENU BUTTON
   ============================================ */
.header__burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 36px;
	height: 36px;
	padding: 6px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	cursor: pointer;
	transition: all 0.2s;
}

.header__burger:hover {
	border-color: var(--accent);
}

.header__burger span {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--text);
	border-radius: 2px;
	transition: all 0.3s;
}

.header__burger.active span:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}

.header__burger.active span:nth-child(2) {
	opacity: 0;
}

.header__burger.active span:nth-child(3) {
	transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   MOBILE MENU PANEL
   ============================================ */
.mobile-menu {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 200;
	visibility: hidden;
	opacity: 0;
	transition: all 0.3s;
}

.mobile-menu.active {
	visibility: visible;
	opacity: 1;
}

.mobile-menu__overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(4px);
}

.mobile-menu__panel {
	position: absolute;
	top: 0;
	right: 0;
	width: 85%;
	max-width: 320px;
	height: 100%;
	background: var(--bg-secondary);
	border-left: 1px solid var(--border);
	transform: translateX(100%);
	transition: transform 0.3s ease;
	display: flex;
	flex-direction: column;
}

.mobile-menu.active .mobile-menu__panel {
	transform: translateX(0);
}

.mobile-menu__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid var(--border);
	background: var(--bg);
}

.mobile-menu__title {
	font-size: 18px;
	font-weight: 700;
}

.mobile-menu__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--text);
	font-size: 18px;
	cursor: pointer;
	transition: all 0.2s;
}

.mobile-menu__close:hover {
	background: var(--accent);
	border-color: var(--accent);
}

.mobile-menu__content {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
}

.mobile-menu__nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 24px;
}

.mobile-menu__nav a {
	display: block;
	padding: 12px 16px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	font-size: 15px;
	font-weight: 500;
	transition: all 0.2s;
}

.mobile-menu__nav a:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.mobile-menu__section {
	margin-bottom: 20px;
}

.mobile-menu__section-title {
	font-size: 13px;
	font-weight: 600;
	color: var(--text-muted);
	margin-bottom: 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.mobile-menu__links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.mobile-menu__links a {
	padding: 8px 14px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 20px;
	font-size: 13px;
	color: var(--text-secondary);
	transition: all 0.2s;
}

.mobile-menu__links a:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

/* ============================================
   HERO SLIDER - BEAUTIFUL CAROUSEL
   ============================================ */
.hero-section {
	padding: 20px 0;
	background: linear-gradient(180deg, rgba(139, 92, 246, 0.03) 0%, transparent 100%);
}

.hero-section__container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
}

.hero-slider {
	position: relative;
}

.hero-slider__track {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding: 10px 0;
	scroll-snap-type: x mandatory;
}

.hero-slider__track::-webkit-scrollbar { display: none; }

.hero-slide {
	flex: 0 0 160px;
	scroll-snap-align: start;
	position: relative;
}

.hero-slide__link {
	display: block;
	position: relative;
	/* border-radius: var(--radius-lg); */
	overflow: hidden;
	transition: all 0.3s ease;
}

.hero-slide__link:hover {
	/* box-shadow: 0 12px 30px rgba(139, 92, 246, 0.2); */
}

.hero-slide__poster {
	position: relative;
	aspect-ratio: 2/3;
	overflow: hidden;
}

.hero-slide__poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.hero-slide__link:hover .hero-slide__poster img {
	transform: scale(1.05);
}

.hero-slide__content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	/* padding: 40px 10px 10px; */
	background: linear-gradient(transparent, rgba(0,0,0,0.9));
	background: #151515c4;
	padding: 10px;
}

.hero-slide__title {
	display: block;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	color: #fff;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hero-slide__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
}

.hero-slide__year {
	font-size: 10px;
	color: var(--text-secondary);
}

.hero-slide__rating {
	font-size: 10px;
	font-weight: 700;
	color: var(--orange);
}

.hero-slide__quality {
	position: absolute;
	top: 8px;
	left: 8px;
	padding: 3px 8px;
	background: var(--orange);
	border-radius: 4px;
	font-size: 9px;
	font-weight: 700;
	color: #fff;
	text-transform: uppercase;
}

/* Slider Controls */
.hero-slider__controls {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	transform: translateY(-50%);
	display: flex;
	justify-content: space-between;
	pointer-events: none;
	padding: 0 4px;
}

.hero-slider__arrow {
	width: 42px;
	height: 42px;
	background: rgba(0,0,0,0.8);
	backdrop-filter: blur(10px);
	border: 1px solid var(--border);
	border-radius: 50%;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: auto;
	transition: all 0.2s;
}

.hero-slider__arrow:hover {
	background: var(--accent);
	border-color: var(--accent);
	transform: scale(1.1);
}

/* ============================================
   TELEGRAM BANNER
   ============================================ */
.tg-banner {
	max-width: 1400px;
	margin: 0 auto 24px;
	padding: 0 20px;
}

.tg-banner__container {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
	padding: 16px 30px;
	background: linear-gradient(135deg, #667eea 0%, #8b5cf6 100%);
	border-radius: var(--radius-lg);
}

.tg-banner__text { 
	font-size: 14px; 
	font-weight: 500; 
}

.tg-banner__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 22px;
	background: #fff;
	color: #333;
	border-radius: 50px;
	font-weight: 600;
	font-size: 13px;
	transition: all 0.2s;
}

.tg-banner__btn:hover { 
	transform: scale(1.03); 
	color: #333;
	box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* ============================================
   NAV PANEL
   ============================================ */
.nav-panel {
	max-width: 1400px;
	margin: 0 auto 20px;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.nav-panel__left,
.nav-panel__right {
	padding: 12px 16px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.nav-panel__title { 
	font-size: 13px; 
	font-weight: 600; 
	color: var(--text-secondary);
}

.nav-panel__home { 
	font-size: 13px; 
	color: var(--text-secondary); 
}

.nav-panel__home:hover { 
	color: var(--accent); 
}

/* ============================================
   MAIN CONTENT LAYOUT
   ============================================ */
.main-content { padding: 0 0 40px; }

.main-content__container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
	display: grid;
	grid-template-columns: 1fr 280px;
	gap: 24px;
	align-items: start;
}

.content-area { min-width: 0; }

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
	margin-bottom: 20px;
	font-size: 12px;
	color: var(--text-secondary);
}

.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--text-muted); }

/* ============================================
   PAGE TITLE
   ============================================ */
.page-title {
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 24px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--border);
}

/* ============================================
   FILM CARDS - GRID LAYOUT (shortstory)
   ============================================ */
.movies-grid {
	display: grid !important;
	grid-template-columns: repeat(5, 1fr) !important;
	gap: 18px !important;
}

/* Отключаем grid когда внутри fullstory */
.movies-grid:has(.full-movie),
.movies-grid.has-fullstory {
	display: block !important;
}


/* Адаптивность для сетки */
@media (max-width: 1400px) {
	.movies-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 1024px) {
	.movies-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.movies-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}
}

.film-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: all 0.3s ease;
	position: relative;
}

.film-card:hover {
	border-color: var(--accent);
	box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
}

.film-card__link {
	display: block;
	color: var(--text);
}

.film-card__poster {
	position: relative;
	aspect-ratio: 2/3;
	overflow: hidden;
	background: var(--bg);
}

.film-card__poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.film-card:hover .film-card__poster img {
	transform: scale(1.08);
}

.film-card__quality {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 5px 12px;
	background: linear-gradient(135deg, var(--orange), #ff8c00);
	border-radius: 6px;
	font-size: 10px;
	font-weight: 700;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 2px 8px rgba(255, 107, 0, 0.4);
	z-index: 2;
}

.film-card__overlay {
	position: absolute;
	inset: 0;
	background: rgba(139, 92, 246, 0);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: all 0.3s ease;
}

.film-card:hover .film-card__overlay {
	background: rgba(139, 92, 246, 0.35);
	opacity: 1;
	backdrop-filter: blur(2px);
}

.film-card__play {
	width: 54px;
	height: 54px;
	background: rgba(255,255,255,0.98);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	color: var(--accent);
	transform: scale(0.7);
	transition: all 0.3s ease;
	box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.film-card:hover .film-card__play {
	transform: scale(1);
	background: var(--accent);
	color: #fff;
}

.film-card__info {
	padding: 14px;
}

.film-card__title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: 8px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 36px;
	transition: color 0.2s;
}

.film-card:hover .film-card__title {
	color: var(--accent);
}

.film-card__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	flex-wrap: wrap;
}

.film-card__year {
	color: var(--text-muted);
	font-weight: 500;
}

.film-card__rating {
	color: var(--orange);
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 3px;
}


/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
	display: flex;
	flex-direction: column;
	gap: 16px;
	position: sticky;
	top: 80px;
}

.sidebar__block {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 16px;
}

.sidebar__title {
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--border);
}

.sidebar__links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.sidebar__links a {
	padding: 6px 12px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 20px;
	font-size: 12px;
	color: var(--text-secondary);
	transition: all 0.2s;
}

.sidebar__links a:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.sidebar__links--years a { 
	min-width: 46px; 
	text-align: center;
	justify-content: center;
}

/* TOP ITEMS - NUMBERED LIST */
.sidebar__top { 
	display: flex; 
	flex-direction: column; 
	gap: 8px;
	counter-reset: top-counter;
}

.top-item {
	counter-increment: top-counter;
}

.top-item__link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	background: var(--bg);
	border-radius: var(--radius);
	transition: all 0.2s;
}

.top-item__link:hover { 
	background: var(--bg-hover);
}

.top-item__num {
	width: 26px;
	height: 26px;
	background: var(--accent);
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	flex-shrink: 0;
}

.top-item__num::before {
	content: counter(top-counter);
}

.top-item:nth-child(1) .top-item__num { background: linear-gradient(135deg, #ffd700, #ffaa00); color: #000; }
.top-item:nth-child(2) .top-item__num { background: linear-gradient(135deg, #c0c0c0, #999); color: #000; }
.top-item:nth-child(3) .top-item__num { background: linear-gradient(135deg, #cd7f32, #a66a2a); }

.top-item__poster {
	width: 45px;
	height: 65px;
	border-radius: 6px;
	overflow: hidden;
	flex-shrink: 0;
}

.top-item__poster img { 
	width: 100%; 
	height: 100%; 
	object-fit: cover; 
}

.top-item__info { 
	display: flex; 
	flex-direction: column; 
	justify-content: center; 
	min-width: 0;
	flex: 1;
}

.top-item__title {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.top-item__meta { 
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11px; 
	color: var(--text-muted); 
	margin-top: 4px; 
}

.top-item__year {
	color: var(--text-muted);
}

.top-item__rating {
	color: var(--orange);
	font-weight: 700;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination-wrap { margin-top: 30px; }

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

.pagination a,
.pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	font-size: 13px;
	font-weight: 500;
	color: var(--text);
	transition: all 0.2s;
}

.pagination a:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.pagination span.nav_ext,
.pagination span:not([class]) {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

/* ============================================
   FULLSTORY
   ============================================ */
.full-movie {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.full-movie__header {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 24px;
	padding: 24px;
	border-bottom: 1px solid var(--border);
}

.full-movie__poster {
	position: relative;
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.full-movie__poster img { 
	width: 100%; 
	height: auto; 
}

.quality-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 5px 12px;
	background: var(--orange);
	border-radius: 6px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.full-movie__title { 
	font-size: 24px; 
	font-weight: 700; 
	margin-bottom: 16px;
	line-height: 1.3;
}

.full-movie__ratings { 
	display: flex; 
	gap: 12px; 
	margin-bottom: 20px; 
}

.rating-box {
	padding: 10px 16px;
	border-radius: var(--radius);
	text-align: center;
}

.rating-box--kp { background: linear-gradient(135deg, #ff6b00, #ff8c00); }
.rating-box--imdb { background: linear-gradient(135deg, #f5c518, #daa520); color: #000; }

.rating-label { display: block; font-size: 10px; opacity: 0.8; }
.rating-value { display: block; font-size: 20px; font-weight: 700; }

/* Таблица информации о фильме */
.full-movie__table { 
	width: 100%; 
	border-collapse: separate;
	border-spacing: 0;
	background: var(--bg);
	border-radius: var(--radius);
	overflow: hidden;
}

.full-movie__table tr { 
	border-bottom: 1px solid var(--border); 
}

.full-movie__table tr:last-child { 
	border-bottom: none; 
}

.full-movie__table tr:last-child td {
	border-bottom: none;
}

.full-movie__table td { 
	padding: 12px 16px; 
	font-size: 14px;
	border-bottom: 1px solid var(--border);
	vertical-align: top;
}

.full-movie__table td:first-child { 
	color: var(--text-muted); 
	width: 130px;
	font-weight: 500;
	white-space: nowrap;
	background: rgba(255, 255, 255, 0.02);
}

.full-movie__table td:last-child {
	color: var(--yellow);
}

.full-movie__table a { 
	color: var(--yellow); 
	transition: color 0.2s;
}

.full-movie__table a:hover {
	color: var(--accent);
}

.full-movie__voting {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--border);
}

.vote-btn {
	padding: 10px 20px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	font-size: 18px;
	transition: all 0.2s;
}

.vote-btn:hover { 
	background: var(--bg-hover);
	transform: scale(1.05);
}

.vote-count { 
	font-size: 20px; 
	font-weight: 700; 
	color: var(--accent);
	min-width: 50px;
	text-align: center;
}

.full-movie__section {
	padding: 24px;
	border-bottom: 1px solid var(--border);
}

.full-movie__section:last-child { border-bottom: none; }

.section-title { 
	font-size: 18px; 
	font-weight: 700; 
	margin-bottom: 16px; 
}

/* Description */
.full-movie__desc-wrap {
	position: relative;
}

.full-movie__desc {
	font-size: 14px;
	line-height: 1.8;
	color: var(--text-secondary);
	transition: max-height 0.4s ease;
	overflow: hidden;
}

.full-movie__desc--collapsed {
	max-height: 100px;
	position: relative;
}

.full-movie__desc--collapsed::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 50px;
	background: linear-gradient(transparent, var(--bg-card));
	pointer-events: none;
}

.full-movie__desc--expanded {
	max-height: 2000px;
}

.full-movie__desc--expanded::after {
	display: none;
}

.desc-toggle-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	padding: 10px 18px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--accent);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s;
}

.desc-toggle-btn:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.desc-toggle-icon {
	transition: transform 0.3s;
}

/* PLAYER */
.player-wrap { 
	background: #000; 
	border-radius: var(--radius-lg); 
	overflow: hidden; 
}

.player-tabs { 
	display: flex; 
	gap: 6px; 
	padding: 12px; 
	background: var(--bg-secondary);
	flex-wrap: wrap;
}

.player-tab {
	padding: 10px 18px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--text);
	font-size: 13px;
	font-weight: 600;
	transition: all 0.2s;
}

.player-tab:hover { 
	background: var(--bg-hover); 
}

.player-tab.active { 
	background: var(--accent); 
	border-color: var(--accent); 
}

.player-container { 
	position: relative; 
	padding-bottom: 56.25%; 
}

.player-container iframe { 
	position: absolute; 
	top: 0; 
	left: 0; 
	width: 100%; 
	height: 100%; 
}

.player-loader {
	position: absolute;
	top: 0; left: 0; width: 100%; height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	background: #000;
	color: var(--text);
	z-index: 5;
}

.loader-spin {
	width: 40px;
	height: 40px;
	border: 3px solid var(--border);
	border-top-color: var(--accent);
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* RELATED */
.related-movies {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 14px;
}

.related-item__link {
	display: block;
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	transition: all 0.3s ease;
}

.related-item__link:hover {
	transform: translateY(-4px);
}

.related-item__link img { 
	width: 100%; 
	height: 170px; 
	object-fit: cover; 
}

.related-item__content {
	position: absolute;
	bottom: 0; 
	left: 0; 
	right: 0;
	padding: 40px 8px 8px;
	background: linear-gradient(transparent, rgba(0,0,0,0.95));
}

.related-item__title {
	display: block;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
	color: #fff;
	margin-bottom: 4px;
}

.related-item__meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 10px;
}

.related-item__year {
	color: var(--text-secondary);
}

.related-item__rating {
	color: var(--orange);
	font-weight: 700;
}

/* COMMENTS */
.comments-form { margin-bottom: 24px; }
.comments-list { display: flex; flex-direction: column; gap: 16px; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
	background: #000;
	padding: 30px 0;
	margin-top: 40px;
	border-top: 1px solid var(--border);
}

.footer__container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
}

.footer__logo { 
	display: flex; 
	align-items: center; 
	font-size: 20px; 
	font-weight: 700; 
}
.footer__logo .logo-dot { color: var(--orange); }

.footer__nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__nav a { color: var(--text-secondary); font-size: 13px; }
.footer__nav a:hover { color: var(--accent); }

.footer__copy { font-size: 12px; color: var(--text-muted); }

/* ============================================
   SEO & INFO
   ============================================ */
.seo-block {
	margin-top: 30px;
	padding: 20px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	font-size: 13px;
	color: var(--text-secondary);
	line-height: 1.8;
}

.info {
	padding: 16px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	margin-bottom: 20px;
}

/* ============================================
   AD BLOCK
   ============================================ */
.ad-block {
	max-width: 1400px;
	margin: 24px auto;
	padding: 0 20px;
	text-align: center;
}

.ad-block > div {
	margin: 0 auto;
}

/* ============================================
   COMMENT FORM STYLES
   ============================================ */
.comment-form-wrapper {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 24px;
}

.form-row {
	margin-bottom: 16px;
}

.form-row:last-child {
	margin-bottom: 0;
}

.form-row-inline {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.form-group {
	flex: 1;
	min-width: 200px;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 600;
	color: var(--text-secondary);
}

.form-group-name {
	flex: 2;
}

.form-group-avatar {
	flex: 0 0 auto;
}

.input-with-btn {
	display: flex;
	gap: 8px;
}

.input-with-btn input {
	flex: 1;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 12px 16px;
	color: var(--text);
	font-size: 14px;
}

.input-with-btn input:focus {
	outline: none;
	border-color: var(--accent);
}

.btn-random-name {
	padding: 12px 16px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	font-size: 18px;
	transition: all 0.2s;
}

.btn-random-name:hover {
	background: var(--accent);
	border-color: var(--accent);
}

.btn-avatar-select {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--text);
	font-size: 14px;
	transition: all 0.2s;
}

.btn-avatar-select:hover {
	border-color: var(--accent);
}

.avatar-placeholder {
	font-size: 24px;
}

.avatar-placeholder.selected {
	font-size: 28px;
}

.avatar-change {
	font-size: 11px;
	color: var(--text-muted);
}

/* STICKERS BAR */
.stickers-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow-x: auto;
}

.stickers-label {
	font-size: 11px;
	color: var(--text-muted);
	flex-shrink: 0;
}

.stickers-list {
	display: flex;
	gap: 6px;
}

.sticker {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	font-size: 20px;
	cursor: pointer;
	border-radius: 6px;
	transition: all 0.15s;
}

.sticker:hover {
	background: rgba(139, 92, 246, 0.2);
	transform: scale(1.2);
}

/* TEXTAREA */
.form-group textarea {
	width: 100%;
	min-height: 120px;
	padding: 14px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--text);
	font-size: 14px;
	font-family: inherit;
	resize: vertical;
}

.form-group textarea:focus {
	outline: none;
	border-color: var(--accent);
}

.form-group textarea::placeholder {
	color: var(--text-muted);
}

/* CAPTCHA */
.form-row-captcha {
	display: flex;
	justify-content: center;
}

/* SUBMIT BUTTON */
.btn-submit-comment {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	background: var(--accent);
	border-radius: var(--radius);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	transition: all 0.2s;
}

.btn-submit-comment:hover {
	background: var(--accent-hover);
	transform: translateY(-2px);
}

/* AVATAR MODAL */
.avatar-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s;
}

.avatar-modal.visible {
	opacity: 1;
	visibility: visible;
}

.avatar-modal-content {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	max-width: 420px;
	width: 90%;
	max-height: 80vh;
	overflow: hidden;
}

.avatar-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px;
	border-bottom: 1px solid var(--border);
}

.avatar-modal-header h3 {
	font-size: 17px;
	font-weight: 600;
}

.modal-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	color: var(--text-muted);
	border-radius: var(--radius);
	transition: all 0.2s;
}

.modal-close:hover {
	color: var(--text);
	background: var(--bg);
}

.avatar-modal-body {
	padding: 18px;
	max-height: 50vh;
	overflow-y: auto;
}

.avatars-grid {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 8px;
}

.avatar-option {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	font-size: 26px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	cursor: pointer;
	transition: all 0.15s;
}

.avatar-option:hover {
	background: rgba(139, 92, 246, 0.2);
	border-color: var(--accent);
	transform: scale(1.1);
}

/* COMMENTS LIST */
.comments-list,
.comments-tree-list {
	list-style: none !important;
	margin: 0;
	padding: 0;
}

.comments-tree-list li,
.comments-tree-item {
	list-style: none !important;
	margin: 0;
	padding: 0;
}

.comments-tree-list li::marker,
.comments-tree-item::marker {
	display: none;
	content: none;
}

/* COMMENT ITEM */
.comment {
	display: flex;
	gap: 14px;
	padding: 18px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	margin-bottom: 12px;
}

.comment-avatar {
	flex-shrink: 0;
}

.avatar-emoji {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 50%;
	font-size: 24px;
}

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

.comment-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
}

.comment-author {
	font-weight: 600;
	font-size: 14px;
	color: var(--accent);
}

.comment-date {
	font-size: 11px;
	color: var(--text-muted);
}

.comment-text {
	font-size: 14px;
	line-height: 1.7;
	color: var(--text-secondary);
}

.comment-actions {
	display: flex;
	gap: 14px;
	margin-top: 12px;
}

.comment-actions a {
	font-size: 12px;
	color: var(--text-muted);
}

.comment-actions a:hover {
	color: var(--accent);
}

/* ============================================
   DLE PUSH NOTIFICATIONS
   ============================================ */
.DLEPush {
	position: fixed;
	z-index: 9999;
	padding: 15px;
}

.DLEPush.top-right {
	top: 80px;
	right: 0;
}

.DLEPush-notification {
	display: none;
}

.DLEPush-notification.wrapper {
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 18px;
	margin-bottom: 10px;
	box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.DLEPush-close {
	position: absolute;
	top: 10px;
	right: 10px;
	background: none;
	border: none;
	color: var(--text-muted);
	font-size: 20px;
	cursor: pointer;
}

.DLEPush-icon {
	color: var(--orange);
}

.DLEPush-message {
	color: var(--text);
	font-size: 14px;
}


/* ============================================
   SEARCH PAGE
   ============================================ */
.search-page {
	margin-bottom: 20px;
}

.search-page .page-title {
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 24px;
}

.search-form-page {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 24px;
	margin-bottom: 20px;
}

/* DLE Search Table Styles */
.search-form-page table {
	width: 100%;
	border-collapse: collapse;
}

.search-form-page table td {
	padding: 0;
	vertical-align: middle;
}

.search-form-page table td.search {
	padding: 0;
}

.search-form-page table td > div {
	margin: 0 !important;
	padding: 0 !important;
}

.search-form-page input[type="text"] {
	width: 100%;
	max-width: 100%;
	padding: 14px 20px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--text);
	font-size: 15px;
	outline: none;
	transition: all 0.2s;
	margin-bottom: 16px;
}

.search-form-page input[type="text"]:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.search-form-page input[type="radio"] {
	width: 18px;
	height: 18px;
	margin-right: 8px;
	accent-color: var(--accent);
	vertical-align: middle;
}

.search-form-page select {
	width: 100%;
	padding: 12px 16px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--text);
	font-size: 14px;
	outline: none;
	cursor: pointer;
	transition: all 0.2s;
}

.search-form-page select:focus {
	border-color: var(--accent);
}

.search-form-page label {
	color: var(--text-secondary);
	font-size: 14px;
	display: inline-block;
	margin-left: 4px;
	cursor: pointer;
}

/* Кнопка "Начать поиск" */
.search-form-page button[type="submit"],
.search-form-page input[type="submit"],
.search-form-page input[type="button"]#dosearch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 32px;
	background: var(--accent);
	border: none;
	border-radius: var(--radius);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	width: auto;
	margin: 0;
}

.search-form-page button[type="submit"]:hover,
.search-form-page input[type="submit"]:hover,
.search-form-page input[type="button"]#dosearch:hover {
	background: var(--accent-hover);
	transform: translateY(-1px);
}

/* Скрыть кнопку "Расширенный поиск" */
.search-form-page input[type="button"]#dofullsearch {
	display: none !important;
}

.search-page .info {
	padding: 16px 20px;
	background: rgba(139, 92, 246, 0.1);
	border: 1px solid rgba(139, 92, 246, 0.3);
	border-radius: var(--radius-lg);
	color: var(--text);
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 20px;
}

.search-page .info strong {
	font-weight: 700;
	color: var(--accent);
	display: block;
	margin-bottom: 6px;
}

.search-form-page .berrors {
	padding: 14px 18px;
	background: rgba(255, 107, 0, 0.1);
	border: 1px solid rgba(255, 107, 0, 0.3);
	border-radius: var(--radius);
	color: var(--orange);
	font-size: 14px;
	line-height: 1.6;
	margin-top: 15px;
}

.search-form-page .berrors b {
	font-weight: 700;
	display: block;
	margin-bottom: 6px;
}

/* Search Results Comments */
.comment-search-result {
	padding: 16px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	margin-bottom: 12px;
	font-size: 14px;
	line-height: 1.6;
}

