:root {
  --bg: #120f0b;
  --panel: #20170f;
  --panel-2: #2b1d11;
  --gold: #d1a85b;
  --gold-soft: #8c6a35;
  --cream: #f2e7d0;
  --muted: #b6a58a;
  --danger: #c85c4a;
  --ok: #6aa46f;
  --warn: #d6a74d;
  --border: rgba(209, 168, 91, .28);
  --shadow: 0 18px 45px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--cream);
  background:
    radial-gradient(circle at 20% 0%, rgba(209,168,91,.08), transparent 32%),
    radial-gradient(circle at 80% 100%, rgba(130,77,35,.12), transparent 35%),
    linear-gradient(180deg, #100d09, #17100b 70%, #0e0b08);
}

a { color: inherit; }
button, input, select, textarea { font: inherit; }

.shell {
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.hero {
  text-align: center;
  margin: 6px auto 24px;
}

.badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(209,168,91,.08);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
}

h1 {
  margin: 14px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 8vw, 64px);
  line-height: .98;
  letter-spacing: -.035em;
  color: var(--gold);
  text-shadow: 0 3px 0 #4d3218;
}

.subtitle {
  margin: 0 auto;
  max-width: 620px;
  color: var(--muted);
  font-size: 16px;
}

.card {
  background: linear-gradient(180deg, rgba(43,29,17,.98), rgba(27,19,13,.98));
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-inner { padding: 22px; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { color: var(--cream); font-size: 14px; font-weight: 750; }
small, .help { color: var(--muted); font-size: 12px; }

input, select, textarea {
  width: 100%;
  color: var(--cream);
  background: #130f0b;
  border: 1px solid rgba(209,168,91,.24);
  border-radius: 12px;
  padding: 13px 14px;
  outline: none;
  transition: .18s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(209,168,91,.12);
}
textarea { min-height: 82px; resize: vertical; }

.primary, .secondary, .danger, .ghost {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 850;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease, opacity .12s ease;
}
.primary:hover, .secondary:hover, .danger:hover, .ghost:hover { transform: translateY(-1px); }
.primary:disabled, .secondary:disabled, .danger:disabled, .ghost:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.primary { background: linear-gradient(180deg, #e2bc70, #b4863d); color: #211507; }
.secondary { background: #3b2a18; color: var(--cream); border: 1px solid var(--border); }
.danger { background: rgba(200,92,74,.16); color: #f3b3a9; border: 1px solid rgba(200,92,74,.35); }
.ghost { background: transparent; color: var(--muted); border: 1px solid rgba(255,255,255,.08); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.actions .primary { flex: 1; min-width: 190px; }

.notice {
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: rgba(209,168,91,.07);
  color: var(--muted);
}
.notice.ok { background: rgba(106,164,111,.10); border-color: rgba(106,164,111,.35); color: #bfe1c2; }
.notice.error { background: rgba(200,92,74,.10); border-color: rgba(200,92,74,.35); color: #efb1a7; }

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.admin-top h2 { margin: 0; font-family: Georgia, serif; color: var(--gold); font-size: 28px; }

.queue {
  display: grid;
  gap: 12px;
}
.queue-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: center;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(209,168,91,.18);
  border-radius: 16px;
  padding: 14px;
}
.queue-item.next {
  border-color: rgba(209,168,91,.58);
  box-shadow: inset 0 0 0 1px rgba(209,168,91,.15), 0 10px 30px rgba(0,0,0,.18);
  background: linear-gradient(90deg, rgba(209,168,91,.09), rgba(255,255,255,.02));
}
.pos {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  color: var(--gold);
  font-weight: 900;
  font-size: 18px;
  background: #171009;
}
.song { font-size: 17px; font-weight: 850; }
.meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  border: 1px solid var(--border);
  color: var(--gold);
  margin-top: 7px;
}
.row-actions { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.row-actions button { padding: 9px 11px; font-size: 12px; }

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}
.toolbar input { max-width: 310px; }
.stat { color: var(--muted); font-size: 13px; margin-left: auto; }
.empty { text-align: center; padding: 36px 18px; color: var(--muted); }

.login-wrap { max-width: 480px; margin: 0 auto; }
.footer-note { text-align: center; color: #7e705e; font-size: 11px; margin-top: 16px; }

@media (max-width: 700px) {
  .shell { width: min(100% - 18px, 980px); padding-top: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .queue-item { grid-template-columns: 44px 1fr; }
  .row-actions { grid-column: 1 / -1; justify-content: stretch; }
  .row-actions button { flex: 1; }
  .stat { width: 100%; margin-left: 0; }
  .admin-top { align-items: flex-start; }
}
