/*
 * AnimeRank — Modal Stilleri (ANI-31)
 */

.ar-modal-overlay {
  position: fixed;
  inset: 0;
  /* Oynatıcı katmanları 2147483647'ye kadar çıkıyor — modal HER ZAMAN en üstte olmalı */
  z-index: 2147483647;
  background: rgba(6, 4, 8, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: background 0.22s ease, backdrop-filter 0.22s ease;
}

.ar-modal-overlay--visible {
  background: rgba(6, 4, 8, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.ar-modal {
  position: relative;
  background: #141414;
  border-radius: 6px;
  padding: 28px;
  max-width: 380px;
  width: 100%;
  text-align: left;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: scale(0.97);
  opacity: 0;
  transition:
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.18s ease;
}

.ar-modal-overlay--visible .ar-modal {
  transform: scale(1);
  opacity: 1;
  transition-duration: 0.26s, 0.22s;
}

.ar-modal-overlay:not(.ar-modal-overlay--visible) .ar-modal {
  transition-duration: 0.14s, 0.1s;
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}

.ar-modal__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}

.ar-modal__icon { display: flex; flex: none; }
.ar-modal__icon lord-icon { display: block; }

.ar-modal__title {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}

.ar-modal__message {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 24px;
  line-height: 1.55;
  max-width: 62ch;
}

.ar-modal__message strong {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.ar-modal__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.ar-modal__btn {
  border-radius: 6px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
  font-family: inherit;
  line-height: 1.2;
}

.ar-modal__btn:active {
  transform: scale(0.97);
}

.ar-modal__btn--cancel {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  padding: 13px 22px;
}

.ar-modal__btn--cancel:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.ar-modal__btn--confirm {
  padding: 13px 30px;
  min-width: 108px;
}

.ar-modal__btn--danger {
  background: #dc2626;
  color: #fff;
}
.ar-modal__btn--danger:hover {
  background: #c11d1d;
}

.ar-modal__btn--success {
  background: #21a35e;
  color: #fff;
}
.ar-modal__btn--success:hover {
  background: #1b8a4e;
}

.ar-modal__btn--info {
  background: #dc2626;
  color: #fff;
}
.ar-modal__btn--info:hover {
  background: #c11d1d;
}

@media (prefers-reduced-motion: reduce) {
  .ar-modal-overlay,
  .ar-modal {
    transition-duration: 0.01ms !important;
  }
}
