:root {
  --bg: #0c0d12;
  --surface: #15161d;
  --surface-2: #1d1f29;
  --border: #262832;
  --text: #f5f5f7;
  --text-muted: #9a9aa5;
  --accent: #ff3b6b;
  --accent-2: #ffd23f;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  padding: 24px 16px 56px;
}

.view { max-width: 480px; margin: 0 auto; }
.hidden { display: none !important; }

/* ---------- Header / signature equalizer ---------- */
.header { text-align: center; margin-bottom: 20px; }

.logo {
  max-width: 90px;
  max-height: 60px;
  margin: 0 auto 12px;
  display: block;
}

.brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 26px;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}
.brand.small { font-size: 20px; }
.subhead { color: var(--text-muted); font-size: 14px; margin: 0; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  color: var(--accent-2);
  font-weight: 600;
  margin: 0 0 10px;
}

/* ---------- Toggle ---------- */
.toggle {
  display: flex;
  background: var(--surface-2);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 12px;
}
.toggle-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 6px;
  border-radius: 8px;
  cursor: pointer;
}
.toggle-btn.active {
  background: var(--accent);
  color: #fff;
}

/* ---------- Search ---------- */
.search-row input,
.field input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  outline: none;
}
.search-row input:focus,
.field input:focus {
  border-color: var(--accent);
}

.results {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}
.result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
}
.result-item:hover,
.result-item:focus-visible {
  background: var(--surface-2);
  border-color: var(--border);
}
.result-item img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-2);
  flex-shrink: 0;
}
.result-meta { min-width: 0; }
.result-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.result-artist {
  font-size: 14px;
  color: var(--text-muted);
  margin: 3px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-text {
  font-size: 13px;
  color: var(--text-muted);
  margin: 10px 2px 0;
}
.status-text.center { text-align: center; margin-top: 40px; }

/* ---------- Selected card ---------- */
.selected-track {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  margin-bottom: 14px;
}
.sel-art { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.sel-title { font-weight: 700; margin: 0; font-size: 15px; }
.sel-artist { color: var(--text-muted); margin: 2px 0 0; font-size: 13px; }
.clear-btn {
  margin-left: auto;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
}

.field { margin-bottom: 12px; }
.field label {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.submit-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, var(--accent), #ff6a3d);
  color: #fff;
  border: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 16px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}
.submit-btn:active { transform: scale(0.98); }
.submit-btn:disabled { opacity: .5; cursor: default; }

.tip-btn {
  background: linear-gradient(135deg, var(--accent-2), #ff9d3d);
  color: #1a1200;
}

/* ---------- Admin gear ---------- */
.gear-btn {
  display: block;
  margin: 30px auto 0;
  background: transparent;
  border: none;
  color: var(--text-muted);
  opacity: .35;
  font-size: 18px;
  cursor: pointer;
  padding: 10px;
}
.gear-btn:hover { opacity: .8; }

.tip-card { text-align: center; }

.contact-btn {
  display: block;
  text-align: center;
  margin: 10px auto 0;
  max-width: 200px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.contact-btn:hover { color: var(--text); border-color: var(--text-muted); }

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10;
}
.modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  width: 100%;
  max-width: 360px;
}

.text-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px;
}
.text-btn.danger { color: var(--accent); }

/* ---------- Admin queue ---------- */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  margin-bottom: 18px;
}
.admin-actions { display: flex; gap: 6px; }

.queue { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.queue-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.queue-item.played { opacity: .45; }
.queue-item img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: var(--surface-2); flex-shrink: 0; }
.queue-meta { flex: 1; min-width: 0; }
.queue-title { font-weight: 700; font-size: 14px; margin: 0; }
.queue-artist { color: var(--text-muted); font-size: 12.5px; margin: 2px 0 0; }
.queue-sub { font-size: 12px; color: var(--accent-2); margin: 4px 0 0; }
.queue-actions { display: flex; gap: 6px; flex-shrink: 0; }
.icon-btn {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font-size: 15px;
}
.icon-btn.played-toggle.is-played { background: var(--accent); border-color: var(--accent); }
