:root {
  color-scheme: dark;
  --ink: #151814;
  --ink-soft: #20241f;
  --paper: #f2ecdf;
  --paper-muted: #c9c0ae;
  --brick: #a5322b;
  --brick-dark: #6e201c;
  --mustard: #d0a64b;
  --green: #456b59;
  --line: rgba(242, 236, 223, 0.18);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(208, 166, 75, 0.82);
  outline-offset: 3px;
}

.share-probe {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  padding: 8px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(17, 20, 17, 0.96);
}

.wordmark {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.wordmark-seal {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border: 1px solid #d6b15f;
  background: var(--brick-dark);
  color: #fff4d4;
  font-family: "SimSun", "Songti SC", serif;
  font-size: 22px;
  font-weight: 900;
}

.wordmark-copy {
  display: grid;
  line-height: 1.1;
}

.wordmark-copy strong {
  font-family: "SimSun", "Songti SC", serif;
  font-size: 18px;
}

.wordmark-copy small {
  margin-top: 4px;
  color: var(--paper-muted);
  font-size: 8px;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a,
.join-nav {
  min-height: 38px;
  padding: 8px 13px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--paper-muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--paper);
}

.join-nav {
  border: 1px solid rgba(208, 166, 75, 0.62);
  color: #f4dfac;
}

.site-nav a:hover,
.join-nav:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.feature {
  position: relative;
  height: min(660px, calc(100svh - 120px));
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
  background: #171a16;
}

.feature-media,
.feature-media img,
.feature-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.feature-media img {
  object-fit: cover;
  object-position: center 23%;
  transform: scale(1.01);
}

.feature-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(13, 16, 13, 0.98) 0%, rgba(13, 16, 13, 0.84) 34%, rgba(13, 16, 13, 0.18) 70%),
    linear-gradient(0deg, rgba(13, 16, 13, 0.82) 0%, transparent 42%);
}

.feature-content {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(680px, 92%);
  height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: 34px clamp(22px, 7vw, 112px) 58px;
}

.feature-eyebrow,
.section-heading p {
  margin: 0;
  color: #e2bd64;
  font-size: 11px;
  font-weight: 900;
}

.feature h1 {
  max-width: 100%;
  margin: 10px 0 14px;
  font-family: "SimSun", "Songti SC", serif;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.64);
}

.feature-logline {
  max-width: 590px;
  margin: 0;
  color: #e4ded2;
  font-size: 16px;
}

.feature-meta {
  display: flex;
  margin: 22px 0 0;
  padding: 0;
  color: #ddd4c3;
  font-size: 12px;
  font-weight: 700;
  list-style: none;
}

.feature-meta li + li::before {
  margin: 0 10px;
  color: var(--brick);
  content: "/";
}

.feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.action {
  display: inline-flex;
  min-width: 138px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.action-primary {
  background: var(--brick);
  color: #fff;
  box-shadow: 0 9px 24px rgba(92, 20, 16, 0.28);
}

.action-primary:hover {
  background: #bd3b32;
}

.action-secondary {
  border-color: rgba(242, 236, 223, 0.52);
  background: rgba(18, 21, 18, 0.56);
  color: var(--paper);
}

.action-secondary:hover {
  background: rgba(242, 236, 223, 0.12);
}

.action-arrow {
  font-size: 20px;
  line-height: 1;
}

.continue-note {
  margin: 14px 0 0;
  color: #d7caaa;
  font-size: 12px;
}

.feature-index {
  position: absolute;
  z-index: 2;
  right: clamp(18px, 4vw, 64px);
  bottom: 28px;
  display: grid;
  justify-items: end;
  color: rgba(242, 236, 223, 0.76);
}

.feature-index span {
  font-family: Georgia, serif;
  font-size: 28px;
}

.feature-index small {
  color: var(--paper-muted);
  font-size: 8px;
}

.library-band {
  border-top: 1px solid var(--line);
  background: #1d211c;
}

.library-inner {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 66px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 25px;
}

.section-heading h2 {
  margin: 3px 0 0;
  font-family: "SimSun", "Songti SC", serif;
  font-size: 30px;
  line-height: 1.2;
}

.filters {
  display: flex;
  gap: 3px;
  padding-bottom: 2px;
}

.filters button {
  min-width: 50px;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: var(--paper-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.filters button[aria-pressed="true"] {
  border-color: rgba(208, 166, 75, 0.64);
  background: rgba(208, 166, 75, 0.09);
  color: #f4ddaa;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 30px);
}

.theater-card {
  min-width: 0;
}

.card-entry {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card-cover {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(242, 236, 223, 0.12);
  border-radius: 5px;
  aspect-ratio: 1 / 1;
  background: #11130f;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease, opacity 200ms ease;
}

.card-entry[href]:hover .card-cover img {
  transform: scale(1.025);
}

.card-entry[aria-disabled="true"] .card-cover img {
  opacity: 0.58;
  filter: saturate(0.72);
}

.card-state {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 8px;
  border-radius: 2px;
  background: rgba(17, 20, 17, 0.88);
  color: #eee4cf;
  font-size: 10px;
  font-weight: 900;
}

.card-state.live {
  background: rgba(133, 38, 32, 0.94);
  color: #fff;
}

.card-number {
  position: absolute;
  right: 12px;
  bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-family: Georgia, serif;
  font-size: 24px;
  text-shadow: 0 2px 10px #000;
}

.card-body {
  padding: 13px 2px 0;
}

.card-kicker {
  margin: 0 0 3px;
  color: #caa95f;
  font-size: 10px;
  font-weight: 800;
}

.card-body h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: "SimSun", "Songti SC", serif;
  font-size: 21px;
  line-height: 1.3;
}

.card-description {
  min-height: 44px;
  margin: 7px 0 0;
  color: var(--paper-muted);
  font-size: 12px;
}

.card-meta {
  display: flex;
  gap: 8px;
  margin-top: 9px;
  color: #ddd2bf;
  font-size: 10px;
  font-weight: 700;
}

.card-meta span + span::before {
  margin-right: 8px;
  color: var(--green);
  content: "·";
}

.site-footer {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--line);
  background: #151814;
  color: var(--paper-muted);
  font-size: 12px;
}

.site-footer strong {
  color: var(--paper);
  font-family: "SimSun", "Songti SC", serif;
  font-size: 16px;
}

.join-dialog {
  width: min(410px, calc(100% - 30px));
  padding: 0;
  border: 1px solid rgba(231, 214, 177, 0.32);
  border-radius: 6px;
  background: #20241f;
  color: var(--paper);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.join-dialog::backdrop {
  background: rgba(8, 10, 8, 0.8);
}

.join-form {
  padding: 25px;
}

.join-form header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.join-form header span {
  color: #d4af5f;
  font-size: 9px;
  font-weight: 900;
}

.join-form h2 {
  margin: 2px 0 0;
  font-family: "SimSun", "Songti SC", serif;
  font-size: 25px;
}

.dialog-close {
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--paper-muted);
  cursor: pointer;
  font-size: 25px;
}

.join-form label {
  display: block;
  margin-bottom: 7px;
  color: var(--paper-muted);
  font-size: 12px;
  font-weight: 700;
}

.join-form input {
  width: 100%;
  height: 52px;
  padding: 10px 13px;
  border: 1px solid rgba(242, 236, 223, 0.3);
  border-radius: 4px;
  background: #151814;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
}

.join-form input::placeholder {
  color: #777d72;
  font-size: 14px;
  font-weight: 500;
}

.form-error {
  min-height: 21px;
  margin: 6px 0 8px;
  color: #e98c82;
  font-size: 11px;
}

.join-submit {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 4px;
  background: var(--brick);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.join-submit:hover {
  background: #bd3b32;
}

@media (max-width: 760px) {
  .site-header {
    min-height: 60px;
    padding: 7px 14px;
  }

  .wordmark-seal {
    width: 34px;
    height: 34px;
    font-size: 19px;
  }

  .wordmark-copy strong {
    font-size: 16px;
  }

  .site-nav a {
    display: none;
  }

  .join-nav {
    min-height: 36px;
    padding: 7px 10px;
  }

  .feature {
    height: calc(100svh - 118px);
    min-height: 510px;
    max-height: 650px;
  }

  .feature-media img {
    object-position: center 24%;
  }

  .feature-shade {
    background:
      linear-gradient(0deg, rgba(13, 16, 13, 0.96) 0%, rgba(13, 16, 13, 0.72) 48%, rgba(13, 16, 13, 0.06) 78%),
      linear-gradient(90deg, rgba(13, 16, 13, 0.5), transparent 75%);
  }

  .feature-content {
    width: 100%;
    justify-content: end;
    padding: 24px 18px 42px;
  }

  .feature h1 {
    margin-top: 7px;
    font-size: 45px;
  }

  .feature-logline {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .feature-meta {
    margin-top: 14px;
  }

  .feature-actions {
    margin-top: 20px;
  }

  .action {
    min-width: 0;
    flex: 1 1 0;
    padding-inline: 12px;
  }

  .feature-index {
    display: none;
  }

  .library-inner {
    width: calc(100% - 28px);
    padding: 40px 0 48px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    margin-bottom: 19px;
  }

  .filters {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

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

  .card-state {
    top: 8px;
    left: 8px;
  }

  .card-number {
    right: 8px;
    bottom: 5px;
    font-size: 19px;
  }

  .card-body h3 {
    font-size: 17px;
  }

  .card-description {
    display: -webkit-box;
    min-height: 38px;
    overflow: hidden;
    font-size: 11px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .card-meta {
    gap: 5px;
  }

  .card-meta span + span::before {
    margin-right: 5px;
  }
}

@media (max-width: 390px) {
  .wordmark-copy small {
    display: none;
  }

  .feature {
    min-height: 500px;
  }

  .feature h1 {
    font-size: 40px;
  }

  .feature-actions {
    gap: 7px;
  }

  .action {
    font-size: 13px;
  }

  .filters button {
    min-width: 47px;
    padding-inline: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card-cover img {
    transition: none;
  }
}
