/* LORDFILM 2025 WHITE - Modern Clean Light Theme
   Elegant design without gradients
   ================================================== */

:root {
	/* Colors - Clean White Theme */
	--bg-primary: #ffffff;
	--bg-secondary: #f8f9fb;
	--bg-tertiary: #f0f2f5;
	--bg-card: #ffffff;
	--bg-card-hover: #fafbfc;
	
	/* Text Colors */
	--text-primary: #0f172a;
	--text-secondary: #475569;
	--text-muted: #94a3b8;
	--text-light: #cbd5e1;
	
	/* Accent Colors */
	--accent: #ec4899;
	--accent-hover: #db2777;
	--accent-light: #dbeafe;
	--accent-soft: #eff6ff;
	
	/* Secondary Accent */
	--secondary: #8b5cf6;
	--secondary-light: #ede9fe;
	
	/* Status Colors */
	--success: #10b981;
	--success-light: #d1fae5;
	--warning: #f59e0b;
	--warning-light: #fef3c7;
	--error: #ef4444;
	--error-light: #fee2e2;
	
	/* Ratings */
	--kp-color: #ff6b00;
	--imdb-color: #f5c518;
	
	/* Borders */
	--border: #e2e8f0;
	--border-light: #f1f5f9;
	--border-hover: #cbd5e1;
	
	/* Shadows */
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
	--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
	--shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
	--shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.1);
	--shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
	--shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
	
	/* Spacing & Radius */
	--radius-xs: 4px;
	--radius-sm: 6px;
	--radius-md: 10px;
	--radius-lg: 14px;
	--radius-xl: 20px;
	--radius-full: 9999px;
	
	/* Transitions */
	--transition-fast: 0.15s ease;
	--transition: 0.2s ease;
	--transition-slow: 0.3s ease;
	
	/* Typography */
	--font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ========================================
   RESET & BASE
   ======================================== */

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

html {
	scroll-behavior: smooth;
	-webkit-tap-highlight-color: transparent;
}

body {
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.6;
	color: var(--text-primary);
	background: var(--bg-secondary);
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

body.menu-open {
	overflow: hidden;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color var(--transition);
}

ul, ol {
	list-style: none;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

button {
	font-family: inherit;
	cursor: pointer;
	border: none;
	background: transparent;
}

input, textarea, select {
	font-family: inherit;
	font-size: inherit;
}

.hidden {
	display: none !important;
}

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

.container {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 24px;
}

@media (max-width: 768px) {
	.container {
		padding: 0 16px;
	}
}

.app {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.main {
	flex: 1;
	padding: 32px 0;
}

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

.header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-bottom: 1px solid var(--border);
	transition: all var(--transition);
}

.header.scrolled {
	box-shadow: var(--shadow-md);
}

.header__inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 24px;
	height: 70px;
	display: flex;
	align-items: center;
	gap: 40px;
}

/* Logo */
.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
	text-decoration: none;
}

.logo__icon {
	width: 42px;
	height: 42px;
	background: var(--accent);
	border-radius: var(--radius-md);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	transition: transform var(--transition), box-shadow var(--transition);
}

.logo__icon svg {
	width: 20px;
	height: 20px;
}

.logo:hover .logo__icon {
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

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

.logo__text span {
	color: var(--accent);
}

/* Navigation */
.nav {
	display: flex;
	align-items: center;
	gap: 4px;
}

.nav__item {
	position: relative;
}

.nav__link {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 600;
	color: var(--text-secondary);
	border-radius: var(--radius-md);
	transition: all var(--transition);
}

.nav__link:hover {
	color: var(--text-primary);
	background: var(--bg-tertiary);
}

.nav__link i {
	font-size: 10px;
	opacity: 0.5;
	transition: transform var(--transition);
}

.nav__item:hover .nav__link i {
	transform: rotate(180deg);
}

/* Dropdown */
.nav__dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	padding-top: 8px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all var(--transition);
	z-index: 100;
}

.nav__item:hover .nav__dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nav__dropdown-inner {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 12px;
	display: flex;
	gap: 4px;
	box-shadow: var(--shadow-lg);
}

.nav__dropdown--years .nav__dropdown-inner {
	min-width: 180px;
}

.nav__dropdown--years .nav__dropdown-col {
	min-width: 70px;
}

.nav__dropdown--genres .nav__dropdown-inner,
.nav__dropdown--countries .nav__dropdown-inner {
	min-width: 450px;
}

.nav__dropdown-col {
	min-width: 140px;
	flex: 1;
}

.nav__dropdown a {
	display: block;
	padding: 10px 14px;
	font-size: 14px;
	font-weight: 500;
	color: var(--text-secondary);
	border-radius: var(--radius-sm);
	white-space: nowrap;
	transition: all var(--transition);
}

.nav__dropdown a:hover {
	color: var(--accent);
	background: var(--accent-soft);
}

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

.search-field {
	position: relative;
	display: flex;
	align-items: center;
}

.search-field__icon {
	position: absolute;
	left: 18px;
	width: 18px;
	height: 18px;
	color: var(--text-muted);
	pointer-events: none;
}

.search-field input {
	width: 100%;
	height: 48px;
	background: var(--bg-tertiary);
	border: 2px solid transparent;
	border-radius: var(--radius-full);
	padding: 0 52px 0 48px;
	color: var(--text-primary);
	font-size: 14px;
	font-weight: 500;
	transition: all var(--transition);
}

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

.search-field input:focus {
	outline: none;
	background: var(--bg-card);
	border-color: var(--accent);
	box-shadow: 0 0 0 4px var(--accent-light);
}

.search-btn {
	position: absolute;
	right: 6px;
	width: 36px;
	height: 36px;
	background: var(--accent);
	border-radius: var(--radius-full);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	transition: all var(--transition);
}

.search-btn svg {
	width: 16px;
	height: 16px;
}

.search-btn:hover {
	background: var(--accent-hover);
	transform: scale(1.05);
}

/* Burger */
.header__burger {
	display: none;
	width: 40px;
	height: 40px;
	position: relative;
	z-index: 1001;
	border-radius: var(--radius-md);
	transition: background var(--transition);
}

.header__burger:hover {
	background: var(--bg-tertiary);
}

.header__burger span,
.header__burger span::before,
.header__burger span::after {
	position: absolute;
	width: 20px;
	height: 2px;
	background: var(--text-primary);
	border-radius: 2px;
	transition: all var(--transition);
}

.header__burger span {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.header__burger span::before,
.header__burger span::after {
	content: '';
	left: 0;
}

.header__burger span::before {
	top: -7px;
}

.header__burger span::after {
	top: 7px;
}

.header__burger.active span {
	background: transparent;
}

.header__burger.active span::before {
	top: 0;
	transform: rotate(45deg);
}

.header__burger.active span::after {
	top: 0;
	transform: rotate(-45deg);
}

/* Hide burger when menu is open on mobile - close button inside nav is used instead */
@media (max-width: 1024px) {
	.header__burger.active {
		display: none;
	}
}

/* Telegram Button */
.header-tg-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	background: #0088cc;
	color: white;
	border-radius: var(--radius-full);
	font-size: 14px;
	font-weight: 600;
	transition: all var(--transition);
	flex-shrink: 0;
}

.header-tg-btn:hover {
	background: #0077b5;
	color: white;
}

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

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

/* ========================================
   SECTIONS
   ======================================== */

.section {
	margin-bottom: 48px;
}

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

.section__title {
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.5px;
	color: var(--text-primary);
	position: relative;
}

.section__title::after {
	content: '';
	position: absolute;
	bottom: -8px;
	left: 0;
	width: 48px;
	height: 4px;
	background: var(--accent);
	border-radius: 2px;
}

.section__link {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--accent);
	padding: 10px 20px;
	background: var(--accent-soft);
	border-radius: var(--radius-full);
	transition: all var(--transition);
}

.section__link:hover {
	background: var(--accent);
	color: white;
}

.section__link i {
	transition: transform var(--transition);
}

.section__link:hover i {
	transform: translateX(4px);
}

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

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

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

/* Card */
.card {
	position: relative;
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-card);
	transition: all var(--transition-slow);
	opacity: 0;
	transform: translateY(20px);
}

.card.visible {
	opacity: 1;
	transform: translateY(0);
	animation: cardReveal 0.5s ease forwards;
}

@keyframes cardReveal {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

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

.card__link {
	display: block;
}

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

.card__poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-slow);
}

.card:hover .card__poster img {
	transform: scale(1.05);
}

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

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

.card__play-icon {
	width: 56px;
	height: 56px;
	background: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--accent);
	font-size: 20px;
	padding-left: 4px;
	box-shadow: var(--shadow-lg);
	transform: scale(0.8);
	transition: transform var(--transition);
}

.card:hover .card__play-icon {
	transform: scale(1);
}

.card__badge {
	position: absolute;
	padding: 5px 8px;
	color: white;
	font-size: 10px;
	font-weight: 700;
	border-radius: var(--radius-xs);
	letter-spacing: 0.3px;
	max-width: calc(100% - 16px);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.card__badge--season {
	top: 8px;
	left: 8px;
	background: var(--accent);
}

.card__badge--quality {
	bottom: 8px;
	left: 8px;
	background: rgba(0, 0, 0, 0.75);
	text-transform: uppercase;
}

.card__info {
	padding: 16px;
}

.card__title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 8px;
	color: var(--text-primary);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

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

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

.card__rating {
	display: flex;
	align-items: center;
	gap: 4px;
	font-weight: 600;
}

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

.card__rating--kp::before {
	content: 'KP';
	font-size: 9px;
	font-weight: 800;
	opacity: 0.7;
}

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

.card__rating--imdb::before {
	content: 'IMDb';
	font-size: 9px;
	font-weight: 800;
	opacity: 0.7;
}

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

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

.breadcrumbs a {
	color: var(--text-secondary);
	font-weight: 500;
}

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

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

.pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 40px;
}

.pagination a,
.pagination span {
	min-width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 14px;
	font-size: 14px;
	font-weight: 600;
	border-radius: var(--radius-md);
	background: var(--bg-card);
	color: var(--text-secondary);
	box-shadow: var(--shadow-sm);
	transition: all var(--transition);
}

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

.pagination span:not(.nav_ext) {
	background: var(--accent);
	color: white;
}

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

.load-more {
	display: flex;
	justify-content: center;
	margin-bottom: 24px;
}

.load-more a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 40px;
	background: var(--bg-card);
	border: 2px solid var(--border);
	border-radius: var(--radius-full);
	font-size: 15px;
	font-weight: 600;
	color: var(--text-primary);
	transition: all var(--transition);
}

.load-more a:hover {
	border-color: var(--accent);
	color: var(--accent);
	background: var(--accent-soft);
}

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

.footer {
	background: var(--bg-card);
	border-top: 1px solid var(--border);
	padding: 24px 0;
	margin-top: auto;
}

.footer__simple {
	text-align: center;
}

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

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

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 28px;
	font-size: 15px;
	font-weight: 600;
	border-radius: var(--radius-md);
	transition: all var(--transition);
}

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

.btn--primary:hover {
	background: var(--accent-hover);
	color: white;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

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

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

.btn--accent {
	background: var(--accent);
	color: white;
	padding: 12px 24px;
}

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

/* ========================================
   ALERTS & NOTIFICATIONS
   ======================================== */

.alert {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-left: 4px solid var(--accent);
	border-radius: var(--radius-md);
	padding: 20px;
	margin-bottom: 24px;
}

.alert--success {
	border-left-color: var(--success);
	background: var(--success-light);
}

.alert--error {
	border-left-color: var(--error);
	background: var(--error-light);
}

.alert__icon {
	font-size: 20px;
	color: var(--accent);
}

.alert--success .alert__icon {
	color: var(--success);
}

.alert--error .alert__icon {
	color: var(--error);
}

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

/* ========================================
   SEARCH PAGE
   ======================================== */

.search-form-box {
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	padding: 28px;
	margin-bottom: 24px;
	box-shadow: var(--shadow-card);
}

.search-form-box input[type="text"] {
	width: 100%;
	height: 52px;
	background: var(--bg-tertiary);
	border: 2px solid transparent;
	border-radius: var(--radius-md);
	padding: 0 20px;
	color: var(--text-primary);
	font-size: 15px;
	transition: all var(--transition);
}

.search-form-box input[type="text"]:focus {
	border-color: var(--accent);
	background: var(--bg-card);
	outline: none;
}

.search-form-box input[type="submit"] {
	height: 52px;
	padding: 0 32px;
	background: var(--accent);
	border: none;
	border-radius: var(--radius-md);
	color: white;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all var(--transition);
}

.search-form-box input[type="submit"]:hover {
	background: var(--accent-hover);
}

/* Searchtable - DLE search form */
#searchtable {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

#searchtable form {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

#searchtable table {
	width: 100%;
}

#searchtable td {
	padding: 8px 0;
}

#searchtable select {
	width: 100%;
	height: 48px;
	background: var(--bg-tertiary);
	border: 2px solid transparent;
	border-radius: var(--radius-md);
	padding: 0 16px;
	color: var(--text-primary);
	font-size: 14px;
	cursor: pointer;
	transition: all var(--transition);
}

#searchtable select:focus {
	border-color: var(--accent);
	outline: none;
}

#searchtable .bb {
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 8px;
	display: block;
}

#searchtable input[type="radio"],
#searchtable input[type="checkbox"] {
	margin-right: 8px;
	accent-color: var(--accent);
}

#searchtable label {
	display: inline-flex;
	align-items: center;
	margin-right: 16px;
	color: var(--text-secondary);
	cursor: pointer;
}

/* Search buttons */
#searchtable input[type="submit"],
#searchtable input[type="button"],
#searchtable .btn,
#searchtable button {
	height: 48px;
	padding: 0 24px;
	background: var(--accent);
	border: none;
	border-radius: var(--radius-md);
	color: white;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all var(--transition);
}

#searchtable input[type="submit"]:hover,
#searchtable input[type="button"]:hover,
#searchtable .btn:hover,
#searchtable button:hover {
	background: var(--accent-hover);
}

/* Hide advanced search button */
#searchtable input[value="Расширенный поиск"],
#searchtable a[href*="search"][href*="advanced"],
#searchtable .doeadvanced,
#searchtable input[onclick*="doadvanced"],
#searchtable input[name="dosearch"][value*="асширенн"] {
	display: none !important;
}

/* Search page layout - form full width, cards in grid */
.search-results-wrap {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

@media (min-width: 768px) {
	.search-results-wrap {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
	}
}

@media (min-width: 1024px) {
	.search-results-wrap {
		grid-template-columns: repeat(4, 1fr);
		gap: 24px;
	}
}

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

/* Search form and messages span full width */
.search-form-box,
.search-info-msg,
.search-results-wrap > form {
	grid-column: 1 / -1;
	margin-bottom: 24px;
}

/* Search Suggestions */
#searchsuggestions {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-lg);
	margin-top: 8px;
	overflow: hidden;
}

#searchsuggestions a {
	display: block;
	padding: 14px 18px;
	color: var(--text-secondary);
	border-bottom: 1px solid var(--border);
	transition: all var(--transition);
}

#searchsuggestions a:last-child {
	border-bottom: none;
}

#searchsuggestions a:hover {
	background: var(--accent-soft);
	color: var(--accent);
}

/* ========================================
   LOADING STATES
   ======================================== */

.loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 60px 20px;
	color: var(--text-muted);
	font-size: 14px;
}

.loading i {
	font-size: 24px;
	color: var(--accent);
	animation: spin 1s linear infinite;
}

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

/* Not Found */
.not-found {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 80px 20px;
	text-align: center;
}

.not-found i {
	font-size: 64px;
	color: var(--text-light);
	margin-bottom: 24px;
}

.not-found p {
	font-size: 18px;
	color: var(--text-secondary);
}

/* ========================================
   LAZY IMAGES
   ======================================== */

.lazy-img {
	opacity: 0;
	transition: opacity 0.4s ease;
}

.lazy-img.lazy-loaded {
	opacity: 1;
}

/* Skeleton loading */
.card__poster {
	position: relative;
	background: var(--bg-tertiary);
}

.card__poster::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		var(--bg-tertiary) 0%,
		var(--bg-secondary) 50%,
		var(--bg-tertiary) 100%
	);
	background-size: 200% 100%;
	animation: shimmer 1.5s infinite;
}

.card__poster:has(.lazy-loaded)::before {
	display: none;
}

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

/* ========================================
   SCROLLBAR
   ======================================== */

::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

::-webkit-scrollbar-track {
	background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
	background: var(--border-hover);
	border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--text-muted);
}

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

@media (max-width: 1024px) {
	.header {
		position: sticky;
		top: 0;
		z-index: 1002;
	}
	
	.header__inner {
		padding: 0 16px;
		gap: 12px;
		flex-wrap: nowrap;
	}
	
	/* Hide search in header on mobile - it's in the sidebar menu */
	.header__search {
		display: none !important;
	}
	
	.nav {
		position: fixed !important;
		top: 0 !important;
		right: 0 !important;
		left: auto !important;
		width: 85% !important;
		max-width: 340px !important;
		height: 100vh !important;
		height: 100dvh !important;
		background: var(--bg-card) !important;
		display: flex !important;
		flex-direction: column !important;
		padding: 60px 16px 30px !important;
		gap: 0 !important;
		z-index: 1000 !important;
		overflow-y: auto !important;
		overflow-x: hidden !important;
		-webkit-overflow-scrolling: touch;
		box-shadow: -10px 0 40px rgba(0,0,0,0.15) !important;
		transform: translateX(100%);
		transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
		visibility: hidden;
		overscroll-behavior: contain;
	}
	
	.nav * {
		max-width: 100%;
		box-sizing: border-box;
	}
	
	.nav.active {
		transform: translateX(0);
		visibility: visible;
	}
	
	/* Close button for mobile menu */
	.nav__close {
		position: absolute;
		top: 12px;
		right: 12px;
		width: 40px;
		height: 40px;
		display: flex;
		align-items: center;
		justify-content: center;
		background: var(--bg-tertiary);
		border: none;
		border-radius: 50%;
		color: var(--text-primary);
		font-size: 18px;
		cursor: pointer;
		transition: all 0.2s;
		z-index: 10;
		flex-shrink: 0;
	}
	
	.nav__close:hover {
		background: var(--accent);
		color: white;
	}
	
	/* Overlay when menu is open */
	body.menu-open::before {
		content: '';
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0,0,0,0.5);
		z-index: 999;
		backdrop-filter: blur(2px);
	}
	
	body.menu-open {
		overflow: hidden;
		position: fixed;
		width: 100%;
		height: 100%;
	}
	
	/* Mobile search styling */
	.nav__search-mobile {
		margin-bottom: 24px;
		padding-bottom: 20px;
		border-bottom: 1px solid var(--border);
		width: 100%;
		flex-shrink: 0;
	}
	
	.nav__search-box {
		display: flex;
		align-items: center;
		gap: 10px;
		background: var(--bg-tertiary);
		border-radius: var(--radius-lg);
		padding: 12px 14px;
		border: 1px solid var(--border);
		width: 100%;
	}
	
	.nav__search-box i {
		color: var(--text-muted);
		font-size: 16px;
		flex-shrink: 0;
	}
	
	.nav__search-box input {
		flex: 1;
		background: transparent;
		border: none;
		color: var(--text-primary);
		font-size: 15px;
		min-width: 0;
	}
	
	.nav__search-box input::placeholder {
		color: var(--text-muted);
	}
	
	.nav__search-box button {
		width: 38px;
		height: 38px;
		background: var(--accent);
		color: white;
		border: none;
		border-radius: var(--radius-md);
		display: flex;
		align-items: center;
		justify-content: center;
		cursor: pointer;
		flex-shrink: 0;
		transition: background 0.2s;
	}
	
	.nav__search-box button:hover {
		background: var(--accent-hover);
	}
	
	/* Menu items */
	.nav__item {
		border-bottom: 1px solid var(--border);
		width: 100%;
	}
	
	.nav__link {
		display: flex;
		align-items: center;
		justify-content: space-between;
		font-size: 15px;
		font-weight: 600;
		padding: 16px 0;
		color: var(--text-primary);
		width: 100%;
	}
	
	.nav__link .fa-chevron-down {
		font-size: 12px;
		color: var(--text-muted);
		transition: transform 0.3s ease;
	}
	
	.nav__item.open .nav__link .fa-chevron-down {
		transform: rotate(180deg);
		color: var(--accent);
	}
	
	.nav__item.open .nav__link {
		color: var(--accent);
	}
	
	/* Dropdown */
	.nav__dropdown {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		padding: 0;
		display: none;
		width: 100%;
	}
	
	.nav__item.open .nav__dropdown {
		display: block;
	}
	
	/* Reset desktop min-widths for mobile */
	.nav__dropdown--years .nav__dropdown-inner,
	.nav__dropdown--genres .nav__dropdown-inner,
	.nav__dropdown--countries .nav__dropdown-inner {
		min-width: 0 !important;
	}
	
	.nav__dropdown-inner {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		padding: 0 0 16px 0;
		border: none;
		box-shadow: none;
		background: transparent;
		width: 100%;
		min-width: 0;
	}
	
	.nav__dropdown-col {
		display: contents;
		min-width: 0 !important;
	}
	
	.nav__dropdown a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		padding: 10px 16px;
		font-size: 13px;
		font-weight: 500;
		border-radius: var(--radius-full);
		background: var(--bg-tertiary);
		color: var(--text-secondary);
		border: 1px solid var(--border);
		transition: all 0.2s;
		white-space: nowrap;
		flex-shrink: 0;
	}
	
	.nav__dropdown a:hover,
	.nav__dropdown a:active {
		background: var(--accent);
		color: white;
		border-color: var(--accent);
	}
	
	.header__burger {
		display: flex;
		align-items: center;
		justify-content: center;
		order: 3;
		position: relative;
		z-index: 1003;
	}
	
	.logo {
		flex: 1;
	}
	
	.header-tg-btn {
		order: 2;
	}
	
	.header-tg-btn .tg-btn-text {
		display: none;
	}
	
}

/* Hide mobile-only elements on desktop */
@media (min-width: 1025px) {
	.nav__search-mobile,
	.nav__close {
		display: none !important;
	}
}

@media (max-width: 768px) {
	.main {
		padding: 24px 0;
	}
	
	.section {
		margin-bottom: 36px;
	}
	
	.section__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}
	
	.section__title {
		font-size: 22px;
	}
	
	.cards-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 12px;
	}
	
	.card__info {
		padding: 12px;
	}
	
	.card__title {
		font-size: 13px;
	}
	
	.card__meta {
		font-size: 11px;
	}
	
}

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

/* ========================================
   UTILITIES
   ======================================== */

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }

/* SEO Block */
.seo-block {
	margin-top: 40px;
	padding: 28px;
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
	font-size: 14px;
	line-height: 1.8;
	color: var(--text-secondary);
}

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

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

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

/* ========================================
   DLE SPECIFIC STYLES
   ======================================== */

/* DLE Push Notifications */
.DLEPush {
	position: fixed;
	z-index: 99999;
	max-width: 400px;
}

.DLEPush.top-right {
	top: 90px;
	right: 20px;
}

.DLEPush-notification.wrapper {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: 18px;
	margin-bottom: 10px;
	box-shadow: var(--shadow-lg);
	animation: slideIn 0.3s ease;
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateX(50px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.DLEPush-notification.push-error {
	border-color: var(--error);
	background: var(--error-light);
}

.DLEPush-notification.push-success {
	border-color: var(--success);
	background: var(--success-light);
}

.DLEPush-header {
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 4px;
}

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

.DLEPush-close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg-tertiary);
	border: none;
	border-radius: var(--radius-sm);
	font-size: 18px;
	color: var(--text-muted);
	cursor: pointer;
	transition: all var(--transition);
}

.DLEPush-close:hover {
	background: var(--error-light);
	color: var(--error);
}

.DLEPush-icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--accent-soft);
	color: var(--accent);
	border-radius: var(--radius-md);
}

.DLEPush-notification.push-error .DLEPush-icon {
	background: var(--error-light);
	color: var(--error);
}

.DLEPush-notification.push-success .DLEPush-icon {
	background: var(--success-light);
	color: var(--success);
}

/* DLE Dialog */
.ui-dialog {
	background: var(--bg-card) !important;
	border: 1px solid var(--border) !important;
	border-radius: var(--radius-lg) !important;
	box-shadow: var(--shadow-xl) !important;
	padding: 0 !important;
}

.ui-dialog-titlebar {
	background: var(--bg-secondary) !important;
	border-bottom: 1px solid var(--border) !important;
	padding: 18px 24px !important;
	border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
}

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

.ui-dialog-content {
	padding: 24px !important;
	color: var(--text-secondary) !important;
}

.ui-dialog-buttonpane {
	background: var(--bg-secondary) !important;
	border-top: 1px solid var(--border) !important;
	padding: 18px 24px !important;
}

.ui-dialog-buttonpane button {
	background: var(--accent) !important;
	color: white !important;
	border: none !important;
	padding: 12px 24px !important;
	border-radius: var(--radius-md) !important;
	font-weight: 600 !important;
	cursor: pointer !important;
}

/* Loading Layer */
#loading-layer {
	background: rgba(255, 255, 255, 0.9) !important;
}

#loading-layer span {
	background: var(--bg-card) !important;
	color: var(--text-primary) !important;
	border-radius: var(--radius-md) !important;
	padding: 20px 30px !important;
	box-shadow: var(--shadow-lg) !important;
}

