body {
      font-family: 'Inter', sans-serif;
      overflow-x: hidden;
    }
    .no-scrollbar::-webkit-scrollbar {
    display: none;
  }
  .no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  
  @keyframes marquee-loop {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }

  .animate-marquee-loop {
    animation: marquee-loop 30s linear infinite;
  }

  .paused {
    animation-play-state: paused !important;
  }
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0f1624;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(124, 58, 237, 0.8); 
  border-radius: 12px;
  border: 2px solid #0f1624;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(139, 92, 246, 1); 
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 58, 237, 0.8) #0f1624;
}

html {
  scroll-behavior: smooth;
}
* {
  -webkit-tap-highlight-color: transparent;
  -webkit-focus-ring-color: transparent;
  outline: none;
}

.clicked-effect {
  background-color: rgba(128, 128, 128, 0.2);
  transition: background-color 0.2s ease;
}
.slider-container {
  position: relative;
  width: 100%;
  height: 24rem; 
  overflow: hidden;
}

.slider-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 2s ease, transform 2s ease;
  z-index: 0;
}

.slider-slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 1;
}

.slider-slide.exiting {
  opacity: 0;
  transform: translateX(-30px);
  z-index: 1;
  transition: opacity 2s ease, transform 2s ease;
}

@keyframes modalOpen {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes modalClose {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.95);
  }
}

.modal-animate-open {
  animation: modalOpen 0.3s ease-out forwards;
}

.modal-animate-close {
  animation: modalClose 0.3s ease-in forwards;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
  }
  .scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  @keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.shimmer-bg {
  position: relative;
  overflow: hidden;
  background-color: #1f1f1f;
}

.shimmer-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  height: 100%;
  width: 150%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255,255,255,0.1) 50%,
    transparent 100%
  );
  animation: shimmer 1.5s infinite;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;  
  scrollbar-width: none;     
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
  }

  .lastSeenskeleton {
    background: linear-gradient(
      90deg,
      rgba(255,255,255,0.05) 25%,
      rgba(255,255,255,0.15) 50%,
      rgba(255,255,255,0.05) 75%
    );
    background-size: 400% 100%;
    animation: shimmer 1.5s infinite;
  }

  .lastSeenskeleton-card {
    width: 290px;
    min-width: 290px;
    height: 160px;
    border-radius: 1rem;
    overflow: hidden;
    background-color: #1f2937;
  }

  .lastSeenskeleton-img {
    width: 100%;
    height: 160px;
    background-color: #374151;
  }

  .lastSeenskeleton-text {
    height: 12px;
    margin: 4px 12px;
    border-radius: 6px;
    background-color: #374151;
  }
    /* Small screens adjustments */
@media (max-width: 768px) {
  .lastSeenskeleton-card,
  #last-seen-container > a > div { /* targets real cards too */
    width: 200px;
    min-width: 200px;
    height: 120px;
  }

  .lastSeenskeleton-img,
  #last-seen-container > a > div img {
    height: 120px;
  }

  .lastSeenskeleton-text {
    height: 10px;
  }

  #last-seen-container > a > div span { /* title text font-size smaller */
    font-size: 0.75rem;
  }

  #last-seen-container > a > div div { /* episode/duration row */
    font-size: 0.65rem;
  }

  #last-seen-container > a > div div > div { /* progress bar height smaller */
    height: 3px;
  }
}
@media (max-width: 768px) {
  /* Move title & episode row to top */
  #last-seen-container > a > div > div {
    flex-direction: column; /* vertical layout */
    justify-content: flex-start; /* align items to top */
    padding: 0.25rem 0.5rem; /* smaller padding */
  }

  #last-seen-container > a > div > div span,
  #last-seen-container > a > div > div div {
    margin-bottom: 0.25rem; /* spacing between title and episode row */
  }

  /* Keep gradient overlay covering full card */
  #last-seen-container > a > div > div {
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0));
  }
}
.no-scrollbar::-webkit-scrollbar { display: none; }
  .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

    @keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .animate-fadeIn { animation: fadeIn 1s ease forwards; }
  /* Banners */
  .rec-card {
  width: 220px;      /* smaller width for mobile */
  min-width: 220px;
  height: 120px;     /* smaller height for mobile */
  border-radius: 1rem;
  overflow: hidden;
  background-color: #1f2937;
  position: relative;
  scroll-snap-align: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Medium+ screens keep the original size */
@media (min-width: 768px) {
  .rec-card {
    width: 320px;
    min-width: 320px;
    height: 180px;
  }
}


  .rec-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  }

  .rec-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .rec-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    opacity: 1;
  }

  .rec-title {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
  }

  .rec-genres {
    color: #d1d5db;
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Hover play button overlay */
  .rec-hover {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    background-color: rgba(0,0,0,0.3);
  }

  .rec-card:hover .rec-hover {
    opacity: 1;
  }

  .rec-hover button {
    background-color: #8b5cf6;
    padding: 0.6rem;
    border-radius: 50%;
  }

  .rec-hover svg {
    width: 28px;
    height: 28px;
    fill: white;
  }
 @keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
  }

  .skeleton {
    background: linear-gradient(
      90deg,
      rgba(255,255,255,0.05) 25%,
      rgba(255,255,255,0.15) 50%,
      rgba(255,255,255,0.05) 75%
    );
    background-size: 400% 100%;
    animation: shimmer 1.5s infinite;
  }

  .anime-card {
    display: flex;
    align-items: flex-start;
    background-color: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 1rem;
    overflow: hidden;
    backdrop-filter: blur(6px);
    transition: transform 0.3s ease;
  }

  .anime-card:hover {
    transform: scale(1.02);
  }

  .poster {
    width: 35%;
    min-width: 100px;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 0.75rem 0 0 0.75rem;
  }

  .anime-details {
  flex: 1;
  padding: 0.5rem 0.75rem;
  color: white;
  display: flex;
  flex-direction: column;
  height: 100%;            /* ← make full height */
}
.anime-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: #e9d5ff;
}

.anime-genre {
  font-size: 0.8rem;
  color: #d1d5db;
  margin-bottom: 0.25rem;  /* ← keeps it close to title */
}

/* Footer pinned to bottom */
.anime-details .flex.justify-between {
  margin-top: auto;        /* ← pushes footer to bottom */
}

  .anime-desc {
    display: none; /* hidden by default */
  }

  .anime-date {
  font-family: 'Roboto Mono', monospace; /* modern monospaced font */
  color: #a78bfa;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}


  /* Skeleton layout */
  .skeleton-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background-color: rgba(31, 41, 55, 0.6);
    border-radius: 1rem;
    padding: 0.75rem;
  }

  .skeleton-img {
    width: 35%;
    min-width: 100px;
    height: 140px;
    border-radius: 0.75rem;
  }

  .skeleton-text {
    flex: 1;
  }

  .skeleton-line {
    height: 10px;
    border-radius: 6px;
    background-color: #374151;
    margin-bottom: 6px;
  }

  /* ✅ Responsive tweaks for phones */
  @media (max-width: 768px) {
    .anime-card {
      border-radius: 0.75rem;
      padding: 0.25rem;
      gap: 0.5rem;
    }

    .poster {
      width: 30%;
      min-width: 80px;
      border-radius: 0.5rem;
    }

    .anime-details {
      padding: 0.25rem 0.5rem;
    }

    .anime-title {
      font-size: 0.85rem;
    }

    .anime-genre {
      font-size: 0.75rem;
      margin-bottom: 0.25rem;
    }

    .anime-date {
      font-size: 0.7rem;
    }

    .skeleton-img {
      min-width: 80px;
      height: 120px;
    }

    .skeleton-line {
      height: 8px;
    }

    /* ✅ Show and limit description to 8 lines */
    .anime-desc {
      display: block;
      font-size: 0.7rem;
      color: #c4b5fd;
      margin-top: 0.2rem;
      line-height: 1.2;
      max-height: calc(1.2em * 8);
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 3;
    }
  }
    .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.25s ease;
}

/* default: outline only */
.icon-btn svg {
  stroke-width: 2;
  stroke: currentColor;
  fill: transparent; /* ← no fill initially */
  transition: fill 0.25s ease, stroke 0.25s ease;
}

/* on hover: fill with same color */
.icon-btn:hover svg {
  fill: currentColor; /* ← fill matches text color on hover */
}
/* active (favorited) state */
.icon-btn.active svg {
  fill: currentColor;
}
.fontcss{
          font-family: 'Stack Sans Notch', monospace; /* modern monospaced font */

    }
    #ads-slides {
    width: 100%;
  }
  .ads-card {
    scroll-snap-align: start;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .ads-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.3s;
  }
  .ads-dot.active {
    background-color: #f472b6; /* pink active dot */
  }
  