.vdb-settings-wrap {
    max-width: 1050px;
}

.vdb-videos-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
}

.vdb-videos-heading h2 {
    margin-bottom: 4px;
}

.vdb-videos-heading p {
    margin-top: 0;
}

.vdb-video-list {
    margin-top: 18px;
}

.vdb-video-row {
    display: grid;
    grid-template-columns: 28px 190px minmax(320px, 1fr) auto;
    gap: 16px;
    align-items: start;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.vdb-video-handle {
    padding-top: 4px;
    color: #646970;
    cursor: move;
}

.vdb-video-handle .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.vdb-preview {
    min-width: 0;
}

.vdb-preview-placeholder,
.vdb-preview-image {
    display: flex;
    width: 190px;
    height: 107px;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    background: #f0f0f1;
    object-fit: cover;
}

.vdb-preview-placeholder .dashicons {
    width: 36px;
    height: 36px;
    font-size: 36px;
    color: #8c8f94;
}

.vdb-preview-image[hidden],
.vdb-preview-placeholder[hidden] {
    display: none;
}

.vdb-preview-text {
    display: block;
    margin-top: 8px;
}

.vdb-preview-title,
.vdb-preview-provider {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vdb-preview-provider {
    margin-top: 3px;
    color: #646970;
    font-size: 12px;
}

.is-preview-error .vdb-preview-provider {
    color: #b32d2e;
}

.vdb-video-fields {
    min-width: 0;
}

.vdb-field {
    margin-bottom: 12px;
}

.vdb-field:last-child {
    margin-bottom: 0;
}

.vdb-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.vdb-field input,
.vdb-field textarea {
    width: 100%;
    max-width: 100%;
}

.vdb-optional {
    font-weight: 400;
    color: #646970;
}

.vdb-settings-wrap .button.vdb-remove-video {
    align-self: center;
    margin: 0;
    white-space: nowrap;
    color: #b32d2e;
    border-color: #b32d2e;
    background: #fff;
}

.vdb-settings-wrap .button.vdb-remove-video:hover,
.vdb-settings-wrap .button.vdb-remove-video:focus {
    color: #8a2424;
    border-color: #8a2424;
    background: #fcf0f1;
}

.vdb-sort-placeholder {
    height: 150px;
    margin-bottom: 12px;
    border: 2px dashed #8c8f94;
    border-radius: 4px;
    background: #f6f7f7;
}

.vdb-empty-state {
    margin: 16px 0;
    padding: 18px;
    border: 1px dashed #c3c4c7;
    text-align: center;
    background: #fff;
}

.vdb-add-video-bottom {
    margin-top: 4px;
}

@media screen and (max-width: 900px) {
    .vdb-video-row {
        grid-template-columns: 28px 150px minmax(0, 1fr);
    }

    .vdb-preview-placeholder,
    .vdb-preview-image {
        width: 150px;
        height: 84px;
    }

    .vdb-remove-video {
        grid-column: 3;
    }
}

@media screen and (max-width: 650px) {
    .vdb-videos-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .vdb-video-row {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .vdb-preview,
    .vdb-video-fields,
    .vdb-remove-video {
        grid-column: 2;
    }

    .vdb-preview-placeholder,
    .vdb-preview-image {
        width: 100%;
        max-width: 320px;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}
