[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.catalog-page {
  background: #080d14;
}

.catalog-shell {
  min-height: 100vh;
  overflow: visible;
}

.catalog-backdrop {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(5, 9, 15, 0.58), #080d14 620px),
    linear-gradient(90deg, rgba(4, 8, 14, 0.92), rgba(6, 10, 16, 0.42)),
    url("./assets/theater-lobby.png") 68% top / cover no-repeat;
  filter: saturate(0.76);
}

.catalog-main {
  width: min(100% - 80px, 1440px);
  margin: 0 auto;
  padding: 50px 0 100px;
}

.site-header + .catalog-main {
  padding-top: 144px;
}

.catalog-intro {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) minmax(360px, 520px);
  align-items: end;
  gap: clamp(22px, 3vw, 48px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.catalog-intro h1 {
  margin: 5px 0 0;
  font-family: var(--serif);
  font-size: clamp(42px, 4vw, 54px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.055em;
}

.catalog-intro-copy {
  margin: 0 0 5px;
  color: #bdb6ad;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.6;
}

.catalog-search {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 0 18px;
  border: 1px solid rgba(230, 205, 162, 0.3);
  background: rgba(8, 13, 20, 0.78);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
}

.catalog-search > span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 25px;
  transform: rotate(-18deg);
}

.catalog-search input {
  min-width: 0;
  height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.catalog-search input::placeholder {
  color: #777169;
}

.catalog-search button,
.catalog-reset,
.catalog-empty button {
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid rgba(226, 193, 134, 0.4);
  background: none;
  color: #c7b89f;
  cursor: pointer;
  font-size: 10px;
}

.catalog-browser {
  margin-top: 24px;
}

.filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
}

.filter-heading h2 strong {
  color: var(--gold-bright);
  font-size: 22px;
  font-weight: 400;
}

.filter-heading h2 span {
  margin: 0 5px;
  color: #716b64;
}

.filter-heading-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-filter-button {
  display: none;
}

.tag-filter {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tag-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tag-filter-button {
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 1px solid rgba(231, 210, 173, 0.14);
  border-radius: 999px;
  background: rgba(15, 20, 28, 0.64);
  color: #a59e95;
  cursor: pointer;
  font-size: 10px;
  overflow-wrap: normal;
  transition: 170ms ease;
  white-space: nowrap;
  word-break: keep-all;
}

.tag-filter-button:hover,
.tag-filter-button:focus-visible,
.tag-filter-button.active {
  border-color: rgba(232, 196, 132, 0.62);
  outline: 0;
  background: rgba(109, 62, 40, 0.5);
  color: #f2e2c8;
}

.catalog-reset {
  flex: 0 0 auto;
}

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

.work-card {
  min-width: 0;
  border: 1px solid rgba(231, 210, 173, 0.18);
  background: #0d141d;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  transition: 200ms ease;
}

.work-card:hover,
.work-card:focus-within {
  border-color: rgba(232, 196, 132, 0.62);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48), 0 0 28px rgba(203, 155, 82, 0.08);
  transform: translateY(-5px);
}

.work-card-button {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 100%;
  padding: 13px;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  flex-direction: column;
  isolation: isolate;
}

.work-card-button:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

.work-card-frame {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 12, 18, 0.16), rgba(8, 12, 18, 0.94) 72%),
    var(--card-frame-image) center / cover;
  filter: saturate(0.75);
}

.work-card-frame::after {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(236, 205, 149, 0.22);
  content: "";
  box-shadow: inset 0 0 0 3px rgba(6, 10, 15, 0.4);
}

.work-card-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3.65;
  overflow: hidden;
  border: 1px solid rgba(238, 210, 159, 0.35);
  background: #0d141d;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.55);
}

.work-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--cover-position, 50% 42%);
  transform: scale(var(--cover-scale, 1.04));
  transition: transform 500ms cubic-bezier(0.2, 0.65, 0.25, 1);
}

.work-card:hover .work-card-cover img {
  transform: scale(var(--cover-hover-scale, 1.075));
}

.work-card-status {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 8px;
  border: 1px solid rgba(239, 218, 182, 0.24);
  background: rgba(6, 10, 16, 0.78);
  color: #aaa39a;
  font-size: 8px;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
}

.work-card-status.available {
  border-color: rgba(231, 183, 103, 0.52);
  color: #f0d39a;
}

.work-card-copy {
  display: flex;
  min-height: 185px;
  padding: 20px 11px 10px;
  flex-direction: column;
}

.work-card-hall {
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.work-card-copy > strong {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
}

.work-card-summary {
  display: -webkit-box;
  margin-top: 9px;
  overflow: hidden;
  color: #aaa39a;
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.work-card-meta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  color: #8f8880;
  font-size: 9px;
}

.work-card-tags {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
}

.work-card-tags span,
.work-dialog-meta div span {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid rgba(231, 202, 151, 0.16);
  border-radius: 999px;
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: keep-all;
}

.catalog-loader {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 40px 0 14px;
  color: #817a72;
  font-size: 9px;
  letter-spacing: 0.05em;
}

.catalog-loader > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(216, 177, 107, 0.82);
  animation: lamp-pulse 2s infinite;
}

.catalog-loader p {
  margin: 0;
}

.catalog-loader button {
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid rgba(226, 193, 134, 0.34);
  background: none;
  color: #a99d8d;
  cursor: pointer;
  font-size: 9px;
}

.catalog-end {
  margin: 36px 0 0;
  color: #67625c;
  font-family: var(--serif);
  font-size: 11px;
  text-align: center;
}

.catalog-empty {
  padding: 82px 24px;
  border: 1px solid var(--line);
  background: rgba(8, 13, 20, 0.66);
  text-align: center;
}

.catalog-empty > span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 32px;
}

.catalog-empty h3 {
  margin: 14px 0 8px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
}

.catalog-empty p {
  margin: 0 0 16px;
  color: #8e8881;
  font-size: 11px;
}

.catalog-footer {
  position: relative;
}

.work-dialog {
  width: min(880px, calc(100% - 32px));
  max-width: none;
  overflow: hidden;
}

.work-dialog-frame {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(0, 1.14fr);
  gap: 34px;
  padding: 38px;
  background:
    linear-gradient(100deg, rgba(7, 11, 17, 0.32), rgba(7, 11, 17, 0.93) 54%),
    var(--dialog-frame-image) center / cover;
}

.work-dialog-cover {
  aspect-ratio: 4 / 5;
  padding: 8px;
  border: 1px solid rgba(235, 205, 151, 0.42);
  background: rgba(7, 11, 17, 0.62);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55), inset 0 0 0 3px rgba(227, 189, 120, 0.08);
}

.work-dialog-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--cover-position, 50% 42%);
  transform: scale(var(--cover-scale, 1.04));
}

.work-dialog-copy {
  display: flex;
  padding: 14px 6px 8px 0;
  flex-direction: column;
  justify-content: center;
}

.work-dialog-hall {
  margin: 8px 0 0;
  color: #b7aa97;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.work-dialog-copy h2 {
  margin: 10px 0 16px;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.24;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: keep-all;
}

.work-dialog-summary {
  margin: 0;
  color: #c2bbb2;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.85;
}

.work-dialog-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  color: #9d968e;
  font-size: 9px;
}

.work-dialog-meta div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.work-dialog-meta > span {
  flex: 0 0 auto;
  white-space: nowrap;
  word-break: keep-all;
}

.work-dialog-copy blockquote {
  margin: 22px 0 0;
  padding: 13px 0 13px 17px;
  border-left: 1px solid var(--gold);
  color: #d4c6b2;
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.7;
}

.work-dialog-action {
  margin-top: 22px;
}

.work-dialog-action:disabled {
  border-color: rgba(211, 201, 183, 0.18);
  background: rgba(48, 49, 51, 0.55);
  box-shadow: none;
  color: #77716a;
  cursor: default;
  transform: none;
}

@media (max-width: 980px) {
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .catalog-backdrop {
    background:
      linear-gradient(180deg, rgba(5, 9, 15, 0.42), #080d14 520px),
      linear-gradient(90deg, rgba(4, 8, 14, 0.84), rgba(6, 10, 16, 0.28)),
      url("./assets/theater-lobby.png") 73% top / auto 620px no-repeat;
  }

  .catalog-main {
    width: calc(100% - 32px);
    padding: 28px 0 70px;
  }

  .site-header + .catalog-main {
    padding-top: 104px;
  }

  .catalog-intro {
    display: block;
    padding-bottom: 14px;
  }

  .catalog-intro .section-kicker {
    display: none;
  }

  .catalog-intro h1 {
    margin: 0 0 14px;
    font-size: 36px;
  }

  .catalog-intro-copy {
    display: none;
  }

  .catalog-search {
    margin: 0;
    padding: 0 13px;
  }

  .catalog-search input {
    height: 48px;
    font-size: 12px;
  }

  .catalog-browser {
    margin-top: 22px;
  }

  .filter-heading {
    align-items: center;
  }

  .filter-heading h2 {
    font-size: 15px;
  }

  .filter-heading h2 strong {
    font-size: 19px;
  }

  .mobile-filter-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    background: rgba(11, 16, 23, 0.72);
    color: #c5b9a8;
    font-size: 10px;
  }

  .mobile-filter-button span:not(:empty) {
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border-radius: 50%;
    background: var(--wine);
    color: #fff0db;
    font-size: 8px;
  }

  .tag-filter {
    display: none;
    align-items: flex-start;
    flex-direction: column;
  }

  .tag-filter.open {
    display: flex;
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .work-card-cover {
    aspect-ratio: 4 / 3.8;
  }

  .work-card-copy {
    min-height: 102px;
    padding: 12px 4px 5px;
  }

  .work-card-button {
    padding: 7px;
  }

  .work-card-frame::after {
    inset: 4px;
  }

  .work-card:hover,
  .work-card:focus-within {
    transform: none;
  }

  .work-card-status {
    top: 7px;
    right: 7px;
    max-width: calc(100% - 14px);
    padding: 4px 5px;
    overflow: hidden;
    font-size: 6px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .work-card-hall {
    overflow: hidden;
    font-size: 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .work-card-copy > strong {
    display: -webkit-box;
    min-height: 38px;
    margin-top: 6px;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .work-card-summary {
    display: -webkit-box;
    min-height: 26px;
    margin-top: 6px;
    font-size: 8px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .work-card-meta {
    align-items: flex-end;
    gap: 5px;
    padding-top: 7px;
    font-size: 7px;
  }

  .work-card-tags {
    justify-content: flex-end;
  }

  .work-card-tags span {
    padding: 3px 5px;
    font-size: 6px;
  }

  .work-card-tags span:nth-child(n + 3) {
    display: none;
  }

  .work-dialog {
    width: 100%;
    max-height: 92vh;
    margin: auto 0 0;
    overflow-y: auto;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
  }

  .work-dialog-frame {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 48px 24px 28px;
    background:
      linear-gradient(180deg, rgba(7, 11, 17, 0.3), rgba(7, 11, 17, 0.97) 48%),
      var(--dialog-frame-image) center top / auto 55% no-repeat;
  }

  .work-dialog-cover {
    width: min(70vw, 280px);
    margin: 0 auto;
  }

  .work-dialog-copy {
    padding: 0;
  }

  .work-dialog-copy h2 {
    font-size: clamp(26px, 8vw, 32px);
    line-height: 1.28;
  }

  .work-dialog-meta {
    align-items: flex-start;
    gap: 8px 10px;
  }

  .work-dialog-meta div {
    gap: 6px;
  }

  .work-dialog-action {
    width: 100%;
  }
}
