/* ============================================================
   y&music - Premium Design System v2
   ============================================================ */

/* ── 0. Royal Obsidian Luxury Theme (الفخامة الهادئة • ذهب كلاسيكي بدون نيون) ── */
:root,
[data-theme="royal"],
:root[data-theme="royal"] {
  --theme-name:       "royal";
  --accent-primary:   #dfb76c;
  --accent-rgb:       223, 183, 108;
  --accent-secondary: #ebd39b;
  --accent-hover:     #cfa354;
  --accent-glow:      rgba(223, 183, 108, 0.18);
  --accent-glow-strong: rgba(223, 183, 108, 0.34);
  --accent-gradient:  linear-gradient(135deg, #dfb76c 0%, #ecd094 50%, #b88636 100%);
  --accent-glass:     rgba(223, 183, 108, 0.08);
  --accent-subtle:    rgba(223, 183, 108, 0.04);

  --bg-main:          #08080a;
  --bg-gradient:      radial-gradient(ellipse 90% 70% at 18% -5%, rgba(223, 183, 108, 0.12) 0%, transparent 64%),
                      radial-gradient(ellipse 78% 60% at 92% 105%, rgba(184, 134, 54, 0.08) 0%, transparent 62%),
                      radial-gradient(ellipse 58% 46% at 52% 52%, rgba(91, 67, 34, 0.07) 0%, transparent 76%),
                      #08080a;

  --theme-aurora-1:   #f1d89f;
  --theme-aurora-2:   #c4934a;
  --theme-aurora-3:   #76552c;
  --theme-aurora-glow: rgba(223, 183, 108, 0.14);
  --theme-aurora-opacity: 0.56;

  --theme-sidebar-bg:     linear-gradient(180deg, rgba(22, 18, 12, 0.92) 0%, rgba(8, 8, 10, 0.96) 100%);
  --theme-sidebar-border: rgba(223, 183, 108, 0.12);
  --theme-header-bg:      rgba(18, 15, 11, 0.82);
  --theme-player-bg:      linear-gradient(135deg, rgba(33, 27, 18, 0.96) 0%, rgba(15, 14, 13, 0.97) 54%, rgba(8, 9, 11, 0.98) 100%);
  --theme-player-border:  rgba(223, 183, 108, 0.28);
  --theme-card-bg:        rgba(255, 255, 255, 0.04);
  --theme-card-hover:     rgba(223, 183, 108, 0.08);
  --theme-card-border:    rgba(223, 183, 108, 0.17);

  --glass-bg:             rgba(255, 255, 255, 0.04);
  --glass-bg-hover:       rgba(255, 255, 255, 0.075);
  --glass-bg-active:      rgba(255, 255, 255, 0.12);
  --glass-border:         rgba(255, 255, 255, 0.085);
  --glass-border-hover:   rgba(223, 183, 108, 0.34);
  --glass-border-accent:  rgba(223, 183, 108, 0.52);
  --glass-blur:           blur(44px) saturate(160%);
  --glass-blur-sm:        blur(22px) saturate(140%);
  --glass-shadow:         0 12px 40px rgba(0, 0, 0, 0.65), 0 1px 0 rgba(255,255,255,0.04) inset;
  --glass-shadow-glow:    0 10px 32px rgba(0, 0, 0, 0.48), 0 0 24px rgba(223, 183, 108, 0.08);
  --glass-shadow-card:    0 8px 28px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.035);

  --text-primary:   #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-tertiary:  rgba(255, 255, 255, 0.40);
  --text-accent:    #eed4a0;
  --font-family:    "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;

  --radius-xs:   6px;
  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   22px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  --transition-fast:   0.14s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.24s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.50s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  --header-height:          68px;
  --bottom-player-height:   84px;
  --bottom-nav-height:      64px;
  --sidebar-width:          252px;
  --friends-sidebar-width:  272px;
}

/* ── 1. Ruby Imperial Theme (الياقوت الإمبراطوري • فخامة داكنة ومخملية) ── */
[data-theme="crimson"],
:root[data-theme="crimson"] {
  --theme-name:       "crimson";
  --accent-primary:   #e63956;
  --accent-rgb:       230, 57, 86;
  --accent-secondary: #fb7185;
  --accent-hover:     #d12543;
  --accent-glow:      rgba(230, 57, 86, 0.16);
  --accent-glow-strong: rgba(230, 57, 86, 0.32);
  --accent-gradient:  linear-gradient(135deg, #e63956 0%, #fda4af 50%, #9f1239 100%);
  --accent-glass:     rgba(230, 57, 86, 0.08);
  --accent-subtle:    rgba(230, 57, 86, 0.04);

  --bg-main:          #090608;
  --bg-gradient:      radial-gradient(ellipse 90% 70% at 20% -5%, rgba(230, 57, 86, 0.07) 0%, transparent 60%),
                      radial-gradient(ellipse 80% 60% at 85% 105%, rgba(159, 18, 57, 0.05) 0%, transparent 60%),
                      #090608;

  --theme-aurora-1:   #e63956;
  --theme-aurora-2:   #9f1239;
  --theme-aurora-3:   #1a0b10;
  --theme-aurora-glow: rgba(230, 57, 86, 0.09);
  --theme-aurora-opacity: 0.40;

  --theme-sidebar-bg:     linear-gradient(180deg, rgba(16, 11, 14, 0.88) 0%, rgba(9, 6, 8, 0.94) 100%);
  --theme-sidebar-border: rgba(255, 255, 255, 0.06);
  --theme-header-bg:      rgba(13, 9, 11, 0.78);
  --theme-player-bg:      linear-gradient(180deg, rgba(18, 12, 16, 0.94) 0%, rgba(9, 6, 8, 0.98) 100%);
  --theme-player-border:  rgba(230, 57, 86, 0.20);
  --theme-card-bg:        rgba(255, 255, 255, 0.03);
  --theme-card-hover:     rgba(230, 57, 86, 0.06);
  --theme-card-border:    rgba(230, 57, 86, 0.15);

  --glass-border-accent:  rgba(230, 57, 86, 0.45);
  --glass-shadow-glow:    0 10px 30px rgba(0, 0, 0, 0.50);
  --text-accent:          #fecdd3;
}

/* ── 2. Rose Gold Silk Theme (الذهب الوردي الفاخر • حرير ونقاء) ── */
[data-theme="pink"],
:root[data-theme="pink"] {
  --theme-name:       "pink";
  --accent-primary:   #f472b6;
  --accent-rgb:       244, 114, 182;
  --accent-secondary: #fbcfe8;
  --accent-hover:     #ec4899;
  --accent-glow:      rgba(244, 114, 182, 0.16);
  --accent-glow-strong: rgba(244, 114, 182, 0.30);
  --accent-gradient:  linear-gradient(135deg, #f472b6 0%, #fde2e4 50%, #be185d 100%);
  --accent-glass:     rgba(244, 114, 182, 0.08);
  --accent-subtle:    rgba(244, 114, 182, 0.04);

  --bg-main:          #0a0609;
  --bg-gradient:      radial-gradient(ellipse 90% 70% at 20% -5%, rgba(244, 114, 182, 0.07) 0%, transparent 60%),
                      radial-gradient(ellipse 80% 60% at 85% 105%, rgba(190, 24, 93, 0.04) 0%, transparent 60%),
                      #0a0609;

  --theme-aurora-1:   #f472b6;
  --theme-aurora-2:   #be185d;
  --theme-aurora-3:   #1a0d15;
  --theme-aurora-glow: rgba(244, 114, 182, 0.08);
  --theme-aurora-opacity: 0.38;

  --theme-sidebar-bg:     linear-gradient(180deg, rgba(17, 11, 15, 0.88) 0%, rgba(10, 6, 9, 0.94) 100%);
  --theme-sidebar-border: rgba(255, 255, 255, 0.06);
  --theme-header-bg:      rgba(14, 9, 13, 0.78);
  --theme-player-bg:      linear-gradient(180deg, rgba(18, 11, 16, 0.94) 0%, rgba(10, 6, 9, 0.98) 100%);
  --theme-player-border:  rgba(244, 114, 182, 0.20);
  --theme-card-bg:        rgba(255, 255, 255, 0.03);
  --theme-card-hover:     rgba(244, 114, 182, 0.06);
  --theme-card-border:    rgba(244, 114, 182, 0.15);

  --glass-border-accent:  rgba(244, 114, 182, 0.45);
  --glass-shadow-glow:    0 10px 30px rgba(0, 0, 0, 0.50);
  --text-accent:          #fce7f3;
}

/* ── 3. Royal Sapphire Blue Theme (الياقوت الأزرق الملكي • سماء الليل النقية) ── */
[data-theme="blue"],
:root[data-theme="blue"] {
  --theme-name:       "blue";
  --accent-primary:   #38bdf8;
  --accent-rgb:       56, 189, 248;
  --accent-secondary: #7dd3fc;
  --accent-hover:     #0ea5e9;
  --accent-glow:      rgba(56, 189, 248, 0.16);
  --accent-glow-strong: rgba(56, 189, 248, 0.30);
  --accent-gradient:  linear-gradient(135deg, #38bdf8 0%, #bae6fd 50%, #0369a1 100%);
  --accent-glass:     rgba(56, 189, 248, 0.08);
  --accent-subtle:    rgba(56, 189, 248, 0.04);

  --bg-main:          #06080d;
  --bg-gradient:      radial-gradient(ellipse 90% 70% at 20% -5%, rgba(56, 189, 248, 0.07) 0%, transparent 60%),
                      radial-gradient(ellipse 80% 60% at 85% 105%, rgba(3, 105, 161, 0.05) 0%, transparent 60%),
                      #06080d;

  --theme-aurora-1:   #38bdf8;
  --theme-aurora-2:   #0284c7;
  --theme-aurora-3:   #091424;
  --theme-aurora-glow: rgba(56, 189, 248, 0.08);
  --theme-aurora-opacity: 0.38;

  --theme-sidebar-bg:     linear-gradient(180deg, rgba(11, 14, 22, 0.88) 0%, rgba(6, 8, 13, 0.94) 100%);
  --theme-sidebar-border: rgba(255, 255, 255, 0.06);
  --theme-header-bg:      rgba(9, 12, 19, 0.78);
  --theme-player-bg:      linear-gradient(180deg, rgba(12, 16, 26, 0.94) 0%, rgba(6, 8, 13, 0.98) 100%);
  --theme-player-border:  rgba(56, 189, 248, 0.20);
  --theme-card-bg:        rgba(255, 255, 255, 0.03);
  --theme-card-hover:     rgba(56, 189, 248, 0.06);
  --theme-card-border:    rgba(56, 189, 248, 0.15);

  --glass-border-accent:  rgba(56, 189, 248, 0.45);
  --glass-shadow-glow:    0 10px 30px rgba(0, 0, 0, 0.50);
  --text-accent:          #e0f2fe;
}

/* ── 4. Colombian Emerald Green Theme (الزمرد الإمبراطوري • طبيعة نقية وراقية) ── */
[data-theme="green"],
:root[data-theme="green"] {
  --theme-name:       "green";
  --accent-primary:   #10b981;
  --accent-rgb:       16, 185, 129;
  --accent-secondary: #6ee7b7;
  --accent-hover:     #059669;
  --accent-glow:      rgba(16, 185, 129, 0.16);
  --accent-glow-strong: rgba(16, 185, 129, 0.30);
  --accent-gradient:  linear-gradient(135deg, #10b981 0%, #a7f3d0 50%, #047857 100%);
  --accent-glass:     rgba(16, 185, 129, 0.08);
  --accent-subtle:    rgba(16, 185, 129, 0.04);

  --bg-main:          #050907;
  --bg-gradient:      radial-gradient(ellipse 90% 70% at 20% -5%, rgba(16, 185, 129, 0.07) 0%, transparent 60%),
                      radial-gradient(ellipse 80% 60% at 85% 105%, rgba(4, 120, 87, 0.05) 0%, transparent 60%),
                      #050907;

  --theme-aurora-1:   #10b981;
  --theme-aurora-2:   #047857;
  --theme-aurora-3:   #081711;
  --theme-aurora-glow: rgba(16, 185, 129, 0.08);
  --theme-aurora-opacity: 0.38;

  --theme-sidebar-bg:     linear-gradient(180deg, rgba(9, 17, 13, 0.88) 0%, rgba(5, 9, 7, 0.94) 100%);
  --theme-sidebar-border: rgba(255, 255, 255, 0.06);
  --theme-header-bg:      rgba(8, 14, 11, 0.78);
  --theme-player-bg:      linear-gradient(180deg, rgba(10, 19, 15, 0.94) 0%, rgba(5, 9, 7, 0.98) 100%);
  --theme-player-border:  rgba(16, 185, 129, 0.20);
  --theme-card-bg:        rgba(255, 255, 255, 0.03);
  --theme-card-hover:     rgba(16, 185, 129, 0.06);
  --theme-card-border:    rgba(16, 185, 129, 0.15);

  --glass-border-accent:  rgba(16, 185, 129, 0.45);
  --glass-shadow-glow:    0 10px 30px rgba(0, 0, 0, 0.50);
  --text-accent:          #d1fae5;
}

/* ── 5. Imperial Amethyst Purple Theme (الجمشت الملكي • غموض وسحر البنفسج) ── */
[data-theme="purple"],
:root[data-theme="purple"] {
  --theme-name:       "purple";
  --accent-primary:   #a855f7;
  --accent-rgb:       168, 85, 247;
  --accent-secondary: #d8b4fe;
  --accent-hover:     #9333ea;
  --accent-glow:      rgba(168, 85, 247, 0.16);
  --accent-glow-strong: rgba(168, 85, 247, 0.30);
  --accent-gradient:  linear-gradient(135deg, #a855f7 0%, #e9d5ff 50%, #6b21a8 100%);
  --accent-glass:     rgba(168, 85, 247, 0.08);
  --accent-subtle:    rgba(168, 85, 247, 0.04);

  --bg-main:          #07050e;
  --bg-gradient:      radial-gradient(ellipse 90% 70% at 20% -5%, rgba(168, 85, 247, 0.07) 0%, transparent 60%),
                      radial-gradient(ellipse 80% 60% at 85% 105%, rgba(107, 33, 168, 0.05) 0%, transparent 60%),
                      #07050e;

  --theme-aurora-1:   #a855f7;
  --theme-aurora-2:   #6b21a8;
  --theme-aurora-3:   #130a1f;
  --theme-aurora-glow: rgba(168, 85, 247, 0.08);
  --theme-aurora-opacity: 0.38;

  --theme-sidebar-bg:     linear-gradient(180deg, rgba(13, 10, 22, 0.88) 0%, rgba(7, 5, 14, 0.94) 100%);
  --theme-sidebar-border: rgba(255, 255, 255, 0.06);
  --theme-header-bg:      rgba(11, 8, 18, 0.78);
  --theme-player-bg:      linear-gradient(180deg, rgba(15, 11, 25, 0.94) 0%, rgba(7, 5, 14, 0.98) 100%);
  --theme-player-border:  rgba(168, 85, 247, 0.20);
  --theme-card-bg:        rgba(255, 255, 255, 0.03);
  --theme-card-hover:     rgba(168, 85, 247, 0.06);
  --theme-card-border:    rgba(168, 85, 247, 0.15);

  --glass-border-accent:  rgba(168, 85, 247, 0.45);
  --glass-shadow-glow:    0 10px 30px rgba(0, 0, 0, 0.50);
  --text-accent:          #f3e8ff;
}

/* ── 6. Royal Amber & Cognac Theme (العنبر والكونياك الملكي • دفء الأرستقراطية) ── */
[data-theme="orange"],
:root[data-theme="orange"] {
  --theme-name:       "orange";
  --accent-primary:   #f97316;
  --accent-rgb:       249, 115, 22;
  --accent-secondary: #fed7aa;
  --accent-hover:     #ea580c;
  --accent-glow:      rgba(249, 115, 22, 0.16);
  --accent-glow-strong: rgba(249, 115, 22, 0.30);
  --accent-gradient:  linear-gradient(135deg, #f97316 0%, #ffedd5 50%, #c2410c 100%);
  --accent-glass:     rgba(249, 115, 22, 0.08);
  --accent-subtle:    rgba(249, 115, 22, 0.04);

  --bg-main:          #090604;
  --bg-gradient:      radial-gradient(ellipse 90% 70% at 20% -5%, rgba(249, 115, 22, 0.07) 0%, transparent 60%),
                      radial-gradient(ellipse 80% 60% at 85% 105%, rgba(194, 65, 12, 0.05) 0%, transparent 60%),
                      #090604;

  --theme-aurora-1:   #f97316;
  --theme-aurora-2:   #c2410c;
  --theme-aurora-3:   #1a0f07;
  --theme-aurora-glow: rgba(249, 115, 22, 0.08);
  --theme-aurora-opacity: 0.38;

  --theme-sidebar-bg:     linear-gradient(180deg, rgba(18, 12, 8, 0.88) 0%, rgba(9, 6, 4, 0.94) 100%);
  --theme-sidebar-border: rgba(255, 255, 255, 0.06);
  --theme-header-bg:      rgba(15, 10, 6, 0.78);
  --theme-player-bg:      linear-gradient(180deg, rgba(20, 13, 9, 0.94) 0%, rgba(9, 6, 4, 0.98) 100%);
  --theme-player-border:  rgba(249, 115, 22, 0.20);
  --theme-card-bg:        rgba(255, 255, 255, 0.03);
  --theme-card-hover:     rgba(249, 115, 22, 0.06);
  --theme-card-border:    rgba(249, 115, 22, 0.15);

  --glass-border-accent:  rgba(249, 115, 22, 0.45);
  --glass-shadow-glow:    0 10px 30px rgba(0, 0, 0, 0.50);
  --text-accent:          #ffedd5;
}

/* ── 7. Solar Topaz Gold Theme (التوباز الشمسي • إشراقة الذهب المتوهج) ── */
[data-theme="yellow"],
:root[data-theme="yellow"] {
  --theme-name:       "yellow";
  --accent-primary:   #eab308;
  --accent-rgb:       234, 179, 8;
  --accent-secondary: #fef08a;
  --accent-hover:     #ca8a04;
  --accent-glow:      rgba(234, 179, 8, 0.16);
  --accent-glow-strong: rgba(234, 179, 8, 0.30);
  --accent-gradient:  linear-gradient(135deg, #eab308 0%, #fef9c3 50%, #854d0e 100%);
  --accent-glass:     rgba(234, 179, 8, 0.08);
  --accent-subtle:    rgba(234, 179, 8, 0.04);

  --bg-main:          #090805;
  --bg-gradient:      radial-gradient(ellipse 90% 70% at 20% -5%, rgba(234, 179, 8, 0.07) 0%, transparent 60%),
                      radial-gradient(ellipse 80% 60% at 85% 105%, rgba(133, 77, 14, 0.05) 0%, transparent 60%),
                      #090805;

  --theme-aurora-1:   #eab308;
  --theme-aurora-2:   #854d0e;
  --theme-aurora-3:   #171407;
  --theme-aurora-glow: rgba(234, 179, 8, 0.08);
  --theme-aurora-opacity: 0.38;

  --theme-sidebar-bg:     linear-gradient(180deg, rgba(17, 15, 9, 0.88) 0%, rgba(9, 8, 5, 0.94) 100%);
  --theme-sidebar-border: rgba(255, 255, 255, 0.06);
  --theme-header-bg:      rgba(14, 12, 7, 0.78);
  --theme-player-bg:      linear-gradient(180deg, rgba(19, 17, 10, 0.94) 0%, rgba(9, 8, 5, 0.98) 100%);
  --theme-player-border:  rgba(234, 179, 8, 0.20);
  --theme-card-bg:        rgba(255, 255, 255, 0.03);
  --theme-card-hover:     rgba(234, 179, 8, 0.06);
  --theme-card-border:    rgba(234, 179, 8, 0.15);

  --glass-border-accent:  rgba(234, 179, 8, 0.45);
  --glass-shadow-glow:    0 10px 30px rgba(0, 0, 0, 0.50);
  --text-accent:          #fef9c3;
}

/* ── 8. Tiffany Aquamarine Theme (التيفاني والأكوامارين • صفاء المجوهرات) ── */
[data-theme="cyan"],
:root[data-theme="cyan"] {
  --theme-name:       "cyan";
  --accent-primary:   #22d3ee;
  --accent-rgb:       34, 211, 238;
  --accent-secondary: #a5f3fc;
  --accent-hover:     #06b6d4;
  --accent-glow:      rgba(34, 211, 238, 0.16);
  --accent-glow-strong: rgba(34, 211, 238, 0.30);
  --accent-gradient:  linear-gradient(135deg, #22d3ee 0%, #cffafe 50%, #0e7490 100%);
  --accent-glass:     rgba(34, 211, 238, 0.08);
  --accent-subtle:    rgba(34, 211, 238, 0.04);

  --bg-main:          #05080a;
  --bg-gradient:      radial-gradient(ellipse 90% 70% at 20% -5%, rgba(34, 211, 238, 0.07) 0%, transparent 60%),
                      radial-gradient(ellipse 80% 60% at 85% 105%, rgba(14, 116, 144, 0.05) 0%, transparent 60%),
                      #05080a;

  --theme-aurora-1:   #22d3ee;
  --theme-aurora-2:   #0e7490;
  --theme-aurora-3:   #08171f;
  --theme-aurora-glow: rgba(34, 211, 238, 0.08);
  --theme-aurora-opacity: 0.38;

  --theme-sidebar-bg:     linear-gradient(180deg, rgba(9, 16, 20, 0.88) 0%, rgba(5, 8, 10, 0.94) 100%);
  --theme-sidebar-border: rgba(255, 255, 255, 0.06);
  --theme-header-bg:      rgba(8, 13, 17, 0.78);
  --theme-player-bg:      linear-gradient(180deg, rgba(11, 18, 24, 0.94) 0%, rgba(5, 8, 10, 0.98) 100%);
  --theme-player-border:  rgba(34, 211, 238, 0.20);
  --theme-card-bg:        rgba(255, 255, 255, 0.03);
  --theme-card-hover:     rgba(34, 211, 238, 0.06);
  --theme-card-border:    rgba(34, 211, 238, 0.15);

  --glass-border-accent:  rgba(34, 211, 238, 0.45);
  --glass-shadow-glow:    0 10px 30px rgba(0, 0, 0, 0.50);
  --text-accent:          #cffafe;
}

/* ── 9. Platinum Titanium OLED Theme (التيتانيوم البلاتيني • هيبة الأسود الصافي) ── */
[data-theme="midnight"],
:root[data-theme="midnight"] {
  --theme-name:       "midnight";
  --accent-primary:   #f1f5f9;
  --accent-rgb:       241, 245, 249;
  --accent-secondary: #ffffff;
  --accent-hover:     #cbd5e1;
  --accent-glow:      rgba(255, 255, 255, 0.14);
  --accent-glow-strong: rgba(255, 255, 255, 0.28);
  --accent-gradient:  linear-gradient(135deg, #ffffff 0%, #e2e8f0 50%, #94a3b8 100%);
  --accent-glass:     rgba(255, 255, 255, 0.08);
  --accent-subtle:    rgba(255, 255, 255, 0.04);

  --bg-main:          #050507;
  --bg-gradient:      radial-gradient(ellipse 90% 70% at 20% -5%, rgba(255, 255, 255, 0.06) 0%, transparent 60%),
                      radial-gradient(ellipse 80% 60% at 85% 105%, rgba(148, 163, 184, 0.03) 0%, transparent 60%),
                      #050507;

  --theme-aurora-1:   #e2e8f0;
  --theme-aurora-2:   #94a3b8;
  --theme-aurora-3:   #15171e;
  --theme-aurora-glow: rgba(255, 255, 255, 0.07);
  --theme-aurora-opacity: 0.32;

  --theme-sidebar-bg:     linear-gradient(180deg, rgba(14, 14, 18, 0.88) 0%, rgba(7, 7, 9, 0.94) 100%);
  --theme-sidebar-border: rgba(255, 255, 255, 0.06);
  --theme-header-bg:      rgba(11, 11, 14, 0.78);
  --theme-player-bg:      linear-gradient(180deg, rgba(16, 16, 21, 0.94) 0%, rgba(7, 7, 9, 0.98) 100%);
  --theme-player-border:  rgba(255, 255, 255, 0.18);
  --theme-card-bg:        rgba(255, 255, 255, 0.03);
  --theme-card-hover:     rgba(255, 255, 255, 0.06);
  --theme-card-border:    rgba(255, 255, 255, 0.14);

  --glass-border-accent:  rgba(255, 255, 255, 0.40);
  --glass-shadow-glow:    0 10px 30px rgba(0, 0, 0, 0.50);
  --text-accent:          #ffffff;
}

/* ── 10. Neo-Tokyo Synthwave Theme (سايبر طوكيو الأنيق • توهج مستقبلي ناعم) ── */
[data-theme="cyberpunk"],
:root[data-theme="cyberpunk"] {
  --theme-name:       "cyberpunk";
  --accent-primary:   #f43f5e;
  --accent-rgb:       244, 63, 94;
  --accent-secondary: #38bdf8;
  --accent-hover:     #e11d48;
  --accent-glow:      rgba(244, 63, 94, 0.16);
  --accent-glow-strong: rgba(56, 189, 248, 0.30);
  --accent-gradient:  linear-gradient(135deg, #f43f5e 0%, #c084fc 50%, #38bdf8 100%);
  --accent-glass:     rgba(244, 63, 94, 0.08);
  --accent-subtle:    rgba(56, 189, 248, 0.04);

  --bg-main:          #07050d;
  --bg-gradient:      radial-gradient(ellipse 90% 70% at 20% -5%, rgba(244, 63, 94, 0.07) 0%, transparent 60%),
                      radial-gradient(ellipse 80% 60% at 85% 105%, rgba(56, 189, 248, 0.05) 0%, transparent 60%),
                      #07050d;

  --theme-aurora-1:   #f43f5e;
  --theme-aurora-2:   #38bdf8;
  --theme-aurora-3:   #150a24;
  --theme-aurora-glow: rgba(244, 63, 94, 0.08);
  --theme-aurora-opacity: 0.38;

  --theme-sidebar-bg:     linear-gradient(180deg, rgba(14, 10, 22, 0.88) 0%, rgba(8, 5, 14, 0.94) 100%);
  --theme-sidebar-border: rgba(255, 255, 255, 0.06);
  --theme-header-bg:      rgba(11, 8, 18, 0.78);
  --theme-player-bg:      linear-gradient(180deg, rgba(17, 12, 26, 0.94) 0%, rgba(8, 5, 14, 0.98) 100%);
  --theme-player-border:  rgba(56, 189, 248, 0.20);
  --theme-card-bg:        rgba(255, 255, 255, 0.03);
  --theme-card-hover:     rgba(56, 189, 248, 0.06);
  --theme-card-border:    rgba(244, 63, 94, 0.16);

  --glass-border-accent:  rgba(56, 189, 248, 0.45);
  --glass-shadow-glow:    0 10px 30px rgba(0, 0, 0, 0.50);
  --text-accent:          #38bdf8;
}

/* ── 11. Cosmic Violet Theme ── */
[data-theme="cosmic"],
:root[data-theme="cosmic"] {
  --theme-name:       "cosmic";
  --accent-primary:   #8b5cf6;
  --accent-rgb:       139, 92, 246;
  --accent-secondary: #c4b5fd;
  --accent-hover:     #7c3aed;
  --accent-glow:      rgba(139, 92, 246, 0.16);
  --accent-glow-strong: rgba(139, 92, 246, 0.30);
  --accent-gradient:  linear-gradient(135deg, #8b5cf6 0%, #c084fc 50%, #6d28d9 100%);
  --accent-glass:     rgba(139, 92, 246, 0.08);
  --accent-subtle:    rgba(139, 92, 246, 0.04);

  --bg-main:          #07050f;
  --bg-gradient:      radial-gradient(ellipse 90% 70% at 20% -5%, rgba(139, 92, 246, 0.07) 0%, transparent 60%),
                      radial-gradient(ellipse 80% 60% at 85% 105%, rgba(109, 40, 217, 0.05) 0%, transparent 60%),
                      #07050f;

  --theme-aurora-1:   #8b5cf6;
  --theme-aurora-2:   #6d28d9;
  --theme-aurora-3:   #170c2a;
  --theme-aurora-glow: rgba(139, 92, 246, 0.08);
  --theme-aurora-opacity: 0.38;

  --theme-sidebar-bg:     linear-gradient(180deg, rgba(14, 10, 24, 0.88) 0%, rgba(8, 5, 16, 0.94) 100%);
  --theme-sidebar-border: rgba(255, 255, 255, 0.06);
  --theme-header-bg:      rgba(11, 8, 19, 0.78);
  --theme-player-bg:      linear-gradient(180deg, rgba(16, 12, 28, 0.94) 0%, rgba(8, 5, 16, 0.98) 100%);
  --theme-player-border:  rgba(139, 92, 246, 0.20);
  --theme-card-bg:        rgba(255, 255, 255, 0.03);
  --theme-card-hover:     rgba(139, 92, 246, 0.06);
  --theme-card-border:    rgba(139, 92, 246, 0.16);

  --glass-border-accent:  rgba(139, 92, 246, 0.45);
  --glass-shadow-glow:    0 10px 30px rgba(0, 0, 0, 0.50);
  --text-accent:          #ede9fe;
}

/* ── 12. Kyoto Sage Teal Theme (شاي الماتشا وتيل الكيوتو • هدوء الطبيعة) ── */
[data-theme="zen"],
:root[data-theme="zen"] {
  --theme-name:       "zen";
  --accent-primary:   #14b8a6;
  --accent-rgb:       20, 184, 166;
  --accent-secondary: #5eead4;
  --accent-hover:     #0d9488;
  --accent-glow:      rgba(20, 184, 166, 0.16);
  --accent-glow-strong: rgba(20, 184, 166, 0.30);
  --accent-gradient:  linear-gradient(135deg, #14b8a6 0%, #ccfbf1 50%, #0f766e 100%);
  --accent-glass:     rgba(20, 184, 166, 0.08);
  --accent-subtle:    rgba(20, 184, 166, 0.04);

  --bg-main:          #040807;
  --bg-gradient:      radial-gradient(ellipse 90% 70% at 20% -5%, rgba(20, 184, 166, 0.07) 0%, transparent 60%),
                      radial-gradient(ellipse 80% 60% at 85% 105%, rgba(15, 118, 110, 0.05) 0%, transparent 60%),
                      #040807;

  --theme-aurora-1:   #14b8a6;
  --theme-aurora-2:   #0f766e;
  --theme-aurora-3:   #091715;
  --theme-aurora-glow: rgba(20, 184, 166, 0.08);
  --theme-aurora-opacity: 0.38;

  --theme-sidebar-bg:     linear-gradient(180deg, rgba(8, 16, 15, 0.88) 0%, rgba(4, 8, 7, 0.94) 100%);
  --theme-sidebar-border: rgba(255, 255, 255, 0.06);
  --theme-header-bg:      rgba(7, 13, 12, 0.78);
  --theme-player-bg:      linear-gradient(180deg, rgba(9, 18, 17, 0.94) 0%, rgba(4, 8, 7, 0.98) 100%);
  --theme-player-border:  rgba(20, 184, 166, 0.20);
  --theme-card-bg:        rgba(255, 255, 255, 0.03);
  --theme-card-hover:     rgba(20, 184, 166, 0.06);
  --theme-card-border:    rgba(20, 184, 166, 0.15);

  --glass-border-accent:  rgba(20, 184, 166, 0.45);
  --glass-shadow-glow:    0 10px 30px rgba(0, 0, 0, 0.50);
  --text-accent:          #ccfbf1;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  width: 100%; height: 100%;
  min-height: 100%;
  min-height: -webkit-fill-available;
  min-height: 100dvh;
  height: var(--app-height, 100%);
  overflow: hidden;
  background-color: var(--bg-main);
  background-image: var(--bg-gradient);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 15px; line-height: 1.5;
  user-select: none; -webkit-user-select: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.45s cubic-bezier(0.16, 1, 0.3, 1), background-image 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

::-webkit-scrollbar        { width: 5px; height: 5px; }
::-webkit-scrollbar-track  { background: transparent; }
::-webkit-scrollbar-thumb  { background: rgba(255,255,255,0.12); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-md);
}

.glass-card {
  background: rgba(255,255,255,0.038);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  box-shadow: var(--glass-shadow-card);
}

.glass-card:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(255,255,255,0.16);
  transform: translateY(-4px) scale(1.005);
  box-shadow: 0 18px 44px rgba(0,0,0,0.5), 0 0 20px rgba(250,45,72,0.12), 0 1px 0 rgba(255,255,255,0.08) inset;
}

.glass-card.active {
  border-color: var(--glass-border-accent);
  background: var(--accent-glass);
  box-shadow: 0 0 22px rgba(250,45,72,0.2);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 18px;
  font-family: inherit; font-size: 13.5px; font-weight: 650; letter-spacing: 0.1px;
  border-radius: var(--radius-full); border: none; cursor: pointer; outline: none;
  transition: all var(--transition-fast);
  position: relative; overflow: hidden;
}

.btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition-fast); border-radius: inherit;
}
.btn:hover::after  { background: rgba(255,255,255,0.07); }
.btn:active::after { background: rgba(0,0,0,0.08); }

.btn-primary {
  background: var(--accent-gradient); color: #fff;
  box-shadow: none;
}
.btn-primary:hover  { transform: translateY(-1px) scale(1.02); box-shadow: none; }
.btn-primary:active { transform: scale(0.97); }

.btn-glass {
  background: rgba(255,255,255,0.07);
  backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--glass-border); color: var(--text-primary);
  box-shadow: none;
}
.btn-glass:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); transform: translateY(-1px); }

.btn-icon {
  width: 36px; height: 36px;
  min-width: 36px; min-height: 36px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  padding: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border);
  color: var(--text-secondary); cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-icon:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); color: var(--accent-primary); transform: scale(1.08); }
.btn-icon.active { background: var(--accent-gradient); color: #fff; border-color: transparent; box-shadow: 0 0 10px var(--accent-glow); }

.brand-header {
  display: flex; align-items: center; gap: 12px;
  padding: 0 8px 20px 8px;
  margin-bottom: 18px;
}

.brand-wordmark {
  font-family: var(--font-family); font-size: 22px; font-weight: 900; letter-spacing: -0.8px;
  color: #fff; display: inline-flex; align-items: center; line-height: 1;
  text-transform: uppercase; user-select: none;
}
.brand-wordmark .letter-y    { color: #fff; font-weight: 900; }
.brand-wordmark .ampersand   { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; padding: 0 2px; font-weight: 900; font-size: 24px; filter: drop-shadow(0 0 10px var(--accent-glow)); }
.brand-wordmark .letter-music{ color: #fff; font-weight: 800; letter-spacing: 1.5px; font-size: 17px; opacity: 0.92; }
.brand-wordmark.large              { font-size: 48px; letter-spacing: -1.2px; }
.brand-wordmark.large .ampersand   { font-size: 52px; filter: drop-shadow(0 0 24px var(--accent-glow)); }
.brand-wordmark.large .letter-music{ font-size: 38px; letter-spacing: 3px; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: var(--radius-full); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-red { background: var(--accent-glass); color: var(--accent-secondary); border: 1px solid var(--glass-border-accent); }



/* Splash Screen */
#splashScreen {
  position: fixed; inset: 0; z-index: 9999;
  background-color: #05070a;
  background-image:
    radial-gradient(circle at 50% 40%, rgba(250,45,72,0.26) 0%, transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(255,59,92,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(214,27,54,0.18) 0%, transparent 50%),
    #05070a;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 1; visibility: visible;
  transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1), visibility 0.75s ease;
  pointer-events: all; overflow: hidden;
}
#splashScreen.fade-out { opacity: 0; visibility: hidden; pointer-events: none; transform: scale(1.04); }

.splash-orb-1 {
  position: absolute; top: 20%; left: 15%; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(250,45,72,0.4) 0%, transparent 70%);
  filter: blur(90px); border-radius: 50%;
  animation: orbFloat1 7s ease-in-out infinite alternate; pointer-events: none;
}
.splash-orb-2 {
  position: absolute; bottom: 15%; right: 15%; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,71,101,0.3) 0%, transparent 70%);
  filter: blur(85px); border-radius: 50%;
  animation: orbFloat2 8s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes orbFloat1 { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(40px,-30px) scale(1.18); } }
@keyframes orbFloat2 { 0% { transform: translate(0,0) scale(1.1); } 100% { transform: translate(-35px,25px) scale(0.92); } }

.splash-content {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  z-index: 2; animation: splashHeroEntrance 0.9s cubic-bezier(0.16,1,0.3,1) forwards;
}

.splash-logo-box {
  width: 96px; height: 96px; border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.16) 0%, rgba(250,45,72,0.28) 50%, rgba(16,18,24,0.82) 100%),
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.45) 0%, transparent 60%);
  backdrop-filter: blur(40px) saturate(200%); -webkit-backdrop-filter: blur(40px) saturate(200%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.85), 0 0 55px rgba(250,45,72,0.55), inset 0 1px 2px rgba(255,255,255,0.65), inset 0 -2px 6px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.38); position: relative; overflow: hidden;
}
.splash-logo-box::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: linear-gradient(60deg, transparent 35%, rgba(255,255,255,0.45) 50%, transparent 65%);
  transform: rotate(25deg); animation: shineBeam 3s ease-in-out infinite;
}
@keyframes shineBeam { 0% { transform: translateX(-120%) rotate(25deg); } 60%,100% { transform: translateX(120%) rotate(25deg); } }
.splash-logo-box svg { width: 50px; height: 50px; fill: #fff; filter: drop-shadow(0 4px 16px rgba(250,45,72,0.65)); z-index: 1; }

.splash-brand-title { font-size: 36px; font-weight: 900; letter-spacing: -0.5px; color: #fff; display: flex; align-items: center; gap: 2px; text-shadow: 0 4px 24px rgba(0,0,0,0.8); }
.splash-brand-title span { background: linear-gradient(135deg, #fa2d48 0%, #ff5e7e 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 18px rgba(250,45,72,0.75)); }

.splash-soundwave { display: flex; align-items: center; gap: 4px; height: 24px; margin-top: 10px; }
.splash-soundwave-bar { width: 3px; height: 100%; background: linear-gradient(180deg, #ff3b5c 0%, #fa2d48 100%); border-radius: 3px; box-shadow: 0 0 10px var(--accent-glow); animation: waveDance 1s ease-in-out infinite alternate; }
.splash-soundwave-bar:nth-child(1) { height: 35%; animation-delay: .10s; }
.splash-soundwave-bar:nth-child(2) { height: 75%; animation-delay: .35s; }
.splash-soundwave-bar:nth-child(3) { height: 100%; animation-delay: .15s; }
.splash-soundwave-bar:nth-child(4) { height: 60%; animation-delay: .45s; }
.splash-soundwave-bar:nth-child(5) { height: 85%; animation-delay: .25s; }
.splash-soundwave-bar:nth-child(6) { height: 40%; animation-delay: .50s; }
@keyframes waveDance { 0% { transform: scaleY(0.3); } 100% { transform: scaleY(1); } }

.splash-loader-bar { width: 170px; height: 3px; background: rgba(255,255,255,0.1); border-radius: var(--radius-full); overflow: hidden; position: absolute; bottom: 50px; box-shadow: 0 2px 12px rgba(0,0,0,0.6); }
.splash-loader-progress { width: 0%; height: 100%; background: linear-gradient(90deg,#d61b36 0%,#fa2d48 60%,#ff5277 100%); border-radius: var(--radius-full); box-shadow: 0 0 20px rgba(250,45,72,0.95); animation: splashSmoothFill 1.5s cubic-bezier(0.2,0.8,0.3,1) forwards; }
@keyframes splashSmoothFill { 0% { width:0%; opacity:.4; } 25% { width:35%; } 65% { width:78%; } 100% { width:100%; opacity:1; box-shadow:0 0 28px rgba(250,45,72,1); } }
@keyframes splashHeroEntrance { 0% { opacity:0; transform:scale(0.9) translateY(22px); filter:blur(10px); } 100% { opacity:1; transform:scale(1) translateY(0); filter:blur(0); } }

/* ============================================================
   LIVING ATMOSPHERE & CINEMATIC BACKGROUND ENGINE
   ============================================================ */
#appAtmosphere {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  contain: strict;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.6s ease;
}

/* ── Custom / Preset Wallpaper Layer ── */
.atmosphere-wallpaper {
  position: absolute;
  inset: -10px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
  filter: blur(var(--custom-wp-blur, 0px)) brightness(var(--custom-wp-brightness, 0.85));
  will-change: transform, opacity;
}

.atmosphere-wallpaper.active {
  opacity: var(--custom-wp-opacity, 0.65);
  transform: scale(1);
}

/* ── Flowing liquid-silk aurora ── */
.atmosphere-aurora {
  position: absolute;
  inset: -25%;
  width: 150%;
  height: 150%;
  pointer-events: none;
  opacity: var(--theme-aurora-opacity, 0.85);
  transition: opacity 0.8s ease;
  will-change: transform;
  isolation: isolate;
}

.aurora-ribbon {
  position: absolute;
  width: 132%;
  height: 43%;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.22;
  filter: blur(30px);
  background: linear-gradient(108deg,
    transparent 3%,
    var(--theme-aurora-1) 25%,
    var(--theme-aurora-2) 50%,
    var(--theme-aurora-3) 74%,
    transparent 97%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 9%, rgba(0, 0, 0, 0.72) 44%, transparent 73%);
  mask-image: radial-gradient(ellipse at center, #000 9%, rgba(0, 0, 0, 0.72) 44%, transparent 73%);
  will-change: transform;
}

.aurora-ribbon-1 {
  top: 2%;
  left: -24%;
  transform: rotate(-17deg) scaleY(0.74);
  animation: silkRibbonOne 36s ease-in-out infinite alternate;
}

.aurora-ribbon-2 {
  right: -30%;
  bottom: 5%;
  opacity: 0.17;
  background: linear-gradient(105deg,
    transparent 2%,
    var(--theme-aurora-3) 26%,
    var(--theme-aurora-1) 52%,
    var(--theme-aurora-2) 76%,
    transparent 98%);
  transform: rotate(-18deg) scaleY(0.68);
  animation: silkRibbonTwo 43s ease-in-out infinite alternate;
}

.aurora-ribbon-3 {
  top: 32%;
  left: -12%;
  width: 118%;
  height: 34%;
  opacity: 0.12;
  background: linear-gradient(100deg,
    transparent 4%,
    var(--theme-aurora-2) 30%,
    var(--theme-aurora-3) 55%,
    var(--theme-aurora-1) 76%,
    transparent 96%);
  transform: rotate(12deg) scaleY(0.7);
  animation: silkRibbonThree 48s ease-in-out infinite alternate;
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  pointer-events: none;
  will-change: transform;
  opacity: 0.70;
  filter: blur(85px);
  transition: background 1s ease;
}

.aurora-orb-1 {
  width: min(720px, 60vw);
  height: min(720px, 60vw);
  top: -12%;
  left: 2%;
  background: radial-gradient(circle, var(--theme-aurora-1) 0%, rgba(250, 45, 72, 0) 70%);
  animation: floatAurora1 26s ease-in-out infinite alternate;
}

.aurora-orb-2 {
  width: min(800px, 65vw);
  height: min(800px, 65vw);
  top: 35%;
  right: -10%;
  background: radial-gradient(circle, var(--theme-aurora-2) 0%, rgba(0, 210, 255, 0) 70%);
  animation: floatAurora2 32s ease-in-out infinite alternate;
}

.aurora-orb-3 {
  width: min(650px, 55vw);
  height: min(650px, 55vw);
  bottom: -15%;
  left: 20%;
  background: radial-gradient(circle, var(--theme-aurora-3) 0%, rgba(147, 51, 234, 0) 70%);
  animation: floatAurora3 24s ease-in-out infinite alternate;
}

.aurora-orb-4 {
  width: min(480px, 45vw);
  height: min(480px, 45vw);
  top: 15%;
  left: 42%;
  background: radial-gradient(circle, var(--accent-secondary) 0%, rgba(255, 255, 255, 0) 65%);
  opacity: 0.50;
  animation: floatAurora4 28s ease-in-out infinite alternate;
}

/* Subtle Vignette & Contrast Overlay */
.atmosphere-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 35%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, transparent 25%, rgba(0, 0, 0, 0.50) 100%);
  pointer-events: none;
}

/* Ambient Subtle Grid Mesh (Cyber/Cosmic Touch) */
.atmosphere-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 80%);
  opacity: 0.45;
  pointer-events: none;
}

/* ── Smooth Floating Keyframes ── */
@keyframes floatAurora1 {
  0% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }
  33% {
    transform: translate3d(80px, 60px, 0) scale(1.15) rotate(15deg);
  }
  66% {
    transform: translate3d(-60px, 120px, 0) scale(0.92) rotate(-10deg);
  }
  100% {
    transform: translate3d(100px, 40px, 0) scale(1.08) rotate(25deg);
  }
}

@keyframes floatAurora2 {
  0% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }
  40% {
    transform: translate3d(-100px, -70px, 0) scale(1.18) rotate(-20deg);
  }
  70% {
    transform: translate3d(50px, -110px, 0) scale(0.88) rotate(10deg);
  }
  100% {
    transform: translate3d(-70px, 40px, 0) scale(1.10) rotate(-15deg);
  }
}

@keyframes floatAurora3 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(110px, -80px, 0) scale(1.22);
  }
  100% {
    transform: translate3d(-90px, -50px, 0) scale(0.95);
  }
}

@keyframes floatAurora4 {
  0% {
    transform: translate3d(0, 0, 0) scale(0.9);
  }
  50% {
    transform: translate3d(-70px, 90px, 0) scale(1.25);
  }
  100% {
    transform: translate3d(60px, -60px, 0) scale(1);
  }
}

@keyframes silkRibbonOne {
  from { transform: translate3d(-3vw, -2vh, 0) rotate(-17deg) scaleY(0.74); }
  to   { transform: translate3d(5vw, 5vh, 0) rotate(-10deg) scaleY(0.86); }
}

@keyframes silkRibbonTwo {
  from { transform: translate3d(4vw, 2vh, 0) rotate(-18deg) scaleY(0.68); }
  to   { transform: translate3d(-5vw, -4vh, 0) rotate(-10deg) scaleY(0.82); }
}

@keyframes silkRibbonThree {
  from { transform: translate3d(-2vw, 3vh, 0) rotate(12deg) scaleY(0.7); }
  to   { transform: translate3d(4vw, -3vh, 0) rotate(5deg) scaleY(0.82); }
}

/* ── Mobile: keep the aurora lightweight and softly animated ── */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  #appAtmosphere {
    contain: strict;
  }
  .atmosphere-aurora {
    filter: none !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    will-change: auto !important;
    background: radial-gradient(circle at 15% 20%, var(--theme-aurora-1) 0%, transparent 50%),
                radial-gradient(circle at 85% 75%, var(--theme-aurora-2) 0%, transparent 50%) !important;
    opacity: 0.65 !important;
  }
  .aurora-ribbon {
    filter: none;
    opacity: 0.075;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 72%);
    mask-image: radial-gradient(ellipse at center, #000 10%, transparent 72%);
  }
  .aurora-ribbon-3 {
    display: none;
  }
  .aurora-ribbon-1 {
    animation-duration: 52s;
  }
  .aurora-ribbon-2 {
    animation-duration: 58s;
  }
  .aurora-orb {
    display: none !important;
    animation: none !important;
    will-change: auto !important;
  }
  .atmosphere-grid {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aurora-ribbon,
  .aurora-orb {
    animation: none !important;
  }
}

/* ── Screen Locked / Background Freezing (Prevents any GPU consumption in pocket) ── */
html.page-hidden *,
html.page-hidden *::before,
html.page-hidden *::after {
  animation-play-state: paused !important;
}

/* ── Universal Luxury UI + UX Refinements (Prestigious Jewel Aesthetics For All Themes) ── */
.btn-primary,
[data-theme] .btn-primary {
  background: var(--accent-gradient) !important;
  color: #0b0a08 !important;
  font-weight: 700 !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55), 0 0 14px var(--accent-glow) !important;
  text-shadow: none !important;
}

.btn-primary:hover,
[data-theme] .btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 24px var(--accent-glow-strong) !important;
}

.main-play-btn,
.fs-play-pause-btn,
[data-theme] .main-play-btn,
[data-theme] .fs-play-pause-btn {
  background: var(--accent-gradient) !important;
  color: #08080a !important;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.7), 0 0 14px var(--accent-glow) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.fs-play-pause-btn:hover,
[data-theme] .fs-play-pause-btn:hover {
  transform: scale(1.08);
  filter: brightness(1.08);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.8), 0 0 20px var(--accent-glow-strong) !important;
}

.playback-progress-fill,
.fs-playback-progress-fill,
.fs-playback-bar .progress-fill,
[data-theme] .playback-progress-fill,
[data-theme] .fs-playback-progress-fill,
[data-theme] .fs-playback-bar .progress-fill {
  background: var(--accent-gradient) !important;
  box-shadow: 0 0 8px var(--accent-glow) !important;
}

.fs-playback-bar .progress-handle,
[data-theme] .fs-playback-bar .progress-handle {
  background: #ffffff !important;
  border: 2px solid var(--accent-primary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
}

.brand-logo,
[data-theme] .brand-logo {
  background: var(--accent-gradient) !important;
  box-shadow: 0 4px 16px var(--accent-glow) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.sidebar-left,
[data-theme] .sidebar-left {
  background: var(--theme-sidebar-bg) !important;
  border-right: 1px solid var(--theme-sidebar-border) !important;
}

.app-header,
[data-theme] .app-header {
  background: var(--theme-header-bg) !important;
  border-bottom: 1px solid var(--theme-sidebar-border) !important;
}

.nav-link.active,
[data-theme] .nav-link.active {
  background: var(--accent-glass) !important;
  color: #ffffff !important;
  border: 1px solid var(--glass-border-accent) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.nav-link.active i,
[data-theme] .nav-link.active i {
  color: var(--accent-primary) !important;
}

.nav-link:hover,
[data-theme] .nav-link:hover {
  background: var(--accent-subtle) !important;
  color: #ffffff !important;
}

.track-row.playing,
[data-theme] .track-row.playing {
  background: var(--accent-subtle) !important;
  border: 1px solid var(--theme-card-border) !important;
  border-left: 3px solid var(--accent-primary) !important;
}

.track-row.playing .track-title-cell,
.track-row.playing .track-title-text,
[data-theme] .track-row.playing .track-title-cell,
[data-theme] .track-row.playing .track-title-text {
  color: var(--text-accent) !important;
}

@media (hover: hover) and (pointer: fine) {
  .track-row:hover,
  [data-theme] .track-row:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: var(--theme-card-border) !important;
  }
}

.glass-card:hover,
.music-card:hover,
[data-theme] .glass-card:hover,
[data-theme] .music-card:hover {
  border-color: var(--glass-border-accent) !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.65), 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 0 16px var(--accent-glow) !important;
}

.card-play-overlay,
.sounds-card-play-icon,
[data-theme] .card-play-overlay,
[data-theme] .sounds-card-play-icon {
  background: var(--accent-gradient) !important;
  color: #08080a !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
}

.badge-vip,
.quran-card-badge,
[data-theme] .badge-vip,
[data-theme] .quran-card-badge {
  background: var(--accent-glass) !important;
  color: var(--text-accent) !important;
  border: 1px solid var(--glass-border-accent) !important;
}

.hero-banner,
[data-theme] .hero-banner {
  background:
    linear-gradient(135deg, var(--accent-glass) 0%, rgba(12, 13, 18, 0.96) 100%),
    radial-gradient(ellipse 80% 60% at 5% 30%, var(--accent-glow) 0%, transparent 55%) !important;
  border: 1px solid var(--theme-card-border) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.hero-tag,
[data-theme] .hero-tag {
  background: var(--accent-glass) !important;
  border: 1px solid var(--glass-border-accent) !important;
  color: var(--text-accent) !important;
}

.btn-header-upload,
[data-theme] .btn-header-upload {
  background: var(--accent-gradient) !important;
  color: #08080a !important;
  font-weight: 700 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
}

.btn-header-upload:hover,
[data-theme] .btn-header-upload:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 20px var(--accent-glow-strong) !important;
}

.mobile-bottom-nav,
[data-theme] .mobile-bottom-nav {
  background: var(--theme-player-bg);
  border: 1px solid var(--theme-player-border);
}

.mobile-tab-btn.active,
[data-theme] .mobile-tab-btn.active {
  background: var(--accent-glass);
  border: 1px solid var(--glass-border-accent);
}

.mobile-tab-btn.active svg,
.mobile-tab-btn.active i,
[data-theme] .mobile-tab-btn.active svg,
[data-theme] .mobile-tab-btn.active i {
  color: #ffffff;
}

.mobile-nav-search-btn,
[data-theme] .mobile-nav-search-btn {
  background: var(--theme-player-bg);
  border: 1px solid var(--theme-player-border);
}

.control-btn.active,
[data-theme] .control-btn.active {
  color: var(--accent-primary) !important;
  filter: drop-shadow(0 0 6px var(--accent-glow-strong)) !important;
}

.btn-like-heart.liked,
.btn-like-heart.liked i,
[data-theme] .btn-like-heart.liked,
[data-theme] .btn-like-heart.liked i {
  color: var(--accent-primary) !important;
}

/* ── Royal Obsidian: warmer glass, gilded edges, and a richer player island ── */
:root[data-theme="royal"] .glass-card,
:root[data-theme="royal"] .music-card {
  background: linear-gradient(145deg, rgba(38, 31, 20, 0.62), rgba(13, 13, 14, 0.82)) !important;
  border-color: rgba(223, 183, 108, 0.15) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.045) !important;
}

:root[data-theme="royal"] .music-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 13%;
  width: 74%;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(247, 221, 170, 0.52), transparent);
  opacity: 0.52;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

:root[data-theme="royal"] .glass-card:hover,
:root[data-theme="royal"] .music-card:hover {
  background: linear-gradient(145deg, rgba(55, 42, 23, 0.76), rgba(16, 15, 14, 0.92)) !important;
  border-color: rgba(239, 207, 143, 0.42) !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 24px rgba(223, 183, 108, 0.10) !important;
}

:root[data-theme="royal"] .music-card:hover::before {
  opacity: 1;
}

:root[data-theme="royal"] .card-img-wrapper {
  border: 1px solid rgba(223, 183, 108, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), 0 12px 28px rgba(0, 0, 0, 0.30);
}

:root[data-theme="royal"] .nav-link.active {
  background: linear-gradient(100deg, rgba(223, 183, 108, 0.14), rgba(223, 183, 108, 0.035)) !important;
  border: 1px solid rgba(223, 183, 108, 0.18);
  box-shadow: inset 2px 0 0 rgba(239, 207, 143, 0.78), 0 6px 20px rgba(0, 0, 0, 0.18);
}

:root[data-theme="royal"] .bottom-player {
  background: linear-gradient(115deg, rgba(41, 32, 19, 0.96), rgba(18, 17, 15, 0.97) 52%, rgba(9, 10, 12, 0.98)) !important;
  border-color: rgba(223, 183, 108, 0.30) !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.68), 0 0 28px rgba(223, 183, 108, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.13) !important;
}

:root[data-theme="royal"] .player-center-card .progress-track {
  background: linear-gradient(90deg, rgba(223, 183, 108, 0.25), rgba(255, 255, 255, 0.13));
}


