/* General Styles */
#vd-container {
    width: 650px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

/* Input field and paste button wrapper */
.vd-input-wrapper {
    position: relative;
    margin-bottom: 10px;
}

#vd-url {
    width: 100%; /* Full width on mobile */
    max-width: 650px;
    padding: 14px 14px;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    color: #212529;
    border: none;
    border-radius: 8px;
    height: 46px;
}

#vd-paste-button, #vd-clear-button {
    background: #f2d1fd;
    border-radius: 6px;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    color: #000000;
}

.icon.icon-paste {
    background: url(../img/clipboard.svg) center no-repeat;
    width: 20px;
    height: 20px;
}

/* Download button */
#vd-download-button {
    padding: 10px 50px;
    background-color: #00be63;
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

#vd-download-button:hover {
    background-color: #005bb5;
}

/* Result container */
#vd-result {
    margin-top: 20px;
}

/* Video result layout */
.vd-video-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.vd-video-wrapper {
    flex: 1;
    text-align: left;
}

.vd-download-wrapper {
    margin-left: 20px;
    text-align: right;
}

/* Download video button */
#vd-download-video {
    padding: 10px 30px;
    font-size: 20px;
    background-color: #00be63;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

#vd-download-video:hover {
    background-color: #005bb5;
}

/* Mobile responsiveness */
@media (max-width: 767px) {
    #vd-container {
        width: 100%; /* Full width on small screens */
        padding: 10px;
    }

    /* Input field */
    #vd-url {
        width: 100%;
        max-width: 100%;
        font-size: 14px;
    }

    /* Paste button */
    #vd-paste-button {
        right: 10px;
        padding: 5px 8px;
        font-size: 12px;
    }

    /* Download button */
    #vd-download-button {
        padding: 8px 30px;
        font-size: 16px;
    }

    /* Video result */
    .vd-video-result {
        flex-direction: column; /* Stack video and download button vertically */
        align-items: center;
    }

    .vd-video-wrapper {
        width: 100%;
        text-align: center;
    }

    .vd-download-wrapper {
        margin-top: 10px;
        text-align: center;
        width: 100%;
    }

    #vd-download-video {
        padding: 8px 30px;
        font-size: 16px;
    }

    /* Video responsive */
    .vd-video-wrapper video {
        width: 100%;
        max-width: 320px; /* Ensure video is not too wide */
    }
}

/* For very small screens (e.g., mobile portrait) */
@media (max-width: 480px) {
    #vd-url {
        font-size: 14px;
        padding: 12px;
    }

    #vd-download-button {
        padding: 8px 20px;
        font-size: 14px;
    }

    #vd-download-video {
        padding: 8px 20px;
        font-size: 14px;
    }

    .vd-video-wrapper video {
        max-width: 100%;
    }
}
