:root {
    --main-color-cs: #588ae7;
    --noty-background: #101214;
    --header-link-color: rgba(255, 255, 255, 0.9);
    --header-link-hover: rgba(255, 255, 255, 0.6);
}

body.light {
    --noty-background: #e5e7eb;
    --body-background: #f7f8fa;
    --color-h1-h2: #16171b;
    --tag-background: #e5e7eb;
}

@media (max-width: 580px) {
    .list-models .item {
        width: calc(50% - 10px) !important;
    }
}

.block-details .item a {
    margin: 0 8px 8px 0;
}

.block-details .item span {
    margin: 0 5px 6px;
}

@media (max-width: 767px) {
    .block-details .hidden_tags {
        max-height: 64px;
    }
}

.block-details .hidden_tags,
.block-details .item {
    margin-bottom: 4px;
}

.item .models__item,
.item .models__item svg,
.item .models__item span {
    color: var(--card-color-wrap) !important;
    transition: color .3s;
}

.item .models__item.thumb_cs svg {
    color: var(--main-color-cs) !important;
}

@media (min-width: 1025px) {
    .item .models__item:hover,
    .item .models__item:hover svg,
    .item .models__item:hover span {
        color: var(--main-color) !important;
    }


    .item .models__item.thumb_cs:hover,
    .item .models__item.thumb_cs:hover svg,
    .item .models__item.thumb_cs:hover span {
        color: var(--main-color-cs) !important;
    }

}

.item .models {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    white-space: nowrap;
    max-width: 100%;
    min-width: 0;
    padding-right: 24px;
}

.item .models.is-truncated::after {
    content: "...";
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    display: flex;
    align-items: center;
    width: 13px;
    background: var(--body-background);
    z-index: 2;
    font-size: 14px;
    line-height: 20px;
    padding-left: 2px;
}

body.light .item .models.is-truncated::after  {
    background: var(--body-background);
}

@media (max-width: 992px) {
    .item .models {
        overflow-x: auto;
        padding-right: 0;
    }
    .item .models.is-truncated::after,
    .item .models__item:after {
        display: none;
    }
    .item .models__item {
        background: var(--tag-background);
        padding: 0 8px;
        margin: 0 8px 8px 0;
        height: 24px;
        border-radius: var(--border-radius);
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .item .models__item svg,
    .item .models__item span {
        display: inline-block;
        vertical-align: middle;
        line-height: 1;
    }
}

.thumb-favourites {
    position: absolute;
    right: 5px;
    bottom: 5px;
    box-sizing: border-box;
    line-height: 1;
    background: rgba(0, 0, 0, .4);
    border-radius: 10px;
    cursor: pointer;
    display: block;
    min-width: 40px;
    z-index: 3;
    font-size: 25px;
    padding: 6px 11px;
    line-height: 0;
    color: var(--header-link-color);
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: visibility .3s, opacity .3s, color .3s;
}

@media (min-width: 1025px) {
    .thumb-favourites:hover {
        color: var(--main-color);
    }
}

.preview-play .thumb-favourites {
    opacity: 1;
    visibility: visible;
}

.item .img .duration {
    overflow: hidden;
    transition: visibility .3s, opacity .3s;
}

.preview-play .duration {
    opacity: 0;
    visibility: hidden;
}

.js-favourites {
    cursor: pointer;
}

.js-favourites svg,
.js-favourites span {
    display: none;
}

.js-favourites[data-action=add] .heart-plus,
.js-favourites[data-action=add] .icon-heart-plus {
    display: inline-block;
}

.js-favourites[data-action=delet] .trashcan,
.js-favourites[data-action=delet] .heart-minus,
.js-favourites[data-action=delet] .icon-trashcan,
.js-favourites[data-action=delet] .icon-heart-minus {
    display: inline-block;
}

.video-favourites {
    line-height: 0;
    margin-left: 32px;
    font-size: 21px;
    color: var(--header-link-color);
    transition: color .3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

body.light .tags__title,
body.light .info-buttons .views:before,
body.light .video-favourites {
    color: var(--color-h1-h2);
}

body.light .info-buttons .views:before {
    color: var(--body-color-text);
}

.js-favourites span {
    font-weight: 400;
    line-height: 1.2;
    font-size: 16px;
}

@media (min-width: 1025px) {
    .video-favourites:hover {
        color: var(--main-color) !important;
    }
}

.navigation .primary ul .favourites_header {
    margin: 0 0px 0 20px;
    position: relative;
    padding: 17px 4px;
    line-height: 0;
    font-size: 19px;
}

.theme-holder {
    margin: 0 0 0 20px;
}

.theme-holder,
.navigation .primary ul .favourites_header,
.navigation .primary .item-list,
.navigation .primary ul,
.navigation .primary li {
    margin-left: 20px;
}

@media screen and (max-width: 1100px) {
    .theme-holder,
    .navigation .primary ul .favourites_header,
    .navigation .primary .item-list,
    .navigation .primary ul,
    .navigation .primary li {
        margin-left: 15px;
    }
}

@media screen and (max-width: 1024px) {
    .theme-holder,
    .navigation .primary ul .favourites_header,
    .navigation .primary .item-list,
    .navigation .primary ul,
    .navigation .primary li {
        margin-left: 0;
    }
}

.mobile-search_favourites .favourites_header .count-favourites,
.navigation .primary ul .favourites_header .count-favourites {
    position: absolute;
    top: 12px;
    right: -5px;
    font-size: 11px;
    background-color: var(--main-color);
    line-height: 1;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

.mobile-search_favourites {
    display: none;
}

@media screen and (max-width: 1024px) {
    .navigation .primary .favourites_header {
        display: none;
    }
    .mobile-search_favourites {
        display: flex;
        align-items: center;
        order: 3;
        flex-direction: row-reverse;
        gap: 5px;
        margin-right: 10px;
    }
}

.mobile-search_favourites .favourites_header {
    padding: 8px 0;
    position: relative;
    color: #777a81;
    -webkit-transition: color .3s;
    transition: color .2s linear;
    white-space: nowrap;
    -webkit-box-flex: 1;
    -ms-flex: 1 1;
    flex: 1 1;
    font-size: 19px;
    line-height: 0;
}

.mobile-search_favourites .favourites_header .count-favourites {
    top: 3px;
    right: -9px;
}

.noty_theme__mint.noty_type__error,
.noty_theme__mint.noty_type__info,
.noty_theme__mint.noty_type__information,
.noty_theme__mint.noty_type__success {
    background-color: var(--noty-background);
    color: var(--color-h1-h2);
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
}

.item .models {
    display: flex;
}

.item .models__item:last-child:after {
    content: ',';
}

.item .models__item span {
    display: inline-block;
    vertical-align: middle;
    transition: color .2s linear;
}

.item .models__item svg {
    display: inline-block;
    vertical-align: middle;
    color: #f8c539;
}

.item .models__item.thumb_cs svg {
    color: #3179ff;
}

@media (min-width: 1025px) {
    .item .models__item:hover span {
        color: var(--main-color) !important;
    }
}

@media (max-width: 992px) {
    .item .models__item::after {
        content: '' !important;
    }
    .item .models__item {
        background: var(--tag-background);
        padding: 0 8px;
        margin: 0 8px 8px 0;
        height: 24px;
        border-radius: var(--border-radius);
    }
}

.thumb-favourites {
    position: absolute;
    right: 5px;
    bottom: 5px;
    box-sizing: border-box;
    line-height: 1;
    background: rgba(0, 0, 0, .4);
    border-radius: 10px;
    cursor: pointer;
    display: block;
    min-width: 40px;
    z-index: 3;
    font-size: 25px;
    padding: 6px 11px;
    line-height: 0;
    color: var(--header-link-color);
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: visibility .3s, opacity .3s, color .3s;
}

@media (min-width: 1025px) {
    .thumb-favourites:hover {
        color: var(--main-color);
    }
}

.preview-play .thumb-favourites {
    opacity: 1;
    visibility: visible;
}

.item .img .duration {
    overflow: hidden;
    transition: visibility .3s, opacity .3s;
}

.preview-play .duration {
    opacity: 0;
    visibility: hidden;
}

.js-favourites {
    cursor: pointer;
}

.js-favourites svg {
    display: none;
}

.js-favourites[data-action=add] .icon-heart-plus {
    display: inline-block;
}

.js-favourites[data-action=delet] .icon-trashcan,
.js-favourites[data-action=delet] .icon-heart-minus {
    display: inline-block;
}

.video-favourites {
    line-height: 0;
    margin-left: 32px;
    font-size: 21px;
    color: var(--header-link-color);
    transition: color .3s;
}

body.light .video-favourites {
    color: #16171b;
}

@media (min-width: 1025px) {
    .video-favourites:hover {
        color: var(--main-color) !important;
    }
}

.block-details .hidden_tags {
    max-height: 32px;
}

.headline .more.flex {
    display: flex;
    align-items: center;
    gap: 5px;
}

.headline .more.flex svg {
    position: relative;
    top: -1px;
}

.headline .more.opacity {
    opacity: 0;
    visibility: hidden;
    cursor: default;
    pointer-events: none;
}

.noty_theme__mint.noty_bar {
    border-radius: var(--border-radius);
}

@media screen and (max-width: 992px) {
    #noty_layout__topRight.videos_favourites {
        top: 45px;
        right: 29px;
    }

    @media screen and (max-width: 420px) {
        #noty_layout__topRight.videos_favourites {
            top: 37px;
        }
    }

    #noty_layout__topRight.videos_favourites .noty_bar {
        border-radius: 15px 2px 15px 15px;
    }
}

/* Video actions and Share dialog (kvs-many-tpl 59018ad0). */
#noty_layout__topRight {
    z-index: 10000002;
}

@media (min-width: 1025px) {
    .info-buttons__download.action-btn {
        margin-left: auto;
    }

    .info-buttons .info-buttons__download.action-btn .icon {
        display: none;
    }

    .info-buttons .js-share.action-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-left: 24px;
        color: var(--main-color);
        font-size: 14px;
        line-height: 1;
        cursor: pointer;
        transition: color .3s;
    }

    .info-buttons .js-share.action-btn svg {
        width: 18px;
        height: 18px;
        fill: currentColor;
    }

    .info-buttons .js-share.action-btn:hover {
        color: var(--select-color);
    }
}

@media (max-width: 1024px) {
    .info-buttons {
        gap: 15px;
        justify-content: space-between;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .info-buttons .rating-container {
        display: contents;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .info-buttons .action-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
        margin: 0;
        padding: 0;
        background: none;
        color: var(--body-color-text);
        font-size: 13px;
        line-height: 1.1;
        font-weight: 400;
        text-align: center;
        cursor: pointer;
        transition: color .3s;
        flex-direction: row;
    }

    .info-buttons .action-btn svg {
        width: 22px;
        height: 22px;
        fill: currentColor;
        color: inherit;
    }

    .info-buttons .vote-wrapper.action-btn .rate-like,
    .info-buttons .vote-wrapper.action-btn .rate-dislike {
        width: 22px;
        height: 22px;
        margin: 0;
    }

    .info-buttons .vote-wrapper.action-btn .rate-like:before,
    .info-buttons .vote-wrapper.action-btn .rate-dislike:before {
        font-size: 20px;
        color: var(--body-color-text);
    }

    .info-buttons .vote-wrapper.action-btn .count {
        font-size: 13px;
        line-height: 1.1;
        color: inherit;
    }

    .info-buttons .views.action-btn {
        margin: 0;
        padding: 0;
    }

    .info-buttons .views.action-btn:before {
        content: "\e901";
        font-family: icon !important;
        position: static;
        transform: none;
        display: block;
        width: 22px;
        height: 22px;
        line-height: 22px;
        font-size: 19px;
        color: inherit;
    }

    .info-buttons .js-share.action-btn span,
    .info-buttons .video-favourites.action-btn span,
    .info-buttons .info-buttons__download.action-btn span,
    .info-buttons .views.action-btn span {
        display: none;
    }

    .info-buttons .video-favourites.action-btn {
        margin: 0;
        font-size: 13px;
        color: var(--body-color-text);
        margin-left: auto;
    }

    .info-buttons .video-favourites.action-btn span {
        font-size: 13px;
        line-height: 1.1;
    }

    .info-buttons .info-buttons__download.action-btn {
        color: var(--body-color-text);
    }

    .info-buttons .info-buttons__download.action-btn span {
        margin: 0;
    }

    body.light .info-buttons .video-favourites.action-btn,
    body.light .info-buttons .info-buttons__download.action-btn {
        color: var(--body-color-text);
    }
}

.share-modal .modal-wrapper {
    width: 420px;
    max-width: calc(100vw - 32px);
    padding: 24px;
}

.share-modal .modal-content {
    display: block;
    width: 100%;
    align-items: stretch;
}

.share-modal .modal-close {
    color: var(--color-h1-h2);
}

.share-modal__title {
    font-weight: 600;
    font-size: 15px;
    line-height: 20px;
    color: var(--color-h1-h2);
    margin-bottom: 16px;
}

.share-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    width: 100%;
    margin-bottom: 20px;
}

.share-socials__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: calc(20% - 10px);
    min-width: 56px;
    font-size: 12px;
    line-height: 1.1;
    color: var(--body-color-text);
    text-align: center;
}

.share-socials__item svg {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: transform .2s;
}

@media (min-width: 1025px) {
    .share-socials__item:hover svg {
        transform: translateY(-2px);
    }
}

.share-socials__x svg {
    background: #000;
    color: #fff;
    padding: 11px;
    box-sizing: border-box;
}

.share-copy__label {
    display: block;
    font-size: 13px;
    color: var(--body-color-text);
    margin-bottom: 8px;
}

.share-copy__row {
    display: flex;
    gap: 8px;
}

.share-copy__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    background: var(--body-background);
    color: var(--color-h1-h2);
    font-size: 13px;
}

.share-copy__btn {
    flex: 0 0 auto;
    width: 44px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--border-radius);
    background: var(--main-color);
    color: #000;
    cursor: pointer;
    transition: opacity .3s;
}

.share-copy__btn:hover {
    opacity: .85;
}