/* Layout container for main video and thumbnails */
.video-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	margin: 0 auto;
}

/* Main video player */
#video-player {
	width: 100%;
	box-shadow: 0 10px 10px rgba(0, 0, 0, .30);
	border-radius: 10px;
}

/* Thumbnail wrapper with scrollable container */
.video-thumbnails-wrapper {
	position: relative;
	width: 100%;
	max-width: 1000px;
	overflow: hidden;
}

/* Scrollable thumbnail container */
#video-thumbnails {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	white-space: nowrap;
	padding-bottom: 10px;
	scroll-behavior: smooth;
}

/* Custom scrollbar (optional) */
#video-thumbnails::-webkit-scrollbar {
	height: 6px;
}

#video-thumbnails::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 4px;
}

#video-thumbnails::-webkit-scrollbar-thumb {
	background: #d1d1d1;
	border-radius: 4px;
}

.video-thumb-container {
	position: relative;
	cursor: pointer;
	text-align: center;
	width: 100%;
	max-width: 240px;
	display: block;
	flex: 1 0 auto;
}
@media (max-width: 1024px){
	.video-thumb-container {
		max-width: 140px;
	}
}
.video-thumb {
	width: 100%;
	height: auto;
	border-radius: 10px!important;
	transition: transform 0.3s ease-in-out;
}
.thumb-wrapper {
	position: relative;
	overflow: hidden;
}
.video-thumb-container:hover .video-thumb {
	transform: scale(1.2);
	transform-origin: center;
}

.active-thumb .video-thumb {
	border: 2px solid #FF2D98 !important;
}

.play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 50px;
	height: 50px;
	background: rgba(255, 45, 152, 0.6);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.play-icon::before {
	content: "▶";
	color: white;
	font-size: 24px;
	font-weight: bold;
}

.video-title {
	font-size: 14px;
	margin-top: 5px;
	color: #333;
	white-space: normal;
	line-height: 1em;
}

/* Scroll buttons */
.scroll-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.5);
	color: white;
	border: none;
	cursor: pointer;
	padding: 10px;
	border-radius: 50%;
	font-size: 18px;
	display: none!important;
}

.scroll-btn-left {
	left: 0;
}

.scroll-btn-right {
	right: 0;
}

/* Show scroll buttons when more than 4 items */
.video-thumbnails-wrapper.scrollable .scroll-btn {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.video-container {
		width: 100%;
	}

	.video-thumbnails-wrapper {
		max-width: 100%;
	}
}