/* ============================= */
/* PLAYER ROOT */
/* ============================= */

.player-v2 {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;

    background: linear-gradient(to top, #0a0a0a, #111);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 14px 24px;
    backdrop-filter: blur(14px);
    z-index: 9999;

    display: grid;
    grid-template-columns: 210px minmax(0,1fr) 150px;
    align-items: center;
    gap: 24px;

    overflow: hidden;

    transition: transform 0.35s ease, opacity 0.35s ease;
}

/* ============================= */
/* HIDDEN STATE */
/* ============================= */

.player-v2.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

/* ============================= */
/* LEFT */
/* ============================= */

.player-v2__left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.player-v2__cover {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.player-v2__meta {
    min-width: 0;
}

.player-v2__title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-v2__artist {
    font-size: 12px;
    color: #888;
}

/* ============================= */
/* CENTER */
/* ============================= */

.player-v2__center {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
}

/* TOP ROW */

.player-v2__top-row {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    overflow: hidden;
}

/* PLAY BUTTON */

.player-v2__play {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #00f5ff, #005eff);
    color: #000;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 0 14px rgba(0,245,255,0.5);
    flex-shrink: 0;
}

/* VISUALIZER */

#visualizer {
    flex: 1 1 auto;
    width: 100%;
    height: 55px;
    max-width: 100%;
    display: block;
}

/* ============================= */
/* PROGRESS */
/* ============================= */

.player-v2__progress {
    width: 100%;
}

.player-v2__progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    overflow: hidden;
}

.player-v2__progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00f5ff, #005eff);
    border-radius: 20px;
}

/* TIME */

.player-v2__time {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #888;
}

/* ============================= */
/* RIGHT */
/* ============================= */

.player-v2__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.volume-icon {
    font-size: 13px;
    color: #aaa;
    flex-shrink: 0;
}

#volumeSlider {
    width: 90px;
    min-width: 60px;
    max-width: 100%;
    accent-color: #00f5ff;
}

/* ============================= */
/* CLOSE BUTTON */
/* ============================= */

.player-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: #777;
    font-size: 15px;
    cursor: pointer;
}

.player-close:hover {
    color: #fff;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 1200px) {
    .player-v2 {
        grid-template-columns: 170px minmax(0,1fr) 130px;
    }

    #volumeSlider {
        width: 70px;
    }
}

@media (max-width: 1000px) {
    .player-v2 {
        grid-template-columns: 150px minmax(0,1fr) 110px;
    }

    #volumeSlider {
        width: 60px;
    }
}