
/* ============================================================
   Video Carousel Slider — Frontend Styles
   ============================================================ */

/* ── CSS Custom Properties ── */
.vcs-carousel-wrap {
	--vcs-bg: #0d0d1a;
	--vcs-card-bg: #16162a;
	--vcs-card-border: #2a2a4a;
	--vcs-text: #e8e8f0;
	--vcs-muted: #888aaa;
	--vcs-accent: #6c63ff;
	--vcs-accent-glow: rgba(108, 99, 255, .3);
	--vcs-btn-bg: rgba(255, 255, 255, .08);
	--vcs-btn-hover: rgba(108, 99, 255, .5);
	--vcs-dot: rgba(255, 255, 255, .2);
	--vcs-dot-active: #6c63ff;
	--vcs-shadow: 0 8px 32px rgba(0, 0, 0, .5);
	--vcs-radius: 12px;
	--vcs-transition: .4s cubic-bezier(.25, .46, .45, .94);
}

/* ── Light Theme ── */
.vcs-theme-light {
	--vcs-bg: #f4f4f8;
	--vcs-card-bg: #fff;
	--vcs-card-border: #e0e0ea;
	--vcs-text: #1a1a2e;
	--vcs-muted: #6b6b8a;
	--vcs-accent: #5a52e8;
	--vcs-accent-glow: rgba(90, 82, 232, .15);
	--vcs-btn-bg: rgba(0, 0, 0, .06);
	--vcs-btn-hover: rgba(90, 82, 232, .2);
	--vcs-dot: rgba(0, 0, 0, .15);
	--vcs-dot-active: #5a52e8;
	--vcs-shadow: 0 4px 20px rgba(0, 0, 0, .1);
}

/* ── Glass Theme ── */
.vcs-theme-glass {
	--vcs-bg: linear-gradient(135deg, #1a1a3e 0%, #0d0d2a 100%);
	--vcs-card-bg: rgba(255, 255, 255, .07);
	--vcs-card-border: rgba(255, 255, 255, .15);
	--vcs-text: #f0f0ff;
	--vcs-muted: #9090bb;
	--vcs-accent: #a78bfa;
	--vcs-accent-glow: rgba(167, 139, 250, .25);
	--vcs-btn-bg: rgba(255, 255, 255, .1);
	--vcs-btn-hover: rgba(167, 139, 250, .35);
	--vcs-dot: rgba(255, 255, 255, .2);
	--vcs-dot-active: #a78bfa;
	--vcs-shadow: 0 8px 40px rgba(0, 0, 0, .4);
}

/* ── Wrapper ── */
.vcs-carousel-wrap {
	width: 100%;
	padding: 32px 0;
	background: var(--vcs-bg);
	border-radius: 16px;
	margin: 24px 0;
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	box-sizing: border-box;
}

/* ── Stage: contains buttons + track ── */
.vcs-stage {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 16px;
	position: relative;
}

/* ── Track outer clips overflow ── */
.vcs-track-outer {
	flex: 1;
	overflow: hidden;
	position: relative;
}

.vcs-track {
	display: flex;
	gap: 16px;
	transition: transform var(--vcs-transition);
	will-change: transform;
}

/* ── Individual slide ── */
.vcs-slide {
	flex-shrink: 0;
}

/* ── Card ── */
.vcs-card {
	background: var(--vcs-card-bg);
	border: 1px solid var(--vcs-card-border);
	border-radius: var(--vcs-radius);
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease;
	cursor: pointer;
	height: 100%;
}

.vcs-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 40px var(--vcs-accent-glow), var(--vcs-shadow);
	border-color: var(--vcs-accent);
}

/* ── Thumbnail ── */
.vcs-thumb-container {
	position: relative;
	aspect-ratio: 16/9;
	overflow: hidden;
	background: #0a0a18;
}

.vcs-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s ease, opacity .35s ease;
}

.vcs-thumb-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #1a1a3e, #0d0d2a);
}

.vcs-card:hover .vcs-thumb {
	transform: scale(1.05);
	opacity: .85;
}

/* ── Play button ── */
.vcs-play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(.9);
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	transition: transform .2s ease, opacity .2s ease;
	opacity: 0;
	z-index: 2;
}

.vcs-card:hover .vcs-play-btn {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

/* ── Platform badge ── */
.vcs-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .5px;
	text-transform: uppercase;
	padding: 2px 8px;
	border-radius: 4px;
	color: #fff;
	z-index: 2;
}

.vcs-badge-youtube {
	background: #f00;
}

.vcs-badge-vimeo {
	background: #1ab7ea;
}

/* ── Card info ── */
.vcs-card-info {
	padding: 12px 14px 14px;
}

.vcs-card-title {
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 600;
	color: var(--vcs-text);
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.vcs-card-desc {
	margin: 0;
	font-size: 12px;
	color: var(--vcs-muted);
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ── Nav buttons ── */
.vcs-btn {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--vcs-btn-bg);
	border: 1px solid var(--vcs-card-border);
	color: var(--vcs-text);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background .2s ease, border-color .2s ease, transform .15s ease;
	z-index: 5;
}

.vcs-btn:hover:not(:disabled) {
	background: var(--vcs-btn-hover);
	border-color: var(--vcs-accent);
	transform: scale(1.08);
}

.vcs-btn:disabled {
	opacity: .3;
	cursor: not-allowed;
}

/* ── Dots ── */
.vcs-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
	padding: 0 16px;
}

.vcs-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--vcs-dot);
	border: none;
	cursor: pointer;
	padding: 0;
	transition: background .2s ease, transform .2s ease, width .25s ease;
}

.vcs-dot.active {
	background: var(--vcs-dot-active);
	width: 24px;
	border-radius: 4px;
	transform: scale(1);
}

/* ── Modal ── */
.vcs-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	align-items: center;
	justify-content: center;
}

.vcs-modal.open {
	display: flex;
}

.vcs-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .85);
	backdrop-filter: blur(6px);
	animation: vcsBackdropIn .2s ease;
}

@keyframes vcsBackdropIn {
	from {
		opacity: 0;
	}
	
	to {
		opacity: 1;
	}
}

.vcs-modal-content {
	position: relative;
	z-index: 1;
	width: min(90vw, 960px);
	animation: vcsModalIn .25s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes vcsModalIn {
	from {
		opacity: 0;
		transform: scale(.85);
	}
	
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.vcs-modal-close {
	position: absolute;
	top: -44px;
	right: 0;
	width: 36px;
	height: 36px;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s;
}

.vcs-modal-close:hover {
	background: rgba(255, 255, 255, .2);
}

.vcs-modal-iframe-wrap {
	position: relative;
	padding-bottom: 56.25%;
	background: #000;
	border-radius: 10px;
	overflow: hidden;
}

.vcs-modal-iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
}

/* ── Responsive ── */
@media (max-width: 900px) {
	.vcs-carousel-wrap {
		padding: 20px 0;
	}
	
	.vcs-stage {
		padding: 0 8px;
		gap: 4px;
	}
	
	.vcs-btn {
		width: 36px;
		height: 36px;
	}
}

@media (max-width: 600px) {
	.vcs-card-title {
		font-size: 12px;
	}
	
	.vcs-card-desc {
		display: none;
	}
}
