.hero {
  min-height: auto;
  padding: 42px 0 54px;
  background:
    radial-gradient(circle at 50% 0%, rgba(230, 62, 109, 0.12), transparent 34%),
    linear-gradient(180deg, #111118 0%, var(--color-bg) 100%);
}

.hero--loading {
  background: linear-gradient(135deg, #15151d, #0f0f13);
}

.hero__inner {
  display: grid;
  justify-items: center;
  gap: 22px;
}

.hero__content {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(100%, 900px);
  text-align: center;
}

.hero__media {
  position: relative;
  width: min(100%, 900px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: #15151d;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.34);
}

.hero__media[hidden] {
  display: none;
}

.hero__media img {
  width: 100%;
  max-height: 430px;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #101017;
}

.hero-slider__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 42px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  background: rgba(20, 20, 28, 0.82);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-slider__nav:hover {
  border-color: var(--color-accent);
  background: rgba(230, 62, 109, 0.9);
  transform: translateY(-50%) scale(1.03);
}

.hero-slider__nav[hidden] {
  display: none;
}

.hero-slider__nav--prev {
  left: 14px;
}

.hero-slider__nav--next {
  right: 14px;
}

.hero-thumbs {
  width: min(100%, 900px);
  display: flex;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px 4px;
  scrollbar-width: none;
}

.hero-thumbs[hidden] {
  display: none;
}

.hero-thumbs::-webkit-scrollbar {
  display: none;
}

.hero-thumb {
  flex: 0 0 74px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0;
  background: #171720;
  opacity: 0.78;
  cursor: pointer;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-thumb:hover,
.hero-thumb.is-active {
  border-color: var(--color-accent);
  opacity: 1;
  transform: translateY(-1px);
}

.hero-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero h1 {
  max-width: 860px;
  font-size: clamp(1.35rem, 2.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.35;
}

.hero__meta {
  max-width: 680px;
  color: #d5d2df;
  font-size: 0.95rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.hero__cta,
.hero__detail {
  min-width: 180px;
}

.section--sale {
  background: linear-gradient(180deg, rgba(255, 107, 53, 0.08), rgba(15, 15, 19, 0));
}

.rail-wrap {
  width: min(100%, 1180px);
  margin-inline: auto;
  overflow: hidden;
}

.work-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 210px;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0 16px 4px;
  scrollbar-width: none;
}

.work-rail::-webkit-scrollbar {
  display: none;
}

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

.genre-nav {
  display: grid;
  gap: 18px;
}

.genre-group {
  border-top: 1px solid var(--color-border);
  padding-top: 18px;
}

.genre-group h3 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.genre-tag {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  color: #c9c5d4;
  background: var(--color-surface);
  font-size: 0.86rem;
  font-weight: 700;
}

.genre-tag:hover {
  color: var(--color-text-primary);
  border-color: var(--color-accent);
  background: var(--color-surface-hover);
}

.section--site-info {
  padding-top: 10px;
}

.site-info-box {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
}

.site-info-box h2 {
  margin-bottom: 10px;
  color: var(--color-text-primary);
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  line-height: 1.35;
}

.site-info-box p {
  max-width: 820px;
  color: #d7d3e2;
  font-size: 0.94rem;
  line-height: 1.85;
  white-space: pre-line;
}

.grid-loading {
  grid-column: 1 / -1;
}

@media (max-width: 1024px) {
  .work-grid--home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .hero {
    padding: 24px 0 34px;
  }

  .hero__content {
    gap: 10px;
  }

  .hero h1 {
    font-size: 1.25rem;
  }

  .hero__media img {
    max-height: 320px;
  }

  .hero-slider__nav {
    width: 34px;
    height: 48px;
    font-size: 1.55rem;
  }

  .hero-slider__nav--prev {
    left: 8px;
  }

  .hero-slider__nav--next {
    right: 8px;
  }

  .hero-thumbs {
    justify-content: flex-start;
    width: min(100%, calc(100vw - 24px));
  }

  .hero-thumb {
    flex-basis: 62px;
  }

  .hero__actions {
    width: 100%;
  }

  .hero__cta,
  .hero__detail {
    width: min(100%, 260px);
  }

  .work-rail {
    grid-auto-columns: 44vw;
    padding-inline: 12px;
  }

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

  .section--site-info {
    padding-top: 0;
  }

  .site-info-box {
    padding-top: 18px;
  }
}
