/* ================================================================
   XSlot — Search Widget (global overlay)
   Bottom-nav search button (.button-search_b517c) triggers this
   overlay. Panel sits below the header, page dims behind it —
   matches the reference at 1144xslot.com.
================================================================ */

.widget-wrapper_fa6c2 {
  position: fixed;
  inset: 0;
  z-index: 2147483640;
  background: rgba(0, 0, 0, .55);
  display: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-tap-highlight-color: transparent;
}
.widget-wrapper_fa6c2.opened_62775 { display: block; }
body.widget-open { overflow: hidden; }

.widget-container_dd8d2 {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: #191d22;
  color: #fff;
  padding: 12px 0 96px;
  animation: widgetSlideDown .22s ease-out;
}
@keyframes widgetSlideDown {
  from { transform: translateY(-12px); opacity: 0; }
  to   { transform: translateY(0);      opacity: 1; }
}

/* ---------- Top filter bar ---------- */
.widget-container_dd8d2 .container-filters_5c47f {
  padding: 8px 12px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.widget-container_dd8d2 .top-row_09bbb {
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-container_dd8d2 .container-input_5d8a0 {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #2b323b;
  border: 1px solid #3d4652;
  border-radius: 10px;
  padding: 10px 12px;
  overflow: hidden;
}
.widget-container_dd8d2 .container-input_5d8a0 > svg { flex-shrink: 0; color: #2dbcb4; }
.widget-container_dd8d2 .container-input_5d8a0 .separator_4666c {
  width: 1px;
  height: 18px;
  background: #4e5a6a;
  flex-shrink: 0;
}
.widget-container_dd8d2 .container-input_5d8a0 input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 17px;
  caret-color: #fe9900;
}
.widget-container_dd8d2 .container-input_5d8a0 input::placeholder { color: #d0d6dc; }

.widget-container_dd8d2 .random-button_ee793 {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fe990022;
  border: 1px solid #fe990055;
  border-radius: 8px;
  padding: 6px 10px;
  color: #fe9900;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.widget-container_dd8d2 .random-button_ee793:hover { background: #fe990033; }
.widget-container_dd8d2 .random-button_ee793 svg { flex-shrink: 0; }
.widget-container_dd8d2 .random-button_ee793 span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.widget-container_dd8d2 .close-btn-widget_562bb {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2b323b;
  border: 1px solid #3d4652;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s ease;
}
.widget-container_dd8d2 .close-btn-widget_562bb:hover { background: #343c46; }

.widget-container_dd8d2 .button-select-provider-filter_af419 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #2b323b;
  border: 1px solid #3d4652;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: background .15s ease;
}
.widget-container_dd8d2 .button-select-provider-filter_af419:hover { background: #343c46; }
.widget-container_dd8d2 .button-select-provider-filter_af419 .label-text_1e5ea {
  font-size: 13px;
  font-weight: 500;
  color: #d0d6dc;
}
.widget-container_dd8d2 .button-select-provider-filter_af419 .left-content_f125a {
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-container_dd8d2 .button-select-provider-filter_af419 .left-content_f125a .label-text_1e5ea {
  color: #fff;
  font-weight: 600;
}

/* ---------- Category tabs ---------- */
.widget-container_dd8d2 .tabs_container_1f0f4 {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px 0;
  margin-top: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.widget-container_dd8d2 .tabs_container_1f0f4::-webkit-scrollbar { display: none; }
.widget-container_dd8d2 .tabs_container_1f0f4 .tab_4d6b3 {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  text-transform: capitalize;
  color: #c4cbd4;
  background: #2b323b;
  border: 1px solid #3d4652;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s ease;
}
.widget-container_dd8d2 .tabs_container_1f0f4 .tab_4d6b3:hover {
  color: #fff;
  border-color: #4e5a6a;
}
.widget-container_dd8d2 .tabs_container_1f0f4 .tab_4d6b3 svg { color: #fe9900; }
.widget-container_dd8d2 .tabs_container_1f0f4 .tab_4d6b3.selected_3d3b8 {
  color: #fff;
  background: #fe9900;
  border-color: #ffffff3d;
  border-top-width: 2px;
  box-shadow: 0 8px 16px #fe990029;
}
.widget-container_dd8d2 .tabs_container_1f0f4 .tab_4d6b3.selected_3d3b8 svg { color: #fff; }

/* ---------- Separator ---------- */
.widget-container_dd8d2 .wr-separator_8e795 {
  padding: 12px;
}
.widget-container_dd8d2 .separator_5c053 {
  height: 1px;
  background: #3d4652;
}

/* ---------- Games grid ---------- */
.widget-container_dd8d2 .content-games_b2896,
.widget-container_dd8d2 .container-games-content_fc834 { width: 100%; }
.widget-container_dd8d2 .games_b5928 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 12px;
}
.widget-container_dd8d2 .game_45600 {
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #23282f;
}
.widget-container_dd8d2 .image-container_62825 {
  position: relative;
  width: 100%;
}
.widget-container_dd8d2 .image_8c468 {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  transition: transform .2s ease, filter .2s ease;
}
.widget-container_dd8d2 .game_45600:hover .image_8c468 {
  transform: scale(1.04);
  filter: brightness(.7);
}
.widget-container_dd8d2 .play-icon_b5d3c {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.widget-container_dd8d2 .play-icon_b5d3c path { fill: #fff; }
.widget-container_dd8d2 .game_45600:hover .play-icon_b5d3c { opacity: 1; }

/* Empty state */
.widget-container_dd8d2 .games_b5928.empty::after {
  content: 'Sonuç bulunamadı.';
  grid-column: 1 / -1;
  text-align: center;
  padding: 24px 12px;
  color: #7e8da0;
  font-size: 13px;
}

/* Small screens */
@media (max-width: 380px) {
  .widget-container_dd8d2 .container-input_5d8a0 { padding: 8px 10px; }
  .widget-container_dd8d2 .random-button_ee793 span { display: none; }
  .widget-container_dd8d2 .random-button_ee793 { padding: 6px 8px; }
}

/* Wider viewports: keep the widget centered like a modal */
@media (min-width: 720px) {
  .widget-container_dd8d2 {
    max-width: 640px;
    margin: 32px auto;
    min-height: auto;
    border-radius: 14px;
    padding-bottom: 20px;
  }
  .widget-container_dd8d2 .games_b5928 { grid-template-columns: repeat(4, 1fr); }
}
