.bvp-overlay {
	position: fixed;
	inset: 0;
	background: rgba(10, 10, 15, 0.72);
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(3px);
	padding: 16px;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, "Vazirmatn", "IRANSans", sans-serif;
}
.bvp-overlay.bvp-visible {
	display: flex;
	animation: bvp-fade-in .25s ease;
}
@keyframes bvp-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

.bvp-popup {
	position: relative;
	width: 380px;
	max-width: 100%;
	background: #0e0e12;
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0,0,0,.45);
	aspect-ratio: 9 / 16;
	display: flex;
	flex-direction: column;
	animation: bvp-pop-in .3s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes bvp-pop-in {
	from { transform: scale(.92); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

.bvp-overlay.bvp-inline-mode {
	position: relative;
	inset: auto;
	background: none;
	backdrop-filter: none;
	padding: 0;
	display: flex;
}

.bvp-close {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 5;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: none;
	background: rgba(255,255,255,.9);
	color: #222;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform .15s ease, background .15s ease;
}
.bvp-close:hover {
	background: #fff;
	transform: scale(1.06);
}

.bvp-progress {
	position: absolute;
	top: 16px;
	right: 56px;
	left: 56px;
	height: 4px;
	border-radius: 4px;
	background: rgba(255,255,255,.35);
	z-index: 5;
	overflow: hidden;
}
.bvp-progress-bar {
	height: 100%;
	width: 0%;
	background: var(--bvp-accent, #3b82f6);
	border-radius: 4px;
	transition: width .15s linear;
}

.bvp-video-wrap {
	position: relative;
	flex: 1 1 auto;
	background: #000;
	overflow: hidden;
	min-height: 0;
}
.bvp-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	cursor: pointer;
}

.bvp-questions {
	position: relative;
	z-index: 4;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px;
	margin-top: -86px;
	background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 35%, rgba(0,0,0,.72) 100%);
}

/* ---------------------------------------------------------
   Question buttons — base (shared) styles
--------------------------------------------------------- */
.bvp-question {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	color: #fff;
	border-radius: 999px;
	padding: 11px 17px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.5;
	text-align: right;
	cursor: pointer;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	font-family: inherit;
	isolation: isolate;
	overflow: hidden;
	transition: transform .18s cubic-bezier(.2,.8,.3,1),
	            box-shadow .18s ease,
	            border-color .18s ease,
	            background .18s ease;
}

/* subtle top sheen for a premium glass feel, works across all variants */
.bvp-question::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient( to bottom, rgba(255,255,255,.16), rgba(255,255,255,0) 55% );
	opacity: .6;
	pointer-events: none;
	z-index: -1;
}

.bvp-question:hover {
	transform: translateY(-2px);
}
.bvp-question:active {
	transform: translateY(0) scale(.985);
}
.bvp-question:focus-visible {
	outline: 2px solid var(--bvp-accent, #3b82f6);
	outline-offset: 2px;
}

.bvp-question-text {
	flex: 1;
}

.bvp-check {
	flex-shrink: 0;
	width: 19px;
	height: 19px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: #e11d2e;
	opacity: 0;
	transform: scale(.4) rotate(-20deg);
	transition: opacity .25s cubic-bezier(.2,.8,.3,1.4), transform .25s cubic-bezier(.2,.8,.3,1.4);
	box-shadow: 0 0 0 3px rgba(225,29,46,.18);
}
.bvp-question.bvp-watched .bvp-check {
	opacity: 1;
	transform: scale(1) rotate(0deg);
}

/* ---------------------------------------------------------
   Variant 1 — Outline (glass fill + colored border) — default/recommended
--------------------------------------------------------- */
.bvp-btn-style-outline .bvp-question {
	background: rgba(255,255,255,.12);
	border: var(--bvp-btn-border-width, 2px) solid var(--bvp-btn-border, rgba(255,255,255,.3));
	box-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.bvp-btn-style-outline .bvp-question:hover {
	background: rgba(255,255,255,.19);
	border-color: var(--bvp-btn-border, #3b82f6);
	box-shadow: 0 4px 18px -4px var(--bvp-btn-border, #3b82f6);
}
.bvp-btn-style-outline .bvp-question.bvp-active {
	background: rgba(255,255,255,.24);
	border-color: var(--bvp-btn-border, #3b82f6);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--bvp-btn-border, #3b82f6) 30%, transparent),
	            0 4px 18px -4px var(--bvp-btn-border, #3b82f6);
}

/* ---------------------------------------------------------
   Variant 2 — Glass (minimal, borderless, frosted)
--------------------------------------------------------- */
.bvp-btn-style-glass .bvp-question {
	background: rgba(255,255,255,.10);
	border: var(--bvp-btn-border-width, 1px) solid rgba(255,255,255,.14);
}
.bvp-btn-style-glass .bvp-question:hover {
	background: rgba(255,255,255,.17);
}
.bvp-btn-style-glass .bvp-question.bvp-active {
	background: rgba(255,255,255,.22);
	border-color: var(--bvp-btn-border, rgba(255,255,255,.4));
}

/* ---------------------------------------------------------
   Variant 3 — Solid (filled with brand color)
--------------------------------------------------------- */
.bvp-btn-style-solid .bvp-question {
	background: var(--bvp-btn-border, var(--bvp-accent, #3b82f6));
	border: var(--bvp-btn-border-width, 0px) solid rgba(255,255,255,.35);
	box-shadow: 0 4px 14px -4px color-mix(in srgb, var(--bvp-btn-border, #3b82f6) 70%, transparent);
}
.bvp-btn-style-solid .bvp-question:hover {
	filter: brightness(1.08);
	box-shadow: 0 6px 20px -4px color-mix(in srgb, var(--bvp-btn-border, #3b82f6) 80%, transparent);
}
.bvp-btn-style-solid .bvp-question.bvp-active {
	filter: brightness(1.12);
	box-shadow: 0 0 0 3px rgba(255,255,255,.35);
}

.bvp-brand {
	position: relative;
	z-index: 4;
	display: flex;
	justify-content: center;
	padding: 10px 0 14px;
	background: rgba(0,0,0,.72);
}
.bvp-brand-pill {
	display: inline-flex;
	align-items: center;
	padding: 6px 22px;
	border: 1.5px solid var(--bvp-accent, #3b82f6);
	border-radius: 999px;
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .5px;
}
.bvp-brand-logo {
	max-height: 28px;
	width: auto;
}

/* Manual trigger button default look (site can override) */
.bvp-manual-trigger {
	display: inline-block;
	padding: 10px 22px;
	border-radius: 999px;
	border: none;
	background: #3b82f6;
	color: #fff;
	font-size: 14px;
	cursor: pointer;
	font-family: inherit;
}

body.bvp-no-scroll {
	overflow: hidden;
}

@media (max-width: 480px) {
	.bvp-popup {
		width: 100% !important;
	}
	.bvp-progress {
		right: 48px;
		left: 48px;
	}
}
