.sdo-vs-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	width: 100%;
}

.sdo-vs-item {
	position: relative;
	overflow: hidden;
	border-radius: 18px;
	height: 520px;
	background-color: #0d0d0f;
	isolation: isolate;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .18), 0 2px 6px rgba(0, 0, 0, .12);
	transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s ease;
}

.sdo-vs-item:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, .3), 0 6px 14px rgba(0, 0, 0, .18);
}

/* برواز رفيع لمسة احترافية بسيطة */
.sdo-vs-item::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	border: 1px solid rgba(255, 255, 255, .08);
	z-index: 4;
	pointer-events: none;
}

/* طبقة الصورة: بتتحط ليها background-image بالجافاسكريبت وقت ما تدخل الشاشة بس (Lazy) */
.sdo-vs-poster {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-color: #1a1a1d;
	transition: transform .6s ease;
}

.sdo-vs-item:hover .sdo-vs-poster {
	transform: scale(1.06);
}

/* تدرج سفلي عشان النص يبان واضح فوق أي فيديو */
.sdo-vs-item::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .35) 75%, rgba(0, 0, 0, .78) 100%);
	pointer-events: none;
	z-index: 2;
}

.sdo-vs-caption {
	position: absolute;
	right: 0;
	left: 0;
	bottom: 0;
	padding: 20px 22px;
	pointer-events: none;
	z-index: 3;
	backdrop-filter: blur(0px);
}

.sdo-vs-title {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: -.2px;
	text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

.sdo-vs-desc {
	margin: 0;
	font-size: 14px;
	color: rgba(255, 255, 255, .82);
	line-height: 1.6;
	text-shadow: 0 1px 6px rgba(0, 0, 0, .3);
}

/* لما الفيديو يبدأ يشتغل، الصورة بتتشال وييجي مكانها iframe أو video بيغطي الكارت بالكامل */
.sdo-vs-item.is-playing .sdo-vs-poster {
	display: none;
}

.sdo-vs-item iframe,
.sdo-vs-item video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
	z-index: 0;
	pointer-events: none; /* يمنع أي تفاعل أو تحكم يظهر فوق الفيديو */
}

/* عدد الأعمدة بقى بيتحدد من كنترول "عدد الأعمدة" جوه إليمنتور (منفصل لكل جهاز: كمبيوتر / تابلت / موبايل) */

@media (max-width: 600px) {
	.sdo-vs-item {
		height: 420px;
	}
}
