
/* Enhanced Video Modal Styles */
.video-modal .modal-dialog {
	max-width: 95vw;
	height: 95vh;
	margin: 2.5vh auto;
	pointer-events: none;
}

.video-modal .modal-content {
	pointer-events: auto;
}

.video-container-enhanced {
	position: relative;
	width: 100%;
	height: 85vh;
	background: #000;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 25px 50px rgba(0,0,0,0.8);
}

.video-responsive-enhanced {
	position: relative;
	width: 100%;
	height: 100%;
}

.video-responsive-enhanced iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 20px;
}

/* Prevent video from playing in background */
.video-modal:not(.show) iframe {
	display: none;
}

/* Close Button */
.btn-close-custom {
	width: 50px;
	height: 50px;
	background: rgba(255,255,255,0.9);
	border: none;
	border-radius: 50%;
	color: #333;
	font-size: 1.2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
}

.btn-close-custom:hover {
	background: rgba(255,255,255,1);
	transform: scale(1.1);
	box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Loading Overlay */
.video-loading-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	backdrop-filter: blur(5px);
}

.loading-spinner {
	text-align: center;
	color: white;
}

.loading-spinner .spinner-border {
	width: 3rem;
	height: 3rem;
}

/* Video Info Overlay */
.video-info-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(transparent, rgba(0,0,0,0.8));
	padding: 40px 20px 20px;
	transform: translateY(100%);
	transition: transform 0.3s ease;
	z-index: 5;
}

.video-container-enhanced:hover .video-info-overlay {
	transform: translateY(0);
}

.video-details {
	color: white;
	text-align: center;
}

.video-overlay-title {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 10px;
}

.video-overlay-description {
	opacity: 0.8;
	margin-bottom: 20px;
}

.video-overlay-actions {
	display: flex;
	gap: 10px;
	justify-content: center;
}

/* Animation for modal */
.video-modal.fade .modal-dialog {
	transform: scale(0.8) translateY(-50px);
	transition: all 0.3s ease;
}

.video-modal.show .modal-dialog {
	transform: scale(1) translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
	.video-container-enhanced {
		height: 70vh;
		border-radius: 15px;
	}
	
	.btn-close-custom {
		width: 40px;
		height: 40px;
		font-size: 1rem;
	}
	
	.video-overlay-actions {
		flex-direction: column;
		align-items: center;
	}
	
	.video-overlay-actions .btn {
		width: 200px;
	}
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
	.btn-close-custom {
		background: rgba(0,0,0,0.9);
		color: white;
	}
	
	.btn-close-custom:hover {
		background: rgba(0,0,0,1);
	}
}