/* Portfolio Videos — hover preview, play icon, infinite-scroll helpers */

.pv-video-thumbnail-wrapper {
	position: relative;
	overflow: hidden;
	background-color: transparent !important;
}

.pv-video-thumbnail-wrapper.pv-is-previewing .pv-video-thumbnail,
.pv-video-thumbnail-wrapper.pv-is-previewing .pv-video-thumbnail-placeholder {
	opacity: 1 !important;
	filter: none !important;
	visibility: visible !important;
	transform: none !important;
}

.pv-video-thumbnail-wrapper.pv-is-previewing .pv-play-button-overlay {
	opacity: 0 !important;
	visibility: hidden !important;
}

.pv-play-button-overlay {
	transition: opacity 0.2s ease;
}

.pv-play-button-overlay .pv-play-icon,
.pv-play-button-overlay .pv-play-button.pv-play-icon {
	display: block;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
	position: relative;
}

.pv-play-button-overlay .pv-play-icon::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-40%, -50%);
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 10px 0 10px 16px;
	border-color: transparent transparent transparent #111;
}

.pv-video-card:hover .pv-play-button-overlay {
	opacity: 1;
}

/* Hover: thumbnail stays; iframe fades in on top when buffered */
.pv-hover-preview-host {
	position: absolute;
	inset: 0;
	z-index: 4;
	overflow: hidden;
	pointer-events: none;
	background: transparent !important;
}

.pv-hover-preview-loader {
	position: absolute;
	right: 10px;
	bottom: 10px;
	z-index: 6;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.45);
	border-radius: 50%;
	pointer-events: none;
}

.pv-hover-preview-spinner {
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: pv-hover-spin 0.55s linear infinite;
}

@keyframes pv-hover-spin {
	to {
		transform: rotate(360deg);
	}
}

.pv-hover-iframe-crop {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 280%;
	height: 280%;
	transform: translate(-50%, -54%);
	overflow: hidden;
	pointer-events: none;
}

.pv-hover-iframe {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	border: none;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease;
	transform: scale(1.22);
	transform-origin: center center;
}

.pv-hover-preview-host.is-ready .pv-hover-iframe {
	opacity: 1;
}

.pv-infinite-loading-hint {
	text-align: center;
	padding: 12px;
	color: #888;
	font-size: 0.9em;
}

.pv-load-more-wrapper {
	margin-top: 20px;
}
