/* ============================= 
    FEATURED POST
============================= */

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

/* Central Play/Pause Button */
.video-overlay-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    user-select: none;
    z-index: 30;
}
.video-overlay-btn:hover {
    opacity: 1;
}

/* Progress Bar Container */
.video-progress-bar-container {
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 4px; /* make it a bit larger for easier interaction */
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer; /* 👈 show pointer on hover */
    z-index: 50; 
    border-radius: 3px;
}

/* Progress Fill */
.video-progress-bar-fill {
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    pointer-events: none; /* 👈 allow clicks to pass to container */
    position: relative;
    border-radius: 3px;
    transition: width 0.1s linear;
}

/* Scrubber Handle (draggable circle) */
.video-progress-handle {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    display: none; /* only show on hover/drag */
    pointer-events: none; /* 👈 don’t block clicks on container */
}

/* On hover (desktop) */
.video-progress-bar-container:hover {
    height: 8px;
}
.video-progress-bar-container:hover .video-progress-handle {
    display: block;
}

/* When active (mobile touch) */
.video-progress-bar-container.active {
    height: 8px;
}
.video-progress-bar-container.active .video-progress-handle {
    display: block;
}


/* Mute Button */
.mute-toggle {
    position: absolute;
    bottom: 62px;
    right: 22px;
    border: none;
    color: #fff;
    font-size: 1.0rem;
    padding: 6px 10px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 25;

    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
}

@media (max-width: 768px) {
    .mute-toggle {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
        bottom: 56px;   /* adjust spacing */
        right: 17px;
    }
}


/* ============================= 
    DYNAMIC POSTS
============================= */

/* Mute Button */
.post__media .mute-toggle {
    position: absolute;
    bottom: 32px;
}

@media (max-width: 768px) {
    .post__media .mute-toggle {
        bottom: 42px;  /* adjust spacing */
        right: 20px;
        position: absolute;
    }
}

/* Central Play/Pause Button */
.dynamic-post .video-overlay-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    user-select: none;
    z-index: 30;
}
.dynamic-post .video-overlay-btn:hover {
    opacity: 1;
}

/* Progress Bar Container */
.video-progress {
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    z-index: 50; /* ensure it’s above video */
}

/* Progress Bar Fill */
.video-progress-fill {
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    pointer-events: none; /* Click passes through to parent */
    transition: width 0.1s linear; /* Smooth fill transition */
