/* Fresh FM — ajuste as cores da marca aqui */
:root {
  --bg: #f4ead5;        /* papel/creme */
  --ink: #1c1a17;       /* tinta */
  --green: #1f7a4d;     /* erva-mate */
  --green-dark: #155c39;
  --accent: #f2672a;    /* laranja */
  --yellow: #f6c445;
  --muted: #6d665b;
  --card: #fffaf0;
  --line: #1c1a17;
  --radius: 14px;
  --display: 'Archivo Black', system-ui, sans-serif;
  --text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.4 var(--text); -webkit-font-smoothing: antialiased; }
main { max-width: 640px; margin: 0 auto; padding: 0 16px 48px; }
h1, h2, .logo { font-family: var(--display); font-weight: 400; letter-spacing: .5px; }
h2 { font-size: 18px; margin: 0 0 12px; text-transform: uppercase; }
[hidden] { display: none !important; }
.muted { color: var(--muted); font-weight: 400; }

/* Cabeçalho estilo cartaz */
.hero { background: var(--green); color: var(--bg); text-align: center; padding: 28px 16px 22px; border-bottom: 4px solid var(--line); margin-bottom: 18px; }
.logo { font-size: 46px; line-height: 1; text-shadow: 3px 3px 0 var(--ink); }
.logo span { color: var(--yellow); margin-left: 6px; }
.hero p { margin: 8px 0 0; font-weight: 600; }

.card { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; box-shadow: 4px 4px 0 var(--line); }
.banner { background: var(--accent); color: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; font-weight: 700; text-align: center; }
.banner.warn { background: var(--yellow); color: var(--ink); text-align: left; }

label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
input[type=text], input[type=search], input[type=password], input:not([type]) {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-weight: 400;
  border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus { outline: 3px solid var(--yellow); outline-offset: 1px; }

button, .btn {
  font: inherit; font-weight: 700; cursor: pointer; border: 2px solid var(--line); border-radius: 10px;
  background: var(--accent); color: #fff; padding: 9px 14px; box-shadow: 2px 2px 0 var(--line); text-decoration: none; display: inline-block;
}
button:active { transform: translate(2px, 2px); box-shadow: none; }
button:disabled { opacity: .55; cursor: default; }
button.ghost, .btn.ghost { background: var(--card); color: var(--ink); }
button.green, .btn.green { background: var(--green); }
button.small { padding: 5px 9px; font-size: 13px; }

/* Listas de músicas */
.list { list-style: none; margin: 0; padding: 0; }
.item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px dashed #c9bda5; }
.item:first-child { border-top: 0; }
.item img, .item .ph { width: 48px; height: 48px; border-radius: 6px; border: 2px solid var(--line); flex: none; object-fit: cover; background: var(--yellow); }
.meta { flex: 1; min-width: 0; }
.meta b, .meta span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta span { color: var(--muted); font-size: 14px; }
.meta small { color: var(--muted); font-size: 12px; }
.meta .badge { display: inline-block; vertical-align: 1px; font-size: 10px; color: var(--ink); }
.numbered { counter-reset: n; }
.numbered .item::before { counter-increment: n; content: counter(n); font-family: var(--display); width: 22px; text-align: center; }

.now { background: var(--yellow); }
.now small { text-transform: uppercase; font-weight: 700; letter-spacing: 1px; font-size: 12px; }
.now .item { border: 0; padding-bottom: 0; }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); max-width: 92vw; background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 12px; font-weight: 600; box-shadow: 4px 4px 0 var(--accent); z-index: 10; }
.toast.err { box-shadow: 4px 4px 0 #c0392b; }

/* Moderação */
.admin main { max-width: 900px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row.between { justify-content: space-between; }
.badge { font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 2px 7px; border-radius: 99px; border: 1.5px solid var(--line); white-space: nowrap; }
.badge.queued { background: #fff; }
.badge.sent { background: var(--yellow); }
.badge.playing { background: var(--green); color: #fff; }
.badge.ok { background: var(--green); color: #fff; }
.badge.off { background: #e3d9c4; }
.actions { display: flex; gap: 4px; flex: none; }
.actions button { padding: 5px 9px; font-size: 14px; min-width: 34px; }
.progress { height: 8px; border: 2px solid var(--line); border-radius: 99px; background: #fff; overflow: hidden; margin-top: 10px; }
.progress div { height: 100%; background: var(--green); width: 0; transition: width .9s linear; }
.switch { display: flex; align-items: center; gap: 10px; font-weight: 700; margin: 0; cursor: pointer; }
.switch input { width: 22px; height: 22px; accent-color: var(--green); margin: 0; }
.login { max-width: 380px; margin: 0 auto; }
.empty { color: var(--muted); padding: 8px 0; }

/* Página do QR */
.qrpage { background: #fff; }
.toolbar { text-align: center; padding: 16px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.sheet { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8mm; width: 190mm; margin: 0 auto; }
.qrcard { border: 3px solid var(--line); border-radius: 16px; background: var(--bg); text-align: center; padding: 6mm 5mm; break-inside: avoid; }
.qrcard .logo { font-size: 30px; color: var(--green); text-shadow: 2px 2px 0 var(--ink); }
.qrcard .logo span { color: var(--accent); }
.qrcard h3 { font-family: var(--display); font-weight: 400; margin: 3mm 0; font-size: 17px; line-height: 1.15; }
.qrcard img { width: 62mm; height: 62mm; background: #fff; padding: 2mm; border: 2px solid var(--line); border-radius: 8px; }
.qrcard p { margin: 2mm 0 0; font-size: 12px; font-weight: 600; }
@media print {
  .noprint { display: none !important; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { size: A4; margin: 10mm; }
}
@media (max-width: 720px) { .sheet { width: auto; grid-template-columns: 1fr; padding: 0 16px; } }
