/* Video Overlay Plugin - Frontend Styles */

.vop-overlay-root {
	position: fixed;
	z-index: 999999;
	pointer-events: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.vop-overlay-root.vop-position-bottom-right {
	right: 20px;
	bottom: 20px;
}

.vop-overlay-root.vop-position-bottom-left {
	left: 20px;
	bottom: 20px;
}

.vop-overlay-root.vop-position-top-right {
	right: 20px;
	top: 20px;
}

.vop-overlay-root.vop-position-top-left {
	left: 20px;
	top: 20px;
}

.vop-overlay-root.vop-position-center {
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

.vop-video-wrapper {
	position: relative;
	pointer-events: auto;
	line-height: 0;
}

.vop-video-wrapper canvas {
	display: block;
	max-width: 100%;
	height: auto;
}

.vop-watermark {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) rotate(-20deg);
	transform-origin: center;
	color: rgba(255, 255, 255, 0.65);
	text-shadow: 0 0 3px rgba(0, 0, 0, 0.85), 0 0 6px rgba(0, 0, 0, 0.65);
	font-weight: 700;
	font-family: sans-serif;
	letter-spacing: 2px;
	white-space: nowrap;
	pointer-events: none;
	user-select: none;
	z-index: 2;
}

.vop-close-btn {
	position: absolute;
	top: -10px;
	right: -10px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #111;
	color: #fff;
	border: 2px solid #fff;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
	padding: 0;
}

.vop-close-btn:hover {
	background: #d32f2f;
}

/*
 * Browsers never allow audible autoplay without a real click/tap from the
 * visitor - muted autoplay always falls back to this button so sound is
 * still just one click away. Made deliberately hard to miss (bigger,
 * high-contrast, gently pulsing) since a small corner label is easy for
 * visitors to never notice, which makes the video look silent forever.
 */
.vop-sound-btn {
	position: absolute;
	left: 50%;
	bottom: 10px;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 6px;
	background: rgba(20, 20, 20, 0.85);
	color: #fff;
	border: 1.5px solid rgba(255, 255, 255, 0.85);
	border-radius: 999px;
	padding: 7px 14px;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
	animation: vop-sound-btn-pulse 1.6s ease-in-out infinite;
}

.vop-sound-btn:hover {
	background: rgba(0, 0, 0, 0.95);
	animation-play-state: paused;
}

@keyframes vop-sound-btn-pulse {
	0%, 100% { transform: translateX(-50%) scale(1); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45); }
	50% { transform: translateX(-50%) scale(1.06); box-shadow: 0 2px 16px rgba(255, 255, 255, 0.3); }
}

.vop-hidden {
	display: none !important;
}
