/* ==========================================================================
   HOORAFLIX — streaming UI
   Design tokens lifted from the reference layout (dark navy + violet accent).
   ========================================================================== */

:root {
  --bg:            #141414;
  --bg-item:       #1c1c1c;
  --bg-item-2:     #2b2b2b;
  --border:        #2b2b2b;
  --border-2:      #7a7a7a;
  --body:          #b3b3b3;
  --body-2:        #808080;
  --heading:       #ffffff;
  --main:          #e50914;
  --btn-1:         #e50914;
  --btn-2:         #e50914;
  --btn-3:         #b20710;
  --gold:          #ffc93d;
  --brand:         #e50914;   /* hoorafilx.com wordmark red */
  --radius:        6px;
  --radius-sm:     4px;
  --shadow:        0 18px 40px rgba(0, 0, 0, .45);
  --container:     1280px;
  --gutter:        24px;
  --header-h:      86px;
  --ease:          cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

/* overflow-x lives on <html>, not <body>: on <body> it makes the element its own
   scroll container, which leaves the last screenful of the page unreachable.
   `clip` (with `hidden` as the fallback) is the stronger of the two — Android
   browsers let a `hidden` root scroll sideways anyway, which is how a too-wide
   header ended up dragging the whole page off-screen. */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;            /* clip, unlike hidden, makes no scroll container */
  overscroll-behavior-x: none; /* no sideways rubber-band / drag */
}

body {
  margin: 0;
  max-width: 100%;
  /* No `hidden` fallback here on purpose: on <body> it WOULD create a second
     scroll container and make the last screenful unreachable. `clip` is safe. */
  overflow-x: clip;
  overscroll-behavior-x: none;
  background: var(--bg);
  color: var(--body);
  font: 400 16px/1.6 'Poppins', 'Segoe UI', 'Noto Sans Ethiopic', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 { color: var(--heading); font-weight: 700; margin: 0; line-height: 1.25; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- buttons ------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; line-height: 1;
  color: #fff;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--main);
}
.btn-primary:hover { background: #f6121d; }

.btn-ghost {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .18); }

.btn-solid { background: var(--btn-3); }
.btn-solid:hover { background: #e50914; }

.btn svg { width: 17px; height: 17px; flex: none; }

/* ---------- header ------------------------------------------------------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .35s, backdrop-filter .35s, box-shadow .35s, height .35s;
}
.site-header.is-stuck {
  height: 70px;
  background: rgba(0, 0, 0, .88);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}

.header-inner { display: flex; align-items: center; gap: 34px; width: 100%; }

/* Wordmark — matches hoorafilx.com: Helvetica Neue 900, 2px tracking, brand red */
.logo { display: flex; align-items: center; flex: none; }
.logo-text {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 22px; font-weight: 900; letter-spacing: 2px;
  color: var(--brand);
  transition: filter .25s;
}
.logo:hover .logo-text { filter: brightness(1.15); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > li { flex: none; }
.main-nav > li > a {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: #fff;
  white-space: nowrap;              /* multi-word labels must not wrap out of the bar */
  transition: color .2s, background-color .2s;
}
.main-nav > li > a:hover, .main-nav > li.is-active > a { color: var(--main); }
.main-nav .caret { width: 9px; height: 9px; opacity: .7; }

.has-drop { position: relative; }
.drop {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 200px;
  background: var(--bg-item); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s, transform .22s, visibility .22s;
}
.has-drop:hover .drop { opacity: 1; visibility: visible; transform: none; }
.drop a {
  display: block; padding: 9px 12px; border-radius: 7px;
  font-size: 14px; color: var(--body);
  transition: background-color .18s, color .18s;
}
.drop a:hover { background: var(--bg-item-2); color: #fff; }

.header-tools { display: flex; align-items: center; gap: 16px; margin-left: auto; }

.search {
  display: flex; align-items: center; gap: 9px;
  width: 250px; padding: 0 14px; height: 44px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-sm);
  transition: border-color .25s, background-color .25s;
}
.search:focus-within { border-color: var(--main); background: rgba(255, 255, 255, .14); }
.search svg { width: 16px; height: 16px; opacity: .65; flex: none; }
.search input {
  flex: 1; min-width: 0; background: none; border: 0; outline: none;
  color: #fff; font-size: 14px;
}
.search input::placeholder { color: rgba(255, 255, 255, .45); }

.lang { display: flex; align-items: center; gap: 2px; }
.lang button {
  padding: 6px 9px; border-radius: 6px; font-size: 13px; font-weight: 600;
  color: rgba(255, 255, 255, .55); transition: color .2s, background-color .2s;
}
.lang button.is-active { color: #fff; background: rgba(255, 255, 255, .12); }
.lang button:hover { color: #fff; }

.burger { display: none; width: 42px; height: 42px; border-radius: 8px; background: rgba(255,255,255,.1); }
.burger span { display: block; width: 18px; height: 2px; margin: 4px auto; background: #fff; border-radius: 2px; }

/* ---------- hero --------------------------------------------------------- */

.hero { position: relative; min-height: 760px; display: flex; align-items: center; overflow: hidden; }

.hero-media { position: absolute; inset: 0; }
.hero-media video,
.hero-media .hero-still {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
}
.hero-media .hero-still { transition: opacity .8s var(--ease); }
.hero-media video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-media.video-ready video { opacity: 1; }

.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0,.96) 0%, rgba(0, 0, 0,.82) 38%, rgba(0, 0, 0,.25) 70%, rgba(0, 0, 0,.55) 100%),
    linear-gradient(0deg, var(--bg) 2%, rgba(0, 0, 0,0) 45%);
}

.hero-inner { position: relative; z-index: 2; width: 100%; padding-top: var(--header-h); }
.hero-slide { max-width: 620px; }
.hero-slide[hidden] { display: none; }
.hero-slide > * { animation: heroUp .6s var(--ease) both; }
.hero-slide > *:nth-child(2) { animation-delay: .07s; }
.hero-slide > *:nth-child(3) { animation-delay: .14s; }
.hero-slide > *:nth-child(4) { animation-delay: .2s; }
.hero-slide > *:nth-child(5) { animation-delay: .26s; }

@keyframes heroUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.hero-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 2.2px;
  color: var(--main); margin-bottom: 16px;
}
.hero-title { font-size: clamp(38px, 5vw, 66px); font-weight: 800; letter-spacing: -.5px; }
.hero-latin { color: var(--body-2); font-size: 17px; margin-top: 6px; }

.meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 18px 0 20px; font-size: 14px; }
.meta-row .rating { display: flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; }
.meta-row .rating svg { width: 15px; height: 15px; color: var(--gold); }
.meta-row .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border-2); }
.cert { padding: 3px 8px; border: 1px solid var(--border-2); border-radius: 4px; font-size: 12px; font-weight: 600; color: #fff; }

.hero-desc { color: var(--body); font-size: 16px; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- premiere countdown ------------------------------------------- */

.countdown { margin-top: 42px; animation: heroUp .6s var(--ease) .32s both; }

.countdown-label {
  display: flex; align-items: center; gap: 9px;
  margin: 0 0 14px;
  font-size: 12px; font-weight: 700; letter-spacing: 2.4px;
  text-transform: uppercase; color: var(--body-2);
}
.countdown-label .pulse {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--main);
  box-shadow: 0 0 0 0 rgba(229, 9, 20, .7);
  animation: cdPulse 2.4s var(--ease) infinite;
}
@keyframes cdPulse {
  0%   { box-shadow: 0 0 0 0 rgba(229, 9, 20, .65); }
  70%  { box-shadow: 0 0 0 11px rgba(229, 9, 20, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0); }
}

.countdown-units { display: flex; align-items: center; gap: 10px; }

.cd-unit {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  min-width: 86px; padding: 16px 12px 13px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255,255,255,.11) 0%, rgba(255,255,255,.03) 100%);
  border: 1px solid rgba(255, 255, 255, .13);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .38);
  overflow: hidden;
}
/* violet sheen along the top edge */
.cd-unit::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(229, 9, 20, .9), transparent);
}

.cd-num {
  font-size: 40px; font-weight: 800; line-height: 1; color: #fff;
  font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1;
  letter-spacing: -.5px;
  text-shadow: 0 0 26px rgba(229, 9, 20, .45);
}
/* Only the day/hour/minute rollovers animate — the seconds change every tick, and
   animating those left the digit mid-fade most of the time and unreadable. */
.cd-num.is-tick { animation: cdTick .34s var(--ease); }
@keyframes cdTick {
  0%   { transform: translateY(-26%); opacity: .35; }
  100% { transform: none; opacity: 1; }
}

.cd-lab {
  font-size: 10px; font-weight: 600; letter-spacing: 1.7px;
  text-transform: uppercase; color: var(--body-2);
}

.cd-sep {
  font-size: 26px; font-weight: 700; color: rgba(255, 255, 255, .28);
  margin-top: -14px;
}

.hero-controls {
  position: absolute; right: 0; bottom: 84px; z-index: 3;
  display: flex; align-items: center; gap: 18px;
}
.hero-dots { display: flex; align-items: center; gap: 14px; }
.hero-dots button {
  font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .45);
  position: relative; padding-bottom: 5px; transition: color .25s;
}
.hero-dots button::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--main); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.hero-dots button.is-active { color: #fff; }
.hero-dots button.is-active::after { transform: scaleX(1); }

.arrows { display: flex; gap: 10px; }
.arrow {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, .2);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  transition: background-color .25s, border-color .25s, transform .25s;
}
.arrow:hover { background: var(--main); border-color: var(--main); transform: scale(1.06); }
.arrow svg { width: 15px; height: 15px; }

/* ---------- section shell ------------------------------------------------ */

.section { padding: 58px 0; position: relative; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; margin-bottom: 28px;
}
.section-title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; }
.section-sub { color: var(--body-2); font-size: 15px; margin-top: 6px; }
.section-head .right { display: flex; align-items: center; gap: 18px; }
.view-all {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600; color: var(--main);
  transition: gap .25s var(--ease);
}
.view-all:hover { gap: 12px; }
.view-all svg { width: 13px; height: 13px; }

/* ---------- rails (horizontal carousels) --------------------------------- */

.rail-wrap { position: relative; }
.rail {
  display: flex; gap: 22px;
  overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  padding-bottom: 6px;
  scrollbar-width: none;
  /* Without this, swiping a rail past its end chains to the document and drags
     the whole page sideways. */
  overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }

/* ---------- poster card (288 x 400) -------------------------------------- */

.poster-card { width: 232px; }
.poster-thumb {
  position: relative; aspect-ratio: 288 / 400;
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg-item);
  isolation: isolate;
}
.poster-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease), filter .4s;
}
.poster-card:hover .poster-thumb img { transform: scale(1.07); filter: brightness(.6); }

.thumb-overlay {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(0deg, rgba(0, 0, 0,.85) 0%, rgba(0, 0, 0,0) 55%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.poster-card:hover .thumb-overlay, .land-card:hover .thumb-overlay { opacity: 1; }

.play-fab {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--main);
  box-shadow: 0 10px 26px rgba(229, 9, 20, .5);
  transform: scale(.7); transition: transform .35s var(--ease);
}
.poster-card:hover .play-fab, .land-card:hover .play-fab { transform: scale(1); }
.play-fab svg { width: 18px; height: 18px; margin-left: 3px; }

.badge-rating {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: flex; align-items: center; gap: 5px;
  padding: 5px 9px; border-radius: 6px;
  background: rgba(0, 0, 0, .72); backdrop-filter: blur(6px);
  font-size: 12px; font-weight: 700; color: #fff;
}
.badge-rating svg { width: 12px; height: 12px; color: var(--gold); }

/* Save-to-list button: hidden until the card is hovered, or while it is on. */
.btn-list {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, .72); backdrop-filter: blur(6px);
  color: #fff; border: 1px solid rgba(255, 255, 255, .14);
  opacity: 0; transform: scale(.8);
  transition: opacity .3s, transform .3s, background-color .25s;
}
.poster-card:hover .btn-list,
.land-card:hover .btn-list,
.btn-list.is-on { opacity: 1; transform: none; }
.btn-list:hover, .btn-list.is-on { background: var(--main); }
.btn-list svg { width: 15px; height: 15px; }

.poster-body { padding-top: 14px; }
.card-title {
  font-size: 16px; font-weight: 600; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: color .2s;
}
.poster-card:hover .card-title, .land-card:hover .card-title { color: var(--main); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.chip {
  padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-item);
  font-size: 12px; color: var(--body-2);
  transition: border-color .2s, color .2s;
}
.chip:hover { border-color: var(--main); color: #fff; }

/* ---------- landscape card (630 x 400) ----------------------------------- */

.land-card { width: 330px; }
.land-thumb {
  position: relative; aspect-ratio: 630 / 400;
  border-radius: var(--radius); overflow: hidden; background: var(--bg-item);
}
.land-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; }
.land-card:hover .land-thumb img { transform: scale(1.07); filter: brightness(.6); }
.land-body { padding-top: 14px; }
.meta-line {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-top: 8px; font-size: 13px; color: var(--body-2);
}
.meta-line .cert { font-size: 11px; padding: 2px 7px; }

/* ---------- browse category chips ---------------------------------------- */

.cat-strip { padding: 26px 0 4px; }
.cat-rail {
  display: flex; gap: 12px;
  overflow-x: auto; scrollbar-width: none;
  padding-bottom: 4px;
  overscroll-behavior-x: contain;
}
.cat-rail::-webkit-scrollbar { display: none; }

.cat-chip {
  flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  min-width: 108px; padding: 15px 14px;
  border-radius: 14px;
  background: var(--bg-item);
  border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--body);
  transition: border-color .25s, background-color .25s, transform .25s var(--ease), color .25s;
}
.cat-chip:hover {
  border-color: var(--main); color: #fff;
  background: #232323; transform: translateY(-3px);
}
.cat-icon { width: 22px; height: 22px; color: var(--main); }

/* ---------- section head icons ------------------------------------------- */

.section-title { display: flex; align-items: center; gap: 10px; }
.head-icon { width: 24px; height: 24px; flex: none; }
.head-icon.crown { color: var(--gold); }
.head-icon.flame { color: #ff7a3d; }
.head-icon.play  { color: var(--main); }

/* quality chip (4K / HD), in place of the rating on trending cards */
.badge-quality {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 4px 9px; border-radius: 6px;
  background: rgba(0, 0, 0, .78); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 11px; font-weight: 800; letter-spacing: .6px; color: #fff;
}

/* ---------- continue watching -------------------------------------------- */

.cw-list { display: grid; gap: 14px; }

.cw-row {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 16px 12px 12px;
  background: var(--bg-item);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .3s, background-color .3s, transform .3s var(--ease);
}
.cw-row:hover { border-color: var(--main); background: #232323; transform: translateX(3px); }

.cw-shot {
  position: relative; flex: none;
  width: 150px; aspect-ratio: 630 / 400;
  border-radius: var(--radius-sm); overflow: hidden;
  padding: 0; background: #000000;
}
.cw-shot img { width: 100%; height: 100%; object-fit: cover; }
.cw-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0, 0, 0, .38);
  transition: background-color .25s;
}
.cw-play svg { width: 17px; height: 17px; color: #fff; }
.cw-shot:hover .cw-play { background: rgba(229, 9, 20, .55); }

.cw-info { min-width: 0; flex: 1; }
.cw-title {
  font-size: 16px; font-weight: 600; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cw-meta {
  display: flex; align-items: center; gap: 9px;
  margin: 6px 0 0; font-size: 13px; color: var(--body-2);
}
.cw-bar {
  margin-top: 12px; height: 4px; border-radius: 3px;
  background: rgba(255, 255, 255, .12); overflow: hidden;
}
.cw-bar span {
  display: block; height: 100%; border-radius: 3px;
  background: var(--main);
}

/* ---------- mobile tab bar (phones only) --------------------------------- */

.tabbar { display: none; }

/* ---------- upcoming movies (real posters + trailers) -------------------- */

/* Capped rather than full-width: four columns across the whole 1280 container
   stretched each poster to ~284px (≈395px tall). This keeps them near the 232px
   posters used elsewhere on the page. */
/* Column count follows the number of films (set from JS), so the row always
   fills — no empty tracks — while each card stays at ~217px. */
.up-grid {
  display: grid;
  /* Fills the container width: as many ~217px columns as fit, stretched to
     close the remainder. No max-width cap, so the row spans the page. */
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 24px;
}

.up-card {
  display: flex; flex-direction: column;
  background: var(--bg-item);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .3s, transform .35s var(--ease), box-shadow .35s var(--ease);
}
.up-card:hover {
  border-color: var(--main);
  transform: translateY(-5px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, .5);
}

.up-poster {
  position: relative;
  aspect-ratio: 288 / 400;          /* the supplied posters all sit near this */
  overflow: hidden;
  background: #000000;
}
.up-poster img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  transition: transform .6s var(--ease), filter .4s;
}
.up-card:hover .up-poster img { transform: scale(1.05); filter: brightness(.62); }
.up-card:hover .thumb-overlay { opacity: 1; }
.up-card:hover .play-fab { transform: scale(1); }
.up-card:hover .btn-list { opacity: 1; transform: none; }

/* Stand-in when a film's artwork has not been supplied yet. Swapping in the
   real file is one field: set `poster:` on that entry in js/data.js. */
.up-placeholder {
  position: absolute; inset: 0;
  /* Centred, not bottom-aligned: on a tall card the text sank to the base and
     the panel read as an empty gradient. */
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: 20px 18px;
  background:
    radial-gradient(120% 80% at 75% 10%, rgba(229, 9, 20, .28) 0%, rgba(229, 9, 20, 0) 55%),
    linear-gradient(165deg, #2a2a2a 0%, #101010 100%);
}
.up-placeholder::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 3px);
}
.up-placeholder > * { position: relative; z-index: 1; }
.up-ph-kicker {
  font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255, 255, 255, .55); margin-bottom: 10px;
}
.up-ph-title {
  font-family: 'Noto Sans Ethiopic', 'Poppins', sans-serif;
  font-size: 26px; font-weight: 800; line-height: 1.2; color: #fff;
  text-shadow: 0 3px 16px rgba(0, 0, 0, .6); overflow-wrap: anywhere;
}
.up-ph-credit {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  max-width: 85%;
  font-size: 10.5px; font-weight: 600; color: rgba(255, 255, 255, .62);
}

.up-status {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(0, 0, 0, .78); backdrop-filter: blur(6px);
  border: 1px solid rgba(229, 9, 20, .55);
  font-size: 11px; font-weight: 700; letter-spacing: .6px;
  color: #fff;
}

.up-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.up-title {
  font-size: 20px; font-weight: 700; color: #fff;
  font-family: 'Noto Sans Ethiopic', 'Poppins', sans-serif;
  line-height: 1.3;
}
.up-latin { margin: 4px 0 0; font-size: 13px; color: var(--body-2); letter-spacing: 1px; }
.up-credit { margin: 9px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--body-2); }
.up-body .chips { margin-top: 12px; }
.up-soon {
  margin-top: auto; padding-top: 16px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .3px;
  color: var(--body-2);
}
.up-btn { width: 100%; justify-content: center; margin-top: auto; padding-block: 12px; }
.up-body .chips + .up-btn { margin-top: 16px; }

/* ---------- featured banner ---------------------------------------------- */

.banner {
  position: relative; border-radius: 14px; overflow: hidden;
  min-height: 420px; display: flex; align-items: center;
}
.banner img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0,.94) 8%, rgba(0, 0, 0,.7) 45%, rgba(0, 0, 0,.15) 100%);
}
.banner-inner { position: relative; z-index: 2; padding: 54px; max-width: 560px; }
.banner-inner h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; }
.banner-inner p { margin: 18px 0 0; color: var(--body); }
.banner-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
/* ---------- footer ------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px; padding: 64px 0 30px;
  background: #000;
  color: #e5e5e5;
}
.footer-top { display: grid; grid-template-columns: 1.35fr .8fr 1.15fr; gap: 56px; }
/* No text-transform: the markup carries the real casing, so "Quick Links" stays
   title case while the rest are caps, matching hoorafilx.com. */
.footer-col h4 {
  font-size: 13px; font-weight: 700; letter-spacing: 1.6px;
  margin-bottom: 16px; color: #fff;
}
.footer-col p { font-size: 14px; line-height: 1.75; color: #b3b3b3; margin: 0 0 14px; }
.footer-col li { margin-bottom: 11px; font-size: 14px; color: #b3b3b3; }
.footer-col a { font-size: 14px; color: #b3b3b3; transition: color .2s; }
.footer-col a:hover { color: var(--brand); }

.footer-col .lead-name {
  color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 8px;
}

.contact-list li { display: flex; align-items: flex-start; gap: 10px; }
.contact-list .ic { flex: none; line-height: 1.6; }

.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-item); border: 1px solid var(--border);
  transition: background-color .25s, border-color .25s, transform .25s;
}
.socials a:hover { background: var(--brand); border-color: var(--brand); transform: translateY(-3px); }
.socials svg { width: 15px; height: 15px; }

.newsletter { display: flex; gap: 10px; margin-top: 12px; }
.newsletter input {
  flex: 1; min-width: 0; height: 46px; padding: 0 14px;
  background: #1c1c1c; border: 1px solid #2b2b2b;
  border-radius: var(--radius-sm); color: #fff; outline: none;
  transition: border-color .25s;
}
.newsletter input:focus { border-color: var(--brand); }
.newsletter input::placeholder { color: #808080; }
.newsletter .btn { padding-inline: 20px; letter-spacing: .6px; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  margin-top: 48px; padding-top: 26px; border-top: 1px solid #2b2b2b;
  font-size: 13px; color: #808080;
}
.footer-bottom nav { display: flex; gap: 22px; }
.footer-bottom a { color: #808080; transition: color .2s; }
.footer-bottom a:hover { color: var(--brand); }

/* ---------- player modal ------------------------------------------------- */

.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 24px;
  background: rgba(0, 0, 0, .92); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal-box {
  width: min(1100px, 100%);
  background: #000000; border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow);
  transform: scale(.96); transition: transform .35s var(--ease);
}
.modal.is-open .modal-box { transform: none; }
/* Sources vary (16:9 trailers, a 2.41:1 catalogue video), so letterbox rather
   than crop to whichever aspect the file happens to be. */
.modal-box video {
  width: 100%; aspect-ratio: 16 / 9; max-height: 78vh;
  background: #000; display: block; object-fit: contain;
}
.modal-meta { padding: 22px 26px 26px; }
.modal-meta h3 { font-size: 22px; }
.modal-close {
  position: absolute; top: 22px; right: 26px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); color: #fff;
  transition: background-color .25s, transform .25s;
}
.modal-close:hover { background: var(--main); transform: rotate(90deg); }
.modal-close svg { width: 17px; height: 17px; }

/* ---------- search results ----------------------------------------------- */

#search-results { display: none; }
body.is-searching #search-results { display: block; }
body.is-searching .hide-on-search { display: none; }

.result-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.result-grid .poster-card { width: auto; }
.empty { padding: 60px 0; text-align: center; color: var(--body-2); }

/* ---------- toast -------------------------------------------------------- */

.toast {
  position: fixed; left: 50%; bottom: 34px; z-index: 300;
  transform: translate(-50%, 24px);
  padding: 13px 22px; border-radius: 999px;
  background: var(--bg-item); border: 1px solid var(--main);
  color: #fff; font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden;
  transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- reveal on scroll --------------------------------------------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive --------------------------------------------------- */

@media (max-width: 1440px) {
  .btn-fund { display: none; }   /* both CTAs overflow the row below this */
  .header-inner { gap: 20px; }
  .main-nav > li > a { padding: 10px 11px; font-size: 14px; }
  .search { width: 200px; }
}

/* Header CTAs: "Join Funders" is secondary and only appears where the row has
   room for it — narrow screens keep the primary Sign In alone. */
.btn-signin { font-weight: 700; }

@media (max-width: 1180px) {

  .search { width: 190px; }
  .main-nav > li > a { padding: 10px 8px; }
  .cd-unit { min-width: 78px; }
  .cd-num { font-size: 34px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .main-nav, .lang { display: none; }
  .burger { display: block; }
  .hero { min-height: 640px; }
  .hero-controls { bottom: 46px; }
  .countdown { margin-top: 32px; }
  .result-grid { grid-template-columns: repeat(3, 1fr); }
  .up-grid { grid-template-columns: repeat(2, 1fr); }
  .banner-inner { padding: 36px; }
}

@media (max-width: 680px) {
  :root { --gutter: 16px; --header-h: 70px; }
  /* The header row must fit 360px phones. Logo + search + CTA + burger came to
     ~382px against 328px of usable width, and the overflow made the whole page
     scroll sideways (Android does not reliably honour overflow-x:hidden on
     <html>). The burger is dropped here because it was only ever a placeholder
     and the bottom tab bar now carries navigation. */
  .header-inner { gap: 10px; min-width: 0; }
  .header-tools { gap: 8px; min-width: 0; }
  .logo { min-width: 0; }
  .logo-text {
    font-size: 17px; letter-spacing: 1.2px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .header-tools .btn { padding: 10px 13px; font-size: 12.5px; }
  .search { width: 40px; flex: none; padding: 0; justify-content: center; }
  .search input { display: none; }
  .burger { display: none; }
  /* Hero on a phone: a contained band with the copy underneath, not a full-bleed
     backdrop with text over it. Two reasons — the text stack was burying the
     footage, and the source is 2.41:1, so covering a portrait screen crops away
     roughly three-quarters of the frame width and loses the composition. A 3:2
     band keeps most of the frame and puts the copy on solid background. */
  .hero {
    display: block;
    min-height: 0;
    padding-top: var(--header-h);
  }
  .hero-media {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 3 / 2;
  }
  .hero-media video,
  .hero-media .hero-still { object-position: center 42%; }
  .hero-media::after {                    /* fade the band into the page */
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(0deg,
      var(--bg)             0%,
      rgba(0, 0, 0, .45)  32%,
      rgba(0, 0, 0, 0)    68%);
  }
  .hero-scrim { display: none; }

  .hero-inner { padding-top: 0; padding-bottom: 20px; margin-top: -30px; }
  .hero-slide { max-width: none; }
  .hero-desc { display: none; }          /* biggest block, least needed here */

  .hero-eyebrow { font-size: 10.5px; letter-spacing: 1.8px; margin-bottom: 9px; }
  .hero-title { font-size: clamp(30px, 8.6vw, 44px); line-height: 1.08; }
  .hero-latin { font-size: 14px; margin-top: 4px; }
  .meta-row { gap: 9px; margin: 11px 0 0; font-size: 12.5px; }
  .meta-row .cert { font-size: 11px; padding: 2px 6px; }

  .hero-actions { gap: 10px; margin-top: 18px; }
  .hero-actions .btn { flex: 1; justify-content: center; padding: 13px 12px; font-size: 14px; }

  /* Countdown: one slim strip rather than four chunky tiles. */
  .countdown { margin-top: 18px; }
  .countdown-label { font-size: 10px; letter-spacing: 1.8px; margin-bottom: 8px; }
  .countdown-units { gap: 6px; }
  .cd-unit { min-width: 0; flex: 1; padding: 8px 4px 7px; border-radius: 10px; gap: 3px; }
  .cd-num { font-size: 20px; }
  .cd-lab { font-size: 8px; letter-spacing: .9px; }
  .cd-sep { display: none; }

  .hero-controls { position: static; margin-top: 18px; justify-content: space-between; }
  .arrow { width: 38px; height: 38px; }
  .poster-card { width: 156px; }
  .land-card { width: 258px; }
  .result-grid { grid-template-columns: repeat(2, 1fr); }
  .up-grid { grid-template-columns: 1fr; gap: 20px; }
  .up-title { font-size: 18px; }

  /* Browse chips: tighter, edge-to-edge so the row reads as swipeable. */
  .cat-strip { padding: 20px 0 0; }
  .cat-rail { gap: 10px; }
  .cat-chip { min-width: 88px; padding: 12px 10px; font-size: 11.5px; gap: 7px; border-radius: 12px; }
  .cat-icon { width: 19px; height: 19px; }

  /* nowrap stops "New Release" breaking onto two lines, but on its own it turns
     a wrap into an overflow — so the title must also be allowed to shrink and
     ellipsise rather than push the row wider than the screen. */
  .section-title {
    gap: 8px; white-space: nowrap;
    min-width: 0; overflow: hidden; text-overflow: ellipsis;
  }
  .head-icon { width: 20px; height: 20px; }

  /* Rail arrows are redundant on touch, and competing for width was wrapping
     headings onto two lines. Swipe handles the rails. */
  .section-head { gap: 12px; min-width: 0; }
  .section-head .arrows { display: none; }
  .section-head > div { min-width: 0; }
  .view-all { white-space: nowrap; font-size: 13px; flex: none; }

  /* Continue Watching stays a row, just smaller. */
  .cw-row { gap: 12px; padding: 10px 12px 10px 10px; }
  .cw-shot { width: 116px; }
  .cw-title { font-size: 14.5px; }
  .cw-meta { font-size: 12px; margin-top: 4px; }
  .cw-bar { margin-top: 9px; height: 3px; }

  /* Tab bar: native-feeling bottom nav, so the page needs clearance. */
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(0, 0, 0, .94);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
  }
  .tab {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 6px 2px;
    font-size: 10px; font-weight: 600; letter-spacing: .2px;
    color: var(--body-2);
    transition: color .2s;
  }
  .tab svg { width: 21px; height: 21px; }
  .tab:hover, .tab.is-active { color: var(--main); }
  .tab.is-active { position: relative; }
  .tab.is-active::after {
    content: ''; position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
    width: 22px; height: 2px; border-radius: 2px; background: var(--main);
  }
  .toast { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
  .banner { min-height: 340px; }
  .banner-inner { padding: 26px; }
  /* Footer on a phone reads as a column of text, not as a poem. It used to
     centre everything to match hoorafilx.com, but centred prose, a 10-item
     centred link stack and ragged contact icons are exactly what made both
     look unfinished. Only the copyright strip stays centred. */
  .footer-top { grid-template-columns: 1fr; gap: 34px; text-align: left; }
  .footer-col h4 { margin-bottom: 12px; }
  .footer-col p { margin-inline: 0; max-width: 60ch; line-height: 1.65; }

  /* Quick Links two-up: ten items were ten screens of scrolling. */
  .footer-col ul:not(.contact-list) {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px;
  }
  .footer-col ul:not(.contact-list) li { margin-bottom: 0; }

  /* Straight text edge: centring made the pin/phone/mail icons zig-zag. */
  .contact-list li { justify-content: flex-start; }
  .socials { justify-content: flex-start; }

  /* Field above button, both full width, so SIGN UP can never be clipped. */
  .newsletter { flex-direction: column; max-width: 420px; margin-inline: 0; }
  .newsletter input, .newsletter .btn { width: 100%; height: 48px; }

  .footer-bottom { flex-direction: column; justify-content: center; text-align: center; gap: 12px; }
  .footer-bottom nav { justify-content: center; flex-wrap: wrap; }
  .section { padding: 42px 0; }
}

/* 320px phones: the header still needed 332px at the 680px sizing, so trim the
   wordmark, controls and gutter rather than drop the search or the CTA. */
@media (max-width: 380px) {
  :root { --gutter: 12px; }
  .header-inner { gap: 8px; }
  .header-tools { gap: 8px; }
  .logo-text { font-size: 15px; letter-spacing: 1px; }
  .header-tools .btn { padding: 9px 10px; font-size: 11.5px; }
  .search { width: 34px; }
  .cd-num { font-size: 18px; }
  .cd-unit { padding: 7px 3px 6px; }
  .cd-lab { font-size: 7.5px; letter-spacing: .6px; }
  .cw-shot { width: 100px; }
  .cat-chip { min-width: 80px; font-size: 11px; }
  .section-title { font-size: 18px; }   /* "Continue Watching" + See All must fit 296px */
  .tab { font-size: 9.5px; }
  .tab svg { width: 19px; height: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
