:root {
  --bg: #070708;
  --surface: #0e0e10;
  --surface-2: #141417;
  --line: #29292e;
  --text: #f7f5f2;
  --muted: #a4a2a0;
  --dim: #747276;
  --accent: #ff4d2e;
  --accent-2: #ffb13b;
  --blue: #76a8ff;
  --max: 1240px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", Arial, sans-serif;
  overflow-x: hidden;
}
body.drawer-open { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: .018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header & navigation */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  background: linear-gradient(180deg, rgba(4,4,5,.96), rgba(4,4,5,.72), transparent);
  transition: background .3s, border-color .3s;
}
.site-header.scrolled {
  background: rgba(7,7,8,.9);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
}
.header-inner {
  width: min(calc(100% - 48px), var(--max));
  height: 84px;
  margin: auto;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 34px;
}
.text-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: clamp(1rem, 2vw, 1.35rem);
  letter-spacing: -.055em;
  white-space: nowrap;
}
.logo-first { color: var(--text); }
.logo-second { color: var(--accent); }
.icon-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: rgba(12,12,14,.5);
}
.menu-button span { display: block; width: 17px; height: 1.5px; margin: 4px auto; background: #fff; }
.desktop-nav { display: flex; justify-content: center; gap: 30px; }
.desktop-nav a {
  position: relative;
  padding: 10px 0;
  color: #c7c5c3;
  font-size: .85rem;
  font-weight: 600;
}
.desktop-nav a:hover, .desktop-nav a.active { color: #fff; }
.desktop-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 2px;
  background: var(--accent);
}
.search-trigger {
  min-height: 42px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(12,12,14,.48);
  color: #fff;
}
.search-trigger span { font-size: 1.4rem; transform: rotate(-18deg); }
.search-trigger b { font-size: .78rem; letter-spacing: .04em; }

.drawer {
  position: fixed;
  z-index: 130;
  inset: 0 auto 0 0;
  width: min(88vw, 390px);
  padding: 24px 25px;
  background: #0c0c0e;
  border-right: 1px solid #2b2b2f;
  transform: translateX(-105%);
  transition: transform .4s cubic-bezier(.22,.61,.36,1);
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer-overlay {
  position: fixed;
  z-index: 120;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(0,0,0,.73);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: .3s;
}
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-close { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: #151518; color: #fff; font-size: 1.6rem; }
.drawer-kicker { margin: 70px 0 18px; color: var(--dim); font-size: .68rem; font-weight: 700; letter-spacing: .22em; }
.drawer-nav { display: grid; }
.drawer-nav a { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; padding: 18px 4px; border-top: 1px solid var(--line); font-family: "Manrope"; font-size: 1.06rem; font-weight: 700; }
.drawer-nav a:last-child { border-bottom: 1px solid var(--line); }
.drawer-nav a span { color: var(--accent); font-size: .7rem; }
.drawer-nav a b { color: var(--dim); font-size: 1.4rem; font-weight: 400; }
.drawer-note { margin-top: 42px; padding: 18px; border: 1px solid #342a27; border-radius: 14px; background: #161210; }
.drawer-note span { color: var(--accent-2); font-size: .68rem; font-weight: 800; letter-spacing: .18em; }
.drawer-note p { margin: 8px 0 0; color: var(--muted); font-size: .85rem; line-height: 1.6; }

/* Home hero */
.hero {
  position: relative;
  min-height: 720px;
  height: 94vh;
  max-height: 940px;
  overflow: hidden;
  background: #09090a;
}
.hero-track, .screenshot-track { height: 100%; display: flex; transition: transform .75s cubic-bezier(.22,.61,.36,1); }
.hero-slide { flex: 0 0 100%; position: relative; overflow: hidden; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) contrast(1.07); transform: scale(1.03); }
.hero-slide.active img { animation: heroZoom 7s linear forwards; }
@keyframes heroZoom { to { transform: scale(1.1); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,4,5,.96) 0%, rgba(4,4,5,.69) 42%, rgba(4,4,5,.1) 72%), linear-gradient(0deg, var(--bg) 0%, transparent 36%); }
.hero-content {
  position: absolute;
  z-index: 3;
  left: max(24px, calc((100% - var(--max))/2));
  top: 51%;
  width: min(680px, calc(100% - 48px));
  transform: translateY(-43%);
}
.hero-eyebrow, .section-kicker { margin: 0 0 17px; color: #d0cdca; font-size: .69rem; font-weight: 800; letter-spacing: .23em; }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; }
.hero-eyebrow span { width: 28px; height: 2px; background: var(--accent); }
.hero h1, .detail-hero h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(3.3rem, 7.4vw, 7.7rem);
  line-height: .91;
  letter-spacing: -.07em;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-copy { max-width: 520px; margin: 28px 0 0; color: #c1bfbd; line-height: 1.75; font-size: clamp(.92rem, 1.4vw, 1.08rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.primary-button, .play-button {
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
}
.primary-button { display: flex; align-items: center; gap: 32px; border: 0; background: var(--accent); color: #fff; }
.primary-button span { font-size: 1.3rem; }
.play-button { border: 1px solid rgba(255,255,255,.38); background: rgba(8,8,9,.35); color: #fff; backdrop-filter: blur(10px); }
.play-button i { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 9px; border-radius: 50%; background: #fff; color: #111; font-size: .65rem; font-style: normal; }
.hero-pagination { position: absolute; z-index: 3; right: max(24px, calc((100% - var(--max))/2)); bottom: 88px; display: flex; align-items: center; gap: 18px; }
.hero-pagination > span { color: #dedbd8; font-size: .7rem; font-weight: 700; letter-spacing: .16em; }
.hero-dots { display: flex; gap: 5px; }
.hero-dots button, .screenshot-dots button { width: 27px; height: 3px; padding: 0; border: 0; background: rgba(255,255,255,.25); transition: .25s; }
.hero-dots button.active, .screenshot-dots button.active { background: var(--accent); }

/* Catalogue */
.catalogue { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: 78px 0 110px; }
.catalogue-top { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.catalogue h2, .detail-section h2, .movie-info h2 { margin: 0; font-family: "Manrope"; font-size: clamp(2.2rem, 5vw, 4.25rem); line-height: 1; letter-spacing: -.06em; }
.result-count { margin: 0; color: var(--dim); font-size: .8rem; }
.result-count b { color: #fff; }
.discovery-bar { margin: 34px 0 38px; display: grid; grid-template-columns: minmax(250px, 1fr) auto; align-items: center; gap: 25px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.search-box { height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 15px; border: 1px solid transparent; border-radius: 10px; background: #18181b; transition: .2s; }
.search-box:focus-within { border-color: var(--accent); }
.search-box span { color: var(--muted); font-size: 1.4rem; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: #fff; }
.search-box input::placeholder { color: #77767a; }
.filter-scroll { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.filter-scroll::-webkit-scrollbar { display: none; }
.filter-chip { min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #111113; color: #aaa8a6; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.filter-chip:hover, .filter-chip.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.movie-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 17px; }
.movie-card { min-width: 0; cursor: pointer; }
.poster-box { position: relative; aspect-ratio: 2/3; overflow: hidden; border-radius: 13px; background: #18181b; }
.poster-box img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .3s; }
.movie-card:hover .poster-box img { transform: scale(1.055); filter: brightness(.72); }
.card-shade { position: absolute; inset: auto 0 0; height: 42%; background: linear-gradient(transparent, rgba(0,0,0,.92)); opacity: .75; }
.quality-badge { position: absolute; top: 12px; left: 12px; padding: 6px 9px; border-radius: 5px; background: rgba(8,8,9,.84); border: 1px solid rgba(255,255,255,.18); color: #fff; font-size: .61rem; font-weight: 800; letter-spacing: .08em; backdrop-filter: blur(8px); }
.bookmark-button { position: absolute; top: 11px; right: 11px; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(0,0,0,.57); color: #fff; opacity: 0; transition: .2s; }
.movie-card:hover .bookmark-button, .bookmark-button.saved { opacity: 1; }
.bookmark-button.saved { background: var(--accent); border-color: var(--accent); }
.card-action { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; justify-content: space-between; transform: translateY(15px); opacity: 0; transition: .3s; }
.movie-card:hover .card-action { opacity: 1; transform: translateY(0); }
.card-action span { font-size: .7rem; font-weight: 700; letter-spacing: .08em; }
.card-action i { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); font-style: normal; }
.movie-card h3 { margin: 14px 2px 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: "Manrope"; font-size: 1rem; letter-spacing: -.025em; }
.movie-card > p { margin: 0 2px; display: flex; justify-content: space-between; color: var(--dim); font-size: .72rem; }
.empty-state { min-height: 340px; display: grid; place-items: center; align-content: center; text-align: center; }
.empty-state > span { color: var(--accent); font-size: 3rem; }
.empty-state h3 { margin: 10px 0 4px; font-family: "Manrope"; font-size: 1.8rem; }
.empty-state p { margin: 0; color: var(--muted); }
.empty-state button { margin-top: 18px; padding: 11px 16px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; }
.pagination { margin-top: 58px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; }
.pagination button { min-width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); }
.pagination button.active, .pagination button:hover { border-color: var(--accent); background: var(--accent); color: #fff; }
.pagination button.next { width: auto; padding: 0 18px; border-radius: 999px; }
.showcase-band { overflow: hidden; padding: 28px 0; border-block: 1px solid #26262a; background: #0d0d0f; }
.showcase-band > p { margin: 0 0 18px; color: var(--accent); text-align: center; font-size: .62rem; font-weight: 800; letter-spacing: .28em; }
.showcase-band > div { display: flex; justify-content: center; gap: 38px; min-width: max-content; font-family: "Manrope"; font-size: clamp(1.15rem, 2.7vw, 2.4rem); font-weight: 800; color: #343438; }
.showcase-band span::before { content: "✦"; margin-right: 38px; color: var(--accent); font-size: .65em; }
