.yaoi-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.yaoi-hero__stage {
  position: relative;
  min-height: clamp(410px, 55vh, 40rem);
}

.yaoi-hero__item {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.yaoi-hero__item.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.yaoi-hero__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--yaoi-color-bg) 0%, color-mix(in srgb, var(--yaoi-color-bg) 82%, transparent) 42%, transparent 72%),
    linear-gradient(180deg, transparent 55%, var(--yaoi-color-bg) 100%);
  pointer-events: none;
}

.yaoi-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
}

.yaoi-hero__copy {
	position: absolute;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: 36rem;
	padding: var(--yaoi-space-8) var(--yaoi-space-4);
	padding-left: max(var(--yaoi-space-4), calc((100% - var(--yaoi-container)) / 2 + var(--yaoi-space-4)));
	bottom: 0;
}

.yaoi-hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--yaoi-space-2);
  margin: 0 0 var(--yaoi-space-3);
  color: var(--yaoi-color-text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.yaoi-hero__title {
  margin: 0 0 var(--yaoi-space-4);
  font-size: clamp(38px, 3vw, 76px);
  font-weight: 700;
  line-height: 1.1;
}

.yaoi-hero__excerpt {
	margin: 0 0 var(--yaoi-space-5);
	max-width: 28rem;
	color: var(--yaoi-color-text-muted);
	font-size: 14px;
	line-height: 1.2;
}

.yaoi-hero__genres {
  display: flex;
  flex-wrap: wrap;
  gap: var(--yaoi-space-2);
  margin: 0 0 var(--yaoi-space-5);
  padding: 0;
  list-style: none;
}
.yaoi-hero__genres li {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 0 10px;
	color: #ffffff;
	background: rgb(111 111 111 / 18%);
	border: 1px solid rgba(196, 181, 253, 0.28);
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}

.yaoi-hero__genres a {
  color: var(--yaoi-color-text-muted);
  font-size: 0.8rem;
  text-decoration: none;
}

.yaoi-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--yaoi-space-3);
}

.yaoi-hero__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 2px;
  background: color-mix(in srgb, var(--yaoi-color-text) 12%, transparent);
  opacity: 0.7;
  overflow: hidden;
}

.yaoi-hero__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--yaoi-color-accent);
  border-radius: 0 999px 999px 0;
  transform: scaleX(0);
  transform-origin: left center;
}

.yaoi-hero--progressing .yaoi-hero__bar {
  animation: yaoi-hero-progress var(--yaoi-hero-interval, 7s) linear forwards;
}

@keyframes yaoi-hero-progress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@media (max-width: 768px) {
  .yaoi-hero__bg {
    object-position: 85%;
}

  .yaoi-hero__copy {
    max-width: none;
  }
}
