/* Galeria de vídeos: [galeria_videos]
 * Todo seletor usa classes próprias com o prefixo "stv-",
 * para não interferir no tema nem em outros plugins (e vice-versa).
 */
.stv-galeria,.stv-player{
	--stv-accent:#c8102e;      /* vermelho da marca */
	--stv-ink:#1f1f1f;
	--stv-muted:#6b6b6b;
	--stv-line:#e6e6e6;
}
[class^="stv-"],[class*=" stv-"],
[class^="stv-"]::before,[class*=" stv-"]::before,
[class^="stv-"]::after,[class*=" stv-"]::after{box-sizing:border-box}
[class^="stv-"][hidden],[class*=" stv-"][hidden]{display:none!important}

.stv-galeria{width:100%;color:var(--stv-ink)}

/* ---------- Abas ---------- */
.stv-galeria .stv-tabs{
	position:relative;display:flex;gap:8px;
	margin:0 0 22px;padding:2px;
	overflow-x:auto;scrollbar-width:none;overscroll-behavior-x:contain;
}
.stv-galeria .stv-tabs::-webkit-scrollbar{display:none}
/* Centraliza quando cabe; se não couber, rola normalmente a partir da 1ª aba */
.stv-galeria .stv-tab:first-child{margin-left:auto}
.stv-galeria .stv-tab:last-child{margin-right:auto}
.stv-galeria button.stv-tab{
	appearance:none;-webkit-appearance:none;
	flex:0 0 auto;display:inline-flex;align-items:center;gap:8px;
	margin:0;padding:10px 16px;min-height:0;
	border:1px solid var(--stv-line);border-radius:999px;
	background:#fff;color:var(--stv-ink);box-shadow:none;
	font:inherit;font-size:14px;font-weight:600;line-height:1;letter-spacing:0;text-transform:none;
	white-space:nowrap;cursor:pointer;
	transition:background-color .2s ease,color .2s ease,border-color .2s ease;
}
.stv-galeria .stv-tab__label{display:inline;font:inherit;color:inherit}
.stv-galeria .stv-tab__count{
	display:inline-block;padding:3px 7px;border-radius:999px;
	background:#f1f1f1;color:var(--stv-muted);
	font-size:12px;font-weight:700;line-height:1.2;
	transition:background-color .2s ease,color .2s ease;
}
.stv-galeria button.stv-tab:hover,
.stv-galeria button.stv-tab:focus{background:#fff;color:var(--stv-ink);border-color:#bdbdbd}
.stv-galeria button.stv-tab--active,
.stv-galeria button.stv-tab--active:hover,
.stv-galeria button.stv-tab--active:focus{background:var(--stv-ink);color:#fff;border-color:var(--stv-ink)}
.stv-galeria .stv-tab--active .stv-tab__count{background:var(--stv-accent);color:#fff}
.stv-galeria button.stv-tab:focus-visible{outline:2px solid var(--stv-accent);outline-offset:2px}

/* ---------- Contagem ---------- */
.stv-galeria .stv-total{
	margin:0 0 12px;padding:0;text-align:center;
	font-size:13px;font-weight:600;line-height:1.4;letter-spacing:.04em;text-transform:uppercase;color:var(--stv-muted);
}

/* ---------- Grade de cards verticais (6 por linha no computador) ---------- */
.stv-galeria .stv-grid{
	display:grid;gap:16px;
	grid-template-columns:repeat(3,minmax(0,1fr));
}
@media (min-width:1100px){
	.stv-galeria .stv-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
}
@media (min-width:768px){
	.stv-galeria a.stv-card.stv-card--extra{display:none}
}
.stv-galeria a.stv-card{
	position:relative;display:block;isolation:isolate;
	aspect-ratio:9/16;overflow:hidden;border-radius:16px;
	background:#151515;color:#fff;text-decoration:none;
	box-shadow:0 1px 2px rgba(0,0,0,.08);
	transition:box-shadow .25s ease,transform .25s ease;
}
.stv-galeria a.stv-card:hover,.stv-galeria a.stv-card:focus{color:#fff;text-decoration:none}
.stv-galeria a.stv-card:hover{box-shadow:0 12px 28px rgba(0,0,0,.18);transform:translateY(-2px)}
.stv-galeria a.stv-card:focus-visible{outline:3px solid var(--stv-accent);outline-offset:3px}
.stv-galeria .stv-card__poster{
	position:absolute;inset:0;z-index:-1;
	width:100%;height:100%;max-width:none;margin:0;
	border:0;border-radius:0;box-shadow:none;object-fit:cover;
	transition:transform .5s ease;
}
.stv-galeria a.stv-card:hover .stv-card__poster{transform:scale(1.05)}
.stv-galeria a.stv-card::after{
	content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
	background:linear-gradient(180deg,rgba(0,0,0,.45) 0%,rgba(0,0,0,0) 22%,rgba(0,0,0,0) 48%,rgba(0,0,0,.88) 100%);
}
.stv-galeria .stv-card__type{
	position:absolute;top:10px;left:10px;z-index:1;
	padding:5px 9px;border-radius:999px;
	background:var(--stv-accent);color:#fff;
	font-size:10.5px;font-weight:700;line-height:1;letter-spacing:.07em;text-transform:uppercase;
}
.stv-galeria .stv-card__count{
	position:absolute;top:10px;right:10px;z-index:1;
	display:inline-flex;align-items:center;gap:5px;
	padding:5px 8px;border-radius:999px;
	background:rgba(0,0,0,.55);color:#fff;
	font-size:11px;font-weight:700;line-height:1;white-space:nowrap;
}
.stv-galeria .stv-card__count-text{display:inline;font:inherit;color:inherit}
.stv-galeria .stv-card__count-icon{
	display:block;flex:0 0 12px;width:12px;height:12px;
	fill:none;stroke:currentColor;stroke-width:2.2;stroke-linejoin:round;
}
.stv-galeria .stv-card__play{
	position:absolute;top:50%;left:50%;z-index:1;
	width:54px;height:54px;margin:-27px 0 0 -27px;
	display:flex;align-items:center;justify-content:center;
	border:1.5px solid rgba(255,255,255,.75);border-radius:50%;
	background:rgba(255,255,255,.18);
	-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
	transition:background-color .2s ease,border-color .2s ease,transform .2s ease;
}
.stv-galeria .stv-card__play-icon{display:block;width:20px;height:20px;margin-left:3px;fill:#fff}
.stv-galeria a.stv-card:hover .stv-card__play{background:var(--stv-accent);border-color:var(--stv-accent);transform:scale(1.08)}
.stv-galeria .stv-card__info{
	position:absolute;left:0;right:0;bottom:0;z-index:1;
	display:flex;align-items:center;gap:10px;padding:14px 12px;
}
.stv-galeria .stv-card__avatar{
	flex:0 0 38px;width:38px;height:38px;max-width:none;margin:0;
	border:2px solid #fff;border-radius:50%;box-shadow:none;
	background:#fff;object-fit:contain;
}
.stv-galeria .stv-card__text{display:flex;flex-direction:column;gap:3px;min-width:0}
.stv-galeria .stv-card__title{
	display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
	margin:0;font-size:14px;font-weight:700;line-height:1.25;color:#fff;
}
.stv-galeria .stv-card__cta{font-size:12px;font-weight:500;line-height:1;color:rgba(255,255,255,.8)}

/* ---------- Botão "Ver mais vídeos" (computador) ---------- */
.stv-galeria .stv-more-wrap{display:flex;justify-content:center;margin-top:28px}
.stv-galeria button.stv-more{
	appearance:none;-webkit-appearance:none;
	display:inline-flex;align-items:center;justify-content:center;
	margin:0;padding:14px 32px;min-height:0;
	border:1.5px solid var(--stv-ink);border-radius:999px;
	background:#fff;color:var(--stv-ink);box-shadow:none;
	font:inherit;font-size:15px;font-weight:700;line-height:1;letter-spacing:0;text-transform:none;
	cursor:pointer;transition:background-color .2s ease,color .2s ease;
}
.stv-galeria button.stv-more:hover,
.stv-galeria button.stv-more:focus{background:var(--stv-ink);color:#fff;border-color:var(--stv-ink)}
.stv-galeria button.stv-more:focus-visible{outline:2px solid var(--stv-accent);outline-offset:2px}

/* ---------- Setas do carrossel (só celular) ---------- */
.stv-galeria .stv-nav{display:none}
.stv-galeria button.stv-arrow{
	appearance:none;-webkit-appearance:none;
	display:flex;align-items:center;justify-content:center;
	width:44px;height:44px;margin:0;padding:0;min-height:0;
	border:1px solid var(--stv-line);border-radius:50%;
	background:#fff;color:var(--stv-ink);box-shadow:0 1px 3px rgba(0,0,0,.06);
	cursor:pointer;transition:background-color .2s ease,color .2s ease,opacity .2s ease;
}
.stv-galeria button.stv-arrow:hover,
.stv-galeria button.stv-arrow:focus{background:#fff;color:var(--stv-ink);border-color:var(--stv-line)}
@media (hover:hover){
	.stv-galeria button.stv-arrow:hover:not(:disabled){color:var(--stv-accent);border-color:#bdbdbd}
}
.stv-galeria button.stv-arrow:focus-visible{outline:2px solid var(--stv-accent);outline-offset:2px}
.stv-galeria button.stv-arrow:disabled{opacity:.35;cursor:default;color:var(--stv-ink)}
.stv-galeria .stv-arrow__icon{
	display:block;width:20px;height:20px;
	fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;
}

@media (max-width:767px){
	/* Respiro de 16px nas laterais da tela */
	.stv-galeria{padding-left:16px;padding-right:16px}
	.stv-galeria .stv-tabs{margin-bottom:16px}
	.stv-galeria button.stv-tab{padding:9px 14px;font-size:13px}

	/* Carrossel: 2 cards por tela, rolagem por toque de 2 em 2 */
	.stv-galeria .stv-grid{
		display:flex;gap:12px;
		margin:0 -16px;padding:2px 16px 4px;
		overflow-x:auto;overflow-y:hidden;
		scroll-snap-type:x mandatory;scroll-padding:0 16px;
		scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;
	}
	.stv-galeria .stv-grid::-webkit-scrollbar{display:none}
	.stv-galeria a.stv-card{flex:0 0 calc((100% - 12px) / 2);border-radius:14px}
	.stv-galeria a.stv-card--snap{scroll-snap-align:start}
	.stv-galeria a.stv-card:hover{transform:none}
	.stv-galeria .stv-nav{display:flex;justify-content:center;gap:12px;margin-top:16px}
	.stv-galeria .stv-more-wrap{display:none}
	.stv-galeria .stv-card__play{width:46px;height:46px;margin:-23px 0 0 -23px}
	.stv-galeria .stv-card__play-icon{width:17px;height:17px}
	.stv-galeria .stv-card__info{gap:8px;padding:10px}
	.stv-galeria .stv-card__avatar{flex-basis:30px;width:30px;height:30px}
	.stv-galeria .stv-card__title{font-size:13px}
	.stv-galeria .stv-card__cta{display:none}
}

/* ===================== Player ===================== */
.stv-lock{overflow:hidden!important}
.stv-player{
	position:fixed;inset:0;z-index:2147483000;
	display:flex;align-items:center;justify-content:center;
	background:rgba(12,12,12,.9);
	-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
	opacity:0;transition:opacity .2s ease;
	font-family:inherit;
}
.stv-player.stv-player--open{opacity:1}
.stv-player .stv-player__box{
	position:relative;display:flex;
	width:min(1180px,94vw);height:min(740px,90vh);
	border-radius:18px;overflow:hidden;
	background:#000;box-shadow:0 30px 80px rgba(0,0,0,.5);
	transform:translateY(12px) scale(.985);transition:transform .25s ease;
}
.stv-player--open .stv-player__box{transform:none}

/* Palco do vídeo */
.stv-player .stv-player__stage{position:relative;flex:1;min-width:0;display:flex;flex-direction:column;overflow:hidden;background:#000}
.stv-player .stv-player__bg{
	position:absolute;inset:-60px;z-index:0;
	background:#000 center/cover no-repeat;
	filter:blur(40px) brightness(.4) saturate(1.2);
	transition:background-image .3s ease;
}
.stv-player .stv-player__top{position:relative;z-index:3;padding:14px 16px 10px;background:linear-gradient(rgba(0,0,0,.65),rgba(0,0,0,0))}

/* Barrinhas de progresso: uma por vídeo do produto */
.stv-player .stv-player__bars{display:flex;gap:4px}
.stv-player .stv-player__bar{display:block;flex:1;height:3px;border-radius:3px;background:rgba(255,255,255,.3);overflow:hidden}
.stv-player .stv-player__fill{
	display:block;width:100%;height:100%;background:#fff;
	transform:scaleX(0);transform-origin:left center;
}
/* Só anima enquanto o vídeo avança; ao trocar de vídeo a barra nasce zerada, sem animação */
.stv-player .stv-player__fill--live{transition:transform .25s linear}
.stv-player .stv-player__bar--done .stv-player__fill{transform:none}

.stv-player .stv-player__who{display:flex;align-items:center;gap:10px;margin-top:12px;color:#fff}
.stv-player .stv-player__avatar{
	flex:0 0 42px;width:42px;height:42px;max-width:none;margin:0;
	border:2px solid var(--stv-accent);border-radius:50%;box-shadow:none;
	background:#fff;object-fit:contain;
}
.stv-player .stv-player__whotext{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.stv-player .stv-player__name{
	overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
	font-size:15px;font-weight:700;line-height:1.25;color:#fff;
}
.stv-player .stv-player__meta{font-size:12.5px;line-height:1.2;color:rgba(255,255,255,.75)}
.stv-player .stv-player__meta-chip{
	display:inline-block;margin-right:6px;padding:3px 7px;border-radius:999px;
	background:var(--stv-accent);color:#fff;
	font-size:10px;font-weight:700;line-height:1.2;letter-spacing:.07em;text-transform:uppercase;vertical-align:1px;
}

.stv-player button.stv-player__close,
.stv-player button.stv-player__nav,
.stv-player button.stv-player__step,
.stv-player button.stv-player__more{
	appearance:none;-webkit-appearance:none;
	margin:0;min-height:0;box-shadow:none;
	font:inherit;text-transform:none;letter-spacing:0;line-height:1;cursor:pointer;
}
.stv-player button.stv-player__close{
	flex:0 0 40px;width:40px;height:40px;padding:0;
	display:flex;align-items:center;justify-content:center;
	border:0;border-radius:50%;
	background:rgba(255,255,255,.14);color:#fff;
	transition:background-color .2s ease;
}
.stv-player button.stv-player__close:hover,.stv-player button.stv-player__close:focus{background:rgba(255,255,255,.28);color:#fff}
.stv-player .stv-player__close-icon{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}

.stv-player .stv-player__media{
	position:relative;z-index:2;flex:1;min-height:0;
	display:flex;align-items:center;justify-content:center;
	padding:4px 72px 22px;
	container-type:size;
}
.stv-player .stv-player__frame{
	position:relative;overflow:hidden;border-radius:12px;background:#000;
	width:min(100cqw,calc(100cqh * 16 / 9));aspect-ratio:16/9;
	box-shadow:0 10px 40px rgba(0,0,0,.45);
}
.stv-player .stv-player__frame--vertical{width:min(100cqw,calc(100cqh * 9 / 16));aspect-ratio:9/16}
.stv-player .stv-player__frame::before{
	content:"";position:absolute;top:50%;left:50%;
	width:34px;height:34px;margin:-17px 0 0 -17px;
	border:3px solid rgba(255,255,255,.2);border-top-color:#fff;border-radius:50%;
	animation:stvSpin .8s linear infinite;
}
@keyframes stvSpin{to{transform:rotate(360deg)}}
/* Elemento do vídeo (iframe, <video> ou o container do YouTube) */
.stv-player .stv-player__el{
	position:absolute;inset:0;display:block;
	width:100%;height:100%;max-width:none;margin:0;padding:0;
	border:0;border-radius:0;background:transparent;
}
.stv-player .stv-player__el--file{background:#000;object-fit:contain}

.stv-player button.stv-player__nav{
	position:absolute;top:50%;z-index:4;
	width:46px;height:46px;margin-top:-23px;padding:0;
	display:flex;align-items:center;justify-content:center;
	border:0;border-radius:50%;
	background:rgba(255,255,255,.92);color:var(--stv-ink);
	box-shadow:0 4px 16px rgba(0,0,0,.3);
	transition:background-color .2s ease,color .2s ease,opacity .2s ease,transform .2s ease;
}
.stv-player button.stv-player__nav--prev{left:14px}
.stv-player button.stv-player__nav--next{right:14px}
.stv-player button.stv-player__nav:hover,.stv-player button.stv-player__nav:focus{background:#fff;color:var(--stv-accent);transform:scale(1.06)}
.stv-player button.stv-player__nav:disabled{opacity:0;pointer-events:none}
.stv-player .stv-player__chev{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}

/* Painel do produto */
.stv-player .stv-player__panel{
	position:relative;z-index:5;flex:0 0 380px;min-height:0;
	display:flex;flex-direction:column;
	background:#fff;color:var(--stv-ink);
}
.stv-player .stv-player__info{padding:28px 26px 14px}
.stv-player .stv-player__chip{
	display:inline-block;padding:5px 10px;border-radius:999px;
	background:rgba(200,16,46,.09);color:var(--stv-accent);
	font-size:11px;font-weight:700;line-height:1;letter-spacing:.07em;text-transform:uppercase;
}
.stv-player .stv-player__title{margin:12px 0 0;font-size:22px;font-weight:700;line-height:1.2;color:var(--stv-ink)}
.stv-player .stv-player__label{
	display:block;margin-top:20px;padding-top:16px;border-top:1px solid var(--stv-line);
	font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--stv-muted);
}
.stv-player .stv-player__desc{
	flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;
	padding:0 26px 8px;
	font-size:15px;line-height:1.6;color:#3d3d3d;
}
/* Descrição do produto: o JS adiciona estas classes em cada elemento do texto */
.stv-player .stv-player__desc-p,
.stv-player .stv-player__desc-list{margin:0 0 12px}
.stv-player .stv-player__desc-list{padding-left:20px}
.stv-player .stv-player__desc-li{margin:0 0 4px}
.stv-player .stv-player__desc-strong{font-weight:700;color:var(--stv-ink)}
.stv-player .stv-player__desc-link{color:var(--stv-accent);text-decoration:underline}
.stv-player .stv-player__desc-img{display:block;max-width:100%;height:auto;margin:0 0 12px;border-radius:8px}
.stv-player .stv-player__desc-heading{margin:16px 0 8px;font-size:16px;font-weight:700;line-height:1.3;color:var(--stv-ink)}
.stv-player .stv-player__desc-first{margin-top:0}

.stv-player button.stv-player__more{
	display:none;align-self:flex-start;
	margin:0 18px 4px;padding:8px;
	border:0;border-radius:6px;background:none;
	color:var(--stv-accent);font-size:13px;font-weight:700;
}
.stv-player button.stv-player__more:hover,.stv-player button.stv-player__more:focus{background:rgba(200,16,46,.07);color:var(--stv-accent)}
.stv-player .stv-player__actions{display:flex;align-items:center;gap:10px;padding:16px 26px 24px;border-top:1px solid var(--stv-line)}
.stv-player a.stv-player__cta{
	flex:1;display:inline-flex;align-items:center;justify-content:center;gap:8px;
	min-height:50px;padding:14px 20px;border-radius:999px;
	background:var(--stv-accent);color:#fff;
	font-size:15px;font-weight:700;line-height:1.1;text-align:center;text-decoration:none;
	transition:filter .2s ease,transform .2s ease;
}
.stv-player a.stv-player__cta:hover,.stv-player a.stv-player__cta:focus{color:#fff;text-decoration:none;filter:brightness(1.08)}
.stv-player .stv-player__cta-icon{display:block;width:18px;height:18px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.stv-player button.stv-player__step{
	display:none;flex:0 0 50px;width:50px;height:50px;padding:0;
	align-items:center;justify-content:center;
	border:1px solid var(--stv-line);border-radius:50%;
	background:#fff;color:var(--stv-ink);
}
.stv-player button.stv-player__step:hover,.stv-player button.stv-player__step:focus{background:#f5f5f5;color:var(--stv-ink)}
.stv-player button.stv-player__step:disabled{opacity:.35}

/* ---------- Celular: tela cheia + painel tipo "bottom sheet" ---------- */
@media (max-width:767px){
	.stv-player{background:#000;-webkit-backdrop-filter:none;backdrop-filter:none}
	.stv-player .stv-player__box{
		width:100%;height:100vh;height:100dvh;
		flex-direction:column;border-radius:0;box-shadow:none;transform:none;
	}
	.stv-player .stv-player__top{padding:calc(10px + env(safe-area-inset-top)) 12px 8px}
	.stv-player .stv-player__who{margin-top:10px}
	.stv-player .stv-player__avatar{flex-basis:38px;width:38px;height:38px}
	.stv-player .stv-player__media{padding:0 0 26px}
	.stv-player .stv-player__frame{border-radius:0;box-shadow:none}
	.stv-player button.stv-player__nav{display:none}

	.stv-player .stv-player__panel{
		flex:0 0 auto;max-height:44vh;max-height:44dvh;
		margin-top:-16px;border-radius:20px 20px 0 0;
		box-shadow:0 -8px 30px rgba(0,0,0,.25);
		transition:max-height .3s ease;
	}
	.stv-player .stv-player__panel::before{
		content:"";display:block;width:38px;height:4px;margin:9px auto 0;
		border-radius:4px;background:#d9d9d9;
	}
	.stv-player .stv-player__info{padding:8px 18px 6px}
	.stv-player .stv-player__chip,.stv-player .stv-player__title{display:none}
	.stv-player .stv-player__label{margin-top:4px;padding-top:0;border-top:0}
	.stv-player .stv-player__desc{
		flex:0 0 auto;max-height:4.9em;overflow:hidden;
		padding:0 18px;font-size:14.5px;line-height:1.6;
		-webkit-mask-image:linear-gradient(#000 55%,transparent);mask-image:linear-gradient(#000 55%,transparent);
	}
	.stv-player--expanded .stv-player__panel{max-height:80vh;max-height:80dvh}
	.stv-player--expanded .stv-player__desc{flex:1 1 auto;max-height:none;overflow-y:auto;-webkit-mask-image:none;mask-image:none}
	.stv-player button.stv-player__more{display:inline-flex}
	.stv-player .stv-player__actions{padding:10px 14px calc(12px + env(safe-area-inset-bottom));gap:8px}
	.stv-player button.stv-player__step{display:flex}
	.stv-player a.stv-player__cta{min-height:50px;padding:12px 14px;font-size:14.5px}
}
@media (prefers-reduced-motion:reduce){
	.stv-player,.stv-player .stv-player__box,.stv-player .stv-player__fill--live,
	.stv-galeria a.stv-card,.stv-galeria .stv-card__poster{transition:none}
}
