/* =========================================================
   AniLog — меню статуса на карточке
   ========================================================= */

.status-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 195px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.115);
  border-radius: 14px;
  background: rgba(14, 15, 25, 0.97);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transform-origin: top left;
  animation: menu-in 0.16s var(--ease-out) both;
}

.status-menu button {
  display: flex;
  width: 100%;
  height: 36px;
  align-items: center;
  gap: 9px;
  padding: 0 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-soft);
  font-size: 11.5px;
  font-weight: 500;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.status-menu button:hover,
.status-menu button:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.status-menu button.is-current {
  background: rgba(139, 92, 246, 0.12);
  color: #fff;
}

.status-menu .status-dot {
  width: 7px;
  height: 7px;
}

.status-menu__check {
  width: 13px;
  height: 13px;
  margin-left: auto;
  color: var(--violet-light);
}

.card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 11;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.22s ease, transform 0.22s var(--ease-out);
}

.anime-card:hover .card-actions,
.anime-card:focus-within .card-actions {
  opacity: 1;
  transform: translateY(0);
}

.card-actions .icon-button {
  width: 32px;
  height: 32px;
  border-color: rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background: rgba(7, 8, 13, 0.63);
  color: rgba(255, 255, 255, 0.8);
}

.card-actions .icon-button .icon {
  width: 14px;
  height: 14px;
}

.card-actions .icon-button:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(139, 92, 246, 0.86);
  color: #fff;
}

.card-actions .icon-button[data-action="delete"]:hover {
  background: rgba(225, 45, 82, 0.86);
}

.cover-meta {
  position: absolute;
  right: 13px;
  bottom: 12px;
  left: 13px;
  z-index: 4;
}

.cover-meta__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.63);
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
}

.cover-meta__row strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
}

.cover-meta__percent {
  color: rgba(255, 255, 255, 0.46);
  font-variant-numeric: tabular-nums;
}

.progress-track {
  overflow: hidden;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cf6, #5eead4);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.7);
  transition: width 0.5s var(--ease-out);
}

.anime-card[data-status="completed"] .progress-fill {
  background: linear-gradient(90deg, #5eead4, #38bdf8);
  box-shadow: 0 0 10px rgba(94, 234, 212, 0.5);
}

.anime-card[data-status="planned"] .progress-fill {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.35);
}

.anime-card[data-status="dropped"] .progress-fill {
  background: linear-gradient(90deg, #fb7185, #f43f5e);
  box-shadow: 0 0 10px rgba(251, 113, 133, 0.35);
}

.anime-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px 7px 15px;
}

.anime-card__title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.64em;
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
}

.card-rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-top: 10px;
}

.star-meter {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 2px;
}

.star {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  background: rgba(255, 255, 255, 0.115);
  transition: background 0.2s ease, transform 0.2s var(--ease-out);
}

.star.is-filled {
  background: linear-gradient(135deg, #ffe9a3, #fbbf24 65%, #f59e0b);
  filter: drop-shadow(0 0 3px rgba(251, 191, 36, 0.24));
}

.anime-card:hover .star.is-filled {
  transform: scale(1.07);
}

.card-score {
  color: var(--violet-light);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.card-score__of {
  color: var(--muted-2);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
}

.anime-card__genres {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.genre-chip {
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
  white-space: nowrap;
}

.anime-card__note {
  display: -webkit-box;
  overflow: hidden;
  min-height: 16px;
  margin: 9px 0 0;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.anime-card__note.has-note {
  color: var(--muted);
}

.anime-card__note-mark {
  margin-right: 2px;
  color: rgba(183, 156, 255, 0.55);
  font-family: Georgia, serif;
  font-size: 13px;
}
