/* Aba Notícias (portal): tela principal e blocos (views/news/index.js, blocks.js, games-strip.js).
   Classes np-*. Histórias, "Notícias em 20 s", folha e miniatura ficam em noticias-stories.css. Cores só pelos tokens do app. */

#news-root { padding: 0 0 8px; }
#news-root button { font-family: var(--ui); color: inherit; text-align: left; cursor: pointer; }
#news-root button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- título ---------- */
.np-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 6px 16px 10px; }
.np-title h1 { display: flex; align-items: center; gap: 8px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.np-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); animation: np-pulse 1.6s ease-in-out infinite; }
.np-when { display: grid; justify-items: end; gap: 2px; font-size: 12px; color: var(--muted); }
.np-age { color: var(--accent-text); font-weight: 600; }
.np-age:empty { display: none; }
@keyframes np-pulse { 50% { opacity: .35; } }

/* ---------- chips ---------- */
.np-stories { padding-top: 2px; }
.np-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 8px; scrollbar-width: none; }
.np-chips::-webkit-scrollbar { display: none; }
.np-chip { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--s2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; white-space: nowrap; }
#news-root .np-chip[aria-pressed='true'] { background: var(--text); color: var(--bg); border-color: var(--text); }
.np-act { display: flex; align-items: center; gap: 10px; padding: 2px 16px 6px; font-size: 12px; color: var(--muted); }
#news-root .np-act .np-chip { min-height: 44px; background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- placar ---------- */
.np-pls { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 6px; scrollbar-width: none; }
.np-pls::-webkit-scrollbar { display: none; }
.np-pc { flex: none; min-width: 156px; min-height: 64px; display: grid; gap: 3px; align-content: center; padding: 10px 12px; border-radius: 18px; }
.np-pc.lv { border-color: rgb(var(--live-rgb) / .5); }
.np-pc-st { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: .05em; color: var(--muted); }
.lv .np-pc-st { color: var(--live); }
.lv .np-pc-st::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--live); animation: np-pulse 1.2s infinite; }
.np-pc-tm { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; line-height: 1.5; }
.np-pc-tm b { font-family: var(--mono); }
.np-pc-more { min-width: 96px; align-content: center; justify-items: center; text-align: center; color: var(--accent-text); }
.np-pc-more b { font-size: 13px; }
.np-pc-more span { color: var(--accent-text); font-size: 20px; line-height: 1; }

/* ---------- seções ---------- */
.np-plantao { margin-top: 6px; }
.np-sec { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 24px 16px 10px; }
.np-sec h2 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.np-sec small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.np-link { min-height: 44px; padding: 0 4px; margin: -8px -4px -8px 0; background: none; border: 0; font-size: 13px; font-weight: 600; color: var(--accent-text); }
.np-quiet { padding: 8px 16px; font-size: 13px; color: var(--muted); }

/* ---------- linhas e cartões ---------- */
.np-row { display: flex; gap: 12px; width: 100%; min-height: 44px; padding: 12px 16px; background: none; border: 0; border-bottom: 1px solid var(--line); }
.np-ph, .np-cph { position: relative; flex: none; overflow: hidden; background: var(--s2); }
.np-ph { width: 92px; height: 92px; border-radius: var(--r-sm); }
.np-b { display: grid; gap: 4px; align-content: start; flex: 1; min-width: 0; }
.np-tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.np-tag:empty { display: none; }
.np-h { font-size: 15px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.np-meta { font-size: 12px; color: var(--muted); }
.np-hs { display: flex; gap: 12px; overflow-x: auto; padding: 0 16px 4px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.np-hs::-webkit-scrollbar { display: none; }
.np-card { flex: none; width: 236px; scroll-snap-align: start; display: block; border-radius: 22px; overflow: hidden; padding: 6px; }
.np-cph { display: block; height: 130px; }
.np-card .np-b { display: grid; padding: 12px 14px 14px; }

/* ---------- em alta ---------- */
.np-most { display: flex; gap: 8px; align-items: flex-start; width: 100%; min-height: 44px; padding: 12px 16px; background: none; border: 0; border-bottom: 1px solid var(--line); }
.np-num { flex: none; width: 34px; font-family: var(--mono); font-size: 26px; font-weight: 700; line-height: 1; color: var(--accent-text); }

/* ---------- mais notícias ---------- */
.np-morebtn { display: block; width: calc(100% - 32px); min-height: 48px; margin: 12px 16px 0; text-align: center !important; background: var(--s2); border: 1px solid var(--line-2); border-radius: var(--r-md); font-size: 14px; font-weight: 600; }
.np-morebtn[hidden], .np-end[hidden] { display: none; }
.np-end { padding: 24px 16px 12px; text-align: center; font-size: 12px; color: var(--muted); }

/* ---------- anúncios ---------- */
.np-ad { margin: 18px 16px 0; }
.np-ad[hidden] { display: none; }
.np-ad + .ax, section.ax { margin-top: 18px; }
/* O carrossel de anúncios tem margem negativa de 16px de cada lado (ele foi feito para uma página com 16px de borda).
   Aqui a coluna já vai de ponta a ponta, então sem este respiro ele passava da tela e a aba inteira balançava (v99). */
.np-body > .ax { padding-inline: 16px; }
.nw { overflow-x: clip; }

/* ---------- avisos e vazio ---------- */
.np-demo { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 16px 0; padding: 6px 6px 6px 14px; border-radius: 18px; font-size: 12.5px; color: var(--muted); }
.np-demo button { flex: none; min-height: 44px; padding: 0 12px; background: none; border: 0; font-size: 13px; font-weight: 600; color: var(--accent-text); }
.np-empty { margin: 24px 16px; padding: 24px 16px 20px; text-align: center; background: var(--s1); border: 1px dashed var(--line-2); border-radius: var(--r-lg); font-size: 14px; line-height: 1.5; color: var(--muted); }
.np-empty .np-morebtn { width: auto; margin: 16px auto 0; padding: 0 20px; }

/* ---------- esqueleto da primeira carga ---------- */
.np-sk { display: block; background: var(--s2); border-radius: 8px; animation: np-sk 1.4s ease-in-out infinite; }
.np-sk-hero { height: 236px; margin: 8px 16px 0; border-radius: var(--r-lg); }
.np-sk-th { flex: none; width: 92px; height: 92px; border-radius: var(--r-sm); }
.np-sk-l { height: 13px; margin-top: 8px; }
.np-sk-l.s { width: 36%; }
.np-sk-l.m { width: 70%; }
.np-sk-row { pointer-events: none; }
@keyframes np-sk { 50% { opacity: .5; } }

@media (prefers-reduced-motion: reduce) {
  .np-dot, .np-sk, .lv .np-pc-st::before { animation: none; }
  .np-hs { scroll-behavior: auto; }
}
@media (min-width: 700px) {
  .np-card { width: 260px; }
}

/* alinha com o logo do topo: o #news-root usa 16 px de margem própria nos blocos */
.nw { margin: 0 -16px; }

/* =====================================================================================================
   Repaginada de vidro (12/11, protótipo aprovado): cartões .glass (css/vidro.css), títulos em Poppins (--title),
   ícones 3D (.ic3d). Só muda o visual; as funções da aba são as mesmas.
   ===================================================================================================== */

/* ---------- cabeçalho com Atualizar ---------- */
.np-title { align-items: center; padding: 8px 16px 12px; }
.np-title h1 { display: block; font: 600 28px/1.1 var(--title); letter-spacing: -.01em; }
.np-when { display: flex; align-items: center; justify-content: flex-start; gap: 6px; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.np-age { color: var(--muted); font-weight: 500; }
.np-dot { flex: none; }
#news-root .np-refresh { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; font: 600 13.5px/1 var(--ui); color: var(--text); }
.np-refresh:active { transform: scale(.97); }
.np-refresh.spin svg { animation: np-spin .8s linear infinite; }
@keyframes np-spin { to { transform: rotate(360deg); } }

/* ---------- chips de região e filtro ---------- */
.np-chip { background: var(--chip); border: 1px solid var(--chip-line); color: var(--text); }
#news-root .np-chip[aria-pressed='true'] { background: var(--btn); color: var(--btn-ink); border-color: transparent; }
#news-root .np-act .np-chip { background: var(--btn); color: var(--btn-ink); border-color: transparent; }

/* ---------- jogos de hoje em miniatura ---------- */
.np-pls { padding: 4px 16px 8px; gap: 10px; }
.np-pc { min-width: 152px; min-height: 0; padding: 10px 12px; gap: 6px; }
.np-pc-st { color: var(--accent-text); }
.np-pc-more { flex-direction: column; min-width: 96px; align-items: center; justify-content: center; gap: 4px; }
.np-pc-more .ic3d { width: 36px; height: 36px; }
.np-pc-more b { font-size: 13px; color: var(--accent-text); }

/* ---------- seções ---------- */
.np-sec { padding: 24px 16px 10px; }
.np-sec h2 { font: 600 20px/1.2 var(--title); letter-spacing: -.005em; }
.np-link { color: var(--accent-text); }

/* ---------- listas em vidro (Principais, Em alta, Mais notícias) ---------- */
.np-list { margin: 0 16px; border-radius: 26px; overflow: hidden; }
.np-list > .np-row, .np-list > .np-most { border-bottom: 0; }
.np-list > * + * { border-top: 1px solid var(--g-line); }
.np-row { align-items: center; padding: 12px 14px; }
.np-ph { width: 84px; height: 84px; border-radius: 16px; }
.np-h { font-size: 15px; font-weight: 600; }
.np-row.big { flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 8px 14px; }
.np-row.big .np-ph { width: 100%; height: 200px; border-radius: 18px; }
.np-row.big .np-b { padding: 4px 6px 0; }
.np-row.big .np-h { font: 600 19px/1.22 var(--title); -webkit-line-clamp: 4; }
.np-most { align-items: center; padding: 12px 14px; }
.np-num { width: 34px; text-align: center; font: 800 30px/1 var(--display); }
.nw-capa { filter: saturate(1.05); }

/* ---------- trilhos ---------- */
.np-hs { gap: 12px; }
.np-cph { height: 140px; border-radius: 17px; }
.np-card .np-b { padding: 8px 8px 8px; }
.np-card .np-h { min-height: 3.9em; font-size: 14.5px; }

/* ---------- Resumo do dia ---------- */
.np-rsm { display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); margin: 12px 16px 0; padding: 12px 14px; border-radius: 22px; }
.np-rsm .ic3d { width: 44px; height: 44px; flex: none; }
.np-rsm-tx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.np-rsm-tx b { font-size: 15px; font-weight: 600; }
.np-rsm-tx small { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.np-rsm-ic { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--btn); color: var(--btn-ink); }
.np-rsm-bar { display: none; height: 4px; margin-top: 6px; border-radius: 2px; background: var(--chip); overflow: hidden; }
.np-rsm-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .5s linear; }
.np-rsm.on .np-rsm-bar { display: block; }
.np-rsm.on small { color: var(--text); }
.np-rsm.on .ic3d { animation: np-rsm 1.2s ease-in-out infinite; }
@keyframes np-rsm { 50% { transform: scale(1.08) rotate(-4deg); } }

/* ---------- cartão final ---------- */
.np-end { display: grid; justify-items: center; gap: 4px; padding: 22px 16px 12px; text-align: center; }
.np-end[hidden] { display: none; }
.np-end span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px; font-weight: 800; color: #fff; background: var(--win); box-shadow: 0 8px 20px -8px var(--win); }
.np-end b { font-size: 15px; font-weight: 600; }
.np-end small { font-size: 12.5px; color: var(--muted); }

/* ---------- botões, avisos e vazio ---------- */
.np-morebtn { background: var(--btn); color: var(--btn-ink); border: 0; border-radius: 999px; }
.np-demo button { color: var(--accent-text); }
.np-empty { background: var(--g); border: 1px dashed var(--g-line); border-radius: 26px; }
.np-sk { background: var(--chip); }
.np-sk-hero { border-radius: 26px; }

@media (prefers-reduced-motion: reduce) { .np-refresh.spin svg, .np-rsm.on .ic3d { animation: none; } }
.np-title > div { min-width: 0; }
.np-when { flex-wrap: wrap; white-space: nowrap; }
.np-when span { white-space: nowrap; }
.np-when .np-age { flex-basis: 100%; }

/* o "#news-root button { color: inherit }" apagava a cor do texto dos botões dos anúncios: devolve a cor de cada anúncio (régua 13/11) */
#news-root .ax-burger .ax-cta { color: #1b0d03; }
#news-root .ax-pneu .ax-cta { color: #ffd23f; }
#news-root .ax-farma .ax-cta, #news-root .ax-anuncie .ax-cta { color: #fff; }
#news-root .ax-gym .ax-cta { color: #160502; }
#news-root .ax-casa .ax-cta { color: #12213b; }
