/*
Theme Name: Kora Live
Theme URI: https://example.com/
Description: قالب رياضي عربي خفيف وسريع (وضع فاتح + داكن مع زر تبديل) لمواقع البث المباشر والمقالات — متناسق بالكامل مع إضافة Alba Live Matches (أبيض وأسود فاخر). مبني للأداء العالي في PageSpeed مع دعم كامل للعربية (RTL) وقوائم ومناطق ودجت.
Author: مخصص لأحمد
Version: 1.4.1
Requires at least: 5.5
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: kora-live
Tags: rtl-language-support, custom-menu, featured-images, threaded-comments, translation-ready, blog, news
*/

/* ============================================================
   1) المتغيّرات — نفس لوحة ألوان إضافة Alba Live Matches
   :root = فاتح (افتراضي). مع تفضيل الجهاز الداكن أو
   [data-theme="dark"] → الألوان الداكنة. و[data-theme="light"]
   يفرض الفاتح حتى لو الجهاز داكن.
   اللون المميّز افتراضياً أبيض/أسود (يتبدّل مع الوضع).
   ============================================================ */
:root{
	/* لوحة فاتحة */
	--bg:#f3f4f6;
	--bg-2:#fafafb;
	--surface:#ffffff;
	--surface-2:#f6f6f8;
	--surface-3:#eff0f3;
	--border:#e7e8ec;
	--border-2:#d6d8de;
	--text:#14161b;
	--muted:#5f6472;
	--muted-2:#8b90a0;
	--hover:#4a4e5a;
	--header-bg:rgba(255,255,255,.86);
	--shadow:0 14px 34px rgba(20,22,27,.08);
	--shadow-sm:0 1px 2px rgba(20,22,27,.05),0 4px 14px rgba(20,22,27,.04);

	/* اللون المميّز: أسود فحمي في الفاتح */
	--accent:#17181c;
	--accent-2:#3a3c44;
	--accent-ink:#ffffff;
	--accent-grad:linear-gradient(135deg,#3a3c44 0%,#15161a 100%);
	--accent-glow:rgba(20,22,27,.20);

	/* مشتركة */
	--live:#e5303c;
	--ok:#22c55e;
	--radius:16px;
	--radius-sm:11px;
	--wrap:1200px;
	--gap:22px;
	--font:"Segoe UI",Tahoma,"Helvetica Neue",Arial,"Noto Sans Arabic",sans-serif;
	--head:"Segoe UI",Tahoma,Arial,"Noto Sans Arabic",sans-serif;
	color-scheme:light;
}

/* لوحة داكنة: نفس درجات الإضافة (أسود فحمي محايد) */
@media (prefers-color-scheme: dark){
	:root:not([data-theme="light"]){
		--bg:#0f0f11;
		--bg-2:#141416;
		--surface:#1c1c1f;
		--surface-2:#222226;
		--surface-3:#2a2a2f;
		--border:#2b2b30;
		--border-2:#3b3b41;
		--text:#f4f4f6;
		--muted:#a3a3ad;
		--muted-2:#77777f;
		--hover:#cfcfd6;
		--header-bg:rgba(15,15,17,.82);
		--shadow:0 18px 44px rgba(0,0,0,.45);
		--shadow-sm:0 1px 0 rgba(255,255,255,.02),0 6px 18px rgba(0,0,0,.28);
		--accent:#f4f4f6;
		--accent-2:#ffffff;
		--accent-ink:#141416;
		--accent-grad:linear-gradient(135deg,#ffffff 0%,#cfcfd6 100%);
		--accent-glow:rgba(255,255,255,.10);
		--live:#ff4d58;
		color-scheme:dark;
	}
}
:root[data-theme="dark"]{
	--bg:#0f0f11;
	--bg-2:#141416;
	--surface:#1c1c1f;
	--surface-2:#222226;
	--surface-3:#2a2a2f;
	--border:#2b2b30;
	--border-2:#3b3b41;
	--text:#f4f4f6;
	--muted:#a3a3ad;
	--muted-2:#77777f;
	--hover:#cfcfd6;
	--header-bg:rgba(15,15,17,.82);
	--shadow:0 18px 44px rgba(0,0,0,.45);
	--shadow-sm:0 1px 0 rgba(255,255,255,.02),0 6px 18px rgba(0,0,0,.28);
	--accent:#f4f4f6;
	--accent-2:#ffffff;
	--accent-ink:#141416;
	--accent-grad:linear-gradient(135deg,#ffffff 0%,#cfcfd6 100%);
	--accent-glow:rgba(255,255,255,.10);
	--live:#ff4d58;
	color-scheme:dark;
}
html{background:var(--bg)}

/* ============================================================
   2) تصفير + أساسيات
   ============================================================ */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
	margin:0;background:var(--bg);color:var(--text);
	font-family:var(--font);font-size:16px;line-height:1.75;
	-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
	overflow-x:hidden;
}
::selection{background:var(--accent);color:var(--accent-ink)}
img,svg,video{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none;transition:color .18s ease,opacity .18s ease}
a:hover{color:var(--hover)}
h1,h2,h3,h4{font-family:var(--head);line-height:1.3;margin:0 0 .6em;font-weight:800;letter-spacing:-.2px}
p{margin:0 0 1em}
ul,ol{margin:0 0 1em;padding-inline-start:1.4em}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.skip-link{position:absolute;right:-9999px;top:0;z-index:1000;background:var(--accent);color:var(--accent-ink);padding:10px 16px;border-radius:0 0 8px 0}
.skip-link:focus{right:0}

/* ============================================================
   3) التخطيط العام
   ============================================================ */
.wrap{max-width:var(--wrap);margin-inline:auto;padding-inline:16px}
.site-main{padding-block:26px}
.layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:var(--gap);align-items:start}
.layout.no-sidebar{grid-template-columns:minmax(0,1fr)}
@media(max-width:980px){.layout{grid-template-columns:minmax(0,1fr)}}

.section{margin-bottom:34px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.section-title{position:relative;font-size:1.3rem;margin:0;padding-inline-start:16px}
.section-title::before{content:"";position:absolute;inset-inline-start:0;top:.2em;bottom:.2em;width:5px;border-radius:6px;background:var(--accent)}
.section-more{display:inline-flex;align-items:center;font-size:.86rem;font-weight:600;color:var(--muted);white-space:nowrap;padding:6px 14px;border-radius:999px;background:var(--surface);border:1px solid var(--border);transition:.18s}
.section-more:hover{color:var(--text);border-color:var(--border-2)}

/* ============================================================
   4) الهيدر + القائمة (زجاجي خفيف)
   ============================================================ */
.site-header{position:sticky;top:0;z-index:100;background:var(--header-bg);border-bottom:1px solid var(--border);-webkit-backdrop-filter:saturate(160%) blur(14px);backdrop-filter:saturate(160%) blur(14px)}
.admin-bar .site-header{top:32px}
@media(max-width:782px){.admin-bar .site-header{top:46px}}
@media(max-width:600px){.admin-bar .site-header{top:0}}
.header-inner{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:14px;min-height:66px}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:1.45rem;line-height:1;flex-shrink:0;letter-spacing:-.4px}
.brand a{display:inline-flex;align-items:center;line-height:1}
.brand a:hover{color:var(--text)}
.brand img,.brand .custom-logo{max-height:48px;width:auto;height:auto;display:block}
.brand .custom-logo-link{display:inline-flex;align-items:center;line-height:0;margin:0}
.brand .dot{color:var(--live)}
.main-nav ul{list-style:none;display:flex;gap:2px;margin:0;padding:0}
.main-nav a{display:block;padding:9px 14px;border-radius:999px;font-weight:600;color:var(--muted);font-size:.95rem;transition:background .18s,color .18s}
.main-nav a:hover{background:var(--surface-3);color:var(--text)}
.main-nav .current-menu-item>a,.main-nav .current_page_item>a{background:var(--accent);color:var(--accent-ink)}
.main-nav .sub-menu{position:absolute;min-width:210px;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:6px;box-shadow:var(--shadow);display:none;flex-direction:column;gap:2px;z-index:120}
.main-nav .sub-menu a{border-radius:9px}
.main-nav li{position:relative}
.main-nav li:hover>.sub-menu{display:flex}
.nav-toggle,.search-toggle{display:none;background:var(--surface);border:1px solid var(--border);border-radius:12px;width:44px;height:44px;cursor:pointer;align-items:center;justify-content:center}
.nav-toggle svg,.search-toggle svg{width:22px;height:22px;stroke:var(--text);fill:none;stroke-width:2}
.header-actions{display:flex;align-items:center;gap:8px}

/* زر تبديل الوضع (فاتح/داكن) */
.theme-toggle{background:var(--surface);border:1px solid var(--border);border-radius:12px;width:44px;height:44px;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:border-color .18s,transform .18s}
.theme-toggle svg{width:20px;height:20px;stroke:var(--text);fill:none;stroke-width:2}
.theme-toggle .icon-moon{display:none}
.theme-toggle .icon-sun{display:block}
:root[data-theme="dark"] .theme-toggle .icon-sun{display:none}
:root[data-theme="dark"] .theme-toggle .icon-moon{display:block}
@media (prefers-color-scheme: dark){
	:root:not([data-theme="light"]) .theme-toggle .icon-sun{display:none}
	:root:not([data-theme="light"]) .theme-toggle .icon-moon{display:block}
}
.theme-toggle:hover{border-color:var(--border-2)}
.theme-toggle:active{transform:scale(.94)}

/* بحث الهيدر */
.header-search{display:flex;align-items:center;gap:4px;background:var(--surface);border:1px solid var(--border);border-radius:999px;padding:3px 6px 3px 4px;transition:border-color .18s,box-shadow .18s}
.header-search:focus-within{border-color:var(--border-2);box-shadow:0 0 0 4px var(--surface-3)}
.header-search input{background:transparent;border:0;padding:6px 10px;width:170px;outline:none}
.header-search input::placeholder{color:var(--muted-2)}
.header-search button{background:transparent;border:0;cursor:pointer;padding:6px;display:flex;border-radius:50%}
.header-search svg{width:18px;height:18px;stroke:var(--muted);fill:none;stroke-width:2}

@media(max-width:900px){
	.nav-toggle{display:flex}
	.header-search{display:none}
	.main-nav{position:fixed;inset-inline:0;top:66px;background:var(--bg-2);border-bottom:1px solid var(--border);box-shadow:0 14px 28px rgba(0,0,0,.18);margin:0;max-height:80vh;overflow:auto;z-index:99;display:none}
	.admin-bar .main-nav{top:112px}
	.main-nav.open{display:block}
	.main-nav ul{flex-direction:column;gap:2px;padding:8px}
	.main-nav a{padding:13px 14px;border-radius:10px}
	.main-nav .sub-menu{position:static;display:flex;box-shadow:none;border:0;background:transparent;padding-inline-start:14px}
}

/* ============================================================
   5) البطاقات / شبكة المقالات
   ============================================================ */
.posts-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--gap)}
@media(max-width:640px){.posts-grid{grid-template-columns:minmax(0,1fr)}}
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease;height:100%;display:flex;flex-direction:column;box-shadow:var(--shadow-sm)}
.card:hover{transform:translateY(-3px);border-color:var(--border-2);box-shadow:var(--shadow)}
.card-thumb{position:relative;aspect-ratio:16/9;background:var(--surface-3);overflow:hidden}
.card-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
.card:hover .card-thumb img{transform:scale(1.04)}
.card-cat{position:absolute;inset-inline-start:10px;top:10px;background:rgba(14,14,16,.72);color:#fff;font-size:.72rem;font-weight:700;padding:5px 11px;border-radius:999px;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);border:1px solid rgba(255,255,255,.14)}
.card-cat:hover{color:#fff;background:rgba(14,14,16,.88)}
.card-body{padding:15px 16px 16px;display:flex;flex-direction:column;flex:1}
.card-title{font-size:1.06rem;margin:0 0 8px;line-height:1.5;font-weight:700}
.card-title a:hover{color:var(--hover)}
.card-excerpt{color:var(--muted);font-size:.92rem;margin:0 0 12px;flex:1}
.card-meta{display:flex;align-items:center;gap:12px;color:var(--muted-2);font-size:.8rem;margin-top:auto;padding-top:12px;border-top:1px solid var(--border)}
.card-meta .m{display:inline-flex;align-items:center;gap:5px}
.card-meta svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.8;opacity:.8}

/* قائمة مصغّرة (الشريط الجانبي) */
.mini-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.mini-item{display:flex;gap:10px;align-items:center}
.mini-thumb{flex-shrink:0;width:74px;height:56px;border-radius:10px;overflow:hidden;background:var(--surface-3)}
.mini-thumb img{width:100%;height:100%;object-fit:cover}
.mini-title{font-size:.9rem;font-weight:600;line-height:1.45;margin:0}
.mini-meta{color:var(--muted-2);font-size:.76rem;margin-top:3px}

/* ============================================================
   6) الشريط الجانبي + الودجت
   ============================================================ */
.widget-area .widget,.widget{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px 18px;margin-bottom:20px;box-shadow:var(--shadow-sm)}
.widget-title{font-size:1.02rem;margin:0 0 12px;padding-bottom:11px;border-bottom:1px solid var(--border);position:relative}
.widget-title::after{content:"";position:absolute;bottom:-1px;inset-inline-start:0;width:40px;height:2px;border-radius:2px;background:var(--accent)}
.widget ul{list-style:none;margin:0;padding:0}
.widget ul li{padding:9px 0;border-bottom:1px solid var(--border);display:flex;gap:8px;align-items:center}
.widget ul li:last-child{border-bottom:0}
.widget ul li a{color:var(--text)}
.widget ul li a:hover{color:var(--hover)}
.widget a{word-wrap:break-word}
.below-table-widgets{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:var(--gap);margin-top:4px}
.below-table-widgets .widget{margin-bottom:0}

/* ============================================================
   7) صفحة المقال المفردة
   ============================================================ */
.single-hero{position:relative;border-radius:var(--radius);overflow:hidden;margin-bottom:22px;background:var(--surface-3);box-shadow:var(--shadow-sm)}
.single-hero img{width:100%;max-height:440px;object-fit:cover}
.single-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(8,8,10,.92) 4%,rgba(8,8,10,.12) 58%)}
.single-hero .hero-cap{position:absolute;inset-inline:22px;bottom:20px;z-index:2}
.single-hero .single-title{color:#fff}
.single-cat{display:inline-block;background:var(--accent);color:var(--accent-ink);font-size:.76rem;font-weight:700;padding:5px 14px;border-radius:999px;margin-bottom:12px}
.single-cat:hover{color:var(--accent-ink);opacity:.9}
.single-hero .single-cat{background:rgba(255,255,255,.16);color:#fff;border:1px solid rgba(255,255,255,.22);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.single-title{font-size:clamp(1.5rem,3.4vw,2.2rem);margin:0;text-shadow:0 2px 16px rgba(0,0,0,.55)}
.single-title.no-hero{color:var(--text);text-shadow:none;margin-bottom:14px}
.single-meta{display:flex;flex-wrap:wrap;align-items:center;gap:16px;color:var(--muted);font-size:.88rem;margin:0 0 20px;padding-bottom:16px;border-bottom:1px solid var(--border)}
.single-meta .m{display:inline-flex;align-items:center;gap:6px}
.single-meta svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.8;opacity:.85}
.single-meta .author-name{color:var(--text);font-weight:600}

.entry-content{font-size:1.06rem;line-height:1.95}
.entry-content>*{margin-bottom:1.15em}
.entry-content h2{font-size:1.45rem;margin:1.6em 0 .6em;padding-inline-start:16px;position:relative}
.entry-content h2::before{content:"";position:absolute;inset-inline-start:0;top:.22em;bottom:.22em;width:5px;border-radius:6px;background:var(--accent)}
.entry-content h3{font-size:1.22rem;margin:1.4em 0 .5em}
.entry-content a{color:var(--text);font-weight:600;text-decoration:underline;text-decoration-color:var(--border-2);text-decoration-thickness:2px;text-underline-offset:4px}
.entry-content a:hover{text-decoration-color:var(--accent)}
.entry-content img,.entry-content figure{border-radius:var(--radius);overflow:hidden}
.entry-content blockquote{margin:1.5em 0;padding:16px 20px;background:var(--surface);border:1px solid var(--border);border-inline-start:4px solid var(--accent);border-radius:var(--radius-sm);color:var(--muted)}
.entry-content code{background:var(--surface-3);padding:2px 7px;border-radius:6px;font-size:.9em}
.entry-content pre{background:var(--surface-3);padding:16px;border-radius:var(--radius-sm);overflow:auto}
.entry-content table{width:100%;border-collapse:separate;border-spacing:0;margin:1.4em 0;border:1px solid var(--border);border-radius:var(--radius-sm);overflow:hidden}
.entry-content th,.entry-content td{border-bottom:1px solid var(--border);padding:10px 12px;text-align:start}
.entry-content tr:last-child td{border-bottom:0}
.entry-content th{background:var(--surface-2)}
.entry-content ul li,.entry-content ol li{margin-bottom:.5em}

/* شريط تقدّم القراءة */
.read-progress{position:fixed;top:0;inset-inline:0;height:3px;background:var(--accent);width:0;z-index:200;transition:width .1s linear}

/* مشاركة */
.share-row{display:flex;flex-wrap:wrap;gap:8px;margin:26px 0;padding:16px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.share-row .lbl{font-weight:700;align-self:center;margin-inline-end:6px}
.share-btn{display:inline-flex;align-items:center;gap:7px;padding:8px 14px;border-radius:999px;background:var(--surface);border:1px solid var(--border);font-size:.85rem;font-weight:600;color:var(--text);transition:.18s}
.share-btn:hover{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.share-btn svg{width:16px;height:16px;fill:currentColor}

.tags-row{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}
.tag-chip{font-size:.82rem;padding:5px 12px;border-radius:999px;background:var(--surface);border:1px solid var(--border);color:var(--muted)}
.tag-chip:hover{border-color:var(--border-2);color:var(--text)}

/* الكاتب */
.author-box{display:flex;gap:14px;align-items:center;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px;margin:26px 0;box-shadow:var(--shadow-sm)}
.author-box img{width:64px;height:64px;border-radius:50%;flex-shrink:0}
.author-box .a-name{font-weight:800;font-size:1.05rem;margin:0 0 4px}
.author-box .a-bio{color:var(--muted);font-size:.9rem;margin:0}

/* مقالات ذات صلة */
.related{margin-top:34px}

/* ============================================================
   8) التنقّل بين الصفحات (Pagination)
   ============================================================ */
.pagination{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:30px}
.pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:0 12px;border-radius:12px;background:var(--surface);border:1px solid var(--border);font-weight:600}
.pagination .page-numbers.current{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.pagination .page-numbers:hover:not(.current){border-color:var(--border-2);color:var(--text)}
.pagination svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2}

/* ============================================================
   9) الفوتر
   ============================================================ */
.site-footer{background:var(--bg-2);border-top:1px solid var(--border);margin-top:40px}
.footer-widgets{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:var(--gap);padding-block:34px}
.footer-widgets .widget{background:transparent;border:0;padding:0;margin:0;box-shadow:none}
.footer-widgets .widget-title{border-color:var(--border)}
.footer-bottom{border-top:1px solid var(--border);padding-block:18px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:.86rem}
.footer-widgets:empty+.footer-bottom,.site-footer .wrap>.footer-bottom:first-child{border-top:0}
.footer-nav ul{list-style:none;display:flex;flex-wrap:wrap;gap:16px;margin:0;padding:0}
.footer-nav a:hover{color:var(--text)}

/* زر لأعلى */
.to-top{position:fixed;inset-inline-end:18px;bottom:18px;width:46px;height:46px;border-radius:14px;background:var(--accent-grad);color:var(--accent-ink);border:0;cursor:pointer;display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transform:translateY(10px);transition:.25s;z-index:90;box-shadow:0 10px 24px var(--accent-glow)}
.to-top.show{opacity:1;visibility:visible;transform:translateY(0)}
.to-top svg{width:22px;height:22px;stroke:var(--accent-ink);fill:none;stroke-width:2.4}

/* ============================================================
   10) عناصر مساعدة + 404 + بحث
   ============================================================ */
.page-hero{background:var(--bg-2);border-bottom:1px solid var(--border);padding-block:28px;margin-bottom:26px}
.page-hero h1{margin:0;font-size:clamp(1.4rem,3vw,2rem)}
.breadcrumbs{color:var(--muted-2);font-size:.84rem;margin:0 0 12px}
.page-hero .breadcrumbs{margin:8px 0 0}
.breadcrumbs a{color:var(--muted)}
.breadcrumbs a:hover{color:var(--text)}
.notice-box{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:40px 24px;text-align:center}
.btn{display:inline-flex;align-items:center;gap:8px;background:var(--accent-grad);color:var(--accent-ink);padding:11px 22px;border-radius:12px;font-weight:700;border:0;cursor:pointer;box-shadow:0 8px 20px var(--accent-glow);transition:transform .18s,box-shadow .18s}
.btn:hover{color:var(--accent-ink);transform:translateY(-1px)}
.btn-ghost{background:var(--surface);border:1px solid var(--border);color:var(--text);box-shadow:none}
.btn-ghost:hover{color:var(--text);border-color:var(--border-2)}
.search-form{display:flex;gap:8px}
.search-form input[type=search]{flex:1;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:11px 14px;outline:none}
.search-form input[type=search]:focus{border-color:var(--border-2);box-shadow:0 0 0 4px var(--surface-3)}

/* ============================================================
   11) تكامل إضافة Alba Live Matches
   الجدول له إطاره وظله الخاص، فالقالب مش بيلفّه بإطار تاني.
   ============================================================ */
.matches-shell{background:transparent;border:0;padding:0;margin-bottom:6px}
.home-slider{margin-bottom:22px}

/* نفس خط القالب جوه الجدول والسلايدر وصفحة المباراة */
body .AlbaSportFixture,body .AspTopSliderMatch,body .alm-single,
body .AlbaSportFixture .asp-font,body .alm-single .asp-font{font-family:var(--font)}

/* صفحة المباراة */
.match-head{margin-bottom:18px}
.match-title{font-size:clamp(1.3rem,3vw,1.9rem);margin:0;line-height:1.4}
.match-article .entry-content{font-size:1.02rem}
.match-article .alm-single{max-width:none}
.match-article .alm-desc h2{font-size:1.3rem}
.match-article .alm-desc{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px 20px;margin-block:18px;box-shadow:var(--shadow-sm)}
.match-article .alm-desc>*:last-child{margin-bottom:0}

/* الرئيسية: الجدول في عمود المحتوى جنب الشريط الجانبي (بنفس عرض المقالات) */
.home-layout .AlbaSportFixture,.home-layout .AspTopSliderMatch{max-width:none;margin-inline:0}
.home-layout .widget-area{position:sticky;top:86px}
.admin-bar .home-layout .widget-area{top:118px}
@media(max-width:980px){.home-layout .widget-area{position:static}}

/* صفحة المباراة: ألوان أجزاء الإضافة على نفس لوحة القالب (أبيض/أسود) */
body .match-article .alm-desc{color:var(--text)}
body .match-article .alm-desc strong{color:var(--text);font-weight:700}
body .match-article .alm-desc h2{color:var(--text);border:0;padding-right:0;padding-inline-start:16px}
body .match-article .asp-server-name{gap:8px;margin:20px 0 10px}
body .match-article .asp-server-name a{height:40px;padding:0 42px 0 16px;border-radius:999px;background:var(--surface);border:1px solid var(--border);color:var(--text);font-weight:700;text-decoration:none;transition:.18s}
body .match-article .asp-server-name a::before{top:6px;right:6px;width:26px;height:26px;border-radius:50%;background-color:#2b2c31;background-size:12px}
body .match-article .asp-server-name a:hover{background:var(--surface-3);color:var(--text);border-color:var(--border-2)}
body .match-article .asp-server-name a.active{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
body .match-article .asp-server-name a.active::before{background-color:var(--live)}
body .match-article .asp-server-body{border-radius:var(--radius);box-shadow:var(--shadow-sm)}
body .match-article .AlbaMatchInfo{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px 20px;margin:18px 0;box-shadow:var(--shadow-sm)}
body .match-article .AlbaMatchInfo h2{background:var(--surface-3);color:var(--text);box-shadow:none;font-size:1.05rem;padding:6px 18px;margin:0 0 6px}
body .match-article .AlbaMatchInfo h2::before{content:none}
body .match-article .AlbaMatchInfo ul{padding:0;margin:8px 0 0}
body .match-article .AlbaMatchInfo li{border-color:var(--border);color:var(--text);font-size:.92rem}
body .match-article .AlbaSportCard{border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-sm)}

/* التعليقات */
.comment-respond,.comments-area{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px;margin-top:30px;box-shadow:var(--shadow-sm)}
.comment-reply-title,.comments-title{font-size:1.15rem;margin:0 0 10px}
.comment-notes,.logged-in-as{color:var(--muted);font-size:.86rem}
.comment-form p{margin:0 0 14px}
.comment-form label{display:block;font-weight:600;font-size:.9rem;margin-bottom:6px}
.comment-form input[type=text],.comment-form input[type=email],.comment-form input[type=url],.comment-form textarea{width:100%;background:var(--bg-2);border:1px solid var(--border);border-radius:12px;padding:11px 14px;outline:none;transition:border-color .18s,box-shadow .18s}
.comment-form input:focus,.comment-form textarea:focus{border-color:var(--border-2);box-shadow:0 0 0 4px var(--surface-3)}
.comment-form textarea{min-height:140px;resize:vertical}
.comment-form-cookies-consent{display:flex;gap:8px;align-items:center;color:var(--muted);font-size:.86rem}
.comment-form-cookies-consent label{display:inline;font-weight:400;margin:0}
.comment-form .submit{background:var(--accent-grad);color:var(--accent-ink);border:0;border-radius:12px;padding:11px 26px;font-weight:700;cursor:pointer;box-shadow:0 8px 20px var(--accent-glow)}
.comment-list .comment-body{border-bottom:1px solid var(--border);padding:14px 0}
.comment-list .avatar{border-radius:50%}

/* تحسينات RTL/LTR عامة للـ WP */
.alignright{float:right;margin:0 0 1em 1.5em}
.alignleft{float:left;margin:0 1.5em 1em 0}
.aligncenter{margin-inline:auto}
.wp-caption-text{color:var(--muted);font-size:.85rem;text-align:center;margin-top:6px}
.sticky,.gallery-caption,.bypostauthor{display:block}
.comment-list{list-style:none;padding:0}

@media (prefers-reduced-motion: reduce){
	*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}
}
