:root {
  --bg: #0e1014;
  --card: #171a21;
  --card-border: #262b36;
  --text: #e7e9ee;
  --muted: #9aa3b2;
  --accent: #1db954;
  --accent-hover: #1ed760;
  --input: #11141a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #1a1f2b, var(--bg));
  color: var(--text);
}

.card {
  width: 100%;
  max-width: 520px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

h1 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.subtitle {
  margin: 0 0 24px;
  color: var(--muted);
}

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

.actions {
  margin: 24px 0;
}

.btn {
  appearance: none;
  border: 1px solid var(--card-border);
  background: #20242e;
  color: var(--text);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s, transform 0.05s;
}

.btn:hover {
  background: #2a2f3b;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn.primary {
  background: var(--accent);
  border-color: transparent;
  color: #06210f;
  font-weight: 600;
}

.btn.primary:hover {
  background: var(--accent-hover);
}

.btn.big {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0 0 8px;
}

.steps li {
  position: relative;
  padding: 0 0 22px 42px;
  border-left: 2px solid var(--card-border);
  margin-left: 14px;
}

.steps li:last-child {
  border-left-color: transparent;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -15px;
  top: -2px;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #06210f;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}

select,
input[type="text"] {
  flex: 1;
  background: var(--input);
  border: 1px solid var(--card-border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.95rem;
  min-width: 0;
}

.linkbox {
  background: var(--input);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 16px;
  margin: 8px 0 20px;
}

.linkbox label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

.statusbar {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--card-border);
}

#meter {
  width: 100%;
  height: 14px;
  background: var(--input);
  border-radius: 7px;
  display: block;
  margin-bottom: 12px;
}

.status {
  margin: 6px 0;
  font-weight: 500;
}

.nowplaying {
  margin-bottom: 14px;
}

.np-label {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

#nowPlaying {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.now-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(29, 185, 84, 0.15);
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--text);
}

.now-chip::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.4s ease-in-out infinite;
}

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

.volume {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 10px;
}

.volume input {
  flex: 1;
  accent-color: var(--accent);
}

.volval {
  min-width: 3.2em;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.small {
  font-size: 0.8rem;
  margin-top: 6px;
}

.btn.small {
  padding: 7px 13px;
  font-size: 0.85rem;
}

.btn.live {
  background: #ff5555;
  border-color: transparent;
  color: #2a0000;
  font-weight: 600;
}

.mode-row {
  gap: 8px;
  margin-bottom: 6px;
}

.mode-btn {
  flex: 1;
}

.mode-btn.active {
  background: var(--accent);
  border-color: transparent;
  color: #06210f;
  font-weight: 600;
}

.mute-btn {
  width: 100%;
  margin-top: 12px;
}

/* Host: guest list */
.guests-panel {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--card-border);
}

.guests-panel h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.guest-row {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 10px 12px;
  background: var(--input);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  margin-bottom: 8px;
}

.guest-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.guest-name {
  flex: 1;
  font-size: 0.92rem;
}

.guest-meter {
  width: 60px;
  height: 10px;
  background: var(--bg);
  border-radius: 5px;
  flex: none;
}

.guest-vol {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.guest-vol input {
  flex: 1;
  accent-color: var(--accent);
}

/* Listener: name + mic */
.nameInput {
  width: 100%;
  background: var(--input);
  border: 1px solid var(--card-border);
  color: var(--text);
  padding: 12px;
  border-radius: 10px;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.micpanel {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--card-border);
}

.micpanel h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.micpanel .btn {
  width: 100%;
  margin-top: 10px;
}

.hint {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--card-border);
}

.hint h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.hint p {
  margin: 0;
  color: var(--muted);
}

.backlink {
  margin: 20px 0 0;
}

.backlink a,
footer a {
  color: var(--muted);
  text-decoration: none;
}

.backlink a:hover {
  color: var(--text);
}

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