/* =============================================================================
   CARTAO DO CONTEUDO (.cx) e PAGINA DO CONTEUDO (.cd) — 28/11/2026
   Cartao: includes/render.php html_card_full(). Pagina: views/conteudo.php.
   ============================================================================= */

/* ---------- Cartao ---------- */
.grade:has(> .cx) { gap: 20px; }
.card-full.cx {
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; text-align: left;
  padding: 20px; border-radius: 20px; background: var(--surface);
  border: 1px solid var(--borda, var(--linha));
  box-shadow: 0 1px 2px rgba(11, 27, 51, .04);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card-full.cx:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--verde) 28%, var(--borda, var(--linha))); box-shadow: 0 22px 44px -22px rgba(11, 27, 51, .28); }
.cx .card-topo { display: flex; align-items: center; gap: 16px; }
.cx .capa { width: 68px; height: 68px; border-radius: 16px; box-shadow: 0 8px 18px -10px rgba(11, 27, 51, .45); }
.cx .card-h { margin: 0; font: inherit; letter-spacing: inherit; color: inherit; }
.cx .card-titulo { display: block; font-size: 1.06rem; font-weight: 750; letter-spacing: -.015em; line-height: 1.25; color: var(--tinta, var(--txt)); }

.cx-sobre { display: flex; align-items: center; gap: 8px; margin: 0 0 5px; font-size: .66rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--txt-3); white-space: nowrap; }
.cx-per { display: inline-flex; align-items: center; gap: 6px; color: var(--verde); }
.cx-per::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 16%, transparent); }
.cx-per.fds { color: var(--laranja); }

.cx-voz { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: .86rem; font-weight: 600; color: var(--txt-2); min-width: 0; }
.cx-voz span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-voz svg { width: 14px; height: 14px; flex: none; color: var(--verde); }

.cx-pe { margin-top: auto; padding-top: 18px; }
.cx-estilo { display: flex; margin: 0 0 16px; min-width: 0; }
.cx-chip {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%; min-width: 0;
  padding: 6px 12px 6px 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--verde) 7%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--verde) 14%, transparent);
  font-size: .8rem; font-weight: 600; color: color-mix(in srgb, var(--verde) 55%, var(--tinta, var(--txt)));
}
.cx-chip svg { width: 13px; height: 13px; flex: none; color: var(--verde); }
.cx-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cx-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 14px 0 0; border-top: 1px solid var(--linha); }
.cx-stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding: 0 12px; min-width: 0; }
.cx-stats > div:first-child { padding-left: 0; }
.cx-stats > div + div { border-left: 1px solid var(--linha); }
.cx-stats dd { margin: 0; font-family: Inter, var(--fonte, system-ui), sans-serif; font-size: 1.22rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.05; color: var(--tinta, var(--txt)); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cx-stats dd small { font-size: .62em; font-weight: 600; letter-spacing: 0; color: var(--txt-2); }
.cx-stats dt { font-size: .72rem; font-weight: 500; color: var(--txt-3); white-space: nowrap; }

@media (max-width: 480px) {
  .card-full.cx { padding: 16px; }
  .cx .card-topo { gap: 12px; }
  .cx .capa { width: 56px; height: 56px; border-radius: 14px; }
  .cx .card-play { width: 36px; height: 36px; }
  .cx-sobre { letter-spacing: .07em; }
  .cx-stats > div { padding: 0 10px; }
  .cx-stats dd { font-size: 1.08rem; }
  .cx-chip { align-items: flex-start; border-radius: 14px; }
  .cx-chip > span { white-space: normal; }
}

/* ---------- Pagina do conteudo ---------- */
.cd-hero { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; margin: 8px 0 40px; }
.cd-capa { position: relative; width: max-content; }
.cd-capa .capa { width: 240px; height: 240px; border-radius: 32px; font-size: 3rem; box-shadow: 0 30px 60px -28px rgba(11, 27, 51, .55), 0 0 0 1px rgba(11, 27, 51, .05); }
.cd-capa::after { content: ""; position: absolute; inset: auto 12% -18px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--verde) 22%, transparent); filter: blur(24px); z-index: -1; }
.cd-info { min-width: 0; }
.cd-info .cx-sobre { font-size: .74rem; margin-bottom: 12px; }
.cd-titulo { margin: 0 0 14px; font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; color: var(--tinta, var(--txt)); }
.cd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 22px; font-size: 1rem; font-weight: 600; color: var(--txt-2); }
.cd-meta > span { display: inline-flex; align-items: center; gap: 8px; }
.cd-meta svg { width: 17px; height: 17px; color: var(--verde); }
.cd-meta > span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--txt-3); margin-right: 10px; opacity: .6; }
.cd-desc { max-width: 620px; margin: 0 0 24px; font-size: 1.02rem; line-height: 1.65; color: var(--txt-2); }
.cd-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

.cd-ouvir {
  display: inline-flex; align-items: center; gap: 14px; padding: 7px 26px 7px 7px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--tinta, #0B1B33); color: #fff; font: inherit; font-size: 1rem; font-weight: 700; letter-spacing: -.01em;
  box-shadow: 0 14px 30px -14px rgba(11, 27, 51, .7);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.cd-ouvir:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -16px rgba(11, 27, 51, .75); }
.cd-ouvir-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--verde); color: #fff; transition: transform .3s var(--ease); }
.cd-ouvir:hover .cd-ouvir-ic { transform: scale(1.06); }
.cd-ouvir-ic svg { width: 18px; height: 18px; margin-left: 2px; fill: currentColor; }
.cd-ouvir small { font-size: .8rem; font-weight: 500; color: rgba(255, 255, 255, .62); margin-left: -4px; }
.cd-teste { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--verde); }
.cd-teste svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.cd-teste:hover svg { transform: translateX(3px); }

.cd-ficha { margin: 0 0 8px; }
.cd-ficha-t { margin: 0 0 14px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--txt-3); }
.cd-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border: 1px solid var(--borda, var(--linha)); border-radius: 22px; background: var(--surface); overflow: hidden; box-shadow: 0 1px 2px rgba(11, 27, 51, .04); }
.cd-stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding: 24px 26px; min-width: 0; }
.cd-stats > div + div { border-left: 1px solid var(--linha); }
.cd-stats dt { font-size: .8rem; font-weight: 500; color: var(--txt-3); }
.cd-stats dd { margin: 0; font-family: Inter, var(--fonte, system-ui), sans-serif; font-size: 1.85rem; font-weight: 700; letter-spacing: -.035em; line-height: 1.05; color: var(--tinta, var(--txt)); font-variant-numeric: tabular-nums; }
.cd-stats dd small { font-size: .55em; font-weight: 600; letter-spacing: 0; color: var(--txt-2); }
.cd-stats dd.cd-txt { font-family: inherit; font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.cd-stats dd.cd-txt.fds { color: var(--laranja); }
.cd-stats dd.cd-txt.semana { color: var(--verde); }

@media (max-width: 760px) {
  .cd-hero { grid-template-columns: 1fr; gap: 24px; margin-bottom: 32px; }
  .cd-capa .capa { width: 148px; height: 148px; border-radius: 26px; }
  .cd-stats { grid-template-columns: 1fr 1fr; }
  .cd-stats > div { padding: 18px 18px; }
  .cd-stats > div:nth-child(3) { border-left: 0; }
  .cd-stats > div:nth-child(n+3) { border-top: 1px solid var(--linha); }
  .cd-stats dd { font-size: 1.5rem; }
}

/* Selo do periodo: volta a etiqueta antiga (tipo + periodo verde/laranja), 28/11/2026 */
.cx-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.cd-tags { margin: 0 0 14px; }
.cd-tags .tag { font-size: .8rem; }

/* Ficha completa no cartao (modelo do site antigo, acabamento atual) — 28/11/2026 */
.cx-ficha { display: grid; gap: 9px; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--linha); }
.cx-ficha > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: baseline; gap: 12px; }
.cx-ficha dt { font-size: .8rem; font-weight: 500; color: var(--txt-3); }
.cx-ficha dd { margin: 0; font-size: .86rem; font-weight: 600; line-height: 1.4; color: var(--tinta, var(--txt)); overflow-wrap: anywhere; }
@media (max-width: 480px) { .cx-ficha > div { grid-template-columns: 70px minmax(0, 1fr); } }
