.videoCatalogPage {
  width: min(100% - 18px, 1250px);
  margin: 0 auto 34px;
  color: #ededf0;
}

.videoCatalogHero {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 15px 22px;
  border-top: 3px solid #cf2f89;
  background: linear-gradient(120deg, #2e2e31 0%, #242426 68%, #2d2028 100%);
}

.videoCatalogHero h1 {
  flex: 0 0 auto;
  margin: 0;
  color: #fff;
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  line-height: 1.05;
}

.videoCatalogSections {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px;
}

.videoCatalogSections a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #47474b;
  background: rgba(15, 15, 17, 0.28);
  color: #c7c7cc;
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.videoCatalogSections a i {
  color: #d54296;
}

.videoCatalogSections a:hover {
  border-color: #9f2e70;
  background: rgba(207, 47, 137, 0.1);
  color: #f0d2e3;
}

.videoCatalogToolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin: 8px 0 12px;
  padding: 10px;
  border: 1px solid #3c3c40;
  background: #252527;
}

.videoCatalogFilters {
  display: grid;
  grid-template-columns: minmax(175px, 1fr) minmax(175px, 1fr) auto auto;
  gap: 7px;
  min-width: 0;
}

.videoCatalogSelect {
  position: relative;
  min-width: 0;
}

.videoCatalogSelect > i {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 10px;
  color: #c83c8d;
  font-size: 0.72rem;
  pointer-events: none;
  transform: translateY(-50%);
}

.videoCatalogSelect select {
  width: 100%;
  height: 36px;
  padding: 0 28px 0 29px;
  border: 1px solid #46464a;
  border-radius: 0;
  outline: 0;
  background: #303033;
  color: #e8e8ea;
  font: inherit;
  font-size: 0.76rem;
}

.videoCatalogSelect select:focus {
  border-color: #cf2f89;
  box-shadow: 0 0 0 2px rgba(207, 47, 137, 0.14);
}

.videoCatalogMultiSelect {
  position: relative;
}

.videoCatalogMultiSelect__trigger {
  display: flex;
  width: 100%;
  height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 11px 0 29px;
  border: 1px solid #46464a;
  background: #303033;
  color: #e8e8ea;
  font: inherit;
  font-size: 0.76rem;
  text-align: left;
  cursor: pointer;
}

.videoCatalogMultiSelect__trigger:focus {
  outline: 0;
  border-color: #cf2f89;
  box-shadow: 0 0 0 2px rgba(207, 47, 137, 0.14);
}

.videoCatalogMultiSelect__trigger > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.videoCatalogMultiSelect__menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  display: none;
  max-height: 260px;
  overflow: auto;
  padding: 7px 0;
  border: 1px solid #46464a;
  background: #303033;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.videoCatalogMultiSelect.is-open .videoCatalogMultiSelect__menu {
  display: block;
}

.videoCatalogMultiSelect__option {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  color: #e8e8ea;
  font-size: 0.74rem;
  line-height: 1.2;
  cursor: pointer;
}

.videoCatalogMultiSelect__option:hover {
  background: rgba(207, 47, 137, 0.1);
}

.videoCatalogMultiSelect__option input {
  margin: 0;
  width: 14px;
  height: 14px;
  accent-color: #cf2f89;
  cursor: pointer;
}

.videoCatalogMultiSelect__option span {
  display: block;
  min-width: 0;
}

.videoCatalogMultiSelect__option input,
.videoCatalogMultiSelect__option span {
  pointer-events: none;
}

.videoCatalogFilters__submit,
.videoCatalogFilters__clear {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 13px;
  border: 0;
  border-radius: 0;
  font-size: 0.73rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.videoCatalogFilters__submit {
  background: #cf2f89;
  color: #fff;
}

.videoCatalogFilters__submit:hover {
  background: #dc4197;
}

.videoCatalogFilters__clear {
  border: 1px solid #48484c;
  background: #303033;
  color: #bcbcc1;
}

.videoCatalogSort {
  display: flex;
  align-items: center;
  gap: 4px;
}

.videoCatalogSort > span {
  margin-right: 3px;
  color: #8f8f95;
  font-size: 0.67rem;
  text-transform: uppercase;
}

.videoCatalogSort a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid transparent;
  color: #bdbdc2;
  font-size: 0.71rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.videoCatalogSort a:hover,
.videoCatalogSort a.is-active {
  border-color: rgba(207, 47, 137, 0.34);
  background: rgba(207, 47, 137, 0.13);
  color: #f0c5dd;
}

.videoCatalogSortSelect {
  display: none;
}

.videoCatalogSelected {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: -4px 0 12px;
}

.videoCatalogSelected > span {
  display: inline-flex;
  align-items: center;
  color: #88888e;
  font-size: 0.66rem;
  text-transform: uppercase;
}

.videoCatalogSelected a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  border: 1px solid rgba(207, 47, 137, 0.26);
  background: rgba(207, 47, 137, 0.1);
  color: #e1b6cf;
  font-size: 0.68rem;
  text-decoration: none;
}

.videoCatalogGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.videoCatalogCard {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #39393d;
  background: #28282b;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.videoCatalogCard:hover {
  border-color: #654257;
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.videoCatalogCard__media {
  position: relative;
  overflow: hidden;
  background: #111;
}

.videoCatalogCard__poster,
.videoCatalogCard__poster picture,
.videoCatalogCard__poster img,
.videoCatalogCard__poster video {
  position: static;
  display: block;
  width: 100%;
  height: auto;
}

.videoCatalogCard__poster img,
.videoCatalogCard__poster video {
  object-fit: initial;
  background: transparent;
}

.videoCatalogCard__poster video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.videoCatalogCard__poster img {
  transition: opacity 0.16s ease, transform 0.35s ease, filter 0.35s ease;
}

.videoCatalogCard:hover .videoCatalogCard__poster img {
  transform: scale(1.025);
  filter: contrast(1.04);
}

.videoCatalogCard__poster video {
  z-index: 2;
  opacity: 0;
  background: #111;
}

.videoCatalogCard__badges {
  position: absolute;
  z-index: 4;
  top: 8px;
  right: 8px;
  left: 8px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.videoCatalogCard__quality,
.videoCatalogCard__date {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(18, 18, 20, 0.84);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(5px);
  font-size: 0.66rem;
  font-weight: 800;
}

.videoCatalogCard__quality {
  border-color: rgba(235, 180, 72, 0.48);
  background: linear-gradient(135deg, rgba(72, 48, 14, 0.94), rgba(38, 29, 18, 0.92));
  color: #f2c765;
  letter-spacing: 0.03em;
}

.videoCatalogCard__quality i {
  color: #e3479e;
}

.videoCatalogCard__date {
  margin-left: auto;
  color: #e2e2e5;
}

.videoCatalogCard__date i {
  color: #d14694;
}

.videoCatalogCard__preview {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: rgba(12, 12, 14, 0.72);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -43%);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.videoCatalogCard__media:hover .videoCatalogCard__preview {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.videoCatalogCard__media.is-previewing .videoCatalogCard__preview {
  opacity: 0;
}

.videoCatalogCard__actors {
  position: absolute;
  z-index: 5;
  right: 7px;
  bottom: 7px;
  display: flex;
  max-width: calc(100% - 14px);
  align-items: flex-start;
  justify-content: flex-end;
  gap: 6px;
  padding: 6px 8px;
  background: rgba(15, 15, 17, 0.82);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  color: #d5d5d9;
  font-size: 0.66rem;
  line-height: 1.25;
  text-align: right;
  backdrop-filter: blur(5px);
}

.videoCatalogCard__actors > i {
  flex: 0 0 auto;
  margin-top: 1px;
  color: #d54296;
}

.videoCatalogCard__actors > span {
  min-width: 0;
}

.videoCatalogCard__actors a {
  color: #f0f0f2;
  font-weight: 700;
  text-decoration: none;
}

.videoCatalogCard__actors a:hover {
  color: #ef86bf;
}

.videoCatalogCard__actor-separator {
  color: #77777c;
}

.videoCatalogCard__body {
  min-height: 30px;
  padding: 5px 10px 1px;
}

.videoCatalogCard__body h2 {
  margin: 0;
  overflow: hidden;
  font-size: 0.92rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.videoCatalogCard__body h2 a {
  display: block;
  overflow: hidden;
  color: #f0f0f2;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.videoCatalogCard__body p {
  margin: 6px 0 0;
  overflow: hidden;
  color: #898990;
  font-size: 0.66rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.videoCatalogCard__body p i {
  margin-right: 4px;
  color: #a53374;
}

.videoCatalogEmpty {
  padding: 58px 20px;
  border: 1px dashed #48484d;
  background: #252527;
  color: #aaaab0;
  text-align: center;
}

.videoCatalogPage .pagination {
  margin-top: 18px;
}

@media only screen and (max-width: 1040px) {
  .videoCatalogToolbar {
    grid-template-columns: 1fr;
  }

  .videoCatalogSort {
    justify-content: flex-end;
  }
}

@media only screen and (max-width: 820px) {
  .videoCatalogGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .videoCatalogFilters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media only screen and (max-width: 620px) {
  .videoCatalogPage {
    width: 100%;
    margin-bottom: 22px;
  }

  .videoCatalogHero {
    display: block;
    padding: 11px 10px 10px;
  }

  .videoCatalogHero h1 {
    font-size: 1.55rem;
  }

  .videoCatalogSections {
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 4px;
    margin-top: 8px;
    padding-bottom: 2px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .videoCatalogSections a {
    flex: 0 0 auto;
    min-height: 29px;
    padding: 0 8px;
    font-size: 0.65rem;
  }

  .videoCatalogToolbar {
    margin: 5px 0 8px;
    padding: 7px;
    border-right: 0;
    border-left: 0;
  }

  .videoCatalogFilters {
    grid-template-columns: 1fr 1fr;
  }

  .videoCatalogSort {
    display: none;
  }

  .videoCatalogSortSelect {
    display: block;
  }

  .videoCatalogSelected {
    margin-right: 7px;
    margin-left: 7px;
  }

  .videoCatalogGrid {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .videoCatalogCard {
    border-right: 0;
    border-left: 0;
  }

  .videoCatalogCard:hover {
    transform: none;
  }

  .videoCatalogCard__body {
    min-height: 54px;
    padding: 8px 9px 9px;
  }
}

@media only screen and (max-width: 390px) {
  .videoCatalogFilters {
    grid-template-columns: 1fr;
  }

  .videoCatalogFilters__submit,
  .videoCatalogFilters__clear {
    min-height: 34px;
  }

  .videoCatalogCard__actors {
    font-size: 0.62rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .videoCatalogCard,
  .videoCatalogCard__poster img,
  .videoCatalogCard__preview {
    transition: none;
  }
}
