@import "../common/vars.css";

.loader-dots .dot1{
    animation: load 1s infinite;
}
.loader-dots .dot2{
    animation: load 1s infinite;
    animation-delay: 0.2s;
}
.loader-dots .dot3{
    animation: load 1s infinite;
    animation-delay: 0.4s;
}
@keyframes load{
    0%{
        opacity: 0;
    }
    50%{
        opacity: 1;
    }
    100%{
        opacity: 0;
    }
}
@keyframes l8 {
    100% {background-position: top left}
}
.content {
    display: flex;
    gap: 32px;
    flex-direction: column;
}
.ykt-library {
    padding: 32px;
    background-color: #fff;
    border-radius: 16px;
}
.ykt-library_breadcrumbs {
    list-style-type: none;
    padding: 4px 0;
    margin: 0 0 8px 0;
    display: flex;
    flex-direction: row;
    gap: 8px;
}
.ykt-library_breadcrumbs li {
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 16px; /* 133.333% */
    color: #acafb5;
    display: flex;
    justify-content: center;
    align-items: center;
}
.ykt-library_breadcrumbs li a {
    color: #121315;
    text-decoration: none;
}
.ykt-library_title {
    color: #000;
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    line-height: 36px;
    margin-bottom: 32px;
}
.ykt-library_search {
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding-left: 12px;
    align-items: center;
    border-radius: 16px;
    border: 1px solid rgba(89, 95, 107, 0.04);
    background: #FAFAFB;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.00) inset;
    margin-bottom: 24px;
}
.ykt-library_search_input {
    font-size: 16px;
    font-weight: 500;
    line-height: 56px;
    color: #93979F;
    border: none;
    background-color: transparent;
    display: block;
    flex-grow: 1;
}
.ykt-library_search_input:focus {
    outline: none;
}
.ykt-library_empty {
    height: 545px;
    display: none;
    align-content: center;
    align-items: center;
    justify-content: center;
}
.ykt-library_empty.show {
    display: flex;
}
.ykt-library_loader {
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    height: 300px;
}
.ykt-library_items {
    display: none;
}
.ykt-library_item {
    height: 322px;
    width: 305px;
    flex: 0 0 305px;
}
.ykt-library_item a {
    text-decoration: none;
}
.ykt-library_item_cover {
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    height: 170px;
    background-color: #f1f1f1;
    position: relative;
}
.ykt-library_item_cover_img {
    width: 100%;
    height: 100%;
    object-fit: fill; /* Заполняет контейнер, обрезая лишнее */
    display: block;
}
.ykt-library_item_body {
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    padding: 8px 12px 12px 12px;
    border-left: 1px solid #c4c4c4;
    border-right: 1px solid #c4c4c4;
    border-bottom: 1px solid #c4c4c4;
    background-color: #fff;
    height: 132px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ykt-library_item_meta {
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
    color: #93979F;
}
.ykt-library_item_title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    align-self: stretch;
    line-height: 24px;
    font-weight: 500;
    font-size: 16px;
    font-style: normal;
    color: #121315;
    overflow: hidden;
}
.ykt-library_item_desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    align-self: stretch;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    color: #93979F;
    overflow: hidden;
}

.ykt-library_footer {
    margin-top: 32px;
}

.ykt-library_showmore {
    border-radius: 16px;
    background: rgba(53, 127, 252, 0.10);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.00) inset;
    color: #357FFC;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px; /* 150% */
    padding: 12px 0;
    cursor: pointer;
    display: none;
}

.ykt-library_pagination {
    display: flex;
    gap: 5px;
    justify-content: flex-end;
}
.ykt-library_pagination__button {
    padding: 11px 16px;
    background-color: #fff;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    border: none;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px;
}
.ykt-library_pagination__button.prev,
.ykt-library_pagination__button.next {
    padding: 6px 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ykt-library_pagination__button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ykt-library_pagination__button.active {
    background-color: #357ffc;
    color: white;
}

.ykt-library.init .ykt-library_items {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.ykt-library.loading .ykt-library_loader {
    display: flex !important;
}
.ykt-library.init .ykt-library_loader {
    display: none;
}

.ykt-library_filter {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 20px;
}
.ykt-library_filter_category_toggle {
    padding: 10px 12px;
    border-radius: 1000px;
    border: 1px solid #C1C1C1;
    background: #FFF;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    color: #000;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px;
    cursor: pointer;
}
.ykt-library_filter_category_toggle_logos {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.ykt-library_filter_category_toggle_logos img {
    margin-left: -12px;
    width: 24px;
    height: 24px;
}
.ykt-library_filter_category_toggle_logos img:first-child {
    margin-left: 0;
}

.ykt-library_filter_category {
    position: relative;
}
.ykt-library_filter_category_modal {
    position: absolute;
    top: 54px;
    z-index: 100;
    width: 365px;
    display: none;
}
.ykt-library_filter_category_modal.show {
    display: block;
}
.ykt-library_filter_category_modal_wrapper {
    background-color: #fff;
    z-index: 102;
    padding: 16px 20px;
    border-radius: 32px;
    box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.08);
}
.ykt-library_filter_category_modal_header {
    display: flex;
    flex-direction: row;
    color: #000;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 36px; /* 108.333% */
    justify-content: space-between;
    margin-bottom: 28px;
}
.ykt-library_filter_category_modal_closeicon {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 36px;
    border-radius: 11px;
    background: rgba(89, 95, 107, 0.05);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.00) inset;
    cursor: pointer;
}
.ykt-library_filter_category_modal_footer {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-top: 28px;
}
.ykt-library_filter_category_modal_close,
.ykt-library_filter_category_modal_reset {
    flex-grow: 1;
    color: #111;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px; /* 150% */
    padding: 12px 0;
    border-radius: 1000px;
    border: 1px solid rgba(89, 95, 107, 0.08);
    background: rgba(255, 255, 255, 0.00);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.00) inset;
    cursor: pointer;
}
.ykt-library_filter_category_modal_close {
    background-color: #357ffc;
    color: #fff;
    cursor: pointer;
}
.ykt-library_filter_category_modal_body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 200px;
    overflow-y: auto;
}
.ykt-library_filter_category_modal_item {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.ykt-library_filter_category_modal_item_title {
    color: #000;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 150% */
    flex-grow: 3;
    display: flex;
    align-items: center;
    order: 2;
}
.ykt-library_filter_category_modal_item_state {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 18px;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid rgba(89, 95, 107, 0.08);
    background: #FAFAFB;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.00) inset;
    order: 1;
}
.ykt-library_filter_category_modal_item_state.active {
    background-color: #357ffc;
}

@media (max-width: 900px) {}

@media (max-width: 600px) {
    .ykt-library {
        padding: 20px 16px;
        border-radius: 0;
    }
    .ykt-library_breadcrumbs {
        display: none;
    }
    .ykt-library_title {
        font-size: 24px;
        line-height: 28px;
        margin-bottom: 20px;
    }
    .ykt-library_search {
        margin-bottom: 20px;
    }
    .ykt-library_search_input {
        font-size: 14px;
        line-height: 48px;
    }
    .ykt-library_footer {
        margin-top: 20px;
    }
    .ykt-library_showmore {
        display: block;
    }
    .ykt-library_item {
        width: 100%;
        flex: 0 0 100%;
    }
    .ykt-library_pagination {
        display: none;
    }
    .ykt-library_loader,
    .ykt-library_empty {
        height: 300px;
    }

    .ykt-library_filter_category_toggle {
        font-size: 14px;
        line-height: 16px;
    }

    .ykt-library_filter_category_modal {
        position: fixed;
        bottom: 0;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        width: auto;
    }
    .ykt-library_filter_category_modal_cover {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        background-color: rgb(0 0 0 / 30%);
        backdrop-filter: blur(10px);
        z-index: 101;
    }
    .ykt-library_filter_category_modal_wrapper {
        background-color: #fff;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 12px 16px 24px;
        z-index: 102;
        border-radius: 28px 28px 0 0;
    }
    .ykt-library_filter_category_modal_body {
        gap: 0;
    }
    .ykt-library_filter_category_modal_item {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 8px;
        padding: 16px 0;
        border-top: 1px solid #f0f0f0;
    }
    .ykt-library_filter_category_modal_item:first-child {
        padding-top: 0;
        border-top: none;
    }
    .ykt-library_filter_category_modal_item_logo {
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .ykt-library_filter_category_modal_item_title {
        flex-grow: 3;
        display: flex;
        align-items: center;
        order: 0;
    }
    .ykt-library_filter_category_modal_item_state {
        display: flex;
        justify-content: center;
        align-items: center;
        flex: 0 0 18px;
        width: 20px;
        height: 20px;
        border-radius: 4px;
        border: 1px solid rgba(89, 95, 107, 0.08);
        background: #FAFAFB;
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.00) inset;
        order: 1;
    }
    .ykt-library_filter_category_modal_item_state.active {
        background-color: #357ffc;
    }

    .ykt-library_item {
        height: 352px;
    }
    .ykt-library_item_cover {
        height: 200px;
    }
}