html, body {
    margin: 0;
    padding: 0;
}

.voice-demo-page {
    background: #0f1018;
    min-height: calc(100vh - 120px);
    padding: clamp(84px, 9vw, 122px) 24px clamp(72px, 8vw, 96px);
    color: #fff;
    font-family: "Inter", sans-serif;
}


.voice-demo-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(340px, 1fr);
  align-items: center;
  gap: clamp(32px, 4vw, 68px);
  padding: clamp(36px, 4.6vw, 60px);
}

.voice-demo-panel {
    max-width: 640px;
    margin: 0 auto;
    border: 1px solid rgba(164, 170, 255, 0.28);
    border-radius: 28px;
    background: #20202a;
    padding: clamp(30px, 4vw, 48px) clamp(24px, 4vw, 46px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 22px 40px rgba(6, 8, 22, 0.35);
}

.voice-demo-eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #9094b8;
  font-size: 0.96rem;
  font-weight: 700;
  text-align: center;
}

.voice-demo-title {
  margin: 0 0 10px;
  color: #fcfdff;
  text-align: center;
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  line-height: 1.16;
  font-weight: 700;
}

.voice-demo-description {
  margin: 0 auto 30px;
  max-width: 42ch;
  text-align: center;
  color: #a7acd2;
  font-size: 1.03rem;
  line-height: 1.6;
}

.voice-demo-info {
  margin: 0 auto;
  max-width: 425px;
}

.voice-demo-info-row {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(201, 206, 255, 0.1);
}

.voice-demo-info-row:last-child {
  border-bottom: 0;
}

.voice-demo-info-row dt,
.voice-demo-info-row dd {
  margin: 0;
  font-size: 1.08rem;
}

.voice-demo-info-row dt {
  color: #fafbff;
  font-weight: 700;
}

.voice-demo-info-row dd {
  color: #aeb4dd;
  font-weight: 600;
}

.voice-demo-controls {
  margin: 30px 0 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
}

.voice-control-btn {
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: rgba(149, 155, 203, 0.18);
  color: #f5f6ff;
  font-size: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.voice-control-btn:hover {
  background: rgba(176, 181, 226, 0.26);
  transform: translateY(-1px);
}

.voice-control-btn:focus-visible {
  outline: 2px solid #bf8bff;
  outline-offset: 2px;
}

.voice-control-btn-play {
  width: 88px;
  height: 88px;
  background: linear-gradient(160deg, #b95eff 0%, #7a35ef 100%);
  box-shadow:
    0 10px 26px rgba(149, 66, 255, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  font-size: 1.9rem;
}

.voice-control-btn-play:hover {
  background: linear-gradient(160deg, #c36eff 0%, #863ef8 100%);
}

.voice-demo-timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.voice-demo-time {
  font-size: 1.78rem;
  font-weight: 600;
  color: #eef1ff;
  min-width: 58px;
  text-align: center;
}

.voice-demo-progress {
  -webkit-appearance: none;
  appearance: none;
  width: min(240px, 48vw);
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(192, 198, 255, 0.62) 0%, rgba(117, 123, 164, 0.34) 100%);
  cursor: pointer;
}

.voice-demo-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 0;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(160, 89, 255, 0.35);
}

.voice-demo-progress::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 0;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(160, 89, 255, 0.35);
}

.voice-demo-progress::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(192, 198, 255, 0.62) 0%, rgba(117, 123, 164, 0.34) 100%);
}

.voice-demo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.voice-case-item {
  width: 100%;
  border: 1px solid rgba(177, 184, 244, 0.28);
  border-radius: 999px;
  background: linear-gradient(95deg, rgba(46, 50, 74, 0.9) 0%, rgba(35, 39, 60, 0.9) 100%);
  color: #f6f7ff;
  min-height: 74px;
  padding: 10px 18px 10px 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.24s ease;
  position: relative;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 10px 24px rgba(0, 0, 0, 0.2);
}

.voice-case-item:hover {
  border-color: rgba(200, 205, 255, 0.5);
  transform: translateY(-1px);
}

.voice-case-item:focus-visible {
  outline: 2px solid #cb95ff;
  outline-offset: 2px;
}

.voice-case-item.is-active {
  background: linear-gradient(95deg, #6f2fe8 0%, #ad3cff 100%);
  border-color: rgba(225, 206, 255, 0.86);
  box-shadow:
    0 15px 34px rgba(130, 56, 238, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.voice-case-item.is-active::before {
    content: "";
    position: absolute;
    left: -32px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 24px solid transparent;
    border-bottom: 24px solid transparent;
    border-left: 24px solid #a738ff;
    border-radius: 5px;
}

.voice-case-item-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(4, 5, 12, 0.55);
  overflow: hidden;
  border: 2px solid rgba(219, 222, 251, 0.36);
}

.voice-case-item-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.voice-case-item-title {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  font-size: clamp(0.96rem, 1.55vw, 1.28rem);
  font-weight: 600;
  line-height: 1.35;
}

.voice-case-item-title small {
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 0.72em;
  color: rgba(247, 249, 255, 0.82);
}

.voice-case-item-duration {
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  font-weight: 600;
  color: rgba(245, 247, 255, 0.9);
}

@media (max-width: 1200px) {
  .voice-demo-grid {
    gap: 32px;
  }

  .voice-case-item.is-active::before {
    left: -20px;
    border-top-width: 10px;
    border-bottom-width: 10px;
    border-left-width: 14px;
  }
}

@media (max-width: 991px) {
  .voice-demo-grid {
    grid-template-columns: 1fr;
  }

  .voice-demo-panel {
    max-width: 100%;
  }

  .voice-demo-list-panel {
    width: 100%;
  }

  .voice-case-item.is-active::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .voice-demo-page {
    padding: 86px 14px 62px;
  }

  .voice-demo-grid {
    padding: 20px;
    gap: 22px;
  }

  .voice-demo-panel {
    border-radius: 20px;
    padding: 24px 18px;
  }

  .voice-demo-info-row {
    grid-template-columns: 112px 1fr;
  }

  .voice-control-btn-play {
    width: 76px;
    height: 76px;
  }

  .voice-demo-time {
    font-size: 1.02rem;
  }

  .voice-case-item {
    min-height: 68px;
    padding-right: 14px;
  }

  .voice-case-item-avatar {
    width: 42px;
    height: 42px;
  }
}
