/**
 * Instagram Reels Live Slider - Modern Vertical Story / Reels Carousel
 */

.irs-reels-slider-wrap {
	--irs-cols-desk: 4;
	--irs-cols-tab: 3;
	--irs-cols-mob: 1.5;
	--irs-gap: 24px;

	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	padding: 20px 0 35px;
	overflow: hidden;
}

.irs-reels-slider-wrap * {
	box-sizing: border-box;
}

/* Slider Track - GPU Hardware Accelerated */
.irs-reels-track {
	display: flex;
	align-items: stretch;
	gap: var(--irs-gap, 24px);
	width: max-content;
	padding: 20px 10px 30px;
	cursor: grab;
	user-select: none;
	will-change: transform;
	transform: translate3d(0, 0, 0);
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	perspective: 1000px;
	-webkit-perspective: 1000px;
}

.irs-reels-track.irs-is-dragging {
	cursor: grabbing;
}

/* Individual Reel Card - Sleek Compact Border Look */
.irs-reel-card {
	flex: 0 0 230px;
	width: 230px;
	min-width: 230px;
	max-width: 245px;
	position: relative;
	border-radius: 22px;
	border: 4px solid #ffffff;
	overflow: hidden;
	background: #0f172a;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 3px 8px rgba(0, 0, 0, 0.04);
	cursor: pointer;
	transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease, border-color 0.3s ease;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	text-decoration: none !important;
	will-change: transform;
	transform: translateZ(0);
	backface-visibility: hidden;
	z-index: 1;
}

/* Aspect Ratio Modifiers */
.irs-ratio-9-16 .irs-reel-card {
	aspect-ratio: 9 / 16;
	height: auto;
	min-height: 380px;
	max-height: 410px;
}

.irs-ratio-4-5 .irs-reel-card {
	aspect-ratio: 4 / 5;
	height: auto;
	min-height: 310px;
}

.irs-ratio-1-1 .irs-reel-card {
	aspect-ratio: 1 / 1;
	height: auto;
	min-height: 245px;
}

/* Hover Pop Up & Scaling Effect (Reference Image 2) */
.irs-reel-card:hover {
	transform: translateY(-12px) scale(1.08);
	z-index: 20;
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.22), 0 10px 20px rgba(0, 0, 0, 0.12);
	border-color: #ffffff;
}

/* Media Background & Image */
.irs-reel-media {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	margin: 0;
	padding: 0;
}

.irs-reel-media img,
.irs-card-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
	position: absolute;
	top: 0;
	left: 0;
	will-change: transform;
	transform: translateZ(0);
	backface-visibility: hidden;
}

.irs-reel-card:hover .irs-reel-media img,
.irs-reel-card:hover .irs-card-video {
	transform: scale(1.08);
}

/* Cinematic Dark Overlay */
.irs-reel-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.1) 35%, rgba(0, 0, 0, 0.85) 100%);
	z-index: 2;
	pointer-events: none;
}

/* Top Header Bar */
.irs-reel-top {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px;
	gap: 8px;
}

.irs-reel-user {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.25);
	padding: 4px 10px;
	border-radius: 20px;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	max-width: 80%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.irs-user-tag {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.irs-verified-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background: #0ea5e9;
	color: #ffffff;
	font-size: 9px;
	font-weight: 900;
	flex-shrink: 0;
}

.irs-instagram-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: #ffffff;
	flex-shrink: 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Center Play Button Overlay */
.irs-play-icon-wrap {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 3;
	pointer-events: none;
	opacity: 0.85;
	transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.irs-play-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1.5px solid rgba(255, 255, 255, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
	padding-left: 3px;
}

.irs-reel-card:hover .irs-play-icon-wrap {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1.15);
}

/* Bottom Caption & Action */
.irs-reel-bottom {
	position: relative;
	z-index: 3;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.irs-reel-caption {
	color: #f1f5f9;
	font-size: 11.5px;
	line-height: 1.4;
	font-weight: 500;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.irs-watch-reel-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 20px;
	padding: 7px 15px;
	color: #0f172a;
	font-size: 11.5px;
	font-weight: 800;
	align-self: flex-start;
	opacity: 0;
	transform: translateY(12px);
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
	cursor: pointer;
	pointer-events: none;
}

.irs-reel-card:hover .irs-watch-reel-btn {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
	background: #ffffff;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.irs-watch-reel-btn:hover {
	background: linear-gradient(135deg, #f09433 0%, #dc2743 50%, #bc1888 100%);
	color: darkgreen;
	transform: translateY(-2px) scale(1.05);
}

/* Navigation Arrows */
.irs-slider-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.4);
	background: rgba(15, 23, 42, 0.85);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	transition: all 0.25s ease;
	outline: none;
	padding: 0;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.irs-slider-prev {
	left: -12px;
}

.irs-slider-next {
	right: -12px;
}

.irs-slider-btn:hover {
	background: #0f172a;
	transform: translateY(-50%) scale(1.12);
	border-color: #ffffff;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
	.irs-reels-slider-wrap {
		--irs-gap: 20px;
	}
	.irs-reel-card {
		flex: 0 0 220px;
		width: 220px;
		min-width: 220px;
		max-width: 220px;
	}
	.irs-slider-prev { left: 4px; }
	.irs-slider-next { right: 4px; }
}

@media (max-width: 640px) {
	.irs-reels-slider-wrap {
		--irs-gap: 16px;
		padding: 15px 0 25px;
	}
	.irs-reels-track {
		gap: 16px;
		padding: 15px 12px 25px;
	}
	.irs-reel-card {
		flex: 0 0 220px;
		width: 220px;
		min-width: 220px;
		max-width: 220px;
		border-radius: 20px;
		border: 3.5px solid #ffffff;
		box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
	}
	.irs-ratio-9-16 .irs-reel-card {
		min-height: 360px;
		max-height: 380px;
	}
	.irs-slider-btn {
		width: 36px;
		height: 36px;
	}
}

.irs-admin-notice {
	background: #f0fdf4;
	border: 1.5px dashed #22c55e;
	border-radius: 12px;
	padding: 16px 20px;
	text-align: center;
	color: #166534;
}

