/* player.css — tela de exibição (TV) — tema premium orientado a tokens.
   Todas as cores/efeitos vêm de variáveis definidas por js/theme.js. */
:root {
  /* Fallbacks (o motor de temas sobrescreve tudo isto em runtime). */
  --bg: #0a1020;
  --bg-2: #131f3e;
  --brand: #3b82f6;
  --brand-2: #2563eb;
  --accent: #60a5fa;
  --surface-rgb: 22,32,60;
  --glass: .55;
  --surface: rgba(22,32,60,.55);
  --surface-solid: #16203c;
  --border: rgba(255,255,255,.09);
  --text: #f2f6ff;
  --text-dim: rgba(226,235,255,.62);
  --radius: 20px;
  --blur: 22px;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --fx: .9;
  --glow: rgba(59,130,246,.45);
  --font: 'Segoe UI Variable Display','Segoe UI',system-ui,-apple-system,Inter,Roboto,Arial,sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 100%; height: 100%;
  background: var(--bg); color: var(--text);
  font-family: var(--font);
  overflow: hidden;
  cursor: none; /* esconde o mouse na TV */
}
/* Reexibe o cursor quando há algo interativo na tela (ex.: convite de
   captura de tela), para o operador conseguir clicar. */
body.mt-cursor-on, body.mt-cursor-on * { cursor: auto; }
body.mt-cursor-on .mt-screen-overlay,
body.mt-cursor-on .mt-screen-start { cursor: pointer; }

/* ---------- Palco / grade de zonas ---------- */
.mt-stage {
  position: relative;
  display: grid;
  width: 100vw; height: 100vh;
  gap: 1.1vh;
  padding: 1.1vh;
  isolation: isolate;
  background:
    /* vinheta discreta: profundidade sem escurecer demais */
    radial-gradient(140% 125% at 50% 42%, transparent 60%, rgba(0,0,0,.24) 100%),
    radial-gradient(120% 120% at 12% -10%, var(--bg-2) 0%, transparent 55%),
    radial-gradient(120% 120% at 100% 110%, var(--bg-2) 0%, transparent 52%),
    var(--bg);
}
/* Brilho ambiente TECH: dois halos suaves da cor da MARCA, contidos (nada de
   aurora colorida girando). Precisão > exagero. Escala por --fx. */
.mt-stage::before {
  content: "";
  position: absolute; inset: -22%;
  z-index: -3;
  background:
    radial-gradient(42% 48% at 16% 12%, var(--glow) 0%, transparent 62%),
    radial-gradient(40% 46% at 90% 92%, var(--brand-2) 0%, transparent 66%);
  opacity: calc(.3 * var(--fx));
  filter: blur(60px) saturate(1.06);
  /* ESTÁTICO de propósito: o fundo não se mexe, senão o vidro (backdrop-filter)
     recalcula o blur a cada frame e trava as animações. Fundo tech = parado. */
}
/* Segundo halo, sutil e também estático. */
.mt-stage-fx {
  position: absolute; inset: -22%;
  z-index: -2; pointer-events: none;
  background: radial-gradient(36% 42% at 80% 18%, var(--accent) 0%, transparent 66%);
  opacity: calc(.13 * var(--fx));
  filter: blur(76px) saturate(1.04);
}
/* Granulado sutil — acabamento "matte" de produto caro. */
.mt-stage::after {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: calc(.05 * var(--fx));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes mt-aurora {
  0% { transform: translate3d(-1.4%, -1%, 0) scale(1.03); }
  100% { transform: translate3d(1.4%, 1.2%, 0) scale(1.08); }
}
@keyframes mt-aurora-2 {
  0% { transform: translate3d(1%, 1%, 0) rotate(0deg); }
  100% { transform: translate3d(-1%, -1%, 0) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .mt-stage::before, .mt-stage-fx { animation: none; }
}
/* Layouts "dinâmicos": as zonas mudam de proporção suavemente ao longo
   do tempo, sem recriar nenhum conteúdo (vídeos e lives não reiniciam). */
.mt-stage-breathing {
  transition: grid-template-columns 1.8s cubic-bezier(.4, 0, .2, 1),
              grid-template-rows 1.8s cubic-bezier(.4, 0, .2, 1);
}
/* A troca de arranjo do layout dinâmico é animada via FLIP (transform) no
   player.js — cada zona desliza/redimensiona suavemente. */
@keyframes mt-zone-in {
  from { opacity: 0; transform: translateY(2.4vh) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.mt-zone {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.5);
  backdrop-filter: blur(var(--blur)) saturate(1.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  /* Profundidade tech: sombra precisa + fina luz de vidro no topo. Sem halo
     colorido espalhado — contenção é o que passa "caro". */
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.10);
  /* Permite dimensionar fontes pela largura da própria zona (cqw). */
  container-type: size;
}
/* Fina "luz" superior de vidro no topo de cada zona. */
.mt-zone::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 40%;
  pointer-events: none; z-index: 3;
  background: linear-gradient(180deg, rgba(255,255,255,.06), transparent);
}

/* ---------- Slides (conteúdos) ---------- */
.mt-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  will-change: opacity, transform;
}
.mt-slide.mt-active { opacity: 1; }

/* ---------- Transições cinematográficas ---------- */
.mt-trans-fade { transition: opacity .8s ease; }

.mt-trans-slide {
  transition: opacity .8s ease, transform .8s cubic-bezier(.22,.61,.36,1);
  transform: translateX(5%);
}
.mt-trans-slide.mt-active { transform: translateX(0); }
.mt-trans-slide.mt-leave { transform: translateX(-4%); }

.mt-trans-zoom {
  transition: opacity .9s ease, transform .9s cubic-bezier(.22,.61,.36,1);
  transform: scale(1.08);
}
.mt-trans-zoom.mt-active { transform: scale(1); }
.mt-trans-zoom.mt-leave { transform: scale(.97); }

/* "Cinematic": entra com leve zoom + subida. Sem blur animado (trava a GPU);
   só transform/opacity, que fluem no compositor. */
.mt-trans-cinematic {
  transition: opacity 1.1s cubic-bezier(.4,0,.2,1),
              transform 1.2s cubic-bezier(.16,.84,.3,1);
  transform: scale(1.03) translateY(1.1%);
}
.mt-trans-cinematic.mt-active { transform: scale(1) translateY(0); }
.mt-trans-cinematic.mt-leave { transform: scale(.99) translateY(-.6%); }

.mt-trans-none { transition: none; }
.mt-leave { opacity: 0 !important; }

.mt-empty, .mt-broken {
  color: var(--text-dim); font-size: 1.4vw; letter-spacing: .04em;
}
/* Zona vazia = relógio (ver startPlaylist). Unidades de contêiner: a zona
   lateral é estreita e a principal é larga, e os dois precisam caber. */
.mt-empty { flex-direction: column; container-type: size; }
.mt-empty-hora {
  color: var(--text); font-weight: 700; letter-spacing: -.02em; line-height: 1;
  font-size: 6vw; font-size: min(28cqw, 38cqh); font-variant-numeric: tabular-nums;
}
.mt-empty-dia {
  margin-top: .6em; color: var(--text-dim); text-align: center;
  padding: 0 6%; font-size: 1.6vw; font-size: min(5.5cqw, 8cqh); letter-spacing: .01em;
}

/* Imagem / vídeo / web */
.mt-image img, .mt-video video {
  width: 100%; height: 100%; display: block;
}
.mt-video iframe, .mt-web iframe {
  width: 100%; height: 100%; border: 0;
}

/* Entrada ao vivo (HDMI/USB) e stream */
.mt-live-source, .mt-stream { background: #000; }
.mt-live-source video, .mt-stream video {
  width: 100%; height: 100%; display: block;
}
.mt-live-msg {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-size: clamp(14px, 3cqw, 30px);
  letter-spacing: .03em; text-align: center; padding: 4%;
  background: radial-gradient(60% 60% at 50% 50%, rgba(0,0,0,.2), rgba(0,0,0,.55));
}
/* Captura de tela: convite/botão para iniciar (getDisplayMedia exige gesto) */
.mt-screen-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.4cqh;
  text-align: center; padding: 4%;
  background: radial-gradient(60% 60% at 50% 50%, rgba(0,0,0,.35), rgba(0,0,0,.72));
}
.mt-screen-hint { color: var(--text-dim); font-size: clamp(13px, 2.6cqw, 26px); max-width: 80%; }
.mt-screen-start {
  font: inherit; font-weight: 700; font-size: clamp(14px, 2.6cqw, 26px);
  color: var(--on-brand); background: linear-gradient(150deg, var(--brand), var(--brand-2));
  border: 0; border-radius: 100px; padding: 1.6cqh 4cqw; cursor: pointer;
  box-shadow: var(--shadow);
}

/* Texto / aviso */
.mt-text { padding: 4%; }
.mt-text:not(.mt-surface)::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(165deg, rgba(255,255,255,.08), rgba(0,0,0,.25));
  pointer-events: none;
}
.mt-text-inner { max-width: 90%; position: relative; z-index: 1; }
.mt-text-title {
  font-size: calc(clamp(30px, 5.4vw, 104px) * var(--tscale, 1));
  font-weight: 750; line-height: 1.02; letter-spacing: -.022em; margin-bottom: .34em;
  text-wrap: balance;
}
.mt-text-body {
  font-size: calc(clamp(18px, 2.4vw, 42px) * var(--tscale, 1));
  font-weight: 400; line-height: 1.32; letter-spacing: -.005em;
  color: var(--text-dim);
}

/* Relógio */
.mt-clock { flex-direction: column; color: var(--text); }
.mt-clock-time { font-size: clamp(40px, 9vw, 168px); font-weight: 300; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mt-clock-date { font-size: clamp(15px, 2.2vw, 36px); text-transform: capitalize; color: var(--text-dim); font-weight: 500; letter-spacing: .01em; margin-top: .35em; }

/* Clima */
.mt-weather { color: var(--text); }
.mt-weather-inner { text-align: center; }
.mt-weather-icon { font-size: clamp(48px, 10vw, 160px); }
.mt-weather-temp { font-size: clamp(36px, 7vw, 120px); font-weight: 800; }
.mt-weather-city { font-size: clamp(16px, 2.4vw, 40px); opacity: .85; }

/* Aniversariantes */
.mt-birthday { flex-direction: column; padding: 5%; }
.mt-birthday-title {
  position: relative; z-index: 1;
  font-size: clamp(22px, 3vw, 52px);
  font-weight: 800; margin-bottom: .9em;
  letter-spacing: .01em;
}
.mt-birthday-list {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: .5em;
  width: 100%; max-width: 86%;
}
.mt-birthday-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1em;
  font-size: clamp(15px, 1.9vw, 32px);
  background: color-mix(in srgb, var(--text) 8%, transparent);
  border-left: .22em solid color-mix(in srgb, var(--accent) 72%, transparent);
  padding: .45em .9em; border-radius: .35em;
}
.mt-birthday-date { font-weight: 700; color: var(--accent); white-space: nowrap; }

/* QR Code */
.mt-qr-inner { text-align: center; }
.mt-qr-inner img { width: clamp(180px, 22vw, 420px); height: auto; background:#fff; padding:10px; border-radius:12px; }
.mt-qr-caption { margin-top: 1em; font-size: clamp(16px, 2vw, 34px); color:#0b1220; font-weight:600; }

/* ---------- Mural de fotos do público (QR) ----------
 * Tudo aqui é medido em cqw/cqh: o mural roda tanto na zona principal de uma
 * TV deitada quanto num painel lateral estreito, e as fotos não podem virar
 * selo num caso e estourar no outro.
 */
.mt-mural { display: flex; flex-direction: column; gap: 2cqh; padding: 3cqh 3cqw; }
.mt-mural-head { flex: none; }
.mt-mural-h { font-size: clamp(18px, 4.4cqw, 64px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.mt-mural-sub { font-size: clamp(12px, 2.2cqw, 30px); color: var(--text-dim); margin-top: .3em; }
.mt-mural-palco { flex: 1 1 auto; min-height: 0; display: flex; }
.mt-mural-vazio { align-items: center; justify-content: center; }

/* A parede. As colunas/linhas vêm do JS, que as escolhe pela quantidade de
 * fotos — grade fixa fica vazia com uma foto e apertada com dez. */
.mt-mural-parede {
  flex: 1 1 auto; min-height: 0;
  display: grid; gap: 1.4cqw;
  grid-auto-flow: dense;
}
.mt-mural-foto {
  position: relative; overflow: hidden; border-radius: 1.2cqw;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  box-shadow: 0 .6cqh 2.4cqh rgba(0,0,0,.35);
}
/* Preenchimento borrado atrás da foto inteira: a célula fica cheia sem que
 * ninguém seja cortado. Foto de família não se corta. */
.mt-mural-foto::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--foto); background-size: cover; background-position: center;
  filter: blur(2.4cqh) brightness(.55) saturate(1.15); transform: scale(1.25);
}
.mt-mural-foto img { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; }
.mt-mural-foto-1 { grid-column: span 2; grid-row: span 2; }
.mt-mural-legenda {
  position: absolute; inset: auto 0 0 0; padding: 1.2cqh 1.2cqw .9cqh;
  background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,0));
  color: #fff;
}
.mt-mural-msg { font-size: clamp(10px, 1.5cqw, 22px); line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mt-mural-autor { font-size: clamp(9px, 1.2cqw, 18px); font-weight: 700; opacity: .85; margin-top: .2em; }
.mt-mural-foto-1 .mt-mural-msg { font-size: clamp(12px, 2cqw, 30px); -webkit-line-clamp: 3; }
.mt-mural-foto-1 .mt-mural-autor { font-size: clamp(10px, 1.5cqw, 24px); }

/* Chegou foto: entra crescendo. É o único movimento da tela, então quem estava
 * olhando vê exatamente onde a sua foto apareceu. */
.mt-mural-nova { animation: mt-mural-entra .7s cubic-bezier(.2,.9,.3,1.2) both; z-index: 2; }
@keyframes mt-mural-entra {
  from { transform: scale(.82); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Enquanto não chega foto nenhuma. Sem QR na TV: o convite é o cartaz na mesa,
 * e a tela existe para mostrar as pessoas. A frase segue o tema da tela. */
.mt-mural-aguarde {
  font-size: clamp(14px, 3cqw, 44px); font-weight: 600; line-height: 1.25;
  color: var(--text-dim); text-align: center; max-width: 70cqw;
}

/* ---------- Cabeçalho (premium, orientado à zona) ---------- */
.mt-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 3cqw; padding: 0 4cqw;
  color: var(--text);
  background:
    radial-gradient(70% 180% at 0% 50%, color-mix(in srgb, var(--brand) 30%, transparent) 0%, transparent 60%),
    linear-gradient(100deg, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 55%);
}
.mt-header-left { display: flex; align-items: center; gap: 3cqw; min-width: 0; }
.mt-header-logo { height: 54cqh; width: auto; max-width: 24cqw; object-fit: contain; }
.mt-header-title {
  position: relative; padding-left: 3cqw;
  font-size: 30cqh; font-weight: 800; letter-spacing: -.01em; line-height: 1;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Acento de marca antes do título (também separa do logo, quando houver). */
.mt-header-title::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5cqh; height: 62cqh; border-radius: 100px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
}
.mt-header-right { display: flex; align-items: center; gap: 3cqw; }
.mt-header-weather {
  display: inline-flex; align-items: center; gap: 1.6cqw;
  font-size: 17cqh; font-weight: 700; color: var(--text); white-space: nowrap;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  padding: 2.4cqh 2.6cqw; border-radius: 100px;
}
.mt-header-weather:empty { display: none; }
.mt-header-clock {
  display: flex; flex-direction: column; align-items: flex-end; line-height: 1;
  padding-left: 3cqw; border-left: 1px solid var(--border);
}
.mt-hc-time {
  font-size: 30cqh; font-weight: 800; color: var(--text);
  letter-spacing: .02em; font-variant-numeric: tabular-nums;
}
.mt-hc-date {
  font-size: 14cqh; font-weight: 600; color: var(--text-dim);
  text-transform: capitalize; margin-top: 1.6cqh;
}

/* ---------- Faixa de notícias (estilo clássico, tech) ----------
   Duas linhas: selo "ao vivo" + relógio em cima, manchete embaixo.
   Fundo discreto (sem bloco sólido). Aproveita toda a largura e mantém
   o selo à esquerda e o relógio alinhado à direita. */
.mt-news {
  display: flex; align-items: center;
  background: transparent;
  overflow: hidden;
  padding: 0 3.5cqw;
}
.mt-news-content {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; justify-content: center;
  gap: 6cqh;
}
/* Linha superior: selo à esquerda, relógio empurrado para a direita. */
.mt-news-topline {
  display: flex; align-items: center; gap: 2.5cqw;
}
.mt-news-tag {
  display: inline-flex; align-items: center; gap: 2cqh;
  padding: 1.8cqh 2.6cqh; border-radius: 100px;
  font-size: 13cqh; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; line-height: 1; white-space: nowrap;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
}
.mt-news-tag::before {
  content: ""; width: 8cqh; height: 8cqh; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent);
  animation: mt-live 1.8s ease-out infinite;
}
@keyframes mt-live {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 65%, transparent); }
  70% { box-shadow: 0 0 0 7cqh transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
/* Relógio — alinhado à direita, texto tabular, discreto. */
.mt-news-clock {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 2cqh;
  font-size: 13cqh; font-weight: 700; letter-spacing: .06em;
  color: var(--text-dim); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.mt-news-clock .nc-date { color: var(--text); font-weight: 800; }
.mt-news-clock .nc-sep { width: 4cqh; height: 4cqh; border-radius: 50%; background: currentColor; opacity: .5; }
.mt-news-clock .nc-time { letter-spacing: .04em; }
/* Manchete — ocupa toda a largura; subtítulo legível. */
.mt-news-headline { min-width: 0; }
.mt-news-in { animation: mt-news-slide .6s cubic-bezier(.16,.84,.3,1) both; }
@keyframes mt-news-slide {
  from { opacity: 0; transform: translateY(40%); filter: blur(3px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.mt-news-title {
  font-size: 30cqh; font-weight: 800; color: var(--text);
  line-height: 1.05; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mt-news-desc {
  font-size: 18cqh; font-weight: 500; color: var(--text-dim);
  line-height: 1.1; margin-top: 1.4cqh;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Manchete que não cabe: desliza até o fim e volta, em vez de ser cortada com
   reticências. A distância e a duração vêm medidas do player — o CSS não tem
   como saber quanto sobrou. Sem ellipsis aqui, senão o "…" aparece durante o
   deslize e o texto parece truncado mesmo estando inteiro. */
.mt-news-roll {
  text-overflow: clip;
  animation: mt-news-roll var(--roll-dur, 8s) ease-in-out infinite alternate;
  animation-delay: 1.2s;
}
@keyframes mt-news-roll {
  0%, 12% { transform: translateX(0); }
  88%, 100% { transform: translateX(var(--roll-dist, 0)); }
}
/* Quem pediu menos movimento no sistema não deve ganhar texto deslizando. */
@media (prefers-reduced-motion: reduce) {
  .mt-news-roll { animation: none; text-overflow: ellipsis; }
}

/* ---------- Rodapé / ticker (rolagem clássica) ---------- */
.mt-ticker {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  display: flex; align-items: center;
  overflow: hidden; white-space: nowrap;
}
.mt-ticker-track {
  display: inline-flex;
  will-change: transform;
  animation: mt-scroll linear infinite;
  /*
   * A distância de uma volta: a largura de UMA cópia do texto, em pixels,
   * escrita aqui por js/player.js. O valor de reserva vale só para o instante
   * entre a faixa existir e ser medida.
   */
  --mt-ticker-volta: 50%;
}
.mt-ticker-item {
  font-size: clamp(16px, 2.4vw, 36px);
  font-weight: 600; padding: 0 1vw; color: var(--on-brand);
}
/*
 * Uma volta = uma cópia do texto, e não metade da faixa.
 *
 * Era `-50%`, que só é uma cópia quando existem exatamente duas. O número de
 * cópias agora vem do conteúdo e da largura da tela (ver `copiasPara` em
 * js/player.js), então a porcentagem deixaria de casar e a emenda se abriria
 * de novo — só que de um jeito mais difícil de enxergar.
 */
@keyframes mt-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-1 * var(--mt-ticker-volta))); }
}

/* ---------- Aviso Premium ---------- */
/* Fundo escuro próprio (gradiente por variante) → texto sempre claro. */
.mt-ann { overflow: hidden; color: #fff; }
.ann-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  gap: 3.2cqh;
  max-width: 80cqw;
  padding: 4cqw;
}
.ann-icon {
  width: clamp(52px, 16cqh, 150px);
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 26%;
  border: 1px solid;
}
.ann-icon svg { width: 58%; height: 58%; }
.ann-kicker {
  font-size: clamp(11px, 3cqh, 26px);
  font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
  border: 1px solid;
  padding: .9cqh 2.6cqh; border-radius: 100px;
}
.ann-title {
  font-size: clamp(24px, 9.5cqh, 90px);
  font-weight: 800; line-height: 1.08; letter-spacing: -.01em;
}
.ann-body {
  font-size: clamp(15px, 4.2cqh, 42px);
  line-height: 1.5; color: rgba(255, 255, 255, .86);
  max-width: 62cqw;
}
.ann-meta {
  font-size: clamp(13px, 3.4cqh, 32px);
  font-weight: 600; color: rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .14);
  padding: 1.4cqh 3.4cqh; border-radius: 100px;
  margin-top: .6cqh;
}

/* ---------- Painel do Clima (estilo dashboard) ---------- */
.mt-wpro {
  align-items: stretch;
  background: transparent;
}
/* Sizings em cqmin (menor dimensão da zona) + clamp: escala bem tanto em
   zona larga-baixa quanto estreita-alta, sem estourar a altura. */
.mt-wpro-inner {
  width: 100%; height: 100%; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(10px, 5cqmin, 44px);
  gap: clamp(2px, 1cqmin, 10px);
  color: var(--text);
}
.mt-wpro-loading { color: var(--text-dim); font-size: clamp(14px, 5cqmin, 30px); }
.wp-date {
  font-size: clamp(11px, 4.2cqmin, 30px); font-weight: 600; letter-spacing: .03em;
  color: var(--text);
  padding-bottom: clamp(4px, 2cqmin, 16px); margin-bottom: .3em;
  border-bottom: 1px solid var(--border);
  width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wp-city { font-size: clamp(12px, 4.4cqmin, 34px); font-weight: 700; }
.wp-city span { font-weight: 400; color: var(--text-dim); }
.wp-now {
  display: flex; align-items: center; justify-content: center; gap: clamp(6px, 3cqmin, 28px);
  margin-top: .3em;
}
.wp-icon { width: clamp(40px, 22cqmin, 150px); height: clamp(40px, 22cqmin, 150px); color: var(--accent); flex: none; }
.wp-temp { font-size: clamp(40px, 22cqmin, 150px); font-weight: 300; line-height: 1; letter-spacing: -.02em; }
.wp-cond { font-size: clamp(12px, 4.6cqmin, 32px); color: var(--text); opacity: .9; margin-bottom: .3em; }
.wp-days {
  display: flex; justify-content: space-between; width: 100%;
  padding-top: clamp(4px, 2.2cqmin, 18px); margin-top: .2em;
  border-top: 1px solid var(--border);
  min-height: 0; flex-wrap: nowrap;
}
.wp-day {
  display: flex; flex-direction: column; align-items: center; gap: .3em;
  flex: 1; min-width: 0;
}
.wp-day-name { font-size: clamp(9px, 2.8cqmin, 20px); color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em; }
.wp-day-icon { width: clamp(14px, 6cqmin, 44px); height: clamp(14px, 6cqmin, 44px); color: var(--text); opacity: .9; }
.wp-day-max { font-size: clamp(10px, 3.2cqmin, 24px); font-weight: 700; }
.wp-day-min { font-size: clamp(9px, 2.8cqmin, 20px); color: var(--text-dim); }
/* Zona baixa: esconde a previsão de 6 dias para não cortar o essencial
   (clima atual). Volta a aparecer em zonas com altura suficiente. */
@container (max-height: 210px) { .wp-days { display: none; } }
@container (max-height: 140px) { .wp-date { display: none; } }

/* Fallback do clima: relógio ao vivo + data + cidade (parece intencional). */
.wp-fallback {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(4px, 1.6cqmin, 14px); width: 100%;
}
.wpf-date {
  font-size: clamp(11px, 4.2cqmin, 30px); font-weight: 600; letter-spacing: .03em;
  color: var(--text-dim); text-transform: capitalize; text-align: center;
}
.wpf-time {
  font-size: clamp(52px, 34cqmin, 210px); font-weight: 200; line-height: .95;
  letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums;
}
.wpf-city {
  font-size: clamp(12px, 4.6cqmin, 34px); font-weight: 700; letter-spacing: .02em;
  color: var(--accent); text-align: center;
}

/* ---------- Cartão de aniversário ---------- */
/* Aniversário — tech premium: avatar com anel da marca + tipografia limpa.
   Herda a cor do tema (coeso claro/escuro). */
.mt-bcard { overflow: hidden; color: var(--text); }
.bc-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  gap: 6cqw; padding: 5cqw;
  width: 100%; height: 100%;
}
.bc-avatar {
  flex: none; width: 24cqw; max-width: 42cqh; aspect-ratio: 1;
  border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--brand) 18%, transparent);
  box-shadow: 0 0 0 .5cqw color-mix(in srgb, var(--brand) 45%, transparent),
              0 0 0 1cqw var(--border), 0 20px 50px rgba(0,0,0,.4);
}
.bc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bc-initials { font-size: 9cqw; font-weight: 600; color: var(--brand); letter-spacing: -.02em; }
.bc-text { max-width: 48cqw; text-align: left; }
.bc-kicker {
  display: inline-block; font-size: 2cqw; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 2cqh;
}
.bc-title {
  font-size: 6.4cqw; font-weight: 300; line-height: 1.04;
  letter-spacing: -.02em; margin-bottom: 1.8cqh;
}
.bc-title strong { font-weight: 700; }
.bc-msg { font-size: 3cqw; line-height: 1.4; color: var(--text-dim); }
/* Zona estreita (lateral): coluna, centralizado */
@container (aspect-ratio < 1.1) {
  .bc-inner { flex-direction: column; gap: 4cqh; }
  .bc-text { max-width: 84cqw; text-align: center; }
  .bc-avatar { width: 40cqw; }
}

/* ---------- Aniversariantes automáticos ---------- */
/* herda .mt-slide (flex): força coluna para título em cima, conteúdo embaixo. */
.mt-bday { color: var(--text); overflow: hidden; flex-direction: column; justify-content: center; gap: 1cqh; }
.mt-bday > * { width: 100%; }
.mt-bday-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 2cqw; padding: 4cqh 4cqw 0; text-align: center; }
.mt-bday-emoji { font-size: 6cqh; line-height: 1; }
.mt-bday-h { font-size: clamp(20px, 5cqw, 60px); font-weight: 800; letter-spacing: -.02em; }
.mt-bday-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--text-dim); font-size: clamp(16px, 3.4cqw, 34px); }

/* HOJE — grade de pessoas */
.mt-bday-grid { position: relative; z-index: 1; display: grid; gap: 3cqw; padding: 3cqh 5cqw 5cqh; align-content: center; height: 100%; }
.mt-bday-grid-1 { grid-template-columns: 1fr; }
.mt-bday-grid-2, .mt-bday-grid-3, .mt-bday-grid-4 { grid-template-columns: repeat(2, 1fr); }
.mt-bday-person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.4cqh; }
.mt-bday-person .bc-avatar { width: 22cqw; max-width: 26cqh; }
.mt-bday-grid-1 .bc-avatar { width: 30cqw; }
.mt-bday-name { font-size: clamp(15px, 3cqw, 34px); font-weight: 700; letter-spacing: -.01em; }
.mt-bday-role { font-size: clamp(12px, 2cqw, 22px); color: var(--text-dim); }

/* SEMANA — lista */
.mt-bday-list { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 1.4cqh; padding: 3cqh 5cqw 5cqh; }
.mt-bday-row { display: flex; align-items: center; gap: 2.5cqw; padding: 1.4cqh 2cqw; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--border); }
.mt-bday-row .bc-avatar { width: 9cqw; max-width: 11cqh; box-shadow: 0 0 0 .3cqw color-mix(in srgb, var(--brand) 45%, transparent); }
.mt-bday-row .bc-initials { font-size: 3.4cqw; }
.mt-bday-rowinfo { flex: 1; min-width: 0; }
.mt-bday-row .mt-bday-name { font-size: clamp(14px, 2.6cqw, 28px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-bday-row .mt-bday-role { font-size: clamp(11px, 1.8cqw, 18px); }
.mt-bday-when { flex: none; text-align: right; display: flex; flex-direction: column; line-height: 1.1; }
.mt-bday-date { font-size: clamp(13px, 2.2cqw, 24px); font-weight: 700; }
.mt-bday-wd { font-size: clamp(10px, 1.6cqw, 16px); color: var(--text-dim); text-transform: capitalize; }
.mt-bday-when.is-today .mt-bday-date, .mt-bday-when.is-today .mt-bday-wd { color: var(--brand); }

/* ---------- Mapas (trânsito / região) ---------- */
.mt-map { background: #0e1526; }
.mt-map iframe { width: 100%; height: 100%; border: 0; }
.mt-map-badge {
  position: absolute; top: 2.4cqh; left: 2.4cqh; z-index: 2;
  background: rgba(10, 14, 28, .82);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff; font-size: 2.6cqh; font-weight: 700;
  padding: 1.2cqh 2.4cqh; border-radius: 1.2cqh;
  backdrop-filter: blur(6px);
}
.mt-map-error { color: rgba(255,255,255,.55); font-size: 3cqh; }

/* ---------- Frase / citação ---------- */
.mt-quote { padding: 6cqw; }
.mt-quote-inner { position: relative; z-index: 1; max-width: 82cqw; text-align: center; }
.mt-quote-mark {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 26cqw; line-height: .7; color: var(--accent); opacity: .55;
  height: 14cqw;
}
.mt-quote-text { font-size: 7cqw; font-weight: 600; line-height: 1.32; letter-spacing: -.01em; }
.mt-quote-author {
  margin-top: 4cqh; font-size: 3.6cqw; color: var(--text-dim); font-weight: 500;
}
.mt-quote-author::before {
  content: ""; display: inline-block; width: 5cqw; height: 2px; vertical-align: middle;
  margin-right: 2cqw; background: var(--accent);
}

/* ---------- Destaque de pessoa ---------- */
.mt-spot { padding: 5cqw; }
.mt-spot-inner { display: flex; align-items: center; gap: 6cqw; max-width: 92cqw; }
.mt-spot-photo-wrap { flex: none; position: relative; }
.mt-spot-photo {
  width: 30cqw; max-width: 42cqh; aspect-ratio: 1; object-fit: cover; display: block;
  border-radius: 50%; border: .8cqw solid color-mix(in srgb, var(--text) 82%, transparent);
  box-shadow: 0 12px 40px rgba(0,0,0,.45), 0 0 0 1.6cqw color-mix(in srgb, var(--accent) 40%, transparent);
}
.mt-spot-initials {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--brand), var(--brand-2));
  font-size: 11cqw; font-weight: 800; color: var(--on-brand);
}
.mt-spot-info { min-width: 0; }
.mt-spot-kicker {
  display: inline-block; font-size: 2.9cqw; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent);
  padding: 1.4cqh 3cqw; border-radius: 100px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
}
.mt-spot-name { font-size: 8.5cqw; font-weight: 800; line-height: 1.05; margin-top: 2.4cqh; letter-spacing: -.01em; }
.mt-spot-role { font-size: 4cqw; color: var(--accent); font-weight: 600; margin-top: .6cqh; }
.mt-spot-msg { font-size: 3.4cqw; color: var(--text-dim); line-height: 1.4; margin-top: 2.4cqh; max-width: 46cqw; }

/* ---------- Agenda / programação ---------- */
.mt-agenda { flex-direction: column; padding: 5cqw; }
.mt-agenda-inner { width: 100%; max-width: 88cqw; }
.mt-agenda-title { font-size: 6.5cqw; font-weight: 800; margin-bottom: 3cqh; letter-spacing: -.01em; }
.mt-agenda-list { display: flex; flex-direction: column; gap: 1.6cqh; }
.mt-agenda-row {
  display: flex; align-items: center; gap: 4cqw;
  padding: 2cqh 0; border-bottom: 1px solid var(--border);
}
.mt-agenda-row:last-child { border-bottom: 0; }
.mt-agenda-time {
  flex: none; min-width: 20cqw; text-align: center;
  font-size: 3.6cqw; font-weight: 800; font-variant-numeric: tabular-nums;
  color: var(--on-brand); background: linear-gradient(150deg, var(--brand), var(--brand-2));
  padding: 1.4cqh 2cqw; border-radius: 12px;
}
.mt-agenda-act { font-size: 4cqw; font-weight: 500; }

/* ---------- Indicador / KPI ---------- */
.mt-kpi-inner { text-align: center; }
.mt-kpi-label {
  font-size: 4cqw; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dim);
}
.mt-kpi-value-wrap { display: flex; align-items: baseline; justify-content: center; gap: 3cqw; margin-top: 1cqh; }
.mt-kpi-value {
  font-size: 22cqw; font-weight: 800; line-height: 1; letter-spacing: -.03em;
  background: linear-gradient(160deg, var(--text), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mt-kpi-trend {
  font-size: 4.4cqw; font-weight: 800; padding: 1cqh 2.4cqw; border-radius: 100px;
}
.mt-kpi-subiu { color: #16a34a; background: color-mix(in srgb, #22c55e 18%, transparent); }
.mt-kpi-desceu { color: #dc2626; background: color-mix(in srgb, #ef4444 18%, transparent); }
.mt-kpi-estavel { color: var(--text-dim); background: color-mix(in srgb, var(--text) 12%, transparent); }
.mt-kpi-detail { font-size: 3.4cqw; color: var(--text-dim); margin-top: 2cqh; }

/* ---------- Superfície de conteúdo (linguagem premium adaptativa) ----------
   Fundo em gradiente derivado das cores do tema (accent + brand + fundo),
   com brilho sutil. Todo conteúdo pronto pode herdar este visual — trocar
   o tema muda todos juntos, de forma uniforme. Texto segue o tema. */
.mt-surface {
  color: var(--text);
  background:
    radial-gradient(90% 95% at 84% 8%, color-mix(in srgb, var(--accent) 30%, transparent) 0%, transparent 56%),
    radial-gradient(80% 85% at 4% 96%, color-mix(in srgb, var(--brand) 24%, transparent) 0%, transparent 54%),
    linear-gradient(155deg, color-mix(in srgb, var(--bg-2) 86%, var(--accent) 8%) 0%, var(--bg) 74%);
}
.mt-surface::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.05), transparent 42%);
}
.mt-surface > * { position: relative; z-index: 1; }

/* ---------- Promoção / produto (nova versão) ---------- */
.mt-promo { display: flex; padding: 0; overflow: hidden; }
/* Sem imagem: composição central única (nunca fica "meia tela vazia"). */
.mt-promo:not(.mt-promo-split) { flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 7cqw; }
.mt-promo:not(.mt-promo-split) .mt-promo-info { align-items: center; max-width: 82cqw; }
/* Com imagem: metade mídia, metade informações. */
.mt-promo-split { align-items: stretch; }
.mt-promo-split .mt-promo-media { flex: 1.05; }
.mt-promo-split .mt-promo-info { flex: 1; padding: 6cqw; text-align: left; align-items: flex-start; }
.mt-promo-media { position: relative; overflow: hidden; }
.mt-promo-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mt-promo-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, color-mix(in srgb, var(--bg) 55%, transparent)); }

.mt-promo-info { display: flex; flex-direction: column; justify-content: center; gap: 2.4cqh; }
.mt-promo-selo {
  font-size: clamp(12px, 2.6cqh, 26px); font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-accent);
  background: linear-gradient(150deg, var(--accent), color-mix(in srgb, var(--accent) 78%, #000));
  padding: 1.2cqh 2.4cqh; border-radius: 100px;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 45%, transparent);
}
.mt-promo-title { font-size: clamp(22px, 7.6cqh, 82px); font-weight: 800; line-height: 1.06; letter-spacing: -.01em; }
.mt-promo-prices { display: flex; align-items: baseline; gap: 2.6cqh; flex-wrap: wrap; justify-content: inherit; }
.mt-promo:not(.mt-promo-split) .mt-promo-prices { justify-content: center; }
.mt-promo-de { font-size: clamp(14px, 4cqh, 40px); color: var(--text-dim); text-decoration: line-through; }
.mt-promo-por {
  font-size: clamp(30px, 13cqh, 132px); font-weight: 800; line-height: .95; letter-spacing: -.02em;
  background: linear-gradient(150deg, var(--text), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mt-promo-cta {
  margin-top: 1cqh; font-size: clamp(14px, 3.4cqh, 34px); font-weight: 700; color: var(--on-brand);
  background: linear-gradient(150deg, var(--brand), var(--brand-2));
  padding: 1.7cqh 3.4cqh; border-radius: 100px; box-shadow: var(--shadow);
}

/* ---------- Holyrics (letra/slide ao vivo) ---------- */
.mt-holyrics { flex-direction: column; padding: 6cqw; text-align: center; }
.mt-holyrics-text {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 1.2cqh;
  max-width: 90cqw;
  font-size: clamp(24px, 8.5cqh, 96px); font-weight: 800; line-height: 1.14;
  letter-spacing: -.01em; color: var(--text);
}
.mt-holyrics-text.is-empty {
  font-size: clamp(16px, 3.4cqw, 34px); font-weight: 600; color: var(--text-dim);
}
.mt-holyrics-line { min-height: .2em; }
.mt-holyrics-meta {
  position: relative; z-index: 1; margin-top: 3cqh;
  font-size: clamp(13px, 2.6cqw, 26px); font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent);
}
.mt-holyrics-meta:empty { display: none; }

/* ---------- Redes sociais ---------- */
.mt-social-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2.4cqh; }
.mt-social-icon {
  width: 20cqw; max-width: 26cqh; aspect-ratio: 1; border-radius: 28%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--brand), var(--brand-2)); color: var(--on-brand);
  box-shadow: var(--shadow);
}
.mt-social-icon svg { width: 56%; height: 56%; }
.mt-social-title { font-size: 6cqw; font-weight: 800; }
.mt-social-handle { font-size: 5cqw; font-weight: 700; color: var(--accent); }
.mt-social-qr {
  width: 18cqw; max-width: 24cqh; height: auto; margin-top: 1cqh;
  background: #fff; padding: 1.4cqw; border-radius: 12px;
}

/* ---------- Poster / arte de marca (tipo "poster") ----------
   Herda a cor da marca por --pb (default = --brand, adaptativa). Escala por
   container query → serve qualquer formato/zona. color-mix com fallback sólido
   pra TVs mais antigas. */
.mt-poster { --pb: var(--brand); position: absolute; inset: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center; }
.mt-poster .mt-poster-fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.mt-poster-inner { position: relative; z-index: 1; display: flex; flex-direction: column;
  gap: 2.2cqh; padding: 8cqmin; max-width: 90%; }
.mt-poster-kicker { font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  font-size: clamp(11px, 2.4cqw, 26px); opacity: .85; }
.mt-poster-title { font-weight: 800; line-height: 1.02; letter-spacing: -.022em;
  font-size: clamp(28px, 9cqw, 150px); text-wrap: balance; }
.mt-poster-body { font-weight: 400; line-height: 1.3; opacity: .92; max-width: 24ch;
  font-size: clamp(15px, 3.2cqw, 44px); }
.mt-poster-cta { align-self: flex-start; margin-top: 1.2cqh; font-weight: 700;
  font-size: clamp(13px, 2.6cqw, 30px); padding: .7em 1.4em; border-radius: 100px; }

/* BOLD — fundo cheio na cor da marca, título gigante centralizado. */
.mt-poster-bold { color: #fff; text-align: center; background: var(--pb);
  background: linear-gradient(150deg, var(--pb), color-mix(in srgb, var(--pb), #000 26%)); }
.mt-poster-bold .mt-poster-inner { align-items: center; }
.mt-poster-bold .mt-poster-title { text-shadow: 0 2px 24px rgba(0,0,0,.22); }
.mt-poster-bold .mt-poster-cta { background: #fff; color: var(--pb); }
.mt-poster-bold .mt-poster-fx {
  background:
    radial-gradient(38% 42% at 88% 6%, rgba(255,255,255,.16), transparent 70%),
    radial-gradient(34% 38% at 4% 98%, rgba(0,0,0,.18), transparent 70%); }

/* AURORA — fundo escuro do tema + halos suaves da marca, texto centrado. */
.mt-poster-aurora { color: var(--text); text-align: center; background: var(--bg); }
.mt-poster-aurora .mt-poster-inner { align-items: center; }
.mt-poster-aurora .mt-poster-cta { background: var(--pb); color: #fff; }
.mt-poster-aurora .mt-poster-fx { opacity: .5; filter: blur(30px) saturate(1.1);
  background:
    radial-gradient(42% 46% at 20% 18%, var(--pb), transparent 62%),
    radial-gradient(40% 44% at 84% 84%, var(--accent), transparent 64%); }

/* SPLIT — bloco de cor diagonal + texto ao lado (esquerda). */
.mt-poster-split { color: #fff; text-align: left; justify-content: flex-start; background: var(--bg); }
.mt-poster-split .mt-poster-fx { background: var(--pb); clip-path: polygon(0 0, 62% 0, 46% 100%, 0 100%); }
.mt-poster-split .mt-poster-inner { align-items: flex-start; max-width: 58%; }
.mt-poster-split .mt-poster-cta { background: #fff; color: var(--pb); }

/* MINIMAL — fundo do tema, régua da marca, texto à esquerda. */
.mt-poster-minimal { color: var(--text); text-align: left; justify-content: flex-start; background: var(--bg); }
.mt-poster-minimal .mt-poster-inner { align-items: flex-start; border-left: .6cqmin solid var(--pb); padding-left: 6cqmin; }
.mt-poster-minimal .mt-poster-kicker { color: var(--pb); opacity: 1; }
.mt-poster-minimal .mt-poster-cta { background: var(--pb); color: #fff; }

/* ---------- Composição (editor tipo Canva) ----------
   Elementos posicionados em % da zona; escala pra qualquer formato. */
/* A zona recebe o fundo da peça; o PALCO carrega a proporção dela. Assim a
   peça nunca estica: ela cabe inteira e o fundo continua até a borda. */
.mt-comp { position: absolute; inset: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center; }
/* Sobra ao redor da peça: o próprio fundo dela, ampliado e desfocado. Repetir
   o fundo em tamanho diferente deixaria uma emenda onde os dois gradientes não
   batem — desfocado, a sobra lê como continuação. */
.mt-comp::before {
  content: ""; position: absolute; inset: 0;
  background: var(--peca-bg, transparent);
  background-size: cover; background-position: center;
  filter: blur(30px) saturate(1.1) brightness(.8);
  transform: scale(1.14);
  z-index: 0;
}
.mt-comp-fit, .mt-comp-palco > * { position: relative; z-index: 1; }
/* Encaixe: largura limitada pela largura da zona E pela altura dela vezes a
   proporção da peça. Empilhar width:100% com max-height NÃO funciona — o
   navegador respeita a largura e corta a altura, quebrando a proporção. Por
   isso a conta é explícita, em unidades de container da zona. */
.mt-comp-fit {
  --r: 1.7778;
  position: relative;
  width: min(100%, calc(100cqh * var(--r)));
  aspect-ratio: var(--r);
}
.mt-comp-palco {
  position: absolute; inset: 0; overflow: hidden;
  background-size: cover; background-position: center;
  /* container próprio: o cqw das fontes passa a medir a PEÇA, não a zona —
     é o que faz o corpo do texto bater com o que foi composto. */
  container-type: size;
}
.mt-comp-el { position: absolute; transform-origin: center center; will-change: transform; }
.mt-comp-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mt-comp-text { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  line-height: 1.08; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; color: var(--text);
  /* As quebras que a pessoa digitou (ou colou) valem: sem isto o texto de duas
     linhas virava uma linha só na TV, e só na TV. */
  white-space: pre-wrap; }

/* ---------- Decorações sazonais (camada sobre o palco) ---------- */
.mt-decor {
  position: fixed; inset: 0; z-index: 40;
  pointer-events: none; overflow: hidden;
}
.mt-particle { position: absolute; top: 0; width: var(--s); height: var(--s); will-change: transform; }
.mt-decor-snow .mt-particle {
  border-radius: 50%; background: rgba(255,255,255,.92);
  box-shadow: 0 0 6px rgba(255,255,255,.5);
  animation: mt-fall var(--dur) linear var(--delay) infinite;
}
.mt-decor-confetti .mt-particle {
  border-radius: 2px;
  animation: mt-fall var(--dur) linear var(--delay) infinite;
}
.mt-decor-fireworks .mt-particle {
  border-radius: 50%; box-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
  animation: mt-fall var(--dur) ease-in var(--delay) infinite;
}
.mt-decor-hearts .mt-particle,
.mt-decor-petals .mt-particle {
  line-height: 1; filter: drop-shadow(0 2px 5px rgba(0,0,0,.25));
  animation: mt-rise var(--dur) linear var(--delay) infinite;
}
@keyframes mt-fall {
  0% { transform: translate3d(0, -12vh, 0) rotate(0); opacity: 0; }
  8% { opacity: 1; } 92% { opacity: 1; }
  100% { transform: translate3d(var(--drift), 112vh, 0) rotate(var(--spin, 200deg)); opacity: 0; }
}
@keyframes mt-rise {
  0% { transform: translate3d(0, 112vh, 0) rotate(-8deg); opacity: 0; }
  12% { opacity: 1; } 88% { opacity: 1; }
  100% { transform: translate3d(var(--drift), -12vh, 0) rotate(8deg); opacity: 0; }
}
/* Guirlanda de bandeirinhas (festa junina) / luzes (Natal). */
.mt-garland {
  position: absolute; top: 0; left: -2%; width: 104%; height: 7vh;
  display: flex; justify-content: space-between; align-items: flex-start; padding: 0 1vw;
}
.mt-garland::before {
  content: ""; position: absolute; top: 1.2vh; left: 0; right: 0; height: 2px;
  background: rgba(255,255,255,.32); border-radius: 2px;
}
.mt-flag {
  width: 0; height: 0; background: transparent !important; margin-top: 1.2vh;
  border-left: 1.5vh solid transparent; border-right: 1.5vh solid transparent;
  border-top: 2.8vh solid currentColor;
  transform-origin: top center;
  animation: mt-sway 3s ease-in-out var(--delay) infinite alternate;
}
.mt-garland-lights { height: 4vh; }
.mt-light {
  width: 1.3vh; height: 1.3vh; border-radius: 50%; margin-top: .7vh;
  box-shadow: 0 0 8px currentColor, 0 0 16px currentColor;
  animation: mt-twinkle 1.6s ease-in-out var(--delay) infinite alternate;
}
@keyframes mt-sway { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
@keyframes mt-twinkle { from { opacity: .3; } to { opacity: 1; } }

/* ---------- Layout inteligente: takeover de prioridade ---------- */
.mt-takeover {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 4vh 4vw; opacity: 0;
  background: rgba(4, 7, 16, .55);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  backdrop-filter: blur(16px) saturate(1.1);
  transition: opacity .6s ease;
}
.mt-takeover.mt-in { opacity: 1; }
.mt-takeover.mt-out { opacity: 0; }
.mt-takeover-card {
  position: relative; overflow: hidden;
  width: 78vw; height: 74vh; max-width: 1400px;
  border-radius: 2.4vh; border: 1px solid var(--border);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
  container-type: size; background: var(--surface-solid);
  transform: scale(.92); opacity: 0;
  transition: transform .7s cubic-bezier(.16, .84, .3, 1), opacity .6s ease;
}
.mt-takeover.mt-in .mt-takeover-card { transform: scale(1); opacity: 1; }
.mt-takeover-card .mt-slide { position: absolute; inset: 0; opacity: 1; }
/* Urgente: quase tela cheia + moldura de alerta vermelha. */
.mt-takeover-urgente { background: rgba(30, 4, 8, .6); }
.mt-takeover-urgente .mt-takeover-card {
  width: 92vw; height: 82vh; border-color: rgba(239, 68, 68, .5);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .35), 0 40px 120px rgba(0, 0, 0, .65);
}
/* Destaque reforçado: vinheta vermelha que pulsa na entrada do aviso. */
.mt-takeover-urgente::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  animation: mt-urgent-flash 1s ease-out 2;
}
@keyframes mt-urgent-flash {
  0% { box-shadow: inset 0 0 22vh 5vh rgba(239, 68, 68, .6); }
  100% { box-shadow: inset 0 0 0 0 rgba(239, 68, 68, 0); }
}
.mt-takeover-alert {
  display: flex; align-items: center; gap: 1.2vw;
  font-size: 2.4vh; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: #fff; background: linear-gradient(90deg, #ef4444, #b91c1c);
  padding: 1.2vh 3vw; border-radius: 100px; margin-bottom: 2.4vh;
  box-shadow: 0 10px 30px rgba(239, 68, 68, .5);
  animation: mt-alert-pulse 1.4s ease-in-out infinite;
}
.mt-takeover-alert::before {
  content: ""; width: 1.4vh; height: 1.4vh; border-radius: 50%;
  background: #fff; box-shadow: 0 0 10px #fff;
}
@keyframes mt-alert-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }

/* Tipografia proporcional à zona (não à tela inteira).
   Em navegadores antigos sem suporte a cqw, valem os clamps em vw acima. */
@supports (width: 1cqw) {
  .mt-text-title { font-size: calc(clamp(22px, 6.5cqw, 88px) * var(--tscale, 1)); }
  .mt-text-body { font-size: calc(clamp(15px, 3.4cqw, 44px) * var(--tscale, 1)); }
  .mt-clock-time { font-size: clamp(36px, 14cqw, 150px); }
  .mt-clock-date { font-size: clamp(14px, 3.6cqw, 38px); }
  .mt-weather-icon { font-size: clamp(40px, 13cqw, 150px); }
  .mt-weather-temp { font-size: clamp(32px, 10cqw, 110px); }
  .mt-weather-city { font-size: clamp(14px, 3.6cqw, 38px); }
  .mt-birthday-title { font-size: clamp(18px, 7cqw, 54px); }
  .mt-birthday-row { font-size: clamp(13px, 4.6cqw, 32px); }
}

/* ---------- Splash de abertura premium ---------- */
.mt-overlay {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(80% 80% at 50% 40%, var(--bg-2) 0%, var(--bg) 70%);
  transition: opacity .9s ease, visibility .9s;
}
.mt-overlay::before {
  content: "";
  position: absolute; width: 60vw; height: 60vw; border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 62%);
  opacity: .5; filter: blur(40px);
  animation: mt-pulse 3.2s ease-in-out infinite;
}
.mt-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.mt-overlay-box { position: relative; text-align: center; animation: mt-rise 1s cubic-bezier(.16,.84,.3,1) both; }
.mt-logo {
  font-size: clamp(28px, 3.4vw, 64px); font-weight: 800; letter-spacing: .04em;
  background: linear-gradient(120deg, var(--text), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mt-overlay-hint {
  margin-top: .8em; color: var(--text-dim);
  font-size: clamp(12px, 1.2vw, 20px); letter-spacing: .18em; text-transform: uppercase;
}
.mt-overlay-bar {
  margin: 1.6em auto 0; width: clamp(120px, 14vw, 220px); height: 3px;
  border-radius: 3px; background: var(--border); overflow: hidden;
}
.mt-overlay-bar::after {
  content: ""; display: block; height: 100%; width: 40%;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  animation: mt-load 1.4s ease-in-out infinite;
}
@keyframes mt-pulse { 0%,100% { transform: scale(.9); opacity: .35; } 50% { transform: scale(1.1); opacity: .6; } }
@keyframes mt-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes mt-load { 0% { transform: translateX(-160%); } 100% { transform: translateX(360%); } }

/* ---------- Pareamento (modo nuvem) ---------- */
.mt-pairing {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(80% 80% at 50% 40%, var(--bg-2) 0%, var(--bg) 70%);
  text-align: center; padding: min(6vw, 4vh);
}
.mt-pairing.hidden { display: none; }
.mt-pairing-title { font-size: clamp(18px, 3vw, 40px); font-weight: 700; color: var(--text); }
.mt-pairing-code {
  margin: .5em 0 .3em;
  /* Pela altura também: com o QR embaixo, 16vw estourava a caixa em 720p
     (a resolução de boa parte dos TV box) e cortava o título. */
  font-size: clamp(48px, min(16vw, 20vh), 220px); font-weight: 800; letter-spacing: .12em;
  line-height: 1; font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, var(--text), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mt-pairing-qr {
  display: block; width: clamp(110px, min(16vw, 26vh), 260px); height: auto; aspect-ratio: 1;
  margin: 0 auto 1em; padding: .6em; border-radius: 12px; background: #fff;
}
.mt-pairing-qr[hidden] { display: none; }
.mt-pairing-hint { font-size: clamp(13px, 1.8vw, 26px); color: var(--text-dim); max-width: 32em; margin: 0 auto; }
/* Escape hatch: se este navegador já guardou uma TV, gera outra do zero. */
.mt-pairing-reset {
  margin-top: 1.6em; padding: .6em 1.2em; font: inherit;
  font-size: clamp(11px, 1.2vw, 16px); color: var(--text-dim);
  background: transparent; border: 1px solid currentColor; border-radius: 999px;
  opacity: .55; cursor: pointer; transition: opacity .2s;
}
.mt-pairing-reset:hover, .mt-pairing-reset:focus { opacity: 1; }

/* ---------- Modo leve (.mt-perf) ----------
 *
 * Ligado pelo js/perf.js quando a tela é uma TV ou quando a medição de quadros
 * mostra que ela não dá conta. Medido com CPU de TV a 1920x1080: 12 quadros
 * por segundo no modo completo, 60 aqui.
 *
 * A regra é uma só: NADA que obrigue o navegador a reamostrar pixels a cada
 * quadro. Desfoque (`filter: blur`) e vidro (`backdrop-filter`) são exatamente
 * isso, e numa GPU de TV custam mais que todo o resto da tela somado.
 *
 * O que fica: as cores, os gradientes, as sombras, as transições de transform
 * e opacidade. Continua sendo o mesmo produto — perde o vidro, não o acabamento.
 */
.mt-perf .mt-stage::before,
.mt-perf .mt-stage::after,
.mt-perf .mt-stage-fx { display: none; }
.mt-perf .mt-zone {
  -webkit-backdrop-filter: none; backdrop-filter: none;
  background: var(--surface-solid);
}
/* Vidro que sobrava em cima do conteúdo. Todos já têm cor de fundo própria —
   é só tirar o desfoque do que está atrás. */
.mt-perf .mt-takeover,
.mt-perf .mt-mural-legenda,
.mt-perf .mt-som-bloqueado {
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.mt-perf .mt-takeover { background: rgba(4, 7, 16, .88); }
/*
 * Sobra borrada atrás de foto e de peça: existe para a imagem caber inteira
 * sem deixar emenda. Sem o desfoque ela viraria uma cópia ampliada e nítida
 * por baixo — pior que o problema. Some, e fica a cor da zona.
 */
.mt-perf .mt-mural-foto::before,
.mt-perf .mt-comp::before { display: none; }
/*
 * Halos decorativos: aqui o desfoque é dispensável de verdade, porque o que
 * está por baixo já é gradiente radial — nasce macio. Tira o filtro e mantém
 * o visual.
 */
.mt-perf .mt-poster-aurora .mt-poster-fx,
.mt-perf .mt-overlay::before { filter: none; }
.mt-perf .mt-overlay::before { animation: none; }
/* A notícia entra subindo, e só. O desfoque de entrada custa um quadro cheio
   a cada troca de manchete. */
.mt-perf .mt-news-in { animation-name: mt-news-slide-leve; }
@keyframes mt-news-slide-leve {
  from { opacity: 0; transform: translateY(40%); }
  to { opacity: 1; transform: translateY(0); }
}

/* Trilha bloqueada pelo navegador. Aviso discreto e honesto: a TV não pode
 * simplesmente ligar o som sozinha, e fingir que ligou seria pior. Some no
 * primeiro toque em qualquer lugar da tela. */
.mt-som-bloqueado {
  position: fixed; right: 2vmin; bottom: 2vmin; z-index: 60;
  padding: .8vmin 1.6vmin; border-radius: 100px;
  background: rgba(0, 0, 0, .62); color: #fff;
  font: 500 clamp(11px, 1.5vmin, 20px)/1.2 inherit;
  backdrop-filter: blur(6px);
  animation: mt-som-pulsa 2.4s ease-in-out infinite;
}
@keyframes mt-som-pulsa { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }

/* A animação dos elementos da peça mora em css/animacao.css — fonte única,
   usada pelo player (player.html) e pelo palco do editor (web/src/index.css).
   Enquanto cada lado tinha a sua, a peça saía diferente aqui e lá, e a
   diferença só aparecia depois de publicada, na parede. */

/* O botão "gerar outro código" some quando a TV já está pareada:
   ali ele só serviria para desparear sem querer. */
.mt-pairing-reset.hidden { display: none; }

/* Selo da versão gratuita (teste acabado sem assinatura). Discreto, fora do
   caminho do conteúdo, e nunca captura clique nem foco. */
.mt-selo {
  position: fixed; right: 1.2vw; bottom: 1.2vw; z-index: 9000;
  padding: .35em .8em; border-radius: 999px;
  font: 600 clamp(10px, .9vw, 18px)/1.2 system-ui, sans-serif; letter-spacing: .02em;
  color: rgba(255,255,255,.92); background: rgba(10,14,28,.62);
  pointer-events: none; user-select: none;
}

/* ---------- TV em pé: moldura girada (ver conferirGiro em player.js) ---------- */
.mt-com-moldura, .mt-com-moldura body { background: #000; overflow: hidden; }
.mt-com-moldura body > *:not(.mt-moldura) { display: none !important; }
.mt-moldura {
  position: fixed; top: 50%; left: 50%; border: 0;
  width: 100vh; height: 100vw; /* as medidas da tela EM PÉ */
  transform: translate(-50%, -50%) rotate(90deg);
}
.mt-moldura-270 { transform: translate(-50%, -50%) rotate(-90deg); }

/* ---------- Tabela de preços (renderPrecos em js/render.js) ---------- */
.mt-precos { container-type: size; flex-direction: column; align-items: stretch; justify-content: center; padding: 6cqh 6cqw; }
.mt-precos-inner { width: 100%; }
.mt-precos-titulo {
  color: var(--accent); font-weight: 800; letter-spacing: .01em; line-height: 1.05;
  font-size: min(6.5cqw, 11cqh); margin-bottom: 3cqh;
}
.mt-precos-lista { column-count: var(--cols, 1); column-gap: 5cqw; font-size: var(--corpo); }
.mt-precos-linha {
  display: flex; align-items: baseline; gap: .6em; break-inside: avoid;
  padding: .3em 0; border-bottom: 1px solid color-mix(in srgb, var(--text) 13%, transparent);
}
.mt-precos-nome { flex: 1 1 auto; min-width: 0; color: var(--text); font-weight: 600; }
.mt-precos-preco { flex: none; color: var(--accent); font-weight: 800; font-variant-numeric: tabular-nums; }
.mt-precos-secao {
  break-inside: avoid; break-after: avoid; color: var(--text-dim); font-weight: 700;
  font-size: .7em; letter-spacing: .14em; text-transform: uppercase; padding: 1em 0 .25em;
}
.mt-precos-rodape { margin-top: 3cqh; color: var(--text-dim); font-size: calc(var(--corpo) * .75); }
@container (orientation: portrait) {
  .mt-precos-lista { column-count: var(--cols-pe, 1); font-size: var(--corpo-pe); }
  .mt-precos-rodape { font-size: calc(var(--corpo-pe) * .75); }
}
