/* Views ao vivo (views.js). Identidade v4: roxo em bloco sólido, verde-limão
   só na ação principal, números grandes em Bricolage condensada. */

.vw-host { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.vw-rolagem { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 140px; }
.vw { max-width: 760px; margin: 0 auto; padding: 18px 24px 0; position: relative; color: var(--ink); }
.vw-carregando { flex: 1; }

.vw-ic { fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* --------------------------------------------------------- entradas */
.vw-lado { display: flex; align-items: center; gap: 10px; }
.vw-lado .vw-pulso { margin: 0 3px; }
.vw-lado-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; text-align: left; }
.vw-lado-txt b { font-weight: 600; }
.vw-lado-txt small, .vw-lado-seta { display: none; }
.vw-lado.on { background: var(--accent-wash); color: var(--ink); }

.vw-pulso {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ink); flex: none; display: inline-block;
  animation: vw-pulsa 1.6s ease-in-out infinite;
}
.vw-lado .vw-pulso, .vw-pulso.roxo, .vw-ini .vw-pulso { background: var(--accent); }
@keyframes vw-pulsa { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.vw-ini {
  display: flex; align-items: center; gap: 14px; width: 100%; margin: 18px 0 4px; padding: 16px 18px;
  border: 0; border-radius: var(--r-2xl); background: var(--accent); color: var(--accent-ink);
  text-align: left; cursor: pointer; font: inherit;
}
.vw-ini .vw-pulso { background: var(--ink); }
.vw-ini-txt { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.vw-ini-txt b { font: 800 condensed 26px/1 var(--font-display); letter-spacing: -.01em; text-transform: uppercase; }
.vw-ini-txt small { font: 400 13px/1.3 var(--font-ui); opacity: .88; }
.vw-ini:hover { background: var(--accent-hover); }

/* ------------------------------------------------------------- topo */
.vw-topo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; min-height: 48px; }
.vw-topo-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.vw-topo-txt b { font: 600 15px/1.3 var(--font-ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vw-sobre { font: 500 12px/1.3 var(--font-ui); color: var(--ink-soft); letter-spacing: .03em;
            overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vw-topo > .vw-sobre:first-child { text-transform: uppercase; }
.vw-topo-txt .vw-sobre:first-child:not(:last-child) { text-transform: uppercase; }
.vw-redondo {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 0; border-radius: 14px;
  background: var(--bg-panel); color: var(--ink); cursor: pointer; text-decoration: none;
}
.vw-redondo:hover { background: var(--bg-alto); }

/* ------------------------------------------------------------- herói */
.vw-heroi {
  background: var(--accent); color: var(--accent-ink); border-radius: var(--r-2xl);
  padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 6px;
}
.vw-heroi-l { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vw-rot { font: 700 12px/1.2 var(--font-ui); letter-spacing: .08em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vw-vivo {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r-pill);
  background: rgba(9, 8, 13, .28); font: 600 12px/1 var(--font-ui); flex: none;
}
.vw-tres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.vw-tres-it { background: rgba(9, 8, 13, .28); border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vw-tres-it span { font: 600 11px/1.2 var(--font-ui); opacity: .88; }
.vw-tres-it b { font: 800 condensed 24px/1.1 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --------------------------------------------------- contador que rola */
.vw-odo { display: inline-flex; font: 800 condensed 1em/1 var(--font-display); height: 1em; overflow: hidden;
          letter-spacing: -.01em; vertical-align: bottom; font-variant-numeric: tabular-nums; }
.vw-odo-d { display: inline-block; height: 1em; overflow: hidden; width: .52em; text-align: center; }
.vw-odo-c { display: flex; flex-direction: column; transition: transform 1.8s cubic-bezier(.2, .9, .25, 1); will-change: transform; }
.vw-odo-c > span { display: block; height: 1em; line-height: 1; }
.vw-odo-s { display: inline-block; width: .2em; }
.vw-odo.sem-anim .vw-odo-c { transition: none; }
@media (prefers-reduced-motion: reduce) { .vw-odo-c { transition: none; } .vw-pulso { animation: none; } }
.vw-odo-heroi { font-size: 66px; margin-top: 4px; }
.vw-odo-linha { font-size: 26px; }
.vw-odo-grande { font-size: clamp(76px, 26vw, 128px); margin-top: 8px; }
.vw-odo-mini { font-size: 22px; }

/* ------------------------------------------------------------ seções */
.vw-chips { display: flex; gap: 8px; margin: 16px -24px 0; padding: 0 24px 2px; overflow-x: auto; scrollbar-width: none; }
.vw-chips::-webkit-scrollbar, .vw-fita::-webkit-scrollbar { display: none; }
.vw-chip {
  flex: none; height: 40px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line);
  background: var(--bg-panel); color: var(--ink); font: 600 14px/1 var(--font-ui); cursor: pointer;
}
.vw-chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
/* no computador, segurar e puxar rola a fileira (views.js, vwRolo) */
.arrastando { cursor: grabbing; user-select: none; -webkit-user-select: none; scroll-snap-type: none; }
.arrastando * { cursor: grabbing; pointer-events: none; }
/* chip com a foto de quem colocou a conta */
.vw-chip.com-av { display: inline-flex; align-items: center; gap: 8px; padding-left: 5px; }
.vw-chip .vw-av { width: 28px; height: 28px; font-size: 10.5px; }
.vw-chip.on .vw-av { box-shadow: 0 0 0 2px var(--bg); }
/* fila de quem colocou: em cima da fila de contas, em lima quando ligada */
.vw-quem + .vw-chips { margin-top: 8px; }
.vw-quem .vw-chip.on { background: var(--acao); color: var(--acao-ink); border-color: var(--acao); }
.vw-quem .vw-chip.on .vw-av { box-shadow: 0 0 0 2px var(--acao-ink); }
.vw-redondo.feito { background: var(--acao); color: var(--acao-ink); }
.vw-quem-pos { display: flex; align-items: center; gap: 10px; margin-top: 18px; font: 400 13.5px/1.3 var(--font-ui); color: var(--ink-soft); }
.vw-quem-pos .vw-av { width: 30px; height: 30px; font-size: 11px; }
.vw-quem-pos b { color: var(--ink); font-weight: 600; }
.vw-conta-l > .vw-conta-por { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; flex: none; max-width: 40%; }
.vw-conta-por .vw-av { width: 24px; height: 24px; font-size: 9.5px; }
.vw-conta-por small { font: 400 12px/1.2 var(--font-ui); color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.vw-sec { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 10px; }
.vw-sec h2 { margin: 0; font: 800 condensed 30px/1 var(--font-display); letter-spacing: -.01em; }
.vw-sec-dir { font: 400 13px/1 var(--font-ui); color: var(--ink-soft); }
.vw-link, .vw-ordem {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 2px; border: 0; background: none;
  color: var(--ink-body); font: 600 14px/1 var(--font-ui); cursor: pointer;
}
.vw-link:hover, .vw-ordem:hover { color: var(--ink); }

.vw-barra { display: block; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; flex: none; width: 100%; }
.vw-barra > i { display: block; height: 100%; border-radius: 3px; background: var(--accent); transition: width 1.2s var(--t-ease); }
.vw-barra.clara > i { background: var(--ink); }

.vw-fita { display: flex; gap: 10px; margin: 0 -24px; padding: 0 24px 4px; overflow-x: auto; scrollbar-width: none; }
.vw-quase {
  flex: none; width: 168px; display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 0;
  border-radius: var(--r-xl); background: var(--bg-panel); color: var(--ink); text-align: left; cursor: pointer; font: inherit;
}
.vw-quase:hover { background: var(--bg-alto); }
.vw-quase-cab { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.vw-quase-cab b { font: 800 condensed 32px/1 var(--font-display); }
.vw-quase-cab small { font: 400 12px/1 var(--font-ui); color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vw-falta { font: 400 13px/1.2 var(--font-ui); color: var(--ink-body); }
.vw-falta b { color: var(--ink); margin-right: 4px; }
.vw-quase-t { font: 400 12px/1.3 var(--font-ui); color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ranking curto */
.vw-rank-mini { background: var(--bg-panel); border-radius: 22px; overflow: hidden; min-height: 60px; }
.vw-rank-l { display: flex; align-items: center; gap: 12px; padding: 14px; border-top: 1px solid var(--line-soft); }
.vw-rank-l:first-child { border-top: 0; }
.vw-pos {
  width: 36px; height: 36px; border-radius: 12px; background: var(--bg-alto); display: grid; place-items: center; flex: none;
  font: 800 condensed 20px/1 var(--font-display);
}
.vw-pos.um { background: var(--accent); color: var(--accent-ink); }
.vw-rank-meio { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.vw-rank-meio b { font: 600 15px/1.2 var(--font-ui); overflow: hidden; text-overflow: ellipsis; }
.vw-rank-meio small { font: 400 12px/1.2 var(--font-ui); color: var(--ink-soft); }
.vw-rank-n { font: 800 condensed 22px/1 var(--font-display); white-space: nowrap; }
.vw-rank-pe { display: block; padding: 0 14px 12px; font: 400 12px/1 var(--font-ui); color: var(--ink-soft); }

/* lista de vídeos */
.vw-lista { display: flex; flex-direction: column; gap: 10px; }
.vw-vid {
  display: flex; gap: 12px; padding: 10px; border: 0; border-radius: 22px; background: var(--bg-panel);
  color: var(--ink); text-align: left; cursor: pointer; font: inherit; width: 100%;
}
.vw-vid:hover { background: var(--bg-alto); }
.vw-capa {
  width: 64px; height: 96px; flex: none; border-radius: 14px; background: var(--bg-alto); overflow: hidden; display: block;
}
.vw-capa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vw-capa.mini { width: 40px; height: 56px; border-radius: 10px; }
.vw-vid-meio { display: flex; flex-direction: column; justify-content: center; gap: 4px; flex: 1; min-width: 0; }
.vw-vid-t { font: 600 14px/1.3 var(--font-ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vw-vid-sub { font: 400 12px/1.2 var(--font-ui); color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vw-vid-nums { display: flex; align-items: flex-end; gap: 8px; margin-top: 2px; }
.vw-vid-ritmo { font: 600 12px/1.2 var(--font-ui); color: var(--ink-body); padding-bottom: 2px; }
.vw-vid-erro { font: 600 12px/1.2 var(--font-ui); color: var(--warn); padding-bottom: 2px; }
.vw-vid-prog { display: flex; align-items: center; gap: 8px; }
.vw-vid-prog .vw-barra { height: 5px; flex: 1; width: auto; }
.vw-vid-prog small { font: 700 11px/1 var(--font-ui); color: var(--ink-body); }

/* vazio */
.vw-vazio {
  margin-top: 12px; padding: 28px 22px; border-radius: var(--r-2xl); background: var(--bg-panel);
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.vw-vazio b { font: 800 condensed 38px/1 var(--font-display); text-transform: uppercase; }
.vw-vazio p { margin: 0; font: 400 15px/1.5 var(--font-ui); color: var(--ink-body); max-width: 460px; }
.vw-vazio .vw-acao { margin-top: 8px; }
.vw-vazio-obs { color: var(--ink-soft) !important; font-size: 13px !important; }

/* ação principal: verde, uma por tela */
.vw-acao {
  height: 56px; padding: 0 26px; border: 0; border-radius: var(--r-pill); background: var(--acao); color: var(--acao-ink);
  font: 700 16px/1 var(--font-ui); cursor: pointer;
}
.vw-acao:hover { background: var(--acao-hover); }
.vw-acao:disabled { background: var(--e2); color: var(--ink-soft); cursor: default; }
.vw-acao.largo { width: 100%; }
.vw-fab {
  position: fixed; right: 28px; bottom: 28px; z-index: 20; height: 56px; padding: 0 22px; border: 0;
  border-radius: var(--r-pill); background: var(--acao); color: var(--acao-ink); display: flex; align-items: center; gap: 8px;
  font: 700 16px/1 var(--font-ui); cursor: pointer;
}
.vw-fab .vw-ic { stroke-width: 2.6; }
.vw-fab:hover { background: var(--acao-hover); }

/* ----------------------------------------------------------- vídeo */
.vw-grande { display: flex; flex-direction: column; align-items: center; padding-top: 18px; text-align: center; }
.vw-rot-vivo { display: inline-flex; align-items: center; gap: 6px; font: 700 12px/1 var(--font-ui); letter-spacing: .08em; color: var(--ink-body); }
.vw-grande-pe { margin-top: 8px; font: 400 13px/1.3 var(--font-ui); color: var(--ink-soft); min-height: 17px; }
.vw-aviso { margin: 14px 0 0; padding: 12px 14px; border-radius: 16px; background: var(--bg-panel); font: 400 13px/1.45 var(--font-ui); color: var(--ink-body); }
.vw-quatro { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
.vw-quatro-it {
  background: var(--bg-panel); border-radius: 18px; padding: 12px 6px; display: flex; flex-direction: column;
  align-items: center; gap: 5px; color: var(--ink-body); min-width: 0;
}
.vw-quatro-it .vw-odo { color: var(--ink); max-width: 100%; }
.vw-quatro-it small { font: 400 11px/1 var(--font-ui); color: var(--ink-soft); }
.vw-graf { margin-top: 14px; background: var(--bg-panel); border-radius: 22px; padding: 14px 14px 10px; }
.vw-graf-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.vw-graf-cab b { font: 700 13px/1 var(--font-ui); }
.vw-graf-cab small, .vw-graf-pe { font: 400 12px/1 var(--font-ui); color: var(--ink-soft); }
.vw-graf-barras { display: flex; align-items: flex-end; gap: 3px; height: 96px; margin-top: 12px; }
.vw-graf-barras i { flex: 1; min-width: 2px; border-radius: 4px 4px 2px 2px; background: #2B2638; transition: height .8s var(--t-ease); }
.vw-graf-barras i.agora { background: var(--accent); }
.vw-graf-barras i.sem { background: var(--line-soft); }
.vw-graf-pe { display: flex; justify-content: space-between; margin-top: 6px; }
.vw-marcos { margin-top: 18px; }
.vw-marcos-t { font: 700 13px/1 var(--font-ui); }
.vw-marcos-fila { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.vw-marco {
  flex: 1 0 52px; height: 40px; border-radius: 12px; background: var(--bg-panel); color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center; gap: 4px; font: 800 condensed 17px/1 var(--font-display);
  box-sizing: border-box;
}
.vw-marco.batido { background: var(--accent); color: var(--accent-ink); }
.vw-marco.proximo { background: var(--bg-alto); color: var(--ink); border: 1.5px dashed var(--accent); flex-basis: 76px; }
.vw-marco small { font: 600 11px/1 var(--font-ui); color: var(--ink-body); }
.vw-eta { display: block; margin-top: 8px; font: 400 12.5px/1.4 var(--font-ui); color: var(--ink-soft); min-height: 1px; }
.vw-acoes { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.vw-acoes .vw-acao { flex: 1 1 220px; }
.vw-tirar {
  min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: none; color: var(--ink-body); font: 600 14px/1 var(--font-ui); cursor: pointer;
}
.vw-tirar:hover { color: var(--ink); border-color: var(--ink-soft); }

/* ---------------------------------------------------------- ranking */
.vw-h1 { margin: 4px 0 0; font: 800 condensed 58px/.92 var(--font-display); letter-spacing: -.015em; }
.vw-seg {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 16px; padding: 4px;
  background: var(--bg-panel); border-radius: 16px;
}
.vw-seg button { height: 40px; border: 0; border-radius: 12px; background: none; color: var(--ink-body); font: 700 13px/1 var(--font-ui); cursor: pointer; }
.vw-seg button.on { background: var(--ink); color: var(--bg); }
.vw-um {
  margin-top: 14px; padding: 18px; border-radius: var(--r-2xl); background: var(--accent); color: var(--accent-ink);
  display: flex; gap: 14px; align-items: stretch;
}
.vw-um-pos { font: 800 condensed 124px/.8 var(--font-display); }
.vw-um-dir { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; flex: 1; min-width: 0; }
.vw-um-dir > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vw-um-u { font: 700 18px/1.2 var(--font-ui); overflow: hidden; text-overflow: ellipsis; }
.vw-um-n { font: 800 condensed 42px/1 var(--font-display); }
.vw-um-dir small { font: 400 12px/1.3 var(--font-ui); opacity: .9; }
.vw-rank { margin-top: 10px; background: var(--bg-panel); border-radius: 22px; overflow: hidden; }
.vw-rank-g { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 14px; border-top: 1px solid var(--line-soft); }
.vw-rank-g:first-child { border-top: 0; }
.vw-rank-g-pos { font: 800 condensed 34px/1 var(--font-display); color: var(--ink-body); }
.vw-rank-g-meio { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vw-rank-g-meio b { font: 700 15px/1.2 var(--font-ui); overflow: hidden; text-overflow: ellipsis; }
.vw-rank-g-dir { display: flex; flex-direction: column; align-items: flex-end; }
.vw-rank-g-dir b { font: 800 condensed 24px/1 var(--font-display); white-space: nowrap; }
.vw-rank-g-dir small { font: 400 11px/1.4 var(--font-ui); color: var(--ink-soft); }
.vw-dois { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.vw-tile { background: var(--bg-panel); border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vw-tile span { font: 700 11px/1.2 var(--font-ui); letter-spacing: .06em; color: var(--ink-body); }
.vw-tile b { font: 800 condensed 30px/1 var(--font-display); }
.vw-tile small { font: 400 12px/1.3 var(--font-ui); color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vw-semana {
  margin-top: 10px; width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px; border: 0;
  border-radius: 22px; background: var(--bg-panel); color: var(--ink); text-align: left; cursor: pointer; font: inherit;
}
.vw-semana:hover { background: var(--bg-alto); }
.vw-semana .vw-capa.mini { width: 48px; height: 72px; border-radius: 12px; }
.vw-semana-meio { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.vw-semana-meio > span { font: 700 11px/1.2 var(--font-ui); letter-spacing: .06em; color: var(--ink-body); }
.vw-semana-meio b { font: 600 14px/1.3 var(--font-ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vw-semana-meio small { font: 400 12px/1.2 var(--font-ui); color: var(--ink-soft); }

/* ----------------------------------------------------------- folhas */
.vw-folha { display: flex; flex-direction: column; gap: 0; padding-bottom: 8px; }
.vw-folha-rot { font: 400 13px/1.3 var(--font-ui); color: var(--ink-body); }
.vw-folha-t { display: block; margin: 4px 0 10px; font: 700 13px/1.3 var(--font-ui); }
.vw-folha-t:not(:first-child) { margin-top: 22px; }
.vw-campo {
  display: flex; align-items: center; gap: 4px; height: 60px; margin: 8px 0 0; padding: 0 6px 0 16px;
  background: var(--bg); border: 1.5px solid var(--accent); border-radius: 18px;
}
.vw-arroba { font: 800 condensed 26px/1 var(--font-display); color: var(--accent-texto); }
.vw-campo input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; color: var(--ink);
  font: 600 18px/1 var(--font-ui);
}
.vw-campo input::placeholder { color: var(--ink-soft); font-weight: 400; }
.vw-colar { height: 46px; padding: 0 16px; border: 0; border-radius: 13px; background: var(--bg-alto); color: var(--ink); font: 700 14px/1 var(--font-ui); cursor: pointer; }
.vw-res { min-height: 40px; margin: 14px 0 16px; }
.vw-res-busca { font: 400 14px/1.4 var(--font-ui); color: var(--ink-soft); padding: 8px 2px; }
.vw-res-erro { margin: 0; padding: 12px 14px; border-radius: 16px; background: var(--bg-alto); font: 500 14px/1.4 var(--font-ui); color: var(--ink); }
.vw-res-obs { display: block; margin-top: 10px; font: 400 12.5px/1.4 var(--font-ui); color: var(--ink-soft); }
.vw-previa { display: flex; flex-direction: column; }
.vw-conta, .vw-pv { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 20px; background: var(--bg-alto); }
.vw-conta .vw-ic { color: var(--accent-texto); }
.vw-conta-foto {
  width: 48px; height: 48px; flex: none; border-radius: 16px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; overflow: hidden; position: relative; font: 800 condensed 20px/1 var(--font-display);
}
.vw-conta-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vw-conta-meio, .vw-pv-meio { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.vw-conta-meio b, .vw-pv-meio b { font: 700 15px/1.3 var(--font-ui); overflow: hidden; text-overflow: ellipsis; }
.vw-pv-meio b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; }
.vw-conta-meio small, .vw-pv-meio small { font: 400 12px/1.3 var(--font-ui); color: var(--ink-soft); }
.vw-pv-meio strong { margin-top: 4px; font: 800 condensed 28px/1 var(--font-display); }
.vw-pv .vw-capa { width: 72px; height: 108px; }
.vw-previa-t { margin: 14px 0 8px; font: 700 13px/1 var(--font-ui); }
.vw-grade { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.vw-grade-it { position: relative; height: 92px; border-radius: 12px; background: var(--bg-alto); overflow: hidden; }
.vw-grade-it img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vw-grade-it small {
  position: absolute; left: 5px; bottom: 5px; font: 700 11px/1 var(--font-ui); color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}
.vw-sozinho { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 14px; border-radius: 16px; background: var(--bg-alto); }
.vw-sozinho .vw-ic { color: var(--accent-texto); }
.vw-sozinho > span, .vw-chave > span:first-child, .vw-toda-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; text-align: left; }
.vw-sozinho b, .vw-chave b, .vw-toda-txt b { font: 700 14px/1.3 var(--font-ui); }
.vw-sozinho small, .vw-chave small, .vw-toda-txt small { font: 400 12px/1.3 var(--font-ui); color: var(--ink-soft); }
.vw-toda {
  display: flex; align-items: center; gap: 12px; margin-top: 10px; min-height: 62px; padding: 8px 14px; width: 100%;
  border: 1.5px solid var(--line-strong); border-radius: 18px; background: none; color: var(--ink); cursor: pointer; font: inherit;
}
.vw-toda .vw-ic { opacity: 0; color: var(--accent-texto); }
.vw-toda.on { border-color: var(--accent); background: var(--accent-wash); }
.vw-toda.on .vw-ic { opacity: 1; }
.vw-toda-ini {
  width: 36px; height: 36px; flex: none; border-radius: 12px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font: 800 condensed 16px/1 var(--font-display);
}
.vw-marcos-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vw-mchip {
  height: 40px; min-width: 54px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line-strong);
  background: none; color: var(--ink); font: 800 condensed 17px/1 var(--font-display); cursor: pointer;
}
.vw-mchip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.vw-mchip.novo { display: grid; place-items: center; min-width: 44px; padding: 0; border-style: dashed; color: var(--ink-body); }
.vw-chave {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; margin-top: 14px; padding: 8px 14px;
  border: 0; border-radius: 16px; background: var(--bg-alto); color: var(--ink); cursor: pointer; font: inherit;
}
.vw-trilho { width: 46px; height: 28px; border-radius: 14px; background: var(--line-strong); position: relative; flex: none; transition: background var(--t-base); }
.vw-trilho i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); transition: left var(--t-base) var(--t-ease); }
.vw-chave.on .vw-trilho { background: var(--accent); }
.vw-chave.on .vw-trilho i { left: 21px; }
.vw-contas { display: flex; flex-direction: column; gap: 6px; }
.vw-conta-l { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--bg-alto); }
.vw-conta-l > span { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.vw-conta-l b { font: 700 14px/1.3 var(--font-ui); }
.vw-conta-l small { font: 400 12px/1.3 var(--font-ui); color: var(--ink-soft); }

/* aviso de marco no sino (notificacoes.js) */
.nt-selo {
  width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font: 800 condensed 17px/1 var(--font-display);
}
.nt-selo.claro { background: var(--ink); color: var(--bg); }
.nt-selo.cinza { background: var(--bg-alto); color: var(--ink); }

/* ------------------------------------------------- entradas do perfil */
/* linhas do ranking viraram botões: abrem o perfil da conta */
button.vw-rank-l, button.vw-rank-g { width: 100%; border: 0; border-top: 1px solid var(--line-soft); background: none;
  color: inherit; font: inherit; text-align: left; cursor: pointer; }
button.vw-rank-l:first-child, .vw-rank button.vw-rank-g:first-child { border-top: 0; }
button.vw-rank-l:hover, button.vw-rank-g:hover { background: var(--bg-alto); }
button.vw-um { width: 100%; border: 0; font: inherit; text-align: left; cursor: pointer; }
button.vw-um:hover { filter: brightness(1.06); }
.vw-arroba-ir { border: 0; background: none; padding: 0; color: var(--ink); font: inherit; letter-spacing: inherit; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.vw-arroba-ir:hover { text-decoration-color: currentColor; }
.vw-heroi-perfil {
  display: flex; align-items: center; gap: 10px; margin-top: 10px; min-height: 48px; padding: 6px 14px 6px 6px; border: 0;
  border-radius: var(--r-pill); background: rgba(9, 8, 13, .28); color: inherit; font: 700 14px/1.2 var(--font-ui); cursor: pointer;
  align-self: flex-start; max-width: 100%;
}
.vw-heroi-perfil:hover { background: rgba(9, 8, 13, .4); }
.vw-heroi-perfil > span:not(.vw-heroi-foto) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vw-heroi-foto, .vw-pl-foto {
  position: relative; width: 36px; height: 36px; border-radius: 50%; flex: none; overflow: hidden; display: grid; place-items: center;
  background: var(--bg-alto); color: var(--ink); font: 700 12px/1 var(--font-ui);
}
.vw-heroi-foto img, .vw-pl-foto img, .vw-pf-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------- perfil */
.vw.vw-largo { max-width: 1180px; }
.vw-pf-cab { display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; margin-top: 8px; }
.vw-pf-quem { display: flex; gap: 28px; flex: 1 1 520px; min-width: 0; }
.vw-pf-foto-caixa { position: relative; flex: none; align-self: flex-start; }
.vw-pf-foto {
  position: relative; width: 148px; height: 148px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: var(--bg-alto); color: var(--ink-body); font: 800 condensed 52px/1 var(--font-display);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 9px var(--accent); margin: 9px;
}
.vw-pf-selo {
  position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); display: flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink);
  border: 3px solid var(--bg); font: 700 11px/1 var(--font-ui); letter-spacing: .08em; white-space: nowrap;
}
.vw-pf-selo .vw-pulso { width: 6px; height: 6px; background: var(--accent-ink); }
.vw-pf-txt { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding-top: 10px; }
.vw-pf-nome { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.vw-pf-nome h1 { margin: 0; font: 800 condensed 46px/1 var(--font-display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.vw-pf-verif { width: 22px; height: 22px; border-radius: 50%; background: #20D5EC; color: #09080D; display: grid; place-items: center; flex: none; }
.vw-pf-verif .vw-ic { fill: none; stroke: currentColor; stroke-width: 3.2; }
.vw-pf-apelido { font: 600 17px/1.2 var(--font-ui); color: var(--ink-body); }
.vw-pf-botoes { display: flex; gap: 10px; flex-wrap: wrap; }
.vw-pf-abrir, .vw-pf-copiar, .vw-pf-por {
  height: 44px; display: inline-flex; align-items: center; gap: 8px; border-radius: var(--r-pill); font: 600 15px/1 var(--font-ui);
  box-sizing: border-box;
}
.vw-pf-abrir { padding: 0 20px; background: var(--acao); color: var(--acao-ink); text-decoration: none; font-weight: 700; }
.vw-pf-abrir:hover { background: var(--acao-hover); color: var(--acao-ink); }
.vw-pf-copiar { padding: 0 18px; border: 1px solid var(--line); background: var(--bg-panel); color: var(--ink); cursor: pointer; }
.vw-pf-copiar:hover { background: var(--bg-alto); }
.vw-pf-copiar.feito { background: var(--acao); color: var(--acao-ink); border-color: var(--acao); }
.vw-pf-por { padding: 0 16px 0 6px; background: var(--bg-panel); color: var(--ink-soft); font-weight: 400; font-size: 14px; }
.vw-pf-por b { color: var(--ink); font-weight: 600; }
.vw-pf-por .vw-av { width: 32px; height: 32px; font-size: 11px; }
.vw-pf-nums { display: flex; gap: 22px; flex-wrap: wrap; font: 400 15px/1.2 var(--font-ui); color: var(--ink-soft); }
.vw-pf-nums b { color: var(--ink); font-size: 18px; font-weight: 700; margin-right: 5px; }
.vw-pf-bio { margin: 0; font: 400 15px/1.5 var(--font-ui); color: var(--ink-body); max-width: 520px; white-space: pre-line; overflow-wrap: anywhere; }
.vw-pf-bio.fraca { color: var(--ink-soft); font-size: 14px; }
.vw-pf-heroi {
  flex: 0 1 360px; min-width: 280px; background: var(--accent); color: var(--accent-ink); border-radius: var(--r-2xl);
  padding: 20px 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; box-sizing: border-box;
}
.vw-odo-pf-total { font-size: 64px; }
.vw-pf-abas {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 36px; border-bottom: 1px solid var(--line);
}
.vw-pf-aba {
  display: inline-flex; align-items: center; gap: 8px; padding: 0 4px 12px; margin-bottom: -1px; border-bottom: 3px solid var(--ink);
  font: 800 condensed 26px/1 var(--font-display);
}
.vw-pf-aba small { font: 600 14px/1 var(--font-ui); color: var(--ink-soft); }
.vw-seg.vw-pf-seg { grid-template-columns: repeat(3, auto); margin: 0 0 10px; border-radius: var(--r-pill); }
.vw-pf-seg button { padding: 0 16px; border-radius: var(--r-pill); height: 36px; }
.vw-pf-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 26px 18px; margin-top: 22px; }
.vw-pf-card {
  display: flex; flex-direction: column; gap: 9px; min-width: 0; padding: 0; border: 0; background: none; color: var(--ink);
  text-align: left; font: inherit; cursor: pointer;
}
.vw-pf-capa {
  position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: var(--bg-alto);
  transition: transform .25s var(--t-ease), box-shadow .25s var(--t-ease);
}
.vw-pf-capa img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.vw-pf-card:hover .vw-pf-capa, .vw-pf-card:focus-visible .vw-pf-capa { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--accent); }
.vw-pf-novo {
  position: absolute; top: 10px; left: 10px; padding: 4px 8px; border-radius: 8px; background: var(--acao); color: var(--acao-ink);
  font: 800 11px/1 var(--font-ui); letter-spacing: .06em;
}
.vw-pf-ha {
  position: absolute; right: 10px; bottom: 10px; padding: 4px 8px; border-radius: 8px; background: rgba(9, 8, 13, .72); color: #F4F0E8;
  font: 600 12px/1 var(--font-ui);
}
.vw-pf-play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.vw-pf-play i { width: 56px; height: 56px; border-radius: 50%; background: rgba(9, 8, 13, .6); display: block; position: relative; }
.vw-pf-play i::after {
  content: ""; position: absolute; left: 22px; top: 18px; border-left: 16px solid #F4F0E8; border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
.vw-pf-card:hover .vw-pf-play { opacity: 1; }
.vw-pf-linha { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; min-width: 0; }
.vw-odo-pf { font-size: 28px; }
.vw-pf-ritmo { font: 700 12px/1 var(--font-ui); color: var(--acao); white-space: nowrap; }
.vw-pf-t { font: 400 13px/1.35 var(--font-ui); color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* --------------------------------------------------------- player */
.vw-pl { display: flex; flex-wrap: wrap; align-items: stretch; gap: 24px 0; min-height: calc(100dvh - 160px); }
.vw-pl-palco {
  flex: 1 1 420px; min-width: 0; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 12px 68px; background: #050407; border-radius: var(--r-2xl);
}
.vw-pl-fechar { position: absolute; top: 16px; left: 16px; background: #1D1A27; color: #F4F0E8; border-radius: 50%; }
.vw-pl-fechar:hover { background: #2B2638; }
/* largura que cabe: a altura vem da proporção 9:16 (altura fixa + largura apertada distorcia) */
.vw-pl-tela { width: min(100%, calc(min(720px, 100dvh - 200px) * 9 / 16)); aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #000; }
.vw-pl-tela iframe { width: 100%; height: 100%; border: 0; display: block; }
.vw-pl-fonte { font: 400 12px/1 var(--font-ui); color: #6F6880; }
.vw-pl-setas { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 12px; }
.vw-pl-seta { border-radius: 50%; background: #1D1A27; color: #F4F0E8; }
.vw-pl-seta:hover { background: #2B2638; }
.vw-pl-seta:disabled { opacity: .35; cursor: default; }
.vw-pl-lado { flex: 1 1 340px; max-width: 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 4px 0 24px 28px; box-sizing: border-box; }
.vw-pl-autor { display: flex; align-items: center; gap: 8px; }
.vw-pl-quem {
  display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 4px 8px 4px 4px; border: 0; border-radius: 16px;
  background: none; color: var(--ink); text-align: left; font: inherit; cursor: pointer;
}
.vw-pl-quem:hover { background: var(--bg-panel); }
.vw-pl-foto { width: 48px; height: 48px; font-size: 15px; }
.vw-pl-quem-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vw-pl-quem-txt b { font: 700 16px/1.2 var(--font-ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vw-pl-quem-txt small { font: 400 13px/1.2 var(--font-ui); color: var(--ink-soft); }
.vw-pl-legenda { margin: 0; font: 400 15px/1.5 var(--font-ui); color: var(--ink-body); overflow-wrap: anywhere; }
.vw-pl-views { background: var(--accent); color: var(--accent-ink); border-radius: 24px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.vw-pl-views .vw-rot-vivo { color: inherit; }
.vw-pl-views .vw-pulso { background: var(--acao); }
.vw-pl-views .vw-grande-pe { color: inherit; opacity: .9; margin-top: 0; }
.vw-odo-pl { font-size: 72px; }
.vw-pl-lado .vw-quatro { margin-top: 0; }
.vw-pl-com { background: var(--bg-panel); border-radius: 20px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.vw-pl-com-cab { display: flex; align-items: baseline; justify-content: space-between; }
.vw-pl-com-cab b { font: 700 15px/1.2 var(--font-ui); }
.vw-pl-com-cab small { font: 400 13px/1.2 var(--font-ui); color: var(--ink-soft); }
.vw-pl-com p { margin: 0; font: 400 13.5px/1.45 var(--font-ui); color: var(--ink-soft); }
.vw-pl-com-ir {
  min-height: 44px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center;
  gap: 8px; color: var(--ink); text-decoration: none; font: 600 14px/1.2 var(--font-ui); padding: 0 16px;
}
.vw-pl-com-ir:hover { background: var(--bg-alto); color: var(--ink); }
.vw-pl-acoes { margin-top: 4px; }

/* ============================================================ celular */
@media (max-width: 767px) {
  .vw { padding: 12px 16px 0; }
  .vw-chips, .vw-fita { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .vw-rolagem { padding-bottom: 96px; }      /* a casca já guarda a faixa da barra de abas */
  .vw-fab { right: 18px; bottom: calc(78px + max(10px, var(--seg-baixo) - 4px) - var(--ios-falta)); }
  .vw-tela-video ~ .vw-fab { display: none; }
  .vw-odo-heroi { font-size: 60px; }

  /* perfil no celular: foto no meio, como o app do TikTok; grade de 3 */
  .vw-pf-cab { gap: 18px; }
  .vw-pf-quem { flex-direction: column; align-items: center; text-align: center; gap: 6px; flex-basis: 100%; }
  .vw-pf-foto-caixa { align-self: center; }
  .vw-pf-foto { width: 104px; height: 104px; font-size: 36px; }
  .vw-pf-txt { align-items: center; padding-top: 4px; width: 100%; }
  .vw-pf-nome { justify-content: center; }
  .vw-pf-nome h1 { font-size: 34px; }
  .vw-pf-apelido { flex-basis: 100%; font-size: 15px; }
  .vw-pf-botoes { justify-content: center; width: 100%; }
  .vw-pf-abrir { flex: 1; justify-content: center; }
  .vw-pf-copiar span { display: none; }
  .vw-pf-copiar { width: 44px; padding: 0; justify-content: center; }
  .vw-pf-nums { width: 100%; justify-content: space-around; gap: 0; }
  .vw-pf-nums > span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12px; }
  .vw-pf-nums b { margin: 0; font-size: 17px; }
  .vw-pf-bio { font-size: 14px; }
  .vw-pf-heroi { flex-basis: 100%; min-width: 0; padding: 16px 18px; }
  .vw-odo-pf-total { font-size: 46px; }
  .vw-pf-abas { margin-top: 24px; }
  .vw-pf-aba { font-size: 22px; padding-bottom: 10px; }
  .vw-seg.vw-pf-seg { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vw-pf-seg button { padding: 0 6px; font-size: 12px; }
  .vw-pf-grade { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 6px; margin: 14px -8px 0; }
  .vw-pf-capa { border-radius: 10px; }
  .vw-pf-novo { top: 6px; left: 6px; font-size: 9px; padding: 3px 5px; border-radius: 6px; }
  .vw-pf-ha { display: none; }
  .vw-pf-linha { flex-direction: column; align-items: flex-start; gap: 4px; padding: 0 2px; }
  .vw-odo-pf { font-size: 19px; }
  .vw-pf-ritmo { font-size: 11px; }
  .vw-pf-card .vw-vid-prog { padding: 0 2px; gap: 5px; }
  .vw-pf-card .vw-vid-prog small { font-size: 10px; }
  .vw-pf-t { display: none; }

  /* player no celular: o vídeo em cima, os números embaixo */
  .vw-pl { flex-direction: column; min-height: 0; gap: 16px; }
  .vw-pl-palco { flex: none; padding: 64px 12px 14px; border-radius: 24px; }   /* o X fica acima do vídeo */
  .vw-pl-tela { width: min(100%, calc(min(72dvh, 620px) * 9 / 16)); }
  .vw-pl-fechar { top: 10px; left: 10px; z-index: 1; }
  .vw-pl-setas { position: static; transform: none; flex-direction: row; gap: 10px; }
  .vw-pl-lado { flex: none; max-width: none; min-width: 0; padding: 0 0 12px; }
  .vw-odo-pl { font-size: 56px; }
  .vw-h1 { font-size: 52px; }

  /* na lista de páginas do espaço, a entrada vira um bloco roxo */
  .vw-lado {
    margin: 16px 0 6px; min-height: 64px; padding: 12px 16px; border-radius: 22px;
    background: var(--accent) !important; color: var(--accent-ink) !important;
  }
  .vw-lado .vw-pulso { background: var(--ink); }
  .vw-lado-txt b { font: 800 condensed 22px/1 var(--font-display); text-transform: uppercase; }
  .vw-lado-txt small { display: block; margin-top: 3px; font: 400 12px/1.2 var(--font-ui); opacity: .88; }
  .vw-lado-seta { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; }

  /* vídeo e ranking: tela cheia, sem a barra de abas (como a página) */
  body:has(#nvEspacos:not([hidden])[data-vista="views2"]) .nv-barra { display: none; }
  body:has(#nvEspacos:not([hidden])[data-vista="views2"]) .st-main { padding-bottom: 0; }
  .es[data-vista="views2"] .vw-rolagem { padding-bottom: calc(40px + var(--seg-baixo)); }
}
