* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background: #1a1a2e;
    color: #eee;
    font-family: 'Segoe UI', system-ui, sans-serif;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}
#app { width: 100%; max-width: 450px; padding: 20px; }
h1 { text-align: center; margin-bottom: 20px; font-size: 1.5rem; }

/* Song picker */
.song-list { list-style: none; max-height: 400px; overflow-y: auto; }
.song-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px; border-bottom: 1px solid #333;
    cursor: pointer; transition: background 0.2s;
}
.song-item:hover { background: #16213e; }
.song-item img { width: 50px; height: 50px; border-radius: 4px; }
.song-info { flex: 1; overflow: hidden; }
.song-title { font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-artist { font-size: 0.75rem; color: #888; }
.play-btn {
    background: #1db954; color: white; border: none;
    padding: 6px 16px; border-radius: 20px; cursor: pointer;
    font-size: 0.8rem;
}
.play-btn:hover { background: #1ed760; }

/* Search */
.search-bar {
    width: 100%; padding: 10px 14px; margin-bottom: 12px;
    background: #16213e; border: 1px solid #333; border-radius: 8px;
    color: #eee; font-size: 0.9rem;
}
.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tab {
    padding: 6px 14px; background: #16213e; border-radius: 20px;
    font-size: 0.8rem; cursor: pointer; border: 1px solid #333;
}
.tab.active { background: #1db954; border-color: #1db954; }

/* Game canvas */
#game-container { position: relative; display: none; }
#game-canvas {
    display: block; margin: 0 auto;
    background: #0f0f1e; border-radius: 8px;
    touch-action: none;
}
#overlay {
    position: absolute; inset: 0; display: flex;
    align-items: center; justify-content: center;
    background: rgba(0,0,0,0.7); border-radius: 8px;
}
.score-display { position: absolute; top: 10px; right: 10px; font-size: 1.2rem; font-weight: bold; }