:root {
    color-scheme: dark;
    --bg: #12141a;
    --card-bg: #1b1e27;
    --text: #e8e9ee;
    --muted: #8a8fa3;
    --accent: #5b8cff;
    --accent-active: #ff5b6e;
    --error: #ff6b6b;
    --border: #2a2e3a;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

.center-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

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

.consumer-card {
    text-align: center;
    max-width: 360px;
    width: 100%;
}

h1 { margin-top: 0; }

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

.error { color: var(--error); }

button {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    cursor: pointer;
}

button:hover { filter: brightness(1.1); }

button.btn-secondary, a.btn-secondary {
    background: var(--border);
}

a.btn-secondary {
    color: var(--text);
    text-decoration: none;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    display: inline-block;
}

a.btn-secondary:hover { filter: brightness(1.1); }

button.talk-btn { background: var(--accent-active); }
button.talk-btn.active { filter: brightness(1.3); }

input[type="text"], input[type="password"], input[type="file"] {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 6px;
    padding: 0.5rem;
    width: 100%;
    margin: 0.4rem 0 0.8rem;
}

label { display: block; margin-top: 0.5rem; }

.admin-shell {
    max-width: 720px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

ul#playlist-list, ol#playlist-track-list {
    list-style: none;
    padding: 0;
}

ul#playlist-list li, ol#playlist-track-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

ul#playlist-list li a, ol#playlist-track-list li a {
    flex: 1;
    color: var(--text);
}
