/* Kompakt dil seçimi — logonun hemen altında görünür. */
.dil-sarma {
  display: inline-flex;
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  align-self: flex-start;
  gap: 0;
  flex: 0 0 auto;
  z-index: 30;
}

.dil-sarma .wordmark {
  order: 0;
  flex: 0 0 auto;
}

.dil-dugme {
  position: absolute;
  top: 69px;
  left: 0;
  z-index: 30;
  order: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 999px;
  background: rgba(11, 11, 13, .22);
  color: inherit;
  font-family: inherit;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  line-height: 1;
  opacity: .82;
  cursor: pointer;
  transition: opacity .2s, border-color .2s, color .2s, background .2s;
  -webkit-tap-highlight-color: transparent;
}

.dil-dugme:hover,
.dil-dugme:focus-visible {
  opacity: 1;
  border-color: var(--yellow, #d8bb2c);
  color: var(--yellow, #d8bb2c);
  background: rgba(11, 11, 13, .42);
}

.dil-dugme:focus-visible {
  outline: 2px solid var(--yellow, #d8bb2c);
  outline-offset: 3px;
}

.dil-dugme-sabit {
  position: fixed;
  top: 22px;
  left: 5vw;
  z-index: 60;
  background: rgba(11, 11, 13, .55);
  color: #f4f1e9;
}

/* İç sayfaların tek satırlık başlığında düğme logonun yanında, dikey ortada;
   logo yerinden kaymaz (dil.js · dugmeYeri). */
.dil-sarma.dil-yan-sag .dil-dugme {
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
}
.dil-sarma.dil-yan-sol .dil-dugme {
  left: auto;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 760px) {
  .dil-sarma { gap: 5px; }
  .dil-dugme {
    position: static;
    min-width: 34px;
    min-height: 24px;
    padding: 0 7px;
    font-size: 9px;
  }
  .dil-sarma.dil-yan-sag .dil-dugme,
  .dil-sarma.dil-yan-sol .dil-dugme {
    position: absolute;
  }
  /* Logosuz sayfalar (radyo paneli, MP3 dönüştürücü): sayfanın dibine
     düşmesin, sol alt köşede sabit dursun. */
  .dil-dugme.dil-dugme-sabit {
    position: fixed;
    top: auto;
    bottom: 16px;
    left: 16px;
  }
}
