/* WPLekhak Modern Voice Player */
.wpl-voice-container {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin: 24px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 600px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wpl-player-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

/* Play/Pause Button */
.wpl-control-btn {
    background: var(--wpl-primary-color, #3b82f6);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: transform 0.1s ease, background-color 0.2s;
    flex-shrink: 0;
}

.wpl-control-btn:hover {
    filter: brightness(110%);
    transform: scale(1.05);
}

.wpl-control-btn:active {
    transform: scale(0.95);
}

.wpl-control-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Track Info */
.wpl-track-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    /* Prevent flex overflow */
}

.wpl-track-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Progress Bar */
.wpl-progress-container {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 99px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.wpl-progress-bar {
    height: 100%;
    background: var(--wpl-primary-color, #3b82f6);
    width: 0%;
    border-radius: 99px;
    transition: width 0.1s linear;
}

/* Time Display */
.wpl-time-display {
    font-size: 12px;
    color: #6b7280;
    font-variant-numeric: tabular-nums;
    min-width: 60px;
    text-align: right;
}

/* Loading Spinner */
.wpl-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid var(--wpl-primary-color, #3b82f6);
    border-radius: 50%;
    animation: wpl-spin 1s linear infinite;
    margin: 10px auto;
}

@keyframes wpl-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}