/* Cena do topo (Pequenas Empresas e Studio Personal): estrela, brilho, feed animado e etiquetas com efeito de proximidade.
   Se a foto (img.palco-foto) carregar, ela substitui o feed. */
.hero-palco .container { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-palco .feixes { display: none; }
@media (min-width: 1001px) { .hero-palco h1 { font-size: clamp(40px, 4.3vw, 68px); max-width: none; } }
@media (max-width: 1000px) { .hero-palco .container { grid-template-columns: 1fr; } .palco { max-width: 520px; margin: 8px auto 0; } }

.palco { position: relative; width: 100%; aspect-ratio: 1; margin: 0; container-type: inline-size; }
.palco > * { position: absolute; margin: 0; }
.palco-grade { inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 7cqw 7cqw; background-position: 50% 50%;
  -webkit-mask-image: radial-gradient(55% 55% at 50% 50%, #000, transparent); mask-image: radial-gradient(55% 55% at 50% 50%, #000, transparent); }
.palco-estrela { z-index: 1; left: 8%; top: 8%; width: 84%; height: auto; animation: palco-estrela 5s cubic-bezier(.65, 0, .35, 1) infinite;
  translate: var(--mx, 0px) var(--my, 0px); }
.palco-brilho { z-index: 2; left: 4%; top: 4%; width: 92%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255,252,235,.9) 0, rgba(255,238,175,.55) 16%, rgba(253,205,70,.25) 36%, rgba(253,200,55,0) 66%);
  animation: palco-pulsa 5s ease-in-out infinite; }

/* feed: um celular com posts sendo publicados em sequência */
.palco-feed { z-index: 3; left: 27%; top: 9%; width: 46%; aspect-ratio: 9 / 18.5; box-sizing: border-box; padding: 3.2cqw 2.2cqw 2.2cqw;
  border-radius: 6cqw; background: #101010; border: .8cqw solid #262626; box-shadow: 0 4cqw 8cqw rgba(0,0,0,.55);
  display: grid; grid-template-rows: auto auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); gap: 2cqw; overflow: hidden; translate: var(--mx, 0px) var(--my, 0px); rotate: -4deg; }
.palco-perfil { display: flex; align-items: center; gap: 2cqw; }
.palco-avatar { flex: none; width: 7cqw; height: 7cqw; border-radius: 50%; background: var(--amarelo); box-shadow: 0 0 0 .6cqw #101010, 0 0 0 1cqw var(--amarelo); }
.palco-linhas { display: grid; gap: 1cqw; flex: 1; }
.palco-linhas i { display: block; height: 1.3cqw; border-radius: 1cqw; background: rgba(255,255,255,.22); }
.palco-linhas i:last-child { width: 60%; background: rgba(255,255,255,.12); }
.palco-destaques { display: flex; gap: 1.6cqw; }
.palco-destaques i { width: 5.4cqw; height: 5.4cqw; border-radius: 50%; border: .5cqw solid rgba(253,200,55,.55); }
.palco-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9cqw; align-content: start; min-height: 0; overflow: hidden; }
.palco-grid i { aspect-ratio: 4 / 5; border-radius: .9cqw; background: #222; animation: palco-post 6s cubic-bezier(.2, .9, .25, 1.2) infinite both; }
.palco-grid i:nth-child(3n+1) { background: var(--amarelo); }
.palco-grid i:nth-child(4n+2) { background: linear-gradient(160deg, #3a3a3a, #1b1b1b); }
.palco-grid i:nth-child(5) { background: #f4f1e8; }
.palco-grid i:nth-child(1) { animation-delay: 0s; }   .palco-grid i:nth-child(2) { animation-delay: .25s; } .palco-grid i:nth-child(3) { animation-delay: .5s; }
.palco-grid i:nth-child(4) { animation-delay: .75s; } .palco-grid i:nth-child(5) { animation-delay: 1s; }   .palco-grid i:nth-child(6) { animation-delay: 1.25s; }
.palco-grid i:nth-child(7) { animation-delay: 1.5s; } .palco-grid i:nth-child(8) { animation-delay: 1.75s; } .palco-grid i:nth-child(9) { animation-delay: 2s; }

.palco-foto { z-index: 4; left: 0; bottom: 0; width: 100%; height: auto; max-width: none; display: none; }
.palco.tem-foto .palco-foto { display: block; }
.palco.tem-foto .palco-feed { display: none; }

/* etiquetas */
.palco-card { z-index: 5; display: flex; align-items: center; gap: 2.2cqw; white-space: nowrap; box-sizing: border-box;
  padding: 2cqw 3.2cqw 2cqw 2cqw; border-radius: 1.6cqw; border: 1px solid rgba(255,255,255,.14);
  background: radial-gradient(55% 140% at 80% 100%, rgba(253,200,55,.28), rgba(253,200,55,0) 70%), rgba(20,20,20,.8);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1.4cqw 3.6cqw rgba(0,0,0,.45);
  font: 600 2.6cqw/1.15 var(--titulo); color: #fff;
  translate: var(--mx, 0px) var(--my, 0px); animation: palco-entra .9s cubic-bezier(.2, .9, .25, 1.25) both, palco-flutua 5s ease-in-out infinite; }
.palco-card small { display: block; font-weight: 400; font-size: .78em; color: rgba(255,255,255,.62); margin-top: .5cqw; }
.palco-ic { flex: none; display: grid; place-items: center; width: 4.6cqw; height: 4.6cqw; border-radius: 1cqw; background: var(--amarelo); color: #141414; }
.palco-ic svg { width: 62%; height: 62%; }
.cc1 { left: 0;   top: 22%; animation-delay: .2s, -1s; }
.cc2 { right: 0;  top: 40%; animation-delay: .45s, -2.6s; animation-duration: .9s, 5.6s; }
.cc3 { left: 4%;  top: 66%; animation-delay: .7s, -3.4s; animation-duration: .9s, 4.8s; }
.cc4 { right: 4%; top: 83%; animation-delay: .95s, -.4s; animation-duration: .9s, 6s; }

@keyframes palco-estrela { 0% { transform: rotate(0) scale(1); } 38% { transform: rotate(22deg) scale(1.04); } 55%, 100% { transform: rotate(30deg) scale(1); } }
@keyframes palco-pulsa { 0%, 100% { opacity: .75; transform: scale(.96); } 45% { opacity: 1; transform: scale(1.04); } }
@keyframes palco-post { 0% { opacity: 0; transform: scale(.6); } 8%, 86% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(.9); } }
@keyframes palco-entra { from { opacity: 0; transform: translateY(3cqw) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes palco-flutua { 0%, 100% { margin-top: 0; } 50% { margin-top: -1.2cqw; } }

@media (max-width: 1000px) { .palco-card { font-size: 3.4cqw; } .palco-ic { width: 5.6cqw; height: 5.6cqw; } }
@media (prefers-reduced-motion: reduce) { .palco-estrela, .palco-brilho, .palco-grid i, .palco-card { animation: none; } }
html[data-contrast] .palco-card { background: #181818; -webkit-backdrop-filter: none; backdrop-filter: none; border-color: rgba(255,255,255,.35); }
html[data-contrast] .palco-brilho { display: none; }
.palco-grid i:nth-child(10) { animation-delay: 2.25s; } .palco-grid i:nth-child(11) { animation-delay: 2.5s; } .palco-grid i:nth-child(12) { animation-delay: 2.75s; }

/* variante anúncio (Studio Personal): um story patrocinado */
.palco-anuncio { grid-template-rows: auto minmax(0, 1fr) auto; }
.palco-criativo { position: relative; border-radius: 2.4cqw; overflow: hidden; display: grid; align-content: end; gap: 1.4cqw; padding: 3cqw;
  background: radial-gradient(90% 70% at 70% 20%, rgba(253,200,55,.5), rgba(253,200,55,0) 70%), linear-gradient(170deg, #2b2b2b, #121212); }
.palco-criativo b { font: 800 13cqw/0.9 var(--titulo); color: var(--amarelo); letter-spacing: -.02em; animation: palco-jan 3.6s ease-in-out infinite; transform-origin: 0 100%; }
.palco-criativo i { display: block; height: 1.6cqw; border-radius: 1cqw; background: rgba(255,255,255,.75); }
.palco-criativo i:last-child { width: 62%; background: rgba(255,255,255,.35); }
.palco-halter { position: absolute; top: 3cqw; right: 3cqw; width: 9cqw; height: 9cqw; color: var(--amarelo); animation: palco-halter 3.6s ease-in-out infinite; }
.palco-halter svg { width: 100%; height: 100%; }
.palco-cta { display: flex; align-items: center; justify-content: space-between; gap: 2cqw; padding: 2cqw 2.4cqw; border-radius: 2cqw; background: var(--amarelo); }
.palco-cta i { display: block; height: 1.4cqw; width: 55%; border-radius: 1cqw; background: rgba(20,20,20,.75); }
.palco-cta span { width: 3.4cqw; height: 3.4cqw; border-radius: 50%; background: #141414; animation: palco-toque 1.8s ease-in-out infinite; }
@keyframes palco-jan { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes palco-halter { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg) translateY(-1cqw); } }
@keyframes palco-toque { 0%, 100% { box-shadow: 0 0 0 0 rgba(20,20,20,.45); } 50% { box-shadow: 0 0 0 1.4cqw rgba(20,20,20,0); } }
@media (prefers-reduced-motion: reduce) { .palco-criativo b, .palco-halter, .palco-cta span { animation: none; } }
