:root{--bg:#121212;--surface:#1e1e1e;--surface2:#2a2a2a;--border:#333;--text:#e8e8e8;--text-muted:#999;--accent:#1db954;--accent-h:#1ed760;--danger:#e05c5c;--star-on:#f5c518;--star-off:#444;--radius:10px;--nav-h:60px}*,:before,:after{box-sizing:border-box;margin:0;padding:0}html{font-size:16px}body{background:var(--bg);color:var(--text);min-height:100vh;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;line-height:1.5}img{max-width:100%;display:block}button{cursor:pointer;font:inherit}a{color:inherit;text-decoration:none}.spinner-wrap{flex-direction:column;justify-content:center;align-items:center;gap:1rem;min-height:60vh;display:flex}.spinner{border:3px solid var(--border);border-top-color:var(--accent);border-radius:50%;width:40px;height:40px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.spinner-msg{color:var(--text-muted);font-size:.9rem}.navbar{z-index:100;height:var(--nav-h);border-bottom:1px solid var(--border);background:#0d0d0d;align-items:center;gap:1.5rem;padding:0 1.5rem;display:flex;position:sticky;top:0}.navbar-brand{color:var(--accent);letter-spacing:-.02em;flex-shrink:0;font-size:1.1rem;font-weight:700}.navbar-links{flex:1;gap:.25rem;display:flex}.nav-link{color:var(--text-muted);border-radius:6px;padding:.35rem .8rem;font-size:.9rem;transition:color .15s,background .15s}.nav-link:hover{color:var(--text);background:var(--surface2)}.nav-link.active{color:var(--text);font-weight:600}.navbar-user{flex-shrink:0;align-items:center;gap:.75rem;display:flex}.navbar-avatar{object-fit:cover;border-radius:50%;width:30px;height:30px}.navbar-name{color:var(--text-muted);text-overflow:ellipsis;white-space:nowrap;max-width:140px;font-size:.85rem;overflow:hidden}.btn-primary{background:var(--accent);color:#000;border:none;border-radius:20px;padding:.45rem 1.1rem;font-size:.85rem;font-weight:600;transition:background .15s,opacity .15s}.btn-primary:hover:not(:disabled){background:var(--accent-h)}.btn-primary:disabled{opacity:.5;cursor:not-allowed}.btn-ghost{color:var(--text-muted);border:1px solid var(--border);background:0 0;border-radius:6px;padding:.3rem .7rem;font-size:.82rem;transition:color .15s,border-color .15s}.btn-ghost:hover{color:var(--text);border-color:var(--text-muted)}.btn-spotify{background:var(--accent);color:#000;border:none;border-radius:30px;justify-content:center;align-items:center;gap:.6rem;width:100%;max-width:300px;padding:.75rem 2rem;font-size:1rem;font-weight:700;transition:background .15s,transform .1s;display:flex}.btn-spotify:hover{background:var(--accent-h);transform:translateY(-1px)}.login-page{justify-content:center;align-items:center;min-height:100vh;padding:2rem;display:flex}.login-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);text-align:center;flex-direction:column;align-items:center;gap:1.25rem;width:100%;max-width:400px;padding:3rem 2.5rem;display:flex}.login-logo{font-size:3.5rem;line-height:1}.login-title{letter-spacing:-.03em;font-size:1.8rem;font-weight:700}.login-subtitle{color:var(--text-muted);max-width:280px;font-size:.95rem;line-height:1.6}.page{max-width:1280px;margin:0 auto;padding:1.5rem 1.5rem 4rem}.dashboard-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:1.5rem;display:flex}.dashboard-stats{color:var(--text-muted);gap:1.5rem;font-size:.9rem;display:flex}.dashboard-stats strong{color:var(--text)}.dashboard-actions{align-items:center;gap:.75rem;display:flex}.sync-progress,.sync-done{color:var(--text-muted);font-size:.82rem}.sync-done{color:var(--accent)}.track-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:1.25rem;display:grid}.track-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;transition:border-color .15s,transform .15s;display:flex;overflow:hidden}.track-card:hover{border-color:var(--text-muted);transform:translateY(-2px)}.track-art{aspect-ratio:1;background:var(--surface2);overflow:hidden}.track-art img{object-fit:cover;width:100%;height:100%}.track-art-placeholder{width:100%;height:100%;color:var(--border);justify-content:center;align-items:center;font-size:2.5rem;display:flex}.track-info{flex-direction:column;flex:1;gap:.2rem;padding:.75rem;display:flex}.track-name{white-space:nowrap;text-overflow:ellipsis;font-size:.88rem;font-weight:600;overflow:hidden}.track-artist{color:var(--text-muted);white-space:nowrap;text-overflow:ellipsis;font-size:.82rem;overflow:hidden}.track-album{color:var(--text-muted);white-space:nowrap;text-overflow:ellipsis;margin-bottom:.4rem;font-size:.78rem;overflow:hidden}.star-rating{gap:2px;display:flex}.star{color:var(--star-off);background:0 0;border:none;padding:0;line-height:1;transition:color .1s,transform .1s}.star:hover{transform:scale(1.15)}.star.filled{color:var(--star-on)}.page-title-row{align-items:baseline;gap:1rem;margin-bottom:1.5rem;display:flex}.page-title{font-size:1.4rem;font-weight:700}.page-subtitle{color:var(--text-muted);font-size:.85rem}.ratings-list{flex-direction:column;gap:.75rem;display:flex}.rating-row{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);align-items:center;gap:1rem;padding:.75rem 1rem;transition:border-color .15s;display:flex}.rating-row:hover{border-color:var(--text-muted)}.rating-score{text-align:center;flex-shrink:0;min-width:2.5rem}.rating-number{color:var(--star-on);font-size:1.5rem;font-weight:700;line-height:1}.rating-max{color:var(--text-muted);font-size:.75rem}.rating-art{background:var(--surface2);border-radius:6px;flex-shrink:0;width:52px;height:52px;overflow:hidden}.rating-art img{object-fit:cover;width:100%;height:100%}.rating-info{flex:1;min-width:0}.rating-info .track-name{font-size:.92rem}.rating-info .track-artist{font-size:.83rem}.rating-info .track-album{font-size:.78rem}.rating-stars{flex-shrink:0}.error-banner{border:1px solid var(--danger);color:var(--danger);border-radius:var(--radius);background:#e05c5c1f;margin-bottom:1rem;padding:.75rem 1rem;font-size:.9rem}.empty-state{text-align:center;color:var(--text-muted);flex-direction:column;gap:.5rem;padding:4rem 1rem;display:flex}.empty-state strong{color:var(--text)}@media (width<=600px){.navbar-name{display:none}.track-grid{grid-template-columns:repeat(2,1fr)}.rating-row{gap:.6rem;padding:.6rem .75rem}.rating-art{width:44px;height:44px}.rating-stars{display:none}}
