/* ========================================
   پلیر صوتی با موج‌های مرئی
   ======================================== */

.vp-waveform-player {
    width: 100%;
    margin: 20px 0;
}

.vp-player-container {
    background: linear-gradient(135deg, #f8fafb 0%, #f3f4f6 100%);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.vp-player-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.vp-play-btn {
    /* background: linear-gradient(135deg, #16a34a 0%, #15803d 100%); */
    color: white;
    border: none;
    border-radius: 100px !important;
    width: 48px;
    height: 48px;
    min-width: 48px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
    flex-shrink: 0;
}

.vp-play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}

.vp-play-btn:active {
    transform: scale(0.95);
}

.vp-waveform-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vp-waveform-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

/* موج‌های صوتی */
.vp-wave-container {
    position: relative;
    height: 50px;
    display: flex;
    align-items: center;
    gap: 1px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 4px;
    cursor: pointer;
    overflow: hidden;
    direction: ltr;
}

.vp-wave-base {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    gap: 0.5px;
    position: relative;
    z-index: 1;
    direction: ltr;
}

.vp-wave-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #16a34a 0%, #10b981 100%);
    border-radius: 6px;
    width: 0%;
    transition: width 0.1s linear;
    z-index: 2;
    pointer-events: none;
}

.vp-wave-bar {
    flex: 0 0 auto;
    width: 1.5px;
    background: linear-gradient(180deg, #d1d5db 0%, #9ca3af 100%);
    border-radius: 1px;
    transition: background 0.05s ease;
}

.vp-wave-bar-active {
    background: linear-gradient(180deg, #16a34a 0%, #15803d 100%) !important;
}

/* نمایش زمان */
.vp-time-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    padding: 0 4px;
}

.vp-current-time,
.vp-duration {
    font-variant-numeric: tabular-nums;
}

/* Responsive */
@media (max-width: 600px) {
    .vp-player-container {
        padding: 12px;
    }

    .vp-player-row {
        flex-direction: row;
        align-items: center;
    }

    .vp-play-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
        align-self: flex-start;
    }

    .vp-wave-container {
        height: 40px;
        gap: 0.5px;
        padding: 4px 3px;
    }

    .vp-time-info {
        font-size: 11px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .vp-player-container {
        background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
        border-color: #4b5563;
    }

    .vp-wave-container {
        background: #111827;
        border-color: #4b5563;
    }

    .vp-wave-bar {
        background: linear-gradient(180deg, #4b5563 0%, #374151 100%);
    }

    .vp-time-info {
        color: #9ca3af;
    }
}
