

/* Стили для плеера */
#audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none;
    align-items: center;
    gap: 15px;
    height: 80px;
    box-sizing: border-box;
}

#audio-player.active {
    display: flex;
}

.player-info {
    flex-grow: 1;
    overflow: hidden;
}

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

.player-time {
    font-size: 14px;
    opacity: 0.8;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.player-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.player-btn-close {
    background: rgba(255, 0, 0, 0.3);
}

.player-btn-close:hover {
    background: rgba(255, 0, 0, 0.5);
}

.progress-container {
    flex-grow: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: white;
    width: 0%;
    border-radius: 2px;
    transition: width 0.1s linear;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 120px;
}

.volume-btn {
    font-size: 20px;
}

.volume-slider {
    flex-grow: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    overflow: hidden;
}

.volume-progress {
    height: 100%;
    background: white;
    width: 80%;
}

/* Стили для элементов запуска аудио */
.audio-play {
    display: inline-block;
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px;
    transition: background 0.3s;
    text-align: center;
}

.audio-play:hover {
    background: #764ba2;
}

/* Контент страницы для демонстрации */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 100px;
}

.audio-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.audio-item {
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
}

.audio-item:hover {
    background: #e9e9e9;
}