
   .video-wrapper {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    aspect-ratio: 9 / 12;
    max-width: 400px; /* Adjust as needed */
    margin: 0 auto; /* Center it */
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    display: block;
}
    .video-controls {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        align-items: center;
        gap: 12px;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 70%, transparent 100%);
        padding: 20px 16px 16px;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .video-wrapper:hover .video-controls {
        opacity: 1;
    }

    .control-btn {
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: #fff;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        flex-shrink: 0;
    }

    .control-btn:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: scale(1.1);
    }

    .control-btn:active {
        transform: scale(0.95);
    }

    .time-display {
        color: #fff;
        font-size: 13px;
        font-weight: 500;
        white-space: nowrap;
        user-select: none;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }

    .progress-container {
        flex: 1;
        position: relative;
        height: 40px;
        display: flex;
        align-items: center;
        cursor: pointer;
    }

    .progress-bar {
        position: absolute;
        width: 100%;
        height: 5px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        overflow: hidden;
        pointer-events: none;
    }

    .progress-filled {
        height: 100%;
        background: linear-gradient(90deg, #3b82f6, #8b5cf6);
        border-radius: 10px;
        width: 0%;
        transition: width 0.1s linear;
    }

    #progress {
        width: 100%;
        height: 5px;
        -webkit-appearance: none;
        appearance: none;
        background: transparent;
        cursor: pointer;
        position: relative;
        z-index: 2;
    }

    #progress::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 15px;
        height: 15px;
        background: #fff;
        border-radius: 50%;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    #progress::-moz-range-thumb {
        width: 15px;
        height: 15px;
        background: #fff;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    .progress-container:hover #progress::-webkit-slider-thumb,
    .progress-container:hover #progress::-moz-range-thumb {
        opacity: 1;
    }

    .progress-container:hover .progress-bar {
        height: 7px;
    }

    .volume-container {
        position: relative;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .volume-slider-wrapper {
        position: relative;
        width: 0;
        overflow: hidden;
        transition: width 0.3s ease;
        display: flex;
        align-items: center;
    }

    .volume-container:hover .volume-slider-wrapper {
        width: 80px;
    }

    .volume-bar {
        position: absolute;
        width: 100%;
        height: 4px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        overflow: hidden;
        pointer-events: none;
    }

    .volume-filled {
        height: 100%;
        background: linear-gradient(90deg, #3b82f6, #8b5cf6);
        border-radius: 10px;
        width: 0%;
        transition: width 0.1s linear;
    }

    #volume {
        width: 100%;
        height: 4px;
        -webkit-appearance: none;
        appearance: none;
        background: transparent;
        cursor: pointer;
        position: relative;
        z-index: 2;
    }

    #volume::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 12px;
        height: 12px;
        background: #fff;
        border-radius: 50%;
        cursor: pointer;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    }

    #volume::-moz-range-thumb {
        width: 12px;
        height: 12px;
        background: #fff;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .video-controls {
            gap: 8px;
            padding: 16px 12px 12px;
        }

        .control-btn {
            width: 36px;
            height: 36px;
        }

        .time-display {
            font-size: 11px;
        }

        .volume-slider-wrapper {
            display: none;
        }
    }

    @media (max-width: 480px) {
        .video-controls {
            gap: 6px;
            padding: 12px 8px 8px;
        }

        .control-btn {
            width: 32px;
            height: 32px;
        }

        .control-btn svg {
            width: 16px;
            height: 16px;
        }

        .time-display {
            display: none;
        }
    }