/* xnxii — hot movies landing page (black + red, bold cinema style) */
:root {
  --bg: #0a0a0e;
  --bg-2: #101017;
  --panel: #14141c;
  --line: rgba(255, 255, 255, .08);
  --line-soft: rgba(255, 255, 255, .05);
  --ink: #f4f4f6;
  --muted: #a0a0ac;
  --red: #ff3b47;
  --red-deep: #c40e1e;
  --radius: 14px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--red); color: #fff; }

img { display: block; max-width: 100%; }

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

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.shell { width: min(1180px, 100% - 40px); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--red); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px;
  font-weight: 800; font-size: 1rem; letter-spacing: .02em;
  text-transform: uppercase;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff;
  box-shadow: 0 10px 30px rgba(255, 59, 71, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(255, 59, 71, .5); }
.btn-ghost {
  border: 1px solid var(--line); color: var(--ink);
  background: rgba(255, 255, 255, .03);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, .35); }
.btn-sm { padding: 10px 20px; font-size: .82rem; }
.icon { width: 18px; height: 18px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 14, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; color: var(--red); }
.brand-word {
  font-weight: 900; font-size: 1.25rem; letter-spacing: .06em;
}
.brand-word em { color: var(--red); font-style: normal; }

.site-nav { display: flex; gap: 26px; }
.site-nav a {
  font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); transition: color .15s;
}
.site-nav a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 12px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 40px; align-items: center;
  padding: 76px 0 64px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 380px at 78% 30%, rgba(255, 59, 71, .14), transparent 65%),
    radial-gradient(500px 400px at 8% 90%, rgba(255, 59, 71, .07), transparent 60%);
}
.hero-copy { position: relative; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
  color: var(--red); margin-bottom: 18px;
}
.hero-kicker::before { content: ""; width: 34px; height: 2px; background: var(--red); }
.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 900; line-height: .98; letter-spacing: -.015em;
  text-transform: uppercase;
}
.hero-title .dot { color: var(--red); }
.hero-sub {
  margin: 22px 0 30px; max-width: 46ch;
  color: var(--muted); font-size: 1.08rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px;
  list-style: none;
}
.hero-meta li {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
}
.hero-meta svg { width: 16px; height: 16px; color: var(--red); }

/* hero poster collage */
.hero-art { position: relative; height: 520px; }
.hero-glow {
  position: absolute; inset: 12% 6%;
  background: radial-gradient(closest-side, rgba(255, 59, 71, .32), transparent 72%);
  filter: blur(30px);
}
.hp {
  position: absolute; width: 168px; aspect-ratio: 2 / 3;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  transition: transform .3s ease;
}
.hp img { width: 100%; height: 100%; object-fit: cover; }
.hp1 { left: 4%;  top: 8%;  transform: rotate(-9deg); z-index: 1; }
.hp2 { left: 30%; top: 0;   transform: rotate(-3deg); z-index: 2; width: 190px; }
.hp3 { left: 56%; top: 10%; transform: rotate(4deg);  z-index: 3; width: 200px; }
.hp4 { left: 20%; top: 44%; transform: rotate(6deg);  z-index: 4; }
.hp5 { left: 62%; top: 48%; transform: rotate(-5deg); z-index: 5; }
.hp:hover { transform: rotate(0deg) scale(1.05); z-index: 9; }

/* ---------- marquee ---------- */
.marquee {
  background: var(--red);
  transform: rotate(-1.2deg) scale(1.02);
  margin: 26px 0 8px;
  overflow: hidden;
  border-block: 3px solid #000;
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-group {
  display: flex; align-items: center; gap: 34px;
  padding: 13px 17px;
  font-weight: 900; font-size: .95rem; letter-spacing: .14em;
  text-transform: uppercase; color: #fff; white-space: nowrap;
}
.marquee-group i { font-style: normal; color: #000; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section-head .index {
  font-size: .8rem; font-weight: 900; letter-spacing: .2em; color: var(--red);
  text-transform: uppercase; display: block; margin-bottom: 8px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.05;
}
.section-sub { color: var(--muted); max-width: 60ch; margin-top: 10px; }
.nav-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink);
  transition: border-color .15s, background .15s;
}
.nav-arrow:hover { border-color: var(--red); background: rgba(255, 59, 71, .12); }
.nav-arrow svg { width: 20px; height: 20px; }

/* ---------- trending row ---------- */
.row-scroll {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 4px 18px;
  scrollbar-width: none;
}
.row-scroll::-webkit-scrollbar { display: none; }
.tcard {
  position: relative; flex: 0 0 196px; scroll-snap-align: start;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: transform .22s ease, border-color .22s ease;
}
.tcard:hover { transform: translateY(-6px); border-color: rgba(255, 59, 71, .55); }
.tcard .poster { aspect-ratio: 2 / 3; overflow: hidden; }
.tcard .poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.tcard:hover .poster img { transform: scale(1.06); }
.tcard .rank {
  position: absolute; top: 4px; left: 8px;
  font-size: 4.4rem; font-weight: 900; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .85);
  text-shadow: 0 6px 24px rgba(0, 0, 0, .65);
  pointer-events: none;
}
.tcard .t-body { padding: 12px 14px 14px; }
.tcard .t-title { font-weight: 800; font-size: .98rem; }
.tcard .t-meta { font-size: .78rem; color: var(--muted); margin-top: 3px; letter-spacing: .04em; }

/* ---------- filter chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chip {
  padding: 9px 20px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
  font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  transition: all .16s ease;
}
.chip:hover { color: var(--ink); border-color: rgba(255, 255, 255, .3); }
.chip.is-active {
  background: var(--red); border-color: var(--red); color: #fff;
  box-shadow: 0 6px 20px rgba(255, 59, 71, .35);
}

/* ---------- movie grid ---------- */
.movie-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 18px;
}
.mcard {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--panel);
  transition: transform .22s ease, border-color .22s ease;
}
.mcard:hover { transform: translateY(-5px); border-color: rgba(255, 59, 71, .5); }
.mcard .poster { aspect-ratio: 2 / 3; overflow: hidden; }
.mcard .poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.mcard:hover .poster img { transform: scale(1.06); }
.mcard .m-body { padding: 12px 14px 14px; }
.mcard .m-title { font-weight: 800; font-size: .95rem; }
.mcard .m-meta { font-size: .76rem; color: var(--muted); margin-top: 3px; letter-spacing: .05em; text-transform: uppercase; }
.mcard .m-tag {
  display: inline-block; margin-top: 8px;
  font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red);
}

/* ---------- stats band ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.stat {
  padding: 26px 22px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
}
.stat b {
  display: block; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 900;
  color: var(--red); letter-spacing: -.02em;
}
.stat span { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- download ---------- */
.download-panel {
  position: relative; overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(160deg, #17171f, #0e0e14 65%);
  border: 1px solid var(--line);
  padding: 56px 48px;
  text-align: center;
}
.download-panel::before {
  content: ""; position: absolute; inset: -40% 30% auto;
  height: 320px; background: radial-gradient(closest-side, rgba(255, 59, 71, .25), transparent 70%);
  filter: blur(20px); pointer-events: none;
}
.download-panel .index { color: var(--red); font-weight: 900; letter-spacing: .2em; font-size: .8rem; text-transform: uppercase; }
.download-panel h2 {
  font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 900; text-transform: uppercase;
  margin: 12px 0 10px; letter-spacing: -.01em;
}
.download-panel .section-sub { margin: 0 auto 34px; }
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  list-style: none; margin: 0 0 36px; counter-reset: step;
}
.steps li {
  padding: 22px 20px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
  text-align: left;
}
.step-num {
  display: inline-block; font-weight: 900; font-size: 1.6rem;
  color: transparent; -webkit-text-stroke: 1.5px var(--red);
  margin-bottom: 8px;
}
.steps h3 { font-size: .98rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.steps p { color: var(--muted); font-size: .9rem; margin-top: 5px; }
.download-note { display: block; margin-top: 14px; color: var(--muted); font-size: .82rem; letter-spacing: .06em; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); margin-top: 30px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px;
  padding: 46px 0 30px;
}
.footer-tagline { color: var(--muted); margin-top: 12px; font-size: .92rem; }
.footer-col h4 {
  font-size: .78rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a { color: var(--muted); font-size: .92rem; transition: color .15s; }
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding: 18px 0 24px;
  color: var(--muted); font-size: .82rem; letter-spacing: .04em;
}

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 90;
  transform: translate(-50%, 20px);
  background: #fff; color: #111;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 700; font-size: .9rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 52px; }
  .hero-art { height: 430px; max-width: 520px; margin-inline: auto; width: 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .site-nav { display: none; }
  .hero { padding: 40px 0 44px; }
  .hero-art { height: 380px; }
  .hp { width: 128px; }
  .hp2, .hp3 { width: 148px; }
  .steps { grid-template-columns: 1fr; }
  .download-panel { padding: 40px 22px; }
  .movie-grid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; }
  .tcard { flex-basis: 158px; }
  .marquee-group { font-size: .8rem; gap: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
}

/* ---------- 18+ age gate (adult compliance) ---------- */
body.locked { overflow: hidden; }
.age-gate {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 8, 12, .9);
  backdrop-filter: blur(18px);
  padding: 20px;
  transition: opacity .35s ease, visibility .35s;
}
.age-gate.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.gate-card {
  width: min(440px, 100%);
  background: linear-gradient(170deg, #1a1a22, #0c0c11 70%);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 40px 34px 34px;
  text-align: center;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
}
.gate-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 59, 71, .55); color: var(--red);
  font-size: .78rem; font-weight: 900; letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: 20px;
}
.gate-card h1 { font-size: 1.7rem; font-weight: 900; text-transform: uppercase; }
.gate-card p { color: var(--muted); margin: 12px 0 26px; font-size: .95rem; }
.gate-actions { display: grid; gap: 12px; }

/* ---------- 18+ badge + compliance ---------- */
.badge-18 {
  padding: 3px 10px; border-radius: 6px;
  background: var(--red); color: #fff;
  font-size: .7rem; font-weight: 900; letter-spacing: .08em;
}
.compliance {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel);
  padding: 26px 28px; margin: 56px 0 0;
}
.compliance h2 {
  font-size: .85rem; font-weight: 900; letter-spacing: .2em; text-transform: uppercase;
  color: var(--red); margin-bottom: 12px;
}
.compliance p { color: var(--muted); font-size: .86rem; line-height: 1.8; }
.compliance a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.compliance .rta { color: var(--red); font-weight: 700; }
