/* Akustik before/after — anasayfa */
.acoustic-diff {
  position: relative;
  isolation: isolate;
  min-height: min(78vh, 820px);
  overflow: hidden;
  color: #fff;
  background: var(--ink-900);
}

.acoustic-diff__media,
.acoustic-diff__img {
  position: absolute;
  inset: 0;
}

.acoustic-diff__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s ease, transform 1.1s ease;
}

.acoustic-diff__img.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.acoustic-diff__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(14, 14, 14, 0.38) 0%, rgba(14, 14, 14, 0.12) 28%, rgba(14, 14, 14, 0.2) 55%, rgba(14, 14, 14, 0.72) 100%);
  pointer-events: none;
}

.acoustic-diff__ui {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: min(78vh, 820px);
  padding: 1.6rem 1.25rem 1.8rem;
}

.acoustic-diff__banner {
  margin: 0.4rem auto 0;
  padding: 0.7rem 1.6rem;
  max-width: min(92vw, 640px);
  border-radius: 10px;
  background: rgba(28, 24, 20, 0.92);
  color: #fff;
  font-family: var(--font-body);
  font-size: clamp(0.72rem, 1.4vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.acoustic-diff__mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(920px, 100%);
  margin-top: auto;
  margin-bottom: auto;
}

.acoustic-diff__wave {
  width: 100%;
  height: 88px;
  margin-bottom: 0.35rem;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.35));
}

.acoustic-diff__wave canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.acoustic-diff__copy {
  text-align: center;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.acoustic-diff__copy span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.acoustic-diff__copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.05;
  text-transform: uppercase;
  color: #fff;
}

.acoustic-diff__controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(920px, 100%);
  margin-top: auto;
}

.acoustic-diff__mode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 58px;
  padding: 0.85rem 1.1rem;
  border: 0;
  font-family: var(--font-body);
  font-size: clamp(0.62rem, 1.15vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform var(--t-fast), box-shadow var(--t-fast), filter var(--t-fast);
}

.acoustic-diff__mode i {
  font-size: 1.15rem;
  line-height: 1;
}

.acoustic-diff__mode--before {
  border-radius: 10px 0 0 10px;
  background: #2a241e;
  color: #fff;
}

.acoustic-diff__mode--after {
  border-radius: 0 10px 10px 0;
  background: var(--gold-400);
  color: var(--ink-900);
}

.acoustic-diff__mode.is-active {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
  filter: brightness(1.05);
}

.acoustic-diff__mode:hover {
  transform: translateY(-1px);
}

.acoustic-diff__play {
  position: relative;
  z-index: 2;
  width: 68px;
  height: 68px;
  margin: 0 -14px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink-800);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.acoustic-diff__play i {
  font-size: 1.45rem;
  margin-left: 2px;
}

.acoustic-diff__play.is-playing i {
  margin-left: 0;
}

.acoustic-diff__play:hover {
  transform: scale(1.06);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
}

.acoustic-diff.is-playing .acoustic-diff__wave {
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.55));
}

@media (max-width: 767.98px) {
  .acoustic-diff {
    min-height: 70vh;
  }

  .acoustic-diff__ui {
    min-height: 70vh;
    padding: 1.1rem 0.85rem 1.2rem;
  }

  .acoustic-diff__wave {
    height: 64px;
  }

  .acoustic-diff__mode {
    flex-direction: column;
    gap: 0.35rem;
    min-height: 64px;
    padding: 0.7rem 0.55rem;
    letter-spacing: 0.04em;
    text-align: center;
  }

  .acoustic-diff__play {
    width: 58px;
    height: 58px;
    margin: 0;
  }
}
