/* wp-content/plugins/ceca-widgets/widgets/youtube-video/youtube-video.css */

/* Video facade in the homepage video-panel style: full column width, 16:9,
   poster (or branded plum placeholder with the logo-petal motif) and the
   circular brand play button. Doubled class specificity throughout —
   Elementor's global ".elementor img { height: auto }" must never win. */

.ceca-yv {
	--ceca-yv-play: var(--ceca-pink, #C65A93);

	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #1A1A1A;
	overflow: hidden;
}

.ceca-yv .ceca-yv__poster,
.ceca-yv iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	display: block;
	border: 0;
}

/* Branded placeholder: plum field with the two logo petals cropping at the
   foot, exactly like the generated report covers. */
.ceca-yv .ceca-yv__placeholder {
	position: absolute;
	inset: 0;
	display: block;
	background: var(--ceca-plum, #411024);
	overflow: hidden;
}

.ceca-yv .ceca-yv__placeholder::after {
	content: '';
	position: absolute;
	right: -10%;
	bottom: -35%;
	width: 55%;
	aspect-ratio: 24.4 / 19.1;
	background: rgba(255, 255, 255, 0.5);
	-webkit-mask-image: url('../../assets/cover-petals.svg');
	mask-image: url('../../assets/cover-petals.svg');
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
}

/* Play button: same circular brand button as the homepage banner (66px,
   pink, white arrow), centred. Explicit colours on every state. */
.ceca-yv .ceca-yv__play,
.ceca-yv .ceca-yv__play:hover,
.ceca-yv .ceca-yv__play:focus {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 66px;
	height: 66px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ceca-yv-play);
	color: #FFFFFF;
	cursor: pointer;
	transition: transform 0.2s ease;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
	z-index: 1;
}

.ceca-yv .ceca-yv__play:hover,
.ceca-yv .ceca-yv__play:focus-visible {
	transform: translate(-50%, -50%) scale(1.06);
}

.ceca-yv__play svg {
	width: 31px;
	height: 31px;
	margin-left: 4px;
}

.ceca-yv.is-playing .ceca-yv__play,
.ceca-yv.is-playing .ceca-yv__poster,
.ceca-yv.is-playing .ceca-yv__placeholder {
	display: none;
}

@media (max-width: 767px) {
	.ceca-yv .ceca-yv__play,
	.ceca-yv .ceca-yv__play:hover,
	.ceca-yv .ceca-yv__play:focus {
		width: 48px;
		height: 48px;
	}

	.ceca-yv__play svg {
		width: 22px;
		height: 22px;
		margin-left: 3px;
	}
}

.ceca-yv__notice {
	padding: 20px;
	background: #F3F3F3;
	border: 1px dashed #C4C4C4;
	font-size: 15px;
	line-height: 20px;
	color: #545454;
}

/* Phones: Elementor's flex column under-measures this widget (its
   aspect-ratio / stacked content is sized from an indefinite width), so
   the wrapper ends up shorter than its content and the next widgets paint
   over it. A block container measures it correctly; margins restore the
   container's row gap (user report via QA, 2026-10-02). */
@media (max-width: 767px) {
	.e-con-inner:has(> .elementor-widget-ceca-youtube-video),
	.e-con:has(> .elementor-widget-ceca-youtube-video) {
		display: block;
	}

	.e-con-inner:has(> .elementor-widget-ceca-youtube-video) > * + *,
	.e-con:has(> .elementor-widget-ceca-youtube-video) > * + * {
		margin-top: var(--row-gap, var(--widgets-spacing-row, 20px));
	}
}
