/* HOME · Blog · Kit E · Discover: bolinhas de categoria, destaque com "Em alta agora", Web Stories, "Para você", ferramentas em ícones e
   a linha com "Jogos rápidos", enquete e newsletter. Cartões brancos bem arredondados no fundo cinza-azulado, sem linha em volta. */

/* Espaço antes do rodapé na própria página: fica igual com ou sem o anúncio do fim. */
.nx-e-home {
	padding-bottom: 80px;
}

.nx-e-bloco {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding-top: 48px;
}

/* Anúncios. */
.nx-e-ad {
	display: flex;
	justify-content: center;
	padding-top: 48px;
}

.nx-e-ad--fim {
	padding-top: 56px;
}

/* ---------- Bolinhas: foto redonda com o aro na cor do site ---------- */

.nx-e-bolinhas {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding-top: 26px;
	overflow-x: auto;
	scrollbar-width: none;
}

.nx-e-bolinhas::-webkit-scrollbar {
	display: none;
}

.nx-e-bolinha {
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	align-items: center;
	gap: 8px;
	width: 96px;
	color: var(--nx-ink);
	text-decoration: none;
}

.nx-e-bolinha__aro {
	padding: 3px;
	border: 3px solid var(--nx-accent);
	border-radius: 50%;
	transition: transform 0.2s;
}

.nx-e-bolinha:hover .nx-e-bolinha__aro {
	transform: scale(1.05);
}

.nx-e-bolinha__foto,
.nx-e-bolinha__icone {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 84px;
	height: 84px;
	border-radius: 50%;
}

.nx-e-bolinha__icone {
	color: #FFFFFF;
}

.nx-e-bolinha__icone--verde {
	background: #1F9D63;
}

.nx-e-bolinha__icone--rosa {
	background: #E0457B;
}

.nx-e-bolinha__nome {
	max-width: 100%;
	overflow: hidden;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.55;
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ---------- Destaque e "Em alta agora" ---------- */

.nx-e-topo {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 440px;
	gap: 28px;
	align-items: start;
	padding-top: 28px;
}

.nx-e-topo.is-solo {
	grid-template-columns: minmax(0, 1fr);
}

.nx-e-dest {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	color: var(--nx-ink);
	text-decoration: none;
}

.nx-e-dest:hover {
	color: var(--nx-ink);
}

.nx-e-dest__foto {
	height: 430px;
	border-radius: 0;
}

.nx-e-dest__texto {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px 28px 28px;
}

.nx-e-dest .nx-e-fonte {
	font-size: 14px;
}

.nx-e-dest .nx-e-fonte::before {
	width: 22px;
	height: 22px;
}

.nx-e-dest__titulo {
	font-family: var(--nx-font-titulo);
	font-size: 36px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.nx-e-dest:hover .nx-e-dest__titulo {
	color: var(--nx-tinta);
}

.nx-e-dest__resumo {
	font-size: 16px;
	line-height: 1.55;
	color: var(--nx-muted);
}

.nx-e-alta {
	display: flex;
	flex-direction: column;
	padding: 24px 26px;
}

.nx-e-alta__titulo {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.nx-e-alta__titulo svg {
	color: var(--nx-accent);
}

.nx-e-alta__lista {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nx-e-alta__lista a {
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr) 96px;
	gap: 14px;
	align-items: center;
	padding: 14px 0;
	border-top: 1px solid var(--nx-line);
	color: var(--nx-ink);
	text-decoration: none;
}

.nx-e-alta__lista li:first-child a {
	border-top: 0;
}

.nx-e-alta__n {
	color: var(--nx-accent);
	font-family: var(--nx-font-titulo);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.15;
}

.nx-e-alta__texto {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.nx-e-alta__texto b {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.nx-e-alta__lista a:hover .nx-e-alta__texto b {
	color: var(--nx-tinta);
}

.nx-e-alta__texto span {
	font-size: 13px;
	line-height: 1.55;
	color: var(--nx-muted);
}

.nx-e-alta__foto {
	width: 96px;
	height: 72px;
	border-radius: 12px;
}

/* ---------- Web Stories: cartões verticais com as barrinhas em cima ---------- */

.nx-e-stories {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 14px;
}

.nx-e-story {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 196 / 348;
	border-radius: 18px;
	background: var(--nx-img);
	color: #FFFFFF;
	text-decoration: none;
}

.nx-e-story__foto {
	position: absolute;
	inset: 0;
	border-radius: 0;
	transition: transform 0.4s;
}

.nx-e-story:hover .nx-e-story__foto {
	transform: scale(1.05);
}

/* No hover o texto continua branco (sem a cor de link, que some na foto escura). */
.nx-e-story:hover,
.nx-e-story:focus-visible {
	color: #FFFFFF;
}

.nx-e-story__barras {
	position: absolute;
	left: 12px;
	right: 12px;
	top: 12px;
	display: flex;
	gap: 4px;
}

.nx-e-story__barras i {
	flex: 1;
	height: 3px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.45);
}

.nx-e-story__barras i:first-child {
	background: rgba(255, 255, 255, 0.95);
}

/* Fotos de dentro do artigo, uma por vez (a troca vem do script da Home). */
.nx-e-story__fotos {
	position: absolute;
	inset: 0;
	transition: transform 0.4s;
}

.nx-e-story:hover .nx-e-story__fotos {
	transform: scale(1.05);
}

.nx-e-story__fotos img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.5s;
}

.nx-e-story__fotos img.is-on {
	opacity: 1;
}

/* Com mais de 1 foto: a barrinha da foto atual enche em 3 s e as anteriores ficam cheias. */
[data-nx-story] .nx-e-story__barras i {
	position: relative;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.45);
}

[data-nx-story] .nx-e-story__barras i.is-feita {
	background: rgba(255, 255, 255, 0.95);
}

[data-nx-story] .nx-e-story__barras i::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.95);
	transform: scaleX(0);
	transform-origin: left;
}

[data-nx-story] .nx-e-story__barras i.is-andando::after {
	animation: nx-e-barra 3s linear forwards;
}

@keyframes nx-e-barra {
	to {
		transform: scaleX(1);
	}
}

.nx-e-story__texto {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 70px 14px 36px;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8) 70%, rgba(0, 0, 0, 0.35));
}

.nx-e-story__selo {
	align-self: flex-start;
	padding: 3px 8px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--nx-ink);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.55;
}

.nx-e-story__texto b {
	font-family: var(--nx-font-titulo);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

/* ---------- Para você: cartões de 2 em 2 ---------- */

.nx-e-feed {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.nx-e-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 20px;
	color: var(--nx-ink);
	text-decoration: none;
	transition: box-shadow 0.2s, transform 0.2s;
}

.nx-e-card:hover {
	color: var(--nx-ink);
	box-shadow: 0 2px 4px rgba(16, 24, 40, 0.06), 0 14px 32px -12px rgba(16, 24, 40, 0.22);
	transform: translateY(-2px);
}

.nx-e-card__foto {
	height: 300px;
	border-radius: 0;
}

.nx-e-card__texto {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 18px 20px 20px;
}

.nx-e-card__titulo {
	font-family: var(--nx-font-titulo);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.nx-e-card:hover .nx-e-card__titulo {
	color: var(--nx-tinta);
}

.nx-e-card__rodape {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	font-size: 13px;
	color: var(--nx-muted);
}

.nx-e-mais {
	display: flex;
	justify-content: center;
	padding-top: 10px;
}

.nx-e-btn-preto,
.nx-e-btn-preto:is(:active, :focus-visible) {
	height: 48px;
	padding: 0 24px;
	background: var(--nx-ink);
	color: #FFFFFF;
}

.nx-e-btn-preto:hover {
	background: var(--nx-accent);
	color: var(--nx-on-accent, #FFFFFF);
}

/* ---------- Ferramentas em ícones ---------- */

.nx-e-ferr {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 26px;
}

.nx-e-ferr__grade {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 18px 10px;
}

.nx-e-ferr__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	color: var(--nx-ink);
	text-decoration: none;
}

.nx-e-ferr__icone {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	border-radius: 22px;
	background: var(--nx-tom);
	color: #FFFFFF;
	transition: transform 0.2s;
}

.nx-e-ferr__icone svg {
	width: 32px;
	height: 32px;
}

.nx-e-ferr__item:hover .nx-e-ferr__icone {
	transform: translateY(-3px);
}

.nx-e-ferr__item b {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	text-wrap: balance;
}

.nx-e-ferr__item:hover b {
	color: var(--nx-tinta);
}

/* ---------- Jogos rápidos, enquete e newsletter ---------- */

.nx-e-trio {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	align-items: stretch;
	padding-top: 28px;
}

.nx-e-trio--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nx-e-trio--1 {
	grid-template-columns: minmax(0, 560px);
	justify-content: center;
}

.nx-e-jogos {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 26px;
}

.nx-e-jogos__grade {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.nx-e-jogos__grade a {
	display: block;
	overflow: hidden;
	border-radius: 16px;
	box-shadow: 0 6px 16px rgba(10, 10, 20, 0.16);
	transition: transform 0.2s;
}

.nx-e-jogos__grade a:hover {
	transform: translateY(-3px);
}

.nx-e-jogos__grade .nx-capa {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
}

/* Enquete (shared/parts/enquete.php) dentro do cartão branco. */
.nx-e-enquete {
	padding: 26px;
}

.nx-e-enquete .nx-enquete {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.nx-e-enquete .nx-enquete__sobre {
	color: var(--nx-ink);
	font-family: var(--nx-font-titulo);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.nx-e-enquete .nx-enquete__pergunta {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.55;
}

.nx-enquete__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.nx-enquete__opcao {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 46px;
	padding: 0 14px;
	overflow: hidden;
	border-radius: 12px;
	background: var(--nx-cinza);
	color: var(--nx-ink);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	cursor: pointer;
}

.nx-enquete__opcao input {
	position: relative;
	z-index: 1;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	margin: 0;
	accent-color: var(--nx-accent);
}

.nx-enquete__nome {
	position: relative;
	z-index: 1;
	flex: 1;
	padding: 11px 0;
}

.nx-enquete__pct {
	position: relative;
	z-index: 1;
	font-weight: 700;
}

.nx-enquete__barra {
	position: absolute;
	inset: 0 auto 0 0;
	width: 0;
	background: color-mix(in oklab, var(--nx-accent) 16%, #FFFFFF);
	transition: width 0.6s ease;
}

.nx-enquete__opcao.is-escolha .nx-enquete__barra {
	background: color-mix(in oklab, var(--nx-accent) 26%, #FFFFFF);
}

.nx-enquete.is-votada .nx-enquete__opcao {
	cursor: default;
}

.nx-enquete__acoes {
	display: flex;
	align-items: center;
	gap: 14px;
}

.nx-enquete__votar {
	height: 42px;
	padding: 0 21px;
}

.nx-enquete__votar:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.nx-enquete__aviso {
	font-size: 13px;
	color: var(--nx-muted);
}

/* Newsletter: caixa na cor do site. */
.nx-e-news {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
	padding: 30px;
	border-radius: 24px;
	background: var(--nx-accent);
	color: var(--nx-on-accent, #FFFFFF);
}

.nx-e-news__titulo {
	font-family: var(--nx-font-titulo);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.nx-e-news__texto {
	font-size: 15px;
	line-height: 1.55;
	opacity: 0.85;
}

.nx-e-news__form form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nx-e-news__form input[type="email"],
.nx-e-news__form input[type="text"] {
	height: 50px;
	padding: 0 18px;
	border: 0;
	border-radius: 25px;
	background: #FFFFFF;
	color: var(--nx-ink);
	font: inherit;
	font-size: 16px;
}

.nx-e-news__form button,
.nx-e-news__form input[type="submit"] {
	height: 50px;
	border: 0;
	border-radius: 25px;
	background: var(--nx-ink);
	color: #FFFFFF;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

/* ---------- Telas médias e celular ---------- */

@media (max-width: 1100px) {
	.nx-e-topo {
		grid-template-columns: minmax(0, 1fr) 380px;
	}

	.nx-e-dest__foto {
		height: 360px;
	}

	.nx-e-dest__titulo {
		font-size: 30px;
	}

	.nx-e-stories {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.nx-e-trio {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nx-e-trio > :last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}

@media (max-width: 960px) {
	.nx-e-bolinhas {
		justify-content: flex-start;
	}

	.nx-e-topo {
		grid-template-columns: minmax(0, 1fr);
	}

	.nx-e-ferr__grade {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.nx-e-home {
		padding-bottom: 56px;
	}

	.nx-e-bloco {
		padding-top: 36px;
	}

	.nx-e-bolinha {
		width: 76px;
	}

	.nx-e-bolinha__foto,
	.nx-e-bolinha__icone {
		width: 64px;
		height: 64px;
	}

	.nx-e-bolinha__icone svg {
		width: 28px;
		height: 28px;
	}

	.nx-e-dest__foto {
		height: 220px;
	}

	.nx-e-dest__texto {
		padding: 18px 20px 22px;
	}

	.nx-e-dest__titulo {
		font-size: 26px;
	}

	.nx-e-alta {
		padding: 20px;
	}

	.nx-e-alta__lista a {
		grid-template-columns: 24px minmax(0, 1fr) 76px;
		gap: 12px;
	}

	.nx-e-alta__foto {
		width: 76px;
		height: 60px;
	}

	/* Web Stories rolam para o lado. */
	.nx-e-stories {
		display: flex;
		margin: 0 -24px;
		padding: 0 24px 4px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.nx-e-stories::-webkit-scrollbar {
		display: none;
	}

	.nx-e-story {
		flex: 0 0 150px;
		scroll-snap-align: start;
	}

	.nx-e-feed,
	.nx-e-trio,
	.nx-e-trio--2 {
		grid-template-columns: minmax(0, 1fr);
	}

	.nx-e-card__foto {
		height: 200px;
	}

	.nx-e-card__titulo {
		font-size: 20px;
	}

	.nx-e-ferr {
		padding: 22px 18px;
	}

	.nx-e-ferr__icone {
		width: 64px;
		height: 64px;
		border-radius: 18px;
	}

	.nx-e-news__titulo {
		font-size: 26px;
	}
}
