/* ========================================
   Audio Player Modal Styles - WellFemme
   Simple Design - Exact Match
   ======================================== */

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: block;
}

/* Modal Container */
.audio-player-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #f5f7f9;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    width: 90%;
    max-width: 750px;
    padding: 50px 60px;
    animation: slideUp 0.3s ease;
}

.audio-player-modal.active {
    display: block;
}

/* Close Button - Outside Modal */
.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: white;
    border: none;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* Episode Title in Modal */
.modal-episode-title {
    color: #1B7895;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 50px;
    padding-right: 40px;
    line-height: 1.4;
    text-align: center;
}

/* Custom Audio Player */
.custom-audio-player {
    width: 100%;
}

/* Player Controls Row */
.player-controls-row {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
}

/* Rewind Button (Left) */
.rewind-10-btn {
    flex-shrink: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.rewind-10-btn:hover {
    transform: scale(1.1);
}

.rewind-icon {
    width: 32px;
    height: 32px;
}

.rewind-icon svg {
    width: 100%;
    height: 100%;
    fill: #56C2C2;
}

.rewind-10-btn span {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

/* Play/Pause Button (Center) */
.play-pause-btn {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: white;
    border: 3px solid #56C2C2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.play-pause-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(86, 194, 194, 0.3);
}

.play-pause-btn:active {
    transform: scale(0.95);
}

.play-pause-btn svg {
    width: 20px;
    height: 20px;
    fill: #56C2C2;
    margin-left: 2px;
}

.play-pause-btn.playing svg {
    margin-left: 0;
}

/* Forward Button (Next to play) */
.forward-10-btn {
    flex-shrink: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.forward-10-btn:hover {
    transform: scale(1.1);
}

.forward-icon {
    width: 32px;
    height: 32px;
}

.forward-icon svg {
    width: 100%;
    height: 100%;
    fill: #56C2C2;
}

.forward-10-btn span {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

/* Progress Bar (Fills remaining space) */
.progress-container {
    flex: 1;
    display: flex;
    align-items: center;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #d5dce3;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-bar:hover .progress-fill::after {
    opacity: 1;
}

.progress-fill {
    height: 100%;
    background: #56C2C2;
    border-radius: 10px;
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #56C2C2;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

/* Time and Volume Row */
.time-volume-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Time Display */
.time-display {
    display: flex;
    gap: 8px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

/* Right Controls (Volume + Speed) */
.right-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.volume-btn svg {
    width: 20px;
    height: 20px;
    fill: #666;
}

/* Speed Control */
.speed-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    padding: 4px 8px;
    transition: all 0.3s ease;
}

.speed-btn:hover {
    color: #1B7895;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translate(-50%, -40%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .audio-player-modal {
        width: 95%;
        padding: 40px 30px;
    }

    .modal-close {
        top: -45px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }

    .modal-episode-title {
        font-size: 20px;
        margin-bottom: 40px;
    }

    .player-controls-row {
        gap: 20px;
    }

    .rewind-10-btn,
    .forward-10-btn {
        gap: 5px;
    }

    .rewind-icon,
    .forward-icon {
        width: 28px;
        height: 28px;
    }

    .rewind-10-btn span,
    .forward-10-btn span {
        font-size: 11px;
    }

    .play-pause-btn {
        width: 48px;
        height: 48px;
    }

    .play-pause-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .audio-player-modal {
        padding: 30px 20px;
    }

    .modal-close {
        top: -40px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    .modal-episode-title {
        font-size: 18px;
        margin-bottom: 35px;
    }

    .player-controls-row {
        gap: 15px;
    }

    .rewind-10-btn span,
    .forward-10-btn span {
        display: none;
    }

    .time-display {
        font-size: 13px;
    }

    .right-controls {
        gap: 15px;
    }
}