/* Shorts VIP - Carrossel de Webséries (widget/shortcode da home) */

.svw-carousel-wrapper {
	position: relative;
	width: 100%;
	padding: 8px 0;
}

.svw-carousel-track {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	padding: 4px 4px 10px;
}
.svw-carousel-track::-webkit-scrollbar { display: none; }

.svw-carousel-item {
	flex: 0 0 auto;
	text-decoration: none;
	color: inherit;
	width: calc((100% - 12px) / 2); /* padrão mobile: 2 itens visíveis */
	scroll-snap-align: start;
}

.svw-carousel-wrapper .svw-carousel-track {
	scroll-snap-type: x mandatory;
}

@media (min-width: 900px) {
	.svw-carousel-item {
		width: calc((100% - 3 * 12px) / 4); /* padrão desktop: 4 itens visíveis */
	}
}

.svw-cover {
	position: relative;
	width: 100%;
	aspect-ratio: 9 / 16;
	border-radius: 12px;
	overflow: hidden;
	background: #111;
}

.svw-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.svw-carousel-item:hover .svw-cover img {
	transform: scale(1.05);
}

.svw-play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 46px;
	height: 46px;
	background: rgba(255,255,255,0.15);
	backdrop-filter: blur(4px);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 16px;
	opacity: 0.9;
}

.svw-ep-count {
	position: absolute;
	bottom: 8px;
	right: 8px;
	background: rgba(0,0,0,0.65);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 12px;
}

.svw-title {
	margin: 8px 0 0;
	font-size: 13px;
	font-weight: 600;
	color: inherit;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.svw-nav {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(0,0,0,0.55);
	color: #fff;
	border: none;
	font-size: 18px;
	cursor: pointer;
	z-index: 5;
	display: none;
}

@media (min-width: 900px) {
	.svw-nav { display: flex; align-items: center; justify-content: center; }
}

.svw-nav-prev { left: -4px; }
.svw-nav-next { right: -4px; }

.svw-empty {
	opacity: 0.7;
	font-size: 14px;
}

/* Overlay do modo Shorts aberto a partir da home (sem reload da página) */
.svw-overlay {
	position: fixed;
	inset: 0;
	z-index: 999998;
	display: none;
}
.svw-overlay.is-active {
	display: block;
}
