:root { color-scheme: light dark; --gap: 12px; }
* { box-sizing: border-box; }
body { font-family: system-ui, sans-serif; max-width: 720px; margin: 0 auto; padding: var(--gap); }

header { display: flex; justify-content: space-between; align-items: center; }
h1 { margin: 0; font-weight: 600; letter-spacing: 0.05em; }

#search-form { display: flex; gap: 8px; margin: var(--gap) 0; }
#search-input { flex: 1; padding: 8px; }
button { padding: 8px 12px; cursor: pointer; }
button[aria-pressed="true"] { outline: 2px solid currentColor; }

#status { min-height: 1.4em; margin: 0 0 var(--gap); font-size: 0.9em; opacity: 0.8; }
#status.error { color: #d33; opacity: 1; }

#now { display: grid; gap: var(--gap); justify-items: center; text-align: center; }
#cover { width: min(320px, 80vw); aspect-ratio: 1; object-fit: cover; background: #8884; border-radius: 6px; }
#title { font-weight: 600; }
#channel { font-size: 0.9em; opacity: 0.7; }

#seek-row, #volume-row { display: flex; align-items: center; gap: 8px; width: min(420px, 100%); }
#seek, #volume { flex: 1; }
#seek-row span { font-variant-numeric: tabular-nums; font-size: 0.8em; min-width: 3ch; }
#controls { display: flex; gap: 8px; }

#player-box { width: 200px; height: 200px; background: #000; }
#player-box iframe { width: 100%; height: 100%; }

#results { list-style: none; padding: 0; margin: var(--gap) 0 0; display: grid; gap: 4px; }
#results button { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 6px; }
#results img { width: 48px; height: 48px; object-fit: cover; border-radius: 3px; flex: none; }
#results .t { font-size: 0.9em; }
#results .c { font-size: 0.75em; opacity: 0.7; }
#results li.active button { outline: 2px solid currentColor; }

dialog { max-width: 460px; width: 92vw; }
dialog label { display: block; margin: var(--gap) 0 4px; }
dialog label.check { display: flex; gap: 8px; align-items: center; }
dialog .row { display: flex; gap: 8px; }
dialog .row input { flex: 1; padding: 8px; }
dialog .actions { flex-wrap: wrap; justify-content: flex-end; margin-top: var(--gap); }
#settings-msg { min-height: 1.4em; font-size: 0.85em; }
#settings-msg.error { color: #d33; }
#settings-msg.ok { color: #2a8a2a; }
