:root {
  --bg: #070b16;
  --bg2: #0d1526;
  --card: #111c33;
  --line: #22345c;
  --text: #eef2fb;
  --muted: #9db0d0;
  --accent: #ffb020;
  --accent2: #e63950;
}
* { box-sizing: border-box; }
html, body { overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0; background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  color: var(--text); font-family: "Segoe UI", Tahoma, Arial, sans-serif; min-height: 100vh;
}
img, video { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
/* ===== Site header: one slim row (menu ☰ · logo · language button)
   + a compact search row pinned directly under it. The always-visible
   nav row and the 7-language link row are gone — nav lives in the side
   drawer, languages behind a single button — so the header can never
   force horizontal overflow again. ===== */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7,11,22,.94); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 6px; max-width: 1200px; margin: 0 auto;
}
.logo {
  font-size: 21px; font-weight: 800; color: var(--text);
  margin-inline-end: auto; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.logo:hover { text-decoration: none; }
.menu-btn {
  flex: none; width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  font-size: 19px; line-height: 1;
}
.menu-btn:hover { border-color: var(--accent); }
/* Language: ONE compact button showing the current language + dropdown */
.lang-wrap { position: relative; flex: none; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 8px 12px; font: inherit; font-size: 14px;
  font-weight: 700; cursor: pointer; max-width: 44vw;
}
.lang-btn:hover { border-color: var(--accent); }
.lang-btn .caret { font-size: 11px; color: var(--muted); }
.lang-panel {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 70;
  min-width: 180px; max-width: 86vw; padding: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0,0,0,.5);
}
.lang-panel[hidden] { display: none; }
.lang-panel a {
  display: block; padding: 9px 12px; border-radius: 8px;
  color: var(--text); font-size: 15px; white-space: nowrap;
}
.lang-panel a:hover { background: #232c47; text-decoration: none; }
.lang-panel a.active { color: var(--accent); font-weight: 800; }
/* Compact search row directly under the header bar (the .filters class
   keeps the typo-tolerant autocomplete wired to this form) */
.filters.header-search {
  margin: 0 auto; max-width: 1200px; padding: 2px 14px 10px;
  gap: 8px; align-items: center; flex-wrap: nowrap;
}
.filters.header-search input[type="search"] {
  flex: 1 1 auto; min-width: 0; padding: 8px 14px;
  font-size: 15px; border-radius: 999px;
}
.filters.header-search button {
  padding: 8px 15px; border-radius: 999px; font-size: 15px; flex: none;
}
/* Side drawer (nav links) + scrim: slides in from the inline-start
   side — right on RTL/Arabic pages, left on LTR pages */
.drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 80;
  width: min(300px, 84vw); padding: 58px 16px 18px;
  background: var(--bg2); border-inline-end: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 2px;
  transform: translateX(-110%); transition: transform .25s ease;
}
[dir="rtl"] .drawer { transform: translateX(110%); }
body.drawer-open .drawer { transform: none; }
.drawer a {
  color: var(--text); font-size: 17px; font-weight: 700;
  padding: 12px 10px; border-radius: 10px;
}
.drawer a:hover { background: #1a2745; text-decoration: none; }
.drawer-close {
  position: absolute; top: 12px; inset-inline-end: 12px;
  width: 36px; height: 36px; border-radius: 10px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  font-size: 15px; line-height: 1;
}
.scrim {
  position: fixed; inset: 0; z-index: 75; background: rgba(2,4,10,.6);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
body.drawer-open .scrim { opacity: 1; pointer-events: auto; }
main { width: 100%; max-width: 1200px; margin: 0 auto; padding: 20px 16px 40px; }
.hero {
  display: flex; gap: 24px; align-items: center; background: var(--card);
  border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin-bottom: 22px;
}
.hero-poster { width: 180px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.hero-tag { color: var(--accent); font-weight: 700; }
.hero h1 { margin: 6px 0; font-size: 34px; }
.meta { color: var(--muted); margin: 4px 0; }
.synopsis { line-height: 1.8; color: #d7e0f2; }
.watch-btn {
  display: inline-block; background: var(--accent2); color: #fff; padding: 10px 22px;
  border-radius: 999px; font-weight: 800; font-size: 17px;
}
.watch-btn:hover { text-decoration: none; filter: brightness(1.1); }
.filters {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 24px;
}
.filters input[type="search"] {
  flex: 1 1 260px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font-size: 16px;
}
.filters select, .filters button {
  padding: 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font-size: 15px;
  min-width: 0; max-width: 100%;
}
.filters button { background: var(--accent); color: #111; font-weight: 800; cursor: pointer; border: none; padding: 12px 22px; }
.row-section { margin: 30px 0; }
.row-head { display: flex; justify-content: space-between; align-items: baseline; }
.row-head h2 { font-size: 24px; margin: 0 0 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  color: var(--text); display: flex; flex-direction: column;
}
.card:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); transition: .15s; }
.card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.no-poster { aspect-ratio: 2/3; display: flex; align-items: center; justify-content: center; font-size: 44px; background: #0a1122; }
.no-poster.big { width: 240px; border-radius: 12px; }
.card-body { padding: 10px 12px 14px; }
.card-body h3 { margin: 0 0 4px; font-size: 16px; line-height: 1.4; }
.badge { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; margin-top: 6px; }
.badge.cinema { background: #14351f; color: #6fe08a; border: 1px solid #2c7a44; }
.badge.soon { background: #33270d; color: var(--accent); border: 1px solid #8a6a1d; }
.page-title { font-size: 30px; margin: 8px 0 4px; }
.count { color: var(--muted); margin: 0 0 6px; }
.empty { color: var(--muted); padding: 24px 0; }
.big-loading { font-size: 20px; text-align: center; padding: 80px 0; }
.pager { display: flex; gap: 14px; justify-content: center; margin-top: 28px; align-items: center; }
.movie-head { display: flex; gap: 26px; flex-wrap: wrap; }
.poster { width: 240px; border-radius: 14px; box-shadow: 0 12px 34px rgba(0,0,0,.55); }
.movie-info { flex: 1 1 320px; }
.movie-info h1 { margin: 0 0 6px; font-size: 34px; }
.orig-title { color: var(--muted); margin: 0 0 10px; }
.facts { list-style: none; padding: 0; margin: 10px 0 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: #d7e0f2; }
.trailer { margin: 30px 0; }
.trailer video { width: 100%; max-height: 480px; border-radius: 14px; background: #000; }
.where { margin: 30px 0; }
.offer-group { margin-bottom: 16px; }
.offer-group h3 { margin: 0 0 8px; font-size: 18px; }
.offers { display: flex; flex-wrap: wrap; gap: 10px; }
.offer {
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  padding: 10px 16px; border-radius: 999px; font-weight: 700;
}
.offer small { color: var(--muted); font-weight: 400; }
.offer:hover { border-color: var(--accent); text-decoration: none; }
.loading-note { color: var(--muted); }
.ad-slot {
  border: 1.5px dashed #2c3f68; border-radius: 12px; min-height: 90px; margin: 22px 0;
  display: none; /* hidden until real AdSense code is pasted in */
}
.footer { border-top: 1px solid var(--line); padding: 24px 20px 40px; text-align: center; color: var(--muted); }
.footer .fine { font-size: 13px; }
.contact-mail { font-size: 20px; }
@media (max-width: 640px) {
  .logo { font-size: 19px; }
  .hero { flex-direction: column; text-align: center; }
  .hero-poster { width: 150px; margin: 0 auto; }
  .hero h1 { font-size: 27px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .poster { width: 170px; margin: 0 auto; }
  .movie-head { justify-content: center; }
}

/* Typo-tolerant search: autocomplete dropdown + notes */
.filters { position: relative; }
.suggest-box {
  position: absolute; top: 100%; inset-inline-start: 0; margin-top: 6px;
  width: min(480px, 92vw); max-height: 320px; overflow-y: auto; z-index: 40;
  background: var(--panel); border: 1px solid #26314f; border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.45); padding: 6px;
}
.suggest-item {
  display: block; padding: 9px 12px; border-radius: 8px;
  color: var(--text); text-decoration: none; font-size: 15px;
}
.suggest-item small { color: var(--muted); }
.suggest-item:hover, .suggest-item:focus { background: #232c47; }
.fuzzy-note, .did-you-mean { color: var(--muted); margin: 4px 0 14px; }
.did-you-mean a { color: var(--gold, var(--accent)); font-weight: 700; }

/* ===== Homepage redesign (reference: app-like dark UI) ===== */
/* Header brand: yellow play-button badge + site name */
.logo { display: inline-flex; align-items: center; }
.play-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: var(--accent); color: #151515; font-size: 14px;
  margin-inline-end: 9px; box-shadow: 0 4px 14px rgba(255, 176, 32, .35);
}

/* Tab row + search pill */
.home-bar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 4px 0 16px; }
.home-tabs { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.htab {
  background: none; border: none; border-bottom: 3px solid transparent;
  color: var(--muted); font: inherit; font-size: 17px; font-weight: 700;
  padding: 6px 2px; cursor: pointer; text-decoration: none; display: inline-block;
}
.htab:hover { color: var(--text); text-decoration: none; }
.htab.active { color: var(--text); border-bottom-color: var(--accent); }
.view-all-row { text-align: center; margin: 16px 0 4px; }
.view-all-row a { font-weight: 700; }

/* Featured strip (Yazan's spec): landscape 16:9 cards, each filling the
   FULL screen width edge-to-edge, glued together with zero gap and sharp
   corners, flipped one full-width movie at a time by finger swipe
   (scroll-snap). Full-bleed: negative inline margins cancel main's
   padding. No backdrop artwork in the catalog, so the poster is cropped
   into the landscape frame (object-fit: cover, biased toward the top of
   the art where faces/titles sit). */
.carousel { position: relative; margin: 0 -16px 18px; }
.carousel-track {
  display: flex; gap: 0; overflow-x: auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding: 0 0 12px; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.slide {
  position: relative; flex: 0 0 100%; scroll-snap-align: start;
  border-radius: 0; overflow: hidden; border: none;
  background: var(--card); color: var(--text); display: block;
}
.slide:hover { text-decoration: none; }
.slide img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  object-position: center 28%; display: block;
}
.slide .no-poster { width: 100%; aspect-ratio: 16/9; }
.slide-overlay {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 38px 14px 12px;
  background: linear-gradient(transparent, rgba(3, 6, 14, .94));
}
.slide-overlay h3 { margin: 0; font-size: 20px; line-height: 1.35; }
.slide-overlay .meta { margin: 2px 0 0; font-size: 13px; }
.carousel-dots { display: flex; justify-content: center; gap: 7px; margin-top: 2px; }
.cdot {
  width: 8px; height: 8px; border-radius: 99px; border: none; padding: 0;
  background: #3a4a6e; cursor: pointer; transition: all .2s;
}
.cdot.active { width: 22px; background: var(--accent); }
/* Slides stay 100%-width on desktop too (full-width strip, one movie
   per swipe) — no shrink-to-card media query. */

/* Poster badges overlaid on tiles/slides: yellow = in cinemas (inline-end
   corner), dark = new (inline-start corner). On slides they sit at the top
   corners so they never collide with the title overlay. */
.tbadge {
  position: absolute; bottom: 8px; z-index: 2;
  font-size: 12px; font-weight: 800; line-height: 1.2;
  padding: 4px 10px; border-radius: 8px; white-space: nowrap;
}
.tbadge.new {
  inset-inline-start: 8px; background: rgba(5, 8, 16, .8); color: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
}
.tbadge.cinema { inset-inline-end: 8px; background: var(--accent); color: #161616; }
.slide .tbadge { bottom: auto; top: 10px; }

/* Mosaic wall: posters glued edge-to-edge, sharp corners, zero gap.
   Full-bleed: negative inline margins cancel main's 16px padding. */
.mosaic {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  margin-inline: -16px;
}
@media (min-width: 640px) { .mosaic { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .mosaic { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .mosaic { grid-template-columns: repeat(5, 1fr); } }
.tile {
  position: relative; display: block; border-radius: 0; overflow: hidden;
  background: #0a1122; color: var(--text); line-height: 0;
}
.tile:hover { text-decoration: none; filter: brightness(1.09); }
.tile img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.tile .no-poster { width: 100%; }

/* ===== Reference redesign: play-badge logo, featured carousel, mosaic wall ===== */
.play-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px; vertical-align: -8px;
  background: var(--accent); color: #141414; font-size: 15px;
}
.carousel { margin-inline: -16px; margin-top: -20px; }
.carousel-track {
  display: flex; gap: 0; overflow-x: auto; padding: 0;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.slide {
  position: relative; flex: 0 0 100%; aspect-ratio: 16/9;
  border: none; border-radius: 0; overflow: hidden;
  scroll-snap-align: start; scroll-snap-stop: always;
  background: #0a1122; color: var(--text);
}
.slide:hover { text-decoration: none; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; border-radius: 0; }
.slide .no-poster { width: 100%; height: 100%; }
.slide-overlay {
  position: absolute; inset-inline: 0; bottom: 0; padding: 34px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(3,6,12,.88));
}
.slide-overlay h3 { margin: 0 0 2px; font-size: 20px; line-height: 1.3; }
.slide-overlay .meta { margin: 0; font-size: 13px; }
.carousel-dots { display: flex; justify-content: center; gap: 7px; padding: 2px 0 6px; }
.cdot {
  width: 8px; height: 8px; border-radius: 999px; border: none; padding: 0;
  background: #33477a; cursor: pointer; transition: .2s;
}
.cdot.active { background: var(--accent); width: 22px; }
/* Poster badges (mosaic tiles + carousel slides) */
.tbadge {
  position: absolute; bottom: 8px; z-index: 2; font-size: 12px; font-weight: 800;
  padding: 3px 9px; border-radius: 6px; line-height: 1.5; pointer-events: none;
}
.tbadge.new { inset-inline-start: 8px; background: rgba(5,8,15,.8); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.tbadge.cinema { inset-inline-end: 8px; background: var(--accent); color: #141414; }
.slide .tbadge { top: 10px; bottom: auto; }
/* Edge-to-edge mosaic wall: zero gap, sharp corners, posters touching */
.mosaic {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0; margin-inline: -16px;
}
.tile { position: relative; display: block; overflow: hidden; border-radius: 0; background: #0a1122; }
.tile img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; border-radius: 0; }
.tile .no-poster { width: 100%; border-radius: 0; }
.tile:hover { text-decoration: none; }
.tile:hover img { filter: brightness(1.08); }
@media (max-width: 640px) {
  .slide-overlay h3 { font-size: 18px; }
}

/* Site logo image (replaces the old play-badge glyph) */
.logo-img {
  width: 34px; height: 34px; flex: none; display: block;
  border-radius: 8px; margin-inline-end: 9px;
}

/* ===== Motion polish (Reelgood-style micro-interactions) + quick
   preview sheet. Consistent timing: ~200–300ms ease. ===== */

/* Expanding search: at rest the field is compact (58% of the slim row);
   on focus it smoothly grows to fill the row (minus the submit button),
   and it stays grown while it holds text. Pure CSS (:focus-within +
   :has/:placeholder-shown) so it can never be defeated by a stale
   cached script. */
.filters.header-search input[type="search"] {
  flex: 0 1 58%;
  transition: flex-basis .3s ease, border-color .2s ease, box-shadow .2s ease;
}
.filters.header-search:focus-within input[type="search"],
.filters.header-search:has(input[type="search"]:not(:placeholder-shown)) input[type="search"] {
  flex-basis: calc(100% - 62px);
}
.filters.header-search:focus-within input[type="search"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 176, 32, .18);
  outline: none;
}

/* Press / hover feedback on header controls, tabs, drawer items */
.menu-btn, .lang-btn, .drawer-close, .filters.header-search button {
  transition: transform .18s ease, border-color .18s ease,
    box-shadow .18s ease, background .18s ease, filter .18s ease;
}
.menu-btn:active, .lang-btn:active, .drawer-close:active,
.filters.header-search button:active { transform: scale(.93); }
.menu-btn[aria-expanded="true"], .lang-btn[aria-expanded="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 176, 32, .16);
}
.htab { transition: color .2s ease, border-color .2s ease, transform .15s ease; }
.htab:active { transform: scale(.96); }
.drawer a { transition: background .18s ease, transform .18s ease; }
.drawer a:active { background: #1a2745; transform: scale(.98); }
.drawer-close:hover { border-color: var(--accent); }
.cdot { transition: all .25s ease; }
.cdot:active { transform: scale(1.35); }
.tile { transition: filter .15s ease; }
.tile:active { filter: brightness(1.18); }
.slide:active { filter: brightness(1.1); }
.offer, .watch-btn { transition: transform .15s ease, border-color .15s ease, filter .15s ease; }
.offer:active, .watch-btn:active { transform: scale(.97); }
.logo-img { transition: transform .2s ease; }
.logo:active .logo-img { transform: scale(.92); }

/* Language dropdown: fade + slide instead of popping in */
.lang-panel {
  opacity: 0; transform: translateY(-6px) scale(.98);
  transform-origin: top center;
  transition: opacity .22s ease, transform .22s ease;
}
.lang-panel.open { opacity: 1; transform: none; }

/* ===== Quick-preview sheet ===== */
body.pv-open { overflow: hidden; }
.pv-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(3, 6, 14, .55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .25s ease;
}
.pv-backdrop.open { opacity: 1; }
.pv-backdrop[hidden] { display: none; }
.pv-sheet {
  position: fixed; z-index: 95; inset-inline: 0; bottom: 0;
  max-height: 86vh; overflow-y: auto; overscroll-behavior: contain;
  background: rgba(13, 21, 38, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-bottom: none;
  border-radius: 18px 18px 0 0;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
  transform: translateY(105%); transition: transform .28s ease;
  box-shadow: 0 -14px 44px rgba(0, 0, 0, .55);
}
.pv-sheet.open { transform: none; }
.pv-sheet[hidden] { display: none; }
.pv-grab {
  width: 42px; height: 4px; border-radius: 99px;
  background: #3a4a6e; margin: 2px auto 10px;
}
.pv-close {
  position: absolute; top: 10px; inset-inline-end: 12px;
  width: 34px; height: 34px; border-radius: 10px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  font-size: 14px; line-height: 1;
  transition: transform .18s ease, border-color .18s ease;
}
.pv-close:hover { border-color: var(--accent); }
.pv-close:active { transform: scale(.92); }
.pv-body { display: flex; gap: 14px; align-items: flex-start; }
.pv-poster {
  width: 92px; flex: none; border-radius: 10px; display: block;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .5);
}
.pv-info { flex: 1 1 auto; min-width: 0; }
.pv-title { margin: 2px 0 4px; font-size: 19px; line-height: 1.35; }
.pv-meta { color: var(--muted); margin: 0 0 6px; font-size: 13.5px; }
.pv-where { margin: 0 0 6px; font-size: 13.5px; color: #d7e0f2; }
.pv-where .badge { margin-top: 0; }
.pv-syn {
  margin: 0; color: #d7e0f2; font-size: 14px; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.pv-actions { display: flex; gap: 10px; margin-top: 14px; }
.pv-btn {
  flex: 1 1 0; text-align: center; padding: 12px 10px;
  border-radius: 999px; font-weight: 800; font-size: 15.5px;
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  transition: transform .15s ease, filter .15s ease, border-color .15s ease;
}
.pv-btn:hover { text-decoration: none; border-color: var(--accent); }
.pv-btn:active { transform: scale(.97); }
.pv-btn.primary { background: var(--accent2); border-color: var(--accent2); color: #fff; }
.pv-btn.primary:hover { filter: brightness(1.1); }
@media (min-width: 720px) {
  .pv-sheet {
    inset-inline: auto; left: 50%; bottom: auto; top: 50%;
    width: min(560px, 92vw); max-height: 86vh;
    border-bottom: 1px solid var(--line); border-radius: 18px;
    padding-top: 16px;
    opacity: 0; transform: translate(-50%, -47%) scale(.97);
    transition: transform .26s ease, opacity .26s ease;
  }
  .pv-sheet.open { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  .pv-grab { display: none; }
}

/* Drawer categories section */
.drawer { overflow-y: auto; overscroll-behavior: contain; }
.drawer-sep { border-top: 1px solid var(--line); margin: 12px 4px 4px; }
.drawer-heading {
  margin: 6px 10px 4px; font-size: 13px; font-weight: 800;
  letter-spacing: .04em; color: var(--muted); text-transform: uppercase;
}
.drawer a.drawer-cat { font-size: 15.5px; font-weight: 600; padding: 9px 10px; }

/* FAQ block on movie pages (visible text mirrors the FAQPage JSON-LD) */
.faq { margin: 26px 0 6px; }
.faq h2 { font-size: 20px; margin: 0 0 12px; }
.faq-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; margin-bottom: 10px;
}
.faq-item h3 { margin: 0 0 6px; font-size: 16px; color: var(--accent); }
.faq-item p { margin: 0; color: var(--text); line-height: 1.65; }

/* Watch-guide section on movie pages (search-phrase heading + honest
   availability summary) and the legal-free landing pages (2026-11-08) */
.watch-guide {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; margin: 22px 0 4px;
}
.watch-guide h2 { font-size: 19px; margin: 0 0 8px; color: var(--accent); }
.watch-guide p { margin: 0; color: var(--text); line-height: 1.75; }
.aka-label { color: var(--text); font-weight: 700; }
.free-intro { color: var(--text); line-height: 1.8; max-width: 760px; }
/* Genre hub intro (2026-11-18): written text block on category landings. */
.genre-intro { max-width: 760px; margin: 4px 0 14px; }
.genre-intro p { color: var(--text); line-height: 1.8; margin: 0 0 10px; }
.genre-intro .genre-links { font-weight: 700; }
.genre-intro .genre-links a { color: var(--accent); }
.free-card .card { height: auto; }
.free-badge {
  margin: 6px 2px 14px; font-size: 13.5px; font-weight: 700;
  color: var(--accent);
}
.free-note { margin-top: 10px; }

/* ===== Blog (added 2026-11-08): index cards + article pages ===== */
.blog-wrap { max-width: 1100px; margin: 0 auto; padding: 6px 14px 10px; }
.blog-intro { color: var(--muted); line-height: 1.8; max-width: 720px; }
.blog-grid {
  display: grid; gap: 16px; margin-top: 16px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.blog-card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; color: var(--text);
}
.blog-card:hover { text-decoration: none; border-color: var(--accent); }
.blog-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; display: block; }
.blog-card-body { padding: 14px 16px 16px; }
.blog-date { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.blog-card-body h2 { font-size: 19px; line-height: 1.45; margin: 0 0 8px; }
.blog-excerpt { color: #d7e0f2; line-height: 1.7; margin: 0 0 10px; font-size: 15px; }
.blog-more { color: var(--accent); font-weight: 700; font-size: 14px; }
.blog-article { max-width: 820px; margin: 0 auto; padding: 6px 14px 10px; }
.blog-back { margin: 4px 0 10px; font-size: 14px; }
.article-hero {
  width: 100%; max-height: 340px; object-fit: cover; object-position: top;
  border-radius: 14px; display: block; margin: 10px 0 16px;
}
.article-text p { line-height: 1.85; color: #e6ecf8; }
.article-sec {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; margin: 16px 0;
}
.article-poster { flex: none; width: 92px; }
.article-poster img { width: 92px; border-radius: 8px; display: block; }
.article-sec-body { flex: 1 1 auto; min-width: 0; }
.article-sec-body h2 { margin: 0 0 4px; font-size: 20px; line-height: 1.4; }
.article-sec-body h2 a { color: var(--text); }
.article-sec-body h2 a:hover { color: var(--accent); text-decoration: none; }
.article-meta { color: var(--muted); font-size: 13.5px; margin: 0 0 8px; }
.article-sec-body p { margin: 0 0 8px; }
.article-where {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 12px; font-size: 14.5px;
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .article-sec { flex-direction: column; }
  .article-poster { width: 120px; }
  .article-poster img { width: 120px; }
}

/* Cast section + actor pages (2026-11-09) */
.cast { margin: 22px 0 6px; }
.cast h2 { font-size: 20px; margin: 0 0 12px; }
.cast-char { color: var(--muted); font-size: 13px; }
.actor-intro { color: var(--text); line-height: 1.8; max-width: 760px; }
/* Photo cast cards + actor profiles (2026-11-10): cast entries are
   visual cards (TMDB profile photo, name, character) linking to the
   actor profile page; actors without a photo get an initials tile. */
.cast-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 12px;
}
.cast-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 6px 9px; color: var(--text);
}
.cast-card:hover { border-color: var(--accent); text-decoration: none; }
.cast-card img {
  width: 72px; height: 72px; object-fit: cover; object-position: center 22%;
  border-radius: 50%; margin-bottom: 7px; background: var(--bg2);
}
.cast-ph {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 50%; margin-bottom: 7px;
  background: var(--bg2); border: 1px solid var(--line);
  color: var(--muted); font-size: 24px; font-weight: 700;
}
.cast-name { font-weight: 600; font-size: 14px; line-height: 1.35; }
.cast-card .cast-char { display: block; margin-top: 2px; }
/* Actor profile header + facts */
.actor-head { display: flex; gap: 20px; align-items: flex-start; margin: 6px 0 4px; }
.actor-photo {
  width: 150px; height: auto; aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); flex: none;
}
.cast-ph.big {
  width: 150px; height: 225px; border-radius: 12px; font-size: 44px; margin: 0; flex: none;
}
.actor-head-info { min-width: 0; }
.actor-head-info .page-title { margin-top: 0; }
.pfacts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 12px 0 0; }
.pfact dt { color: var(--muted); font-size: 13px; margin: 0 0 2px; }
.pfact dd { margin: 0; font-weight: 600; font-size: 15.5px; }
.actor-bio, .actor-personal { margin: 20px 0 4px; max-width: 860px; }
.actor-bio h2, .actor-personal h2 { font-size: 20px; margin: 0 0 10px; }
.actor-bio p { line-height: 1.9; margin: 0 0 10px; }
.src-note { color: var(--muted); font-size: 12.5px; margin: 8px 0 0; }
.actor-films-h { font-size: 21px; margin: 24px 0 12px; }
@media (max-width: 640px) {
  .actor-head { flex-direction: column; }
  .actor-photo { width: 120px; }
  .cast-ph.big { width: 120px; height: 180px; }
}
/* Actors index (2026-11-10): compact name + film-count rows in a
   responsive multi-column grid — text only, no posters, so a
   200-actor page stays light. */
.actor-index {
  list-style: none; padding: 0; margin: 18px 0 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 22px;
}
.actor-index li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px;
}
.actor-index a { font-weight: 600; color: var(--text); }
.actor-index a:hover { color: var(--accent); text-decoration: none; }
.actor-count { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* Actors section tabs (2026-11-10): All actors / «ممثلون عرب» switcher
   above the actors index and the Arab-actors page. */
.actor-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 14px; }
.actor-tabs .tab {
  padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--text); font-weight: 600; font-size: 15px;
}
.actor-tabs .tab:hover { color: var(--accent); text-decoration: none; }
.actor-tabs .tab.active { background: var(--accent); border-color: var(--accent); color: #0d1526; }
