/* =========================================================
   CinePlay v2 — réplica do modelo "Cineplay Standalone".
   Tokens, header, hero, grid, single, footer.
   ========================================================= */

/* ---------- Reset leve ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* Nada de scroll/vazamento horizontal (clip não quebra position:sticky). */
html, body { overflow-x: clip; max-width: 100%; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------- Tokens (modo escuro padrão) ---------- */
:root,
html[data-cp-theme="dark"] {
	--bg:          #0a0a0c;
	--bg-2:        #101013;
	--surface:     #15151a;
	--surface-2:   #1c1c22;
	--border:      rgba(255,255,255,0.08);
	--border-2:    rgba(255,255,255,0.16);
	--text:        #f4f4f6;
	--text-dim:    #abacb5;
	--text-mute:   #8b8b95;
	--accent:      #ff2e43;
	--brand:       #c8102a;
	--accent-bg:   var(--brand);
	--accent-2:    #ff5563;
	--accent-soft: rgba(255,46,67,0.30);
	--header-bg:   rgba(10,10,12,0.72);
	--shadow:      rgba(0,0,0,0.6);
	--hero-scrim:  rgba(8,8,10,0.86);
	--cover-bg:    #0a0a0c;
}
html[data-cp-theme="light"] {
	--bg:          #eef0f2;
	--bg-2:        #ffffff;
	--surface:     #ffffff;
	--surface-2:   #f6f7f8;
	--border:      rgba(0,0,0,0.09);
	--border-2:    rgba(0,0,0,0.18);
	--text:        #16161a;
	--text-dim:    #52525b;
	--text-mute:   #65656f;
	--accent:      #e4121f;
	--brand:       #c8102a;
	--accent-bg:   var(--brand);
	--accent-2:    #ff3b48;
	--accent-soft: rgba(228,18,31,0.22);
	--header-bg:   rgba(255,255,255,0.82);
	--shadow:      rgba(0,0,0,0.16);
	--hero-scrim:  rgba(255,255,255,0.05);
	--cover-bg:    #e3e5ea;
}

body.cp-body {
	min-height: 100vh;
	background: var(--bg);
	color: var(--text);
	font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	transition: background .35s, color .35s;
}
::selection { background: var(--accent-bg); color: #fff; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
	background: var(--border-2);
	border-radius: 20px;
	border: 3px solid transparent;
	background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-mute); background-clip: content-box; }

.cp-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* ---------- Animações ---------- */
@keyframes cpFade {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ============== HEADER ============== */
.cp-header {
	position: sticky;
	top: 0;
	z-index: 60;
	display: flex;
	align-items: center;
	gap: clamp(14px, 3vw, 40px);
	height: 66px;
	padding: 0 clamp(16px, 4vw, 52px);
	background: var(--header-bg);
	backdrop-filter: blur(16px) saturate(1.4);
	-webkit-backdrop-filter: blur(16px) saturate(1.4);
	border-bottom: 1px solid var(--border);
}
.cp-logo {
	display: flex;
	align-items: center;
	gap: 11px;
	user-select: none;
}
.cp-logo__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 5px;
	background: var(--brand);
	box-shadow: 0 6px 18px var(--accent-soft);
}
.cp-logo__text {
	font-family: 'Archivo', sans-serif;
	font-weight: 900;
	font-size: 20px;
	letter-spacing: -0.5px;
	line-height: 1;
}
.cp-logo__cine { color: var(--text); }
.cp-logo__play { color: var(--brand); }
.cp-logo--sm .cp-logo__badge { width: 28px; height: 28px; border-radius: 8px; }
.cp-logo--sm .cp-logo__text { font-size: 16px; letter-spacing: -0.4px; }

.cp-nav {
	display: flex;
	align-items: center;
	gap: 6px;
}
.cp-nav__item {
	padding: 8px 14px;
	border-radius: 5px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--text-dim);
	transition: color .2s, background .2s;
}
.cp-nav__item:hover,
.cp-nav__item.is-active {
	color: var(--text);
	background: var(--surface);
}
/* Menu do WordPress (wp_nav_menu) no header */
.cp-nav .cp-menu {
	display: flex;
	align-items: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.cp-nav .cp-menu li { margin: 0; }
.cp-nav .cp-menu a {
	display: block;
	padding: 8px 14px;
	border-radius: 5px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--text-dim);
	transition: color .2s, background .2s;
}
.cp-nav .cp-menu a:hover,
.cp-nav .cp-menu .current-menu-item > a,
.cp-nav .cp-menu .current-menu-parent > a,
.cp-nav .cp-menu .current-cat > a {
	color: var(--text);
	background: var(--surface);
}
@media (max-width: 980px) { .cp-nav { display: none; } }

/* Menu mobile (lista do WP dentro do painel deslizante) */
.cp-mobile-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.cp-mobile-menu li { margin: 0; }
.cp-mobile-menu a {
	display: block;
	padding: 13px 14px;
	border-radius: 5px;
	font-size: 15px;
	font-weight: 600;
	color: var(--text-dim);
}
.cp-mobile-menu a:hover,
.cp-mobile-menu .current-menu-item > a,
.cp-mobile-menu .current-cat > a {
	background: var(--surface);
	color: var(--text);
}

.cp-header__spacer { flex: 1; }
.cp-header__tools {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	/* min-width:auto impediria a busca de encolher: o header estourava a
	   largura e, com overflow-x:clip no body, o botao Entrar sumia cortado. */
	min-width: 0;
	flex: 0 1 auto;
}
/* Os botoes do header tem largura fixa: encolher deforma o icone. Quem cede e a busca. */
.cp-header__tools .cp-icon-btn,
.cp-header__tools .cp-btn { flex: none; }

.cp-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 5px;
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--text-dim);
	cursor: pointer;
	transition: all .2s;
	position: relative;
}
.cp-icon-btn:hover {
	color: var(--text);
	border-color: var(--border-2);
}

/* tema (sol/lua) */
.cp-icon-sun { display: none; }
.cp-icon-moon { display: block; }
html[data-cp-theme="dark"] .cp-icon-sun { display: block; }
html[data-cp-theme="dark"] .cp-icon-moon { display: none; }

/* Busca */
.cp-search {
	display: flex;
	align-items: center;
	gap: 9px;
	height: 40px;
	padding: 0 14px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 5px;
	transition: border-color .2s;
	width: clamp(180px, 22vw, 280px);
	min-width: 0;
	flex: 0 1 auto;
}
.cp-search__icon { flex: none; color: var(--text-mute); }
.cp-search__input {
	flex: 1;
	min-width: 0;
	height: 100%;
	background: transparent;
	border: 0;
	outline: 0;
	color: var(--text);
	font-size: 14px;
}
.cp-search__input::placeholder { color: var(--text-mute); }
.cp-search__submit {
	display: none;
	background: transparent;
	border: 0;
	color: var(--text-mute);
	cursor: pointer;
}
.cp-search:focus-within {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}
.cp-search-toggle { display: none; }
/* Em telas médias/pequenas a busca vira só a lupa + painel sobreposto, para
   nunca empurrar o menu/botões do header (nem quebrar linha ao lado do logo). */
@media (max-width: 1400px) {
	.cp-header__tools .cp-search:not(.is-open) { display: none; }
	.cp-search.is-open {
		display: flex;
		position: absolute;
		top: calc(100% + 8px);
		right: 0;
		width: min(92vw, 360px);
		z-index: 70;
		box-shadow: 0 18px 40px var(--shadow);
	}
	.cp-search-toggle { display: inline-flex; }
}

/* Menu ao lado do logo nunca quebra em duas linhas. */
.cp-nav,
.cp-nav .cp-menu { flex-wrap: nowrap; }
.cp-nav .cp-menu a,
.cp-nav__item { white-space: nowrap; }

.cp-search--block {
	width: 100%;
	max-width: 640px;
}

/* Favoritos */
.cp-fav-badge {
	position: absolute;
	top: -5px;
	right: -5px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 5px;
	background: var(--accent-bg);
	color: #fff;
	font-size: 10.5px;
	font-weight: 800;
	border: 2px solid var(--bg);
}

/* User */
.cp-user { position: relative; }
.cp-user__btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	height: 40px;
	padding: 0 9px 0 7px;
	border-radius: 5px;
	background: var(--surface);
	border: 1px solid var(--border);
	cursor: pointer;
	transition: all .2s;
}
.cp-user__btn:hover { border-color: var(--border-2); }
.cp-user__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	font-family: 'Archivo', sans-serif;
	font-weight: 800;
	font-size: 11px;
	color: #fff;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.cp-user__name {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--text);
	max-width: 120px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
@media (max-width: 1080px) { .cp-user__name { display: none; } }

.cp-user__menu {
	position: absolute;
	top: 50px;
	right: 0;
	z-index: 80;
	width: 260px;
	padding: 8px;
	background: var(--bg-2);
	border: 1px solid var(--border-2);
	border-radius: 5px;
	box-shadow: 0 28px 70px var(--shadow);
	animation: cpFade .18s ease-out;
}
.cp-user__menu-head {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 10px 10px 13px;
	border-bottom: 1px solid var(--border);
	margin-bottom: 6px;
}
.cp-user__menu-head .cp-user__avatar {
	width: 38px;
	height: 38px;
	font-size: 14px;
}
.cp-user__menu-id { min-width: 0; }
.cp-user__menu-name {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.cp-user__menu-email {
	font-size: 11.5px;
	color: var(--text-mute);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.cp-user__menu-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 11px;
	border-radius: 5px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--text-dim);
	transition: all .15s;
}
.cp-user__menu-item:hover {
	background: var(--surface);
	color: var(--text);
}
.cp-user__menu-item--accent {
	color: var(--accent);
	font-weight: 700;
	margin-top: 6px;
	border-top: 1px solid var(--border);
	padding-top: 14px;
}
.cp-user__menu-item--accent:hover { background: var(--accent-soft); color: var(--accent); }

/* Botões */
.cp-btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	height: 40px;
	padding: 0 16px;
	border-radius: 5px;
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--text);
	font-weight: 700;
	font-size: 13.5px;
	cursor: pointer;
	transition: transform .2s, box-shadow .2s, background .2s;
}
.cp-btn--primary {
	background: var(--accent-bg);
	color: #fff;
	border-color: var(--accent);
	box-shadow: 0 6px 18px var(--accent-soft);
}
.cp-btn--primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 32px var(--accent-soft);
}
.cp-btn--ghost {
	background: rgba(255,255,255,0.12);
	color: #fff;
	border: 1px solid rgba(255,255,255,0.2);
	backdrop-filter: blur(8px);
}
.cp-btn--ghost:hover { background: rgba(255,255,255,0.22); }
.cp-btn--lg { height: 48px; padding: 0 22px; font-size: 14.5px; }
.cp-btn--block { width: 100%; justify-content: center; }

.cp-nav-toggle { display: none; }
@media (max-width: 980px) { .cp-nav-toggle { display: inline-flex; } }

.cp-mobile-nav {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px clamp(16px, 4vw, 52px);
	background: var(--bg-2);
	border-bottom: 1px solid var(--border);
}
.cp-mobile-nav__item {
	padding: 11px 14px;
	border-radius: 5px;
	font-size: 14px;
	font-weight: 600;
	color: var(--text-dim);
}
.cp-mobile-nav__item:hover { background: var(--surface); color: var(--text); }

/* ============== PAGE ============== */
.cp-page { display: block; }
.cp-main {
	max-width: 1480px;
	margin: 0 auto;
	padding: clamp(18px, 3vw, 32px) clamp(16px, 4vw, 52px) 80px;
}
.cp-main--narrow { max-width: 880px; }

/* ============== HERO ============== */
.cp-hero {
	position: relative;
	height: clamp(260px, 40vw, 470px);
	border-radius: 5px;
	overflow: hidden;
	border: 1px solid var(--border);
	box-shadow: 0 24px 60px var(--shadow);
}
.cp-hero__slide {
	position: absolute;
	inset: 0;
	display: flex;
	opacity: 0;
	transition: opacity .6s ease;
}
.cp-hero__slide.is-active { opacity: 1; z-index: 2; }
.cp-hero__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, var(--hero-scrim) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
}
.cp-hero__body {
	position: relative;
	z-index: 2;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
	padding: clamp(22px, 5vw, 60px);
	max-width: 640px;
}
.cp-hero__pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: fit-content;
	padding: 6px 13px;
	border-radius: 100px;
	background: var(--accent-bg);
	color: #fff;
	font-weight: 700;
	font-size: 11.5px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}
.cp-hero__title {
	margin: 0;
	font-family: 'Archivo', sans-serif;
	font-weight: 900;
	font-size: clamp(30px, 6vw, 64px);
	line-height: 0.95;
	letter-spacing: -1.5px;
	color: #fff;
	text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.cp-hero__tag {
	margin: 0;
	font-size: clamp(13px, 1.6vw, 16px);
	color: rgba(255,255,255,0.78);
	max-width: 440px;
	line-height: 1.55;
}
.cp-hero__cta {
	display: flex;
	gap: 12px;
	margin-top: 6px;
	flex-wrap: wrap;
}

.cp-hero__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(0,0,0,0.4);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(255,255,255,0.18);
	color: #fff;
	cursor: pointer;
	transition: background .2s;
}
.cp-hero__arrow:hover { background: var(--accent); }
.cp-hero__arrow--prev { left: 14px; }
.cp-hero__arrow--next { right: 14px; }

.cp-hero__dots {
	position: absolute;
	/* O ponto visivel tem 8px mas a caixa clicavel tem 24px: o recuo compensa o padding
	   para o ponto continuar na mesma altura de antes. */
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	display: flex;
	gap: 0;
}
.cp-hero__dot {
	/* 8px visiveis, 24x24 clicaveis: o alvo cresce pelo padding e o background
	   fica preso a caixa de conteudo, entao o ponto continua do mesmo tamanho. */
	width: 8px;
	height: 8px;
	padding: 8px;
	background-clip: content-box;
	box-sizing: content-box;
	border-radius: 999px;
	background: rgba(255,255,255,0.4);
	border: 0;
	cursor: pointer;
	transition: background .2s, width .25s;
}
.cp-hero__dot.is-active {
	width: 26px;
	border-radius: 999px;
	background: var(--accent);
}

/* ============== SECTION BAR ============== */
.cp-section-bar {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 34px 0 20px;
	flex-wrap: wrap;
}
.cp-section-bar__title {
	display: flex;
	align-items: center;
	gap: 11px;
}
.cp-section-bar__rule {
	width: 4px;
	height: 26px;
	border-radius: 3px;
	background: var(--accent);
}
.cp-section-bar__title h2 {
	margin: 0;
	font-family: 'Archivo', sans-serif;
	font-weight: 800;
	font-size: clamp(22px, 3vw, 30px);
	letter-spacing: -0.8px;
	color: var(--text);
}
.cp-section-bar__count {
	font-size: 13px;
	color: var(--text-mute);
	font-weight: 600;
	margin-top: 6px;
}
.cp-section-bar__sort {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 13px;
	color: var(--text-mute);
	font-weight: 600;
}
.cp-sort {
	position: relative;
}
.cp-sort__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	padding: 0 14px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 5px;
	color: var(--text);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: border-color .2s;
}
.cp-sort__btn:hover { border-color: var(--border-2); }
.cp-sort.is-open .cp-sort__btn { border-color: var(--accent); }
.cp-sort.is-open .cp-sort__btn svg { transform: rotate(180deg); }
.cp-sort__btn svg { transition: transform .2s; }
.cp-sort__menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	min-width: 180px;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: var(--surface);
	border: 1px solid var(--border-2);
	border-radius: 5px;
	box-shadow: 0 18px 44px var(--shadow);
	z-index: 50;
}
.cp-sort__menu li { margin: 0; }
.cp-sort__opt {
	display: block;
	padding: 9px 12px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--text-dim);
	white-space: nowrap;
}
.cp-sort__opt:hover { background: var(--surface-2); color: var(--text); }
.cp-sort__opt.is-active { color: var(--accent); }

/* ============== CHIPS ============== */
.cp-chips {
	display: flex;
	gap: 9px;
	overflow-x: auto;
	padding-bottom: 16px;
	margin-bottom: 8px;
	scrollbar-width: none;
}
.cp-chips::-webkit-scrollbar { display: none; }
.cp-chip {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 16px;
	border-radius: 100px;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	transition: all .2s;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text-dim);
}
.cp-chip:hover { color: var(--text); border-color: var(--border-2); }
.cp-chip.is-active {
	background: var(--accent-bg);
	color: #fff;
	border-color: var(--accent);
}

/* ============== GRID + CARDS ============== */
.cp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
	gap: clamp(14px, 1.6vw, 24px);
}

.cp-card {
	position: relative;
	cursor: pointer;
}
.cp-card__link { display: block; }
.cp-card__cover {
	position: relative;
	aspect-ratio: 2 / 3;
	border-radius: 5px;
	overflow: hidden;
	border: 1px solid var(--border);
	box-shadow: 0 2px 10px var(--shadow);
	transition: border-color .18s, box-shadow .18s;
}
.cp-card:hover .cp-card__cover {
	border-color: var(--accent);
	box-shadow: 0 0 0 1px var(--accent), 0 10px 28px var(--shadow);
}

.cp-card__cover-text {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 14px;
	text-align: center;
	z-index: 2;
	pointer-events: none;
}
.cp-card__cover-studio {
	font-family: 'Archivo', sans-serif;
	font-weight: 900;
	font-size: clamp(15px, 1.5vw, 19px);
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: rgba(255,255,255,0.94);
	line-height: 1.05;
	text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.cp-badge-new {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 4px 9px;
	border-radius: 6px;
	background: var(--accent-bg);
	color: #fff;
	font-weight: 800;
	font-size: 10px;
	letter-spacing: 1px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.4);
	z-index: 3;
}
.cp-badge-quality {
	position: absolute;
	top: 10px;
	right: 10px;
	padding: 3px 8px;
	border-radius: 6px;
	background: rgba(0,0,0,0.55);
	backdrop-filter: blur(4px);
	color: #fff;
	font-family: 'JetBrains Mono', monospace;
	font-size: 10px;
	font-weight: 500;
	z-index: 3;
}

.cp-card__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.65));
	opacity: 0;
	transition: opacity .28s;
	padding: 16px;
	z-index: 3;
}
.cp-card:hover .cp-card__overlay { opacity: 1; }
.cp-card__play {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.cp-card__pills {
	display: flex;
	gap: 7px;
	flex-wrap: wrap;
	justify-content: center;
}
.cp-card__pill {
	padding: 4px 9px;
	border-radius: 6px;
	background: rgba(255,255,255,0.16);
	backdrop-filter: blur(6px);
	color: #fff;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.3px;
}

.cp-card__fav {
	position: absolute;
	bottom: 10px;
	right: 10px;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border-radius: 5px;
	background: rgba(0,0,0,0.55);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(255,255,255,0.25);
	color: #fff;
	cursor: pointer;
	transition: all .22s;
	opacity: 0;
	transform: scale(0.8);
}
.cp-card:hover .cp-card__fav,
.cp-card.is-faved .cp-card__fav {
	opacity: 1;
	transform: scale(1);
}
.cp-card.is-faved .cp-card__fav {
	background: var(--accent);
	border-color: var(--accent);
}
.cp-card__fav-on { display: none; }
.cp-card.is-faved .cp-card__fav-add { display: none; }
.cp-card.is-faved .cp-card__fav-on { display: block; }

.cp-card__info { padding: 11px 3px 4px; }
.cp-card__title {
	margin: 0;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.3;
	color: var(--text);
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	min-height: 36px;
}
.cp-card__title a { color: inherit; }
.cp-card__title a:hover { color: var(--accent); }
.cp-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 5px;
}
.cp-card__studio {
	font-size: 12px;
	font-weight: 600;
	color: var(--text-dim);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}
.cp-card__studio:hover { color: var(--accent); }
.cp-card__year {
	font-size: 12px;
	color: var(--text-mute);
	font-family: 'JetBrains Mono', monospace;
}

/* ============== EMPTY ============== */
.cp-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 80px 20px;
	text-align: center;
}
.cp-empty--lg { padding: 120px 20px; }
.cp-empty__icon { font-size: 40px; }
.cp-empty__title {
	font-weight: 700;
	font-size: 18px;
	color: var(--text);
}
.cp-empty__msg {
	font-size: 14px;
	color: var(--text-mute);
}

/* ============== PAGINATION ============== */
.cp-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 54px;
	flex-wrap: wrap;
}
.cp-pagination__item .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border-radius: 5px;
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--text-dim);
	font-weight: 700;
	font-size: 13px;
	transition: all .18s;
}
.cp-pagination__item .page-numbers:hover {
	color: var(--text);
	border-color: var(--border-2);
}
.cp-pagination__item .page-numbers.current {
	background: var(--accent-bg);
	border-color: var(--accent);
	color: #fff;
	box-shadow: 0 6px 18px var(--accent-soft);
}
.cp-pagination__item .page-numbers.dots {
	background: transparent;
	border-color: transparent;
}

/* ============== DETAIL ============== */
.cp-detail { position: relative; }
.cp-detail__backdrop {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 460px;
	z-index: 0;
	opacity: 0.7;
}
.cp-detail__inner {
	position: relative;
	z-index: 2;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 clamp(16px, 4vw, 52px) 80px;
}
.cp-detail__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 22px 0 26px;
	padding: 9px 16px;
	border-radius: 5px;
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--text-dim);
	font-weight: 600;
	font-size: 13.5px;
	transition: all .2s;
}
.cp-detail__back:hover {
	color: var(--text);
	border-color: var(--border-2);
}
.cp-detail__cols {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(24px, 3vw, 46px);
	align-items: flex-start;
}
.cp-detail__left {
	flex: 0 0 320px;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.cp-detail__right {
	flex: 1 1 460px;
	min-width: 300px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.cp-detail__cover {
	position: relative;
	aspect-ratio: 2 / 3;
	border-radius: 5px;
	overflow: hidden;
	/* Sem borda: emoldurava a capa com uma linha de 1px (visível em cima/embaixo
	   onde a imagem 'cover' é cropada). A profundidade fica só na sombra. */
	border: 0;
	box-shadow: 0 18px 48px var(--shadow);
}

/* Minha lista (favoritos) */
.cp-mylist .cp-detail__inner { padding-top: 24px; }
.cp-mylist-loading {
	color: var(--text-dim);
	font-size: 14px;
	padding: 24px 0;
}
.cp-mylist-empty {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	padding: 32px 0 48px;
	color: var(--text-dim);
}
.cp-mylist-empty p { margin: 0; font-size: 15px; }

.cp-detail__tags {
	display: flex;
	gap: 8px;
	margin-bottom: 4px;
	flex-wrap: wrap;
}
.cp-detail__tag {
	padding: 5px 12px;
	border-radius: 8px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	color: var(--text-dim);
	font-size: 12px;
	font-weight: 600;
}
.cp-detail__title {
	margin: 0;
	font-family: 'Archivo', sans-serif;
	font-weight: 900;
	font-size: clamp(30px, 4.5vw, 52px);
	line-height: 1;
	letter-spacing: -1.5px;
	color: var(--text);
}
.cp-detail__crumbs {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 14px;
	color: var(--text-dim);
	font-weight: 600;
	flex-wrap: wrap;
}
.cp-detail__crumb { color: var(--text-dim); }
.cp-detail__crumb.cp-mono { color: var(--text-mute); }
.cp-detail__crumb--accent { color: var(--accent); font-weight: 700; }
.cp-detail__dot {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--text-mute);
}

/* Health: estilos da barra de saúde ficam no bloco "AJUSTES 2026-06-16". */

/* Meta list */
.cp-meta-list {
	border: 1px solid var(--border);
	border-radius: 5px;
	overflow: hidden;
	background: var(--surface);
}
.cp-meta-list__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border-bottom: 1px solid var(--border);
}
.cp-meta-list__row:last-child { border-bottom: 0; }
.cp-meta-list__label {
	font-size: 12.5px;
	color: var(--text-mute);
	font-weight: 600;
}
.cp-meta-list__value {
	font-size: 13px;
	font-weight: 700;
	color: var(--text);
	font-family: 'JetBrains Mono', monospace;
}

/* Tabs */
.cp-tabs {
	display: flex;
	gap: 6px;
	padding: 5px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: 5px;
	width: fit-content;
}
.cp-tab {
	padding: 9px 18px;
	background: transparent;
	border: 0;
	border-radius: 5px;
	color: var(--text-dim);
	font-weight: 800;
	font-size: 11.5px;
	letter-spacing: 1.5px;
	cursor: pointer;
	transition: all .2s;
}
.cp-tab.is-active {
	background: var(--accent-bg);
	color: #fff;
	box-shadow: 0 6px 18px var(--accent-soft);
}

/* Player */
.cp-player {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 5px;
	overflow: hidden;
	border: 1px solid var(--border);
	background: #000;
}
.cp-player__embed { position: absolute; inset: 0; }
.cp-player__embed iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}
.cp-player--watch {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(180deg, oklch(0.25 0.05 260), oklch(0.10 0.04 260));
}
.cp-player__body {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}
.cp-player__play {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 14px 40px rgba(0,0,0,0.55);
}
.cp-player__cta {
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
	letter-spacing: 2px;
	color: rgba(255,255,255,0.85);
	text-transform: uppercase;
	border: 1px solid rgba(255,255,255,0.25);
	padding: 9px 16px;
	border-radius: 5px;
	background: rgba(255,255,255,0.06);
	transition: background .2s;
}
.cp-player__cta:hover { background: rgba(255,255,255,0.14); }
.cp-player__dur {
	font-family: 'JetBrains Mono', monospace;
	font-size: 11px;
	color: rgba(255,255,255,0.55);
}

/* Blocks (sinopse / elenco) */
.cp-block {}
.cp-block__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}
.cp-block__rule {
	width: 4px;
	height: 20px;
	border-radius: 3px;
	background: var(--accent);
}
.cp-block__head h3 {
	margin: 0;
	font-family: 'Archivo', sans-serif;
	font-weight: 800;
	font-size: 18px;
	letter-spacing: -0.4px;
	color: var(--text);
}
.cp-block__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.75;
	color: var(--text-dim);
	max-width: 680px;
}

/* Cast */
.cp-cast {
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
}
.cp-cast__person {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 9px;
	width: 80px;
}
.cp-cast__avatar {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid var(--border);
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	color: #fff;
	font-family: 'Archivo', sans-serif;
	font-weight: 800;
	font-size: 17px;
	transition: border-color .2s, transform .25s;
}
.cp-cast__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.cp-cast__avatar.is-fallback::before {
	content: attr(data-initials);
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.cp-cast__person:hover .cp-cast__avatar {
	border-color: var(--accent);
	transform: scale(1.05);
}
.cp-cast__name {
	font-size: 12px;
	font-weight: 600;
	color: var(--text-dim);
	text-align: center;
	line-height: 1.25;
}

/* Related */
.cp-related { margin-top: 64px; }
/* Fileira "Em alta" na home: mesma mecânica do carrossel, respiro menor. */
.cp-hot { margin-top: 28px; margin-bottom: 8px; }
.cp-hot .cp-hot__title { white-space: nowrap; }
.cp-br__all { margin-left: 12px; font-size: 13px; color: var(--text-dim); text-decoration: none; white-space: nowrap; }
.cp-br__all:hover { color: var(--text); }
.cp-related__head {
	display: flex;
	align-items: center;
	gap: 11px;
	margin-bottom: 22px;
}
/* h2 na home ("Mais baixados" e secao de topo), h3 nos relacionados do post. */
.cp-related__head h2,
.cp-related__head h3 {
	margin: 0;
	font-family: 'Archivo', sans-serif;
	font-weight: 800;
	font-size: clamp(20px, 3vw, 26px);
	letter-spacing: -0.6px;
	color: var(--text);
	white-space: nowrap;
}
.cp-related__spacer { flex: 1; }
.cp-related__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border-radius: 50%;
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--text-dim);
	cursor: pointer;
	transition: all .2s;
}
.cp-related__arrow:hover {
	color: var(--text);
	border-color: var(--accent);
}
.cp-related__list {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	padding-bottom: 14px;
	scroll-behavior: smooth;
	scrollbar-width: none;
}
.cp-related__list::-webkit-scrollbar { display: none; }

.cp-rel-card {
	flex: 0 0 168px;
	display: block;
}
.cp-rel-card:hover .cp-rel-card__cover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 10px 28px var(--shadow); }
.cp-rel-card:hover .cp-rel-card__title { color: var(--accent); }
.cp-rel-card__cover {
	position: relative;
	aspect-ratio: 2 / 3;
	border-radius: 5px;
	overflow: hidden;
	border: 1px solid var(--border);
	box-shadow: 0 2px 10px var(--shadow);
	transition: border-color .18s, box-shadow .18s;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	text-align: center;
}
.cp-rel-card__cover-studio {
	font-family: 'Archivo', sans-serif;
	font-weight: 900;
	font-size: 15px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: rgba(255,255,255,0.92);
	text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.cp-rel-card__title {
	margin-top: 9px;
	font-weight: 700;
	font-size: 13px;
	line-height: 1.3;
	color: var(--text);
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.cp-rel-card__year {
	margin-top: 4px;
	font-size: 11.5px;
	color: var(--text-mute);
	font-family: 'JetBrains Mono', monospace;
}

/* ============== PAGE (estática) ============== */
.cp-page-article { margin-top: 24px; }
.cp-page-article__title {
	font-family: 'Archivo', sans-serif;
	font-weight: 900;
	font-size: clamp(28px, 4vw, 44px);
	letter-spacing: -1px;
	color: var(--text);
	margin: 0 0 20px;
}
.cp-page-article__body {
	font-size: 16px;
	line-height: 1.75;
	color: var(--text-dim);
}
.cp-page-article__body a { color: var(--accent); }
.cp-page-article__body img { border-radius: 5px; margin: 16px 0; }

/* ============== FOOTER ============== */
.cp-footer {
	border-top: 1px solid var(--border);
	background: var(--bg-2);
	padding: 40px clamp(16px, 4vw, 52px);
}
.cp-footer__inner {
	max-width: 1480px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
}
.cp-footer__copy {
	font-size: 12.5px;
	color: var(--text-mute);
	text-align: center;
}
.cp-footer__age {
	font-size: 12px;
	color: var(--text-mute);
	font-weight: 600;
}

/* ============== PLAYER DO TRAILER (embed cru salvo no meta) ============== */
.cp-player--trailer {
	/* mantem o aspect-ratio:16/9 da base .cp-player => MESMA altura da aba "Assistir". */
	background: #000;
	display: block;
}
.cp-player--trailer .pt-trailer-wrap { width: 100%; margin: 0; }
.cp-player--trailer video {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	display: block;
	background: #000;
	border-radius: 0;
	/* poster (capa wide) preenche o quadro 16:9 sem barras laterais; o video real
	   ja e 16:9, entao o cover so corta a sobra do poster, dando o leve zoom. */
	object-fit: cover;
}
/* Fluid Player envolve o <video> em .fluid_video_wrapper — faz ele preencher
   o quadro 16:9 do container (skin/controls/anuncio ficam todos dentro). */
.cp-player--trailer .fluid_video_wrapper {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	border-radius: 0;
}
.cp-player--trailer .fluid_video_wrapper video {
	object-fit: contain;
}

/* ============================================================
 * RESPONSIVO — tablet e celular.
 * ============================================================ */
@media (max-width: 768px) {
	.cp-header { height: 58px; gap: 12px; padding: 0 14px; }
	.cp-logo__text { font-size: 19px; }
	.cp-main { padding: 16px 14px 64px; }

	.cp-hero { height: clamp(300px, 64vw, 380px); border-radius: 5px; }
	.cp-hero__body { max-width: 100%; padding: 20px; gap: 12px; }
	.cp-hero__scrim {
		background: linear-gradient(0deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.45) 100%);
	}
	.cp-hero__cta { flex-wrap: wrap; }
	.cp-hero__cta .cp-btn { flex: 1 1 auto; justify-content: center; }

	.cp-section-bar { margin: 24px 0 16px; gap: 10px; }
	.cp-section-bar__sort { margin-left: auto; }

	.cp-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }

	/* Detalhe: pôster e ficha em coluna única */
	.cp-detail__left { flex: 1 1 100%; }
	.cp-detail__right { flex: 1 1 100%; min-width: 0; }
	.cp-detail__cover { max-width: 280px; margin: 0 auto; width: 100%; }
	.cp-detail__title { font-size: clamp(26px, 8vw, 38px); }

	.cp-footer__inner { flex-direction: column; gap: 14px; text-align: center; }
}

@media (max-width: 480px) {
	.cp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.cp-hero__title { font-size: clamp(22px, 7vw, 30px); }
	.cp-sort__menu { right: 0; min-width: 160px; }
	.cp-card__title { font-size: 13px; }
}

/* ============================================================
 * CORREÇÕES (2026-06-15, 2ª rodada)
 * ============================================================ */

/* [hidden] precisa vencer regras de display de classe (abas do player e
   menu mobile usam o atributo hidden para esconder/mostrar). */
[hidden] { display: none !important; }

/* Player "Assistir" (webtor) — frame 16:9 com placeholder + botão grande. */
.cp-player--watch {
	display: block;
	background: radial-gradient(circle at 50% 38%, #1c2029, #07090d);
}
.cp-webtor { position: absolute; inset: 0; }
.cp-webtor iframe { width: 100% !important; height: 100% !important; border: 0; display: block; background: #000; }
.cp-player__ph {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 24px;
	text-align: center;
	color: #d6dae2;
}
.cp-player__bigplay {
	width: 84px;
	height: 84px;
	border-radius: 50%;
	background: var(--accent);
	display: grid;
	place-items: center;
	border: 0;
	cursor: pointer;
	box-shadow: 0 8px 30px rgba(255,46,67,.5);
	transition: transform .15s, background .15s;
	animation: cpWatchPulse 2.4s infinite;
}
.cp-player__bigplay:hover { transform: scale(1.08); background: var(--accent-2); }
.cp-player__bigplay svg { width: 34px; height: 34px; color: #fff; margin-left: 4px; }
@keyframes cpWatchPulse { 0%,100% { box-shadow: 0 8px 30px rgba(255,46,67,.45); } 50% { box-shadow: 0 8px 44px rgba(255,46,67,.75); } }
.cp-player__status { font-size: 14px; color: #b9bfca; max-width: 90%; }
.cp-player--link .cp-player__ph { position: static; min-height: 0; padding: 28px; }

/* ============================================================
 * AJUSTES 2026-06-16
 * ============================================================ */

/* ---- Tema claro: tira a "linha" (borda) em cima/embaixo da capa ---- */
html[data-cp-theme="light"] .cp-card__cover { border-color: transparent; }
html[data-cp-theme="light"] .cp-card:hover .cp-card__cover {
	box-shadow: 0 0 0 1px var(--accent), 0 10px 28px var(--shadow);
}
html[data-cp-theme="light"] .cp-detail__cover { border-color: transparent; }

/* ---- Saúde do torrent (seeds/peers reais) ---- */
.cp-health {
	margin-top: 12px;
	padding: 13px 14px;
	border-radius: 5px;
	background: var(--surface);
	border: 1px solid var(--border);
}
.cp-health__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}
.cp-health__label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .3px;
	color: var(--text-dim);
	text-transform: uppercase;
}
.cp-health__pct {
	font-family: 'JetBrains Mono', monospace;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--text);
}
.cp-health__bar {
	height: 7px;
	border-radius: 100px;
	background: var(--surface-2);
	overflow: hidden;
}
.cp-health__fill {
	display: block;
	height: 100%;
	width: 0;
	border-radius: 100px;
	background: #16b364;
	transition: width .6s cubic-bezier(.2,.7,.2,1);
}
.cp-health[data-cp-health-level="mid"] .cp-health__fill { background: #e8a317; }
.cp-health[data-cp-health-level="low"] .cp-health__fill { background: #e0563b; }
.cp-health.is-dead .cp-health__fill { background: var(--text-mute); }
.cp-health__stats {
	display: flex;
	gap: 18px;
	margin-top: 10px;
	font-size: 12.5px;
	color: var(--text-dim);
}
.cp-health__stat { display: inline-flex; align-items: center; gap: 6px; }
.cp-health__stat strong { color: var(--text); font-weight: 700; }
.cp-health__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--text-mute);
}
.cp-health__stat--seed .cp-health__dot { background: #16b364; }
.cp-health__stat--peer .cp-health__dot { background: #e8a317; }
.cp-health.is-loading .cp-health__bar { position: relative; }
.cp-health.is-loading .cp-health__fill {
	width: 30% !important;
	background: var(--text-mute);
	animation: cpHealthLoad 1.1s ease-in-out infinite;
}
@keyframes cpHealthLoad {
	0%   { margin-left: -30%; }
	100% { margin-left: 100%; }
}

/* ---- Página de conta (/entrar/) — tela isolada, card no meio ---- */
.cp-auth {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 22px;
	padding: clamp(24px, 6vw, 48px) 18px;
}
.cp-auth__logo {
	font-family: 'Archivo', sans-serif;
	font-weight: 900;
	font-size: 22px;
	letter-spacing: -0.5px;
}
.cp-auth__back {
	display: block;
	margin-top: 18px;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	color: var(--text-dim);
}
.cp-auth__back:hover { color: var(--text); }
.cp-auth__card {
	width: 100%;
	max-width: 420px;
	padding: clamp(22px, 4vw, 34px);
	background: var(--bg-2);
	border: 1px solid var(--border);
	border-radius: 5px;
	box-shadow: 0 28px 70px var(--shadow);
}
.cp-auth__card--solo { text-align: center; }
.cp-auth__head { text-align: center; margin-bottom: 20px; }
.cp-auth__head .cp-logo__badge { margin: 0 auto 12px; width: 42px; height: 42px; border-radius: 5px; }
.cp-auth__title {
	margin: 0;
	font-family: 'Archivo', sans-serif;
	font-weight: 900;
	font-size: 24px;
	letter-spacing: -.5px;
	color: var(--text);
}
.cp-auth__sub { margin: 6px 0 0; font-size: 13.5px; color: var(--text-dim); }
.cp-auth__tabs {
	display: flex;
	gap: 4px;
	padding: 4px;
	margin-bottom: 18px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 5px;
}
.cp-auth__tab {
	flex: 1;
	padding: 9px 12px;
	border: 0;
	border-radius: 5px;
	background: transparent;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--text-dim);
	cursor: pointer;
	transition: background .18s, color .18s;
}
.cp-auth__tab.is-active { background: var(--bg-2); color: var(--text); box-shadow: 0 2px 8px var(--shadow); }
.cp-auth__form { display: flex; flex-direction: column; gap: 14px; }
.cp-auth__alert {
	margin-bottom: 16px;
	padding: 11px 13px;
	border-radius: 5px;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	background: var(--accent-bg);
}
.cp-field { display: flex; flex-direction: column; gap: 6px; }
.cp-field__label { font-size: 12.5px; font-weight: 700; color: var(--text-dim); }
.cp-field__input {
	height: 46px;
	padding: 0 14px;
	border-radius: 5px;
	border: 1px solid var(--border-2);
	background: var(--surface);
	color: var(--text);
	font-size: 15px;
	outline: 0;
	transition: border-color .18s, box-shadow .18s;
}
.cp-field__input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cp-auth__logged-avatar {
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-family: 'Archivo', sans-serif;
	font-weight: 800;
	font-size: 22px;
	color: #fff;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.cp-auth__logged-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }

/* ---- Ações dentro do menu mobile (favoritos + conta) ---- */
.cp-mobile-nav__actions {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 8px;
	padding-top: 10px;
	border-top: 1px solid var(--border);
}
.cp-mobile-nav__action {
	display: flex;
	align-items: center;
	gap: 11px;
	width: 100%;
	padding: 13px 14px;
	border: 0;
	border-radius: 5px;
	background: transparent;
	font-size: 15px;
	font-weight: 600;
	color: var(--text-dim);
	cursor: pointer;
	text-align: left;
}
.cp-mobile-nav__action:hover { background: var(--surface); color: var(--text); }
.cp-mobile-nav__action .cp-fav-badge {
	position: static;
	margin-left: auto;
	border: 0;
}
.cp-mobile-nav__action--accent { color: var(--accent); font-weight: 700; }

/* ---- Mobile: header enxuto + banner à direita + sem overflow ---- */
@media (max-width: 768px) {
	/* Some o que foi jogado pro hambúrguer */
	.cp-hide-mobile { display: none !important; }

	/* Banner: mostra o lado direito da imagem (recorte da direita p/ esquerda) */
	.cp-hero__slide { background-position: right center !important; }

	/* Nada deve vazar lateralmente */
	.cp-page { overflow-x: hidden; }
	.cp-main { overflow-x: hidden; }
}

/* Banner 728x90 (AdsTerra). A altura minima e reservada de proposito: o iframe chega
   depois e, sem o espaco guardado, empurraria o conteudo — o CLS do site esta em 0. */
.cp-ad {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 22px auto;
	padding: 0 14px;
	max-width: 100%;
	overflow: hidden;
	/* Altura reservada para o iframe nao empurrar o conteudo ao chegar (CLS em 0). */
	min-height: 50px;
}
@media (min-width: 760px) { .cp-ad { min-height: 90px; margin: 26px auto; } }
/*
 * Posicao exclusiva de celular (cpv2_banner_mobile). O PHP imprime o container sempre que
 * a zona tem chave, mas o JS dentro dele desiste acima de 760px — sem esta regra o desktop
 * ficaria com um buraco de 90px de min-height mais 26px de margem no meio da ficha. Some o
 * container inteiro em vez de zerar so a altura: `display:none` tambem garante que nenhum
 * criativo seja pedido no desktop, se um dia o corte de largura do JS mudar.
 */
@media (min-width: 760px) { .cp-ad--mobile { display: none; } }
.cp-ad iframe { border: 0; display: block; }

/* ============== Conta / favoritos (29/09/2026) ============== */
a.cp-icon-btn { color: inherit; text-decoration: none; position: relative; }
.cp-fav-toggle { margin-top: 10px; }
.cp-fav-toggle.is-faved { border-color: var(--accent); color: var(--accent); }
.cp-toast {
	position: fixed; left: 50%; bottom: 24px; z-index: 200;
	transform: translate(-50%, 20px); opacity: 0;
	max-width: calc(100vw - 32px); padding: 12px 16px;
	background: var(--surface); color: var(--text);
	border: 1px solid var(--accent); border-radius: 5px;
	box-shadow: 0 12px 32px var(--shadow);
	font-size: 14px; line-height: 1.4;
	transition: opacity .25s, transform .25s;
}
.cp-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.cp-toast a { color: var(--accent); font-weight: 700; text-decoration: underline; }
.cp-mylist-aviso { margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); color: var(--text-dim); font-size: 14px; }
.cp-mylist-aviso a { color: var(--accent); font-weight: 700; }

/* ============== Cards de anúncio (inc/ad-cards.php) ============== */
.cp-ad-cover {
	display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
	gap: 14px; padding: 16px 14px 22px; text-align: center;
	background:
		radial-gradient(90% 60% at 50% 30%, rgba(255,46,67,.55) 0%, transparent 70%),
		linear-gradient(180deg, #2a0710 0%, #0c0507 100%);
}
.cp-ad-cover__play {
	display: flex; align-items: center; justify-content: center;
	width: 54px; height: 54px; border-radius: 50%; background: var(--accent);
	box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.cp-ad-cover__txt { color: #fff; font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 19px; line-height: 1.1; text-transform: uppercase; letter-spacing: -.3px; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.cp-card--ad .cp-card__cover { cursor: pointer; }
.cp-card--ad:hover .cp-ad-cover__play { transform: scale(1.08); }
.cp-ad-cover__play { transition: transform .18s; margin-bottom: auto; margin-top: auto; }
.cp-ad-tag {
	position: absolute; top: 8px; left: 8px; z-index: 3;
	padding: 2px 6px; border-radius: 3px;
	background: rgba(0,0,0,.6); color: rgba(255,255,255,.8);
	font-size: 9.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
}
.cp-rel-card--ad .cp-ad-cover__txt { font-size: 14px; }
.cp-rel-card--ad .cp-ad-cover__play { width: 46px; height: 46px; }

.cp-ad-cover { position: relative; overflow: hidden; }
.cp-ad-cover__img {
	position: absolute; inset: -8px; z-index: 0;
	background: center/cover no-repeat;
	/* a imagem ja vem borrada do script (ad-capas); aqui so um toque de cor */
	filter: saturate(1.2); transform: scale(1.04);
}
.cp-ad-cover::after {
	content: ''; position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(180deg, rgba(0,0,0,.05) 35%, rgba(0,0,0,.82) 100%);
}
.cp-ad-cover__play, .cp-ad-cover__txt, .cp-ad-cover .cp-badge-quality { position: relative; z-index: 2; }
.cp-ad-cover .cp-badge-quality { position: absolute; }
.cp-ad-cover .cp-ad-tag { z-index: 3; }

/* Colunas iguais: item de grid/flex tem min-width:auto por padrao, e o nome de estudio em
   nowrap alargava a coluna dele no celular (capas de tamanhos diferentes, 29/09). */
.cp-grid > * { min-width: 0; }
.cp-card__meta { min-width: 0; gap: 6px; }
.cp-card__year { flex: none; }

/* Lembrete de favoritar (footer.php) */
.cp-bm {
	position: fixed; left: 50%; top: 76px; z-index: 150; transform: translateX(-50%);
	display: flex; align-items: center; gap: 12px;
	padding: 10px 12px 10px 16px; max-width: calc(100vw - 32px);
	background: var(--surface); color: var(--text-dim);
	border: 1px solid var(--border); border-radius: 5px;
	box-shadow: 0 10px 28px var(--shadow); font-size: 14px;
}
.cp-bm[hidden] { display: none !important; }
.cp-bm b { color: var(--text); }
.cp-bm__x { background: none; border: 0; color: var(--text-mute); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; }
.cp-bm__x:hover { color: var(--accent); }
