/* =========================
   Chessreads filter UI (scoped)
   ========================= */
.chessr-grid-loading {
  position: absolute;
  left: 50%;
  top: 0%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  pointer-events: none;
}

.chessr-grid-loading::before {
  content: '';
  width: 40px;
  height: 40px;
  border: 4px solid rgba(224, 221, 207, 0.2);
  border-top-color: var(--e-global-color-accent, #E0DDCF);
  border-radius: 50%;
  animation: chessr-spin 0.8s linear infinite;
}

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

.chessr-filter-sort-dropdown {
  position: absolute;
  top: -15px;
  right: 0px;
  z-index: 10;
}

/* Never show native selects (only Select2 UI) */
.chessr-filter-wrapper select.chessr-searchable-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.chessr-filter-sort-select .chessr-searchable-select {
  --chessr-bg: #2b2f30;
  --chessr-pill: #3a3f40;
  --chessr-pill-2: #343839;
  --e-global-color-secondary: #e7e2d8;
  --e-global-color-secondary: #a8a39a;
  --chessr-line: rgba(255, 255, 255, .28);
  --chessr-track: #d9d3c9;

  color: var(--e-global-color-secondary);
}

.chessr-filter-wrapper {
  --chessr-bg: #2b2f30;
  --chessr-pill: #3a3f40;
  --chessr-pill-2: #343839;
  --e-global-color-secondary: #e7e2d8;
  --e-global-color-secondary: #a8a39a;
  --chessr-line: rgba(255, 255, 255, .28);
  --chessr-track: #d9d3c9;

  color: var(--e-global-color-secondary);
}

/* Layout */
.chessr-filter-wrapper .chessr-filter-controls {
  padding: 10px 0 0;
}

.chessr-filter-wrapper .chessr-filter-primary-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  align-items: end;
  justify-items: center;
}

.chessr-filter-wrapper .chessr-filter-taxonomy-select,
.chessr-filter-wrapper .chessr-filter-terms-select,
.chessr-filter-wrapper .chessr-filter-author,
.chessr-filter-wrapper .chessr-filter-rating,
.chessr-filter-wrapper .chessr-filter-publisher,
.chessr-filter-wrapper .chessr-filter-year,
.chessr-filter-wrapper .chessr-filter-year-operator-container,
.chessr-filter-wrapper .chessr-filter-readability,
.chessr-filter-wrapper .chessr-filter-usefulness {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.chessr-filter-wrapper .chessr-filter-advanced-section {
  margin-top: 10px;
  display: none;
}

.chessr-filter-advanced-section.active {
  display: block;
}

.chessr-filter-wrapper .chessr-filter-advanced-grid {
  display: grid;

  gap: 48px;
  align-items: start;
}

/*.chessr-filter-wrapper .chessr-filter-advanced-group {
  
}*/

.chessr-filter-wrapper .chessr-filter-advanced-group:first-child {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  align-items: end;
  justify-items: center;
}

.chessr-filter-wrapper .chessr-filter-advanced-group:last-child {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  align-items: end;
  justify-items: center;
}

/* Labels (tracking + lowercase look) */
.chessr-filter-wrapper label,
.chessr-filter-wrapper .chessr-terms-label {
  display: block;
  margin: 0;
  color: var(--e-global-color-secondary);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: lowercase;
  opacity: .95;
}

/* Pill base */
.chessr-filter-wrapper .select2-container--default .select2-selection--single,
.chessr-filter-wrapper .chessr-year-input,
.chessr-filter-wrapper .chessr-rating-slider-container,
.chessr-filter-wrapper .chessr-readability-slider-container,
.chessr-filter-wrapper .chessr-usefulness-slider-container {
  background: linear-gradient(var(--e-global-color-283eaca), var(--e-global-color-283eaca));
  border: 0 !important;
  border-radius: 999px;
}

/* Select2 look */
.chessr-filter-wrapper .select2-container {
  width: 100% !important;
  max-width: 320px;
}

/* =========================
   Opening filter layout + segmented switches
   ========================= */
.chessr-filter-wrapper--opening .chessr-opening-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  align-items: start;
  justify-items: center;
}

.chessr-filter-wrapper--opening .chessr-opening-filter-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

@media (max-width: 900px) {
  .chessr-filter-wrapper--opening .chessr-opening-filter-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Switches inside a large pill */
.chessr-filter-wrapper .chessr-switch-group {
  width: 100%;
  max-width: 320px;
}

/* Middlegame page: pill should span full width */
.chessr-filter-wrapper--middlegame .chessr-middlegame-filter-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

/* Endgame page: same layout as middlegame */
.chessr-filter-wrapper--endgame .chessr-endgame-filter-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.chessr-filter-wrapper--middlegame .chessr-switch-group {
  max-width: none;
}

.chessr-filter-wrapper--endgame .chessr-switch-group {
  max-width: none;
}

/* Middlegame: desktop/tablet = one outer pill with background,
   containing transparent mini-pills (2 switches each) in a single row */
.chessr-filter-wrapper--middlegame .chessr-switch-pill--outer {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
}

.chessr-filter-wrapper--endgame .chessr-switch-pill--outer {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
}

.chessr-filter-wrapper--middlegame .chessr-switch-pill-row {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  border-radius: 999px;
  background: transparent;
}

.chessr-filter-wrapper--endgame .chessr-switch-pill-row {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  border-radius: 999px;
  background: transparent;
}

/* Odd number of terms: center the last single switch */
:is(.chessr-filter-wrapper--middlegame, .chessr-filter-wrapper--endgame)
  .chessr-switch-pill-row
  .chessr-switch-item:only-child {
  grid-column: 1 / -1;
  justify-self: center;
}

/* Middlegame: mobile = mini-pills stacked, outer pill transparent */
@media (max-width: 700px) {
  .chessr-filter-wrapper--middlegame .chessr-switch-pill--outer {
    background: none !important;
    background-image: none !important;
    padding: 0!important;
    border-radius: 0!important;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap!important;
    gap: 14px !important;
    padding: 10px !important;
  }

  .chessr-filter-wrapper--middlegame .chessr-switch-pill-row {
    width: 100% !important;
    flex: 0 0 auto !important;
    padding: 8px 12px !important;
    border-radius: 999px !important;
    background: linear-gradient(var(--e-global-color-283eaca), var(--e-global-color-283eaca)) !important;
  }

  .chessr-filter-wrapper--middlegame .chessr-switch-item__label {
    font-size: 9px !important;
  }

  .chessr-filter-wrapper--endgame .chessr-switch-pill--outer {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: 1fr !important;
    gap: 0 !important;
    align-items: center !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }

  .chessr-filter-wrapper--endgame .chessr-switch-pill-row {
    width: 100% !important;
    flex: 0 0 auto !important;
    padding: 8px 12px !important;
    border-radius: 999px !important;
    background: linear-gradient(var(--e-global-color-283eaca), var(--e-global-color-283eaca)) !important;
  }

  .chessr-filter-wrapper--endgame .chessr-switch-item__label {
    font-size: 9px !important;
  }
}

.chessr-filter-wrapper .chessr-switch-pill {
  width: 100%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(var(--e-global-color-283eaca), var(--e-global-color-283eaca));
}

.chessr-filter-wrapper .chessr-switch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.chessr-filter-wrapper .chessr-switch-item__label {
  color: var(--e-global-color-secondary);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: lowercase;
  line-height: 1;
  white-space: nowrap;
}

/* Toggle switch (track + knob) */
.chessr-filter-wrapper .chessr-switch {
  position: relative;
  width: 40px;
  height: 18px;
  flex: 0 0 auto;
}

.chessr-filter-wrapper .chessr-switch__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}

.chessr-filter-wrapper .chessr-switch__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  transition: background 160ms ease;
  z-index: 1;
  pointer-events: none;
}

.chessr-filter-wrapper .chessr-switch__track::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  transition: transform 160ms ease;
}

.chessr-filter-wrapper .chessr-switch__input:checked + .chessr-switch__track {
  background: var(--e-global-color-accent, rgba(255, 255, 255, 0.55));
}

.chessr-filter-wrapper .chessr-switch__input:checked + .chessr-switch__track::before {
  transform: translateX(22px);
}

.chessr-filter-wrapper .chessr-switch__input:focus-visible + .chessr-switch__track {
  outline: 2px solid var(--chessr-line);
  outline-offset: 2px;
}

.chessr-filter-wrapper .chessr-segment {
  width: 100%;
  max-width: 320px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px;
  background: linear-gradient(var(--e-global-color-283eaca), var(--e-global-color-283eaca));
  border-radius: 999px;
}

.chessr-filter-wrapper .chessr-segment__btn {
  flex: 1;
  border: 0;
  background: transparent;
  border-radius: 999px;
  height: 44px;
  cursor: pointer;
  color: var(--e-global-color-secondary);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: lowercase;
}

.chessr-filter-wrapper .chessr-segment__btn.is-active {
  background: var(--chessr-pill);
}

.chessr-filter-wrapper .chessr-segment__btn:focus {
  outline: 2px solid var(--chessr-line);
  outline-offset: 2px;
}

/* Disabled states */
.chessr-filter-wrapper .chessr-segment__btn:disabled,
.chessr-filter-wrapper .chessr-segment__btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.chessr-filter-wrapper select:disabled,
.chessr-filter-wrapper .chessr-switch__input:disabled,
.chessr-filter-wrapper .chessr-year-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chessr-filter-wrapper .chessr-switch__input:disabled + .chessr-switch__track {
  opacity: 0.5;
  cursor: not-allowed;
}

.chessr-filter-wrapper .select2-container--disabled .select2-selection--single {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.chessr-filter-wrapper .noUi-state-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chessr-filter-wrapper .select2-container--default .select2-selection--single {
  height: 44px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chessr-filter-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--e-global-color-secondary);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: none;
  padding: 5px !important;
  line-height: 1;
  text-align: center;
}

/* Sort dropdown: smaller typography (override global Select2 styles) */
.chessr-filter-sort-dropdown .select2-container--default .select2-selection--single {
  height: 25px;
  min-height: 25px;
  padding: 0 12px;
}

.chessr-filter-sort-dropdown .select2-container--default .select2-selection--single .select2-selection__rendered {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
}

.chessr-filter-wrapper .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: rgba(231, 226, 216, .85);
}

.chessr-filter-wrapper .select2-container--default .select2-selection--single .select2-selection__arrow {
  display: none;
}

.chessr-filter-wrapper .select2-container--default .select2-selection__clear {
  display: none !important;
}

/* Dropdown panel */
.chessr-filter-wrapper .select2-container--default .select2-dropdown {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #2a2e2f;
}

/* Dropdown menu (Select2 is appended to body, so target via dropdownCssClass) */
.chessr-select2-dropdown.select2-dropdown {
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #26292AD9;
  will-change: transform;
}

/* Sort only: move dropdown lower */
.chessr-select2-dropdown.chessr-select2-dropdown--sort.select2-dropdown {
  transform: translateX(-80px);
  max-width: 150px !important;
}

/* Sort dropdown: option font size */
.chessr-select2-dropdown.chessr-select2-dropdown--sort .select2-results__option {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
}

/* Year operator only: move dropdown lower */
.chessr-select2-dropdown.chessr-select2-dropdown--year-op.select2-dropdown {
  transform: translateY(1%);
}

/* Dropdown height: show more options before scrolling */
.chessr-select2-dropdown .select2-results {
  max-height: 420px !important;
}

.chessr-select2-dropdown .select2-results__options {
  padding: 0;
  max-width: 300px;
  min-width: 300px;
  max-height: 520px !important;
  overflow-y: auto !important;

  /* Firefox scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .28) rgba(255, 255, 255, .08);
}

/* WebKit scrollbar (Chrome/Safari/Edge) */
.chessr-select2-dropdown .select2-results__options::-webkit-scrollbar {
  width: 12px;
}

.chessr-select2-dropdown .select2-results__options::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .06);
}

.chessr-select2-dropdown .select2-results__options::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .22);
  border-radius: 999px;
  border: 3px solid rgba(0, 0, 0, 0);
  background-clip: padding-box;
}

.chessr-select2-dropdown .select2-results__options::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, .32);
  border: 3px solid rgba(0, 0, 0, 0);
  background-clip: padding-box;
}

.chessr-select2-dropdown .select2-results__option {
  color: var(--e-global-color-text);
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: none;
}

.chessr-select2-dropdown .select2-results__option:last-child {
  border-bottom: 0;
}

/* Don't show a separate "selected" background (prevents the white bar while hovering other items) */
.chessr-select2-dropdown .select2-results__option[aria-selected="true"],
.chessr-select2-dropdown .select2-results__option--selected {
  background: transparent;
  color: var(--e-global-color-text);
}

.chessr-select2-dropdown .select2-results__option--highlighted[aria-selected] {
  background: rgba(255, 255, 255, .08);
}

.chessr-select2-dropdown .select2-search--dropdown .select2-search__field {
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: none;
  color: var(--e-global-color-text);
}

.chessr-filter-wrapper .select2-container--default .select2-results__option {
  color: var(--e-global-color-secondary);
  padding: 10px 12px;
  font-size: 13px;
}

.chessr-filter-wrapper .select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: rgba(255, 255, 255, .08);
  color: var(--e-global-color-secondary);
}

.chessr-filter-wrapper .select2-container--default .select2-search--dropdown .select2-search__field {
  border: 0;
  outline: none;
  background: rgba(255, 255, 255, .06);
  color: var(--e-global-color-secondary);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 10px;
}

/* Year controls */
.chessr-filter-wrapper .chessr-year-controls {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

.chessr-filter-wrapper .chessr-year-input {
  height: 44px;
  width: 100%;
  max-width: 320px;
  padding: 0 18px;
  color: var(--e-global-color-secondary);
  font-weight: 500;
  letter-spacing: 4px;
  text-align: center;
  outline: none;
}

.chessr-filter-wrapper .chessr-year-input::-webkit-outer-spin-button,
.chessr-filter-wrapper .chessr-year-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.chessr-filter-wrapper .chessr-year-input[type=number] {
  appearance: textfield;
  -moz-appearance: textfield;
}

/* Slider pill container (rating/readability/usefulness) */
.chessr-filter-wrapper .chessr-rating-slider-container,
.chessr-filter-wrapper .chessr-readability-slider-container,
.chessr-filter-wrapper .chessr-usefulness-slider-container {
  height: 44px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  justify-content: center;
}

.chessr-filter-wrapper .chessr-rating-min-value,
.chessr-filter-wrapper .chessr-rating-max-value,
.chessr-filter-wrapper .chessr-readability-min-value,
.chessr-filter-wrapper .chessr-readability-max-value,
.chessr-filter-wrapper .chessr-usefulness-min-value,
.chessr-filter-wrapper .chessr-usefulness-max-value {
  color: white;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}

/* noUiSlider styling */
.chessr-filter-wrapper .chessr-nouislider {
  flex: 1;
  min-width: 120px;
  max-width: 220px;
  height: 4px;
  border: 0;
  box-shadow: none;
  background: rgba(217, 211, 201, .35);
  border-radius: 999px;
}

.chessr-filter-wrapper .chessr-nouislider .noUi-connect {
  background: var(--chessr-track);
}

.chessr-filter-wrapper .chessr-nouislider .noUi-handle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--chessr-track);
  background: transparent;
  box-shadow: none;
  right: -7px;
  /* centriranje handle-a */
  top: -5px;
}

.chessr-filter-wrapper .chessr-nouislider .noUi-handle:before,
.chessr-filter-wrapper .chessr-nouislider .noUi-handle:after {
  display: none;
}

/* Advanced toggle: tekst + linija kao na slici */
.chessr-filter-wrapper .chessr-filter-advanced-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 8px;
  cursor: pointer;
}

.chessr-filter-wrapper .chessr-filter-advanced-toggle span {
  color: var(--e-global-color-secondary);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: none;
  /* "Advanced Filters" */
  opacity: .95;
  white-space: nowrap;
}

.chessr-filter-wrapper .chessr-filter-advanced-toggle svg {
  width: 16px;
  height: 16px;
  opacity: .7;
}

.chessr-filter-advanced-toggle.active svg {
  transform: rotate(180deg);
}

/* Mobile */
@media (max-width: 860px) {
  .chessr-filter-sort-dropdown {
  position: absolute;
  top: -20px;
  right: 0px;
  z-index: 10;
  font-size: 6px !important;
}
  .chessr-filter-wrapper .chessr-filter-primary-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px;
    width: 100%;
    justify-items: stretch;
  }

  .chessr-filter-wrapper .chessr-filter-primary-row>*{
    width: 100%;
  }
  .chessr-year-input {
    width: 100% !important;
    max-width: 360px !important;
    padding: 0px !important;
  }

  .chessr-filter-wrapper .chessr-filter-primary-row .chessr-filter-taxonomy-select {
    grid-column: 1;
    grid-row: 1;
  }

  .chessr-filter-wrapper .chessr-filter-primary-row .chessr-filter-author {
    grid-column: 2;
    grid-row: 1;
  }

  .chessr-filter-wrapper .chessr-filter-primary-row .chessr-filter-terms-select {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .chessr-filter-wrapper .chessr-filter-primary-row .chessr-filter-rating {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .chessr-filter-wrapper .chessr-filter-advanced-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .chessr-filter-wrapper .chessr-filter-advanced-group:first-child,
  .chessr-filter-wrapper .chessr-filter-advanced-group:last-child {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .chessr-filter-wrapper .chessr-filter-advanced-group:last-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: stretch;
  }

  /* Year + operator are in the FIRST advanced group (swap sides: year left, operator right) */
  .chessr-filter-wrapper .chessr-filter-advanced-group:first-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: stretch;
  }

  .chessr-filter-wrapper .chessr-filter-advanced-group:first-child > * {
    grid-column: 1 / -1;
  }

  .chessr-filter-wrapper .chessr-filter-advanced-group:first-child .chessr-filter-year {
    grid-column: 1;
    grid-row: 2;
  }

  .chessr-filter-wrapper .chessr-filter-advanced-group:first-child .chessr-filter-year-operator-container {
    grid-column: 2;
    grid-row: 2;
  }

  .chessr-filter-wrapper .chessr-filter-advanced-group:first-child .chessr-filter-publisher {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .chessr-filter-wrapper .chessr-filter-advanced-group:first-child .select2-container,
  .chessr-filter-wrapper .chessr-filter-advanced-group:first-child .chessr-year-input {
    max-width: none !important;
    width: 100% !important;
  }

  .chessr-filter-wrapper .select2-container,
  .chessr-filter-wrapper .chessr-rating-slider-container,
  .chessr-filter-wrapper .chessr-readability-slider-container,
  .chessr-filter-wrapper .chessr-usefulness-slider-container {
    max-width: 360px;
  }

  .chessr-filter-wrapper .chessr-filter-primary-row .select2-container,
  .chessr-filter-wrapper .chessr-filter-primary-row .chessr-rating-slider-container {
    max-width: none;
  }

  /* Na mob/tablet: nema offseta, Select2 sam pozicionira dropdown
  .chessr-select2-dropdown.select2-dropdown,
  .chessr-select2-dropdown.chessr-select2-dropdown--year-op.select2-dropdown {

    transform: translateX(1%);
    width:100% !important ;
    max-width: 100% !important;
    min-width: 100% !important;
    
  } */


  /* Mobile typography: 12px everywhere except sort */
  .chessr-filter-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: 12px;    
  letter-spacing: 2.5px;
  }

  /* Mobile: shift Book Authors dropdown on X axis */
  .chessr-select2-dropdown.chessr-select2-dropdown--author.select2-dropdown {
    transform: translateX(-45%) translateY(-20%) !important;
  }

  .chessr-select2-dropdown .select2-results__option {
    font-size: 12px;    
  letter-spacing: 2.5px;
  }

  .chessr-select2-dropdown .select2-search--dropdown .select2-search__field {
    font-size: 12px;    
  letter-spacing: 2.5px;
  }

  /* Keep sort as-is */
  .chessr-filter-sort-dropdown .select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: 10px;    
  letter-spacing: 2px;
  }

  .chessr-select2-dropdown.chessr-select2-dropdown--sort .select2-results__option {
    font-size: 12px;    
  letter-spacing: 2.5px;
  }

  .chessr-select2-dropdown.chessr-select2-dropdown--sort.select2-dropdown {
    transform:  translateX(-45%) !important;
    max-width: 145px !important;
  }
  .chessr-select2-dropdown.chessr-select2-dropdown--year-op.select2-dropdown {
  transform:  translateX(-1%) !important;
  
    max-width: 170px !important;
}
}