#video_tools .vm-video-tools__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    border: none;
    padding: 15px 40px;
    font-size: 15px;
    border-radius: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
}

#video_tools .vm-video-tools__button:hover:not(:disabled) {
    border-color: #0022FF;
    text-decoration: underline;
}

#video_tools .vm-video-tools__button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

#video_tools button.next-step.vm-video-tools__button.vm-submit {
    background-color: #FFCF09;
    border-color: #FFCF09;
    color: #0A0A38;
    box-shadow: 0px 4px 0px -2px rgba(0, 0, 0, 0.2);
}


#video_tools button.next-step.vm-video-tools__button.vm-submit:hover {
    border-color: #FFCF09;
}

#video_tools .vm-video-rows {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#video_tools .vm-video-rows__empty {
    padding: 30px;
    text-align: center;
    background: #fff;
    border: 1px dashed #ddd;
    border-radius: 16px;
    color: #6c7391;
    font-weight: 600;
}

#video_tools .vm-video-row {
    display: flex;
    gap: 28px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    flex-wrap: wrap;
}

#video_tools .vm-video-thumb {
    width: 240px;
    min-width: 240px;
    aspect-ratio: 16/9;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}

#video_tools .vm-video-thumb__loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.88);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

#video_tools .vm-video-thumb.loading .vm-video-thumb__loader {
    opacity: 1;
}

#video_tools .vm-video-thumb__spinner {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid #c4ceef;
    border-top-color: #0b4106;
    animation: vmSpin 0.85s linear infinite;
}

#video_tools .vm-video-thumb__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

#video_tools .vm-video-thumb.has-image .vm-video-thumb__img {
    display: block;
}

#video_tools .vm-video-thumb__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #5d6889;
    font-size: 14px;
    padding: 16px;
    transition: opacity 0.2s ease;
}

#video_tools .vm-video-thumb.has-image .vm-video-thumb__placeholder {
    opacity: 0;
}

#video_tools .vm-video-fields {
    flex: 1;
    min-width: 260px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

#video_tools .vm-input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#video_tools .vm-input:focus {
    border-color: #2053db;
    outline: none;
}

#video_tools label span {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1a2142;
}

#video_tools .vm-remove-row {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: #0a0a38;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 28px;
    background: #fff;
    border: 1px solid;
    font-family: sans-serif;
    line-height: 27px;
}

#video_tools .vm-remove-row:hover {
    border-color: rgb(189, 8, 8);
}

#video_tools .vm-video-row__status {
    grid-column: 1 / -1;
    font-size: 14px;
    color: #6b7391;
    min-height: 20px;
}

#video_tools .vm-video-row__status.is-error {
    color: #b02b2b;
}

#video_tools .vm-video-row__status.is-success {
    color: #1f7a36;
}

#video_tools .vm-video-tools__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 30px auto 70px;
    justify-content: space-between;
}

#video_tools .vm-video-tools__hint {
    font-size: 14px;
    color: #4a5272;
}

#video_tools .vm-video-tools__feedback {
    margin-top: 16px;
    font-weight: 600;
    color: #4a5272;
}

#video_tools .vm-video-tools__feedback.is-error {
    color: #b02b2b;
}

#video_tools .vm-video-tools__feedback.is-success {
    color: #1f7a36;
}

@media only screen and (max-width: 991px) {
    #video_tools .vm-video-fields {
        grid-template-columns: 1fr 1fr;
        gap: 0 15px;
        margin-top: -15px;
    }

    #video_tools .vm-video-fields label {
        margin-top: 15px;
    }

    #video_tools .vm-video-row__status {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    #video_tools .vm-video-row {
        flex-direction: column;
    }

    #video_tools .vm-video-thumb {
        width: 100%;
        min-width: 0;
    }
}

@keyframes vmSpin {
    to {
        transform: rotate(360deg);
    }
}