/* Self-hosted Vazirmatn — no CDN / Google Fonts dependency */
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url("../fonts/vazirmatn/vazirmatn-arabic-300-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url("../fonts/vazirmatn/vazirmatn-latin-300-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/vazirmatn/vazirmatn-arabic-400-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/vazirmatn/vazirmatn-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/vazirmatn/vazirmatn-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../fonts/vazirmatn/vazirmatn-arabic-500-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../fonts/vazirmatn/vazirmatn-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("../fonts/vazirmatn/vazirmatn-arabic-600-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("../fonts/vazirmatn/vazirmatn-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/vazirmatn/vazirmatn-arabic-700-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/vazirmatn/vazirmatn-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/vazirmatn/vazirmatn-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url("../fonts/vazirmatn/vazirmatn-arabic-800-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url("../fonts/vazirmatn/vazirmatn-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  --color-primary: #141226;
  --color-on-primary: #ffffff;
  --color-secondary: #251433;
  --color-accent: #e91e63;
  --color-accent-hover: #f06292;
  --color-background: #0b0b10;
  --color-foreground: #f8fafc;
  --color-muted: #16161f;
  --color-muted-2: #1c1c28;
  --color-border: #2e2a42;
  --color-destructive: #ef4444;
  --color-text-muted: #a1a1aa;
  --ring: #e91e63;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --radius: 16px;
  --header-h: 76px;
  --poster-w: 180px;
  --poster-h: 270px;
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  direction: rtl;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: "Vazirmatn", Tahoma, sans-serif;
  background: var(--color-background);
  color: var(--color-foreground);
  min-height: 100vh;
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
  overscroll-behavior-x: none;
  direction: rtl;
  text-align: right;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, a, input, select, label, summary {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
button { font-family: inherit; }
/* Kill default browser blue focus/tap flash; keep accent ring for keyboard only */
:focus { outline: none; }
:focus:not(:focus-visible) { outline: none; box-shadow: none; }
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
a:active, button:active {
  color: inherit;
}
#main {
  overflow-x: hidden;
  max-width: 100%;
}
.sr-only, .skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.skip-link:focus {
  width: auto;
  height: auto;
  clip: auto;
  inset: 8px;
  background: var(--color-accent);
  color: white;
  padding: 8px 12px;
  z-index: 80;
  border-radius: 8px;
}
.container {
  width: min(1280px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  width: 100%;
  max-width: 100%;
  height: var(--header-h);
  background: rgba(11, 11, 16, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
  box-sizing: border-box;
}
.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  background: rgba(11, 11, 16, 0.92);
}
.header-inner {
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  min-width: 0;
  padding-inline: max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
  overflow: hidden;
}
.brand { flex-shrink: 0; }
.brand img { height: 44px; width: auto; max-width: 148px; object-fit: contain; }
.nav { display: flex; gap: 18px; margin-inline-end: auto; }
.nav a {
  color: var(--color-text-muted);
  font-weight: 500;
  white-space: nowrap;
  transition: color 180ms var(--ease);
}
.nav a:hover, .nav a:focus-visible { color: white; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.header-account { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; }
.menu-btn .i-close { display: none; }
.menu-btn.is-open .i-menu { display: none; }
.menu-btn.is-open .i-close { display: block; }
.icon-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--color-muted);
  color: white;
  display: grid;
  place-items: center;
  transition: background 180ms var(--ease), transform 180ms var(--ease);
}
.icon-btn:hover { background: var(--color-muted-2); }
.icon-btn:active { transform: scale(0.97); }
.icon-btn:focus-visible, .btn:focus-visible, .input:focus-visible, select:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  transition: background 180ms var(--ease), transform 180ms var(--ease), opacity 180ms var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--color-accent); color: white; }
.btn-primary:hover { background: var(--color-accent-hover); }
.btn-ghost { background: rgba(255,255,255,0.08); color: white; }
.btn-ghost:hover { background: rgba(255,255,255,0.14); }
.btn-lg { min-height: 52px; padding: 0 24px; }
.btn-block { width: 100%; }
.btn-disabled { background: #2a2a35; color: #888; cursor: not-allowed; }
.inline-form { display: inline; }

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--color-muted);
}
.pill-ok { background: rgba(34, 197, 94, 0.16); color: #86efac; }

.drawer[hidden] { display: none !important; }
.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}
.drawer.is-open { pointer-events: auto; }
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  opacity: 0;
  transition: opacity 220ms var(--ease);
}
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  display: flex;
  flex-direction: column;
  background: #12121a;
  border-left: 1px solid var(--color-border);
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(110%);
  transition: transform 280ms var(--ease);
  pointer-events: auto;
}
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.drawer-head img { height: 36px; width: auto; }
.drawer-nav { display: grid; gap: 4px; }
.drawer-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--color-foreground);
  font-weight: 600;
}
.drawer-nav a:hover,
.drawer-nav a:focus-visible { background: var(--color-muted); }
.drawer-foot {
  margin-top: auto;
  display: grid;
  gap: 12px;
  padding-top: 16px;
}

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 60;
  display: none;
  align-items: start;
  justify-content: center;
  padding-top: 12vh;
  backdrop-filter: blur(8px);
}
.search-overlay.is-open,
.search-overlay:not([hidden]) {
  display: grid;
}
.search-overlay[hidden] {
  display: none !important;
}
.search-panel {
  width: min(720px, calc(100% - 32px));
  margin-inline: auto;
  background: #14141c;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
}
.search-input {
  flex: 1;
  background: transparent;
  border: 0;
  color: white;
  font: inherit;
  font-size: 18px;
  outline: none;
}
.search-close { flex-shrink: 0; }
.suggest-list { max-height: 360px; overflow: auto; }
.suggest-item {
  display: flex;
  gap: 12px;
  padding: 10px 16px;
  align-items: center;
  transition: background 160ms var(--ease);
}
.suggest-item:hover { background: var(--color-muted); }
.suggest-item img {
  width: 42px;
  height: 63px;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  flex-shrink: 0;
}

.hero {
  position: relative;
  height: min(78vh, 760px);
  min-height: 520px;
  overflow: hidden;
  background: #07070c;
  touch-action: pan-y;
}
.hero-track { position: relative; height: 100%; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
  transition: opacity 700ms var(--ease), transform 900ms var(--ease);
}
.hero-slide.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  z-index: 1;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 25%;
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.02);
  image-rendering: auto;
}
.hero-bg-poster { display: none; }
.hero-slide.is-active .hero-bg-img {
  animation: heroKen 10s var(--ease) forwards;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11,11,16,0.12) 0%, rgba(11,11,16,0.55) 42%, rgba(11,11,16,0.94) 100%),
    linear-gradient(180deg, rgba(11,11,16,0.2) 0%, transparent 30%, rgba(11,11,16,0.92) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 240px;
  align-items: end;
  gap: 40px;
  padding-bottom: 88px;
}
.hero-copy { max-width: 640px; }
.hero-poster {
  width: 240px;
  height: 360px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.08);
  transform: translateY(12px);
  opacity: 0;
}
.hero-slide.is-active .hero-poster {
  animation: posterIn 600ms 180ms var(--ease) forwards;
}
.hero-poster img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
}
@keyframes heroKen {
  from { transform: scale(1.02); }
  to { transform: scale(1.06); }
}
@keyframes posterIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.kicker { color: var(--color-accent); font-weight: 700; letter-spacing: 0.08em; }
.hero-copy h1, .detail-copy h1, .page-head h1 {
  font-size: clamp(26px, 5vw, 56px);
  line-height: 1.2;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.hero-en {
  color: var(--color-text-muted);
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.hero-meta span,
.hero-meta a {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  color: inherit;
  text-decoration: none;
}
.hero-meta a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-hover);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-nav {
  position: absolute;
  inset-inline: 0;
  bottom: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  z-index: 2;
}
.hero-arrow {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(12,12,18,0.72);
  color: white;
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
  transition: background 180ms var(--ease), transform 180ms var(--ease);
}
.hero-arrow:hover { background: var(--color-accent); border-color: var(--color-accent); }
.hero-arrow:active { transform: scale(0.97); }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.35);
  transition: width 220ms var(--ease), background 220ms var(--ease);
}
.hero-dots button.is-active { width: 26px; background: var(--color-accent); }
.hero-progress {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255,255,255,0.08);
  z-index: 3;
  overflow: hidden;
}
.hero-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--color-accent);
}
.hero-progress.is-running span {
  animation: heroBar 6.5s linear forwards;
}
@keyframes heroBar {
  from { width: 0; }
  to { width: 100%; }
}

.row { padding: 32px 0 12px; max-width: 100%; overflow: hidden; }
.row-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 14px; }
.row-head h2 { margin: 0; font-size: 22px; }
.more { color: var(--color-accent); font-weight: 600; }
.rail-wrap {
  position: relative;
  padding-inline: 8px;
  max-width: 100%;
  overflow: hidden;
}
.rail-wrap::before,
.rail-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 18px;
  width: 48px;
  z-index: 2;
  pointer-events: none;
}
.rail-wrap::before {
  right: 8px;
  background: linear-gradient(90deg, rgba(11,11,16,0), var(--color-background));
}
.rail-wrap::after {
  left: 8px;
  background: linear-gradient(270deg, rgba(11,11,16,0), var(--color-background));
}
.rail {
  display: flex;
  gap: 16px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 10px 16px 22px;
  scrollbar-width: none;
  scroll-padding-inline: 16px;
  -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.rail-btn {
  display: none;
}

.card {
  flex: 0 0 var(--poster-w);
  width: var(--poster-w);
  min-width: var(--poster-w);
  max-width: var(--poster-w);
  scroll-snap-align: start;
}
.card-link { display: block; }
.poster {
  position: relative;
  width: var(--poster-w);
  height: var(--poster-h);
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-muted);
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
}
.poster img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  transition: transform 280ms var(--ease);
}
.card:hover .poster img { transform: scale(1.06); }
.imdb {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.72);
  color: #f5c518;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 8px;
}
.card-hover {
  position: absolute;
  inset: auto 0 0;
  padding: 28px 10px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.88));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}
.card:hover .card-hover { opacity: 1; transform: none; }
.play-mini {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--color-accent);
  margin-bottom: 6px;
}
.card-title {
  font-size: 14px;
  margin: 8px 0 0;
  height: 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-meta {
  margin: 0;
  height: 18px;
  color: var(--color-text-muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.poster-fallback { height: 100%; display: grid; place-items: center; padding: 12px; text-align: center; }

.page-head { padding: 32px 0 8px; }
.page-lead {
  margin: 8px 0 0;
  color: var(--color-text-muted);
  font-size: 15px;
}
.nav-link-btn,
.drawer-link-btn {
  appearance: none;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  text-align: inherit;
}
.nav-link-btn {
  color: var(--color-text-muted);
  font-weight: 600;
  transition: color 160ms var(--ease);
}
.nav-link-btn:hover { color: white; }
.drawer-link-btn {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--color-foreground);
}
.drawer-link-btn:hover { background: var(--color-muted); }
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.category-grid-modal {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}
.categories-panel {
  width: min(560px, 100%);
}
.category-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: linear-gradient(160deg, rgba(233,30,99,0.12), rgba(22,22,31,0.9));
  color: inherit;
  text-decoration: none;
  text-align: center;
  transition: border-color 180ms var(--ease), transform 180ms var(--ease), background 180ms var(--ease);
}
.category-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}
.category-card:active { transform: scale(0.98); }
.category-name {
  font-size: 15px;
  font-weight: 700;
}
.browse-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.browse-toolbar h1 { margin: 0; }
.browse-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 280px;
  justify-content: flex-end;
  min-width: 0;
}
.browse-search {
  flex: 1 1 auto;
  max-width: 420px;
  min-width: 0;
}
.filter-btn.is-on {
  background: rgba(233, 30, 99, 0.22);
  color: var(--color-accent-hover);
  box-shadow: inset 0 0 0 1px rgba(233, 30, 99, 0.45);
}
.filter-modal[hidden] { display: none !important; }
.filter-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 16px;
}
.filter-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}
.filter-panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: min(86vh, 720px);
  overflow: auto;
  background: #14121f;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-lg);
}
.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.filter-head h2 {
  margin: 0;
  font-size: 18px;
}
.filters {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr) auto;
  gap: 10px;
  margin-top: 16px;
}
.filters-modal {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 0;
}
.filters-modal .field {
  display: grid;
  gap: 6px;
}
.filters-modal .field > span {
  font-size: 13px;
  color: var(--color-text-muted);
}
.filter-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
}
.filter-actions .btn { min-width: 120px; }
.input, select.input {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: var(--color-muted);
  color: white;
  padding: 0 14px;
  font: inherit;
}
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--poster-w), 1fr));
  gap: 18px;
  padding: 20px 0 64px;
  justify-content: start;
}
.poster-grid .card {
  flex: none;
  width: 100%;
  min-width: 0;
  max-width: none;
}
.poster-grid .poster {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
}
.empty { text-align: center; padding: 64px 16px; }

.detail {
  position: relative;
  padding: 48px 0 24px;
  overflow: hidden;
  isolation: isolate;
}
.detail-bg {
  position: absolute;
  inset: -24px;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(11,11,16,0.72), #0b0b10 88%),
    var(--poster) center / cover no-repeat;
  filter: blur(10px);
  /* no transform — avoids a separate scrolling compositor layer on mobile */
}
.detail-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.detail-main { min-width: 0; }
.detail-poster {
  position: relative;
  width: 260px;
  height: 390px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-muted);
  align-self: start;
}
.detail-poster img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
}
.movie-desc {
  padding: 8px 0 28px;
  max-width: 920px;
}
.movie-desc h2 {
  margin: 0 0 12px;
  font-size: 22px;
}
.movie-desc-body {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 2;
  text-align: justify;
}
.movie-desc-body p { margin: 0 0 14px; }
.watch-desc {
  margin-top: 14px;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.9;
  text-align: justify;
  max-width: 880px;
}
.watch-desc p { margin: 0 0 10px; }
.readmore { max-width: 920px; direction: rtl; }
.readmore-text {
  direction: rtl;
  text-align: justify;
  overflow: hidden;
  max-height: calc(2em * 5);
  line-height: 2;
  white-space: pre-line;
}
.readmore-text p {
  display: block;
  margin: 0 0 14px;
  direction: rtl;
  text-align: justify;
}
.readmore-text p:last-child { margin-bottom: 0; }
.readmore.is-open .readmore-text {
  max-height: none;
  overflow: visible;
}
.readmore-btn {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.readmore-btn:hover { color: var(--color-accent-hover); }
.hint { color: var(--color-text-muted); }

.auth-page {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
  padding: 40px 16px;
  background:
    radial-gradient(circle at 20% 20%, rgba(233,30,99,0.18), transparent 32%),
    var(--color-background);
}
.auth-card {
  width: min(440px, 100%);
  background: rgba(20,20,30,0.9);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.auth-logo { margin: 0 auto 12px; height: 48px; width: auto; }
.field { display: grid; gap: 6px; margin-bottom: 14px; font-size: 14px; }
.field .input { width: 100%; }
.form-error { color: #fda4af; }
.auth-switch, .muted { color: var(--color-text-muted); }
.auth-switch a { color: var(--color-accent); }

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 64px;
}
.price-card {
  position: relative;
  background: var(--color-muted);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 24px;
}
.price-card.is-featured {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent), var(--shadow-lg);
}
.price { font-size: 32px; font-weight: 800; margin: 8px 0 16px; }
.price small { font-size: 14px; color: var(--color-text-muted); }
.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--color-accent);
  color: white;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
}
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: right; padding: 10px 8px; border-bottom: 1px solid var(--color-border); }
.account-box { padding-bottom: 64px; }
.flash-wrap { padding-top: 16px; }
.flash {
  background: rgba(233,30,99,0.16);
  border: 1px solid rgba(233,30,99,0.35);
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 0 40px;
  color: var(--color-text-muted);
  max-width: 100%;
  overflow-x: hidden;
}
.footer-inner {
  max-width: 100%;
}
.footer-brand { margin-bottom: 16px; }
.footer-brand img { height: 36px; width: auto; }
.footer-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  max-width: 100%;
}
.footer-copy {
  flex: 0 0 33.333%;
  max-width: 33.333%;
  min-width: 0;
}
.footer-slogan {
  margin: 0;
  text-align: justify;
  line-height: 1.9;
  font-size: 14px;
  color: var(--color-text-muted);
}
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 0;
  margin-inline-start: auto;
  max-width: 100%;
}
.trust-badge,
.trust-badge-btn {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  padding: 4px;
  border: 0;
  border-radius: 8px;
  background: #cccccc;
  cursor: pointer;
}
.trust-badge img,
.trust-badge-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0;
}

.dash-body { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.dash-side {
  background: #100e18;
  border-left: 1px solid var(--color-border);
  padding: 20px;
}
.dash-side nav { display: grid; gap: 8px; margin-top: 24px; }
.dash-side a { padding: 10px 12px; border-radius: 12px; color: var(--color-text-muted); }
.dash-side a:hover { background: var(--color-muted); color: white; }
.dash-main { padding: 28px; }
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.stat {
  background: var(--color-muted);
  border-radius: 16px;
  padding: 16px;
}
.stat strong { display: block; font-size: 28px; }
.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.dash-head { display: flex; justify-content: space-between; align-items: center; }
.plain { list-style: none; padding: 0; }
.plain li { padding: 8px 0; border-bottom: 1px solid var(--color-border); }
.dash-form { max-width: 520px; }

@media (max-width: 1024px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .pricing, .stat-grid, .dash-cols { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 200px 1fr; }
  .hero-inner { grid-template-columns: 1fr 180px; gap: 24px; }
  .hero-poster { width: 180px; height: 270px; }
}
@media (max-width: 768px) {
  :root {
    --poster-w: 124px;
    --poster-h: 186px;
    --header-h: 64px;
  }
  .container { width: min(1280px, calc(100% - 24px)); max-width: 100%; }
  .nav, .header-account, .header-pill { display: none; }
  .menu-btn { display: grid; }
  .header-actions { margin-inline-start: auto; gap: 6px; flex-shrink: 0; }
  .brand { min-width: 0; }
  .brand img { height: 34px; max-width: min(120px, 42vw); }
  .site-header {
    height: var(--header-h);
    width: 100%;
    max-width: 100%;
  }
  .header-inner {
    padding-inline: max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px));
  }

  .search-overlay { padding-top: 10vh; align-items: start; }
  .search-panel { width: calc(100% - 20px); max-width: 100%; border-radius: 16px; }
  .search-input { font-size: 16px; }

  .hero {
    height: min(72vh, 560px);
    min-height: 420px;
    max-width: 100%;
    overflow: hidden;
  }
  .hero-inner {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 14px;
    padding-bottom: 64px;
    max-width: 100%;
  }
  .hero-bg-banner { display: none; }
  .hero-bg-poster {
    display: block;
    object-fit: cover;
    object-position: center 18%;
    filter: saturate(1.1) contrast(1.05);
  }
  .hero-poster {
    display: block;
    width: 112px;
    height: 168px;
    border-radius: 12px;
    opacity: 1;
    transform: none;
    flex-shrink: 0;
    margin-bottom: 4px;
  }
  .hero-slide.is-active .hero-poster {
    animation: none;
  }
  .hero-veil {
    background:
      linear-gradient(180deg, rgba(11,11,16,0.18) 0%, rgba(11,11,16,0.2) 42%, rgba(11,11,16,0.88) 78%, rgba(11,11,16,0.98) 100%);
  }
  .hero-copy { max-width: none; min-width: 0; }
  .hero-copy h1 {
    font-size: clamp(22px, 7vw, 32px);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-en {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
  }
  .hero-meta { margin-bottom: 12px; }
  .hero-meta span:nth-child(n+4) { display: none; }
  .hero-actions { gap: 8px; max-width: 100%; }
  .hero-actions .btn-lg { min-height: 44px; padding: 0 16px; }
  .hero-arrow { display: none; }
  .hero-nav { bottom: 12px; }

  .row { padding: 22px 0 4px; }
  .row-head { margin-bottom: 10px; }
  .row-head h2 { font-size: 18px; }
  .rail-wrap { padding-inline: 0; overflow: hidden; }
  .rail-wrap::before,
  .rail-wrap::after,
  .rail-btn { display: none; }
  .rail {
    gap: 10px;
    padding: 4px 12px 16px;
    scroll-padding-inline: 12px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .card-hover { display: none; }
  .poster { border-radius: 12px; }

  .filters { grid-template-columns: 1fr; }
  .browse-toolbar { align-items: stretch; max-width: 100%; }
  .browse-actions { flex: 1 1 100%; min-width: 0; }
  .browse-search { max-width: none; min-width: 0; }
  .footer-row {
    flex-direction: column;
    gap: 20px;
  }
  .footer-copy {
    flex: none;
    max-width: 100%;
    width: 100%;
  }
  .trust-badges {
    width: 100%;
    justify-content: flex-end;
    margin-inline-start: 0;
    gap: 8px;
  }
  .trust-badge,
  .trust-badge-btn {
    width: 64px;
    height: 64px;
  }
  .poster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px 0 48px;
  }

  .pricing, .stat-grid, .dash-cols, .detail-grid, .dash-body { grid-template-columns: 1fr; }
  .detail { padding: 24px 0 12px; max-width: 100%; overflow: hidden; }
  .detail-grid { justify-items: center; text-align: center; }
  .detail-poster {
    position: relative;
    top: auto;
    width: min(180px, 46vw);
    height: auto;
    aspect-ratio: 2 / 3;
  }
  .detail-main { width: 100%; }
  .detail-copy .hero-actions { justify-content: center; }
  .movie-desc { text-align: justify; }
  .dash-side {
    display: flex;
    gap: 12px;
    align-items: center;
    border-left: 0;
    border-bottom: 1px solid var(--color-border);
  }
  .dash-side nav { display: flex; margin: 0; flex-wrap: wrap; }
  .dash-main { padding: 16px; }
  .dash-head { flex-wrap: wrap; gap: 12px; }
  .table { display: block; overflow-x: auto; max-width: 100%; }
  .auth-page { padding: 32px 12px 48px; max-width: 100%; }
  .auth-card { width: 100%; max-width: 100%; }

  .site-footer { padding: 24px 0 32px; }
  .footer-slogan { font-size: 13px; }
}
@media (max-width: 420px) {
  :root { --poster-w: 108px; --poster-h: 162px; }
  .hero {
    min-height: 400px;
    height: min(70vh, 520px);
  }
  .hero-inner {
    grid-template-columns: 1fr 96px;
    gap: 10px;
    padding-bottom: 56px;
  }
  .hero-poster {
    width: 96px;
    height: 144px;
  }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}
.pwa-install {
  position: fixed;
  inset-inline: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(22, 22, 31, 0.96);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}
.pwa-install[hidden] { display: none !important; }
.pwa-install p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.pwa-install-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pwa-install .btn {
  min-height: 40px;
  padding: 0 14px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .hero-slide.is-active .hero-bg-img,
  .hero-slide.is-active .hero-poster,
  .hero-progress.is-running span { animation: none !important; }
  .hero-poster { opacity: 1; transform: none; }
}
