:root {
  --bg: #09090b;
  --surface: #131316;
  --text: #f5f5f5;
  --muted: #a3a3aa;
  --red: #e50914;
  --line: rgba(255, 255, 255, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header {
  align-items: center;
  display: flex;
  height: 76px;
  justify-content: space-between;
  padding: 0 clamp(24px, 6vw, 88px);
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 2;
}
.brand { font-size: 22px; font-weight: 800; letter-spacing: -.8px; }
.brand span { color: var(--red); }
.main-nav { display: flex; gap: 32px; margin-left: 80px; }
.main-nav a, .login-link { color: #d4d4d8; font-size: 13px; transition: color .2s; }
.main-nav a:hover, .main-nav .active, .login-link:hover { color: #fff; }
.main-nav .active { font-weight: 600; }
.header-actions { align-items: center; display: flex; gap: 20px; }
.icon-button { background: transparent; border: 0; color: #fff; cursor: pointer; font-size: 26px; line-height: 1; padding: 0; transform: rotate(-20deg); }

.hero {
  background: linear-gradient(90deg, rgba(9, 9, 11, .96) 0%, rgba(9, 9, 11, .68) 43%, rgba(9, 9, 11, .12) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 27%), url("https://images.unsplash.com/photo-1485846234645-a62644f84728?auto=format&fit=crop&w=1900&q=85") center/cover;
  min-height: 690px;
  padding: 185px clamp(24px, 10vw, 150px) 80px;
  position: relative;
}
.hero-content { max-width: 510px; }
.eyebrow { color: #f0444d; font-size: 11px; font-weight: 700; letter-spacing: 2.7px; margin: 0 0 18px; }
h1 { font-size: clamp(48px, 7vw, 82px); letter-spacing: -4px; line-height: .98; margin: 0; }
h1 em { color: #e7e7e7; font-style: normal; font-weight: 400; }
.hero-copy { color: #d4d4d8; font-size: 16px; line-height: 1.7; margin: 28px 0 30px; max-width: 340px; }
.hero-buttons { display: flex; gap: 12px; }
.button { border-radius: 4px; display: inline-flex; font-size: 13px; font-weight: 600; gap: 9px; padding: 13px 20px; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: #fff; color: #111; }
.button-primary:hover { background: #e8e8e8; }
.button-muted { background: rgba(255, 255, 255, .16); backdrop-filter: blur(10px); }
.button-muted:hover { background: rgba(255, 255, 255, .25); }
.hero-meta { align-items: center; bottom: 82px; color: #c5c5c9; display: flex; font-size: 12px; gap: 12px; position: absolute; }
.hero-meta i { background: #777; border-radius: 50%; height: 3px; width: 3px; }
.scroll-note { bottom: 82px; color: #a1a1a6; font-size: 11px; letter-spacing: 1px; position: absolute; right: clamp(24px, 6vw, 88px); text-transform: uppercase; }
.scroll-note span { color: #fff; font-size: 18px; margin-left: 8px; }

.catalog { padding: 72px clamp(24px, 6vw, 88px) 86px; }
.section-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 26px; }
.section-heading .eyebrow { margin-bottom: 10px; }
h2 { font-size: 27px; letter-spacing: -.8px; margin: 0; }
.view-all { color: #c7c7ca; font-size: 12px; }
.view-all span { color: var(--red); font-size: 17px; margin-left: 6px; }
.movie-grid { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.movie-card { min-width: 0; }
.poster { aspect-ratio: 2 / 2.75; background-position: center; background-size: cover; border-radius: 5px; overflow: hidden; position: relative; transition: transform .25s, box-shadow .25s; }
.movie-card:hover .poster { box-shadow: 0 16px 30px rgba(0,0,0,.35); transform: translateY(-5px); }
.poster::after { background: linear-gradient(0deg, rgba(0,0,0,.5), transparent 45%); content: ""; inset: 0; position: absolute; }
.poster-one { background-image: url("https://images.unsplash.com/photo-1517604931442-7e0c8ed2963c?auto=format&fit=crop&w=600&q=80"); }
.poster-two { background-image: url("https://images.unsplash.com/photo-1536440136628-849c177e76a1?auto=format&fit=crop&w=600&q=80"); }
.poster-three { background-image: url("https://images.unsplash.com/photo-1446776811953-b23d57bd21aa?auto=format&fit=crop&w=600&q=80"); }
.poster-four { background-image: url("https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?auto=format&fit=crop&w=600&q=80"); }
.badge { background: var(--red); border-radius: 3px; font-size: 9px; font-weight: 700; left: 10px; letter-spacing: .7px; padding: 5px 7px; position: absolute; top: 10px; z-index: 1; }
.play { align-items: center; background: rgba(0, 0, 0, .58); border: 1px solid rgba(255,255,255,.72); border-radius: 50%; color: #fff; cursor: pointer; display: flex; font-size: 12px; height: 40px; justify-content: center; left: 50%; opacity: 0; padding-left: 3px; position: absolute; top: 50%; transform: translate(-50%, -50%); transition: opacity .2s; width: 40px; z-index: 1; }
.movie-card:hover .play { opacity: 1; }
.movie-info h3 { font-size: 14px; font-weight: 600; margin: 14px 0 5px; }
.movie-info p { color: var(--muted); font-size: 11px; margin: 0; }
.site-footer { border-top: 1px solid var(--line); color: #77777e; display: flex; font-size: 11px; justify-content: space-between; padding: 24px clamp(24px, 6vw, 88px); }

@media (max-width: 700px) {
  .site-header { height: 66px; }
  .main-nav { gap: 16px; margin-left: 0; }
  .main-nav a:nth-child(2), .main-nav a:nth-child(3) { display: none; }
  .login-link { display: none; }
  .hero { min-height: 620px; padding-top: 160px; }
  .hero-meta { bottom: 55px; }
  .scroll-note { display: none; }
  .movie-grid { gap: 14px; grid-template-columns: repeat(2, 1fr); }
  .catalog { padding-top: 55px; }
  .site-footer { gap: 10px; flex-direction: column; }
}
