:root {
  --bg: #101114;
  --panel: #191b20;
  --panel-2: #22252b;
  --text: #f6f1e8;
  --muted: #a8adb7;
  --line: rgba(255, 255, 255, .12);
  --gold: #f2c36b;
  --red: #d94b4b;
  --green: #3aa986;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, "Microsoft YaHei", sans-serif;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 72px;
  padding: 0 clamp(18px, 5vw, 64px);
  background: rgba(16, 17, 20, .78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.main-nav,
.quick-tags {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--red));
  color: #141414;
}

.main-nav {
  gap: clamp(16px, 3vw, 34px);
  color: #d7d9de;
  font-size: 15px;
}

.main-nav a:hover {
  color: var(--gold);
}

.ghost-button,
.search-row button,
.message-form button {
  border: 0;
  cursor: pointer;
  color: #151515;
  background: var(--gold);
  font-weight: 700;
}

.ghost-button {
  min-width: 76px;
  height: 38px;
  border-radius: 8px;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    linear-gradient(90deg, rgba(16, 17, 20, .94), rgba(16, 17, 20, .48), rgba(16, 17, 20, .78)),
    url("/assets/img/hero-cinema.jpg") center/cover;
  transform: scale(1.02);
}

.hero-shade {
  background: linear-gradient(0deg, var(--bg), rgba(16, 17, 20, .08) 46%, rgba(16, 17, 20, .2));
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 92px);
  padding-top: 70px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 28px;
  color: #d4d8df;
  font-size: 18px;
  line-height: 1.8;
}

.search-panel {
  width: min(620px, 100%);
}

.search-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  height: 54px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
}

.search-row input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 18px;
  color: var(--text);
  background: transparent;
}

.search-row input::placeholder {
  color: #989da7;
}

.quick-tags {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.quick-tags button {
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  color: #e4e7eb;
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
}

.quick-tags button.active {
  border-color: transparent;
  color: #151515;
  background: var(--gold);
}

.section-wrap {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 56px 0;
}

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

.section-heading h2 {
  margin: 0;
  font-size: 30px;
}

.section-heading a,
.result-count {
  color: var(--muted);
  font-size: 14px;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.35fr .82fr;
  grid-template-rows: repeat(2, 220px);
  gap: 18px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: 8px;
  background: var(--panel);
}

.feature-card.large {
  grid-row: span 2;
}

.feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.95);
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .12));
}

.feature-card div {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 1;
}

.feature-card span,
.movie-meta {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

.feature-card h3 {
  margin: 8px 0 6px;
  font-size: 28px;
}

.feature-card:not(.large) h3 {
  font-size: 22px;
}

.feature-card p {
  margin-bottom: 0;
  color: #d8dbe1;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, .08);
}

.poster {
  position: relative;
  aspect-ratio: 400 / 260;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  overflow: hidden;
  background: #2a1a4a;
}

.poster::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .08) 58%);
}

.poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.movie-card:hover .poster img {
  transform: scale(1.05);
}

.score {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  min-width: 42px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #151515;
  background: var(--gold);
  font-weight: 800;
}

.poster-title {
  position: relative;
  z-index: 2;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
}

.movie-info {
  padding: 12px;
}

.movie-info h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.movie-info p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.rank-panel,
.talk-panel {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: var(--panel);
}

.compact {
  margin-bottom: 16px;
}

.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rank-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 64px;
  align-items: center;
  min-height: 54px;
  border-top: 1px solid var(--line);
}

.rank-list span {
  color: var(--gold);
  font-weight: 800;
}

.rank-list em {
  color: var(--muted);
  font-style: normal;
  text-align: right;
}

.messages {
  display: grid;
  gap: 10px;
  min-height: 118px;
}

.messages p {
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: var(--panel-2);
  color: #d9dce2;
}

.messages strong {
  color: var(--gold);
}

.message-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 10px;
  margin-top: 16px;
}

.message-form input {
  min-width: 0;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  outline: 0;
  color: var(--text);
  background: #111318;
}

.message-form button {
  border-radius: 8px;
}

.site-footer {
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 960px) {
  .site-header {
    position: sticky;
  }

  .main-nav {
    display: none;
  }

  .hero {
    min-height: 780px;
  }

  .hero-content {
    margin: 0 auto;
  }

  .featured-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .feature-card.large {
    grid-row: auto;
  }

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

@media (max-width: 620px) {
  .site-header {
    min-height: 64px;
  }

  .ghost-button {
    display: none;
  }

  h1 {
    font-size: 40px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .search-row,
  .message-form {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
    background: transparent;
    border: 0;
    gap: 10px;
  }

  .search-row input,
  .search-row button,
  .message-form input,
  .message-form button {
    height: 46px;
    border-radius: 8px;
  }

  .search-row input {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .08);
  }

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

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    flex-direction: column;
  }
}
