/* =====================================================================
   ZAPFLIX — LIQUID GLASS DESIGN SYSTEM (v1)
   Apple-inspired dark theme overhaul. Loaded AFTER style.css / admin.css
   and after inline page styles, so it unifies every page:
   public site, admin panel, player, live TV.
   ADDITIVE + OVERRIDE ONLY. No markup or functional changes.
   ===================================================================== */

:root {
  /* Canvas */
  --zfx-bg: #050506;
  --zfx-ink: #f5f5f7;
  --zfx-ink-dim: rgba(245, 245, 247, 0.64);

  /* Brand */
  --zfx-red: #e50914;
  --zfx-red-bright: #ff2c36;
  --zfx-red-deep: #b00610;

  /* Liquid glass surfaces */
  --zfx-glass: rgba(255, 255, 255, 0.045);
  --zfx-glass-strong: rgba(18, 18, 20, 0.72);
  --zfx-glass-chrome: rgba(8, 8, 10, 0.55);
  --zfx-hairline: rgba(255, 255, 255, 0.10);
  --zfx-hairline-strong: rgba(255, 255, 255, 0.16);
  --zfx-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --zfx-blur: blur(28px) saturate(180%);
  --zfx-blur-heavy: blur(44px) saturate(190%);
  --zfx-shadow-card: 0 10px 30px rgba(0, 0, 0, 0.45);
  --zfx-shadow-float: 0 24px 60px rgba(0, 0, 0, 0.65);
  --zfx-shadow-modal: 0 40px 100px rgba(0, 0, 0, 0.8);

  /* Radii */
  --zfx-r-sm: 10px;
  --zfx-r-md: 14px;
  --zfx-r-lg: 20px;
  --zfx-r-pill: 9999px;

  /* Motion */
  --zfx-ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}

/* ============================ CANVAS ============================ */

html.zf-liquid body {
  background-color: var(--zfx-bg);
}

/* Ambient depth layer (injected by js/zapflix-liquid.js) */
.zf-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 800px at 85% -10%, rgba(229, 9, 20, 0.09), transparent 60%),
    radial-gradient(1000px 700px at -10% 25%, rgba(41, 151, 255, 0.06), transparent 60%),
    radial-gradient(900px 900px at 50% 120%, rgba(229, 9, 20, 0.05), transparent 62%);
}

::selection {
  background: rgba(229, 9, 20, 0.55);
  color: #fff;
}

:focus-visible {
  outline: 2px solid rgba(229, 9, 20, 0.85);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Slim scrollbars everywhere (site, player, admin). Chrome/Edge/Safari use the
   ::-webkit-scrollbar rules: a thin rounded pill, no arrow buttons, no box. Do NOT set
   scrollbar-width: thin / scrollbar-color on elements: in Chrome 121+ either one switches
   that element back to the native scrollbar (with the up/down arrows). Firefox (no
   ::-webkit-scrollbar) gets the standard thin bar below. scrollbar-width: none to hide a
   bar is fine. */
::-webkit-scrollbar { width: 10px; height: 10px; background: transparent; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
  min-height: 36px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.34); background-clip: content-box; border-width: 2px; }
::-webkit-scrollbar-thumb:active { background: rgba(229, 9, 20, 0.75); background-clip: content-box; border-width: 2px; }
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.24) transparent; }
}

/* ============================ BRAND ============================ */
/* ZAPFLIX is ALWAYS bold, on every page */

.logo,
.zf-brand,
.navbar .brand,
.sf-top-logo,
.topbar .logo,
.zf-brandmark {
  font-weight: 900 !important;
  letter-spacing: -0.045em !important;
}

.zf-brandmark {
  text-transform: uppercase !important;
  background: linear-gradient(135deg, #ff6b72 0%, var(--zfx-red) 55%, var(--zfx-red-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--zfx-red);
  filter: drop-shadow(0 2px 14px rgba(229, 9, 20, 0.35));
}

/* ============================ NAVBAR (public + live) ============================ */

.navbar {
  background: var(--zfx-glass-chrome) !important;
  -webkit-backdrop-filter: var(--zfx-blur);
  backdrop-filter: var(--zfx-blur);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 30px rgba(0, 0, 0, 0.35);
}

.navbar.scrolled,
.navbar.zf-scrolled {
  background: rgba(5, 5, 6, 0.82) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
}

.navbar .nav-links a {
  border-radius: var(--zfx-r-pill);
  padding: 7px 13px;
  transition: background 0.25s var(--zfx-ease), color 0.25s var(--zfx-ease);
}

.navbar .nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.navbar .nav-links a.active {
  background: rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  color: #fff;
}

/* ============================ BUTTONS ============================ */

.btn,
.btn-submit,
.filter-btn,
.filter-save-btn,
.filter-clear-btn,
.tab-btn,
.tab-button {
  border-radius: 12px;
  transition: transform 0.25s var(--zfx-ease), box-shadow 0.25s var(--zfx-ease),
    background 0.25s var(--zfx-ease), border-color 0.25s var(--zfx-ease);
}

.btn-primary,
.btn-submit,
.filter-save-btn {
  background: linear-gradient(180deg, #f6121d 0%, #c50812 100%) !important;
  border: 0 !important;
  color: #fff !important;
  box-shadow: 0 6px 22px rgba(229, 9, 20, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-primary:hover,
.btn-submit:hover,
.filter-save-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(229, 9, 20, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.btn-primary:active,
.btn-submit:active {
  transform: translateY(0) scale(0.98);
}

.btn-outline,
.btn-gray,
.filter-btn,
.tab-btn,
.tab-button,
.filter-clear-btn,
.lang-toggle,
.view-all-link {
  background: var(--zfx-glass) !important;
  border: 1px solid var(--zfx-hairline) !important;
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  color: var(--zfx-ink) !important;
  box-shadow: var(--zfx-highlight);
}

.btn-outline:hover,
.btn-gray:hover,
.filter-btn:hover,
.tab-btn:hover,
.tab-button:hover,
.filter-clear-btn:hover {
  background: rgba(255, 255, 255, 0.10) !important;
  border-color: var(--zfx-hairline-strong) !important;
  transform: translateY(-1px);
}

.tab-btn.active,
.tab-button.active {
  background: rgba(229, 9, 20, 0.16) !important;
  border-color: rgba(229, 9, 20, 0.45) !important;
  box-shadow: inset 0 0 18px rgba(229, 9, 20, 0.12), 0 4px 16px rgba(229, 9, 20, 0.2);
  color: #fff !important;
}

.genre-pill {
  background: var(--zfx-glass);
  border: 1px solid var(--zfx-hairline);
  border-radius: var(--zfx-r-pill);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.genre-pill:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: var(--zfx-hairline-strong);
  transform: translateY(-1px);
}

/* ============================ MOVIE CARDS & ROWS ============================ */

.movie-card {
  border-radius: var(--zfx-r-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--zfx-glass);
  box-shadow: var(--zfx-shadow-card);
  transition: transform 0.4s var(--zfx-ease), box-shadow 0.4s var(--zfx-ease),
    border-color 0.4s var(--zfx-ease);
}

html.zf-desktop .movie-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.20);
  box-shadow: var(--zfx-shadow-float), 0 0 0 1px rgba(255, 255, 255, 0.06);
  z-index: 5;
}

.movie-card .card-img { border-radius: 0; }

.card-overlay {
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.55) 72%, rgba(0, 0, 0, 0.92) 100%) !important;
}

.top-number-badge {
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8);
}

/* Section headers */
.trending-section-header-left h2,
.content-section h2 {
  letter-spacing: -0.03em;
}

/* ============================ GLASS PANELS / CARDS ============================ */

.card,
.stat-card,
.plan-card,
.privilege-card,
.auth-box,
.payment-box,
.search-result-item,
.episode-item,
.issue-item,
.solution-item,
.security-demo,
.upgrade-modal-content {
  background: var(--zfx-glass) !important;
  border: 1px solid var(--zfx-hairline) !important;
  border-radius: var(--zfx-r-lg) !important;
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  box-shadow: var(--zfx-shadow-card), var(--zfx-highlight) !important;
}

.stat-card,
.plan-card,
.privilege-card {
  transition: transform 0.3s var(--zfx-ease), box-shadow 0.3s var(--zfx-ease), border-color 0.3s;
}

html.zf-desktop .stat-card:hover,
html.zf-desktop .plan-card:hover,
html.zf-desktop .privilege-card:hover {
  transform: translateY(-4px);
  border-color: var(--zfx-hairline-strong) !important;
  box-shadow: var(--zfx-shadow-float), var(--zfx-highlight) !important;
}

.episode-item {
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.episode-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--zfx-hairline-strong) !important;
}

/* ============================ MODALS ============================ */

.modal-overlay,
.filter-modal-overlay {
  background: rgba(0, 0, 0, 0.55) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.modal-content,
.filter-modal {
  background: var(--zfx-glass-strong) !important;
  -webkit-backdrop-filter: var(--zfx-blur-heavy);
  backdrop-filter: var(--zfx-blur-heavy);
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--zfx-r-lg) !important;
  box-shadow: var(--zfx-shadow-modal), inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
}

.modal-close,
.filter-modal-header .modal-close {
  border-radius: 50%;
  transition: background 0.2s, transform 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(90deg);
}

/* ============================ FORMS ============================ */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="url"],
input[type="date"],
select,
textarea {
  background: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  color: #fff !important;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  border-color: rgba(229, 9, 20, 0.65) !important;
  box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.20) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  outline: none;
}

/* Search inputs: Netflix style — the pill wrapper carries the border and background.
   The input inside is bare in every state; the global text-input box above drew a second
   rectangle inside the pill. */
.search-box input,
.netflix-search-box input,
.search-input-wrapper input,
.search-box input:focus,
.netflix-search-box input:focus,
.search-input-wrapper input:focus {
  border: 0 !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  outline: none !important;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

select option {
  background-color: #131315;
  color: #fff;
}

/* ============================ TABLES (admin & site) ============================ */

table thead th {
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--zfx-hairline-strong) !important;
  letter-spacing: 0.02em;
}

table td,
table th {
  border-color: rgba(255, 255, 255, 0.07) !important;
}

table tbody tr {
  transition: background 0.2s;
}

table tbody tr:hover {
  background: rgba(255, 255, 255, 0.045);
}

.zf-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--zfx-r-md);
}

/* ============================ ALERTS / BADGES ============================ */

.alert {
  border-radius: var(--zfx-r-md) !important;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--zfx-hairline);
  box-shadow: var(--zfx-highlight);
}

.alert-success { background: rgba(50, 215, 75, 0.12) !important; border-color: rgba(50, 215, 75, 0.35) !important; }
.alert-error { background: rgba(255, 69, 58, 0.12) !important; border-color: rgba(255, 69, 58, 0.35) !important; }

.role-badge {
  border-radius: var(--zfx-r-pill);
}

/* ============================ ADMIN NAV ============================ */

.zf-admin-nav {
  background: var(--zfx-glass-chrome) !important;
  -webkit-backdrop-filter: var(--zfx-blur);
  backdrop-filter: var(--zfx-blur);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 30px rgba(0, 0, 0, 0.35);
}

.zf-admin-nav .zf-link {
  border-radius: var(--zfx-r-pill);
  padding: 7px 13px;
  transition: background 0.25s, color 0.25s;
}

.zf-admin-nav .zf-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.zf-admin-nav .zf-link.active {
  background: rgba(229, 9, 20, 0.18);
  color: #fff;
  box-shadow: inset 0 0 14px rgba(229, 9, 20, 0.12);
}

/* Admin glassmorphic navbar (admin.css pages) */
body .navbar .brand {
  text-transform: uppercase;
}

/* ============================ FOOTER ============================ */

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02));
}

/* ============================ BILLBOARD / HERO ============================ */

.billboard-content .synopsis {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}

.billboard-buttons .btn {
  border-radius: 12px;
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
}

.billboard-indicators .indicator {
  transition: width 0.3s var(--zfx-ease), background 0.3s;
}

/* ============================ SEARCH ============================ */

.search-box input {
  border-radius: 50px !important;
}

.search-result-item {
  transition: transform 0.25s var(--zfx-ease), border-color 0.25s, background 0.25s;
}

html.zf-desktop .search-result-item:hover {
  transform: translateY(-3px);
  border-color: var(--zfx-hairline-strong) !important;
  background: rgba(255, 255, 255, 0.07) !important;
}

/* ============================ PLAYER (watch.php + custom player) ============================ */

.topbar {
  background: rgba(12, 12, 14, 0.6) !important;
  -webkit-backdrop-filter: var(--zfx-blur);
  backdrop-filter: var(--zfx-blur);
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.09) !important;
}

.tbtn {
  border-radius: var(--zfx-r-pill) !important;
  transition: background 0.2s, transform 0.2s;
}

.tbtn:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  transform: translateY(-1px);
}

.panel,
.sf-panel {
  background: var(--zfx-glass-strong) !important;
  -webkit-backdrop-filter: var(--zfx-blur-heavy);
  backdrop-filter: var(--zfx-blur-heavy);
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--zfx-r-lg) !important;
  box-shadow: var(--zfx-shadow-modal), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.srv-item,
.ep-item,
.sf-episode-item,
.sf-option {
  border-radius: var(--zfx-r-sm);
  transition: background 0.2s, transform 0.2s;
}

.srv-item:hover,
.ep-item:hover,
.sf-episode-item:hover,
.sf-option:hover {
  background: rgba(255, 255, 255, 0.09) !important;
}

/* SF player chrome */
.sf-top-bar {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent) !important;
}

.sf-controls {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent) !important;
}

.sf-control-btn,
.sf-ctrl-btn,
.sf-top-btn {
  border-radius: var(--zfx-r-pill) !important;
  transition: background 0.2s, transform 0.15s;
}

.sf-control-btn:hover,
.sf-ctrl-btn:hover,
.sf-top-btn:hover {
  background: rgba(255, 255, 255, 0.16) !important;
}

.sf-progress-played {
  background: linear-gradient(90deg, var(--zfx-red-deep), var(--zfx-red-bright)) !important;
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.55);
}

.sf-progress-thumb {
  box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.25), 0 2px 8px rgba(0, 0, 0, 0.6) !important;
}

.sf-center-action {
  background: rgba(12, 12, 14, 0.55) !important;
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.sf-next-episode,
.sf-resume-banner {
  background: var(--zfx-glass-strong) !important;
  -webkit-backdrop-filter: var(--zfx-blur);
  backdrop-filter: var(--zfx-blur);
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--zfx-r-md) !important;
  box-shadow: var(--zfx-shadow-float);
}

/* ============================ LIVE TV ============================ */

.side {
  background: rgba(10, 10, 12, 0.58) !important;
  -webkit-backdrop-filter: var(--zfx-blur-heavy);
  backdrop-filter: var(--zfx-blur-heavy);
  border-inline-end: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.chan {
  border-radius: var(--zfx-r-md) !important;
}

.chan:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
}

.chan.active {
  background: rgba(229, 9, 20, 0.16) !important;
  border-color: rgba(229, 9, 20, 0.40) !important;
  box-shadow: inset 0 0 22px rgba(229, 9, 20, 0.10), 0 6px 18px rgba(229, 9, 20, 0.15) !important;
}

.search input {
  border-radius: var(--zfx-r-sm) !important;
}

.badge {
  border-radius: 6px !important;
  box-shadow: 0 4px 14px rgba(255, 59, 48, 0.4);
}

/* ============================ AUTH PAGES ============================ */

.auth-box {
  box-shadow: var(--zfx-shadow-modal), var(--zfx-highlight) !important;
}

/* ============================ MOTION SAFETY ============================ */

@media (prefers-reduced-motion: reduce) {
  html.zf-liquid *,
  html.zf-liquid *::before,
  html.zf-liquid *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  html.zf-desktop .movie-card:hover,
  html.zf-desktop .stat-card:hover,
  html.zf-desktop .plan-card:hover {
    transform: none;
  }
}


/* ============================================================
   ZFX2 — Wave 2 polish: growth popup, rewards, wishlist, players
   ============================================================ */

/* ---------- Growth offer popup (Make ZapFlix yours) ---------- */
.zf-growth-card{
  background:rgba(16,16,20,.78) !important;
  -webkit-backdrop-filter:blur(44px) saturate(180%);
  backdrop-filter:blur(44px) saturate(180%);
  border:1px solid rgba(255,255,255,.14) !important;
  border-radius:24px !important;
  box-shadow:0 30px 90px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.08) !important;
  padding:24px 22px 18px !important;
  font-family:'Inter','Noto Sans Arabic',Arial,sans-serif !important;
}
.zf-growth-icon{
  width:44px; height:44px; border-radius:14px; flex-shrink:0;
  background:linear-gradient(135deg,#ff3b45,#E50914 55%,#8E050C);
  box-shadow:0 10px 26px rgba(229,9,20,.45), inset 0 1px 0 rgba(255,255,255,.25);
  color:#fff !important; font-size:21px !important;
}
.zf-growth-title{ font-size:19px !important; font-weight:800 !important; letter-spacing:-.02em; }
.zf-growth-body{ color:#c7c7cc !important; font-size:14px !important; line-height:1.55 !important; }
.zf-growth-primary{
  background:linear-gradient(180deg,#F5222E,#C00812) !important;
  border-radius:14px !important; padding:13px 12px !important;
  font-weight:800 !important; font-size:15px !important;
  box-shadow:0 12px 28px rgba(229,9,20,.4), inset 0 1px 0 rgba(255,255,255,.22) !important;
  transition:transform .15s ease, filter .2s ease, box-shadow .2s ease !important;
}
.zf-growth-primary:hover{ background:linear-gradient(180deg,#ff2f3b,#d10913) !important; transform:translateY(-1px); }
.zf-growth-primary:active{ transform:scale(.98); }
.zf-growth-secondary{
  background:rgba(255,255,255,.09) !important;
  border:1px solid rgba(255,255,255,.14) !important;
  border-radius:14px !important; padding:12px !important;
  font-weight:700 !important; font-size:14px !important;
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
  transition:background .2s ease, transform .15s ease !important;
}
.zf-growth-secondary:hover{ background:rgba(255,255,255,.16) !important; }
.zf-growth-close{
  width:32px; height:32px; border-radius:50% !important;
  background:rgba(255,255,255,.08) !important;
  display:flex; align-items:center; justify-content:center;
  font-size:19px !important; color:#b9b9c0 !important;
  transition:background .2s ease, color .2s ease !important;
}
.zf-growth-close:hover{ background:rgba(255,255,255,.16) !important; color:#fff !important; }
.zf-growth-mini{ color:#8e8e93 !important; font-size:11.5px !important; letter-spacing:.01em; }
.zf-bonus-toast{
  background:rgba(10,26,18,.85) !important;
  -webkit-backdrop-filter:blur(30px) saturate(170%); backdrop-filter:blur(30px) saturate(170%);
  border:1px solid rgba(0,255,133,.3) !important; border-radius:16px !important;
}

/* ---------- Rewards page ---------- */
.points-header{
  background:linear-gradient(135deg, rgba(229,9,20,.88), rgba(114,4,10,.88)) !important;
  -webkit-backdrop-filter:blur(30px) saturate(160%); backdrop-filter:blur(30px) saturate(160%);
  border:1px solid rgba(255,255,255,.18) !important;
  border-radius:24px !important;
  box-shadow:0 26px 80px rgba(229,9,20,.32), inset 0 1px 0 rgba(255,255,255,.25) !important;
  position:relative; overflow:hidden;
}
.points-header::after{
  content:""; position:absolute; top:-70%; inset-inline-end:-15%; width:55%; height:230%;
  background:radial-gradient(closest-side, rgba(255,255,255,.22), transparent 70%);
  pointer-events:none;
}
.points-header h1{ letter-spacing:-.02em; }
.points-balance{ text-shadow:0 2px 18px rgba(0,0,0,.35); position:relative; z-index:1; }
.earn-card, .store-item, .active-rewards-list, .expired-rewards-list{
  background:rgba(255,255,255,.05) !important;
  border:1px solid rgba(255,255,255,.12) !important;
  border-radius:20px !important;
  -webkit-backdrop-filter:blur(30px) saturate(160%); backdrop-filter:blur(30px) saturate(160%);
  box-shadow:0 18px 50px rgba(0,0,0,.45);
}
.earn-card:hover{ transform:translateY(-4px); border-color:rgba(229,9,20,.45) !important; box-shadow:0 26px 70px rgba(0,0,0,.6), 0 0 0 1px rgba(229,9,20,.2); }
.store-item:hover{ transform:translateY(-4px); border-color:rgba(70,211,105,.4) !important; box-shadow:0 26px 70px rgba(0,0,0,.6); }
.earn-btn{
  background:linear-gradient(180deg,#F5222E,#C00812) !important;
  border-radius:14px !important;
  box-shadow:0 12px 30px rgba(229,9,20,.35), inset 0 1px 0 rgba(255,255,255,.22);
  transition:transform .15s ease, filter .2s ease !important;
}
.earn-btn:hover{ filter:brightness(1.08); transform:translateY(-1px); background:linear-gradient(180deg,#F5222E,#C00812) !important; }
.earn-btn:disabled{ background:rgba(255,255,255,.08) !important; color:#8e8e93 !important; box-shadow:none; transform:none; filter:none; }
.buy-btn{
  border-radius:13px !important; font-weight:800 !important;
  background:linear-gradient(180deg,#4fe273,#33a852) !important; color:#04180a !important;
  box-shadow:0 10px 26px rgba(70,211,105,.28), inset 0 1px 0 rgba(255,255,255,.35);
  transition:transform .15s ease, filter .2s ease !important;
}
.buy-btn:hover{ filter:brightness(1.07); transform:translateY(-1px); background:linear-gradient(180deg,#4fe273,#33a852) !important; }
.store-item .cost{ text-shadow:0 0 20px rgba(70,211,105,.45); }
.ads-left{
  background:rgba(255,255,255,.1) !important; border:1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
}
.cooldown-timer{ text-shadow:0 0 18px rgba(229,9,20,.5); }
.active-rewards-list h3{ text-shadow:0 0 16px rgba(70,211,105,.35); }
.active-reward-item{ border-bottom:1px solid rgba(255,255,255,.08) !important; }
.promo-timer{ background:rgba(16,16,20,.6) !important; -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px); border:1px solid rgba(255,255,255,.14); }
.close-promo{ background:rgba(255,255,255,.14) !important; -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px); border:1px solid rgba(255,255,255,.18) !important; }
.close-promo:hover{ background:rgba(229,9,20,.85) !important; }

/* ---------- Wishlist (+) button on movie cards ---------- */
.zf-wish-btn{
  position:absolute; top:8px; inset-inline-start:8px; z-index:12;
  width:34px; height:34px; border-radius:50%; padding:0;
  border:1px solid rgba(255,255,255,.28);
  background:rgba(10,10,14,.7); /* no backdrop blur: one per card, see .card-btn in zapflix-polish.css */
  color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer;
  opacity:0; transform:scale(.88);
  transition:transform .18s ease, background .2s ease, border-color .2s ease, opacity .18s ease, box-shadow .2s ease;
}
.movie-card:hover .zf-wish-btn, .zf-wish-btn:focus-visible{ opacity:1; transform:scale(1); }
html.zf-mobile .zf-wish-btn{ opacity:1; transform:scale(1); width:36px; height:36px; }
.zf-wish-btn svg{ width:18px; height:18px; fill:currentColor; pointer-events:none; }
.zf-wish-btn:hover{ background:rgba(229,9,20,.88); border-color:transparent; transform:scale(1.1); box-shadow:0 8px 22px rgba(229,9,20,.45); }
.zf-wish-btn:active{ transform:scale(.95); }
.zf-wish-btn.in-list{
  opacity:1;
  background:linear-gradient(180deg,#F5222E,#C00812);
  border-color:transparent;
  box-shadow:0 6px 18px rgba(229,9,20,.5), inset 0 1px 0 rgba(255,255,255,.25);
}
.zf-wish-toast{
  position:fixed; bottom:24px; left:50%; z-index:100001;
  transform:translateX(-50%) translateY(16px);
  background:rgba(16,16,20,.85);
  -webkit-backdrop-filter:blur(30px) saturate(170%); backdrop-filter:blur(30px) saturate(170%);
  border:1px solid rgba(255,255,255,.16); color:#fff;
  padding:12px 20px; border-radius:9999px;
  font-weight:700; font-size:14px; font-family:'Inter','Noto Sans Arabic',Arial,sans-serif;
  box-shadow:0 18px 50px rgba(0,0,0,.6);
  opacity:0; transition:opacity .25s ease, transform .25s ease;
  display:flex; gap:12px; align-items:center; max-width:calc(100vw - 32px); white-space:nowrap;
}
.zf-wish-toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }
.zf-wish-toast a{ color:#ff6b62; font-weight:800; text-decoration:none; }
.zf-wish-toast a:hover{ color:#ff8a82; }

/* ---------- My List page ---------- */
.mylist-container{ max-width:1280px; margin:0 auto; padding:100px 4% 90px; }
.mylist-head{ margin-bottom:8px; }
.mylist-title{ font-size:34px; font-weight:900; letter-spacing:-.03em; margin:0; }
.mylist-sub{ color:#8e8e93; font-size:14px; font-weight:600; margin-top:6px; }
.mylist-grid{
  display:grid; grid-template-columns:repeat(auto-fill, minmax(165px, 1fr));
  gap:16px; margin-top:26px;
}
.mylist-grid .movie-card{ flex:none; width:auto; }
.zf-card-strip{ padding:10px 10px 12px; display:flex; flex-direction:column; gap:2px; }
.zf-card-strip strong{ font-size:13.5px; font-weight:800; line-height:1.25; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.zf-card-strip span{ font-size:11.5px; color:#c7c7cc; font-weight:600; }
.zf-empty-list{
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center;
  gap:10px; padding:70px 24px; margin-top:26px;
  background:rgba(255,255,255,.04); border:1px dashed rgba(255,255,255,.16); border-radius:24px;
  -webkit-backdrop-filter:blur(24px); backdrop-filter:blur(24px);
}
.zf-empty-list .zf-empty-icon{ font-size:40px; }
.zf-empty-list h3{ font-size:20px; font-weight:800; margin:0; }
.zf-empty-list p{ color:#a8a8ad; font-size:14px; margin:0 0 14px; max-width:420px; line-height:1.6; }

/* ---------- Movie player (watch.php) polish ---------- */
.panel{
  background:rgba(14,14,18,.8) !important;
  -webkit-backdrop-filter:blur(44px) saturate(180%); backdrop-filter:blur(44px) saturate(180%);
  border:1px solid rgba(255,255,255,.13) !important;
  border-radius:20px !important;
  box-shadow:0 30px 80px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.07) !important;
}
.panel .panel-head{ border-bottom:1px solid rgba(255,255,255,.08); }
.panel .x{
  width:30px; height:30px; border-radius:50%; border:none;
  background:rgba(255,255,255,.08); color:#c7c7cc; cursor:pointer;
  transition:background .2s ease, color .2s ease;
}
.panel .x:hover{ background:rgba(255,255,255,.16); color:#fff; }
.srv-item{ border-radius:14px !important; border:1px solid transparent !important; transition:all .2s ease !important; }
.srv-item:hover{ background:rgba(255,255,255,.07) !important; border-color:rgba(255,255,255,.12) !important; }
.srv-item.active{
  background:rgba(229,9,20,.16) !important;
  border-color:rgba(229,9,20,.45) !important;
  box-shadow:inset 0 0 24px rgba(229,9,20,.12);
}
.srv-item .dot{ box-shadow:0 0 10px rgba(229,9,20,.8); }
.srv-item .bd{
  background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.14);
  border-radius:8px; padding:3px 8px; font-size:11px; font-weight:800;
}
.srv-note{ color:#a8a8ad; line-height:1.55; }
.ep-item{ border-radius:14px !important; transition:all .2s ease !important; }
.ep-item:hover{ background:rgba(255,255,255,.07) !important; }
.ep-item.active{ background:rgba(229,9,20,.18) !important; box-shadow:inset 0 0 20px rgba(229,9,20,.1); }
.ep-sel{
  background:rgba(255,255,255,.06) !important; border:1px solid rgba(255,255,255,.14) !important;
  border-radius:12px !important; color:#fff !important;
}
.loader{
  background:rgba(14,14,18,.7);
  -webkit-backdrop-filter:blur(30px) saturate(170%); backdrop-filter:blur(30px) saturate(170%);
  border:1px solid rgba(255,255,255,.12); border-radius:22px;
  padding:26px 34px; box-shadow:0 24px 70px rgba(0,0,0,.6);
}
.loader .spin{ border-top-color:#E50914 !important; filter:drop-shadow(0 0 10px rgba(229,9,20,.6)); }
.dlsub{
  background:rgba(16,16,20,.72) !important;
  -webkit-backdrop-filter:blur(24px) saturate(160%); backdrop-filter:blur(24px) saturate(160%);
  border:1px solid rgba(255,255,255,.16) !important; border-radius:9999px !important;
  box-shadow:0 14px 40px rgba(0,0,0,.55);
  transition:background .2s ease, transform .15s ease !important;
}
.dlsub:hover{ background:rgba(229,9,20,.85) !important; transform:translateY(-1px); }

/* ---------- Live TV polish ---------- */
.side .search input{
  border-radius:13px !important;
  background:rgba(255,255,255,.06) !important;
  border:1px solid rgba(255,255,255,.13) !important;
}
.side .search input:focus{ border-color:rgba(229,9,20,.7) !important; box-shadow:0 0 0 3px rgba(229,9,20,.22); }
.chan{ border-radius:14px !important; }
.chan .logo{ border-radius:12px !important; box-shadow:inset 0 1px 0 rgba(255,255,255,.08); }
.chan.active{
  background:linear-gradient(90deg, rgba(229,9,20,.24), rgba(229,9,20,.07)) !important;
  border-color:rgba(229,9,20,.5) !important;
  box-shadow:inset 0 0 24px rgba(229,9,20,.1), 0 6px 20px rgba(0,0,0,.35) !important;
}
.chan.active .logo{ border-color:rgba(229,9,20,.5); }
.list::-webkit-scrollbar-thumb{ background:rgba(255,255,255,.18) !important; border-radius:8px; }
.list::-webkit-scrollbar-thumb:hover{ background:rgba(255,255,255,.3) !important; }
.menu-pop{
  background:rgba(14,14,18,.88) !important;
  -webkit-backdrop-filter:blur(34px) saturate(170%); backdrop-filter:blur(34px) saturate(170%);
  border:1px solid rgba(255,255,255,.13) !important; border-radius:16px !important;
  box-shadow:0 24px 70px rgba(0,0,0,.65) !important;
}
.cbtn{ transition:transform .15s ease, background .15s ease !important; }
.cbtn:hover{ background:rgba(255,255,255,.16) !important; }
.cbtn.on{ color:#ff4d55 !important; text-shadow:0 0 14px rgba(229,9,20,.6); }
.live-btn{ border:1px solid transparent; }
.live-btn:hover{ background:rgba(255,255,255,.12) !important; border-color:rgba(255,255,255,.12); }
.live-btn .d{ box-shadow:0 0 10px rgba(255,59,48,.8); }

/* ==================== ZFX4: PERFORMANCE + FULL RTL (ARABIC) ==================== */

/* Skip rendering off-screen rows -> smoother, faster scrolling */
.content-section .movie-row {
    content-visibility: auto;
    contain-intrinsic-size: auto 340px;
}

/* ---------- Arabic / RTL full support ---------- */
html[dir="rtl"] body { direction: rtl; }

/* Keep horizontal movie rows scrolling naturally */
html[dir="rtl"] .movie-row { direction: ltr; }
html[dir="rtl"] .section-title { text-align: right; }
html[dir="rtl"] .section-title span { margin-right: 0 !important; margin-left: 8px; }

/* Cards: Arabic titles aligned right, buttons keep LTR order */
html[dir="rtl"] .card-overlay { text-align: right; }
html[dir="rtl"] .card-overlay .card-buttons { direction: ltr; }
html[dir="rtl"] .card-meta { direction: rtl; }

/* Billboard / hero */
html[dir="rtl"] .billboard-content,
html[dir="rtl"] .hero-content { text-align: right; direction: rtl; }
html[dir="rtl"] .billboard-buttons { direction: ltr; }

/* Growth popup + rewards */
html[dir="rtl"] .zf-growth-card { direction: rtl; text-align: right; }
html[dir="rtl"] .zf-growth-close { left: 15px !important; right: auto !important; }

/* Forms (login / register / subscribe / admin) */
html[dir="rtl"] input[type="text"],
html[dir="rtl"] input[type="password"],
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="search"],
html[dir="rtl"] textarea { text-align: right; }

/* Toasts & wishlist */
html[dir="rtl"] .zf-wish-toast { direction: rtl; }
html[dir="rtl"] .mylist-head,
html[dir="rtl"] .mylist-grid { direction: rtl; }

/* Player panels stay LTR internally (timestamps, sliders) but labels align */
html[dir="rtl"] .sf-panel { direction: ltr; }

/* ==================== ZFX3R: CARDS + REWARDS + PLAYER PANEL + ADMIN LIVE ==================== */

/* Safety: hide any legacy "+" card button (the glass wishlist + replaces it) */
.card-buttons .card-btn:not(.play-btn):not(.like-btn),
.card-actions .card-btn:not(.play-btn):not(.like-btn) { display: none !important; }

/* Rewards nav button - red liquid glass pill (replaces the yellow glow) */
.rewards-btn-glow {
    background: linear-gradient(135deg, rgba(229,9,20,.85), rgba(178,7,16,.72)) !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    color: #fff !important;
    padding: 7px 16px !important;
    border-radius: 999px !important;
    box-shadow: 0 4px 18px rgba(229,9,20,.35) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-shadow: none !important;
    /* No endless glow: a box-shadow pulse repainted this glass pill on every frame
       (the desktop navbar already turns it off). */
    animation: none !important;
}
.rewards-btn-glow:hover {
    background: linear-gradient(135deg, rgba(229,9,20,1), rgba(178,7,16,.9)) !important;
    box-shadow: 0 6px 24px rgba(229,9,20,.55) !important;
    transform: translateY(-1px);
}
@keyframes zfRewardsPulse {
    0%, 100% { box-shadow: 0 4px 18px rgba(229,9,20,.35); }
    50%      { box-shadow: 0 4px 28px rgba(229,9,20,.6); }
}

/* Subtitle & audio lists - scrollable glass list */
#subtitleList, #audioList {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    padding: 6px;
    background: rgba(255,255,255,.04);
}
.sf-option { border-radius: 12px; }
.sf-option.active {
    background: linear-gradient(135deg, rgba(229,9,20,.85), rgba(178,7,16,.7)) !important;
    color: #fff !important;
}

/* "Save to DB" admin pill - matches the theme */
.sf-savedb {
    margin-left: auto;
    background: linear-gradient(135deg, #e50914, #b20710);
    color: #fff;
    border: 1px solid rgba(255,255,255,.15);
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(229,9,20,.35);
    transition: transform .15s ease, box-shadow .15s ease;
}
.sf-savedb:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(229,9,20,.5); }

/* Advanced subtitle style options - collapsible & simple */
.sfss-advanced {
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    background: rgba(255,255,255,.04);
    margin: 10px 0;
    padding: 0 12px;
}
.sfss-advanced[open] { padding-bottom: 10px; }
.sfss-advanced summary {
    cursor: pointer;
    list-style: none;
    padding: 12px 2px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.85);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.sfss-advanced summary::-webkit-details-marker { display: none; }
.sfss-advanced summary::after { content: "\25BE"; opacity: .7; transition: transform .2s ease; }
.sfss-advanced[open] summary::after { transform: rotate(180deg); }

/* Admin > Live TV channels page (liquid glass, like the rest of the site) */
body.zf-admin-live {
    background: radial-gradient(1200px 600px at 80% -10%, rgba(229,9,20,.12), transparent 60%), #0b0b0f !important;
    color: #eee;
}
body.zf-admin-live .live-note {
    background: linear-gradient(135deg, rgba(229,9,20,.14), rgba(255,255,255,.04));
    border: 1px solid rgba(229,9,20,.3);
    border-radius: 18px;
    padding: 14px 18px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
body.zf-admin-live table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 18px;
    overflow: hidden;
}
body.zf-admin-live table th {
    background: rgba(255,255,255,.06);
    padding: 12px;
    text-align: left;
}
body.zf-admin-live table td {
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 10px 12px;
}
body.zf-admin-live tbody tr { transition: background .15s ease; }
body.zf-admin-live tbody tr:hover { background: rgba(229,9,20,.07); }
body.zf-admin-live .tag {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 12px;
}
body.zf-admin-live .pill { border-radius: 999px; padding: 3px 10px; font-size: 12px; }
body.zf-admin-live .pill.on {
    background: linear-gradient(135deg, rgba(70,211,105,.9), rgba(35,150,65,.85));
    color: #fff;
    box-shadow: 0 0 14px rgba(70,211,105,.35);
}
body.zf-admin-live .pill.off { background: rgba(255,255,255,.08); color: #bbb; }
body.zf-admin-live .card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 20px;
    padding: 18px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
body.zf-admin-live input[type="text"],
body.zf-admin-live input[type="number"],
body.zf-admin-live input[type="url"],
body.zf-admin-live select {
    background: rgba(0,0,0,.4);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
body.zf-admin-live input:focus,
body.zf-admin-live select:focus {
    border-color: rgba(229,9,20,.6);
    box-shadow: 0 0 0 3px rgba(229,9,20,.18);
}
body.zf-admin-live .btn {
    border-radius: 999px;
    padding: 8px 16px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}
body.zf-admin-live .btn:hover { transform: translateY(-1px); }
body.zf-admin-live .btn-primary {
    background: linear-gradient(135deg, #e50914, #b20710);
    border: none;
    color: #fff;
    box-shadow: 0 4px 16px rgba(229,9,20,.35);
}
body.zf-admin-live .btn-delete {
    background: rgba(229,9,20,.15);
    border: 1px solid rgba(229,9,20,.4);
    color: #ff6b6b;
}

/* ==================== ZFX5.2: MOBILE ROWS FIX ==================== */
/* iOS Safari has known rendering bugs with content-visibility inside horizontal
   scrollers: rows are skipped, lazy images never fire onload, and since .card-img
   starts at opacity:0 until JS adds .loaded, the rows looked completely EMPTY on
   phones. Fix: (1) only use the content-visibility optimization on desktop,
   (2) add a pure-CSS failsafe that always reveals images even if onload never fires. */
.content-section .movie-row {
    content-visibility: visible;
    contain-intrinsic-size: none;
}
@media (min-width: 701px) and (hover: hover) {
    .content-section .movie-row {
        content-visibility: auto;
        contain-intrinsic-size: auto 340px;
    }
}
@keyframes zfImgFailsafe {
    to { opacity: 1; }
}
.card-img,
.movie-card .card-img,
.billboard-bg img {
    animation: zfImgFailsafe .5s ease .7s forwards;
}


/* ==================== ZFX5: HERO BUTTONS + TOP10 + RTL BILLBOARD ==================== */
.billboard-buttons .btn {
    border-radius: 999px !important;
    padding: 11px 26px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    min-height: 46px;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.billboard-buttons .btn-white {
    background: #fff !important;
    color: #000 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.billboard-buttons .btn-white:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 36px rgba(0,0,0,.55);
}
.billboard-buttons .btn-gray {
    background: rgba(255,255,255,.14) !important;
    border: 1px solid rgba(255,255,255,.28) !important;
    color: #fff !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.billboard-buttons .btn-gray:hover {
    background: rgba(255,255,255,.24) !important;
    transform: translateY(-2px);
}
.play-main-btn {
    border-radius: 999px !important;
    padding: 12px 30px !important;
    font-weight: 700 !important;
    background: #fff !important;
    color: #000 !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(0,0,0,.45) !important;
    transition: transform .18s ease, box-shadow .18s ease !important;
}
.play-main-btn:hover {
    transform: translateY(-2px) scale(1.02);
    background: #fff !important;
    box-shadow: 0 14px 36px rgba(0,0,0,.55) !important;
}
.top-number-badge {
    color: rgba(255,255,255,.92) !important;
    -webkit-text-stroke: 1.5px rgba(229,9,20,.95) !important;
    text-shadow: 0 4px 16px rgba(0,0,0,.9), 0 0 22px rgba(229,9,20,.45) !important;
    opacity: 1 !important;
}
.movie-card:hover .top-number-badge {
    color: #fff !important;
    -webkit-text-stroke: 2px #e50914 !important;
    transform: scale(1.08);
}
html[dir="rtl"] .top-number-badge { right: auto; left: 5px; }
.zf-top10-chip {
    display: inline-flex;
    align-items: center;
    margin: 0 10px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    color: #fff;
    background: linear-gradient(135deg, #e50914, #7d050a);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    box-shadow: 0 3px 10px rgba(229,9,20,.35);
    white-space: nowrap;
}
html[dir="rtl"] .billboard-content { text-align: right; }
html[dir="rtl"] .billboard-content .movie-meta { direction: rtl; justify-content: flex-start; }
html[dir="rtl"] .billboard-content .synopsis { text-align: right; }
html[dir="rtl"] .billboard-buttons { direction: rtl; justify-content: flex-start; }

/* ZFX8 → v2: REPORT AN ISSUE — glass + red, same language as the player notices.
   .zf-fb-btn: ghost pill in a navbar · .zf-fb-float: floating pill on pages without one
   (sign in / sign up) · .zf-fb-hint: one-time hint · .zf-fb-overlay/.zf-fb-modal: the form. */
.zf-fb-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 14px;
    margin-inline-start: 6px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.78);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.zf-fb-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
.zf-fb-btn svg { flex: none; }
.zf-fb-btn.sf-ctrl-btn { margin-inline-start: 0; }

.zf-fb-float {
    position: fixed;
    inset-inline-end: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 9500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 18px 0 14px;
    border: 0;
    border-radius: 999px;
    background: rgba(18, 18, 22, 0.82);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 14px 36px rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    backdrop-filter: blur(20px) saturate(170%);
    color: #fff;
    font: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s cubic-bezier(0.22, 0.8, 0.24, 1), box-shadow 0.25s ease;
}
html[dir="rtl"] .zf-fb-float { padding: 0 14px 0 18px; }
.zf-fb-float svg { flex: none; color: #ff4d55; }
.zf-fb-float:hover { background: rgba(32, 32, 38, 0.92); transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24), 0 18px 40px rgba(0, 0, 0, 0.55); }
.zf-fb-float:active { transform: scale(0.96); }
.zf-fb-float-label { font-size: 13.5px; font-weight: 700; }
.zf-fb-btn:focus-visible,
.zf-fb-float:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.zf-fb-hint {
    position: absolute;
    z-index: 9600;
    width: min(280px, calc(100vw - 20px));
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(18, 18, 22, 0.94);
    -webkit-backdrop-filter: blur(24px) saturate(170%);
    backdrop-filter: blur(24px) saturate(170%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    color: #eee;
    animation: zfFbHintIn 0.35s ease;
}
@keyframes zfFbHintIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.zf-fb-hint.is-above { animation-name: zfFbHintUp; }
@keyframes zfFbHintUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.zf-fb-hint-title { font-size: 14.5px; font-weight: 800; margin-bottom: 6px; color: #fff; }
.zf-fb-hint-body { font-size: 12.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.7); margin-bottom: 12px; }
.zf-fb-hint-ok {
    width: 100%;
    min-height: 38px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff2c36 0%, #e50914 55%, #b00610 100%);
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.24);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.zf-fb-overlay {
    position: fixed;
    inset: 0;
    z-index: 9700;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.66);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
body.zf-fb-lock { overflow: hidden; }
.zf-fb-modal {
    position: relative;
    width: min(480px, 96vw);
    max-height: 88vh;
    overflow-y: auto;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: rgba(18, 18, 22, 0.96);
    -webkit-backdrop-filter: blur(30px) saturate(170%);
    backdrop-filter: blur(30px) saturate(170%);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    color: #eee;
    animation: zfFbModalIn 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes zfFbModalIn {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to { opacity: 1; transform: none; }
}
.zf-fb-close {
    position: absolute;
    top: 16px;
    inset-inline-end: 16px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.zf-fb-close:hover { background: #fff; color: #0a0a0b; }
.zf-fb-head { margin-bottom: 16px; padding-inline-end: 40px; }
.zf-fb-title { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 10px; color: #fff; }
.zf-fb-title-ico {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff2c36 0%, #e50914 55%, #b00610 100%);
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    color: #fff;
}
.zf-fb-subtitle { font-size: 13px; line-height: 1.65; color: rgba(255, 255, 255, 0.62); }
.zf-fb-label { font-size: 12px; font-weight: 800; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.55); margin: 16px 0 8px; }

.zf-fb-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.zf-fb-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 6px 10px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, color 0.2s, transform 0.2s;
    min-width: 0;
}
.zf-fb-cat span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zf-fb-cat svg { color: rgba(255, 255, 255, 0.55); transition: color 0.2s; }
.zf-fb-cat:hover { background: rgba(255, 255, 255, 0.09); color: #fff; }
.zf-fb-cat.sel { background: rgba(229, 9, 20, 0.16); box-shadow: inset 0 0 0 1px rgba(229, 9, 20, 0.6); color: #fff; font-weight: 700; }
.zf-fb-cat.sel svg { color: #ff4d55; }
.zf-fb-cat:active { transform: scale(0.96); }

.zf-fb-stars-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.zf-fb-stars { display: flex; gap: 2px; direction: ltr; }
.zf-fb-star { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: rgba(255, 255, 255, 0.22); cursor: pointer; transition: color 0.15s, transform 0.15s; user-select: none; }
.zf-fb-star:hover { transform: scale(1.1); color: rgba(255, 209, 102, 0.6); }
.zf-fb-star.on { color: #ffd166; filter: drop-shadow(0 2px 8px rgba(255, 209, 102, 0.35)); }
.zf-fb-star-word { font-size: 13px; color: #ffd166; font-weight: 700; }

.zf-fb-text textarea {
    width: 100%;
    min-height: 96px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff;
    font: inherit;
    font-size: 13.5px;
    line-height: 1.55;
    resize: vertical;
    box-sizing: border-box;
}
.zf-fb-text textarea:focus { outline: none; border-color: rgba(229, 9, 20, 0.65) !important; box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.18) !important; }
.zf-fb-note { font-size: 11.5px; color: rgba(255, 255, 255, 0.45); margin-top: 8px; line-height: 1.55; }
.zf-fb-err { color: #ff8b93; font-size: 12.5px; min-height: 16px; margin-top: 8px; }
.zf-fb-send {
    width: 100%;
    min-height: 50px;
    margin-top: 10px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff2c36 0%, #e50914 55%, #b00610 100%);
    box-shadow: 0 12px 28px rgba(229, 9, 20, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s;
}
.zf-fb-send:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 16px 34px rgba(229, 9, 20, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.zf-fb-send:active { transform: scale(0.98); }
.zf-fb-send:disabled { opacity: 0.65; cursor: default; transform: none; }

.zf-fb-success {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border-radius: 24px;
    background: rgba(18, 18, 22, 0.98);
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.8;
}
.zf-fb-success p { margin: 12px 0 0; }
.zf-fb-success-ico { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: rgba(31, 168, 85, 0.16); color: #3ddc84; box-shadow: inset 0 0 0 1px rgba(61, 220, 132, 0.4); }
.zf-fb-modal.done .zf-fb-success { display: flex; }

@media (max-width: 600px) {
    .zf-fb-cats { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .zf-fb-cat { font-size: 11.5px; padding: 10px 4px 8px; }
    .zf-fb-modal { padding: 18px; border-radius: 22px; }
    .zf-fb-btn { padding: 0 12px; font-size: 12px; }
    /* floating button shrinks to an icon so it never covers a form */
    .zf-fb-float { width: 48px; height: 48px; padding: 0; justify-content: center; inset-inline-end: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
    html[dir="rtl"] .zf-fb-float { padding: 0; }
    .zf-fb-float-label { display: none; }
    body.zf-has-bottomnav .zf-fb-float { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
    .zf-fb-modal, .zf-fb-hint { animation: none; }
}

/* ZFX9: fullscreen fix - report modal above all player layers */
.zf-fb-overlay { z-index: 2147483000 !important; cursor: default; }
.zf-fb-hint { z-index: 2147483001 !important; }

/* report button inside a compact (phone) navbar: icon only */
@media (max-width: 900px) {
    .zf-fb-btn.zf-fb-nav { width: 36px; height: 36px; padding: 0; margin: 0; justify-content: center; flex: none; }
    .zf-fb-btn.zf-fb-nav span { display: none; }
}

/* ==================== ZFX11: MOTION (smooth, cheap, premium) ====================
   Only opacity/transform, nothing animates layout. Everything is off for reduced motion.
   js/zf-motion.js adds the classes; without it every page looks exactly as before. */
:root {
    --zf-ease-out: cubic-bezier(.16, 1, .3, 1);
    --zf-ease-in: cubic-bezier(.4, 0, 1, 1);
}
/* Page to page: the old page fades back, the new one settles in; the navbar stays put.
   Browsers without cross-document view transitions simply navigate as before. */
@view-transition { navigation: auto; }
nav.navbar { view-transition-name: zf-nav; }
::view-transition-group(zf-nav) { animation: none; }
/* No cross-fade for the navbar: pages differ in buttons/language, and blending the old and new
   snapshots made the buttons overlap for a moment. The new navbar replaces the old one at once. */
::view-transition-old(zf-nav) { display: none; }
::view-transition-new(zf-nav) { animation: none; opacity: 1; }
::view-transition-old(root) { animation: zf-vt-out .2s var(--zf-ease-in) both; }
::view-transition-new(root) { animation: zf-vt-in .42s var(--zf-ease-out) both; }
@keyframes zf-vt-out { to { opacity: 0; transform: scale(.992); } }
@keyframes zf-vt-in { from { opacity: 0; transform: translateY(10px); } }

/* Top loading bar while the next page is on its way. */
.zf-navbar-progress {
    position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 2147483600; pointer-events: none;
    transform-origin: 0 50%; transform: scaleX(0); opacity: 0;
    background: linear-gradient(90deg, #e50914, #ff5a5f 60%, #ffb3b6);
    box-shadow: 0 0 12px rgba(229, 9, 20, .7);
}
[dir="rtl"] .zf-navbar-progress { transform-origin: 100% 50%; }
.zf-navbar-progress.is-on { opacity: 1; transform: scaleX(.82); transition: transform 2.4s cubic-bezier(.1, .7, .2, 1), opacity .15s; }
.zf-navbar-progress.is-done { opacity: 0; transform: scaleX(1); transition: transform .2s ease, opacity .3s .15s; }

/* Artwork fades in when it arrives instead of popping. */
img.zf-fade:not(#zf-x) { opacity: 0; transition: opacity .5s ease; }
img.zf-fade.zf-in:not(#zf-x) { opacity: 1; }

/* Other pages already reveal .content-section (style.css); its permanent will-change kept a
   GPU layer per section for the whole visit. Released once the section is shown. */
.content-section.zf-visible { will-change: auto; }
/* Homepage shelves below the fold rise in once, as a whole (no per-card layers). */
.zf-home .content-section.zf-rise:not(.zf-in) { opacity: 0; transform: translateY(26px); }
.zf-home .content-section.zf-rise.zf-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .9s var(--zf-ease-out); }

/* Press feedback: the individual `scale` property composes with any existing transform
   and leaves each element's own transitions untouched. */
.zf-hero-btn:active, .zf-cat-chip:active, .zf-cat-seg a:active, .zf-cat-select:active, .zf-cat-pager a:active,
.nav-links a:active, .zf-section-more:active, .zf-press:active { scale: .965; }

@media (prefers-reduced-motion: reduce) {
    @view-transition { navigation: none; }
    ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
    img.zf-fade:not(#zf-x), .zf-home .content-section.zf-rise:not(.zf-in) { opacity: 1; transform: none; transition: none; }
    .zf-navbar-progress { display: none; }
}
