/* Audio Library Container */
.audio-library-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

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

/* Audio Item */
.audio-item {
    background: #FFF6E9;
    border-radius: 12px;
    padding: 0;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); */
    transition: all 0.3s ease;
}

.audio-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    transform: translateX(5px);
}

.audio-item.playing {
    background: linear-gradient(135deg, #fff 0%, #fef5e8 100%);
    border-left: 4px solid #8B4513;
}

/* Audio Player Wrapper */
.audio-player-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Play/Pause Button */
.play-pause-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
}

.play-pause-btn img {
    width: 28px;
    height: 28px;
    display: block;
    object-fit: contain;
}

.play-pause-btn:hover {
    background: rgba(139, 69, 19, 0.1);
    transform: scale(1.05);
}

/* Waveform Container */
.waveform-container {
    flex: 1;
    position: relative;
    height: 40px;
    cursor: pointer;
    overflow: hidden;
}

.waveform-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.waveform-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(139, 69, 19, 0.3);
    pointer-events: none;
    transition: width 0.1s linear;
    border-radius: 20px;
}

/* Audio Info */
.audio-info {
    display: block;
    align-items: baseline;
    gap: 15px;
    flex-shrink: 0;
    width: 100%;
    margin-top: -20px;
    margin-left: 10px;
}

.audio-title {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #4C1A0F;
}

.audio-duration {
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    color: #999;
	display: none;
}

/* No Audio Message */
.no-audio {
    text-align: center;
    padding: 50px;
    background: #f9f9f9;
    border-radius: 12px;
    color: #4C1A0F;
    font-family: 'Nunito', sans-serif;
}

/* Force icon display */
.play-pause-btn .play-icon {
    display: block !important;
}

.play-pause-btn .pause-icon {
    display: none !important;
}

/* When playing, override */
.audio-item.playing .play-pause-btn .play-icon {
    display: none !important;
}

.audio-item.playing .play-pause-btn .pause-icon {
    display: block !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .audio-library-container {
        padding: 15px;
    }
    
    .audio-player-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .waveform-container {
        width: 100%;
    }
    
    .audio-info {
        width: 100%;
        justify-content: space-between;
    }
    
    .play-pause-btn {
        width: 40px;
        height: 40px;
    }
    
    .play-pause-btn img {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .audio-item {
        padding: 12px 15px;
    }
    
    .audio-title {
        font-size: 13px;
    }
    
    .audio-duration {
        font-size: 11px;
    }
}