/* ============================================
   Wavely - Music Streaming UI
   ============================================ */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --bg: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a2e;
    --bg-elevated: #222240;
    --text: #e8e8f0;
    --text-secondary: #8888aa;
    --text-muted: #5a5a7a;
    --border: #2a2a40;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --sidebar-width: 260px;
    --np-bar-height: 90px;
    --radius: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

#app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* ============================================
   Scrollbar
   ============================================ */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   Sidebar
   ============================================ */

.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: transform var(--transition);
    z-index: 100;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
}

.logo-icon {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

/* Search */
.search-section {
    padding: 16px 20px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.search-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    margin-left: 12px;
    flex-shrink: 0;
}

.search-box input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 0.9rem;
    padding: 10px 10px;
    font-family: inherit;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.clear-search-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    margin-right: 4px;
    line-height: 1;
}

.clear-search-btn:hover {
    color: var(--text);
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    margin-top: 4px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.search-suggestions.hidden {
    display: none;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background var(--transition);
}

.suggestion-item:hover,
.suggestion-item.active {
    background: var(--primary);
    color: white;
}

.suggestion-item.active .suggestion-meta {
    color: rgba(255, 255, 255, 0.7);
}

.suggestion-item.active .suggestion-icon {
    color: rgba(255, 255, 255, 0.7);
}

.suggestion-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.suggestion-info {
    flex: 1;
    min-width: 0;
}

.suggestion-title {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.suggestion-add {
    background: none;
    border: none;
    color: var(--primary-light);
    cursor: pointer;
    padding: 6px;
    opacity: 0;
    transition: opacity var(--transition);
}

.suggestion-item:hover .suggestion-add {
    opacity: 1;
}

.suggestion-add:hover {
    color: var(--accent);
}

/* Navigation */
.sidebar-nav {
    padding: 8px 12px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    transition: all var(--transition);
    margin-bottom: 2px;
}

.nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.nav-item:hover {
    background: var(--bg-tertiary);
    color: var(--text);
}

.nav-item.active {
    background: var(--primary);
    color: white;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.collaborators {
    display: flex;
    align-items: center;
    gap: 12px;
}

.collab-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.collab-avatars {
    display: flex;
    align-items: center;
}

.collab-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-secondary);
    margin-left: -8px;
    margin-right: 0;
}

.collab-avatar:first-child {
    margin-left: 0;
}

/* ============================================
   Main Content
   ============================================ */

.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px;
    padding-bottom: calc(var(--np-bar-height) + 100px);
    scroll-behavior: smooth;
}

.view {
    display: none;
}

.view.active {
    display: block;
}

.view-header {
    margin-bottom: 24px;
}

.view-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
}

/* Playlist Info */
.playlist-info {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.playlist-cover {
    width: 160px;
    height: 160px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.playlist-cover svg {
    width: 60px;
    height: 60px;
    color: rgba(255, 255, 255, 0.3);
}

.playlist-info h1 {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.playlist-info span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.playlist-meta {
    margin-top: 8px;
}

.playlist-meta span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Track Grid */
.track-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.track-card {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.track-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(99, 102, 241, 0.08));
    opacity: 0;
    transition: opacity var(--transition);
}

.track-card:hover {
    border-color: var(--border);
    transform: translateY(-2px);
}

.track-card:hover::before {
    opacity: 1;
}

.track-card.playing {
    border-color: var(--primary);
}

.track-card.playing::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.track-card-cover {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    background: var(--bg-tertiary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.track-card-cover .cover-gradient {
    width: 100%;
    height: 100%;
}

.track-card-cover .play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.track-card:hover .play-overlay {
    opacity: 1;
}

.play-overlay svg {
    width: 40px;
    height: 40px;
    color: white;
}

.track-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.track-card-artist {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.track-card-btn {
    flex: 1;
    padding: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.track-card-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.track-card-btn svg {
    width: 14px;
    height: 14px;
}

/* Playlist Table */
.playlist-table {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.playlist-row {
    display: grid;
    grid-template-columns: 40px 1fr 1fr 100px 50px;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
    cursor: pointer;
}

.playlist-row:last-child {
    border-bottom: none;
}

.playlist-row:hover {
    background: var(--bg-tertiary);
}

.playlist-row.active {
    background: var(--primary);
    color: white;
}

.playlist-row-header {
    background: var(--bg-tertiary);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: default;
}

.playlist-row-header:hover {
    background: var(--bg-tertiary);
}

.track-num {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.track-name-cell {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist-cell {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-duration {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: right;
}

.track-actions-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.track-action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color var(--transition);
}

.track-action-btn:hover {
    color: var(--primary);
}

.track-action-btn svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   Now Playing Bar
   ============================================ */

.now-playing-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--np-bar-height);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    z-index: 200;
    gap: 24px;
}

.np-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    width: 260px;
}

.np-cover {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.np-cover svg {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
}

.np-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.np-info {
    min-width: 0;
}

.np-title {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.np-artist {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.like-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
    transition: color var(--transition);
}

.like-btn:hover {
    color: var(--danger);
}

.like-btn.liked svg {
    fill: var(--danger);
    color: var(--danger);
}

.like-btn svg {
    width: 18px;
    height: 18px;
}

/* Controls */
.np-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    max-width: 700px;
}

.np-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.control-btn {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    color: var(--primary-light);
    transform: scale(1.05);
}

.control-btn svg {
    width: 20px;
    height: 20px;
}

.play-pause-btn {
    width: 40px;
    height: 40px;
    background: var(--text);
    color: var(--bg) !important;
    border-radius: 50%;
}

.play-pause-btn:hover {
    transform: scale(1.1);
    color: var(--bg) !important;
    background: var(--text);
}

.play-pause-btn svg {
    width: 18px;
    height: 18px;
}

/* Progress Bar */
.progress-section {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 600px;
}

.time-display {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 40px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.progress-bar-container {
    flex: 1;
    position: relative;
    height: 20px;
    display: flex;
    align-items: center;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    transition: height 0.15s;
}

.progress-bar:hover {
    height: 6px;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    width: 0%;
    position: relative;
    transition: width 0.1s linear;
}

.progress-thumb {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 12px;
    height: 12px;
    background: var(--text);
    border-radius: 50%;
    transition: transform 0.15s;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.progress-bar:hover .progress-thumb {
    transform: translateY(-50%) scale(1);
}

/* Right Actions */
.np-right {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 160px;
    justify-content: flex-end;
}

.np-action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all var(--transition);
    position: relative;
}

.np-action-btn:hover {
    color: var(--text);
}

.np-action-btn.active {
    color: var(--primary);
}

.np-action-btn svg {
    width: 18px;
    height: 18px;
}

.queue-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--primary);
    color: white;
    font-size: 0.6rem;
    font-weight: 600;
    min-width: 14px;
    height: 14px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.volume-slider {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.volume-slider input[type="range"] {
    -webkit-appearance: none;
    width: 100px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    outline: none;
}

.volume-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
}

/* ============================================
   Waveform Panel
   ============================================ */

.waveform-panel {
    position: fixed;
    bottom: var(--np-bar-height);
    left: var(--sidebar-width);
    right: 0;
    height: 80px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    z-index: 150;
    display: flex;
    align-items: center;
    padding: 0 32px;
    transition: height var(--transition);
}

.waveform-panel.collapsed {
    height: 0;
    padding: 0;
    border-top: none;
    overflow: hidden;
}

.waveform-container {
    width: 100%;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

/* ============================================
   Lyrics Panel
   ============================================ */

.lyrics-panel {
    position: fixed;
    bottom: var(--np-bar-height);
    left: var(--sidebar-width);
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--bg-secondary), transparent);
    z-index: 140;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    pointer-events: none;
}

.lyrics-panel.hidden {
    display: none;
}

.lyrics-scroll {
    max-height: 180px;
    overflow: hidden;
    text-align: center;
    pointer-events: auto;
}

.lyrics-content {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.lyric-line {
    padding: 6px 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: all 0.4s;
    cursor: default;
}

.lyric-line.active {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
    transform: scale(1.05);
}

.lyric-line.past {
    color: var(--text-secondary);
}

/* ============================================
   Queue Panel
   ============================================ */

.queue-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 340px;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    z-index: 300;
    transform: translateX(100%);
    transition: transform var(--transition);
    display: flex;
    flex-direction: column;
}

.queue-panel.open {
    transform: translateX(0);
}

.queue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.queue-header h3 {
    font-size: 1.1rem;
}

.text-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    transition: color var(--transition);
}

.text-btn:hover {
    color: var(--danger);
}

.queue-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--transition);
}

.queue-item:hover {
    background: var(--bg-tertiary);
}

.queue-item.active {
    background: rgba(99, 102, 241, 0.15);
}

.queue-item-cover {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: var(--bg-tertiary);
    flex-shrink: 0;
    overflow: hidden;
}

.queue-item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.queue-item-info {
    flex: 1;
    min-width: 0;
}

.queue-item-title {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-item-artist {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.queue-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    opacity: 0;
    transition: all var(--transition);
}

.queue-item:hover .queue-item-remove {
    opacity: 1;
}

.queue-item-remove:hover {
    color: var(--danger);
}

.queue-item-remove svg {
    width: 14px;
    height: 14px;
}

/* ============================================
   Toast
   ============================================ */

.toast {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-elevated);
    color: var(--text);
    padding: 12px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s;
    font-size: 0.9rem;
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.hidden {
    display: none;
}

/* ============================================
   Mobile Menu
   ============================================ */

.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 200;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    padding: 8px;
    cursor: pointer;
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        transform: translateX(-100%);
        z-index: 300;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        padding: 60px 16px 16px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .waveform-panel {
        left: 0;
        padding: 0 16px;
    }

    .lyrics-panel {
        left: 0;
        padding: 0 16px;
    }

    .np-left {
        min-width: auto;
        width: auto;
    }

    .np-center {
        max-width: none;
    }

    .np-right {
        min-width: auto;
    }

    .now-playing-bar {
        padding: 0 12px;
        gap: 8px;
    }

    .progress-section {
        max-width: none;
    }

    .time-display {
        display: none;
    }

    .track-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .playlist-row {
        grid-template-columns: 30px 1fr 80px 40px;
    }

    .track-artist-cell {
        display: none;
    }
}

@media (max-width: 640px) {
    .track-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .now-playing-bar {
        padding: 0 8px;
        height: 70px;
    }

    .np-left {
        gap: 8px;
    }

    .np-cover {
        width: 44px;
        height: 44px;
    }

    .np-title {
        font-size: 0.8rem;
    }

    .np-artist {
        font-size: 0.7rem;
    }

    .like-btn {
        display: none;
    }

    .control-btn svg {
        width: 16px;
        height: 16px;
    }

    .play-pause-btn {
        width: 36px;
        height: 36px;
    }

    .np-center {
        gap: 4px;
    }

    .np-right {
        gap: 6px;
    }

    .queue-panel {
        width: 100%;
    }

    .waveform-panel {
        height: 60px;
    }

    .lyrics-panel {
        height: 150px;
    }

    .lyrics-scroll {
        max-height: 130px;
    }

    .lyric-line {
        font-size: 0.85rem;
        padding: 4px 0;
    }

    .lyric-line.active {
        font-size: 0.95rem;
    }
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

/* Hide utility */
.hidden {
    display: none !important;
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 250;
}

.sidebar-overlay.show {
    display: block;
}

/* Downloaded badge */
.download-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.65rem;
    color: var(--success);
    margin-top: 4px;
}

.download-badge svg {
    width: 10px;
    height: 10px;
}

/* Collaborator notification */
.collab-notification {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    margin: 8px 20px;
    font-size: 0.8rem;
    color: var(--primary-light);
    animation: fadeIn 0.3s ease;
}

.collab-notification svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Spinning loader for loading states */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
