:root {
    --primary: #8b5cf6;
    --primary-light: #a78bfa;
    --accent: #ec4899;
    --bg: #0f0f0f;
    --surface: #1a1a1a;
    --surface-2: #252525;
    --text: #fff;
    --text-sec: #9ca3af;
    --text-tert: #6b7280;
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Outfit', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; padding: 20px; }
.main { display: flex; flex-direction: column; gap: 16px; }
.player { background: var(--surface); border-radius: var(--radius); padding: 24px; border: 1px solid rgba(255,255,255,0.06); }
.track { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.artwork { width: 56px; height: 56px; background: linear-gradient(135deg, var(--surface-2), var(--primary)); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; opacity: 0.8; transition: var(--transition); }
.track.playing .artwork { animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
.track-info { flex: 1; min-width: 0; }
.track-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-artist { font-size: 13px; color: var(--text-sec); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.time { font-size: 11px; color: var(--text-tert); min-width: 32px; text-align: center; }
.progress-bar { flex: 1; height: 4px; background: var(--surface-2); border-radius: 2px; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 2px; width: 0%; transition: width 0.1s linear; }
.player:not(.has-track) .progress { opacity: 0.5; }
.controls { display: flex; align-items: center; justify-content: center; gap: 8px; }
.control-btn { background: none; border: none; padding: 12px; cursor: pointer; color: var(--text-sec); border-radius: 50%; transition: var(--transition); display: flex; align-items: center; justify-content: center; }
.control-btn:hover { background: var(--surface-2); color: var(--text); }
.control-btn:active { transform: scale(0.95); }
.control-btn.main-btn { width: 48px; height: 48px; background: var(--primary); color: var(--text); padding: 0; }
.control-btn.main-btn:hover { background: var(--primary-light); transform: scale(1.05); }
.control-btn.active { color: var(--primary); }
.control-btn i { width: 20px; height: 20px; }
.control-btn.main-btn i { width: 24px; height: 24px; }
.playlist { background: var(--surface); border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.06); overflow: hidden; }
.playlist-header { padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.tabs { display: flex; gap: 8px; justify-content: center; }
.tab { background: none; border: none; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--text-sec); cursor: pointer; transition: var(--transition); font-size: 12px; font-weight: 500; display: flex; align-items: center; gap: 4px; }
.tab:hover { background: var(--surface-2); color: var(--text); }
.tab.active { background: var(--primary); color: var(--text); }
.tab i { width: 14px; height: 14px; }
.songs { max-height: 320px; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; outline: none; }
.songs::-webkit-scrollbar { display: none; }
.song-item { padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.06); cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 12px; }
.song-item:last-child { border-bottom: none; }
.song-item:hover { background: var(--surface-2); }
.song-item.playing { background: rgba(139, 92, 246, 0.08); border-left: 3px solid var(--primary); }
.song-item.playing .song-title { color: var(--primary); font-weight: 600; }
.song-info { flex: 1; min-width: 0; }
.song-title { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song-artist { font-size: 13px; color: var(--text-sec); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song-action-btn { display: flex; background: none; border: none; padding: 8px; cursor: pointer; color: var(--text-tert); border-radius: 50%; transition: var(--transition); }
.song-action-btn:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.song-action-btn.liked { color: var(--accent); }
.song-action-btn i { width: 16px; height: 16px; }
.empty-state { padding: 40px 16px; text-align: center; color: var(--text-sec); }
.empty-state i { width: 48px; height: 48px; margin-bottom: 12px; opacity: 0.5; }
.empty-state h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.login-screen { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.login-box { display: flex; gap: 8px; }
.login-box input { width: 280px; padding: 12px 16px; background: var(--surface); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-sm); color: var(--text); font-size: 14px; font-family: inherit; outline: none; }
.login-box input:focus { border-color: var(--primary); }
.login-box button { width: 48px; height: 48px; background: var(--primary); border: none; border-radius: var(--radius-sm); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.login-box button i { width: 20px; height: 20px; }
.login-box button:hover { background: var(--primary-light); }
.login-box button:disabled { background: var(--surface-2); cursor: not-allowed; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (max-width: 640px) { .app { padding: 16px; } .track { flex-direction: column; text-align: center; gap: 12px; } .controls { gap: 4px; } .tabs { flex-wrap: wrap; } }
