/**
 * Inline Plyr video player — single product pages only.
 * Does not affect category/archive pages or the popup.
 */

/* ── Wrapper ── */
.wvp-inline-player {
	position: relative;
	width: 100%;
	line-height: 0;
	border-radius: 16px;
	overflow: hidden;
}

/* ── Video element & Plyr container ── */
.wvp-inline-player video.wvp-inline-video,
.wvp-inline-player .plyr {
	width: 100%;
	max-height: 70vh;
	display: block;
	object-fit: contain;
	background: #000;
	border-radius: 0; /* parent already clips corners */
}

.wvp-inline-player .plyr--fullscreen-fallback {
	border-radius: 0;
}

/* ── Expand-to-popup button ── */
.wvp-expand-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 10;
	background: rgba(0, 0, 0, 0.55);
	border: none;
	border-radius: 8px;
	padding: 7px 9px;
	cursor: pointer;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.2s ease, background 0.2s ease;
	line-height: 0;
}

.wvp-expand-btn:hover,
.wvp-expand-btn:focus-visible {
	background: rgba(0, 0, 0, 0.8);
	outline: none;
}

/* Show on hover (desktop), always visible on mobile */
.wvp-inline-player:hover .wvp-expand-btn {
	opacity: 1;
}

@media (max-width: 768px) {
	.wvp-expand-btn {
		opacity: 1;
	}
}

.wvp-expand-btn svg {
	width: 18px;
	height: 18px;
	display: block;
}
