/* VEX CODE — vex ver · TV (20/11). Padrão Console: fundo #151515, texto #f0efec/#c3c2b7/#898781, cartão raio 12 com anel,
   botão raio 8, Inter em tudo. Sem azul, sem degradê, sem barra de rolagem visível. Tamanhos de TV (vista a 3 m).
   Desenvolvido por VEX CODE — https://vexcode.com.br */
@font-face { font-family: 'Inter'; src: url(/tv/inter.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
:root { --fundo: #151515; --cartao: #1c1c1b; --anel: rgba(255, 255, 255, .1); --texto: #f0efec; --sub: #c3c2b7; --apagado: #898781; --foco: #f0efec; }
* { box-sizing: border-box; }
html { scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
body { margin: 0; background: var(--fundo); color: var(--texto); font-family: 'Inter', system-ui, sans-serif; font-size: 22px; line-height: 1.4; }
[hidden] { display: none !important; }
.apagado { color: var(--apagado); }

/* código */
.tela-codigo { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 48px; }
.cartao-codigo { background: var(--cartao); border-radius: 12px; box-shadow: 0 0 0 1px var(--anel); padding: 48px 64px; text-align: center; max-width: 900px; }
.rotulo { font-size: 18px; font-weight: 600; color: var(--apagado); }
.cartao-codigo h1 { font-size: 40px; line-height: 50px; font-weight: 500; margin: 8px 0 8px; }
.sub { color: var(--sub); margin: 0 0 32px; }
.sub b { color: var(--texto); font-weight: 600; }
.numeros { font-size: 120px; line-height: 140px; font-weight: 600; letter-spacing: 16px; font-variant-numeric: tabular-nums; }
.cartao-codigo .apagado { margin: 16px 0 0; }

/* galeria */
.tela-galeria { padding: 32px 48px 64px; }
.barra { display: flex; align-items: center; gap: 32px; margin-bottom: 28px; }
.marca { font-size: 28px; font-weight: 500; }
.filtros { display: flex; gap: 4px; padding: 4px; border-radius: 12px; box-shadow: 0 0 0 1px var(--anel); background: var(--cartao); }
.filtro { height: 48px; padding: 0 22px; border: 0; border-radius: 8px; background: transparent; color: var(--sub); font: 500 22px 'Inter', system-ui, sans-serif; cursor: pointer; outline: none; }
.filtro.ativo { background: var(--texto); color: #151515; }
.filtro.focado { box-shadow: 0 0 0 3px var(--foco); }
#contagem { margin-left: auto; font-size: 20px; }
.grade { display: flex; flex-wrap: wrap; margin: -8px; }
.peca { position: relative; width: calc(20% - 16px); margin: 8px; padding-top: calc((20% - 16px) * .75); border-radius: 12px; overflow: hidden; background: var(--cartao); box-shadow: 0 0 0 1px var(--anel); cursor: pointer; transition: transform .12s ease-out; }
.peca img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.peca.focada { transform: scale(1.04); box-shadow: 0 0 0 4px var(--foco); z-index: 1; }
.duracao { position: absolute; right: 10px; bottom: 10px; padding: 2px 10px; border-radius: 8px; background: rgba(21, 21, 21, .85); color: var(--texto); font-size: 18px; font-weight: 500; }
.vazio { color: var(--apagado); text-align: center; margin-top: 80px; }

/* visor */
.visor { position: fixed; left: 0; top: 0; right: 0; bottom: 0; background: #0b0b0b; z-index: 10; }
.visor img, .visor video { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: contain; }
.visor-recado { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; padding: 16px 24px; border-radius: 12px; background: var(--cartao); box-shadow: 0 0 0 1px var(--anel); color: var(--sub); }
.visor-dica { position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%); margin: 0; padding: 10px 20px; border-radius: 8px; background: rgba(21, 21, 21, .85); color: var(--sub); font-size: 18px; white-space: nowrap; transition: opacity .4s; }
.visor-dica.sumiu { opacity: 0; }

.aviso { position: fixed; left: 50%; top: 24px; transform: translateX(-50%); margin: 0; padding: 12px 20px; border-radius: 12px; background: var(--cartao); box-shadow: 0 0 0 1px var(--anel); color: var(--texto); z-index: 20; }
