section {
}

.movie-item {
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    display: block;
    transition: transform 0.25s ease;
}

.movie-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 28px -22px #8f82ff;
    transition: box-shadow 0.25s ease;
}

.movie-item span {
    margin-top: 0.5rem;
    font-size: 12px;
    color: #fff;
}

.movie-info {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    opacity: 0;
    font-family: Arial, Helvetica, sans-serif;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-item:hover .image-overlay {
    background-color: rgba(16, 14, 25, 0.7)
}

.movie-item:hover .image-overlay-top {
    background-color: rgba(16, 14, 25, 0.7)
}

.movie-item:hover .movie-info {
    opacity: 1;
    transform: translateY(0);
}

.movie-item:hover,
.movie-item:focus-visible {
    transform: translateY(-3px);
}

.movie-item:hover .movie-image,
.movie-item:focus-visible .movie-image {
    box-shadow: 0 14px 28px -16px #8f82ff;
}


/* Овальный рейтинг */
.rating,
.status-badge {
    padding: 0.25rem 0.5rem;
    position: relative;
    color: white;
    border-radius: 10px;
    font-weight: bold;
}

.rating {
    background-color: rgba(0, 0, 0, 0.6);
    font-size: 14px;
}

/* Статус "Онгоинг" */
.status-badge {
    font-size: 12px;
    align-content: center;
}

.status-badge.ongoing {
    background-color: rgba(91, 46, 255, 0.9);
}

.status-badge.release {
    background-color: rgba(17, 194, 17, 0.9);
}

.status-badge.anons {
    background-color: rgba(247, 25, 62, 0.9);
}

/* Новый стиль для статуса "Смотрю" */
.status-watching {
    position: relative;
    display: block;
    color: white;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    background: linear-gradient(-195deg, #27972c, #06d90f);
    text-align: center;
    align-items: center;
    padding: 0.25rem;
}


.status-watching.watched {
    background: #00000040;
    backdrop-filter: blur(4px);
    font-family: "Pusia Bold";
    font-weight: normal;
    box-shadow: 0px 0px 6px -4px black inset;
}

.status-watching-text {
    color: lawngreen;
    opacity: 0.8;
}

.image-overlay,
.image-overlay-top {
    position: absolute; /* Позиционируем поверх списка */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease;
    border-radius: 9px;
}

.image-overlay {
    background: linear-gradient(to top, rgba(12, 11, 20, 0.78), rgba(12, 11, 20, 0.18) 52%, rgba(12, 11, 20, 0));
}

.image-overlay-top {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), /* Затемнение снизу с прозрачностью 0.9 */ rgba(0, 0, 0, 0) 25% /* Прозрачный сверху на 25% высоты */
    );
    border-radius: 9px;
}

.text-anime-title {
    display: -webkit-box;
    -webkit-box-orient: vertical; /* Вертикальная ориентация текста */
    -webkit-line-clamp: 2;
    overflow: hidden; /* Скрыть текст, который не помещается в блок */
    text-overflow: ellipsis; /* Добавить многоточие, если текст не помещается */
    text-align: center;
    height: 2.75rem; /* Задаем фиксированную высоту контейнера (можно изменить по вашему усмотрению) */
    line-height: 1.2; /* Устанавливаем межстрочный интервал */
}

/* Новый стиль для статуса "Смотрю" */
.top-anime-number {
    font-family: "Pusia Bold";
    padding-top: 1rem;
    color: gold;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    text-shadow: 0px 0px 5px rgba(255, 255, 255, 0.4);
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.watched-top {
    color: lawngreen;
    opacity: 0.85;
}


@media (prefers-reduced-motion: reduce) {
    .movie-item,
    .movie-image,
    .movie-info,
    .image-overlay,
    .image-overlay-top {
        transition: none;
    }
}
