/* =========================================================================
 * Vídeo Destaque — estilos do front (visual preservado da v3.2).
 * ====================================================================== */

/* ---- Faixa de vídeos do produto (carrossel inline) ---- */
.vdp-reels { margin: 20px 0; }
.vdp-reels-title { font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.vdp-reels-viewport { position: relative; }
.vdp-reels-track {
	display: flex; align-items: center; gap: 10px;
	overflow-x: auto; scroll-behavior: smooth;
	scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px;
}
.vdp-reels-track::-webkit-scrollbar { display: none; }
.vdp-reel {
	position: relative; flex: 0 0 auto; width: 96px; aspect-ratio: 9/16;
	border: 0; padding: 0; border-radius: 10px; overflow: hidden;
	background: #000; cursor: pointer;
}
.vdp-reel video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vdp-reel-play {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	width: 34px; height: 34px; border-radius: 50%;
	background: rgba(255, 255, 255, .85); transition: opacity .15s;
}
.vdp-reel-play:before {
	content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
	border-style: solid; border-width: 7px 0 7px 12px;
	border-color: transparent transparent transparent #111;
}
/* o vídeo que está tocando apenas não mostra o botão de play */
.vdp-reel.is-active .vdp-reel-play { display: none; }
/* botão de som: aparece só no vídeo que está tocando */
.vdp-reel-mute {
	position: absolute; bottom: 6px; right: 6px; z-index: 3; display: none;
	width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, .6);
	color: #fff; align-items: center; justify-content: center;
	font-size: 13px; line-height: 1; cursor: pointer;
}
.vdp-reel-mute:before { content: "\1F507"; }            /* mudo */
.vdp-reel.is-sound .vdp-reel-mute:before { content: "\1F50A"; } /* com som */
.vdp-reel.is-active .vdp-reel-mute { display: flex; }
.vdp-reels-arrow {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
	width: 30px; height: 30px; border: 0; border-radius: 50%; background: #fff;
	box-shadow: 0 1px 6px rgba(0, 0, 0, .25); cursor: pointer;
	font-size: 14px; line-height: 30px; color: #111; padding: 0;
}
.vdp-reels-prev { left: -6px; }
.vdp-reels-next { right: -6px; }
.vdp-reels-arrow[hidden] { display: none; }

/* ---- Variante SPOTLIGHT: centralizado + ativo maior ---- */
.vdp-reels--spotlight .vdp-reels-title { text-align: center; }
.vdp-reels--spotlight .vdp-reels-viewport { max-width: var(--vdp-spot-w, 100%); margin: 0 auto; }
/* reserva a altura do tile em destaque (largura * 16/9) para não pular ao crescer */
.vdp-reels--spotlight .vdp-reels-track { min-height: calc(var(--vdp-spot-active, 160px) * 16 / 9 + 4px); }
.vdp-reels--spotlight .vdp-reel { width: var(--vdp-spot-base, 96px); transition: width .25s ease, box-shadow .25s ease; }
/* espaçadores permitem centralizar o primeiro e o último vídeo */
.vdp-reels--spotlight .vdp-reels-track::before,
.vdp-reels--spotlight .vdp-reels-track::after { content: ""; flex: 0 0 calc(50% - var(--vdp-spot-active, 160px) / 2); }
.vdp-reels--spotlight .vdp-reel.is-active {
	width: var(--vdp-spot-active, 160px); z-index: 1; box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
}

/* ---- Vídeo flutuante ---- */
.vdp-floating { position: fixed; z-index: 99990; transition: width .25s ease, height .25s ease; }
.vdp-floating .vdp-float-inner {
	position: relative; width: 100%; height: 100%; background: #000;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .35); overflow: hidden; transition: border-radius .25s ease;
}
.vdp-floating .vdp-float-video { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }

/* ---- Feed vertical do flutuante ---- */
.vdp-floating .vdp-float-viewport { position: relative; width: 100%; height: 100%; overflow: hidden; }
.vdp-floating .vdp-float-slide {
	position: absolute; inset: 0; will-change: transform, opacity;
	transition: transform .45s cubic-bezier(.22, .61, .36, 1), opacity .45s ease;
}
.vdp-floating .vdp-float-slide video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vdp-floating .vdp-float-arrow {
	position: absolute; left: 50%; transform: translateX(-50%); z-index: 4; display: none;
	width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55);
	color: #fff; cursor: pointer; font-size: 13px; line-height: 1; padding: 0;
	align-items: center; justify-content: center; backdrop-filter: blur(2px);
}
.vdp-floating .vdp-float-prev { top: 10px; }
.vdp-floating .vdp-float-next { bottom: 10px; }
.vdp-floating.vdp-expanded.vdp-has-feed .vdp-float-arrow { display: flex; }
@media (prefers-reduced-motion: reduce) {
	.vdp-floating .vdp-float-slide { transition: none; }
}
.vdp-floating .vdp-float-close {
	position: absolute; top: -8px; right: -8px; z-index: 3; width: 24px; height: 24px;
	line-height: 22px; text-align: center; border: 0; border-radius: 50%;
	background: rgba(0, 0, 0, .8); color: #fff; cursor: pointer; font-size: 16px; padding: 0;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
}
.vdp-floating .vdp-float-mute {
	position: absolute; bottom: 6px; left: 6px; z-index: 2; color: #fff; font-size: 14px;
	background: rgba(0, 0, 0, .55); border-radius: 50%; width: 24px; height: 24px;
	line-height: 24px; text-align: center; pointer-events: none;
}
.vdp-floating.vdp-collapsed { width: 96px; height: 96px; cursor: pointer; }
.vdp-floating.vdp-collapsed .vdp-float-inner { border-radius: 50%; }
.vdp-floating.vdp-expanded { width: 300px; height: 533px; }
.vdp-floating.vdp-expanded .vdp-float-inner { border-radius: 12px; }
.vdp-floating.vdp-expanded .vdp-float-video { cursor: default; }
.vdp-floating.vdp-expanded .vdp-float-mute { display: none; }

/* posição: lado */
.vdp-floating.vdp-h-right { right: 18px; }
.vdp-floating.vdp-h-left { left: 18px; }
.vdp-floating.vdp-h-left .vdp-float-close { right: auto; left: -8px; }
/* posição: altura */
.vdp-floating.vdp-v-bottom { bottom: 18px; }
.vdp-floating.vdp-v-middle { top: 50%; transform: translateY(-50%); }

@media (max-width: 480px) {
	.vdp-floating.vdp-expanded { width: 80vw; height: 142vw; max-height: 80vh; }
}

/* Acessibilidade: respeita quem pediu menos movimento. */
@media (prefers-reduced-motion: reduce) {
	.vdp-reels-track { scroll-behavior: auto; }
	.vdp-reel, .vdp-floating, .vdp-floating .vdp-float-inner { transition: none; }
}
