/* Плеер в стиле жидкого стекла */
.glass-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
}

.glass-player.active {
    transform: translateY(0);
}

.glass-player-content {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    gap: 16px;
}

.glass-player-track-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.glass-player-cover {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.glass-player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.glass-player-cover svg {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.5);
}

.glass-player-info {
    min-width: 0;
    flex: 1;
}

.glass-player-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.glass-player-artist {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.glass-player-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.glass-player-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.glass-player-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.glass-player-btn:active {
    transform: scale(0.95);
}

.glass-player-btn.play-pause {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
}

.glass-player-btn.play-pause:hover {
    background: rgba(255, 255, 255, 0.3);
}

.glass-player-btn svg {
    width: 18px;
    height: 18px;
}

.glass-player-btn.play-pause svg {
    width: 22px;
    height: 22px;
}

.glass-player-progress {
    flex: 1;
    max-width: 300px;
    margin: 0 16px;
}

.glass-player-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.glass-player-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007aff, #5ac8fa);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease;
}

.glass-player-time {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.glass-player-volume {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.glass-player-volume-bar {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.glass-player-volume-fill {
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    width: 70%;
    transition: width 0.1s ease;
}

.glass-player-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.glass-player-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.glass-player-close svg {
    width: 14px;
    height: 14px;
}

/* Анимация загрузки */
.glass-player-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: loading-slide 1.5s infinite;
}

@keyframes loading-slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .glass-player {
        height: 70px;
    }
    
    .glass-player-content {
        padding: 0 16px;
        gap: 12px;
    }
    
    .glass-player-cover {
        width: 40px;
        height: 40px;
    }
    
    .glass-player-btn {
        width: 36px;
        height: 36px;
    }
    
    .glass-player-btn.play-pause {
        width: 44px;
        height: 44px;
    }
    
    .glass-player-progress {
        max-width: 200px;
        margin: 0 12px;
    }
    
    .glass-player-volume {
        display: none;
    }
}

@media (max-width: 480px) {
    .glass-player-content {
        gap: 8px;
    }
    
    .glass-player-progress {
        max-width: 150px;
        margin: 0 8px;
    }
    
    .glass-player-title {
        font-size: 13px;
    }
    
    .glass-player-artist {
        font-size: 11px;
    }
}

/* Кнопка воспроизведения в треках */
.track-play-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-right: 12px;
    flex-shrink: 0;
}

.track-play-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.track-play-btn:active {
    transform: scale(0.9);
}

.track-play-btn svg {
    width: 14px;
    height: 14px;
}

.track-play-btn.playing {
    background: rgba(0, 122, 255, 0.8);
    color: white;
}

.track-play-btn.playing:hover {
    background: rgba(0, 122, 255, 1);
}

/* Анимация пульсации для играющего трека */
.track-play-btn.playing::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0, 122, 255, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}