/* Player - Yandex Music Style */
.player {
    position: fixed;
    bottom: 0;
    left: 240px;
    right: 0;
    background: rgba(13, 13, 16, 0.98);
    backdrop-filter: blur(40px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    z-index: 99;
    transition: left 0.3s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block !important;
    transform: translateY(100%);
    pointer-events: none;
}

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

.player:not(.hidden) {
    transform: translateY(0);
    pointer-events: auto;
}

body.sidebar-collapsed .player {
    left: 80px;
}

.player-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 2000px;
    margin: 0 auto;
}

/* Left Section - Track Info */
.player-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 220px;
    min-width: 0;
    transition: flex-basis 0.3s ease;
}

body.sidebar-collapsed .player-left {
    flex: 0 0 450px;
}

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

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

.player-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-artist {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Center Section - Controls */
.player-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 600px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.player-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.player-buttons button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: color 0.2s ease, background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-buttons button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.player-buttons button.active {
    color: #E8D5FF;
}

.btn-play-pause {
    background: #fff !important;
    color: #000 !important;
    width: 40px;
    height: 40px;
    transition: transform 0.2s ease !important;
}

.btn-play-pause:hover {
    transform: scale(1.05) !important;
    background: #fff !important;
}

.player-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-progress span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    min-width: 35px;
    text-align: center;
}

#progressBar {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

#progressBar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

#progressBar:hover::-webkit-slider-thumb {
    opacity: 1;
}

#progressBar::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

#progressBar:hover::-moz-range-thumb {
    opacity: 1;
}

/* Right Section - Actions */
.player-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
}

.player-right button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: color 0.2s ease, background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-right button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.btn-like.liked {
    color: #FF6B8A;
}

.btn-like.liked svg {
    fill: #FF6B8A;
}

/* Mobile */
@media (max-width: 768px) {
    .player {
        left: 0;
        bottom: 60px;
        padding: 8px 12px;
    }

    .player-container {
        flex-direction: column;
        gap: 12px;
    }

    .player-left {
        width: 100%;
        flex: 1;
    }

    .player-center {
        width: 100%;
        max-width: 100%;
    }

    .player-right {
        width: 100%;
        justify-content: center;
    }
}
