#slot-filter{
  margin-top: 12px;
  padding: 0 10px 30px;
}
#slot-filter * {
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
}
fieldset.sf-slider{
  margin-bottom: 30px;
}
fieldset.sf-droplist{
  margin-bottom: 20px;
}

.sf-label{
  font-size: 14px;
  font-weight: 700;
  color: #F4C769;
}
.slider-values{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  user-select: none;
  margin-top: 10px;
}
.slider-values p{
  font-size: 12px;
  font-weight: 500;
  color: #FFF;
  margin: 0;
  align-self: flex-end;
}
.slider-values input{
  width: 72px;
  border: 1px solid #FFF;
  background: #100e0d;
  text-align: center;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 500;
  user-select: none;
  color: #FFF;
}

.slider-scale{
  margin-top: 30px;
}

/* Базовый контейнер слайдера */
.ui-slider {
  position: relative;
  height: 4px;
  background: #575757; /* Цвет пустой шкалы */
  border-radius: 4px;
  margin: 15px 0;
  cursor: pointer;
  width: 90%;
  margin-left: 5%;
}

/* Закрашенная область между ползунками */
.ui-slider-range {
  position: absolute;
  height: 100%;
  background: #F4C769; /* Цвет выбранного диапазона */
  border-radius: 4px;
}

/* Стили самих ползунков (Handles) */
.ui-slider-handle {
  position: absolute;
  top: -11px; /* Центрирование относительно шкалы */
  margin-left: -12px;
  width: 24px;
  height: 24px;
  background: #100e0d;
  border: 2px solid #F4C769;
  border-radius: 50%;
  cursor: grab;
  outline: none;
  transition: background 0.2s;
}
.ui-slider-handle:before{
  position: absolute;
  top: 3px;
  left: 3px;
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #F4C769;
}
.ui-slider-handle:active {
  cursor: grabbing;
}

/* Убираем стандартные рамки при фокусе */
/*.ui-slider-handle:focus {
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
}*/

/* стилизация выпадающего списка selectmenu */
.drop-list{
  position: relative;
  user-select: none;
  margin-top: 6px;
}
.drop-list-mask{
  position: absolute;
  top: 0;
  right: 0;
  height: 32px;
  z-index: 10;
  cursor: pointer;
}
.drop-list-mask::after{
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  transform: rotate(225deg);
  border-left: 1px solid #fff;
  border-top: 1px solid #fff;
  transition: all 0.1s;
}
.drop-list-mask.open::after{
  top: 14px;
  transform: rotate(45deg);
}
.drop-list-load{
  width: 100%;
}
.drop-list-val{
  width: 20px;
}
.drop-list-load-gif{
  display: none;
  position: absolute;
  top: 6px;
  right: 30px;
  width: 20px;
  height: auto;
  opacity: .8;
}
.drop-list-del-val{
  display: none;
  position: absolute;
  top: 8px;
  right: 30px;
  color: #fff;
  font-size: 15px;
  z-index: 20;
}
.drop-list input{
  border: 1px solid #FFF;
  background: #100e0d;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  width: 94%;
  color: #fff;
  padding: 6px 8px;
  text-align: left;
}
.drop-list-box{
  display: none;
  background: #575757;
  list-style: none;
  width: 100%;
  max-height: 140px;
  overflow-y: scroll;
}
.drop-list-item{
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #1c1a18;
  padding: 6px 10px;
}
.drop-list-item:hover{
  color: #F4C769;
  background: #100e0d;
}
.drop-list-item.hide{
  display: none;
}
.drop-list-box::-webkit-scrollbar {
  width: 2px;
}
.drop-list-box::-webkit-scrollbar-track {
  background: #1c1a18;
}
.drop-list-box::-webkit-scrollbar-thumb {
  background: #F4C769;
  border-radius: 0;
}

.filter-checkbox{
  display: flex;
  align-items: center;
}
.sf-slider .filter-checkbox{
  margin-top: 30px;
}
.sf-checkboxes{
  display: flex;
  flex-wrap: wrap;
}
.sf-checkboxes .filter-checkbox{
  width: 50%;
  margin-bottom: 8px;
}
.filter-checkbox input{
  display: none;
}
.checkbox-label{
  display: inline-block;
  position: relative;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border: 1px solid #F4C769;
  cursor: pointer;
}
.checkbox-label::after{
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
}
.filter-checkbox input:checked + .checkbox-label::after{
  background-color: #F4C769;
}
.filter-checkbox span{
  flex: 1;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  margin-left: 8px;
}

.sf-buttons{
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
.sf-buttons > a,
.sf-buttons > .sf-submit{
  background: #100e0d;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  width: 45%;
  padding: 10px 0;
  border: 2px solid #F4C769;
}
.sf-buttons > a,
.sf-buttons > a:hover{
  border-color: #fff;
  color: #fff;
}
.sf-buttons > .sf-submit{
  color: #F4C769;
  cursor: pointer;
}

#filter-mobil, #filter-mobil .filter-mobil__container{
  display: none;
}
#filter-mobil .filter-mobil-top{
  position: relative;
  padding: 10px 20px;
  background: #1c1a18;
  cursor: pointer;
}
#filter-mobil .filter-mobil-top::after{
  content: '';
  position: absolute;
  top: 10px;
  right: 20px;
  width: 12px;
  height: 12px;
  transform: rotate(225deg);
  border-left: 1px solid #fff;
  border-top: 1px solid #fff;
  transition: all 0.1s;
}
#filter-mobil .filter-mobil-top.open::after{
  top: 15px;
  transform: rotate(45deg);
}
#filter-mobil .filter-mobil-top > .sf-mob-title{
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
}

.paper-with-sidebar .no-result{
  text-align: center;
  color: #fff;
  width: 100%;
}
/* прячем мини-табы на архивной слотов */
.paper-in-sidebar__tabs.mini-tabs{display: none;}

@media (max-width: 850px){
  #filter-mobil{
    display: block;
    margin-bottom: 20px;
  }
  .paper-with-sidebar{
    margin-top: 10px !important;
  }

  #slot-filter{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
  }
  .sf-part, .sf-checkboxes, .sf-buttons{
    width: 48%;
  }
  .sf-mtop{margin-top: -46px;}
  .sf-mtop2{margin-top: -82px;}
  fieldset.sf-slider{
    margin-bottom: 20px;
  }
  fieldset.sf-droplist{
    margin-bottom: 30px;
  }
  .sf-buttons{
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 740px){
  #slot-filter{
    width: 80%;
    margin-left: 10%;
  }
  .sf-part, .sf-checkboxes, .sf-buttons{
    width: 100%;
  }
  .sf-mtop,.sf-mtop2{margin: 0;}
  fieldset.sf-droplist{
    margin-bottom: 20px;
  }
  .sf-buttons{
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
  }
}

@media (max-width: 440px){
  #slot-filter{
    width: 96%;
    margin-left: 2%;
  }
}

/* ============================================================
   Кнопки применения и сброса фильтра.

   Раньше форма применялась только скриптом при отпускании ползунка,
   и кнопки submit в ней не было вовсе. Если запрос не проходил,
   отфильтровать выдачу было нечем. Теперь форма работает и как
   обычная GET-форма.
   ============================================================ */
.sf-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 4px;
  flex-wrap: wrap;
}

.sf-apply {
  flex: 1 1 auto;
  min-height: 40px;
  padding: 10px 22px;
  border: 1px solid #f0a823;
  border-radius: 6px;
  background: #f0a823;
  color: #1c1a18;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: filter .2s ease, transform .1s ease;
}

.sf-apply:hover { filter: brightness(1.08); }
.sf-apply:active { transform: translateY(1px); }
.sf-apply:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.sf-reset {
  padding: 10px 18px;
  border: 1px solid rgba(240, 168, 35, .45);
  border-radius: 6px;
  color: #f0a823;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease;
}

.sf-reset:hover { border-color: #f0a823; color: #ffd18a; }
.sf-reset:focus-visible { outline: 2px solid #f0a823; outline-offset: 2px; }

/* Состояние ожидания ответа: выдача притухает, но остаётся на месте,
   чтобы страница не «прыгала» при каждом движении ползунка. */
.content-igro-part1.sf-loading {
  opacity: .45;
  pointer-events: none;
  transition: opacity .15s ease;
}

@media (prefers-reduced-motion: reduce) {
  .sf-apply, .sf-reset, .content-igro-part1.sf-loading { transition: none; }
}
