/* Right Panel Visualizer Background */
#right-bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    filter: blur(40px) opacity(0.5);
    pointer-events: none;
}

/* Cover Art Styles */
.cover-box {
    width: 280px;
    height: 280px;
    position: relative;
    margin-bottom: 20px;
    flex-shrink: 0;
    z-index: 2;
    transform: scale(1);
    transition: transform 0.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transition: 0.5s;
    position: relative;
    z-index: 2;
}

.cover-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    z-index: 1;
    filter: blur(25px);
    opacity: 0;
    transform: scale(1);
    transition: opacity 0.3s;
}

.style-vinyl .cover-img {
    border-radius: 50%;
    width: 92%;
    height: 92%;
    margin: 4%;
    border: 6px solid #1a1a1a;
}

.style-vinyl .cover-glow {
    border-radius: 50%;
    width: 92%;
    height: 92%;
    margin: 4%;
}

.style-vinyl.playing .cover-img {
    animation: spin 8s linear infinite;
}

/* Lyrics */
.lyrics-box {
    flex: 1;
    width: 100%;
    overflow: hidden;
    margin-top: 10px;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    position: relative;
    z-index: 2;
}

.lrc {
    text-align: center;
    padding: 12px 0;
    font-size: 1.1rem;
    color: var(--text-secondary);
    opacity: 0.6;
    transition: 0.3s;
    cursor: pointer;
}

.lrc.active {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 800;
    opacity: 1;
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Player Bar */
.player-bar {
    grid-column: 1 / -1;
    margin: 0 16px 0 16px;
    padding: 0 30px;
    padding-top: 15px !important;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    z-index: 100;
    overflow: visible !important;
    position: relative;
    transition: background 0.6s var(--ease-out);
    border-radius: 20px 20px 0 0;
}

.player-bar>.track-info {
    grid-column: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
    overflow: hidden;
    justify-content: flex-start;
    position: relative;
}

.track-info img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    flex-shrink: 0;
}

.track-info>.song-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.song-title-with-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    overflow: hidden;
}

#bar-title {
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 1 auto;
    min-width: 0;
    margin-right: 0;
}

.track-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
}

#bar-artist {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-bar>.controls {
    grid-column: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 0 auto;
    width: auto;
    flex-shrink: 0;
}

.play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--c-player-main);
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    cursor: pointer;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.6s var(--ease-out);
    flex-shrink: 0;
}

.player-bar>.player-right {
    grid-column: 3;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    align-items: center;
    position: relative;
    z-index: 2;
    min-width: 200px;
}

/* Progress Bar */
.progress-wrapper {
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    height: 20px;
    display: flex;
    align-items: center;
    padding: 0 25px;
    gap: 12px;
    z-index: 20;
}

.time-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    min-width: 35px;
    text-align: center;
    opacity: 0.8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.prog-bar {
    position: relative;
    height: 10px;
    width: auto;
    flex: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.prog-bg {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    position: relative;
}

.prog-fill {
    height: 100%;
    width: 0%;
    background: var(--c-player-main);
    border-radius: 2px;
    position: relative;
    box-shadow: 0 0 10px var(--c-player-main);
}

.prog-fill::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    transform: translateY(-50%) scale(1);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s;
}

.prog-bar:hover .prog-fill::after {
    transform: translateY(-50%) scale(1.4);
}

/* Responsive Player */
@media (max-width: 1000px) {
    .player-bar {
        grid-template-columns: 1fr 60px;
        padding: 0 20px;
    }

    .controls {
        display: none;
    }

    .play-btn {
        position: absolute;
        right: 20px;
        top: 20px;
    }

    .track-info {
        gap: 10px;
    }

    .track-info img {
        width: 40px;
        height: 40px;
    }

    .track-buttons {
        gap: 5px;
    }

    #bar-title {
        font-size: 0.85rem;
    }
}