.actors-page {
  background: var(--paper);
  color: var(--black);
}

.actors-page .site-header {
  color: var(--black);
}

.actors-catalog {
  min-height: 100vh;
  padding: calc(var(--header-height) + clamp(38px, 4vw, 68px)) var(--page-pad)
    clamp(76px, 8vw, 120px);
}

.actors-catalog-heading {
  display: grid;
  grid-template-columns: minmax(150px, 0.25fr) minmax(0, 0.75fr);
  gap: 40px;
  align-items: end;
}

.actors-catalog-heading h1 {
  margin: 0;
  font-size: clamp(64px, 9vw, 150px);
  font-weight: 500;
  line-height: 0.72;
  letter-spacing: -0.085em;
  text-transform: uppercase;
}

.actors-search {
  position: sticky;
  z-index: 30;
  top: var(--header-height);
  display: grid;
  grid-template-columns: minmax(285px, 0.65fr) minmax(220px, 0.35fr) auto;
  gap: 24px;
  align-items: center;
  margin: clamp(42px, 5vw, 72px) calc(var(--page-pad) * -1) 0;
  padding: 13px var(--page-pad);
  border-top: 1px solid rgba(11, 11, 10, 0.28);
  border-bottom: 1px solid rgba(11, 11, 10, 0.28);
  background: rgba(242, 239, 232, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.actors-search p {
  margin: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.actors-filters {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.actors-filters::-webkit-scrollbar {
  display: none;
}

.actors-filters button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 14px;
  border: 1px solid rgba(11, 11, 10, 0.42);
  border-radius: 100px;
  background: transparent;
  color: var(--black);
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease;
}

.actors-filters button:hover,
.actors-filters button.is-active {
  background: var(--black);
  color: var(--paper);
}

.actors-search p {
  opacity: 0.55;
  white-space: nowrap;
}

.actors-search input {
  width: 100%;
  padding: 5px 0 7px;
  border: 0;
  border-bottom: 1px solid rgba(11, 11, 10, 0.55);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--black);
  font: inherit;
  font-size: clamp(14px, 1.1vw, 18px);
}

.actors-search input::placeholder {
  color: var(--black);
  opacity: 0.42;
}

.actors-search input:focus {
  border-bottom-color: var(--record);
}

.actors-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: clamp(34px, 3.5vw, 54px) 8px;
  margin-top: clamp(30px, 3.5vw, 48px);
}

.actors-catalog-card {
  min-width: 0;
}

.actors-catalog-link {
  display: block;
}

.actors-catalog-link:focus-visible {
  outline: 2px solid var(--record);
  outline-offset: 3px;
}

.actors-catalog-link .actors-catalog-portrait {
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.actors-catalog-link:hover .actors-catalog-portrait {
  transform: translateY(-3px);
}

.actors-catalog-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(215, 70, 56, 0.12) 35px),
    linear-gradient(145deg, var(--black), #4c4944);
}

.actors-catalog-card:nth-child(3n + 2) .actors-catalog-portrait {
  background:
    linear-gradient(135deg, transparent 0 49.5%, rgba(215, 70, 56, 0.7) 50% 50.8%, transparent 51.2%),
    linear-gradient(155deg, var(--fog), var(--graphite));
}

.actors-catalog-card:nth-child(3n) .actors-catalog-portrait {
  background:
    radial-gradient(circle at 50% 45%, transparent 0 27%, rgba(242, 239, 232, 0.22) 27.4% 28%, transparent 28.4%),
    linear-gradient(155deg, #65615b, var(--black));
}

.actors-catalog-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(11, 11, 10, 0.16);
  pointer-events: none;
}

.actors-catalog-portrait::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 40% 0 0;
  background: linear-gradient(180deg, transparent, rgba(11, 11, 10, 0.82));
  pointer-events: none;
}

.actors-catalog-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.actors-catalog-portrait > span {
  position: absolute;
  right: 12px;
  bottom: -0.08em;
  color: rgba(242, 239, 232, 0.38);
  font-size: clamp(88px, 9vw, 150px);
  font-weight: 500;
  line-height: 0.8;
  letter-spacing: -0.09em;
}

.actors-catalog-portrait h2 {
  position: absolute;
  z-index: 2;
  right: 13px;
  bottom: 13px;
  left: 13px;
  margin: 0;
  color: var(--paper);
  font-size: clamp(20px, 1.65vw, 28px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.actors-demo {
  display: grid;
  grid-template-columns: 22px minmax(30px, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 39px;
  margin-top: 7px;
  padding: 0 9px;
  border: 1px solid rgba(11, 11, 10, 0.38);
  border-radius: 0;
  background: transparent;
  color: var(--black);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.actors-demo:hover:not(:disabled) {
  border-color: var(--black);
  background: rgba(11, 11, 10, 0.05);
}

.actors-demo:disabled {
  cursor: default;
  opacity: 0.36;
}

.actors-demo-play {
  position: relative;
  display: block;
  width: 22px;
  height: 25px;
}

.actors-demo-play::before {
  content: "";
  position: absolute;
  inset: 1px 0 1px 3px;
  background: var(--black);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.actors-demo-play::after {
  content: "";
  position: absolute;
  inset: 1px auto 1px 0;
  width: 2px;
  background: var(--black);
}

.actors-demo-play.is-playing::before {
  inset: 3px auto 3px 5px;
  width: 5px;
  clip-path: none;
}

.actors-demo-play.is-playing::after {
  inset: 3px 5px 3px auto;
  width: 5px;
}

.actors-demo-time {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.actors-demo-line {
  position: relative;
  height: 20px;
  overflow: hidden;
}

.actors-demo-line::before,
.actors-demo-line i {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 4px);
  clip-path: polygon(
    0 44%, 4% 25%, 8% 67%, 12% 38%, 16% 58%, 20% 18%, 24% 74%, 28% 32%,
    32% 63%, 36% 41%, 40% 54%, 44% 22%, 48% 78%, 52% 35%, 56% 61%, 60% 27%,
    64% 72%, 68% 40%, 72% 57%, 76% 20%, 80% 69%, 84% 34%, 88% 64%, 92% 29%,
    96% 59%, 100% 43%, 100% 57%, 96% 41%, 92% 71%, 88% 36%, 84% 66%, 80% 31%,
    76% 80%, 72% 43%, 68% 60%, 64% 28%, 60% 73%, 56% 39%, 52% 65%, 48% 22%,
    44% 78%, 40% 46%, 36% 59%, 32% 37%, 28% 68%, 24% 26%, 20% 82%, 16% 42%,
    12% 62%, 8% 33%, 4% 75%, 0 56%
  );
}

.actors-demo-line::before {
  content: "";
  color: rgba(11, 11, 10, 0.38);
}

.actors-demo-line i {
  inset: 0 auto 0 0;
  width: 0;
  color: var(--record);
}

.actors-demo-time {
  min-width: 29px;
  opacity: 0.55;
  letter-spacing: 0.04em;
}

.actors-catalog-empty {
  margin: 70px 0 0;
  font-size: clamp(25px, 4vw, 58px);
  letter-spacing: -0.045em;
}

.actors-catalog-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: end;
  padding: 24px var(--page-pad) 28px;
  border-top: 1px solid rgba(11, 11, 10, 0.32);
  background: var(--paper);
  font-size: 10px;
}

.actors-catalog-footer img {
  display: block;
  width: 88px;
}

.actors-catalog-footer a:hover {
  color: var(--record);
}

@media (max-width: 900px) {
  .actors-catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 620px) {
  .actors-catalog-heading {
    display: block;
  }

  .actors-catalog-heading .section-label {
    margin-bottom: 38px;
  }

  .actors-catalog-heading h1 {
    font-size: clamp(58px, 22vw, 102px);
  }

  .actors-search {
    position: relative;
    top: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px 16px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .actors-filters {
    grid-column: 1 / -1;
  }

  .actors-search input {
    min-width: 0;
    font-size: 14px;
  }

  .actors-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 7px;
  }

  .actors-catalog-portrait h2 {
    font-size: 18px;
  }

  .actors-demo {
    grid-template-columns: 22px minmax(25px, 1fr) auto;
  }

  .actors-catalog-footer {
    grid-template-columns: 1fr auto;
  }

  .actors-catalog-footer > a:nth-child(2) {
    display: none;
  }
}
