/* AlbMisr Home — تنسيق الصفحة الرئيسية (كل التنسيقات تبدأ بـ .am لمنع التعارض مع القالب) */
.am{--red:#C8102E;--ink:#121317;--dark:#0E0F12;--dark2:#15171C;--card:#1D2026;--paper:#FBFAF7;--muted:#6B6A66;--line:#ECE9E2;
font-family:'IBM Plex Sans Arabic',sans-serif;color:var(--ink);background:var(--paper);direction:rtl;text-align:right;line-height:1.6}
.am *{box-sizing:border-box}
.am a{color:inherit;text-decoration:none}
.am a:hover{opacity:.88}
.am h1,.am h2,.am h3{margin:0;font-family:'Noto Naskh Arabic',serif;font-weight:700;color:inherit}
.am img{max-width:100%}
.am-wrap{max-width:1280px;margin:0 auto;padding-inline:28px}
.am-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.am-ph{background-color:#262A31;background-image:repeating-linear-gradient(135deg,rgba(255,255,255,.04) 0 2px,transparent 2px 14px)}
.am-ph{position:relative;overflow:hidden}
.am-pic{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 30%;display:block}
.am-fill{position:absolute;inset:0}
.am-r16x10{aspect-ratio:16/9;border-radius:14px}
.am-r16x9{aspect-ratio:16/9;border-radius:12px}
.am-r3x4{aspect-ratio:3/4;border-radius:14px}
.am-thumb-120{width:120px;height:120px;border-radius:10px;flex-shrink:0}
.am-thumb-104{width:104px;height:74px;border-radius:10px;flex-shrink:0}
.am-meta{font-size:13px;color:var(--muted)}
.am-meta-light{font-size:14px;color:#B5B6BC}
.am-card:hover h3{color:var(--red)}
.am-stack{display:flex;flex-direction:column;gap:24px}
.am-stack-s{display:flex;flex-direction:column;gap:12px}
.am-sec-pad{padding-block:56px}

/* الترويسة */
.am-header{background:var(--dark);color:#fff}
.am-top{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;padding:8px 0;font-size:13px;color:#9C9CA3;border-bottom:1px solid #23252B}
.am-top-links{display:flex;gap:22px;flex-wrap:wrap}
.am-strong{color:#fff !important;font-weight:600}
.am-mast{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px;padding:14px 0}
.am-logo{display:flex;align-items:center;gap:14px}
.am-mark{width:50px;height:50px;border-radius:50%;background:var(--red);display:flex;align-items:center;justify-content:center;font-family:'Noto Kufi Arabic',sans-serif;font-weight:900;font-size:26px;box-shadow:0 0 0 4px var(--dark),0 0 0 6px var(--red)}
.am-logo-text{display:flex;flex-direction:column;gap:2px}
.am-logo-text b{font-family:'Noto Kufi Arabic',sans-serif;font-weight:900;font-size:32px;line-height:1.1}
.am-logo-text small{font-family:'Noto Kufi Arabic',sans-serif;font-size:12px;color:#9C9CA3;letter-spacing:5px}
.am-mast-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.am-search{display:flex;align-items:center;height:44px;border:1px solid #34363D;border-radius:999px;padding:0 6px 0 16px}
.am-search input{background:transparent;border:0;color:#fff;font:inherit;font-size:14px;width:180px;outline:none;padding:0 12px}
.am-search button{width:40px;height:40px;border-radius:50%;border:0;background:transparent;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center}
.am-btn-light{height:44px;padding:0 26px;border-radius:999px;background:#fff;color:var(--dark) !important;display:flex;align-items:center;font-weight:700}
.am-nav{display:flex;flex-wrap:wrap;gap:2px;font-family:'Noto Kufi Arabic',sans-serif;font-weight:700;font-size:15px}
.am-nav a{padding:13px 12px;color:#C9C9CE;border-bottom:4px solid transparent}
.am-nav a.is-active,.am-nav a:hover{color:#fff;border-bottom-color:var(--red);opacity:1}

/* عاجل */
.am-ticker{background:var(--red);color:#fff;display:flex;overflow:hidden;font-weight:600;font-size:15px}
.am-ticker-label{background:var(--dark);padding:12px 24px;font-family:'Noto Kufi Arabic',sans-serif;font-weight:900;flex-shrink:0;position:relative;z-index:1}
.am-ticker-box{overflow:hidden;flex:1;padding:12px 0}
.am-ticker-track{display:flex;gap:48px;white-space:nowrap;width:max-content;animation:am-tk 60s linear infinite}
.am-ticker-track:hover{animation-play-state:paused}
@keyframes am-tk{from{transform:translateX(-50%)}to{transform:translateX(0)}}
@media (prefers-reduced-motion:reduce){.am-ticker-track{animation:none}}

/* الواجهة */
.am-hero{background:var(--dark2);color:#fff}
.am-hero-in{padding-block:36px 44px;display:flex;flex-wrap:wrap;gap:24px}
.am-hero-lead{flex:2 1 600px;min-width:0;min-height:540px;border-radius:18px;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end}
.am-overlay{position:relative;padding:40px;background:linear-gradient(to top,rgba(10,11,14,.95),rgba(10,11,14,0));display:flex;flex-direction:column;gap:14px;color:#fff}
.am-hero-lead h1{font-size:44px;line-height:1.45}
.am-chip{align-self:flex-start;background:var(--red);color:#fff;padding:6px 14px;border-radius:6px;font-family:'Noto Kufi Arabic',sans-serif;font-weight:700;font-size:14px}
.am-hero-side{flex:1 1 340px;min-width:0;display:flex;flex-direction:column;gap:18px}
.am-side-card{display:flex;gap:16px;background:var(--card);border-radius:14px;padding:14px;align-items:center}
.am-side-card > div{display:flex;flex-direction:column;gap:8px;min-width:0}
.am-kicker{font-family:'Noto Kufi Arabic',sans-serif;font-weight:700;font-size:13px;color:#FFB4BE}
.am-side-title{font-family:'Noto Naskh Arabic',serif;font-weight:700;font-size:19px;line-height:1.55}

/* السلايدر */
.am-slider{flex:2 1 600px;min-width:0;height:500px;border-radius:18px;position:relative;overflow:hidden;background:#262A31}
.am-slide{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-end;opacity:0;visibility:hidden;transition:opacity .6s ease,visibility .6s}
.am-slide.is-on{opacity:1;visibility:visible;z-index:1}
.am-slide .am-overlay{padding:36px 36px 76px}
.am-slide-title{font-size:38px !important;line-height:1.45}
.am-slider-nav{position:absolute;z-index:2;left:24px;bottom:22px;display:flex;align-items:center;gap:10px;color:#fff;font-size:14px}
.am-arrow{width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,255,255,.35);background:rgba(14,15,18,.55);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center}
.am-arrow:hover{background:var(--red);border-color:var(--red)}
.am-count b{font-weight:700}
.am-progress{position:absolute;z-index:2;left:0;right:0;bottom:0;height:4px;background:rgba(255,255,255,.12)}
.am-progress span{display:block;height:100%;width:0;background:var(--red);margin-inline-start:0}
.am-hero-list{flex:1 1 340px;min-width:0;height:500px;background:var(--card);border-radius:18px;display:flex;flex-direction:column;overflow:hidden}
.am-list-head{padding:16px 20px;font-family:'Noto Kufi Arabic',sans-serif;font-weight:900;font-size:17px;border-bottom:1px solid #2C2F36}
.am-hero-scroll{overflow-y:auto;flex:1;scrollbar-width:thin;scrollbar-color:#3A3C42 transparent}
.am-hl{all:unset;box-sizing:border-box;width:100%;display:flex;gap:12px;align-items:center;padding:12px 16px;cursor:pointer;border-inline-start:4px solid transparent;color:#D9D9DE}
.am-hl:hover{background:#23262D}
.am-hl.is-on{background:#262A31;border-inline-start-color:var(--red);color:#fff}
.am-hl:focus-visible{outline:2px solid #fff;outline-offset:-2px}
.am-hl-thumb{width:72px;height:54px;border-radius:8px;flex-shrink:0}
.am-hl-text{font-family:'Noto Naskh Arabic',serif;font-weight:700;font-size:15px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.am-hl-text em{display:block;font-style:normal;font-family:'Noto Kufi Arabic',sans-serif;font-size:11px;color:#FFB4BE;margin-bottom:2px}

/* تريند */
.am-trend{background:#fff;border-bottom:1px solid var(--line)}
.am-trend-in{padding-block:18px;display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.am-trend-label{font-family:'Noto Kufi Arabic',sans-serif;font-weight:900;margin-left:8px}
.am-trend-in a{padding:8px 16px;border-radius:999px;background:#F3F1EC;font-weight:600;font-size:14px}

/* عناوين الأقسام */
.am-head{display:flex;align-items:center;gap:14px}
.am-head h2{font-family:'Noto Kufi Arabic',sans-serif;font-weight:900;font-size:26px}
.am-bar{width:10px;height:34px;border-radius:3px;flex-shrink:0}
.am-line{flex:1;height:1px;background:#E2DED5}
.am-head > a{font-weight:600;font-size:14px;white-space:nowrap}
.am-accent{color:var(--red) !important}

/* المحتوى + الجانبي */
.am-cols{padding-block:44px;display:flex;flex-wrap:wrap;gap:40px}
.am-main{flex:999 1 640px;min-width:0;display:flex;flex-direction:column;gap:48px}
.am-block{display:flex;flex-direction:column;gap:18px}
.am-block-in{display:flex;flex-wrap:wrap;gap:24px}
.am-block-lead{flex:1.2 1 320px;min-width:0;display:flex;flex-direction:column;gap:14px}
.am-block-lead h3{font-size:24px;line-height:1.6}
.am-block-list{flex:1 1 280px;min-width:0;display:flex;flex-direction:column;gap:16px}
.am-row{display:flex;gap:14px;align-items:center;padding-bottom:16px;border-bottom:1px solid var(--line)}
.am-row h3{font-size:17px;line-height:1.6}
.am-aside{flex:1 1 300px;min-width:0;display:flex;flex-direction:column;gap:28px}
.am-box{background:#fff;border-radius:16px;padding:24px;display:flex;flex-direction:column;gap:16px;box-shadow:0 8px 24px rgba(0,0,0,.05)}
.am-box h2{font-family:'Noto Kufi Arabic',sans-serif;font-weight:900;font-size:20px}
.am-pick{display:flex;gap:14px;align-items:flex-start;font-family:'Noto Naskh Arabic',serif;font-weight:700;font-size:17px;line-height:1.6}
.am-num{font-family:'Noto Kufi Arabic',sans-serif;font-weight:900;font-size:34px;line-height:1;color:#E2DED5}
.am-dot-item{display:flex;gap:10px;align-items:baseline;font-family:'Noto Naskh Arabic',serif;font-weight:700;font-size:16px;line-height:1.6}
.am-dot{width:8px;height:8px;border-radius:50%;background:#8B1E1E;flex-shrink:0}
.am-box-dark{background:var(--dark);color:#fff}
.am-social{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;font-weight:600;font-size:14px}
.am-social a{background:var(--card);padding:12px;border-radius:10px;text-align:center}

/* الإعلانات */
.am-ad{margin:0 auto;text-align:center;overflow:hidden}
.am-ad-728{max-width:728px;padding:24px 0 0}
.am-ad-970{max-width:970px;margin-bottom:48px}
.am-ad-300{min-height:250px}
.am-ad-300x600{min-height:600px}

/* سعودية ومكة */
.am-saudi{background:#EAF3EE;padding-block:52px}
.am-saudi .am-head h2{color:#0B4A36}
.am-grid4{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:22px}
.am-white-card{background:#fff;border-radius:14px;overflow:hidden;display:flex;flex-direction:column}
.am-white-card .am-r16x10{border-radius:0}
.am-pad{padding:16px 18px 20px;display:flex;flex-direction:column;gap:8px}
.am-pad h3{font-size:18px;line-height:1.6}

/* تحقيقات */
.am-dark{background:var(--dark);color:#fff;padding-block:60px}
.am-dark-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px}
.am-dark-head h2{font-family:'Noto Kufi Arabic',sans-serif;font-weight:900;font-size:36px}
.am-eyebrow{display:block;font-family:'Noto Kufi Arabic',sans-serif;font-weight:700;color:#FFB4BE;letter-spacing:2px;margin-bottom:8px}
.am-btn-ghost{border:1px solid #3A3C42;padding:12px 24px;border-radius:999px;font-weight:600;color:#fff !important}
.am-inv{display:flex;flex-wrap:wrap;gap:24px}
.am-inv-big{flex:1.4 1 480px;min-height:420px;border-radius:18px;overflow:hidden;position:relative;display:flex;flex-direction:column;justify-content:flex-end}
.am-inv-big h3{font-size:30px;line-height:1.5}
.am-inv-side{flex:1 1 320px;display:flex;flex-direction:column;gap:24px}
.am-inv-small{flex:1;min-height:198px;border-radius:18px;overflow:hidden;position:relative;display:flex;flex-direction:column;justify-content:flex-end}
.am-inv-small .am-overlay{padding:22px}
.am-inv-small h3{font-size:20px;line-height:1.55}

/* شبكة الأقسام */
.am-grid6{padding-block:60px;display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:40px 32px}
.am-col{display:flex;flex-direction:column;gap:16px}
.am-col-head{display:flex;align-items:center;justify-content:space-between;border-bottom:3px solid;padding-bottom:10px}
.am-col-head h2{font-family:'Noto Kufi Arabic',sans-serif;font-weight:900;font-size:24px}
.am-col-head a{font-weight:600;font-size:13px;color:var(--muted)}
.am-h20{font-size:20px;line-height:1.6}
.am-col-item{padding-top:12px;border-top:1px solid var(--line)}
.am-col-item h3{font-size:16px;line-height:1.6}

/* مقالات الرأي */
.am-opinion{background:#F1EEE7;padding-block:56px}
.am-quote{font-family:'Noto Naskh Arabic',serif;font-size:72px;line-height:.5;color:var(--red)}
.am-writer{background:#fff;border-radius:16px;padding:24px;display:flex;flex-direction:column;gap:16px}
.am-writer-top{display:flex;gap:14px;align-items:center;font-family:'Noto Kufi Arabic',sans-serif;font-weight:700}
.am-avatar{width:60px !important;height:60px !important;border-radius:50%;object-fit:cover}
.am-writer h3{font-size:19px;line-height:1.65}

/* إنفوجرافيك */
.am-grid5{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:20px}
.am-grid5 h3{font-size:17px;line-height:1.6}

/* مجتمع */
.am-community{padding-bottom:60px;display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:22px}
.am-com-card{border-radius:18px;padding:30px;display:flex;flex-direction:column;gap:12px;color:#fff !important;min-height:170px}
.am-com-card b{font-family:'Noto Kufi Arabic',sans-serif;font-weight:900;font-size:26px}
.am-com-card span{font-size:15px;line-height:1.7;opacity:.92}
.am-com-card em{margin-top:auto;font-style:normal;font-weight:700;font-size:14px}

/* العدد الورقي */
.am-print{background:var(--dark);color:#fff}
.am-print-in{padding-block:64px;display:flex;flex-wrap:wrap;gap:56px;align-items:center}
.am-cover{flex:0 0 auto;width:260px;height:360px;border-radius:4px;position:relative;overflow:hidden;transform:rotate(-4deg);box-shadow:24px 24px 0 var(--red)}
.am-print-text{flex:1 1 400px;display:flex;flex-direction:column;gap:16px}
.am-print-text h2{font-family:'Noto Kufi Arabic',sans-serif;font-weight:900;font-size:42px;line-height:1.35}
.am-print-text p{margin:0;font-size:17px;color:#B5B6BC}
.am-btns{display:flex;gap:12px;flex-wrap:wrap}
.am-btn-accent{background:var(--red);color:#fff !important;padding:15px 30px;border-radius:999px;font-weight:700}

/* تليفزيون */
.am-tv{background:var(--dark2);color:#fff;padding-block:56px}
.am-tv h2{font-family:'Noto Kufi Arabic',sans-serif;font-weight:900;font-size:30px}
.am-grid3{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px}
.am-video{aspect-ratio:16/9;border-radius:14px;overflow:hidden}
.am-video iframe{width:100%;height:100%;border:0}

/* تليفزيون — تفاصيل */
.am-btn-yt{background:#FF0000;color:#fff !important;padding:12px 22px;border-radius:999px;font-weight:700}
.am-tv-in{display:flex;flex-wrap:wrap;gap:24px}
.am-tv-main{flex:2 1 560px;min-width:0;display:flex;flex-direction:column;gap:14px}
.am-tv-main h3{font-size:22px;line-height:1.55}
.am-tv-list{flex:1 1 300px;min-width:0;display:flex;flex-direction:column;gap:14px}
.am-tv-item{display:flex;gap:14px;align-items:center;background:var(--card);border-radius:12px;padding:10px;font-weight:600;font-size:15px;line-height:1.6}
.am-tv-thumb{position:relative;width:140px;aspect-ratio:16/9;border-radius:8px;overflow:hidden;flex-shrink:0;background:#262A31}
.am-tv-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.am-tv-thumb i{position:absolute;inset:0;margin:auto;width:36px;height:36px;border-radius:50%;background:var(--red);display:flex;align-items:center;justify-content:center}

/* التذييل */
.am-footer{background:var(--dark);color:#9C9CA3;font-size:14px}
.am-foot-in{padding-block:48px 24px;display:flex;flex-wrap:wrap;gap:40px;justify-content:space-between}
.am-foot-brand{flex:1 1 320px}
.am-foot-brand b{font-family:'Noto Kufi Arabic',sans-serif;font-weight:900;font-size:32px;color:#fff}
.am-foot-brand p{line-height:1.9;margin:12px 0 0}
.am-foot-col{display:flex;flex-direction:column;gap:10px}
.am-foot-col b{color:#fff}
.am-copy{padding-block:18px;border-top:1px solid #23252B;font-size:13px}

/* الموبايل */
@media (max-width:760px){
.am-wrap{padding-inline:16px}
.am-mark{width:42px;height:42px;font-size:22px}
.am-logo-text b{font-size:26px}
.am-search input{width:120px}
.am-nav{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.am-nav a{white-space:nowrap}
.am-slider{height:400px;flex-basis:100%}
.am-slide-title{font-size:24px !important}
.am-slide .am-overlay{padding:20px 20px 72px}
.am-hero-list{height:360px}
.am-tv-thumb{width:110px}
.am-hero-lead h1{font-size:28px}
.am-overlay{padding:22px}
.am-thumb-120{width:96px;height:96px}
.am-side-title{font-size:17px}
.am-block-lead h3{font-size:21px}
.am-grid6{grid-template-columns:1fr}
.am-print-text h2{font-size:30px}
.am-cover{width:200px;height:280px}
}
.am-ph.am-fill{position:absolute;inset:0}

/* البانر القديم الذي يضيفه القالب فوق كل الصفحات: يُخفى في الصفحة الرئيسية الجديدة فقط */
.qalbmisr-header-banner{display:none !important}
/* العمود الجانبي يثبت أثناء التمرير */
.am-aside{align-self:flex-start;position:sticky;top:16px}
/* محليات واقتصاد جنبًا إلى جنب */
.am-duo{padding-bottom:48px;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,520px),1fr));gap:40px}
.am-duo .am-block-in{flex-direction:column}
.am-duo .am-block-lead,.am-duo .am-block-list{flex:none}
@media (max-width:760px){.am-aside{position:static}}

/* إصلاح حركة شريط عاجل في الاتجاه العربي */
.am-ticker-box{direction:ltr}
.am-ticker-track{direction:rtl}

/* ===== البانر الجديد (بدون صورة) ===== */
.am-flag{display:flex;height:5px}
.am-flag i{flex:1}
.am-flag i:nth-child(1){background:#CE1126}
.am-flag i:nth-child(2){background:#FFFFFF}
.am-flag i:nth-child(3){background:#000000;box-shadow:inset 0 -1px 0 #2A2C31}
.am-mast{flex-wrap:nowrap}
.am-staff{flex:1;display:flex;align-items:center;justify-content:center;gap:0;min-width:0}
.am-tagline{font-size:12px;color:#9C9CA3;line-height:1.6;padding-inline:22px;border-inline-start:1px solid #2C2F36}
.am-tagline b{color:#E6E6EA;font-weight:600}
.am-staff-item{display:flex;flex-direction:column;align-items:center;padding-inline:22px;border-inline-start:1px solid #2C2F36;line-height:1.35;white-space:nowrap}
.am-staff-item small{font-size:11px;color:#FFB4BE;font-weight:600}
.am-staff-item b{font-family:'Noto Kufi Arabic',sans-serif;font-weight:700;font-size:15px;color:#fff}
@media (max-width:1180px){.am-tagline{display:none}}
@media (max-width:980px){.am-mast{flex-wrap:wrap}.am-staff{order:3;flex-basis:100%;justify-content:space-between;padding-top:10px;border-top:1px solid #23252B}.am-staff-item{padding-inline:8px;border:0}.am-staff-item b{font-size:13px}}


/* ===== آخر الأخبار (يملأ الفراغ) ===== */
.am-main{align-self:flex-start}
.am-more{display:flex;flex-direction:column;gap:18px}
.am-more[hidden],.am-more-item[hidden]{display:none !important}
.am-more-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px}
.am-more-item{display:flex;gap:12px;align-items:center;padding-bottom:14px;border-bottom:1px solid var(--line)}
.am-more-thumb{width:96px;height:68px;border-radius:10px;flex-shrink:0}
.am-more-item em{display:block;font-style:normal;font-family:'Noto Kufi Arabic',sans-serif;font-weight:700;font-size:11px;color:var(--red);margin-bottom:2px}
.am-more-item h3{font-size:15px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* قسم التليفزيون القديم الذي يضيفه كود سابق تحت الفوتر: يُخفى لأن قسمنا يغني عنه */
#qm-tv-section{display:none !important}

/* =========================================================
   صفحة الخبر + صفحة القسم (الإصدار 1.3)
   ========================================================= */
body.am-body{margin:0;background:#FBFAF7}
.am-body .sharedaddy,.am-body .jp-relatedposts,.am-body #jp-relatedposts,.am-body .jetpack-likes-widget-wrapper,.am-body #likes-other-gravatars{display:none !important}
.am-crumbs{display:flex;gap:10px;align-items:center;font-size:14px;color:var(--muted);padding-block:18px 0}
.am-crumbs a{color:var(--muted)}
.am-crumbs a:hover{color:var(--red)}
.am-crumbs-light,.am-crumbs-light a{color:#B5B6BC;padding:0}

/* الخبر */
.am-single{display:flex;flex-wrap:wrap;gap:48px;padding-block:20px 60px}
.am-article{flex:999 1 620px;min-width:0;max-width:820px}
.am-art-head{display:flex;flex-direction:column;gap:16px;padding-bottom:22px;border-bottom:1px solid var(--line)}
.am-art-head .am-chip{color:#fff !important}
.am-art-head h1{font-size:40px;line-height:1.55;font-weight:700;color:var(--ink)}
.am-lede{margin:0;font-size:20px;line-height:1.85;color:#44423D;font-weight:500}
.am-art-meta{display:flex;flex-wrap:wrap;gap:8px 22px;align-items:center;font-size:14px;color:var(--muted)}
.am-byline{display:flex;align-items:center;gap:10px;color:var(--ink)}
.am-avatar-s{width:40px !important;height:40px !important;border-radius:50%}
.am-share{display:flex;gap:8px}
.am-share a{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff !important}
.am-sh-fb{background:#1877F2}.am-sh-x{background:#111}.am-sh-wa{background:#25D366}.am-sh-tg{background:#229ED9}
.am-art-figure{margin:26px 0 0}
.am-art-figure img{width:100%;height:auto;max-height:560px;object-fit:cover;border-radius:16px;display:block}
.am-art-figure figcaption{font-size:13px;color:var(--muted);padding-top:8px}
.am-prose{font-family:'Noto Naskh Arabic',serif;font-size:21px;line-height:2.05;color:#1E1F23;padding-top:28px;overflow-wrap:anywhere}
.am-prose p{margin:0 0 1.15em}
.am-prose h2,.am-prose h3,.am-prose h4{font-family:'Noto Kufi Arabic',sans-serif;font-weight:700;line-height:1.6;margin:1.6em 0 .6em;color:var(--ink)}
.am-prose h2{font-size:26px}.am-prose h3{font-size:22px}
.am-prose strong,.am-prose b{color:var(--ink)}
.am-prose a{color:var(--red);text-decoration:underline;text-underline-offset:4px}
.am-prose img{max-width:100%;height:auto;border-radius:12px}
.am-prose figure{margin:1.4em 0}
.am-prose blockquote{margin:1.6em 0;padding:18px 24px;border-inline-start:5px solid var(--red);background:#F3F1EC;border-radius:10px;font-weight:700}
.am-prose ul,.am-prose ol{padding-inline-start:1.4em;margin:0 0 1.2em}
.am-prose iframe{max-width:100%}
.am-tags{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:28px;font-size:14px}
.am-tags a{background:#F3F1EC;padding:7px 14px;border-radius:999px;font-weight:600}
.am-art-foot{display:flex;align-items:center;gap:16px;margin-top:28px;padding:18px 22px;background:#fff;border-radius:14px;font-weight:700}
.am-related{margin-top:48px;display:flex;flex-direction:column;gap:20px}
.am-rel-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:22px}
.am-rel-grid h3{font-size:17px;line-height:1.6}
.am-art-aside{flex:1 1 300px;max-width:380px}

/* القسم */
.am-cat-hero{background:var(--dark2);color:#fff;border-bottom:5px solid var(--c)}
.am-cat-hero-in{padding-block:30px 34px;display:flex;flex-direction:column;gap:12px}
.am-cat-hero h1{display:flex;align-items:center;gap:16px;font-family:'Noto Kufi Arabic',sans-serif;font-weight:900;font-size:44px;line-height:1.3}
.am-cat-hero .am-bar{height:44px;width:12px}
.am-cat-desc{color:#C9C9CE;font-size:16px;line-height:1.8;max-width:760px}
.am-cat-desc p{margin:0}
.am-cat-count{font-size:14px;color:#9C9CA3}
.am-cat-body{padding-block:36px 64px;display:flex;flex-direction:column;gap:40px}
.am-cat-top{display:flex;flex-wrap:wrap;gap:28px}
.am-cat-lead{flex:1.6 1 560px;min-width:0;min-height:440px;border-radius:18px;overflow:hidden;position:relative;display:flex;flex-direction:column;justify-content:flex-end}
.am-cat-lead h2{font-size:32px;line-height:1.5}
.am-cat-side{flex:1 1 340px;min-width:0;display:flex;flex-direction:column;gap:16px;justify-content:space-between}
.am-cat-side h3{font-size:18px;line-height:1.6}
.am-cat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:28px}
.am-cat-card{background:#fff;border-radius:16px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 1px 2px rgba(0,0,0,.04),0 8px 22px rgba(0,0,0,.05)}
.am-cat-card .am-r16x9{border-radius:0}
.am-cat-card h3{font-size:19px;line-height:1.6}
.am-cat-card p{margin:0;font-size:14px;line-height:1.8;color:var(--muted)}
.am-empty{text-align:center;color:var(--muted);padding:40px}
.am-pager{display:flex;justify-content:center}
.am-pager .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0 14px;margin:4px;border-radius:999px;background:#fff;font-weight:700;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.am-pager .page-numbers.current{background:var(--red);color:#fff}
.am-pager .page-numbers.dots{background:transparent;box-shadow:none}
@media (max-width:760px){
.am-art-head h1{font-size:27px}
.am-lede{font-size:17px}
.am-prose{font-size:18px;line-height:1.95}
.am-cat-hero h1{font-size:30px}
.am-cat-lead{min-height:320px}
.am-cat-lead h2{font-size:22px}
.am-art-aside{max-width:none}
}

/* =========================================================
   صفحة الخبر — الإصدار 1.4
   ========================================================= */
.am-progress-read{position:fixed;top:0;left:0;right:0;height:4px;z-index:9999;background:transparent}
.am-progress-read span{display:block;height:100%;width:0;background:var(--red,#C8102E);margin-inline-start:0;transition:width .1s linear}
.am-art-hero{background:var(--dark2);color:#fff;border-bottom:5px solid var(--c)}
.am-art-hero-in{padding-block:22px 34px;display:flex;flex-direction:column;gap:14px;max-width:1080px}
.am-art-hero .am-chip{color:#fff !important}
.am-art-hero h1{font-size:44px;line-height:1.5;color:#fff;max-width:980px}
.am-art-hero .am-lede{color:#D2D2D7;max-width:860px}
.am-art-hero .am-art-meta{color:#B5B6BC;gap:10px 26px;margin-top:6px}
.am-art-hero .am-byline{color:#fff}
.am-byline span{display:flex;flex-direction:column;line-height:1.3}
.am-byline small{font-size:11px;color:#9C9CA3}
.am-meta-item{display:inline-flex;align-items:center;gap:6px}
.am-single{gap:36px;padding-block:32px 56px;align-items:flex-start}
.am-share-rail{position:sticky;top:20px;display:flex;flex-direction:column;gap:10px;align-items:center;flex:0 0 46px}
.am-share-rail .am-share{flex-direction:column}
.am-copy{width:42px;height:42px;border-radius:50%;border:1px solid #D6D1C7;background:#fff;color:var(--ink);cursor:pointer;display:flex;align-items:center;justify-content:center}
.am-copy.is-done{background:#0F7A3D;border-color:#0F7A3D;color:#fff}
.am-article{flex:999 1 560px}
.am-art-figure{margin:0}
.am-tools{display:flex;align-items:center;gap:8px;margin-top:22px;padding:10px 14px;background:#fff;border-radius:12px;font-size:14px;color:var(--muted);box-shadow:0 1px 3px rgba(0,0,0,.05)}
.am-tools button{min-width:44px;height:36px;border-radius:8px;border:1px solid #E2DED5;background:#FBFAF7;font:inherit;font-weight:700;color:var(--ink);cursor:pointer;display:inline-flex;align-items:center;gap:6px;padding:0 10px}
.am-tools button:hover{border-color:var(--red);color:var(--red)}
.am-tools-sep{flex:1}
.am-inline-read{margin:1.6em 0;padding:16px 18px;border-radius:14px;background:#fff;border:1px solid #ECE9E2;border-inline-start:5px solid var(--red);font-family:'IBM Plex Sans Arabic',sans-serif}
.am-inline-read > span{display:block;font-family:'Noto Kufi Arabic',sans-serif;font-weight:900;font-size:13px;color:var(--red);margin-bottom:10px}
.am-inline-read a{display:flex;gap:14px;align-items:center;color:var(--ink) !important;text-decoration:none !important}
.am-inline-read b{font-family:'Noto Naskh Arabic',serif;font-size:18px;line-height:1.6}
.am-inline-thumb{width:110px;height:72px;border-radius:10px;flex-shrink:0}
.am-author-box{display:flex;gap:20px;align-items:center;margin-top:28px;padding:24px;background:var(--dark);color:#fff;border-radius:18px}
.am-avatar-l{width:84px !important;height:84px !important;border-radius:50%;flex-shrink:0;border:3px solid var(--red)}
.am-author-box div{display:flex;flex-direction:column;gap:4px}
.am-author-box small{color:#FFB4BE;font-weight:700;font-size:12px}
.am-author-box b{font-family:'Noto Kufi Arabic',sans-serif;font-size:20px}
.am-author-box p{margin:4px 0;color:#C9C9CE;line-height:1.8;font-size:14px}
.am-author-box a{color:#fff;font-weight:700;font-size:14px}
.am-prevnext{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:28px}
.am-pn{display:flex;gap:12px;align-items:center;background:#fff;border-radius:14px;padding:12px;box-shadow:0 1px 3px rgba(0,0,0,.05)}
.am-pn-next{justify-content:flex-end;text-align:left}
.am-pn span{display:flex;flex-direction:column;gap:4px;min-width:0}
.am-pn small{color:var(--red);font-weight:700;font-size:12px}
.am-pn b{font-family:'Noto Naskh Arabic',serif;font-size:15px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.am-pn-thumb{width:84px;height:62px;border-radius:10px;flex-shrink:0}
.am-related-band{background:#F1EEE7;padding-block:48px}
.am-art-aside{position:sticky;top:20px}

/* صفحة القسم: أزرار الأقسام الأخرى */
.am-cat-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.am-cat-chips a{padding:7px 14px;border-radius:999px;border:1px solid #3A3C42;color:#D9D9DE;font-size:13px;font-weight:600}
.am-cat-chips a:hover{background:#fff;color:var(--ink);opacity:1}

@media (max-width:980px){
.am-share-rail{display:none}
.am-art-aside{position:static}
}
@media (max-width:760px){
.am-art-hero h1{font-size:27px}
.am-prevnext{grid-template-columns:1fr}
.am-author-box{flex-direction:column;text-align:center}
.am-tools .am-print{display:none}
}
@media print{
.am-header,.am-ticker,.am-share-rail,.am-tools,.am-art-aside,.am-related-band,.am-footer,.am-art-foot,.am-prevnext,.am-progress-read{display:none !important}
.am-art-hero{background:#fff;color:#000}.am-art-hero h1{color:#000}
}
