/* vd-front.css — Seção Vídeo Destaque (frontend) */

/* ── Section wrapper ── */
.vd-section {
	width: 100%;
	background-color: #fff; /* fallback; sobrescrito inline se admin definiu cor */
	padding: 60px 20px;
	box-sizing: border-box;
}

.vd-inner {
	max-width: 900px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

/* ── Textos ── */
.vd-titulo {
	margin: 0;
	font-size: clamp(1.5rem, 4vw, 2.4rem);
	font-weight: 700;
	text-align: center;
	color: var(--ttl, #111); /* usa variável do tema ou fallback */
}

.vd-subtitulo {
	margin: 0;
	font-size: clamp(1rem, 2.5vw, 1.2rem);
	text-align: center;
	color: var(--txt, #555); /* usa variável do tema ou fallback */
	max-width: 640px;
}

/* ── Player responsivo 16:9 ── */
.vd-player-wrap {
	width: 100%;
	position: relative;
}

/* Thumbnail lazy */
.vd-thumb {
	position: relative;
	width: 100%;
	padding-top: 56.25%; /* 16:9 */
	cursor: pointer;
	overflow: hidden;
	border-radius: 12px;
	background: #000;
	box-shadow: 0 8px 32px rgba(0,0,0,.18);
	transition: box-shadow .25s;
}
.vd-thumb:hover { box-shadow: 0 12px 40px rgba(0,0,0,.28); }
.vd-thumb:focus-visible { outline: 3px solid #4f46e5; outline-offset: 3px; }

.vd-thumb-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 12px;
	transition: transform .3s ease, opacity .3s;
	opacity: .92;
}
.vd-thumb:hover .vd-thumb-img { transform: scale(1.02); opacity: 1; }

/* Botão play ── */
.vd-play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 68px;
	height: 48px;
	transition: transform .2s ease;
	pointer-events: none;
}
.vd-thumb:hover .vd-play-btn { transform: translate(-50%, -50%) scale(1.12); }

.vd-play-bg   { fill: #ff0000; opacity: .9; transition: opacity .2s; }
.vd-thumb:hover .vd-play-bg { opacity: 1; }
.vd-play-arrow { fill: #fff; }

/* iframe wrapper ── */
.vd-iframe-wrap {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 32px rgba(0,0,0,.18);
}

.vd-iframe-wrap iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
}

/* ── Responsividade ── */
@media (max-width: 600px) {
	.vd-section { padding: 40px 16px; }
}
