/* (نسخة من assets/fonts/fonts.css مدمجة هنا لتقليل الطلبات — حدّثهما معاً) خطوط الموقع مستضافة محلياً (Amiri, Reem Kufi, IBM Plex Sans Arabic — رخصة SIL OFL) */
/* arabic */
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/amiri-arabic-202e96.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin-ext */
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/amiri-latin-ext-5ed9bd.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/amiri-latin-967a69.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/amiri-arabic-b2ed81.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin-ext */
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/amiri-latin-ext-0bf419.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/amiri-latin-64a948.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-arabic-6fbb1d.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-cyrillic-ext-26e683.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-latin-ext-5ccf88.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-latin-eda814.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-arabic-2bea59.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-cyrillic-ext-8037fa.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-latin-ext-d61d6e.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-latin-88a0f1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-arabic-dbd757.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-cyrillic-ext-eee2c7.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-latin-ext-00e20c.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-latin-a2f8e3.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-arabic-d381fd.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-cyrillic-ext-0501e3.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-latin-ext-76c4b2.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-latin-d6eeed.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'Reem Kufi';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/reem-kufi-arabic-0a500c.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* vietnamese */
@font-face {
  font-family: 'Reem Kufi';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/reem-kufi-vietnamese-911b0f.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Reem Kufi';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/reem-kufi-latin-ext-64b0e1.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Reem Kufi';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/reem-kufi-latin-df5424.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'Reem Kufi';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/reem-kufi-arabic-0a500c.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* vietnamese */
@font-face {
  font-family: 'Reem Kufi';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/reem-kufi-vietnamese-911b0f.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Reem Kufi';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/reem-kufi-latin-ext-64b0e1.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Reem Kufi';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/reem-kufi-latin-df5424.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'Reem Kufi';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/reem-kufi-arabic-0a500c.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* vietnamese */
@font-face {
  font-family: 'Reem Kufi';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/reem-kufi-vietnamese-911b0f.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Reem Kufi';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/reem-kufi-latin-ext-64b0e1.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Reem Kufi';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/reem-kufi-latin-df5424.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'Reem Kufi';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/reem-kufi-arabic-0a500c.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* vietnamese */
@font-face {
  font-family: 'Reem Kufi';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/reem-kufi-vietnamese-911b0f.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Reem Kufi';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/reem-kufi-latin-ext-64b0e1.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Reem Kufi';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/reem-kufi-latin-df5424.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   موقع الشيخ فتح القدسي — الأنماط
   نقاط التوقف: ≥1280 سطح المكتب · 768–1279 تابلت · <768 جوال
   ========================================================================== */

:root {
  --navy: #0E2C52;
  --navy-deep: #081C36;
  --royal: #1D4F8C;
  --royal-dark: #14365F;
  --navy-mid: #183F70;
  --border-dark: #2D5A8E;
  --border-nav: #4A74A8;
  --gold: #C9A24A;
  --gold-text: #E2C584;
  --bg: #F2F4F8;
  --surface: #FFFFFF;
  --band: #E4E9F1;
  --border: #D8DEE8;
  --text: #1D2321;
  --muted: #5A5F5B;
  --on-dark: #DCE4F0;
  --nav-text: #E6EBF3;
  --topbar-text: #C3CCDA;
  --chip-bg: #E3EAF5;

  --on-dark-muted: #B7C6DC;
  --footer-muted: #93A7C4;
  --soft-1: #EDF1F7;
  --soft-2: #E9EDF4;
  --soft-3: #DCE3EE;
  --tab-count-bg: #D5DDEA;
  --audio-border: #D3DBE7;
  --pill-border: #C9D2E0;
  --tabs-line: #BFC9D9;
  --wave-off: #B8C2D3;
  --dash: #AEBBD0;
  --tab-text: #4A4F4B;
  --contact-border: #34639A;
  --contact-hover: #245C9E;
  --hero-1: #17375F;
  --hero-2: #0A2140;
  --hero-3: #040D1A;
  --hero-shade: 2, 8, 18;
  --lattice: #5B86C0;
  --hero-ink: #FFFFFF;
  --hero-text: #F1F4F9;
  --hero-eyebrow: #E2C584;
  --hero-chip-bg: rgba(255, 255, 255, .10);
  --hero-chip-border: rgba(255, 255, 255, .28);
  --hero-dot: rgba(255, 255, 255, .40);
  --title: #0A2240;
  --ink: var(--navy);
  --on-accent: #F2F4F8;
  --link: var(--royal);
  --link-hover: var(--royal-dark);
  --accent-bg: var(--navy);
  --deep-rgb: 8, 28, 54;
  --navy-rgb: 14, 44, 82;
  --royal-rgb: 29, 79, 140;

  --font-body: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-head: 'Amiri', serif;
  --font-kufi: 'Reem Kufi', 'IBM Plex Sans Arabic', sans-serif;

  --gutter: 80px;
  --hero-box: 640px;
  --hero-ratio: 16 / 10;
  --maxw: 1280px;
  --shadow-menu: 0 24px 48px rgba(var(--deep-rgb), .28);
  --shadow-lift: 0 30px 60px rgba(0, 0, 0, .35);
}

/* ---------- التصميم البني ---------- */
[data-theme="brown"] {
  --navy: #3E2A1C;
  --navy-deep: #26180F;
  --royal: #7B5231;
  --royal-dark: #5E3D22;
  --navy-mid: #53382A;
  --border-dark: #6E4E36;
  --border-nav: #957050;
  --bg: #F7F2EA;
  --band: #EFE5D8;
  --border: #E3D7C6;
  --text: #2B221C;
  --muted: #6B5F55;
  --on-dark: #F0E6D8;
  --nav-text: #F3EADF;
  --topbar-text: #D6C6B2;
  --chip-bg: #F2E6D5;
  --on-dark-muted: #D2BFA8;
  --footer-muted: #B39E86;
  --soft-1: #F5EDE2;
  --soft-2: #F1E7DA;
  --soft-3: #E8DAC7;
  --tab-count-bg: #E8DAC6;
  --audio-border: #E4D6C4;
  --pill-border: #DCCBB5;
  --tabs-line: #D6C3AB;
  --wave-off: #D2C1AC;
  --dash: #C9B49A;
  --tab-text: #4F463F;
  --contact-border: #8E6644;
  --contact-hover: #8A5C36;
  --hero-1: #4A3322;
  --hero-2: #2F1F13;
  --hero-3: #170E07;
  --hero-shade: 14, 8, 3;
  --lattice: #B08A62;
  --title: #2E1E12;
  --deep-rgb: 38, 24, 15;
  --navy-rgb: 62, 42, 28;
  --royal-rgb: 123, 82, 49;
}

/* ---------- الوضع الليلي (يعمل مع الأزرق والبني) ---------- */
[data-mode="dark"] {
  color-scheme: dark;
  --navy: #0F1A2B;
  --navy-deep: #080E18;
  --navy-mid: #16233A;
  --border-dark: #22324B;
  --border-nav: #34496A;
  --royal: #1C3050;
  --royal-dark: #16263F;
  --hero-1: #17263E;
  --hero-2: #101B2D;
  --hero-3: #0A1320;
  --lattice: #3A5580;
  --hero-ink: #F2F4F8;
  --hero-text: #DCE4F0;
  --hero-eyebrow: #E2C584;
  --hero-chip-bg: rgba(255, 255, 255, .08);
  --hero-chip-border: rgba(255, 255, 255, .18);
  --hero-dot: rgba(247, 242, 232, .45);
  --contact-border: #2A3D5C;
  --contact-hover: #243A5E;
  --deep-rgb: 0, 0, 0;
  --bg: #0C1422;
  --surface: #131E30;
  --band: #0F1929;
  --border: #24344D;
  --text: #E3E8F0;
  --muted: #9CA8BA;
  --title: #F1F4F9;
  --ink: #EAF0F8;
  --link: #8CB4E8;
  --link-hover: #B3CEF2;
  --accent-bg: #2A5E9E;
  --chip-bg: #1C2C45;
  --soft-1: #1A2940;
  --soft-2: #16233A;
  --soft-3: #20314C;
  --tab-count-bg: #22334E;
  --audio-border: #24344D;
  --pill-border: #2C3E5A;
  --tabs-line: #2C3E5A;
  --wave-off: #3A4B66;
  --dash: #3A4B66;
  --tab-text: #C5CEDB;
}
[data-mode="dark"][data-theme="brown"] {
  --navy: #1E160F;
  --navy-deep: #120D08;
  --navy-mid: #2A2017;
  --border-dark: #3A2E22;
  --border-nav: #56432F;
  --royal: #3A2B1D;
  --royal-dark: #2E2217;
  --hero-1: #2A2016;
  --hero-2: #1E170F;
  --hero-3: #140F0A;
  --lattice: #6B5238;
  --contact-border: #4A3A2A;
  --contact-hover: #46351F;
  --bg: #16110C;
  --surface: #201912;
  --band: #1B150F;
  --border: #3A2E22;
  --text: #EDE5DA;
  --muted: #AB9D8C;
  --title: #F8F1E7;
  --ink: #F3EBDF;
  --link: #DDB887;
  --link-hover: #EDCFA6;
  --accent-bg: #8A5C36;
  --chip-bg: #2F2419;
  --soft-1: #2A2017;
  --soft-2: #251C14;
  --soft-3: #33271C;
  --tab-count-bg: #34281C;
  --audio-border: #3A2E22;
  --pill-border: #45362A;
  --tabs-line: #45362A;
  --wave-off: #54432F;
  --dash: #54432F;
  --tab-text: #D6CABB;
}
[data-mode="dark"] .section--audio::before { opacity: .12; }
[data-mode="dark"] .book img { border-color: var(--border); box-shadow: 0 14px 30px rgba(0, 0, 0, .45); }
.mode-toggle__moon, .mode-toggle__sun { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.mode-toggle .mode-toggle__sun, [data-mode="dark"] .mode-toggle .mode-toggle__moon { display: none; }
[data-mode="dark"] .mode-toggle .mode-toggle__sun { display: inline-flex; }
.mode-pill { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; margin-inline-start: 10px; border-radius: 50%; border: 1px solid var(--gold); background: rgba(201, 162, 74, .12); color: var(--gold-text); font-size: 14px; font-weight: 600; transition: background .2s; }
.mode-pill:hover { background: rgba(201, 162, 74, .25); }
.mode-pill > span { align-items: center; gap: 6px; }
.drawer__switch { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 20px; margin-top: 8px; background: var(--soft-1); border: none; border-top: 1px solid var(--band); color: var(--ink); font-size: 16px; font-weight: 600; text-align: start; }
.drawer__switch-label { display: inline-flex; align-items: center; gap: 10px; }
.drawer__switch-label .icon { color: var(--gold); }
.switch { position: relative; width: 46px; height: 26px; border-radius: 13px; background: var(--pill-border); transition: background .2s; flex-shrink: 0; }
.switch span { position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: inset-inline-start .2s; }
.drawer__switch[aria-checked="true"] .switch { background: var(--gold); }
.drawer__switch[aria-checked="true"] .switch span { inset-inline-start: 23px; }

@media (max-width: 1279px) { :root { --gutter: 40px; } }
@media (max-width: 767px)  { :root { --gutter: 16px; } }

/* ---------- الأساس ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--gold); color: var(--navy-deep); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.royal { color: var(--link); }
.gold { color: var(--gold); display: inline-flex; }
.icon { flex-shrink: 0; }

/* ---------- الشريط العلوي ---------- */
.topbar { background: var(--navy-deep); color: var(--topbar-text); font-size: 13px; }
.topbar__inner { height: 44px; display: flex; align-items: center; justify-content: space-between; }
.topbar__contact { display: flex; gap: 28px; }
.topbar__contact a { display: flex; align-items: center; gap: 8px; color: var(--topbar-text); }
.topbar__contact a:hover { color: #fff; }
.topbar__social { display: flex; align-items: center; gap: 6px; }
.topbar__social > span { margin-inline-end: 8px; }
.round-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-dark); display: flex; align-items: center; justify-content: center; color: var(--gold-text); transition: background .2s; }
.round-btn:hover { background: var(--navy-mid); color: var(--gold-text); }

/* ---------- الترويسة ---------- */
.site-header { position: relative; z-index: 30; background: var(--navy); border-bottom: 1px solid var(--border-dark); }
.site-header::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .24;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%23C9A24A' stroke-width='1'%3E%3Cpath d='M32.0 8.0L39.0 15.0L49.0 15.0L49.0 25.0L56.0 32.0L49.0 39.0L49.0 49.0L39.0 49.0L32.0 56.0L25.0 49.0L15.0 49.0L15.0 39.0L8.0 32.0L15.0 25.0L15.0 15.0L25.0 15.0Z'/%3E%3Ccircle cx='32' cy='32' r='7'/%3E%3Cpath d='M0 0L15 15M64 0L49 15M0 64L15 49M64 64L49 49'/%3E%3Cpath d='M0 32H8M56 32H64M32 0V8M32 56V64'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px 56px; background-position: center;
  -webkit-mask-image: linear-gradient(to left, #000, rgba(0,0,0,.35) 45%, rgba(0,0,0,.35) 60%, #000);
  mask-image: linear-gradient(to left, #000, rgba(0,0,0,.35) 45%, rgba(0,0,0,.35) 60%, #000);
}
.site-header__inner { position: relative; }
.site-header__inner { height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.brand__logo { width: 86px; height: 86px; object-fit: contain; }
.brand__name { height: 84px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 4px; font-size: 16px; }
.main-nav__item { position: relative; }
.main-nav__link, .main-nav__toggle {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 8px;
  color: var(--nav-text); background: transparent; border: 1px solid transparent;
  transition: background .2s, border-color .2s;
}
.main-nav__link:hover, .main-nav__toggle:hover { color: #fff; background: rgba(var(--royal-rgb), .5); }
.main-nav__link.is-current, .main-nav__toggle.is-current { background: var(--gold); color: var(--navy-deep); font-weight: 600; padding-inline: 16px; }
.main-nav__toggle[aria-expanded="true"] { background: var(--royal); color: var(--on-accent); border-color: var(--border-nav); }
.main-nav__toggle .icon { transition: transform .2s; }
.main-nav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.icon-btn { width: 44px; height: 44px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--nav-text); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.icon-btn--outline { border-color: var(--border-nav); margin-inline-start: 10px; }
.icon-btn:hover { background: rgba(var(--royal-rgb), .5); }
.icon-btn--dark { color: var(--ink); }
.icon-btn--dark:hover { background: var(--band); }
.header-actions { display: none; gap: 4px; }
.theme-toggle { display: inline-flex; align-items: center; gap: 0; }
.theme-toggle__swatch { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--nav-text); }
.theme-toggle__swatch--blue { background: #1D4F8C; margin-inline-end: -4px; }
.theme-toggle__swatch--brown { background: #7B5231; }
[data-theme="brown"] .theme-toggle__swatch--blue { margin-inline-end: 0; margin-inline-start: -4px; order: 2; }
.burger[aria-expanded="true"] { background: var(--royal); }

/* القوائم المنسدلة */
.dropdown {
  position: absolute; top: 58px; inset-inline-start: 0; z-index: 40;
  width: 290px; padding: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-menu);
  display: flex; flex-direction: column; gap: 2px;
}
.dropdown--narrow { width: 240px; }
.dropdown__link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 8px; color: var(--text); font-size: 15px; font-weight: 500; }
.dropdown__link--icon { justify-content: flex-start; padding-block: 12px; }
.dropdown__link--icon .icon { color: var(--link); }
.dropdown__link:hover { background: var(--bg); color: var(--ink); }
.badge { font-size: 12px; font-weight: 600; color: var(--link); background: var(--chip-bg); padding: 2px 9px; border-radius: 12px; }

/* القائمة الكبرى */
.mega {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%); z-index: 25;
  width: min(var(--maxw), calc(100% - var(--gutter) * 2));
  max-height: calc(100vh - 170px); overflow: hidden;
  background: var(--surface); border-radius: 0 0 18px 18px; box-shadow: 0 30px 60px rgba(var(--deep-rgb), .35);
  display: flex;
}
.mega__subjects { width: 300px; flex-shrink: 0; background: var(--soft-2); padding: 22px 14px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.mega__heading { font-family: var(--font-kufi); font-size: 14px; font-weight: 600; color: var(--link); padding: 0 12px 10px; }
.mega__subject { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 8px 12px; border: none; border-radius: 8px; background: transparent; color: var(--text); font-size: 15px; font-weight: 500; text-align: start; }
.mega__subject:hover { background: var(--soft-3); }
.mega__subject[aria-selected="true"] { background: var(--accent-bg); color: var(--on-accent); font-weight: 600; }
.mega__count { font-size: 12px; opacity: .75; }
.mega__panel { flex-grow: 1; padding: 30px 36px; display: flex; flex-direction: column; gap: 18px; overflow-y: auto; }
.mega__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.mega__head > div { display: flex; flex-direction: column; gap: 2px; }
.mega__eyebrow { font-family: var(--font-kufi); font-size: 14px; color: var(--link); font-weight: 600; }
.mega__title { font-family: var(--font-head); font-size: 30px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.mega__courses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 28px; }
.mega__courses a { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px dashed var(--border); color: var(--text); font-size: 15px; line-height: 1.5; }
.mega__courses a:hover { color: var(--link); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.link-strong { font-size: 15px; font-weight: 600; white-space: nowrap; }

.backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(var(--deep-rgb), .5); }

/* القائمة الجانبية */
.drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 50;
  width: min(330px, 86vw); overflow-y: auto;
  background: var(--surface); box-shadow: -20px 0 40px rgba(var(--deep-rgb), .3);
  display: flex; flex-direction: column; padding-bottom: 20px;
  animation: drawer-in .25s ease-out;
}
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 14px 20px; border-bottom: 1px solid var(--band); font-weight: 600; color: var(--muted); font-size: 14px; }
.drawer__link, .drawer__acc { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: transparent; border: none; border-bottom: 1px solid var(--band); font-size: 16px; font-weight: 600; color: var(--ink); text-align: start; width: 100%; }
.drawer__sign::before { content: "+"; font-size: 18px; color: var(--link); }
.drawer__acc[aria-expanded="true"] .drawer__sign::before { content: "−"; }
.drawer__link.is-current, .drawer__acc.is-current { color: var(--link); box-shadow: inset -4px 0 0 var(--gold); background: rgba(201, 162, 74, .08); }
.drawer__sub { background: var(--soft-1); padding: 6px 0; }
.drawer__sub a { display: flex; justify-content: space-between; padding: 10px 32px 10px 20px; font-size: 15px; color: var(--text); }
.drawer__sub a:hover { background: var(--band); }
.drawer__count { font-size: 12px; color: var(--link); }

/* البحث */
.search-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(var(--deep-rgb), .7); display: flex; justify-content: center; align-items: flex-start; padding: 12vh var(--gutter) 0; }
.search-box { width: min(680px, 100%); display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 14px; padding: 8px 8px 8px 18px; padding-inline-start: 18px; box-shadow: var(--shadow-menu); color: var(--link); }
.search-box input { flex: 1; min-width: 0; border: none; outline: none; font: inherit; font-size: 18px; padding: 12px 0; background: transparent; color: var(--text); }

/* ---------- أزرار وعناصر مشتركة ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 28px; border-radius: 10px; font-size: 17px; font-weight: 500; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s; text-align: center; }
.btn--gold { background: var(--gold); color: var(--navy); font-weight: 600; }
.btn--gold:hover { background: var(--gold-text); color: var(--navy-deep); }
.btn--ghost { border-color: var(--gold); color: var(--hero-ink); }
.btn--ghost:hover { background: rgba(201, 162, 74, .15); color: var(--hero-ink); }
.btn--navy { background: var(--accent-bg); color: var(--on-accent); font-size: 15px; font-weight: 600; padding: 12px 22px; }
.btn--navy:hover { background: var(--royal); color: #fff; }
.btn--outline { border-color: var(--border); color: var(--link); font-size: 14px; padding: 11px; }
.btn--outline:hover { background: var(--surface); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

.chip { font-size: 13px; font-weight: 600; color: var(--link); background: var(--chip-bg); padding: 5px 12px; border-radius: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-dark { font-size: 14px; color: var(--hero-ink); border: 1px solid var(--hero-chip-border); background: var(--hero-chip-bg); padding: 7px 14px; border-radius: 20px; }

.eyebrow { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 6px 16px 6px 14px; border-radius: 20px; background: var(--navy); color: #FFFFFF; font-size: 15px; font-weight: 600; line-height: 1.5; letter-spacing: 0; }
.eyebrow .star8 { color: var(--gold); }
.dot-orn { flex: none; overflow: visible; filter: drop-shadow(0 0 4px rgba(201, 162, 74, .35)); }
.dot-orn .sd-core { fill: var(--gold); }
.dot-orn .sd-band__fill { stroke: #3B78C4; }
.dot-orn .sd-rim { stroke-width: 1.6; }
.eyebrow--gold { color: var(--gold-text); font-size: 17px; background: rgba(201, 162, 74, .14); border-color: rgba(201, 162, 74, .35); }
.eyebrow-line { display: flex; align-items: center; gap: 12px; color: var(--hero-eyebrow); font-family: var(--font-kufi); font-size: 17px; font-weight: 500; }
.eyebrow-line::before { content: ""; width: 36px; height: 1px; background: var(--gold); }

.divider { display: flex; justify-content: center; padding: 8px 0; color: var(--gold); }
.divider svg { max-width: calc(100% - 32px); height: auto; }

/* ---------- البطل ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; margin: 22px 24px 0; border: 2px solid var(--gold); border-radius: 26px;
  background:
    linear-gradient(to left, rgba(var(--hero-shade), .62) 0%, rgba(var(--hero-shade), .38) 40%, rgba(var(--hero-shade), 0) 68%),
    radial-gradient(ellipse 80% 90% at 22% 50%, var(--hero-1) 0%, var(--hero-2) 55%, var(--hero-3) 100%);
  box-shadow: 0 0 0 5px rgba(201, 162, 74, .18), 0 22px 44px rgba(var(--navy-rgb), .16); }
.hero::after { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(201, 162, 74, .55); border-radius: 19px; pointer-events: none; z-index: 1; }
.hero__lattice { position: absolute; inset: 0; opacity: .16; color: var(--lattice); }
[data-mode="dark"] .hero__lattice { opacity: .22; }
.hero__rosette { position: absolute; top: 30px; right: 20px; width: 560px; height: 560px; opacity: .1; pointer-events: none; }
.hero__inner { position: relative; min-height: 660px; display: flex; flex-direction: column; justify-content: center; padding-block: 40px 88px; }
.hero__track { display: grid; }
.slide { grid-area: 1 / 1; display: flex; align-items: center; gap: 64px; transition: opacity .6s ease, visibility .6s; }
.slide--intro { gap: 64px; }
.hero__track.is-ready .slide:not(.is-active) { opacity: 0; visibility: hidden; }
.slide__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero__name { line-height: 0; }
.hero__name img { width: 560px; max-width: 100%; height: auto; }
.slide__title { font-family: var(--font-head); font-size: 60px; font-weight: 700; line-height: 1.25; color: var(--hero-ink); }
.slide__lead { margin: 0; font-family: var(--font-head); font-size: 24px; line-height: 1.7; color: var(--hero-text); max-width: 620px; }
.slide__media { width: var(--hero-box); aspect-ratio: var(--hero-ratio); flex-shrink: 0; border-radius: 18px; border: 2px solid var(--gold); overflow: hidden; box-shadow: var(--shadow-lift); background: var(--bg); }
.slide__media img { width: 100%; height: 100%; object-fit: cover; }
.slide__media--arch img { object-position: top; }

/* بطاقة أحدث خطبة (قوس محراب) */
.khutba-card { position: relative; width: var(--hero-box); aspect-ratio: var(--hero-ratio); flex-shrink: 0; background: var(--bg); border-radius: 18px; border: 2px solid var(--gold); padding: 24px 26px 22px; display: flex; flex-direction: column; justify-content: center; gap: 18px; box-shadow: var(--shadow-lift); }
.khutba-card__star { display: none; }
.khutba-card__meta { display: flex; justify-content: center; align-items: center; gap: 12px; font-size: 13px; }
.khutba-card__title { font-family: var(--font-head); font-size: 25px; font-weight: 700; line-height: 1.45; color: var(--ink); text-align: center; }

/* مشغّل أحدث خطبة (تصميم حديث) */
/* مشغّل الصوت: أنماطه في قسم «مشغّل الصوت الحديث» آخر الملف */

.slider-controls { position: absolute; bottom: 22px; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 14px; z-index: 2; }
.slider-dots { display: flex; align-items: center; gap: 6px; }
/* أسهم السلايدر: خط ذهبي رفيع بذيل معيّن — بلا دائرة، بجانب النقاط أسفل السلايدر */
.slider-controls { gap: 18px; }
.slider-nav { width: 52px; height: 30px; padding: 0; border: none; background: none; color: var(--gold); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: color .25s, transform .3s; }
.slider-nav svg { width: 44px; height: 16px; overflow: visible; }
.slider-nav path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.slider-nav .sn-tail { fill: currentColor; stroke-width: 1; transform-origin: 5.5px 8px; transition: transform .4s; }
.slider-nav .sn-line { stroke-dasharray: 28; stroke-dashoffset: 6; transition: stroke-dashoffset .35s; }
.slider-nav--next svg { transform: scaleX(-1); } /* RTL: السابق يشير يميناً والتالي يساراً */
.slider-nav:hover, .slider-nav:focus-visible { color: var(--gold-text); }
.slider-nav:hover .sn-line, .slider-nav:focus-visible .sn-line { stroke-dashoffset: 0; }
.slider-nav:hover .sn-tail, .slider-nav:focus-visible .sn-tail { transform: rotate(45deg); }
.slider-nav--prev:hover { transform: translateX(4px); }
.slider-nav--next:hover { transform: translateX(-4px); }
.slider-nav:active { transform: scale(.94); }
/* أسهم جانبية على شكل لسان محراب مثبّت في حافة الإطار — في منتصف السلايدر */
.slider-edge { position: absolute; top: 50%; z-index: 3; width: 30px; height: 84px; transform: translateY(-50%); padding: 0; border: 1px solid rgba(201, 162, 74, .7); background: rgba(201, 162, 74, .08); color: var(--gold-text); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: width .3s, background .3s, color .3s, border-color .3s; }
.slider-edge--prev { inset-inline-start: 13px; border-inline-start: none; border-radius: 0 42px 42px 0; }
.slider-edge--next { inset-inline-end: 13px; border-inline-end: none; border-radius: 42px 0 0 42px; }
[dir="rtl"] .slider-edge--prev, html[dir="rtl"] .slider-edge--prev { border-radius: 42px 0 0 42px; }
[dir="rtl"] .slider-edge--next, html[dir="rtl"] .slider-edge--next { border-radius: 0 42px 42px 0; }
.slider-edge svg { width: 14px; height: 42px; overflow: visible; transition: transform .3s; }
.slider-edge .se-chev { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.slider-edge .se-dia { fill: currentColor; opacity: .75; }
.slider-edge--next svg { transform: scaleX(-1); }
.slider-edge:hover, .slider-edge:focus-visible { width: 38px; background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.slider-edge--prev:hover svg { transform: translateX(2px); }
.slider-edge--next:hover svg { transform: scaleX(-1) translateX(2px); }
/* الأسهم السفلية تبقى للجوال فقط */
.slider-nav { display: none; }
@media (min-width: 768px) and (max-width: 1279px) { .hero .hero__inner { padding-inline: 56px; } }
/* الجوال: لسانان ذهبيان نحيفان كشريط علامة كتاب مثبّتان في حافة الإطار — في منتصف السلايدر */
@media (max-width: 767px) {
  .slider-edge { width: 15px; height: 58px; border: 1.5px solid var(--gold); background: transparent; color: var(--gold-text); box-shadow: none; }
  .slider-edge--prev { inset-inline-start: 0; }
  .slider-edge--next { inset-inline-end: 0; }
  [dir="rtl"] .slider-edge--prev, html[dir="rtl"] .slider-edge--prev { border-radius: 10px 0 0 10px; border-inline-start: none; }
  [dir="rtl"] .slider-edge--next, html[dir="rtl"] .slider-edge--next { border-radius: 0 10px 10px 0; border-inline-end: none; }
  .slider-edge .se-dia { display: none; }
  .slider-edge svg { width: 9px; height: 30px; }
  .slider-edge .se-chev { stroke-width: 2.6; }
  .slider-edge:hover, .slider-edge:focus-visible, .slider-edge:active { width: 20px; background: transparent; color: #FFFFFF; border-color: var(--gold-text); }
}
/* نقاط السلايدر: مستوحاة من الشعار الدائري — إطار ذهبي، حزام أزرق مزخرف، قرص أبيض، ونقطة في مكان الاسم */
.slider-dots { gap: 8px; }
.slider-dot { width: 38px; height: 38px; padding: 0; border: none; background: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.slider-dot svg { width: 24px; height: 24px; overflow: visible; opacity: .72; transition: width .35s, height .35s, opacity .3s, filter .3s; }
.slider-dot:hover svg { opacity: 1; }
.slider-dot.is-active svg { width: 36px; height: 36px; opacity: 1; filter: drop-shadow(0 0 8px rgba(201, 162, 74, .45)); }
.sd-rim { fill: none; stroke: var(--gold); stroke-width: 1.2; }
.sd-timer { fill: none; stroke: #FFFFFF; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transform: rotate(-90deg); transform-origin: 18px 18px; opacity: 0; }
.slider-dot.is-active .sd-timer { opacity: 1; }
.sd-band { transform-origin: 18px 18px; }
.sd-band__fill { fill: none; stroke: #1D4F8C; stroke-width: 6.4; }
.sd-band__lace { fill: none; stroke: #E8EEF7; stroke-width: 1.3; stroke-dasharray: 2.4 2.2; }
.sd-band__lace--inner { stroke-width: .8; stroke-dasharray: 1 2.6; }
.sd-band__lace--outer { stroke-width: .8; stroke-dasharray: 1 2.6; stroke-dashoffset: 1.6; }
.sd-disc { fill: #F2F4F8; stroke: var(--gold); stroke-width: .9; }
.sd-core { fill: #9AA6B8; transform-origin: 18px 18px; transition: fill .3s; }
.slider-dot.is-active .sd-core { fill: var(--gold); }
/* السلايدر يعمل تلقائياً: النقطة تنبض والحزام يدور ببطء — يتوقفان عند الإيقاف المؤقت */
[data-slider].is-playing .slider-dot.is-active .sd-core { animation: sd-pulse 1.4s ease-in-out infinite; }
[data-slider].is-playing .slider-dot.is-active .sd-band { animation: sd-spin 14s linear infinite; }
@keyframes sd-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.45); opacity: .7; } }
@keyframes sd-spin { to { transform: rotate(360deg); } }

/* ---------- الأقسام العامة ---------- */
.section { padding-block: 72px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 26px; }
.section-head > div { display: flex; flex-direction: column; gap: 10px; }
.section-title { position: relative; font-family: var(--font-head); font-size: 46px; font-weight: 700; color: var(--title); line-height: 1.35; padding-bottom: 14px; text-shadow: 0 0 .5px currentColor; }
.section-title::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 90px; height: 4px; border-radius: 2px; background: var(--gold); }

.section--sections { padding-block: 72px 40px; }
.section--sections .section-head { margin-bottom: 32px; }
.feature-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px 20px; display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; color: var(--text); transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature:hover { color: var(--text); transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 14px 30px rgba(var(--navy-rgb), .12); }
.arch-tile { width: 48px; height: 52px; border-radius: 24px 24px 6px 6px; background: var(--accent-bg); display: flex; align-items: center; justify-content: center; color: var(--gold); }
.feature__title { font-size: 19px; font-weight: 600; color: var(--ink); }
.feature__desc { font-size: 14px; color: var(--muted); line-height: 1.6; }
.only-narrow { display: none; }

/* الدروس */
.section--lessons { padding-block: 56px 72px; }

/* شريط التبويبات (الدروس والصوتيات): صف واحد + قائمة «المزيد» */
.tabbar { position: relative; display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 6px; margin-bottom: 26px; box-shadow: 0 2px 6px rgba(var(--navy-rgb), .05); }
.tabbar__list { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tabbar__list::-webkit-scrollbar { display: none; }
.tabbar.is-ready .tabbar__list { overflow: hidden; }
.tab, .tabbar__more-btn { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border: none; border-radius: 10px; background: transparent; color: var(--text); font-size: 15px; font-weight: 500; white-space: nowrap; flex-shrink: 0; transition: background .2s, color .2s; }
.tab:hover, .tabbar__more-btn:hover { background: var(--soft-1); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--accent-bg); color: var(--on-accent); font-weight: 600; }
.tab.is-overflow { display: none; }
.tab__count { font-size: 12px; font-weight: 600; min-width: 24px; padding: 1px 7px; border-radius: 10px; text-align: center; background: var(--chip-bg); color: var(--link); }
.tab[aria-selected="true"] .tab__count { background: var(--gold); color: var(--navy); }
.tabbar__more { position: relative; flex-shrink: 0; padding-inline-start: 6px; border-inline-start: 1px solid var(--border); }
.tabbar__more-btn { color: var(--link); font-weight: 600; }
.tabbar__more-btn[aria-expanded="true"] { background: var(--soft-1); }
.tabbar__more-btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.tabbar__menu { position: absolute; top: calc(100% + 12px); inset-inline-end: -6px; z-index: 15; width: 250px; max-height: 360px; overflow-y: auto; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-menu); display: flex; flex-direction: column; gap: 2px; }
.tabbar__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 12px; border: none; border-radius: 8px; background: transparent; color: var(--text); font-size: 15px; font-weight: 500; text-align: start; }
.tabbar__item:hover, .tabbar__item:focus-visible { background: var(--soft-1); color: var(--ink); }
.tab-panel:focus-visible { outline-offset: 6px; }
.lesson-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 104px; gap: 16px; min-height: 344px; align-content: start; }
.lesson-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; color: var(--text); transition: border-color .2s, box-shadow .2s; }
.lesson-card:hover { color: var(--text); border-color: var(--link); box-shadow: 0 8px 20px rgba(var(--navy-rgb), .1); }
.lesson-card__title { font-size: 16px; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lesson-card__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.lesson-card__meta .royal { font-weight: 500; }
.panel-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--border); padding-top: 18px; margin-top: 26px; font-size: 15px; }
.panel-foot--end { justify-content: flex-end; border-top: none; padding-top: 0; }

/* الصوتيات */
.section--audio { position: relative; isolation: isolate; overflow: hidden; background: var(--band); padding-block: 64px 72px; }
.section--audio::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cg fill='none' stroke='%239FB0CB' stroke-width='1'%3E%3Ccircle cx='0' cy='0' r='28'/%3E%3Ccircle cx='56' cy='0' r='28'/%3E%3Ccircle cx='0' cy='56' r='28'/%3E%3Ccircle cx='56' cy='56' r='28'/%3E%3Ccircle cx='28' cy='28' r='28'/%3E%3C/g%3E%3C/svg%3E");
}
[data-theme="brown"] .section--audio::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cg fill='none' stroke='%23C4AA8A' stroke-width='1'%3E%3Ccircle cx='0' cy='0' r='28'/%3E%3Ccircle cx='56' cy='0' r='28'/%3E%3Ccircle cx='0' cy='56' r='28'/%3E%3Ccircle cx='56' cy='56' r='28'/%3E%3Ccircle cx='28' cy='28' r='28'/%3E%3C/g%3E%3C/svg%3E"); }

.audio-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 80px; gap: 12px 20px; min-height: 264px; align-content: start; }
.audio-item { background: var(--surface); border: 1px solid var(--audio-border); border-radius: 12px; padding: 0 18px; display: flex; align-items: center; gap: 16px; color: var(--text); transition: border-color .2s; }
.audio-item:hover { color: var(--text); border-color: var(--link); }
.play-dot { width: 46px; height: 46px; border-radius: 50%; background: var(--accent-bg); color: var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.audio-item:hover .play-dot { background: var(--royal); }
.audio-item__body { flex-grow: 1; min-width: 0; display: flex; align-items: center; gap: 16px; }
.audio-item__title { flex-grow: 1; font-size: 16px; font-weight: 500; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.audio-item__date { font-size: 13px; flex-shrink: 0; }
.empty-state { min-height: 264px; border: 1px dashed var(--dash); border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 16px; text-align: center; padding: 0 24px; }
.empty-state .icon { color: var(--link); }

/* المؤلفات */
.book-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.section--books .section-head { margin-bottom: 32px; }
.book { display: flex; flex-direction: column; gap: 14px; color: var(--text); }
.book img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 14px 30px rgba(var(--navy-rgb), .18); background: var(--surface); transition: transform .25s, box-shadow .25s; }
.book:hover { color: var(--ink); }
.book:hover img { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(var(--navy-rgb), .25); }
.book__title { font-size: 17px; font-weight: 600; line-height: 1.5; }
.book__type { font-size: 13px; margin-top: -6px; }

/* طلب فتوى */
.section--fatwa { padding-block: 0 80px; }
.fatwa-box { position: relative; overflow: hidden; background: var(--navy); border-radius: 24px; padding: 56px 64px; display: flex; align-items: center; gap: 56px; }
.fatwa-box__pattern { position: absolute; inset: 0; opacity: .2; -webkit-mask-image: linear-gradient(to left, transparent 15%, #000 75%); mask-image: linear-gradient(to left, transparent 15%, #000 75%); }
.fatwa-box__text { position: relative; flex-grow: 1; display: flex; flex-direction: column; gap: 14px; }
.fatwa-box__title { font-family: var(--font-head); font-size: 44px; color: var(--on-accent); line-height: 1.3; }
.fatwa-box__text p { margin: 0; font-size: 17px; color: var(--on-dark); line-height: 1.8; max-width: 520px; }
.fatwa-box__links { position: relative; width: 460px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; }
.contact-card { display: flex; align-items: center; gap: 16px; background: var(--royal); border: 1px solid var(--contact-border); border-radius: 14px; padding: 18px 20px; color: var(--on-accent); transition: background .2s; }
.contact-card:hover { background: var(--contact-hover); color: #fff; }
.contact-card__icon { width: 44px; height: 44px; border-radius: 10px; background: var(--gold); color: var(--navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-card__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-card__label { font-size: 13px; color: var(--on-dark-muted); }
.contact-card__value { font-size: 17px; font-weight: 500; overflow-wrap: anywhere; }
.contact-card__value[dir="ltr"] { text-align: right; }
.contact-card__cta { display: none; }

/* ---------- التذييل ---------- */
.ornament-band {
  height: 34px; background-color: var(--navy-deep);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='34'%3E%3Cg fill='none' stroke='%23C9A24A' stroke-linejoin='miter'%3E%3Cpath d='M0 2.5H44M0 31.5H44' stroke-width='1'/%3E%3Cpath d='M22.00 5.00L25.51 8.51L30.49 8.51L30.49 13.49L34.00 17.00L30.49 20.51L30.49 25.49L25.51 25.49L22.00 29.00L18.49 25.49L13.51 25.49L13.51 20.51L10.00 17.00L13.51 13.49L13.51 8.51L18.49 8.51ZM23.91 12.38L23.91 15.09L26.62 15.09L24.71 17.00L26.62 18.91L23.91 18.91L23.91 21.62L22.00 19.71L20.09 21.62L20.09 18.91L17.38 18.91L19.29 17.00L17.38 15.09L20.09 15.09L20.09 12.38L22.00 14.29Z' stroke-width='1.2'/%3E%3Cpath d='M0 17H9.5M34.5 17H44' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: center;
}
.site-footer { background: var(--navy-deep); color: var(--topbar-text); padding-block: 56px 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-about { display: flex; flex-direction: column; gap: 12px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 64px; height: 64px; object-fit: contain; }
.footer-about p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--on-dark-muted); }
.footer-social { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.footer-social__links { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-title { color: var(--gold-text); font-family: var(--font-kufi); font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.pill { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; background: var(--navy-mid); color: var(--on-accent); font-size: 14px; }
.pill .icon { color: var(--gold-text); }
.pill:hover { background: var(--royal); color: #fff; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-col a { color: var(--topbar-text); }
.footer-col a:hover { color: var(--gold-text); }
.footer-bottom { border-top: 1px solid var(--navy-mid); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--footer-muted); }

/* ==========================================================================
   تابلت (768–1279)
   ========================================================================== */
@media (max-width: 1279px) {
  .hero { background:
    linear-gradient(to bottom, rgba(var(--hero-shade), .6) 0%, rgba(var(--hero-shade), .35) 40%, rgba(var(--hero-shade), 0) 70%),
    radial-gradient(ellipse 120% 70% at 50% 85%, var(--hero-1) 0%, var(--hero-2) 55%, var(--hero-3) 100%); }
  .topbar, .main-nav, .mega, .dropdown { display: none !important; }
  .header-actions { display: flex; }
  .site-header { border-bottom: none; }
  .site-header__inner { height: 88px; }
  .brand { gap: 12px; }
  .brand__logo { width: 70px; height: 70px; }
  .brand__name { height: 66px; }

  /* البطل: عمودي */
  .hero__rosette { width: 400px; height: 400px; top: -40px; right: auto; left: -90px; }
  .hero__inner { min-height: 0; justify-content: flex-start; padding-block: 48px 96px; }
  .slide { flex-direction: column; align-items: stretch; gap: 28px; }
  .slide--intro { gap: 24px; }
  .slide__media { order: -1; width: 100%; max-width: var(--hero-box); align-self: center; }
  .slide__title { font-size: 44px; line-height: 1.45; }
  .slide__text { gap: 18px; }
  .hero__name { text-align: center; }
  .hero__name img { display: inline-block; width: 480px; }
  .khutba-card { width: 100%; max-width: var(--hero-box); align-self: center; }

  /* الأقسام: بطاقات مدمجة */
  .section--sections { padding-block: 48px 8px; }
  .section--sections .section-head { margin-bottom: 14px; }
  .feature-grid { gap: 10px; }
  .feature { align-items: center; text-align: center; padding: 14px 6px; gap: 8px; }
  .feature__title { font-size: 14px; }
  .feature__desc, .only-wide, .section--sections .eyebrow { display: none; }
  .only-narrow { display: inline; }
  .arch-tile { width: 40px; height: 44px; border-radius: 20px 20px 5px 5px; }
  .arch-tile .icon { width: 20px; height: 20px; }

  .section { padding-block: 48px; }
  .section-title { font-size: 34px; padding-bottom: 10px; }
  .section-head .eyebrow { display: none; }

  /* تبويبات قابلة للتمرير أفقياً (تمتد لحافة الشاشة) */

  .lesson-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 0; }
  .audio-list { min-height: 0; }

  .section--audio { padding-block: 40px 32px; }

  .fatwa-box { flex-direction: column; align-items: stretch; padding: 40px; gap: 28px; }
  .fatwa-box__links { width: 100%; }
  .fatwa-box__title { font-size: 36px; }

  /* التذييل: مبسّط ومتوسط */
  .site-footer { padding-block: 40px; text-align: center; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; }
  .footer-about { grid-column: 1 / -1; }
  .footer-about p { display: none; }
  .footer-col { align-items: center; gap: 8px; font-size: 14px; padding-top: 22px; border-top: 1px solid var(--navy-mid); }
  .footer-col a { padding-block: 9px; }
  .footer-about { align-items: center; }
  .footer-brand img { width: 72px; height: 72px; }
  .footer-social { align-items: center; margin-top: 0; }
  .footer-social__links { justify-content: center; gap: 10px; }
  .pill { width: 46px; height: 46px; padding: 0; border-radius: 50%; justify-content: center; }
  .pill span { display: none; }
  .pill .icon { width: 20px; height: 20px; }
  .footer-bottom { flex-direction: column; align-items: center; margin-top: 26px; padding-top: 18px; font-size: 12px; line-height: 1.7; text-align: center; }
  .footer-bottom span:last-child { display: none; }
}

/* ==========================================================================
   جوال (<768)
   ========================================================================== */
@media (max-width: 767px) {
  .hero { margin: 14px 10px 0; border-radius: 18px; }
  .hero::after { inset: 6px; border-radius: 13px; }
  .tabbar { margin-bottom: 14px; padding: 5px; }
  .tab, .tabbar__more-btn { padding: 9px 12px; font-size: 14px; }
  .tab .tab__count { display: none; }
  .site-header__inner { height: 72px; gap: 8px; }
  .brand { gap: 6px; min-width: 0; flex-shrink: 1; }
  .brand__logo { width: 48px; height: 48px; flex-shrink: 0; }
  .brand__name { height: 46px; width: auto; min-width: 0; max-width: 100%; object-fit: contain; object-position: right; }
  .header-actions { gap: 0; flex-shrink: 0; }
  .header-actions .icon-btn { width: 38px; height: 40px; }
  .theme-toggle__swatch { width: 12px; height: 12px; }

  .hero__rosette { width: 320px; height: 320px; }
  .hero__inner { min-height: 0; padding-block: 20px 62px; }
  .slider-controls { bottom: 14px; }
  .slide { gap: 12px; }
  .slide--intro { gap: 16px; }
  .eyebrow-line { font-size: 15px; }
  .slide--intro .eyebrow-line::before { display: none; }
  .hero__name img { width: 270px; }
  .slide__lead { font-size: 17px; line-height: 1.6; }
  .slide__title { font-size: 30px; line-height: 1.55; }
  .slide__title br { display: none; }
  .slide__media { max-width: none; border-radius: 16px; }
  .chip-dark { font-size: 13px; padding: 6px 12px; }
  .btn { font-size: 15px; padding: 13px 20px; }
  .btn-row { gap: 10px; }
  .slide--intro .btn-row { display: none; }

  :root { --hero-ratio: 4 / 3; }
  .khutba-card { max-width: none; border-radius: 16px; padding: 12px 12px 12px; gap: 8px; margin-top: 8px; box-shadow: none; }
  .khutba-card__meta { display: none; }
  .khutba-card__meta .chip { font-size: 12px; padding: 4px 10px; }
  .khutba-card__title { font-size: 18px; line-height: 1.45; }

  .section--sections { padding-block: 28px 8px; }
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section { padding-block: 28px 8px; }
  .section-title { font-size: 28px; padding-bottom: 8px; }
  .section-title::after { width: 52px; }
  .section-head { margin-bottom: 12px; }
  .link-strong { font-size: 14px; }

  /* الدروس كقائمة */
  .lesson-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; gap: 0; }
  .lesson-card { background: transparent; border: none; border-bottom: 1px solid var(--border); border-radius: 0; padding: 10px 0; min-height: 62px; flex-direction: row; align-items: center; gap: 12px; box-shadow: none !important; }
  .lesson-card__title { font-size: 15px; -webkit-line-clamp: 1; }
  .lesson-card__meta { font-size: 12px; flex-shrink: 0; flex-direction: column; align-items: flex-end; gap: 0; max-width: 45%; text-align: end; }
  .panel-foot { border-top: none; padding-top: 0; margin-top: 14px; flex-direction: column; align-items: stretch; }
  .panel-foot > .muted { display: none; }
  .section--lessons .panel-foot .btn { background: transparent; color: var(--ink); border: 1px solid var(--ink); }

  .section--audio { margin-top: 24px; padding-block: 28px 24px; }
  .audio-list { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 62px; gap: 8px; }
  .audio-item { padding: 0 12px; gap: 12px; }
  .play-dot { width: 40px; height: 40px; }
  .play-dot .icon { width: 13px; height: 13px; }
  .audio-item__body { flex-direction: column; align-items: stretch; gap: 1px; }
  .audio-item__title { font-size: 14px; -webkit-line-clamp: 1; }
  .audio-item__date { font-size: 12px; }
  .empty-state { min-height: 200px; font-size: 15px; }
  .empty-state .icon { display: none; }
  .panel-foot--end { margin-top: 12px; }

  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .book { gap: 8px; }
  .book img { border-radius: 10px; box-shadow: none; }
  .book__title { font-size: 14px; }
  .book__type { display: none; }

  .section--fatwa { padding-block: 28px 32px; }
  .fatwa-box { border-radius: 18px; padding: 24px 18px; gap: 12px; }
  .fatwa-box__pattern { display: none; }
  .fatwa-box__text { gap: 12px; }
  .eyebrow--gold { font-size: 15px; }
  .fatwa-box__title { font-size: 28px; }
  .fatwa-box__text p { display: none; }
  .fatwa-box__links { gap: 12px; }
  .contact-card { border: none; border-radius: 12px; padding: 14px; gap: 12px; }
  .contact-card__icon { width: auto; height: auto; background: none; color: var(--gold); }
  .contact-card__label { display: none; }
  .contact-card__value { font-size: 14px; font-weight: 400; }
  .contact-card--telegram { background: var(--gold); color: var(--navy); justify-content: center; gap: 10px; }
  .contact-card--telegram:hover { background: var(--gold-text); color: var(--navy); }
  .contact-card--telegram .contact-card__icon { color: var(--navy); }
  .contact-card--telegram .contact-card__icon .icon { width: 18px; height: 18px; }
  .contact-card--telegram .contact-card__body { display: none; }
  .contact-card--telegram .contact-card__cta { display: inline; font-size: 15px; font-weight: 600; }

  .site-footer { padding-block: 28px; }
}

/* ---------- رأس القسم: شريط داكن بعنوان أبيض (تباين عالٍ) ---------- */
.section-head {
  position: relative; overflow: hidden; isolation: isolate;
  align-items: center; padding: 22px 30px; border-radius: 18px;
  background: var(--navy); border: 1px solid var(--navy); border-inline-start: 6px solid var(--gold);
  box-shadow: 0 10px 24px rgba(var(--navy-rgb), .18);
}
.section-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%23C9A24A' stroke-width='1'%3E%3Cpath d='M32.0 8.0L39.0 15.0L49.0 15.0L49.0 25.0L56.0 32.0L49.0 39.0L49.0 49.0L39.0 49.0L32.0 56.0L25.0 49.0L15.0 49.0L15.0 39.0L8.0 32.0L15.0 25.0L15.0 15.0L25.0 15.0Z'/%3E%3Ccircle cx='32' cy='32' r='7'/%3E%3Cpath d='M0 0L15 15M64 0L49 15M0 64L15 49M64 64L49 49'/%3E%3Cpath d='M0 32H8M56 32H64M32 0V8M32 56V64'/%3E%3C/g%3E%3C/svg%3E"); background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to right, #000, transparent 70%); mask-image: linear-gradient(to right, #000, transparent 70%);
}
.section-head .section-title { color: #FFFFFF; padding-bottom: 0; text-shadow: none; font-size: 40px; }
.section-head .section-title::after { display: none; }
.section-head .eyebrow { background: transparent; padding: 0; color: var(--gold-text); font-size: 15px; }
.section-head .link-strong { color: var(--gold-text); border: 1px solid var(--gold); padding: 9px 18px; border-radius: 10px; transition: background .2s, color .2s; }
.section-head .link-strong:hover { background: var(--gold); color: var(--navy); }
@media (max-width: 1279px) {
  .section-head { padding: 16px 22px; }
  .section-head .section-title { font-size: 30px; }
}
@media (max-width: 767px) {
  .section-head { padding: 12px 16px; border-radius: 14px; border-inline-start-width: 5px; }
  .section-head .section-title { font-size: 24px; }
  .section-head .link-strong { padding: 6px 12px; font-size: 13px; }
}

/* ---------- الصفحات الداخلية ---------- */
.page { min-height: 50vh; }
.page .section-head .eyebrow { display: flex; }
.page-search { display: flex; gap: 10px; margin-bottom: 20px; max-width: 680px; }
.page-search input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); }
.page-search input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.lesson-grid--auto { min-height: 0; }
.prose { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 32px; font-size: 17px; line-height: 2; max-width: 860px; }
.prose p { margin: 0 0 1em; }

/* روابط القائمة المعطّلة مؤقتاً (شكل فقط) */
a[aria-disabled="true"], button[aria-disabled="true"] { cursor: default; }

/* جوالات ضيقة جداً: نسبة أعلى قليلاً لتتسع بطاقة الخطبة بنفس مقاس الصور */
@media (max-width: 359px) { :root { --hero-ratio: 6 / 5; } }

/* ==========================================================================
   صفحات المحتوى (مرتبطة بقاعدة البيانات)
   ========================================================================== */
.khutba-card__title a { color: inherit; }
.khutba-card__title a:hover { color: var(--link); }
.dropdown__link--all { justify-content: center; color: var(--link); font-weight: 600; border-top: 1px solid var(--border); margin-top: 4px; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--link); }
.crumbs__sep { opacity: .6; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

.page .section-head { margin-bottom: 22px; }
.page-lead { margin: 4px 0 0; color: var(--on-dark); font-size: 16px; line-height: 1.8; max-width: 760px; }
.meta-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.meta-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; padding: 5px 12px; border-radius: 20px; background: rgba(201, 162, 74, .14); color: var(--gold-text); border: 1px solid rgba(201, 162, 74, .3); }
.section-head .meta-chips { margin-top: 4px; }
.block-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-kufi); font-size: 22px; font-weight: 600; color: var(--ink); margin: 34px 0 16px; }
.block-title .star8 { color: var(--gold); }
.block-title small { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--muted); }

/* بطاقات الأقسام */
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cat-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; color: var(--text); transition: border-color .2s, box-shadow .2s, transform .2s; }
.cat-card:hover { color: var(--text); border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(var(--navy-rgb), .12); }
.cat-card__top { display: flex; align-items: center; gap: 12px; }
.cat-card__icon { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--accent-bg); color: var(--gold); }
.cat-card__title { font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.cat-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: var(--muted); }
.cat-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.cat-card__subs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.cat-card__subs span { font-size: 12.5px; background: var(--chip-bg); color: var(--link); padding: 2px 10px; border-radius: 12px; }
.cat-card--root .cat-card__title { font-family: var(--font-head); font-size: 22px; }

/* قوائم الدروس والمواد */
.item-list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.item-row { display: flex; align-items: center; gap: 16px; padding: 14px 20px; color: var(--text); border-top: 1px solid var(--border); transition: background .15s; }
.item-row:first-child { border-top: 0; }
.item-row:hover { background: var(--soft-1); color: var(--text); }
.item-row__num { width: 34px; flex: none; text-align: center; font-family: var(--font-kufi); font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.item-row .play-dot { width: 40px; height: 40px; }
.item-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.item-row__title { font-size: 16.5px; font-weight: 600; color: var(--ink); line-height: 1.55; }
.item-row__sub { font-size: 13px; color: var(--muted); }
.item-row__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; font-size: 13px; color: var(--muted); text-align: end; }
.item-row__meta .dur { font-variant-numeric: tabular-nums; direction: ltr; }
.item-row--current { background: rgba(201, 162, 74, .12); }
.item-row--current .item-row__title { color: var(--link); }
/* صف بزر تشغيل مباشر: الزر يشغّل في مشغّل الصفحة، وبقية الصف رابط لصفحة الدرس */
.item-row--play { padding-block: 0; }
.item-row__link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 16px; padding-block: 14px; color: inherit; }
.item-row__link:hover { color: inherit; }
.play-btn { border: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .2s; }
.play-btn:hover { background: var(--royal); transform: scale(1.06); }
.play-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.play-btn__pause { display: none; }
.play-btn.is-playing .play-btn__play { display: none; }
.play-btn.is-playing .play-btn__pause { display: inline-flex; }
.play-btn .icon { pointer-events: none; }
.item-row.is-active { background: rgba(201, 162, 74, .12); }
.item-row.is-active .item-row__title { color: var(--link); }
.item-row.is-active .play-btn { background: var(--gold); color: var(--navy-deep); box-shadow: 0 0 0 4px rgba(201, 162, 74, .25); }
.player-card__now { display: block; text-align: center; margin: -4px 0 10px; font-size: 13.5px; font-weight: 600; color: var(--link); line-height: 1.6; }
.player-card__now[hidden] { display: none; }

.list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 34px 0 14px; }
.list-head .block-title { margin: 0; }
.sort-links { display: flex; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.sort-links a { padding: 6px 12px; border-radius: 9px; border: 1px solid var(--border); color: var(--muted); background: var(--surface); }
.sort-links a.is-current { background: var(--accent-bg); border-color: var(--accent-bg); color: var(--on-accent); }

/* صفحة المادة (درس / خطبة) */
.media-page { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 28px; align-items: start; }
.media-page__main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.media-page__side { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 14px; }
.player-card { background: var(--surface); border: 2px solid var(--gold); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 18px 40px rgba(var(--navy-rgb), .14); }
.player-card__label { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--link); }
.player-card .player { color: #fff; }
.no-audio { padding: 26px; text-align: center; color: var(--muted); border: 1px dashed var(--dash); border-radius: 14px; }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.prev-next a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); min-width: 0; }
.prev-next a:hover { border-color: var(--link); color: var(--text); }
.prev-next small { color: var(--muted); font-size: 12.5px; }
.prev-next strong { font-weight: 600; font-size: 15px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prev-next .next { text-align: end; }
.share-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.share-row { flex-wrap: nowrap; }
.share-row__label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; margin-inline-end: auto; }
.share-btn { flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--ink); cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.share-btn:hover { transform: translateY(-2px); }
.share-btn.is-done { background: #1FA855; border-color: transparent; color: #fff; }
.share-btn:hover { color: #fff; border-color: transparent; background: var(--royal); }
.share-btn--whatsapp:hover { background: #1FA855; }
.share-btn--telegram:hover { background: #229ED9; }
.share-btn--facebook:hover { background: #1877F2; }
.share-btn--x:hover { background: #111; }

/* النص المنسّق (أوصاف، صفحات، فتاوى) */
.prose { max-width: none; }
.prose h2 { font-family: var(--font-kufi); font-size: 23px; color: var(--ink); margin: 1.2em 0 .5em; }
.prose h3 { font-size: 19px; color: var(--ink); margin: 1em 0 .4em; }
.prose h4 { font-size: 17px; color: var(--ink); margin: 1em 0 .4em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1em; padding-inline-start: 1.6em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1em 0; padding: 12px 18px; border-inline-start: 4px solid var(--gold); background: var(--soft-1); border-radius: 8px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 10px; }
.prose th { background: var(--soft-1); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 1.5em 0; }
.prose .text-tiny { font-size: .7em; } .prose .text-small { font-size: .85em; } .prose .text-big { font-size: 1.4em; } .prose .text-huge { font-size: 1.8em; }
.prose .marker-yellow { background: #FDFD77; } .prose .marker-green { background: #62F962; } .prose .marker-pink { background: #FC7899; } .prose .marker-blue { background: #72CCFD; }
.prose .pen-red { color: #E71313; background: none; } .prose .pen-green { color: #128A00; background: none; }
.prose--compact { padding: 22px 24px; font-size: 16px; line-height: 1.9; }

/* المؤلفات */
.book-grid--page { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.book__placeholder { aspect-ratio: 3 / 4; border-radius: 12px; border: 1px solid var(--border); background: var(--soft-1); display: grid; place-items: center; color: var(--link); }
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; }
.filter-tabs a { padding: 9px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 500; }
.filter-tabs a.is-current { background: var(--accent-bg); border-color: var(--accent-bg); color: var(--on-accent); font-weight: 600; }
.filter-tabs a span { font-size: 12px; opacity: .8; margin-inline-start: 4px; }
.book-detail { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 34px; align-items: start; }
.book-detail__cover img, .book-detail__cover .book__placeholder { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 20px 44px rgba(var(--navy-rgb), .22); }
.book-detail__info { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.book-detail__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* الفتاوى */
.fatwa-list { display: flex; flex-direction: column; gap: 12px; }
.fatwa-row { display: flex; gap: 14px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; color: var(--text); }
.fatwa-row:hover { border-color: var(--link); color: var(--text); }
.fatwa-row__icon { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--chip-bg); color: var(--link); }
.fatwa-row__q { font-size: 16.5px; font-weight: 600; color: var(--ink); line-height: 1.7; }
.fatwa-row__meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.qa { display: flex; flex-direction: column; gap: 16px; }
.qa__label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-kufi); font-size: 18px; font-weight: 600; color: var(--link); margin-bottom: 8px; }

/* الترقيم و404 */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 26px; }
.pager a { min-width: 40px; height: 40px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14.5px; }
.pager a:hover { border-color: var(--gold); }
.pager a.is-current { background: var(--accent-bg); border-color: var(--accent-bg); color: var(--on-accent); }
.pager__gap { align-self: center; color: var(--muted); padding: 0 4px; }
.notfound { text-align: center; padding: 50px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.notfound__code { font-family: var(--font-kufi); font-size: 88px; font-weight: 700; line-height: 1; color: var(--gold); }
.notfound__title { font-family: var(--font-head); font-size: 34px; color: var(--ink); margin: 0; }
.notfound p { color: var(--muted); font-size: 17px; margin: 0; }
.search-group + .search-group { margin-top: 10px; }

@media (max-width: 1279px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-page { grid-template-columns: minmax(0, 1fr) 360px; }
  .book-grid--page { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .media-page { grid-template-columns: minmax(0, 1fr); }
  .media-page__side { min-width: 0; }
  .media-page__side { position: static; order: -1; }
  .book-detail { grid-template-columns: minmax(0, 1fr); }
  .book-detail__cover { width: 100%; max-width: 260px; margin-inline: auto; }
}
@media (max-width: 767px) {
  .cat-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cat-card { padding: 16px; }
  .item-row { padding: 12px 14px; gap: 10px; }
  .item-row__num { width: 26px; font-size: 13px; }
  .item-row .play-dot { display: none; }
  .item-row .play-btn { display: flex; width: 36px; height: 36px; }
  .item-row__link { gap: 10px; padding-block: 12px; }
  .item-row__title { font-size: 15px; }
  .book-grid--page { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .prev-next { grid-template-columns: minmax(0, 1fr); }
  .block-title { font-size: 19px; margin: 26px 0 12px; }
  .page-lead { font-size: 14.5px; }
  .prose { padding: 20px 18px; font-size: 16px; }
  .notfound__code { font-size: 64px; }
}

/* ---------- السلايدر بعرض محتوى الصفحة نفسه (مثل بقية البطاقات) ---------- */
.hero { width: calc(100% - var(--gutter) * 2); max-width: var(--maxw); margin: 22px auto 0; }
.hero .hero__inner { max-width: none; padding-inline: 56px; }
@media (min-width: 1280px) {
  .hero { --hero-box: 560px; }
  .hero .slide, .hero .slide--intro { gap: 48px; }
}
@media (max-width: 1279px) { .hero .hero__inner { padding-inline: 48px; } }
@media (max-width: 767px) {
  .hero { width: calc(100% - var(--gutter) * 2); margin: 14px auto 0; }
  .hero .hero__inner { padding-inline: 26px; }
}

.share-btn__done { display: none; }
.share-btn.is-done .share-btn__link { display: none; }
.share-btn.is-done .share-btn__done { display: block; }

/* ---------- صور الشرائح: كاملة دائماً بلا قص، وبنسبة ثابتة 16:10 في كل الشاشات ---------- */
.hero .slide__media { aspect-ratio: 16 / 10; background: var(--hero-2); display: block; }
.hero .slide__media img { object-fit: contain; object-position: center; }
a.slide__media { cursor: pointer; transition: transform .25s, box-shadow .25s; }
a.slide__media:hover { transform: translateY(-3px); box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.prose figure.table { margin: 1em 0; overflow-x: auto; }
.prose figure.table table { margin: 0; }
.prose td strong { color: var(--ink); }

/* ===== جدول الدروس — بنمط إعلان الجدول القديم (أخضر مزرق + برتقالي + زخارف) ===== */
.sched {
  --s-teal: #13777C; --s-teal-2: #1E9196; --s-teal-d: #0C5C61;
  --s-orange: #CF6E22; --s-orange-2: #E8923C; --s-orange-d: #A9541A;
  --s-gold: #C9A24A; --s-ink: #20343A;
  position: relative; overflow: hidden; border-radius: 22px; border: 1px solid #E6D6B0;
  padding: 44px clamp(16px, 6.5vw, 96px) 30px; color: var(--s-ink);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23B9A274' stroke-opacity='.13' stroke-width='1'%3E%3Cpath d='M40 4l10 26 26 10-26 10-10 26-10-26L4 40l26-10z'/%3E%3Ccircle cx='40' cy='40' r='9'/%3E%3Cpath d='M0 0l18 18M80 0L62 18M0 80l18-18M80 80L62 62'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(ellipse at 50% 40%, #FFFFFF 0%, #FCF9F3 75%);
  box-shadow: 0 14px 40px rgba(32, 52, 58, .08);
}
.sched__corner { position: absolute; width: clamp(100px, 16vw, 220px); aspect-ratio: 1; background: url("../img/orn-corner.svg") no-repeat center / contain; pointer-events: none; }
.sched__corner--tr { top: 0; right: 0; }
.sched__corner--tl { top: 0; left: 0; transform: scaleX(-1); }
.sched__corner--br { bottom: 0; right: 0; transform: scaleY(-1); }
.sched__corner--bl { bottom: 0; left: 0; transform: scale(-1, -1); }
.sched > :not(.sched__corner) { position: relative; z-index: 1; }

.sched__head { text-align: center; padding: 0 clamp(40px, 9vw, 130px); }
.sched__title { font-family: var(--font-kufi); font-weight: 700; font-size: clamp(28px, 4.4vw, 56px); line-height: 1.25; margin: 0; }
.sched__title .t { color: var(--s-teal); }
.sched__title .o { color: var(--s-orange); }
.sched__logo { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 12px 0 6px; }
.sched__logo img { width: clamp(76px, 9vw, 104px); height: auto; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--s-gold), 0 10px 22px rgba(19, 119, 124, .22); }
.sched__flourish { width: clamp(70px, 16vw, 200px); height: 24px; fill: none; stroke: var(--s-gold); stroke-width: 2; }
.sched__flourish--flip { transform: scaleX(-1); }
.sched__intro { max-width: 720px; margin: 12px auto 0; font-size: 16px; line-height: 1.9; color: #4A5A5E; }

.sched__grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(var(--rows), auto); gap: 14px 30px; }
.sched__row { display: flex; align-items: center; min-width: 0; }
.sched__time {
  flex: none; width: 176px; min-height: 52px; padding: 6px 12px; display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--font-kufi); font-weight: 600; font-size: 20px; line-height: 1.3; color: #fff; border-radius: 12px 28px 28px 12px;
  background: linear-gradient(135deg, var(--s-teal-2), var(--s-teal-d)); box-shadow: 0 6px 14px rgba(12, 92, 97, .25), inset 0 0 0 2px rgba(255, 255, 255, .18);
}
.sched__row.is-alt .sched__time { background: linear-gradient(135deg, var(--s-orange-2), var(--s-orange-d)); box-shadow: 0 6px 14px rgba(169, 84, 26, .25), inset 0 0 0 2px rgba(255, 255, 255, .18); }
.sched__time.is-long { font-size: 16px; }
.sched__oct { flex: none; width: 30px; height: 30px; margin: 0 -15px; position: relative; z-index: 2; fill: #fff; stroke: var(--s-gold); stroke-width: 2; }
.sched__oct circle { fill: none; stroke-width: 1.5; }
.sched__lesson {
  flex: 1; min-width: 0; min-height: 52px; display: flex; align-items: center; padding: 6px 26px 6px 14px; font-size: 19px; font-weight: 600; line-height: 1.5;
  background: #fff; border: 1.5px solid #E2CFA3; border-radius: 28px 12px 12px 28px; box-shadow: 0 5px 14px rgba(32, 52, 58, .06);
}
.sched__foot { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 30px; font-family: var(--font-kufi); font-weight: 600; font-size: 20px; color: var(--s-teal-d); }
.sched__foot svg { width: 20px; height: 20px; fill: var(--s-gold); flex: none; }
.sched__note { text-align: center; margin: 12px auto 0; max-width: 640px; font-size: 15px; color: #5A6A6E; }

@media (max-width: 1279px) {
  .sched__grid { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; grid-template-rows: none; }
}
@media (max-width: 767px) {
  .sched { padding: 30px 14px 22px; border-radius: 16px; }
  .sched__head { padding: 0 22px; }
  .sched__title { font-size: 27px; }
  .sched__title .o { display: block; }
  .sched__intro { font-size: 14.5px; }
  .sched__grid { gap: 10px; margin-top: 20px; }
  .sched__time { width: 118px; min-height: 46px; font-size: 15px; padding: 6px 8px; }
  .sched__time.is-long { font-size: 13px; }
  .sched__oct { width: 24px; height: 24px; margin: 0 -12px; }
  .sched__lesson { min-height: 46px; font-size: 15px; padding: 6px 18px 6px 10px; }
  .sched__foot { font-size: 16px; }
}


/* ==========================================================================
   مشغّل الصوت الحديث
   ========================================================================== */
.player {
  --p: 0%; --b: 0%;
  position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 16px;
  padding: 16px 18px 14px; border-radius: 20px; color: #fff; border: 1px solid rgba(201, 162, 74, .28);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23C9A24A' stroke-opacity='.07'%3E%3Cpath d='M28 6l6 16 16 6-16 6-6 16-6-16-16-6 16-6z'/%3E%3Ccircle cx='28' cy='28' r='5'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(130% 120% at 100% 0%, #24589A 0%, var(--navy) 55%, var(--navy-deep) 100%);
  box-shadow: 0 18px 40px rgba(var(--deep-rgb), .38), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.player::before { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: radial-gradient(160px 160px at 0 0, rgba(201, 162, 74, .3), transparent 70%); pointer-events: none; transition: opacity .4s; opacity: .6; }
.player.is-playing::before { opacity: 1; }

.player__head { display: flex; align-items: center; gap: 12px; direction: rtl; }
.player__disc { position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; padding: 2px; background: conic-gradient(from 0deg, var(--gold), var(--gold-text), var(--gold), #8C6A22, var(--gold)); box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.player__disc img { width: 100%; height: 100%; border-radius: 50%; display: block; }
.player.is-playing .player__disc { animation: player-spin 9s linear infinite; }
@keyframes player-spin { to { transform: rotate(360deg); } }
.player__status { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; text-align: right; }
.player__status b { font-size: 14.5px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__status small { font-size: 12px; color: var(--gold-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__eq { flex: none; display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.player__eq i { width: 3px; height: 5px; border-radius: 2px; background: var(--gold); opacity: .55; transition: height .3s; }
.player.is-playing .player__eq i { opacity: 1; animation: player-eq .9s ease-in-out infinite alternate; }
.player.is-playing .player__eq i:nth-child(2) { animation-delay: -.3s; animation-duration: .7s; }
.player.is-playing .player__eq i:nth-child(3) { animation-delay: -.6s; animation-duration: 1.05s; }
.player.is-playing .player__eq i:nth-child(4) { animation-delay: -.15s; animation-duration: .8s; }
@keyframes player-eq { from { height: 4px; } to { height: 18px; } }

.player__bar { position: relative; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .14); cursor: pointer; touch-action: none; }
.player__bar::before { content: ""; position: absolute; inset: -10px 0; } /* مساحة لمس أكبر */
.player__bar:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.player__buf, .player__fill { position: absolute; inset-block: 0; left: 0; border-radius: inherit; pointer-events: none; }
.player__buf { width: var(--b); background: rgba(255, 255, 255, .18); transition: width .3s; }
.player__fill { width: var(--p); background: linear-gradient(90deg, #A88334, var(--gold), var(--gold-text)); box-shadow: 0 0 12px rgba(201, 162, 74, .55); }
.player__thumb { position: absolute; top: 50%; left: var(--p); width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); box-shadow: 0 2px 8px rgba(0, 0, 0, .4); transform: scale(0); transition: transform .2s; pointer-events: none; }
.player:hover .player__thumb, .player.is-playing .player__thumb, .player__bar:focus-visible .player__thumb, .player.is-seeking .player__thumb { transform: scale(1); }
.player.is-seeking .player__fill, .player.is-seeking .player__thumb { transition: none; }
.player__times { display: flex; justify-content: space-between; margin-top: 9px; font-size: 12.5px; color: rgba(255, 255, 255, .72); font-variant-numeric: tabular-nums; }

.player__controls { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.player__controls button { padding: 0; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #fff; -webkit-tap-highlight-color: transparent; }
.player__controls button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.player__btn { position: relative; width: 66px; height: 66px; border-radius: 50%; color: var(--navy-deep) !important; background: linear-gradient(150deg, #F1D9A0, var(--gold) 55%, #A88334); box-shadow: 0 10px 24px rgba(201, 162, 74, .45), inset 0 2px 0 rgba(255, 255, 255, .45); transition: transform .2s, box-shadow .2s; }
.player__btn:hover { transform: scale(1.06); }
.player__btn:active { transform: scale(.96); }
.player__btn > span { display: inline-flex; }
.player__play { margin-left: 4px; }
.player__pause, .player.is-playing .player__play { display: none !important; }
.player.is-playing .player__pause { display: inline-flex !important; }
.player.is-playing .player__btn::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(201, 162, 74, .55); animation: player-pulse 1.8s ease-out infinite; pointer-events: none; }
@keyframes player-pulse { from { transform: scale(.92); opacity: 1; } to { transform: scale(1.22); opacity: 0; } }
.player.is-loading .player__btn::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--gold-text); animation: player-spin .8s linear infinite; }
.player__skip { position: relative; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .07) !important; transition: background .2s, transform .2s; }
.player__skip:hover { background: rgba(255, 255, 255, .16) !important; }
.player__skip:active { transform: scale(.92); }
.player__skip span { position: absolute; font-size: 9px; font-weight: 700; line-height: 1; }
.player__speed { min-width: 46px; height: 30px; padding: 0 10px !important; border-radius: 99px; font-size: 13px; font-weight: 700; color: var(--gold-text) !important; background: rgba(201, 162, 74, .14) !important; border: 1px solid rgba(201, 162, 74, .45) !important; font-variant-numeric: tabular-nums; transition: background .2s; }
.player__speed:hover { background: rgba(201, 162, 74, .26) !important; }
.player__mute { width: 46px; height: 30px; border-radius: 99px; background: rgba(255, 255, 255, .07) !important; color: rgba(255, 255, 255, .85) !important; transition: background .2s; }
.player__mute:hover { background: rgba(255, 255, 255, .16) !important; }
.player__vol-off { display: none; }
.player__vol { position: relative; display: flex; }
.player__vol .player__mute[aria-expanded="true"] { background: rgba(201, 162, 74, .22) !important; color: var(--gold-text) !important; }
.player__vol-pop { position: absolute; z-index: 20; right: 0; display: flex; align-items: center; gap: 10px; width: 236px; padding: 10px 12px; border-radius: 14px;
  background: linear-gradient(160deg, #1C467C, var(--navy-deep)); border: 1px solid rgba(201, 162, 74, .4); box-shadow: 0 14px 30px rgba(0, 0, 0, .45); animation: vol-in .18s ease-out; }
.player__vol-pop[hidden] { display: none; }
.player__vol--down .player__vol-pop { top: calc(100% + 10px); right: auto; left: 0; }
.player__vol--up .player__vol-pop { bottom: calc(100% + 10px); }
@keyframes vol-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.player__vol-mute { flex: none; width: 32px; height: 32px; padding: 0; border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); color: #fff; }
.player__vol-mute:hover { background: rgba(255, 255, 255, .16); }
.player.is-muted .player__vol-mute { color: var(--gold-text); }
.player__vol-val { flex: none; width: 38px; text-align: end; font-size: 12px; font-weight: 700; color: var(--gold-text); font-variant-numeric: tabular-nums; }
.player__vol-range { --v: 100%; flex: 1; min-width: 0; height: 22px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.player__vol-range:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
.player__vol-range::-webkit-slider-runnable-track { height: 5px; border-radius: 99px; background: linear-gradient(90deg, var(--gold) var(--v), rgba(255, 255, 255, .18) var(--v)); }
.player__vol-range::-moz-range-track { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .18); }
.player__vol-range::-moz-range-progress { height: 5px; border-radius: 99px; background: var(--gold); }
.player__vol-range::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; margin-top: -5px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.player__vol-range::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); }
.player.is-muted .player__vol-on { display: none; }
.player.is-muted .player__vol-off { display: inline; }
.player.is-muted .player__mute { color: var(--gold-text) !important; }

.player__tools { flex: none; display: flex; align-items: center; gap: 6px; }
.player__tools button { padding: 0; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.player__tools button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.player.has-nav .player__eq { display: none; }
.player.has-nav .player__speed, .player.has-nav .player__mute { height: 28px; }
.player.has-nav .player__mute { width: 38px; }
.player__nav { width: 40px; height: 40px; border-radius: 50%; background: transparent !important; color: rgba(255, 255, 255, .9) !important; transition: color .2s, transform .2s, background .2s; }
.player__nav:hover:not(:disabled) { background: rgba(255, 255, 255, .1) !important; color: var(--gold-text) !important; }
.player__nav:active:not(:disabled) { transform: scale(.9); }
.player__nav:disabled { opacity: .3; cursor: default; }
.player.is-disabled .player__controls button, .player.is-disabled .player__bar { cursor: not-allowed; }
.player.is-disabled .player__skip, .player.is-disabled .player__speed, .player.is-disabled .player__mute { opacity: .45; }

@media (prefers-reduced-motion: reduce) { .player.is-playing .player__disc, .player.is-playing .player__eq i, .player.is-playing .player__btn::after { animation: none; } }
@media (max-width: 767px) {
  .player { padding: 14px 14px 12px; gap: 14px; }
  .player__speed, .player__mute, .player.has-nav .player__speed, .player.has-nav .player__mute { height: 34px; }
  .link-strong { display: inline-flex; align-items: center; min-height: 40px; }
  .player__btn { width: 60px; height: 60px; }
  .player__skip { width: 40px; height: 40px; }
  .player__speed { min-width: 42px; }
  .player__mute { width: 40px; }
}
/* بطاقة «أحدث خطبة» في السلايدر: نسخة مدمجة بلا رأس */
.khutba-card .player__head { display: none; }
@media (max-width: 767px) {
  .khutba-card .player { gap: 10px; padding: 10px 12px; }
  .khutba-card .player__btn { width: 52px; height: 52px; }
  .khutba-card .player__skip { width: 36px; height: 36px; }
}

/* الهواتف الصغيرة جداً (≤ 380px): رأس المشغّل أخف حتى لا يزدحم */
@media (max-width: 380px) {
  .player { padding: 12px 12px 10px; }
  .player__head { gap: 8px; }
  .player__disc { width: 38px; height: 38px; }
  .player__status b { font-size: 13.5px; }
  .player__status small { font-size: 11.5px; }
  .player__tools { gap: 4px; }
  .player.has-nav .player__speed { min-width: 38px; padding: 0 7px !important; font-size: 12px; }
  .player.has-nav .player__mute { width: 34px; }
  .player__controls { gap: 2px; }
  .player__nav { width: 34px; height: 34px; }
  .player__skip { width: 38px; height: 38px; }
  .player__btn { width: 56px; height: 56px; }
}
