:root {
  --bg: #0e0b1e;
  --bg-soft: #181233;
  --card: #1f1840;
  --card-2: #271d52;
  --accent: #8b5cf6;
  --accent-2: #ec4899;
  --text: #f3f0ff;
  --muted: #a89fce;
  --good: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(1200px 700px at 20% -10%, #2a1d5e 0%, var(--bg) 55%) fixed;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

a { color: var(--accent); }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 18px 80px;
}

header.app {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
header.app .logo {
  font-size: 30px;
  filter: drop-shadow(0 2px 6px rgba(139, 92, 246, 0.6));
}
header.app h1 {
  font-size: 1.35rem;
  margin: 0;
  letter-spacing: 0.3px;
}
header.app .sub { color: var(--muted); font-size: 0.85rem; margin: 2px 0 0; }

.card {
  background: linear-gradient(160deg, var(--card), var(--card-2));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

h2 { font-size: 1.05rem; margin: 0 0 14px; }

label { display: block; font-size: 0.82rem; color: var(--muted); margin: 0 0 6px; }

input[type="text"], input[type="number"], input[type="tel"] {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s;
}
input:focus { border-color: var(--accent); }

.field { margin-bottom: 14px; }

button {
  cursor: pointer;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  transition: transform 0.08s, opacity 0.15s;
}
button:hover { transform: translateY(-1px); }
button:active { transform: translateY(0); }
button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
button.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
}
button.small { padding: 7px 11px; font-size: 0.8rem; }

.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 0; }

.pin-display {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 8px;
  text-align: center;
  margin: 6px 0 4px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.qr { text-align: center; }
.qr img { width: 220px; height: 220px; background: #fff; padding: 10px; border-radius: 12px; }

.muted { color: var(--muted); font-size: 0.85rem; }
.center { text-align: center; }

.copybox {
  display: flex; gap: 8px; align-items: center;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 8px 10px; margin-top: 6px;
}
.copybox code { font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }

/* --- Wunsch-Liste --- */
ul.requests { list-style: none; margin: 0; padding: 0; }

li.request {
  display: flex; align-items: center; gap: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  transition: background 0.2s, opacity 0.2s;
}
li.request.played { opacity: 0.55; }
li.request.played .title { text-decoration: line-through; }
li.request.archived { opacity: 0.4; }
li.request.flash { animation: flash 1s ease; }
@keyframes flash {
  from { background: rgba(139, 92, 246, 0.45); }
  to { background: rgba(0, 0, 0, 0.2); }
}

li.request .meta { flex: 1; min-width: 0; }
li.request .title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
li.request .artist { color: var(--muted); font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
li.request .badge {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 2px 7px; border-radius: 999px; margin-left: 6px; vertical-align: middle;
}
.badge.played { background: rgba(52, 211, 153, 0.2); color: var(--good); }
.badge.archived { background: rgba(168, 159, 206, 0.2); color: var(--muted); }

.like-btn {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px; padding: 8px 12px; min-width: 56px;
  color: var(--text);
}
.like-btn.liked { background: linear-gradient(120deg, var(--accent), var(--accent-2)); border-color: transparent; }
.like-btn .heart { font-size: 1.1rem; line-height: 1; }
.like-btn .count { font-weight: 700; font-size: 0.95rem; }

.dj-actions { display: flex; gap: 6px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: #2a2152; color: var(--text);
  padding: 11px 18px; border-radius: 10px; box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.1);
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s;
  font-size: 0.9rem; z-index: 50; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }
.toast.error { border-color: var(--danger); }

.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--danger); margin-right: 6px; }
.status-dot.online { background: var(--good); box-shadow: 0 0 8px var(--good); }

.empty { text-align: center; color: var(--muted); padding: 30px 10px; }

.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tabs button { flex: 1; background: transparent; border: 1px solid rgba(255,255,255,0.14); }
.tabs button.active { background: linear-gradient(120deg, var(--accent), var(--accent-2)); border-color: transparent; }

.hidden { display: none !important; }

.stat-line { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.stat-line .count-pill { background: rgba(255,255,255,0.08); padding: 4px 10px; border-radius: 999px; font-size: 0.8rem; }
