@import url(https://fonts.googleapis.com/css?family=Roboto:400,500,300,700);

:root {
  /* Smooth, natural easing for hero transitions */
  --hero-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --hero-ease-out: cubic-bezier(0.0, 0, 0.2, 1);
  --hero-ease-in: cubic-bezier(0.4, 0, 1, 1);
}

/* ===== Layout: Flex & Grid ===== */
header {
  display: flex;
  align-items: center;
}

@media (min-width: 700px) {
  .leading {
    display: flex;
    align-items: center;
  }
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 30px;
  max-width: 1260px;
  margin: 0 auto 30px;
  background-color: #151518;
  padding: 10px 0;
  border-radius: 20px;
}

/* ===== Base / Generic ===== */
body {
  font-family: 'Quicksand', Roboto, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  background-color: #2b2b31;
  margin-left: 30px;
}

body.overlay-active {
  overflow: hidden;
}




.leading {
  height: 0px;
  background-size: cover;
  color: #fff;
  text-align: center;
}

.leading-bigtext {
  margin: 0 auto;
  font-weight: 700;
  font-size: 24vw;
  width: 50%;
  border: 3px solid green;
  padding: 10px;
}

@media (min-width: 700px) {
  .leading-bigtext {
    font-size: 140px;
  }
}

.leading-text {
  max-width: 1260px;
  font-size: 1.2em;
  line-height: 1.4;
}

/* ===== Cards / Tiles ===== */
article {
  position: relative;
  width: 270px;
}

.article-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  color: #000;
  border-radius: 5%;
  cursor: pointer;
}



/* ===== Info Overlay ===== */
.info {
  position: relative;
  overflow: hidden;
  width: 270px;
  height: 400px;
  margin: auto;
}

.info .border {
  border: 3px solid;
  border-image: linear-gradient(45deg, #ffffff00, rgba(89, 255, 164, 0), rgb(255, 122, 89)) 10;
}

.info .content {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: fit-content;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background-color: #2b2b31;
  opacity: 0;
  transform: rotate(90deg);
  transform-origin: 0 100px;
  border-radius: 5%;
  transition: opacity .5s ease, transform .5s ease;
}

.info:hover .content {
  opacity: .8;
  transform: rotate(0);
}

/* Category pill */
.info .category {
  position: absolute;
  top: 20px;
  left: 5px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(79, 180, 243, .9);
  border-radius: 3px;
  opacity: 0;
  transform: translateX(-100%);
  z-index: 6;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, .3);
  transition: transform .4s cubic-bezier(.25, .8, .25, 1), opacity .3s ease-out, box-shadow .3s ease-out;
}

.info:hover .category {
  opacity: 1;
  transform: translateX(0);
  box-shadow: 2px 2px 6px rgba(0, 0, 0, .3);
}

.category:hover {
  background: #66a9e9;
}

/* Actress container and tags */
.info .actress-container {
  position: absolute;
  top: 20px;
  left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-left: 5px;
  width: auto;
  opacity: 0;
  transform: translateX(-100%);
  z-index: 6;
  transition: transform .4s cubic-bezier(.25, .8, .25, 1), opacity .3s ease-out;
}

.info:hover .actress-container {
  opacity: 1;
  transform: translateX(0);
}

.info .actress-tag {
  display: inline-block;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(79, 180, 243, .9);
  border-radius: 3px;
  white-space: nowrap;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, .3);
  cursor: pointer;
  transition: background .3s ease-out, box-shadow .3s ease-out;
}

.info .actress-tag:hover {
  background: #66a9e9;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, .3);
}

/* Ratings (stars) */
.info .ratings-list {
  position: absolute;
  top: 90px;
  left: 5px;
  z-index: 5;
  display: flex;
  gap: 2px;
  margin-top: 10px;
  padding: 0;
  list-style: none;
  color: #FFD700;
  font-size: 14px;
}

.info .ratings-list .rating-star {
  transform: translateX(-250px);
  transition: transform .5s ease;
}

.info .ratings-list .rating-star i.fa {
  display: inline-block;
  /* Dark border around each star for visibility */
  -webkit-text-stroke: 1px #000;
  text-shadow:
    1px 1px 0 #000,
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000;
  transition: text-shadow .3s ease-in-out, -webkit-text-stroke .3s ease-in-out;
}

.info:hover .ratings-list .rating-star {
  transform: translateX(0);
}

.info:hover .ratings-list .rating-star i.fa {
  text-shadow: 0 0 4px #ffd700, 0 0 8px #ffe86e, 0 0 12px #fff5c0;
}

.info:hover .ratings-list .rating-star:nth-child(1) {
  transition-delay: .15s;
}

.info:hover .ratings-list .rating-star:nth-child(2) {
  transition-delay: .25s;
}

.info:hover .ratings-list .rating-star:nth-child(3) {
  transition-delay: .35s;
}

.info:hover .ratings-list .rating-star:nth-child(4) {
  transition-delay: .45s;
}

.info:hover .ratings-list .rating-star:nth-child(5) {
  transition-delay: .55s;
}

/* Special 5-star rating animation */
.tile.rating-5-stars .info:hover .ratings-list .rating-star i.fa {
  animation: star-pulse 1.5s ease-in-out infinite;
  color: #fffb00;
}

@keyframes star-pulse {
  0% {
    transform: scale(1);
    text-shadow: 0 0 5px #ffd700;
  }

  50% {
    transform: scale(1.3);
    text-shadow: 0 0 15px #ffd700, 0 0 25px #ffeb3b;
    color: #fff;
  }

  100% {
    transform: scale(1);
    text-shadow: 0 0 5px #ffd700;
  }
}

.tile.rating-5-stars .info:hover .ratings-list .rating-star:nth-child(1) i.fa {
  animation-delay: 0.1s;
}

.tile.rating-5-stars .info:hover .ratings-list .rating-star:nth-child(2) i.fa {
  animation-delay: 0.2s;
}

.tile.rating-5-stars .info:hover .ratings-list .rating-star:nth-child(3) i.fa {
  animation-delay: 0.3s;
}

.tile.rating-5-stars .info:hover .ratings-list .rating-star:nth-child(4) i.fa {
  animation-delay: 0.4s;
}

.tile.rating-5-stars .info:hover .ratings-list .rating-star:nth-child(5) i.fa {
  animation-delay: 0.5s;
}

/* Genres */
.info .genre-container {
  position: absolute;
  top: 48px;
  left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-left: 5px;
  max-width: 180px;
  z-index: 4;
}

.info .genre-tag {
  display: inline-block;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background-color: #6c757d;
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-20px);
  transition: transform .3s cubic-bezier(.25, .8, .25, 1), opacity .25s ease-out;
}

/* Staggered hover-in delays */
.info:hover .genre-tag {
  opacity: 1;
  transform: translateX(0);
}

.info:hover .genre-tag:nth-child(1) {
  transition-delay: 0.35s;
}

.info:hover .genre-tag:nth-child(2) {
  transition-delay: 0.42s;
}

.info:hover .genre-tag:nth-child(3) {
  transition-delay: 0.49s;
}

.info:hover .genre-tag:nth-child(4) {
  transition-delay: 0.56s;
}

.info:hover .genre-tag:nth-child(5) {
  transition-delay: 0.63s;
}

.info:hover .genre-tag:nth-child(6) {
  transition-delay: 0.70s;
}

/* Staggered hover-out delays (reverse order - last goes first) */
.info .genre-tag:nth-child(1) {
  transition-delay: 0.30s;
}

.info .genre-tag:nth-child(2) {
  transition-delay: 0.24s;
}

.info .genre-tag:nth-child(3) {
  transition-delay: 0.18s;
}

.info .genre-tag:nth-child(4) {
  transition-delay: 0.12s;
}

.info .genre-tag:nth-child(5) {
  transition-delay: 0.06s;
}

.info .genre-tag:nth-child(6) {
  transition-delay: 0s;
}

/* Pink background for Anal genre with pulse animation */
.info .genre-anal {
  background-color: #e91e8c;
  animation: genre-pulse 1.5s ease-in-out infinite;
}

@keyframes genre-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(233, 30, 140, 0.7);
    transform: translateX(0) scale(1);
  }

  50% {
    box-shadow: 0 0 8px 3px rgba(233, 30, 140, 0.5);
    transform: translateX(0) scale(1.05);
  }
}

/* Purple background for 3P and 4P genres with pulse animation */
.info .genre-3P,
.info .genre-4P {
  background-color: #9b59b6;
  animation: genre-pulse-purple 1.5s ease-in-out infinite;
}

@keyframes genre-pulse-purple {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(155, 89, 182, 0.7);
    transform: translateX(0) scale(1);
  }

  50% {
    box-shadow: 0 0 8px 3px rgba(155, 89, 182, 0.5);
    transform: translateX(0) scale(1.05);
  }
}

/* ===== Tile entrance / badges ===== */
.tile {
  position: relative;
  width: 270px;
  opacity: 0;
  /* contain removed to prevent 3D clipping */
  /* set by JS as well */
  transition: transform .8s cubic-bezier(.25, .8, .25, 1), opacity .6s ease-out;
}

/* Virtual scrolling & lazy loading */
/* Virtual scrolling & lazy loading */
.tile.tile-visible {
  opacity: 1;
}

/* Base image style */
.lazy-image {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28), filter 0.3s ease-out;
  will-change: opacity, transform;
  filter: blur(10px);
}

/* Loaded state */
.lazy-loaded {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

/* Error state */
.lazy-error {
  opacity: 1;
  transform: scale(1);
  filter: grayscale(100%) contrast(1.2);
  border: 1px solid #ff4444;
}

/* Skeleton / Shimmer Effect */
.skeleton-loader {
  background: #1e1e24;
  position: relative;
  overflow: hidden;
}

.skeleton-loader::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.08),
      transparent);
  transform: translateX(-100%);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.tile::before,
.tile::after {
  content: '';
  position: absolute;
  right: 5px;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transform: scale(.5) translateY(-5px);
  transform-origin: top right;
  transition: opacity .3s ease-out, transform .3s ease-out;
}

/* DUB badge */
.tile::before {
  top: 38px;
}

.tile.is-dubbed::before {
  content: 'DUB';
  font: 700 9px/1 sans-serif;
  padding: 2px 5px;
  border-radius: 3px;
  color: #fff;
  background-color: rgba(180, 0, 0, .8);
  text-shadow: 1px 1px 1px rgba(0, 0, 0, .3);
  opacity: 1;
  transform: scale(1) translateY(0);
  animation: pulse-badge 2s ease-in-out infinite;
}

/* When DUB is the only badge, move it to the top position */
.tile.is-dubbed:not(.is-translated)::before {
  top: 20px;
}

/* Uncensored/ENG badge */
.tile::after {
  top: 20px;
}

.tile.is-translated::after {
  content: 'Uncensored';
  font: 700 9px/1 sans-serif;
  padding: 2px 5px;
  border-radius: 3px;
  color: #fff;
  background-color: rgba(0, 128, 0, .8);
  text-shadow: 1px 1px 1px rgba(0, 0, 0, .2);
  opacity: 1;
  transform: scale(1) translateY(0);
  animation: shake-badge 6s ease-in-out infinite;
}

@keyframes pulse-badge {
  0% {
    transform: scale(1) translateY(0);
    box-shadow: 0 0 3px rgba(255, 255, 255, .3);
  }

  50% {
    transform: scale(1.1) translateY(0);
    box-shadow: 0 0 8px rgba(255, 255, 255, .5);
  }

  100% {
    transform: scale(1) translateY(0);
    box-shadow: 0 0 3px rgba(255, 255, 255, .3);
  }
}

@keyframes shake-badge {

  0%,
  100% {
    transform: translateX(0) translateY(0) scale(1);
    box-shadow: 0 0 3px rgba(255, 255, 255, .3);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-2px);
    box-shadow: 0 0 8px rgba(255, 255, 255, .5);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(2px);
    box-shadow: 0 0 3px rgba(255, 255, 255, .3);
  }
}

/* ===== Content Container ===== */
.container {
  width: 50%;
  margin: 70px auto;
  padding: 50px 80px;
  background-color: rgba(237, 237, 237, .9);
  border-radius: 8px;
  box-sizing: border-box;
}

@media (max-width: 1300px) {
  .container {
    width: 70%;
  }

  .container h1 {
    font-size: 30px !important;
  }

  .fa-sort-up {
    animation: jump 800ms infinite;
  }
}

/* ===== Logo Focus effect ===== */
.focus {
  position: relative;
  width: 179px;
  margin-top: 12px;
  font-size: 2rem;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: .2rem;
  line-height: 1;
}

.focus:before {
  content: "INC3ST.X";
  filter: blur(5px);
}

.focus:after {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 50px;
  height: calc(100% + 8px);
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: mask-move 2s linear infinite alternate;
}

.focus--mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 100%;
  overflow: hidden;
  animation: mask-move 2s linear infinite alternate;
}

.focus--mask-inner {
  animation: mask-inner-move 2s linear infinite alternate;
}

@keyframes mask-move {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(129px);
  }
}

@keyframes mask-inner-move {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-129px);
  }
}

/* ===== Side Navigation(s) ===== */
.navigation,
.navigation1 {
  position: fixed;
  right: 0;
  background: transparent;
  width: 50px;
  padding: 10px;
  list-style: none;
}

.navigation {
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity .2s ease;
}

.navigation.visible {
  opacity: 1;
}

.navigation li {
  margin-bottom: 10px;
}

.navigation a {
  display: block;
  padding: 5px 10px;
  text-align: right;
  color: #000;
  text-decoration: none;
}

.navigation li a:hover {
  border-radius: 5px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, .2);
  transform: translateX(-50%);
  transition: transform .3s ease, background-color .3s ease;
}

/* Menu style blocks */
.menu {
  width: 100%;
  padding: 20px;
  display: grid;
  align-items: center;
  justify-content: space-around;
  list-style: none;
  background: linear-gradient(to right, #2c5364, #203a43, #0f2027);
}

.menu li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-size: 18px;
  text-transform: uppercase;
  color: #fff;
  transition: all 300ms cubic-bezier(.075, .82, .165, 1);
}

.menu li::before,
.menu li::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

/* Style 1 */
.menu1 li::before,
.menu1 li::after {
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  border: 0 solid transparent;
}

.menu1 li::before {
  border-bottom-width: 2px;
  border-left-width: 2px;
}

.menu1 li::after {
  border-top-width: 2px;
  border-right-width: 2px;
}

.menu1 li:hover {
  color: #fff;
}

.menu1 li:hover::before,
.menu1 li:hover::after {
  width: 100%;
  height: 100%;
  border-color: #fff;
  transition: border-color 0s, width .3s, height .3s;
}

.menu1 li:hover::before {
  transition-delay: 0s, 0s, .3s;
}

.menu1 li:hover::after {
  transition-delay: 0s, .3s, 0s;
}