/* Demonstração tocável do Varrei Foco (#demo-foco), no visual do painel da extensão (tema escuro, rosa #f7b6cb).
   Montada por assets/demo-foco.js. Classes com prefixo vf- para não colidir com o resto da página. */
.vf {
  --accent: #f7b6cb;          /* lido pelo art.js para as ondas */
  --accent-soft: #3a1f2a;     /* idem (mesmo valor do tema escuro da extensão) */
  --vf-hover: #f39bb7;
  --vf-texto: #eceef4;
  --vf-cinza: #a3a7b7;
  --vf-linha: #2f313d;
  --vf-fundo: #1b1c24;
  --vf-suave: #20222c;
  --vf-rosa-fg: #3d0f20;
  color: var(--vf-texto);
}
.vf [hidden] { display: none !important; }

.vf-grade {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 48px; align-items: center;
  max-width: 980px; margin-inline: auto;
}
.vf-lado h3 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); font-weight: 800; color: #fff; margin-bottom: 14px; }
.vf-lado p { margin-bottom: 14px; }
.vf-passos { margin: 0 0 16px; padding-left: 1.3em; display: grid; gap: 6px; }
.vf-passos b { color: var(--accent); }
.vf-nota { font-size: .92rem; }

/* ---------- painel ---------- */
.vf-painel {
  background: var(--vf-fundo); border: 1px solid var(--vf-linha); border-radius: 18px; padding: 0 18px 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35); min-width: 0; font-size: 15px; line-height: 1.45;
}
.vf-topo {
  display: flex; align-items: center; gap: 8px; margin: 0 -18px 14px; padding: 12px 18px; border-bottom: 1px solid var(--vf-linha);
}
.vf-marca { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 800; font-size: 16px; line-height: 1; }
.vf-marca svg { width: 22px; height: 22px; }
.vf-produto { font-weight: 600; font-size: 14px; color: var(--vf-cinza); padding-left: 8px; border-left: 1px solid var(--vf-linha); line-height: 1; }
.vf-selo {
  margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--vf-cinza); border: 1px solid var(--vf-linha); border-radius: 999px; padding: 3px 9px;
}
.vf svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.vf-campo { margin-bottom: 12px; }
.vf-rotulo { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--vf-cinza); margin-bottom: 6px; }
.vf-seg {
  display: grid; gap: 4px; padding: 4px; border: 1px solid var(--vf-linha); border-radius: 12px; background: var(--vf-suave);
}
.vf-seg-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vf-seg-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vf-seg button {
  min-height: 44px; min-width: 0; padding: 6px 4px; border: 0; border-radius: 9px; background: transparent; color: var(--vf-texto);
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1.15; cursor: pointer; overflow-wrap: anywhere;
}
.vf-seg button:hover { background: var(--accent-soft); }
.vf-seg button[aria-pressed="true"] { background: var(--accent); color: var(--vf-rosa-fg); font-weight: 800; }
.vf-seg button:focus-visible, .vf-tocar:focus-visible, .vf-switch input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vf-desc { margin: 6px 2px 0; font-size: 13px; color: var(--vf-cinza); min-height: 1.45em; }

/* interruptor Modo TDAH (como o .power da extensão) */
.vf-switch { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; font-size: 15px; cursor: pointer; width: fit-content; }
.vf-switch input {
  appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 40px; height: 22px; margin: 0;
  border-radius: 999px; border: 1px solid var(--vf-linha); background: var(--vf-linha); cursor: pointer; transition: background .15s;
}
.vf-switch input::before {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s;
}
.vf-switch input:checked { background: var(--accent); border-color: var(--vf-hover); }
.vf-switch input:checked::before { transform: translateX(18px); }
.vf-switch:has(input:disabled) { cursor: default; }
.vf-switch input:disabled, .vf-switch input:disabled ~ span { opacity: .5; cursor: default; }
.vf-switch + .vf-desc { margin-top: -4px; }

.vf-arte { display: block; width: 100%; height: 130px; margin: 10px 0 12px; }

.vf-faixa { display: flex; gap: 12px; align-items: center; min-width: 0; }
.vf-capa { flex: none; width: 56px; height: 56px; border-radius: 10px; border: 1px solid var(--vf-linha); }
.vf-faixa-info { display: grid; gap: 3px; min-width: 0; }
.vf-faixa-info strong { font-size: 17px; line-height: 1.2; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vf-efeito-atual { font-size: 13px; color: var(--vf-cinza); }
.vf-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.vf-tag {
  font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; line-height: 1;
  padding: 4px 8px; border-radius: 999px; border: 1px solid var(--vf-linha); background: var(--vf-suave); color: var(--vf-cinza);
}

.vf-progresso { height: 4px; margin-top: 14px; border-radius: 4px; background: var(--vf-linha); overflow: hidden; }
.vf-progresso span { display: block; height: 100%; width: 0; background: var(--accent); }
.vf-tempo { display: flex; justify-content: space-between; margin-top: 4px; font-size: 12px; color: var(--vf-cinza); font-variant-numeric: tabular-nums; }

.vf-tocar {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 60px; margin-top: 12px;
  border: 0; border-radius: 999px; background: var(--accent); color: var(--vf-rosa-fg);
  font: inherit; font-size: 18px; font-weight: 800; cursor: pointer;
}
.vf-tocar:hover { background: var(--vf-hover); }
.vf-tocar svg { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.vf-tocar .vf-i-pausar, .vf-tocar.vf-tocando .vf-i-tocar { display: none; }
.vf-tocar.vf-tocando .vf-i-pausar { display: block; }
.vf-fone { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 0; font-size: 13px; font-weight: 600; color: var(--vf-cinza); }
.vf-fone svg { width: 18px; height: 18px; color: var(--accent); }

.vf-fim {
  margin-top: 14px; padding: 14px; border-radius: 12px; background: var(--accent-soft); border: 1px solid rgba(247, 182, 203, .35);
  display: grid; gap: 10px; justify-items: start;
}
.vf-fim p { margin: 0; font-weight: 700; color: #fff; }
.vf-fim .btn { width: 100%; }

@media (max-width: 820px) {
  .vf-grade { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .vf-painel { width: 100%; max-width: 480px; margin-inline: auto; }
  .vf-lado { max-width: 480px; margin-inline: auto; }
}
@media (max-width: 420px) {
  .vf-painel { padding: 0 12px 14px; border-radius: 14px; }
  .vf-topo { margin: 0 -12px 12px; padding: 10px 12px; }
  .vf-seg-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vf-arte { height: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  .vf-switch input, .vf-switch input::before { transition: none; }
}
