/* ==========================================================================
   Hirfia Cinema — main stylesheet
   Arabic-first (RTL) dark theme. Logical properties are used throughout so the
   same file also works when the site language is LTR.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
	color-scheme: dark;
	--c-bg-rgb: 8, 8, 11;
	--c-fg-rgb: 255, 255, 255;
	--c-on-red: #fff;
	--c-bg: #0a0a0f;
	--c-bg-soft: #0e0e14;
	--c-surface: #1a1a24;
	--c-surface-2: #20202b;
	--c-surface-3: #2b2b39;
	--c-line: #34344a;
	--c-line-soft: rgba(var(--c-fg-rgb), 0.07);
	--c-text: #f4f4f7;
	--c-text-2: #c9c9d4;
	--c-muted: #8d8d9e;
	--c-red: #e0162b;
	--c-red-hi: #ff2d43;
	--c-red-dark: #a80f1f;
	--c-gold: #f5b301;
	--c-green: #2bb673;

	--grad-red: linear-gradient(135deg, var(--c-red-hi) 0%, var(--c-red) 55%, var(--c-red-dark) 100%);
	--grad-card: linear-gradient(180deg, rgba(var(--c-fg-rgb), 0.04), rgba(255, 255, 255, 0));
	--shadow-1: 0 6px 24px rgba(0, 0, 0, 0.35);
	--shadow-2: 0 18px 48px rgba(0, 0, 0, 0.55);
	--shadow-red: 0 10px 30px rgba(224, 22, 43, 0.28);

	--radius-s: 8px;
	--radius: 12px;
	--radius-l: 18px;
	--container: 1280px;
	--gutter: 20px;
	--header-h: 72px;

	--font: "Cairo", "Cairo Fallback", "Noto Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.7;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body::before {
	content: "";
	position: fixed;
	inset-block-start: -30vh;
	inset-inline: 0;
	height: 70vh;
	background:
		radial-gradient(60% 60% at 50% 0%, rgba(224, 22, 43, 0.16), transparent 70%),
		radial-gradient(40% 40% at 80% 10%, rgba(90, 20, 160, 0.12), transparent 70%);
	pointer-events: none;
	z-index: 0;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--c-red-hi); }

h1, h2, h3, h4, h5 {
	margin: 0 0 0.5em;
	line-height: 1.35;
	font-weight: 800;
	letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

ul, ol { padding-inline-start: 1.2em; }
hr { border: 0; border-block-start: 1px solid var(--c-line); margin: 32px 0; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
	outline: 2px solid var(--c-red-hi);
	outline-offset: 3px;
	border-radius: 4px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	inset-block-start: -60px;
	inset-inline-start: 16px;
	z-index: 999;
	background: var(--c-red);
	color: #fff;
	padding: 10px 18px;
	border-radius: 0 0 var(--radius-s) var(--radius-s);
}
.skip-link:focus { inset-block-start: 0; color: #fff; }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.site-main { position: relative; z-index: 1; padding-block: 36px 64px; }
.site-main--flush { padding-block-start: 0; }

.section { margin-block-end: 48px; }
.section:last-child { margin-block-end: 0; }

.section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-block-end: 20px;
}
.section-title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-size: clamp(1.2rem, 1.8vw, 1.55rem);
}
.section-title::before {
	content: "";
	width: 5px;
	height: 26px;
	border-radius: 4px;
	background: var(--grad-red);
	box-shadow: 0 0 14px rgba(224, 22, 43, 0.6);
}
.section-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.9rem;
	color: var(--c-muted);
	font-weight: 600;
}
.section-more:hover { color: var(--c-red-hi); }
.section-more svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   4. Buttons, chips, badges
   -------------------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border: 0;
	border-radius: var(--radius-s);
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1;
	white-space: nowrap;
	transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }

.btn-primary {
	background: var(--grad-red);
	color: #fff;
	box-shadow: var(--shadow-red);
}
.btn-primary:hover { color: #fff; box-shadow: 0 14px 34px rgba(224, 22, 43, 0.42); }

.btn-glass {
	background: rgba(var(--c-fg-rgb), 0.08);
	color: var(--c-text);
	border: 1px solid rgba(var(--c-fg-rgb), 0.14);
	backdrop-filter: blur(8px);
}
.btn-glass:hover { background: rgba(var(--c-fg-rgb), 0.14); color: var(--c-text); }

.btn-ghost {
	background: transparent;
	color: var(--c-text-2);
	border: 1px solid var(--c-line);
}
.btn-ghost:hover { border-color: var(--c-red); color: var(--c-text); }

.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }

.chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--c-surface-2);
	border: 1px solid var(--c-line-soft);
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--c-text-2);
}
.chip--red {
	background: rgba(224, 22, 43, 0.14);
	border-color: rgba(224, 22, 43, 0.4);
	color: #ff8a97;
}
.chip--gold { color: var(--c-gold); border-color: rgba(245, 179, 1, 0.3); background: rgba(245, 179, 1, 0.08); }

.meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	color: var(--c-text-2);
	font-size: 0.92rem;
	font-weight: 600;
}
.meta-row .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--c-muted); }
.meta-row svg { width: 16px; height: 16px; opacity: 0.75; }

.rating {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--c-gold);
	font-weight: 800;
}
.rating svg { width: 16px; height: 16px; fill: currentColor; }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
	position: sticky;
	inset-block-start: 0;
	z-index: 60;
	background: rgba(var(--c-bg-rgb), 0.82);
	backdrop-filter: blur(14px) saturate(140%);
	border-block-end: 1px solid transparent;
	transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.site-header.is-stuck {
	background: rgba(var(--c-bg-rgb), 0.95);
	border-block-end-color: var(--c-line);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 22px;
	min-height: var(--header-h);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	font-size: 1.3rem;
	letter-spacing: -0.02em;
	color: var(--c-text);
	flex: 0 0 auto;
}
.brand:hover { color: var(--c-text); }
.brand-mark {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: var(--grad-red);
	box-shadow: var(--shadow-red);
}
.brand-mark svg { width: 20px; height: 20px; fill: #fff; }
.brand em { font-style: normal; color: var(--c-red-hi); }
.brand small {
	display: block;
	font-size: 0.62rem;
	font-weight: 600;
	color: var(--c-muted);
	letter-spacing: 0.02em;
	line-height: 1;
	margin-block-start: 2px;
}
.brand-text { display: flex; flex-direction: column; }

.main-nav { flex: 1 1 auto; }
.main-nav ul {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.main-nav a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 14px;
	border-radius: 999px;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--c-text-2);
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
	background: rgba(var(--c-fg-rgb), 0.06);
	color: #fff;
}
.main-nav .current-menu-item > a { color: var(--c-red-hi); }
.main-nav li { position: relative; }
.main-nav .sub-menu {
	position: absolute;
	inset-block-start: calc(100% + 8px);
	inset-inline-start: 0;
	min-width: 210px;
	padding: 8px;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-2);
	display: grid;
	gap: 2px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: all 0.18s var(--ease);
	z-index: 10;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { border-radius: 8px; padding: 8px 12px; }

.header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

.icon-btn {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--c-line);
	border-radius: 50%;
	background: rgba(var(--c-fg-rgb), 0.03);
	color: var(--c-text-2);
	transition: all 0.18s var(--ease);
}
.icon-btn:hover { color: var(--c-text); border-color: var(--c-red); background: rgba(224, 22, 43, 0.14); }
.icon-btn svg { width: 19px; height: 19px; }

.menu-toggle { display: none; }

/* search */
.search-panel {
	display: none;
	border-block-start: 1px solid var(--c-line);
	background: var(--c-bg-soft);
	padding-block: 14px;
}
.search-panel.is-open { display: block; }
.search-form {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: 999px;
	padding: 6px 8px 6px 18px;
	max-width: 720px;
	margin-inline: auto;
}
.search-form:focus-within { border-color: rgba(224, 22, 43, 0.6); box-shadow: 0 0 0 4px rgba(224, 22, 43, 0.12); }
.search-form input[type="search"] {
	flex: 1;
	background: transparent;
	border: 0;
	outline: 0;
	padding: 8px 6px;
	font-size: 0.95rem;
}
.search-form input::placeholder { color: var(--c-muted); }
.search-form button { flex: 0 0 auto; }

.search-suggest {
	max-width: 720px;
	margin: 10px auto 0;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	overflow: hidden;
	display: none;
}
.search-suggest.is-open { display: block; }
.search-suggest a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 12px;
	border-block-end: 1px solid var(--c-line-soft);
}
.search-suggest a:last-child { border-block-end: 0; }
.search-suggest img { width: 38px; height: 56px; object-fit: cover; border-radius: 6px; }
.search-suggest .s-title { font-weight: 700; font-size: 0.92rem; }
.search-suggest .s-sub { font-size: 0.78rem; color: var(--c-muted); }

/* mobile drawer */
.nav-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(2px);
	opacity: 0;
	visibility: hidden;
	transition: all 0.25s var(--ease);
	z-index: 70;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

@media (max-width: 1024px) {
	.main-nav {
		position: fixed;
		inset-block: 0;
		inset-inline-end: 0;
		width: min(86vw, 340px);
		background: var(--c-bg-soft);
		border-inline-start: 1px solid var(--c-line);
		padding: 88px 20px 32px;
		display: none;
		z-index: 80;
		overflow-y: auto;
	}
	.main-nav.is-open {
		display: block;
		animation: drawer-in 0.28s var(--ease);
	}
	@keyframes drawer-in {
		from { opacity: 0; transform: translateX(-24px); }
		to { opacity: 1; transform: none; }
	}
	.main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
	.main-nav a { padding: 13px 14px; border-radius: 10px; font-size: 1rem; }
	.main-nav .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		background: transparent;
		border: 0;
		box-shadow: none;
		padding-inline-start: 12px;
	}
	.menu-toggle { display: grid; }
	.header-actions .login-btn { display: none; }
}

/* --------------------------------------------------------------------------
   6. Hero slider
   -------------------------------------------------------------------------- */
.hero {
	position: relative;
	z-index: 1;
	margin-block-end: 42px;
}
.hero-viewport {
	position: relative;
	min-height: clamp(430px, 58vw, 640px);
	overflow: hidden;
}
.hero-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.hero-slide.is-active { position: relative; opacity: 1; visibility: visible; }
.hero-media { position: absolute; inset: 0; }
.hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 22%;
}
.hero-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to top, var(--c-bg) 0%, rgba(var(--c-bg-rgb), 0.72) 28%, rgba(var(--c-bg-rgb), 0.12) 66%, rgba(var(--c-bg-rgb), 0.3) 100%),
		linear-gradient(to left, rgba(var(--c-bg-rgb), 0.88) 0%, rgba(var(--c-bg-rgb), 0.42) 42%, transparent 78%);
}

.hero-content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: clamp(430px, 58vw, 640px);
	padding-block: 48px 56px;
	max-width: var(--container);
	margin-inline: auto;
}
.hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-block-end: 14px;
	align-self: flex-start;
}
.hero-title {
	font-size: clamp(1.9rem, 4.4vw, 3.4rem);
	font-weight: 800;
	line-height: 1.15;
	margin-block-end: 12px;
	max-width: 20ch;
	text-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.hero-title a { color: #fff; }
.hero-desc {
	color: var(--c-text-2);
	font-size: 0.98rem;
	max-width: 60ch;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-block: 12px 22px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-nav {
	position: absolute;
	inset-block-end: 22px;
	inset-inline: 0;
	margin-inline: auto;
	z-index: 3;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	pointer-events: none;
}
.hero-nav > * { pointer-events: auto; }
.hero-dots { display: flex; gap: 8px; }
.hero-dot {
	width: 26px;
	height: 4px;
	border-radius: 999px;
	border: 0;
	padding: 0;
	background: rgba(var(--c-fg-rgb), 0.28);
	transition: all 0.25s var(--ease);
}
.hero-dot.is-active { width: 44px; background: var(--c-red-hi); box-shadow: 0 0 12px rgba(255, 45, 67, 0.6); }
.hero-arrows { display: flex; gap: 8px; }
.hero-arrow {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid rgba(var(--c-fg-rgb), 0.18);
	background: rgba(var(--c-bg-rgb), 0.45);
	color: #fff;
	backdrop-filter: blur(6px);
}
.hero-arrow:hover { background: var(--c-red); border-color: var(--c-red); }
.hero-arrow svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   7. Movie grid + cards
   -------------------------------------------------------------------------- */
.movie-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
	gap: 22px 18px;
}
.movie-grid--wide { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }

.movie-card { position: relative; }
.movie-card .card-poster {
	position: relative;
	display: block;
	aspect-ratio: 2 / 3;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--c-surface-2);
	box-shadow: var(--shadow-1);
	transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.movie-card .card-poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--ease), filter 0.3s;
}
.movie-card .card-poster::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(var(--c-bg-rgb), 0.85), transparent 55%);
	opacity: 0;
	transition: opacity 0.28s var(--ease);
}
.movie-card:hover .card-poster { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(224, 22, 43, 0.5); }
.movie-card:hover .card-poster img { transform: scale(1.06); }
.movie-card:hover .card-poster::after { opacity: 1; }

.card-play {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-start: 50%;
	transform: translate(50%, -50%) scale(0.7);
	width: 52px;
	height: 52px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--grad-red);
	box-shadow: var(--shadow-red);
	opacity: 0;
	transition: all 0.28s var(--ease);
	z-index: 3;
}
[dir="ltr"] .card-play { transform: translate(-50%, -50%) scale(0.7); }
.movie-card:hover .card-play { opacity: 1; transform: translate(50%, -50%) scale(1); }
[dir="ltr"] .movie-card:hover .card-play { transform: translate(-50%, -50%) scale(1); }
.card-play svg { width: 20px; height: 20px; fill: #fff; }

.card-badges {
	position: absolute;
	inset-block-start: 8px;
	inset-inline: 8px;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 6px;
	z-index: 3;
}
.badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 8px;
	border-radius: 6px;
	font-size: 0.72rem;
	font-weight: 800;
	line-height: 1.5;
	backdrop-filter: blur(6px);
}
.badge-rating { background: rgba(var(--c-bg-rgb), 0.78); color: var(--c-gold); }
.badge-rating svg { width: 12px; height: 12px; fill: currentColor; }
.badge-quality { background: var(--grad-red); color: #fff; }
.badge-new { background: var(--c-green); color: #04140c; }

.card-body { padding-block-start: 10px; }
.card-title {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.card-title a { color: var(--c-text); }
.card-title a:hover { color: var(--c-red-hi); }
.card-sub {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-block-start: 4px;
	font-size: 0.78rem;
	color: var(--c-muted);
	font-weight: 600;
}
.card-sub .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--c-muted); }

/* horizontal scroll row */
.movie-row {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 176px;
	gap: 18px;
	overflow-x: auto;
	padding-block-end: 8px;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: var(--c-surface-3) transparent;
}
.movie-row > * { scroll-snap-align: start; }
.movie-row::-webkit-scrollbar { height: 6px; }
.movie-row::-webkit-scrollbar-thumb { background: var(--c-surface-3); border-radius: 999px; }

/* genre tiles */
.genre-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 12px;
}
.genre-tile {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 16px 18px;
	border-radius: var(--radius);
	background: var(--grad-card), var(--c-surface);
	border: 1px solid var(--c-line);
	font-weight: 700;
	overflow: hidden;
}
.genre-tile::before {
	content: "";
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 0;
	width: 100%;
	height: 2px;
	background: var(--grad-red);
	opacity: 0;
	transition: opacity 0.2s;
}
.genre-tile:hover { border-color: rgba(224, 22, 43, 0.45); color: var(--c-text); transform: translateY(-2px); }
.genre-tile:hover::before { opacity: 1; }
.genre-tile span { color: var(--c-muted); font-size: 0.8rem; font-weight: 600; }

/* --------------------------------------------------------------------------
   8. Filters bar
   -------------------------------------------------------------------------- */
.filters {
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-l);
	padding: 16px;
	margin-block-end: 26px;
}
.filters-form {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
	gap: 12px;
	align-items: end;
}
.field { display: grid; gap: 6px; }
.field label { font-size: 0.78rem; font-weight: 700; color: var(--c-muted); }
.field select,
.field input[type="search"],
.field input[type="text"] {
	width: 100%;
	padding: 11px 14px;
	background: var(--c-bg-soft);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-s);
	font-size: 0.9rem;
	color: var(--c-text);
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238d8d9e' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left 14px center;
	padding-inline-end: 14px;
	padding-inline-start: 34px;
}
.field select:focus, .field input:focus { outline: 0; border-color: rgba(224, 22, 43, 0.6); box-shadow: 0 0 0 3px rgba(224, 22, 43, 0.12); }
.filters-actions { display: flex; gap: 8px; }
.filters-result { margin-block-start: 12px; font-size: 0.85rem; color: var(--c-muted); }

.results-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-block-end: 18px;
	font-size: 0.9rem;
	color: var(--c-muted);
}
.results-bar strong { color: var(--c-text); }

.load-more-wrap { display: flex; justify-content: center; margin-block-start: 32px; }
.spinner {
	width: 18px; height: 18px;
	border: 2px solid rgba(255,255,255,0.25);
	border-block-start-color: #fff;
	border-radius: 50%;
	animation: spin 0.7s linear infinite;
	display: none;
}
.is-loading .spinner { display: inline-block; }
.is-loading .btn-label { opacity: 0.6; }
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
	text-align: center;
	padding: 70px 20px;
	border: 1px dashed var(--c-line);
	border-radius: var(--radius-l);
	color: var(--c-muted);
}
.empty-state svg { width: 46px; height: 46px; margin-block-end: 12px; opacity: 0.4; }

/* --------------------------------------------------------------------------
   9. Single movie
   -------------------------------------------------------------------------- */
.single-hero {
	position: relative;
	z-index: 1;
	padding-block: 40px 34px;
	overflow: hidden;
}
.single-hero-bg {
	position: absolute;
	inset: 0;
	z-index: -1;
}
.single-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: blur(2px); }
.single-hero-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to top, var(--c-bg) 4%, rgba(var(--c-bg-rgb), 0.9) 45%, rgba(var(--c-bg-rgb), 0.72) 100%),
		radial-gradient(80% 60% at 70% 0%, rgba(224, 22, 43, 0.18), transparent 70%);
}

.single-head {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 32px;
	align-items: end;
}
.single-poster {
	border-radius: var(--radius-l);
	overflow: hidden;
	box-shadow: var(--shadow-2), 0 0 0 1px rgba(var(--c-fg-rgb), 0.08);
	aspect-ratio: 2 / 3;
	background: var(--c-surface-2);
}
.single-poster img { width: 100%; height: 100%; object-fit: cover; }

.single-info h1 { margin-block-end: 10px; }
.single-original { color: var(--c-muted); font-size: 0.95rem; font-weight: 600; margin-block-end: 14px; }
.single-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 16px; }
.single-excerpt { color: var(--c-text-2); max-width: 72ch; margin-block-end: 20px; }
.single-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.score-box {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 14px;
	border-radius: var(--radius);
	background: rgba(245, 179, 1, 0.08);
	border: 1px solid rgba(245, 179, 1, 0.25);
}
.score-box svg { width: 22px; height: 22px; fill: var(--c-gold); }
.score-box b { font-size: 1.25rem; color: var(--c-gold); line-height: 1; }
.score-box span { font-size: 0.75rem; color: var(--c-muted); }

.single-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 30px;
	align-items: start;
}

.panel {
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-l);
	padding: 22px;
}
.panel + .panel { margin-block-start: 22px; }
.panel-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-block-end: 16px;
	font-size: 1.1rem;
}
.panel-title::before {
	content: "";
	width: 4px; height: 18px;
	border-radius: 4px;
	background: var(--grad-red);
	margin-inline-end: 8px;
}
.panel-title > span:first-child { display: flex; align-items: center; }

.player-wrap {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius);
	overflow: hidden;
	background-color: #000;
	background-size: cover;
	background-position: center;
	box-shadow: var(--shadow-2);
}
.player-wrap img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.player-facade {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.15));
	border: 0;
	width: 100%;
	color: #fff;
}
.player-facade .play-circle {
	width: 76px; height: 76px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--grad-red);
	box-shadow: 0 12px 40px rgba(224, 22, 43, 0.55);
	transition: transform 0.2s var(--ease);
}
.player-facade:hover .play-circle { transform: scale(1.08); }
.player-facade .play-circle svg { width: 28px; height: 28px; fill: #fff; margin-inline-start: 4px; }
.player-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.servers { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 14px; }
.server-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border-radius: var(--radius-s);
	background: var(--c-bg-soft);
	border: 1px solid var(--c-line);
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--c-text-2);
}
.server-btn:hover { border-color: var(--c-red); color: var(--c-text); background: rgba(224, 22, 43, 0.12); }
.server-btn svg { width: 15px; height: 15px; }

.tabs { display: flex; gap: 4px; border-block-end: 1px solid var(--c-line); margin-block-end: 18px; }
.tab {
	padding: 10px 16px;
	border: 0;
	background: transparent;
	color: var(--c-muted);
	font-weight: 700;
	font-size: 0.92rem;
	border-block-end: 2px solid transparent;
	margin-block-end: -1px;
}
.tab.is-active { color: var(--c-text); border-block-end-color: var(--c-red-hi); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.cast-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
	gap: 14px;
}
.cast-card {
	text-align: center;
	padding: 14px 8px;
	border-radius: var(--radius);
	background: var(--c-bg-soft);
	border: 1px solid var(--c-line);
}
.cast-avatar {
	width: 58px; height: 58px;
	border-radius: 50%;
	margin: 0 auto 10px;
	display: grid;
	place-items: center;
	font-weight: 800;
	font-size: 1.2rem;
	color: #fff;
	background: linear-gradient(135deg, #2a2a38, #17171f);
	border: 1px solid rgba(var(--c-fg-rgb), 0.08);
	box-shadow: inset 0 0 20px rgba(224, 22, 43, 0.18);
}
.cast-name { font-size: 0.86rem; font-weight: 700; line-height: 1.4; }
.cast-role { font-size: 0.75rem; color: var(--c-muted); }

.trailer-box { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.trailer-box img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.trailer-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.promo-box {
	position: relative;
	border-radius: var(--radius-l);
	overflow: hidden;
	padding: 24px;
	background:
		radial-gradient(120% 120% at 100% 0%, rgba(224, 22, 43, 0.4), transparent 60%),
		linear-gradient(135deg, #1b1b25, #101018);
	border: 1px solid rgba(224, 22, 43, 0.3);
}
.promo-box h3 { margin-block-end: 8px; }
.promo-box p { color: var(--c-text-2); font-size: 0.9rem; margin-block-end: 16px; }

.side-list { display: grid; gap: 12px; }
.side-list .movie-card { display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: center; }
.side-list .card-poster { aspect-ratio: 2/3; border-radius: 8px; }
.side-list .card-body { padding: 0; }
.side-list .card-title { font-size: 0.88rem; -webkit-line-clamp: 2; }
.side-list .card-play, .side-list .badge-quality { display: none; }
.side-list .badge { font-size: 0.65rem; padding: 2px 6px; }
.side-list .card-badges { inset-block-start: 4px; inset-inline: 4px; }

.info-list { display: grid; gap: 10px; margin: 0; }
.info-list div { display: flex; justify-content: space-between; gap: 12px; font-size: 0.88rem; border-block-end: 1px dashed var(--c-line); padding-block-end: 8px; }
.info-list dt { color: var(--c-muted); }
.info-list dd { margin: 0; font-weight: 700; text-align: end; }

.sticky-bottom-cta {
	position: fixed;
	inset-block-end: 0;
	inset-inline: 0;
	z-index: 55;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	background: rgba(var(--c-bg-rgb), 0.92);
	backdrop-filter: blur(10px);
	border-block-start: 1px solid var(--c-line);
	display: none;
	gap: 10px;
}
.sticky-bottom-cta .btn { flex: 1; }

/* --------------------------------------------------------------------------
   10. Content / archive headers
   -------------------------------------------------------------------------- */
.page-head { margin-block-end: 26px; }
.page-head h1 { margin-block-end: 8px; }
.page-head p { color: var(--c-muted); max-width: 70ch; margin: 0; }
.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: 0.82rem;
	color: var(--c-muted);
	margin-block-end: 14px;
}
.breadcrumbs a { color: var(--c-muted); }
.breadcrumbs a:hover { color: var(--c-red-hi); }
.breadcrumbs .sep { opacity: 0.5; }

.entry-content { color: var(--c-text-2); }
.entry-content > * + * { margin-block-start: 1em; }
.entry-content h2, .entry-content h3 { color: var(--c-text); margin-block-start: 1.6em; }
.entry-content a { color: var(--c-red-hi); text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote {
	margin: 1.5em 0;
	padding: 16px 20px;
	border-inline-start: 3px solid var(--c-red);
	background: var(--c-surface);
	border-radius: 0 var(--radius) var(--radius) 0;
}
.entry-content img { border-radius: var(--radius); }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4em; }
.entry-content li { margin-block-end: 0.4em; }

/* comments */
.comments-area { margin-block-start: 34px; }
.comment-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.comment-body { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 16px 18px; }
.comment-author { font-weight: 700; margin-block-end: 4px; }
.comment-metadata { font-size: 0.78rem; color: var(--c-muted); margin-block-end: 8px; }
.comment-form { display: grid; gap: 12px; margin-block-start: 20px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%;
	padding: 11px 14px;
	background: var(--c-bg-soft);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-s);
}
.comment-form .submit {
	justify-self: start;
	padding: 12px 24px;
	border: 0;
	border-radius: var(--radius-s);
	background: var(--grad-red);
	color: #fff;
	font-weight: 700;
}

/* pagination */
.pagination { margin-block-start: 34px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding-inline: 12px;
	border-radius: var(--radius-s);
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	font-weight: 700;
	font-size: 0.9rem;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--grad-red); border-color: transparent; color: #fff; }

/* --------------------------------------------------------------------------
   11. Ads + notices
   -------------------------------------------------------------------------- */
.ad-slot { margin-block: 26px; text-align: center; }
.ad-slot::before {
	content: "إعلان";
	display: block;
	font-size: 0.62rem;
	letter-spacing: 0.14em;
	color: var(--c-muted);
	opacity: 0.55;
	margin-block-end: 6px;
}
.ad-slot--bare::before { display: none; }
.ad-slot img, .ad-slot iframe { margin-inline: auto; }
.ad-slot--header { margin-block: 0 22px; }

.license-note {
	margin-block: 24px;
	padding: 10px 14px;
	border-radius: var(--radius-s);
	border: 1px dashed rgba(245, 179, 1, 0.4);
	background: rgba(245, 179, 1, 0.06);
	color: #e9c46a;
	font-size: 0.78rem;
	text-align: center;
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
	position: relative;
	z-index: 1;
	margin-block-start: 40px;
	padding-block: 48px 0;
	background: linear-gradient(to bottom, transparent, rgba(var(--c-fg-rgb), 0.02));
	border-block-start: 1px solid var(--c-line);
}
.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 32px;
	padding-block-end: 36px;
}
.footer-brand p { color: var(--c-muted); font-size: 0.9rem; margin-block: 14px 18px; max-width: 38ch; }
.footer-col h4 { font-size: 0.95rem; margin-block-end: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--c-muted); font-size: 0.88rem; }
.footer-col a:hover { color: var(--c-red-hi); }
.social-row { display: flex; gap: 8px; }
.social-row a {
	display: grid;
	place-items: center;
	width: 38px; height: 38px;
	border-radius: 10px;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	color: var(--c-text-2);
}
.social-row a:hover { background: var(--c-red); border-color: var(--c-red); color: #fff; }
.social-row svg { width: 17px; height: 17px; fill: currentColor; }

.footer-bottom {
	border-block-start: 1px solid var(--c-line);
	padding-block: 18px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 0.82rem;
	color: var(--c-muted);
}
.footer-bottom .sep { opacity: 0.4; }

/* back to top */
.to-top {
	position: fixed;
	inset-block-end: 22px;
	inset-inline-end: 22px;
	z-index: 50;
	width: 44px; height: 44px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--c-surface-2);
	border: 1px solid var(--c-line);
	color: var(--c-text-2);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.25s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--c-red); color: #fff; border-color: var(--c-red); }
.to-top svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   13. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
	.single-layout { grid-template-columns: minmax(0, 1fr); }
	.filters-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.filters-actions { grid-column: 1 / -1; }
	.filters-actions .btn { flex: 1; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.single-head { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 860px) {
	:root { --header-h: 64px; }
	.filters-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.filters-actions { grid-column: 1 / -1; }
	.filters-actions .btn { flex: 1; }
	.single-head { grid-template-columns: 132px minmax(0, 1fr); gap: 18px; align-items: start; }
	.single-poster { border-radius: var(--radius); }
	.single-info h1 { font-size: 1.5rem; }
	.single-excerpt { display: none; }
	.single-actions .btn { padding: 10px 16px; font-size: 0.88rem; }
	.hero-content { max-width: none; }
	.hero-desc { -webkit-line-clamp: 2; font-size: 0.9rem; }
	.sticky-bottom-cta { display: flex; }
	body { padding-block-end: 0; }
	.site-main { padding-block-end: 88px; }
	.to-top { inset-block-end: 84px; }
	.brand small { display: none; }
}

@media (max-width: 560px) {
	:root { --gutter: 14px; }
	.single-head { grid-template-columns: 108px minmax(0, 1fr); gap: 14px; }
	.single-info h1 { font-size: 1.25rem; margin-block-end: 6px; }
	.single-chips { gap: 6px; }
	.single-chips .chip { font-size: 0.72rem; padding: 4px 9px; }
	.single-actions { gap: 8px; }
	.single-actions .btn { padding: 9px 12px; font-size: 0.8rem; }
	.score-box { padding: 6px 10px; }
	.movie-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
	.movie-grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.card-title { font-size: 0.82rem; }
	.card-sub { font-size: 0.7rem; }
	.badge { font-size: 0.62rem; padding: 2px 6px; }
	.hero-viewport, .hero-content { min-height: 470px; }
	.hero-title { font-size: 1.7rem; }
	.hero-actions .btn { padding: 11px 16px; font-size: 0.88rem; }
	.section { margin-block-end: 34px; }
	.footer-grid { grid-template-columns: 1fr; gap: 26px; }
	.genre-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.panel { padding: 16px; border-radius: var(--radius); }
	.cast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   14. Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
	.hero-slide.is-active .hero-media img { transform: none; }
}

/* Cookie notice */
.c4a-cookie { position: fixed; inset-inline: 12px; bottom: 12px; z-index: 90; max-width: 560px; margin-inline: auto; background: var(--c-surface, #17171f); color: var(--c-text, #f2f2f5); border: 1px solid var(--c-border, #262632); border-radius: 14px; padding: 14px 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.c4a-cookie[hidden] { display: none; }
.c4a-cookie p { margin: 0; flex: 1 1 240px; font-size: 14px; }
.c4a-cookie a { text-decoration: underline; }
.c4a-cookie .btn { padding: 8px 16px; font-size: 14px; }
.social-row { flex-wrap: wrap; }

/* ribbon + paid labels */
.badge-ribbon, .badge-paid { position: absolute; top: 40px; inset-inline-start: 8px; z-index: 2; background: #f5b301; color: #111; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.badge-paid { top: auto; bottom: 8px; background: #111; color: #f5b301; border: 1px solid #f5b301; }

/* watch box: server button placement + downloads */
.watch-box { display: flex; flex-direction: column; }
.watch-box.layout-above .servers { order: -1; margin-block: 0 14px; }
.watch-box.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 14px; align-items: start; }
.watch-box.layout-side .servers { flex-direction: column; flex-wrap: nowrap; margin-block: 0; max-height: 100%; overflow-y: auto; }
.watch-box.layout-side .server-btn { width: 100%; justify-content: flex-start; }
@media (max-width: 760px) { .watch-box.layout-side { display: flex; flex-direction: column; } .watch-box.layout-side .player-wrap { width: 100%; } .watch-box.layout-side .servers { flex-direction: row; flex-wrap: wrap; margin-block-start: 14px; } .watch-box.layout-side .server-btn { width: auto; } }
.player-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.downloads { margin-block-start: 18px; padding-block-start: 14px; border-block-start: 1px solid var(--c-line, rgba(255,255,255,.1)); }
.downloads-title { font-size: 1rem; margin: 0 0 10px; }
.downloads-list { display: flex; flex-wrap: wrap; gap: 8px; }

/* episodes: season tabs + episode list */
.eps-ui { margin-block-start: 18px; padding-block-start: 14px; border-block-start: 1px solid var(--c-line); }
.season-tabs { display: flex; gap: 8px; overflow-x: auto; padding-block-end: 6px; }
.season-tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: var(--radius-s); background: var(--c-bg-soft); border: 1px solid var(--c-line); color: var(--c-text-2); font-size: 14px; cursor: pointer; }
.season-tab:hover { border-color: var(--c-red); color: var(--c-text); }
.season-tab.is-active { background: var(--c-red); border-color: var(--c-red); color: #fff; }
.season-count { font-size: 12px; opacity: .75; }
.ep-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.ep-list[hidden] { display: none; }
.ep-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-s); background: var(--c-surface); border: 1px solid transparent; color: var(--c-text-2); text-decoration: none; font-size: 14px; }
.ep-item:hover { background: var(--c-surface-2); color: var(--c-text); border-color: var(--c-line); }
.ep-item.is-active { border-color: var(--c-red); background: rgba(224, 22, 43, .1); color: var(--c-text); }
.ep-num { flex: 0 0 auto; min-width: 26px; text-align: center; font-size: 12px; font-weight: 700; color: var(--c-muted); }
.ep-item.is-active .ep-num { color: var(--c-red-hi); }
.ep-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-has { flex: 0 0 auto; display: inline-flex; color: var(--c-muted); }
.ep-has svg { width: 13px; height: 13px; }
@media (min-width: 761px) { .ep-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* lead actors */
.starring { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 16px; }
.star { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--c-text-2); }
.star-photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--c-surface-2); border: 1px solid var(--c-line); flex: 0 0 auto; }
.star-initial { display: grid; place-items: center; font-weight: 800; color: #fff; }
.cast-avatar--img { object-fit: cover; display: block; padding: 0; }
.starring { margin-block-end: 14px; }
@media (max-width: 560px) { .starring { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; } .star-name { font-size: 13px; line-height: 1.3; } }

.tmdb-credit { margin: 10px 0 0; font-size: 12px; color: var(--c-muted); text-align: center; }

/* card hover: calmer and more refined (no glow, small lift, soft fade) */
.movie-card .card-poster { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.movie-card:hover .card-poster { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(var(--c-fg-rgb), 0.14); }
.movie-card:hover .card-poster img { transform: scale(1.03); }
.movie-card .card-poster img { transition: transform 0.6s var(--ease), filter 0.3s; }
.movie-card .card-poster::after { background: linear-gradient(to top, rgba(var(--c-bg-rgb), 0.7), transparent 60%); transition: opacity 0.35s var(--ease); }
.card-play { width: 40px; height: 40px; background: rgba(12, 12, 17, 0.55); border: 1px solid rgba(var(--c-fg-rgb), 0.35); box-shadow: none; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transform: translate(50%, -50%) scale(0.92); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
[dir="ltr"] .card-play { transform: translate(-50%, -50%) scale(0.92); }
.card-play svg { width: 15px; height: 15px; }
.card-play svg, .card-play svg path { fill: #fff; stroke: none; }


/* ==========================================================================
   Theme toggle + light theme (client-side, cache safe)
   ========================================================================== */
.theme-toggle { width: auto; min-width: 42px; padding-inline: 12px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-family: inherit; font-size: 0.85rem; font-weight: 600; }
.theme-toggle .ti-moon { display: none; }
html[data-theme="light"] .theme-toggle .ti-sun { display: none; }
html[data-theme="light"] .theme-toggle .ti-moon { display: block; }
.theme-toggle .theme-label { display: none; }
@media (min-width: 1025px) { .theme-toggle .theme-label { display: inline; } }

html[data-theme="light"] {
	color-scheme: light;
	--c-bg-rgb: 243, 244, 248;
	--c-fg-rgb: 16, 18, 30;
	--c-bg: #f3f4f8;
	--c-bg-soft: #eaebf1;
	--c-surface: #ffffff;
	--c-surface-2: #f0f1f6;
	--c-surface-3: #e3e5ee;
	--c-line: #d6d8e3;
	--c-line-soft: rgba(16, 18, 30, 0.1);
	--c-text: #14161f;
	--c-text-2: #3a3d4d;
	--c-muted: #5d6075;
	--c-red: #c8102a;
	--c-red-hi: #e0162b;
	--c-red-dark: #930c1f;
	--c-gold: #a96f00;
	--c-green: #14804a;
	--grad-card: linear-gradient(180deg, rgba(16, 18, 30, 0.03), rgba(16, 18, 30, 0));
	--shadow-1: 0 6px 20px rgba(30, 34, 60, 0.12);
	--shadow-2: 0 18px 44px rgba(30, 34, 60, 0.2);
	--shadow-red: 0 10px 26px rgba(200, 16, 42, 0.25);
}
/* Hero areas sit on photos: keep them dark in both themes so text stays readable. */
html[data-theme="light"] .hero,
html[data-theme="light"] .single-hero {
	--c-bg-rgb: 8, 8, 11;
	--c-fg-rgb: 255, 255, 255;
	--c-bg: #0a0a0f;
	--c-text: #f4f4f7;
	--c-text-2: #d6d6df;
	--c-muted: #b4b4c4;
	--c-line: #3a3a48;
	--c-surface: #13131a;
	--c-surface-2: #1a1a23;
	--c-gold: #f5b301;
	--c-red: #e0162b;
	--c-red-hi: #ff2d43;
	--c-red-dark: #a80f1f;
	--c-line-soft: rgba(255, 255, 255, 0.12);
	color: var(--c-text);
}
html[data-theme="light"] .site-header { background: rgba(255, 255, 255, 0.86); }
html[data-theme="light"] .site-header.is-stuck { background: rgba(255, 255, 255, 0.96); box-shadow: 0 8px 24px rgba(30, 34, 60, 0.12); }
html[data-theme="light"] .chip--red { color: var(--c-red-dark); background: rgba(200, 16, 42, 0.08); border-color: rgba(200, 16, 42, 0.35); }
html[data-theme="light"] .license-note { color: #7a5200; background: rgba(169, 111, 0, 0.08); border-color: rgba(169, 111, 0, 0.4); }
html[data-theme="light"] .promo-box { background: radial-gradient(120% 120% at 100% 0%, rgba(224, 22, 43, 0.28), transparent 60%), linear-gradient(135deg, #2a2a38, #16161f); color: #f4f4f7; --c-text: #f4f4f7; --c-text-2: #d6d6df; --c-muted: #b4b4c4; }
html[data-theme="light"] .badge-rating { color: #fff; background: rgba(8, 8, 11, 0.78); }
html[data-theme="light"] .movie-card .card-poster::after { background: linear-gradient(to top, rgba(8, 8, 11, 0.55), transparent 60%); }
html[data-theme="light"] .card-play { background: rgba(12, 12, 17, 0.6); border-color: rgba(255, 255, 255, 0.5); }
html[data-theme="light"] .nav-backdrop { background: rgba(20, 22, 40, 0.45); }
html[data-theme="light"] .site-footer .brand-mark svg { fill: #fff; }
html[data-theme="light"] select,
html[data-theme="light"] .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235d6075' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
html[data-theme="light"] .c4a-cookie { box-shadow: 0 10px 30px rgba(30, 34, 60, 0.2); }
html[data-theme="light"] .ep-item.is-active,
html[data-theme="light"] .season-tab.is-active,
html[data-theme="light"] .tab.is-active { color: var(--c-text); }
html[data-theme="light"] .season-tab.is-active { color: #fff; }
html[data-theme="light"] .season-tab:hover { color: var(--c-text); }
html[data-theme="light"] .season-tab.is-active:hover { color: #fff; }
html[data-theme="light"] .pagination .page-numbers:hover { color: #fff; }
html[data-theme="light"] .social-row a:hover,
html[data-theme="light"] .to-top:hover { color: #fff; }


/* ==========================================================================
   Layered surfaces: page < panel < raised, each with a hairline edge
   ========================================================================== */
.panel, .filters, .genre-tile, .search-form, .search-suggest, .main-nav .sub-menu, .comment-body, .promo-box ~ .panel {
	background: var(--c-panel-grad), var(--c-surface);
	border: 1px solid var(--c-line);
	box-shadow: 0 1px 0 var(--c-edge) inset, var(--shadow-1);
}
.panel { border-radius: var(--radius-l); }
.single-poster { border: 1px solid var(--c-line); }
.season-tab, .server-btn, .chip { background: var(--c-surface-2); border-color: var(--c-line); }
.season-tab.is-active { background: var(--c-red); border-color: var(--c-red); }
.ep-item { background: var(--c-surface-2); border-color: var(--c-line-soft); }
.section { margin-block-end: 64px; position: relative; }
.section + .section::before { content: ""; position: absolute; inset-inline: 0; inset-block-start: -32px; height: 1px; background: var(--c-divider); pointer-events: none; }
.site-footer { margin-block-start: 64px; background: var(--c-panel-grad), var(--c-bg-soft); border-block-start: 1px solid var(--c-line); box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.25); }
html[data-theme="light"] {
	--c-edge: rgba(255, 255, 255, 0.9);
	--c-panel-grad: linear-gradient(180deg, rgba(255,255,255,1), rgba(246,247,251,1));
	--c-divider: linear-gradient(90deg, transparent, rgba(16,18,30,0.18), transparent);
	--c-line: #cfd2e0;
	--c-bg-soft: #e6e8f0;
}
html[data-theme="light"] .site-footer { box-shadow: 0 -12px 30px rgba(30, 34, 60, 0.08); }
html[data-theme="light"] .season-tab, html[data-theme="light"] .server-btn, html[data-theme="light"] .chip, html[data-theme="light"] .ep-item { background: #eef0f6; }
html[data-theme="light"] .season-tab.is-active { background: var(--c-red); }

/* ==========================================================================
   Card hover: small lift + scale, soft shadow, one light glint. transform/opacity only.
   ========================================================================== */
.movie-card .card-poster, .movie-card .card-poster img { transition: none; }
.movie-card .card-poster { transform: translateZ(0); transition: transform 0.22s var(--ease); box-shadow: var(--shadow-1); }
.movie-card::before { content: ""; position: absolute; inset-inline: 0; inset-block-start: 0; aspect-ratio: 2 / 3; border-radius: var(--radius); box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45); opacity: 0; transition: opacity 0.22s var(--ease), transform 0.22s var(--ease); pointer-events: none; }
html[data-theme="light"] .movie-card::before { box-shadow: 0 16px 28px rgba(30, 34, 60, 0.28); }
.movie-card .card-poster::before { content: ""; position: absolute; inset: -10% auto -10% -60%; width: 45%; z-index: 2; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.32), transparent); transform: translateX(0) skewX(-18deg); opacity: 0; }
[dir="rtl"] .movie-card .card-poster::before { inset: -10% -60% -10% auto; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.movie-card:hover .card-poster { transform: translateY(-5px) scale(1.025); box-shadow: var(--shadow-1); }
	.movie-card:hover::before { opacity: 1; transform: translateY(-5px) scale(1.025); }
	.movie-card:hover .card-poster img { transform: none; }
	.movie-card:hover .card-poster::before { animation: c4a-glint 0.42s var(--ease) 0.04s 1 both; }
}
@media (hover: hover) and (prefers-reduced-motion: reduce) {
	.movie-card:hover .card-poster { box-shadow: var(--shadow-1), 0 0 0 1px rgba(224, 22, 43, 0.5); }
}
@keyframes c4a-glint {
	0% { opacity: 0; transform: translateX(0) skewX(-18deg); }
	25% { opacity: 1; }
	100% { opacity: 0; transform: translateX(480%) skewX(-18deg); }
}
[dir="rtl"] .movie-card .card-poster::before { animation-name: none; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	[dir="rtl"] .movie-card:hover .card-poster::before { animation-name: c4a-glint-rtl; }
}
@keyframes c4a-glint-rtl {
	0% { opacity: 0; transform: translateX(0) skewX(18deg); }
	25% { opacity: 1; }
	100% { opacity: 0; transform: translateX(-480%) skewX(18deg); }
}

/* Chips on dark hero images: translucent glass, light text, both themes */
.single-hero .chip, .hero .chip { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.24); color: #e8e8f0; }
.single-hero .chip--red, .hero .chip--red { background: rgba(224, 22, 43, 0.22); border-color: rgba(255, 90, 106, 0.55); color: #ffc2c9; }
.single-hero .chip--gold, .hero .chip--gold { background: rgba(245, 179, 1, 0.16); border-color: rgba(245, 179, 1, 0.5); color: #ffd35a; }
.single-hero a.chip:hover, .hero a.chip:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }
html[data-theme="light"] .single-hero .chip, html[data-theme="light"] .hero .chip { background: rgba(255, 255, 255, 0.1); color: #e8e8f0; }
html[data-theme="light"] .single-hero .chip--red, html[data-theme="light"] .hero .chip--red { background: rgba(224, 22, 43, 0.22); color: #ffc2c9; border-color: rgba(255, 90, 106, 0.55); }
html[data-theme="light"] .single-hero .chip--gold, html[data-theme="light"] .hero .chip--gold { background: rgba(245, 179, 1, 0.16); color: #ffd35a; border-color: rgba(245, 179, 1, 0.5); }

/* Form focus states, both themes */
.comment-form input[type="text"]:focus, .comment-form input[type="email"]:focus, .comment-form input[type="url"]:focus, .comment-form textarea:focus,
.search-form input:focus, input[type="search"]:focus { outline: 0; border-color: var(--c-red); box-shadow: 0 0 0 3px rgba(224, 22, 43, 0.22); }

/* Mobile drawer fixes: the header's backdrop-filter made it the containing block of the
   fixed drawer (drawer was only header-high), and the backdrop sat above the drawer. */
.nav-close { display: none; }
@media (max-width: 1024px) {
	.site-header, .site-header.is-stuck { -webkit-backdrop-filter: none; backdrop-filter: none; }
	.site-header { background: rgba(var(--c-bg-rgb), 0.97); }
	.nav-backdrop { z-index: 55; backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(0, 0, 0, 0.6); }
	.main-nav { height: 100vh; height: 100dvh; max-height: none; z-index: 80; }
	.nav-close { display: grid; place-items: center; position: absolute; inset-block-start: 14px; inset-inline-end: 14px; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-text); cursor: pointer; }
	.nav-close svg { width: 20px; height: 20px; }
	html[data-theme="light"] .site-header { background: rgba(255, 255, 255, 0.97); }
}

@media (max-width: 1024px) {
	.admin-bar .main-nav { inset-block-start: 46px; height: calc(100vh - 46px); height: calc(100dvh - 46px); }
	.admin-bar .nav-backdrop { inset-block-start: 46px; }
}
@media (min-width: 783px) and (max-width: 1024px) {
	.admin-bar .main-nav { inset-block-start: 32px; height: calc(100vh - 32px); height: calc(100dvh - 32px); }
	.admin-bar .nav-backdrop { inset-block-start: 32px; }
}

/* Keep menu labels on one line (two-word labels wrapped at ~1025px) */
.main-nav a { white-space: nowrap; }
@media (min-width: 1025px) and (max-width: 1180px) {
	.main-nav a { padding-inline: 10px; }
	.site-header .btn-label, .theme-toggle .label { display: none; }
}

/* Language switcher */
.lang-switch { position: relative; }
.lang-toggle { width: auto; padding-inline: 10px; gap: 6px; display: inline-flex; align-items: center; }
.lang-code { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; }
.lang-menu { position: absolute; inset-block-start: calc(100% + 8px); inset-inline-end: 0; min-width: 160px; margin: 0; padding: 6px; list-style: none; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 12px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35); z-index: 90; }
.lang-menu[hidden] { display: none; }
.lang-menu-title { padding: 6px 10px; font-size: 0.72rem; color: var(--c-muted, #8b8fa3); }
.lang-menu a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--c-text); text-decoration: none; }
.lang-menu a:hover, .lang-menu a[aria-current="true"] { background: rgba(224, 22, 43, 0.12); color: var(--c-red-hi); }
@media (max-width: 480px) {
	.lang-toggle { padding-inline: 8px; }
	.lang-code { display: none; }
	.lang-toggle { width: 40px; justify-content: center; }
	.lang-switch { position: static; }
	.lang-menu { inset-block-start: calc(100% + 4px); inset-inline-end: 12px; inset-inline-start: auto; }
}

/* Narrow phones: four header buttons (search, language, theme, menu) must fit with the brand in any language */
@media (max-width: 420px) {
	.header-actions { gap: 6px; }
	.header-actions .icon-btn { width: 38px; height: 38px; }
	.lang-toggle { width: 38px; }
	.site-header .brand { min-width: 0; flex: 1 1 auto; }
	.site-header .brand-text { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
	.site-header .brand-text small { display: none; }
}

/* ==========================================================================
   Mobile drawer, designed panel (<=1024px). Desktop shows none of the extras.
   ========================================================================== */
.drawer-head, .drawer-foot, .nav-ico, .nav-chev, .nav-group-label { display: none; }
.drawer-scroll { display: contents; }

@media (max-width: 1024px) {
	.drawer-scroll { display: block; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 12px 16px; -webkit-overflow-scrolling: touch; }
	.main-nav {
		display: flex; flex-direction: column;
		padding: 0; overflow: hidden;
		width: min(88vw, 360px);
		background: var(--c-bg-soft);
		border-inline-start: 1px solid var(--c-line);
		box-shadow: -24px 0 60px rgba(0, 0, 0, 0.45);
		visibility: hidden;
		transform: translateX(105%);
		transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.34s;
		animation: none;
	}
	html[dir="rtl"] .main-nav { transform: translateX(-105%); box-shadow: 24px 0 60px rgba(0, 0, 0, 0.45); }
	html[dir="rtl"] .main-nav.is-open { transform: none; }
	.main-nav.is-open { display: flex; visibility: visible; transform: none; transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s; animation: none; }
	.nav-backdrop { display: block; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s linear 0.3s; }
	.nav-backdrop[hidden] { display: none; }
	.nav-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity 0.3s ease, visibility 0s; }

	/* top row */
	.drawer-head { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; padding: 14px 16px; border-bottom: 1px solid var(--c-line-soft); }
	.drawer-brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 auto; color: var(--c-text); text-decoration: none; }
	.drawer-brand .brand-mark { width: 40px; height: 40px; flex: 0 0 auto; }
	.drawer-brand .brand-text { min-width: 0; font-weight: 800; font-size: 1.02rem; line-height: 1.2; }
	.drawer-brand .brand-text small { display: block; font-size: 0.72rem; font-weight: 500; color: var(--c-muted); margin-top: 2px; }
	.nav-close { position: static; flex: 0 0 auto; width: 44px; height: 44px; margin: 0; border-radius: 12px; }

	/* groups + links */
	.main-nav ul { gap: 2px; margin: 0; padding: 0; list-style: none; }
	.nav-group-label { display: block; padding: 16px 10px 6px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted); }
	.main-nav .menu > li > a, .main-nav .menu a {
		display: flex; align-items: center; gap: 12px;
		min-height: 48px; padding: 6px 10px; border-radius: 12px;
		font-size: 0.94rem; font-weight: 600; line-height: 1.3; color: var(--c-text-2);
		white-space: normal;
	}
	.nav-label { flex: 1 1 auto; min-width: 0; }
	.nav-ico { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; background: rgba(var(--c-fg-rgb), 0.06); color: var(--c-muted); transition: background 0.2s, color 0.2s; }
	.nav-chev { display: grid; flex: 0 0 auto; color: var(--c-muted); opacity: 0.6; }
	html[dir="rtl"] .nav-chev svg { transform: scaleX(-1); }
	.main-nav .menu a:hover, .main-nav .menu a:focus-visible { background: rgba(var(--c-fg-rgb), 0.06); color: var(--c-text); }
	.main-nav .current-menu-item > a, .main-nav .current_page_item > a { background: rgba(224, 22, 43, 0.12); color: var(--c-text); }
	.main-nav .current-menu-item > a .nav-ico, .main-nav .current_page_item > a .nav-ico { background: var(--c-red); color: #fff; }
	.main-nav .current-menu-item > a .nav-chev { color: var(--c-red-hi); opacity: 1; }
	.main-nav .sub-menu { padding-inline-start: 22px; }

	/* pinned foot */
	.drawer-foot { display: flex; flex-direction: column; gap: 12px; flex: 0 0 auto; padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--c-line-soft); background: var(--c-surface); }
	.drawer-tools { display: flex; align-items: stretch; gap: 8px; }
	.drawer-lang { display: inline-flex; flex: 1 1 auto; padding: 3px; gap: 2px; border: 1px solid var(--c-line-soft); border-radius: 12px; background: rgba(var(--c-fg-rgb), 0.04); }
	.drawer-lang a { flex: 1 1 0; display: grid; place-items: center; min-height: 40px; padding: 0 10px; border-radius: 9px; font-size: 0.85rem; font-weight: 600; color: var(--c-text-2); text-decoration: none; }
	.drawer-lang a[aria-current="true"] { background: var(--c-surface-3, rgba(var(--c-fg-rgb), 0.1)); color: var(--c-text); box-shadow: inset 0 0 0 1px var(--c-line); }
	.drawer-theme { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 14px; border: 1px solid var(--c-line-soft); border-radius: 12px; background: rgba(var(--c-fg-rgb), 0.04); color: var(--c-text-2); font-size: 0.85rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
	.drawer-theme .ti-moon { display: none; }
	html[data-theme="light"] .drawer-theme .ti-sun { display: none; }
	html[data-theme="light"] .drawer-theme .ti-moon { display: inline-flex; }
	.drawer-theme .ti-sun { display: inline-flex; }
	.drawer-theme .ti-moon { display: none; }
	html[data-theme="light"] .drawer-theme .ti-moon { display: inline-flex; }
	.main-nav .drawer-cta, .main-nav .drawer-cta:hover { color: #fff; padding: 0 16px; }
	.main-nav .drawer-social a, .main-nav .drawer-mail, .main-nav .drawer-lang a { padding: 0; }
	.main-nav .drawer-lang a { padding: 0 10px; }
	.main-nav .drawer-social a svg { width: 16px; height: 16px; flex: 0 0 auto; }
	.drawer-cta { width: 100%; min-height: 48px; justify-content: center; gap: 8px; border-radius: 12px; font-weight: 700; }
	.drawer-contact { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; }
	.drawer-mail { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.8rem; color: var(--c-muted); text-decoration: none; }
	.drawer-social { display: inline-flex; gap: 6px; margin-inline-start: auto; }
	.drawer-social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--c-line-soft); color: var(--c-text-2); }
	.drawer-copy { margin: 0; text-align: center; font-size: 0.7rem; color: var(--c-muted); }

	/* light theme: white panel, tinted foot, hairlines */
	html[data-theme="light"] .main-nav { background: #fff; border-inline-start-color: #dcdfea; box-shadow: -20px 0 50px rgba(30, 34, 60, 0.18); }
	html[dir="rtl"][data-theme="light"] .main-nav { box-shadow: 20px 0 50px rgba(30, 34, 60, 0.18); }
	html[data-theme="light"] .drawer-head { background: #fff; border-bottom-color: #e6e8f0; }
	html[data-theme="light"] .drawer-foot { background: #f6f7fb; border-top-color: #e6e8f0; }
	html[data-theme="light"] .nav-ico { background: #eef0f6; color: #5d6075; }
	html[data-theme="light"] .drawer-lang, html[data-theme="light"] .drawer-theme, html[data-theme="light"] .drawer-social a { background: #fff; border-color: #dcdfea; }
	html[data-theme="light"] .drawer-lang a[aria-current="true"] { background: #eef0f6; }
	html[data-theme="light"] .main-nav .current-menu-item > a, html[data-theme="light"] .main-nav .current_page_item > a { background: rgba(200, 16, 42, 0.08); }
	html[data-theme="light"] .main-nav .menu a:hover { background: #f1f2f8; }
	html[data-theme="light"] .nav-close { background: #fff; border-color: #dcdfea; }

	@media (prefers-reduced-motion: reduce) {
		.main-nav, .main-nav.is-open, .nav-backdrop, .nav-backdrop.is-open { transition: none; }
	}
}
@media (max-width: 1024px) and (max-height: 700px) {
	.drawer-head { padding-block: 10px; }
	.drawer-foot { gap: 8px; padding-block: 10px; }
	.drawer-copy { display: none; }
}

@media (max-width: 1024px) { .drawer-tools .drawer-theme:only-child { flex: 1 1 auto; } }
