/* Novidades — layout compartilhado; cores via tokens da marca (--primary etc.) */
/* site.css trava html/body com overflow:hidden; a classe fica no <body>, então usamos :has() no <html>. */
html:has(body.novidades-page-body),
html.novidades-page-body,
body.novidades-page-body {
  /* Preferir fundo da marca (juice/lm) — nunca cair no verde casca (--melon-deep). */
  --novidades-bg: var(--j-bg, var(--lm-bg, var(--ap-bg, #09090a)));
  --novidades-surface: #121214;
  --novidades-accent: var(--primary, var(--sw-p, var(--bf-amber, #ffa31a)));
  --novidades-accent-soft: var(--accent-pink, var(--sw-p2, var(--bf-amber-2, var(--novidades-accent))));
  --novidades-cta-fg: var(--novidades-on-accent, #111);
  --novidades-radius-card: var(--radius-md, 0.85rem);
  --novidades-radius-cta: 999px;
  overflow-x: hidden !important;
  overflow-y: scroll !important;
  height: auto !important;
  max-height: none !important;
  min-height: 100dvh;
  position: static !important;
  width: 100% !important;
  max-width: none !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  box-shadow: none !important;
  margin: 0;
  font-family: inherit;
  overscroll-behavior: auto;
  -ms-overflow-style: auto;
  scrollbar-width: thin;
}

html:has(body.novidades-page-body),
html.novidades-page-body {
  overflow-y: scroll !important;
}

/* Temas como ForbiddenFruit (cyber) cobrem a página com body::after + mix-blend,
   o que some o conteúdo até o hover. Neutraliza overlays nessas páginas. */
html:has(body.novidades-page-body) body::after,
html.novidades-page-body body::after,
body.novidades-page-body::after {
  content: none !important;
  display: none !important;
  background: none !important;
  mix-blend-mode: normal !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html:has(body.novidades-page-body) body::before,
html.novidades-page-body body::before,
body.novidades-page-body::before {
  z-index: 0 !important;
}

.novidades-page {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: var(--novidades-bg);
  color: #fff;
}

/* Fundo ambient (mesh/cidade) como na página Sobre */
body.novidades-page-body--ambient .novidades-page,
html:has(body.novidades-page-body--ambient) .novidades-page {
  background: transparent !important;
}

body.novidades-page-body--ambient .novidades-page__header {
  background: color-mix(in srgb, var(--novidades-bg) 72%, transparent);
  border-bottom-color: color-mix(in srgb, var(--novidades-accent) 18%, transparent);
}

body.novidades-page-body--ambient .novidades-card,
body.novidades-page-body--ambient .novidades-pager__link {
  background: color-mix(in srgb, var(--novidades-bg) 55%, rgba(255, 255, 255, 0.06));
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

body.novidades-page-body--ambient .novidades-card__banner,
body.novidades-page-body--ambient .novidades-update__banner,
body.novidades-page-body--ambient .novidades-update__video {
  background: color-mix(in srgb, var(--novidades-bg) 70%, #000);
}

.novidades-page__header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
  padding: calc(env(safe-area-inset-top, 0px) + 0.85rem) 1rem 0.85rem;
  background: color-mix(in srgb, var(--novidades-bg) 92%, transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.novidades-page__back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.novidades-page__back-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.novidades-page__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  border-radius: var(--novidades-radius-cta);
  background: var(--novidades-accent);
  color: var(--novidades-cta-fg);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.novidades-page__cta:hover,
.novidades-page__cta:focus-visible {
  background: var(--novidades-accent-soft);
}

.novidades-page__main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
}

.novidades-page__main--detail {
  max-width: 56rem;
  padding-top: 0;
  padding-inline: 0;
}

.novidades-page__hero {
  margin-bottom: 1.75rem;
}

.novidades-page__hero h1 {
  margin: 0 0 0.65rem;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.2;
}

.novidades-page__hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.975rem;
  line-height: 1.55;
}

.novidades-page__timeline {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.novidades-month__title {
  margin: 0 0 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.novidades-month__link {
  color: inherit;
  text-decoration: none;
}

.novidades-month__link:hover,
.novidades-month__link:focus-visible {
  color: var(--novidades-accent);
}

.novidades-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.novidades-pager__link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.85rem 0.95rem;
  color: inherit;
  text-decoration: none;
  background: var(--novidades-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--novidades-radius-card);
}

.novidades-pager__link:hover,
.novidades-pager__link:focus-visible {
  border-color: color-mix(in srgb, var(--novidades-accent) 45%, transparent);
}

.novidades-pager__link--next {
  text-align: right;
}

.novidades-pager__link--empty {
  visibility: hidden;
  pointer-events: none;
  border: 0;
  background: transparent;
}

.novidades-pager__label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.novidades-pager__title {
  overflow: hidden;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .novidades-pager {
    grid-template-columns: 1fr;
  }

  .novidades-pager__link--next {
    text-align: left;
  }

  .novidades-pager__link--empty {
    display: none;
  }
}

.novidades-page__tabs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.novidades-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: var(--novidades-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--novidades-radius-card);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.novidades-card:hover,
.novidades-card:focus-visible {
  border-color: color-mix(in srgb, var(--novidades-accent) 45%, transparent);
  transform: translateY(-1px);
}

.novidades-card__banner {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: #0a0a0c;
}

.novidades-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem;
}

.novidades-card__date {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.novidades-card__title {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
}

.novidades-card__bullets {
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  line-height: 1.45;
}

.novidades-card__bullets li + li {
  margin-top: 0.2rem;
}

.novidades-card__cta {
  margin-top: 0.25rem;
  color: var(--novidades-accent);
  font-size: 0.8125rem;
  font-weight: 700;
}

.novidades-update {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.novidades-update__banner {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center top;
  background: #0a0a0c;
}

.novidades-update__video {
  max-height: min(72vh, 720px);
  background: #050506;
}

.novidades-update__compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0 1rem;
}

.novidades-update__compare-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.novidades-update__compare-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.novidades-update__compare .novidades-update__video {
  max-height: min(56vh, 560px);
  width: 100%;
}

@media (max-width: 720px) {
  .novidades-update__compare {
    grid-template-columns: 1fr;
  }
}

.novidades-update__meta {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0 1rem;
}

.novidades-update__date {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.novidades-update__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
}

.novidades-update__lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.novidades-update__bullets {
  margin: 0;
  padding-left: 1.15rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.novidades-update__bullets li + li {
  margin-top: 0.3rem;
}

.novidades-update__section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 1rem;
}

.novidades-update__section-title {
  margin: 0;
  color: var(--novidades-accent);
  font-size: 1rem;
  font-weight: 700;
}

.novidades-update__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.novidades-item {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.novidades-item:hover .novidades-item__name,
.novidades-item:focus-visible .novidades-item__name {
  color: var(--novidades-accent);
}

.novidades-item__media {
  width: 5.5rem;
  height: 5.5rem;
  overflow: hidden;
  background: #17171a;
  border-radius: var(--radius-sm, 0.55rem);
}

.novidades-item__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.novidades-item__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.novidades-item__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.novidades-item__name {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  transition: color 0.15s ease;
}

.novidades-item__duration {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
}

.novidades-item__cta {
  margin-top: 0.2rem;
  color: var(--novidades-accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.novidades-page .site-footer {
  flex-shrink: 0;
  margin-top: 0;
}

@media (min-width: 640px) {
  .novidades-update__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .novidades-page__header {
    padding-inline: 1.5rem;
  }

  .novidades-page__main {
    padding: 2rem 1.5rem 3rem;
  }

  .novidades-page__main--detail {
    padding-top: 0;
    padding-inline: 0;
  }

  .novidades-page__hero h1 {
    font-size: 2rem;
  }

  .novidades-update__meta,
  .novidades-update__section {
    padding-inline: 1.5rem;
  }

  .novidades-update__title {
    font-size: 1.6rem;
  }

  .novidades-card__title {
    font-size: 1.15rem;
  }
}

@media (min-width: 900px) {
  .novidades-page__header {
    padding-inline: 2rem;
  }
}
