.item_anime {
  display: flex;
  flex-direction: column;
  user-select: none;
  overflow: hidden;
}

.item_anime a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  position: relative;
}

.item_anime__top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 5px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}

#item_anime__top_age,
#item_anime__top_num-num {
  font-size: 0.95em;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.65);
  color: var(--text-primary);
  padding: 2px 8px;
  border-radius: 10px;
  user-select: none;
}



@media (min-width: 1200px) {
  .item_anime__image {
    height: 270px;
  }
}

@media (min-width: 768px) and (max-width: 1200px) {
  .item_anime__image {
    height: 270px;
  }
}

@media (max-width: 768px) {
  .item_anime__image {
    height: 240px;
  }

  .item_anime__top {
    padding: 3px;
  }
}

/* .item_anime__image {
  overflow: hidden;
  border-radius: 12px;
  width: 100%;
}

.item_anime__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: all .3s;
}

.item_anime__image:hover img {
  transform: scale(1.1);
} */

.item_anime__image {
  overflow: hidden;
  border-radius: 12px;
  width: 100%;
  position: relative;
}

.item_anime__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: all .3s;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

@media (hover:hover) {
  .item_anime__image:hover img {
    transform: scale(1.1);
    filter: brightness(0.8);
  }
}


.item_anime__image::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 1;
}

.item_anime__image::after {
  content: "▶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  color: var(--text-blue);
  font-size: 1.5rem;
  transition: all 0.3s ease 0.1s;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.item_anime__image:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

.item_anime__image:hover::after {
  transform: translate(-50%, -50%) scale(1);
}




.item_anime__title {
  width: 100%;
}

.item_anime__title h3 {
  font-size: 1.1em;
  font-weight: 500;
  font-family: var(--font-semi-bold);
  padding: 0;
  margin: 0;
  color: var(--text-primary);
  padding: 5px 5px;
  text-align: center;
  word-break: break-word;
  text-overflow: ellipsis;
  overflow: hidden;

  /* Ограничение на 3 строки */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  max-height: calc(1.2em * 3);
  /* Примерная высота для 3 строк */
}


.status_me {
  display: flex;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto 0 auto;
  max-width: 100%;
  min-width: max-content;
  z-index: 3;
  justify-content: center;
  border-radius: 0 0 12px 12px;
}

.status_me#watching {
  background-color: var(--anime-list-w);
}

.status_me#planned {
  background-color: var(--anime-list-p);
}

.status_me#completed {
  background-color: var(--anime-list-c);
}

.status_me#on_hold {
  background-color: var(--anime-list-o);
}

.status_me#dropped {
  background-color: var(--anime-list-d);
}

.status_me span {
  color: rgba(255, 255, 255, 1.0);
  font-size: 1.1em;
  font-weight: 400;
  padding: 4px 5px;
}