/* videos */
.video_items_list {
    display: flex;
    flex-wrap: wrap;
    padding-top: 15px;
    padding-bottom: 0;
}
.video_block_layout {
    padding: 15px 15px 0;
    position: relative;
    z-index: 1;
}
.bsdn {
    aspect-ratio: 16 / 9;
}
.bsdn_video > video {
    width: 100%;
}
.video_item,
.video_items_list .deleted_mark {
    width: 244px;
    height: 197px;
    padding: 5px;
    margin: 0 1px 18px 0;
    display: inline-block;
    vertical-align: top;
    border-radius: 2px;
    line-height: 13px;
    position: relative;
}
.attachment .video_item {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}
.video_item .video_item_thumb_wrap {
    background-size: initial;
    background-image: url("../icons/video_empty.svg");
    background-color: var(--page-header-background-color);
    background-repeat: no-repeat;
    background-position: 50%;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}
.video_item .video_item_thumb {
    width: 244px;
    height: 136px;
    cursor: pointer;
    border-radius: 2px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50%;
    -ms-high-contrast-adjust: none;
    position: relative;
    display: block;
}
.video_item_controls {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 2;
}
.video_thumb_label {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 2;
    margin: 8px;
    padding: 0 7px;
    border-radius: 3px;
    background: var(--overlay-background-color);
    color: var(--white);
    font-size: 12.5px;
    line-height: 23px;
    height: 23px;
    white-space: nowrap;
}
.video_thumb_play {
    opacity: 0;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5) url(../video_play_small.png?1) 19px 13px no-repeat;
    margin: auto;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition:
        background-color 100ms linear,
        opacity 60ms ease;
    z-index: 2;
}
.video_item:hover .video_thumb_actions,
.video_item:hover .video_thumb_play {
    opacity: 1;
}
.video_thumb_play:hover {
    background-color: rgba(0, 0, 0, 0.6);
}
.video_item_info {
    color: var(--text-color--secondary);
    padding: 8px 0 0;
    font-size: 12.5px;
}
.video_item_info .video_item_title {
    padding: 2px 0 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    white-space: nowrap;
    overflow: hidden;
    display: block;
    text-overflow: ellipsis;
}
.video_item_title span {
    font-weight: 700;
}
.video_item_info .video_item_author {
    padding: 2px 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.video_item_info .video_item_add_info {
    white-space: nowrap;
    overflow: hidden;
    display: block;
    text-overflow: ellipsis;
    margin-top: 2px;
}
.video_item_info .video_description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    margin-top: 4px;
    color: var(--text-color--secondary);
    font-size: 12.5px;
    line-height: 16px;
}
.video_item_info .video_item_add_info {
    white-space: nowrap;
}
.video_item_info .video_item_updated {
    padding: 2px 0 3px;
}
.video_thumb_actions {
    position: absolute;
    top: 0;
    right: 0;
    margin: 8px;
    padding: 3px;
    border-radius: 3px;
    transition: opacity 60ms linear;
    z-index: 5;
    color: var(--white);
    background: var(--overlay-background-color);
    font-size: 12.5px;
    line-height: 0;
    opacity: 0;
    cursor: default;
}
.video_no_actions .video_thumb_actions {
    display: none;
}
.video_thumb_actions > div {
    cursor: pointer;
    opacity: 0.7;
    display: inline-block;
    padding: 3px;
    top: 0;
}
.video_thumb_actions > div:hover {
    opacity: 1;
}
.video_thumb_actions > div:active {
    position: relative;
    top: 1px;
}
.video_thumb_actions .icon {
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-image: url(../icons/photo_edit_actions.png);
}
.video_thumb_actions .video_thumb_action_edit .icon {
    background-position: 0 -65px;
}
.video_thumb_actions .video_thumb_action_delete .icon {
    background-position: 0 -32px;
}

.page_block .video_block_layout iframe {
    width: 765px !important;
    height: 430px !important;
}
.ovk-modal-video-window .page_block .video_block_layout iframe {
    width: 100% !important;
    height: 100% !important;
}

.video_items_list .page_block.deleted_mark {
    padding: 5px!important;
    text-align: center;
    box-shadow: none;
    border: 1px dashed var(--border-color)!important;
    color: var(--text-color--secondary);
    display: flex;
    justify-content: center;
    align-items: center;
}

.video_upload_list_actions {
    display: inline-flex;
    gap: 8px;
}
