/* YouTube Playlist Gallery Plugin Styles */

.youtube-playlist-container {
	width: 100%;
	margin: 0 auto;
}

.youtube-video-item {
	position: relative;
	margin-bottom: 20px;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.youtube-video-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.youtube-thumbnail-wrapper {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%; /* 16:9 aspect ratio */
	overflow: hidden;
	background: #000;
}

.youtube-thumbnail {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.youtube-video-item:hover .youtube-thumbnail {
	transform: scale(1.05);
}

.youtube-play-overlay {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	opacity: 0.8;
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: none;
}

.youtube-video-item:hover .youtube-play-overlay {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1.1);
}

.youtube-video-meta {
	padding: 10px 14px 0;
}

.youtube-program-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 15px;
	font-size: 12px;
	font-weight: 600;
	color: white;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
}

.youtube-video-title {
	padding: 10px 14px 15px;
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: #333;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	min-height: 40px;
}

.youtube-playlist-error {
	background: #fee;
	border: 1px solid #fcc;
	border-radius: 4px;
	padding: 15px;
	color: #c33;
	text-align: center;
	margin: 20px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.youtube-video-item {
		margin-bottom: 15px;
	}
	
	.youtube-video-title {
		font-size: 13px;
		padding: 8px 12px 12px;
		min-height: 35px;
	}
	
	.youtube-program-badge {
		font-size: 11px;
		padding: 3px 10px;
	}
	
	.youtube-video-meta {
		padding: 8px 12px 0;
	}
}

@media (max-width: 480px) {
	.youtube-playlist-container {
		padding: 0 5px;
	}
	
	.youtube-video-item {
		margin-bottom: 12px;
	}
	
	.youtube-video-title {
		font-size: 12px;
		padding: 6px 10px 10px;
		min-height: 30px;
	}
}

/* Loading animation for thumbnails */
.youtube-thumbnail {
	background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	animation: loading 1.5s infinite;
}

.youtube-thumbnail[src] {
	animation: none;
	background: none;
}

@keyframes loading {
	0% {
		background-position: 200% 0;
	}
	100% {
		background-position: -200% 0;
	}
}

/* VenoBox customizations */
.vbox-overlay {
	background: rgba(0, 0, 0, 0.85) !important;
}

.vbox-content {
	border-radius: 8px !important;
	overflow: hidden !important;
}

/* Bootstrap column compatibility */
.youtube-playlist-container .row {
	display: flex;
	flex-wrap: wrap;
	margin-right: -15px;
	margin-left: -15px;
}

.youtube-playlist-container [class*="col-"] {
	position: relative;
	width: 100%;
	padding-right: 15px;
	padding-left: 15px;
}

/* Column classes */
.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-lg-3 { flex: 0 0 25%; max-width: 25%; }
.col-sm-6 { flex: 0 0 50%; max-width: 50%; }
.col-xl-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }

@media (max-width: 575.98px) {
	.col-sm-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
	.col-sm-6 { flex: 0 0 50%; max-width: 50%; }
}

@media (max-width: 767.98px) {
	.col-md-3 { flex: 0 0 25%; max-width: 25%; }
	.col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
	.col-md-6 { flex: 0 0 50%; max-width: 50%; }
}

@media (max-width: 991.98px) {
	.col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
	.col-lg-3 { flex: 0 0 25%; max-width: 25%; }
}

@media (max-width: 1199.98px) {
	.col-xl-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
}

/* Utility classes */
.mb-4 { margin-bottom: 1.5rem !important; }