/* Video thumbnails with the Figma play button (inc/features/video-thumbs.php). */

.dt-vthumb {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #000;
	border-radius: inherit;
	container-type: inline-size;
}

.dt-vthumb > video,
.dt-vthumb > img,
.dt-vthumb > iframe {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	margin: 0;
	border: 0;
	object-fit: cover;
	display: block;
}

.dt-vthumb.is-playing > video {
	object-fit: contain;
}

/* The button */
.dt-vthumb__play,
.elementor-widget-video .elementor-custom-embed-play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: clamp(48px, 17cqi, 96px);
	height: auto;
	aspect-ratio: 1;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transform: translate(-50%, -50%);
	transition: transform 0.2s ease, filter 0.2s ease;
	filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.45));
	z-index: 2;
}

.dt-vthumb__play svg {
	display: block;
	width: 100%;
	height: 100%;
}

.dt-vthumb__ring {
	fill: rgba(20, 0, 0, 0.4);
	stroke: #00e7fd;
	transition: fill 0.2s ease;
}

.dt-vthumb__tri {
	fill: #00e7fd;
}

.dt-vthumb__play:hover,
.dt-vthumb__play:focus-visible,
.elementor-widget-video .elementor-custom-embed-image-overlay:hover .elementor-custom-embed-play {
	transform: translate(-50%, -50%) scale(1.07);
	filter: drop-shadow(0 0 18px rgba(0, 231, 253, 0.45));
}

.dt-vthumb__play:hover .dt-vthumb__ring,
.dt-vthumb__play:focus-visible .dt-vthumb__ring {
	fill: rgba(0, 231, 253, 0.12);
}

.dt-vthumb__play:focus-visible {
	outline: 2px solid #b1fd00;
	outline-offset: 4px;
}

.dt-vthumb.is-playing .dt-vthumb__play,
.dt-vthumb.is-playing .dt-vthumb__title {
	display: none;
}

/* Live title over the thumbnail (Figma: white, "the song" cyan). */
.dt-vthumb__title {
	position: absolute;
	top: 5%;
	left: 4%;
	right: 4%;
	margin: 0;
	z-index: 1;
	font-family: 'Montserrat', sans-serif;
	font-weight: 800;
	font-size: clamp(12px, 4.9cqi, 48px);
	white-space: nowrap;
	line-height: 1.05;
	letter-spacing: -0.01em;
	text-align: center;
	text-transform: uppercase;
	color: #fff;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
	pointer-events: none;
}

.dt-vthumb__title span {
	color: #00e7fd;
}

/* Elementor video widgets with an image overlay: same button. */
.elementor-widget-video .elementor-custom-embed-image-overlay {
	container-type: inline-size;
}

.elementor-widget-video .elementor-custom-embed-play {
	width: clamp(48px, 15cqi, 88px);
	background: url("../img/play-button.svg") center / contain no-repeat;
	opacity: 1;
}

.elementor-widget-video .elementor-custom-embed-play > * {
	display: none !important;
}
