/*
Theme Name: Drama Qamar (Asia4Arabs Edition)
Theme URI: https://dramaqamar.com/
Author: Drama Qamar
Description: قالب ووردبريس عربي احترافي للمسلسلات والأفلام والأنمي بتصميم مستوحى من Asia4Arabs — واجهة داكنة سينمائية، سلايدر رئيسي، مشغل مدمج مع السيرفرات وتبديل الحلقات داخل صفحة العمل، نظام تقييم 10 نجوم، طاقم التمثيل، وجلب تلقائي من TMDB/TVmaze.
Version: 2.5.0
Text Domain: drama-qamar
*/

:root {
	--bg: #0b0d14;
	--bg-2: #121622;
	--card: #161b2a;
	--card-2: #1d2336;
	--border: rgba(255, 255, 255, 0.08);
	--text: #f3f5fa;
	--muted: #9aa3b8;
	--pri: #e50914;
	--pri-hover: #ff1e29;
	--gold: #f5b942;
	--gold-2: #e0991f;
	--done: #10b981;
	--soon: #f59e0b;
	--radius: 14px;
	--radius-sm: 10px;
	--shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
	--font: 'Cairo', 'Tajawal', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	background: var(--bg);
	color: var(--text);
	direction: rtl;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color .2s, background .2s, border-color .2s, transform .2s; }
img { max-width: 100%; height: auto; display: block; }
button, input, select { font-family: inherit; }
.ic { width: 18px; height: 18px; flex-shrink: 0; vertical-align: middle; }

.a4-wrap {
	width: 100%;
	max-width: 1340px;
	margin: 0 auto;
	padding: 0 18px;
}
.a4-narrow { max-width: 900px; }

/* ================= HEADER ================= */
.a4-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: rgba(11, 13, 20, 0.92);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--border);
}
.a4-header-in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: 70px;
}
.a4-header-right, .a4-header-left {
	display: flex;
	align-items: center;
	gap: 18px;
}
.a4-logo {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}
.a4-logo-text {
	font-size: 1.45rem;
	font-weight: 900;
	letter-spacing: -0.3px;
	color: #fff;
}
.a4-logo-text b { color: var(--pri); }
.a4-logo-sub {
	font-size: .72rem;
	color: var(--muted);
	font-weight: 600;
}
.a4-logo-img img { max-height: 46px; width: auto; }

.a4-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 6px;
}
.a4-menu a {
	display: inline-block;
	padding: 8px 13px;
	border-radius: 9px;
	font-size: .94rem;
	font-weight: 700;
	color: #d6dceb;
}
.a4-menu a:hover, .a4-menu .current-menu-item a {
	color: #fff;
	background: rgba(255, 255, 255, 0.07);
}

.a4-search-box {
	display: flex;
	align-items: center;
	background: var(--bg-2);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 4px 12px 4px 6px;
	width: 240px;
	transition: border-color .2s, width .25s;
}
.a4-search-box:focus-within {
	border-color: rgba(229, 9, 20, 0.65);
	width: 280px;
}
.a4-search-box input {
	background: transparent;
	border: 0;
	outline: 0;
	color: #fff;
	width: 100%;
	font-size: .86rem;
	padding: 4px 4px;
}
.a4-search-box input::placeholder { color: var(--muted); }
.a4-search-box button {
	background: var(--pri);
	color: #fff;
	border: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.a4-search-box button:hover { background: var(--pri-hover); }

.a4-btn-vip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 15px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--gold), var(--gold-2));
	color: #161105;
	font-weight: 800;
	font-size: .86rem;
	white-space: nowrap;
	box-shadow: 0 4px 14px rgba(245, 185, 66, 0.28);
}
.a4-btn-vip:hover { transform: translateY(-1px); filter: brightness(1.07); }

.a4-btn-login {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--card);
	border: 1px solid var(--border);
	color: #fff;
	font-weight: 700;
	font-size: .86rem;
	white-space: nowrap;
}
.a4-btn-login:hover { border-color: rgba(255, 255, 255, 0.25); background: var(--card-2); }

.a4-menu-btn, .a4-search-trigger {
	display: none;
	background: var(--card);
	border: 1px solid var(--border);
	color: #fff;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.a4-mobile-search {
	display: none;
	padding: 10px 0 14px;
	background: var(--bg-2);
	border-top: 1px solid var(--border);
}
.a4-mobile-search.open { display: block; }
.a4-mobile-search form { display: flex; gap: 8px; }
.a4-mobile-search input {
	flex: 1;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 10px;
	color: #fff;
	padding: 10px 14px;
	font-size: .92rem;
	outline: 0;
}
.a4-mobile-search button {
	background: var(--pri);
	color: #fff;
	border: 0;
	border-radius: 10px;
	padding: 0 18px;
	font-weight: 700;
	cursor: pointer;
}

/* Mobile Bottom Nav */
.a4-bottom-nav {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 950;
	background: rgba(14, 17, 27, 0.96);
	backdrop-filter: blur(12px);
	border-top: 1px solid var(--border);
	padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.a4-bottom-nav a, .a4-bottom-nav button {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	background: transparent;
	border: 0;
	color: var(--muted);
	font-size: .7rem;
	font-weight: 700;
	padding: 4px 2px;
	cursor: pointer;
}
.a4-bottom-nav a.active, .a4-bottom-nav a:hover, .a4-bottom-nav button:hover {
	color: var(--pri);
}

/* ================= BUTTONS ================= */
.a4-btn-pri {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 24px;
	border-radius: 999px;
	background: var(--pri);
	color: #fff;
	font-weight: 800;
	font-size: .95rem;
	border: 0;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(229, 9, 20, 0.35);
}
.a4-btn-pri:hover { background: var(--pri-hover); transform: translateY(-2px); }
.a4-btn-lg { padding: 13px 28px; font-size: 1rem; }

.a4-btn-sec {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 20px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	color: #fff;
	font-weight: 700;
	font-size: .92rem;
	cursor: pointer;
}
.a4-btn-sec:hover { background: rgba(255, 255, 255, 0.15); }

.a4-btn-icon {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.a4-btn-icon:hover, .a4-btn-icon.on { background: var(--pri); border-color: var(--pri); }

/* ================= HERO SLIDER ================= */
.a4-hero {
	position: relative;
	height: 520px;
	overflow: hidden;
	background: #07090f;
	margin-bottom: 18px;
}
.a4-hero-slides, .a4-hero-slide {
	position: absolute;
	inset: 0;
}
.a4-hero-slide {
	opacity: 0;
	visibility: hidden;
	transition: opacity .6s ease, visibility .6s ease;
	display: flex;
	align-items: center;
}
.a4-hero-slide.active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
}
.a4-hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center 22%;
	transform: scale(1.03);
	transition: transform 6s ease;
}
.a4-hero-slide.active .a4-hero-bg { transform: scale(1); }
.a4-hero-overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to left, rgba(11, 13, 20, 0.94) 0%, rgba(11, 13, 20, 0.72) 48%, rgba(11, 13, 20, 0.25) 100%),
		linear-gradient(to top, var(--bg) 0%, rgba(11, 13, 20, 0.2) 35%, transparent 100%);
}
.a4-hero-content {
	position: relative;
	z-index: 3;
	padding-top: 20px;
}
.a4-hero-info { max-width: 650px; }
.a4-hero-badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
}
.a4-hbadge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 12px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(6px);
	font-size: .82rem;
	font-weight: 700;
	color: #fff;
}
.a4-hbadge-star { background: rgba(245, 185, 66, 0.18); color: var(--gold); border: 1px solid rgba(245, 185, 66, 0.35); }
.a4-hero-title {
	margin: 0 0 12px;
	font-size: clamp(1.55rem, 3.2vw, 2.45rem);
	font-weight: 900;
	line-height: 1.3;
	color: #fff;
	text-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}
.a4-hero-desc {
	margin: 0 0 22px;
	color: #d0d7e6;
	font-size: .98rem;
	line-height: 1.75;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.a4-hero-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(11, 13, 20, 0.6);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.a4-hero-arrow:hover { background: var(--pri); border-color: var(--pri); }
.a4-hero-prev { right: 16px; }
.a4-hero-next { left: 16px; }
.a4-hero-dots {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	display: flex;
	gap: 8px;
}
.a4-hero-dot {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	border: 0;
	background: rgba(255, 255, 255, 0.35);
	cursor: pointer;
	padding: 0;
	transition: width .25s, background .25s;
}
.a4-hero-dot.active { width: 28px; background: var(--pri); }

/* ================= SECTIONS & POSTER GRID ================= */
.a4-sec { padding: 24px 0 14px; }
.a4-sec-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}
.a4-sec-title {
	margin: 0;
	font-size: 1.32rem;
	font-weight: 800;
	display: flex;
	align-items: center;
	gap: 10px;
}
.a4-sec-bar {
	width: 5px;
	height: 24px;
	border-radius: 99px;
	background: var(--pri);
	display: inline-block;
}
.a4-bar-gold { background: var(--gold); }
.a4-sec-more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: .88rem;
	font-weight: 700;
	color: var(--muted);
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--card);
	border: 1px solid var(--border);
}
.a4-sec-more:hover { color: #fff; border-color: var(--pri); background: rgba(229, 9, 20, 0.14); }

.a4-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 16px;
}

.a4-card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.a4-card:hover {
	transform: translateY(-5px);
	border-color: rgba(229, 9, 20, 0.55);
	box-shadow: var(--shadow);
}
.a4-card-poster {
	position: relative;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	background: #0e121d;
}
.a4-card-poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}
.a4-card:hover .a4-card-poster img { transform: scale(1.06); }

.a4-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	background: rgba(229, 9, 20, 0.92);
	color: #fff;
	font-size: .74rem;
	font-weight: 800;
	padding: 3px 9px;
	border-radius: 7px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}
.a4-badge-done { background: rgba(16, 185, 129, 0.92); }
.a4-badge-soon { background: rgba(245, 158, 11, 0.94); color: #161105; }

.a4-vip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: linear-gradient(135deg, var(--gold), var(--gold-2));
	color: #161105;
	font-size: .72rem;
	font-weight: 900;
	padding: 3px 8px;
	border-radius: 7px;
}
.a4-card-poster .a4-vip, .a4-show-poster .a4-vip {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
}
.a4-play-hover {
	position: absolute;
	inset: 0;
	background: rgba(11, 13, 20, 0.48);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity .25s ease;
}
.a4-play-hover .ic {
	width: 48px;
	height: 48px;
	padding: 12px;
	border-radius: 50%;
	background: var(--pri);
	color: #fff;
	box-shadow: 0 6px 20px rgba(229, 9, 20, 0.55);
}
.a4-card:hover .a4-play-hover { opacity: 1; }

.a4-card-info { padding: 11px 12px 13px; }
.a4-card-title {
	margin: 0 0 6px;
	font-size: .9rem;
	font-weight: 700;
	line-height: 1.45;
	color: #f4f6fb;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.6em;
}
.a4-card-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: .78rem;
	color: var(--muted);
	font-weight: 700;
}
.a4-rate { color: var(--gold); }

/* ================= NEWS / ARTICLES ================= */
.a4-news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}
.a4-news-card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform .25s, border-color .25s;
}
.a4-news-card:hover { transform: translateY(-4px); border-color: rgba(229, 9, 20, 0.5); }
.a4-news-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.a4-news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.a4-news-cat {
	position: absolute;
	top: 10px;
	right: 10px;
	background: var(--pri);
	color: #fff;
	font-size: .74rem;
	font-weight: 800;
	padding: 3px 10px;
	border-radius: 7px;
}
.a4-news-body { padding: 14px; }
.a4-news-body h3 {
	margin: 0 0 8px;
	font-size: .96rem;
	font-weight: 800;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.a4-news-body small { color: var(--muted); font-size: .8rem; font-weight: 600; }

/* ================= VIP PLANS ================= */
.a4-plans-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 16px;
}
.a4-plan-card {
	background: linear-gradient(160deg, var(--card-2), var(--card));
	border: 1px solid rgba(245, 185, 66, 0.25);
	border-radius: var(--radius);
	padding: 22px;
	text-align: center;
}
.a4-plan-crown { color: var(--gold); display: inline-block; margin-bottom: 6px; }
.a4-plan-card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.a4-plan-price { margin: 8px 0; font-size: 1.8rem; font-weight: 900; color: var(--gold); }
.a4-plan-price span { font-size: .9rem; color: var(--muted); }
.a4-plan-meta { color: var(--muted); font-size: .86rem; margin: 0 0 16px; }
.a4-plan-btn { width: 100%; justify-content: center; }

/* ================= SINGLE SHOW PAGE (ASIA4ARABS STYLE) ================= */
.a4-show-hero {
	position: relative;
	padding: 38px 0 42px;
	overflow: hidden;
	border-bottom: 1px solid var(--border);
}
.a4-show-hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	filter: blur(18px) brightness(0.45);
	transform: scale(1.1);
}
.a4-show-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, var(--bg) 0%, rgba(11, 13, 20, 0.78) 60%, rgba(11, 13, 20, 0.72) 100%);
}
.a4-show-hero-in {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 28px;
	align-items: start;
}
.a4-show-poster {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	border: 2px solid rgba(255, 255, 255, 0.12);
	aspect-ratio: 2 / 3;
	background: var(--card);
}
.a4-show-poster img { width: 100%; height: 100%; object-fit: cover; }

.a4-show-type-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.a4-type-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: rgba(229, 9, 20, 0.2);
	border: 1px solid rgba(229, 9, 20, 0.45);
	color: #ff6b72;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: .82rem;
	font-weight: 800;
}
.a4-pill-done { background: rgba(16, 185, 129, 0.2); border-color: rgba(16, 185, 129, 0.45); color: #34d399; }
.a4-pill-soon { background: rgba(245, 158, 11, 0.2); border-color: rgba(245, 158, 11, 0.45); color: #fbbf24; }

.a4-show-title {
	margin: 0 0 6px;
	font-size: clamp(1.4rem, 2.8vw, 2.1rem);
	font-weight: 900;
	line-height: 1.35;
}
.a4-show-en { margin: 0 0 14px; color: var(--muted); font-size: .95rem; font-weight: 600; }

.a4-show-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}
.a4-meta-pill {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid var(--border);
	padding: 5px 12px;
	border-radius: 9px;
	font-size: .84rem;
	font-weight: 700;
	color: #e6ebf5;
}
.a4-pill-star { color: var(--gold); border-color: rgba(245, 185, 66, 0.35); background: rgba(245, 185, 66, 0.12); }

/* 10-Star Interactive Rating */
.a4-rating-box {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	background: rgba(18, 22, 34, 0.85);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 10px 14px;
	margin-bottom: 16px;
}
.a4-rating-summary { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.a4-rating-val { color: var(--gold); font-weight: 800; }
.a4-rating-cnt { color: var(--muted); font-size: .82rem; }
.a4-stars { display: inline-flex; gap: 3px; direction: ltr; }
.a4-star {
	background: transparent;
	border: 0;
	padding: 0 2px;
	font-size: 1.18rem;
	color: #464e66;
	cursor: pointer;
	line-height: 1;
	transition: color .15s, transform .15s;
}
.a4-star:hover, .a4-star.is-hover, .a4-star.is-on { color: var(--gold); transform: scale(1.12); }
.a4-rating-hint { font-size: .8rem; color: var(--muted); }
.a4-rating-hint a { color: var(--gold); text-decoration: underline; }

.a4-show-excerpt {
	margin: 0 0 20px;
	color: #cbd3e3;
	font-size: .95rem;
	line-height: 1.8;
	max-width: 780px;
}
.a4-show-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Show Body Panels */
.a4-show-body { padding-top: 26px; padding-bottom: 40px; }
.a4-card-panel {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 22px;
	margin-bottom: 22px;
}
.a4-panel-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}
.a4-panel-title {
	margin: 0 0 16px;
	font-size: 1.15rem;
	font-weight: 800;
	display: flex;
	align-items: center;
	gap: 8px;
}
.a4-panel-head .a4-panel-title, .a4-servers-header .a4-panel-title { margin-bottom: 0; }
.a4-cur-ep-label { color: var(--gold); font-size: .95rem; font-weight: 700; }
.a4-ep-count-pill {
	background: rgba(229, 9, 20, 0.16);
	color: #ff6b72;
	font-size: .82rem;
	padding: 3px 10px;
	border-radius: 999px;
}

/* Player & Servers */
.a4-servers-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}
.a4-server-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.a4-srv-btn {
	background: var(--bg-2);
	border: 1px solid var(--border);
	color: #dce2f0;
	padding: 8px 16px;
	border-radius: 10px;
	font-size: .88rem;
	font-weight: 800;
	cursor: pointer;
	transition: all .2s;
}
.a4-srv-btn:hover { border-color: var(--pri); color: #fff; }
.a4-srv-btn.active {
	background: var(--pri);
	border-color: var(--pri);
	color: #fff;
	box-shadow: 0 4px 14px rgba(229, 9, 20, 0.35);
}

.a4-player-stage {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #05070c;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--border);
}
.a4-player-frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.a4-player-frame iframe, .a4-player-frame video {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}
.a4-player-loading {
	position: absolute;
	inset: 0;
	z-index: 4;
	background: rgba(8, 10, 16, 0.9);
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	color: #fff;
	font-weight: 700;
}
.a4-player-loading.show { display: flex; }
.a4-spinner {
	width: 38px;
	height: 38px;
	border: 3px solid rgba(255, 255, 255, 0.15);
	border-top-color: var(--pri);
	border-radius: 50%;
	animation: a4spin .75s linear infinite;
}
@keyframes a4spin { to { transform: rotate(360deg); } }

.a4-player-locked {
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 24px;
	background: radial-gradient(circle at center, #1b2033 0%, #090b12 100%);
}
.a4-lock-ico {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: rgba(229, 9, 20, 0.16);
	color: var(--pri);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
}
.a4-player-locked h3 { margin: 0 0 6px; font-size: 1.15rem; }
.a4-player-locked p { margin: 0 0 18px; color: var(--muted); font-size: .9rem; }

.a4-player-notice {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 12px;
	padding: 10px 14px;
	border-radius: 10px;
	background: rgba(245, 158, 11, 0.08);
	border: 1px solid rgba(245, 158, 11, 0.22);
	font-size: .84rem;
	color: #f7d38c;
}
.a4-retry-btn {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.16);
	color: #fff;
	padding: 6px 12px;
	border-radius: 8px;
	font-size: .82rem;
	font-weight: 700;
	cursor: pointer;
}
.a4-retry-btn:hover { background: var(--pri); border-color: var(--pri); }

.a4-player-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 14px;
}
.a4-ctrl-btn {
	flex: 1;
	min-width: 150px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 16px;
	border-radius: 10px;
	background: var(--bg-2);
	border: 1px solid var(--border);
	color: #fff;
	font-weight: 800;
	font-size: .9rem;
	cursor: pointer;
}
.a4-ctrl-btn:hover:not(:disabled):not(.is-disabled) { border-color: var(--pri); background: rgba(229, 9, 20, 0.15); }
.a4-ctrl-btn:disabled, .a4-ctrl-btn.is-disabled { opacity: .4; cursor: not-allowed; }
.a4-ctrl-dl { background: rgba(16, 185, 129, 0.14); border-color: rgba(16, 185, 129, 0.35); color: #6ee7b7; }
.a4-ctrl-dl:hover { background: rgba(16, 185, 129, 0.26) !important; border-color: #10b981 !important; }
.a4-ctrl-next { background: var(--pri); border-color: var(--pri); }
.a4-ctrl-next:hover:not(:disabled):not(.is-disabled) { background: var(--pri-hover); }

.a4-dl-drawer {
	margin-top: 14px;
	padding: 14px;
	border-radius: 10px;
	background: var(--bg-2);
	border: 1px solid var(--border);
}
.a4-dl-list { display: flex; flex-wrap: wrap; gap: 10px; }
.a4-dl-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 8px;
	background: rgba(16, 185, 129, 0.14);
	border: 1px solid rgba(16, 185, 129, 0.32);
	color: #a7f3d0;
	font-size: .86rem;
	font-weight: 700;
}
.a4-dl-item:hover { background: #10b981; color: #052016; }

/* Episodes Grid */
.a4-ep-filter-input {
	background: var(--bg-2);
	border: 1px solid var(--border);
	border-radius: 9px;
	color: #fff;
	padding: 7px 12px;
	font-size: .86rem;
	width: 210px;
	outline: 0;
}
.a4-ep-filter-input:focus { border-color: var(--pri); }

.a4-ep-nums-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
	gap: 10px;
}
.a4-ep-num-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	height: 46px;
	border-radius: 10px;
	background: var(--bg-2);
	border: 1px solid var(--border);
	color: #e4e9f5;
	font-weight: 800;
	font-size: .96rem;
}
.a4-ep-num-btn:hover { border-color: var(--pri); color: #fff; background: rgba(229, 9, 20, 0.16); }
.a4-ep-num-btn.active {
	background: var(--pri);
	border-color: var(--pri);
	color: #fff;
	box-shadow: 0 4px 14px rgba(229, 9, 20, 0.4);
}
.a4-ep-play-ico { font-size: .72rem; }

/* Full Details Card */
.a4-details-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 24px;
}
.a4-detail-row {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 10px 12px;
	border-radius: 10px;
	background: var(--bg-2);
	border: 1px solid var(--border);
	font-size: .92rem;
}
.a4-detail-k { color: var(--muted); font-weight: 700; white-space: nowrap; }
.a4-detail-v { color: #f4f6fb; font-weight: 700; }
.a4-genre-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.a4-genre-tags a {
	background: rgba(255, 255, 255, 0.08);
	padding: 2px 10px;
	border-radius: 999px;
	font-size: .82rem;
}
.a4-genre-tags a:hover { background: var(--pri); color: #fff; }

/* Cast Section */
.a4-cast-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 14px;
}
.a4-cast-card {
	margin: 0;
	background: var(--bg-2);
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
	text-align: center;
}
.a4-cast-img { aspect-ratio: 4 / 5; overflow: hidden; background: #0e121d; }
.a4-cast-img img { width: 100%; height: 100%; object-fit: cover; }
.a4-cast-card figcaption { padding: 9px 8px; }
.a4-cast-card strong { display: block; font-size: .84rem; font-weight: 800; color: #fff; line-height: 1.35; }
.a4-cast-card small { display: block; font-size: .76rem; color: var(--muted); margin-top: 3px; }

/* Story */
.a4-story-content {
	color: #d6ddeb;
	font-size: .98rem;
	line-height: 1.95;
}
.a4-story-content p:first-child { margin-top: 0; }
.a4-story-content p:last-child { margin-bottom: 0; }

/* Archive / Chips / Pager */
.a4-archive-page, .a4-ep-watch-page, .a4-page-main { padding: 28px 0 46px; }
.a4-arch-head { margin-bottom: 22px; }
.a4-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.a4-chips a {
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--card);
	border: 1px solid var(--border);
	color: #d0d7e6;
	font-size: .85rem;
	font-weight: 700;
}
.a4-chips a:hover, .a4-chips a.on { background: var(--pri); border-color: var(--pri); color: #fff; }

.a4-pager { margin-top: 28px; text-align: center; }
.a4-pager .nav-links { display: inline-flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.a4-pager .page-numbers {
	padding: 8px 14px;
	border-radius: 9px;
	background: var(--card);
	border: 1px solid var(--border);
	font-weight: 700;
	font-size: .9rem;
}
.a4-pager .page-numbers.current, .a4-pager a.page-numbers:hover {
	background: var(--pri);
	border-color: var(--pri);
	color: #fff;
}

.a4-ep-top-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}
.a4-ep-watch-title { margin: 0; font-size: 1.4rem; font-weight: 900; }
.a4-ep-watch-title span { color: var(--gold); }

.a4-empty-home { text-align: center; padding: 64px 20px; }
.a4-empty-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }
.a4-empty-msg { text-align: center; color: var(--muted); padding: 40px 0; font-size: 1rem; }
.a4-notfound { text-align: center; padding: 48px 24px; }
.a4-404-num { font-size: 3.4rem; font-weight: 900; color: var(--pri); display: block; line-height: 1; }
.a4-article-title { margin: 0 0 8px; font-size: 1.6rem; }
.a4-article-meta { color: var(--muted); font-size: .85rem; margin-bottom: 18px; }
.a4-article-thumb { margin-bottom: 18px; border-radius: 12px; overflow: hidden; }

/* ================= FOOTER ================= */
.a4-footer {
	background: #080a10;
	border-top: 1px solid var(--border);
	padding: 36px 0 24px;
	margin-top: 32px;
}
.a4-foot-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--border);
}
.a4-foot-desc { margin: 8px 0 0; color: var(--muted); font-size: .88rem; }
.a4-foot-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
}
.a4-foot-links a { color: var(--muted); font-size: .88rem; font-weight: 700; }
.a4-foot-links a:hover { color: #fff; }
.a4-foot-bottom {
	padding-top: 18px;
	text-align: center;
	color: var(--muted);
	font-size: .84rem;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1180px) {
	.a4-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.a4-search-box { width: 190px; }
}
@media (max-width: 960px) {
	.a4-nav {
		display: none;
		position: absolute;
		top: 70px;
		left: 0;
		right: 0;
		background: var(--bg-2);
		border-bottom: 1px solid var(--border);
		padding: 12px 18px;
	}
	.a4-nav.open { display: block; }
	.a4-menu { flex-direction: column; align-items: stretch; }
	.a4-search-box, .a4-btn-login { display: none; }
	.a4-menu-btn, .a4-search-trigger { display: inline-flex; }
	.a4-bottom-nav { display: flex; }
	body { padding-bottom: 64px; }
	.a4-hero { height: 430px; }
	.a4-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.a4-show-hero-in { grid-template-columns: 180px 1fr; gap: 20px; }
	.a4-details-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.a4-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.a4-news-grid { grid-template-columns: 1fr; }
	.a4-hero { height: 390px; }
	.a4-hero-arrow { display: none; }
	.a4-show-hero-in { grid-template-columns: 1fr; text-align: center; }
	.a4-show-poster { max-width: 190px; margin: 0 auto; }
	.a4-show-type-row, .a4-show-pills, .a4-show-cta, .a4-rating-box { justify-content: center; }
	.a4-card-panel { padding: 16px; }
	.a4-btn-vip { padding: 7px 11px; font-size: .78rem; }
}

/* ================= COPY PROTECTION ================= */
body.dq-protected {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
}
body.dq-protected input,
body.dq-protected textarea,
body.dq-protected select {
	-webkit-user-select: text;
	-moz-user-select: text;
	-ms-user-select: text;
	user-select: text;
}
body.dq-protected img {
	-webkit-user-drag: none;
	user-drag: none;
}
.dq-protect-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	z-index: 99999;
	background: rgba(18, 22, 34, 0.96);
	color: #fff;
	border: 1px solid rgba(229, 9, 20, 0.65);
	padding: 10px 18px;
	border-radius: 999px;
	font-size: .88rem;
	font-weight: 700;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s ease, transform .25s ease;
	white-space: nowrap;
}
.dq-protect-toast.show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}
