:root {
  --bg: #0b0a0a;
  --bg-soft: #121110;
  --fg: #efe9e1;
  --fg-dim: #9a938a;
  --accent: #d98a5f;
  --line: #232120;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Helvetica Neue", Arial, sans-serif;
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 32px 20px;
}

.wrap {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.brand-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 13px;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--fg);
  text-transform: uppercase;
}

.tagline {
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e0553f;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.artwork {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 340px;
  border-radius: 6px;
  background: var(--bg-soft) center/cover no-repeat;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
  transition: opacity 0.6s ease;
}

.now-playing-label {
  font-family: "SFMono-Regular", Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--fg-dim);
  text-transform: uppercase;
}

.track-title {
  font-size: 22px;
  font-weight: 500;
  text-align: center;
  margin: 4px 0 0;
}

.track-artist {
  font-size: 14px;
  color: var(--fg-dim);
  text-align: center;
  margin-top: 2px;
}

.progress-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-bar {
  width: 100%;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 1s linear;
}

.time-row {
  display: flex;
  justify-content: space-between;
  font-family: "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
  color: var(--fg-dim);
}

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.play-btn:hover {
  border-color: var(--accent);
  transform: scale(1.03);
}

.volume-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 200px;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fg);
  cursor: pointer;
}

.listeners {
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: 0.03em;
}

.footer-note {
  font-size: 11px;
  color: var(--fg-dim);
  text-align: center;
  opacity: 0.6;
  margin-top: 8px;
}

.queue-panel {
  width: 100%;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.queue-title {
  font-family: "SFMono-Regular", Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--fg-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.queue-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--fg-dim);
  padding: 4px 0;
}

.queue-row .q-title { color: var(--fg); }

/* ---------- Admin ---------- */

.admin-wrap {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px 20px;
}

.card h2 {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 0 0 12px;
  font-weight: 600;
}

input[type="text"], input[type="password"], input[type="number"], input[type="file"] {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--fg);
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 13px;
  width: 100%;
}

label { font-size: 11px; color: var(--fg-dim); display: block; margin: 8px 0 4px; }

button.btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg);
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 12px;
  letter-spacing: 0.05em;
  cursor: pointer;
}

button.btn:hover { border-color: var(--accent); }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); }
th { color: var(--fg-dim); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }

.row-actions { display: flex; gap: 6px; }
.row-actions button { font-size: 11px; padding: 4px 8px; }

.status-line { font-size: 12px; color: var(--fg-dim); }
