/* ==========================================================================
   Shorts VIP — Player vertical (estilo TikTok)
   As cores de destaque (--svw-accent / --svw-accent-2) são injetadas pelo
   plugin a partir das Configurações; os valores abaixo são o fallback.
   ========================================================================== */

:root {
	--svw-accent: #ff2d55;
	--svw-accent-2: #ff7a45;
}

body.svw-shorts-body {
	margin: 0 !important;
	padding: 0 !important;
	background: #000 !important;
	overflow: hidden !important;
	overscroll-behavior: none;
}

/* Esconde qualquer coisa que o tema/outros plugins imprimam fora do player. */
body.svw-shorts-body > :not(.svw-app):not(script):not(style):not(link):not(template):not(noscript) {
	display: none !important;
}

.svw-app {
	--svw-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--svw-glass: rgba(18, 18, 24, 0.55);
	--svw-glass-border: rgba(255, 255, 255, 0.12);
	--svw-text: #fff;
	--svw-muted: rgba(255, 255, 255, 0.66);
	--svw-stage-h: 100vh;
	--svw-col: 100vw;
	--svw-radius: 0px;
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	overflow: hidden;
	background: #000;
	color: var(--svw-text);
	font-family: var(--svw-font);
	font-size: 15px;
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
	-webkit-user-select: none;
}

@supports (height: 100dvh) {
	.svw-app { --svw-stage-h: 100dvh; }
}

.svw-app *,
.svw-app *::before,
.svw-app *::after { box-sizing: border-box; }

.svw-app [hidden] { display: none !important; }

.svw-app svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.svw-app img { max-width: none; }

.svw-app a { color: inherit; text-decoration: none; }

/* --------------------------------------------------------------------------
   Palco (coluna do celular) + fundo ambiente
   -------------------------------------------------------------------------- */

.svw-ambient {
	position: absolute;
	inset: -10%;
	background: #000 center / cover no-repeat;
	filter: blur(60px) brightness(0.32) saturate(1.25);
	transform: scale(1.1);
	opacity: 0;
	transition: opacity 0.6s ease;
	pointer-events: none;
}

.svw-stage {
	position: absolute;
	inset: 0;
	width: var(--svw-col);
	height: var(--svw-stage-h);
	margin: auto;
	background: #000;
	border-radius: var(--svw-radius);
}

@media (min-width: 900px) {
	.svw-app {
		--svw-stage-h: calc(100vh - 32px);
		--svw-col: min(430px, calc((100vh - 32px) * 0.5625));
		--svw-radius: 22px;
	}
	@supports (height: 100dvh) {
		.svw-app {
			--svw-stage-h: calc(100dvh - 32px);
			--svw-col: min(430px, calc((100dvh - 32px) * 0.5625));
		}
	}
	.svw-ambient { opacity: 1; }
	.svw-stage {
		box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06);
	}
	.svw-app.is-fullscreen {
		--svw-stage-h: 100vh;
		--svw-col: min(100vw, calc(100vh * 0.5625));
		--svw-radius: 0px;
	}
}

.svw-app.has-sheet .svw-stage { filter: brightness(0.7); }

/* --------------------------------------------------------------------------
   Feed e slides
   -------------------------------------------------------------------------- */

.svw-feed {
	position: absolute;
	inset: 0;
	overflow-y: scroll;
	overflow-x: hidden;
	scroll-snap-type: y mandatory;
	overscroll-behavior: contain;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	outline: none;
	border-radius: var(--svw-radius);
	background: #000;
}
.svw-feed::-webkit-scrollbar { display: none; }

.svw-app:not([data-state="ready"]) .svw-feed,
.svw-app:not([data-state="ready"]) .svw-rail,
.svw-app:not([data-state="ready"]) .svw-desk-nav,
.svw-app:not([data-state="ready"]) .svw-topbar-actions { visibility: hidden; }

.svw-slide {
	position: relative;
	width: 100%;
	height: var(--svw-stage-h);
	overflow: hidden;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	background: #000;
}

.svw-slide-bg {
	position: absolute;
	inset: -8%;
	background: #000 center / cover no-repeat;
	filter: blur(28px) brightness(0.45);
	transform: scale(1.1);
	pointer-events: none;
}

.svw-app .svw-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
	background: transparent;
}

.svw-slide-poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	opacity: 1;
	transition: opacity 0.35s ease;
	pointer-events: none;
}
.svw-slide.is-playing .svw-slide-poster { opacity: 0; }
.svw-slide.is-locked .svw-slide-poster {
	object-fit: cover;
	filter: blur(16px) brightness(0.55);
	transform: scale(1.12);
	opacity: 1;
}
.svw-slide.has-error .svw-slide-poster { opacity: 0.4; }

.svw-slide-shade {
	position: absolute;
	left: 0;
	right: 0;
	pointer-events: none;
	z-index: 2;
}
.svw-slide-shade-top {
	top: 0;
	height: 140px;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
}
.svw-slide-shade-bottom {
	bottom: 0;
	height: 200px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
}

/* Buffering / pausado */
.svw-slide-buffering,
.svw-slide-paused {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 7;
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	margin: -36px 0 0 -36px;
	border-radius: 50%;
	background: var(--svw-glass);
	border: 1px solid var(--svw-glass-border);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	opacity: 0;
	transform: scale(0.85);
	transition: opacity 0.2s ease, transform 0.2s ease;
	pointer-events: none;
}
.svw-slide-paused svg {
	width: 32px;
	height: 32px;
	margin-left: 4px;
	fill: currentColor;
	stroke: none;
}
.svw-slide.is-active.is-buffering:not(.is-paused) .svw-slide-buffering,
.svw-slide.is-active.is-paused .svw-slide-paused {
	opacity: 1;
	transform: scale(1);
}

.svw-spinner {
	display: block;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, 0.18);
	border-top-color: var(--svw-accent);
	animation: svw-spin 0.8s linear infinite;
}
.svw-spinner-lg { width: 44px; height: 44px; }

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

/* --------------------------------------------------------------------------
   Barra superior
   -------------------------------------------------------------------------- */

.svw-topbar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 30;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px;
	pointer-events: none;
}
.svw-topbar > * { pointer-events: auto; }

.svw-topbar-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	pointer-events: none;
}
.svw-topbar-title {
	max-width: 100%;
	overflow: hidden;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	text-overflow: ellipsis;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
	color: #fff;
}
.svw-topbar-sub {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--svw-muted);
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}
.svw-topbar-actions { display: flex; gap: 8px; }

/* Botões redondos (vidro) */
.svw-app .svw-icon-btn {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border-radius: 50%;
	border: 1px solid var(--svw-glass-border);
	background: var(--svw-glass);
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	outline: none;
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	transition: transform 0.15s ease, background 0.15s ease;
}
.svw-app .svw-icon-btn:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
.svw-app .svw-icon-btn:active { transform: scale(0.92); }
.svw-app .svw-icon-btn:focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4); }
.svw-app .svw-icon-btn svg { width: 20px; height: 20px; }
.svw-app .svw-icon-btn-flat {
	background: transparent;
	border-color: transparent;
	box-shadow: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

/* ══ CADA BOTÃO TEM DOIS ÍCONES E SÓ UM PODE APARECER ══
   O seletor precisa de `.svw-app` na frente: sem ele a regra tem menos
   especificidade que `.svw-app svg { display: block }` lá em cima, o
   `display:none` é ignorado e os dois ícones aparecem lado a lado dentro
   do mesmo botão. Foi o que aconteceu no player em produção. */
.svw-app .svw-ico-sound-off,
.svw-app .svw-ico-fs-off { display: none; }
.svw-app.is-muted .svw-ico-sound-on { display: none; }
.svw-app.is-muted .svw-ico-sound-off { display: block; }
.svw-app.is-fullscreen .svw-ico-fs-on { display: none; }
.svw-app.is-fullscreen .svw-ico-fs-off { display: block; }

/* --------------------------------------------------------------------------
   Barra lateral de ações (curtir, episódios, enviar)
   -------------------------------------------------------------------------- */

.svw-rail {
	position: absolute;
	right: 8px;
	bottom: calc(96px + env(safe-area-inset-bottom, 0px));
	z-index: 30;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}

.svw-app .svw-rail-btn {
	appearance: none;
	-webkit-appearance: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: #fff;
	font-family: inherit;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.2px;
	text-transform: none;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
	cursor: pointer;
	outline: none;
}
.svw-app .svw-rail-btn:disabled { opacity: 0.4; cursor: default; }

.svw-rail-icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--svw-glass);
	border: 1px solid var(--svw-glass-border);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
	transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.svw-rail-icon svg { width: 24px; height: 24px; }
.svw-app .svw-rail-btn:hover .svw-rail-icon { background: rgba(255, 255, 255, 0.18); }
.svw-app .svw-rail-btn:active .svw-rail-icon { transform: scale(0.9); }
.svw-app .svw-rail-btn:focus-visible .svw-rail-icon { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4); }

.svw-app .svw-rail-btn.is-liked .svw-rail-icon {
	background: var(--svw-accent);
	border-color: transparent;
	box-shadow: 0 8px 24px -6px var(--svw-accent);
}
.svw-app .svw-rail-btn.is-liked svg { fill: currentColor; stroke: none; }
.svw-app .svw-rail-btn.is-pop .svw-rail-icon { animation: svw-pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.4); }

/* Cadeado discreto no "curtir" para quem não é assinante */
.svw-app[data-vip="0"] #svw-like-btn .svw-rail-icon::after {
	content: "";
	position: absolute;
	right: -2px;
	bottom: -2px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background-color: var(--svw-accent);
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='10' width='16' height='11' rx='3'/><path d='M8 10V7a4 4 0 018 0v3'/></svg>");
	background-size: 10px 10px;
	background-position: center;
	background-repeat: no-repeat;
	border: 2px solid #111;
}

@keyframes svw-pop {
	0% { transform: scale(1); }
	40% { transform: scale(1.25); }
	100% { transform: scale(1); }
}

/* Setas de navegação (desktop) */
.svw-app .svw-desk-nav {
	display: none;
	position: absolute;
	right: calc(100% + 18px);
	top: 50%;
	z-index: 30;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	cursor: pointer;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: background 0.15s ease, opacity 0.15s ease;
}
.svw-app .svw-desk-nav svg { width: 22px; height: 22px; }
.svw-app .svw-desk-prev { transform: translateY(calc(-100% - 8px)); }
.svw-app .svw-desk-next { transform: translateY(8px); }
.svw-app .svw-desk-nav:hover { background: rgba(255, 255, 255, 0.2); }
.svw-app .svw-desk-nav:disabled { opacity: 0.25; cursor: default; }

@media (min-width: 900px) {
	.svw-rail {
		right: auto;
		left: calc(100% + 18px);
		bottom: 22px;
		gap: 18px;
	}
	.svw-rail-icon {
		width: 52px;
		height: 52px;
		background: rgba(255, 255, 255, 0.08);
	}
	.svw-rail-icon svg { width: 26px; height: 26px; }
	.svw-app .svw-rail-btn { font-size: 12px; color: rgba(255, 255, 255, 0.85); text-shadow: none; }
}
@media (min-width: 900px) and (hover: hover) {
	.svw-app .svw-desk-nav { display: flex; }
}

/* --------------------------------------------------------------------------
   Informações do episódio + barra de progresso
   -------------------------------------------------------------------------- */

.svw-slide-info {
	position: absolute;
	left: 14px;
	right: 76px;
	bottom: calc(54px + env(safe-area-inset-bottom, 0px));
	z-index: 5;
	pointer-events: none;
	transition: opacity 0.15s ease;
}
.svw-slide.is-scrubbing .svw-slide-info { opacity: 0; }

.svw-slide-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
}

.svw-app .svw-slide-title {
	margin: 0;
	padding: 0;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.1px;
	color: #fff;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.75);
	text-transform: none;
}

.svw-app .svw-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 22px;
	padding: 0 9px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	white-space: nowrap;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
.svw-app .svw-chip svg { width: 12px; height: 12px; stroke-width: 3; }
.svw-app .svw-chip-ep {
	background: linear-gradient(135deg, var(--svw-accent), var(--svw-accent-2));
	border-color: transparent;
	box-shadow: 0 4px 14px -4px var(--svw-accent);
}
.svw-app .svw-chip-free {
	background: rgba(46, 204, 113, 0.22);
	border-color: rgba(46, 204, 113, 0.45);
	color: #8affb8;
}
.svw-app .svw-chip-watched { color: rgba(255, 255, 255, 0.9); }

.svw-progress {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: calc(4px + env(safe-area-inset-bottom, 0px));
	z-index: 6;
	padding: 12px 0;
	cursor: pointer;
	touch-action: none;
}
.svw-progress.is-readonly { cursor: default; }

.svw-progress-track {
	position: relative;
	height: 3px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.22);
	transition: height 0.15s ease;
}
.svw-progress-buffer,
.svw-progress-fill {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 0;
	border-radius: inherit;
}
.svw-progress-buffer { background: rgba(255, 255, 255, 0.22); }
.svw-progress-fill {
	background: linear-gradient(90deg, var(--svw-accent), var(--svw-accent-2));
	box-shadow: 0 0 12px -2px var(--svw-accent);
}
.svw-progress-knob {
	position: absolute;
	top: 50%;
	left: 0;
	width: 13px;
	height: 13px;
	margin: -6.5px 0 0 -6.5px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
	transform: scale(0);
	transition: transform 0.15s ease;
}
.svw-progress-time {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: rgba(255, 255, 255, 0.92);
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
	opacity: 0;
	transition: opacity 0.15s ease;
	pointer-events: none;
}
.svw-slide.is-scrubbing .svw-progress-track,
.svw-progress:not(.is-readonly):hover .svw-progress-track { height: 6px; }
.svw-slide.is-scrubbing .svw-progress-knob,
.svw-progress:not(.is-readonly):hover .svw-progress-knob { transform: scale(1); }
.svw-slide.is-scrubbing .svw-progress-time,
.svw-progress:not(.is-readonly):hover .svw-progress-time { opacity: 1; }

/* --------------------------------------------------------------------------
   Bloqueio VIP (episódios 2+ para não assinantes)
   -------------------------------------------------------------------------- */

.svw-lock {
	position: absolute;
	inset: 0;
	z-index: 8;
	display: none;
	align-items: center;
	justify-content: center;
	padding: calc(70px + env(safe-area-inset-top, 0px)) 20px calc(40px + env(safe-area-inset-bottom, 0px));
	background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.7));
}
.svw-slide.is-locked .svw-lock { display: flex; }

.svw-lock-card {
	width: 100%;
	max-width: 340px;
	max-height: 100%;
	overflow-y: auto;
	padding: 22px 22px 22px;
	border-radius: 24px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(14, 14, 18, 0.74);
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	text-align: center;
	scrollbar-width: none;
}
.svw-lock-card::-webkit-scrollbar { display: none; }

.svw-lock-icon {
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	margin: 14px auto 12px;
	border-radius: 20px;
	background: linear-gradient(135deg, var(--svw-accent), var(--svw-accent-2));
	color: #fff;
	box-shadow: 0 14px 30px -8px var(--svw-accent);
}
.svw-lock-icon svg { width: 28px; height: 28px; }

.svw-app .svw-lock-title,
.svw-app .svw-upsell-body h2 {
	margin: 0 0 8px;
	padding: 0;
	font-family: inherit;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.2px;
	color: #fff;
	text-transform: none;
}
.svw-app .svw-lock-text,
.svw-app .svw-upsell-body p {
	margin: 0 0 16px;
	padding: 0;
	font-size: 14px;
	line-height: 1.45;
	color: var(--svw-muted);
}

.svw-app .svw-benefits {
	display: grid;
	gap: 8px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
	text-align: left;
}
.svw-app .svw-benefits li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	font-size: 13.5px;
	line-height: 1.35;
	color: #fff;
}
.svw-app .svw-benefits svg {
	flex: none;
	width: 20px;
	height: 20px;
	padding: 4px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: var(--svw-accent-2);
	stroke-width: 3;
}

/* Botões */
.svw-app .svw-btn {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	text-decoration: none;
	color: #fff;
	cursor: pointer;
	outline: none;
	transition: transform 0.15s ease, filter 0.2s ease, box-shadow 0.2s ease;
}
.svw-app .svw-btn:active { transform: scale(0.97); }
.svw-app .svw-btn:focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4); }
.svw-app .svw-btn-vip {
	background: linear-gradient(135deg, var(--svw-accent), var(--svw-accent-2));
	box-shadow: 0 12px 30px -8px var(--svw-accent);
	animation: svw-glow 2.4s ease-in-out infinite;
}
.svw-app .svw-btn-vip:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); }

@keyframes svw-glow {
	0%, 100% { box-shadow: 0 12px 30px -8px var(--svw-accent); }
	50% { box-shadow: 0 16px 44px -6px var(--svw-accent); }
}

.svw-app .svw-link {
	display: inline-block;
	margin: 14px 0 0;
	padding: 0;
	border: 0;
	background: none;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.72);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-transform: none;
	cursor: pointer;
}
.svw-app .svw-link:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Feedbacks: toque, coração, som, toast, tutorial
   -------------------------------------------------------------------------- */

.svw-tap-feedback {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 20;
	display: grid;
	place-items: center;
	width: 84px;
	height: 84px;
	margin: -42px 0 0 -42px;
	border-radius: 50%;
	background: var(--svw-glass);
	border: 1px solid var(--svw-glass-border);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	opacity: 0;
	pointer-events: none;
}
.svw-tap-feedback svg {
	width: 38px;
	height: 38px;
	fill: currentColor;
	stroke: none;
	display: none;
}
.svw-tap-feedback.is-play .svw-ico-play { display: block; margin-left: 5px; }
.svw-tap-feedback.is-pause .svw-ico-pause { display: block; }
.svw-tap-feedback.is-visible { animation: svw-tap 0.65s ease-out forwards; }

@keyframes svw-tap {
	0% { opacity: 0; transform: scale(0.7); }
	20% { opacity: 1; transform: scale(1); }
	100% { opacity: 0; transform: scale(1.25); }
}

.svw-heart-burst {
	position: absolute;
	inset: 0;
	z-index: 25;
	pointer-events: none;
	overflow: hidden;
}
.svw-heart {
	position: absolute;
	width: 96px;
	height: 96px;
	margin: -48px 0 0 -48px;
	color: var(--svw-accent);
	filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
	animation: svw-heart 0.9s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}
.svw-heart svg { width: 100%; height: 100%; fill: currentColor; stroke: none; }

@keyframes svw-heart {
	0% { opacity: 0; transform: scale(0.4) rotate(var(--svw-rot, 0deg)); }
	25% { opacity: 1; transform: scale(1.1) rotate(var(--svw-rot, 0deg)); }
	60% { opacity: 1; transform: scale(1) translateY(-10px) rotate(var(--svw-rot, 0deg)); }
	100% { opacity: 0; transform: scale(1.2) translateY(-60px) rotate(var(--svw-rot, 0deg)); }
}

.svw-app .svw-unmute-pill {
	appearance: none;
	-webkit-appearance: none;
	position: absolute;
	top: calc(64px + env(safe-area-inset-top, 0px));
	left: 50%;
	z-index: 31;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 0;
	margin: 0;
	padding: 9px 16px;
	border-radius: 999px;
	border: 1px solid var(--svw-glass-border);
	background: var(--svw-glass);
	color: #fff;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	text-transform: none;
	letter-spacing: 0;
	white-space: nowrap;
	cursor: pointer;
	transform: translateX(-50%);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
	animation: svw-pill-in 0.4s ease-out;
}
.svw-app .svw-unmute-pill svg { width: 18px; height: 18px; }
.svw-app .svw-unmute-pill:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }

@keyframes svw-pill-in {
	from { opacity: 0; transform: translate(-50%, -8px); }
	to { opacity: 1; transform: translate(-50%, 0); }
}

.svw-toast {
	position: absolute;
	left: 50%;
	bottom: calc(112px + env(safe-area-inset-bottom, 0px));
	z-index: 40;
	max-width: calc(100% - 40px);
	padding: 10px 16px;
	border-radius: 999px;
	border: 1px solid var(--svw-glass-border);
	background: rgba(14, 14, 18, 0.82);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	opacity: 0;
	transform: translate(-50%, 8px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	pointer-events: none;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}
.svw-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.svw-swipe-tutorial {
	position: absolute;
	left: 50%;
	bottom: calc(120px + env(safe-area-inset-bottom, 0px));
	z-index: 35;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 14px 20px 12px;
	border-radius: 20px;
	border: 1px solid var(--svw-glass-border);
	background: rgba(14, 14, 18, 0.72);
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
	white-space: nowrap;
	opacity: 0;
	transform: translate(-50%, 14px);
	transition: opacity 0.25s ease, transform 0.25s ease;
	pointer-events: none;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}
.svw-swipe-tutorial.is-visible { opacity: 1; transform: translate(-50%, 0); }
.svw-swipe-hand {
	display: block;
	width: 30px;
	height: 30px;
	color: #fff;
	animation: svw-swipe 1.5s ease-in-out infinite;
}
.svw-swipe-hand svg { width: 100%; height: 100%; stroke-width: 1.8; }

@keyframes svw-swipe {
	0%, 100% { transform: translateY(8px); opacity: 0.5; }
	55% { transform: translateY(-8px); opacity: 1; }
}

/* --------------------------------------------------------------------------
   Carregando / erro
   -------------------------------------------------------------------------- */

.svw-loading,
.svw-error {
	position: absolute;
	inset: 0;
	z-index: 15;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 24px;
	text-align: center;
	color: #fff;
	background: #000;
	border-radius: var(--svw-radius);
}
.svw-app .svw-loading p,
.svw-app .svw-error p {
	margin: 0;
	font-size: 14px;
	color: var(--svw-muted);
}
.svw-skeleton {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background: linear-gradient(180deg, #14141a 0%, #0a0a0e 100%);
}
.svw-skeleton-shimmer {
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.06) 50%, transparent 70%);
	transform: translateX(-100%);
	animation: svw-shimmer 1.6s ease-in-out infinite;
}
.svw-loading .svw-spinner,
.svw-loading p { position: relative; }

@keyframes svw-shimmer { to { transform: translateX(100%); } }

.svw-error svg {
	width: 52px;
	height: 52px;
	color: var(--svw-accent-2);
	stroke-width: 1.6;
}
.svw-app .svw-error p { max-width: 320px; color: #fff; font-weight: 600; }
.svw-error-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	width: min(100%, 280px);
}
.svw-error-actions .svw-btn { animation: none; }

/* --------------------------------------------------------------------------
   Painéis inferiores (lista de episódios / convite VIP)
   -------------------------------------------------------------------------- */

.svw-sheet {
	position: fixed;
	inset: 0;
	z-index: 2147483100;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	pointer-events: none;
}
.svw-sheet.is-open { pointer-events: auto; }

.svw-sheet-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	opacity: 0;
	transition: opacity 0.25s ease;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
.svw-sheet.is-open .svw-sheet-backdrop { opacity: 1; }

.svw-sheet-panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 520px;
	max-height: min(80vh, 680px);
	padding-bottom: env(safe-area-inset-bottom, 0px);
	border-radius: 24px 24px 0 0;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-bottom: 0;
	background: #121216;
	color: #fff;
	box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
	transform: translateY(100%);
	transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@supports (height: 100dvh) {
	.svw-sheet-panel { max-height: min(80dvh, 680px); }
}
.svw-sheet.is-open .svw-sheet-panel { transform: none; }

.svw-sheet-handle {
	flex: none;
	width: 40px;
	height: 4px;
	margin: 10px auto 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.25);
}

.svw-sheet-head {
	flex: none;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px 10px;
}
.svw-app .svw-sheet-head h2 {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: 18px;
	font-weight: 800;
	color: #fff;
	text-transform: none;
}
.svw-app .svw-sheet-head p {
	margin: 3px 0 0;
	font-size: 12.5px;
	color: var(--svw-muted);
}

.svw-sheet-list {
	flex: 1;
	min-height: 0;
	margin: 0;
	padding: 4px 10px 10px;
	list-style: none;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
.svw-sheet-list li { margin: 0; padding: 0; }

.svw-app .svw-sheet-item {
	appearance: none;
	-webkit-appearance: none;
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: 8px;
	border: 0;
	border-radius: 14px;
	background: transparent;
	box-shadow: none;
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: background 0.15s ease;
}
.svw-app .svw-sheet-item:hover,
.svw-app .svw-sheet-item.is-current { background: rgba(255, 255, 255, 0.07); }
.svw-app .svw-sheet-item.is-locked { opacity: 0.7; }

.svw-sheet-thumb {
	position: relative;
	flex: none;
	width: 48px;
	height: 68px;
	overflow: hidden;
	border-radius: 10px;
	background: #222;
}
.svw-sheet-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.svw-sheet-num {
	position: absolute;
	left: 4px;
	bottom: 4px;
	padding: 2px 5px;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.7);
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: 0.3px;
}
.svw-sheet-item.is-watched .svw-sheet-thumb::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--svw-accent), var(--svw-accent-2));
}

.svw-sheet-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.svw-sheet-title {
	overflow: hidden;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.svw-sheet-meta { font-size: 12px; color: var(--svw-muted); }

.svw-sheet-state {
	flex: none;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.85);
}
.svw-sheet-state svg { width: 16px; height: 16px; }
.svw-sheet-play { fill: currentColor; stroke: none; margin-left: 2px; }
/* Mesmo caso dos ícones da barra superior: precisa de `.svw-app` para vencer
   a regra genérica de svg, senão play e equalizador aparecem juntos. */
.svw-app .svw-sheet-eq { display: none; }
.svw-app .svw-sheet-item.is-current .svw-sheet-play { display: none; }
.svw-sheet-item.is-current .svw-sheet-eq { display: block; color: var(--svw-accent); stroke-width: 2.5; animation: svw-eq 1s ease-in-out infinite; }
.svw-sheet-item.is-locked .svw-sheet-state { color: var(--svw-accent-2); }

@keyframes svw-eq {
	0%, 100% { transform: scaleY(1); }
	50% { transform: scaleY(0.6); }
}

.svw-sheet-foot {
	flex: none;
	padding: 6px 18px 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	text-align: center;
}
.svw-sheet-foot .svw-link { margin-top: 8px; }

/* Convite VIP */
.svw-sheet-upsell .svw-sheet-panel { max-width: 460px; }
.svw-app .svw-sheet-x { position: absolute; top: 10px; right: 10px; z-index: 2; }
.svw-upsell-body {
	padding: 10px 24px 26px;
	text-align: center;
	overflow-y: auto;
}
.svw-upsell-body .svw-lock-icon { margin-top: 10px; }
.svw-upsell-body .svw-benefits { max-width: 320px; margin-left: auto; margin-right: auto; }

@media (min-width: 900px) {
	.svw-sheet { align-items: center; }
	.svw-sheet-panel {
		max-width: 440px;
		border-radius: 24px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
		padding-bottom: 0;
		opacity: 0;
		transform: translateY(16px) scale(0.98);
		transition: transform 0.25s ease, opacity 0.25s ease;
	}
	.svw-sheet.is-open .svw-sheet-panel { opacity: 1; transform: none; }
	.svw-sheet-handle { display: none; }
	.svw-sheet-head { padding-top: 20px; }
}

/* --------------------------------------------------------------------------
   Telas baixas / acessibilidade
   -------------------------------------------------------------------------- */

@media (max-height: 640px) {
	.svw-lock-card { padding: 16px 18px; }
	.svw-lock-icon { width: 48px; height: 48px; margin: 8px auto 10px; border-radius: 16px; }
	.svw-lock-icon svg { width: 22px; height: 22px; }
	.svw-app .svw-lock-title { font-size: 17px; }
	.svw-app .svw-lock-text { margin-bottom: 10px; font-size: 13px; }
	.svw-app .svw-benefits { gap: 5px; margin-bottom: 12px; }
	.svw-app .svw-benefits li { font-size: 12.5px; }
	.svw-app .svw-btn { min-height: 44px; }
}

/* Legendas (dramas legendados) e episódio indisponível */
.svw-app video::cue {
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-family: var(--svw-font);
	font-size: 15px;
	line-height: 1.35;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
.svw-app .svw-unavailable {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 8;
	max-width: 270px;
	padding: 14px 18px;
	border-radius: 16px;
	border: 1px solid var(--svw-glass-border);
	background: var(--svw-glass);
	color: #fff;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	transform: translate(-50%, -50%);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}
.svw-slide.has-error .svw-slide-paused { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
	.svw-app *,
	.svw-app *::before,
	.svw-app *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	.svw-feed { scroll-behavior: auto; }
}
