:root{--bg:#f3f2ee;--panel:#fff;--soft:#e8e7e2;--text:#14213d;--muted:#687080;--accent:#ef5b22;--accent2:#ff9f1c;--radius:3px;--max:1280px}
body.theme-editorial{background-image:linear-gradient(#14213d0b 1px,transparent 1px);background-size:100% 48px}.theme-editorial .topbar{height:148px;display:grid;grid-template-columns:1fr auto;grid-template-rows:42px 62px 44px;padding:0 max(24px,calc((100vw - var(--max))/2));background:#f8f7f3;color:#14213d;border:0;position:relative}.theme-editorial .header-utility{display:flex;grid-column:1/3;grid-row:1;align-items:center;justify-content:space-between;border-bottom:1px solid #14213d1c;font-size:.75rem;color:#687080}.theme-editorial .topbar .brand{grid-column:1/3;grid-row:2;justify-self:center;font-size:1.75rem}.theme-editorial .brand-mark{border-radius:0;width:42px;height:42px}.theme-editorial .brand-copy small{display:none}.theme-editorial .topbar nav{grid-column:1;grid-row:3;align-self:stretch;display:flex;align-items:center}.theme-editorial .topbar .search{grid-column:2;grid-row:3;align-self:center;margin:0;background:#fff;border-color:#14213d26}.theme-editorial .search input{color:#14213d}.theme-editorial .topbar .user-nav{position:absolute;left:max(24px,calc((100vw - var(--max))/2));top:55px}.theme-editorial.route-home .hero{min-height:570px;width:var(--max);max-width:calc(100% - 48px);margin:32px auto;background:#14213d}.theme-editorial .hero:before{display:none}.theme-editorial .hero-frame{grid-template-columns:1fr 48%;gap:0;max-width:none;height:570px}.theme-editorial .hero-content{padding:60px;color:#fff}.theme-editorial .hero-content h1{font-size:clamp(3rem,5vw,5.4rem)}.theme-editorial .hero-poster{grid-column:2;grid-row:1;width:100%;height:100%;aspect-ratio:auto;border-radius:0;background-size:cover}.theme-editorial .hero-poster>span{display:none}.theme-editorial .hero-trust{border-color:#ffffff2b}.theme-editorial .shelf{margin-top:70px}.theme-editorial .section-head{border-bottom:3px solid #14213d;padding-bottom:10px}.theme-editorial .section-head h2{font-size:1.8rem}.theme-editorial .poster-grid{gap:24px}.theme-editorial .poster-img{border-radius:0;box-shadow:8px 8px 0 #14213d16}.theme-editorial .quality{border-radius:0;background:var(--accent)}.theme-editorial .poster-info h3{font-size:1.08rem}.theme-editorial .title-hero{width:var(--max);max-width:calc(100% - 48px);margin:32px auto 0;min-height:610px;color:#fff;background:linear-gradient(90deg,#14213df7 0%,#14213dde 54%,transparent),var(--backdrop) center/cover}.theme-editorial .title-poster{border-radius:0;border:10px solid #fff;box-shadow:12px 12px 0 #ef5b22}.theme-editorial .title-score{border-radius:0;background:#ef5b22;border:0}.theme-editorial .title-score strong{color:#fff}.theme-editorial .title-content-grid{grid-template-columns:1fr 1fr}.theme-editorial .panel,.theme-editorial .download-box{box-shadow:8px 8px 0 #14213d10;border-color:#14213d1c}.theme-editorial .fact-grid{background:#14213d1c;border-color:#14213d1c;border-radius:0}.theme-editorial .cast-block{border-color:#14213d1c}.theme-editorial .subscription-link{border-color:#14213d1c}.theme-editorial .plans-hero{border-bottom:8px solid #14213d;padding-bottom:28px}.theme-editorial .plans-hero h1{font-family:IRANSans,serif;font-weight:900}.theme-editorial .plans{grid-template-columns:1fr;gap:0;border-top:1px solid #14213d22}.theme-editorial .plan{display:grid;grid-template-columns:110px 1fr 300px;align-items:center;gap:28px;border-radius:0;border:0;border-bottom:1px solid #14213d22;background:transparent;padding:34px 14px}.theme-editorial .plan.featured{transform:none;background:#14213d;color:#fff}.theme-editorial .plan-index{position:static;color:var(--accent);opacity:1;font-size:3.5rem}.theme-editorial .plan-buy{margin:0}.theme-editorial .plan .button{border-radius:0;width:100%}.theme-editorial .plans-note{border:1px solid #14213d22;padding:16px}.theme-editorial .admin-shell{grid-template-columns:1fr}.theme-editorial .admin-side{display:flex;align-items:center;gap:2px;background:#14213d;color:#fff;border:0;overflow:auto}.theme-editorial .admin-side h3{margin-left:auto;white-space:nowrap}.theme-editorial .admin-side a{white-space:nowrap}.theme-editorial footer{border-color:#14213d22}.theme-editorial .filters input,.theme-editorial .filters select,.theme-editorial .field input,.theme-editorial .field textarea,.theme-editorial .field select{border-color:#14213d22}
@media(max-width:1050px){.theme-editorial .topbar{height:80px;display:flex;background:#14213d;color:#fff}.theme-editorial .header-utility{display:none}.theme-editorial .topbar .user-nav{position:static}.theme-editorial .hero-frame{grid-template-columns:1fr 40%}.theme-editorial .plan{grid-template-columns:80px 1fr 250px}}
@media(max-width:720px){.theme-editorial.route-home .hero{max-width:calc(100% - 20px);min-height:600px}.theme-editorial .hero-frame{display:block;height:auto}.theme-editorial .hero-content{padding:35px 24px}.theme-editorial .title-hero{max-width:calc(100% - 20px)}.theme-editorial .title-content-grid{display:grid}.theme-editorial .plan{grid-template-columns:1fr}.theme-editorial .plan-index{font-size:2.4rem}.theme-editorial .plan-buy{margin-top:0}}
.theme-editorial .hero-content h1{font-size:clamp(2.6rem,4.3vw,4.35rem)}.theme-editorial .title-hero{background:linear-gradient(90deg,#14213db8 0%,#14213df0 58%,#14213dfb 100%),var(--backdrop) center/cover}.theme-editorial .title-copy{text-shadow:0 3px 18px #0b1224}
@media(max-width:720px){.theme-editorial .hero-content h1{font-size:2.3rem}}


/* identical admin interface across brands */
body[class*="route-admin"]{--bg:#f3f5f9;--panel:#fff;--soft:#eef1f6;--text:#172033;--muted:#667085;--accent:#4f46e5;--accent2:#7c3aed;background:#f3f5f9;color:#172033}
body[class*="route-admin"] .topbar{position:sticky;top:0;width:100%;height:70px;padding:0 28px;background:#fff;border-bottom:1px solid #e5e7eb;box-shadow:0 4px 18px #1018280b}
body[class*="route-admin"] .header-utility,body[class*="route-admin"] .topbar nav,body[class*="route-admin"] .topbar .search{display:none}
body[class*="route-admin"] .brand-mark{transform:none;border:0;border-radius:11px}
body[class*="route-admin"] .admin-shell{min-height:calc(100vh - 70px);grid-template-columns:245px minmax(0,1fr);background:#f3f5f9}
body[class*="route-admin"] .admin-side{position:sticky;top:70px;height:calc(100vh - 70px);padding:24px 16px;background:#111827;border:0;color:#e5e7eb}
body[class*="route-admin"] .admin-side a{padding:11px 13px;margin-bottom:5px;border-radius:9px}
body[class*="route-admin"] .admin-side a:hover{background:#ffffff14}
body[class*="route-admin"] .admin-main{padding:32px;max-width:1500px;width:100%}
body[class*="route-admin"] .panel,body[class*="route-admin"] .admin-card,body[class*="route-admin"] .season-admin-card,body[class*="route-admin"] .table-wrap,body[class*="route-admin"] .stat{background:#fff;border:1px solid #e4e7ec;box-shadow:0 8px 24px #1018280a;color:#172033}
body[class*="route-admin"] .field input,body[class*="route-admin"] .field textarea,body[class*="route-admin"] .field select{background:#f8fafc;color:#172033;border-color:#d0d5dd}
body[class*="route-admin"] th,body[class*="route-admin"] td{border-color:#eaecf0}
body[class*="route-admin"] .operator-row{background:#f8fafc;border:1px solid #eaecf0}
body[class*="route-admin"] .season-admin-head{border-color:#eaecf0}
body[class*="route-admin"] .empty-state{border-color:#cbd5e1}
@media(max-width:720px){body[class*="route-admin"] .topbar{position:relative;padding:0 16px}body[class*="route-admin"] .admin-shell{grid-template-columns:1fr}body[class*="route-admin"] .admin-side{position:static;height:auto}body[class*="route-admin"] .admin-main{padding:18px}}
/* editorial navigation v9 */
body.theme-editorial:not([class*="route-admin"]) .topbar{transition:box-shadow .3s ease,background .3s ease}
body.theme-editorial:not([class*="route-admin"]) .topbar.is-scrolled{box-shadow:0 16px 40px #14213d1c;background:#fff}
body.theme-editorial:not([class*="route-admin"]) .topbar nav{gap:8px}
body.theme-editorial:not([class*="route-admin"]) .topbar nav a{padding:9px 13px;border:1px solid transparent}
body.theme-editorial:not([class*="route-admin"]) .topbar nav a:hover,body.theme-editorial:not([class*="route-admin"]) .topbar nav a[aria-current="page"]{border-color:#14213d22;background:#fff;color:#14213d}
body.theme-editorial:not([class*="route-admin"]) .topbar nav a:after{height:3px;background:var(--accent)}
body.theme-editorial:not([class*="route-admin"]) .brand-mark{transition:transform .3s ease}
body.theme-editorial:not([class*="route-admin"]) .brand:hover .brand-mark{transform:rotate(45deg)}

/* Keep the three-row editorial header inside its declared height. */
.theme-editorial .topbar{gap:0}

@media(max-width:1050px){.theme-editorial .topbar nav{display:none}}
@media(max-width:720px){.theme-editorial.nav-open .topbar nav,.theme-editorial.nav-open .topbar .user-nav{display:flex}}

/* Keep detail panels inside the phone/tablet viewport. */
@media(max-width:1050px){
  .theme-editorial .title-content-grid{grid-template-columns:minmax(0,1fr)}
  .theme-editorial .title-content-grid>*{min-width:0;width:100%}
}

/* Wide desktop fix: the card is capped at 1280px, so its inner padding must not
   keep growing with the viewport and squeeze the Persian synopsis column. */
@media(min-width:721px){
  .theme-editorial .title-hero{padding-inline:clamp(32px,3vw,48px)}
  .theme-editorial .title-layout{grid-template-columns:clamp(220px,20vw,250px) minmax(0,1fr);gap:clamp(24px,3vw,38px)}
  .theme-editorial .title-copy{min-width:0}
  .theme-editorial .title-copy>p{width:100%;max-width:none;font-size:1rem;line-height:1.9;text-wrap:pretty}
}
@media(min-width:1051px){
  .theme-editorial .title-score{position:absolute;left:0;bottom:0}
}
