#previewImage {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

#previewVideo {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay background */
.media-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Container behaves like modal-lg */
.media-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    /* modal-lg size */
    background: #000;
    border-radius: 12px;
}

/* Fullscreen on mobile */
@media (max-width: 768px) {
    .media-container {
        width: 100%;
        height: 100%;
        max-width: 100%;
        border-radius: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

/* Media styling */
.media-content {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Custom audio preview */
.audio-preview {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    color: #fff;
    background: #000;
    border-radius: 10px;
}

.audio-preview-mic {
    display: flex;
    justify-content: center;
    align-items: center;
}

.audio-preview-mic i {
    font-size: 120px;
    color: #af52de;
}

.audio-preview-controls {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
}

.audio-play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #af52de;
    color: #fff;
    border: none;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.audio-time {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    opacity: 0.9;
}

.audio-progress-wrap {
    width: 100%;
    max-width: 400px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.audio-progress {
    width: 0%;
    height: 100%;
    background: #af52de;
    border-radius: 3px;
    transition: width 0.1s linear;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 5px;
    left: 5px;
    color: black;
    z-index: 1000;
    border-radius: 50%;
    background: #eee;
    width: 30px;
    opacity: 0.9;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
}

/* Next button default (desktop) */
.next-to-option-btn {
    background-color: #EB4E3E;
    height: 40px;
    width: 300px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    font-size: 15px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.next-to-option-btn:hover {
    background-color: #fff;
    color: #EB4E3E;
    border: #EB4E3E 1px solid;
}

/* Responsive: full width on mobile */
@media (max-width: 768px) {
    .next-to-option-btn {
        width: 100%;
        max-width: 100%;
    }
}

.nav-next-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 1000;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}