@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&family=Outfit:wght@600;700&family=Sora:wght@500;600;700&display=swap");

body {
  padding-top: 60px !important;
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 91, 150, 0.1), transparent 30%),
    radial-gradient(circle at 84% 2%, rgba(255, 255, 255, 0.05), transparent 24%),
    linear-gradient(180deg, #000000, #050505 40%, #000000) !important;
}

body.homepage-no-header {
  padding-top: 0 !important;
}

@media (max-width: 768px) {
  html {
    background: #000000;
  }

  body {
    padding-top: 52px !important;
    background: #000000 !important;
  }

  body.homepage-no-header {
    padding-top: 0 !important;
  }
}

.hianime-home {
  --bg: #040404;
  --bg-soft: #0a0a0a;
  --surface: #101010;
  --surface-2: #151515;
  --surface-3: #1d1d1d;
  --text: #efefef;
  --muted: #8f8f8f;
  --accent: #ff5b96;
  --accent-2: #ff8bb6;
  --border: rgba(255, 255, 255, 0.09);
  --radius: 16px;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  font-family: "Lexend", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 91, 150, 0.1), transparent 30%),
    radial-gradient(circle at 84% 2%, rgba(255, 255, 255, 0.05), transparent 24%),
    linear-gradient(180deg, #000000, #050505 40%, #000000);
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .hianime-home,
  .hianime-home .page-shell,
  .hianime-home .content-layout {
    background: #000000;
  }
}

.hianime-home,
.hianime-home * {
  box-sizing: border-box;
}

.hianime-home a {
  color: inherit;
  text-decoration: none;
}

.home-partner-footer {
  padding: 28px 16px 32px;
  text-align: center;
  background: #050505;
  border-top: 1px solid #1f1f1f;
}

.home-partner-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.home-partner-link img {
  width: 170px;
  max-width: min(170px, 70vw);
  height: auto;
}

.home-partner-link span {
  font-family: "Outfit", "Inter", "Sora", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #ffffff, #9fdcff, #b98cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-partner-link:hover span {
  background: linear-gradient(90deg, #ffffff, #c7ecff, #d7bdff);
  -webkit-background-clip: text;
  background-clip: text;
}

.hianime-home .page-shell {
  width: min(1280px, 96vw);
  margin: 0 auto 44px;
  display: grid;
  gap: 0;
}

.hianime-home .hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.hianime-home .spotlight-panel {
  position: relative;
  min-width: 0;
  border-radius: 0;
  overflow: hidden;
  background: #000000;
}

.hianime-home .section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0;
  border-bottom: 0;
}

.hianime-home .section-head h2,
.hianime-home .section-head h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.hianime-home .section-head.compact {
  min-height: 34px;
  padding-bottom: 0;
}

.hianime-home .section-head.compact a {
  color: #d4d4d4;
  font-size: 0.8rem;
  order: 2;
  white-space: nowrap;
}

.hianime-home .section-head.compact::after {
  content: "";
  order: 1;
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 91, 150, 0.42), rgba(255, 255, 255, 0.08), transparent);
}

.hianime-home .section-head.compact h3 {
  order: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.hianime-home .section-head.compact h3::before {
  content: "";
  width: 7px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), rgba(255, 255, 255, 0.5));
}

.hianime-home .spotlight-stage {
  position: relative;
  min-height: clamp(500px, 72vh, 680px);
  border-radius: 0;
  overflow: hidden;
}

.hianime-home .spotlight-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.hianime-home .spotlight-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hianime-home .spotlight-backdrop {
  position: absolute;
  top: -8%;
  left: -4%;
  width: 108%;
  height: 116%;
  max-width: none;
  object-fit: cover;
  object-position: center 20%;
  filter: saturate(1.05) brightness(0.82);
}

.hianime-home .spotlight-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.96) 2%, rgba(0, 0, 0, 0.72) 42%, rgba(0, 0, 0, 0.16) 82%),
    linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, 0.9) 12%, rgba(0, 0, 0, 0.18) 46%, rgba(0, 0, 0, 0.58) 100%),
    linear-gradient(135deg, rgba(255, 91, 150, 0.06), transparent 50%, rgba(255, 139, 182, 0.04));
}

.hianime-home .spotlight-content {
  position: relative;
  z-index: 2;
  width: min(1280px, 96vw);
  min-height: clamp(500px, 72vh, 680px);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 64px) 0 96px;
  display: grid;
  gap: 12px;
  align-content: center;
}

.hianime-home .spotlight-content > * {
  max-width: 760px;
}

.hianime-home .spotlight-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffe4f2;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 105, 176, 0.2);
}

.hianime-home .spotlight-title {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  line-height: 1.25;
}

.hianime-home .spotlight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.75rem;
}

.hianime-home .spotlight-meta span {
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hianime-home .spotlight-desc {
  margin: 0;
  font-size: 0.87rem;
  color: #d0d0d0;
  line-height: 1.5;
}

.hianime-home .spotlight-actions {
  display: flex;
  gap: 10px;
}

.hianime-home .cta-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
}

.hianime-home .cta-btn.primary {
  color: #201628;
  background: linear-gradient(130deg, #ffd2e6, #ff7db2);
}

.hianime-home .spotlight-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0;
}

.hianime-home .spotlight-dots button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hianime-home .spotlight-dots button.active {
  width: 22px;
  background: linear-gradient(90deg, #ff5b96, #ffc0d8);
}

.hianime-home .content-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(290px, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
  padding-top: 44px;
}

.hianime-home .latest-panel {
  padding-bottom: 12px;
}

.hianime-home .latest-panel,
.hianime-home .sidebar-list-panel {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
}

.hianime-home .latest-panel .section-head,
.hianime-home .sidebar-list-panel .section-head {
  padding: 0;
  border-bottom: 0;
}

.hianime-home .episode-grid {
  padding: 0;
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px 14px;
}

.hianime-home .anime-card {
  border: 0;
  border-radius: 12px;
  overflow: visible;
  background: transparent;
  display: grid;
  grid-template-rows: auto 1fr;
  transition: transform 0.2s ease;
}

.hianime-home .anime-card:hover {
  transform: translateY(-3px);
}

.hianime-home .poster-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #111111;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.hianime-home .poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0));
}

.hianime-home .poster-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  filter: saturate(1.03) contrast(1.02);
}

.hianime-home .badge-row {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.hianime-home .badge {
  font-size: 0.66rem;
  font-weight: 600;
  border-radius: 7px;
  padding: 4px 6px;
  color: #ebf6ff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 16, 27, 0.52);
}

.hianime-home .badge.ep {
  background: rgba(20, 134, 95, 0.7);
  border-color: rgba(140, 255, 214, 0.3);
}

.hianime-home .card-body {
  padding: 9px 4px 2px;
  display: grid;
  gap: 4px;
}

.hianime-home .card-body h4 {
  margin: 0;
  font-size: 0.79rem;
  line-height: 1.35;
  font-weight: 500;
  color: #e2e2e2;
}

.hianime-home .card-body p {
  margin: 0;
  font-size: 0.72rem;
  color: #9a9a9a;
}

.hianime-home .sidebar {
  display: grid;
  gap: 12px;
  align-content: start;
}

.hianime-home .sidebar-list-panel {
  padding-bottom: 0;
}

.hianime-home .mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-top: 0;
  display: grid;
  gap: 0;
}

.hianime-home .mini-item {
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 9px 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  background: transparent;
}

.hianime-home .mini-item:first-child {
  padding-top: 0;
}

.hianime-home .mini-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.hianime-home .mini-item img {
  width: 42px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
}

.hianime-home .mini-item h4 {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
}

.hianime-home .mini-item p {
  margin: 2px 0 0;
  font-size: 0.7rem;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .hianime-home .hero-layout,
  .hianime-home .content-layout {
    grid-template-columns: 1fr;
  }

  .hianime-home .episode-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hianime-home .spotlight-stage,
  .hianime-home .spotlight-content {
    min-height: 420px;
  }

  .hianime-home .spotlight-content {
    width: min(100% - 40px, 1280px);
    padding: 28px 0 76px;
  }

  .hianime-home .episode-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hianime-home .spotlight-stage,
  .hianime-home .spotlight-content {
    min-height: 400px;
  }

  .hianime-home .spotlight-content {
    width: min(100% - 28px, 1280px);
    padding-bottom: 70px;
  }

  .hianime-home .spotlight-title {
    font-size: 1.2rem;
  }

  .hianime-home .spotlight-desc {
    font-size: 0.8rem;
  }

  .hianime-home .episode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
