:root {
  --bg: #070709;
  --bg-2: #101014;
  --card: #17171c;
  --line: rgba(255,255,255,.08);
  --text: #f4f1ea;
  --muted: #9b968c;
  --gold: #e8c36a;
  --gold-2: #f3d58a;
  --accent: #ff4d5a;
  --shadow: 0 20px 60px rgba(0,0,0,.55);
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Outfit, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hidden { display: none !important; }

.noise {
  pointer-events: none;
  position: fixed; inset: 0; z-index: 8; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 16px 36px;
  background: linear-gradient(180deg, rgba(7,7,9,.96), rgba(7,7,9,.72) 70%, transparent);
  backdrop-filter: blur(16px);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), #b8862a);
  color: #1a1408; font-size: 12px;
}
.logo-word {
  font-family: "Playfair Display", serif;
  font-weight: 700; letter-spacing: .02em; font-size: 22px;
}
.nav-links { display: flex; gap: 6px; }
.nav-link {
  padding: 8px 14px; border-radius: 999px; color: var(--muted);
  text-decoration: none;
}
.nav-link.is-active, .nav-link:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.search {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; min-width: 240px;
}
.search input {
  background: transparent; border: 0; outline: none; width: 100%; color: var(--text);
}
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.06); }
.badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 16px; height: 16px; border-radius: 99px;
  background: var(--accent); color: white; font-size: 10px;
  display: grid; place-items: center; padding: 0 4px;
}

.hero {
  position: relative; min-height: 78vh;
  display: flex; align-items: flex-end;
  padding: 0 48px 72px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 20%;
  filter: saturate(1.05);
  transition: background-image .4s ease;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,7,9,.88) 8%, rgba(7,7,9,.35) 52%, rgba(7,7,9,.2)),
    linear-gradient(180deg, rgba(7,7,9,.15) 20%, rgba(7,7,9,.95));
}
.hero-content { position: relative; z-index: 2; max-width: 640px; }
.kicker {
  color: var(--gold); text-transform: uppercase; letter-spacing: .18em;
  font-size: 12px; font-weight: 600; margin-bottom: 10px;
}
.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(42px, 7vw, 84px);
  line-height: .95; margin-bottom: 16px;
}
.meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--muted); font-size: 14px; }
.pill {
  background: rgba(232,195,106,.15); color: var(--gold-2);
  padding: 3px 8px; border-radius: 6px; font-weight: 600;
}
.rating {
  border: 1px solid rgba(255,255,255,.25);
  padding: 0 6px; border-radius: 4px; font-size: 12px;
}
.synopsis { margin: 18px 0 24px; color: #d8d3c8; line-height: 1.6; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px; font-weight: 600;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--text); color: #111; }
.btn.ghost { background: rgba(255,255,255,.1); border: 1px solid var(--line); }
.btn.icon {
  width: 44px; height: 44px; padding: 0; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%; font-size: 22px;
}

.rail-wrap { padding: 8px 0 48px; }
.rail { margin: 28px 0; }
.rail-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px 12px;
}
.rail-head h2 { font-size: 22px; font-weight: 600; }
.rail-nav { display: flex; gap: 8px; }
.chev {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08); font-size: 22px; line-height: 1;
}
.scroller {
  display: flex; gap: 14px;
  overflow-x: auto; scroll-behavior: smooth;
  padding: 4px 48px 16px;
  scrollbar-width: none;
}
.scroller::-webkit-scrollbar { display: none; }

.card {
  flex: 0 0 210px;
  border-radius: 14px; overflow: hidden;
  background: var(--card); position: relative;
  transition: transform .2s ease;
  cursor: pointer;
}
.card:hover { transform: translateY(-6px) scale(1.02); }
.card .poster { height: 300px; background: #222; }
.card .info { padding: 12px 12px 14px; }
.card h3 { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card p { color: var(--muted); font-size: 12px; margin-top: 4px; }
.tag {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,.7); backdrop-filter: blur(8px);
  font-size: 11px; padding: 4px 8px; border-radius: 999px;
}
.card .save {
  position: absolute; top: 8px; right: 8px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0,0,0,.55); font-size: 16px;
}

.promo {
  margin: 36px 48px;
  padding: 36px;
  border-radius: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background:
    linear-gradient(90deg, rgba(7,7,9,.75), rgba(7,7,9,.35)),
    url("https://images.unsplash.com/photo-1485846234645-a62644f84728?auto=format&fit=crop&w=1600&q=70") center/cover;
  border: 1px solid var(--line);
}
.promo h2 { font-family: "Playfair Display", serif; font-size: 36px; margin: 6px 0 8px; }
.promo p { color: #ddd; max-width: 480px; }

.catalog { padding: 24px 48px 80px; }
.catalog-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); font-size: 13px;
}
.chip.is-on { background: var(--text); color: #111; border-color: var(--text); }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}
.grid .card { flex: none; }
.empty { color: var(--muted); padding: 40px 0; }

.footer {
  border-top: 1px solid var(--line);
  padding: 40px 48px 28px;
  display: grid; gap: 24px;
}
.footer-cols { display: flex; gap: 64px; }
.footer h3 { font-size: 13px; color: var(--muted); margin-bottom: 10px; letter-spacing: .08em; text-transform: uppercase; }
.footer button, .footer span, .footer a {
  display: block; color: #cfc9bd; margin: 6px 0; text-align: left; text-decoration: none;
}
.footer a:hover, .footer button:hover { color: var(--gold-2); }
.legal { color: #6f6a62; font-size: 12px; }
.legal a { display: inline; color: #9b968c; text-decoration: underline; text-underline-offset: 3px; }

.page {
  width: min(880px, calc(100% - 64px));
  margin: 24px auto 80px;
}
.page-hero { margin-bottom: 28px; }
.page-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(36px, 6vw, 56px);
  margin: 8px 0 12px;
}
.page-hero p { color: var(--muted); max-width: 640px; line-height: 1.6; }
.page article + article { margin-top: 28px; }
.page h2 { font-size: 20px; margin-bottom: 10px; }
.page p, .page li { color: #d5d0c6; line-height: 1.7; }
.page ul, .page ol { padding-left: 20px; margin: 8px 0 0; }
.page li { margin: 6px 0; }
.page a { color: var(--gold-2); }
.updated { font-size: 13px; color: var(--muted); letter-spacing: .04em; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 12px;
}
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
.contact-card h2 { margin-bottom: 8px; }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.form input, .form select, .form textarea {
  background: #0d0d11;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--text);
  outline: none;
}
.form input:focus, .form select:focus, .form textarea:focus {
  border-color: rgba(232,195,106,.45);
}
.form textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); }
.toast {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(232,195,106,.12);
  color: var(--gold-2);
  border: 1px solid rgba(232,195,106,.25);
}
.toast.is-on { display: block; }

@media (max-width: 800px) {
  .page { width: calc(100% - 32px); }
  .contact-grid { grid-template-columns: 1fr; }
}

.modal, .player, .drawer {
  border: 0; padding: 0; width: min(720px, 92vw);
  background: var(--bg-2); color: var(--text);
  border-radius: 20px; box-shadow: var(--shadow);
}
.modal::backdrop, .player::backdrop, .drawer::backdrop {
  background: rgba(0,0,0,.72);
}
.modal-media { position: relative; height: 280px; }
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,.55);
}
.modal-body { padding: 22px 24px 28px; }
.modal-body h2 { font-family: "Playfair Display", serif; font-size: 32px; margin-bottom: 8px; }
.modal-body p { color: #d5d0c6; line-height: 1.6; margin: 14px 0 20px; }

.player { width: min(960px, 94vw); }
.player-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; position: relative;
}
.player video { width: 100%; background: #000; max-height: 70vh; }
.player-note { color: var(--muted); font-size: 12px; padding: 10px 16px 16px; }

.drawer { width: min(420px, 94vw); margin-right: 0; height: 100vh; border-radius: 0; }
.drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 18px 8px; position: relative;
}
.wl-item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 18px; border-top: 1px solid var(--line);
}
.wl-item img { width: 64px; height: 88px; border-radius: 8px; }

@media (max-width: 800px) {
  .nav { padding: 12px 16px; gap: 12px; }
  .nav-links { display: none; }
  .search { min-width: 0; width: 140px; }
  .hero, .rail-head, .scroller, .catalog, .footer, .promo { padding-left: 16px; padding-right: 16px; }
  .promo { flex-direction: column; align-items: flex-start; }
  .hero { min-height: 70vh; padding-bottom: 48px; }
}
