/**
 * Movyn Pro — polish visual, player A/B/C/D, anúncios, episódios
 * Version 1.1.9-pro
 *
 * Design tokens: assets/css/movyn-tokens.css (loaded first).
 * Aliases below keep older --movyn-pro-* selectors working.
 */

/* ——— Design tokens (aliases → system) ——— */
:root {
	--movyn-pro-accent: var(--movyn-accent);
	--movyn-pro-accent-2: var(--movyn-gold);
	--movyn-pro-surface: var(--movyn-surface-hover);
	--movyn-pro-border: var(--movyn-border);
	--movyn-pro-radius: var(--movyn-radius);
	--movyn-pro-shadow: var(--movyn-shadow);
}

/* ——— Ad slots (profissionais) ——— */
.movyn-ad-slot {
	position: relative;
	margin: 16px 0;
	padding: 14px 12px 12px;
	background: var(--movyn-pro-surface);
	border: 1px dashed var(--movyn-pro-border);
	border-radius: var(--movyn-pro-radius);
	text-align: center;
	overflow: hidden;
}

.movyn-ad-label {
	display: block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.35);
	margin-bottom: 8px;
}

.movyn-ad-inner {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 50px;
	line-height: 0;
}

.movyn-ad-inner iframe,
.movyn-ad-inner ins,
.movyn-ad-inner img {
	max-width: 100%;
}

.ads_before_player,
.ads_after_player {
	margin: 10px 0;
}

.ads_between_episodes {
	margin: 20px 0 10px;
}

/* Floating mobile ad */
.movyn-float-ad {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99990;
	background: rgba(10, 12, 16, 0.96);
	border-top: 1px solid var(--movyn-pro-border);
	padding: 8px 36px 8px 8px;
	box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(8px);
}

.movyn-float-ad .movyn-ad-slot {
	margin: 0;
	border: 0;
	background: transparent;
	padding: 4px;
}

.movyn-float-ad .movyn-ad-label {
	display: none;
}

.movyn-float-close {
	position: absolute;
	top: 4px;
	right: 6px;
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

@media (max-width: 768px) {
	.movyn-float-ad {
		display: block;
	}
	body.has-movyn-float {
		padding-bottom: 70px;
	}
}

/* ——— Player options A B C D ——— */
.mscomc_opt_label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.45);
	margin-bottom: 10px;
}

.mscomc_sideopt_pro .lv1 {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.mscomc_sideopt_pro .lv1 > li {
	margin: 0;
	width: auto;
	min-width: 0;
}

.mscomc_sideopt_pro .lv1 > li > a.player-opt,
.mscomc_sideopt_pro .lv1 > li > a.nd {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border-radius: var(--movyn-radius-pill);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--movyn-pro-border);
	color: #fff;
	font-weight: 600;
	font-size: 13px;
	transition: background var(--movyn-duration-fast) var(--movyn-ease), border-color var(--movyn-duration-fast) var(--movyn-ease), transform var(--movyn-duration-fast) var(--movyn-ease);
	white-space: nowrap;
}

.mscomc_sideopt_pro .lv1 > li > a.player-opt:hover,
.mscomc_sideopt_pro .lv1 > li > a.nd:hover,
.mscomc_sideopt_pro .lv1 > li > a.player-opt.active,
.mscomc_sideopt_pro .lv1 > li > a.player-opt.is-active {
	background: var(--movyn-accent-soft);
	border-color: var(--movyn-accent-border);
	transform: translateY(-1px);
}

.opt-letter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 6px;
	background: var(--movyn-pro-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	flex: none;
}

.mscomc_video {
	border-radius: var(--movyn-radius-md);
	overflow: hidden;
	box-shadow: var(--movyn-pro-shadow);
}

.iframe_wrapper {
	border-radius: 0 0 12px 12px;
}

/* ——— Episodes list Pro ——— */
.mscomc_episodes_head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin: 8px 0 14px;
}

.mscomc_episodes_head strong {
	font-size: 18px;
	color: #fff;
	font-weight: 700;
}

.mscomc_episodes_hint {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.45);
}

#mscomc_select_season {
	border-radius: var(--movyn-radius-sm) !important;
	font-weight: 600;
	min-width: 160px;
}

.posts-list-episodes .post.ep-card {
	transition: transform var(--movyn-duration) var(--movyn-ease), box-shadow var(--movyn-duration) var(--movyn-ease);
}

.posts-list-episodes .post.ep-card:hover {
	transform: translateY(-3px);
}

.posts-list-episodes .post.ep-card.active {
	outline: 2px solid var(--movyn-pro-accent);
	outline-offset: 2px;
	border-radius: var(--movyn-radius-sm);
}

.posts-list-episodes .post .image {
	border-radius: var(--movyn-radius-sm);
	overflow: hidden;
}

.ep-play-icon {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%) scale(0.9);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #111;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.15s ease, transform 0.15s ease;
	z-index: 2;
	font-size: 13px;
	pointer-events: none;
}

.posts-list-episodes .post:hover .ep-play-icon,
.posts-list-episodes .post.active .ep-play-icon {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.ep-watching {
	position: absolute;
	top: 6px;
	left: 6px;
	z-index: 3;
	background: var(--movyn-pro-accent);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 3px 7px;
	border-radius: 4px;
}

.post-episode {
	font-weight: 800 !important;
	letter-spacing: 0.02em;
}

.ep-num-title {
	font-weight: 600 !important;
	line-height: 1.3 !important;
}

/* ——— Cards filmes/séries mais premium ——— */
.posts-list .post .image {
	border-radius: var(--movyn-radius-sm);
	overflow: hidden;
	box-shadow: var(--movyn-shadow-sm);
}

.posts-list .post:hover .image {
	box-shadow: var(--movyn-shadow);
}

.block-title {
	font-weight: 700 !important;
	letter-spacing: -0.01em;
}

/* ——— Tabs single (filmes/séries) ——— */
.msc_options_menu ul li a {
	border-radius: var(--movyn-radius-sm) 8px 0 0;
	transition: background 0.15s ease;
}

/* ——— Buttons / CTAs ——— */
.mscc_categories ul li a {
	border-radius: var(--movyn-radius-pill);
}

/* ——— Scrollbar suave na lista horizontal de eps mobile ——— */
@media (max-width: 480px) {
	.posts-list-episodes {
		-webkit-overflow-scrolling: touch;
	}
	.mscomc_sideopt_pro .lv1 {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 6px;
	}
	.mscomc_sideopt_pro .lv1::-webkit-scrollbar {
		height: 0;
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.posts-list-episodes .post.ep-card,
	.ep-play-icon,
	.mscomc_sideopt_pro .lv1 > li > a.player-opt {
		transition: none;
	}
}


/* ——— Episode nav Pro (sem hamburger no meio) ——— */
.en_ep_serie { display: none !important; } /* legado: some do meio */

.movyn-ep-serie-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: space-between;
	margin: 8px 0 14px;
	padding: 10px 12px;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: var(--movyn-radius-md);
}

.movyn-back-serie,
.movyn-jump-episodes {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #fff !important;
	text-decoration: none !important;
	font-size: 13px;
	font-weight: 600;
	padding: 8px 12px;
	border-radius: var(--movyn-radius-pill);
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.1);
	transition: background .2s, border-color .2s, transform .15s;
}

.movyn-back-serie:hover,
.movyn-jump-episodes:hover {
	background: rgba(255,242,0,0.12);
	border-color: rgba(255,242,0,0.45);
	transform: translateY(-1px);
}

.movyn-back-serie strong {
	color: #fff200;
	font-weight: 700;
	max-width: 160px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.movyn-jump-episodes {
	color: rgba(255,255,255,0.85) !important;
	font-weight: 500;
}

.episode_nav_pro {
	display: flex;
	gap: 12px;
	margin-bottom: 18px;
}

.episode_nav_pro .en_ep_before,
.episode_nav_pro .en_ep_after {
	flex: 1;
	margin: 0;
}

.episode_nav_pro .en_ep_before a,
.episode_nav_pro .en_ep_after a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px 14px;
	border-radius: var(--movyn-radius-md);
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.1);
	font-weight: 600;
	box-sizing: border-box;
}

.episode_nav_pro .en_ep_after a.movyn-next-ep {
	background: linear-gradient(135deg, #e8bd00, #fff200);
	color: #1a1a1a !important;
	border-color: transparent;
}

.episode_nav_pro .en_ep_after a.movyn-next-ep i {
	color: #1a1a1a !important;
}

.en_ep_disabled {
	display: block;
	text-align: center;
	padding: 12px;
	opacity: 0.35;
	font-size: 12px;
}

/* Continuar assistindo */
.movyn-continue-section .sc-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.movyn-continue-clear {
	background: transparent;
	border: 1px solid rgba(255,255,255,0.15);
	color: rgba(255,255,255,0.7);
	border-radius: var(--movyn-radius-pill);
	padding: 6px 12px;
	font-size: 12px;
	cursor: pointer;
}

.movyn-continue-clear:hover {
	border-color: #fff200;
	color: #fff;
}

.movyn-continue-card {
	position: relative;
}

.movyn-continue-card .movyn-continue-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 2;
	background: var(--movyn-accent);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 3px 7px;
	border-radius: 4px;
}

.movyn-continue-meta {
	font-size: 11px;
	color: rgba(255,255,255,0.55);
	margin-top: 2px;
}

/* Series-only: esconde blocos de filme residual */
body.movyn-series-only .section-posts:has(.block-title):has([href*="movie"]) { }
/* fallback sem :has — classes via PHP remove action */

#movyn-episodes-list {
	scroll-margin-top: 90px;
}

@media (max-width: 540px) {
	.movyn-ep-serie-bar {
		flex-direction: column;
		align-items: stretch;
	}
	.movyn-back-serie,
	.movyn-jump-episodes {
		justify-content: center;
	}
	.movyn-back-serie strong {
		max-width: 120px;
	}
	.episode_nav_pro .en_ep_before a span,
	.episode_nav_pro .en_ep_after a span {
		font-size: 12px;
	}
}


/* =========================================================
   NETFLIX HOME PACK — 1.1.5
   ========================================================= */

body.movyn-netflix {
	--nf-radius: 8px;
	--nf-gap: 10px;
	--nf-card-w: 160px;
	--nf-ep-w: 220px;
	--nf-ease: cubic-bezier(.2,.8,.2,1);
}

@media (min-width: 900px) {
	body.movyn-netflix {
		--nf-card-w: 180px;
		--nf-ep-w: 260px;
	}
}

/* —— Home rows (fileiras) —— */
body.movyn-netflix-home .section-posts.movyn-row,
body.movyn-netflix-home .section-posts {
	margin: 8px 0 28px;
	position: relative;
}

body.movyn-netflix-home .section-posts .sc-top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
	padding: 0 2px;
}

body.movyn-netflix-home .block-title {
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	color: #fff;
	margin: 0;
}

body.movyn-netflix-home .block-title::after {
	display: none !important; /* remove underline feia do tema */
}

body.movyn-netflix-home .button-view-more a,
body.movyn-netflix-home .more-posts a {
	background: transparent !important;
	color: rgba(255,255,255,0.65) !important;
	font-size: 13px;
	font-weight: 600;
	padding: 0;
}

body.movyn-netflix-home .button-view-more a:hover {
	color: #fff200 !important;
}

/* Track horizontal */
body.movyn-netflix-home .posts-list .pl,
body.movyn-netflix-home .posts-list.plol .pl,
body.movyn-netflix-home .movyn-row-track .pl {
	display: flex !important;
	flex-wrap: nowrap !important;
	overflow-x: auto !important;
	overflow-y: hidden !important;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	gap: var(--nf-gap);
	padding: 8px 4px 18px;
	margin: 0 -4px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

body.movyn-netflix-home .posts-list .pl::-webkit-scrollbar {
	display: none;
}

body.movyn-netflix-home .posts-list .post,
body.movyn-netflix-home .posts-list.posts-list-episodes .post {
	flex: 0 0 var(--nf-card-w) !important;
	width: var(--nf-card-w) !important;
	max-width: var(--nf-card-w) !important;
	padding: 0 !important;
	margin: 0 !important;
	scroll-snap-align: start;
}

body.movyn-netflix-home .posts-list.posts-list-episodes .post {
	flex-basis: var(--nf-ep-w) !important;
	width: var(--nf-ep-w) !important;
	max-width: var(--nf-ep-w) !important;
}

body.movyn-netflix-home .posts-list .post a {
	display: block;
	transition: transform .28s var(--nf-ease);
	transform-origin: center center;
}

body.movyn-netflix-home .posts-list .post a:hover {
	transform: scale(1.03);
	z-index: 5;
}

body.movyn-netflix-home .posts-list .post .image {
	border-radius: var(--nf-radius) !important;
	box-shadow: 0 10px 28px rgba(0,0,0,.45);
	overflow: hidden;
}

body.movyn-netflix-home .posts-list .post .post-title {
	font-size: 13px !important;
	font-weight: 600;
	color: rgba(255,255,255,.92);
	margin-top: 8px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

body.movyn-netflix-home .posts-list .post .post-cat {
	font-size: 11px;
	opacity: .55;
}

/* Row nav arrows */
.movyn-row-nav {
	pointer-events: none;
	position: absolute;
	inset: 36px 0 0 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 6;
}

.movyn-row-nav button {
	pointer-events: auto;
	width: 42px;
	height: 100%;
	max-height: 160px;
	border: 0;
	background: linear-gradient(90deg, rgba(16,16,34,.92), transparent);
	color: #fff;
	font-size: 32px;
	cursor: pointer;
	opacity: 0;
	transition: opacity .2s;
}

.movyn-row-nav .movyn-row-next {
	background: linear-gradient(270deg, rgba(16,16,34,.92), transparent);
}

body.movyn-netflix-home .section-posts:hover .movyn-row-nav button {
	opacity: 1;
}

@media (max-width: 768px) {
	.movyn-row-nav { display: none; }
	body.movyn-netflix {
		--nf-card-w: 42vw;
		--nf-ep-w: 58vw;
	}
}

/* —— Slider / Hero Netflix —— */
body.movyn-netflix-home .slider-top {
	margin-bottom: 12px;
}

body.movyn-netflix-home .slider-top .mscc_title {
	font-size: clamp(1.6rem, 4vw, 2.6rem) !important;
	font-weight: 900 !important;
	text-shadow: 0 4px 24px rgba(0,0,0,.7);
	line-height: 1.15;
}

body.movyn-netflix-home .slider-top .mscc_description {
	max-width: 520px;
	font-size: 14px;
	line-height: 1.55;
	color: rgba(255,255,255,.82);
	text-shadow: 0 2px 12px rgba(0,0,0,.6);
}

body.movyn-netflix-home .slider-top .watch_now {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	padding: 12px 22px !important;
	border-radius: 6px !important;
	font-weight: 800 !important;
	font-size: 15px !important;
	letter-spacing: .02em;
	box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

body.movyn-netflix-home .slider-top .watch_now::before {
	content: '▶';
	font-size: 12px;
}

/* —— Badges —— */
.movyn-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 8;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 3px 7px;
	border-radius: 4px;
	color: #fff;
	background: var(--movyn-accent);
	box-shadow: 0 2px 8px rgba(0,0,0,.4);
	pointer-events: none;
}

.movyn-badge-new { background: var(--movyn-accent); }

.ep-watching {
	position: absolute !important;
	top: 8px !important;
	left: 8px !important;
	right: auto !important;
	z-index: 9 !important;
	background: var(--movyn-accent) !important;
	color: #fff !important;
	font-size: 10px !important;
	font-weight: 900 !important;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 4px 8px !important;
	border-radius: 4px !important;
}

/* progress bar on cards */
.movyn-progress {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: rgba(255,255,255,.18);
	z-index: 7;
}

.movyn-progress > i {
	display: block;
	height: 100%;
	background: var(--movyn-accent);
	width: 0;
}

/* —— Continue watching —— */
.movyn-continue-section .block-title {
	font-weight: 800;
}

.movyn-continue-card .image {
	position: relative;
}

/* —— Player limpo —— */
body.movyn-netflix-player .mscomc_repro {
	border-radius: var(--movyn-radius-md);
	overflow: hidden;
	background: #000;
	box-shadow: 0 16px 48px rgba(0,0,0,.5);
}

body.movyn-netflix-player .iframe_wrapper {
	position: relative;
	background: #0a0a12;
	min-height: 200px;
}

body.movyn-netflix-player .movyn-player-skeleton {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	color: rgba(255,255,255,.55);
	font-size: 13px;
	z-index: 1;
	pointer-events: none;
}

body.movyn-netflix-player .movyn-sk-pulse {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 3px solid rgba(255,242,0,.25);
	border-top-color: #fff200;
	animation: movynSpin .8s linear infinite;
}

@keyframes movynSpin {
	to { transform: rotate(360deg); }
}

body.movyn-netflix-player .iframe_wrapper.movyn-player-ready .movyn-player-skeleton {
	opacity: 0;
	visibility: hidden;
	transition: opacity .35s;
}

body.movyn-netflix-player .mscomc_opt_label {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: rgba(255,255,255,.45);
	margin-bottom: 8px;
}

body.movyn-netflix-player .mscomc_sideopt_pro a.player-opt,
body.movyn-netflix-player .mscomc_sideopt_pro a.nd {
	border-radius: var(--movyn-radius-pill) !important;
	padding: 8px 14px !important;
	font-weight: 700;
}

/* esconde relógio visual pesado se existir */
body.movyn-netflix-player .mscomc_repro .report-link,
body.movyn-netflix-player a[href*="report"] {
	opacity: .55;
	font-size: 12px;
}

/* —— Episode list polish —— */
body.movyn-netflix .mscomc_episodes .posts-list-episodes .post .image {
	border-radius: var(--movyn-radius-sm);
}

body.movyn-netflix .mscomc_episodes_head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin: 8px 0 12px;
}

body.movyn-netflix .mscomc_episodes_head strong {
	font-size: 1.15rem;
	font-weight: 800;
	color: #fff;
}

body.movyn-netflix .mscomc_episodes_hint {
	font-size: 12px;
	color: rgba(255,255,255,.45);
}

/* —— Alphabet slim —— */
body.movyn-netflix-home #alphabet-list ul {
	justify-content: center;
	flex-wrap: wrap;
	gap: 4px;
}

body.movyn-netflix-home #alphabet-list ul li a {
	border-radius: 6px;
	min-width: 32px;
	text-align: center;
	font-weight: 700;
	font-size: 12px;
}

/* —— Sidebar cleaner —— */
body.movyn-netflix #sidebar .widget_recent_entries,
body.movyn-netflix #sidebar .widget_recent_comments {
	opacity: .9;
}

/* —— Serie page —— */
body.movyn-netflix-serie .mscc_title {
	font-weight: 900;
	font-size: clamp(1.5rem, 3vw, 2.2rem);
}

/* —— Mobile touch —— */
@media (max-width: 540px) {
	body.movyn-netflix-player .movyn-ep-serie-bar {
		flex-direction: column;
	}
	body.movyn-netflix-home .block-title {
		font-size: 1.1rem;
	}
	body.movyn-netflix-home .slider-top .mscc_description {
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
}

/* empty text hide residual */
body.movyn-netflix-home .section-posts:empty { display: none; }


/* —— Qualidade de imagem (nitidez) —— */
body.movyn-netflix .posts-list .post .image,
body.movyn-netflix .posts-list-episodes .post .image,
body.movyn-netflix .ep-card .image {
	background-size: cover !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
	image-rendering: auto;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	transform: translateZ(0);
	/* evita blur de scale em GPU */
	will-change: auto;
}

body.movyn-netflix .posts-list .post .image img,
body.movyn-netflix .posts-list-episodes .post .image img {
	image-rendering: auto;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* menos zoom no hover = menos pixelação */
body.movyn-netflix-home .posts-list .post a {
	transition: transform .22s ease, box-shadow .22s ease;
}

/* —— Marca d'água SOMENTE no player (nunca fixed no body / nunca e-mail) —— */
/* Kill legacy full-page floating watermark if cached HTML still has #movyn-wm */
#movyn-wm,
.movyn-watermark--page,
body > .movyn-watermark {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
	opacity: 0 !important;
}

.mscomc_video,
.mscomc_video.movyn-protected,
.iframe_wrapper.movyn-protected {
	position: relative;
	overflow: hidden;
	user-select: none;
	-webkit-user-select: none;
}

/* watermark container: absolute inside player only */
.mscomc_video > .movyn-watermark,
.movyn-protected > .movyn-watermark {
	pointer-events: none;
	position: absolute;
	inset: 0;
	z-index: 6;
	display: block;
	overflow: hidden;
	/* above iframe overlay but below UI chrome if any */
}

.movyn-watermark .movyn-wm-line,
.movyn-watermark span {
	position: absolute;
	left: 50%;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.13);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
	white-space: nowrap;
	user-select: none;
	font-size: clamp(12px, 1.8vw, 18px);
	font-family: var(--movyn-font-display, system-ui, sans-serif);
	transform: translate(-50%, -50%) rotate(-24deg);
}

.movyn-wm-line-0 { top: 28%; }
.movyn-wm-line-1 { top: 50%; opacity: 0.9; }
.movyn-wm-line-2 { top: 72%; opacity: 0.75; }

/* dim only the player when tab hidden */
.movyn-protected.movyn-cap-dim::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 7;
	pointer-events: none;
}

/* impede seleção/arraste de thumbs */
body.movyn-netflix .posts-list .post .image,
body.movyn-netflix-player .iframe_wrapper {
	-webkit-user-drag: none;
	user-select: none;
}


/* —— FIX LAZY IMAGES 1.1.7 —— */
body.movyn-netflix .posts-list .post .image.imgload,
body.movyn-netflix .posts-list .post .image.load,
body.movyn-netflix .posts-list-episodes .post .image.imgload,
body.movyn-netflix .ep-card .image.imgload {
	background-size: cover !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
}

/* shimmer some quando já tem imagem */
body.movyn-netflix .posts-list .post .image.imgload::before,
body.movyn-netflix .posts-list .post .image.load::before,
body.movyn-netflix .posts-list-episodes .post .image.imgload::before {
	display: none !important;
	animation: none !important;
	opacity: 0 !important;
}

/* garante caixa com área mesmo se ratio falhar */
body.movyn-netflix .posts-list .post .image {
	min-height: 120px;
}
body.movyn-netflix .posts-list.posts-list-episodes .post .image {
	min-height: 100px;
}


/* =========================================================
   Fase A polish 1.1.9 — cards, hero, player, mobile CTA
   ========================================================= */

/* Poster cards premium */
body.movyn-netflix .posts-list .post .image {
	border-radius: var(--movyn-radius-md, 12px);
	box-shadow: var(--movyn-shadow-poster, 0 10px 28px rgba(0,0,0,.4));
	transition: transform var(--movyn-duration, .22s) var(--movyn-ease, ease),
		box-shadow var(--movyn-duration, .22s) var(--movyn-ease, ease);
}
body.movyn-netflix .posts-list .post a:hover .image {
	transform: scale(1.04);
	box-shadow: var(--movyn-shadow, 0 16px 40px rgba(0,0,0,.45));
}
/* gradiente inferior no hover (sem pixelação) */
body.movyn-netflix .posts-list .post .image::after {
	/* play icon já existe no core; reforça contraste */
	border-color: rgba(255,255,255,.95);
}

/* Títulos cinema */
body.movyn-netflix .block-title,
body.movyn-netflix .mscc_title,
body.movyn-netflix .slider-top .mscc_title {
	font-family: var(--movyn-font-display, inherit);
	letter-spacing: -0.02em;
	color: var(--movyn-text, #f4f5f7);
}

/* Hero CTAs */
body.movyn-netflix-home .slider-top .watch_now {
	border-radius: var(--movyn-radius-pill, 999px);
	padding: 12px 28px 12px 22px;
	font-weight: 700;
	letter-spacing: 0.02em;
	box-shadow: 0 8px 24px rgba(var(--movyn-accent-rgb, 229, 9, 20), 0.35);
	background: var(--movyn-button, var(--movyn-accent)) !important;
}
body.movyn-netflix-home .slider-top .mscc_postmeta {
	gap: 10px;
	opacity: 0.92;
	letter-spacing: 0.02em;
	flex-wrap: wrap;
}
/* vignette hero mais forte */
body.movyn-netflix-home .home .msc_background::before,
body.movyn-netflix-home .msc_background::before {
	background: linear-gradient(
		to bottom,
		rgba(8,10,14,0.55) 0%,
		rgba(8,10,14,0.15) 40%,
		var(--movyn-bg, #0c0e12) 96%
	) !important;
}

/* Player options pills — estado ativo forte */
.mscomc_sideopt_pro .lv1 > li > a.player-opt.active,
.mscomc_sideopt_pro .lv1 > li > a.player-opt.is-active {
	background: var(--movyn-accent) !important;
	border-color: var(--movyn-accent) !important;
	color: #fff !important;
	box-shadow: 0 6px 18px rgba(var(--movyn-accent-rgb, 229, 9, 20), 0.35);
}
.mscomc_sideopt_pro .lv1 > li > a.player-opt.active .opt-letter,
.mscomc_sideopt_pro .lv1 > li > a.player-opt.is-active .opt-letter {
	background: #fff;
	color: var(--movyn-accent);
}

/* Player skeleton */
.movyn-player-skeleton {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	background: var(--movyn-bg-elevated, #12151c);
	color: var(--movyn-text-muted);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
}
.movyn-sk-pulse {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 3px solid rgba(255,255,255,0.12);
	border-top-color: var(--movyn-accent);
	animation: movyn-spin 0.9s linear infinite;
}
@keyframes movyn-spin {
	to { transform: rotate(360deg); }
}
.iframe_wrapper.movyn-player-ready .movyn-player-skeleton {
	display: none;
}

/* Progress bar continue / episode */
.movyn-progress {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: rgba(255,255,255,0.15);
	z-index: 4;
}
.movyn-progress i {
	display: block;
	height: 100%;
	background: var(--movyn-accent);
	border-radius: 0 2px 2px 0;
}

/* Sticky mobile CTA Assistir */
.movyn-sticky-watch {
	display: none;
}
@media (max-width: 768px) {
	.movyn-sticky-watch {
		display: flex;
		position: fixed;
		left: 12px;
		right: 12px;
		bottom: calc(12px + env(safe-area-inset-bottom, 0px));
		z-index: 99950;
		align-items: center;
		justify-content: center;
		gap: 8px;
		padding: 14px 18px;
		border-radius: var(--movyn-radius-pill, 999px);
		background: var(--movyn-button, var(--movyn-accent));
		color: #fff;
		font-weight: 700;
		font-size: 15px;
		text-decoration: none !important;
		box-shadow: 0 10px 30px rgba(0,0,0,0.45);
		min-height: 48px; /* touch target */
	}
	body.has-movyn-float .movyn-sticky-watch {
		bottom: calc(78px + env(safe-area-inset-bottom, 0px));
	}
	/* episódios em lista mais legível no mobile */
	body.movyn-netflix-player .posts-list-episodes,
	body.movyn-netflix-serie .posts-list-episodes {
		display: flex !important;
		flex-direction: column;
		gap: 10px;
	}
	body.movyn-netflix-player .posts-list-episodes .post,
	body.movyn-netflix-serie .posts-list-episodes .post {
		width: 100% !important;
		display: flex !important;
		text-align: left;
		margin-bottom: 0;
	}
	body.movyn-netflix-player .posts-list-episodes .post > a,
	body.movyn-netflix-serie .posts-list-episodes .post > a {
		display: grid;
		grid-template-columns: 140px 1fr;
		gap: 12px;
		align-items: center;
		text-align: left;
		width: 100%;
	}
	body.movyn-netflix-player .posts-list-episodes .post .image,
	body.movyn-netflix-serie .posts-list-episodes .post .image {
		padding-bottom: 56.25% !important;
		margin-bottom: 0 !important;
		width: 100%;
	}
	body.movyn-netflix-player .posts-list-episodes .post-title,
	body.movyn-netflix-serie .posts-list-episodes .post-title {
		width: auto;
		max-width: none;
		text-align: left;
		margin: 0;
	}
}

/* Alphabet pills mais finos */
#alphabet-list ul li a {
	background: var(--movyn-surface, #161a22) !important;
	border: 1px solid var(--movyn-border);
	border-radius: var(--movyn-radius-sm, 6px);
	min-width: 36px;
	min-height: 36px;
	line-height: 26px;
}
#alphabet-list ul li a:hover,
#alphabet-list ul li a.active {
	background: var(--movyn-accent) !important;
	border-color: var(--movyn-accent);
}

/* Empty state */
.movyn-empty-state {
	text-align: center;
	padding: 48px 20px;
	color: var(--movyn-text-muted);
}
.movyn-empty-state strong {
	display: block;
	color: var(--movyn-text);
	font-size: 18px;
	font-family: var(--movyn-font-display);
	margin-bottom: 8px;
}

@media (prefers-reduced-motion: reduce) {
	body.movyn-netflix .posts-list .post a:hover .image,
	.movyn-sk-pulse {
		transition: none !important;
		animation: none !important;
		transform: none !important;
	}
}
