/* Custom AnimeKai Aesthetics & Mobile Optimization */
* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

/* Custom AnimeKai Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #0a0b10;
}

::-webkit-scrollbar-thumb {
  background: #23263b;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff5722;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

/* Glassmorphism & Glow Effects */
.card-glow:hover {
  box-shadow: 0 10px 30px -10px rgba(255, 87, 34, 0.25);
}

.anime-card {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: hover) {
  .anime-card:hover {
    transform: translateY(-6px);
  }
}

/* Smooth modal popup */
@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-in {
  animation: modalIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Slide drawer animation */
@keyframes drawerSlide {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.drawer-open {
  animation: drawerSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Mobile Safe Areas (iPhone notch & bottom indicator) */
.safe-area-pb {
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
}
.safe-area-pt {
  padding-top: env(safe-area-inset-top, 0px);
}

/* Modal responsive constraints */
.modal-body-scroll {
  max-height: calc(90vh - 70px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
