/* =========================================================================
 * Animeflix — custom styles layered on top of the Tailwind Play CDN
 * ========================================================================= */

html { scroll-behavior: smooth; }
body { background: #0a0a0b; }

/* hide scrollbars on horizontal tracks / panels */
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* sticky nav: transparent over hero, frosted once scrolled */
#nav { transition: background-color .3s ease, backdrop-filter .3s ease, border-color .3s ease; }
#nav.nav-solid {
  background-color: rgba(10, 10, 11, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

/* Netflix-style edge arrows that fade in when a row is hovered.
   Height stops short of the meta text sitting beneath each card. */
.row-arrow {
  position: absolute;
  top: 0;
  bottom: 3.5rem;
  width: 3.25rem;
  z-index: 20;
  display: grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
}
.row-arrow:hover { color: #c4b5fd; }
.row-arrow-left  { left: 0;  background: linear-gradient(to right, rgba(0,0,0,.75), transparent); border-radius: 0 0.75rem 0.75rem 0; }
.row-arrow-right { right: 0; background: linear-gradient(to left,  rgba(0,0,0,.75), transparent); border-radius: 0.75rem 0 0 0.75rem; }
@media (max-width: 768px) { .row-arrow { display: none; } }

/* clamp helpers (Play CDN ships line-clamp, kept here as a safety net) */
.line-clamp-2, .line-clamp-3, .line-clamp-4 {
  display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
}
.line-clamp-2 { -webkit-line-clamp: 2; }
.line-clamp-3 { -webkit-line-clamp: 3; }
.line-clamp-4 { -webkit-line-clamp: 4; }

/* fade transition shared by overlays */
.overlay { transition: opacity .25s ease; }
