/* ── PSP Video Player (Plyr) ─────────────────────────────────────────────── */

/* Large centered overlay play button */
.plyr__control--overlaid {
	background-image: url('../svg/play-button.svg') !important;
	background-color: transparent !important;
	background-size: contain !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	border: none !important;
	box-shadow: none !important;
	width: 100px !important;
	height: 100px !important;
	padding: 0 !important;
	border-radius: 0 !important;
	transition: opacity 0.05s ease, transform 0.05s ease !important;
}

.plyr__control--overlaid:hover {
	background-color: transparent !important;
	background-image: url('../svg/play-button.svg') !important;
	opacity: 0.88;
	transform: translate(-50%, -50%) scale(1.06) !important;
}

/* Hide the default SVG icon inside the overlay button */
.plyr__control--overlaid svg {
	display: none;
}

/* Re-show poster on pause to cover YouTube's native title/recommendation UI */
.plyr--youtube.plyr--paused.plyr__poster-enabled:not(.plyr--stopped) .plyr__poster {
	display: block !important;
	opacity: 1 !important;
}

/* Cover YouTube's title/info overlay during playback with a gradient mask */
.plyr--youtube .plyr__video-wrapper::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 90px;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
	z-index: 2;
	pointer-events: none;
}

/* pointer-events on the iframe left as default (auto) — blocking it prevented
   touch-initiated playback on iOS Safari, which requires a gesture on the iframe itself. */

/* Tap-to-pause overlay — invisible div covering the video area.
   Inactive (pointer-events:none) while paused/stopped so Plyr's own poster
   and overlaid play button handle the first tap. Activates once playing. */
.psp-video-tap {
	position: absolute;
	inset: 0;
	z-index: 2;
	cursor: pointer;
}

/* Hide bottom control bar on load when minimal mode is active; revealed on first play */
.psp-video-minimal .plyr__controls {
	display: none !important;
}

/* CC button: hidden on all PSP players unless explicitly enabled per-player */
.psp-video-wrap .plyr [data-plyr="captions"] {
	display: none !important;
}
.psp-video-wrap .plyr.psp-cc-enabled [data-plyr="captions"] {
	display: inline-block !important;
}

/* Control bar accent color */
.plyr--full-ui input[type=range] {
	color: #A25E47;
}

.plyr--video .plyr__control.plyr__tab-focus,
.plyr--video .plyr__control:hover,
.plyr--video .plyr__control[aria-expanded=true] {
	background: #A25E47;
}
