section {
}

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

.movie-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

.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;
}

.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;
}


/* Овальный рейтинг */
.rating {
    padding: 0.25rem 0.5rem;
    position: relative;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
}

/* Статус "Онгоинг" */
.status-badge {
    padding: 0.25rem 0.5rem;
    position: relative;
    color: white;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    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 {
    position: absolute; /* Позиционируем поверх списка */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease;
}

.image-overlay-top {
    position: absolute; /* Позиционируем поверх списка */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease;
    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; /* Вертикальная ориентация текста */
    overflow: hidden; /* Скрыть текст, который не помещается в блок */
    text-overflow: ellipsis; /* Добавить многоточие, если текст не помещается */
    display: flex; /* Используем flexbox для центрирования */
    justify-content: 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;
}
