:root {
  color-scheme: dark;
  --bg: #090909;
  --panel: #151515;
  --panel2: #202020;
  --text: #f4efe6;
  --muted: #a9a096;
  --line: #333;
  --gold: #d6a84e;
  --red: #b62924;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at 70% 0, #2d1f18 0, #090909 34%, #050505 100%);
  color: var(--text);
  font-family: "Microsoft YaHei", Inter, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-nav {
  position: fixed;
  inset: 0 auto 0 0;
  width: 246px;
  background: #101010;
  border-right: 1px solid var(--line);
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.logo b {
  display: block;
  font-size: 21px;
  line-height: 1.25;
}

.logo span {
  display: block;
  color: var(--gold);
  font-size: 12px;
  margin-top: 6px;
}

.side-nav nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-nav nav a {
  padding: 12px 14px;
  border-radius: 6px;
  color: var(--muted);
}

.side-nav nav a.active,
.side-nav nav a:hover {
  background: var(--gold);
  color: #15100a;
}

.cinema-shell {
  margin-left: 246px;
  min-height: 100vh;
  padding: 28px clamp(18px, 4vw, 56px);
}

.theater {
  min-height: 460px;
  border: 1px solid var(--line);
  background: linear-gradient(100deg, rgba(0, 0, 0, .92), rgba(0, 0, 0, .45)), #151515;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: end;
  padding: 42px;
  position: relative;
  overflow: hidden;
}

.theater:before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 40px, #111 40px 80px);
}

.theater h1 {
  font-size: clamp(42px, 7vw, 92px);
  line-height: .95;
  margin: 8px 0 12px;
  max-width: 850px;
}

.theater p:first-child {
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 900;
}

.theater div p:last-of-type,
.vault-head p,
.detail-info > p {
  color: var(--muted);
  line-height: 1.9;
}

.theater a,
.primary {
  display: inline-flex;
  margin-top: 18px;
  background: var(--red);
  color: #fff;
  padding: 13px 18px;
  border-radius: 4px;
}

.theater figure {
  aspect-ratio: 2 / 3;
  margin: 0;
  box-shadow: 0 26px 70px #000;
  border: 1px solid #444;
}

.marquee {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  margin: 18px 0 28px;
}

.marquee a {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111;
}

.marquee span {
  position: absolute;
  inset: auto 0 0;
  padding: 28px 8px 8px;
  background: linear-gradient(transparent, #000);
  font-size: 12px;
}

.cinema-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
}

.screen-list,
.score-wall,
.section,
.vault-head,
.filter-ribbon,
.watch-panel {
  background: rgba(21, 21, 21, .86);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.block-head span {
  font-size: 22px;
  font-weight: 900;
  color: var(--gold);
}

#screenCards,
.vault-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 16px;
}

.movie-card {
  background: var(--panel2);
  border: 1px solid #2c2c2c;
  border-radius: 7px;
  overflow: hidden;
}

.movie-card figure {
  position: relative;
  margin: 0;
  aspect-ratio: 2 / 3;
}

.movie-card figcaption {
  position: absolute;
  right: 8px;
  top: 8px;
  background: #000;
  color: var(--gold);
  padding: 5px 8px;
  border: 1px solid #5a4422;
}

.movie-card div {
  padding: 12px;
}

.movie-card b {
  display: block;
}

.movie-card span,
.movie-card p {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin: 6px 0 0;
}

.line-item {
  display: grid;
  grid-template-columns: 42px 1fr 46px;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.line-item i {
  font-style: normal;
  color: var(--gold);
  font-weight: 900;
}

.line-item small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.fresh-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  padding: 16px;
}

.vault-head {
  padding: 26px;
  margin-bottom: 16px;
}

.vault-head h1 {
  font-size: 48px;
  margin: 0 0 8px;
}

.filter-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.filter-ribbon #filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-ribbon button,
.filter-ribbon select,
.episode-box button {
  border: 1px solid #404040;
  background: #111;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 4px;
}

.filter-ribbon button.active {
  background: var(--gold);
  color: #15100a;
}

.watch-panel {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 32px;
  padding: 28px;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  margin: 0;
}

.detail-info h1 {
  font-size: 64px;
  line-height: 1;
  margin: 8px 0;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.facts b {
  background: #0c0c0c;
  border: 1px solid #3b3b3b;
  padding: 10px 12px;
  color: var(--gold);
}

.episode-box {
  margin: 20px 0;
  padding: 16px;
  background: #0f0f0f;
  border: 1px solid var(--line);
}

.episode-box div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.cinema-footer {
  margin-left: 246px;
  padding: 28px clamp(18px, 4vw, 56px) 34px;
  border-top: 1px solid var(--line);
  background: #0b0b0b;
  color: var(--muted);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .8fr) auto;
  gap: 22px;
  align-items: start;
}

.cinema-footer strong {
  display: block;
  color: var(--text);
  font-size: 20px;
  margin-bottom: 8px;
}

.cinema-footer p {
  margin: 0;
  line-height: 1.75;
}

.cinema-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cinema-footer nav a {
  border: 1px solid #333;
  background: #121212;
  color: var(--text);
  padding: 9px 12px;
  border-radius: 4px;
}

@media (max-width: 1040px) {
  .side-nav {
    position: static;
    width: auto;
    display: block;
  }

  .side-nav nav {
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 18px;
  }

  .cinema-shell,
  .cinema-footer {
    margin-left: 0;
  }

  .theater,
  .cinema-grid,
  .watch-panel {
    grid-template-columns: 1fr;
  }

  .marquee {
    grid-template-columns: repeat(4, 1fr);
  }

  #screenCards,
  .vault-grid,
  .fresh-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .cinema-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .cinema-shell,
  .cinema-footer {
    padding: 16px 12px;
  }

  .theater {
    padding: 24px;
    min-height: auto;
  }

  .theater figure {
    display: none;
  }

  .marquee,
  #screenCards,
  .vault-grid,
  .fresh-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-info h1,
  .vault-head h1 {
    font-size: 36px;
  }

  .filter-ribbon {
    align-items: stretch;
    flex-direction: column;
  }
}
