/**
 * Orphit Video Play – Premium-Play-Button-Overlay auf Bricks-Videos (.brxe-video).
 * Gehoert zu includes/class-orphit-video-play.php.
 */

.brxe-video { position: relative; }
.orphit-video-play {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	z-index: 5;
	width: 88px; height: 88px;
	padding: 0; margin: 0;
	border: none; border-radius: 50%;
	background: none; cursor: pointer;
	color: #fff;
	display: grid; place-items: center;
	transition: opacity .35s ease, transform .2s ease;
}
.orphit-video-play__ring {
	width: 100%; height: 100%;
	border-radius: 50%;
	background: rgba(15, 24, 28, .55);
	backdrop-filter: blur(1.5px);
	-webkit-backdrop-filter: blur(1.5px);
	border: 1px solid rgba(255, 255, 255, .35);
	box-shadow: 0 10px 34px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255,255,255,.08);
	display: grid; place-items: center;
	position: relative;
	transition: background .25s ease, transform .2s ease, box-shadow .25s ease;
}
.orphit-video-play__ring::before {
	content: "";
	position: absolute;
	inset: -6px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .5);
	opacity: 0;
	animation: orphit-vp-pulse 2.6s ease-out infinite;
}
.orphit-video-play:hover .orphit-video-play__ring,
.orphit-video-play:focus-visible .orphit-video-play__ring {
	transform: scale(1.08);
	background: rgba(60, 140, 140, .82);
	box-shadow: 0 12px 40px rgba(0, 0, 0, .5), 0 0 0 4px rgba(255, 255, 255, .18);
}
.orphit-video-play:focus-visible { outline: none; }
.orphit-video-play svg {
	width: 34px; height: 34px;
	margin-left: 4px; /* optische Zentrierung des Dreiecks */
	display: block;
	filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
}
.orphit-video-play--hidden { opacity: 0; pointer-events: none; }
@keyframes orphit-vp-pulse {
	0%   { transform: scale(1);    opacity: .55; }
	70%  { transform: scale(1.6);  opacity: 0;   }
	100% { transform: scale(1.6);  opacity: 0;   }
}
@media (prefers-reduced-motion: reduce) {
	.orphit-video-play__ring::before { animation: none; opacity: .35; }
	.orphit-video-play { transition: opacity .35s ease; }
}
@media (max-width: 575px) {
	.orphit-video-play { width: 68px; height: 68px; }
	.orphit-video-play svg { width: 26px; height: 26px; }
}

/* ── Endzustand nach Abspielen (Überbleibsel beim Weiterscrollen) ─────── */
.orphit-video-endcard {
	position: absolute;
	inset: 0;
	z-index: 4;
	background: #fff;
	display: none;
	align-items: center;
	justify-content: center;
}
.orphit-video-endcard.is-visible { display: flex; }
.orphit-video-endcard svg {
	width: 58%;
	max-width: 240px;
	height: auto;
	display: block;
}

/* ── Maximize-Overlay (Doppelklick; kein natives Fullscreen) ─────────── */
.orphit-video-maximize {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0, 0, 0, .96);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: zoom-out;
	animation: orphit-vp-fade .25s ease;
}
.orphit-video-maximize video {
	max-width: 100vw;
	max-height: 100vh;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	border-radius: 4px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
	cursor: pointer;
}
.orphit-video-maximize__close {
	position: absolute;
	top: 14px; right: 14px;
	z-index: 2;
	width: 46px; height: 46px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .35);
	background: rgba(0, 0, 0, .55);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	color: #fff;
	cursor: pointer;
	display: grid; place-items: center;
	padding: 0;
	transition: background .2s ease, transform .2s ease;
}
.orphit-video-maximize__close:hover,
.orphit-video-maximize__close:focus-visible {
	background: rgba(60, 140, 140, .85);
	transform: scale(1.08);
}
.orphit-video-maximize__close svg {
	width: 20px; height: 20px;
	display: block;
}
@keyframes orphit-vp-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.orphit-video-maximize { animation: none; }
}
