/**
 * Layout: logo top-center, text + button bottom-left, gradient, decorative top scallop.
 * Variables for fine tuning:
 *
 * .gs-plugin-pvo-wrap {
 *   --gs-pvo-logo-top: 5%;
 *   --gs-pvo-content-bottom: 10%;
 *   --gs-pvo-content-left: 5%;
 *   --gs-pvo-content-max-w: 22rem;
 * }
 */

.gs-plugin-pvo-wrap {
	position: relative;
	width: 100%;
	max-width: none;
	margin: 0 0 1.5rem;
	overflow: hidden;
	background: #0a0a0a;
	min-height: 14rem;

	--gs-pvo-logo-top: 5%;
	--gs-pvo-logo-max-w: min(22vw, 120px);
	--gs-pvo-content-bottom: 10%;
	--gs-pvo-content-left: 5%;
	--gs-pvo-content-max-w: min(92%, 26rem);
	--gs-pvo-content-gap: 1rem;
	--gs-pvo-mute-size: 2.5rem;
}

.gs-plugin-pvo-wrap--loaded {
	min-height: 0;
}

/* Decorative white scallop edge on top */
.gs-plugin-pvo-wrap::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 14px;
	z-index: 5;
	pointer-events: none;
	background: radial-gradient(
			ellipse 11px 7px at 50% 0,
			#fff 99%,
			transparent 100%
		)
		repeat-x 0 0 / 22px 14px;
	opacity: 0.98;
}

.gs-plugin-pvo-video {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: middle;
}

/* Gradient for better readability (bottom) */
.gs-plugin-pvo-wrap::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 55%;
	pointer-events: none;
	z-index: 1;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.72) 0%,
		rgba(0, 0, 0, 0.35) 45%,
		transparent 100%
	);
}

.gs-plugin-pvo-overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 2;
	box-sizing: border-box;
	padding: 1rem 0.75rem calc(var(--gs-pvo-mute-size) + 0.75rem);
}

/* Logo — top center */
.gs-plugin-pvo-logo {
	position: absolute;
	top: var(--gs-pvo-logo-top);
	left: 50%;
	transform: translateX(-50%);
	pointer-events: none;
	max-width: var(--gs-pvo-logo-max-w);
	z-index: 3;
}

.gs-plugin-pvo-logo-img {
	display: block;
	max-width: 100%;
	height: auto;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

/* Text + button — bottom left */
.gs-plugin-pvo-bar {
	position: absolute;
	left: var(--gs-pvo-content-left);
	bottom: var(--gs-pvo-content-bottom);
	transform: none;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--gs-pvo-content-gap);
	max-width: var(--gs-pvo-content-max-w);
	pointer-events: auto;
	text-align: left;
	z-index: 3;
}

.gs-plugin-pvo-heading {
	margin: 0;
	font-size: clamp(0.7rem, 2.2vw, 0.85rem);
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.25;
	text-transform: uppercase;
	color: #fff;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.gs-plugin-pvo-desc {
	margin: 0;
	font-size: clamp(0.9rem, 2.4vw, 1.05rem);
	line-height: 1.45;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.gs-plugin-pvo-desc p {
	margin: 0 0 0.4em;
}

.gs-plugin-pvo-desc p:last-child {
	margin-bottom: 0;
}

/* Button: white background, dark text */
.gs-plugin-pvo-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 0.15rem;
	padding: 0.65rem 1.35rem;
	background: #fff;
	color: #111;
	text-decoration: none;
	border-radius: 2px;
	font-weight: 600;
	font-size: clamp(0.8rem, 2vw, 0.9rem);
	letter-spacing: 0.02em;
	white-space: nowrap;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
	transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.gs-plugin-pvo-button:hover,
.gs-plugin-pvo-button:focus {
	background: #f5f5f5;
	color: #000;
	outline: none;
}

.gs-plugin-pvo-button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* Mute — bottom left corner */
.gs-plugin-pvo-mute {
	position: absolute;
	left: 0.5rem;
	bottom: 0.5rem;
	z-index: 6;
	width: var(--gs-pvo-mute-size);
	height: var(--gs-pvo-mute-size);
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	cursor: pointer;
	pointer-events: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(4px);
	transition: background 0.2s ease, transform 0.15s ease;
}

.gs-plugin-pvo-mute:hover,
.gs-plugin-pvo-mute:focus {
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	outline: none;
}

.gs-plugin-pvo-mute:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.gs-plugin-pvo-mute svg {
	width: 1.15rem;
	height: 1.15rem;
	display: block;
	fill: currentColor;
}

@media (max-width: 600px) {
	.gs-plugin-pvo-bar {
		max-width: calc(100% - 1.25rem);
	}

	.gs-plugin-pvo-button {
		width: 100%;
		max-width: 100%;
		text-align: center;
		justify-content: center;
	}
}
