/*
Theme Name: Madara-Child
Template: madara
Description:  A child theme for Madara - WordPress Theme for Manga, Novel sites
Author:       Marcel
Template: madara
Tags: one-column, two-columns, right-sidebar, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, translation-ready
Version: 1.0
Screenshot: screenshot.jpg
*/

/*--------------------------------------------------------------
>>> Rtl CSS
----------------------------------------------------------------*/
@charset "UTF-8";

:root {
  /* Background Colors */
  --color-1: #000000 !important;
  /* background (darkest) */
  --bgc: #0c0c0c !important;
  /* background color */
  --bgcards: #111111 !important;
  /* sections background colors */
  --color-3: #151515 !important;
  /* popover */
  --sisd: #111111 !important;
  ;
  /* Border & Button Colors */
  --secb: #171717 !important;
  /* borders and secondary buttons */
  --color-7: #c43c5a !important;
  /* Main Color Buttons*/
  --skelton-plac: hsl(224 7% 6.5%);
  --skelton-bg: hsl(224 7% 4%);
  /* Text Colors */
  --pt: #646464 !important;
  /* paragraph text */
  --icol: #606060 !important;
  /* icons color */
  --color-6: #475569 !important;
  /* accent */
  --color-10: #717171 !important;
  /* accent foreground */
  --color-11: #e2e8f0 !important;
  /* foreground text */
  --bg-deep-black: #0b0b0b;
  --bg-black: #111111;
  --bg-dark-1: #131313;
  --bg-dark-2: #151515;
  --bg-dark-3: #161616;
  --bg-dark-4: #171717;
  --bg-dark-5: #1a1a1a;
  --bg-dark-6: #1b1b1b;
  --bg-dark-7: #1d1d1d;
  --bg-dark-8: #1f1f1f;
  --bg-dark-9: #212121;
  --bg-dark-10: #242424;
  --bg-dark-11: #282828;
  --bg-dark-12: #2b2b2b;
  --bg-dark-13: #2d2d2d;
  --bg-dark-14: #3e3e3e;
  --bg-dark-15: #1e2c43;
  /* خطوط وألوان رمادية */
  --gray-light: #afafaf;
  --gray-medium: #898989;
  --gray-mid-dark: #5a5a5a;
  --gray-accent: #5b6775;
  --my-love: #212121;
  /* ألوان شفافة وتأثيرات */
  --overlay-light-5: rgba(255, 255, 255, 0.05);
  --overlay-light-66: rgba(255, 255, 255, 0.04);

  --overlay-light-3: rgba(255, 255, 255, 0.03);
  --overlay-light-1: rgba(255, 255, 255, 0.01);
  --overlay-light-10: rgba(255, 255, 255, 0.1);
  --overlay-dark-8: rgba(0, 0, 0, 0.08);
  --overlay-dark-0: rgba(0, 0, 0, 0);
  --overlay-blue-0: rgba(0, 123, 255, 0);
  --overlay-dark-82: rgba(12, 12, 12, 0.82);

  /* تدرجات وتأثيرات خلفية */
  --gradient-diagonal-subtle: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);

  --gradient-split-dark: linear-gradient(45deg,
      var(--bg-dark-2) 50%,
      var(--bg-dark-5) 50%);
  --zbr: #222222;
  --gradient-transparent-black: linear-gradient(to bottom, rgba(12, 12, 12, 0.82) 25%, rgba(0, 0, 0, 0) 100%);
  --bg-section: #191919;
  --nice-try-didy: #d1d1d1;
  /* حدود وتأثيرات ظل */
  --border-light-outline: 0 0 0 2px rgba(255, 255, 255, 0.1);
  --white: #ffffff;
  --skeleton-bg: var(--bgcards);
  /* #111111 */
  --skeleton-placeholder-bg: var(--bg-dark-2);
  /* #151515 */
  --skeleton-icon-color: var(--gray-mid-dark);
  /* #5a5a5a */
  --skeleton-shimmer-1: var(--bg-dark-4);
  /* #171717 */
  --skeleton-shimmer-2: var(--bg-dark-6);
  /* #1b1b1b */
  --grideints: linear-gradient(to bottom, #1c1c1c, #0b0b0b);
  --sk-bg-re: hsl(224 7% 12%);
  --sk-zbb: linear-gradient(90deg, transparent 0%, hsl(224 7% 10%) 20%,
      /* Shadcn UI highlight color */
      hsl(224 7% 8%) 40%, transparent 100%);
  --xg: #111111;
}

.light-mode {
  --color-1: #ffffff !important;
  --bgc: #f9f9f9 !important;
  --bgcards: #eaeaea !important;
  --color-3: #eaeaea !important;
  --sisd: #eeeeee !important;
  --secb: #dddddd !important;
  --color-7: #dc3545 !important;
  --bg-section: #f5f5f5;
  --skelton-plac: hsl(0 0% 92%);
  --pt: #333333 !important;
  --icol: #444444 !important;
  --color-6: #1e293b !important;
  --color-10: #111111 !important;
  --color-11: #000000 !important;
  --skelton-bg: hsl(0 0% 95%);
  --sk-bg-re: hsl(0 0% 70%);
  --my-love: #e0e0e0;
  --zbr: #eeeeee;
  /* درجات الخلفيات الفاتحة */
  --bg-deep-black: #fefefe;
  --bg-black: #f5f5f5;
  --bg-dark-1: #f2f2f2;
  --bg-dark-2: #eeeeee;
  --bg-dark-3: #eaeaea;
  --bg-dark-4: #e5e5e5;
  --bg-dark-5: #e0e0e0;
  --bg-dark-6: #dbdbdb;
  --bg-dark-7: #d6d6d6;
  --bg-dark-8: #d1d1d1;
  --bg-dark-9: #cccccc;
  --bg-dark-10: #c7c7c7;
  --bg-dark-11: #c2c2c2;
  --bg-dark-12: #bdbdbd;
  --bg-dark-13: #b8b8b8;
  --bg-dark-14: #b3b3b3;
  --bg-dark-15: #dddddd;
  /* خطوط وألوان رمادية */
  --gray-light: #4a4a4a;
  --gray-medium: #606060;
  --gray-mid-dark: #707070;
  --gray-accent: #4a5568;
  --sk-zbb: linear-gradient(90deg,
      transparent 0%,
      hsl(0 0% 88%) 20%,
      hsl(0 0% 85%) 40%,
      transparent 100%);
  /* ألوان شفافة وتأثيرات */
  --overlay-light-5: rgba(0, 0, 0, 0.05);
  --overlay-light-3: rgba(0, 0, 0, 0.03);
  --overlay-light-1: rgba(0, 0, 0, 0.01);
  --overlay-light-10: rgba(0, 0, 0, 0.1);
  --overlay-dark-8: rgba(0, 0, 0, 0.08);
  --overlay-dark-0: rgba(0, 0, 0, 0);
  --overlay-blue-0: rgba(0, 123, 255, 0);
  --overlay-dark-82: rgba(255, 255, 255, 0.82);
  --overlay-light-66: rgba(0, 0, 0, 0.04);
  --nice-try-didy: #5d5d5d;
  /* تدرجات وتأثيرات خلفية */
  --gradient-diagonal-subtle: linear-gradient(45deg,
      transparent,
      rgba(0, 0, 0, 0.03),
      transparent);

  --gradient-split-dark: linear-gradient(45deg,
      #f2f2f2 50%,
      #eaeaea 50%);

  --gradient-transparent-black: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.82) 25%,
      rgba(255, 255, 255, 0) 100%);

  /* حدود وتأثيرات ظل */
  --border-light-outline: 0 0 0 2px rgba(0, 0, 0, 0.1);
  --skeleton-bg: hsl(0 0% 95%);
  --skeleton-placeholder-bg: hsl(0 0% 92%);
  --skeleton-icon-color: hsl(0 0% 70%);
  --skeleton-shimmer-1: hsl(0 0% 88%);
  --skeleton-shimmer-2: hsl(0 0% 85%);
  --xg: #f8f8f8;
  /* أبيض */
  --white: #000000;
  --grideints: linear-gradient(to bottom, #eeeeee, #fefefe);
  scrollbar-color: #eeeeee #ffffff00;

}

.dracula-theme {
  /* --------------------------------------------- */
  /*               Dracula Theme v2.0              */
  /* --------------------------------------------- */

  /* =============== خلفيات =============== */
  --color-1: #282a36 !important;
  /* خلفية رئيسية (الداكنة) */
  --bgc: #282a36 !important;
  /* لون الخلفية العام */
  --bgcards: #3b3e4f !important;
  /* خلفية الأقسام/الكروت */
  --color-3: #44475a !important;
  /* خلفية popover */
  --sisd: #3b3e4f !important;
  /* خلفية مخصصة */
  --bg-section: #3b3e4f;
  /* خلفية الأقسام */
  --xg: #282a36;
  /* متغير إضافي */

  /* =============== حدود وأزرار =============== */
  --secb: #44475a !important;
  /* حدود وأزرار ثانوية */
  --color-7: #bd93f9 !important;
  /* لون أساسي للأزرار (بنفسجي) */
  --skelton-plac: #44475a;
  /* هيكل عظمي Placeholder */
  --skelton-bg: #3b3e4f;
  /* خلفية الهيكل العظمي */

  /* =============== نصوص وأيقونات =============== */
  --pt: #f8f8f2 !important;
  /* نص الفقرات (أبيض مائل للرمادي) */
  --icol: #bd93f9 !important;
  /* لون الأيقونات (بنفسجي) */
  --color-6: #ff79c6 !important;
  /* لون التأكيد (وردي) */
  --color-10: #8be9fd !important;
  /* تأكيد أمامي (سيان) */
  --color-11: #ffffff !important;
  /* نص أمامي رئيسي */
  --my-love: #44475a;
  /* متغير مخصص (خلفية داكنة) */
  --nice-try-didy: #8be9fd;
  /* لون مخصص (سيان فاتح) */

  /* =============== تدرجات رمادية =============== */
  --gray-light: #bbbbbb;
  /* رمادي فاتح */
  --gray-medium: #9e9e9e;
  /* رمادي متوسط */
  --gray-mid-dark: #626483;
  /* رمادي متوسط-داكن */
  --gray-accent: #8be9fd;
  /* رمادي مميز (سيان) */

  /* =============== تدرجات داكنة =============== */
  --bg-deep-black: #1e1f29;
  --bg-black: #282a36;
  --bg-dark-1: #3b3e4f;
  --bg-dark-2: #44475a;
  --bg-dark-3: #4d4f68;
  --bg-dark-4: #565872;
  --bg-dark-5: #626483;
  --bg-dark-6: #6d7094;
  --bg-dark-7: #7a7dab;
  --bg-dark-8: #878ab2;
  --bg-dark-9: #9497ba;
  --bg-dark-10: #a1a4c1;
  --bg-dark-11: #aeaec8;
  --bg-dark-12: #bcc0cf;
  --bg-dark-13: #c9ccd5;
  --bg-dark-14: #d6d7dc;
  --bg-dark-15: #e3e4e8;

  /* =============== تأثيرات شفافة =============== */
  --overlay-light-5: rgba(189, 147, 249, 0.05);
  --overlay-light-66: rgba(255, 121, 198, 0.04);
  --overlay-light-3: rgba(255, 255, 255, 0.03);
  --overlay-light-1: rgba(255, 255, 255, 0.01);
  --overlay-light-10: rgba(255, 255, 255, 0.1);
  --overlay-dark-8: rgba(0, 0, 0, 0.08);
  --overlay-dark-0: rgba(0, 0, 0, 0);
  --overlay-blue-0: rgba(0, 123, 255, 0);
  --overlay-dark-82: rgba(44, 46, 66, 0.8);

  /* =============== تدرجات خلفية =============== */
  --gradient-diagonal-subtle: linear-gradient(45deg, #282a36, #44475a);
  --gradient-split-dark: linear-gradient(45deg, #3b3e4f 50%, #44475a 50%);
  --gradient-transparent-black: linear-gradient(to bottom, rgba(44, 46, 66, 0.8), rgba(0, 0, 0, 0));
  --grideints: linear-gradient(to bottom, #3b3e4f, #1e1f29);
  --sk-zbb: linear-gradient(90deg, transparent 0%, #44475a 20%, #3b3e4f 40%, transparent 100%);
  --zbr: #44475a;

  /* =============== هيكل عظمي =============== */
  --skeleton-bg: #44475a;
  --skeleton-placeholder-bg: #3b3e4f;
  --skeleton-icon-color: #8be9fd;
  --skeleton-shimmer-1: #565872;
  --skeleton-shimmer-2: #626483;
  --sk-bg-re: #44475a;
}

.slate-theme {
  /*--------------------------------------*/
  /* ← ألوان الخلفية (Slate Theme) → */
  /*--------------------------------------*/
  --color-1: #0f172a !important;
  /* الخلفية الأغمق */
  --bgc: #1e293b !important;
  /* لون الخلفية الرئيسي */
  --bgcards: #334155 !important;
  /* خلفيات الأقسام */
  --color-3: #475569 !important;
  /* النوافذ المنبثقة */
  --sisd: #334155 !important;
  /* خلفية الأقسام الجانبية */

  /*--------------------------------------*/
  /* ← ألوان الحدود والأزرار (Slate Theme) → */
  /*--------------------------------------*/
  --secb: #64748b !important;
  /* الحدود والأزرار الثانوية */
  --color-7: #0ea5e9 !important;
  /* الأزرار الرئيسية */
  --skelton-plac: #1e293b !important;
  /* خلفية العناصر الهيكلية */
  --skelton-bg: #0f172a !important;
  /* خلفية العناصر الهيكلية */

  /*--------------------------------------*/
  /* ← ألوان النصوص (Slate Theme) → */
  /*--------------------------------------*/
  --pt: #94a3b8 !important;
  /* نص الفقرات */
  --icol: #94a3b8 !important;
  /* أيقونات */
  --color-6: #38bdf8 !important;
  /* تمييز */
  --color-10: #7dd3fc !important;
  /* تمييز النص */
  --color-11: #f1f5f9 !important;
  /* النص الأساسي */

  /*--------------------------------------*/
  /* ← درجات الألوان الداكنة (Slate Theme) → */
  /*--------------------------------------*/
  --bg-deep-black: #0f172a !important;
  --bg-black: #334155 !important;
  --bg-dark-1: #1e293b !important;
  --bg-dark-2: #334155 !important;
  --bg-dark-3: #475569 !important;
  --bg-dark-4: #64748b !important;
  --bg-dark-5: #0f172a !important;
  --bg-dark-6: #1e293b !important;
  --bg-dark-7: #334155 !important;
  --bg-dark-8: #475569 !important;
  --bg-dark-9: #0f172a !important;
  --bg-dark-10: #1e293b !important;
  --bg-dark-11: #334155 !important;
  --bg-dark-12: #475569 !important;
  --bg-dark-13: #0f172a !important;
  --bg-dark-14: #1e293b !important;
  --bg-dark-15: #334155 !important;

  /*--------------------------------------*/
  /* ← ألوان الرمادي والمحايدة (Slate Theme) → */
  /*--------------------------------------*/
  --gray-light: #f1f5f9 !important;
  --gray-medium: #94a3b8 !important;
  --gray-mid-dark: #64748b !important;
  --gray-accent: #7dd3fc !important;
  --my-love: #0f172a !important;

  /*--------------------------------------*/
  /* ← تأثيرات شفافة (Slate Theme) → */
  /*--------------------------------------*/
  --overlay-light-5: rgba(241, 245, 249, 0.05);
  --overlay-light-66: rgba(241, 245, 249, 0.04);
  --overlay-light-3: rgba(241, 245, 249, 0.03);
  --overlay-light-1: rgba(241, 245, 249, 0.01);
  --overlay-light-10: rgba(241, 245, 249, 0.10);
  --overlay-dark-8: rgba(15, 23, 42, 0.08);
  --overlay-dark-0: rgba(15, 23, 42, 0.00);
  --overlay-blue-0: rgba(14, 165, 233, 0.00);
  --overlay-dark-82: rgba(15, 23, 42, 0.82);

  /*--------------------------------------*/
  /* ← التدرجات والتأثيرات الخلفية (Slate Theme) → */
  /*--------------------------------------*/
  --gradient-diagonal-subtle:
    linear-gradient(45deg,
      transparent,
      rgba(241, 245, 249, 0.03),
      transparent);
  --gradient-split-dark:
    linear-gradient(45deg,
      var(--bg-dark-2) 50%,
      var(--bg-dark-5) 50%);
  --zbr: #0f172a !important;
  --gradient-transparent-black:
    linear-gradient(to bottom,
      rgba(15, 23, 42, 0.82) 25%,
      rgba(15, 23, 42, 0.00) 100%);

  /*--------------------------------------*/
  /* ← خلفية الأقسام والإضافات (Slate Theme) → */
  /*--------------------------------------*/
  --bg-section: #334155 !important;
  --nice-try-didy: #94a3b8 !important;

  /*--------------------------------------*/
  /* ← حدود وتأثيرات الظل (Slate Theme) → */
  /*--------------------------------------*/
  --border-light-outline:
    0 0 0 2px rgba(241, 245, 249, 0.10);
  --white: #f1f5f9 !important;

  /*--------------------------------------*/
  /* ← إعدادات الهيكل العظمي (Slate Theme) → */
  /*--------------------------------------*/
  --skeleton-bg: var(--bgcards);
  --skeleton-placeholder-bg: var(--bg-dark-2);
  --skeleton-icon-color: var(--gray-mid-dark);
  --skeleton-shimmer-1: var(--bg-dark-4);
  --skeleton-shimmer-2: var(--bg-dark-6);

  /*--------------------------------------*/
  /* ← التدرجات العامة (Slate Theme) → */
  /*--------------------------------------*/
  --grideints:
    linear-gradient(to bottom,
      #1e293b,
      #0f172a);

  /*--------------------------------------*/
  /* ← ألوان إضافية مساعدة (Slate Theme) → */
  /*--------------------------------------*/
  --sk-bg-re: #1e293b !important;
  --sk-zbb:
    linear-gradient(90deg,
      transparent 0%,
      #1e293b 20%,
      #0f172a 40%,
      transparent 100%);
  --xg: #334155 !important;

}

.nord-mode {
  /*--------------------------------------*/
  /* ← Background Colors → */
  /*--------------------------------------*/
  /* الخلفية الأغمق (darkest) */
  --color-1: #2E3440 !important;
  /* Nord0 */
  /* لون الخلفية العام */
  --bgc: #3B4252 !important;
  /* Nord1 */
  /* خلفية البطاقات (cards) أو الأقسام */
  --bgcards: #2e3440 !important;
  /* Nord2 */
  /* لون خلفية النوافذ المنبثقة (popover) */
  --color-3: #4C566A !important;
  /* Nord3 */
  /* معادلة bgcards */
  --sisd: #434C5E !important;
  /* Nord2 */

  /*--------------------------------------*/
  /* ← Border & Button Colors → */
  /*--------------------------------------*/
  /* لون الحدود والأزرار الثانوية (secondary buttons) */
  --secb: #4C566A !important;
  /* Nord3 */
  /* لون أزرار الحالة الأساسية (Main Color Buttons) */
  --color-7: #5E81AC !important;
  /* Nord11 (أحمر “error”/accent) */
  /* لون placeholder للسكيلتون (Skeleton) */
  --skelton-plac: #3B4252 !important;
  /* Nord1 */
  /* لون خلفية السكيلتون */
  --skelton-bg: #2E3440 !important;
  /* Nord0 */

  /*--------------------------------------*/
  /* ← Text Colors → */
  /*--------------------------------------*/
  /* لون نص الفقرات (paragraph text) */
  --pt: #E5E9F0 !important;
  /* Nord5 */
  /* لون الأيقونات (icons) */
  --icol: #D8DEE9 !important;
  /* Nord4 */
  /* لون “accent” عام */
  --color-6: #81A1C1 !important;
  /* Nord9 (أزرق فاتح) */
  /* لون foreground للـ accent */
  --color-10: #5E81AC !important;
  /* Nord10 (أزرق داكن متوسط) */
  /* لون نص الواجهة أو النصوص العلوية (foreground text) */
  --color-11: #ECEFF4 !important;
  /* Nord6 */

  /*--------------------------------------*/
  /* ← درجات غامقة متنوعة → */
  /*--------------------------------------*/
  --bg-deep-black: #3B4252 !important;
  /* Nord1 */
  --bg-black: #2E3440 !important;
  /* Nord0 */
  --bg-dark-1: #3B4252 !important;
  /* Nord1 */
  --bg-dark-2: #434C5E !important;
  /* Nord2 */
  --bg-dark-3: #4C566A !important;
  /* Nord3 */
  --bg-dark-4: #4C566A !important;
  /* Nord3 */
  --bg-dark-5: #4C566A !important;
  /* Nord3 */
  --bg-dark-6: #434C5E !important;
  /* Nord2 */
  --bg-dark-7: #3B4252 !important;
  /* Nord1 */
  --bg-dark-8: #2E3440 !important;
  /* Nord0 */
  --bg-dark-9: #2E3440 !important;
  /* Nord0 */
  --bg-dark-10: #3B4252 !important;
  /* Nord1 */
  --bg-dark-11: #434C5E !important;
  /* Nord2 */
  --bg-dark-12: #434C5E !important;
  /* Nord2 */
  --bg-dark-13: #4C566A !important;
  /* Nord3 */
  --bg-dark-14: #D8DEE9 !important;
  /* Nord4 (أفتح قليلاً لتلمس #3e3e3e الأصلي) */
  --bg-dark-15: #3B4252 !important;
  /* Nord1 */

  /*--------------------------------------*/
  /* ← خطوط وألوان رمادية (Gray & Neutral) → */
  /*--------------------------------------*/
  --gray-light: #D8DEE9 !important;
  /* Nord4 */
  --gray-medium: #E5E9F0 !important;
  /* Nord5 */
  --gray-mid-dark: #4C566A !important;
  /* Nord3 */
  --gray-accent: #5E81AC !important;
  /* Nord10 */
  /* my-love كان #212121، نستخدم Nord0/#2E3440 */
  --my-love: #2E3440 !important;
  /* Nord0 */
  /*--------------------------------------*/
  /* ← ألوان شفافة وتأثيرات (Overlays) → */
  /*--------------------------------------*/
  /* تراكب فاتح 5% مستوحى من Nord6 */
  --overlay-light-5: rgba(236, 239, 244, 0.05);
  /* Nord6 at 5% */
  --overlay-light-66: rgba(236, 239, 244, 0.04);
  /* Nord6 at 4% */
  --overlay-light-3: rgba(236, 239, 244, 0.03);
  /* Nord6 at 3% */
  --overlay-light-1: rgba(236, 239, 244, 0.01);
  /* Nord6 at 1% */
  --overlay-light-10: rgba(236, 239, 244, 0.10);
  /* Nord6 at 10% */

  /* تراكب داكن 8% مستوحى من Nord0 */
  --overlay-dark-8: rgba(46, 52, 64, 0.08);
  /* Nord0 at 8% */
  --overlay-dark-0: rgba(46, 52, 64, 0.00);
  /* Nord0 at 0% */

  /* تراكب أزرق من Nord8 لكن عند شفافية 0% */
  --overlay-blue-0: rgba(136, 192, 208, 0.00);
  /* Nord8 at 0% */

  /* تراكب داكن 82% Nord0 */
  --overlay-dark-82: rgba(46, 52, 64, 0.82);
  /* Nord0 at 82% */

  /*--------------------------------------*/
  /* ← تدرجات وتأثيرات خلفية (Gradients) → */
  /*--------------------------------------*/
  /* تدرّج قطره خفيف (Diagonal Subtle) */
  --gradient-diagonal-subtle:
    linear-gradient(45deg,
      transparent,
      rgba(236, 239, 244, 0.03),
      /* Nord6 at 3% */
      transparent);
  /* تدرّج مقسوم داكن */
  --gradient-split-dark:
    linear-gradient(45deg,
      #434C5E 50%,
      /* Nord2 */
      #4C566A 50%
      /* Nord3 */
    );
  /* لون zbr (كان #222222) نستخدم Nord1 تقريبًا */
  --zbr: #3B4252;
  /* Nord1 */
  /* تدرّج شفاف-أسود Nord0 */
  --gradient-transparent-black:
    linear-gradient(to bottom,
      rgba(46, 52, 64, 0.82) 25%,
      /* Nord0 at 82% */
      rgba(46, 52, 64, 0.00) 100%);

  /*--------------------------------------*/
  /* ← ألوان إضافية لمقاطع معينة → */
  /*--------------------------------------*/
  /* لون قسم خلفية عام (bg-section) */
  --bg-section: #434C5E !important;
  /* Nord2 */
  /* لون نص أو أي عنصر “nice-try-didy” (كـ #d1d1d1) */
  --nice-try-didy: #E5E9F0 !important;
  /* Nord5 */

  /*--------------------------------------*/
  /* ← حدود وتأثيرات ظل (Borders & Shadows) → */
  /*--------------------------------------*/
  /* حدود فاتحة بحدود شفافة Nord6 عند 10% */
  --border-light-outline: 0 0 0 2px rgba(236, 239, 244, 0.10);
  /* Nord6 10% */
  /* اللون الأبيض صار Nord6 */
  --white: #ECEFF4;
  /* Nord6 */

  /*--------------------------------------*/
  /* ← إعدادات الـ Skeleton → */
  /*--------------------------------------*/
  /* خلفية السكيلتون (تعتمد على bgcards) */
  --skeleton-bg: #434C5E !important;
  /* Nord2 */
  /* placeholder متنقل في السكيلتون (تعتمد على bg-dark-2) */
  --skeleton-placeholder-bg: #434C5E !important;
  /* Nord2 */
  /* لون الأيقونة في السكيلتون */
  --skeleton-icon-color: #4C566A !important;
  /* Nord3 */
  /* shimmer الأوّل في السكيلتون */
  --skeleton-shimmer-1: #4C566A !important;
  /* Nord3 */
  /* shimmer الثاني في السكيلتون */
  --skeleton-shimmer-2: #434C5E !important;
  /* Nord2 */

  /*--------------------------------------*/
  /* ← تدرّج عام (Gradiants) → */
  /*--------------------------------------*/
  --grideints:
    linear-gradient(to bottom, #434C5E, #2E3440);
  /* Nord2 إلى Nord0 */

  /*--------------------------------------*/
  /* ← ألوان إضافية أخرى → */
  /*--------------------------------------*/
  /* sk-bg-re (hsl(224 7% 12%)) نستخدم Nord1 تقريبًا */
  --sk-bg-re: #3B4252;
  /* Nord1 */
  /* sk-zbb: تدرّج شفاف-نورد1-نورد0-شفاف */
  --sk-zbb:
    linear-gradient(90deg,
      transparent 0%,
      #3B4252 20%,
      /* Nord1 */
      #2E3440 40%,
      /* Nord0 */
      transparent 100%);
  /* xg (كان #111111)، نستخدم Nord2 */
  --xg: #434C5E;
  /* Nord2 */
}

.gruvbox-theme {

  /*--------------------------------------*/
  /* ← Background Colors (Gruvbox) → */
  /*--------------------------------------*/
  /* background (darkest) */
  --color-1: #1d2021 !important;
  /* gruvbox dark0_hard */
  /* background color */
  --bgc: #282828 !important;
  /* gruvbox dark0 */
  /* sections background colors */
  --bgcards: #3c3836 !important;
  /* gruvbox dark1 */
  /* popover */
  --color-3: #504945 !important;
  /* gruvbox dark2 */
  --sisd: #3c3836 !important;
  /* same as dark1 */

  /*--------------------------------------*/
  /* ← Border & Button Colors (Gruvbox) → */
  /*--------------------------------------*/
  /* borders and secondary buttons */
  --secb: #504945 !important;
  /* gruvbox dark2 */
  /* Main Color Buttons */
  --color-7: #EF5350 !important;
  /* gruvbox bright_red */
  /* Skeleton placeholder */
  --skelton-plac: #665c54 !important;
  /* gruvbox dark3 */
  /* Skeleton background */
  --skelton-bg: #504945 !important;
  /* gruvbox dark2 */

  /*--------------------------------------*/
  /* ← Text Colors (Gruvbox) → */
  /*--------------------------------------*/
  /* paragraph text */
  --pt: #ebdbb2 !important;
  /* gruvbox light1 */
  /* icons color */
  --icol: #d5c4a1 !important;
  /* gruvbox light2 */
  /* accent */
  --color-6: #83a598 !important;
  /* gruvbox bright_blue */
  /* accent foreground */
  --color-10: #458588 !important;
  /* gruvbox neutral_blue */
  /* foreground text */
  --color-11: #ebdbb2 !important;
  /* gruvbox light1 */
  /*--------------------------------------*/
  /* ← Dark Shades (Gruvbox) → */
  /*--------------------------------------*/
  --bg-deep-black: #1d2021 !important;
  /* gruvbox dark0_hard */
  --bg-black: #282828 !important;
  /* gruvbox dark0 */
  --bg-dark-1: #3c3836 !important;
  /* gruvbox dark1 */
  --bg-dark-2: #504945 !important;
  /* gruvbox dark2 */
  --bg-dark-3: #665c54 !important;
  /* gruvbox dark3 */
  --bg-dark-4: #7c6f64 !important;
  /* gruvbox dark4 */
  --bg-dark-5: #32302f !important;
  /* gruvbox dark0_soft */
  --bg-dark-6: #3c3836 !important;
  /* gruvbox dark1 */
  --bg-dark-7: #504945 !important;
  /* gruvbox dark2 */
  --bg-dark-8: #665c54 !important;
  /* gruvbox dark3 */
  --bg-dark-9: #7c6f64 !important;
  /* gruvbox dark4 */
  --bg-dark-10: #32302f !important;
  /* gruvbox dark0_soft */
  --bg-dark-11: #3c3836 !important;
  /* gruvbox dark1 */
  --bg-dark-12: #504945 !important;
  /* gruvbox dark2 */
  --bg-dark-13: #665c54 !important;
  /* gruvbox dark3 */
  --bg-dark-14: #bdae93 !important;
  /* gruvbox light3 (يوازي درجة رماديةً متوسطة) */
  --bg-dark-15: #076678 !important;
  /* gruvbox faded_blue (لإضفاء لمسة زرقاء داكنة) */

  /*--------------------------------------*/
  /* ← Gray & Neutral (Gruvbox) → */
  /*--------------------------------------*/
  --gray-light: #bdae93 !important;
  /* gruvbox light3 */
  --gray-medium: #d5c4a1 !important;
  /* gruvbox light2 */
  --gray-mid-dark: #665c54 !important;
  /* gruvbox dark3 */
  --gray-accent: #458588 !important;
  /* gruvbox neutral_blue */
  --my-love: #282828 !important;
  /* gruvbox dark0 */

  /*--------------------------------------*/
  /* ← Overlays (Transparent Effects) → */
  /*--------------------------------------*/
  /* light overlays using gruvbox light1 (#ebdbb2) */
  --overlay-light-5: rgba(235, 219, 178, 0.05) !important;
  /* light1 at 5% */
  --overlay-light-66: rgba(235, 219, 178, 0.04) !important;
  /* light1 at 4% */
  --overlay-light-3: rgba(235, 219, 178, 0.03) !important;
  /* light1 at 3% */
  --overlay-light-1: rgba(235, 219, 178, 0.01) !important;
  /* light1 at 1% */
  --overlay-light-10: rgba(235, 219, 178, 0.10) !important;
  /* light1 at 10% */

  /* dark overlays using gruvbox dark0 (#282828) */
  --overlay-dark-8: rgba(40, 40, 40, 0.08) !important;
  /* dark0 at 8% */
  --overlay-dark-0: rgba(40, 40, 40, 0.00) !important;
  /* dark0 at 0% */

  /* blue overlay using gruvbox bright_blue (#83a598) at 0% */
  --overlay-blue-0: rgba(131, 165, 152, 0.00) !important;
  /* bright_blue at 0% */

  /* dark overlay 82% */
  --overlay-dark-82: rgba(40, 40, 40, 0.82) !important;
  /* dark0 at 82% */

  /*--------------------------------------*/
  /* ← Gradients & Background Effects → */
  /*--------------------------------------*/
  /* تدرّج قطري خفيف باستخدام light1 (#ebdbb2) */
  --gradient-diagonal-subtle:
    linear-gradient(45deg,
      transparent,
      rgba(235, 219, 178, 0.03),
      /* light1 at 3% */
      transparent) !important;

  /* تدرّج مقسوم داكن */
  --gradient-split-dark:
    linear-gradient(45deg,
      #504945 50%,
      /* dark2 */
      #32302f 50%
      /* dark0_soft */
    ) !important;

  /* مشابه لقيمة #222222 */
  --zbr: #282828 !important;
  /* gruvbox dark0 */

  /* تدرّج شفاف-أسود */
  --gradient-transparent-black:
    linear-gradient(to bottom,
      rgba(40, 40, 40, 0.82) 25%,
      /* dark0 at 82% */
      rgba(40, 40, 40, 0.00) 100%
      /* dark0 at 0% */
    ) !important;

  /*--------------------------------------*/
  /* ← Additional Section Colors → */
  /*--------------------------------------*/
  /* قسم خلفية عام */
  --bg-section: #3c3836 !important;
  /* gruvbox dark1 */
  /* "nice-try-didy" كان #d1d1d1 */
  --nice-try-didy: #d5c4a1 !important;
  /* gruvbox light2 */

  /*--------------------------------------*/
  /* ← Borders & Shadows (Outline) → */
  /*--------------------------------------*/
  /* حدود فاتحة شفافة (light1 at 10%) */
  --border-light-outline:
    0 0 0 2px rgba(235, 219, 178, 0.10) !important;
  /* light1 at 10% */

  /* أبيض في السياق العادي استخدم light0 (#fbf1c7) */
  --white: #fbf1c7 !important;
  /* gruvbox light0 */

  /*--------------------------------------*/
  /* ← Skeleton (الشكل العظمي) → */
  /*--------------------------------------*/
  /* خلفية السكيلتون (تساوي bgcards) */
  --skeleton-bg: #3c3836 !important;
  /* gruvbox dark1 */

  /* placeholder السكيلتون (تساوي bg-dark-2 #504945) */
  --skeleton-placeholder-bg: #504945 !important;
  /* gruvbox dark2 */

  /* لون أيقونة السكيلتون */
  --skeleton-icon-color: #665c54 !important;
  /* gruvbox dark3 */

  /* shimmer الأوّل */
  --skeleton-shimmer-1: #7c6f64 !important;
  /* gruvbox dark4 */

  /* shimmer الثاني */
  --skeleton-shimmer-2: #3c3836 !important;
  /* gruvbox dark1 */

  /*--------------------------------------*/
  /* ← General Gradient → */
  /*--------------------------------------*/
  --grideints: linear-gradient(to bottom, #504945, #1d2021) !important;

  /*--------------------------------------*/
  /* ← Other Utility Colors → */
  /*--------------------------------------*/
  /* sk-bg-re (hsl(224 7% 12%)) تقريبًا dark1 */
  --sk-bg-re: #3c3836 !important;
  /* gruvbox dark1 */

  /* sk-zbb: تدرّج شفاف-غروفبوكس dark1- dark0- شفاف */
  --sk-zbb:
    linear-gradient(90deg,
      transparent 0%,
      #3c3836 20%,
      /* dark1 */
      #282828 40%,
      /* dark0 */
      transparent 100%) !important;

  /* xg (كان #111111) استخدم dark0 */
  --xg: #282828 !important;
  /* gruvbox dark0 */
}

.monokai {
  /*--------------------------------------*/
  /* ← Background Colors (Monokai) → */
  /*--------------------------------------*/
  /* background (darkest) */
  --color-1: #272822 !important;
  /* Monokai Dark0, the absolute darkest background */
  /* background color */
  --bgc: #3e3d32 !important;
  /* Monokai Dark1, a step lighter than darkest */
  /* sections background colors */
  --bgcards: #49483e !important;
  /* Monokai Dark2 */
  /* popover */
  --color-3: #75715e !important;
  /* Monokai Dark3 (often used for comments) */
  --sisd: #49483e !important;
  /* same as sections background (Dark2) */

  /*--------------------------------------*/
  /* ← Border & Button Colors (Monokai) → */
  /*--------------------------------------*/
  /* borders and secondary buttons */
  --secb: #49483e !important;
  /* Monokai Dark2 */
  /* Main Color Buttons (accent) */
  --color-7: #f92672 !important;
  /* Monokai Pink (bright red/pink accent) */
  /* Skeleton placeholder */
  --skelton-plac: #3e3d32 !important;
  /* Monokai Dark1 */
  /* Skeleton background */
  --skelton-bg: #272822 !important;
  /* Monokai Dark0 */

  /*--------------------------------------*/
  /* ← Text Colors (Monokai) → */
  /*--------------------------------------*/
  /* paragraph text */
  --pt: #75715e !important;
  /* Monokai Dark3 (used for comments/secondary text) */
  /* icons color */
  --icol: #75715e !important;
  /* same as Dark3 for "muted" icons */
  /* accent */
  --color-6: #66d9ef !important;
  /* Monokai Aqua (bright cyan accent) */
  /* accent foreground */
  --color-10: #a6e22e !important;
  /* Monokai Green (another accent tone) */
  /* foreground text */
  --color-11: #f8f8f2 !important;
  /* Monokai Light (default text) */

  /*--------------------------------------*/
  /* ← Deep/Darker Shades (Monokai) → */
  /*--------------------------------------*/
  --bg-deep-black: #272822 !important;
  /* Dark0 */
  --bg-black: #49483e !important;
  /* Dark0 */
  --bg-dark-1: #272822 !important;
  /* Dark0 */
  --bg-dark-2: #3e3d32 !important;
  /* Dark1 */
  --bg-dark-3: #49483e !important;
  /* Dark2 */
  --bg-dark-4: #75715e !important;
  /* Dark3 */
  --bg-dark-5: #272822 !important;
  /* Dark0 (repeat to keep a "very dark" option) */
  --bg-dark-6: #3e3d32 !important;
  /* Dark1 */
  --bg-dark-7: #49483e !important;
  /* Dark2 */
  --bg-dark-8: #75715e !important;
  /* Dark3 */
  --bg-dark-9: #272822 !important;
  /* Dark0 */
  --bg-dark-10: #3e3d32 !important;
  /* Dark1 */
  --bg-dark-11: #49483e !important;
  /* Dark2 */
  --bg-dark-12: #75715e !important;
  /* Dark3 */
  --bg-dark-13: #272822 !important;
  /* Dark0 */
  --bg-dark-14: #3e3d32 !important;
  /* Dark1 */
  --bg-dark-15: #49483e !important;
  /* Dark2 */

  /*--------------------------------------*/
  /* ← Gray & Neutral (Monokai) → */
  /*--------------------------------------*/
  --gray-light: #f8f8f2 !important;
  /* Monokai Light (almost white) */
  --gray-medium: #94969c !important;
  /* Monokai Dark3 (medium-gray/comment) */
  --gray-mid-dark: #49483e !important;
  /* Monokai Dark2 */
  --gray-accent: #a6e22e !important;
  /* Monokai Green (used here as "neutral accent") */
  --my-love: #272822 !important;
  /* Monokai Dark0 */

  /*--------------------------------------*/
  /* ← Overlays (Transparent Effects) → */
  /*--------------------------------------*/
  /* light overlays (using Monokai Light #f8f8f2) */
  --overlay-light-5: rgba(248, 248, 242, 0.05) !important;
  /* Light at 5% */
  --overlay-light-66: rgba(248, 248, 242, 0.04) !important;
  /* Light at 4% */
  --overlay-light-3: rgba(248, 248, 242, 0.03) !important;
  /* Light at 3% */
  --overlay-light-1: rgba(248, 248, 242, 0.01) !important;
  /* Light at 1% */
  --overlay-light-10: rgba(248, 248, 242, 0.10) !important;
  /* Light at 10% */

  /* dark overlays (using Monokai Dark0 #272822) */
  --overlay-dark-8: rgba(39, 40, 34, 0.08) !important;
  /* Dark0 at 8% */
  --overlay-dark-0: rgba(39, 40, 34, 0.00) !important;
  /* Dark0 at 0% */

  /* blue overlay (using Monokai Aqua #66d9ef at 0%) */
  --overlay-blue-0: rgba(102, 217, 239, 0.00) !important;
  /* Aqua at 0% */

  /* dark overlay 82% (Dark0 at 82%) */
  --overlay-dark-82: rgba(39, 40, 34, 0.82) !important;
  /* Dark0 at 82% */

  /*--------------------------------------*/
  /* ← Gradients & Background Effects → */
  /*--------------------------------------*/
  /* تدرّج قطري خفيف (subtle diagonal) باستخدام Monokai Light at 3% */
  --gradient-diagonal-subtle:
    linear-gradient(45deg,
      transparent,
      rgba(248, 248, 242, 0.03),
      transparent) !important;

  /* تدرّج مقسوم داكن (split dark): Dark2 و Dark5 */
  --gradient-split-dark:
    linear-gradient(45deg,
      var(--bg-dark-2) 50%,
      /* #3e3d32 */
      var(--bg-dark-5) 50%
      /* #272822 */
    ) !important;

  /* zbr (كان #222222): نستخدم Dark0 تقريبًا */
  --zbr: #272822 !important;
  /* Monokai Dark0 */

  /* تدرّج شفاف-أسود: Dark0 بدرجة 82% إلى شفاف */
  --gradient-transparent-black:
    linear-gradient(to bottom,
      rgba(39, 40, 34, 0.82) 25%,
      /* Dark0 at 82% */
      rgba(39, 40, 34, 0.00) 100%) !important;

  /*--------------------------------------*/
  /* ← Section Background & Extras → */
  /*--------------------------------------*/
  /* لون قسم عام (bg-section) */
  --bg-section: #49483e !important;
  /* Monokai Dark2 */
  /* "nice-try-didy" كان #d1d1d1: نستخدم Monokai Dark3 (#75715e) كبديل متوسط */
  --nice-try-didy: #75715e !important;
  /* Monokai Dark3 */

  /*--------------------------------------*/
  /* ← Borders & Shadows (Outline) → */
  /*--------------------------------------*/
  /* حدود فاتحة شفافة (Light at 10%) */
  --border-light-outline:
    0 0 0 2px rgba(248, 248, 242, 0.10) !important;
  /* Monokai Light at 10% */

  /* الأبيض في السياق العادي: Monokai Light */
  --white: #f8f8f2 !important;
  /* Monokai Light */

  /*--------------------------------------*/
  /* ← Skeleton Settings → */
  /*--------------------------------------*/
  /* خلفية السكيلتون (مطابقة bgcards) */
  --skeleton-bg: #49483e !important;
  /* Monokai Dark2 */
  /* placeholder السكيلتون (مطابقة bg-dark-2) */
  --skeleton-placeholder-bg: #3e3d32 !important;
  /* Monokai Dark1 */
  /* لون أيقونة السكيلتون */
  --skeleton-icon-color: #49483e !important;
  /* Monokai Dark2 */
  /* shimmer الأوّل */
  --skeleton-shimmer-1: #75715e !important;
  /* Monokai Dark3 */
  /* shimmer الثاني */
  --skeleton-shimmer-2: #3e3d32 !important;
  /* Monokai Dark1 */

  /*--------------------------------------*/
  /* ← General Gradient → */
  /*--------------------------------------*/
  --grideints:
    linear-gradient(to bottom,
      #3e3d32,
      /* Monokai Dark1 */
      #272822
      /* Monokai Dark0 */
    ) !important;

  /*--------------------------------------*/
  /* ← Additional Utility Colors → */
  /*--------------------------------------*/
  /* sk-bg-re (كان hsl(224 7% 12%)): نستخدم Monokai Dark1 */
  --sk-bg-re: #3e3d32 !important;
  /* Monokai Dark1 */

  /* sk-zbb: تدرّج شفاف-Monokai Dark1- Dark0- شفاف */
  --sk-zbb:
    linear-gradient(90deg,
      transparent 0%,
      #3e3d32 20%,
      /* Dark1 */
      #272822 40%,
      /* Dark0 */
      transparent 100%) !important;

  /* xg (كان #111111): نستخدم Monokai Dark2 */
  --xg: #49483e !important;
  /* Monokai Dark2 */
}


body,
html {

  color: var(--color-11);
  transition: background-color 0.3s ease, color 0.3s ease;
  scrollbar-color: var(--zbr) #ffffff00;
  font-family: "yekan-bakh", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

#manga-discussion>h4,
.logo:after {
  display: none;
}

h2 {
  font-size: 1.65rem;
  display: flex;
  align-items: center;
  margin: 0;
  color: rgb(255 255 255 / 0.8);
}

p {
  margin: 0 !important;
}

.hidden {
  display: none !important;
}

.overflow-hidden {
  overflow: hidden;
}

#recently-up-ajax .unit .poster>div,
.h-full {
  height: 100%;
}

#continue-reading .unit {
  width: 14.36%;
}

#ch-images {
  width: 697px;
  border-radius: 16px;
}

#ch-images img {
  width: 100%;
}

#change-width span,
#nav-menu,
#nav-menu>ul>li>ul,
#nav-search,
#nav-search .search-inner form input,
.dir-ltr,
.nav-user .u-menu .user-ul,
.sub-panel .head form .form-group input,
footer .abs-footer .wrapper span:first-of-type {
  direction: rtl;
}

.tab-list {
  display: flex;
  gap: 4px;
}

.tab-list .tab {
  margin: 0 !important;
  background: var(--bg-black);
  padding: 4px 8px;
  border-radius: 8px;
}

.tab-list .tab.active {
  background: var(--bg-dark-12);
  color: #afafaf;
}

.justify-center {
  display: flex;
  justify-content: center !important;
}

#ctrl-menu {
  background: var(--bg-dark-1);
}

#ctrl-menu .ts-name div p,
form {
  margin-bottom: 0;
}

.pb-7rm {
  padding-bottom: 7rem;
}

p.text-muted {
  margin-bottom: 10px !important;
}

.max-md {
  max-width: 700px;
}

.text-sm {
  font-size: 0.875rem;
}

.px-6 {
  padding-right: 1.5rem;
  padding-left: 1.5rem;
}

.pb-5 {
  padding-bottom: 1.25rem;
}

.first\:pt-4:first-child {
  padding-top: 1rem;
}

.text-danger {
  color: #dc3545;
}

.font-bold {
  font-weight: 700;
}

.list-disc {
  list-style-type: disc;
}

.ml-6 {
  margin-right: 1.5rem;
}

body>span.bg {
  background: none !important;
}

#nav-search .search-inner .x-suggestion {
  display: none;
  top: 100%;
  width: 100%;
  position: absolute;
  background: var(--bg-dark-1);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
  overflow: hidden;
  padding: 1rem 0 0;
  margin-top: -1rem;
  z-index: 1;
  border-radius: 0 0 0.5rem 0.5rem;
  border: 1px solid var(--bg-dark-15);
}

#nav-search .search-inner .x-suggestion>div:last-child {
  padding: 1rem;
}

#nav-search .search-inner form>button>span {
  margin-right: 0.2rem;
}

button.btn-primary2 {
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  height: 1.85rem !important;
  border-radius: 50rem !important;
  margin-right: 0.3rem !important;
  background-color: #f15062 !important;
  border-color: #f15062 !important;
}

button.btn-primary2:hover {
  background-color: #dc3545 !important;
  border-color: #dc3545 !important;
}

main {
  background: none;
}

.manga-detail .main-inner .sidebar .rating-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.manga-detail .main-inner .sidebar .rating-box .author-info {
  max-width: calc(100% - 5rem);
  overflow: hidden;
}

.manga-detail .main-inner .sidebar .rating-box .author-name {
  white-space: nowrap;
}

.manga-detail .main-inner .sidebar .rating-box .author-avatar img {
  border-radius: 10%;
}

.manga-detail .hposter {
  border-radius: 16px 16px 0 0;
}

#ctrl-menu .ts-name {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

#ctrl-menu .ts-name div b {
  font-size: 1.2rem;
  color: #8bbadd;
}

#ctrl-menu .ts-name i {
  font-size: 1.4rem;
  transition: transform 0.7s;
}

#ctrl-menu .ts-name:hover i {
  transform: rotate(-360deg) scale(1.3);
}

#page-wrapper-x>div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-user .u-notify .dropdown-menu {
  width: 300px;
}

.dropdown-menu {
  --menu-bg: var(--bg-black);
  --item-hover-bg: rgba(255, 255, 255, 0.05);
  --transition-timing: cubic-bezier(0.34, 1.56, 0.64, 1);

  transform-origin: top center;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: auto !important;
  margin-top: 10px;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px) scale(0.95) !important;
  background: var(--menu-bg);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 8px;
  z-index: 1000;
  transition: all 0.3s var(--transition-timing);
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 20px;
  width: 8px;
  height: 8px;
  background: var(--menu-bg);
  transform: rotate(-45deg);
  border-radius: 2px;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1) !important;
}

.dropdown-menu .dropdown-item {
  padding: 10px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.dropdown-menu .dropdown-item:hover {
  background: var(--item-hover-bg);
  transform: translateX(-4px);
}

.dropdown-menu .dropdown-item::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(-45deg,
      transparent,
      rgba(255, 255, 255, 0.03),
      transparent);
  transform: translateX(100%);
  transition: transform 0.6s ease;
}

.dropdown-menu .dropdown-item:hover::before {
  transform: translateX(-100%);
}

/* Optional: Add hover states for menu items */
.dropdown-menu .dropdown-item:active {
  transform: scale(0.98);
}

/* Optional: Add focus styles */
.dropdown-menu .dropdown-item:focus {
  outline: none;
  box-shadow: var(--border-light-outline);
}

.inner {
  transition: transform 0.3s;
}

.inner:hover {
  scale: 1.05;
  transition: scale 0.3s;
}

.original.card-lg .unit {
  width: 14.25%;
}

.original.card-lg .unit .inner {
  transition: scale 0.3s;
}

.original.card-lg .unit .inner:hover {
  scale: 1.05;
  transition: scale 0.3s;
}

.original.card-lg .unit .inner .info>div {
  color: #d1d1d1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  font-size: 1rem;
  line-height: 1.3;
}

.user-panel .manga-bottom {
  margin-top: 0;
}

.user-panel .manga-bottom .content .m-list .vol-list,
.user-panel .manga-bottom .content .m-list ul {
  max-height: none;
}

.user-panel .manga-bottom .content .m-list,
.user-panel .manga-bottom .content .m-list .vol-list {
  background: 100% 0;
}

.user-panel .manga-bottom .content .m-list .vol-list {
  padding: 0;
}

.user-panel .main-inner {
  gap: 24px;
}

.user-panel .main-inner .manga-bottom .content {
  margin-right: 0;
}

.thumb-prev {
  display: flex;
  justify-content: center;
}

.thumb-prev img {
  width: 280px;
  height: 400px;
  object-fit: cover;
}

@media (max-width: 1199.98px) {
  #filters>div:last-child>div:last-child {
    width: 50%;
  }

  #filters>div:last-child>div {
    width: 25%;
  }
}

@media only screen and (min-width: 800px) {
  .bhs-2 span {
    display: inline !important;
  }
}

@media only screen and (max-width: 800px) {

  .bhs,
  .bhs-2 {
    height: 40px !important;
  }

  .bhs-2 {
    font-size: 1.3rem !important;
  }

  .manga-detail .main-inner .content .actions .btn.bhs-2 i {
    margin-right: 0 !important;
  }
}

.form-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

a.dropdown-item.disabled {
  opacity: 0.3;
  cursor: not-allowed !important;
}

.up-chts .unit .inner .info>p {
  color: #c6cacf;
}

.up-chts .unit .inner .info>.type {
  color: #3c8bc6;
}

.original.card-lg .unit.private .inner {
  background: #9f28284d;
  border: 1px solid #b62c2c45;
}

.swiper-inner {
  position: relative;
  width: 100%;
  height: 464px;
  /* Full viewport height */
  overflow: hidden;
}

/*Rating*/
.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stars-display {
  display: inline-flex;
  gap: 2px;
  font-size: 1.7rem;
}

.stars-display i {
  color: #ffd700 !important;
  cursor: pointer;
  transition: transform 0.2s;
}

.stars-display i:hover {
  transform: scale(1.1);
}

.vote-count {
  color: #666;
  font-size: 0.9em;
  margin-right: 5px;
}

/*Banner*/
.banner-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  /* Full height of parent */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Rest of the CSS remains the same */
.banner-wrapper::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 70%;
  background: linear-gradient(to top,
      rgb(12 12 12 / 82%) 25%,
      rgba(0, 0, 0, 0) 100%);
}

.status-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #4caf50;
  /* Green color */
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

.flag-icon {
  width: 33px;
  height: 25px;
  display: block;
}

#top-trending .swiper .swiper-wrapper .swiper-slide .swiper-inner .info .above>a {
  margin-top: 4px;
  font-size: 1.3rem;
  z-index: 5;
  font-weight: 600;
  position: relative;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  margin-bottom: 4px;
}

#top-trending .swiper .swiper-wrapper .swiper-slide .swiper-inner .info {
  position: absolute;
  bottom: 0;
}

#top-trending .swiper .swiper-wrapper .swiper-slide .swiper-inner .info .below>p {
  margin: 0.8rem 0 !important;
}

.dropdown-menu.dropdown-menu-right.user-ul.show {
  will-change: transform;
}

.manga-detail .main-inner .content .info>h6 {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.manga-detail .main-inner .content .info>h6::-webkit-scrollbar {
  display: none;
}

.container .alert {
  margin-bottom: 2rem;
}

.card-md .unit a>span,
.container.mt-5.d-flex.flex-column.align-items-center.max-md h1,
.home-swiper .swiper .swiper-wrapper .swiper-slide>a>span,
.manga-detail .main-inner .content .info>h1,
.original.card-lg .unit .inner .info>a,
.original.card-lg .unit .inner .info>div,
footer,
header {
  direction: rtl;
}

.wrapper header {
  width: 100%;
}

#addMangaForm,
#ctrl-menu .ts-name div,
#nav-menu>ul>li>ul,
#nav-search .search-inner form input,
#profile-form,
#responseMessage,
#synopsis.modal,
#top-trending .swiper .swiper-wrapper .swiper-slide .swiper-inner .info,
.container.mt-5.d-flex.flex-column.align-items-center.max-md,
.manga-detail .main-inner .content .info,
.manga-detail .main-inner .sidebar,
.modal-content,
.nav-user .u-menu .user-ul,
.original.card-lg .unit .inner .info>a,
.original.card-lg .unit .inner .info>div,
.original.card-lg.reading,
.original.card-lg.reading .unit .inner .info,
.original.card-sm .unit .info,
.sub-panel .head form .form-group input,
.up-chts .original.card-lg,
.user-nav li a i,
textarea.form-control {
  text-align: right;
}

.grx div {
  background: var(--bg-dark-4);
  padding: 6px 8px;
  color: var(--gray-medium);
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}

.grx div:hover {
  background: #2c2c2c;
  color: var(--gray-light);
}

span.grx {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #e4e4e7;
  border-radius: 8px;
  outline: none;
  padding: 0;
  margin: 8px 0;
  cursor: pointer;
  position: relative;
  background-image: linear-gradient(#f4c60f, #f4c60f);
  background-size: var(--range-progress, 50%) 100%;
  background-repeat: no-repeat;
}

/* Webkit (Chrome, Safari, Edge) */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #f4c60f;
  border-radius: 50%;
  border: 2px solid #ffffff;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 8px rgba(0, 111, 238, 0.2);
  margin-top: -7px;
  /* Centers the thumb on the track */
}

input[type="range"]::-webkit-slider-thumb:hover {
  background: #cba50a;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 111, 238, 0.3);
}

input[type="range"]::-webkit-slider-thumb:active {
  transform: scale(0.95);
  background: #af8e06;
}

/* Firefox */
input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: rgba(130, 50, 90, 0.9);
  border-radius: 50%;
  border: 2px solid #ffffff;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 8px rgba(0, 111, 238, 0.2);
}

input[type="range"]::-moz-range-thumb:hover {
  background: #cba50a;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 111, 238, 0.3);
}

input[type="range"]::-moz-range-thumb:active {
  transform: scale(0.95);
  background: rgba(130, 50, 90, 0.9);
}

/* Track styling */
input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  cursor: pointer;
  background: transparent;
  border-radius: 8px;
}

input[type="range"]::-moz-range-track {
  width: 100%;
  height: 6px;
  cursor: pointer;
  background: transparent;
  border-radius: 8px;
}

/* Focus state */
input[type="range"]:focus {
  outline: none;
}

input[type="range"]:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(0, 111, 238, 0.2);
}

input[type="range"]:focus::-moz-range-thumb {
  box-shadow: 0 0 0 3px rgba(0, 111, 238, 0.2);
}

.head a,
.cancel-button {
  background: transparent;
  padding: 6px 10px;
  border-radius: 8px;
  color: #5f5f5f;
  gap: 6px;
  display: flex;
  flex-direction: row;
  align-items: center;
  border: 1px solid var(--bg-dark-7);
}

.head a:hover,
.cancel-button:hover {
  background: var(--bg-dark-10);
  color: var(--white);
}

.manga-detail .detail-bg {
  display: none;
}

.sub-panel ul li a {
  justify-content: flex-end;
}

#filters>div:last-child>div.search:after,
.modal-dialog .modal-content .modal-close {
  left: 1rem;
}

#filters>div:last-child>div .dropdown .dropdown-menu li>input[type="checkbox"]+label:before,
#filters>div:last-child>div .dropdown .dropdown-menu li>input[type="radio"]+label:before {
  margin-left: 0.5rem;
  margin-right: 0.2rem;
}

#filters>div:last-child>div {
  width: 14.25%;
}

.user-panel .main-inner>.content {
  margin: 0 0 0 1.5rem;
}

.user-nav li a {
  padding: 0.7rem 1.4rem;
}

#nav-search .search-inner form {
  padding-right: 6px;
  padding-left: 0.4rem;
}

#nav-search .search-inner form i {
  margin-right: 0.25rem;
}

#top-trending .swiper .swiper-wrapper .swiper-slide .swiper-inner:hover .poster {
  transform: rotate(0) scale(1) translate(0, 0);
}

#top-trending .swiper .swiper-wrapper .swiper-slide .swiper-inner .info .below>div a+a,
.manga-detail .main-inner .content .actions .up-chapter-btn {
  margin-right: 0;
  margin-left: 0.6rem;
}

#top-trending .trending-button-prev {
  right: auto;
  left: 0;
  border-radius: 0 0.5rem 0.5rem 0;
}

#top-trending .trending-button-next {
  left: auto;
  right: 0;
  border-radius: 0.5rem 0 0 0.5rem;
}

#top-trending .trending-button-prev:after,
.fa-angle-left:before {
  content: "\f105";
}

#top-trending .trending-button-next:after,
.fa-angle-right:before {
  content: "\f104";
}

.fa-chevron-square-right:before,
.fa-square-chevron-right:before {
  content: "\f32a";
}

.fa-chevron-square-left:before,
.fa-square-chevron-left:before {
  content: "\f32b";
}

.tabs .s-pagi>div+div {
  margin-left: 0.5rem;
}

@media (max-width: 991.98px) {
  footer .abs-footer .wrapper {
    flex-direction: column;
  }
}

.hposter {
  width: 20%;
  height: 100%;
}

.manga-detail .main-inner .content .info {
  width: 80%;
}

@media (max-width: 767.98px) {
  .manga-detail .main-inner .content .info {
    padding-left: 0;
    text-align: center;
  }

  .manga-detail .main-inner .content .info>h1 {
    margin: 0.6rem 0;
  }
}

.manga-detail .main-inner .content .poster>div {
  overflow: hidden !important;
  border-radius: 0.3rem;
  display: flex;
  gap: 8px;
}

.manga-bottom .content .m-list .chapvol-tab>a,
.manga-detail .main-inner .content .info>p {
  letter-spacing: 1px;
}

.manga-detail .main-inner .content .actions .btn>i {
  margin-right: 0;
  margin-left: 0.35rem;
}

.manga-detail .main-inner .sidebar .meta>div {
  display: inline;
}

.manga-bottom .content .m-list ul li a span:first-child:before,
.sub-panel ul li a.active:before,
.sub-panel ul li a:hover:before {
  display: none;
}

.manga-bottom .content .m-list ul li a span i {
  margin-left: 0;
  font-weight: 900;
  transition: margin 0.3s, opacity 0.3s, font-size 0.3s;
  opacity: 0;
  font-size: 0;
}

.manga-bottom .content .m-list ul li a:hover span i {
  opacity: 1;
  margin-left: 0.5rem;
  font-size: 0.8rem;
}

.manga-bottom .content .m-list ul li a:hover {
  background: var(--bg-dark-6);
}

.manga-bottom .content .m-list ul li a:visited {
  background: var(--bg-deep-black);
}

.manga-bottom .content .m-list ul li a span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.manga-bottom .content .m-list .list-menu form {
  height: 100%;
}

.manga-bottom .content .m-list .list-menu form input {
  padding: 0.4rem 0.8rem 0.4rem 0 !important;
}

.manga-bottom .content .m-list .list-menu form input::placeholder {
  color: #474747;
  /* Replace with your desired color */
  opacity: 1;
  /* Ensures full opacity for the placeholder */
}

.form-control::placeholder {
  color: var(--gray-mid-dark) !important;
}

.original.card-sm .unit .poster {
  margin-left: 0.8rem;
}

.custom-file-label::after {
  left: auto;
  right: 0;
  content: "\0625\062e\062a\0631\0020\0645\0644\0641";
  border-radius: 0 0.5rem 0.5rem 0;
}

.form-control::placeholder {
  color: var(--gray-accent);
}

.custom-control-label::after,
.custom-control-label::before {
  right: auto;
  left: -1.5rem;
}

.control-name {
  margin-bottom: 5px;
}

i.rtl-icon.fa-light.fa-arrow-right.ml-1 {
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
}

@media (max-width: 1199.98px) {
  #filters>div:last-child>div {
    width: 25%;
  }

  #filters>div:last-child>div:last-child {
    width: 100%;
  }
}

.sub-panel .head {
  padding: 0.5rem 1rem 0.5rem 1.5rem;
}

.user-panel .card-md.vol-list.scroll-sm p {
  line-height: 1.8rem;
  text-align: center;
}

p.s-p {
  text-align: center;
  margin: 40px 0 15px !important;
  font-size: 15px;
}

#top-trending .swiper .swiper-wrapper .swiper-slide .swiper-inner .bookmark {
  right: 0;
}

footer .container {
  direction: ltr;
}

footer .inner nav {
  text-align: right;
}

footer nav ul {
  direction: rtl;
}

footer .wrap .inner div {
  text-align: right;
}

footer .wrap .inner div p {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
}

.home-swiper {
  max-width: 1444px;
  margin: 20px auto;
  padding: 0 15px;
}

#modal-close {
  text-align: right;
}

section#most-viewed {
  padding: 0;
}

/* Modal responsive fixes */
@media (max-width: 768px) {
  .modal-dialog {
    margin: 0.5rem;
    width: 95%;
    max-width: none;
  }

  .modal-content {
    width: 100%;
  }

  .modal-body {
    padding: 1rem;
  }

  /* Make range input more touch-friendly */
  input[type="range"] {
    height: 8px;
    /* Slightly thicker for mobile */
  }

  input[type="range"]::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
  }

  input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
  }
}

/* Control menu mobile fixes */
@media (max-width: 768px) {
  #ctrl-menu {
    width: 90%;
    left: -90%;
    font-size: 16px;
  }

  #ctrl-menu.active {
    left: 0;
  }

  #ctrl-menu .jb-btn {
    padding: 12px;
    font-size: 14px;
  }

  #ctrl-menu .jb-btn i {
    font-size: 16px;
  }

  #ctrl-menu nav button {
    padding: 10px;
    font-size: 14px;
  }

  #ctrl-menu .head {
    font-size: 16px;
    padding: 12px;
  }

  #ctrl-menu .ts-name {
    padding: 12px;
    font-size: 14px;
  }
}

/* General mobile improvements */
@media (max-width: 768px) {
  .btn {
    padding: 10px 15px;
  }

  .modal-title {
    font-size: 18px;
  }

  #currentWidth,
  #width-value {
    font-size: 14px;
  }

  .close {
    font-size: 24px;
    padding: 8px;
  }

  /* Ensure images don't overflow */
  #ch-images {
    max-width: 100% !important;
    width: 100% !important;
  }

  #ch-images img {
    max-width: 100%;
    height: auto;
  }
}

/* Additional touch-friendly improvements */
@media (max-width: 768px) {
  .modal-header {
    padding: 15px;
  }

  .gap-2 {
    gap: 1rem !important;
  }

  .mt-3 {
    margin-top: 1rem !important;
  }
}

/* Ensure images don't overflow on mobile */
@media (max-width: 768px) {
  #ch-images {
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    /* Prevent min-width issues */
  }

  #ch-images img {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
  }

  /* Override any inline styles */
  #page-wrapper-x .pages #ch-images[style] {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 768px) {

  [data-target="#widthModal"],
  #widthModal {
    display: none !important;
  }

  #ch-images {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Control menu positioning and mobile styles */
@media (max-width: 1199.98px) {
  body.read #ctrl-menu {
    position: fixed;
    top: 0;
    bottom: 0;
    left: -85%;
    /* Start off-screen */
    width: 85%;
    max-width: 400px;
    transition: left 0.3s ease;
    z-index: 1000;
    background: var(--bg-dark-1);
    padding: 1rem;
    overflow-y: auto;
  }

  body.read #ctrl-menu.active {
    left: 0;
  }

  /* Bigger elements for mobile */
  #ctrl-menu .head {
    font-size: 1.2rem;
    padding: 1rem;
  }

  #ctrl-menu .ts-name {
    padding: 1rem;
    font-size: 1.1rem;
  }

  #ctrl-menu nav button {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
  }

  #ctrl-menu .jb-btn {
    padding: 1rem;
    font-size: 1.1rem;
  }

  #ctrl-menu .jb-btn i {
    font-size: 1.2rem;
    margin-left: 1rem;
  }

  /* Bigger navigation buttons */
  .number-nav {
    padding: 1rem 0;
  }

  .number-nav a {
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
  }

  .number-nav a i {
    font-size: 1.2rem;
  }
}

/* Additional mobile improvements */
@media (max-width: 768px) {

  /* Chapter content spacing */
  body.read #ctrl-menu {
    left: -85%;
    /* Start off-screen */
    width: 85%;
    max-width: 85%;
  }

  body.read #ctrl-menu.active {
    left: 0;
    max-width: 85%;
  }

  .number-nav a {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    min-height: 50px;
  }

  .number-nav a i {
    font-size: 1.3rem;
  }

  /* Bigger text elements */
  .chapter-content {
    font-size: 1.1rem;
    line-height: 1.6;
  }
}

/* Login and Register Forms */
.login-form-container,
.register-form-container {
  max-width: 400px;
  margin: 40px auto;
  padding: 20px;
  background: var(--color-3);
  border-radius: 8px;
}

.login-form-container h1,
.register-form-container h1 {
  text-align: center;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
}

.form-group input {
  width: 100%;
  padding: 20px;
  border: 1px solid var(--color-8);
  border-radius: 4px;
  color: var(--color-11);
}

.form-group input::placeholder {
  color: var(--bg-dark-13);
}

.form-links {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
}

.alert {
  padding: 10px;
  margin-top: 15px;
  border-radius: 4px;
}

.alert-error {
  background: #dc3545;
  color: var(--white);
}

.slider-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #ffffffbd;
  font-size: 12px;
}

.slider-rating i {
  color: #f2ae40;
}

.slider-rating .vote-count {
  font-size: 0.9em;
  opacity: 0.8;
}

.poster-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.poster-image-wrapper .manga-flag {
  position: absolute;
  top: 4px;
  left: 32px;
  z-index: 2;
}

.poster-image-wrapper .flag-icon {
  width: 28px;
  height: auto;
  border-radius: 3px;
}

/* Shine Effect for Manga Covers */
.poster-image-wrapper.shine-effect {
  position: relative;
  overflow: hidden;
}

.poster-image-wrapper.shine-effect::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  display: block;
  width: 0;
  height: 100%;
  filter: blur(10px);
  background: linear-gradient(to left,
      rgba(255, 255, 255, 0) 30%,
      rgba(255, 255, 255, 0.3) 100%);
  transform: skewX(25deg);
  transition: width 0.8s;
}

.poster-image-wrapper.shine-effect:hover::before {
  width: 200%;
}

.rating-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
}

.rating-wrapper i {
  color: #ffd700;
  /* Gold color for the star */
}

.rating-wrapper span {
  font-size: 14px;
  color: #666;
}

span.ch-num {
  font-size: 14px;
  text-align: center;
  font-weight: 600;
  color: #8e8e8e;
}

span.ch-date {
  font-size: 12px;
  text-align: center;
  color: #606060;
  font-weight: 400;
}

.original.card-lg .unit .inner .info>ul>li {
  width: 50%;
}

.reading .manga-flag {
  left: 4px;
}

.manga-progress {
  margin-top: 8px;
  width: 100%;
}

.progress-text {
  font-size: 12px;
  color: #ccc;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
}

.progress-text .current {
  color: #4caf50;
  /* Highlight the current chapter */
}

.progress-bar {
  background: rgba(255, 255, 255, 0.1);
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.progress-fill {
  background: #01a051;
  height: 100%;
  position: absolute;
  right: 0;
  top: 0;
  border-radius: 2px;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.unit {
  position: relative;
}

.inner {
  position: relative;
  cursor: pointer;
}

.poster-image-wrapper img {
  height: 100%;
  width: 100%;
}

.manga-flag.\.most {
  left: 32px !important;
}

.head i.fa-solid {
  font-size: 26px;
}

i.fa-solid.fa-chevron-right {
  font-size: 14px;
}

i.fa-solid.fa-trash {
  font-size: 12px;
}

.fa-solid.fa-xs.fa-arrow-right {
  font-size: 14px;
}

.head-t {
  display: flex;
  gap: 8px;
}

.content li a {
  display: flex;
  flex-direction: column;
}

.info {
  padding: 10px;
}

.serie-info {
  width: 80%;
}

ul.content {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 4px 0 0 0;
  padding: 0;
}

a.c-title {
  color: #d1d1d1;
  background-color: transparent !important;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 1.05rem;
  line-height: 1.4;
  height: 3rem;
}

.swiper-container .inner .info {
  padding: 10px;
}

.horizontal-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding-bottom: 10px;
  /* For scroll bar space */
}

.scroll-content {
  width: 100%;
}

.horizontal-scroll .scroll-content {
  display: flex;
  padding: 0.5rem;
}

.horizontal-scroll::-webkit-scrollbar {
  height: 8px;
}

.horizontal-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.horizontal-scroll::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Ensure manga units don't shrink */
.horizontal-scroll .unit {
  flex: 0 0 auto;
  width: 200px;
  /* Adjust this value based on your design */
}

.last-read {
  font-size: 0.85em;
  color: #666 !important;
  margin: 4px 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.last-read i {
  font-size: 0.9em;
}

.title {
  color: #d1d1d1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 1.05rem;
  line-height: 1.4;
  height: 3rem;
  margin-bottom: 4px;
}

.genres {
  display: flex;
  justify-content: center;
  gap: 6px;
}

span.genre {
  padding: 4px 6px;
  background: var(--bg-dark-9);
  color: #878787;
  border-radius: 4px;
  width: 50%;
  text-align: center;
  font-size: 13px;
}

.slider-flag {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
}

.manga-flag {
  position: absolute;
  width: 28px;
  top: 6px;
  right: 6px;
  z-index: 2;
}

.manga-flag img {
  width: 25px;
  height: auto;
}

.poster {
  position: relative;
}

.description-content {
  max-height: 150px;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
}

.description-content.expanded {
  max-height: 500px;
  padding-bottom: 10px;
}

.view-all-btn {
  display: block;
  margin-top: 14px;
  padding-top: 6px;
  background: transparent;
  border-radius: 8px;
  border: none;
  color: #6b6b6b;
  font-size: 16px;
  width: 100%;
  border-top: 1px solid var(--bg-dark-11);
}

.view-all-btn:hover {
  background: var(--bg-dark-2);
  color: #979797;
  border-top: 1px solid var(--bg-dark-8);
}

.manga-stats {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 15px 0;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.m-icons {
  width: 63px;
  position: absolute;
  left: -15px;
  opacity: 0.1;
  bottom: -8px;
}

.stat-item {
  display: flex;
  width: 24%;
  background: var(--bg-dark-2);
  padding: 12px;
  border-radius: 8px;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.stat-item .m-icons {
  width: 63px;
  opacity: 0.1;
  transform: rotate(0deg);
  transition: all 0.3s ease;
  /* Add transition for non-hover state */
  filter: none;
}

.light-mode .stat-item .m-icons {
  filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(0deg);
  /* Invert colors for light mode */
}

.stat-item:hover {
  background: var(--bg-dark-8);
  transition: background 0.3s ease;
  /* Smooth background transition */
}

.stat-item:hover .m-icons {
  opacity: 0.5;
  width: 77px;
  transform: rotate(30deg);
  transition: all 0.3s ease;
}

.stat-item i {
  font-size: 1.35rem;
  color: #666;
}

.stat-details {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 14px;
  color: #737373;
}

.stat-value {
  font-weight: 500;
  font-size: 16px;
  color: #d1d1d1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

.hposter {
  position: relative;
  overflow: hidden;
}

.hcontent {
  display: flex;
  flex-direction: row;
  gap: 34px;
}

.cover-background {
  filter: blur(15px);
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 1;
  height: 70%;
  background-repeat: no-repeat;
  background-size: cover;
}

.main-cover {
  display: block;
  margin: 30px;
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
}

.covers {
  display: flex;
  justify-content: center;
}

.cover {
  border-radius: 12px;
  height: 100%;
  width: 100%;
}

.main-cover .manga-flag img {
  width: 33px;
}

.hposter .actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.actions p {
  font-weight: 600;
}

.alternative-title {
  color: #94969c;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  font-size: 1rem;
  line-height: 1.3;
}

.description {
  color: #94969c;
}

.bookmark-button {
  background: var(--bg-dark-2) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.inner .hposter {
  width: 100%;
  height: auto;
}

#top-trending .btn.bookmark-button {
  background: transparent !important;
  border: none;
  transition: font-size 0.3s;
  color: var(--white);
  text-shadow: 0 0 0.5rem rgb(134 134 134 / 90%);
  opacity: 0;
  transition: 0.33s ease;
}

#continue-reading {
  max-width: 1444px;
  margin: 0 auto;
  padding: 0 15px;
}

.recently-updated {
  max-width: 1444px;
  margin: 0 auto;
  padding: 0 15px;
}

.serie-title {
  font-size: 28px;
}

footer {
  padding: 60px 0 30px;
  color: var(--white);
}

.footer-top {
  width: 1444px;
  margin: 0 auto;
  padding: 48px;
  border-radius: 24px 24px 0 0;
  background: var(--bg-black);
}

.footer-brand {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand img {
  width: 108px;
}

.footer-brand .tagline {
  color: #575757;
  font-size: 15px;
}

.footer-links {
  display: flex;
  justify-content: right;
  gap: 12px;
  margin-top: 16px;
}

.footer-links a {
  color: #808080;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 1444px;
  margin: 0 auto;
  padding: 48px;
}

.copyright {
  color: #808080;
}

.copyright .subtitle {
  font-size: 0.9em;
  margin-top: 10px;
}

.social-links {
  display: flex;
  gap: 20px;
}

/* Social Media Icon Colors - Always Visible */
.social-links a {
  font-size: 1.5em;
  transition: color 0.3s;
}

.social-links a.twitter {
  color: #1da1f2;
  /* Twitter blue */
}

.social-links a.reddit {
  color: #ff4500;
  /* Reddit orange */
}

.social-links a.discord {
  color: #5865f2;
  /* Discord blue */
}

/* Optional hover effect to make icons slightly darker */
.social-links a:hover {
  opacity: 0.8;
}

/* Modal Clear History */
.modal-confirm {
  color: #636363;
}

.modal-confirm .modal-content {
  padding: 20px;
  border-radius: 5px;
  border: none;
}

.modal-confirm .modal-header {
  position: relative;
  text-align: center;
}

.modal-confirm .modal-title {
  text-align: center;
  font-size: 26px;
}

.modal-confirm .modal-footer {
  border: none;
  text-align: center;
  border-radius: 5px;
  font-size: 13px;
}

.modal-confirm .icon-box {
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ef5350;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-confirm .icon-box i {
  font-size: 16px;
}

/* Modal Clear History */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.modal.show {
  opacity: 1;
  display: block;
  z-index: 9999;
}

.modal-content {
  position: relative;
  background-color: var(--bg-dark-2);
  margin: 15vh auto;
  /* Changed from 10% to 15vh for better positioning */
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.3s ease-in-out;
  z-index: 1001;
  /* Added z-index to ensure it's above the backdrop */
}

.modal.show .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.close-modal {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: none;
  border: none;
  color: #666;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s ease;
}

.search-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.search-results {
  flex: 1;
  transition: height 0.3s ease-in-out;
  overflow: hidden;
}

.results-section {
  transition: height 0.3s ease-in-out;
  min-height: 0;
}

.results-section::-webkit-scrollbar {
  width: 8px;
}

.results-section::-webkit-scrollbar-track {
  background: transparent;
}

.results-section::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.results-section::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

.manga-grid {
  transition: opacity 0.2s ease-in-out;
}

.close-modal:hover {
  color: #333;
}

.search-inner {
  position: relative;
}

.search-inner form {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-dark-5);
  padding: 15px;
  border-radius: 8px 8px 0 0;
  border: 1px solid #2a2a2a;
}

.search-inner input[type="text"] {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 16px;
  padding: 8px;
  outline: none;
}

.search-inner input[type="text"]::placeholder {
  color: #666;
}

#search-results {
  display: flex;
  flex-direction: column;
  padding: 2px;
  gap: 8px;
}

.search-result-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  border-radius: 12px;
  gap: 12px;
  background: var(--bg-dark-5);
}

.search-result-card:hover {
  color: var(--white);
  background: #222222;
}

.search-result-card:focus {
  background: var(--bg-dark-12);
}

.thumbnail-wrapper img {
  width: 66px;
  height: auto;
  border-radius: 8px;
}

.view-all-results {
  background: transparent;
  padding: 6px 10px;
  border-radius: 8px;
  color: #5f5f5f;
  gap: 6px;
  display: flex;
  flex-direction: row;
  align-items: center;
  border: 1px solid var(--bg-dark-7);
}

.view-all-results:hover {
  background: var(--bg-dark-10);
  color: var(--white);
}

.command-bar {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.filter-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: #666;
  transition: color 0.2s ease;
  margin-right: 8px;
}

.filter-button i {
  font-size: 1.2em;
  margin-left: 4px;
}

.filter-button span {
  font-size: 0.9em;
}

.command-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
}

.search-inner .fa-magnifying-glass {
  color: #666;
  font-size: 16px;
}

.x-suggestion {
  margin-top: 20px;
  background: var(--bg-dark-5);
  border-radius: 8px;
  border: 1px solid #2a2a2a;
}

li.page-item.active {
  cursor: pointer;
}

.search-result-details {
  color: #9d9d9d;
}

i.fas.fa-star {
  color: #f2ae40;
}

.head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-result-title {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
}

.search-result-card.selected {
  background-color: rgba(0, 0, 0, 0.05);
  outline: 2px solid #007bff;
  animation: pulse 2s infinite;
}

.menu-item a>i {
  font-size: 18px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(14, 212, 64, 0.85);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
  }
}

.original.card-lg.reading {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

/* Access Page */
.access-page {
  background: var(--bg-black);
  border-radius: 24px;
  margin-top: 100px;
  display: flex;
  align-items: center;
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 500px;
}

.access-page-content {
  display: flex;
  width: 50%;
  padding: 24px;
  flex-direction: column;
}

.access-page-content-header {
  margin-bottom: 26px;
}

.sliding {
  position: absolute;
  overflow: hidden;
  width: 50%;
  min-height: 733px;
  left: 0;
  top: 0;
}

.infinite-scroll-component {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  overflow: hidden;
  display: flex;
  gap: 8px;
}

.infinite-scroll-content,
.infinite-scroll-content-rev {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.infinite-scroll-content {
  animation: scrollDown 20s linear infinite;
}

.infinite-scroll-content-rev {
  animation: scrollUp 20s linear infinite;
}

.serie-card {
  display: block;
  width: 160px;
  margin: 4px 0;
  border-radius: 8px;
}

@keyframes scrollDown {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-100%);
  }
}

@keyframes scrollUp {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(0);
  }
}

.sub-white {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bg-dark-12);
}

.login-text {
  margin-top: 16px;
  text-align: center;
}

.rotated {
  transform: rotate(-12deg);
}

/* Access Page */
.new-chapter {
  color: #ffc107 !important;
  background: #ffc1071a !important;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
  animation: chapter-pulse 2s infinite;
  gap: 3px;
}

@keyframes chapter-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
  }
}

.u-menu .nav-btn {
  border-radius: 30px;
}

.u-menu .nav-btn img {
  border-radius: 50%;
  width: 28px;
  height: 28px;
}

.head.mb-3 a {
  border: none;
}

.progress-wrap {
  position: fixed;
  left: 50px;
  bottom: 50px;
  height: 46px;
  width: 46px;
  cursor: pointer;
  display: block;
  border-radius: 50px;
  box-shadow: inset 0 0 0 2px rgba(252, 191, 58, 0.2);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  -webkit-transition: all 200ms linear;
  transition: all 200ms linear;
}

.progress-wrap.active-progress {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.progress-wrap::after {
  position: absolute;
  content: "↑";
  text-align: center;
  line-height: 46px;
  font-size: 24px;
  color: #dc3545;
  right: 0;
  top: 0;
  height: 46px;
  width: 46px;
  cursor: pointer;
  display: block;
  z-index: 1;
  -webkit-transition: all 200ms linear;
  transition: all 200ms linear;
}

.progress-wrap svg path {
  fill: none;
}

.progress-wrap svg.progress-circle path {
  stroke: #dc3545;
  stroke-width: 4;
  box-sizing: border-box;
  -webkit-transition: all 200ms linear;
  transition: all 200ms linear;
}

.original.card-lg .unit .inner .info>ul li a:visited {
  background: var(--xg);
}

.original.card-lg .unit .inner .info>ul li a:visited span {
  color: #5d5d5d;
}

.ad-container {
  background: #0e0e0e;
  text-align: center;
  border-radius: 8px;
  border: 1px solid var(--bg-dark-5);
  color: #5f5f5f;
  width: 755px;
  margin: 1rem auto;
  overflow-x: hidden;
}

.ad-container-home {
  background: #0e0e0e;
  text-align: center;
  border-radius: 8px;
  border: 1px solid var(--bg-dark-5);
  color: #5f5f5f;
  width: 1410px;
  margin: 1rem auto;
  overflow-x: hidden;
}

.ad-header {
  border-bottom: 1px solid var(--bg-dark-5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 0;
}

.ad-footer {
  border-top: 1px solid var(--bg-dark-5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
}

.ad-content {
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.top-ad {
  display: flex;
  gap: 8px;
}

body.read main .m-content .number-nav a,
.chapter-control .jb-btn {
  width: 33.33%;
  justify-content: center;
}

.chapter-control {
  margin: 1rem 0;
  max-width: 720px;
  width: 100%;
}

/*Socials*/
.flex-container {
  display: flex;
  gap: 1rem;
}

.container-socials {
  max-width: 1444px;
  width: 100%;
}

.comments-container {
  max-width: 1444px;
  width: 100%;
  background: var(--bg-dark-3);
  margin-top: 1rem;
  border-radius: 12px;
  padding: 32px;
}

.section-container {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--overlay-light-66);
  padding: 1rem;
  border-radius: 1rem;
  position: relative;
  width: 50%;
  align-items: center;
}

.section-content {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.indicator-container {
  width: fit-content;
  height: 100%;
}

.indicator {
  height: 46px;
  width: 0.5rem;
  border-radius: 0.5rem;
  background: rgb(66 61 61 / 20%);
}

.section-text .sec-title {
  color: var(--white);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1.3rem;

}

.section-text .subtitle {
  color: #808080;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

}

@media (max-width: 780px) {
  .section-text .subtitle {
    max-width: 150px;
  }

  .section-text .sec-title {
    max-width: 150px;
  }
}

.action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.5rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  color: var(--white);
  font-weight: 500;
}

.discord-button {
  background: #5865f2;
}

.discord-button:hover {
  background: rgba(88, 101, 242, 0.8);
  color: var(--white);
}

.sponsored-button {
  background: linear-gradient(-45deg, #5865f2, #5a47d7, #5865f2);
  background-size: 200% 200%;
  animation: gradient 3s ease infinite;
}

.sponsored-button:hover {
  background: linear-gradient(-45deg, #5865f2, #5a47d7, #5865f2);
  background-size: 200% 200%;
  animation: gradient 2s ease infinite;
  color: var(--white);
}

@keyframes gradient {
  0% {
    background-position: 100% 50%;
  }

  50% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

.sponsored-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background-color: #dc3545;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  color: #000;
}

.title-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
}

.ad-badge {
  background-color: #ffffff1a;
  backdrop-filter: blur(4px);
  padding: 0 4px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  color: #ffffffa1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #ffffff24;
}

.status-wrapper .ad-badge {
  margin-right: -4px;
}

.donation-section .background-image {
  height: 100%;
  width: auto;
  position: absolute;
  top: 0;
  right: 0;
  transform: scaleX(-1);
}

.kofi-button {
  background: #4299e1;
}

.kofi-button:hover {
  background: rgba(66, 153, 225, 0.8);
  color: var(--white) !important;
}

.icon-container .icon {
  width: 1.5rem;
}

/* Chapter List */
.nav-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0;
}

.nav-header {
  font-size: 1.2rem;
  text-align: center;
  margin: 1rem;
}

.chapter-navigation-bar {
  max-width: 720px;
  width: 100%;
}

.ch-settings {
  display: flex;
  gap: 1rem;
  max-width: 720px;
}

.chapter-list {
  border-radius: 8px;
  overflow-y: auto;
  background: var(--bg-deep-black);
  border: 1px solid var(--bg-black);
  height: 500px;
  width: 100%;
}

.chapter-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.chapter-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  padding: 8px;
}

.chapter-list li {
  padding: 0;
  margin: 0;
  width: 49%;
  text-align: center;
}

.chapter-list a {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  color: inherit;
  background: var(--bg-dark-1);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.chapter-list a:hover {
  background: var(--bg-dark-10);
  color: var(--white);
}

/* Move visited state before active to allow active to override */

.chapter-list a:visited {
  background: var(--bg-deep-black);
  color: #5d5d5d;
}

.chapter-list a:visited:hover {
  background: var(--bg-dark-10);
  color: var(--white);
}

/* Active state will now take precedence */
.chapter-list a[class="active"] {
  background: var(--bg-dark-5);
  color: white !important;
}

.jb-btn {
  width: 100%;
}

.chapter-buttons>button {
  width: 33.33%;
}

#number-go-left:disabled {
  background: transparent;
  color: #383838;
  pointer-events: none;
}

button.number-toggler,
button#number-go-right,
button#number-go-left,
.jb-btn {
  background: transparent;
  padding: 10px 0px;
  border-radius: 8px;
  font-size: 16px;
  color: #cacaca;
  gap: 6px;
  display: flex;
  flex-direction: row;
  align-items: center;
  border: 1px solid var(--bg-dark-7);
  justify-content: center;
}

button.number-toggler:hover,
button#number-go-right:hover,
button#number-go-left:hover,
.jb-btn:hover {
  background: var(--bg-dark-10);
  color: var(--white);
}

.chapter-search {
  padding: 10px;
}

.search-wrapper {
  position: relative;
}

i.fa-light.fa-magnifying-glass {
  position: absolute;
  right: 12px;
  color: #4c4c4c;
  top: 14px;
}

input#chapterSearch {
  width: 100%;
  padding: 8px 35px 8px 8px;
  border: 1px solid var(--bg-dark-9);
  border-radius: 8px;
  margin-bottom: 10px;
  background: var(--bg-dark-1);
  color: var(--white);
}

.site-header {
  position: static !important;
}

/*Loading Spinner*/
@keyframes ldld-default {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(-360deg);
  }
}

.reading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#view-all {
  position: relative;
  width: 100%;
  background: transparent;
  padding: 10px 0px;
  border-radius: 8px;
  font-size: 16px;
  color: #5f5f5f;
  gap: 6px;
  display: flex;
  flex-direction: row;
  align-items: center;
  border: 1px solid var(--bg-dark-7);
  justify-content: center;
}

#view-all:hover {
  background: var(--bg-dark-10);
  color: var(--white);
}

.content-main {

  width: 100%;
  margin: auto;
  max-width: 1440px;
}

/*Most Popular*/
.popular-series-section {
  border-radius: 8px;
  width: 24%;
  height: 100%;
}

.popular-series-wrapper {
  display: flex;
  gap: 12px;
  flex-direction: column;
}

button.filter-btn {
  color: #696969;
  font-size: 12px;
}

.time-filters {
  border: 1px solid var(--bg-dark-13);
  padding: 4px;
  border-radius: 8px;
  display: flex;
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--white);
  padding: 8px 12px;
  cursor: pointer;
}

.filter-btn.active {
  background: #fff;
  border-radius: 6px;
  color: var(--color-11);
}

.popular-series-item {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  opacity: 1;
  background: var(--bg-dark-3);
  border-radius: 12px;
}

.popular-series-item:hover {
  background: var(--bg-dark-4);
}

.series-title {
  color: #d1d1d1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 1rem;
}

.genre-tag {
  background: var(--bg-dark-4);
  padding: 3px 5px;
  color: var(--gray-medium);
  border-radius: 4px;
  font-size: 12px;
}

.series-genres {
  display: flex;
  gap: 4px;
}

.rank-number {
  font-size: 12px;
  color: var(--white);
  background: var(--bg-black);
  min-width: 20px;
  min-height: 20px;
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px 0 3px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

/* New combined styles */
.series-thumb-rank {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

/* Loading state animations */
.popular-series-list.loading {
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.popular-series-list.loading .popular-series-item {
  opacity: 0.5;
}

/* Prevent height collapse during loading */
.popular-series-list:empty {
  min-height: 200px;
  /* Same as .popular-series-list */
}

/* Smooth entrance for new items */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.popular-series-item {
  animation: fadeIn 0.3s ease forwards;
}

.series-thumbnail {
  width: 66px;
  height: 96px;
  overflow: hidden;
  border-radius: 4px;
  flex-shrink: 0;
}

.series-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.top-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}

.top-rating i {
  color: #f2ae40;
}

.top-rating span {
  margin-right: 4px;
  color: #666;
}

.far.fa-star {
  color: #f2ae40;
}

/*Scroll Dowwn Animation*/

.scroll-indicator {
  width: 150px;
  height: 150px;
  background: rgb(0 0 0 / 19%);
  border: 1px solid var(--bg-dark-6);
  border-radius: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.arrows {
  display: flex;
  flex-direction: column;
}

.arrow {
  width: 24px;
  height: 18px;
  color: white;
  animation: bounce 1s infinite;
}

.arrow:nth-child(1) {
  opacity: 0.3;
}

.arrow:nth-child(2) {
  opacity: 0.6;
  animation-delay: 150ms;
}

.arrow:nth-child(3) {
  opacity: 1;
  animation-delay: 300ms;
}

.scroll-text {
  color: white;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 500;
  margin-top: 8px !important;
}

.scroll-indicator-container {
  width: 720px;
  height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-black);
  opacity: 1;
  border-radius: 12px 12px 0 0;
  transition: opacity 0.3s ease;
  position: relative;
  z-index: 2;
}

.scroll-indicator-container.fade-out {
  opacity: 0;
  pointer-events: none;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

/*toast*/
.toast-container {
  position: fixed;
  bottom: 1rem;
  /* Changed from top to bottom */
  left: 1rem;
  z-index: 99999;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 400px;
  margin-bottom: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--bg-dark-9);
  /* Dark background */
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: all 0.2s ease-in-out;
  will-change: transform, opacity;
}

/* Success toast */
.toast-success {
  color: #4ade80;
  /* Light green text for success */
}

/* Error toast */
.toast-error {
  color: #f87171;
  /* Light red text for error */
}

/* Removed/Neutral toast */
.toast-removed {
  color: #a1a1aa;
  /* Light grey text for removed/neutral state */
}

.toast-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.toast-message {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: inherit;
}

.toast-close {
  margin-right: auto;
  padding: 0;
  width: 16px;
  height: 16px;
  border: none;
  background: none;
  color: #71717a;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.2s;
}

.toast-close:hover {
  opacity: 1;
}

.toast-close svg {
  width: 100%;
  height: 100%;
}

@keyframes toast-slide-in {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes toast-slide-out {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

.below>span {
  color: #ffffff6b;
  font-weight: 300;
}

#top-trending .swiper-slide a,
#top-trending .swiper-slide a:hover {
  color: var(--white);
  text-decoration: none;
}

.new-badge {
  background-color: #ffc107;
  color: var(--bg-dark-9);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.6em;
  font-weight: bold;
  text-transform: uppercase;
  position: absolute;
  top: -2px;
  left: -14px;
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(255, 193, 7, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
  }
}

.adb {
  width: 100%;
  max-width: 728px;
  margin: 20px auto;
  text-align: center;
}

.ad-notice {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.adb {
  border-radius: 4px;
}

.adb img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.continue-reading,
.sponsored-notice {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.maintenance-notice {
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
  padding: 12px 0;
  text-align: center;
}

.maintenance-notice .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.maintenance-notice i {
  font-size: 1.2em;
}

.maintenance-notice p {
  margin: 0;
}

/*Responsiveness*/
@media (max-width: 1444px) {
  .footer-top {
    width: 100%;
    padding: 24px;
  }

  .footer-bottom {
    width: 100%;
    padding: 24px;
    gap: 12px;
  }
}

@media (max-width: 1280px) {
  .original.card-lg .unit {
    width: 20%;
  }

  .stat-item {
    width: 23%;
  }
}

@media (max-width: 990px) {
  .original.card-lg .unit {
    width: 20%;
  }

  .hposter {
    width: 30%;
  }

  .stat-item {
    width: 30%;
  }

  #filters>div:last-child>div .dropdown .dropdown-menu.c1 {
    min-width: 100%;
    width: 100%;
  }

  .ad-container {
    width: 100%;
  }

  .ad-container-home {
    width: 100%;
  }

  .flex-container {
    flex-direction: column;
  }

  .section-container {
    width: 100%;
  }

  section.recently-updated {
    width: 100%;
  }

  .popular-series-section {
    width: 100%;
    padding: 12px;
  }

  .content-main {
    flex-direction: column;
  }

  #continue-reading .unit {
    width: 20%;
  }
}

@media (max-width: 780px) {
  .nav-controls {
    margin: 1rem;
  }

  .chapter-list li {
    width: 48%;
  }

  #ch-images {
    width: 100%;
  }

  .sliding {
    display: none;
  }

  .access-page-content {
    width: 100%;
  }

  #filters>div:last-child>div {
    width: 50%;
  }

  .original.card-lg .unit {
    width: 20%;
  }

  .hposter {
    width: 100%;
  }

  .hcontent {
    flex-direction: column;
  }

  .serie-info {
    width: 100%;
  }

  .stat-item {
    width: 48%;
  }

  .modal-content {
    margin: 20px auto;
    border-radius: 12px;
    width: 90%;
  }

  .modal-content {
    width: 95%;
    max-width: 100%;
    border-radius: 0;
    overflow-x: hidden;
    margin-top: 20%;
  }

  .modal {
    padding: 0 !important;
  }

  .search-content {
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
  }

  .search-result-card {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
  }

  .search-inner form {
    width: 100%;
    box-sizing: border-box;
  }

  .shortcuts {
    display: none;
  }

  .view-all-results {
    width: 100%;
    justify-content: center;
  }

  .ad-content {
    flex-direction: column;
  }

  .top-ad {
    flex-direction: column;
  }

  #continue-reading .unit {
    width: 25%;
  }

  .scroll-indicator-container {
    width: 100%;
    height: 520px;
  }

  #top-trending {
    margin-bottom: 1rem;
  }

  .container-socials {
    padding: 12px;
  }

  .comments-container {
    padding: 32px 12px;
    margin-top: 0;
  }
}

@media (max-width: 630px) {
  .original.card-lg .unit {
    width: 33.333%;
  }

  .main-cover {
    margin: 70px;
  }

  .footer-links {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .sub-panel.active {
    width: 85%;
  }

  .progress-wrap {
    left: 20px;
    
  }

  .container {
    padding-left: 8px;
    padding-right: 8px;
  }

  #nav-search-btn {
    display: flex;
  }

  .manga-bottom .content .m-list ul li a span:last-child {
    width: fit-content;
  }

  #continue-reading .unit {
    width: 33%;
  }

  .reading-content {
    width: 100%;
  }
}

@media (max-width: 474px) {
  #continue-reading .unit {
    width: 50%;
  }

  .original.card-lg .unit {
    width: 50%;
  }

  .original.card-lg.reading .unit,
  .user-panel .original.card-lg.reading .unit {
    width: 50%;
  }

  .home-swiper .swiper .swiper-wrapper .swiper-slide {
    width: 50% !important;
  }
}


.list-body-hh {
  width: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
  -ms-overflow-style: none;
  max-height: 600px;
  /* Fixed container height for scroll */
}

.list-body-hh::-webkit-scrollbar {
  width: 8px;
}

.list-body-hh::-webkit-scrollbar-track {
  background: var(--bg-dark-5);
}

.list-body-hh::-webkit-scrollbar-thumb {
  background: #4e9eff;
  border-radius: 4px;
}

.chapter-items {
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(-45deg, var(--bg-dark-2) 50%, var(--bg-dark-5) 50%);
  margin-bottom: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.chapter-items:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  margin-left: 1.5rem;
  object-fit: cover;
  border: 2px solid var(--bg-dark-13);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.chapter-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chapter-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #94969c;
  margin-bottom: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: #888;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.meta-item i {
  width: 16px;
  filter: #94969c;
}

.chapter-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.chapter-link:hover .chapter-title {
  color: var(--color-7);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .list-body-hh {
    max-width: 100%;
    padding: 1rem;
    max-height: 500px;
    /* Added fixed height for mobile scroll */
  }

  .chapter-item {
    flex-direction: row;
    align-items: center;
    padding: 0.8rem 1rem;
    border-radius: 8px;
  }

  .thumbnail {
    width: 60px;
    height: 60px;
    margin-left: 1rem;
    border-radius: 8px;
  }

  .chapter-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    white-space: normal;
    text-overflow: clip;
  }

  .meta-container {
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.65rem;
  }

  .meta-item img {
    width: 12px;
    height: 12px;
  }

  .chapter-item:hover {
    transform: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }
}

.no-results {
  color: #6c757d;
  font-style: italic;
}

img.no-border {
  border: none !important;
  background: none !important;
  box-shadow: none !important;
}

.them-change {
  margin-left: 20px;
  margin--left: 5px;
  margin-right: 10px;
  font-size: 1.5rem;
  background: transparent;
  border: none;
  color: var(--icol);
}

.them-change:hover {
  color: #fff;
}

.light-mode .them-change:hover {
  color: var(--gray-medium);
}

.parent.manga-parent {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(1, 1fr);
  gap: 7px;
  width: 76.5rem;

}

.div1.manga-div1 {
  grid-column: span 4 / span 4;
  padding: 1rem;
  background: var(--grideints);
  border-radius: 10px;

}

.div2.section-container.donation-section.manga-donation {
  grid-column: span 2 / span 2;
  grid-column-start: 3;
  grid-row-start: 2;
  width: 100%;
}

.div4.manga-div4 {
  grid-column: span 2 / span 2;
  grid-column-start: 1;
  grid-row-start: 2;
}

@media (max-width: 768px) {

  .div1.manga-div1,
  .div2.section-container.donation-section.manga-donation,
  .div4.manga-div4 {
    grid-column: span 4 / span 4;
    grid-row: auto;
    grid-column-start: auto;
    grid-row-start: auto;
	  min-width: auto !important;
        max-width: none !important;

    width: 375px !important;
   

  }

  .div1.manga-div1 {
    order: 1;
  }

  .div2.section-container.donation-section.manga-donation {
    order: 2;
  }

  .div4.manga-div4 {
    order: 3;
  }
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 25px;
  object-fit: cover;

  image-rendering: -webkit-optimize-contrast;
  /* For Webkit browsers */
  image-rendering: crisp-edges;
  /* For modern browsers */
}


.section-container.manga-section {
  width: 100%;

}

.user-panel {
  margin-left: 25px;
  margin-right: 25px;
}

/* Base avatar styles */
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;

  image-rendering: -webkit-optimize-contrast;
  /* For Webkit browsers */
  image-rendering: crisp-edges;
  /* For modern browsers */
}

/* Small devices (phones) */
@media screen and (max-width: 480px) {
  .avatar {
    width: 28px;
    height: 28px;
  }
}

/* Medium devices (tablets) */
@media screen and (min-width: 481px) and (max-width: 768px) {
  .avatar {
    width: 30px;
    height: 30px;
  }
}

/* Large devices (desktops) */
@media screen and (min-width: 769px) {
  .avatar {
    width: 32px;
    height: 32px;
  }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
  .avatar {
    image-rendering: auto;
  }
}

.hidden {
  display: none;
}

/* البوب أب */
#popup {
  position: fixed;
  top: 50px;
  /* تعيين المسافة من الأعلى */
  left: 20px;
  /* تعيين المسافة من جهة اليمين */
  background-color: #333;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

#popup h3 {
  margin: 0;
  padding: 0;
  font-size: 18px;
  color: #fff;
}

#popup ul {
  list-style-type: none;
  padding: 0;
}

#popup ul li {
  padding: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
  color: #fff;
}

#popup ul li:hover {
  background-color: #444;
}
*,
:before,
:after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: currentColor;
}

button {
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none;
}

.slaiders {
    display: flex;
    position: relative;
    flex-direction: column;
    flex: 1 1 0%;

}

.main-container {
    padding-top: 12px;
    padding-bottom: 12px;
    padding-right: 12px;
    padding-left: 12px;
}

.content-wrapper {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 64px;
}

.slider-section {
    grid-column: span 1 / span 1;
}

.main-slider {
    width: 100%;
}

.splide {
    position: relative;
    visibility: hidden;
}

.splide.is-initialized,
.splide.is-rendered {
    visibility: visible;
}

.splide__track {
    overflow: hidden;
    position: relative;
    z-index: 0;
}

.splide__track--draggable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.slider-track {}

.slider-list {
    backface-visibility: hidden;
    display: flex;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

.slider-item {
    backface-visibility: hidden;
    box-sizing: border-box;
    flex-shrink: 0;
    list-style-type: none !important;
    margin: 0;
    position: relative;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    vertical-align: bottom;
}

.slider-link {
    aspect-ratio: 1 / 1;
    display: flex;
    position: relative;
    z-index: 20;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    width: 100%;
    cursor: pointer;
    margin-top: 10px !important;

}

.slider-image {
    object-fit: cover;
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    border-radius: 18px;
}

.slider-image img {
    border-radius: 16px;

}

.character-image {
    position: absolute;
    left: 0;
    top: -10px;
    z-index: 30;
    width: -moz-fit-content;
    width: fit-content;
    height: 80%;
   

}

.character-image img {
    object-fit: cover;
    height: 100%;
    border-radius: 16px;
    vertical-align: bottom;

}

.gradient-overlay {
    position: absolute;
    bottom: 0;
    z-index: 40;
    width: 100%;
    height: 120px;
    background-image: linear-gradient(to top, rgb(0, 0, 0), rgba(0, 0, 0, 0));
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.content-info {
    display: flex;
    position: relative;
    z-index: 40;
    padding: 10px;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity));

}

.title-sp {
    font-weight: 700;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: rgb(255 255 255 / var(--tw-text-opacity));
}

.rating-genres {
    display: flex;
    gap: 2px;
    align-items: center;
}

.rating {
    display: flex;
    padding-top: 1px;
    padding-bottom: 1px;
    padding-right: 2px;
    padding-left: 2px;
    gap: 1px;
    align-items: center;
    font-weight: 700;
    border-radius: 6px;
}

.star-icon {
    width: 3.5rem;
    height: 3.5rem;
}

.rating span {}

.genre-tag-sp {
    padding-top: 4px;
    padding-bottom: 4px;
    padding-right: 8px;
    padding-left: 8px;
    color: rgb(255 255 255 / var(--tw-text-opacity));
    font-size: 12px;
    border-radius: 6px;
}

.description-sp {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.description-sp p {}

.slider-controls {
    display: flex;
    margin-top: 16px;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.prev-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    opacity: 0.5;

    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity));
    --tw-bg-opacity: 1;
    background-color: rgb(39 39 42 );
    border-radius: 4px;
}

.pagination-sp {
    display: flex;
    padding: 2px;
    gap: 8px;
    justify-content: center;
    align-items: center;
}



.pagination-sp-button {
    width: 16px;
    height: 16px;
    border-radius: 9999px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    padding: 0;
    background: transparent;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: white;
    opacity: 0.5;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}


.pagination-sp-button.active .dot {
    background-color: #6f39ee;
    opacity: 1;
   
}

.pagination-sp-button.active {
    border: 1px solid #bfb5fd;
  }
  
 
  .is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    /* يمكنك إضافة ألوان أخرى مثل: color: #aaa; */
  }
  

.next-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    opacity: 1;
    --tw-bg-opacity: 1;
    background-color: rgb(39 39 42 );
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity));
    border-radius: 4px;
}

.announcement-section {
    display: flex;
    flex-direction: column;
    grid-column: span 1 / span 1;
    gap: 16px;







}

/* Announcement Header */
.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;


    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity));





}

.header-title {
    line-height: 28px;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity));
}

.view-all {
    line-height: 28px;
    font-size: 20px;
    --tw-text-opacity: 1;
    color: rgb(212 212 216 / var(--tw-text-opacity));
}

/* Carousel Container */
.announcement-carousel {}

.carousel-track {}

.carousel-list {}

.carousel-slide {}

/* Announcement Items */
.announcement-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.announcement-item {



    gap: 16px;


    flex-direction: column;

    display: flex
}

.announcement-card {
    display: flex;
    padding: 12px;
    gap: 16px;
    align-items: center;
    --tw-bg-opacity: 1;
    background-color: var(--bgcards);
    border-radius: 16px;

}

.announcement-image {
    -o-object-fit: cover;
    object-fit: cover;
    border-radius: 8px;
    width: 76px;
    aspect-ratio: 1 / 1;
}

.announcement-content {
    display: flex;
    flex-direction: column;
    gap: 8px;








}
.splide__pagination__page.is-active .dot {
    background-color: #6f39ee !important;
    opacity: 1 !important;
  }
  
  .announcement-carousel .splide__slide {
    width: calc(50% - 12px);
  }
  
  @media (max-width: 768px) {
    .announcement-carousel .splide__slide {
      width: 100%;
    }
  }

.announcement-title {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity));
    font-weight: 600;
    font-size: 14px;
}

.announcement-badge {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity));
    line-height: 16px;
    font-weight: 400;
    font-size: 9px;
    vertical-align: 2.5px;
    padding-right: 4px;
    padding-left: 4px;
    --tw-bg-opacity: 1;
    background-color: rgb(255 0 0 / var(--tw-bg-opacity));
    border-radius: 4px;
}

.announcement-date {
    --tw-text-opacity: 1;
    color: rgb(161 161 170 / var(--tw-text-opacity));
    line-height: 16px;
    font-size: 12px;
}


@media (min-width: 1024px) {


    .content-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 32px;
    }

    .slider-section {
        grid-column: span 2 / span 2;
    }

    .character-image {
        height: calc(100% + 10px);
    }

    .content-info {
        padding: 20px;
        gap: 8px;
        width: 66.666667%;
        background-color: transparent !important;
    }

    .title-sp {
        font-size: 28px;
    }

    .description-sp p {
        font-size: 18px;
    }
}

@media (min-width: 768px) {


    .content-wrapper {
        max-width: 768px;
    }

    .slider-image {
        top: 0;
        bottom: auto;
    }



    .title-sp {
        margin-bottom: -2px;
        font-size: 24px;
    }

    .star-icon {
        width: 18px;
        height: 18px;
    }

    .description-sp p {
        font-size: 16px;
    }
}

@media (min-width: 640px) {


    .slider-link {
        aspect-ratio: 16/4;
    }




}

@media (max-width: 1536px) {
    .content-wrapper {
        max-width: 1536px;
    }
}

@media (max-width: 1536px) {
    .content-wrapper {
        max-width: 1536px;
    }
}

@media (max-width: 1280px) {
    .content-wrapper {
        max-width: 1280px;
    }
}

@media (max-width: 1024px) {
    .content-wrapper {
        max-width: 1024px;
    }

    .content-info {

        padding: 20px;
    }

}

@media (max-width: 768px) {

    .content-wrapper {
        max-width: 768px;
    }

    .content-info {
        padding: 10px;
        gap: 4px;
    }

    .gradient-overlay {
        height: 70%;
        background-image: linear-gradient(to top, #000000 40%, #00000000 100%);
    }

    .star-icon {
        width: 18px;
        height: 18px;
    }

    .next-button {
        display: none;
    }

    .prev-button {
        display: none;
    }

    .header-title {
        font-size: 20px;
    }

    .view-all {
        line-height: 22px;
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .content-wrapper {
        max-width: 640px;

    }

    .star-icon {
        width: 14px;
        height: 14px;
    }
}
 



/* Hero Section */
.hero {
 position: relative;
 height: 400px;
 overflow: hidden;
 border-radius: 0 0 120px 120px;
 box-shadow: inset 0 -30px 50px rgba(0, 0, 0, 0.3);
}

.hero img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 filter: brightness(0.6) blur(3px);
 transform: scale(1.1);
}

.hero-overlay {
 position: absolute;
 inset: 0;
 background: var(--gradient-transparent-black);
}

/* Main Content */
.container-an {
 max-width: 1100px;
 margin: -120px auto 40px;
 padding: 0 20px;
}

.card-an {
 background: var(--bgcards);
 border-radius: 20px;
 box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
 backdrop-filter: blur(15px);
 padding: 40px;
 transition: transform 0.3s ease;
 border: 1px solid var(--secb);
}

.card-an:hover {
 transform: translateY(-5px);
}

/* Header */
.header-an h1 {
 font-size: 2.5rem;
 font-weight: 700;
 color: var(--color-11);
 margin-bottom: 20px;
 line-height: 1.2;
}

.author-an {
 display: flex;
 align-items: center;
 gap: 15px;
 margin-bottom: 30px;
}

.author-avatar-an {
 position: relative;
 width: 60px;
 height: 60px;
}

.author-avatar-an img {
 width: 100%;
 height: 100%;
 border-radius: 50%;
 object-fit: cover;
 border: 3px solid var(--secb);
 transition: 0.3s;
}

.author-avatar-an:hover img {
 border-color: var(--color-7);
 transform: rotate(-5deg) scale(1.1);
}

.author-info-an h2 {
 font-size: 1.25rem;
 font-weight: 600;
 color: var(--color-11);
 margin-bottom: 5px;
}

.author-info-an p {
 font-size: 0.9rem;
 color: var(--pt);
 margin-bottom: 5px;
}

/* Content */
.content-an {
 margin-bottom: 30px;
}

.content-an h2 {
 font-size: 1.5rem;
 color: var(--color-11);
 margin-bottom: 15px;
 position: relative;
 padding-left: 25px;
}

.content-an h2::before {
 content: '';
 position: absolute;
 left: 0;
 top: 50%;
 transform: translateY(-50%);
 width: 10px;
 height: 10px;
 background: var(--color-7);
 border-radius: 50%;
}

.content-an p {
 font-size: 1.05rem;
 color: var(--pt);
 margin-bottom: 15px;
 line-height: 1.8;
}

.content-an a {
 color: var(--color-7);
 font-weight: 500;
 text-decoration: none;
 position: relative;
 transition: 0.3s;
}

.content-an a:hover {
 color: #ff708b;
 text-decoration: underline;
}

.content-an li::before {
 color: var(--color-7);
}

/* Divider */
.divider-an {
 height: 2px;
 background: linear-gradient(90deg, var(--color-7), #ff708b);
 border-radius: 1px;
 margin: 40px 0;
}

/* Comments Section */
.comments-an h3 {
 color: var(--color-11);
}

.comments-an svg {
 fill: var(--color-7);
 height: 20px;
}

.comments-an #disqus_thread {
 background: var(--secb);
 border-radius: 15px;
 padding: 25px;
 margin-top: 20px;
 border: 1px solid var(--color-3);
}

/* Responsive */
@media (max-width: 768px) {
 .hero {
   height: 300px;
   border-radius: 0 0 80px 80px;
 }
 
 .container-an {
   margin-top: -80px;
 }
 
 .card-an {
   padding: 25px;
   border-radius: 15px;
 }
}
@media screen and (max-width: 768px) {
    .button-container {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      margin: auto;
      z-index: 9999;
      display: flex;
      background-color: var(--bgcards);
      width: 100%;
      
      height: 50px;
      align-items: center;
      justify-content: space-around;
      border-radius: 10px 10px 0 0;
      padding: 0 10px;
      transition: transform 0.3s ease;
    }
  
    .button {
      outline: 0 !important;
      border: 0 !important;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background-color: transparent;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--white);
      transition: all ease-in-out 0.3s;
      cursor: pointer;
    }
  
    .button:hover {
      transform: translateY(-3px);
    }
  
    .icon {
      font-size: 20px;
    }
  
    .button-container.hide-bar {
      transform: translateY(100%);
    }
  }
  
  @media screen and (min-width: 769px) {
    .button-container {
      display: none !important;
    }
  }
 
  #nprogress .bar {
    background: var(--color-7) !important; /* لون سماوي */
    height: 4px !important;

  }
  
  #nprogress .peg {
    box-shadow: 0 0 10px var(--color-7), 0 0 5px var(--color-7) !important;
  }
    