body.filter-page {
  min-height: 100vh;
  color: #f3efe8;
  background: var(--page-bg);
}

body.filter-page .grid-noise {
  display: none;
}

body.filter-page .drawer-close,
body.filter-page .detail-drawer,
body.filter-page .drawer-section,
body.filter-page .drawer-hero,
body.filter-page .drawer-list__item,
body.filter-page .drawer-chip {
  color: inherit;
}

body.filter-page .filter-reference {
  position: relative;
  z-index: 1;
  padding: 18px 0 56px;
}

body.filter-page .filter-reference__container {
  position: relative;
  z-index: 1;
}

body.filter-page .filter-reference__shell {
  display: grid;
  gap: 22px;
}

body.filter-page .filter-reference__head {
  display: flex;
  align-items: center;
  min-height: 38px;
}

body.filter-page .filter-scene-tabs {
  display: flex;
  align-items: center;
  gap: 30px;
}

body.filter-page .tab-btn {
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: rgba(243, 239, 232, 0.54);
  font-family: var(--font-ui);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  transition: color 180ms ease, opacity 180ms ease;
}

body.filter-page .tab-btn:hover {
  color: rgba(243, 239, 232, 0.84);
}

body.filter-page .tab-btn.is-active {
  color: #f7f2ea;
}

body.filter-page .filter-groups {
  display: grid;
  gap: 22px;
  margin-top: 2px;
}

body.filter-page .filter-group-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

body.filter-page .filter-group-card__head {
  padding-top: 2px;
}

body.filter-page .filter-group-card__head h3 {
  margin: 0;
  color: rgba(214, 208, 199, 0.74);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.55;
}

body.filter-page .filter-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

body.filter-page .filter-chip {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: rgba(213, 207, 198, 0.64);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.55;
  transition: color 180ms ease;
}

body.filter-page .filter-chip strong {
  display: none;
}

body.filter-page .filter-chip:hover {
  color: rgba(243, 239, 232, 0.88);
}

body.filter-page .filter-chip.is-active {
  color: #d88a1d;
  font-weight: 700;
}

body.filter-page .filter-more {
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #d88a1d;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.55;
  white-space: nowrap;
  transition: color 180ms ease;
}

body.filter-page .filter-more:hover {
  color: #f0b45f;
}

body.filter-page .filter-more.is-expanded {
  color: rgba(243, 239, 232, 0.82);
}

body.filter-page .filter-results-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-top: 2px;
}

body.filter-page .filter-results-meta__main,
body.filter-page .filter-results-meta__side {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

body.filter-page .filter-results-meta__main strong {
  color: #f6f1e8;
  font-family: var(--font-ui);
  font-size: 1.06rem;
  font-weight: 800;
}

body.filter-page .filter-results-meta span {
  color: rgba(213, 207, 198, 0.48);
  font-size: 0.76rem;
}

body.filter-page .filter-results-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px 18px;
  align-items: start;
}

body.filter-page .filter-result-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: left;
}

body.filter-page .filter-result-card__poster {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 0.72;
  border-radius: 10px 10px 0 0;
  backface-visibility: hidden;
  transform: translateZ(0);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(8, 11, 16, 0.22)),
    linear-gradient(145deg, var(--poster-start), var(--poster-end));
}

body.filter-page .filter-result-card__poster img {
  position: absolute;
  inset: -1px;
  z-index: 0;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  object-fit: cover;
  clip-path: inset(0 round 10px 10px 0 0);
  backface-visibility: hidden;
  transform: translateZ(0) scale(1.01);
}

body.filter-page .filter-result-card__poster::after {
  display: none;
}

body.filter-page .filter-result-card__poster::before {
  display: none;
}

body.filter-page .filter-result-card__episodes {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  color: #fbf8f3;
  font-size: 0.72rem;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.42);
}

body.filter-page .filter-result-card__metric {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 0;
  max-width: calc(100% - 18px);
  padding: 8px 12px 9px 14px;
  border-radius: 0 10px 0 8px;
  background: linear-gradient(135deg, rgba(17, 30, 48, 0.96), rgba(47, 82, 102, 0.9));
  color: #fffaf4;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: none;
  background-clip: padding-box;
}

body.filter-page .filter-result-card__rating {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 0;
  max-width: calc(100% - 18px);
  padding: 8px 14px 9px 12px;
  border-radius: 10px 0 8px 0;
  background: linear-gradient(135deg, rgba(17, 30, 48, 0.96), rgba(47, 82, 102, 0.9));
  color: #fffaf4;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: none;
  background-clip: padding-box;
}

body.filter-page .filter-result-card__body {
  padding-top: 12px;
}

body.filter-page .filter-result-card__title {
  margin: 0 0 6px;
  color: #f4f0e9;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

body.filter-page .filter-result-card__chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 12px;
  overflow: hidden;
}

body.filter-page .filter-result-card__chips:empty {
  display: none;
}

body.filter-page .filter-result-card__chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(213, 207, 198, 0.72);
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
}

body.filter-page .filter-result-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  min-width: 0;
  color: rgba(213, 207, 198, 0.72);
  font-size: 0.72rem;
  line-height: 1.5;
}

body.filter-page .filter-result-card__actors {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.filter-page .filter-result-card__score {
  flex: none;
  color: #f0b45f;
  font-weight: 700;
  white-space: nowrap;
}

body.filter-page .empty-state {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 220px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(213, 207, 198, 0.62);
  font-size: 0.9rem;
}

body.filter-page .ranking-pagination {
  justify-content: center;
  margin-top: 14px;
}

body.filter-page .ranking-pagination__controls {
  gap: 6px;
}

body.filter-page .ranking-pagination__btn,
body.filter-page .ranking-pagination__ellipsis {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(243, 239, 232, 0.64);
  font-size: 0.78rem;
}

body.filter-page .ranking-pagination__btn.is-active {
  background: #d88a1d;
  color: #1a1208;
  box-shadow: none;
}

body.filter-page .ranking-pagination__btn:disabled {
  opacity: 0.32;
}

@media (max-width: 1180px) {
  body.filter-page .filter-results-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  body.filter-page .filter-results-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.filter-page .filter-reference {
    padding-top: 18px;
  }

  body.filter-page .tab-btn {
    font-size: 1.6rem;
  }

  body.filter-page .filter-group-card {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  body.filter-page .filter-results-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  body.filter-page .filter-results-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 14px;
  }
}

@media (max-width: 560px) {
  body.filter-page .filter-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  body.filter-page .filter-results-grid {
    grid-template-columns: 1fr;
  }
}

body.filter-page .filter-card__poster-episode {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(12, 15, 18, 0.76);
  color: #f5efe7;
  font-size: 0.64rem;
  font-weight: 700;
}

body.filter-page .ranking-card--catalog .ranking-card__body {
  gap: 7px;
  padding: 10px 2px 0;
}

body.filter-page .ranking-card--catalog .ranking-card__title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.92rem;
  line-height: 1.42;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.filter-page .filter-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body.filter-page .filter-card__tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(239, 232, 222, 0.74);
  font-size: 0.64rem;
  font-weight: 700;
}

body.filter-page .filter-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  color: rgba(239, 232, 222, 0.54);
  font-size: 0.7rem;
}

body.filter-page .filter-card__meta-text,
body.filter-page .ranking-card--catalog .ranking-card__actors-text {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.filter-page .filter-card__score {
  flex: none;
  color: #e6a15d;
  font-weight: 700;
}
