/* استایل‌های پلیر صوتی مینیمال */
.ap-minimal-audio-player {
    padding: 30px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
    border-radius: 20px;
}

.ap-progress-area {
    margin-bottom: 30px;
}

.ap-progress-bar {
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    direction: ltr;
    position: relative;
}

.ap-progress {
    height: 100%;
    width: 0%;
    background-color: #0C246C;
    border-radius: 10px;
    transition: width 0.1s linear;
    position: relative;
}

.ap-progress::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(12, 36, 108, 0.6);
    display: none;
}

.ap-progress-bar:hover .ap-progress::after {
    display: block;
}

.ap-timer {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #666;
    direction: ltr;
    font-family: monospace;
}

.ap-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.ap-control-btn {
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.ap-control-btn:hover {
    transform: scale(1.1);
    background-color: rgba(12, 36, 108, 0.1);
}

/* استایل آیکون‌های SVG با img */
.ap-btn-icon {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
}

.ap-play-pause-btn .ap-btn-icon {
    width: 28px;
    height: 28px;
}

.ap-btn-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.ap-btn-label {
    font-size: 0.8rem;
    color: #0C246C;
    font-weight: 500;
    text-align: center;
    min-height: 1.2em;
}

/* انیمیشن پالس */
@keyframes ap-pulse {
    0% { box-shadow: 0 0 0 0 rgba(12, 36, 108, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(12, 36, 108, 0); }
    100% { box-shadow: 0 0 0 0 rgba(12, 36, 108, 0); }
}

.ap-minimal-audio-player.ap-playing .ap-play-pause-btn {
    animation: ap-pulse 2s infinite;
}

/* حالت خطا */
.ap-audio-error {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff4444;
    font-size: 14px;
    border-radius: inherit;
    text-align: center;
    padding: 15px;
    z-index: 10;
}

/* حالت لودینگ */
.ap-minimal-audio-player.ap-loading .ap-progress-bar {
    background: linear-gradient(90deg, #e0e0e0, #f0f0f0, #e0e0e0);
    background-size: 200% 100%;
    animation: ap-loading 1.5s infinite;
}

@keyframes ap-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* اسپینر دانلود */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ap-btn-icon.spinning {
    animation: spin 1s linear infinite;
}

/* مخفی کردن المان صوتی */
.ap-audio-element {
    display: none;
}

/* استایل‌های رسپانسیو ساده */
@media (max-width: 768px) {
    .ap-minimal-audio-player {
        padding: 25px 20px;
    }
    
    .ap-controls {
        gap: 20px;
    }
    
    .ap-control-btn {
        width: 45px;
        height: 45px;
    }
    
    .ap-btn-icon {
        width: 22px;
        height: 22px;
    }
    
    .ap-play-pause-btn .ap-btn-icon {
        width: 26px;
        height: 26px;
    }
    
    .ap-btn-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .ap-minimal-audio-player {
        padding: 20px 15px;
    }
    
    .ap-controls {
        gap: 15px;
    }
    
    .ap-control-btn {
        width: 40px;
        height: 40px;
    }
    
    .ap-btn-icon {
        width: 20px;
        height: 20px;
    }
    
    .ap-play-pause-btn .ap-btn-icon {
        width: 24px;
        height: 24px;
    }
    
    .ap-btn-label {
        font-size: 0.7rem;
    }
}