.voice-designer {
  position: relative;
  padding-block: 6vi 4vi;
  background: #f8f8f8;
  overflow: hidden;
}

.voice-designer__blob {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 192, 36, 0.15) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(60px);
}

.voice-designer__blob--1 {
  top: 25%;
  left: -5%;
}

.voice-designer__blob--2 {
  top: 50%;
  right: -5%;
}

.voice-designer__blob--3 {
  top: 55%;
  left: 40%;
}

.voice-designer__blob--blue {
  background: radial-gradient(circle, rgba(8, 99, 241, 0.12) 0%, transparent 70%);
}

.voice-designer__blob--4 {
  top: 60%;
  right: 10%;
}

.voice-designer__blob--5 {
  top: 75%;
  left: 5%;
}

.voice-designer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

/* Header */
.voice-designer__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  max-inline-size: 1118px;
}

.voice-designer__heading {
  font-size: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.voice-designer__heading strong {
  font-weight: 900;
}

.voice-designer__subtitle {
  font-size: clamp(0.875rem, 0.6rem + 0.7vw, 1.25rem);
  line-height: 1.2;
  color: var(--color-text);
  opacity: 0.6;
}

/* Main visual */
.voice-designer__visual {
  width: 100%;
  max-width: 1119px;
}

.voice-designer__image {
  width: 100%;
  height: auto;
  display: block;
}

/* ─── Slider Tabs ─── */
.voice-designer__tabs {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 1216px;
  position: relative;
}

.voice-designer__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  flex: 1;
  position: relative;
  z-index: 1;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.voice-designer__tab-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s ease;
}

.voice-designer__tab.is-active .voice-designer__tab-icon {
  background: linear-gradient(191deg, rgb(8, 99, 241) 29%, rgb(10, 37, 65) 109%);
}

.voice-designer__tab-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: filter 0.4s ease;
}

.voice-designer__tab.is-active .voice-designer__tab-icon img {
  filter: brightness(0) invert(1);
}

.voice-designer__tab-label {
  font-size: clamp(0.875rem, 0.6rem + 0.7vw, 1.25rem);
  line-height: 1.2;
  color: var(--color-text);
  text-align: center;
  max-width: 280px;
}

/* Progress track connecting the tabs */
.voice-designer__progress-track {
  position: absolute;
  top: 120px;
  left: 12%;
  right: 12%;
  height: 3px;
  background: rgba(26, 26, 26, 0.08);
  z-index: 0;
  border-radius: 2px;
}

.voice-designer__progress-fill {
  height: 100%;
  width: 0%;
  background: var(--color-primary);
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* ─── Slide Panels ─── */
.voice-designer__slides {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.voice-designer__slide {
  display: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  padding: 40px 0 0;
  animation: slideIn 0.5s ease;
}

.voice-designer__slide.is-active {
  display: flex;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.voice-designer__slide-text {
  flex: 1;
  min-width: 0;
}

.voice-designer__slide-heading {
  font-weight: 500;
  font-size: clamp(1.25rem, 0.8rem + 1.5vw, 1.75rem);
  line-height: 1.2;
  color: var(--color-text);
  margin-block-end: 32px;
  max-inline-size: 487px;
}

.voice-designer__slide-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.voice-designer__slide-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: clamp(0.875rem, 0.6rem + 0.7vw, 1.25rem);
  line-height: 1.2;
  color: rgba(26, 26, 26, 0.6);
}

.voice-designer__slide-list li::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

.voice-designer__slide-description {
  font-size: clamp(0.875rem, 0.6rem + 0.7vw, 1.125rem);
  line-height: 1.6;
  color: rgba(26, 26, 26, 0.6);
}

.voice-designer__slide-media {
  flex: 1;
  min-width: 0;
  max-width: 592px;
  height: 380px;
  overflow: hidden;
  position: relative;
}

/* Voices panel (used inside slides) */
.voice-designer__voices-header-img {
  display: block;
  margin: 0 auto;
  max-width: 280px;
  position: relative;
  z-index: 1;
}

.voice-designer__voices-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  position: relative;
}

.voice-designer__voice-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  position: relative;
}

.voice-designer__mouse-pointer {
  position: absolute;
  bottom: -10px;
  right: -30px;
  width: 65px;
  height: auto;
  pointer-events: none;
}

.voice-designer__voice-card:nth-child(1) {
  margin-top: 0;
}

.voice-designer__voice-card:nth-child(2) {
  margin-top: 60px;
}

.voice-designer__voice-card:nth-child(3) {
  margin-top: -10px;
}

.voice-designer__avatar-wrap {
  position: relative;
}

.voice-designer__voice-avatar {
  width: 150px;
  height: auto;
  object-fit: contain;
}

.voice-designer__player {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--color-white);
  border-radius: 24px;
  padding: 6px 12px 6px 6px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  white-space: nowrap;
}

.voice-designer__play-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.voice-designer__play-btn svg {
  margin-left: 2px;
}

.voice-designer__play-btn.is-playing svg {
  display: none;
}

.voice-designer__play-btn.is-playing::before {
  content: '';
  width: 10px;
  height: 12px;
  border-left: 3px solid var(--color-white);
  border-right: 3px solid var(--color-white);
}

.voice-designer__waveform {
  display: block;
  width: 120px;
  height: 28px;
}

.voice-designer__voice-name {
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--color-text);
}

.voice-designer__voice-meta {
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.2;
  color: var(--color-text);
}

.voice-designer__voice-meta span {
  margin-inline: 2px;
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .voice-designer__tabs {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .voice-designer__progress-track {
    display: none;
  }

  .voice-designer__slide {
    flex-direction: column;
    padding: 40px 0;
  }

  .voice-designer__slide-media {
    height: auto;
  }

  .voice-designer__voices-grid {
    flex-direction: column;
    align-items: center;
  }

  .voice-designer__voice-card:nth-child(2),
  .voice-designer__voice-card:nth-child(3) {
    margin-top: 0;
  }

  .voice-designer__voice-avatar {
    width: 120px;
  }
}
