/* LiveLyrics operator console. Dark, keyboard-friendly, one-glance. */
:root {
    --bg:       #0f172a;
    --panel:    #1e293b;
    --border:   #334155;
    --text:     #e2e8f0;
    --muted:    #94a3b8;
    --accent:   #38bdf8;
    --accent-2: #f472b6;
    --danger:   #ef4444;
    --ok:       #22c55e;
}

* { box-sizing: border-box; }

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

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--panel);
    border-bottom: 1px solid var(--border);
}
header h1 { margin: 0; font-size: 18px; letter-spacing: 0.02em; }
#transport-badge {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
}
#transport-badge[data-transport="sse"]      { color: var(--ok); }
#transport-badge[data-transport="polling"]  { color: #fbbf24; }
#transport-badge[data-transport="offline"]  { color: var(--danger); }

main {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 16px;
    padding: 16px;
    max-width: 1400px;
    margin: 0 auto;
}
@media (max-width: 900px) { main { grid-template-columns: 1fr; } }

.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
}
.panel h2 { margin: 0 0 10px; font-size: 14px; text-transform: uppercase; color: var(--muted); letter-spacing: 0.08em; }

button, input, textarea {
    font: inherit;
    color: inherit;
    background: #0b1220;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 10px;
}
button { cursor: pointer; }
button:hover { border-color: var(--accent); }
button.primary { background: var(--accent); color: #0b1220; border-color: transparent; font-weight: 600; }
button.danger  { background: transparent; color: var(--danger); border-color: var(--danger); }
button.ghost   { background: transparent; }

.song-list { list-style: none; padding: 0; margin: 0; max-height: 55vh; overflow-y: auto; }
.song-list li {
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}
.song-list li:hover { background: rgba(56, 189, 248, 0.08); }
.song-list li.active { background: rgba(56, 189, 248, 0.18); outline: 1px solid var(--accent); }
.song-list .meta { color: var(--muted); font-size: 12px; }

.transport-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.lines {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 60vh;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 6px;
}
.lines li {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    line-height: 1.35;
}
.lines li:last-child { border-bottom: none; }
.lines li.active {
    background: linear-gradient(90deg, rgba(56,189,248,0.25), transparent);
    border-left: 3px solid var(--accent);
    padding-left: 9px;
    font-weight: 600;
}
.lines li.next { color: var(--accent-2); }

.editor { display: grid; gap: 8px; margin-top: 12px; }
.editor input, .editor textarea { width: 100%; }
.editor textarea { min-height: 200px; font-family: ui-monospace, Menlo, Consolas, monospace; }

.hint { color: var(--muted); font-size: 12px; margin-top: 8px; }
kbd {
    background: #0b1220;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 6px;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 12px;
}
