/* /var/www/pavel-gorin.local/public/css/components/audio-player.css */
/**
* /var/www/pavel-gorin.local/public/css/components/audio-player.css
* Стили для компонента аудио-плеера — только позиционирование
*/

/* Анимация проигрывания на кнопке */
.audio-btn.playing {
    animation: audioPulse 1.5s ease-in-out infinite;
}

.audio-btn.playing i {
    animation: audioWave 0.8s ease-in-out infinite;
}

@keyframes audioPulse {
    0%, 100% {
        box-shadow: var(--btn-shadow);
        border-color: rgba(42, 87, 199, 0.5);
    }
    50% {
        box-shadow: var(--btn-shadow-hover);
        border-color: rgba(149, 196, 250, 0.8);
    }
}

@keyframes audioWave {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

/* ПРОГРЕСС БАР */
.progress-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xs);
    height: 5px;
    width: 100%;
    position: relative;
    cursor: pointer;
    margin-bottom: 8px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(to right, var(--color-primary), var(--color-primary-light));
    height: 100%;
    border-radius: var(--radius-xs);
    width: 0%;
    position: relative;
    transition: width 0.1s linear;
}

.progress-bar::before {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--color-primary-light);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(149, 196, 250, 0.8);
    display: none;
}

.progress-bar.active::before {
    display: block;
}

.time-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

/* УПРАВЛЕНИЕ */
.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

/* ПЛЕЙЛИСТ */
.playlist-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px 0;
}

.playlist-selector-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(149, 196, 250, 0.3);
    border-radius: var(--radius-sm);
    padding: 8px 32px 8px 12px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2395C4FA' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.playlist-selector-select:focus {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(42, 87, 199, 0.6);
    box-shadow: 0 0 0 3px rgba(42, 87, 199, 0.2);
}

.playlist-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px 0;
    padding: 10px 15px;
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.4);
    border-radius: var(--radius-sm);
    text-align: center;
}

/* Плейлист — без ограничения высоты, скролл на уровне модалки */
.playlist-container {
    padding-top: 8px;
}

.playlist {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.playlist-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.playlist-item.active {
    background: rgba(42, 87, 199, 0.3);
    border-left: 3px solid var(--color-primary-light);
}

.playlist-item-number {
    min-width: 28px;
    font-weight: bold;
}

.playlist-item-info {
    flex: 1;
}

.playlist-item-title {
    margin-bottom: 2px;
}

.playlist-item-duration {
    flex-shrink: 0;
    min-width: 45px;
    text-align: right;
}