/**
 * منشورات جنوب — /mubasher/
 */

.mubasher-gallery-page,
.mubasher-single-page {
	--mub-bg: #08080c;
	--mub-bg-grad-top: #0c0c10;
	--mub-fg: #f5f5f7;
	--mub-muted: rgba(245, 245, 247, 0.72);
	--mub-card: rgba(255, 255, 255, 0.04);
	--mub-border: rgba(255, 255, 255, 0.1);
	--mub-accent: #e3000f;
	--mub-frame-fill: rgba(227, 0, 15, 0.1);
	--mub-frame-watermark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='140' viewBox='0 0 240 140'%3E%3Cg fill='%23e3000f' fill-opacity='0.14' font-family='Cairo,Arial,sans-serif' font-size='12' font-weight='700'%3E%3Ctext transform='rotate(-45 28 72)' x='-8' y='72'%3E%D9%85%D9%86%D8%B4%D9%88%D8%B1%D8%A7%D8%AA%20%D8%AC%D9%86%D9%88%D8%A8%3C/text%3E%3Ctext transform='rotate(-45 148 72)' x='112' y='72'%3E%D9%85%D9%86%D8%B4%D9%88%D8%B1%D8%A7%D8%AA%20%D8%AC%D9%86%D9%88%D8%A8%3C/text%3E%3C/g%3E%3C/svg%3E");
	--mub-frame-watermark-size: 240px 140px;
	--mub-hero-bg: linear-gradient(135deg, rgba(227, 0, 15, 0.2), rgba(12, 12, 16, 0.92));
	--mub-overlay: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 35%, rgba(0, 0, 0, 0.88) 100%);
	--mub-glow-a: rgba(227, 0, 15, 0.22);
	--mub-glow-b: rgba(227, 0, 15, 0.08);
	font-family: 'Cairo', system-ui, sans-serif;
	background: var(--mub-bg);
	color: var(--mub-fg);
	min-height: 100vh;
}

html:not(.dark) .mubasher-gallery-page,
html:not(.dark) .mubasher-single-page {
	--mub-bg: #f1f5f9;
	--mub-bg-grad-top: #ffffff;
	--mub-fg: #0f172a;
	--mub-muted: rgba(15, 23, 42, 0.68);
	--mub-card: rgba(255, 255, 255, 0.92);
	--mub-border: rgba(15, 23, 42, 0.12);
	--mub-frame-fill: rgba(227, 0, 15, 0.1);
	--mub-frame-watermark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='140' viewBox='0 0 240 140'%3E%3Cg fill='%23e3000f' fill-opacity='0.1' font-family='Cairo,Arial,sans-serif' font-size='12' font-weight='700'%3E%3Ctext transform='rotate(-45 28 72)' x='-8' y='72'%3E%D9%85%D9%86%D8%B4%D9%88%D8%B1%D8%A7%D8%AA%20%D8%AC%D9%86%D9%88%D8%A8%3C/text%3E%3Ctext transform='rotate(-45 148 72)' x='112' y='72'%3E%D9%85%D9%86%D8%B4%D9%88%D8%B1%D8%A7%D8%AA%20%D8%AC%D9%86%D9%88%D8%A8%3C/text%3E%3C/g%3E%3C/svg%3E");
	--mub-hero-bg: linear-gradient(135deg, rgba(227, 0, 15, 0.12), rgba(255, 255, 255, 0.96));
	--mub-overlay: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.08) 35%, rgba(15, 23, 42, 0.82) 100%);
	--mub-glow-a: rgba(227, 0, 15, 0.14);
	--mub-glow-b: rgba(227, 0, 15, 0.05);
}

.mubasher-gallery-page::before {
	content: '';
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background:
		radial-gradient(ellipse 80% 50% at 85% 0%, var(--mub-glow-a), transparent 55%),
		radial-gradient(ellipse 60% 40% at 10% 100%, var(--mub-glow-b), transparent 50%),
		linear-gradient(180deg, var(--mub-bg-grad-top) 0%, var(--mub-bg) 100%);
}

.mubasher-shell {
	position: relative;
	z-index: 1;
	min-height: 100vh;
}

body.mubasher-lightbox-open {
	overflow: hidden;
}

html.mubasher-lightbox-open {
	overflow: hidden;
	overflow-x: hidden;
	max-width: 100%;
}

body.mubasher-saraya-open {
	overflow: hidden;
}

body.mubasher-delete-confirm-open {
	overflow: hidden;
}

.mubasher-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 1rem 1rem 3rem;
}

.mubasher-hero {
	position: relative;
	overflow: hidden;
	margin-bottom: 1.5rem;
	padding: 1.5rem 1.65rem;
	border-radius: 1.15rem;
	background: var(--mub-hero-bg);
	border: 1px solid rgba(227, 0, 15, 0.28);
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}

.mubasher-hero__glow {
	position: absolute;
	inset: -40% auto auto -20%;
	width: 55%;
	height: 140%;
	background: radial-gradient(circle, rgba(227, 0, 15, 0.35), transparent 68%);
	filter: blur(28px);
	opacity: 0.65;
	animation: mubasher-hero-pulse 6s ease-in-out infinite;
}

@keyframes mubasher-hero-pulse {
	0%,
	100% {
		opacity: 0.45;
		transform: scale(1);
	}
	50% {
		opacity: 0.75;
		transform: scale(1.06);
	}
}

.mubasher-hero__eyebrow {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #fff;
	background: #e3000f;
	padding: 0.28rem 0.65rem;
	border-radius: 0.35rem;
	margin: 0 0 0.35rem;
}

.mubasher-hero__title {
	font-size: clamp(1.5rem, 4vw, 2.1rem);
	font-weight: 900;
	margin: 0;
}

.mubasher-hero__datetime {
	margin: 0.55rem 0 0;
	font-size: clamp(0.88rem, 2.5vw, 1rem);
	font-weight: 700;
	color: var(--mub-muted);
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem;
}

.mubasher-hero__clock {
	font-variant-numeric: tabular-nums;
	font-weight: 900;
	color: var(--mub-fg);
	letter-spacing: 0.04em;
}

.mubasher-hero__waitline {
	position: relative;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-top: 0.85rem;
	padding: 0.55rem 0.75rem;
	border-radius: 0.65rem;
	background: rgba(227, 0, 15, 0.12);
	border: 1px solid rgba(227, 0, 15, 0.35);
	overflow: hidden;
}

.mubasher-hero__wait-urgent {
	font-size: 0.68rem;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #fff;
	background: var(--mub-accent);
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	animation: mubasher-urgent-pulse 1.1s ease-in-out infinite;
}

@keyframes mubasher-urgent-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.82; transform: scale(1.04); }
}

.mubasher-hero__wait-flame {
	display: inline-flex;
	animation: mubasher-flame-flicker 0.75s ease-in-out infinite;
}

.mubasher-hero__rec-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.15rem 0.45rem 0.15rem 0.35rem;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 59, 59, 0.55);
	box-shadow: 0 0 12px rgba(255, 59, 59, 0.35);
	animation: mubasher-rec-glow 1.6s ease-in-out infinite;
}

html:not(.dark) .mubasher-hero__rec-badge {
	background: rgba(255, 255, 255, 0.75);
}

@keyframes mubasher-rec-glow {
	0%, 100% { box-shadow: 0 0 8px rgba(255, 59, 59, 0.35); }
	50% { box-shadow: 0 0 18px rgba(255, 59, 59, 0.75); }
}

.mubasher-hero__rec-dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 999px;
	background: #ff2d2d;
	box-shadow: 0 0 0 0 rgba(255, 45, 45, 0.7);
	animation: mubasher-live-dot 1.2s ease-out infinite;
}

.mubasher-hero__rec-label {
	font-size: 0.68rem;
	font-weight: 900;
	color: #ffdede;
	letter-spacing: 0.06em;
}

html:not(.dark) .mubasher-hero__rec-label {
	color: #b8000c;
}

.mubasher-hero__wait-hourglass {
	display: inline-flex;
	color: var(--mub-fg);
	animation: mubasher-hourglass-turn 2.8s ease-in-out infinite;
}

@keyframes mubasher-hourglass-turn {
	0%, 100% { transform: rotate(0deg); }
	50% { transform: rotate(180deg); }
}

.mubasher-hourglass-sand {
	animation: mubasher-sand-flow 2.8s ease-in-out infinite;
}

@keyframes mubasher-sand-flow {
	0%, 100% { opacity: 0.35; }
	50% { opacity: 1; }
}

@keyframes mubasher-flame-flicker {
	0%, 100% { transform: scale(1) rotate(-4deg); opacity: 1; }
	50% { transform: scale(1.12) rotate(4deg); opacity: 0.88; }
}

.mubasher-hero__wait-text {
	font-size: 0.92rem;
	font-weight: 800;
	min-height: 1.35em;
	font-family: 'Cairo', monospace, system-ui, sans-serif;
}

.mubasher-hero__wait-text::after {
	content: '|';
	margin-inline-start: 0.08rem;
	color: var(--mub-accent);
	animation: mubasher-cursor-blink 0.85s step-end infinite;
}

@keyframes mubasher-cursor-blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0; }
}

.mubasher-hero__wait-leaves {
	position: relative;
	display: inline-flex;
	gap: 0.15rem;
	min-width: 2.5rem;
	height: 1.1rem;
}

.mubasher-leaf {
	position: absolute;
	top: 0;
	font-size: 0.85rem;
	opacity: 0;
	animation: mubasher-leaf-fall 3.6s linear infinite;
}

.mubasher-leaf--1 { right: 0; animation-delay: 0s; }
.mubasher-leaf--2 { right: 0.8rem; animation-delay: 1.2s; }
.mubasher-leaf--3 { right: 1.6rem; animation-delay: 2.4s; }

@keyframes mubasher-leaf-fall {
	0% { transform: translateY(-8px) rotate(0deg); opacity: 0; }
	15% { opacity: 0.9; }
	85% { opacity: 0.7; }
	100% { transform: translateY(14px) rotate(35deg); opacity: 0; }
}

.mubasher-hero__actions {
	margin-top: 1rem;
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0.65rem;
}

.mubasher-hero__search-wrap {
	flex: 1 1 12rem;
	min-width: min(100%, 12rem);
}

.mubasher-hero__search {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--mub-border);
	background: var(--mub-card);
	color: var(--mub-fg);
	border-radius: 0.55rem;
	padding: 0.62rem 0.85rem;
	font: inherit;
	font-weight: 700;
	font-size: 0.92rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mubasher-hero__search:focus {
	outline: none;
	border-color: rgba(227, 0, 15, 0.65);
	box-shadow: 0 0 0 3px rgba(227, 0, 15, 0.15);
}

.mubasher-hero__search::placeholder {
	color: var(--mub-muted);
	opacity: 0.85;
}

.mubasher-tv-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	border: 2px solid rgba(227, 0, 15, 0.65);
	background: linear-gradient(180deg, rgba(227, 0, 15, 0.35), rgba(12, 12, 16, 0.85));
	color: #fff;
	font: inherit;
	font-weight: 900;
	padding: 0.62rem 1.05rem;
	border-radius: 0.55rem;
	cursor: pointer;
	overflow: hidden;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 8px 24px rgba(227, 0, 15, 0.25);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

html:not(.dark) .mubasher-tv-btn {
	background: linear-gradient(180deg, #e3000f, #b8000c);
	color: #fff;
}

.mubasher-tv-btn__scan {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: repeating-linear-gradient(
		0deg,
		transparent,
		transparent 2px,
		rgba(255, 255, 255, 0.04) 2px,
		rgba(255, 255, 255, 0.04) 4px
	);
	animation: mubasher-tv-scan 3s linear infinite;
}

@keyframes mubasher-tv-scan {
	0% { transform: translateY(-100%); }
	100% { transform: translateY(100%); }
}

.mubasher-tv-btn__live-dot {
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 999px;
	background: #ff3b3b;
	box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.65);
	animation: mubasher-live-dot 1.4s ease-out infinite;
}

@keyframes mubasher-live-dot {
	0% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.65); }
	70% { box-shadow: 0 0 0 8px rgba(255, 59, 59, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); }
}

.mubasher-tv-btn__label {
	position: relative;
	z-index: 1;
}

.mubasher-tv-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 12px 32px rgba(227, 0, 15, 0.35);
}

.mubasher-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	margin-bottom: 1rem;
}

.mubasher-filters__tabs {
	display: flex;
	gap: 0.35rem;
	background: var(--mub-card);
	padding: 0.25rem;
	border-radius: 999px;
	border: 1px solid var(--mub-border);
}

.mubasher-tab {
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 700;
	padding: 0.45rem 1rem;
	border-radius: 999px;
	cursor: pointer;
}

.mubasher-tab.is-active {
	background: #e3000f;
	color: #fff;
}

.mubasher-filters__date .mubasher-date-input {
	background: var(--mub-card);
	border: 1px solid var(--mub-border);
	color: inherit;
	border-radius: 0.5rem;
	padding: 0.45rem 0.65rem;
	font: inherit;
}

.mubasher-apply {
	border: 0;
	background: #e3000f;
	color: #fff;
	font-weight: 800;
	padding: 0.5rem 1.1rem;
	border-radius: 0.5rem;
	cursor: pointer;
}

.mubasher-count {
	font-size: 0.85rem;
	opacity: 0.7;
	margin: 0 0 1rem;
}

/* — spotlight — */
.mubasher-spotlight {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	align-items: center;
	margin-bottom: 1.75rem;
	padding: 1.25rem;
	border-radius: 1.15rem;
	background: var(--mub-card);
	border: 1px solid var(--mub-border);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
	animation: mubasher-spotlight-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (min-width: 768px) {
	.mubasher-spotlight {
		grid-template-columns: 1fr minmax(200px, 280px);
		padding: 1.5rem 1.75rem;
	}
}

@keyframes mubasher-spotlight-in {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.mubasher-spotlight__badge {
	display: inline-block;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #fff;
	background: #e3000f;
	padding: 0.25rem 0.65rem;
	border-radius: 999px;
	margin-bottom: 0.65rem;
}

.mubasher-spotlight__title {
	font-size: clamp(1.15rem, 3vw, 1.55rem);
	font-weight: 900;
	margin: 0 0 0.35rem;
	line-height: 1.35;
}

.mubasher-spotlight__date {
	display: block;
	font-size: 0.85rem;
	opacity: 0.7;
	margin-bottom: 1rem;
}

.mubasher-spotlight__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	align-items: center;
}

.mubasher-share-bar {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.mubasher-share-bar.is-compact .mubasher-share-icon-btn {
	width: 2rem;
	height: 2rem;
}

.mubasher-share-bar__label {
	font-size: 0.78rem;
	font-weight: 900;
	color: var(--mub-muted);
	margin-inline-end: 0.15rem;
}

.mubasher-share-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	height: 2.35rem;
	border: 1px solid var(--mub-border);
	background: var(--mub-card);
	color: var(--mub-fg);
	border-radius: 999px;
	padding: 0;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mubasher-share-icon-btn:hover {
	transform: translateY(-1px);
	border-color: rgba(227, 0, 15, 0.45);
	color: var(--mub-accent);
}

.mubasher-share-icon {
	width: 1.05rem;
	height: 1.05rem;
}

.mubasher-share-icon--mobile {
	display: none;
}

@media (pointer: coarse) {
	.mubasher-share-icon--mobile {
		display: block;
	}
	.mubasher-share-icon--desktop {
		display: none;
	}
}

.mubasher-share-popover {
	position: absolute;
	top: calc(100% + 0.35rem);
	inset-inline-end: 0;
	z-index: 12;
	display: flex;
	gap: 0.3rem;
	padding: 0.35rem;
	border-radius: 999px;
	border: 1px solid var(--mub-border);
	background: var(--mub-bg);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.mubasher-share-popover.hidden {
	display: none;
}

.mubasher-share-popover__btn {
	border: 0;
	background: var(--mub-card);
	color: var(--mub-fg);
	border-radius: 999px;
	min-width: 2rem;
	height: 2rem;
	padding: 0 0.45rem;
	font: inherit;
	font-size: 0.68rem;
	font-weight: 900;
	cursor: pointer;
}

.mubasher-share-popover__btn.is-wa:hover { background: #25d366; color: #fff; }
.mubasher-share-popover__btn.is-fb:hover { background: #1877f2; color: #fff; }
.mubasher-share-popover__btn.is-tg:hover { background: #0088cc; color: #fff; }
.mubasher-share-popover__btn.is-copy:hover { background: var(--mub-accent); color: #fff; }

.mubasher-lightbox__overlay-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem;
	margin-top: 0.45rem;
	pointer-events: auto;
}

.mubasher-lightbox__share .mubasher-share-bar {
	pointer-events: auto;
}

.mubasher-single__share {
	margin: 0.75rem 0 0.35rem;
}

.mubasher-spotlight__zoom,
.mubasher-spotlight__page {
	font: inherit;
	font-weight: 800;
	border-radius: 0.55rem;
	padding: 0.5rem 1rem;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mubasher-spotlight__zoom {
	border: 0;
	background: #e3000f;
	color: #fff;
}

.mubasher-spotlight__page {
	background: var(--mub-card);
	color: inherit;
	border: 1px solid var(--mub-border);
}

.mubasher-spotlight__zoom:hover,
.mubasher-spotlight__page:hover {
	transform: translateY(-2px);
}

.mubasher-spotlight__frame {
	border: 0;
	padding: 0;
	background-color: var(--mub-frame-fill);
	background-image: var(--mub-frame-watermark);
	background-size: var(--mub-frame-watermark-size);
	background-repeat: repeat;
	cursor: zoom-in;
	border-radius: 1rem;
	overflow: hidden;
	max-width: 280px;
	margin: 0 auto;
	box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.mubasher-spotlight__media {
	position: relative;
	width: fit-content;
	margin: 0 auto;
}

.mubasher-spotlight__frame:hover {
	transform: scale(1.02) translateY(-4px);
	box-shadow: 0 28px 56px rgba(227, 0, 15, 0.25);
}

.mubasher-spotlight__frame img {
	display: block;
	position: relative;
	z-index: 1;
	width: 100%;
	aspect-ratio: 9 / 16;
	object-fit: contain;
	object-position: top center;
}

.mubasher-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.65rem;
}

@media (min-width: 540px) {
	.mubasher-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0.75rem;
	}
}

@media (min-width: 768px) {
	.mubasher-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 0.85rem;
	}
}

@media (min-width: 1024px) {
	.mubasher-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

@media (min-width: 1280px) {
	.mubasher-grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

.mubasher-grid.has-few-items {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
	.mubasher-grid.has-few-items {
		grid-template-columns: repeat(auto-fit, minmax(140px, 180px));
		justify-content: center;
	}
}

.mubasher-card {
	animation: mubasher-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
	animation-delay: calc(var(--mubasher-i, 0) * 45ms);
}

@keyframes mubasher-card-in {
	from {
		opacity: 0;
		transform: translateY(18px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.mubasher-card__inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	position: relative;
}

.mubasher-card__zoom {
	position: relative;
	display: block;
	width: 100%;
	border: 0;
	padding: 0;
	background: transparent;
	cursor: zoom-in;
	text-align: inherit;
	color: inherit;
}

.mubasher-card__frame {
	display: block;
	position: relative;
	aspect-ratio: 9 / 16;
	border-radius: 0.65rem;
	overflow: hidden;
	background-color: var(--mub-frame-fill);
	background-image: var(--mub-frame-watermark);
	background-size: var(--mub-frame-watermark-size);
	background-repeat: repeat;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.mubasher-card__shine {
	position: absolute;
	inset: 0;
	border-radius: 0.85rem;
	background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.12) 50%, transparent 70%);
	transform: translateX(-120%);
	transition: transform 0.6s ease;
	pointer-events: none;
}

.mubasher-card__zoom:hover .mubasher-card__frame {
	transform: translateY(-6px) scale(1.02);
	box-shadow: 0 18px 40px rgba(227, 0, 15, 0.22);
}

.mubasher-card__zoom:hover .mubasher-card__shine {
	transform: translateX(120%);
}

.mubasher-delete-story {
	position: absolute;
	top: 0.45rem;
	right: 0.45rem;
	width: 1.95rem;
	height: 1.95rem;
	border: 1px solid rgba(255, 255, 255, 0.65);
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.72);
	color: #fff;
	font-size: 1.05rem;
	font-weight: 900;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 4;
	transition: transform 0.2s ease, background 0.2s ease;
}

.mubasher-delete-story:hover {
	background: rgba(227, 0, 15, 0.9);
	transform: scale(1.05);
}

.mubasher-delete-story--spotlight {
	top: 0.6rem;
	right: 0.6rem;
}

.mubasher-delete-confirm {
	position: fixed;
	inset: 0;
	z-index: 200060;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.mubasher-delete-confirm.hidden {
	display: none;
}

.mubasher-delete-confirm__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(6, 8, 16, 0.85);
	backdrop-filter: blur(8px);
}

.mubasher-delete-confirm__panel {
	position: relative;
	z-index: 1;
	width: min(94vw, 420px);
	border-radius: 0.95rem;
	padding: 1rem;
	background: #0f172a;
	border: 1px solid rgba(255, 255, 255, 0.16);
	box-shadow: 0 24px 55px rgba(0, 0, 0, 0.5);
}

.mubasher-delete-confirm__title {
	display: block;
	font-size: 1rem;
	font-weight: 900;
	color: #fff;
}

.mubasher-delete-confirm__body {
	margin: 0.55rem 0 0;
	font-size: 0.9rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.88);
}

.mubasher-delete-confirm__actions {
	margin-top: 0.85rem;
	display: flex;
	gap: 0.55rem;
	justify-content: flex-end;
}

.mubasher-delete-confirm__btn {
	border: 0;
	border-radius: 0.6rem;
	padding: 0.5rem 0.9rem;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}

.mubasher-delete-confirm__btn.is-cancel {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.mubasher-delete-confirm__btn.is-danger {
	background: #e3000f;
	color: #fff;
}

.mubasher-card__frame img {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: top center;
	display: block;
}

.mubasher-card__meta {
	display: block;
	padding: 0.55rem 0.15rem 0;
	text-decoration: none;
	color: inherit;
	transition: color 0.2s ease;
}

.mubasher-card__meta:hover {
	color: #ff4d5a;
}

.mubasher-card__title {
	display: block;
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1.35;
}

.mubasher-card__date {
	display: block;
	font-size: 0.72rem;
	opacity: 0.65;
	margin-top: 0.2rem;
}

.mubasher-empty {
	text-align: center;
	padding: 3rem 1rem;
	opacity: 0.8;
}

.mubasher-empty.hidden,
.hidden {
	display: none !important;
}

.mubasher-lightbox {
	position: fixed;
	inset: 0;
	z-index: 200010;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
	box-sizing: border-box;
	overflow: hidden;
	max-width: 100vw;
}

.mubasher-lightbox.hidden {
	display: none;
}

.mubasher-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(4, 4, 8, 0.92);
	backdrop-filter: blur(12px);
}

html:not(.dark) .mubasher-lightbox__backdrop {
	background: rgba(15, 23, 42, 0.88);
}

.mubasher-lightbox__figure {
	position: relative;
	z-index: 2;
	margin: 0;
	width: min(420px, 100%);
	max-width: 100%;
	max-height: min(92vh, 960px);
	box-sizing: border-box;
}

.mubasher-lightbox__stage {
	position: relative;
	width: 100%;
	max-width: 100%;
	border-radius: 0.75rem;
	overflow: hidden;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
	background-color: var(--mub-frame-fill);
	background-image: var(--mub-frame-watermark);
	background-size: var(--mub-frame-watermark-size);
	background-repeat: repeat;
	isolation: isolate;
}

html:not(.dark) .mubasher-lightbox__stage {
	background: #1e293b;
}

.mubasher-lightbox__img {
	display: block;
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 100%;
	max-height: min(92vh, 960px);
	height: auto;
	object-fit: contain;
	object-position: top center;
	vertical-align: top;
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.mubasher-lightbox.is-switching .mubasher-lightbox__img {
	opacity: 0.6;
	transform: scale(0.98);
}

.mubasher-lightbox__overlay {
	position: absolute;
	inset: auto 0 0 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 2.5rem 0.85rem 0.85rem;
	background: var(--mub-overlay);
	color: #fff;
	text-align: right;
	pointer-events: none;
	overflow: hidden;
	min-width: 0;
}

.mubasher-lightbox__overlay-title {
	display: block;
	width: 100%;
	max-width: 100%;
	font-size: clamp(0.95rem, 3.5vw, 1.2rem);
	font-weight: 900;
	line-height: 1.35;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
	overflow-wrap: anywhere;
	word-break: break-word;
	hyphens: auto;
}

.mubasher-lightbox__overlay-excerpt {
	margin: 0.35rem 0 0;
	width: 100%;
	max-width: 100%;
	max-height: min(28vh, 9.5rem);
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	font-size: 0.82rem;
	line-height: 1.55;
	opacity: 0.92;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
	overflow-wrap: anywhere;
	word-break: break-word;
	hyphens: auto;
}

.mubasher-lightbox__overlay-excerpt[hidden] {
	display: none;
}

.mubasher-lightbox__overlay-date {
	display: block;
	margin-top: 0.35rem;
	width: 100%;
	max-width: 100%;
	font-size: 0.75rem;
	opacity: 0.82;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.mubasher-lightbox__permalink {
	pointer-events: auto;
	display: inline-block;
	max-width: 100%;
	margin-top: 0.45rem;
	color: #ffb4bc;
	font-weight: 700;
	font-size: 0.82rem;
	text-decoration: none;
	overflow-wrap: anywhere;
	word-break: break-word;
}

html:not(.dark) .mubasher-lightbox__permalink {
	color: #ffd1d6;
}

.mubasher-lightbox__permalink:hover {
	text-decoration: underline;
}

.mubasher-lightbox__counter {
	position: absolute;
	bottom: 1.25rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	margin: 0;
	font-size: 0.8rem;
	font-weight: 700;
	opacity: 0.75;
}

.mubasher-lightbox__close,
.mubasher-lightbox__nav {
	position: absolute;
	z-index: 3;
	border: 0;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	border-radius: 999px;
	cursor: pointer;
	backdrop-filter: blur(8px);
	transition: background 0.2s ease, transform 0.2s ease;
}

.mubasher-lightbox__close:hover,
.mubasher-lightbox__nav:hover:not(:disabled) {
	background: rgba(227, 0, 15, 0.55);
	transform: scale(1.05);
}

.mubasher-lightbox__close {
	top: 1rem;
	left: 1rem;
	width: 2.5rem;
	height: 2.5rem;
	font-size: 1.5rem;
}

.mubasher-lightbox__nav {
	top: 50%;
	transform: translateY(-50%);
	width: 2.75rem;
	height: 2.75rem;
	font-size: 1.75rem;
	font-weight: 300;
	line-height: 1;
}

.mubasher-lightbox__nav--prev {
	right: 1rem;
}

.mubasher-lightbox__nav--next {
	left: 1rem;
}

.mubasher-lightbox__nav:disabled {
	opacity: 0.35;
	cursor: default;
}

.mubasher-saraya-modal {
	position: fixed;
	inset: 0;
	z-index: 200030;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.mubasher-saraya-modal.hidden {
	display: none;
}

.mubasher-saraya-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(4, 4, 8, 0.88);
	backdrop-filter: blur(10px);
}

.mubasher-saraya-modal__panel {
	position: relative;
	z-index: 1;
	width: min(980px, 96vw);
	height: min(92vh, 840px);
	border-radius: 1rem;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: #08080c;
	box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.mubasher-saraya-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.7rem 0.85rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mubasher-saraya-modal__close {
	border: 0;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 1.25rem;
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	cursor: pointer;
}

.mubasher-saraya-modal__body {
	flex: 1 1 auto;
	min-height: 0;
}

.mubasher-saraya-modal__frame {
	width: 100%;
	height: 100%;
	border: 0;
	background: #0b0b10;
}

.mubasher-composer-modal {
	position: fixed;
	inset: 0;
	z-index: 200040;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.mubasher-composer-modal.hidden {
	display: none;
}

.mubasher-composer-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(4, 4, 8, 0.88);
	backdrop-filter: blur(10px);
}

.mubasher-composer-modal__panel {
	position: relative;
	z-index: 1;
	width: min(640px, 96vw);
	max-height: 92vh;
	overflow: auto;
	border-radius: 1rem;
	border: 1px solid var(--mub-border);
	background: var(--mub-bg);
	color: var(--mub-fg);
	box-shadow: 0 28px 70px rgba(0, 0, 0, 0.25);
}

.mubasher-composer-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.7rem 0.85rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mubasher-composer-modal__close {
	border: 0;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 1.25rem;
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	cursor: pointer;
}

.mubasher-composer-modal__body {
	padding: 0.95rem;
}

.mubasher-composer-form__label {
	display: block;
	font-size: 0.84rem;
	font-weight: 800;
	margin-bottom: 0.35rem;
}

.mubasher-composer-form__input,
.mubasher-composer-form__textarea {
	width: 100%;
	border-radius: 0.6rem;
	border: 1px solid var(--mub-border);
	background: var(--mub-card);
	color: inherit;
	font: inherit;
	padding: 0.55rem 0.65rem;
	margin-bottom: 0.6rem;
}

.mubasher-composer-form__textarea {
	min-height: 86px;
	resize: vertical;
}

.mubasher-composer-form__upload-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.mubasher-composer-form__upload-btn {
	border: 0;
	border-radius: 0.6rem;
	background: #e3000f;
	color: #fff;
	font: inherit;
	font-weight: 800;
	padding: 0.52rem 0.88rem;
	cursor: pointer;
}

.mubasher-composer-form__upload-note {
	font-size: 0.78rem;
	opacity: 0.8;
}

.mubasher-composer-form__file {
	display: none;
}

.mubasher-composer-form__status {
	margin: 0.65rem 0 0;
	padding: 0.55rem 0.65rem;
	border-radius: 0.6rem;
	background: rgba(255, 255, 255, 0.08);
	font-size: 0.82rem;
}

.mubasher-composer-form__status.is-ok {
	background: rgba(22, 101, 52, 0.3);
}

.mubasher-composer-form__status.is-error {
	background: rgba(153, 27, 27, 0.32);
}

.mubasher-composer-form__actions {
	margin-top: 0.75rem;
	display: flex;
	gap: 0.55rem;
	justify-content: flex-end;
}

.mubasher-composer-form__action {
	border: 0;
	border-radius: 0.6rem;
	font: inherit;
	font-weight: 800;
	padding: 0.55rem 0.9rem;
	cursor: pointer;
}

.mubasher-composer-form__action.is-ghost {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.mubasher-composer-form__action.is-primary {
	background: #e3000f;
	color: #fff;
}

@media (prefers-reduced-motion: reduce) {
	.mubasher-hero__glow,
	.mubasher-card,
	.mubasher-spotlight,
	.mubasher-hero__wait-urgent,
	.mubasher-hero__rec-dot,
	.mubasher-hero__wait-hourglass,
	.mubasher-hourglass-sand,
	.mubasher-hero__wait-text::after,
	.mubasher-leaf,
	.mubasher-tv-btn__scan,
	.mubasher-tv-btn__live-dot {
		animation: none;
	}
	.mubasher-card__shine,
	.mubasher-card__frame,
	.mubasher-spotlight__frame {
		transition: none;
	}
}

.mubasher-single__title {
	font-size: clamp(1.25rem, 3vw, 1.75rem);
	font-weight: 900;
	margin: 0 0 0.35rem;
}

.mubasher-single__date {
	display: block;
	font-size: 0.85rem;
	opacity: 0.7;
	margin-bottom: 0.75rem;
}

.mubasher-single__excerpt {
	opacity: 0.85;
	margin-bottom: 1rem;
}

.mubasher-single__figure {
	max-width: 420px;
	margin: 0 auto;
	aspect-ratio: 9 / 16;
	background-color: var(--mub-frame-fill);
	background-image: var(--mub-frame-watermark);
	background-size: var(--mub-frame-watermark-size);
	background-repeat: repeat;
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.mubasher-single__figure img {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: top center;
	display: block;
}

/* Inline admin edit — حقل مستقل (عنوان / نص / صورة) */
.mubasher-inline-field {
	position: relative;
	padding-left: 2.85rem;
}

.mubasher-inline-field__toggle {
	position: absolute;
	top: 0.15rem;
	left: 0;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border: 1px solid rgba(227, 0, 15, 0.35);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.98);
	color: #e3000f;
	cursor: pointer;
	opacity: 1;
	pointer-events: auto;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.mubasher-inline-field__toggle:hover {
	transform: scale(1.04);
	box-shadow: 0 6px 18px rgba(227, 0, 15, 0.18);
}

.mubasher-inline-field.is-editing .mubasher-inline-field__toggle {
	background: #e3000f;
	color: #fff;
	border-color: #e3000f;
}

.mubasher-inline-field__toggle[disabled],
.mubasher-inline-field.is-busy .mubasher-inline-field__toggle {
	opacity: 0.65;
	cursor: wait;
}

.mubasher-inline-field.is-editing {
	outline: 2px dashed rgba(227, 0, 15, 0.45);
	outline-offset: 6px;
	border-radius: 0.5rem;
}

.mubasher-inline-field__input {
	width: 100%;
	font: inherit;
	color: inherit;
	background: #fff;
	border: 1px solid rgba(227, 0, 15, 0.35);
	border-radius: 0.5rem;
	padding: 0.55rem 0.75rem;
	box-sizing: border-box;
}

.mubasher-inline-field__input--title {
	font-size: inherit;
	font-weight: inherit;
	line-height: 1.25;
}

.mubasher-inline-field__input--excerpt {
	font-size: 1rem;
	line-height: 1.65;
	resize: vertical;
	min-height: 5rem;
}

.mubasher-inline-field--excerpt.is-empty .mubasher-inline-field__display {
	color: #94a3b8;
	font-style: italic;
}

.mubasher-inline-field--image .mubasher-inline-field__toggle {
	top: 0.65rem;
	left: 0.65rem;
}

.mubasher-inline-field--image {
	padding-left: 0;
}

.mubasher-inline-field--image.is-editing .mubasher-single__figure {
	box-shadow: 0 0 0 2px rgba(227, 0, 15, 0.35);
}

.mubasher-inline-field__image-hint {
	margin: 0.5rem 0 0;
	text-align: center;
	font-size: 0.85rem;
	font-weight: 700;
	color: #e3000f;
}

.mubasher-inline-field__image-empty {
	margin: 0;
	padding: 2rem 1rem;
	text-align: center;
	color: #64748b;
	font-weight: 600;
}

.mubasher-back a {
	color: #e3000f;
	text-decoration: none;
	font-weight: 700;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.jsc-saraya-story-image-preview {
	width: 100%;
	max-width: min(88vw, 300px);
	aspect-ratio: 9 / 16;
	margin: 0 auto;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	background-color: var(--mub-frame-fill, rgba(227, 0, 15, 0.1));
	background-image: var(--mub-frame-watermark);
	background-size: var(--mub-frame-watermark-size, 240px 140px);
	background-repeat: repeat;
	border-radius: 0.65rem;
	overflow: hidden;
}

.jsc-saraya-story-image-preview img {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: top center;
	display: block;
}
