/* BandFlow — vitrine pública. Mesmo visual do app: fundo zinc, cantos arredondados,
   títulos em caixa alta itálica. */
:root {
  --bg: #09090b;
  --panel: #18181b;
  --panel-2: #27272a;
  --line: #27272a;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #2563eb;
  --accent-2: #3b82f6;
  --ok: #10b981;
  --radius: 20px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  padding-bottom: 110px;
}
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent-2); }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.15; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -0.03em; }
h2 { font-size: 1.15rem; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -0.01em; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.pre { white-space: pre-wrap; }
.lead { font-size: 1.05rem; color: #d4d4d8; }
.eyebrow { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.25em; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.tag { display: inline-block; font-size: 0.65rem; padding: 1px 6px; border-radius: 6px; background: var(--panel-2); color: var(--muted); font-style: normal; vertical-align: middle; }

/* Cabeçalho e rodapé */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 20px 14px;
  background: rgba(9, 9, 11, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -0.04em; font-size: 1.4rem;
  text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 5px;
}
.topbar nav { display: flex; gap: 18px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 600; }
main { max-width: 1080px; margin: 0 auto; padding: 24px 20px 40px; }
.footer { max-width: 1080px; margin: 0 auto; padding: 24px 20px 40px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.footer a { color: var(--muted); text-decoration: underline; }

/* Botões e chips */
.btn, .play {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 14px; cursor: pointer;
  font: inherit; font-weight: 800; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em;
  padding: 12px 18px; background: #fff; color: #000;
}
.btn:hover { background: #e4e4e7; color: #000; }
.btn.ghost { background: var(--panel); color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: #52525b; }
.play { width: 44px; height: 44px; padding: 0; border-radius: 50%; font-size: 0.9rem; flex-shrink: 0; }
.play.playing { background: var(--accent); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
}
.chip:hover, .chip.active { color: #000; background: #fff; border-color: #fff; }

/* Seções */
.section { margin: 36px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head a { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); }
.narrow { max-width: 680px; }
.empty { text-align: center; padding: 80px 0; }
.alert { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: #fca5a5; padding: 12px 16px; border-radius: 14px; }
.report { margin-top: 40px; font-size: 0.8rem; }
.report a { color: var(--muted); text-decoration: underline; }

/* Início */
.hero { padding: 40px 0 10px; max-width: 760px; }
.hero p { color: var(--muted); font-size: 1.05rem; }
.search { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.search input[type="search"], .search select, .form input, .form select, .form textarea, textarea.pix-code {
  flex: 1 1 220px; background: var(--panel); border: 1px solid var(--line); color: var(--text);
  border-radius: 14px; padding: 12px 14px; font: inherit; font-size: 0.95rem;
}
.search input:focus, .form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: #71717a; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); }
.cta { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }

/* Cartões */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.card { background: rgba(24, 24, 27, 0.6); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.track-card { position: relative; display: flex; flex-direction: column; }
.track-card .card-media { aspect-ratio: 1 / 1; background: var(--panel-2); }
.track-card .card-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.card-title { font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-sub { color: var(--muted); font-size: 0.9rem; }
.card-meta { color: #71717a; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; }
.track-card .play { position: absolute; right: 12px; top: 12px; box-shadow: 0 8px 20px rgba(0,0,0,0.5); }
.cover { width: 100%; height: 100%; object-fit: cover; }
.cover-empty { display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #52525b; background: var(--panel-2); width: 100%; height: 100%; }
.band-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.band-card { display: flex; align-items: center; gap: 14px; padding: 14px; }
.band-card strong { display: block; text-transform: uppercase; font-style: italic; }
.band-card .muted { font-size: 0.8rem; }
.avatar { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; flex-shrink: 0; }

/* Página da banda */
.band-hero { display: flex; align-items: center; gap: 24px; padding: 20px 0; flex-wrap: wrap; }
.band-logo { width: 140px; height: 140px; border-radius: 28px; object-fit: cover; border: 1px solid var(--line); }
.track-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.track-row { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: rgba(24, 24, 27, 0.6); border: 1px solid var(--line); border-radius: 16px; }
.track-index { color: #52525b; font-size: 0.8rem; width: 18px; text-align: right; }
.track-name { flex: 1; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-meta { color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.events { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.events li { display: flex; gap: 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(24, 24, 27, 0.6); }
.events strong { min-width: 110px; text-transform: uppercase; font-size: 0.85rem; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photos img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; }

/* Apoio (Pix) */
.pix { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.qr { width: 200px; background: #fff; border-radius: 16px; padding: 8px; flex-shrink: 0; }
.qr svg { width: 100%; height: auto; display: block; }
.pix-info { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
textarea.pix-code { width: 100%; font-family: ui-monospace, monospace; font-size: 0.75rem; resize: none; color: var(--muted); }
.bank { margin-top: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }

/* Página da música */
.track-hero { display: flex; gap: 28px; align-items: flex-end; flex-wrap: wrap; padding: 20px 0; }
.track-cover { width: min(280px, 100%); aspect-ratio: 1 / 1; border-radius: 24px; object-fit: cover; border: 1px solid var(--line); }
.track-hero-info { flex: 1 1 300px; min-width: 0; }
.band-link { font-size: 1.1rem; font-weight: 700; color: var(--accent-2); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.actions .play { width: auto; height: auto; border-radius: 14px; padding: 12px 20px; font-size: 0.78rem; }
.lyrics { font-size: 1rem; color: #d4d4d8; }
.credits { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.license p strong { text-transform: uppercase; }

/* Formulários */
.form { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.form label.check { flex-direction: row; }
.form .hp { position: absolute; left: -9999px; }
.steps { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* Player fixo */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 52px 1fr auto; grid-template-areas: "cover info controls" "progress progress progress";
  gap: 6px 14px; align-items: center;
  padding: 12px 16px calc(env(safe-area-inset-bottom, 0px) + 10px);
  background: rgba(24, 24, 27, 0.97); border-top: 1px solid var(--line); backdrop-filter: blur(10px);
}
.player[hidden] { display: none; }
.player img { grid-area: cover; width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: var(--panel-2); }
.player-info { grid-area: info; min-width: 0; display: flex; flex-direction: column; }
.player-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; font-size: 0.85rem; }
.player-info a { color: var(--muted); font-size: 0.8rem; }
.player-controls { grid-area: controls; display: flex; gap: 6px; }
.player-controls button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); cursor: pointer; font-size: 0.9rem; }
#player-toggle { background: #fff; color: #000; border-color: #fff; }
.player-progress { grid-area: progress; display: flex; align-items: center; gap: 10px; font-size: 0.7rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.player-progress input { flex: 1; accent-color: var(--accent); }

/* Embed */
body.bare { padding: 0; background: transparent; }
.embed { display: flex; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 12px; color: var(--text); }
.embed-cover { width: 92px; height: 92px; border-radius: 14px; object-fit: cover; flex-shrink: 0; }
.embed-info { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.embed-info strong { text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.embed audio { width: 100%; height: 36px; }
.embed a { color: var(--accent-2); }

@media (max-width: 640px) {
  .topbar nav { gap: 12px; font-size: 0.7rem; }
  .band-logo { width: 96px; height: 96px; border-radius: 22px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .track-card .play { width: 40px; height: 40px; }
  .player-controls button { width: 36px; height: 36px; }
  #player-prev { display: none; }
}
