/* Content-first homepage: keep the wallpaper and the next action in focus. */
.home-page .home-feature-carousel {
  height: clamp(740px, calc(78svh + 80px), 860px);
  min-height: 740px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .48);
}

.home-page .home-feature-carousel::after {
  content: "";
  position: absolute;
  z-index: 7;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(215, 255, 69, .82) 16%, rgba(215, 255, 69, .82) 84%, transparent 100%);
  box-shadow: 0 0 16px rgba(215, 255, 69, .34);
  pointer-events: none;
}

.home-page .home-feature-scrim {
  background:
    linear-gradient(90deg, rgba(7, 9, 13, .82) 0%, rgba(7, 9, 13, .58) 38%, rgba(7, 9, 13, .22) 70%, rgba(7, 9, 13, .06) 100%),
    linear-gradient(0deg, rgba(7, 9, 13, .72) 0%, transparent 36%, rgba(7, 9, 13, .18) 100%);
}

.home-page .home-feature-inner {
  padding-top: 174px;
  padding-bottom: 120px;
  transition: padding-top .22s ease;
}

.home-page .home-feature-copy {
  width: min(650px, 70%);
}

.home-page .home-feature-copy h1,
.home-page .home-feature-copy h2 {
  max-width: 650px;
  margin-top: 16px;
  font-size:clamp(2.625rem, 5vw, 4.125rem);
}

.home-page .home-feature-actions {
  margin-top: 24px;
}

.home-page .home-feature-controls {
  bottom: 18px;
}

.home-page .home-feature-counter {
  min-width: 68px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 9px;
  background: rgba(9, 12, 18, .78);
  color: rgba(255, 255, 255, .72);
  font: 800 .875rem/1 var(--font-head);
  letter-spacing: .05em;
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  backdrop-filter: blur(14px) saturate(145%);
}

.home-page .home-feature-counter strong {
  color: var(--lime);
}

.home-page .home-feature-track.slick-slider,
.home-page .home-feature-track .slick-list,
.home-page .home-feature-track .slick-track,
.home-page .home-feature-track .slick-slide {
  height: 100%;
}

.home-page .home-feature-track .slick-list {
  overflow: hidden;
}

.home-page .home-feature-track.slick-initialized .home-feature-slide {
  position: relative;
  inset: auto;
  display: block !important;
  visibility: visible;
  height: 100%;
  opacity: 1;
  transition: none;
}

.home-page .home-top-search {
  position: absolute;
  z-index: 6;
  top: 0;
  right: 0;
  left: 0;
  padding-top: 82px;
  background: linear-gradient(180deg, rgba(5, 8, 12, .72) 0%, rgba(5, 8, 12, .32) 72%, transparent 100%);
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
}

.home-page .home-top-search.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
}

.home-page.home-search-collapsed .home-feature-inner {
  padding-top: 112px;
}

.home-page .home-top-search-layout {
  min-height: 116px;
  display: grid;
  grid-template-columns: minmax(220px, .45fr) minmax(520px, 1.55fr);
  align-items: center;
  gap: 32px;
  padding-top: 18px;
  padding-bottom: 18px;
  pointer-events: auto;
}

.home-page .home-top-search-title {
  margin: 0;
  color: #fff;
  font: 800 clamp(1.625rem, 2.8vw, 2.25rem)/1.15 var(--font-head);
  letter-spacing: -.035em;
}

.home-page .home-search-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.home-page .home-search-panel > div {
  border-color: rgba(255, 255, 255, .46);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .2) 0%, rgba(11, 16, 24, .32) 48%, rgba(6, 10, 16, .46) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .24),
    inset 0 -1px 0 rgba(255, 255, 255, .06),
    0 16px 42px rgba(0, 0, 0, .3);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
  backdrop-filter: blur(20px) saturate(165%);
}

.home-page .home-gallery-section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.home-page .home-gallery-head {
  align-items: center;
  margin-bottom: 24px;
}

.home-page .home-gallery-head h2 {
  font-size:clamp(1.875rem, 3.4vw, 2.75rem);
}

.home-page .home-gallery-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.home-page .home-gallery-arrow {
  width: 48px;
  min-width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 10px;
  background: rgba(14, 19, 27, .88);
  color: #fff;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease, opacity .2s ease;
}

.home-page .home-gallery-arrow:hover,
.home-page .home-gallery-arrow:focus-visible {
  border-color: rgba(215, 255, 69, .65);
  background: rgba(30, 41, 25, .94);
  color: var(--lime);
}

.home-page .home-gallery-arrow.slick-disabled {
  opacity: .35;
  cursor: default;
}

.home-page .home-latest-carousel.slick-initialized {
  display: block;
  margin-inline: -8px;
}

.home-page .home-latest-carousel .slick-list {
  overflow: hidden;
}

.home-page .home-latest-carousel .slick-track {
  display: flex;
}

.home-page .home-latest-carousel .slick-slide {
  height: auto;
  padding-inline: 8px;
}

.home-page .home-latest-carousel .home-wallpaper-card {
  display: block;
  height: 100%;
}

.home-page .home-latest-dots {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
}

.home-page .home-latest-dots:empty {
  display: none;
}

.home-page .home-latest-dots .slick-dots {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-page .home-latest-dots .slick-dots li {
  width: 34px;
  height: 44px;
  margin: 0;
}

.home-page .home-latest-dots .slick-dots button {
  width: 34px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  cursor: pointer;
}

.home-page .home-latest-dots .slick-dots button::before {
  content: "";
  width: 8px;
  height: 8px;
  display: block;
  margin: auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, .42);
  transition: width .2s ease, background .2s ease, box-shadow .2s ease;
}

.home-page .home-latest-dots .slick-dots .slick-active button::before {
  width: 24px;
  background: var(--lime);
  box-shadow: 0 0 14px rgba(215, 255, 69, .42);
}

.home-page .home-wallpaper-link {
  display: block;
  color: inherit;
}

.home-page .home-wallpaper-votes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
}

.home-page .home-wallpaper-votes button {
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 9px;
  background: rgba(255, 255, 255, .045);
  color: #aeb6c2;
  font-weight: 800;
  transition: border-color .2s ease, background .2s ease, color .2s ease, opacity .2s ease;
}

.home-page .home-wallpaper-votes button:hover,
.home-page .home-wallpaper-votes button:focus-visible {
  border-color: rgba(215, 255, 69, .58);
  color: #fff;
}

.home-page .home-wallpaper-votes button.voted[data-home-vote="like"] {
  border-color: rgba(215, 255, 69, .68);
  background: rgba(215, 255, 69, .13);
  color: var(--lime);
}

.home-page .home-wallpaper-votes button.voted[data-home-vote="dislike"] {
  border-color: rgba(255, 112, 112, .62);
  background: rgba(255, 112, 112, .12);
  color: #ff8e8e;
}

.home-page .home-wallpaper-votes button:disabled {
  cursor: wait;
  opacity: .55;
}

.home-page .ai-skill-posters {
  display: grid;
  gap: 32px;
}

.home-page .ai-skill-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1672 / 941;
  border: 1px solid rgba(215, 255, 69, .38);
  border-radius: 20px;
  background: #070b10;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .48);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.home-page .ai-skill-poster:hover,
.home-page .ai-skill-poster:focus-visible {
  border-color: rgba(215, 255, 69, .78);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55), 0 0 28px rgba(215, 255, 69, .12);
}

.home-page .ai-skill-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 820px) {
  .home-page .home-top-search-layout {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 16px;
    padding-bottom: 20px;
  }
}

@media (max-width: 600px) {
  .home-page .home-top-search-title,
  .home-page .ad-slot--home_banner .ad-slot__meta {
    display: none;
  }

  .home-page .home-feature-carousel {
    height: min(700px, calc(74svh + 80px));
    min-height: 680px;
  }

  .home-page .home-feature-scrim {
    background:
      linear-gradient(90deg, rgba(7, 9, 13, .76) 0%, rgba(7, 9, 13, .42) 70%, rgba(7, 9, 13, .16) 100%),
      linear-gradient(0deg, rgba(7, 9, 13, .78) 0%, transparent 52%, rgba(7, 9, 13, .22) 100%);
  }

  .home-page .home-feature-inner {
    padding-top: 202px;
    padding-bottom: 112px;
  }

  .home-page.home-search-collapsed .home-feature-inner {
    padding-top: 118px;
  }

  .home-page .home-feature-copy {
    width: 100%;
  }

  .home-page .home-feature-copy h1,
  .home-page .home-feature-copy h2 {
    margin-top: 12px;
    font-size:2.125rem;
  }

  .home-page .home-feature-actions {
    margin-top: 18px;
  }

  .home-page .home-top-search {
    padding-top: 68px;
  }

  .home-page .home-top-search-layout {
    min-height: 142px;
    padding-top: 15px;
    padding-bottom: 18px;
  }

  .home-page .home-top-search-title {
    font-size: 1.5rem;
  }

  .home-page .home-search-panel button {
    min-width: 88px;
  }

  .home-page .home-feature-counter {
    min-width: 54px;
    padding-inline: 7px;
    font-size: .8125rem;
  }

  .home-page .home-feature-dots button {
    width: 34px;
    min-width: 34px;
  }

  .home-page .home-gallery-section {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .home-page .home-gallery-head {
    align-items: center;
    flex-direction: row;
    gap: 14px;
    margin-bottom: 20px;
  }

  .home-page .home-gallery-head h2 {
    font-size:1.75rem;
  }

  .home-page .home-gallery-head .button {
    width: auto;
    min-height: 44px;
    padding-inline: 14px;
  }

  .home-page .home-gallery-actions {
    gap: 6px;
  }

  .home-page .home-gallery-arrow {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }

  .home-page .home-gallery-actions .button {
    font-size: .9375rem;
  }

  .home-page .ai-skill-poster {
    border-radius: 14px;
  }

  .home-page .ai-skill-posters {
    gap: 18px;
  }
}
