/* Cena 2.0 · espectro (base clara) + flyer riso (tinta e cor de festa) + mixer (visor, LEDs)
   Dia = claro. Noite (22h às 6h) ou check-in = Modo pista (escuro). */
:root {
  --papel: #FFFFFF;        /* fundo: neutro, a cor vem da arte */
  --sup: #FFFFFF;          /* superfícies */
  --sup-2: #F4F4F1;        /* superfície recuada, chips */
  --tinta: #111111;        /* texto e traço */
  --tinta-2: #555555;
  --tinta-3: #6E6E6E;
  --linha: #E6E6E1;
  --sinal: #FF4F1F;        /* laranja do sequenciador: ação, LED */
  --sinal-txt: #FFFFFF;
  --vivo: #19C26B;         /* LED ao vivo */
  --erro: #E5383B;
  /* régua do espectro: graves → agudos = cor de cada gênero */
  --g-techno: #2F5BFF; --g-melodic: #12B5A6; --g-psytrance: #5FC23A; --g-house: #FFAA1F;
  --g-afro-house: #F2C230; --g-tech-house: #FF6A2A; --g-dnb: #FF3D5A; --g-trance: #9C5CFF;
  --espectro: linear-gradient(90deg, #2F5BFF, #12B5A6, #5FC23A, #F2C230, #FFAA1F, #FF6A2A, #FF3D5A);
  --t-larga: "Archivo", system-ui, sans-serif;
  --t-visor: "Chakra Petch", ui-monospace, sans-serif;
  --r-s: 10px; --r-m: 16px; --r-l: 24px;
  --barra: 72px;
  color-scheme: light;
}
:root[data-modo="pista"] {
  --papel: #0B0C10; --sup: #15171D; --sup-2: #1F222A; --tinta: #F2F2EE; --tinta-2: #B4B5BC; --tinta-3: #7C7E87;
  --linha: #262932; --sinal-txt: #0B0C10; color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--papel); color: var(--tinta); font-family: var(--t-larga); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; transition: background .3s, color .3s; }
img, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sinal); outline-offset: 2px; border-radius: 6px; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* tipografia */
.larga { font-variation-settings: "wdth" 112; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.visor { font-family: var(--t-visor); font-weight: 600; letter-spacing: .02em; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
.titulo-tela { font-size: clamp(30px, 7vw, 48px); margin: 10px 0 4px; }
.sub-tela { color: var(--tinta-2); margin: 0 0 16px; max-width: 46ch; }
.secao { margin-top: 28px; }
.secao-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.secao-cab h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.secao-cab h2 .conta { font: 700 13px var(--t-visor); color: var(--tinta-3); margin-left: 4px; }
.link, .secao-cab a { color: var(--tinta-2); font-weight: 700; font-size: 13px; text-decoration: none; background: none; border: 0; cursor: pointer; padding: 0; }
.muted { color: var(--tinta-2); }
.fraco { color: var(--tinta-3); font-size: 14px; }

/* app */
.app { max-width: 560px; margin: 0 auto; min-height: 100dvh; padding-bottom: calc(var(--barra) + env(safe-area-inset-bottom)); }
.topo { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: color-mix(in srgb, var(--papel) 90%, transparent); backdrop-filter: blur(14px); }
.marca { font-family: var(--t-larga); font-variation-settings: "wdth" 125; font-weight: 900; font-size: 30px; letter-spacing: -0.04em; text-decoration: none; line-height: 1; display: inline-flex; align-items: baseline; }
.marca i { font-style: normal; width: 9px; height: 9px; border-radius: 50%; background: var(--sinal); margin-left: 3px; box-shadow: 0 0 10px var(--sinal); align-self: flex-end; margin-bottom: 5px; }
.topo-acoes { display: flex; gap: 8px; align-items: center; }
.lcd { font-family: var(--t-visor); font-weight: 700; font-size: 12px; padding: 7px 11px; border-radius: 999px; background: var(--sup-2); color: var(--tinta); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; text-decoration: none; }
.led { width: 7px; height: 7px; border-radius: 50%; background: var(--vivo); box-shadow: 0 0 8px var(--vivo); flex: none; }
.led.off { background: var(--tinta-3); box-shadow: none; }
.icone-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; cursor: pointer; position: relative; color: var(--tinta); }
.bolinha { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--sinal); color: #fff; font: 700 10px var(--t-visor); display: grid; place-items: center; }

/* navegação: indicador é um LED do mixer */
.abas { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--sup) 94%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--linha); }
.abas a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; text-decoration: none; color: var(--tinta); position: relative; }
.abas a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.abas a svg { width: 27px; height: 27px; stroke-width: 1.7; }
.abas a.ativa svg { stroke-width: 2.7; }
.abas a.ativa { color: var(--tinta); }
.abas .btn-postar { justify-self: center; width: 48px; height: 48px; border: 0; background: none; color: var(--tinta); display: grid; place-items: center; cursor: pointer; }
.abas .btn-postar svg { width: 28px; height: 28px; stroke-width: 1.7; }
.abas .marca-lateral, .abas .lateral-extra, .abas .postar-lateral { display: none; }

main { padding: 2px 16px 28px; outline: none; }

/* botões e chips */
.btn { border: 0; border-radius: 999px; padding: 11px 18px; font-weight: 800; cursor: pointer; background: var(--tinta); color: var(--papel); font-size: 15px; display: inline-flex; align-items: center; gap: 8px; justify-content: center; text-decoration: none; }
.btn.sinal { background: var(--sinal); color: #fff; }
.btn.sec { background: var(--sup-2); color: var(--tinta); }
.btn.contorno { background: transparent; color: var(--tinta); box-shadow: inset 0 0 0 2px var(--tinta); }
.btn.pequeno { padding: 7px 14px; font-size: 14px; }
.btn.ligado { background: var(--sup-2); color: var(--tinta); box-shadow: inset 0 0 0 2px var(--tinta); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn.largo { width: 100%; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 4px; margin: 0 -16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 0; background: var(--sup-2); color: var(--tinta); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--tinta); color: var(--papel); box-shadow: none; }
.seg { display: flex; gap: 4px; background: var(--sup-2); padding: 4px; border-radius: 999px; width: fit-content; }
.seg button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: 14px; cursor: pointer; color: var(--tinta-2); }
.seg button[aria-pressed="true"] { background: var(--sup); color: var(--tinta); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

/* avatar */
.av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #fff; flex: none; overflow: hidden; font-size: 16px; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.p { width: 32px; height: 32px; font-size: 13px; }
.av.g { width: 88px; height: 88px; font-size: 36px; }

/* momentos (stories): aro com a régua do espectro, ou cor do gênero */
.momentos { display: flex; gap: 12px; overflow-x: auto; padding: 6px 16px 10px; margin: 0 -16px; scrollbar-width: none; }
.momentos::-webkit-scrollbar { display: none; }
.momento-bolha { flex: none; width: 70px; text-align: center; font-size: 12px; font-weight: 500; background: none; border: 0; padding: 0; cursor: pointer; }
.momento-bolha .aro { width: 70px; height: 70px; border-radius: 50%; padding: 3px; background: var(--sinal); margin-bottom: 4px; }
.momento-bolha .aro.visto { background: #D6D6D0; padding: 2px; }
.momento-bolha .aro .av { width: 100%; height: 100%; border: 3px solid var(--papel); font-size: 22px; }
.momento-bolha span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.momento-bolha.novo .aro { background: var(--sup-2); }
.momento-bolha.novo .aro .av { background: var(--sup) !important; color: var(--tinta); }

/* post */
.post { background: var(--sup); border-radius: var(--r-m); margin-bottom: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--linha); }
.post-cab { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.post-cab .quem { flex: 1; min-width: 0; line-height: 1.25; }
.post-cab .quem b { font-weight: 800; }
.post-cab a { text-decoration: none; }
.post-cab .ctx { font-size: 13px; color: var(--tinta-2); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-cab .ctx a { font-weight: 700; color: var(--tinta); }
.post-cab time { font-size: 13px; color: var(--tinta-3); white-space: nowrap; }
.post-midia { background: var(--sup-2); position: relative; }
.post-midia img, .post-midia video { width: 100%; max-height: 640px; object-fit: cover; }
.post-texto { padding: 0 14px 4px; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-midia + .post-texto { padding-top: 10px; }
.post-acoes { display: flex; gap: 6px; padding: 10px 14px 12px; flex-wrap: wrap; align-items: center; }
.reac { border: 0; background: var(--sup-2); border-radius: 999px; padding: 6px 11px; font-weight: 800; font-size: 14px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.reac.on { background: var(--tinta); color: var(--papel); }
.reac .n { font-family: var(--t-visor); }
.tag-tid { background: var(--sinal); color: #fff; font-weight: 800; font-size: 13px; padding: 5px 10px; border-radius: 999px; }
.tag-tid.ok { background: var(--vivo); }
/* carimbo de check-in */
.carimbo-checkin { margin: 2px 14px 10px; border: 3px solid var(--tinta); border-radius: 14px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; transform: rotate(-1.2deg); }
.carimbo-checkin .visor { font-size: 26px; line-height: 1; }
.carimbo-checkin b { display: block; text-transform: uppercase; font-variation-settings: "wdth" 115; font-weight: 900; }

/* festa: card em linha (como lista do Spotify). A cor vem do flyer, não do fundo */
.festa { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 0; cursor: pointer; text-decoration: none; border-radius: 12px; }
.festa:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.festa-img { position: relative; width: 88px; height: 88px; border-radius: 12px; overflow: hidden; background: var(--sup-2); }
.festa-img img { width: 100%; height: 100%; object-fit: cover; }
.festa-dia { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font: 700 30px/0.9 var(--t-visor); color: var(--tinta-3); }
.festa-dia small { font-size: 12px; text-transform: uppercase; }
.festa-img img + .festa-dia { display: none; }
.festa-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.festa-quando { font: 700 12px var(--t-visor); letter-spacing: .03em; color: var(--tinta-2); display: flex; align-items: center; gap: 8px; }
.festa-quando .hoje { font-style: normal; color: #fff; background: var(--sinal); border-radius: 4px; padding: 1px 5px; font-size: 11px; }
.festa h3 { font-size: 16px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.festa-onde { font-size: 13px; color: var(--tinta-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.festa-meta { font-size: 13px; color: var(--tinta-2); display: flex; align-items: center; flex-wrap: wrap; gap: 0 6px; margin-top: 2px; }
.festa-meta .sep { color: var(--tinta-3); }
.festa-meta .st { color: var(--tinta); font-weight: 700; }
.festa-meta .quem { display: inline-flex; align-items: center; gap: 6px; color: var(--tinta); font-weight: 600; }
.ponto-gen { border-radius: 50% !important; }
/* festa: capa vertical para prateleiras */
.prateleira { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; padding: 0 16px 4px; margin: 0 -16px; scrollbar-width: none; }
.prateleira::-webkit-scrollbar { display: none; }
.festa-capa { flex: none; width: 200px; scroll-snap-align: start; cursor: pointer; }
.festa-capa .capa { position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--sup-2); margin-bottom: 8px; }
.festa-capa .capa img { width: 100%; height: 100%; object-fit: cover; }
.capa-data { position: absolute; left: 8px; top: 8px; background: #fff; color: #111; border-radius: 6px; padding: 3px 7px; font: 700 11px var(--t-visor); }
.capa-crew { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.6); color: #fff; border-radius: 999px; padding: 3px 9px 3px 4px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; backdrop-filter: blur(6px); }
.festa-capa h3 { font-size: 15px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.festa-capa > span { display: block; font-size: 13px; color: var(--tinta-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.cab-tela { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lcd-mini { font: 700 12px var(--t-visor); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.mes-cab { font: 700 13px var(--t-visor); text-transform: uppercase; letter-spacing: .06em; color: var(--tinta-3); margin: 14px 0 0; }
/* página da festa */
.ev-hero { margin: 56px -4px 0; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--sup-2); }
.ev-hero img { width: 100%; height: 100%; object-fit: cover; }
.ev-quando { margin-top: 16px; }
.ev-titulo { font-size: 26px; font-weight: 800; font-variation-settings: "wdth" 108; letter-spacing: -0.02em; line-height: 1.1; margin: 4px 0 0; overflow-wrap: anywhere; }
.ev-onde { margin: 6px 0 0; color: var(--tinta-2); font-size: 15px; }
.crew-faixa { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--sup-2); font-size: 14px; line-height: 1.35; }
.amigos-mini { display: inline-flex; align-items: center; }
.amigos-mini .av { width: 22px; height: 22px; font-size: 10px; border: 2px solid var(--sup); margin-left: -7px; }
.amigos-mini .av:first-child { margin-left: 0; }
.amigos-mini span { margin-left: 6px; font-size: 13px; font-weight: 700; }

/* cartões menores do feed */
.card-lanc { display: flex; gap: 12px; align-items: center; background: var(--sup); border-radius: var(--r-m); padding: 12px; margin-bottom: 14px; text-decoration: none; box-shadow: inset 0 0 0 1px var(--linha); }
.card-lanc img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; }
.card-lanc .info { flex: 1; min-width: 0; }
.card-lanc .info b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-lanc .info span { font-size: 14px; color: var(--tinta-2); }
.etiqueta { font: 700 11px var(--t-visor); text-transform: uppercase; letter-spacing: .06em; color: var(--sinal); display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.noticia { display: grid; grid-template-columns: 1fr 88px; gap: 12px; background: var(--sup); border-radius: var(--r-m); padding: 12px; margin-bottom: 14px; text-decoration: none; box-shadow: inset 0 0 0 1px var(--linha); }
.noticia h3 { font-size: 16px; font-weight: 800; line-height: 1.25; }
.noticia .meta { margin-top: 6px; font-size: 13px; color: var(--tinta-3); }
.noticia img { width: 88px; height: 88px; border-radius: 8px; object-fit: cover; }
.noticia.sem-img { grid-template-columns: 1fr; }

/* descobrir */
.busca { width: 100%; border: 0; background: var(--sup); border-radius: 999px; padding: 13px 18px; font-size: 16px; box-shadow: inset 0 0 0 1px var(--linha); }
.busca::placeholder { color: var(--tinta-3); }
.grade-artistas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 12px; }
.artista { cursor: pointer; background: none; border: 0; padding: 0; text-align: center; }
.artista .foto { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--sup-2); box-shadow: inset 0 0 0 1px var(--linha); }
.artista .foto img { width: 100%; height: 100%; object-fit: cover; }
.artista b { display: block; margin-top: 8px; font-size: 15px; line-height: 1.2; }
.artista .det { display: block; font-size: 12px; color: var(--tinta-2); }
.artista.segue .foto { box-shadow: 0 0 0 3px var(--papel), 0 0 0 5px var(--sinal); }
.ponto-gen { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; vertical-align: 1px; }
.faixa-rank { display: grid; grid-template-columns: 34px 52px 1fr 40px; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--linha); }
.faixa-rank .pos { font: 700 22px var(--t-visor); text-align: right; color: var(--tinta-3); }
.faixa-rank.top .pos { color: var(--sinal); }
.faixa-rank img { width: 52px; height: 52px; border-radius: 6px; object-fit: cover; background: var(--sup-2); }
.faixa-rank b, .faixa-rank span.sub { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.faixa-rank span.sub { font-size: 14px; color: var(--tinta-2); }
.var { font: 700 12px var(--t-visor); margin-left: 6px; }
.var.sobe { color: var(--vivo); } .var.desce { color: var(--erro); } .var.novo { color: var(--sinal); }
.play { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--sup-2); display: grid; place-items: center; cursor: pointer; color: var(--tinta); }
.play svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.play.tocando { background: var(--sinal); color: #fff; }
/* equalizador: o único movimento contínuo do app, só quando algo toca */
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; background: currentColor; animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .2s; } .eq i:nth-child(3) { animation-delay: .4s; } .eq i:nth-child(4) { animation-delay: .1s; }
@keyframes eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }
.creditos { margin-top: 16px; font-size: 13px; color: var(--tinta-3); }
.linha-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linha); background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; cursor: pointer; }
.linha-item .info { flex: 1; min-width: 0; }
.linha-item b { display: block; font-weight: 800; }
.linha-item span { font-size: 14px; color: var(--tinta-2); }
.marca-tribo { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-weight: 900; font-size: 20px; color: #0A0A0A; flex: none; box-shadow: inset 0 0 0 2px #0A0A0A; }
.selo-local { width: 50px; height: 50px; border-radius: 14px; background: var(--tinta); color: var(--papel); display: grid; place-items: center; font: 700 18px var(--t-visor); flex: none; }

/* perfil */
.perfil-cab { display: flex; gap: 16px; align-items: center; margin-top: 8px; }
.perfil-cab h2 { font-size: 28px; }
.numeros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.numeros div { background: var(--sup); border-radius: 12px; padding: 10px; box-shadow: inset 0 0 0 1px var(--linha); }
.numeros b { display: block; font: 700 24px var(--t-visor); }
.numeros span { font-size: 12px; color: var(--tinta-2); }
.favoritos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.favoritos .artista b { font-size: 13px; }
.fav-vazio { aspect-ratio: 1; border-radius: 50%; border: 2px dashed var(--linha); display: grid; place-items: center; color: var(--tinta-3); font-size: 22px; background: none; cursor: pointer; width: 100%; }
.passaporte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.carimbo { --cor: var(--g-techno); aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--cor); color: var(--cor); display: grid; place-items: center; text-align: center; padding: 18px; transform: rotate(var(--giro, -6deg)); }
.carimbo b { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 11px; font-variation-settings: "wdth" 112; font-weight: 900; text-transform: uppercase; line-height: 1.05; }
.carimbo span { font: 700 13px var(--t-visor); display: block; margin-top: 4px; }
.carimbo.vazio { border-style: dashed; border-color: var(--linha); color: var(--tinta-3); }
.selos { display: flex; gap: 8px; flex-wrap: wrap; }
.selo-conquista { display: inline-flex; gap: 8px; align-items: center; background: var(--sup); border-radius: 12px; padding: 8px 12px; box-shadow: inset 0 0 0 1px var(--linha); font-weight: 700; font-size: 14px; }
.selo-conquista .led { width: 9px; height: 9px; }
.selo-conquista.bloq { opacity: .45; }
.selo-conquista.bloq .led { background: var(--tinta-3); box-shadow: none; }
.grade-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.grade-posts button { aspect-ratio: 1; border: 0; padding: 0; background: var(--sup-2); cursor: pointer; overflow: hidden; position: relative; }
.grade-posts img, .grade-posts video { width: 100%; height: 100%; object-fit: cover; }
.grade-posts .txt { padding: 8px; font-size: 12px; text-align: left; height: 100%; overflow: hidden; color: var(--tinta-2); }

/* folha (detalhe) */
.folha-fundo { position: fixed; inset: 0; background: rgba(10, 10, 10, .45); z-index: 40; }
.folha { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 41; width: 100%; max-width: 560px; max-height: 94dvh; overflow-y: auto; background: var(--papel); border-radius: var(--r-l) var(--r-l) 0 0; padding-bottom: env(safe-area-inset-bottom); animation: sobe .26s cubic-bezier(.2,.8,.2,1); }
@keyframes sobe { from { transform: translate(-50%, 40px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.folha-fechar { position: sticky; top: 10px; margin: 10px 10px 0 auto; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--sup); box-shadow: inset 0 0 0 1px var(--linha); display: grid; place-items: center; cursor: pointer; float: right; color: var(--tinta); }
.folha-corpo { padding: 0 16px 32px; clear: both; }
.capa-artista { margin: -58px -16px 0; aspect-ratio: 1.25; position: relative; overflow: hidden; background: var(--sup-2); }
.capa-artista img { width: 100%; height: 100%; object-fit: cover; }
.capa-artista::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, var(--papel)); }
.capa-artista h2 { position: absolute; left: 16px; right: 16px; bottom: 6px; z-index: 1; font-size: 46px; }
.embed { border: 0; width: 100%; border-radius: 12px; margin-top: 14px; }
.lanc { display: flex; gap: 12px; align-items: center; padding: 8px 0; text-decoration: none; }
.lanc img { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; }
.lanc b { display: block; } .lanc span { font-size: 14px; color: var(--tinta-2); }
.comentario { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--linha); }
.comentario p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.escrever { display: flex; gap: 8px; align-items: flex-end; position: sticky; bottom: 0; background: var(--papel); padding: 10px 0; }
.escrever textarea { flex: 1; border: 0; border-radius: 18px; background: var(--sup); box-shadow: inset 0 0 0 1px var(--linha); padding: 10px 14px; resize: none; min-height: 44px; max-height: 140px; }

/* formulários */
.campo { display: block; margin-bottom: 14px; }
.campo > span { display: block; font-size: 14px; font-weight: 700; color: var(--tinta-2); margin-bottom: 6px; }
.campo input, .campo select, .campo textarea { width: 100%; border: 0; border-radius: var(--r-s); background: var(--sup); padding: 12px 14px; font-size: 16px; box-shadow: inset 0 0 0 1px var(--linha); }
.campo textarea { min-height: 96px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--tinta-2); margin-bottom: 14px; }
.check input { width: 20px; height: 20px; accent-color: var(--sinal); flex: none; margin-top: 1px; }
.erro { color: var(--erro); font-size: 14px; margin: -4px 0 12px; }
.troca { margin-top: 14px; text-align: center; color: var(--tinta-2); font-size: 15px; }
.pref { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--linha); gap: 12px; }
.pref input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--sinal); flex: none; }
.caixa { background: var(--sup); border-radius: var(--r-m); padding: 16px; margin-top: 16px; box-shadow: inset 0 0 0 1px var(--linha); }
.caixa p { margin: 0 0 12px; color: var(--tinta-2); }
.caixa.ok { color: var(--vivo); font-weight: 700; }

/* compor */
.tipos-post { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 8px; }
.tipo-post { border: 0; text-align: left; background: var(--sup); border-radius: var(--r-m); padding: 16px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--linha); }
.tipo-post b { display: block; font-size: 17px; font-weight: 900; font-variation-settings: "wdth" 112; text-transform: uppercase; }
.tipo-post span { font-size: 13px; color: var(--tinta-2); }
.tipo-post .cor { width: 28px; height: 6px; border-radius: 3px; margin-bottom: 10px; }
.previa-midia { position: relative; border-radius: var(--r-m); overflow: hidden; margin-bottom: 12px; background: var(--sup-2); }
.previa-midia img, .previa-midia video { width: 100%; max-height: 360px; object-fit: cover; }
.previa-midia button { position: absolute; top: 8px; right: 8px; }
.escolher-midia { display: flex; gap: 10px; align-items: center; justify-content: center; border: 2px dashed var(--linha); border-radius: var(--r-m); padding: 22px; cursor: pointer; font-weight: 800; margin-bottom: 12px; color: var(--tinta-2); }
.notas { display: flex; gap: 6px; }
.notas button { width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--sup-2); font: 700 16px var(--t-visor); cursor: pointer; }
.notas button[aria-pressed="true"] { background: var(--sinal); color: #fff; }

/* visualizador de momentos: progresso em passos de sequenciador */
.visor-momento { position: fixed; inset: 0; z-index: 60; background: #000; color: #fff; display: flex; flex-direction: column; }
.visor-momento .passos { display: flex; gap: 4px; padding: calc(10px + env(safe-area-inset-top)) 10px 0; }
.visor-momento .passos i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.3); overflow: hidden; }
.visor-momento .passos i b { display: block; height: 100%; width: 0; background: var(--sinal); }
.visor-momento .passos i.feito b { width: 100%; }
.visor-momento .cab { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.visor-momento .cab .quem { flex: 1; line-height: 1.2; } .visor-momento .cab small { opacity: .75; }
.visor-momento .palco { flex: 1; position: relative; display: grid; place-items: center; overflow: hidden; }
.visor-momento .palco img, .visor-momento .palco video { max-width: 100%; max-height: 100%; object-fit: contain; }
.visor-momento .palco .so-texto { font-size: 30px; font-weight: 900; font-variation-settings: "wdth" 118; text-transform: uppercase; padding: 24px; text-align: center; line-height: 1; }
.visor-momento .legenda { padding: 12px 16px calc(18px + env(safe-area-inset-bottom)); }
.visor-momento .toque { position: absolute; top: 0; bottom: 0; width: 35%; z-index: 2; background: none; border: 0; cursor: pointer; }
.visor-momento .toque.ant { left: 0; } .visor-momento .toque.prox { right: 0; }
.visor-momento .fechar { background: none; border: 0; color: #fff; cursor: pointer; }

.carregando { color: var(--tinta-3); padding: 28px 0; text-align: center; }
.vazio { background: var(--sup); border-radius: var(--r-m); padding: 20px; box-shadow: inset 0 0 0 1px var(--linha); }
.vazio h3 { font-size: 19px; margin-bottom: 6px; } .vazio p { margin: 0 0 14px; color: var(--tinta-2); }
.toast { position: fixed; left: 50%; bottom: calc(var(--barra) + 16px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--tinta); color: var(--papel); padding: 11px 18px; border-radius: 999px; font-weight: 700; font-size: 15px; opacity: 0; pointer-events: none; transition: .2s; z-index: 80; max-width: calc(100% - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.trilho { display: none; }

/* ── SITE (computador) ── */
@media (min-width: 1024px) {
  .app { max-width: none; margin: 0; padding-bottom: 0; display: grid; grid-template-columns: 264px minmax(0, 1fr); }
  .topo { display: none; }
  .abas { position: sticky; top: 0; left: auto; transform: none; width: auto; max-width: none; height: 100dvh; grid-column: 1; grid-row: 1; display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 28px 18px 20px; background: var(--sup); backdrop-filter: none; border-top: 0; border-right: 1px solid var(--linha); }
  .abas .marca-lateral { display: inline-flex; flex-direction: row; font-size: 46px; padding: 0 12px 26px; color: var(--tinta); }
  .abas .marca-lateral::before { display: none; }
  .abas a[data-aba] { flex-direction: row; gap: 14px; padding: 12px 14px; border-radius: 12px; font-size: 17px; font-weight: 800; color: var(--tinta-2); }
  .abas a[data-aba]::before { position: absolute; left: 0; width: 3px; height: 20px; margin: 0; }
  .abas a[data-aba]:hover { background: var(--papel); color: var(--tinta); }
  .abas a.ativa { background: var(--papel); color: var(--tinta); }
  .abas .btn-postar { display: none; }
  .abas .postar-lateral { display: inline-flex; margin: 16px 0 0; padding: 13px 18px; }
  .abas .lateral-extra { display: flex; flex-direction: column; gap: 2px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--linha); }
  .abas .lateral-extra a { flex-direction: row; font-size: 16px; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; text-decoration: none; font-weight: 800; color: var(--tinta-2); position: relative; }
  .abas .lateral-extra a:hover { background: var(--papel); color: var(--tinta); }
  .abas .lateral-extra a::before { display: none; }
  .abas .lateral-extra a.lcd { margin: 10px 0 0; justify-content: center; color: var(--papel); font-size: 13px; padding: 9px 10px; }
  .abas .lateral-extra .bolinha { position: static; margin-left: auto; }
  main { grid-column: 2; grid-row: 1; padding: 32px clamp(28px, 3vw, 56px) 64px; min-width: 0; }
  .titulo-tela { margin-top: 0; }
  .sub-tela { font-size: 17px; max-width: 64ch; }
  /* feed: coluna de leitura + trilho que cresce com a tela */
  .com-trilho { display: grid; grid-template-columns: minmax(0, 700px) minmax(320px, 1fr); gap: clamp(28px, 3vw, 56px); align-items: start; }
  .trilho { display: block; position: sticky; top: 24px; max-height: calc(100dvh - 48px); overflow-y: auto; scrollbar-width: thin; padding-right: 4px; }
  .trilho .lista-flyers { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); column-gap: 16px; }
  .chips, .momentos { margin: 0; padding-left: 0; padding-right: 0; }
  .grade-artistas { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 28px 20px; }
  .grade-flyers { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); column-gap: 18px; }
  .ranking-lista { columns: 2 420px; column-gap: 48px; }
  .ranking-lista .faixa-rank { break-inside: avoid; }
  .tribos-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); column-gap: 36px; }
  .busca { max-width: 640px; }
  /* perfil em duas colunas */
  .perfil-grade { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
  .perfil-grade .col-a { position: sticky; top: 24px; }
  .perfil-grade .passaporte { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .perfil-grade .grade-posts { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .folha { left: auto; right: 0; top: 0; bottom: 0; transform: none; width: min(620px, 46vw); max-width: 100vw; max-height: none; border-radius: var(--r-l) 0 0 var(--r-l); animation: entra .26s cubic-bezier(.2,.8,.2,1); box-shadow: -1px 0 0 var(--linha), -24px 0 60px rgba(0,0,0,.12); }
  .folha .perfil-grade { display: block; } .folha .perfil-grade .col-a { position: static; }
  @keyframes entra { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .toast { bottom: 28px; left: calc(50% + 132px); }
  .tipos-post { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1600px) { .titulo-tela { font-size: 64px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* modo demo */
.faixa-demo { z-index: 28 !important; position: fixed; bottom: calc(var(--barra) + 10px + env(safe-area-inset-bottom)); right: 10px; z-index: 60; display: flex; align-items: center; gap: 6px; padding: 5px 5px 5px 12px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.25); background: #111; color: #fff; font-size: 12px; white-space: nowrap; }
.faixa-demo button { border: 0; border-radius: 999px; padding: 5px 10px; font: 700 12px var(--t-larga); cursor: pointer; background: #2a2a2a; color: #fff; }
.faixa-demo [data-sair-demo] { background: var(--sinal); color: #111; }
