* { box-sizing: border-box; margin: 0; padding: 0; font-family: Inter, Arial, sans-serif; }
body { background: #090910; color: #fff; min-height: 100vh; }
button, input, textarea, select { font: inherit; }
button { border: 0; border-radius: 999px; padding: 11px 16px; background: #1db954; color: #061008; font-weight: 800; cursor: pointer; }
button:hover { filter: brightness(1.08); }
button.secondary { background: #252536; color: #fff; }
button.danger { background: #ff4d4d; color: #fff; width: 100%; }
input, textarea, select { width: 100%; background: #0f0f18; border: 1px solid #2a2a3c; color: #fff; border-radius: 14px; padding: 13px; outline: none; }
textarea { min-height: 95px; resize: vertical; }
label { color: #aaa; font-size: 13px; margin-top: 8px; display: block; }
.hidden { display: none !important; }
.muted { color: #aaa; }
.stack { display: grid; gap: 14px; }
.topbar { height: 72px; background: rgba(15,15,24,.94); border-bottom: 1px solid #272739; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); }
.brand { color: #1db954; font-size: 26px; font-weight: 900; letter-spacing: -1px; }
nav { display: flex; gap: 10px; }
.nav-btn { background: transparent; color: #ccc; padding: 9px 12px; }
.nav-btn.active, .nav-btn:hover { background: #1c1c2a; color: #1db954; }
#authStatus { color: #aaa; font-size: 14px; }
.auth-shell { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 32px; background: radial-gradient(circle at top, #1b2f24, #090910 55%); }
.auth-card { max-width: 680px; width: 100%; background: #141420; border: 1px solid #29293d; border-radius: 28px; padding: 36px; box-shadow: 0 25px 90px rgba(0,0,0,.35); }
.auth-card h1 { font-size: clamp(34px, 6vw, 58px); letter-spacing: -2px; line-height: 1; margin-bottom: 14px; }
.auth-card p { color: #bbb; line-height: 1.5; margin-bottom: 22px; }
.auth-grid { display: grid; gap: 12px; }
.button-row { display: flex; gap: 10px; }
.message { color: #1db954; margin-top: 10px; min-height: 20px; }
.app-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr) 310px; gap: 24px; padding: 28px; align-items: start; }
.card { background: #151520; border: 1px solid #29293d; border-radius: 22px; padding: 20px; }
.card h2, .card h3 { margin-bottom: 14px; }
.left-panel, .right-panel { display: grid; gap: 20px; position: sticky; top: 96px; }
.profile-card { text-align: center; }
.avatar { width: 96px; height: 96px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 42px; font-weight: 900; background: linear-gradient(135deg, #1db954, #246bfe); color: #07100a; }
#profileHandle { color: #888; margin-top: 4px; }
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 18px; }
.stats div { background: #10101a; border-radius: 16px; padding: 12px 8px; }
.stats strong { color: #1db954; display: block; }
.stats span { color: #aaa; font-size: 12px; }
.composer { display: grid; gap: 12px; }
.post, .room, .trend, .friend-row { background: #151520; border: 1px solid #29293d; border-radius: 22px; padding: 18px; }
.post-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.small-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #1db954; color: #07100a; font-weight: 900; }
.subtle { color: #888; font-size: 13px; }
.song-card { margin: 14px 0; background: #0e0e16; border-radius: 18px; padding: 14px; display: flex; gap: 14px; align-items: center; }
.album { width: 58px; height: 58px; border-radius: 14px; background: linear-gradient(135deg, #ff4d4d, #8b5cf6); flex: 0 0 auto; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.actions button { background: #222234; color: #ddd; padding: 8px 12px; }
.actions button.liked { background: #1db954; color: #07100a; }
.room-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.room-badge { background: #222234; padding: 8px 12px; border-radius: 999px; color: #aaa; font-size: 13px; }
@media (max-width: 1050px) { .app-layout { grid-template-columns: 1fr; } .left-panel, .right-panel { position: static; } }
@media (max-width: 650px) { .topbar { height: auto; flex-direction: column; padding: 16px; gap: 12px; } .app-layout { padding: 16px; } .button-row { flex-direction: column; } }
.button-column { display: grid; gap: 10px; margin-top: 14px; }
.now-playing { margin-top: 6px; }
.compact-song { margin: 0; padding: 12px; }
.album-img { width: 58px; height: 58px; border-radius: 14px; object-fit: cover; flex: 0 0 auto; }
.profile-music-buttons { margin: 10px 0 4px; }
.profile-music-buttons button { font-size: 13px; padding: 9px 12px; }
