/* Справочник «Сэмплы, драм-киты и плагины» — upsound-design v2.1 (Air-First) */

/* CLS-фикс: при включённом JS панель фильтров занимает место сразу до загрузки скрипта */
.js .smp-tools[hidden] {
  display: block;
}

.smp-list .smp-tools {
  position: static;
  margin-inline: 0;
  padding-inline: 0;
  background: transparent;
  border-top: 0;
  border-bottom: 0;
}

.smp-tools__in {
  padding-block: 8px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 28px;
  row-gap: 18px;
  align-items: end;
}

.smp-tools__in .dir-q {
  max-width: 560px;
}

.smp-tools__in .dir-q input {
  height: 44px;
  font-size: 16.5px;
  border-bottom-color: rgba(239, 232, 220, .14);
}

.smp-tools__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: end;
}

.smp-tools__meta .dir-count {
  grid-column: auto;
  margin: 0;
}

.smp-reset {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(239, 232, 220, .18);
  background: transparent;
  color: var(--ivory-2, #C9C0B2);
  font: 400 12.5px/1 var(--f-text, "Onest", sans-serif);
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, transform .18s ease;
}

.smp-reset:hover {
  border-color: var(--ivory, #EFE8DC);
  color: var(--ivory, #EFE8DC);
}

.smp-reset:active {
  transform: scale(.97);
}

.smp-filters {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding-top: 6px;
}

.smp-fgroup {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  column-gap: 18px;
  row-gap: 6px;
  align-items: baseline;
}

.smp-fgroup__k {
  color: var(--mute, #8E867A);
  padding-top: 6px;
}

.smp-cats {
  justify-content: flex-start;
  gap: 4px 18px;
}

.smp-cats .dir-cat {
  font-size: 13.8px;
  padding: 5px 0;
  color: var(--mute, #8E867A);
  transition: color .18s ease, transform .15s ease;
}

.smp-cats .dir-cat:hover {
  color: var(--ivory, #EFE8DC);
}

.smp-cats .dir-cat:active {
  transform: scale(.97);
}

.smp-cats .dir-cat[aria-pressed="true"] {
  color: var(--ivory, #EFE8DC);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.smp-list .svc-cols {
  margin-top: 28px;
  border-top: 1px solid rgba(239, 232, 220, .08);
  border-bottom: 0;
  padding-top: 18px;
}

/* Миниатюра официального скриншота в строке списка */
.smp-row .svc__t {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.smp-thumb {
  flex: none;
  display: block;
  width: 72px;
  height: 46px;
  border-radius: 8px;
  overflow: hidden;
  background: #141210;
  margin-top: 3px;
  border: 0 !important;
}

.smp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}

.smp-row:hover .smp-thumb img {
  transform: scale(1.06);
}

.smp-t__txt {
  min-width: 0;
}

.smp-badge--free {
  color: var(--ok, #7FD69B);
}

.smp-badge--freemium {
  color: var(--ivory-2, #C9C0B2);
}

.smp-badge--trial {
  color: #E2B86B;
}

.smp-badge--subscription {
  color: var(--mute, #8E867A);
}

/* Карточка записи: официальный скриншот UI и подпись источника */
.smp-shot {
  width: 100%;
  max-width: 760px;
  margin: 0;
  display: grid;
  gap: 10px;
}

.smp-shot img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
  background: #121010;
  border-radius: 14px;
  display: block;
}

.smp-shot figcaption {
  font: 400 12px/1.5 var(--f-mono, "IBM Plex Mono", monospace);
  color: var(--mute, #8E867A);
}

.smp-item-reads {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(239, 232, 220, .09);
  display: grid;
  gap: 12px;
}

.smp-item-reads ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}

.smp-item-reads li {
  font: 400 14.5px/1.45 var(--f-text, "Onest", sans-serif);
}

@media (max-width: 900px) {
  .smp-tools__in {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }
  .smp-tools__meta {
    justify-self: start;
  }
  .smp-fgroup {
    grid-template-columns: 1fr;
    row-gap: 4px;
  }
  .smp-fgroup__k {
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  .smp-thumb {
    width: 58px;
    height: 38px;
  }
  .smp-shot img {
    border-radius: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .smp-thumb img,
  .smp-cats .dir-cat,
  .smp-reset {
    transition: none !important;
  }
}
