/* xSort — LordFilm | Kinogo-style dropdowns */

.xsort-area {
  font-family: Gilroy, -apple-system, sans-serif;
  margin-bottom: 18px;
  user-select: none;
}

/* сортировка */
.xs-sort-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.xs-sort-label {
  font-size: 13px;
  color: #666;
  white-space: nowrap;
}

/* сетка фильтров */
.xs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

/* обёртка дропдауна */
.xs-dd {
  position: relative;
}
.xs-dd-sort {
  /* inline */
}

/* кнопка */
.xs-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 6px;
  background: #1e1e1e;
  border: 1px solid #2c2c2c;
  border-radius: 8px;
  color: #bbb;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s, color .15s;
  white-space: nowrap;
}
.xs-btn-sort {
  width: auto;
  padding: 6px 6px;
}
.xs-btn:hover { border-color: #444; color: #ddd; }
.xs-btn.xs-act {
  border-color: #2bcc71;
  color: #2bcc71;
  background: rgba(43,204,113,.08);
}
.xs-btn svg { flex-shrink: 0; opacity: .5; transition: transform .15s; }
.xs-btn.xs-open svg { transform: rotate(180deg); opacity: .8; }

/* дропдаун список */
.xs-drop {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  min-width: 100%;
  max-height: 300px;
  overflow-y: auto;
  background: #1e1e1e;
  border: 1px solid #2c2c2c;
  border-radius: 10px;
  z-index: 500;
  box-shadow: 0 12px 40px rgba(0,0,0,.85);
  list-style: none;
  margin: 0;
  padding: 5px 0;
}
.xs-drop::-webkit-scrollbar { width: 3px; }
.xs-drop::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

/* пункт */
.xs-drop li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: #888;
  font-size: 13px;
  cursor: pointer;
  transition: background .1s, color .1s;
  list-style: none;
  white-space: nowrap;
}
.xs-drop li:hover { background: rgba(255,255,255,.04); color: #ddd; }
.xs-drop li.xs-cur { color: #2bcc71; }

/* чекбокс */
.xs-chk {
  width: 16px; height: 16px;
  border: 1.5px solid #333;
  border-radius: 4px;
  background: #141414;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.xs-drop li.xs-cur .xs-chk {
  background: #2bcc71;
  border-color: #2bcc71;
  color: #000;
}

/* fade при загрузке */
#dle-content { transition: opacity .2s; }
