/* Shorts VIP - Player fullscreen estilo TikTok */

body.svw-shorts-body {
	overflow: hidden !important;
	background: #000 !important;
}

/* O player cobre 100% da viewport com fundo opaco (position:fixed + z-index alto),
   por isso não é necessário remover o markup do tema: ele fica coberto
   visualmente sem risco de quebrar a estrutura HTML do UltimaTube. */

.svw-shorts-app {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	background: #000;
	z-index: 999999;
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Barra superior minimalista, estilo TikTok */
.svw-top-bar {
	position: fixed;
	top: max(12px, env(safe-area-inset-top, 0px));
	left: 0;
	right: 0;
	z-index: 1000001;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 14px;
	pointer-events: none;
}
.svw-top-bar > * {
	pointer-events: auto;
}

.svw-top-controls {
	display: flex;
	align-items: center;
	gap: 8px;
}

.svw-top-btn {
	appearance: none;
	width: 42px;
	height: 42px;
	padding: 0;
	border-radius: 50%;
	background: rgba(72,72,72,0.62) !important;
	color: #fff !important;
	border: 1px solid rgba(255,255,255,0.14) !important;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: 0 3px 14px rgba(0,0,0,0.28);
	transition: background .15s ease, transform .15s ease;
}
.svw-top-btn:hover,
.svw-top-btn:focus-visible,
.svw-top-btn.is-active {
	background: rgba(96,96,96,0.82) !important;
}
.svw-top-btn:active {
	transform: scale(.94);
}
.svw-top-btn svg {
	display: block;
	width: 22px;
	height: 22px;
	fill: none;
	stroke: #fff;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.svw-loading {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #fff;
	gap: 16px;
}

.svw-spinner {
	width: 42px;
	height: 42px;
	border: 3px solid rgba(255,255,255,0.2);
	border-top-color: #ff2e63;
	border-radius: 50%;
	animation: svw-spin 0.8s linear infinite;
}

@keyframes svw-spin {
	to { transform: rotate(360deg); }
}

.svw-feed {
	width: 100%;
	height: 100%;
	overflow-y: scroll;
	scroll-snap-type: y mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
}

.svw-feed::-webkit-scrollbar { display: none; }
.svw-feed { scrollbar-width: none; }

.svw-slide {
	position: relative;
	width: 100%;
	height: 100%;
	height: 100dvh;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000;
}

.svw-video {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #000;
}

.svw-locked-cover {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: blur(22px) brightness(0.45);
	transform: scale(1.15);
	display: none;
}

.svw-slide.is-locked .svw-video {
	display: none;
}
.svw-slide.is-locked .svw-locked-cover {
	display: block;
}

.svw-gradient-top,
.svw-gradient-bottom {
	position: absolute;
	left: 0;
	right: 0;
	height: 120px;
	pointer-events: none;
	z-index: 2;
}
.svw-gradient-top {
	top: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent);
}
.svw-gradient-bottom {
	bottom: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

/* Barra de ações vertical no canto direito, estilo TikTok
   (curtir/comentar/compartilhar): Voltar, Som e nº do Episódio. */
.svw-side-actions {
	position: fixed;
	right: 14px;
	top: 72px;
	z-index: 1000000;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
}

.svw-side-btn {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: rgba(0,0,0,0.45);
	color: #fff;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	backdrop-filter: blur(6px);
	box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.svw-side-btn:hover { background: rgba(0,0,0,0.7); }

/* Dica sutil e translúcida de "arraste para continuar assistindo",
   parecida com a seta de swipe do TikTok. Some sozinha assim que o
   usuário der o primeiro swipe/scroll no feed. */
.svw-swipe-hint {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 34px;
	margin-bottom: 4px;
	pointer-events: none;
	transition: opacity 0.4s ease;
}
.svw-swipe-hint.is-hidden {
	opacity: 0;
}

.svw-swipe-chevron {
	display: block;
	font-size: 20px;
	line-height: 1;
	color: rgba(255,255,255,0.55);
	text-shadow: 0 1px 4px rgba(0,0,0,0.4);
	margin-top: -10px;
	animation: svw-swipe-float 1.6s ease-in-out infinite;
}
.svw-swipe-chevron-2 {
	animation-delay: 0.25s;
	color: rgba(255,255,255,0.35);
}

@keyframes svw-swipe-float {
	0% { transform: translateY(6px); opacity: 0; }
	30% { opacity: 1; }
	70% { opacity: 0.7; }
	100% { transform: translateY(-8px); opacity: 0; }
}

.svw-watched-toast {
	position: fixed;
	z-index: 1000002;
	top: max(72px, calc(env(safe-area-inset-top, 0px) + 58px));
	left: 50%;
	padding: 10px 15px;
	border: 1px solid rgba(101,217,146,.35);
	border-radius: 999px;
	background: rgba(26,56,39,.78);
	color: #fff;
	font-size: 12px;
	font-weight: 750;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, -8px);
	transition: opacity .2s ease, transform .2s ease;
}
.svw-watched-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

.svw-swipe-tutorial {
	position: fixed;
	left: 50%;
	bottom: max(56px, calc(env(safe-area-inset-bottom, 0px) + 32px));
	z-index: 1000002;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 12px 18px;
	border: 1px solid rgba(255,255,255,.14);
	border-radius: 18px;
	background: rgba(45,45,45,.62);
	color: #fff;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: 0 8px 30px rgba(0,0,0,.3);
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 18px);
	transition: opacity .25s ease, transform .25s ease;
}
.svw-swipe-tutorial.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}
.svw-swipe-tutorial.is-hidden {
	opacity: 0;
	transform: translate(-50%, -12px);
}
.svw-swipe-tutorial span {
	margin-top: 4px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.svw-swipe-hand {
	font-size: 26px;
	line-height: 1;
	animation: svw-tutorial-swipe 1.5s ease-in-out infinite;
}
.svw-swipe-arrow {
	font-size: 20px;
	line-height: .8;
	animation: svw-tutorial-arrow 1.5s ease-in-out infinite;
}
@keyframes svw-tutorial-swipe {
	0%, 100% { transform: translateY(8px); }
	65% { transform: translateY(-8px); }
}
@keyframes svw-tutorial-arrow {
	0%, 100% { opacity: .25; transform: translateY(5px); }
	65% { opacity: 1; transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
	.svw-swipe-hand,
	.svw-swipe-arrow {
		animation: none;
	}
}

.svw-side-icon {
	font-size: 20px;
	line-height: 1;
}

.svw-exit-btn .svw-side-icon {
	font-size: 24px;
	font-weight: 700;
}

.svw-ep-pill {
	display: flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: 48px;
	height: 32px;
	padding: 0 10px;
	border-radius: 999px;
	background: rgba(72,72,72,0.62);
	border: 1px solid rgba(255,255,255,0.14);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.4px;
	cursor: default;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: 0 3px 14px rgba(0,0,0,0.28);
}

@media (min-width: 768px) {
	.svw-top-bar {
		left: calc(50% - 215px);
		right: calc(50% - 215px);
	}
	.svw-side-actions { right: calc(50% - 215px + 14px); }
}

.svw-lock-overlay {
	position: absolute;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0,0,0,0.35);
	z-index: 4;
}
.svw-slide.is-locked .svw-lock-overlay {
	display: flex;
}

.svw-lock-content {
	text-align: center;
	color: #fff;
	padding: 32px 24px;
	max-width: 320px;
}

.svw-lock-icon {
	font-size: 40px;
	margin-bottom: 10px;
}

.svw-lock-content h2 {
	margin: 0 0 8px;
	font-size: 22px;
}

.svw-lock-content p {
	margin: 0 0 20px;
	opacity: 0.85;
	font-size: 14px;
}

.svw-vip-btn {
	background: linear-gradient(135deg, #ff2e63, #ff7847);
	color: #fff;
	border: none;
	padding: 14px 32px;
	border-radius: 30px;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: 0.5px;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(255, 46, 99, 0.45);
	animation: svw-pulse 1.8s infinite;
}

@keyframes svw-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.05); }
}

@media (min-width: 768px) {
	.svw-shorts-app { display: flex; align-items: center; justify-content: center; }
	.svw-feed {
		max-width: 430px;
		height: 100%;
		margin: 0 auto;
		box-shadow: 0 0 60px rgba(255,255,255,0.05);
	}
	.svw-slide { max-width: 430px; margin: 0 auto; }
}
