/* 2026-11 home redesign, loaded last. Owner: the structure and details of a reference
   site, in Arash Movie's own colours: a dark page with a rounded content panel, a number
   strip, quick chips, richer cards, genre tiles and a fuller footer. The panel is dark by
   default; «حالت روشن» (mz-2026.js) turns it light. Every rule starts with
   html:root body.d26 so it wins over the earlier layers without !important. */

:root {
  --mz-gold: #f5c451;
  --mz-amber: #ff9440;
  --mz-page: #06070b;
  --mz-panel: #0f1118;
  --mz-card: #161a24;
  --mz-card-2: #1c2130;
  --mz-line: rgba(255, 255, 255, 0.07);
  --mz-line-2: rgba(255, 255, 255, 0.12);
  --mz-text: #f3f4f8;
  --mz-text-2: #a8afc2;
  --mz-text-3: #737b91;
  --mz-dub: #22c55e;
  --mz-sub: #3b82f6;
}
html.mz-light:root {
  --mz-panel: #e8e9ee;
  --mz-card: #ffffff;
  --mz-card-2: #f6f7f9;
  --mz-line: #e3e5ea;
  --mz-line-2: #d5d8df;
  --mz-text: #12141c;
  --mz-text-2: #4b5263;
  --mz-text-3: #7a8193;
}

/* ---------------------------------------------------------------- page and panel */
html:root body.d26 {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(120, 90, 255, 0.16), transparent 60%),
    radial-gradient(900px 500px at 10% 0%, rgba(255, 148, 64, 0.10), transparent 60%),
    radial-gradient(1400px 900px at 50% 120%, rgba(56, 120, 255, 0.10), transparent 60%),
    var(--mz-page);
  background-attachment: fixed;
}
html:root body.d26 #screen-app { max-width: 1440px; margin: 0 auto; }
html:root body.d26 #app-main {
  background: var(--mz-panel);
  border: 1px solid var(--mz-line);
  border-radius: 28px;
  margin: 6px 16px 0;
  padding: 26px 28px 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

/* ---------------------------------------------------------------- announcement bar */
html:root body.d26 .mz-announce {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  position: relative;
  min-height: 42px;
  padding: 6px 48px;
  background: linear-gradient(90deg, #1b1410, #191321 55%, #121624);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #e9e4da;
  font-size: 13px;
}
html:root body.d26 .mz-announce b { color: var(--mz-gold); font-weight: 800; }
html:root body.d26 .mz-announce-cta {
  border: 0; border-radius: 999px; padding: 6px 14px; cursor: pointer;
  background: linear-gradient(135deg, #ffd36e, #ff9440); color: #1a1006; font: inherit; font-weight: 900;
}
html:root body.d26 .mz-announce-close {
  position: absolute; left: 14px; top: 8px;
  width: 26px; height: 26px; padding: 0; border-radius: 8px; cursor: pointer;
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.12); color: #c9c3b8; font-size: 16px; line-height: 1;
}

/* ---------------------------------------------------------------- header */
html:root body.d26 .top-bar {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 12px 20px;
  gap: 18px;
}
/* The site's button rules give every button 100% width and a 44px floor; these are pills. */
html:root body.d26 :is(.mz-nav-link, .mz-light-switch, .mz-announce-cta, .mz-announce-close, .mz-quick-chip,
                       .mz-genre, .mz-apps-chip, .mz-apps-cta) {
  width: auto; min-height: 0; box-shadow: none; transform: none; text-shadow: none;
}
html:root body.d26 .mz-nav-strip {
  display: none;
  margin: 0 16px 10px;
  padding: 4px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
html:root body.d26 .mz-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
@media (min-width: 900px) {
  html:root body.d26 .mz-nav-strip { display: block; }
}
html:root body.d26 .mz-nav-link {
  border: 0; background: transparent; cursor: pointer; white-space: nowrap;
  color: #d9dce6; font: inherit; font-size: 14px; font-weight: 700;
  padding: 8px 14px; border-radius: 10px;
}
html:root body.d26 .mz-nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
html:root body.d26 .mz-nav-link:focus-visible { outline: 2px solid var(--mz-gold); outline-offset: 1px; }
html:root body.d26 .mz-light-switch {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px; padding: 5px 10px 5px 12px;
  background: rgba(255, 255, 255, 0.04); color: #dfe2ea; font: inherit; font-size: 12px; font-weight: 700;
}
html:root body.d26 .mz-switch-track {
  position: relative; width: 34px; height: 18px; border-radius: 999px; background: #3a3f50; transition: background .2s;
}
html:root body.d26 .mz-switch-knob {
  position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff;
  transition: right .2s;
}
html:root body.d26 .mz-light-switch[aria-pressed="true"] .mz-switch-track { background: linear-gradient(135deg, #ffd36e, #ff9440); }
html:root body.d26 .mz-light-switch[aria-pressed="true"] .mz-switch-knob { right: 18px; }
@media (max-width: 640px) {
  html:root body.d26 .mz-switch-label { display: none; }
  html:root body.d26 .mz-light-switch { padding: 5px 8px; }
}

/* ---------------------------------------------------------------- search / filter card */
html:root body.d26 #tab-browse .search-row--compact.search-panel,
html:root body.d26 #tab-browse .search-row {
  background: var(--mz-card);
  border: 1px solid var(--mz-line);
  border-radius: 18px;
  box-shadow: none;
}

/* ---------------------------------------------------------------- number strip */
html:root body.d26 .mz-stats {
  background: var(--mz-card);
  border: 1px solid var(--mz-line);
  border-radius: 22px;
  padding: 26px 30px 22px;
  margin: 0 0 22px;
  text-align: center;
  color: var(--mz-text);
}
html:root body.d26 .mz-stats-title { margin: 0 0 8px; font-size: 22px; font-weight: 900; line-height: 1.6; color: var(--mz-text); }
html:root body.d26 .mz-stats-lead { margin: 0 0 20px; color: var(--mz-text-2); font-size: 14px; }
html:root body.d26 .mz-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
html:root body.d26 .mz-stat {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  border: 1px solid var(--mz-line-2); border-radius: 18px; padding: 20px 16px 18px;
  background: var(--mz-card-2);
}
html:root body.d26 .mz-stat-kicker { font-size: 13px; font-weight: 800; color: var(--mz-text-2); }
html:root body.d26 .mz-stat-value { font-size: 54px; line-height: 1.15; font-weight: 900; color: var(--mz-text); letter-spacing: -1px; }
html:root body.d26 .mz-stat-caption { font-size: 14px; font-weight: 800; color: var(--mz-text-2); }
html:root body.d26 .mz-stat-foot { margin-top: 10px; font-size: 12px; color: var(--mz-text-3); }
html:root body.d26 .mz-stat-foot b { color: var(--mz-text); font-weight: 900; }
html:root body.d26 .mz-stat--gold .mz-stat-kicker,
html:root body.d26 .mz-stat--gold .mz-stat-value { color: var(--mz-gold); }
html.mz-light:root body.d26 .mz-stat--gold .mz-stat-kicker,
html.mz-light:root body.d26 .mz-stat--gold .mz-stat-value { color: #a16207; }
html:root body.d26 .mz-stats-new { margin: 16px 0 0; color: var(--mz-text-2); font-size: 14px; }
html:root body.d26 .mz-stats-new b { color: var(--mz-text); font-size: 22px; font-weight: 900; margin-left: 6px; }
@media (max-width: 640px) {
  html:root body.d26 .mz-stats { padding: 18px 14px; border-radius: 18px; }
  html:root body.d26 .mz-stats-title { font-size: 17px; }
  html:root body.d26 .mz-stats-grid { grid-template-columns: 1fr; gap: 10px; }
  html:root body.d26 .mz-stat-value { font-size: 42px; }
}

/* ---------------------------------------------------------------- featured (hero) */
html:root body.d26 #home-view > .hero {
  border-radius: 22px;
  border: 1px solid var(--mz-line);
  overflow: hidden;
  margin-bottom: 16px;
}
html:root body.d26 .hero-text .hero-cta {
  background: linear-gradient(135deg, #ffd36e, #ff9440);
  color: #1a1006;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  padding: 11px 22px;
}
html:root body.d26 .hero-text .hero-cta--ghost {
  background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ---------------------------------------------------------------- quick chips */
html:root body.d26 .mz-quick {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 24px;
}
html:root body.d26 .mz-quick-chip {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid var(--mz-line-2); border-radius: 999px; padding: 10px 18px;
  background: var(--mz-card); color: var(--mz-text); font: inherit; font-size: 14px; font-weight: 800;
}
html:root body.d26 .mz-quick-chip:hover { border-color: var(--mz-gold); }
html:root body.d26 .mz-quick-chip--hot {
  background: linear-gradient(135deg, #ffd36e, #ff9440); color: #1a1006; border-color: transparent;
}
@media (max-width: 640px) {
  html:root body.d26 .mz-quick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -4px; padding: 2px 4px; }
  html:root body.d26 .mz-quick::-webkit-scrollbar { display: none; }
  html:root body.d26 .mz-quick-chip { flex: 0 0 auto; padding: 9px 14px; font-size: 13px; }
}

/* ---------------------------------------------------------------- shelves */
html:root body.d26 .home-row { margin-bottom: 26px; }
html:root body.d26 .home-row .row-head { align-items: center; margin-bottom: 12px; }
html:root body.d26 .home-row .row-head h3,
html:root body.d26 .mz-genres .row-head h3 {
  display: flex; align-items: center; gap: 10px;
  font-size: 19px; font-weight: 900; color: var(--mz-text);
}
html:root body.d26 .home-row .row-head h3 .shelf-icon { display: none; }
html:root body.d26 .home-row .row-head h3::before,
html:root body.d26 .mz-genres .row-head h3::before {
  content: ""; display: inline-block; width: 4px; height: 22px; border-radius: 3px;
  background: linear-gradient(180deg, #ffd36e, #ff9440);
}
html:root body.d26 .home-row .row-more {
  border: 1px solid var(--mz-line-2); border-radius: 999px; padding: 5px 13px;
  background: var(--mz-card); color: var(--mz-text-2); font-size: 12px; font-weight: 800;
}
html:root body.d26 .home-row .row-more:hover { color: var(--mz-text); border-color: var(--mz-gold); }

/* ---------------------------------------------------------------- cards */
html:root body.d26 .poster-card { background: transparent; border: 0; box-shadow: none; }
html:root body.d26 .poster-card .poster-tile {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}
html.mz-light:root body.d26 .poster-card .poster-tile { box-shadow: 0 6px 16px rgba(17, 20, 28, 0.14); }
html:root body.d26 .poster-card .imdb-badge {
  top: 6px; left: 6px; right: auto;
  background: rgba(10, 11, 16, 0.86); color: #ffd36e;
  border-radius: 6px; padding: 2px 6px; font-size: 11px; font-weight: 900;
}
html:root body.d26 .poster-card .audio-badge-group {
  position: absolute; top: 30px; right: 6px; left: auto; bottom: auto; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-end; gap: 3px;
}
html:root body.d26 .poster-card .audio-badge {
  border-radius: 5px; font-size: 10px; font-weight: 900; padding: 1px 6px; color: #fff;
}
html:root body.d26 .poster-card .audio-badge.dubbed { background: var(--mz-dub); }
html:root body.d26 .poster-card .audio-badge.subtitled { background: var(--mz-sub); }
html:root body.d26 .poster-card .episode-band {
  position: absolute; bottom: 6px; right: 6px; z-index: 2;
  background: rgba(10, 11, 16, 0.86); color: #fff;
  border-radius: 7px; padding: 2px 8px; font-size: 11px; font-weight: 800;
}
html:root body.d26 .poster-info { padding: 8px 2px 0; }
html:root body.d26 .poster-card .poster-title,
html:root body.d26 .poster-card .poster-title a { color: var(--mz-text); font-weight: 800; font-size: 13.5px; }
html:root body.d26 .poster-card .poster-original {
  color: var(--mz-text-2); font-size: 12px; text-align: right;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html:root body.d26 .poster-card .poster-meta { color: var(--mz-text-3); font-size: 11.5px; }
html:root body.d26 .poster-card .poster-meta span + span::before { content: "|"; margin: 0 6px; opacity: 0.5; }
html:root body.d26 .poster-card .poster-genres {
  color: var(--mz-text-3); font-size: 11.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------------------------------------------------------------- genre tiles */
html:root body.d26 .mz-genres { margin: 8px 0 6px; }
html:root body.d26 .mz-genre-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px;
}
html:root body.d26 .mz-genre {
  display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer;
  border: 1px solid var(--mz-line); border-radius: 16px; padding: 18px 8px 14px;
  background: var(--mz-card); color: var(--mz-text); font: inherit;
  transition: transform .15s, border-color .15s;
}
html:root body.d26 .mz-genre:hover { transform: translateY(-2px); border-color: var(--mz-gold); }
html:root body.d26 .mz-genre-icon { font-size: 22px; line-height: 1; }
html:root body.d26 .mz-genre-name { font-size: 14px; font-weight: 900; }
html:root body.d26 .mz-genre-count { font-size: 11.5px; color: var(--mz-text-3); }

/* ---------------------------------------------------------------- install card */
html:root body.d26 .home-install-card {
  background: var(--mz-card);
  border: 1px solid var(--mz-line);
  border-radius: 20px;
  color: var(--mz-text);
}

/* ---------------------------------------------------------------- footer */
html:root body.d26 #seo-footer.seo-footer {
  margin: 22px 16px 0;
  background: var(--mz-panel);
  border: 1px solid var(--mz-line);
  border-radius: 24px 24px 0 0;
  color: var(--mz-text-2);
}
html:root body.d26 #seo-footer h2 { color: var(--mz-text); }
html:root body.d26 #seo-footer a { color: var(--mz-text-2); }
html:root body.d26 #seo-footer a:hover { color: var(--mz-gold); }
html:root body.d26 .mz-apps {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 0 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--mz-line);
}
html:root body.d26 .mz-apps-copy { display: flex; flex-direction: column; gap: 2px; }
html:root body.d26 .mz-apps-copy b { color: var(--mz-text); font-size: 15px; }
html:root body.d26 .mz-apps-copy span { color: var(--mz-text-3); font-size: 12.5px; }
html:root body.d26 .mz-apps-actions { display: flex; gap: 8px; flex-wrap: wrap; }
html:root body.d26 .mz-apps-chip, html:root body.d26 .mz-apps-cta {
  cursor: pointer; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 800;
  border: 1px solid var(--mz-line-2); background: var(--mz-card); color: var(--mz-text);
}
html:root body.d26 .mz-apps-cta { background: linear-gradient(135deg, #ffd36e, #ff9440); color: #1a1006; border-color: transparent; }

/* ---------------------------------------------------------------- light panel text */
html.mz-light:root body.d26 #app-main { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
html.mz-light:root body.d26 #app-main .search-row input,
html.mz-light:root body.d26 #app-main .search-row button { color: var(--mz-text); }
html.mz-light:root body.d26 #app-main .row-skeleton,
html.mz-light:root body.d26 #app-main .hero-skeleton { background: #dcdee4; }

/* ---------------------------------------------------------------- phones */
@media (max-width: 640px) {
  html:root body.d26 #app-main { margin: 4px 0 0; padding: 16px 12px 22px; border-radius: 22px 22px 0 0; }
  /* Phones already get the small install invite (install-invite.js): one app prompt is enough. */
  html:root body.d26 .mz-announce { display: none; }
  html:root body.d26 .top-bar { padding: 10px 12px; }
  html:root body.d26 #seo-footer.seo-footer { margin: 16px 0 0; }
  html:root body.d26 .mz-genre-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  html:root body.d26 .mz-genre { padding: 12px 4px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html:root body.d26 .mz-genre, html:root body.d26 .mz-switch-knob { transition: none; }
}

/* ---------------------------------------------------------------- the earlier d26 layer
   design-2026.css draws shelves and the search card from its own variables, much of it
   with !important. Inside the light panel the variables change; the featured banner
   stays a dark card and keeps the dark ones. !important below only where that layer
   forces a value. */
html.mz-light:root body.d26 #app-main {
  --text: #12141c; --text-primary: #12141c; --text-secondary: #3b4252; --text-dim: #5b6273;
  --text-faint: #7a8193; --muted: #5b6273; --text-muted: #5b6273;
  --surface: #ffffff; --surface-solid: #ffffff; --surface-elevated: #f6f7f9;
  --border: #e3e5ea; --surface-border: #e3e5ea; --hairline: #e9ebef;
  --accent: #b45309;
}
html.mz-light:root body.d26 #app-main .hero {
  --text: #f6f2ea; --text-primary: #f6f2ea; --text-secondary: #d9d3c8; --text-dim: #a8a196;
  --text-faint: #7d776d; --muted: #a8a196; --text-muted: #a8a196; --accent: #e8b44c;
}
html:root body.d26 .home-row .row-head h3::before,
html:root body.d26 .mz-genres .row-head h3::before { display: inline-block !important; }
html:root body.d26 .home-row .row-head h3 { font-size: 19px !important; font-weight: 900 !important; }
html:root body.d26 .home-row .row-more {
  border: 1px solid var(--mz-line-2) !important; border-radius: 999px !important; padding: 5px 13px !important;
  background: var(--mz-card) !important; color: var(--mz-text-2) !important; font-size: 12px !important; font-weight: 800 !important;
}
html:root body.d26 .home-row .row-more:hover { color: var(--mz-text) !important; border-color: var(--mz-gold) !important; }
html.mz-light:root body.d26 .search-panel .menu-btn,
html.mz-light:root body.d26 .search-panel .search-tools .genre-btn,
html.mz-light:root body.d26 .search-panel .search-main-tools .genre-btn {
  background: #f3f4f7 !important; border-color: #dfe2e8 !important; color: #12141c !important;
}
html.mz-light:root body.d26 .search-panel .menu-btn.active { background: #f5c451 !important; color: #1a1206 !important; }
html.mz-light:root body.d26 .search-panel input { color: #12141c !important; }
html.mz-light:root body.d26 .search-panel input::placeholder { color: #7a8193 !important; }
