/* =====================================================================================================
   Üst bar DETAYLI ARAMA (2026-10-28, fbsearch) — referans arama penceresi ÖLÇÜLEREK eşlendi (getComputedStyle, 1920/1280/390):
   arka plan rgba(0,0,0,.6) + blur 24 · pencere fixed top 15vh, 600 genişlik (dar ekranda 100vw-64), en çok 70vh, #1a1c20 r24 p16
   · arama alanı 42 yükseklik #2e3137 r12, odakta 1px #ff003a, p0 14, büyüteç 20 rgba(255,255,255,.8) +8, yazı 13px
   · sonuç kutusu #2e3137, 1px rgba(255,255,255,.12) r12 p16, içi en çok calc(40vh - 2rem) kaydırılır
   · grup başlığı 600 14/20 BÜYÜK HARF #ff3361 + 16px ikon (#ff003a) 8 boşluk, alt 8 (sonraki grup üst 16)
   · sayfa satırı 48 yükseklik 700 16/24 beyaz · oyun satırı p12 0, 12 boşluk, alt çizgi rgba(255,255,255,.12), 48x48 r6 #202126 resim,
     ad 700 16/24 beyaz, sağlayıcı 14/20 #ababab, düğme 32 yükseklik r6 700 12/16 p0 24 (#ff003a / #24262b)
   · yükleniyor: kırmızı halka + 14/20 #ababab, p32 0 · sonuç yok: 600 18/28 beyaz + 600 14/20 #ababab, p32.
   FB'de olmayanlar (sahip "ult detaylı" istedi): sağlayıcı / canlı casino grupları, grup süzgeci, son aramalar, popüler oyunlar,
   kısayollar, eşleşen harf vurgusu, klavye gezinme, mobil tam pencere (FB mobilde arama yok; satırları da bozuk).
   ===================================================================================================== */

.wzs {
  position: fixed;
  inset: 0;
  z-index: 9600;
  display: none;
  font-family: Outfit, Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wzs.is-open {
  display: block;
}

.wzs-bd {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  opacity: 0;
  transition: opacity .225s cubic-bezier(.4, 0, .2, 1);
}

.wzs.is-shown .wzs-bd {
  opacity: 1;
}

.wzs-dlg {
  position: fixed;
  top: 15vh;
  left: 50%;
  display: flex;
  flex-direction: column;
  width: min(600px, calc(100vw - 64px));
  max-height: 70vh;
  box-sizing: border-box;
  padding: 16px;
  overflow: hidden;
  border-radius: 24px;
  background: #1a1c20;
  color: rgba(255, 255, 255, .8);
  box-shadow: 0 11px 15px -7px rgba(0, 0, 0, .2), 0 24px 38px 3px rgba(0, 0, 0, .14), 0 9px 46px 8px rgba(0, 0, 0, .12);
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity .225s cubic-bezier(.4, 0, .2, 1);
}

.wzs.is-shown .wzs-dlg {
  opacity: 1;
}

.wzs-dlg *,
.wzs-dlg *::before,
.wzs-dlg *::after {
  box-sizing: border-box;
}

.wzs-top {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.wzs-field {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #ff003a; /* FB: pencere açıkken alan hep kırmızı çerçeveli (odak kutuda kalır) */
  border-radius: 12px;
  background: #2e3137;
  transition: border-color .2s;
}

.wzs-field > svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  color: rgba(255, 255, 255, .8);
}

.wzs-input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: 400 13px/normal Outfit, Roboto, system-ui, sans-serif;
  -webkit-appearance: none;
  appearance: none;
}

.wzs .wzs-input:focus,
.wzs .wzs-input:focus-visible {
  outline: 0 !important; /* sitenin genel odak çerçevesi yerine alanın kırmızı kenarı (FB) */
  box-shadow: none !important;
}

.wzs-input::placeholder {
  color: #ababab;
  opacity: 1;
}

.wzs-input::-webkit-search-cancel-button,
.wzs-input::-webkit-search-decoration {
  -webkit-appearance: none;
  display: none;
}

.wzs-clear {
  display: none;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 0 -6px 0 6px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #ababab;
  cursor: pointer;
}

.wzs-clear svg {
  width: 14px;
  height: 14px;
}

.wzs-field.has-value .wzs-clear {
  display: flex;
}

.wzs-clear:hover {
  color: #fff;
}

.wzs-x {
  display: none;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #2e3137;
  color: #fff;
  cursor: pointer;
}

.wzs-x svg {
  width: 18px;
  height: 18px;
}

.wzs-clear:focus-visible,
.wzs-x:focus-visible,
.wzs-tab:focus-visible,
.wzs-chip:focus-visible,
.wzs-link:focus-visible,
.wzs-retry:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* grup süzgeci (Tümü / Oyunlar / Canlı Casino / Sağlayıcılar / Sayfalar) — yalnız 2+ grup varken */
.wzs-tabs {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.wzs-tabs::-webkit-scrollbar {
  display: none;
}

.wzs-tabs[hidden] {
  display: none;
}

.wzs-tab {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: #24262b;
  color: #ababab;
  font: 600 13px/30px Outfit, Roboto, system-ui, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}

.wzs-tab b {
  margin-left: 4px;
  font-weight: 500;
  opacity: .75;
}

.wzs-tab:hover {
  background: #2e3137;
  color: #fff;
}

.wzs-tab.is-on {
  background: #ff003a;
  color: #fff;
}

.wzs-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  margin-top: 12px;
}

.wzs-hint {
  margin: 0;
  padding: 24px 0;
  color: #ababab;
  font: 400 14px/20px Outfit, Roboto, system-ui, sans-serif;
  text-align: center;
}

.wzs-box {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: #2e3137;
  color: #fff;
}

.wzs-scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(40vh - 2rem);
  margin: 0 -8px;
  padding: 0 8px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #4a4e57 transparent;
  scrollbar-width: thin;
}

.wzs-scroll::-webkit-scrollbar {
  width: 6px;
}

.wzs-scroll::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: #4a4e57;
}

.wzs-grp + .wzs-grp .wzs-gh {
  padding-top: 16px;
  min-height: 47px;
}

.wzs-gh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 31px; /* FB alt başlık 31 (20 satır + taban boşluğu + 8) */
  margin: 0;
  padding: 0 0 8px;
  color: #ababab;
  font: 600 14px/20px Outfit, Roboto, system-ui, sans-serif;
  text-transform: uppercase;
}

.wzs-gh-t {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #ff3361;
}

.wzs-gh-t > svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: #ff003a;
}

.wzs-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
  padding: 0 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #ff3361;
  font: 600 13px/20px Outfit, Roboto, system-ui, sans-serif;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
}

.wzs-link svg {
  width: 12px;
  height: 12px;
  transform: rotate(-90deg);
}

.wzs-link:hover,
.wzs-link.is-active {
  background: rgba(255, 51, 97, .12);
}

/* satırlar (role=option) */
.wzs-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 -8px;
  padding: 12px 8px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.wzs-opt::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 0;
  left: 8px;
  height: 1px;
  background: rgba(255, 255, 255, .12);
  pointer-events: none;
}

.wzs-opt.wzs-pg::after {
  display: none;
}

.wzs-opt:hover,
.wzs-opt.is-active {
  background: rgba(255, 255, 255, .05);
}

.wzs-opt.is-active {
  box-shadow: inset 0 0 0 1px rgba(255, 51, 97, .55);
}

.wzs-it {
  padding-bottom: 13px; /* FB satırı 73 = 12 + 48 + 12 + 1 alt çizgi */
}

.wzs-pg {
  justify-content: space-between;
  min-height: 48px;
  font: 700 16px/24px Outfit, Roboto, system-ui, sans-serif;
}

.wzs-pg-t {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wzs-pg-s {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  color: #ababab;
  font: 500 12px/16px Outfit, Roboto, system-ui, sans-serif;
}

.wzs-pg-s svg {
  width: 12px;
  height: 12px;
}

.wzs-th {
  position: relative;
  display: flex;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 6px;
  background: #202126;
  color: #ababab;
  font: 700 18px/1 Outfit, Roboto, system-ui, sans-serif;
}

.wzs-th img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wzs-th.is-logo img {
  padding: 4px;
  object-fit: contain;
}

.wzs-live {
  position: absolute;
  top: 3px;
  left: 3px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 4px;
  border-radius: 4px;
  background: #ff003a;
  color: #fff;
  font: 700 8px/13px Outfit, Roboto, system-ui, sans-serif;
  letter-spacing: .02em;
}

.wzs-tx {
  flex: 1 1 auto;
  min-width: 0;
}

.wzs-nm,
.wzs-pv {
  display: block;
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wzs-nm {
  color: #fff;
  font: 700 16px/24px Outfit, Roboto, system-ui, sans-serif;
}

.wzs-pv {
  color: #ababab;
  font: 400 14px/20px Outfit, Roboto, system-ui, sans-serif;
}

.wzs-hl {
  padding: 0;
  background: transparent;
  color: #ff3361;
}

.wzs-acts {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.wzs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 32px;
  padding: 0 24px;
  border-radius: 6px;
  background: #24262b;
  color: #fff;
  font: 700 12px/16px Outfit, Roboto, system-ui, sans-serif;
  white-space: nowrap;
}

.wzs-btn svg {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
}

.wzs-btn.is-play {
  background: #ff003a;
  text-transform: uppercase;
}

/* Misafir düğmesi = FB "Oynamak için Giriş Yap" (ölçüldü 2026-10-28: disabled, opacity .4, text-transform capitalize,
   gap 4, ikon 14). FB'de tıklanmaz; bizde satır giriş penceresini açar → satırın üstüne gelince / klavyeyle seçilince tam görünür. */
.wzs-btn.is-guest {
  padding-left: 28px; /* FB: ikon düğmenin solundan 28 px içeride (sağ 24) → genişlik 197,15 */
  opacity: .4;
  text-transform: capitalize;
  transition: opacity .15s;
}

.wzs-opt:hover .wzs-btn.is-guest,
.wzs-opt.is-active .wzs-btn.is-guest {
  opacity: 1;
}

/* Dokunmatik ekranda üstüne gelme yok: soluk düğme "kapalı" sanılmasın (FB'de mobilde arama hiç yok, örnek yok). */
@media (hover: none) {
  .wzs-btn.is-guest {
    opacity: 1;
  }
}

.wzs-btn .wzs-s {
  display: none;
}

/* boş pencere: son aramalar / kısayollar */
.wzs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 0 4px;
}

.wzs-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: #24262b;
  color: #fff;
  font: 500 13px/32px Outfit, Roboto, system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s;
}

.wzs-chip > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.wzs-chip svg {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  color: #ababab;
}

.wzs-chip:hover,
.wzs-chip.is-active {
  background: #1a1c20;
}

.wzs-chip.is-active {
  box-shadow: inset 0 0 0 1px rgba(255, 51, 97, .55);
}

/* durum kutuları */
.wzs-load {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 0;
  color: #ababab;
  font: 400 14px/20px Outfit, Roboto, system-ui, sans-serif;
  text-align: center;
}

.wzs-spin {
  width: 29px;
  height: 29px;
  border: 3px solid rgba(255, 0, 58, .2);
  border-top-color: #ff003a;
  border-radius: 50%;
  animation: wzs-spin .8s linear infinite;
}

@keyframes wzs-spin {
  to {
    transform: rotate(360deg);
  }
}

.wzs-none {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
}

.wzs-none b {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font: 600 18px/28px Outfit, Roboto, system-ui, sans-serif;
}

.wzs-none span {
  color: #ababab;
  font: 600 14px/20px Outfit, Roboto, system-ui, sans-serif;
}

.wzs-retry {
  height: 32px;
  margin-top: 14px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: #24262b;
  color: #fff;
  font: 700 12px/32px Outfit, Roboto, system-ui, sans-serif;
  cursor: pointer;
}

.wzs-note {
  margin: 0 0 10px;
  color: #ababab;
  font: 500 13px/18px Outfit, Roboto, system-ui, sans-serif;
}

.wzs-note q {
  color: #fff;
}

.wzs-maint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 176, 32, .28);
  border-radius: 8px;
  background: rgba(255, 176, 32, .1);
  color: #ffb020;
  font: 500 13px/18px Outfit, Roboto, system-ui, sans-serif;
}

.wzs-maint svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

.wzs-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* üst bar tetikleyicisi: ara kutusu pencereyi açar (yazı imleci yerine el imleci) */
.topbar .bb-search.wzs-ready input {
  cursor: pointer;
}

/* mobil çekmece: arama kapsülü (FB mobilde arama yok; bizde menünün üstünde) */
.wzs-side {
  display: none;
}

html.wzs-lock,
html.wzs-lock body {
  overflow: hidden !important;
}

@media (max-width: 767px) {
  .wzs-dlg {
    top: calc(16px + env(safe-area-inset-top, 0px));
    right: 16px;
    left: 16px;
    width: auto;
    max-height: calc(100vh - 32px - env(safe-area-inset-top, 0px));
    max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px));
    padding: 12px;
    border-radius: 20px;
    transform: none;
  }

  .wzs-x {
    display: flex;
  }

  .wzs-input {
    font-size: 16px; /* iOS: 16px altı odakta sayfayı yakınlaştırır */
  }

  .wzs-scroll {
    max-height: none;
  }

  .wzs-box {
    padding: 12px 14px;
  }

  .wzs-opt {
    gap: 10px;
  }

  .wzs-nm {
    font-size: 15px;
    line-height: 22px;
  }

  .wzs-pv {
    font-size: 13px;
    line-height: 18px;
  }

  .wzs-btn,
  .wzs-btn.is-guest {
    padding: 0 10px;
  }

  .wzs-btn .wzs-l {
    display: none;
  }

  .wzs-btn .wzs-s {
    display: inline;
  }

  .wzs-pg {
    font-size: 15px;
  }

  .wzs-none b {
    font-size: 16px;
    line-height: 24px;
  }

  .wzs-side {
    display: flex;
    flex: 0 0 44px; /* çekmece esnek sütun: küçülmesin */
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 44px;
    min-height: 44px;
    margin: 0 0 12px;
    padding: 0 14px;
    border: 1px solid #2e3137;
    border-radius: 12px;
    background: #24262b;
    color: #ababab;
    font: 400 14px/20px Outfit, Roboto, system-ui, sans-serif;
    text-align: left;
    cursor: pointer;
  }

  .wzs-side svg {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    opacity: .7;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wzs-bd,
  .wzs-dlg {
    transition: none;
  }

  .wzs-spin {
    animation-duration: 2s;
  }
}
