/* Video Popup Plugin - Frontend styles (fully responsive) */

.vpp-no-scroll {
	overflow: hidden;
}

/* Dark overlay */
.vpp-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.85);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	padding: 20px;
	box-sizing: border-box;
}

.vpp-overlay.vpp-active {
	opacity: 1;
	visibility: visible;
}

/* Popup box */
.vpp-popup {
	position: relative;
	width: 100%;
	max-width: 900px;
	transform: scale(0.9);
	transition: transform 0.3s ease;
}

.vpp-overlay.vpp-active .vpp-popup {
	transform: scale(1);
}

/* Responsive 16:9 video wrapper */
.vpp-video-wrap {
	position: relative;
	width: 100%;
	background: #000;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.vpp-video-wrap video {
	display: block;
	width: 100%;
	height: auto;
	max-height: 80vh;
}

/* Close button */
.vpp-close {
	position: absolute;
	top: -18px;
	right: -18px;
	z-index: 2;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: #fff;
	color: #000;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
	transition: transform 0.2s ease, background 0.2s ease;
	padding: 0;
}

.vpp-close:hover,
.vpp-close:focus {
	background: #ff4d4d;
	color: #fff;
	transform: rotate(90deg);
	outline: none;
}

/* Tablet */
@media (max-width: 768px) {
	.vpp-overlay {
		padding: 15px;
	}

	.vpp-close {
		top: -14px;
		right: -8px;
		width: 36px;
		height: 36px;
		font-size: 22px;
	}
}

/* Mobile */
@media (max-width: 480px) {
	.vpp-overlay {
		padding: 10px;
	}

	.vpp-popup {
		max-width: 100%;
	}

	.vpp-video-wrap video {
		max-height: 70vh;
	}

	.vpp-close {
		top: -44px;
		right: 0;
	}
}
