/* Lyrics Panel */
.lyrics-panel {
    position: fixed;
    bottom: 90px;
    right: 16px;
    width: 350px;
    max-height: 60vh;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    z-index: 15;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}

.lyrics-panel.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.lyrics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.lyrics-info h3 {
    font-size: 16px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lyrics-info p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 4px 0 0;
}

.lyrics-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge {
    font-size: 10px;
    background: var(--primary);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: color 0.2s;
}

.btn-icon:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.btn-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.lyrics-content {
    flex: 1;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    padding-right: 8px;
    scroll-behavior: smooth;
}

.lyrics-content::-webkit-scrollbar {
    width: 6px;
}

.lyrics-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.lyric-line {
    padding: 6px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.lyric-line:hover {
    background: rgba(255, 255, 255, 0.05);
}

.lyric-line.active {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--primary);
}

.lyric-line.previous {
    opacity: 0.6;
}

.lyrics-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    color: var(--text-secondary);
    text-align: center;
}

.lyrics-empty svg {
    width: 48px;
    height: 48px;
    opacity: 0.3;
    margin-bottom: 12px;
}

.lyrics-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.lyrics-mood {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.mood-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mood-label {
    width: 60px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
    color: var(--mood-color);
}

.mood-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.mood-fill {
    height: 100%;
    background: var(--mood-color);
    border-radius: 2px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .lyrics-panel {
        left: 0;
        right: 0;
        bottom: 130px;
        /* Above player bar + bottom nav */
        width: 100%;
        max-height: 50vh;
        border-radius: 12px 12px 0 0;
        border-left: none;
        border-right: none;
    }
}