/* ==========================================
   LORDFILM 2025 - CINEMA DARK THEME
   С красивыми hover-эффектами и анимациями
   ========================================== */

   :root {
	--bg-body: #0a0a0c;
	--bg-main: #111114;
	--bg-card: #18181c;
	--bg-card-alt: #1e1e24;
	--bg-sidebar: #111114;
	--bg-header: #0a0a0c;
	
	--text-white: #ffffff;
	--text-primary: #e4e4e8;
	--text-secondary: #9ca3af;
	--text-muted: #6b7280;
	
	--accent: #22c55e;
	--accent-hover: #4ade80;
	--accent-glow: rgba(229, 9, 20, 0.4);
	--accent-gold: #f5c518;
	--accent-blue: #0ea5e9;
	
	--kp-color: #ff6600;
	--imdb-color: #f5c518;
	
	--border: rgba(255, 255, 255, 0.06);
	--border-hover: rgba(255, 255, 255, 0.12);
	
	--shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
	--shadow-glow: 0 0 30px var(--accent-glow);
	
	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 12px;
	--radius-xl: 16px;
	
	--font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	
	--sidebar-width: 260px;
	--header-height: 60px;
}

/* ==========================================
   RESET
   ========================================== */

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

html { scroll-behavior: smooth; }

body {
	font-family: var(--font);
	font-size: 14px;
	line-height: 1.5;
	color: var(--text-primary);
	background: var(--bg-body);
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: transparent; }
input, textarea { font-family: inherit; }
.hidden { display: none !important; }

/* ==========================================
   CURSOR GLOW EFFECT
   ========================================== */

.cursor-glow {
	position: fixed;
	width: 400px;
	height: 400px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(229, 9, 20, 0.08) 0%, transparent 70%);
	pointer-events: none;
	z-index: 9999;
	transform: translate(-50%, -50%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

/* ==========================================
   FLOATING PARTICLES
   ========================================== */

.particles {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	overflow: hidden;
}

.particle {
	position: absolute;
	width: 3px;
	height: 3px;
	background: rgba(229, 9, 20, 0.3);
	border-radius: 50%;
	bottom: -10px;
	animation: floatUp linear infinite;
}

@keyframes floatUp {
	0% {
		transform: translateY(0) rotate(0deg);
		opacity: 0;
	}
	10% {
		opacity: 1;
	}
	90% {
		opacity: 1;
	}
	100% {
		transform: translateY(-100vh) rotate(720deg);
		opacity: 0;
	}
}

/* ==========================================
   RIPPLE EFFECT
   ========================================== */

.ripple {
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	transform: scale(0);
	animation: rippleEffect 0.6s ease-out;
	pointer-events: none;
}

@keyframes rippleEffect {
	to {
		transform: scale(4);
		opacity: 0;
	}
}

/* ==========================================
   LAYOUT
   ========================================== */

.wrapper {
	display: flex;
	flex-direction: column;
	position: relative;
	z-index: 1;
}

.layout {
	display: flex;
	flex: 1;
	max-width: 1480px;
	margin: 0 auto;
	width: 100%;
	padding: 20px;
	gap: 20px;
}

/* ==========================================
   HEADER
   ========================================== */

.header {
	background: var(--bg-header);
	position: sticky;
	top: 0;
	z-index: 1000;
	border-bottom: 1px solid var(--border);
	backdrop-filter: blur(10px);
}

.header__container {
	max-width: 1480px;
	margin: 0 auto;
	padding: 0 20px;
	height: var(--header-height);
	display: flex;
	align-items: center;
	gap: 30px;
}

/* Logo */
.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	position: relative;
	overflow: hidden;
}

.logo__icon {
	width: 36px;
	height: 36px;
	background: var(--accent);
	border-radius: var(--radius-md);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 14px;
	transition: all 0.3s ease;
	box-shadow: 0 0 0 0 var(--accent-glow);
}

.logo:hover .logo__icon {
	box-shadow: 0 0 20px var(--accent-glow);
}

.logo__text {
	font-size: 22px;
	font-weight: 800;
	color: var(--text-white);
	letter-spacing: -0.5px;
}

.logo__text span {
	color: var(--accent);
	transition: text-shadow 0.3s ease;
}

.logo:hover .logo__text span {
	text-shadow: 0 0 20px var(--accent-glow);
}

/* Header Nav */
.header__nav {
	display: flex;
	align-items: center;
	gap: 6px;
}

.header__nav-link {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	color: var(--text-secondary);
	font-size: 13px;
	font-weight: 500;
	border-radius: var(--radius-md);
	position: relative;
	overflow: hidden;
	transition: color 0.3s ease;
}

.header__nav-link::before {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 2px;
	background: var(--accent);
	transition: all 0.3s ease;
	transform: translateX(-50%);
}

.header__nav-link:hover {
	color: var(--text-white);
}

.header__nav-link:hover::before {
	width: 80%;
}

.header__nav-link i {
	font-size: 12px;
	color: var(--text-muted);
	transition: color 0.3s ease, transform 0.3s ease;
}

.header__nav-link:hover i {
	color: var(--accent);
}

/* Search */
.header__search {
	flex: 1;
	max-width: none;
}

.search-box {
	display: flex;
	align-items: center;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 0 14px;
	transition: all 0.3s ease;
}

.search-box:focus-within {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-box i {
	color: var(--text-muted);
	font-size: 14px;
	transition: color 0.3s ease;
}

.search-box:focus-within i {
	color: var(--accent);
}

.search-box input {
	flex: 1;
	background: transparent;
	border: none;
	padding: 10px 12px;
	color: var(--text-primary);
	font-size: 13px;
}

.search-box input::placeholder { color: var(--text-muted); }
.search-box input:focus { outline: none; }

/* Telegram Button */
.header-tg-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: linear-gradient(135deg, #0088cc 0%, #00aaff 100%);
	color: white;
	font-size: 13px;
	font-weight: 600;
	border-radius: var(--radius-md);
	transition: all 0.3s ease;
	white-space: nowrap;
}

.header-tg-btn:hover {
	box-shadow: 0 0 20px rgba(0, 136, 204, 0.5);
}

.header-tg-btn i {
	font-size: 16px;
}

@media (max-width: 900px) {
	.header-tg-btn .tg-btn-text {
		display: none;
	}
	
	.header-tg-btn {
		padding: 8px 10px;
	}
}

/* Mobile Menu */
.mobile-menu-btn {
	display: none;
	width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	color: var(--text-primary);
	font-size: 20px;
	transition: color 0.3s ease;
}

.mobile-menu-btn:hover {
	color: var(--accent);
}

/* ==========================================
   SIDEBAR
   ========================================== */

.sidebar {
	width: var(--sidebar-width);
	flex-shrink: 0;
}

.sidebar__close {
	display: none;
	position: absolute;
	top: 16px;
	right: 16px;
	width: 36px;
	height: 36px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	color: var(--text-muted);
	font-size: 18px;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	z-index: 10;
}

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

@media (max-width: 1024px) {
	.sidebar__close {
		display: flex;
	}
}

.sidebar__inner {
	position: sticky;
	top: calc(var(--header-height) + 20px);
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Sidebar Block */
.sidebar-block {
	background: var(--bg-main);
	border-radius: var(--radius-lg);
	padding: 16px;
	border: 1px solid var(--border);
	transition: border-color 0.3s ease;
}

.sidebar-block:hover {
	border-color: var(--border-hover);
}

.sidebar-block__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 700;
	color: var(--text-white);
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--border);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.sidebar-block__title i {
	color: var(--accent);
	font-size: 12px;
}

/* Sidebar Menu */
.sidebar-menu {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.sidebar-menu--grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
}

.sidebar-menu__item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	color: var(--text-secondary);
	font-size: 12px;
	border-radius: var(--radius-sm);
	position: relative;
	overflow: hidden;
	transition: all 0.3s ease;
}

.sidebar-menu__item::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 0;
	background: rgba(229, 9, 20, 0.1);
	transition: width 0.3s ease;
}

.sidebar-menu__item:hover::before {
	width: 100%;
}

.sidebar-menu__item:hover {
	color: var(--text-white);
}

.sidebar-menu__item i {
	width: 16px;
	font-size: 12px;
	color: var(--text-muted);
	text-align: center;
	transition: all 0.3s ease;
	position: relative;
	z-index: 1;
	flex-shrink: 0;
}

.sidebar-menu__item:hover i {
	color: var(--accent);
}

.sidebar-menu__item span {
	position: relative;
	z-index: 1;
}

.sidebar-menu__item .flag {
	font-size: 14px;
	transition: transform 0.3s ease;
}

.sidebar-menu__item:hover .flag {
}

/* Years */
.sidebar-years {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.sidebar-years a {
	padding: 6px 12px;
	background: var(--bg-card);
	border-radius: var(--radius-sm);
	color: var(--text-secondary);
	font-size: 12px;
	font-weight: 500;
	transition: all 0.3s ease;
	border: 1px solid transparent;
}

.sidebar-years a:hover {
	border-color: var(--accent);
	color: var(--accent);
	box-shadow: 0 0 15px var(--accent-glow);
}

/* ==========================================
   MAIN
   ========================================== */

.main {
	flex: 1;
	min-width: 0;
}

.main__inner {
	background: var(--bg-main);
	border-radius: var(--radius-lg);
	padding: 20px;
	min-height: 600px;
	border: 1px solid var(--border);
}

/* Section Header */
.section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.section-header__title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 18px;
	font-weight: 700;
	color: var(--text-white);
}

.section-header__title i {
	color: var(--accent);
	font-size: 14px;
}

.section-header__link {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	color: var(--text-muted);
	transition: all 0.3s ease;
}

.section-header__link:hover {
	color: var(--accent);
}

.section-header__link i {
	font-size: 10px;
	transition: transform 0.3s ease;
}

.section-header__link:hover i {
	transform: translateX(4px);
}

/* Content Section */
.content-section {
	margin-bottom: 20px;
}

/* SEO Block */
.seo-block {
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	padding: 24px;
	margin-top: 24px;
	border: 1px solid var(--border);
	font-size: 14px;
	line-height: 1.7;
	color: var(--text-secondary);
}

.seo-block h2, 
.seo-block h3 {
	color: var(--text-white);
	margin-bottom: 12px;
	margin-top: 20px;
}

.seo-block h2:first-child,
.seo-block h3:first-child {
	margin-top: 0;
}

.seo-block p {
	margin-bottom: 12px;
}

.seo-block p:last-child {
	margin-bottom: 0;
}

/* View Toggle */
.view-toggle {
	display: flex;
	gap: 4px;
	background: var(--bg-card);
	border-radius: var(--radius-md);
	padding: 4px;
	border: 1px solid var(--border);
}

.view-toggle__btn {
	width: 36px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	border-radius: var(--radius-sm);
	color: var(--text-muted);
	font-size: 14px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.view-toggle__btn:hover {
	color: var(--text-white);
	background: var(--bg-card-alt);
}

.view-toggle__btn.active {
	background: var(--accent);
	color: white;
	box-shadow: 0 0 10px var(--accent-glow);
}

/* Movies Grid Mode */
.movies-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 16px;
}

@media (min-width: 1200px) {
	.movies-grid {
		grid-template-columns: repeat(5, 1fr);
	}
}

.movies-grid .movie-card {
	flex-direction: column;
	padding: 0;
	gap: 0;
	overflow: hidden;
	background: var(--bg-card);
	border-radius: var(--radius-lg);
}

.movies-grid .movie-card::before {
	display: none;
}

.movies-grid .movie-card__content {
	flex-direction: column;
	gap: 0;
}

.movies-grid .movie-card__poster {
	width: 100%;
	max-width: 100%;
	position: relative;
}

.movies-grid .movie-card__poster-link {
	display: block;
	aspect-ratio: 2/3;
	overflow: hidden;
}

.movies-grid .movie-card__poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: 2/3;
	max-width: 100%;
	max-height: 100%;
}

.movies-grid .movie-card__play-icon {
	width: 44px;
	height: 44px;
	font-size: 16px;
}

.movies-grid .movie-card__info {
	padding: 12px;
}

.movies-grid .movie-card__header {
	flex-direction: column;
	gap: 0;
	margin-bottom: 4px;
}

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

.movies-grid .movie-card__title a:hover {
	color: var(--accent);
}

/* Rating on poster in grid mode */
.movies-grid .movie-card__rating {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 4;
	padding: 3px 8px;
	background: rgba(0, 0, 0, 0.85);
	font-size: 11px;
}

.movies-grid .movie-card__meta {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
	font-size: 11px;
}

.movies-grid .movie-card__meta-row {
	display: none;
}

.movies-grid .movie-card__meta-row:first-child {
	display: flex;
	gap: 4px;
}

.movies-grid .movie-card__meta-row:first-child span:first-child {
	display: none;
}

.movies-grid .btn-watch {
	display: none;
}

/* Grid mobile adjustments are in main @media queries below */

@media (max-width: 480px) {
	.movies-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}
	
	.movies-grid .movie-card__info {
		padding: 8px;
	}
	
	.movies-grid .movie-card__title {
		font-size: 10px;
		-webkit-line-clamp: 1;
	}
}

/* ==========================================
   BREADCRUMBS
   ========================================== */

.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--text-muted);
	margin-bottom: 16px;
	padding: 10px 14px;
	background: var(--bg-card);
	border-radius: var(--radius-md);
}

.breadcrumbs a {
	color: var(--text-secondary);
	transition: color 0.3s ease;
}

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

.breadcrumbs .current {
	color: var(--text-white);
}

/* ==========================================
   MOVIE CARDS - HORIZONTAL
   ========================================== */

.movies-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.movie-card {
	display: flex;
	gap: 20px;
	padding: 16px;
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	border: 1px solid var(--border);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.movie-card::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, var(--accent-glow) 0%, transparent 50%);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.movie-card:hover::before {
	opacity: 0.1;
}

.movie-card:hover {
	border-color: var(--border-hover);
}

/* Poster */
.movie-card__poster {
	position: relative;
	width: 130px;
	flex-shrink: 0;
}

.movie-card__poster-link {
	display: block;
	border-radius: var(--radius-md);
	overflow: hidden;
	position: relative;
}

.movie-card__poster-link::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0);
	transition: background 0.3s ease;
}

.movie-card:hover .movie-card__poster-link::after {
	background: rgba(0, 0, 0, 0.4);
}

/* Play Button on Poster */
.movie-card__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 3;
}

.movie-card:hover .movie-card__play {
	opacity: 1;
}

.movie-card__play-icon {
	width: 50px;
	height: 50px;
	background: var(--accent);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 18px;
	padding-left: 3px;
	transition: all 0.3s ease;
	box-shadow: 0 0 20px var(--accent-glow);
}

.movie-card:hover .movie-card__play-icon {
}


.movie-card__poster img {
	width: 100%;
	aspect-ratio: 2/3;
	object-fit: cover;
	background: var(--bg-card-alt);
	transition: filter 0.3s ease;
}

.movie-card:hover .movie-card__poster img {
	filter: brightness(1.1);
}

.movie-card__quality {
	position: absolute;
	top: 6px;
	left: 6px;
	padding: 3px 6px;
	background: var(--accent);
	color: white;
	font-size: 9px;
	font-weight: 700;
	border-radius: 3px;
	text-transform: uppercase;
	z-index: 2;
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
	50% { box-shadow: 0 0 10px var(--accent-glow); }
}

.movie-card__season {
	position: absolute;
	bottom: 6px;
	left: 6px;
	right: 6px;
	padding: 4px 8px;
	background: rgba(0, 0, 0, 0.85);
	color: white;
	font-size: 10px;
	font-weight: 600;
	border-radius: 3px;
	text-align: center;
	z-index: 2;
}

/* Info */
.movie-card__content {
	flex: 1;
	display: flex;
	gap: 16px;
	min-width: 0;
	position: relative;
	z-index: 1;
}

.movie-card__info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	justify-content: space-between;
}

.movie-card__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.movie-card__title {
	font-size: 16px;
	font-weight: 700;
	color: var(--text-white);
	line-height: 1.3;
	flex: 1;
}

.movie-card__title a {
	color: inherit;
	transition: color 0.3s ease;
}

.movie-card__title a:hover {
	color: var(--accent);
}

.movie-card__rating {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	background: rgba(245, 197, 24, 0.15);
	border-radius: var(--radius-sm);
	font-size: 12px;
	font-weight: 700;
	color: var(--accent-gold);
	white-space: nowrap;
	flex-shrink: 0;
}

.movie-card__rating i {
	font-size: 10px;
}

.movie-card__year {
	color: var(--text-primary);
}

/* Meta */
.movie-card__meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 12px;
	color: var(--text-secondary);
}

.movie-card__meta-row {
	display: flex;
	gap: 6px;
	line-height: 1.4;
}

.movie-card__meta-row span:first-child {
	color: var(--text-muted);
	flex-shrink: 0;
}

.movie-card__meta-row a {
	color: var(--text-secondary);
	transition: color 0.3s ease;
}

.movie-card__meta-row a:hover {
	color: var(--accent);
}


/* Button in meta */
.btn-watch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 20px;
	background: var(--accent);
	color: white;
	font-size: 13px;
	font-weight: 600;
	border-radius: var(--radius-md);
	white-space: nowrap;
	position: relative;
	overflow: hidden;
	transition: all 0.3s ease;
	max-width: 200px;
	align-self: flex-end;
	margin-top: auto;
}

.btn-watch::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.2);
	transform: translateX(-100%);
	transition: transform 0.3s ease;
}

.btn-watch:hover::before {
	transform: translateX(100%);
}

.btn-watch:hover {
	box-shadow: 0 0 25px var(--accent-glow);
}

/* ==========================================
   CARDS GRID
   ========================================== */

.cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 16px;
}

@media (min-width: 1200px) {
	.cards-grid {
		grid-template-columns: repeat(6, 1fr);
	}
}

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

.card:hover {
	border-color: var(--border-hover);
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.card__link {
	display: block;
}

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

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

.card:hover .card__poster img {
	filter: brightness(1.1);
}

.card__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.card:hover .card__play {
	opacity: 1;
}

.card__play-icon {
	width: 44px;
	height: 44px;
	background: var(--accent);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 16px;
	padding-left: 2px;
	transition: all 0.3s ease;
	animation: pulsePlay 1.5s infinite;
}

@keyframes pulsePlay {
	0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 var(--accent-glow); }
	50% { transform: scale(1.1); box-shadow: 0 0 20px var(--accent-glow); }
}

.card__badge {
	position: absolute;
	top: 8px;
	left: 8px;
	padding: 4px 8px;
	background: var(--accent);
	color: white;
	font-size: 9px;
	font-weight: 700;
	border-radius: 3px;
}

.card__quality {
	position: absolute;
	top: 8px;
	right: 8px;
	padding: 3px 6px;
	background: rgba(0, 0, 0, 0.75);
	color: white;
	font-size: 9px;
	font-weight: 600;
	border-radius: 3px;
}

.card__info {
	padding: 12px;
}

.card__title {
	font-size: 13px;
	font-weight: 600;
	color: var(--text-white);
	line-height: 1.3;
	margin-bottom: 6px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.3s ease;
}

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

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

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

.card__rating {
	font-weight: 600;
}

.card__rating--kp { color: var(--kp-color); }
.card__rating--imdb { color: var(--imdb-color); }

/* ==========================================
   PAGINATION
   ========================================== */

.pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 24px;
	padding: 16px 0;
}

.pagination a,
.pagination span {
	min-width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
	font-size: 13px;
	font-weight: 600;
	border-radius: var(--radius-md);
	background: var(--bg-card);
	color: var(--text-secondary);
	transition: all 0.3s ease;
}

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

.pagination span:not(.nav_ext) {
	background: var(--accent);
	color: white;
	box-shadow: 0 0 15px var(--accent-glow);
}

.pagination .nav_ext {
	background: transparent;
	color: var(--text-muted);
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 20px;
	font-size: 13px;
	font-weight: 600;
	border-radius: var(--radius-md);
	position: relative;
	overflow: hidden;
	transition: all 0.3s ease;
}

.btn--primary {
	background: var(--accent);
	color: white;
}

.btn--primary:hover {
	box-shadow: 0 0 25px var(--accent-glow);
}

.btn--glow {
	animation: btnGlow 2s infinite;
}

@keyframes btnGlow {
	0%, 100% { box-shadow: 0 0 5px var(--accent-glow); }
	50% { box-shadow: 0 0 25px var(--accent-glow); }
}

.btn--secondary {
	background: var(--bg-card);
	color: var(--text-primary);
	border: 1px solid var(--border);
}

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

/* ==========================================
   FOOTER
   ========================================== */

.footer {
	background: var(--bg-header);
	border-top: 1px solid var(--border);
	margin-top: 20px;
	position: relative;
	z-index: 1;
}

.footer__container {
	max-width: 1480px;
	margin: 0 auto;
	padding: 32px 20px;
}

.footer__content {
	text-align: center;
}

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

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

/* ==========================================
   FULLSTORY STYLES
   ========================================== */

.movie-header {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 28px;
	padding: 24px;
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	border: 1px solid var(--border);
	margin-bottom: 20px;
}

.movie-header__poster { display: flex; flex-direction: column; gap: 14px; }

.movie-poster {
	position: relative;
	border-radius: var(--radius-md);
	overflow: hidden;
}

.movie-poster img {
	width: 100%;
	aspect-ratio: 2/3;
	object-fit: cover;
	background: var(--bg-card-alt);
}

.movie-poster__quality {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 5px 10px;
	background: var(--accent);
	color: white;
	font-size: 10px;
	font-weight: 700;
	border-radius: 4px;
	text-transform: uppercase;
}

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

.vote-btn {
	width: 40px;
	height: 40px;
	border-radius: var(--radius-md);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	transition: all 0.3s ease;
}

.vote-btn--like {
	background: rgba(16, 185, 129, 0.15);
	color: #10b981;
}

.vote-btn--like:hover {
	background: #10b981;
	color: white;
	box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.vote-btn--dislike {
	background: rgba(239, 68, 68, 0.15);
	color: #ef4444;
}

.vote-btn--dislike:hover {
	background: #ef4444;
	color: white;
	box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.vote-count {
	flex: 1;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 60px;
	font-weight: 600;
	font-size: 15px;
}

.vote-count__value {
	color: #10b981;
	background: var(--bg-card-alt);
	border-radius: var(--radius-md);
	font-size: 14px;
	font-weight: 700;
	color: var(--text-white);
}

.edit-link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px;
	background: var(--bg-card-alt);
	border-radius: var(--radius-md);
	color: var(--text-muted);
	font-size: 12px;
	transition: all 0.3s ease;
}

.edit-link:hover {
	color: var(--accent);
}

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

.movie-title {
	font-size: 26px;
	font-weight: 800;
	color: var(--text-white);
	line-height: 1.2;
	margin-bottom: 4px;
}

.movie-title-original {
	font-size: 14px;
	color: var(--text-muted);
	margin-bottom: 16px;
}

.movie-ratings { display: flex; gap: 10px; margin-bottom: 16px; }

.rating-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 14px;
	background: var(--bg-card-alt);
	border-radius: var(--radius-md);
	border: 2px solid transparent;
	transition: all 0.3s ease;
}

.rating-item:hover {
	box-shadow: var(--shadow);
}

.rating-item--kp { border-color: var(--kp-color); }
.rating-item--imdb { border-color: var(--imdb-color); }

.rating-item__label { font-size: 10px; font-weight: 600; text-transform: uppercase; }
.rating-item--kp .rating-item__label { color: var(--kp-color); }
.rating-item--imdb .rating-item__label { color: var(--imdb-color); }

.rating-item__value { font-size: 20px; font-weight: 800; color: var(--text-white); }

.movie-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.movie-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: var(--bg-card-alt);
	border-radius: var(--radius-sm);
	font-size: 12px;
	color: var(--text-secondary);
	transition: all 0.3s ease;
}

.movie-tag:hover {
	color: var(--text-white);
}

.movie-tag i { color: var(--text-muted); font-size: 11px; }

.movie-tag--accent {
	background: rgba(229, 9, 20, 0.15);
	color: var(--accent);
}

.movie-tag--accent i { color: var(--accent); }

.movie-tag a { color: var(--text-secondary); transition: color 0.3s ease; }
.movie-tag a:hover { color: var(--accent); }

.movie-description {
	font-size: 13px;
	line-height: 1.7;
	color: var(--text-secondary);
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--border);
}

.movie-details { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }

.movie-detail { display: flex; gap: 8px; font-size: 12px; line-height: 1.5; }
.movie-detail__label { width: 80px; flex-shrink: 0; color: var(--text-muted); }
.movie-detail__value { color: var(--text-secondary); }
.movie-detail__value a { color: var(--accent-blue); }
.movie-detail__value a:hover { text-decoration: underline; }

.movie-seo {
	font-size: 13px;
	font-weight: 500;
	color: var(--text-muted);
	padding-top: 14px;
	border-top: 1px solid var(--border);
	margin-top: auto;
}

/* Player */
.player-wrapper {
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 1px solid var(--border);
	margin-bottom: 20px;
}

.player-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 14px;
	background: var(--bg-card-alt);
	border-bottom: 1px solid var(--border);
}

.player-tabs { display: flex; gap: 2px; }

.player-tab {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 12px 16px;
	font-size: 12px;
	font-weight: 600;
	color: var(--text-muted);
	background: transparent;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.player-tab:hover { color: var(--text-white); }

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

.player-tab--trailer.active {
	color: var(--accent-gold);
	border-bottom-color: var(--accent-gold);
}

.player-controls { display: flex; gap: 4px; }

.player-ctrl {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-muted);
	font-size: 14px;
	border-radius: var(--radius-sm);
	transition: all 0.3s ease;
}

.player-ctrl:hover {
	color: var(--accent);
}

.player-frame {
	position: relative;
	aspect-ratio: 16/9;
	background: #000;
}

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

.player-loader {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	background: #000;
	color: #444;
	font-size: 13px;
}

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

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

.player-share {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px;
	background: var(--bg-card-alt);
}

.player-share > span { font-size: 12px; color: var(--text-muted); }

.share-btn {
	width: 32px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	color: white;
	font-size: 12px;
	transition: all 0.3s ease;
}

.share-btn:hover { filter: brightness(1.2); }

.share-btn--vk { background: #4c75a3; }
.share-btn--tg { background: #0088cc; }
.share-btn--ok { background: #ee8208; }

.light-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.95);
	z-index: 998;
	display: none;
}

body.light-off .light-overlay { display: block; }
body.light-off .player-wrapper { position: relative; z-index: 999; }

/* Promo Banner */
.promo-banner {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	background: rgba(229, 9, 20, 0.1);
	border: 1px solid rgba(229, 9, 20, 0.3);
	border-radius: var(--radius-lg);
	margin-bottom: 20px;
}

.promo-banner > i { font-size: 24px; color: var(--accent); }

.promo-banner__text { flex: 1; }
.promo-banner__text strong { display: block; font-size: 14px; color: var(--text-white); }
.promo-banner__text span { font-size: 12px; color: var(--text-muted); }

/* Comments */
.comments-section {
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	padding: 20px;
	border: 1px solid var(--border);
	margin-bottom: 20px;
}

.section-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 700;
	color: var(--text-white);
	margin-bottom: 16px;
}

.section-title i { color: var(--accent); }

.comments-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.comments-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.comments-list ol,
.comments-list ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.comments-list li {
	list-style: none;
}

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

.comment {
	background: var(--bg-card-alt);
	border-radius: var(--radius-md);
	padding: 14px;
	transition: all 0.3s ease;
	margin-bottom: 12px;
}

.comment:hover {
	background: var(--bg-card);
}

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

.comment__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	background: var(--bg-card);
	display: flex;
	align-items: center;
	justify-content: center;
}

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

.comment__avatar .avatar-emoji {
	font-size: 22px;
	line-height: 1;
}

.comment__info { display: flex; flex-direction: column; gap: 2px; }

.comment__author { font-size: 13px; font-weight: 600; color: var(--text-white); }

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

.comment__text { font-size: 13px; line-height: 1.5; color: var(--text-secondary); }
.comment__text p { margin-bottom: 8px; }
.comment__text p:last-child { margin-bottom: 0; }

.comment__actions {
	margin-top: 8px;
}

.comment__reply {
	background: transparent;
	border: none;
	color: var(--text-muted);
	font-size: 12px;
	cursor: pointer;
	padding: 4px 0;
	transition: color 0.3s ease;
}

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

.last-comm-link {
	font-size: 12px;
	color: var(--text-muted);
	margin-bottom: 8px;
}

.last-comm-link a {
	color: var(--accent);
}

/* Add Comment */
.add-comment {
	background: var(--bg-card-alt);
	border-radius: var(--radius-md);
	padding: 16px;
}

.add-comment__title { 
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px; 
	font-weight: 700; 
	color: var(--text-white); 
	margin-bottom: 14px; 
}

.add-comment__title i {
	color: var(--accent);
}

.add-comment__fields { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }

.form-field--name {
	display: flex;
	gap: 8px;
}

.form-field--name .form-input {
	flex: 1;
}

.btn-random-name {
	width: 44px;
	height: 44px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	font-size: 20px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.btn-random-name:hover {
	border-color: var(--accent);
	box-shadow: 0 0 10px var(--accent-glow);
	transform: rotate(180deg);
}

.form-field--avatar {
	display: flex;
	align-items: center;
	gap: 10px;
}

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

.btn-select-avatar {
	width: 44px;
	height: 44px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	font-size: 22px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.btn-select-avatar:hover {
	border-color: var(--accent);
	box-shadow: 0 0 10px var(--accent-glow);
}

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

/* Стикеры */
.stickers-panel {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: 10px;
}

.stickers-label {
	font-size: 11px;
	color: var(--text-muted);
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.stickers-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.sticker {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	cursor: pointer;
	border-radius: var(--radius-sm);
	transition: all 0.2s ease;
}

.sticker:hover {
	background: var(--bg-card-alt);
	transform: scale(1.2);
}

/* Модальное окно аватаров */
.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	backdrop-filter: blur(5px);
}

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

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

.modal-header h3 {
	font-size: 16px;
	font-weight: 700;
	color: var(--text-white);
}

.modal-close {
	width: 32px;
	height: 32px;
	background: var(--bg-card);
	border: none;
	border-radius: var(--radius-sm);
	color: var(--text-muted);
	font-size: 20px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.modal-close:hover {
	color: var(--accent);
	background: var(--bg-card-alt);
}

.modal-body {
	padding: 20px;
	overflow-y: auto;
	max-height: 60vh;
}

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

.avatar-item {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg-card);
	border: 2px solid var(--border);
	border-radius: var(--radius-md);
	cursor: pointer;
	transition: all 0.3s ease;
}

.avatar-item:hover {
	border-color: var(--accent);
	box-shadow: 0 0 15px var(--accent-glow);
	transform: scale(1.1);
}

.avatar-emoji {
	font-size: 28px;
}

.add-comment__protect {
	margin-bottom: 14px;
}

.form-input,
.form-textarea {
	width: 100%;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: 10px 14px;
	color: var(--text-primary);
	font-size: 13px;
	transition: all 0.3s ease;
}

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

.form-input:focus,
.form-textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-textarea { min-height: 100px; resize: vertical; }

.add-comment__submit { display: flex; justify-content: flex-end; }

/* Related */
.related-section { margin-bottom: 20px; }

/* Alerts */
.alert {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	background: var(--bg-card);
	border-radius: var(--radius-md);
	margin-bottom: 16px;
	border-left: 3px solid var(--accent);
}

/* Lazy Images */
.lazy-img { opacity: 0; transition: opacity 0.4s ease; }
.lazy-img.loaded { opacity: 1; }

/* Mobile Overlay */
.mobile-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.8);
	z-index: 998;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

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

/* DLE */
#loading-layer { background: rgba(10, 10, 12, 0.9) !important; }
#loading-layer span {
	background: var(--bg-card) !important;
	color: var(--text-primary) !important;
	border-radius: var(--radius-md) !important;
	padding: 16px 24px !important;
}

/* DLEPush Notifications */
#dlepushnews,
.DLEPush {
	position: fixed;
	z-index: 99999;
	font-family: var(--font);
	pointer-events: none;
}

#dlepushnews > *,
.DLEPush > * {
	pointer-events: auto;
}

#dlepushnews.top-right,
.DLEPush.top-right {
	top: 80px;
	right: 20px;
}

.DLEPush-notification {
	position: relative;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: 14px 40px 14px 50px;
	margin-bottom: 10px;
	max-width: 320px;
	box-shadow: var(--shadow);
	animation: pushSlideIn 0.3s ease;
}

@keyframes pushSlideIn {
	from {
		opacity: 0;
		transform: translateX(100%);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.DLEPush-notification.wrapper {
	display: flex;
	align-items: flex-start;
	min-height: auto;
	flex-direction: row;
}

.DLEPush-notification.push-error {
	border-left: 3px solid var(--accent);
}

.DLEPush-notification.push-success {
	border-left: 3px solid #10b981;
}

.DLEPush-notification.push-info {
	border-left: 3px solid var(--accent-blue);
}

.DLEPush-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 24px;
	height: 24px;
	background: transparent;
	border: none;
	color: var(--text-muted);
	font-size: 18px;
	cursor: pointer;
	transition: color 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.DLEPush-close:hover {
	color: var(--accent);
}

.DLEPush-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--accent);
}

.DLEPush-icon svg {
	width: 20px;
	height: 20px;
}

.push-success .DLEPush-icon {
	color: #10b981;
}

.push-info .DLEPush-icon {
	color: var(--accent-blue);
}

.DLEPush-header {
	font-size: 13px;
	font-weight: 700;
	color: var(--text-white);
	margin-bottom: 2px;
}

.DLEPush-message {
	font-size: 12px;
	color: var(--text-secondary);
	line-height: 1.4;
}

/* DLE UI Elements */
.ui-dialog {
	background: var(--bg-main) !important;
	border: 1px solid var(--border) !important;
	border-radius: var(--radius-lg) !important;
	box-shadow: var(--shadow) !important;
	z-index: 99999;
}

.ui-dialog-titlebar {
	background: var(--bg-card) !important;
	border-bottom: 1px solid var(--border) !important;
	padding: 14px 16px !important;
}

.ui-dialog-title {
	color: var(--text-white) !important;
	font-size: 14px !important;
	font-weight: 700 !important;
}

.ui-dialog-content {
	background: var(--bg-main) !important;
	color: var(--text-primary) !important;
	padding: 16px !important;
}

.ui-dialog-buttonpane {
	background: var(--bg-card) !important;
	border-top: 1px solid var(--border) !important;
	padding: 12px 16px !important;
}

.ui-button {
	background: var(--accent) !important;
	color: white !important;
	border: none !important;
	border-radius: var(--radius-md) !important;
	padding: 8px 16px !important;
	font-weight: 600 !important;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1200px) {
	.layout { padding: 16px; gap: 16px; }
	.sidebar { width: 220px; }
	.movie-card { gap: 16px; padding: 14px; }
	.movie-card__poster { width: 110px; }
}

@media (max-width: 1024px) {
	/* Header mobile */
	.header__container {
		justify-content: space-between;
	}
	
	.header__nav { 
		display: none; 
	}
	
	.header__search {
		display: none;
	}
	
	.header-tg-btn {
		padding: 8px;
		border-radius: var(--radius-md);
	}
	
	.tg-btn-text {
		display: none;
	}
	
	.mobile-menu-btn { 
		display: flex;
		order: 10;
	}
	
	/* Sidebar mobile */
	.sidebar {
		position: fixed;
		top: 0;
		right: -320px;
		left: auto;
		width: 300px;
		height: 100vh;
		background: var(--bg-main);
		z-index: 10000;
		transition: right 0.3s ease;
		padding: 0;
		overflow-y: auto;
		overflow-x: hidden;
		box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
		border-left: 1px solid var(--border);
	}
	
	.sidebar.active {
		right: 0;
	}
	
	.sidebar__inner { 
		position: static; 
		padding: 70px 16px 20px;
		overflow: hidden;
	}
	
	.sidebar-block {
		overflow: hidden;
	}
	
	.sidebar-widget {
		margin-bottom: 16px;
		background: var(--bg-card);
		border-radius: var(--radius-md);
		padding: 12px;
	}
	
	.sidebar-widget__title {
		font-size: 13px;
		padding: 0 0 10px;
		margin-bottom: 10px;
		border-bottom: 1px solid var(--border);
	}
	
	.sidebar-menu {
		gap: 2px;
	}
	
	.sidebar-menu__item {
		padding: 10px 12px;
		font-size: 13px;
	}
	
	.genres-grid,
	.countries-grid,
	.years-grid {
		gap: 4px;
		flex-wrap: wrap;
		overflow: hidden;
	}
	
	.genre-link,
	.country-link,
	.year-link {
		padding: 6px 10px;
		font-size: 11px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: 100%;
	}
	
	body.menu-open {
		overflow: hidden;
	}
	
	/* Overlay */
	.sidebar::before {
		content: '';
		position: fixed;
		top: 0;
		left: -100vw;
		width: 100vw;
		height: 100vh;
		background: rgba(0, 0, 0, 0.7);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.3s ease;
	}
	
	.sidebar.active::before {
		opacity: 1;
		pointer-events: auto;
	}
	
	/* Layout */
	.layout {
		padding: 12px;
		display: block;
	}
	
	.main {
		width: 100%;
		max-width: 100%;
	}
	
	.main__inner {
		padding: 12px;
	}
	
	/* Movie header */
	.movie-header { 
		display: flex;
		flex-direction: column;
		gap: 16px; 
		padding: 14px; 
	}
	
	.movie-header__poster {
		display: flex;
		gap: 12px;
	}
	
	.movie-poster {
		width: 130px;
		flex-shrink: 0;
	}
	
	.movie-votes {
		flex: 1;
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: center;
		gap: 0;
		background: var(--bg-main);
		border-radius: var(--radius-md);
		padding: 8px;
		height: fit-content;
	}
	
	.vote-btn {
		width: 44px;
		height: 44px;
		font-size: 16px;
		border-radius: var(--radius-md);
	}
	
	.vote-count {
		height: 44px;
		min-width: 60px;
		font-size: 16px;
		font-weight: 700;
	}
	
	.movie-header__content {
		width: 100%;
	}
	
	.movie-title { 
		font-size: 18px;
		line-height: 1.3;
		margin-bottom: 8px;
	}
	
	.movie-title-original {
		font-size: 12px;
		margin-bottom: 10px;
	}
	
	.movie-ratings {
		flex-wrap: wrap;
		gap: 8px;
		margin-bottom: 10px;
	}
	
	.rating-item {
		padding: 6px 10px;
	}
	
	.rating-item__label {
		font-size: 9px;
	}
	
	.rating-item__value {
		font-size: 16px;
	}
	
	.movie-tags {
		flex-wrap: wrap;
		gap: 6px;
		margin-bottom: 12px;
	}
	
	.movie-tag {
		font-size: 11px;
		padding: 5px 10px;
	}
	
	.movie-description {
		font-size: 13px;
		line-height: 1.6;
		margin-bottom: 12px;
	}
	
	.movie-details {
		gap: 8px;
	}
	
	.movie-detail {
		font-size: 12px;
		gap: 8px;
	}
	
	.movie-detail__label {
		min-width: 80px;
		font-size: 11px;
	}
	
	/* Player mobile */
	.player-section {
		margin-top: 16px;
	}
	
	.player-header {
		flex-direction: row;
		flex-wrap: wrap;
		padding: 10px;
		gap: 8px;
	}
	
	.player-tabs {
		order: 1;
		width: 100%;
		overflow-x: auto;
		gap: 6px;
		padding-bottom: 4px;
	}
	
	.player-tab {
		padding: 8px 16px;
		font-size: 13px;
		white-space: nowrap;
	}
	
	.player-container {
		min-height: 220px;
		aspect-ratio: 16/9;
	}
	
	.player-container iframe {
		width: 100%;
		height: 100%;
	}
	
	/* Comments */
	.comments-grid { 
		grid-template-columns: 1fr; 
		gap: 10px;
	}
	
	.comment {
		padding: 12px;
	}
}

@media (max-width: 768px) {
	.header__container { 
		padding: 0 12px; 
		gap: 10px; 
	}
	
	.logo__text { 
		font-size: 16px; 
	}
	
	.logo__icon {
		width: 32px;
		height: 32px;
		font-size: 12px;
	}
	
	/* Movie Cards */
	.movie-card { 
		flex-direction: row;
		gap: 12px;
		padding: 10px;
	}
	
	.movie-card__poster { 
		width: 90px;
		max-width: 90px;
		flex-shrink: 0;
	}
	
	.movie-card__info {
		flex: 1;
		min-width: 0;
		gap: 6px;
	}
	
	.movie-card__header {
		flex-wrap: wrap;
		gap: 6px;
	}
	
	.movie-card__title {
		font-size: 14px;
		line-height: 1.3;
	}
	
	.movie-card__rating {
		font-size: 11px;
		padding: 2px 6px;
	}
	
	.movie-card__meta {
		gap: 3px;
	}
	
	.movie-card__meta-row {
		font-size: 11px;
	}
	
	.btn-watch { 
		width: 100%;
		max-width: 100%;
		padding: 8px 12px;
		font-size: 12px;
		margin-top: auto;
	}
	
	/* Grid view */
	.movies-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 8px;
	}
	
	.movies-grid .movie-card {
		flex-direction: column;
		padding: 0;
	}
	
	.movies-grid .movie-card__poster {
		width: 100%;
		max-width: 100%;
	}
	
	.movies-grid .movie-card__info {
		padding: 8px;
	}
	
	.movies-grid .movie-card__title {
		font-size: 11px;
	}
	
	.movies-grid .movie-card__play-icon {
		width: 32px;
		height: 32px;
		font-size: 12px;
	}
	
	.movies-grid .movie-card__rating {
		font-size: 10px;
		padding: 2px 6px;
	}
	
	/* Full story */
	.movie-header {
		padding: 10px;
		gap: 12px;
	}
	
	.movie-poster {
		width: 110px;
	}
	
	.movie-title {
		font-size: 16px;
	}
	
	.movie-tags {
		gap: 4px;
	}
	
	.movie-tag {
		font-size: 10px;
		padding: 4px 8px;
	}
	
	/* Player */
	.player-container {
		min-height: 200px;
	}
	
	/* Section headers */
	.section-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
	
	.section-header__title {
		font-size: 16px;
	}
	
	.view-toggle {
		align-self: flex-end;
	}
}

@media (max-width: 480px) {
	.layout { 
		padding: 8px; 
	}
	
	.main__inner { 
		padding: 10px;
		border-radius: var(--radius-md);
	}
	
	.movies-grid { 
		grid-template-columns: repeat(2, 1fr); 
		gap: 6px; 
	}
	
	.movie-card__poster { 
		width: 80px;
		max-width: 80px;
	}
	
	.movie-card__title { 
		font-size: 13px;
	}
	
	.movie-poster {
		width: 100px;
	}
	
	.movie-title {
		font-size: 15px;
	}
	
	.vote-btn {
		width: 40px;
		height: 40px;
		font-size: 14px;
	}
	
	.vote-count {
		height: 40px;
		min-width: 50px;
		font-size: 14px;
	}
	
	.player-container {
		min-height: 180px;
	}
	
	.breadcrumbs {
		font-size: 11px;
		gap: 4px;
		flex-wrap: wrap;
	}
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: var(--bg-card-alt); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* DLE Modal Dialogs */
.ui-dialog.dle-popup-alert {
	background: var(--bg-card) !important;
	border: 1px solid var(--border) !important;
	border-radius: var(--radius-lg) !important;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
	padding: 0 !important;
	font-family: inherit !important;
}

.ui-dialog-titlebar {
	background: var(--bg-main) !important;
	border: none !important;
	border-bottom: 1px solid var(--border) !important;
	border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
	padding: 16px 20px !important;
	margin: 0 !important;
}

.ui-dialog-title {
	color: var(--text-white) !important;
	font-size: 16px !important;
	font-weight: 600 !important;
}

.ui-dialog-titlebar-close {
	background: transparent !important;
	border: none !important;
	color: var(--text-muted) !important;
	width: 32px !important;
	height: 32px !important;
	border-radius: var(--radius-md) !important;
	transition: all 0.3s ease !important;
	top: 12px !important;
	right: 12px !important;
}

.ui-dialog-titlebar-close:hover {
	background: rgba(239, 68, 68, 0.15) !important;
	color: #ef4444 !important;
}

.ui-dialog-titlebar-close .ui-button-icon {
	background: none !important;
	font-size: 14px !important;
}

.dle-alert.ui-dialog-content {
	padding: 20px !important;
	color: var(--text-secondary) !important;
	font-size: 14px !important;
	line-height: 1.6 !important;
	background: var(--bg-card) !important;
}

.ui-dialog-buttonpane {
	background: var(--bg-main) !important;
	border: none !important;
	border-top: 1px solid var(--border) !important;
	border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important;
	padding: 16px 20px !important;
	margin: 0 !important;
}

.ui-dialog-buttonset {
	text-align: right !important;
}

.ui-dialog-buttonset .ui-button {
	background: var(--accent) !important;
	color: white !important;
	border: none !important;
	padding: 10px 24px !important;
	border-radius: var(--radius-md) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	transition: all 0.3s ease !important;
	cursor: pointer !important;
}

.ui-dialog-buttonset .ui-button:hover {
	box-shadow: 0 0 25px var(--accent-glow) !important;
	transform: none !important;
}

.ui-widget-overlay {
	background: rgba(0, 0, 0, 0.7) !important;
	opacity: 1 !important;
}
