/* =========================================================
   ArabSeed MOV — الهوية السينمائية الداكنة (RTL / Mobile-first)
   الألوان: أسود داكن، رمادي سينمائي، أحمر قوي، أبيض للنصوص
   ========================================================= */

:root {
	--asc-bg: #0b0d13;
	--asc-bg-2: #10131c;
	--asc-surface: #161a26;
	--asc-surface-2: #1d2231;
	--asc-border: #262c3d;
	--asc-red: #e8352e;
	--asc-red-2: #b31217;
	--asc-red-soft: rgba(232, 53, 46, 0.14);
	--asc-text: #f2f4f8;
	--asc-text-2: #9aa3b5;
	--asc-radius: 14px;
	--asc-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
	--asc-header-h: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background:
		radial-gradient(1200px 500px at 85% -10%, rgba(232, 53, 46, 0.08), transparent 60%),
		var(--asc-bg);
	color: var(--asc-text);
	font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	direction: rtl;
	text-align: right;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--asc-text); text-decoration: none; }
a:hover { color: #ffffff; }

.asc-container {
	width: 100%;
	max-width: 1240px;
	margin-inline: auto;
	padding-inline: 16px;
}

.asc-main { min-height: 60vh; padding-top: var(--asc-header-h); }
.asc-page { padding-block: 26px 50px; }
.asc-accent { color: var(--asc-red); }
.asc-muted { color: var(--asc-text-2); }

:focus-visible {
	outline: 2px solid var(--asc-red);
	outline-offset: 2px;
	border-radius: 6px;
}

/* ---------- الهيدر ---------- */

.asc-header {
	position: fixed;
	inset-inline: 0;
	top: 0;
	z-index: 90;
	height: var(--asc-header-h);
	background: rgba(11, 13, 19, 0.82);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--asc-border);
}

.asc-header__inner {
	height: 100%;
	display: flex;
	align-items: center;
	gap: 14px;
}

/* ---------- اللوجو (أيقونة 3D + نص) ---------- */

.asc-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-inline-start: 2px;
}

.asc-logo__icon {
	width: 40px;
	height: 40px;
	flex: 0 0 auto;
	filter: drop-shadow(0 6px 12px rgba(232, 53, 46, 0.35)) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6));
	transition: transform 0.25s ease;
}

.asc-logo:hover .asc-logo__icon { transform: translateY(-1px) scale(1.05); }

.asc-logo__icon svg { width: 100%; height: 100%; }

.asc-logo__text {
	font-weight: 900;
	font-size: 21px;
	letter-spacing: 0.3px;
	color: #ffffff;
	direction: ltr;
	white-space: nowrap;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.asc-logo__text b {
	color: var(--asc-red);
	font-weight: 900;
	text-shadow: 0 0 14px rgba(232, 53, 46, 0.55);
}

.asc-logo--small .asc-logo__icon { width: 32px; height: 32px; }
.asc-logo--small .asc-logo__text { font-size: 17px; }

/* ---------- القائمة ---------- */

.asc-nav { margin-inline-start: 6px; }

.asc-nav-list {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
}

.asc-nav-list a {
	display: block;
	padding: 8px 13px;
	border-radius: 10px;
	color: var(--asc-text-2);
	font-weight: 700;
	font-size: 15px;
	transition: color 0.2s ease, background 0.2s ease;
}

.asc-nav-list a:hover,
.asc-nav-list .current-menu-item > a {
	color: #ffffff;
	background: var(--asc-red-soft);
}

.asc-search-toggle {
	margin-inline-start: auto;
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	background: var(--asc-surface);
	border: 1px solid var(--asc-border);
	border-radius: 12px;
	color: var(--asc-text);
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.asc-search-toggle:hover { border-color: var(--asc-red); color: var(--asc-red); }

.asc-burger {
	display: none;
	width: 42px;
	height: 42px;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	background: var(--asc-surface);
	border: 1px solid var(--asc-border);
	border-radius: 12px;
	cursor: pointer;
	padding: 0;
}

.asc-burger span {
	width: 18px;
	height: 2px;
	background: var(--asc-text);
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- طبقة البحث ---------- */

.asc-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 120;
	background: rgba(7, 9, 14, 0.92);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	display: grid;
	place-items: start center;
	padding: 14vh 16px 0;
}

.asc-search-overlay[hidden] { display: none; }

.asc-search-overlay__box {
	width: 100%;
	max-width: 640px;
	position: relative;
	text-align: center;
}

.asc-search-overlay__brand { display: inline-flex; margin-bottom: 22px; }

.asc-search-overlay__close {
	position: absolute;
	top: -6px;
	inset-inline-start: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--asc-border);
	background: var(--asc-surface);
	color: var(--asc-text);
	font-size: 15px;
	cursor: pointer;
}

/* ---------- نماذج البحث ---------- */

.asc-search-form {
	display: flex;
	gap: 8px;
	background: var(--asc-surface);
	border: 1px solid var(--asc-border);
	border-radius: 16px;
	padding: 8px;
	box-shadow: var(--asc-shadow);
}

.asc-search-form input[type="search"] {
	flex: 1;
	min-width: 0;
	background: transparent;
	border: 0;
	color: var(--asc-text);
	font-family: inherit;
	font-size: 16px;
	padding: 10px 12px;
	direction: rtl;
	text-align: right;
}

.asc-search-form input[type="search"]::placeholder { color: var(--asc-text-2); }
.asc-search-form input[type="search"]:focus { outline: none; }

.asc-search-form button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 0;
	border-radius: 12px;
	padding: 10px 22px;
	font-family: inherit;
	font-weight: 800;
	font-size: 15px;
	color: #ffffff;
	background: linear-gradient(135deg, var(--asc-red), var(--asc-red-2));
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(232, 53, 46, 0.35);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.asc-search-form button:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 24px rgba(232, 53, 46, 0.45);
}

.asc-search-form--page { max-width: 560px; margin-block: 18px 30px; }

/* ---------- الهيرو ---------- */

.asc-hero {
	position: relative;
	padding: 64px 0 54px;
	overflow: hidden;
	border-bottom: 1px solid var(--asc-border);
	background:
		linear-gradient(180deg, rgba(11, 13, 19, 0) 0%, var(--asc-bg) 100%),
		linear-gradient(120deg, #12151f 0%, #0b0d13 60%);
}

.asc-hero__glow {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(560px 280px at 20% 0%, rgba(232, 53, 46, 0.16), transparent 65%),
		radial-gradient(480px 240px at 85% 100%, rgba(120, 130, 160, 0.10), transparent 60%);
	pointer-events: none;
}

.asc-hero__inner { position: relative; max-width: 780px; text-align: center; }

.asc-hero__title {
	margin: 0 0 10px;
	font-size: clamp(26px, 5.4vw, 44px);
	font-weight: 900;
	line-height: 1.35;
}

.asc-hero__subtitle {
	margin: 0 auto 26px;
	max-width: 520px;
	color: var(--asc-text-2);
	font-size: clamp(14px, 2.6vw, 17px);
}

/* ---------- الأقسام ---------- */

.asc-section { padding-block: 30px; }

.asc-section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}

.asc-section__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: clamp(19px, 3.4vw, 24px);
	font-weight: 800;
}

.asc-section__mark {
	width: 5px;
	height: 24px;
	border-radius: 4px;
	background: linear-gradient(180deg, var(--asc-red), var(--asc-red-2));
	box-shadow: 0 0 12px rgba(232, 53, 46, 0.6);
}

.asc-section__more {
	color: var(--asc-text-2);
	font-weight: 700;
	font-size: 14px;
	white-space: nowrap;
}

.asc-section__more:hover { color: var(--asc-red); }

/* ---------- شبكة الكروت ---------- */

.asc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 14px;
}

.asc-card__link { display: block; }

.asc-card__poster {
	position: relative;
	aspect-ratio: 2 / 3;
	border-radius: var(--asc-radius);
	overflow: hidden;
	background: var(--asc-surface);
	border: 1px solid var(--asc-border);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.asc-card:hover .asc-card__poster {
	transform: translateY(-4px);
	border-color: rgba(232, 53, 46, 0.6);
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(232, 53, 46, 0.25);
}

.asc-card:hover .asc-card__poster img { transform: scale(1.06); }

.asc-card__hover {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: linear-gradient(180deg, rgba(11, 13, 19, 0.15), rgba(11, 13, 19, 0.85));
	color: #ffffff;
	font-weight: 700;
	font-size: 13px;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.asc-card:hover .asc-card__hover { opacity: 1; }

.asc-card__hover-icon {
	width: 46px;
	height: 46px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	font-size: 15px;
	padding-inline-start: 3px;
	background: linear-gradient(135deg, var(--asc-red), var(--asc-red-2));
	box-shadow: 0 8px 20px rgba(232, 53, 46, 0.5), inset 0 2px 3px rgba(255, 255, 255, 0.35);
}

.asc-card__title {
	margin: 9px 2px 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--asc-text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

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

/* ---------- الشارات ---------- */

.asc-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 9px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 800;
	background: rgba(16, 19, 28, 0.85);
	border: 1px solid var(--asc-border);
	color: var(--asc-text);
	backdrop-filter: blur(4px);
}

.asc-card__poster .asc-badge { position: absolute; top: 8px; }
.asc-card__poster .asc-badge--rating { inset-inline-start: 8px; }
.asc-card__poster .asc-badge--year { inset-inline-end: 8px; }

.asc-card__poster .asc-badge--seasons {
	top: auto;
	bottom: 8px;
	inset-inline-start: 8px;
}

.asc-badge--rating { color: #ffd166; border-color: rgba(255, 209, 102, 0.35); }
.asc-badge--imdb { color: #f5c518; border-color: rgba(245, 197, 24, 0.4); }
.asc-badge--year { color: var(--asc-red); border-color: rgba(232, 53, 46, 0.45); }

/* ---------- صفحة التفاصيل ---------- */

.asc-single-hero {
	position: relative;
	background-size: cover;
	background-position: center 20%;
	background-color: var(--asc-bg-2);
}

.asc-single-hero__scrim {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(11, 13, 19, 0.75) 0%, rgba(11, 13, 19, 0.88) 55%, var(--asc-bg) 100%),
		linear-gradient(90deg, rgba(11, 13, 19, 0.55), rgba(11, 13, 19, 0.25));
}

.asc-single-hero__inner { position: relative; padding: 26px 16px 34px; }

.asc-single-head {
	display: grid;
	grid-template-columns: minmax(120px, 170px) 1fr;
	gap: 18px;
	align-items: start;
	margin-top: 10px;
}

.asc-single-head__poster img {
	width: 100%;
	border-radius: var(--asc-radius);
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: var(--asc-shadow);
}

.asc-single-title {
	margin: 0 0 4px;
	font-size: clamp(22px, 4.6vw, 38px);
	font-weight: 900;
	line-height: 1.35;
}

.asc-single-original {
	margin: 0 0 12px;
	color: var(--asc-text-2);
	font-size: 15px;
	text-align: right;
}

.asc-meta-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.asc-single-overview {
	margin: 0 0 16px;
	max-width: 720px;
	color: #d5dae4;
	font-size: 15.5px;
}

.asc-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 10px 18px;
	margin: 0;
}

.asc-facts > div {
	background: rgba(16, 19, 28, 0.6);
	border: 1px solid var(--asc-border);
	border-radius: 12px;
	padding: 10px 12px;
}

.asc-facts dt {
	color: var(--asc-text-2);
	font-size: 12.5px;
	font-weight: 700;
	margin-bottom: 4px;
}

.asc-facts dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }

.asc-chip {
	display: inline-block;
	padding: 3px 11px;
	border-radius: 999px;
	background: var(--asc-surface-2);
	border: 1px solid var(--asc-border);
	color: var(--asc-text);
	font-size: 13px;
	font-weight: 700;
	transition: border-color 0.2s ease, color 0.2s ease;
}

a.asc-chip:hover { border-color: var(--asc-red); color: var(--asc-red); }

.asc-chip--cast { background: var(--asc-surface); }

.asc-single-body { padding-block: 30px 50px; }

.asc-block { margin-bottom: 36px; }
.asc-block .asc-section__title { margin-bottom: 16px; }

.asc-cast { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- المحتوى العربي الخاص ---------- */

.asc-editorial {
	max-width: 860px;
	margin-bottom: 36px;
}

.asc-editorial__block { margin-bottom: 22px; }

.asc-editorial h2 {
	font-size: 20px;
	font-weight: 800;
	margin: 0 0 8px;
	padding-inline-start: 12px;
	border-inline-start: 4px solid var(--asc-red);
	border-radius: 2px;
}

.asc-editorial p { margin: 0 0 10px; color: #dde1ea; }

.asc-editorial__block--panel,
.asc-editorial__block--verdict {
	background: var(--asc-surface);
	border: 1px solid var(--asc-border);
	border-radius: var(--asc-radius);
	padding: 16px 18px;
}

.asc-editorial__block--verdict {
	border-color: rgba(232, 53, 46, 0.45);
	background: linear-gradient(135deg, var(--asc-red-soft), var(--asc-surface) 55%);
}

/* ---------- التريلر ---------- */

.asc-trailer {
	position: relative;
	max-width: 860px;
	aspect-ratio: 16 / 9;
	border-radius: var(--asc-radius);
	overflow: hidden;
	background: #000000;
	border: 1px solid var(--asc-border);
	box-shadow: var(--asc-shadow);
}

.asc-trailer iframe { width: 100%; height: 100%; border: 0; }

.asc-trailer__play {
	position: absolute;
	inset: 0;
	width: 100%;
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 0;
}

.asc-trailer__play img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.75;
}

.asc-trailer__icon {
	position: absolute;
	top: 50%;
	right: 50%;
	transform: translate(50%, -50%);
	width: 72px;
	height: 72px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	color: #ffffff;
	font-size: 24px;
	padding-inline-start: 5px;
	background: linear-gradient(135deg, var(--asc-red), var(--asc-red-2));
	box-shadow: 0 12px 30px rgba(232, 53, 46, 0.55), inset 0 3px 4px rgba(255, 255, 255, 0.35);
	transition: transform 0.2s ease;
}

.asc-trailer__play:hover .asc-trailer__icon { transform: translate(50%, -50%) scale(1.08); }

/* ---------- مسار التصفح / العناوين / الترقيم ---------- */

.asc-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	color: var(--asc-text-2);
	margin-bottom: 8px;
}

.asc-breadcrumbs a { color: var(--asc-text-2); }
.asc-breadcrumbs a:hover { color: var(--asc-red); }
.asc-breadcrumbs__current { color: var(--asc-text); font-weight: 700; }

.asc-page-title {
	font-size: clamp(22px, 4.4vw, 32px);
	font-weight: 900;
	margin: 6px 0 18px;
}

.asc-archive-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 22px;
}

.asc-sort-tabs { display: flex; gap: 6px; flex-wrap: wrap; }

.asc-sort-tabs a {
	padding: 7px 15px;
	border-radius: 999px;
	border: 1px solid var(--asc-border);
	background: var(--asc-surface);
	color: var(--asc-text-2);
	font-size: 13.5px;
	font-weight: 700;
}

.asc-sort-tabs a.is-active,
.asc-sort-tabs a:hover {
	color: #ffffff;
	border-color: var(--asc-red);
	background: var(--asc-red-soft);
}

.asc-pagination { margin-top: 30px; }

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

.asc-pagination .page-numbers {
	min-width: 40px;
	padding: 8px 12px;
	text-align: center;
	border-radius: 10px;
	border: 1px solid var(--asc-border);
	background: var(--asc-surface);
	color: var(--asc-text-2);
	font-weight: 700;
}

.asc-pagination .page-numbers.current,
.asc-pagination .page-numbers:hover {
	color: #ffffff;
	border-color: var(--asc-red);
	background: var(--asc-red-soft);
}

.asc-empty {
	padding: 40px 16px;
	text-align: center;
	color: var(--asc-text-2);
	background: var(--asc-surface);
	border: 1px dashed var(--asc-border);
	border-radius: var(--asc-radius);
}

.asc-loading { text-align: center; color: var(--asc-text-2); padding: 20px; }

/* ---------- الفوتر ---------- */

.asc-footer {
	margin-top: 40px;
	border-top: 1px solid var(--asc-border);
	background: var(--asc-bg-2);
}

.asc-footer__inner {
	display: grid;
	gap: 22px;
	padding-block: 34px 24px;
}

.asc-footer__brand p {
	max-width: 460px;
	color: var(--asc-text-2);
	font-size: 14px;
	margin: 12px 0 0;
}

.asc-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	align-content: start;
}

.asc-footer__links a { color: var(--asc-text-2); font-size: 14px; font-weight: 700; }
.asc-footer__links a:hover { color: var(--asc-red); }

.asc-footer__bottom {
	border-top: 1px solid var(--asc-border);
	padding-block: 14px;
}

.asc-footer__bottom p {
	margin: 0;
	color: #6d7688;
	font-size: 12.5px;
}

/* ---------- الصفحات الثابتة ---------- */

.asc-static-content {
	background: var(--asc-surface);
	border: 1px solid var(--asc-border);
	border-radius: var(--asc-radius);
	padding: 22px;
}

/* ---------- استجابة الشاشات ---------- */

@media (min-width: 768px) {
	.asc-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
	.asc-single-head { grid-template-columns: 220px 1fr; gap: 28px; }
	.asc-single-hero__inner { padding: 36px 16px 46px; }
	.asc-footer__inner { grid-template-columns: 1.4fr 1fr; }
}

@media (max-width: 860px) {
	.asc-burger { display: inline-flex; }

	.asc-nav {
		position: fixed;
		top: var(--asc-header-h);
		inset-inline: 0;
		background: rgba(11, 13, 19, 0.98);
		border-bottom: 1px solid var(--asc-border);
		transform: translateY(-8px);
		opacity: 0;
		visibility: hidden;
		transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s;
	}

	.asc-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }

	.asc-nav-list { flex-direction: column; align-items: stretch; padding: 10px 14px 16px; gap: 2px; }
	.asc-nav-list a { padding: 12px 14px; font-size: 16px; }
}

@media (max-width: 480px) {
	.asc-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.asc-grid--similar { grid-template-columns: repeat(2, 1fr); }
	.asc-logo__text { font-size: 18px; }
	.asc-search-form--hero { flex-direction: column; }
	.asc-search-form--hero button { justify-content: center; }
	.asc-single-head { grid-template-columns: 130px 1fr; }
	.asc-facts { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
