/* Anasayfa hero — masaüstü 16:9 (cover), mobil 9:16 (contain, kırpma yok) */
:root {
  --kn-header-h: 80px;
  --kn-hero-gap: 20px;
}

#ft-slider-3,
#ft-slider-3.ft-slider-section-3 {
  position: relative;
  overflow: visible;
  padding-top: calc(var(--kn-header-h) + var(--kn-hero-gap)) !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  background: #f6f7f9;
  line-height: 0;
  width: 100%;
  max-width: 100%;
}

.kn-hero-video {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  background: #000;
  overflow: hidden;
  isolation: isolate;
}
.kn-hero-video__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.kn-hero-video__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.kn-hero-video__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.kn-hero-video__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.kn-hero-video__frame--youtube iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.kn-hero-video__player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.kn-hero-video__sound {
  position: absolute;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 5;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #043641;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.kn-hero-video__sound:hover {
  background: #fff;
  transform: scale(1.06);
  color: var(--color-accent, #fa3b0e);
}

.kn-hero-video__sound.is-unmuted {
  background: var(--color-accent, #fa3b0e);
  color: #fff;
}

.kn-hero-video__sound:focus-visible {
  outline: 3px solid var(--color-accent, #fa3b0e);
  outline-offset: 2px;
}

/* Masaüstü — mevcut 16:9 davranış (dokunulmadı) */
@media (min-width: 779px) {
  .kn-hero-video {
    height: clamp(160px, 56.25vw, 720px);
  }

  .kn-hero-video__media--mobile {
    display: none !important;
  }

  .kn-hero-video__media--desktop .kn-hero-video__player {
    object-fit: cover;
    object-position: center center;
  }
}

/* Mobil — 9:16, tam sığdır, kırpma yok */
@media (max-width: 778px) {
  :root {
    --kn-hero-gap: 16px;
  }

  #ft-slider-3,
  #ft-slider-3.ft-slider-section-3 {
    min-height: 0 !important;
    background: #f6f7f9;
    padding-top: calc(var(--kn-header-h) + var(--kn-hero-gap)) !important;
  }

  .kn-hero-video {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 9 / 16;
    height: auto;
    margin: 0;
  }

  .kn-hero-video__media--desktop {
    display: none !important;
  }

  .kn-hero-video__media--mobile .kn-hero-video__frame {
    background: #000;
  }

  .kn-hero-video__media--mobile .kn-hero-video__player,
  .kn-hero-video__media--mobile .kn-hero-video__player--contain {
    object-fit: contain;
    object-position: center center;
  }

  .kn-hero-video__sound {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
}

@media (max-width: 1024px) {
  #ft-slider-3,
  #ft-slider-3.ft-slider-section-3 {
    min-height: 0 !important;
  }
}

@media (max-width: 575px) {
  .kn-hero-video__sound {
    width: 40px;
    height: 40px;
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 480px) {
  #ft-slider-3,
  #ft-slider-3.ft-slider-section-3 {
    min-height: 0 !important;
  }
}
