:root {
  --bg: #14161c;
  --card: #1e2129;
  --card2: #262a34;
  --text: #ececec;
  --muted: #9aa0ab;
  --accent: #e6427a;
  --accent2: #ff6fa3;
  --red: #e5484d;
  --green: #3ecf8e;
  --yellow: #f5c34d;
  --border: #333846;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  padding-bottom: 40px;
}

header.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

header.top h1 {
  font-size: 1.1rem;
  margin: 0;
  color: var(--accent2);
}

header.top a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

h2 { margin-top: 0; font-size: 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

input[type=text], input[type=password], input[type=url] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card2);
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 10px;
}

button, .btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

button:hover, .btn:hover { background: var(--accent2); }

button.secondary { background: var(--card2); border: 1px solid var(--border); color: var(--text); }
button.danger { background: var(--red); }
button.small { padding: 6px 10px; font-size: 0.85rem; }

ul.plain { list-style: none; padding: 0; margin: 0; }

.song-row, .result-row, .user-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}
.song-row:last-child, .result-row:last-child, .user-row:last-child { border-bottom: none; }

.song-title { font-weight: 600; }
.song-sub { color: var(--muted); font-size: 0.85rem; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge.red { background: rgba(229,72,77,0.15); color: var(--red); }
.badge.green { background: rgba(62,207,142,0.15); color: var(--green); }
.badge.yellow { background: rgba(245,195,77,0.15); color: var(--yellow); }

.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; font-size: 0.9rem; }
.flash.error { background: rgba(229,72,77,0.15); color: var(--red); }
.flash.success { background: rgba(62,207,142,0.15); color: var(--green); }

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

textarea.copylist {
  width: 100%;
  min-height: 160px;
  background: var(--card2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  font-family: Consolas, monospace;
  font-size: 0.85rem;
}

.qr-box { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.qr-box img { background: white; padding: 8px; border-radius: 8px; }

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table a { color: var(--accent2); text-decoration: none; font-weight: 600; }
table a:hover { text-decoration: underline; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; }

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

.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tabs a { padding: 8px 12px; border-radius: 8px; background: var(--card2); color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.tabs a.active { background: var(--accent); color: white; }

@media (max-width: 480px) {
  main { padding: 10px; }
  .qr-box { flex-direction: column; align-items: flex-start; }
}
