:root {
  --bg: #0b0b0f;
  --bg-2: #121219;
  --card: #16161f;
  --line: #262631;
  --text: #ededf2;
  --muted: #9a9aab;
  --accent: #e7b84b;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1120px; margin: 0 auto; padding: 22px 24px;
}
.brand { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.brand span { color: var(--accent); }
.nav-links a {
  margin-left: 26px; color: var(--muted);
  font-size: 14.5px; font-weight: 500;
}
.nav-links a:hover { color: var(--text); }

/* hero */
.hero { margin: 14px auto 46px; max-width: 1120px; padding: 0 24px; }
.hero-card {
  position: relative; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(115deg, #1d1530 0%, #0c0c12 62%);
  padding: 56px 48px; min-height: 320px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-eyebrow {
  text-transform: uppercase; letter-spacing: .18em;
  font-size: 12px; font-weight: 600; color: var(--accent);
}
.hero-card h1 {
  font-size: 44px; line-height: 1.08; font-weight: 800;
  letter-spacing: -.02em; margin: 12px 0 6px; max-width: 16ch;
}
.hero-meta { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.hero-card p { color: #c7c7d2; max-width: 52ch; margin-bottom: 24px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 10px;
  font-size: 14.5px; font-weight: 600;
}
.btn-primary { background: var(--accent); color: #1a1405; }
.btn-primary:hover { background: #f1c660; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: #3a3a48; background: var(--bg-2); }

/* section heading */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 0 0 20px;
}
.section-head h2 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.section-head a { color: var(--muted); font-size: 14px; }
.section-head a:hover { color: var(--accent); }

/* catalog grid */
.grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  padding-bottom: 56px;
}
.card { display: block; }
.poster {
  aspect-ratio: 2 / 3; border-radius: var(--radius);
  border: 1px solid var(--line);
  display: flex; align-items: flex-end; padding: 18px;
  transition: transform .16s ease, border-color .16s ease;
}
.card:hover .poster { transform: translateY(-5px); border-color: var(--accent); }
.poster-title {
  font-size: 19px; font-weight: 800; letter-spacing: -.01em;
  line-height: 1.18; text-shadow: 0 2px 14px rgba(0,0,0,.6);
}
.card-meta {
  display: flex; justify-content: space-between;
  margin-top: 11px; font-size: 14px;
}
.card-meta .year { color: var(--muted); }

/* per-film poster gradients */
.g1 { background: linear-gradient(160deg, #2a2350, #0a0a10); }
.g2 { background: linear-gradient(160deg, #163020, #0a0a10); }
.g3 { background: linear-gradient(160deg, #2c3038, #0a0a10); }
.g4 { background: linear-gradient(160deg, #4a3211, #0a0a10); }
.g5 { background: linear-gradient(160deg, #123438, #0a0a10); }
.g6 { background: linear-gradient(160deg, #3a1622, #0a0a10); }
.g7 { background: linear-gradient(160deg, #1c2c44, #0a0a10); }
.g8 { background: linear-gradient(160deg, #322044, #0a0a10); }

/* title detail page */
.title-page { display: grid; grid-template-columns: 280px 1fr; gap: 40px; }
.title-poster {
  aspect-ratio: 2 / 3; border-radius: var(--radius);
  border: 1px solid var(--line);
  display: flex; align-items: flex-end; padding: 20px;
}
.title-poster .poster-title { font-size: 24px; }
.title-info h1 {
  font-size: 34px; font-weight: 800; letter-spacing: -.02em;
  line-height: 1.12;
}
.title-info .meta {
  color: var(--muted); font-size: 14.5px; margin: 10px 0 22px;
}
.title-info .meta span { margin-right: 14px; }
.title-info .synopsis { color: #c9c9d4; max-width: 58ch; margin-bottom: 26px; }
.title-info .note { color: var(--muted); font-size: 13px; margin-top: 22px; }

/* plain prose (about) */
.prose { max-width: 62ch; padding-bottom: 56px; }
.prose h1 { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.prose p { color: #c9c9d4; margin-top: 18px; }
.prose .lead { color: var(--text); font-size: 18px; }

/* footer */
footer {
  border-top: 1px solid var(--line); margin-top: 20px;
  padding: 32px 24px 48px; text-align: center; color: var(--muted);
}
footer .links { margin: 8px 0; }
footer a:hover { color: var(--accent); }
footer .fine { font-size: 12.5px; color: #6c6c7a; margin-top: 8px; }

/* responsive */
@media (max-width: 680px) {
  .hero-card { padding: 38px 26px; }
  .hero-card h1 { font-size: 32px; }
  .title-page { grid-template-columns: 1fr; gap: 26px; }
  .title-poster { max-width: 240px; }
  .nav { padding: 18px 20px; }
  .nav-links a { margin-left: 16px; }
}
