/* Кнопка крестика */
.clear-button {
    position: absolute;
    display: none;
    background-image: url(../img/close.svg);
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
    top: calc(50% - 5px);
    right: 16px;
    cursor: pointer;
}

/* Общие стили для блока результатов поиска */
.search-results {
    position: absolute;
    margin-top: 5px;
    top: 100%;
    height: 360px;
    width: calc(100% - -1px);
    min-height: 100px; 
    max-height: min-content;
    display: flex;
    overflow-y: auto;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 16px 0px 16px 0px;
    box-sizing: border-box;
    border-radius: 12px;
    background: rgb(255, 255, 255);
}

/* Дизайн скроллбара */
.search-results::-webkit-scrollbar {
    width: 0px;
    border-radius: 12px;
}

.search-results::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.0);
    border-radius: 12px;
}

.search-results::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.0);
    border-radius: 12px;
}

.form_imput::-webkit-search-decoration,
.form_imput::-webkit-search-cancel-button,
.form_imput::-webkit-search-results-button,
.form_imput::-webkit-search-results-decoration {
    display: none; /* Скрываем стандартный крестик */
}

/* Заголовок "Возможно, Вы Искали" */
.search-heading {
    position: static;
    width: 260px;
    height: 28px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0px 16px 8px 16px;
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: 0px;
    text-align: left;
}

/* Стили для отдельного элемента поиска (результата) */
.search-item {
    position: static;
    width: 461px;
    height: 84px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    margin: 0px 0px;
}



.search-poster img {
    position: static;
    width: 48px;
    height: 68px;
    /* Inside Auto Layout */
    flex: none;
    order: 0;
    flex-grow: 0;
    margin: 0px 16px;
    border-radius: 12px;
}

/* Заголовок аниме */
.search-anime-title {
    position: static;
    width: 370px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0px;
    color: rgb(18, 18, 18);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    margin: 2px 0px;
    text-align: left;
    text-overflow: ellipsis;
    overflow: hidden;
}

.search-anime-title a {
    color: rgb(18, 18, 18);
}


/* Подзаголовок с рейтингом и типом аниме */
.search-subtitle {
    position: static;
    width: 365px;
    height: 20px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 0px;
    margin: 2px 0px;
    color: rgb(128, 128, 128);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-align: left;
}

/* Кнопка "Подробнее" */
.search-more-btn {
    position: static;
    width: 461px;
    height: 36px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 8px 16px 4px 16px;
    background: none;
    border: none;
    color: rgb(65, 135, 45);
    font-family: Inter;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    cursor: pointer;
    gap: 4px;
}

.search-no-results {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px 59px;
    box-sizing: border-box;
}

.search-no-results-gif {
    width: 128px;
    height: 128px;
    margin: 10px 0;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.search-no-results-text {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    color: rgb(18, 18, 18);
}

.search-catalog-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 40px;
    margin-top: 12px;
    padding: 10px;
    background: rgb(41, 41, 41);
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
}

/* Ховер эффект для найденных аниме */
.search-item:hover {
    background-color: rgb(245, 245, 245);
    width: 100%;
    border-radius: 8px;
    transition: background-color 0.3s ease, border-radius 0.3s ease;
}

/* Зелёный рейтинг перед типом аниме */
.rating-number {
    color: rgb(45, 135, 45); /* Зелёный цвет */
    font-weight: 600;
    margin-right: 6px; /* Отступ перед типом */
}

