/**
* /var/www/pavel-gorin/public/css/audio-player.css
* Стили для компонента аудио-плеера (ТОЛЬКО специфичные)
* Базовые стили модального окна взяты из modal.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(--shadow-soft);
border-color: rgba(42, 87, 199, 0.5);
}
50% {
box-shadow: 0 5px 25px rgba(42, 87, 199, 0.6), 0 0 20px rgba(42, 87, 199, 0.4);
border-color: rgba(42, 87, 199, 0.8);
}
}
@keyframes audioWave {
0%, 100% {
transform: scale(1);
color: var(--color-primary-light);
}
50% {
transform: scale(1.15);
color: var(--color-white);
}
}
/* ПРОГРЕСС БАР */
.progress-container {
background: rgba(255, 255, 255, 0.1);
border-radius: var(--radius-xs);
height: 5px;
width: 100%;
position: relative;
cursor: pointer;
margin-bottom: 6px;
overflow: hidden;
flex-shrink: 0;
}
.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;
color: var(--color-primary-light);
font-size: 10px;
margin-bottom: 8px;
flex-shrink: 0;
}
/* КНОПКИ УПРАВЛЕНИЯ */
.controls {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
margin-bottom: 8px;
flex-shrink: 0;
}
.control-btn {
background: rgba(255, 255, 255, 0.15);
border: 2px solid rgba(255, 255, 255, 0.3);
border-radius: 50%;
width: 38px;
height: 38px;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
transition: var(--transition-std);
color: var(--color-primary-light);
font-size: 16px;
}
.control-btn:hover {
background: rgba(255, 255, 255, 0.25);
box-shadow: 0 3px 10px rgba(42, 87, 199, 0.5);
}
.control-btn.play-pause {
width: 46px;
height: 46px;
font-size: 20px;
background: linear-gradient(135deg, rgba(42, 87, 199, 0.8), rgba(42, 87, 199, 0.6));
border-color: rgba(42, 87, 199, 0.8);
}
.control-btn.play-pause:hover {
background: linear-gradient(135deg, rgba(42, 87, 199, 0.9), rgba(42, 87, 199, 0.7));
box-shadow: 0 5px 20px rgba(42, 87, 199, 0.6);
}
.control-btn.play-pause i {
padding-left: 2px;
}
/* ПЛЕЙЛИСТ */
.playlist-selector {
display: flex;
align-items: center;
justify-content: center;
margin: 8px 0 12px;
flex-shrink: 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: 7px 32px 7px 12px;
color: var(--color-primary-light);
font-size: 13px;
font-weight: 500;
outline: none;
cursor: pointer;
transition: var(--transition-std);
-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 10px center;
line-height: 1.5;
vertical-align: middle;
}
.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-selector-select option {
background: var(--color-bg);
color: var(--color-primary-light);
padding: 8px;
}
.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);
color: var(--color-error);
font-size: 12px;
font-weight: 500;
text-align: center;
flex-shrink: 0;
}
.playlist-error i {
font-size: 14px;
}
.playlist-container {
padding-top: 4px;
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
}
.playlist {
display: flex;
flex-direction: column;
gap: 6px;
max-height: 380px;
overflow-y: auto;
flex: 1;
min-height: 0;
padding-right: 4px;
}
.playlist-item {
background: rgba(255, 255, 255, 0.05);
border-radius: 6px;
padding: 8px 10px;
cursor: pointer;
transition: var(--transition-fast);
display: flex;
align-items: center;
gap: 8px;
font-size: 12px;
width: calc(100% - 4px);
}
.playlist-item:hover {
background: rgba(255, 255, 255, 0.1);
transform: translateX(2px);
}
.playlist-item.active {
background: rgba(42, 87, 199, 0.3);
border-left: 3px solid var(--color-primary-light);
}
.playlist-item-number {
color: var(--color-primary-light);
font-size: 12px;
font-weight: bold;
min-width: 18px;
}
.playlist-item-info {
flex: 1;
min-width: 0;
max-width: calc(100% - 60px);
}
.playlist-item-title {
color: var(--color-white);
font-size: 14px;
font-weight: 500;
margin-bottom: 1px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.playlist-item-artist {
color: rgba(149, 196, 250, 0.7);
font-size: 10px;
}
.playlist-item-duration {
color: var(--color-primary-light);
font-size: 10px;
font-weight: 500;
flex-shrink: 0;
min-width: 40px;
text-align: right;
}
.playlist::-webkit-scrollbar {
width: 4px;
}
.playlist::-webkit-scrollbar-track {
background: rgba(6, 25, 52, 0.5);
border-radius: 2px;
}
.playlist::-webkit-scrollbar-thumb {
background: rgba(42, 87, 199, 0.5);
border-radius: 2px;
}
.playlist::-webkit-scrollbar-thumb:hover {
background: rgba(42, 87, 199, 0.7);
}