/* Blue Sky inline video player (bsy-vid)
   Collapsed: compact 16:10 cropped preview card.
   Expanded (.is-open): grows in place to full 9:16 and plays inline. */

/* The Elementor html-widget wrapper computes height:0 in these flex sections,
   letting following sections overlap the card - force it to wrap its content. */
.elementor-widget:has(> .elementor-widget-container > .bsy-vid) {
	height: auto !important;
	min-height: 0;
}

.bsy-vid {
	--bsy-v-primary: #0B3754;
	--bsy-v-secondary: #009FE3;
	--bsy-v-accent: #83D0F5;
	position: relative;
	width: min(680px, 100%);
	margin: 0 auto;
	border-radius: 18px;
	overflow: hidden;
	background: #000;
	box-shadow: 0 14px 36px rgba(11, 55, 84, 0.18);
	cursor: pointer;
	transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1), border-radius 0.3s ease;
}
/* Height comes from a padded pseudo-element (ratio = padding-top % of width):
   16:10 preview -> 9:16 when open. Unlike aspect-ratio, this always
   contributes layout height inside Elementor's flex wrappers, and the
   transition animates the expansion smoothly. */
.bsy-vid::before {
	content: "";
	display: block;
	padding-top: 62.5%;
	transition: padding-top 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.bsy-vid.is-open {
	width: min(420px, 92vw, calc(78vh * 9 / 16));
	cursor: default;
}
.bsy-vid.is-open::before { padding-top: 177.78%; }
.bsy-vid video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* crop from the top of the frame in the preview state, not the middle */
	object-position: top center;
	display: block;
}

/* preview shade + play pill */
.bsy-vid__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(11, 55, 84, 0) 40%, rgba(11, 55, 84, 0.55) 100%);
	transition: opacity 0.3s ease;
	pointer-events: none;
}
.bsy-vid.is-open .bsy-vid__shade { opacity: 0; }
/* The theme/global button reset restyles bare <button>s (transparent bg, borders,
   full width) - assert every visual property so the pill survives it. */
.bsy-vid button.bsy-vid__play {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: inline-flex !important;
	width: auto !important;
	height: auto !important;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 13px 26px !important;
	margin: 0 !important;
	border: 0 !important;
	outline: 0;
	border-radius: 999px !important;
	background: var(--bsy-v-secondary, #009FE3) !important;
	color: #fff !important;
	font-family: var(--e-global-typography-accent-font-family, "century-gothic"), sans-serif !important;
	font-weight: 700 !important;
	font-size: 0.8125rem !important;
	line-height: 1 !important;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: 0 10px 28px rgba(0, 159, 227, 0.45) !important;
	transition: transform 0.2s ease, background 0.2s ease, opacity 0.25s ease;
}
.bsy-vid button.bsy-vid__play svg { display: block; flex: 0 0 auto; }
.bsy-vid:hover button.bsy-vid__play { transform: translate(-50%, -50%) scale(1.05); background: #00B8FF !important; }
.bsy-vid.is-open button.bsy-vid__play { opacity: 0; pointer-events: none; }

/* close (collapse) */
.bsy-vid button.bsy-vid__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 34px !important;
	height: 34px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: rgba(11, 55, 84, 0.65) !important;
	color: #fff !important;
	font-size: 16px !important;
	line-height: 34px !important;
	text-align: center;
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, background 0.2s ease;
	z-index: 3;
	box-shadow: none !important;
}
.bsy-vid.is-open button.bsy-vid__close { opacity: 1; pointer-events: auto; }
.bsy-vid button.bsy-vid__close:hover { background: rgba(11, 55, 84, 0.9) !important; }

/* custom control bar (overlaid) */
.bsy-vid__controls {
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 10px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(11, 55, 84, 0.72);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
	z-index: 2;
}
.bsy-vid.is-open .bsy-vid__controls { opacity: 1; pointer-events: auto; }
.bsy-vid.is-open.is-idle .bsy-vid__controls { opacity: 0; pointer-events: none; }
.bsy-vid button.bsy-vid__btn {
	flex: 0 0 auto;
	width: 30px !important;
	height: 30px !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: transparent !important;
	color: #fff !important;
	cursor: pointer;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
	margin: 0 !important;
	line-height: 1 !important;
	box-shadow: none !important;
	transition: background 0.15s ease;
}
.bsy-vid button.bsy-vid__btn:hover { background: rgba(255, 255, 255, 0.15) !important; }
.bsy-vid button.bsy-vid__btn svg { display: block; }
.bsy-vid__bar {
	flex: 1 1 auto;
	height: 5px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.25);
	position: relative;
	cursor: pointer;
}
.bsy-vid__bar-fill {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 0%;
	border-radius: 999px;
	background: var(--bsy-v-accent);
}
.bsy-vid__time {
	flex: 0 0 auto;
	color: #fff;
	font-family: var(--e-global-typography-accent-font-family, "century-gothic"), sans-serif;
	font-size: 0.6875rem;
	letter-spacing: 0.06em;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}
@media (max-width: 480px) {
	.bsy-vid { width: 100%; }
	.bsy-vid__time { display: none; }
}
