
        

        /* NOTA SİSTEMİ VE ESNEK PANEL GÖRÜNÜMÜ */
        #song-content-section {
            position: relative; /* Nota panelinin bunun içinde mutlak konumlanması için */
        }

        #song-notation-slide {
            max-height: 0;
            opacity: 0;
            overflow: hidden;
            transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
            background: var(--bg-card-low, #1a1a1a);
            border-bottom: 1px solid var(--border, #2e2e2e);
            border-radius: 0 0 1.5rem 1.5rem; /* Alt kısımlar oval */
            position: absolute; /* Şarkıyı ittirmemesi için absolute yapıldı */
            top: 0;
            left: 0;
            right: 0;
            z-index: 45; /* Şarkı metninin üstünde kalması için */
            box-shadow: 0 15px 40px rgba(0,0,0,0.4);
        }
        #song-notation-slide.open {
            max-height: 20000px; /* İçeriğe göre kısıtlanmadan sonsuz uzaması için */
            overflow: visible; /* Kaydırma çubuğunu yok edip taşırmak için */
            opacity: 1;
        }

        /* CHORDIVE ZARİF NOTA KAĞIDI */
        .notation-paper-chordive {
            background: #f4f6f4 !important; /* Gözü yormayan gerçek kağıt tonu */
            border-radius: 1.5rem;
            padding: 24px;
            box-shadow: inset 0 2px 12px rgba(0,0,0,0.1);
            color: #111611;
            width: 100%;
        }
        .notation-paper-chordive svg {
            width: 100% !important;
            height: auto !important;
        }

        /* NOTA STÜDYOSU EDİTÖRÜ */
        .notation-editor-area {
            width: 100%;
            font-family: 'Cousine', monospace;
            font-size: 14px;
            line-height: 1.6;
            background: var(--glass);
            backdrop-filter: blur(var(--bg-blur, 20px));
            -webkit-backdrop-filter: blur(var(--bg-blur, 20px));
            color: #16e000; /* Chordive Kurumsal Yeşil */
            padding: 18px;
            border-radius: 1.5rem;
            border: 1px solid var(--border, #2e2e2e);
            min-height: 350px;
            resize: vertical;
            outline: none;
        }
        body.reduced-motion .notation-editor-area { background: rgba(0,0,0,0.25); backdrop-filter: none; -webkit-backdrop-filter: none; }
        .notation-editor-area:focus {
            border-color: #16e000;
        }

        .snippet-btn {
            background: var(--bg-card-highest, #2a2a2a);
            border: 1px solid var(--border, #3a3a3a);
            color: var(--text-main, #ffffff);
            border-radius: 10px;
            padding: 6px 12px;
            font-size: 15px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .snippet-btn:hover {
            background: rgba(22, 224, 0, 0.15);
            color: #16e000;
            border-color: #16e000;
        }

        /* Akıllı Takip Modu Aktif Akor Rengi */
        .smart-active-chord {
            background-color: #eab308 !important;
            color: #000 !important;
            border-radius: 4px;
            padding: 0 4px;
            box-shadow: 0 0 10px rgba(234, 179, 8, 0.5);
            transition: all 0.3s;
        }

        /* Vurgulama modundayken yanlışlıkla normal metin seçilmeyi (kopyalama modunu) engeller */
        body.highlight-on {
          user-select: none;
          -webkit-user-select: none;
        }

        /* ÇAKIŞAN KURALLAR BİRLEŞTİRİLDİ */
        /* Akorların ve metinlerin tam hizalanması için Courier New kullanımına geçildi */
        .song-display-area, #d-content, #song-rendered-content, #song-detail-content {
            font-family: 'Open Sans', 'Inter', sans-serif !important;
            white-space: pre-wrap !important;
            overflow-x: hidden !important;
            word-break: break-word !important;
            word-wrap: break-word !important;
            letter-spacing: 0px !important;
            tab-size: 4 !important;
        }
        /* Bracket [Am]söz satırları: chunk flex — düz (monospace) satırlara dokunma */
        #song-rendered-content .song-line:has(.chord-lyric-chunk),
        #duo-right-split-content .song-line:has(.chord-lyric-chunk) {
            display: flex !important;
            flex-wrap: wrap !important;
            align-items: flex-end !important;
            white-space: normal !important;
            word-break: normal !important;
            overflow-wrap: normal !important;
            width: 100%;
        }
        #song-rendered-content .song-line:has(.chord-lyric-chunk) > div,
        #duo-right-split-content .song-line:has(.chord-lyric-chunk) > div {
            flex: 0 0 auto !important;
            width: max-content !important;
            max-width: none !important;
            min-width: max-content !important;
            white-space: pre !important;
            word-break: normal !important;
            overflow-wrap: normal !important;
        }
        #song-rendered-content .song-line:has(.chord-lyric-chunk) > div > div,
        #duo-right-split-content .song-line:has(.chord-lyric-chunk) > div > div {
            white-space: pre !important;
            word-break: normal !important;
            overflow-wrap: normal !important;
            max-width: none !important;
        }
        /* Düz akor+söz: düzenleme (Open Sans + pre-wrap) ile birebir */
        #song-rendered-content .song-line:not(:has(.chord-lyric-chunk)),
        #duo-right-split-content .song-line:not(:has(.chord-lyric-chunk)) {
            display: block !important;
            white-space: pre-wrap !important;
            word-break: break-word !important;
            overflow-wrap: break-word;
            width: 100%;
            font-family: 'Open Sans', 'Inter', sans-serif !important;
            line-height: 1.5;
        }
        #song-rendered-content .song-line-inner,
        #duo-right-split-content .song-line-inner {
            display: inline !important;
            max-width: none !important;
            white-space: pre-wrap !important;
            font-family: inherit !important;
            line-height: inherit;
        }
        #song-content-input .edit-live-chord {
            color: var(--chord-color, #16e000);
            font-weight: 700;
            cursor: pointer;
        }

        /* Kıtalar ve satırlar arasındaki alt alta olan boşluk sorununu çözer */
        .verse-block {
            margin-bottom: 2rem !important;
            display: block;
            width: 100%;
        }

        /* Editör içindeki tüm paragrafların boşluk kurallarını sabitleyelim */
        .ck.ck-editor__editable_inline p {
            white-space: pre !important; /* pre-wrap yerine pre yapıldı, böylece boşluklar bozulmaz */
            margin: 0 !important;
            font-family: 'Courier New', Courier, monospace !important; /* Akorlarla tam hizalanması için düzeltildi */
        }

        .interactive-chord, .raw-chord, .easy-chord-span {
            margin: 0 !important;
            padding: 0 !important;
            letter-spacing: 0px !important;
            display: inline-block;
        }

        /* Editör ve gösterim alanı için ortak ayarlar */
        .chord-content, #song-input-editor, .ck-editor__editable {
            font-family: 'Courier New', Courier, monospace !important; /* Sabit genişlikli font */
            white-space: pre !important;        /* Boşlukları (space) ve satır başlarını korur */
            tab-size: 4 !important;            /* Tab boşluklarını sabitle */
            letter-spacing: 0px !important;    /* Harf aralığını bozmamak için sıfırla */
            line-height: 1.5 !important;       /* Akor ve söz satırları arası mesafeyi sabitle */
        }

        /* Şarkı Stüdyosu Editörü Özel Rozet (Badge) Görünümü */
        /* Editör içindeki "x2" gibi tekrarlama etiketlerinin Courier New ve satır yüksekliği baskısından kurtarılıp normal görünmesini sağlar */
        .ck-editor__editable span[style*="background-color"],
        #song-input-editor span[style*="background-color"] {
            font-family: 'Inter', 'Open Sans', sans-serif !important; /* Rozet fontunu modern tutar */
            line-height: normal !important; /* Şişkin görünümü engeller */
            vertical-align: baseline !important;
            display: inline-block !important;
            letter-spacing: normal !important;
            color: #ffffff !important; /* Editör karanlık modlarına karşı metni beyaz tutar */
        }

        .chord-item {
            display: inline-block;
            white-space: pre; /* Akorun kendi içindeki boşluğu koru */
            font-weight: bold;
            /* Akorların sözlerin tam üzerinde kalması için */
            margin-bottom: -2px;
        }

        .ck.ck-editor__editable_inline:focus { outline: none !important; border: none !important; box-shadow: none !important; }
        .ck.ck-toolbar { background: var(--bg-card-low) !important; border: none !important; border-bottom: 1px solid var(--border) !important; border-radius: 0 !important; padding: 8px 16px !important; }
        .ck.ck-button { color: var(--text) !important; cursor: pointer; }
        .ck.ck-button:hover { background: rgba(29,185,84,0.1) !important; color: #1DB954 !important; }
        .ck.ck-button.ck-on { background: rgba(29,185,84,0.2) !important; color: #1DB954 !important; }
        .ck.ck-icon { fill: currentColor !important; }
        .ck.ck-dropdown__panel { background: var(--bg-card-highest) !important; border: 1px solid var(--border) !important; }
        .ck.ck-list__item__button { color: var(--text) !important; }
        .ck.ck-list__item__button:hover { background: rgba(29,185,84,0.1) !important; }

          /* Glass Select Scrollbar */
        .glass-options-dropdown::-webkit-scrollbar { width: 6px; }
        .glass-options-dropdown::-webkit-scrollbar-track { background: transparent; }
        .glass-options-dropdown::-webkit-scrollbar-thumb { background: #1DB954; border-radius: 10px; }

        /* Ekleyen kişi profil popup'ı gibi uzun listelerde sağda beliren
           kalın scroll çubuğunu gizler / inceltir, kaydırma işlevi kalır. */
        .custom-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
        .custom-scrollbar::-webkit-scrollbar { width: 0; height: 0; display: none; }


        /* Sahne oluştur - checkbox kare, site yeşili */
        .stage-song-checkbox {
          -webkit-appearance: none;
          appearance: none;
          width: 20px;
          height: 20px;
          border-radius: 6px;
          border: 2px solid rgba(29,185,84,0.5);
          background: var(--bg-card-highest);
          cursor: pointer;
          transition: all 0.2s;
          flex-shrink: 0;
        }
        .stage-song-checkbox:checked {
          background: #1DB954;
          border-color: #1DB954;
          background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
          background-repeat: no-repeat;
          background-position: center;
          background-size: 12px;
        }

        
        :root {
          --bg: #0d100d;
          --bg-card: #121512;
          --bg-card-low: #0f120f;
          --bg-card-high: #1a1e1a;
          --bg-card-highest: #242824;
          --text: #dde5d9;
          --text-muted: #bccbb9;
          --border: rgba(255,255,255,0.05);
          --border-hover: rgba(29,185,84,0.4);
          --nav-glass-rgb: 16, 19, 16;
          --glass-alpha: 0.6;
          --glass: rgba(var(--nav-glass-rgb), var(--glass-alpha, 0.6));
          --surface-container: var(--glass);
          --surface-container-high: var(--glass);
        }

        /* Açık mod kaldırıldı — her zaman koyu palet; nav rengi kullanıcı seçer */
        html.light {
          --bg: #0d100d;
          --bg-card: #121512;
          --bg-card-low: #0f120f;
          --bg-card-high: #1a1e1a;
          --bg-card-highest: #242824;
          --text: #dde5d9;
          --text-muted: #bccbb9;
          --border: rgba(255,255,255,0.05);
          --border-hover: rgba(29,185,84,0.4);
          --glass: rgba(var(--nav-glass-rgb), var(--glass-alpha, 0.6));
        }
        /* Admin SPA modu — üye nav gizle, yönetim nav göster */
        body.admin-mode .member-only-nav { display: none !important; }
        body.admin-mode .admin-only-nav { display: flex !important; }
        body.admin-mode #admin-nav-group.admin-only-nav { display: block !important; }
        body.admin-mode #admin-sidebar-footer.admin-only-nav { display: block !important; }
        body.admin-mode #sidebar-member-footer { display: none !important; }
        body.admin-mode #sidebar-user-block { display: none !important; }
        body.admin-mode .bottom-nav .admin-only-nav { display: flex !important; }
        body.admin-mode #detail-album-wrap { cursor: pointer; }
        body.admin-mode #detail-album-wrap[title]::after { content: none; }
        /* İpuçları paneli adminde gizli; şarkı bilgileri solda kalsın */
        body.admin-mode .member-studio-meta { display: none !important; }
        body.admin-mode #studio-meta-heading.member-studio-meta,
        body.admin-mode #studio-meta-fields.member-studio-meta,
        body.admin-mode #studio-meta-fields {
          display: block !important;
        }
        body.admin-mode #studio-meta-under-save.admin-studio-meta-slot { display: none !important; }
        body.admin-mode #home-hero-carousel { display: none !important; }
        body.admin-mode #library-side-panel { display: none !important; }
        body.admin-mode #library-archive-toggle,
        body.admin-mode #library-archive-toggle-mobile { display: none !important; }
        /* Eski Kaydet-altı yerleşimi (geriye uyum) */
        body.admin-mode #studio-meta-under-save .member-studio-meta,
        body.admin-mode #studio-meta-under-body .member-studio-meta,
        body.admin-mode #studio-meta-under-body #studio-meta-fields {
          display: block !important;
        }
        body.guest-mode .guest-hide-nav { display: none !important; }
        body.guest-mode .guest-member-only { display: none !important; }
        .archive-scope-badge {
          font-size: 9px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase;
          color: var(--text-muted, #888);
        }
        .archive-scope-badge.mine { color: #1DB954; }
        .archive-scope-badge.global { color: #94a3b8; }
        #member-notif-badge,
        .member-notif-badge {
          display: none;
          position: absolute;
          top: -2px;
          right: -2px;
          min-width: 16px;
          height: 16px;
          padding: 0 4px;
          border-radius: 999px;
          background: #22c55e;
          color: #052e16;
          font-size: 10px;
          font-weight: 900;
          line-height: 16px;
          text-align: center;
        }
        #member-notif-badge.visible,
        .member-notif-badge.visible { display: inline-block; }
        .pro-upsell-backdrop {
          position: fixed; inset: 0; z-index: 9999;
          background: rgba(0,0,0,0.65); backdrop-filter: blur(6px);
          display: flex; align-items: center; justify-content: center; padding: 1.25rem;
        }
        .pro-upsell-card {
          width: min(420px, 100%);
          border-radius: 1.5rem;
          border: 1px solid var(--border);
          background: var(--bg-card);
          padding: 1.75rem;
          box-shadow: 0 24px 64px rgba(0,0,0,0.45);
        }
        .pro-upsell-video-slot {
          width: 100%; aspect-ratio: 16/9; border-radius: 1rem;
          background: var(--bg-card-highest); border: 1px dashed var(--border);
          display: flex; align-items: center; justify-content: center;
          color: var(--text-muted, #888); font-size: 12px; margin: 1rem 0;
        }
        .admin-diff-del { background: rgba(239,68,68,0.28); color: #fca5a5; text-decoration: line-through; }
        .admin-diff-ins { background: rgba(29,185,84,0.28); color: #86efac; font-weight: 700; }

        html, body {
          overscroll-behavior: none;
        }
        /* Uygulama açıkken sadece içerik alanı kayar — nav barları sabit kalır */
        body:has(#app-shell:not(.hidden)) {
          overflow: hidden !important;
          height: 100% !important;
          width: 100% !important;
        }
        #app-shell:not(.hidden) {
          display: block !important;
          height: 100dvh !important;
          max-height: 100dvh !important;
          overflow: hidden !important;
        }
        #main-content {
          box-sizing: border-box;
          overflow-x: hidden;
          overflow-y: auto;
          -webkit-overflow-scrolling: touch;
          height: 100dvh;
          max-height: 100dvh;
          /* Chromium: scroller içindeki backdrop-filter yalnızca bu kutu içini örnekler.
             Duvar kağıdı sticky katmanda; solid bg olmasın. */
          background-color: transparent;
          isolation: auto;
        }
        #main-wallpaper-layer {
          position: sticky;
          top: 0;
          left: 0;
          width: 100%;
          pointer-events: none;
          z-index: 0;
          background-size: cover;
          background-position: center;
          background-repeat: no-repeat;
          background-attachment: scroll !important;
        }
        #main-content > .page,
        #main-content > .chordive-modal-backdrop,
        #main-content > [id^="page-"] {
          position: relative;
          z-index: 1;
        }
        /* Chromium'da scroller içindeki bir cam panel, yalnızca kendi normal akış
           atalarının arka planını örnekleyebiliyor: sticky/fixed ayrı katmanlar
           (sidebar bulanıklaşırken sayfa kartları bulanıklaşmıyordu). Duvar kağıdını
           doğrudan sayfa kabına basıp viewport'a sabitliyoruz. */
        html.wallpaper-on-page {
          background-image: var(--wallpaper-dim, none), var(--wallpaper-img, none);
          background-color: var(--wallpaper-color, transparent);
          background-size: cover, cover;
          background-position: center, center;
          background-repeat: no-repeat, no-repeat;
          background-attachment: fixed, fixed;
        }
        html.wallpaper-on-page #main-content > .page,
        html.wallpaper-on-page #main-content > [id^="page-"]:not(.chordive-modal-backdrop) {
          background-image: var(--wallpaper-dim, none), var(--wallpaper-img, none);
          background-color: var(--wallpaper-color, transparent);
          background-size: cover, cover;
          background-position: center, center;
          background-repeat: no-repeat, no-repeat;
          background-attachment: fixed, fixed;
        }
        /* Kenar çubuğu genişlerken Chromium fixed arka planı bir kare boyunca kaydırır.
           O karede sayfa katmanını kapatıp tek parça html duvar kağıdını gösteriyoruz. */
        html.wallpaper-on-page.wallpaper-heal #main-content > .page,
        html.wallpaper-on-page.wallpaper-heal #main-content > [id^="page-"]:not(.chordive-modal-backdrop) {
          background-image: none !important;
          background-color: transparent !important;
        }
        html.wallpaper-on-page.wallpaper-heal .glass-panel,
        html.wallpaper-on-page.wallpaper-heal .glass-box {
          background-color: rgba(16, 19, 16, 0.72) !important;
        }
        html.wallpaper-on-page #main-wallpaper-layer {
          display: none !important;
        }
        body {
          background-color: var(--bg);
          color: var(--text);
          -webkit-tap-highlight-color: transparent;
          transition: background-color 0.3s, color 0.3s;
        }
        
        /* Donanım hızlandırma: glass panellere / içerik sarmalayıcıya transform VERME —
           transform containing block Chromium'da wallpaper backdrop-filter'ını keser. */
        /* Dinamik arka plan rengi */
        .bg-surface         { background-color: var(--bg) !important; }
        .bg-surface-container      { background-color: var(--bg-card) !important; }
        .bg-surface-container-low  { background-color: var(--bg-card-low) !important; }
        .bg-surface-container-high { background-color: var(--bg-card-high) !important; }
        .bg-surface-container-highest { background-color: var(--bg-card-highest) !important; }
        .text-on-surface    { color: var(--text) !important; }
        .text-on-surface-variant { color: var(--text-muted) !important; }
        .border-white\/5    { border-color: var(--border) !important; }
        .glass-panel, .glass-box { background: var(--glass) !important; }
        body.reduced-motion .glass-panel, body.reduced-motion .glass-box { background: var(--bg-card) !important; box-shadow: none !important; }

        /* Bulanıklık kaydırıcısı — profil kartları, ayar satırları, nav çubukları, modallar */
        #page-profile .glass-panel, #page-profile .glass-box,
        aside#main-sidebar, header.top-bar, nav.bottom-nav,
        .profile-settings-row,
        .chordive-modal-backdrop,
        .chordive-ui-blur {
          backdrop-filter: blur(var(--bg-blur, 20px)) !important;
          -webkit-backdrop-filter: blur(var(--bg-blur, 20px)) !important;
        }
        /* Cam kutular — içlerinde crisp media olsa bile kart blur alsın */
        .glass-panel,
        .glass-box {
          backdrop-filter: blur(var(--bg-blur, 20px)) !important;
          -webkit-backdrop-filter: blur(var(--bg-blur, 20px)) !important;
        }
        /* Albüm / sanatçı görselleri net kalsın */
        .chordive-crisp-media,
        .chordive-crisp-media * {
          backdrop-filter: none !important;
          -webkit-backdrop-filter: none !important;
        }
        body.reduced-motion .glass-panel, body.reduced-motion .glass-box,
        body.reduced-motion #page-profile .glass-panel, body.reduced-motion #page-profile .glass-box,
        body.reduced-motion aside#main-sidebar, body.reduced-motion header.top-bar,
        body.reduced-motion nav.bottom-nav, body.reduced-motion .profile-settings-row,
        body.reduced-motion .chordive-modal-backdrop,
        body.reduced-motion .chordive-ui-blur {
          backdrop-filter: none !important;
          -webkit-backdrop-filter: none !important;
        }
        body.reduced-motion .profile-settings-row {
          background: var(--bg-card) !important;
        }

        /* Ayarlar/Profil sayfasındaki kartlara gölge */
        #page-profile .glass-panel, #page-profile .glass-box {
          box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35) !important;
        }

        /* İç rgba / Tailwind opacity katmanlarına ayrı blur YOK.
           Masaüstünde her alt kutuya backdrop-filter basmak Chromium'da
           iç içe backdrop kökü oluşturup cam kartların duvar kağıdını
           örneklemesini kesiyordu (telefon/tablette bu kural zaten kapalıydı).
           Asıl cam yüzeyler: .glass-panel, .glass-box, nav, aside, var(--bg-card). */
        body.reduced-motion [style*="backdrop-filter"],
        body.reduced-motion [class*="backdrop-blur"],
        body.reduced-motion [class~="bg-black/10"], body.reduced-motion [class~="bg-black/20"],
        body.reduced-motion [class~="bg-black/30"], body.reduced-motion [class~="bg-black/40"],
        body.reduced-motion [class~="bg-black/50"], body.reduced-motion [class~="bg-black/60"],
        body.reduced-motion [class~="bg-black/70"], body.reduced-motion [class~="bg-black/80"],
        body.reduced-motion [class~="bg-black/90"], body.reduced-motion [class~="bg-black/95"],
        body.reduced-motion [class~="bg-white/5"], body.reduced-motion [class~="bg-white/10"],
        body.reduced-motion [class~="bg-white/20"], body.reduced-motion [class~="bg-white/30"],
        body.reduced-motion [class~="bg-white/40"], body.reduced-motion [class~="bg-white/50"],
        body.reduced-motion [class*="bg-primary/"], body.reduced-motion [class*="bg-zinc-"],
        body.reduced-motion [class*="bg-neutral-"], body.reduced-motion [class*="bg-red-500/"],
        body.reduced-motion [class*="bg-amber-500/"], body.reduced-motion [class*="bg-emerald-"],
        body.reduced-motion [style*="background:rgba"], body.reduced-motion [style*="background: rgba"],
        body.reduced-motion [style*="background-color:rgba"], body.reduced-motion [style*="background-color: rgba"],
        body.reduced-motion [style*="var(--surface-container"] {
          backdrop-filter: none !important;
          -webkit-backdrop-filter: none !important;
        }

        /* YENİ: SOL NAVİGASYON BARI İLE RENK EŞİTLEME
           Arama kutuları / input / araç çubukları var(--glass) tonunu alır.
           BULANIKLIK yalnızca dış cam yüzeylerde (.glass-panel, aside, nav…) —
           her alt kutuya backdrop-filter basmak Chromium'da iç içe kök oluşturup
           duvar kağıdı bulanıklığını öldürüyordu (perf aç/kapa sonrası kaybolma). */
        [style*="var(--bg-card)"]:not([style*="url("]):not(.chordive-crisp-media):not(.chordive-crisp-media *),
        [style*="var(--bg-card-low)"]:not([style*="url("]):not(.chordive-crisp-media):not(.chordive-crisp-media *),
        [style*="var(--bg-card-high)"]:not([style*="url("]):not(.chordive-crisp-media):not(.chordive-crisp-media *),
        [style*="var(--bg-card-highest)"]:not([style*="url("]):not(.chordive-crisp-media):not(.chordive-crisp-media *),
        .bg-surface-container:not(#global-bg):not(#global-bg-overlay):not(#detail-album-wrap):not(.chordive-crisp-media),
        .bg-surface-container-low, .bg-surface-container-high, .bg-surface-container-highest {
          background: var(--glass) !important;
        }
        /* Dış cam çerçeveler — tek katman blur (iç içe değil) */
        .glass-panel:not(.chordive-crisp-media),
        .glass-box:not(.chordive-crisp-media),
        aside#main-sidebar,
        header.top-bar,
        nav.bottom-nav,
        .profile-settings-row,
        .chordive-ui-blur,
        .chordive-modal-backdrop,
        #chord-library-panel {
          backdrop-filter: blur(var(--bg-blur, 20px)) !important;
          -webkit-backdrop-filter: blur(var(--bg-blur, 20px)) !important;
        }
        #global-bg, #global-bg-overlay,
        #song-detail-artist-bg, #song-detail-header .chordive-crisp-media,
        #detail-album-wrap, #detail-album-wrap img, #detail-album-thumb,
        .chordive-crisp-media, .chordive-crisp-media *, .chordive-crisp-media::before, .chordive-crisp-media::after {
          backdrop-filter: none !important;
          -webkit-backdrop-filter: none !important;
          filter: none !important;
          -webkit-filter: none !important;
        }
        #song-detail-artist-bg { filter: none !important; }
        /* Header karartma katmanı blur tetiklemesin — büyük kapak net kalsın */
        #song-detail-header > .absolute {
          backdrop-filter: none !important;
          -webkit-backdrop-filter: none !important;
          filter: none !important;
        }
        #detail-album-wrap {
          background-color: #0e150e !important;
          isolation: isolate;
        }
        #detail-album-wrap .absolute { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
        /* Azaltılmış Hareket Modunda bu yüzeyler diğer camlar gibi tekrar KATI (opak, bulanıksız) döner */
        body.reduced-motion [style*="var(--bg-card)"] {
          background: var(--bg-card) !important;
          backdrop-filter: none !important;
          -webkit-backdrop-filter: none !important;
        }
        body.reduced-motion [style*="var(--bg-card-low)"] {
          background: var(--bg-card-low) !important;
          backdrop-filter: none !important;
          -webkit-backdrop-filter: none !important;
        }
        body.reduced-motion [style*="var(--bg-card-high)"] {
          background: var(--bg-card-high) !important;
          backdrop-filter: none !important;
          -webkit-backdrop-filter: none !important;
        }
        body.reduced-motion [style*="var(--bg-card-highest)"] {
          background: var(--bg-card-highest) !important;
          backdrop-filter: none !important;
          -webkit-backdrop-filter: none !important;
        }
        body.reduced-motion .bg-surface-container { background: var(--bg-card) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
        body.reduced-motion .bg-surface-container-low { background: var(--bg-card-low) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
        body.reduced-motion .bg-surface-container-high { background: var(--bg-card-high) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
        body.reduced-motion .bg-surface-container-highest { background: var(--bg-card-highest) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

        /* Global Wallpaper Katmanları */
        #global-bg { position: fixed; inset: 0; z-index: -2; background-color: var(--bg); background-size: cover; background-position: center; background-repeat: no-repeat; background-attachment: scroll; transform: none !important; transition: opacity 0.5s ease, background-color 0.5s ease; }
        #global-bg-overlay { position: fixed; inset: 0; z-index: -1; background: var(--bg); transform: none !important; transition: opacity 0.5s ease; opacity: 0.7; }

        /* Sidebar & header arka planları - Masaüstü Oval Sol Bar */
        aside {
          background: var(--glass) !important;
          backdrop-filter: blur(var(--bg-blur, 20px)) !important;
          -webkit-backdrop-filter: blur(var(--bg-blur, 20px)) !important;
        }
        @media (min-width: 1024px) {
          aside {
            top: 1rem !important;
            bottom: 1rem !important;
            left: 1rem !important;
            height: calc(100vh - 2rem) !important;
            border-radius: 2rem !important;
            border: 1px solid var(--border) !important;
            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35) !important;
            overflow: hidden;
          }
        }
        html.light aside {
          background: var(--glass) !important;
        }

        /* Üst Bar (Sol Navigasyon Barı ile Birebir Aynı Ton — var(--glass)) */
        header.top-bar {
          background: var(--glass) !important;
          backdrop-filter: blur(var(--bg-blur, 20px)) !important;
          -webkit-backdrop-filter: blur(var(--bg-blur, 20px)) !important;
          border-bottom: 1px solid var(--border) !important;
        }
        html.light header.top-bar {
          background: var(--glass) !important;
          border-bottom: 1px solid rgba(0,0,0,0.08) !important;
        }
        html.light .bg-neutral-950\/90,
        html.light .bg-neutral-950\/80,
        html.light .bg-neutral-950\/95 {
          background-color: transparent !important; /* veya hangi kural gelecekse */
        }

        /* Alt navigasyon + profil ayar satırları — birebir aynı cam yapı (var(--glass) + --bg-blur) */
        nav.bottom-nav,
        .profile-settings-row {
          background: var(--glass) !important;
          backdrop-filter: blur(var(--bg-blur, 20px)) !important;
          -webkit-backdrop-filter: blur(var(--bg-blur, 20px)) !important;
        }
        nav.bottom-nav {
          border-top: 1px solid var(--border) !important;
        }
        .profile-settings-row {
          border: 1px solid var(--border) !important;
        }

        /* Tüm Saydam Modallar İçin Dinamik Blur */
        #pitch-modal, #duo-song-selector-modal, #chord-library-modal, #chord-detail-modal, #countdown-modal, #metronome-modal, #tuner-modal, #global-tab-modal, #create-stage-modal, #create-venue-stage-modal, #looper-pro-modal, #band-sync-modal, .chordive-modal-backdrop {
          backdrop-filter: blur(var(--bg-blur, 20px)) !important;
          -webkit-backdrop-filter: blur(var(--bg-blur, 20px)) !important;
        }
        html.light nav.bottom-nav,
        html.light .profile-settings-row {
          background: var(--glass) !important;
        }
        html.light nav.bottom-nav {
          border-top: 1px solid rgba(0,0,0,0.08) !important;
        }
        html.light .profile-settings-row {
          border-color: rgba(0,0,0,0.08) !important;
        }
        html.light nav.bottom-nav button {
          color: var(--text-muted) !important;
        }
        html.light nav.bottom-nav button.active-nav-item {
          color: #1DB954 !important;
        }
        html.light input, html.light textarea, html.light select {
          color: var(--text) !important;
        }
        html.light .text-white { color: #1a211a !important; }
        html.light #page-home .relative.rounded-\[2\.5rem\] .absolute.bottom-0 h1 { color: #1a211a !important; }
        html.light .bg-primary { background-color: #1DB954 !important; }
        html.light .border-primary\/30 { border-color: rgba(29,185,84,0.4) !important; }
        html.light .text-zinc-500 { color: #6b7b6b !important; }

        :root {
          --chord-color: #16e000;
          --highlight-bg: rgba(29,185,84,0.18);
          --highlight-border: #1DB954;
        }
        html.light {
          --chord-color: #0d7a3a;
        }
        /* Açık mod: neon yeşilleri koyu yeşile çek */
        html.light .text-\[\#16e000\],
        html.light [class*="text-[#16e000]"],
        html.light .capo-text,
        html.light #inline-bpm-display,
        html.light #studio-bpm-display {
          color: #0d7a3a !important;
        }
        html.light .interactive-chord,
        html.light .raw-chord,
        html.light .easy-chord-span {
          text-shadow: 0 1px 1px rgba(0,0,0,0.28), 0 0 2px rgba(0,0,0,0.18);
        }

        /* Açık mod — ton kaydet / genel ton mini butonları */
        .tone-chip-btn {
          border: 1.5px solid transparent;
          transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
          box-shadow: 0 1px 4px rgba(0,0,0,0.18);
        }
        .tone-chip-btn:active { transform: scale(0.94); }
        .tone-chip-save {
          background: #1DB954 !important;
          color: #000 !important;
          border-color: rgba(0,0,0,0.12) !important;
        }
        .tone-chip-global {
          background: #525252 !important;
          color: #fff !important;
          border-color: rgba(255,255,255,0.15) !important;
        }
        .tone-chip-global.is-active {
          background: #a855f7 !important;
          border-color: rgba(168,85,247,0.5) !important;
          color: #fff !important;
        }
        .tone-chip-reset {
          background: var(--bg-card-high) !important;
          color: var(--text) !important;
          border-color: rgba(29,185,84,0.35) !important;
        }
        html.light .tone-chip-save {
          background: rgba(29,185,84,0.14) !important;
          color: #0a6b32 !important;
          border-color: #1DB954 !important;
          box-shadow: 0 1px 4px rgba(0,0,0,0.14);
        }
        html.light .tone-chip-global {
          background: rgba(82,82,82,0.12) !important;
          color: #3f3f46 !important;
          border-color: rgba(0,0,0,0.18) !important;
        }
        html.light .tone-chip-global.is-active {
          background: rgba(168,85,247,0.16) !important;
          color: #7c3aed !important;
          border-color: #a855f7 !important;
        }

        /* Açık mod — ana sayfa yeşil kalp ve sayaçlar */
        html.light .home-stat-badge {
          color: #0a6b32 !important;
          background: rgba(29,185,84,0.16) !important;
          box-shadow: 0 1px 3px rgba(0,0,0,0.14);
        }
        html.light .home-heart-icon.is-added-heart,
        html.light .home-heart-icon[style*="#1DB954"] {
          color: #0a6b32 !important;
          filter: drop-shadow(0 1px 2px rgba(0,0,0,0.28));
        }
        html.light .home-heart-icon:not(.is-added-heart) {
          filter: drop-shadow(0 1px 1px rgba(0,0,0,0.12));
        }

        /* Açık mod — şarkı başlığı geri / sanatçı okunabilirliği */
        html.light #song-back-btn {
          box-shadow: 0 1px 4px rgba(0,0,0,0.22);
          text-shadow: 0 1px 2px rgba(0,0,0,0.35);
        }
        html.light #detail-artist {
          text-shadow: 0 1px 3px rgba(0,0,0,0.45), 0 0 6px rgba(0,0,0,0.2);
        }
        html.light #detail-title {
          text-shadow: 0 1px 4px rgba(0,0,0,0.4);
        }
        html.light .song-view-heart-icon.is-added-heart,
        html.light .song-view-heart-icon[style*="#1DB954"] {
          color: #0a6b32 !important;
          filter: drop-shadow(0 1px 2px rgba(0,0,0,0.45));
        }
        html.light .song-view-heart-btn {
          box-shadow: 0 1px 4px rgba(0,0,0,0.2);
        }

        .material-symbols-outlined { font-family:'Material Symbols Outlined',sans-serif; font-variation-settings:'FILL' 0,'wght' 400,'GRAD' 0,'opsz' 24; cursor:pointer; line-height:1; letter-spacing:normal; text-transform:none; white-space:nowrap; }
        /* Repertuar kalbi — PC tarayıcılarda FILL ekseni class ile ezilmesin; her yerde dolu */
        .material-symbols-outlined.is-added-heart,
        .home-heart-icon.is-added-heart,
        .song-view-heart-icon.is-added-heart {
          font-variation-settings: 'FILL' 1, 'wght' 700, 'GRAD' 0, 'opsz' 24 !important;
          font-feature-settings: 'FILL' 1;
        }
        html:not(.icons-ready) .material-symbols-outlined { visibility:hidden; position:relative; overflow:hidden; }
        html:not(.icons-ready) .material-symbols-outlined::before { content:''; visibility:visible; position:absolute; inset:0; margin:auto; width:0.55em; height:0.55em; border-radius:50%; background:currentColor; opacity:0.2; }
        .no-scrollbar::-webkit-scrollbar { display:none; }

        /* Tablet ve Telefonlar için Global Kaydırma Çubuğu Gizleme (İşlev aktif kalır) */
        @media (max-width: 1024px) {
          * {
            -ms-overflow-style: none !important;
            scrollbar-width: none !important;
          }
          *::-webkit-scrollbar {
            display: none !important;
          }
        }

        /* Dokunmatik / tablet — scroll wallpaper (fixed backdrop-filter'ı Chrome/PC'de de kırar) */
        html.chordive-touch #global-bg {
          background-attachment: scroll !important;
        }
        /* NOT: #main-content'e translateZ VERME — transform containing block oluşturup
           glass panellerde wallpaper backdrop-filter'ını (profil dışı) öldürüyordu.
           Liste performansı content-visibility ile sağlanıyor. */
        html.chordive-touch #library-list-container .glass-box,
        html.chordive-touch #profile-archive-list .archive-list-item {
          content-visibility: auto;
          contain-intrinsic-size: auto 52px;
        }
        /* Küresel rgba blur kuralını dokunmatikte kapat — yüzlerce öğeye blur uygulanmasın */
        html.chordive-touch [style*="background:rgba"]:not(.chordive-crisp-media):not(.chordive-crisp-media *),
        html.chordive-touch [style*="background: rgba"]:not(.chordive-crisp-media):not(.chordive-crisp-media *),
        html.chordive-touch [style*="background-color:rgba"]:not(.chordive-crisp-media):not(.chordive-crisp-media *),
        html.chordive-touch [style*="background-color: rgba"]:not(.chordive-crisp-media):not(.chordive-crisp-media *),
        html.chordive-touch [class~="bg-black/10"]:not(.chordive-crisp-media):not(.chordive-crisp-media *),
        html.chordive-touch [class~="bg-black/20"]:not(.chordive-crisp-media):not(.chordive-crisp-media *),
        html.chordive-touch [class~="bg-black/30"]:not(.chordive-crisp-media):not(.chordive-crisp-media *),
        html.chordive-touch [class~="bg-black/40"]:not(.chordive-crisp-media):not(.chordive-crisp-media *),
        html.chordive-touch [class~="bg-white/5"]:not(.chordive-crisp-media):not(.chordive-crisp-media *),
        html.chordive-touch [class~="bg-white/10"]:not(.chordive-crisp-media):not(.chordive-crisp-media *) {
          backdrop-filter: none !important;
          -webkit-backdrop-filter: none !important;
        }
        html.chordive-touch #page-profile .glass-panel,
        html.chordive-touch #page-profile .glass-box {
          box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22) !important;
        }

        /* Küçük ekranda nav etiketleri kaybolur */
        @media (max-width: 380px) { .nav-label { display:none !important; } }
        .interactive-chord { cursor:pointer; color:var(--chord-color); transition:color 0.2s; font-weight:bold; border-bottom: none !important; text-decoration: none !important; padding:0; }
        .interactive-chord:hover { filter: brightness(1.2); background:rgba(255,255,255,0.05); }
        .active-nav-item { color:#1DB954 !important; }
        .active-nav-item .material-symbols-outlined { font-variation-settings:'FILL' 1; }
        .fade-in { animation:fadeIn 0.15s ease-out forwards; }
        /* NOT: transform kasıtlı olarak kaldırıldı — animasyon bitince "forwards" yüzünden
           transform:translateY(0) kalıcı olarak öğede kalıyordu; bu da o öğenin ve içindeki
           TÜM cam (glass) kutularının backdrop-filter bulanıklığının sabit arka plan duvar
           kağıdıyla doğru şekilde hizalanmasını (dolayısıyla bulanıklaşmasını) engelliyordu.
           Sonuç: sol nav bar bulanıklaşırken .page içindeki kartlar bulanıklaşmıyordu. */
        @keyframes fadeIn { from{opacity:0} to{opacity:1} }

        /* Giriş ekranı — shell içinde (sidebar / arkaplan korunur) */
        #auth-screen.auth-in-shell {
          position: fixed;
          top: 0;
          right: 0;
          bottom: 0;
          left: 0;
          z-index: 40;
          display: flex !important;
          align-items: flex-start;
          justify-content: center;
          background: transparent;
          padding: 1rem;
          padding-top: 4.75rem;
          padding-bottom: calc(72px + env(safe-area-inset-bottom, 16px));
          pointer-events: none;
          overflow-y: auto;
        }
        #auth-screen.auth-in-shell > * { pointer-events: auto; }
        #auth-screen.auth-in-shell .auth-card {
          margin-top: 0.5rem;
        }
        @media (min-width: 1024px) {
          #auth-screen.auth-in-shell {
            left: 18rem;
            padding-top: 2.5rem;
            padding-bottom: 1.25rem;
            align-items: flex-start;
          }
          body.sidebar-collapsed #auth-screen.auth-in-shell { left: 5.5rem; }
          #auth-screen.auth-in-shell .auth-card {
            margin-top: 1.5rem;
          }
        }
        .archive-in-mine-hint {
          display: block;
          font-size: 9px;
          font-weight: 900;
          letter-spacing: 0.08em;
          text-transform: uppercase;
          color: #1DB954;
          margin-top: 1px;
          line-height: 1.2;
        }
        .archive-in-mine-hint--inline {
          display: inline;
          flex-shrink: 0;
          margin-top: 0;
          white-space: nowrap;
        }
        .song-ruler-layout {
          display: flex;
          flex-direction: row;
          align-items: center;
          gap: 0.375rem;
          width: 100%;
        }
        .song-ruler-main {
          flex: 1 1 auto;
          min-width: 0;
          width: 100%;
        }
        /* Uzun cetvel: 12 nota şarkı çerçevesine eşit yayılır */
        #long-ruler-group:not(.hidden) {
          display: flex;
          flex: 1 1 auto;
          width: 100%;
          min-width: 0;
          gap: 0.2rem;
        }
        #long-ruler-group > button.ruler-key-btn {
          flex: 1 1 0;
          min-width: 0;
          max-width: none;
          height: 2.15rem;
          padding: 0.2rem 0.1rem !important;
          font-size: 11px !important;
          border-radius: 0.55rem !important;
        }
        @media (min-width: 1024px) {
          #long-ruler-group > button.ruler-key-btn {
            height: 2.35rem;
            font-size: 12px !important;
          }
          #tone-action-group {
            transform: none !important;
            margin-left: 0.25rem;
          }
          #tone-action-group .tone-chip-btn {
            width: 1.85rem;
            height: 1.85rem;
          }
          #tone-action-group .tone-chip-btn .material-symbols-outlined {
            font-size: 15px !important;
          }
        }
        /* Misafir: slider tamamen yok (gölge dahil) */
        body.guest-mode #home-hero-carousel,
        #home-hero-carousel.hidden {
          display: none !important;
          height: 0 !important;
          margin: 0 !important;
          padding: 0 !important;
          box-shadow: none !important;
          border: none !important;
          overflow: hidden !important;
        }
        #home-section-recent.home-recent-flush,
        body.guest-mode #home-section-recent {
          margin-top: 0 !important;
        }
        /* Açık/Koyu mod: sadece admin (/chordive) oturumunda gizle */
        body.admin-mode .theme-toggle-btn { display: none !important; }

        /* ZEN MODU - Tam Ekran ve Animasyonlu Sıfırlama */
        body.zen-mode aside, body.zen-mode nav, body.zen-mode header { display:none !important; }
        body.zen-mode main { padding-top:0 !important; margin-left:0 !important; }
        #song-detail-header { border-color: transparent !important; outline: none !important; box-shadow: none !important; }
        body.zen-mode #song-detail-header { height: 0 !important; padding: 0 !important; margin: 0 !important; opacity: 0 !important; overflow: hidden !important; border: none !important; outline: none !important; box-shadow: none !important; min-height: 0 !important; border-color: transparent !important; }
        body.zen-mode #song-rendered-content { padding-top: 0 !important; margin-top: 0 !important; }
        /* Normal Mod Sticky Ayarları */
        #song-toolbar-section {
          position: sticky !important;
          top: 64px !important; /* Mobil navbar yüksekliği */
          z-index: 35 !important; /* Üst logonun bulunduğu barın (z-40) altında kalması için düşürüldü */
          box-shadow: 0 4px 20px rgba(0,0,0,0.2);
          background: var(--bg-card) !important; /* Şarkı sözleri alttan kayarken üst üste binmesin diye */
        }

        /* Albüm kapağı araç çubuğunun arkasında: çok bulanık + %50 karartma */
        #song-toolbar-section { isolation: isolate; }
        #song-toolbar-section.has-cover {
          background: #000 !important;
          border-color: rgba(255,255,255,0.08) !important;
        }
        .song-toolbar-cover {
          display: none;
          position: absolute;
          inset: 0;
          z-index: -1;
          overflow: hidden;
          pointer-events: none;
          border-radius: inherit;
        }
        #song-toolbar-section.has-cover .song-toolbar-cover { display: block; }
        .song-toolbar-cover::before {
          content: '';
          position: absolute;
          inset: -80px;
          background-image: var(--song-cover-img);
          background-size: cover;
          background-position: center 70%;
          filter: blur(48px) saturate(1.35);
          transform: translateZ(0);
        }
        .song-toolbar-cover::after {
          content: '';
          position: absolute;
          inset: 0;
          background: rgba(0,0,0,0.5);
        }

        /* Arşiv ve Sahne menüsü içinde açıldığında kendi scroll alanına göre hizalanır */
        #library-song-view #song-toolbar-section,
        #stages-song-view #song-toolbar-section {
          top: 0 !important;
        }

        @media (min-width: 1024px) {
          #song-toolbar-section {
            top: 0 !important; /* Masaüstünde en üstte */
          }
        }

        /* ZEN MODU Sticky Ayarları */
        body.zen-mode #song-toolbar-section {
          position: sticky !important;
          top: 0 !important;
          margin: 0 !important;
          border-top: none !important;
          z-index: 60 !important;
          border-radius: 1.5rem 1.5rem 0 0 !important;
          background: var(--bg-card) !important;
        }
        /* ZEN MODU — dış panel şekli tüm ekranlarda masaüstü ile aynı */
        body.zen-mode #song-content-section {
          padding: 8px !important;
        }
        body.zen-mode #duo-left-wrapper {
          border-radius: 1rem !important;
          overflow: hidden !important;
        }
        /* Sahne listelerim yan paneli — zen modda toolbar (z-60) üstünde kalsın */
        body.zen-mode #library-side-panel {
          z-index: 100 !important;
        }
        body.zen-mode #library-side-panel > button {
          z-index: 101 !important;
        }
        /* Tablet/telefon zen: üst boşluk */
        @media (max-width: 1023px) {
          body.zen-mode #main-content {
            padding-top: calc(env(safe-area-inset-top, 0px) + 6px) !important;
          }
          body.zen-mode.has-pinned-widgets #main-content {
            padding-top: calc(env(safe-area-inset-top, 0px) + 6px) !important;
          }
          body.zen-mode #page-song-detail,
          body.zen-mode #page-library,
          body.zen-mode #page-stages {
            padding-top: 0 !important;
            margin-top: 0 !important;
          }
          body.zen-mode #song-detail-movable-container {
            margin-top: 0 !important;
          }
          body.zen-mode #song-detail-header {
            min-height: 0 !important;
          }
        }

        /* Açık mod — ana sayfa bölüm başlık ikonları */
        html.light #page-home h2 .material-symbols-outlined.text-primary {
          color: #0a6b32 !important;
          filter: drop-shadow(0 1px 2px rgba(0,0,0,0.18));
        }

        /* Şarkı paneli içeriği kadar olsun; alttaki boş cam alanı kalmasın */
        #stages-song-view, #library-song-view {
          overflow-y: visible !important;
          height: auto !important;
          min-height: 0;
        }
        /* .flex kuralı .hidden'dan güçlüydü; kapanan şarkı kabuğu arşivin altında duruyordu */
        #library-song-view.hidden,
        #stages-song-view.hidden,
        #library-layout:has(#library-list-view:not(.hidden)) #library-song-view,
        #stages-layout:has(#stages-list-view:not(.hidden)) #stages-song-view,
        #stages-layout:has(#stages-detail-view:not(.hidden)) #stages-song-view {
          display: none !important;
        }
        /* Listelerim yalnızca açık akorun içinden, butonla gelsin */
        #library-layout:has(#library-list-view:not(.hidden)) > #library-side-panel {
          display: none !important;
        }
        /* Kapalıyken cam/blur hayaleti kalmasın — yalnız sekme butonu görünsün */
        #library-side-panel.translate-x-full {
          background: transparent !important;
          border-color: transparent !important;
          box-shadow: none !important;
          backdrop-filter: none !important;
          -webkit-backdrop-filter: none !important;
          pointer-events: none !important;
        }
        #library-side-panel.translate-x-full > *:not(button) {
          visibility: hidden !important;
          opacity: 0 !important;
        }
        #library-side-panel.translate-x-full > button {
          pointer-events: auto !important;
          visibility: visible !important;
          opacity: 1 !important;
        }
        #library-layout:has(#library-song-view:not(.hidden)),
        #stages-layout:has(#stages-song-view:not(.hidden)) {
          height: auto;
        }
        /* Şarkı ↔ arşiv geçişinde genişlik/flex kaymasın */
        #library-main-panel,
        #stages-main-panel,
        #library-song-view,
        #stages-song-view,
        #library-list-view,
        #library-layout {
          transition-property: opacity, border-color, box-shadow, background-color !important;
        }
        /* Şarkı açıkken panel cam çerçevesi tam genişlik — arşiv/global aynı görünüm */
        #library-main-panel:has(#library-song-view:not(.hidden)),
        #stages-main-panel:has(#stages-song-view:not(.hidden)) {
          flex: 1 1 auto;
          width: 100%;
          max-width: 100%;
          height: auto;
        }
        #library-song-view:not(:has(.dual-active)) #song-content-section,
        #stages-song-view:not(:has(.dual-active)) #song-content-section,
        #library-song-view:not(:has(.dual-active)) #song-nav-wrap,
        #stages-song-view:not(:has(.dual-active)) #song-nav-wrap {
          flex: 0 0 auto;
          width: 100%;
          height: auto;
          min-height: 0;
          overflow: visible;
          align-items: stretch;
        }
        #library-song-view:not(:has(.dual-active)) #duo-left-outer,
        #stages-song-view:not(:has(.dual-active)) #duo-left-outer,
        #library-song-view:not(:has(.dual-active)) #duo-left-wrapper,
        #stages-song-view:not(:has(.dual-active)) #duo-left-wrapper {
          flex: 1 1 auto;
          width: 100%;
          height: auto;
          min-height: 0;
          overflow: visible;
        }
        #library-song-view:not(:has(.dual-active)) #song-rendered-content,
        #stages-song-view:not(:has(.dual-active)) #song-rendered-content {
          flex: none !important;
          width: 100%;
          height: auto !important;
          min-height: 0 !important;
          overflow: visible !important;
        }
        #stages-song-view.flex, #library-song-view.flex {
          display: flex;
          flex-direction: column;
        }
        /* Netlify’nin ücretsiz hesap rozeti — ayardan da kapatılır */
        #netlify-drawer,
        .netlify-drawer,
        [data-netlify-drawer],
        iframe[title="Netlify Drawer"],
        iframe[src*="netlify-drawer"] {
          display: none !important;
          visibility: hidden !important;
          pointer-events: none !important;
        }

        /* İKİYE BÖLME - Kıtaların parçalanmasını önler - RESPONSIVE */
        .two-column-content {
          column-count: 2 !important;
          column-gap: 4rem !important;
          text-align: left;
          column-rule: 1px solid var(--border);
          column-rule-style: dashed;
          display: block !important;
          overflow: visible !important; /* Tekli modda çalışmasını sağlayan kritik kod */
        }
        .two-column-content .song-line {
          display: flex;
          flex-direction: column;
        }

        .two-column-content .verse-block {
          break-inside: avoid;
          page-break-inside: avoid;
          margin-bottom: 1.5rem;
          display: block;
          width: 100%;
        }

        .two-column-content .song-line {
          break-inside: avoid;
          page-break-inside: avoid;
        }

        /* Potpori: her şarkı bloğu kolon içinde bölünmesin; sağ kolon her zaman başlık kutusuyla başlasın */
        body.potpori-mode #song-yt-btn,
        body.potpori-mode #song-request-edit-btn,
        body.potpori-mode #song-publish-global-btn,
        body.potpori-mode .song-view-heart-btn,
        body.potpori-mode #btn-song-shuffle {
          display: none !important;
        }

        .two-column-content .potpori-song-block {
          break-inside: avoid;
          page-break-inside: avoid;
          -webkit-column-break-inside: avoid;
          display: block;
          width: 100%;
          margin-bottom: 1.25rem;
        }
        .two-column-content .potpori-song-header {
          break-after: avoid;
          page-break-after: avoid;
          -webkit-column-break-after: avoid;
        }
        .two-column-content .potpori-song-block.potpori-col-break {
          break-before: column;
          page-break-before: always;
          -webkit-column-break-before: always;
        }

        .page {
          min-height: 100vh;
        }

        /* Mobil cihazlarda tek kolon */
        @media (max-width: 768px) {
          .two-column-content {
            columns: 1;
          }
        }

        /* İkili geçiş kontrol butonları */
        .toggle-column-btn {
          display: inline-flex;
          align-items: center;
          gap: 0.25rem;
          padding: 0.5rem;
          border-radius: 9999px;
          border: 1px solid var(--border);
          background: var(--bg-card-high);
          cursor: pointer;
          transition: all 0.2s;
          margin-left: 0.5rem;
        }

        .toggle-column-btn:hover {
          background: var(--bg-card-highest);
          border-color: var(--border-hover);
        }

        .toggle-column-btn.active {
          background: var(--primary);
          color: var(--on-primary);
          border-color: var(--primary);
        }

        .toggle-column-btn .indicator {
          width: 8px;
          height: 8px;
          border-radius: 2px;
          background: currentColor;
          margin: 0 2px;
        }

        /* AZALTILMIŞ HAREKET MODU */
        html.reduced-motion-early *, body.reduced-motion *, body.reduced-motion *::before, body.reduced-motion *::after {
          animation-duration: 0.01ms !important;
          animation-iteration-count: 1 !important;
          transition-duration: 0.01ms !important;
        }
        #duo-left-outer { position: relative; flex: 1; display: flex; flex-direction: column; min-width: 0; }
        #song-nav-wrap {
          display: flex;
          flex-direction: row;
          align-items: stretch;
        }
        #duo-right-wrapper {
          flex-shrink: 0;
          min-width: 0;
          align-self: stretch;
        }
        #library-song-view:has(#duo-right-wrapper:not(.hidden)) #song-nav-wrap,
        #stages-song-view:has(#duo-right-wrapper:not(.hidden)) #song-nav-wrap {
          display: flex !important;
          flex-direction: row !important;
          align-items: stretch !important;
          flex: 1 1 auto !important;
          height: auto !important;
          min-height: 0;
        }
        #duo-right-wrapper {
          flex: 0 0 auto !important;
          width: 0;
          min-width: 0;
          overflow: hidden;
          opacity: 1 !important;
          transform: none !important;
          transition: width 500ms cubic-bezier(0.4, 0, 0.2, 1) !important;
        }
        #song-nav-wrap.duo-open #duo-right-wrapper {
          width: 50%;
        }
        #song-nav-wrap #duo-left-outer {
          flex: 1 1 auto;
          width: auto;
          min-width: 0;
          overflow: hidden;
          transition: none;
        }
        [data-drag-handle] { touch-action: none; }
        .chord-diagram-svg { display: block; width: 100%; max-width: 100%; }
        /* Sidebar kenar sekmesi kaldırıldı — eski yuvarlak buton kullanılıyor */
        .collapse-btn-icon { transition: transform 0.3s; }
        body.sidebar-collapsed .collapse-btn-icon { transform: rotate(180deg); }
        /* Ana sayfa genişletilmiş bölüm — üstten açılır (zen benzeri) */
        #home-top-widgets { transition: max-height 0.45s ease, opacity 0.35s ease, margin 0.35s ease; overflow: hidden; }
        #stage-top-widgets {
          transition: max-height 0.2s ease, opacity 0.2s ease, margin 0.2s ease, transform 0.2s ease;
          overflow: hidden;
          transform-origin: top center;
        }
        #stage-top-widgets.home-widgets-collapse-fast { transition: max-height 0.2s ease, opacity 0.2s ease, margin 0.2s ease, transform 0.2s ease !important; }
        #home-expanded-view {
          transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
          transform-origin: top center;
        }
        #home-expanded-view.home-expand-enter {
          opacity: 0;
          transform: scaleY(0.96);
        }
        #home-expanded-view.home-expand-active {
          opacity: 1;
          transform: scaleY(1);
        }
        /* Tablet/telefon: Yeni Eklenenler — soft açılış.
           Animasyon bitince transform sınıfı kaldırılır (blur kırılmasın). */
        html.chordive-touch #home-expanded-view {
          transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
        }
        html.chordive-touch #home-expanded-view.home-expand-enter {
          opacity: 0;
          transform: translateY(22px) scale(0.985);
        }
        html.chordive-touch #home-expanded-view.home-expand-active {
          opacity: 1;
          transform: translateY(0) scale(1);
        }
        html.chordive-touch #home-expanded-view.home-expand-done {
          opacity: 1 !important;
          transform: none !important;
        }
        #home-expanded-view.home-expand-done {
          opacity: 1;
        }
        html.chordive-touch #home-top-widgets {
          transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease, margin 0.45s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
        }
        html.chordive-touch #song-detail-header {
          transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease, padding 0.45s ease, margin 0.45s ease, min-height 0.45s ease;
          max-height: 280px;
          overflow: hidden;
        }
        html.chordive-touch body.zen-mode #song-detail-header {
          max-height: 0 !important;
          transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease, padding 0.45s ease, margin 0.45s ease !important;
        }
        html.chordive-touch #song-toolbar-section {
          transition: top 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-radius 0.4s ease, box-shadow 0.4s ease;
        }
        /* Tablet/PC ikili: yandan gelsin. Yalnız telefon (max 639) alttan gelsin. */
        @media (min-width: 640px) {
          html.chordive-touch #duo-right-wrapper {
            transform: none !important;
            transition: width 500ms cubic-bezier(0.4, 0, 0.2, 1) !important;
          }
          html.chordive-touch #duo-right-wrapper.duo-soft-enter,
          html.chordive-touch #duo-right-wrapper.duo-soft-active,
          html.chordive-touch #duo-right-wrapper.duo-soft-done {
            transform: none !important;
            opacity: 1;
          }
        }
        /* Telefon: ikili mod — aynı sayfa içinde alt alta (sabit overlay yok) */
        @media (max-width: 639px) {
          .song-ruler-layout {
            flex-direction: row !important;
            flex-wrap: wrap !important;
            align-items: center !important;
          }
          .song-ruler-main {
            flex: 1 1 100% !important;
            order: 1;
            min-width: 0;
          }
          #tone-action-group {
            order: 2;
            margin-left: auto !important;
            transform: none !important;
          }
          #song-nav-wrap.duo-phone-stack {
            flex-direction: row !important;
            align-items: stretch !important;
            overflow: hidden !important;
            height: auto !important;
            min-height: 0 !important;
          }
          #song-content-section:has(#song-nav-wrap.duo-phone-stack) {
            overflow: visible !important;
          }
          #song-nav-wrap.duo-phone-stack #duo-left-outer {
            flex: 0 0 auto !important;
            width: 100% !important;
            min-height: 42vh !important;
            max-height: none !important;
          }
          #song-nav-wrap.duo-phone-stack #duo-left-wrapper {
            min-height: 42vh !important;
            height: auto !important;
            width: 100% !important;
          }
          #song-nav-wrap.duo-phone-stack #song-rendered-content {
            min-height: 42vh !important;
            height: auto !important;
            max-height: none !important;
            overflow-y: auto !important;
          }
          #song-nav-wrap.duo-phone-stack #duo-right-wrapper {
            position: relative !important;
            left: auto !important;
            right: auto !important;
            bottom: auto !important;
            top: auto !important;
            width: 0 !important;
            height: auto !important;
            min-height: 0 !important;
            max-height: none !important;
            overflow: hidden !important;
            flex: 0 0 auto !important;
            z-index: 1 !important;
            align-self: stretch !important;
            border-radius: 0.75rem !important;
            box-shadow: none !important;
            margin-top: 0 !important;
            opacity: 1 !important;
            transform: none !important;
            transition: width 500ms cubic-bezier(0.4, 0, 0.2, 1) !important;
          }
          #song-nav-wrap.duo-phone-stack.duo-open #duo-right-wrapper {
            width: 50% !important;
            max-height: none !important;
            min-height: 0 !important;
            margin-top: 0 !important;
            overflow: hidden !important;
          }
          #song-nav-wrap.duo-phone-stack #duo-right-wrapper.duo-phone-enter,
          #song-nav-wrap.duo-phone-stack #duo-right-wrapper.duo-phone-active {
            transform: none !important;
            opacity: 1 !important;
          }
          #song-nav-wrap.duo-phone-stack #duo-right-split-panel {
            min-height: 42vh !important;
            height: auto !important;
          }
          #song-nav-wrap.duo-phone-stack #duo-right-split-content,
          #song-nav-wrap.duo-phone-stack #inline-duo-list-container {
            min-height: 42vh !important;
          }
          #song-content-section:has(#song-nav-wrap.duo-phone-stack) {
            flex: none !important;
            height: auto !important;
            overflow: visible !important;
          }
          #song-detail-movable-container:has(.duo-phone-stack) {
            height: auto !important;
            overflow: visible !important;
          }
          /* hidden / sm:hidden sınıflarını ezme — Kolay telefonda kısa kalsın */
          #song-toolbar .toolbar-btn .toolbar-btn-label.hidden {
            display: none !important;
          }
          @media (min-width: 640px) {
            #song-toolbar .toolbar-btn .toolbar-btn-label.sm\:hidden {
              display: none !important;
            }
            #song-toolbar .toolbar-btn .toolbar-btn-label.hidden.sm\:inline {
              display: inline !important;
            }
          }
          @media (max-width: 639px) {
            #song-toolbar .toolbar-btn .toolbar-btn-label.sm\:hidden {
              display: inline !important;
            }
          }
          /* Sahne listelerim sekmesi — bir tık daha yukarı */
          #library-side-panel > button {
            top: calc(env(safe-area-inset-top, 0px) + 1.15rem) !important;
          }
          /* Tüm toolbar butonları Böl/Not/Gizle ile aynı kompakt boyut */
          #song-toolbar .toolbar-btn,
          #song-toolbar .song-toolbar-secondary .toolbar-btn {
            padding: 0.2rem 0.35rem !important;
            font-size: 0.58rem !important;
            gap: 2px !important;
            min-height: 1.65rem !important;
          }
          #song-toolbar .toolbar-btn .material-symbols-outlined {
            font-size: 0.95rem !important;
          }
          #btn-zen-in-toolbar { display: none !important; }
          #stages-list-container .stages-phone-actions {
            gap: 0.35rem !important;
          }
          #stages-list-container .stages-phone-actions > button {
            min-width: 0 !important;
            padding: 0.45rem 0.35rem !important;
            font-size: 0.58rem !important;
            gap: 0.2rem !important;
            border-radius: 0.75rem !important;
          }
          #stages-list-container .stages-phone-actions > button .material-symbols-outlined {
            font-size: 0.9rem !important;
          }
          /* Cetvel ayarı (telefon): yazı üste ortalı, select alta */
          #profile-ruler-mode-row {
            align-items: stretch !important;
            min-height: 7.5rem;
            padding-top: 0.85rem !important;
            padding-bottom: 0.85rem !important;
          }
          #profile-ruler-mode-row .profile-ruler-copy {
            text-align: center !important;
            padding-right: 0 !important;
            margin-top: 0.15rem;
          }
          #profile-ruler-mode-row .profile-ruler-select {
            width: 100% !important;
            margin-top: auto;
            align-self: stretch;
          }
          #song-detail-header-actions {
            bottom: 0.75rem !important;
            right: 0.75rem !important;
            gap: 0.35rem !important;
          }
        }
        /* Tablet: toolbar zen butonu yok; kompakt boyut */
        @media (min-width: 768px) and (max-width: 1023px) {
          #btn-zen-in-toolbar { display: none !important; }
          #song-toolbar .toolbar-btn {
            padding: 0.25rem 0.4rem !important;
            font-size: 0.62rem !important;
            min-height: 1.75rem !important;
          }
          #song-toolbar .toolbar-btn .material-symbols-outlined {
            font-size: 1rem !important;
          }
        }
        html.chordive-touch #inline-duo-list-container {
          transition: opacity 280ms ease !important;
          transform: none !important;
        }
        /* Karaoke: seçili nota + söz (inline style ile de boyanır) */
        .notation-paper-chordive g.abcjs-note.nota-karaoke-on path,
        .notation-paper-chordive g.abcjs-rest.nota-karaoke-on path,
        .notation-paper-chordive g.abcjs-note.nota-karaoke-on ellipse,
        .notation-paper-chordive g.abcjs-rest.nota-karaoke-on ellipse {
          fill: #ef4444 !important;
          stroke: #ef4444 !important;
        }
        .notation-paper-chordive text.nota-karaoke-lyric,
        .notation-paper-chordive tspan.nota-karaoke-lyric {
          fill: #ef4444 !important;
          font-weight: 700 !important;
        }
        /* Nota tıklama — açılır düzenleme kutusu */
        #nota-edit-pop {
          position: fixed;
          z-index: 99990;
          min-width: 188px;
          max-width: min(260px, 92vw);
          padding: 8px;
          border-radius: 12px;
          border: 1px solid rgba(255,255,255,0.14);
          background: rgba(18, 22, 18, 0.58);
          backdrop-filter: blur(10px);
          -webkit-backdrop-filter: blur(10px);
          box-shadow: 0 10px 28px rgba(0,0,0,0.28);
          color: var(--text, #e8eee8);
          display: none;
          flex-direction: column;
          gap: 6px;
          pointer-events: auto;
        }
        #nota-edit-pop.is-open { display: flex; }
        #nota-edit-pop .nep-title {
          font-size: 10px;
          font-weight: 800;
          letter-spacing: 0.06em;
          text-transform: uppercase;
          color: var(--text-muted, #8a968a);
          padding: 2px 4px 4px;
        }
        #nota-edit-pop .nep-row {
          display: flex;
          flex-wrap: wrap;
          gap: 4px;
        }
        #nota-edit-pop .nep-btn {
          flex: 0 0 auto;
          min-width: 2rem;
          padding: 5px 7px;
          border-radius: 8px;
          border: 1px solid var(--border, rgba(255,255,255,0.12));
          background: rgba(255,255,255,0.04);
          color: inherit;
          font-size: 12px;
          font-weight: 800;
          cursor: pointer;
          line-height: 1.2;
        }
        #nota-edit-pop .nep-btn:hover {
          border-color: rgba(22, 224, 0, 0.45);
          background: rgba(22, 224, 0, 0.12);
        }
        #nota-edit-pop .nep-btn.danger:hover {
          border-color: rgba(239, 68, 68, 0.5);
          background: rgba(239, 68, 68, 0.12);
        }
        #nota-edit-pop .nep-sep {
          height: 1px;
          background: rgba(255,255,255,0.08);
          margin: 2px 0;
        }
        .notation-paper-chordive g.abcjs-note,
        .notation-paper-chordive g.abcjs-rest {
          cursor: pointer;
        }
        .notation-inst-btn.active {
          background: #16e000 !important;
          color: #000 !important;
          border-color: transparent !important;
        }
        .notation-archive-item:hover { border-color: rgba(22, 224, 0, 0.45) !important; }
        #notation-song-picker-bar { overflow: visible !important; position: relative; z-index: 80; }
        #notation-song-picker-dropdown {
          position: absolute; left: 12px; right: 12px; top: 100%;
          margin-top: 6px;
          max-height: min(320px, 50vh); overflow-y: auto; z-index: 90;
          border-radius: 1rem; border: 1px solid var(--border);
          background: var(--bg-card-highest, #1a1a1a);
          box-shadow: 0 16px 40px rgba(0,0,0,0.45);
        }
        #notation-song-picker-dropdown .nsp-item:hover { background: rgba(22,224,0,0.12); }
        #page-notation { overflow: visible !important; }
        #notation-guitar-tab-editor {
          font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
          white-space: pre; line-height: 1.35;
        }
        /* Nota Stüdyosu — Mus2 tarzı: masaüstü/tablet sol araç şeridi */
        #page-notation .notation-studio-header-actions {
          display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center;
        }
        #page-notation .notation-studio-header-actions > button,
        #page-notation .notation-studio-header-actions > label {
          padding: 0.55rem 0.85rem !important;
          font-size: 0.75rem !important;
          border-radius: 0.75rem !important;
        }
        #notation-editor-view.notation-mus2 {
          display: flex;
          flex-direction: column;
          gap: 0.75rem;
        }
        #notation-tools-rail {
          display: flex;
          flex-direction: row;
          flex-wrap: nowrap;
          gap: 0.35rem;
          overflow-x: auto;
          overflow-y: hidden;
          padding: 0.5rem;
          border-radius: 1rem;
          border: 1px solid var(--border);
          background: var(--bg-card-highest, rgba(0,0,0,0.25));
          -webkit-overflow-scrolling: touch;
          scrollbar-width: none;
          -ms-overflow-style: none;
        }
        #notation-tools-rail::-webkit-scrollbar { display: none; width: 0; height: 0; }
        #notation-tools-rail .notation-tool-btn {
          flex: 0 0 auto;
          min-width: 2.8rem;
          min-height: 2.5rem;
          padding: 0.45rem 0.5rem;
          font-size: 1.25rem;
          font-weight: 800;
          border-radius: 0.65rem;
          white-space: nowrap;
          line-height: 1;
        }
        #notation-tools-rail .notation-tool-sep {
          width: 1px;
          align-self: stretch;
          background: rgba(255,255,255,0.1);
          flex: 0 0 1px;
          margin: 0 0.15rem;
        }
        #notation-studio-main-col {
          display: flex;
          flex-direction: column;
          gap: 0.75rem;
          min-width: 0;
          flex: 1;
        }
        @media (min-width: 768px) {
          #notation-editor-view.notation-mus2 {
            flex-direction: row;
            align-items: stretch;
            gap: 0.85rem;
          }
          #notation-tools-rail {
            flex-direction: column;
            flex-wrap: nowrap;
            width: 6.15rem;
            min-width: 6.15rem;
            max-height: min(78vh, 820px);
            overflow-x: hidden;
            overflow-y: auto;
            padding: 0.45rem;
            position: sticky;
            top: 0.75rem;
            align-self: flex-start;
            scrollbar-width: none;
          }
          #notation-tools-rail .notation-tool-btn {
            width: 100%;
            min-width: 0;
            min-height: 2.7rem;
            padding: 0.5rem 0.2rem;
            font-size: 1.42rem;
            text-align: center;
          }
          #notation-tools-rail .notation-tool-sep {
            width: auto;
            height: 1px;
            margin: 0.2rem 0;
            align-self: stretch;
          }
          #notation-editor-input.notation-editor-area {
            min-height: 7.5rem;
            max-height: 11rem;
          }
          #page-notation > header h1 { font-size: 1.75rem; }
          #notation-song-picker-bar { margin-bottom: 0.75rem !important; padding: 0.75rem 1rem !important; }
        }
        @media (min-width: 1024px) {
          #notation-tools-rail {
            width: 6.5rem;
            min-width: 6.5rem;
          }
        }
        /* Gitar PDF stili: TAB porte notanın altında */
        .notation-paper-chordive { padding-bottom: 0.35rem; overflow-x: auto; }
        .notation-paper-chordive .abcjs-voice-name { display: none !important; }
        /* Solfej notaya daha yakın (üstteki sistemle çarpışmasın) */
        .notation-paper-chordive .abcjs-annotation {
          /* Y konumu JS ile notaya göre ayarlanır */
        }
        .notation-paper-chordive .chordive-abc-system {
          margin-bottom: 14px;
        }
        .notation-paper-chordive .chordive-abc-system + .chordive-abc-system {
          margin-top: 6px;
        }
        .notation-paper-chordive.guitar-tab-mode svg {
          display: block;
          overflow: visible !important;
        }
        #notation-zen-root {
          display: none;
          position: fixed;
          inset: 0;
          z-index: 9999;
          background: #0b0f0b;
          flex-direction: column;
          padding: 16px 18px 20px;
        }
        #notation-zen-root.open { display: flex; }
        #notation-zen-root .zen-top {
          display: flex;
          align-items: center;
          gap: 12px;
          margin-bottom: 12px;
          flex-wrap: wrap;
        }
        #notation-zen-paper {
          flex: 1;
          overflow: auto;
          background: #f7f8f5;
          border-radius: 16px;
          padding: 18px;
        }
        #notation-zen-paper .notation-paper-chordive { background: transparent !important; }
        .notation-editor-area::selection {
          background: rgba(22, 224, 0, 0.35);
          color: #fff;
        }
        .notation-paper-chordive .abcjs-title {
          text-anchor: middle;
        }
        .notation-paper-chordive .abcjs-composer {
          text-anchor: end;
        }
        @media print {
          body * { visibility: hidden !important; }
          #notation-studio-paper, #notation-studio-paper * { visibility: visible !important; }
          #notation-studio-paper {
            position: absolute !important;
            left: 0; top: 0; width: 100% !important;
            background: #fff !important;
            box-shadow: none !important;
            border-radius: 0 !important;
          }
        }
        /* Genel ton / akıllı setlist — ortak select görünümü */
        .profile-tone-select,
        .profile-settings-row #global-key-select,
        .profile-settings-row #ruler-type-select {
          background: transparent !important;
          border: 1px solid var(--border) !important;
          border-radius: 12px !important;
          color: var(--text) !important;
          font-size: 0.75rem !important;
          font-weight: 900 !important;
          outline: none !important;
          appearance: none !important;
          -webkit-appearance: none !important;
        }
        .profile-tone-select {
          width: 100%;
          padding: 0.5rem 0.75rem !important;
          background: var(--bg-card-highest) !important;
        }
        .profile-tone-select:focus {
          border-color: rgba(29, 185, 84, 0.5) !important;
        }
        html.light .profile-tone-select,
        html.light .profile-settings-row #global-key-select,
        html.light .profile-settings-row #ruler-type-select {
          border-color: rgba(0, 0, 0, 0.08) !important;
        }
        /* Akor diyagramı — tel çizgileri açık modda daha koyu */
        html.light .chord-diagram-svg line { stroke: rgba(26,33,26,0.65) !important; opacity: 0.85 !important; }
        html.light .chord-diagram-svg text { fill: var(--text-muted); }
        /* Hero carousel — açık modda metin okunabilirliği (koyu overlay üzerinde beyaz) */
        html.light #home-hero-carousel .text-white,
        html.light #home-hero-carousel h1,
        html.light #home-hero-carousel p.text-white\/75 { color: #fff !important; }
        html.light #home-hero-carousel .text-on-surface-variant\/90 { color: rgba(255,255,255,0.82) !important; }
        html.light #home-hero-carousel .home-hero-slide { cursor: pointer; }
        /* Şeffaf / cam butonlar — her iki modda yarı saydam dolgu */
        button[class*="bg-white/"], button[class*="hover:bg-white/"],
        .toolbar-btn, .glass-select-display {
            background-color: rgba(255,255,255,0.08) !important;
        }
        html.light button[class*="bg-white/"], html.light button[class*="hover:bg-white/"],
        html.light .toolbar-btn {
            background-color: rgba(0,0,0,0.06) !important;
            color: var(--text) !important;
        }
        html.light .glass-options-dropdown { background: rgba(255,255,255,0.96) !important; color: var(--text) !important; }
        html.light .glass-options-dropdown div { color: var(--text) !important; }

        /* Sahne widget kartları — gölgesiz oval dikdörtgen */
        #stage-top-widgets .stage-widget-card,
        #stage-top-widgets .glass-box {
          box-shadow: none !important;
          filter: none !important;
          min-height: 260px;
          border-radius: 1.75rem !important;
        }
        @media (min-width: 1024px) {
          #stage-top-widgets .glass-box > div:first-child > .material-symbols-outlined.text-5xl,
          #stage-top-widgets .glass-box > div:first-child > .material-symbols-outlined[class*="text-5xl"] {
            font-size: clamp(3.75rem, 4.6vw, 6.75rem) !important;
            line-height: 1 !important;
          }
        }
        /* Telefon: widget yüksekliğini daralt + slider yazıları küçük/üste */
        @media (max-width: 639px) {
          #stage-top-widgets .stage-widget-card,
          #stage-top-widgets .glass-box {
            min-height: 160px !important;
            padding: 0.75rem !important;
          }
          #home-hero-carousel {
            height: 220px !important;
            margin-bottom: 1.5rem !important;
            border-radius: 1.5rem !important;
          }
          #home-hero-carousel .home-hero-copy {
            justify-content: flex-start !important;
            padding-top: 1rem !important;
            padding-bottom: 2.5rem !important;
          }
          #home-hero-carousel .home-hero-copy h1 {
            font-size: 1.15rem !important;
            line-height: 1.25 !important;
            margin-bottom: 0.25rem !important;
          }
          #home-hero-carousel .home-hero-copy > p:nth-of-type(1) {
            font-size: 0.8rem !important;
            margin-bottom: 0.25rem !important;
          }
          #home-hero-carousel .home-hero-copy > p:nth-of-type(2) {
            font-size: 0.68rem !important;
          }
          #home-hero-carousel .home-hero-copy > span {
            margin-bottom: 0.45rem !important;
            font-size: 0.55rem !important;
            padding: 0.2rem 0.65rem !important;
          }
          #song-toolbar .toolbar-btn {
            padding: 0.2rem 0.35rem !important;
            font-size: 0.58rem !important;
            min-height: 1.65rem !important;
            gap: 2px !important;
          }
          #song-toolbar .toolbar-btn .material-symbols-outlined {
            font-size: 0.95rem !important;
          }
          #song-detail-header .glass-panel {
            padding: 0.85rem 1rem !important;
          }
          #detail-album-wrap {
            width: 4.5rem !important;
            height: 4.5rem !important;
            border-radius: 1rem !important;
          }
          html.chordive-touch #short-ruler-group {
            width: 100%;
            justify-content: space-between;
          }
          html.chordive-touch #short-ruler-group #tone-display-container {
            flex: 1;
            justify-content: center;
          }
        }

        /* Tablet: 4 widget yan yana, kare (dikdörtgen değil) */
        @media (min-width: 640px) and (max-width: 1023px) {
          #stage-top-widgets {
            grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
            gap: 0.625rem !important;
          }
          #stage-top-widgets .glass-box {
            aspect-ratio: 1 / 1;
            min-height: unset !important;
            height: auto !important;
            padding: 1rem 0.625rem !important;
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            justify-content: space-between !important;
            text-align: center !important;
            gap: 0.25rem !important;
            box-shadow: none !important;
          }
          #stage-top-widgets .glass-box > div:first-child {
            width: 100%;
            display: flex !important;
            flex-direction: column !important;
            justify-content: flex-start !important;
            align-items: center !important;
            flex-wrap: nowrap;
            gap: 0.35rem !important;
            min-height: 4.75rem;
            height: auto !important;
            position: static !important;
          }
          #stage-top-widgets .glass-box > div:first-child > .flex.items-center.gap-2:not([id]) {
            flex-direction: column !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 0.25rem !important;
            width: 100%;
          }
          #stage-top-widgets .glass-box > div:first-child > .material-symbols-outlined.text-5xl,
          #stage-top-widgets .glass-box > div:first-child > .material-symbols-outlined[class*="text-5xl"] {
            font-size: 3.05rem !important;
            line-height: 1 !important;
            flex-shrink: 0;
            order: 0;
          }
          #stage-top-widgets #metro-stage-display,
          #stage-top-widgets #band-sync-stage-display {
            display: inline-flex !important;
            flex-direction: row !important;
            align-items: center !important;
            justify-content: center !important;
            flex-wrap: nowrap !important;
            gap: 0.35rem !important;
            padding: 0.25rem 0.625rem !important;
            min-height: 1.35rem;
            max-height: 1.35rem;
            width: auto !important;
            min-width: 4.5rem;
            box-sizing: border-box;
            overflow: hidden;
            margin: 0 auto;
          }
          #stage-top-widgets #metro-stage-display #stage-mini-metro-dot,
          #stage-top-widgets #band-sync-stage-dot {
            width: 0.5rem !important;
            height: 0.5rem !important;
            min-width: 0.5rem !important;
            min-height: 0.5rem !important;
            flex-shrink: 0;
            transform-origin: center center;
          }
          #stage-top-widgets #metro-stage-bpm-display,
          #stage-top-widgets #band-sync-stage-code {
            font-size: 0.5625rem !important;
            line-height: 1 !important;
            letter-spacing: 0.08em !important;
            text-transform: uppercase;
            white-space: nowrap;
          }
          #stage-top-widgets .glass-box > div:last-child {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-end;
            flex: 1 1 auto;
            min-height: 3.75rem;
            text-align: center;
          }
          #stage-top-widgets .glass-box h3 {
            font-size: 1.2rem !important;
            line-height: 1.2 !important;
          }
          #stage-top-widgets .glass-box > div:last-child p,
          #stage-top-widgets .glass-box > div:last-child .text-\[10px\] {
            font-size: 0.6875rem !important;
            line-height: 1.25 !important;
          }
          #stage-top-widgets #looper-stage-play-btn {
            width: 1.35rem !important;
            height: 1.35rem !important;
            min-width: 1.35rem !important;
            min-height: 1.35rem !important;
            padding: 0 !important;
          }
          #stage-top-widgets #looper-stage-play-btn .material-symbols-outlined,
          #stage-top-widgets #looper-stage-play-btn .looper-ico {
            font-size: 12px !important;
            width: 12px !important;
            height: 12px !important;
          }
          #stage-top-widgets #looper-stage-status-text {
            font-size: 0.5625rem !important;
            letter-spacing: 0.05em !important;
          }
          #stage-top-widgets #metro-stage-display,
          #stage-top-widgets #looper-stage-status,
          #stage-top-widgets #countdown-stop-btn,
          #stage-top-widgets #band-sync-stage-display {
            position: static !important;
            top: auto !important;
            right: auto !important;
            max-width: 100%;
            margin: 0 auto;
            flex-shrink: 0;
          }
          #stage-top-widgets #band-sync-avatar-row {
            justify-content: center;
            margin-top: 0.1rem;
          }
          #stage-top-widgets #looper-stage-status {
            flex-wrap: nowrap;
            gap: 0.25rem !important;
            padding: 0.2rem 0.45rem !important;
            justify-content: center;
          }
          /* Rozet gizliyken de yer ayır — aktif/pasif aynı hizada kalsın */
          #stage-top-widgets #metro-stage-display.hidden,
          #stage-top-widgets #countdown-stop-btn.hidden,
          #stage-top-widgets #looper-stage-status.hidden,
          #stage-top-widgets #band-sync-stage-display.hidden {
            display: flex !important;
            visibility: hidden;
            opacity: 0;
            pointer-events: none;
          }
        }

        /* Soft primary button — Geçici Karıştır stili */
        .btn-soft-primary {
          background: rgba(29,185,84,0.12) !important;
          border: 1px solid rgba(29,185,84,0.4) !important;
          color: #1DB954 !important;
          box-shadow: none !important;
        }
        .btn-soft-primary:hover {
          background: rgba(29,185,84,0.22) !important;
          color: #1DB954 !important;
        }
        .btn-soft-blue {
          background: rgba(59,130,246,0.12) !important;
          border: 1px solid rgba(59,130,246,0.4) !important;
          color: #3b82f6 !important;
          box-shadow: none !important;
        }
        .btn-soft-blue:hover {
          background: rgba(59,130,246,0.22) !important;
          color: #3b82f6 !important;
        }
        .btn-soft-danger {
          background: rgba(239,68,68,0.12) !important;
          border: 1px solid rgba(239,68,68,0.4) !important;
          color: #f87171 !important;
          box-shadow: none !important;
        }
        .btn-soft-danger:hover {
          background: rgba(239,68,68,0.22) !important;
          color: #f87171 !important;
        }
        .btn-soft-purple {
          background: rgba(168,85,247,0.12) !important;
          border: 1px solid rgba(168,85,247,0.45) !important;
          color: #c084fc !important;
          box-shadow: none !important;
        }
        .btn-soft-purple:hover {
          background: rgba(168,85,247,0.22) !important;
          color: #c084fc !important;
        }
        /* Tüm yumuşak butonlar: boşken hafif ton, üzerine gelince dolar ve hafif yükselir */
        :is(.btn-soft-primary, .btn-soft-blue, .btn-soft-danger, .btn-soft-purple) {
          transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease !important;
        }
        :is(.btn-soft-primary, .btn-soft-blue, .btn-soft-danger, .btn-soft-purple):hover:not(:disabled) {
          transform: translateY(-1px);
          opacity: 1 !important;
        }
        .btn-soft-primary:hover:not(:disabled) { box-shadow: 0 4px 14px rgba(29,185,84,0.18) !important; }
        .btn-soft-blue:hover:not(:disabled) { box-shadow: 0 4px 14px rgba(59,130,246,0.18) !important; }
        .btn-soft-danger:hover:not(:disabled) { box-shadow: 0 4px 14px rgba(239,68,68,0.18) !important; }
        .btn-soft-purple:hover:not(:disabled) { box-shadow: 0 4px 14px rgba(168,85,247,0.18) !important; }
        :is(.btn-soft-primary, .btn-soft-blue, .btn-soft-danger, .btn-soft-purple):active:not(:disabled) { transform: translateY(0) scale(0.98); }
        #song-back-btn { transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important; }
        #song-back-btn:hover {
          opacity: 1 !important;
          background: rgba(29,185,84,0.16) !important;
          border-color: rgba(29,185,84,0.45) !important;
          transform: translateY(-1px);
          box-shadow: 0 4px 14px rgba(29,185,84,0.18);
        }

        /* Profil: Son Çaldıklarım / En Çok Eklenenler — mini kart ve açılır liste satırları */
        .profile-mini-row,
        .profile-list-row {
          border: 1px solid transparent;
          transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
        }
        .profile-list-row { border-color: rgba(255,255,255,0.07); }
        .profile-mini-row:hover,
        .profile-list-row.is-clickable:hover {
          background: rgba(29,185,84,0.12) !important;
          border-color: rgba(29,185,84,0.4) !important;
        }
        .profile-list-row.is-clickable:hover { transform: translateY(-1px); }

        /* WhatsApp ile gönder */
        .share-wa-btn {
          display: inline-flex;
          align-items: center;
          justify-content: center;
          width: 30px;
          height: 30px;
          border-radius: 0.75rem;
          background: rgba(37,211,102,0.12);
          border: 1px solid rgba(37,211,102,0.45);
          color: #25D366;
          transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
        }
        .share-wa-btn:not(.opacity-50):hover {
          background: rgba(37,211,102,0.24);
          transform: translateY(-1px);
          box-shadow: 0 4px 14px rgba(37,211,102,0.22);
        }
        .share-wa-confirm {
          background: rgba(37,211,102,0.12);
          border: 1px solid rgba(37,211,102,0.45);
          color: #25D366;
          transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
        }
        .share-wa-confirm:hover {
          background: rgba(37,211,102,0.24);
          transform: translateY(-1px);
          box-shadow: 0 4px 14px rgba(37,211,102,0.22);
        }

        /* JS ile açılan modallar (Liste Paylaş, Repertuarı Paylaş, Akıllı Setlist, Gizli liste kodu...) — sitenin cam modal görünümü */
        :is(#share-list-picker-overlay, #shared-stages-overlay, #share-stage-overlay, #smart-setlist-overlay, #shared-code-overlay, #glass-alert-overlay, #glass-confirm-overlay, #add-song-to-stage-overlay, #uploader-profile-overlay, #admin-merge-overlay) {
          background: rgba(0,0,0,0.4) !important;
          backdrop-filter: blur(var(--bg-blur, 20px)) !important;
          -webkit-backdrop-filter: blur(var(--bg-blur, 20px)) !important;
        }
        :is(#share-list-picker-overlay, #shared-stages-overlay, #share-stage-overlay, #smart-setlist-overlay, #shared-code-overlay, #glass-alert-overlay, #glass-confirm-overlay, #add-song-to-stage-overlay, #uploader-profile-overlay, #admin-merge-overlay) > .glass-panel {
          background: var(--glass) !important;
          backdrop-filter: none !important;
          -webkit-backdrop-filter: none !important;
          border-color: rgba(255,255,255,0.08) !important;
          box-shadow: 0 10px 50px rgba(0,0,0,0.5) !important;
          color: var(--text);
        }
        body.reduced-motion :is(#share-list-picker-overlay, #shared-stages-overlay, #share-stage-overlay, #smart-setlist-overlay, #shared-code-overlay, #glass-alert-overlay, #glass-confirm-overlay, #add-song-to-stage-overlay, #uploader-profile-overlay, #admin-merge-overlay) {
          background: rgba(0,0,0,0.6) !important;
          backdrop-filter: none !important;
          -webkit-backdrop-filter: none !important;
        }

        /* Widget modalları — Band Sync ile aynı cam panel */
        .widget-modal-panel {
          background: var(--glass) !important;
          backdrop-filter: blur(var(--bg-blur, 20px)) !important;
          -webkit-backdrop-filter: blur(var(--bg-blur, 20px)) !important;
        }
        .widget-field {
          background: transparent !important;
          border: 1px solid var(--border) !important;
          color: var(--text) !important;
        }
        /* Akor kütüphanesi enstrüman seçici stili — widget butonları */
        .widget-seg-btn {
          background: transparent !important;
          border: 1px solid var(--border) !important;
          color: var(--text-muted) !important;
          transition: all 0.15s !important;
        }
        .widget-seg-btn.active,
        .widget-seg-btn.btn-soft-primary {
          background: rgba(29,185,84,0.12) !important;
          border: 1px solid rgba(29,185,84,0.4) !important;
          color: #1DB954 !important;
        }
        .widget-action-btn {
          background: rgba(29,185,84,0.12) !important;
          border: 1px solid rgba(29,185,84,0.4) !important;
          color: #1DB954 !important;
        }
        .widget-action-btn:hover {
          background: rgba(29,185,84,0.22) !important;
        }
        .widget-action-btn.danger {
          background: rgba(239,68,68,0.12) !important;
          border: 1px solid rgba(239,68,68,0.35) !important;
          color: #ef4444 !important;
        }
        .widget-action-btn.danger:hover {
          background: rgba(239,68,68,0.22) !important;
        }
        html.chordive-touch #tab-songs-list > div,
        html.chordive-touch #stages-list-container > div {
          content-visibility: auto;
          contain-intrinsic-size: auto 72px;
          contain: layout style paint;
        }
        /* Akor kartlarında content-visibility kullanma — kaydırınca siyah flash yapıyor */
        @media (max-width: 1024px) {
          #profile-cover-wrap #profile-cover-actions { opacity: 1 !important; }
          #profile-cover-wrap #profile-cover-actions button { opacity: 1 !important; }
          #profile-cover-wrap.is-editing #profile-cover-img { transition: none !important; }
        }

        /* Modal arka planları — profil blur kaydırıcısından (--bg-blur) */
        .chordive-modal-backdrop {
            backdrop-filter: blur(var(--bg-blur, 20px)) !important;
            -webkit-backdrop-filter: blur(var(--bg-blur, 20px)) !important;
        }
        body.reduced-motion .chordive-modal-backdrop { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
        /* Ana sayfa hero carousel */
        #home-hero-carousel { isolation: isolate; }
        .home-hero-slide {
            position: absolute; inset: 0;
            opacity: 0; pointer-events: none;
            transition: opacity 0.7s ease;
            background-size: cover; background-position: center;
        }
        .home-hero-slide.active { opacity: 1; pointer-events: auto; z-index: 1; }
        .home-hero-slide-overlay {
            position: absolute; inset: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0.55) 100%);
        }
        .home-hero-dot { width: 7px; height: 7px; border-radius: 9999px; background: rgba(255,255,255,0.25); transition: all 0.25s; cursor: pointer; }
        .home-hero-dot.active { background: #1DB954; width: 20px; }
        /* Profil rol dropdown — Pro Üye rozeti stili, yukarı açılır */
        .prof-role-badge-btn {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: rgba(29,185,84,0.1);
            border: 1px solid rgba(29,185,84,0.2);
            color: #1DB954;
            font-size: 10px;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            padding: 6px 16px;
            border-radius: 9999px;
            cursor: pointer;
            transition: all 0.2s;
            line-height: 1;
            white-space: nowrap;
        }
        .prof-role-badge-btn:hover { background: rgba(29,185,84,0.18); border-color: rgba(29,185,84,0.45); }
        /* Genel ton (glass-select) ile aynı: absolute + yukarı açılır */
        .prof-role-dropdown {
            position: absolute;
            left: 0;
            bottom: 100%;
            margin-bottom: 0.5rem;
            z-index: 99999;
            min-width: 100%;
            width: max-content;
            max-height: 12rem;
            overflow-y: auto;
            border-radius: 1rem;
            border: 1px solid var(--border);
            background: rgba(26, 33, 26, 0.98);
            backdrop-filter: blur(30px);
            -webkit-backdrop-filter: blur(30px);
            box-shadow: 0 12px 40px rgba(0,0,0,0.45);
            padding: 4px;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        html.light .prof-role-dropdown {
            background: rgba(240, 244, 240, 0.98);
        }
        html:not(.light) #prof-avatar-display {
            border-color: #1DB954 !important;
        }
        #prof-avatar-photo-btn {
            z-index: 25;
            background: rgba(0,0,0,0.55) !important;
            border: 2px solid rgba(255,255,255,0.22) !important;
            box-shadow: 0 2px 10px rgba(0,0,0,0.45);
            color: #1DB954 !important;
        }
        #prof-avatar-photo-btn .material-symbols-outlined {
            color: #1DB954 !important;
        }
        html.light #prof-avatar-photo-btn {
            background: rgba(255,255,255,0.92) !important;
            border-color: rgba(29,185,84,0.45) !important;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        }
        .profile-settings-row input:not([type="color"]),
        .profile-settings-row select,
        .profile-settings-row .profile-field-input {
          background: transparent !important;
          border: none !important;
        }
        .profile-settings-row #global-key-select,
        .profile-settings-row #ruler-type-select {
          background: transparent !important;
          border: 1px solid var(--border) !important;
        }
        html.light .profile-settings-row #global-key-select,
        html.light .profile-settings-row #ruler-type-select {
          border-color: rgba(0, 0, 0, 0.08) !important;
        }
        @media (min-width: 1024px) {
          #home-hero-carousel { cursor: default; }
        }
        @media (max-width: 1023px) {
          #home-hero-carousel { cursor: grab; touch-action: pan-y; }
          #home-hero-carousel.is-swipping { cursor: grabbing; }
        }
        .home-hero-cta {
            pointer-events: auto;
            margin-top: 0.75rem;
            padding: 0.5rem 1.25rem;
            border-radius: 9999px;
            font-size: 10px;
            font-weight: 900;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            background: rgba(29,185,84,0.18);
            border: 1px solid rgba(29,185,84,0.45);
            color: #1DB954;
            transition: all 0.15s;
        }
        .home-hero-cta:hover { background: rgba(29,185,84,0.28); }
        #home-hero-dots { pointer-events: none; }
        #home-hero-dots .home-hero-dot { pointer-events: auto; }

        /* OLED SAHNE MODU */
        body.oled-mode {
          --bg: #000000 !important;
          --bg-card: #000000 !important;
          --bg-card-low: #111111 !important;
          --bg-card-high: #222222 !important;
          --bg-card-highest: #333333 !important;
          --text: #ffffff !important;
          --text-muted: #aaaaaa !important;
          --border: #ffffff !important;
          --glass: #000000 !important;
          --primary: #ffffff !important;
        }
        body.oled-mode * {
          backdrop-filter: none !important;
          -webkit-backdrop-filter: none !important;
          box-shadow: none !important;
          text-shadow: none !important;
        }
        body.oled-mode .glass-panel, body.oled-mode .glass-box {
          background: #000000 !important;
          border: 1px solid #333333 !important;
        }
        /* Editörün seçimi arka planı */
        body.oled-mode [style*="bg-gradient"], body.oled-mode .bg-gradient-to-br {
          background: #111111 !important;
          background-image: none !important;
          border: 1px solid #333333 !important;
        }
        /* Tablet Alt Navigasyon Barı ve Buton Çerçeve Temizliği */
        body.oled-mode nav, body.oled-mode .bottom-nav, body.oled-mode [id^="nav-bar"],
        body.oled-mode .profile-settings-row {
          background-color: #000000 !important;
          background: #000000 !important;
        }
        body.oled-mode nav, body.oled-mode .bottom-nav, body.oled-mode [id^="nav-bar"] {
          border-top: 1px solid #333333 !important;
        }
        body.oled-mode .profile-settings-row {
          border: 1px solid #333333 !important;
        }
        body.oled-mode nav button, body.oled-mode .bottom-nav button {
          border: none !important;
          background: transparent !important;
          color: #ffffff !important;
        }
        /* Alt bardaki + Butonu Sabitleme */
        body.oled-mode nav button.bg-primary, body.oled-mode #btn-nav-add, body.oled-mode .bottom-nav button.bg-primary {
          background-color: #ffffff !important;
          color: #000000 !important;
          border: none !important;
        }
        /* Akor kütüphanesi enstrüman barları (Gitar, Ukulele, Piyano) */
        body.oled-mode .instrument-toggle-bar, body.oled-mode [id$="-tabs"], body.oled-mode .chord-tabs {
          background: #111111 !important;
          border: 1px solid #333333 !important;
        }
        body.oled-mode .instrument-toggle-bar button.active, body.oled-mode .chord-tabs button.active {
          background: #ffffff !important;
          color: #000000 !important;
        }
        body.oled-mode .interactive-chord, body.oled-mode .raw-chord, body.oled-mode .easy-chord-span {
          color: #ffffff !important;
          font-weight: 900 !important;
          text-decoration: underline !important;
        }
        body.oled-mode #global-bg { display: none !important; }
        body.oled-mode button, body.oled-mode input, body.oled-mode select { border: 1.5px solid #333333 !important; color: #ffffff !important; }
        body.oled-mode .bg-primary { background-color: #ffffff !important; color: #000000 !important; }
        body.oled-mode .text-primary { color: #ffffff !important; }

        /* Nota Stüdyosu snippet (nota ekleme) butonları — eskiden açık mavi (#1fdad1) idi.
           Artık: karanlık modda site yeşili (#1DB954), aydınlık modda siyah. */
        [onclick*="insertNotationSnippet"] {
          color: #1DB954 !important;
        }
        [onclick*="insertNotationSnippet"]:hover {
          background-color: rgba(29,185,84,0.20) !important;
          color: #1DB954 !important;
        }
        [onclick*="insertNotationSnippet"][class*="1fdad1"] {
          background-color: rgba(29,185,84,0.10) !important;
          border-color: rgba(29,185,84,0.30) !important;
          color: #1DB954 !important;
        }
        html.light [onclick*="insertNotationSnippet"] {
          color: #000000 !important;
        }
        html.light [onclick*="insertNotationSnippet"]:hover {
          background-color: rgba(0,0,0,0.10) !important;
          color: #000000 !important;
        }
        html.light [onclick*="insertNotationSnippet"][class*="1fdad1"] {
          background-color: rgba(0,0,0,0.06) !important;
          border-color: rgba(0,0,0,0.20) !important;
          color: #000000 !important;
        }

        /* Oval select kutuları — site yeşiline uyumlu */
        select {
          -webkit-appearance: none;
          appearance: none;
          border-radius: 9999px !important;
          padding-left: 1.25rem !important;
          padding-right: 2.5rem !important;
          border: 1.5px solid var(--border) !important;
          transition: border-color 0.2s, box-shadow 0.2s;
          background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231DB954' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") !important;
          background-repeat: no-repeat !important;
          background-position: right 0.9rem center !important;
          cursor: pointer;
        }
        select:focus {
          outline: none !important;
          border-color: #1DB954 !important;
          box-shadow: 0 0 0 3px rgba(29,185,84,0.18) !important;
        }

        /* Arama çubukları ve tüm input tipleri focus yeşil */
        input, select, textarea, button {
          outline: none !important;
          -webkit-tap-highlight-color: transparent;
        }
        input[type="text"]:focus,
        input[type="number"]:focus,
        input[type="password"]:focus,
        input[type="email"]:focus,
        input[type="url"]:focus,
        select:focus,
        textarea:focus {
          outline: none !important;
          border-color: #1DB954 !important;
          box-shadow: 0 0 0 3px rgba(29,185,84,0.15) !important;
        }

        /* STÜDYO EDİTÖRÜ — contenteditable placeholder */
        #song-content-input[contenteditable]:empty:before {
          content: attr(data-placeholder);
          color: var(--on-surface-variant, #888);
          pointer-events: none;
        }
        
        /* Span içindeki boşlukların ham metin olarak görünmesini engeller ve arka plan rengini korur */
        #song-content-input[contenteditable] span { 
            border-radius: 3px; 
            display: inline-block; 
            white-space: pre-wrap; 
        }
        #song-content-input[contenteditable] span[style] { border-radius: 3px; }
        #song-content-input .ms-word-selected {
          outline: 2px dashed #1DB954;
          outline-offset: 1px;
          border-radius: 3px;
          background: rgba(29,185,84,0.18);
        }

        /* VURGULAMA — satır bazlı */
        .highlight-mode .song-line { cursor:pointer; }
        .highlight-mode .song-line:hover .lyric-row,
        .highlight-mode .song-line:hover .song-line-inner { background: rgba(29,185,84,0.1); border-radius:6px; padding:1px 6px; display:inline-block; width: max-content; }
        .highlight-mode .song-line.highlighted .lyric-row,
        .highlight-mode .song-line.highlighted .song-line-inner { background: var(--highlight-bg); border-radius:6px; padding:1px 6px; border-left:3px solid var(--highlight-border); display:inline-block; width: max-content; }

        /* ARŞİV LİSTE — dokunmatikte transition kapalı (scroll jank) */
        .archive-list-item { transition: border-color 0.2s; }
        .archive-list-item:hover {
            border-color: rgba(29, 185, 84, 0.5) !important;
        }
        html.chordive-touch .archive-list-item,
        html.chordive-touch #library-list-container .glass-box,
        html.chordive-touch #stages-list-container .glass-box {
          transition: none !important;
        }

        /* Renk Seçici (Color Picker) Tam Yuvarlak Yapma */
        input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
        input[type="color"]::-webkit-color-swatch { border: none; border-radius: 50%; }
        input[type="color"] { border-radius: 50%; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }

        /* Gizlendiğinde görünmez olur ama alan kaplar ve tıklanabilir */
        .chords-hidden .interactive-chord,
        .chords-hidden .easy-chord-span,
        .chords-hidden .raw-chord {
          color: transparent !important;
          user-select: none;
        }
        /* KOLAY AKORLAR — aynı akorları farklı göster */
        .raw-chord { color:var(--chord-color); font-weight:700; cursor:pointer; padding:0; }
        .raw-chord:hover { filter: brightness(1.2); background:rgba(255,255,255,0.05); }
        .easy-chords-mode .interactive-chord { display:none; }
        .easy-chords-mode .easy-chord-span { display:inline-block !important; }
        .easy-chord-span { display:none; color:var(--chord-color); cursor:pointer; font-weight:bold; border-bottom: none !important; text-decoration: none !important; padding:0; }
        .easy-chord-span:hover { filter: brightness(1.2); background:rgba(255,255,255,0.05); }

        .pitch-detecting { animation:pulse 1s infinite; }
        @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }

        /* Ana sayfa hero banner - Editörün Seçimi yazısı sabit kalacak */
        #page-home .relative.rounded-\[2\.5rem\] .absolute.bottom-0 {
          position: absolute !important;
          bottom: 0 !important;
          top: auto !important;
        }
        @media (max-width: 640px) {
          #page-home h1.text-5xl { font-size: 2rem !important; }
        }
        .toolbar-btn { display:flex; align-items:center; gap:3px; background:rgba(255,255,255,0.05); border:1px solid var(--border); border-radius:10px; padding:6px 10px; font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:0.05em; cursor:pointer; transition:all 0.2s; white-space:nowrap; color:var(--text); }
        html.light .toolbar-btn { background:rgba(0,0,0,0.05); }
        .toolbar-btn:hover { background:rgba(29,185,84,0.15); border-color:rgba(29,185,84,0.4); color:#1DB954; }
        .toolbar-btn.active { background:rgba(29,185,84,0.2); border-color:#1DB954; color:#1DB954; }
        .toolbar-btn .material-symbols-outlined { font-size:18px; }
        @media (min-width: 640px) {
            .toolbar-btn { padding:4px 8px; font-size:10px; gap:3px; }
            .toolbar-btn .material-symbols-outlined { font-size:15px; }
        }

        /* OTO KAYDIRMA POPUP */
        #autoscroll-popup {
          position: fixed;
          right: 28px;
          top: 50%;
          transform: translateY(-50%);
          z-index: 1000;
          display: none;
          flex-direction: column;
          align-items: center;
          gap: 6px;
          background: var(--glass);
          padding: 10px 6px;
          border-radius: 999px;
          border: 1px solid var(--border);
          box-shadow: 0 8px 32px rgba(0,0,0,0.4);
          backdrop-filter: blur(20px);
          -webkit-backdrop-filter: blur(20px);
          width: 42px;
        }
        #autoscroll-popup.visible { display: flex; }

        /* AKOR DİYAGRAMLARI — alttaki slide panel kaldırıldı */
        #song-chord-charts-slide { display: none !important; visibility: hidden !important; pointer-events: none !important; }

        /* Modallar her zaman üstte (eski slide panel z-index:170 sorununu önler) */
        #tuner-modal, #chord-library-modal, #global-tab-modal, #chord-detail-modal { z-index: 220 !important; }
        /* Akor Cetveli Modu — tüm ekranlarda: yazı üste ortalı, select alta (telefon düzeltmesi) */
        #profile-ruler-mode-row {
          display: flex !important;
          flex-direction: column !important;
          align-items: stretch !important;
          justify-content: flex-start !important;
          gap: 0.75rem !important;
          min-height: 7.5rem;
          padding-top: 0.85rem !important;
          padding-bottom: 0.85rem !important;
        }
        #profile-ruler-mode-row .profile-ruler-copy {
          text-align: center !important;
          padding-right: 0 !important;
          margin-top: 0.15rem;
          flex: 0 0 auto !important;
        }
        #profile-ruler-mode-row .profile-ruler-select {
          width: 100% !important;
          max-width: 100% !important;
          margin-top: auto;
          align-self: stretch;
          box-sizing: border-box;
        }
        /* Chromatic tuner — kadran + dikey sismik dalga (Guitar Tuna tarzı) */
        #tuner-stage {
          position: relative;
          width: 100%;
          display: flex;
          flex-direction: column;
          align-items: center;
          padding-top: 0.15rem;
        }
        /* Dikey sismik şeritler — iki yanda simetrik, uçları panele karışır */
        #tuner-waveform,
        #tuner-waveform-r {
          position: absolute;
          top: 50%;
          width: 26px;
          height: 236px;
          display: block;
          background: transparent;
          border: none;
          border-radius: 0;
          opacity: 0.9;
          pointer-events: none;
          -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%);
        }
        #tuner-waveform { left: -0.55rem; transform: translateY(-50%); }
        #tuner-waveform-r { right: -0.55rem; transform: translateY(-50%) scaleX(-1); }
        #tuner-dial {
          position: relative;
          width: 252px;
          height: 136px;
          flex-shrink: 0;
        }
        #tuner-dial svg {
          position: absolute;
          inset: 0;
          width: 100%;
          height: 100%;
          overflow: visible;
        }
        #tuner-needle-container {
          position: absolute;
          bottom: 10px;
          left: 50%;
          width: 3px;
          height: 104px;
          transform-origin: bottom center;
          z-index: 10;
          transition: none !important;
        }
        #tuner-needle {
          width: 100%;
          height: 100%;
          border-radius: 9999px;
          background: #9ca3af;
        }
        #tuner-needle-pivot {
          position: absolute;
          bottom: -6px;
          left: 50%;
          transform: translateX(-50%);
          width: 12px;
          height: 12px;
          border-radius: 50%;
          background: #18181b;
          border: 2px solid #52525b;
        }
        #tuner-readout {
          position: relative;
          display: flex;
          flex-direction: column;
          align-items: center;
          margin-top: -0.15rem;
        }
        #tuner-readout::before {
          content: '';
          position: absolute;
          top: -22px;
          left: 50%;
          width: 168px;
          height: 168px;
          transform: translateX(-50%);
          border-radius: 50%;
          background: radial-gradient(circle, rgba(29,185,84,0.20) 0%, transparent 68%);
          opacity: 0;
          transition: opacity 0.25s ease;
          pointer-events: none;
        }
        #tuner-readout.tuner-locked::before { opacity: 1; }
        #display-note {
          position: relative;
          font-size: 3.75rem;
          font-weight: 900;
          line-height: 1;
          letter-spacing: -0.04em;
          color: #fff;
        }
        #display-cents {
          margin-top: 0.35rem;
          font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
          font-size: 1rem;
          font-weight: 900;
          color: #52525b;
          min-height: 1.4rem;
          font-variant-numeric: tabular-nums;
        }
        #display-hz {
          margin-top: 0.2rem;
          font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
          font-size: 11px;
          letter-spacing: 0.14em;
          color: #a1a1aa;
          font-variant-numeric: tabular-nums;
        }
        #status-text {
          margin-top: 0.9rem;
          padding: 0.42rem 1.15rem;
          min-width: 9.5rem;
          border-radius: 999px;
          background: rgba(255,255,255,0.06);
          border: 1px solid rgba(255,255,255,0.09);
          font-size: 0.7rem;
          font-weight: 900;
          letter-spacing: 0.12em;
          text-transform: uppercase;
          color: #71717a;
          text-align: center;
          white-space: nowrap;
        }
        #tuner-pegs {
          display: grid;
          grid-template-columns: repeat(6, minmax(0, 1fr));
          gap: 0.4rem;
          width: 100%;
          margin-top: 1.25rem;
        }
        #tuner-pegs .peg {
          padding: 0.65rem 0;
          border-radius: 0.9rem;
          font-size: 11px;
          font-weight: 900;
          letter-spacing: 0.04em;
          color: #fff;
          border: 1px solid rgba(255,255,255,0.1);
          background: rgba(255,255,255,0.05);
          transition: background 0.15s, border-color 0.15s, color 0.15s;
        }
        #tuner-pegs .peg:hover {
          background: rgba(29,185,84,0.18);
          border-color: rgba(29,185,84,0.5);
        }
        #tuner-needle.tuner-needle-perfect { background: #1DB954 !important; box-shadow: 0 0 12px rgba(29,185,84,0.8); }
        #tuner-needle.tuner-needle-sharp { background: #ff5252 !important; }
        #tuner-needle.tuner-needle-flat { background: #ff9800 !important; }
        #display-note.tuner-note-perfect { color: #1DB954 !important; text-shadow: 0 0 24px rgba(29,185,84,0.45); }
        @media (max-width: 380px) {
          #tuner-dial { width: 210px; height: 116px; }
          #display-note { font-size: 3.1rem; }
          #tuner-waveform, #tuner-waveform-r { width: 20px; height: 196px; }
          #tuner-readout::before { width: 138px; height: 138px; }
          #tuner-pegs .peg { padding: 0.55rem 0; font-size: 10px; }
        }
        #tab-editor-modal { z-index: 240 !important; }

        /* AKOR KÜTÜPHANESİ MODAL — eski çalışan stil */
        #chord-library-modal.chordive-modal-backdrop { backdrop-filter: blur(var(--bg-blur, 20px)) !important; -webkit-backdrop-filter: blur(var(--bg-blur, 20px)) !important; }
        .metro-sub-btn { min-width: 0; padding: 4px 0; font-size: 10px; font-weight: 900; border-radius: 8px; cursor: pointer; transition: all 0.15s; }
        .chord-lib-card { cursor:pointer; transition:all 0.4s cubic-bezier(0.4, 0, 0.2, 1); transform: scale(1); }
        .chord-lib-card:active { transform: scale(0.95); transition:all 0.1s; }
        .chord-lib-card:hover { border-color:rgba(29,185,84,0.5); background:rgba(29,185,84,0.05); }
        .chord-lib-card.selected { border-color:#1DB954; background:rgba(29,185,84,0.1); transform: scale(1.02); box-shadow: 0 4px 12px rgba(29,185,84,0.2); }
        /* Varyasyonlar arası kaydırma — tarayıcı jesti kapmasın */
        #chord-detail-modal #chord-carousel-wrap,
        #chord-detail-modal #chord-carousel-wrap { touch-action: none; contain: paint; }
        #chord-carousel, #chord-carousel { will-change: transform; backface-visibility: hidden; }
        #chord-lib-grid { contain: layout style; }
        /* Dokunmatik cihazlarda akor kütüphanesi + akor detayında ÜST ÜSTE iki tam
           ekran backdrop-filter katmanı vardı (modal perdesi + cam panel). Her
           kaydırma/varyasyon geçişi karesinde tüm ekranın bulanıklığı yeniden
           hesaplandığı için 60 FPS'e çıkamıyordu. Panel rengi korunur, arkadaki
           duvar kağıdı bulanıklığı yerine düz perde kullanılır. */
        /* Akor detay: performans için düz perde; kütüphane paneli tuner ile aynı cam */
        html.chordive-touch #chord-detail-modal,
        html.chordive-touch #chord-library-modal,
        html.chordive-touch #tuner-modal,
        html.chordive-touch #countdown-modal,
        html.chordive-touch #metronome-modal,
        html.chordive-touch #looper-pro-modal,
        html.chordive-touch #band-sync-modal {
          backdrop-filter: none !important;
          -webkit-backdrop-filter: none !important;
          background: rgba(0,0,0,0.55) !important;
        }
        html.light.chordive-touch #chord-detail-modal,
        html.light.chordive-touch #chord-library-modal,
        html.light.chordive-touch #tuner-modal {
          background: rgba(18,24,18,0.45) !important;
        }
        html.chordive-touch #chord-detail-modal > .glass-panel,
        html.chordive-touch #chord-library-panel,
        html.chordive-touch #tuner-modal > .glass-panel,
        html.chordive-touch .widget-modal-panel {
          background: var(--glass) !important;
          backdrop-filter: blur(var(--bg-blur, 20px)) !important;
          -webkit-backdrop-filter: blur(var(--bg-blur, 20px)) !important;
        }
        html.chordive-touch .fade-in,
        html.chordive-touch #chord-library-panel {
          animation: none !important;
          transition: none !important;
        }
        #chord-library-panel {
          background: var(--glass) !important;
          backdrop-filter: blur(var(--bg-blur, 20px)) !important;
          -webkit-backdrop-filter: blur(var(--bg-blur, 20px)) !important;
          color: var(--text);
        }
        /* Şarkı Bilgileri — Link/Toplu/Word/Kamera/PDF butonları tablette tek
           satıra sığmayıp İpuçlar panelinin üstüne kayıyordu; alta sarsınlar */
        html.chordive-touch #song-import-actions { flex-wrap: wrap; }
        html.chordive-touch #song-import-actions > button {
          flex: 1 1 calc(33.333% - 0.5rem);
          min-width: 0;
        }
        /* Küresel blur kuralı bu küçük noktaları da yakalıyordu; kaydırma
           animasyonu sırasında her karede yeniden çizilip "açılıp kapanıyor"
           gibi görünüyordu. Zemin zaten opak kart olduğu için görüntü aynı. */
        #chord-detail-diagram .chord-dot {
          backdrop-filter: none !important;
          -webkit-backdrop-filter: none !important;
        }
        
        /* Varyasyon butonları 1.den 2.ye geçerken animasyon yumuşatması */
        .variation-btn { 
            transition: all 0.3s ease-in-out; 
            opacity: 1 !important; 
            visibility: visible !important;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: var(--bg-card-high);
            border: 1px solid var(--border);
            color: var(--text);
            z-index: 50;
        }
        .variation-btn:active { 
            transform: scale(0.95); 
            opacity: 0.9 !important; 
            transition: all 0.1s;
            background: rgba(29, 185, 84, 0.2);
            border-color: #1DB954;
        }

        /* AKOR DİYAGRAMI */
        .chord-diagram-svg { display:block; }

        /* ŞARKI İÇİ AKOR CHARTS BUTONU */
        #btn-chord-charts { }

        /* BAND SYNC */
        .musician-avatar { width:36px; height:36px; border-radius:50%; background:var(--bg-card-high); border:2px solid var(--border); display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:900; }

        /* GERİ SAYIM */
        #countdown-display { font-variant-numeric: tabular-nums; }

        /* AKOR ALGILAMA — satır içi */
        .raw-chord { color:var(--chord-color); font-weight:700; cursor:pointer; border-bottom: none !important; text-decoration: none !important; padding:0; }
        .raw-chord:hover { filter: brightness(1.2); background:rgba(255,255,255,0.05); }

        /* AKOR HOVER POPUP */
        #chord-hover-popup {
          position: fixed;
          z-index: 9990;
          background: var(--bg-card-high);
          border: 1px solid rgba(29,185,84,0.4);
          border-radius: 14px;
          padding: 8px 10px 6px;
          box-shadow: 0 8px 28px rgba(0,0,0,0.45);
          pointer-events: none;
          opacity: 0;
          transition: opacity 0.15s;
          text-align: center;
          min-width: 88px;
          transform: scale(1);
          transform-origin: bottom center;
        }
        #chord-hover-popup.visible { opacity: 1; }
        #chord-hover-popup .chord-name { font-size: 12px; font-weight: 900; color: #1DB954; margin-bottom: 4px; }
        #chp-diagram { display: flex; align-items: center; justify-content: center; overflow: hidden; line-height: 0; }
        #chp-diagram .chord-diagram-svg { max-height: 98px; transform: scale(0.9); transform-origin: center center; }

        /* Widget quick-add — eski şerit (artık üst bar slotu kullanılıyor) */
        .widget-pinned-badge { display: none !important; }

        /* Mobil/tablet: logo barının hemen altında sabit şerit */
        #pinned-widgets-bar {
          position: fixed;
          top: 4rem;
          left: 0;
          right: 0;
          z-index: 39;
          display: flex;
          justify-content: center;
          gap: 8px;
          pointer-events: none;
          padding: 6px 12px;
          flex-wrap: wrap;
        }
        #pinned-widgets-bar button {
          pointer-events: auto;
          display: flex;
          align-items: center;
          gap: 5px;
          padding: 7px 14px;
          border-radius: 999px;
          font-size: 11px;
          font-weight: 900;
          color: #000;
          background: #1DB954;
          border: none;
          cursor: pointer;
          box-shadow: 0 4px 16px rgba(29,185,84,0.35);
          text-transform: uppercase;
          letter-spacing: 0.04em;
        }
        @media (min-width: 1024px) { #pinned-widgets-bar { display: none !important; } }

        /* Mobil: üst/alt bar sabit — sadece main-content kayar */
        @media (max-width: 1023px) {
          header.top-bar {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            z-index: 45 !important;
          }
          nav.bottom-nav {
            position: fixed !important;
            bottom: 0 !important;
            left: 0 !important;
            right: 0 !important;
            z-index: 50 !important;
          }
          #main-content {
            padding-top: 4rem !important;
            padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 16px)) !important;
          }
          body.has-pinned-widgets #main-content {
            padding-top: calc(4rem + 2.75rem) !important;
          }
          .chordive-modal-backdrop.flex,
          .chordive-modal-backdrop:not(.hidden) {
            align-items: center !important;
            justify-content: center !important;
            padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 8px)) !important;
          }
        }

        /* Masaüstü: sol nav sabit oval bar — sadece sağ içerik kayar */
        @media (min-width: 1024px) {
          aside#main-sidebar {
            position: fixed !important;
            top: 1rem !important;
            bottom: 1rem !important;
            left: 1rem !important;
            height: auto !important;
            max-height: calc(100dvh - 2rem) !important;
            z-index: 50 !important;
          }
          #main-content {
            margin-left: calc(18rem + 1rem) !important;
            padding-top: 0 !important;
            padding-bottom: 1rem !important;
            width: auto;
          }
          body.sidebar-collapsed #main-content {
            margin-left: calc(5.5rem + 1rem) !important;
          }
        }

        /* Metronom input oklarını tamamen gizler */
        input[type="number"]::-webkit-outer-spin-button,
        input[type="number"]::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        input[type="number"] {
            -moz-appearance: textfield;
        }

        /* Sayma sesine eşlik edecek vurgulu nabız efekti */
        @keyframes metro-pulse {
          0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(29, 185, 84, 0.7); }
          50% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(29, 185, 84, 0); }
          100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(29, 185, 84, 0); }
        }
        /* İkili şarkı modalı düzeltmesi */
        #inline-duo-list-container {
            height: 100%;
            display: flex;
            flex-direction: column;
            transition: opacity 280ms ease !important;
        }
        #inline-duo-list {
            flex: 1;
            overflow-y: auto;
            min-height: 0; /* Flex child'ın kendi içinde kaydırılabilmesi için kritik */
        }

        .sidebar-wrapper { width: 18rem; transition: width 500ms cubic-bezier(0.4, 0, 0.2, 1); }
        @media (min-width: 1024px) {
          #main-content { transition: margin-left 500ms cubic-bezier(0.4, 0, 0.2, 1); }
        }
        .nav-item-notation,
        #btn-song-notation,
        #song-notation-slide { display: none !important; }
        .home-heart-icon,
        [data-song-card] [data-song-heart] {
          font-size: 16px !important;
          width: 16px;
          height: 16px;
        }
      body.sidebar-collapsed .sidebar-wrapper { width: 5.5rem; }
      .sidebar-wrapper .hide-on-collapse {
        max-width: 14rem;
        opacity: 1;
        overflow: hidden;
        white-space: nowrap;
        transition: opacity 280ms ease, max-width 500ms cubic-bezier(0.4, 0, 0.2, 1);
      }
      body.sidebar-collapsed .sidebar-wrapper .hide-on-collapse {
        max-width: 0 !important;
        opacity: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0 !important;
        pointer-events: none;
      }
      .sidebar-brand-row { min-height: 3.25rem; }
      #main-sidebar .site-brand-mark {
        display: flex;
        align-items: center;
        justify-content: center;
      }
      #main-sidebar .site-brand-logo-full {
        margin: 0 auto;
      }
      #main-sidebar .site-brand-logo-collapsed {
        display: none !important;
      }
      body.sidebar-collapsed #main-sidebar .site-brand-name {
        display: none !important;
      }
      body.sidebar-collapsed #main-sidebar .site-brand-logo-full {
        display: none !important;
      }
      body.sidebar-collapsed #main-sidebar .site-brand-mark.has-collapsed-logo .site-brand-logo-collapsed {
        display: block !important;
        height: 2.25rem;
        width: 2.25rem;
        max-width: 2.5rem;
        object-fit: contain;
      }
      /* Dar logo yoksa ana logoyu makul boyutta göster */
      body.sidebar-collapsed #main-sidebar .site-brand-mark.has-brand-logo:not(.has-collapsed-logo) .site-brand-logo-full {
        display: block !important;
        height: 2rem;
        max-width: 2.5rem;
      }
      body.sidebar-collapsed #main-sidebar .site-brand-mark:not(.has-brand-logo):not(.has-collapsed-logo) .site-brand-name {
        display: block !important;
        font-size: 0.7rem;
        max-width: 3.5rem;
        text-align: center;
        line-height: 1.1;
        white-space: normal;
      }
      #sidebar-edge-toggle #sidebar-edge-arrow { transition: transform 0.3s; }
      body.sidebar-collapsed #sidebar-edge-toggle #sidebar-edge-arrow { transform: rotate(180deg); }

/* İkili Mod Aktifken Mobil/Tablet Görünümünü Küçültme */
        @media (max-width: 1024px) {
          .dual-active #duo-left-wrapper, .dual-active #duo-right-split-panel {
            font-size: 10px !important;
          }
          .dual-active .interactive-chord, .dual-active .raw-chord, .dual-active .easy-chord-span {
            font-size: 11px !important;
          }
        }

        /* Kalp İkonu Hover Efekti (Listeden Çıkar İşareti - Sadece PC)
           Dolu kalp her zaman FILL=1; hover'da kırık kalp gösterilir. */
        @media (hover: hover) and (pointer: fine) {
            .removable-heart-wrapper:hover .is-added-heart {
                color: #1DB954 !important;
                -webkit-text-fill-color: #1DB954 !important;
            }
            .removable-heart-wrapper:hover .is-added-heart::after {
                content: "heart_broken";
                font-family: 'Material Symbols Outlined', sans-serif;
                font-weight: normal;
                font-style: normal;
                position: absolute;
                inset: 0;
                display: flex;
                align-items: center;
                justify-content: center;
                color: #ef4444;
                -webkit-text-fill-color: #ef4444;
                font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
                pointer-events: none;
                line-height: 1;
            }
        }

        
        button[class~="bg-primary"], a[class~="bg-primary"] {
          background-color: rgba(29,185,84,0.10) !important;
          color: #1DB954 !important;
          border: 1px solid rgba(29,185,84,0.25) !important;
          transition: all 0.2s ease !important;
        }
        button[class~="bg-primary"]:hover, a[class~="bg-primary"]:hover {
          background-color: #1DB954 !important;
          color: #000000 !important;
        }
        button[class~="bg-red-500"], a[class~="bg-red-500"] {
          background-color: rgba(239,68,68,0.10) !important;
          color: #ef4444 !important;
          border: 1px solid rgba(239,68,68,0.25) !important;
          transition: all 0.2s ease !important;
        }
        button[class~="bg-red-500"]:hover, a[class~="bg-red-500"]:hover {
          background-color: #ef4444 !important;
          color: #ffffff !important;
        }
        button[class~="bg-red-600"], a[class~="bg-red-600"] {
          background-color: rgba(220,38,38,0.10) !important;
          color: #dc2626 !important;
          border: 1px solid rgba(220,38,38,0.25) !important;
          transition: all 0.2s ease !important;
        }
        button[class~="bg-red-600"]:hover, a[class~="bg-red-600"]:hover {
          background-color: #dc2626 !important;
          color: #ffffff !important;
        }
        button[class~="bg-blue-500"], a[class~="bg-blue-500"] {
          background-color: rgba(59,130,246,0.10) !important;
          color: #3b82f6 !important;
          border: 1px solid rgba(59,130,246,0.25) !important;
          transition: all 0.2s ease !important;
        }
        button[class~="bg-blue-500"]:hover, a[class~="bg-blue-500"]:hover {
          background-color: #3b82f6 !important;
          color: #ffffff !important;
        }
        /* #16e000 / #1DB954 gibi doğrudan hex ile yazılmış dolu butonlar (inline arbitrary Tailwind class) */
        button[class*="bg-[#16e000]"], a[class*="bg-[#16e000]"],
        button[class*="bg-[#1DB954]"], a[class*="bg-[#1DB954]"] {
          background-color: rgba(29,185,84,0.10) !important;
          color: #16e000 !important;
          border: 1px solid rgba(22,224,0,0.25) !important;
        }
        button[class*="bg-[#16e000]"]:hover, a[class*="bg-[#16e000]"]:hover,
        button[class*="bg-[#1DB954]"]:hover, a[class*="bg-[#1DB954]"]:hover {
          background-color: #16e000 !important;
          color: #000000 !important;
        }

        
        html.chordive-touch #chord-lib-grid > *,
        html.chordive-touch #chord-detail-diagram > *,
        html.chordive-touch #chord-carousel > *,
        html.chordive-touch #tab-songs-list > *,
        html.chordive-touch #profile-archive-list > *,
        html.chordive-touch #library-list-container > *,
        html.chordive-touch #stages-list-container > *,
        html.chordive-touch #duo-song-list > *,
        html.chordive-touch #inline-duo-list > *,
        html.chordive-touch #duo-right-split-content > *,
        html.chordive-touch #tuner-modal .peg,
        html.chordive-touch #tab-editor-modal textarea {
          backdrop-filter: none !important;
          -webkit-backdrop-filter: none !important;
        }

        /* Uzun listelerde ekran dışı satırlar hiç çizilmesin */
        html.chordive-touch #duo-song-list > div,
        html.chordive-touch #inline-duo-list > div {
          content-visibility: auto;
          contain-intrinsic-size: auto 64px;
          contain: layout style paint;
        }
        /* Dokunmatikte hover diye bir şey yok; geçişleri çalıştırmak boşa iş */
        html.chordive-touch #tab-songs-list > div,
        html.chordive-touch #duo-song-list > div,
        html.chordive-touch #inline-duo-list > div,
        html.chordive-touch .chord-lib-card {
          transition: none !important;
        }

        /* Akor kütüphanesi / detay — kaydırma ve varyasyon geçişi
           birbirini bozmasın diye jestleri ayırıyoruz: dikey kaydırma
           tarayıcıda kalır (akıcı), yatay kaydırma JS'e gelir. */
        #chord-detail-modal #chord-carousel-wrap,
        #chord-detail-modal #chord-carousel-wrap { touch-action: none !important; }
        #chord-carousel > div, #chord-carousel > div { contain: layout paint; }
        html.chordive-touch #chord-carousel,
        html.chordive-touch #chord-carousel { transition-duration: 220ms !important; }
        html.chordive-touch #chord-lib-grid,
        html.chordive-touch #chord-library-panel .overflow-y-auto,
        html.chordive-touch #tab-songs-list,
        html.chordive-touch #profile-archive-list {
          -webkit-overflow-scrolling: touch;
          overscroll-behavior: contain;
        }

        /* Araç çubuğu zemini opak — dokunmatikte gereksiz blur yok */
        html.chordive-touch #song-toolbar-section {
          backdrop-filter: none !important;
          -webkit-backdrop-filter: none !important;
        }


/* #song-rendered-content scrollbar */
                                    #song-rendered-content::-webkit-scrollbar { width: 0; }

/* #duo-right-split-content scrollbar */
                                    #duo-right-split-content::-webkit-scrollbar { width: 0; }

/* Masaüstü: A+ / TamEkran / Kaydır eşit aralıklı yan yana */
@media (min-width: 1024px) {
  #song-toolbar {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.375rem !important;
  }
  #song-toolbar > .toolbar-btn {
    width: auto !important;
    flex: 0 0 auto !important;
  }
  #song-toolbar > .song-toolbar-secondary {
    flex: 0 0 auto !important;
    width: auto !important;
    margin-top: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.375rem !important;
    justify-content: flex-start !important;
  }
  .song-fs-kaydir-pair {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 0.375rem;
    flex: 0 0 auto;
    min-width: 0;
  }
}
/* Tablet / dokunmatik: İkili sonrası alta, çerçeveye ortalı */
@media (min-width: 640px) and (max-width: 1023px) {
  #song-toolbar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.375rem !important;
    overflow-x: visible !important;
  }
  #song-toolbar > .toolbar-btn {
    width: auto !important;
    flex: 0 0 auto !important;
  }
  #song-toolbar > .song-toolbar-secondary {
    flex: 1 1 100% !important;
    width: 100% !important;
    margin-top: 0.15rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.375rem !important;
  }
  .song-fs-kaydir-pair {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    flex: 0 0 auto;
  }
}
html.chordive-touch #song-toolbar {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.375rem !important;
  overflow-x: visible !important;
}
html.chordive-touch #song-toolbar > .toolbar-btn {
  width: auto !important;
  flex: 0 0 auto !important;
}
html.chordive-touch #song-toolbar > .song-toolbar-secondary {
  flex: 1 1 100% !important;
  width: 100% !important;
  margin-top: 0.15rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.375rem !important;
}
html.chordive-touch .song-fs-kaydir-pair {
  display: inline-flex !important;
  flex: 0 0 auto;
  gap: 0.375rem;
}
body.zen-mode #song-toolbar,
html.chordive-touch body.zen-mode #song-toolbar,
body.zen-mode.potpori-mode #song-toolbar {
  display: flex !important;
  align-items: center !important;
  gap: 0.375rem !important;
}
body.zen-mode #btn-zen-in-toolbar {
  display: none !important;
}
@media (min-width: 1024px) {
  #btn-zen-in-toolbar { display: none !important; }
  html.chordive-touch #song-toolbar,
  body.zen-mode #song-toolbar,
  html.chordive-touch body.zen-mode #song-toolbar {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
  }
  html.chordive-touch #song-toolbar > .song-toolbar-secondary,
  body.zen-mode #song-toolbar > .song-toolbar-secondary,
  html.chordive-touch body.zen-mode #song-toolbar > .song-toolbar-secondary {
    flex: 0 0 auto !important;
    width: auto !important;
    margin-top: 0 !important;
    justify-content: flex-start !important;
  }
}
.song-toolbar-zen-btn,
.song-toolbar-auto-btn {
  display: inline-flex !important;
}

/* Stüdyo: cam kenarındaki yanıp sönen karartı */
#page-studio .glass-panel {
  isolation: isolate;
  background-clip: padding-box;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
#page-studio .glass-panel > * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.notation-hdr-btn,
.notation-hdr-btn {
  background: var(--bg-card-highest) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
  box-shadow: none !important;
}
.notation-hdr-btn.notation-hdr-active,
.notation-hdr-btn.notation-hdr-active,
.notation-hdr-btn.notation-hdr-active .material-symbols-outlined,
.notation-hdr-btn.notation-hdr-active .material-symbols-outlined {
  background: var(--bg-card-highest) !important;
  color: #16e000 !important;
  border-color: var(--border) !important;
}

#page-notation.notation-inframe-zen > header,
#page-notation.notation-inframe-zen #notation-song-picker-bar,
#page-notation.notation-inframe-zen #notation-editor-input {
  display: none !important;
}
#page-notation.notation-inframe-zen #notation-editor-view.notation-mus2 {
  min-height: calc(100dvh - 5.5rem);
}
#page-notation.notation-inframe-zen #notation-studio-stage {
  min-height: 72vh;
}
#page-notation.notation-inframe-zen #notation-tools-rail {
  max-height: min(88vh, 920px);
}
#notation-zen-root { display: none !important; }

#studio-key-menu {
  position: fixed;
  z-index: 100000;
  max-height: 240px;
  overflow-y: auto;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--bg-card-highest, #161a16);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}
#studio-key-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.7rem 1rem;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text);
}
#studio-key-menu button:hover,
#studio-key-menu button.is-selected {
  background: rgba(22,224,0,0.14);
  color: #16e000;
}

nav.bottom-nav button {
  color: var(--nav-icon-color, #e4e4e7);
}
nav.bottom-nav button.active-nav-item {
  color: #1DB954 !important;
}

.home-heart-icon.is-added-heart,
.song-view-heart-icon.is-added-heart,
.material-symbols-outlined.is-added-heart {
  font-variation-settings: 'FILL' 1, 'wght' 700, 'GRAD' 0, 'opsz' 24 !important;
}
@media (hover: hover) and (pointer: fine) {
  .removable-heart-wrapper:hover .is-added-heart {
    color: #1DB954 !important;
    -webkit-text-fill-color: currentColor !important;
  }
}

#notation-studio-paper {
  transform-origin: top left;
}

.metro-sound-btn.active,
[data-metro-sound].active {
  background: rgba(29,185,84,0.22) !important;
  color: #1DB954 !important;
  border-color: rgba(29,185,84,0.55) !important;
}

/* ========== Akorify ========== */
#page-akorify .akorify-mode-btn.akorify-mode-active {
  background: rgba(29,185,84,0.18) !important;
  border-color: rgba(29,185,84,0.5) !important;
  color: #1DB954 !important;
}

.akorify-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
}
.akorify-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.akorify-video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem;
  color: var(--text-muted);
}

.akorify-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: inline-block;
  transition: background 0.2s, box-shadow 0.2s;
}
.akorify-status-dot.live {
  background: #1DB954;
  box-shadow: 0 0 10px rgba(29,185,84,0.65);
  animation: akorify-pulse 1.4s infinite;
}
@keyframes akorify-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.akorify-time-code {
  color: var(--text-muted);
  background: var(--bg-card-highest);
  padding: 0.25rem 0.55rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
}

.akorify-lyrics-body {
  display: flex;
  gap: 1rem;
}
.akorify-rail {
  position: relative;
  width: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  flex-shrink: 0;
  min-height: 200px;
  align-self: stretch;
}
.akorify-rail-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(180deg, #1DB954, #16e000);
  border-radius: 3px;
  transition: height 0.25s ease;
}
.akorify-rail-dot {
  position: absolute;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1DB954;
  box-shadow: 0 0 12px rgba(29,185,84,0.55), 0 0 0 3px rgba(29,185,84,0.15);
  transform: translate(-50%, -50%);
  transition: top 0.25s ease;
}

.akorify-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-height: 560px;
  overflow-y: auto;
  padding-right: 4px;
}
.akorify-lines::-webkit-scrollbar { width: 6px; }
.akorify-lines::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border-radius: 6px;
}

.akorify-line {
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  transition: background 0.25s ease, box-shadow 0.25s ease;
  scroll-margin: 40px;
}
.akorify-line.active {
  background: rgba(29,185,84,0.08);
  box-shadow: inset 0 0 0 1px rgba(29,185,84,0.28);
}
.akorify-line-time {
  display: block;
  font-family: Cousine, ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  opacity: 0.75;
}
.akorify-line.active .akorify-line-time {
  color: #1DB954;
  opacity: 1;
}

.akorify-token-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0;
}
.akorify-token {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 2px;
  margin-right: 2px;
}
.akorify-chord-badge {
  font-family: Cousine, ui-monospace, monospace;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--chord-color, #16e000);
  background: rgba(22,224,0,0.1);
  border: 1px solid rgba(22,224,0,0.35);
  border-radius: 0.4rem;
  padding: 1px 6px;
  margin-bottom: 3px;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.akorify-word {
  font-size: 16px;
  line-height: 1.4;
  color: var(--text);
  transition: color 0.15s ease;
}
.akorify-token:hover .akorify-chord-badge {
  color: #0d100d;
  background: #1DB954;
  border-color: #1DB954;
  box-shadow: 0 0 14px rgba(29,185,84,0.45);
  transform: translateY(-2px);
}
.akorify-token:hover .akorify-word {
  color: #1DB954;
}
.akorify-line.active .akorify-chord-badge {
  color: #1DB954;
  background: rgba(29,185,84,0.14);
  border-color: rgba(29,185,84,0.45);
}

.akorify-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.6rem;
  padding: 3rem 1rem;
  color: var(--text-muted);
}
.akorify-empty b {
  color: var(--text);
}

.akorify-editor {
  width: 100%;
  min-height: 340px;
  background: var(--bg-card-highest);
  border: 1px solid var(--border);
  border-radius: 1rem;
  color: var(--text);
  font-family: Cousine, ui-monospace, monospace;
  font-size: 13.5px;
  line-height: 1.7;
  padding: 1rem;
  resize: vertical;
  outline: none;
}
.akorify-editor:focus {
  border-color: rgba(29,185,84,0.45);
}

/* Şarkı görünümü — çerçeve masaüstünde fazla geniş kalmasın */
body:not(.zen-mode) #library-layout:has(#library-song-view:not(.hidden)),
body:not(.zen-mode) #stages-layout:has(#stages-song-view:not(.hidden)),
body:not(.zen-mode) #page-song-detail > #song-detail-movable-container {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}
/* Repertuardan açılan şarkıda da sağdan açılan Listelerim paneli */
#stages-layout:has(#stages-song-view:not(.hidden)) { overflow: hidden; }
#stages-layout:not(:has(#stages-song-view:not(.hidden))) > #library-side-panel { display: none !important; }

/* Açık nav/cam rengi seçildiğinde yazılar otomatik koyulaşır (html.glass-light, app.js hesaplar) */
html.glass-light {
  --text: #161b16;
  --text-muted: #4a5649;
  --border: rgba(0,0,0,0.1);
  --bg-card: rgb(var(--nav-glass-rgb));
  --bg-card-low: color-mix(in srgb, rgb(var(--nav-glass-rgb)) 95%, #000);
  --bg-card-high: color-mix(in srgb, rgb(var(--nav-glass-rgb)) 92%, #000);
  --bg-card-highest: color-mix(in srgb, rgb(var(--nav-glass-rgb)) 87%, #000);
}
html.glass-light body { color: var(--text); }
html.glass-light :is(.text-white, .text-white\/90, .text-white\/80, .text-white\/70, .text-white\/60, .text-zinc-200, .text-zinc-300, .text-zinc-400, .text-neutral-300, .text-neutral-400):not(:is(#home-hero-carousel, .chordive-crisp-media, .song-yt-btn, [class^="bg-primary"], [class*=" bg-primary"], [class^="bg-red-"], [class*=" bg-red-"], [class^="bg-black"], [class*=" bg-black"], [class^="bg-emerald-"], [class*=" bg-emerald-"], [class^="bg-green-"], [class*=" bg-green-"], [class^="bg-amber-"], [class*=" bg-amber-"], [class^="bg-blue-"], [class*=" bg-blue-"], [class^="bg-purple-"], [class*=" bg-purple-"], [class^="bg-[#"], [class*=" bg-[#"]) *):not([class^="bg-primary"], [class*=" bg-primary"], [class^="bg-red-"], [class*=" bg-red-"], [class^="bg-black"], [class*=" bg-black"]) {
  color: var(--text) !important;
}
html.glass-light .placeholder\:text-on-surface-variant\/50::placeholder { color: rgba(22,27,22,0.45) !important; }

/* Şarkı içi Not / Tab paneli — cam dış yüzey, koyu iç yazı alanı */
.song-glass-panel {
  background: linear-gradient(rgba(255,255,255,0.045), rgba(255,255,255,0.02)), var(--glass) !important;
  border-color: rgba(255,255,255,0.08) !important;
  backdrop-filter: blur(var(--bg-blur, 20px));
  -webkit-backdrop-filter: blur(var(--bg-blur, 20px));
}
.song-glass-inner {
  background: rgba(0,0,0,0.32) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  box-shadow: inset 0 2px 12px rgba(0,0,0,0.25);
}
textarea.song-glass-inner:focus { border-color: rgba(29,185,84,0.5) !important; }
/* Not paneli — akor alanıyla (#duo-left-wrapper / #song-rendered-content) birebir aynı */
.song-note-panel { padding: 0.5rem; scroll-margin-top: 170px; }
.song-note-text {
  background: rgba(0,0,0,0.2);
  border: 0;
  border-radius: 0.75rem;
  padding: 0.5rem 2.25rem 0.5rem 0.5rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 16px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  scrollbar-width: none;
}
.song-note-text::-webkit-scrollbar { width: 0; }
html.glass-light .song-note-text { background: rgba(0,0,0,0.07); }

/* Cam modallar (Sahneye Ekle, Ses ile Ton Bul, Akor Kütüphanesi) — cam üstüne cam katlanmasın */
.glass-modal-panel {
  border-color: rgba(255,255,255,0.08) !important;
  box-shadow: 0 10px 50px rgba(0,0,0,0.5) !important;
}
.glass-modal-inner {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
}
.glass-modal-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
}
.glass-modal-btn:hover {
  background: rgba(29,185,84,0.12);
  border-color: rgba(29,185,84,0.4);
  color: #1DB954;
}

/* YouTube logo butonu + mini albüm karesinde oynayan video */
.song-yt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
}
.song-yt-btn svg { width: 18px; height: 18px; }
.song-yt-btn:hover { transform: scale(1.1); }
.song-yt-btn.is-active {
  background: rgba(255,0,0,0.18);
  border-color: rgba(255,0,0,0.7);
  box-shadow: 0 0 14px rgba(255,0,0,0.45);
}
#detail-album-wrap.yt-active { display: flex !important; }
.yt-album-video {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  background: transparent;
  border-radius: inherit;
  animation: ytAlbumIn 0.3s ease-out;
}
.yt-album-video.hidden { display: none !important; }
@keyframes ytAlbumIn { from { opacity: 0; } to { opacity: 1; } }
.yt-album-video #song-yt-iframe {
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  width: 185% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  transform: translateX(-50%) !important;
  pointer-events: none;
  background: #000 !important;
}
.yt-album-video iframe,
.yt-album-video #song-yt-iframe iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  transform: none !important;
  clip-path: none !important;
  pointer-events: none;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: #000 !important;
}
.yt-album-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  transition: background 0.2s;
}
.yt-album-overlay .material-symbols-outlined {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #000;
  background: rgba(29,185,84,0.92);
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.2s, transform 0.2s;
}
.yt-album-overlay:hover { background: rgba(0,0,0,0.3); }
.yt-album-overlay:hover .material-symbols-outlined,
.yt-album-video:not(.is-playing) .yt-album-overlay .material-symbols-outlined { opacity: 1; transform: scale(1); }
.yt-album-video:not(.is-playing) .yt-album-overlay { background: rgba(0,0,0,0.35); }
/* Kontroller sanatçı adının altında; kart boyu değişmesin diye başlık bloğu yarım kontrol boyu yukarı kayar */
.song-title-col { transition: transform 0.3s ease; }
#song-header-card:has(#song-yt-controls:not(.hidden)) > .song-title-col { transform: translateY(-12px); }
.yt-album-controls {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  min-width: 170px;
  height: 20px;
  gap: 4px;
  display: flex;
  align-items: center;
  animation: ytAlbumIn 0.3s ease-out;
}
.yt-album-controls.hidden { display: none !important; }
.yt-album-controls input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  min-width: 40px;
  height: 12px;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  --yt-pct: 0%;
}
.yt-album-controls input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(to right, #1DB954 var(--yt-pct), rgba(255,255,255,0.25) var(--yt-pct));
}
.yt-album-controls input[type="range"]::-moz-range-track { height: 3px; border-radius: 999px; background: rgba(255,255,255,0.25); }
.yt-album-controls input[type="range"]::-moz-range-progress { height: 3px; border-radius: 999px; background: #1DB954; }
.yt-album-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  margin-top: -4px;
  border-radius: 50%;
  background: #1DB954;
  border: none;
  box-shadow: 0 0 0 2px rgba(29,185,84,0.25);
}
.yt-album-controls input[type="range"]::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #1DB954;
  border: none;
}
html.glass-light .yt-album-controls input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(to right, #1DB954 var(--yt-pct), rgba(0,0,0,0.2) var(--yt-pct));
}
html.glass-light .yt-album-controls input[type="range"]::-moz-range-track { background: rgba(0,0,0,0.2); }
/* Telefonda kart iç boşluğu dar: başlık + sanatçı Geri butonuna yaklaşır, kontroller o boşluğa oturur */
@media (max-width: 639px) {
  #song-header-card:has(#song-yt-controls:not(.hidden)) > .song-title-col { transform: translateY(-5px); }
  #song-header-card:has(#song-yt-controls:not(.hidden)) > .song-title-col > :is(#detail-title, .yt-artist-wrap) { transform: translateY(-10px); }
  .song-title-col > :is(#detail-title, .yt-artist-wrap) { transition: transform 0.3s ease; }
  .yt-album-controls { top: calc(100% - 7px); height: 18px; }
}
/* Admin — sayfa/widget görünürlük satırları */
.admin-feature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}
.admin-feature-seg {
  display: inline-flex;
  flex-shrink: 0;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
}
.admin-feature-seg button {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}
.admin-feature-seg button.is-on[data-state="on"] { background: #1DB954; color: #000; }
.admin-feature-seg button.is-on[data-state="soon"] { background: #f59e0b; color: #000; }
.admin-feature-seg button.is-on[data-state="off"] { background: #ef4444; color: #fff; }

/* Açılır listeler — notlar paneli gibi cam; kategori / ton / rol menüleri notlarla aynı, diğerleri bir tık koyu */
:is(.glass-options-dropdown, #studio-key-menu, #library-sort-menu, #home-expanded-sort-menu, #notification-log-dropdown, #chordive-lang-menu, #bs-net-ctx, #widget-pin-ctx, #mobile-profile-ctx) {
  --menu-shade: 0.32;
  background: linear-gradient(rgba(0,0,0,var(--menu-shade)), rgba(0,0,0,var(--menu-shade))), var(--glass) !important;
  backdrop-filter: blur(24px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(140%) !important;
  border-color: var(--border) !important;
}
:is(.glass-menu-soft, #studio-key-menu) { --menu-shade: 0.2; }
html.glass-light :is(.glass-options-dropdown, #studio-key-menu, #library-sort-menu, #home-expanded-sort-menu, #notification-log-dropdown, #chordive-lang-menu, #bs-net-ctx, #widget-pin-ctx, #mobile-profile-ctx) { --menu-shade: 0.1; }
html.glass-light :is(.glass-menu-soft, #studio-key-menu) { --menu-shade: 0.07; }
/* Stüdyo şarkı bilgileri — cam modda yazılar beyaz */
#studio-meta-fields input::placeholder { color: rgba(255,255,255,0.8) !important; opacity: 1; }
#studio-meta-fields .glass-select-display,
#studio-meta-fields .glass-select-text,
#studio-meta-fields #studio-key-btn,
#studio-meta-fields #song-import-actions button,
#studio-meta-fields #studio-admin-credits span,
#studio-meta-heading { color: #fff !important; }
#studio-meta-fields #song-import-actions button:hover { color: #1DB954 !important; }
html.glass-light #studio-meta-fields input::placeholder { color: var(--text-muted) !important; }
html.glass-light :is(#studio-meta-fields .glass-select-display, #studio-meta-fields .glass-select-text, #studio-meta-fields #studio-key-btn, #studio-meta-fields #song-import-actions button, #studio-meta-fields #studio-admin-credits span, #studio-meta-heading) { color: var(--text) !important; }
/* Profil istatistik ve arşiv kartı: hover'da soluk dikdörtgen katman çıkmasın */
#page-profile section.glass-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
#page-profile section.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: var(--glass);
  backdrop-filter: blur(var(--bg-blur, 20px));
  -webkit-backdrop-filter: blur(var(--bg-blur, 20px));
}
#page-profile section.glass-panel > * {
  position: relative;
  z-index: 1;
}
#prof-stats-grid .glass-box,
#prof-stats-grid .glass-box:hover,
#profile-archive-list .glass-box,
#profile-archive-list .glass-box:hover,
#gamification-banner,
#gamification-banner:hover {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  outline: none !important;
  transition: border-color 0.15s ease !important;
}
:is(.glass-panel, .glass-box, .chordive-ui-blur, .profile-settings-row) :is(.glass-panel, .glass-box, .chordive-ui-blur, .profile-settings-row) {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
/* Albüm çerçevesi videoyu ortalar; köşe dışına taşan katman kalmasın */
#detail-album-wrap {
  overflow: hidden !important;
  border-radius: 1.5rem;
  isolation: isolate;
  box-shadow: none !important;
}
.yt-album-video {
  overflow: hidden;
  border-radius: inherit;
  clip-path: inset(0 round 1.5rem);
}
#detail-album-wrap iframe {
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}
/* Profil kaydırıcıları: üzerine gelince arkada soluk kare çıkmasın */
#bg-opacity-slider,
#bg-blur-slider,
#nav-glass-opacity-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 16px;
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  accent-color: transparent;
}
#bg-opacity-slider:hover,
#bg-opacity-slider:focus,
#bg-opacity-slider:focus-visible,
#bg-blur-slider:hover,
#bg-blur-slider:focus,
#bg-blur-slider:focus-visible,
#nav-glass-opacity-slider:hover,
#nav-glass-opacity-slider:focus,
#nav-glass-opacity-slider:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}
#bg-opacity-slider::-webkit-slider-runnable-track,
#bg-blur-slider::-webkit-slider-runnable-track,
#nav-glass-opacity-slider::-webkit-slider-runnable-track {
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(to right, #1DB954 var(--range-pct, 50%), rgba(255,255,255,0.22) var(--range-pct, 50%));
}
#bg-opacity-slider::-webkit-slider-thumb,
#bg-blur-slider::-webkit-slider-thumb,
#nav-glass-opacity-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border: 0;
  border-radius: 50%;
  background: #1DB954;
  box-shadow: none;
}
#bg-opacity-slider::-moz-range-track,
#bg-blur-slider::-moz-range-track,
#nav-glass-opacity-slider::-moz-range-track {
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
}
#bg-opacity-slider::-moz-range-progress,
#bg-blur-slider::-moz-range-progress,
#nav-glass-opacity-slider::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: #1DB954;
}
#bg-opacity-slider::-moz-range-thumb,
#bg-blur-slider::-moz-range-thumb,
#nav-glass-opacity-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: #1DB954;
  box-shadow: none;
}
.yt-album-controls input[type="range"]:hover,
.yt-album-controls input[type="range"]:focus,
.yt-album-controls input[type="range"]:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}
.yt-album-controls input[type="range"]::-webkit-slider-thumb {
  box-shadow: none;
}
/* Renk seçiciler — yerel kare çerçeve yerine yuvarlak renk */
input[type="color"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 999px !important;
  overflow: hidden;
}
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: 2px solid rgba(255,255,255,0.18); border-radius: 999px; }
input[type="color"]::-moz-color-swatch { border: 2px solid rgba(255,255,255,0.18); border-radius: 999px; }
/* Şarkı içi akor alanı — not yazı alanının camı, bir tık daha koyu */
#duo-left-wrapper,
#duo-right-split-panel {
  background: linear-gradient(rgba(0,0,0,0.26), rgba(0,0,0,0.26)), var(--surface-container) !important;
}
html.glass-light #duo-left-wrapper,
html.glass-light #duo-right-split-panel {
  background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), var(--surface-container) !important;
}
/* Şarkı içi akor penceresi — varyasyon okları */
#chord-hover-popup.visible { pointer-events: auto; }
#chord-hover-popup .chp-var {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-top: 2px;
}
#chord-hover-popup .chp-var.hidden { display: none; }
#chord-hover-popup .chp-var button {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--text-muted);
  transition: color 0.15s, background 0.15s;
}
#chord-hover-popup .chp-var button:hover { color: #1DB954; background: rgba(29,185,84,0.15); }
#chord-hover-popup .chp-var .material-symbols-outlined { font-size: 16px; }
#chord-hover-popup #chp-var-count {
  min-width: 34px;
  font-size: 10px;
  font-weight: 900;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
/* Ana sayfa — Popüler Sanatçılar (dar, yatay kaydırmalı) */
.home-artist-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding: 2px 2px 4px;
  -webkit-overflow-scrolling: touch;
}
.home-artist-card {
  flex: 0 0 auto;
  width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  scroll-snap-align: start;
  text-align: center;
  cursor: pointer;
}
.home-artist-photo {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255,255,255,0.12);
  transition: transform 0.2s, border-color 0.2s;
}
.home-artist-photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(29,185,84,0.12);
  color: #1DB954;
}
.home-artist-card:hover .home-artist-photo { transform: scale(1.06); border-color: #1DB954; }
.home-artist-name {
  width: 100%;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-artist-count {
  margin-top: -2px;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
}
.home-artist-nav {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--text-muted);
  transition: color 0.15s, background 0.15s;
}
.home-artist-nav:hover { color: #1DB954; background: rgba(29,185,84,0.12); }
.home-artist-nav .material-symbols-outlined { font-size: 18px; }
@media (hover: none) { .home-artist-nav { display: none; } }
/* YouTube kontrolleri — solda mini ±10 sn, sağda süre */
.yt-album-controls .yt-skip-btn {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  opacity: 0.85;
  transition: color 0.15s, opacity 0.15s, transform 0.15s;
}
.yt-album-controls .yt-skip-btn:hover { color: #1DB954; opacity: 1; transform: scale(1.12); }
.yt-album-controls .yt-skip-btn .material-symbols-outlined { font-size: 16px; }
.yt-album-controls .yt-time {
  flex-shrink: 0;
  margin-left: 2px;
  font-size: 9px;
  font-weight: 800;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* Tüm açılır listeler — cam (Ton Seç tonu), yeşil ince kaydırma çubuğu */
:is(.glass-options-dropdown, #studio-key-menu, #library-sort-menu, #home-expanded-sort-menu, #notification-log-dropdown, #chordive-lang-menu, #bs-net-ctx, #widget-pin-ctx, #mobile-profile-ctx) {
  --menu-shade: 0.2;
  background: linear-gradient(rgba(0,0,0,var(--menu-shade)), rgba(0,0,0,var(--menu-shade))), var(--glass) !important;
  backdrop-filter: blur(var(--bg-blur, 20px)) saturate(140%) !important;
  -webkit-backdrop-filter: blur(var(--bg-blur, 20px)) saturate(140%) !important;
  box-shadow: none !important;
}
body.reduced-motion :is(.glass-options-dropdown, #studio-key-menu, #library-sort-menu, #home-expanded-sort-menu, #notification-log-dropdown, #chordive-lang-menu, #bs-net-ctx, #widget-pin-ctx, #mobile-profile-ctx) {
  background: var(--bg-card-high) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
@supports not selector(::-webkit-scrollbar) {
  :is(.glass-options-dropdown, #studio-key-menu, #library-sort-menu, #home-expanded-sort-menu, #notification-log-dropdown, #chordive-lang-menu, #bs-net-ctx, #widget-pin-ctx, #mobile-profile-ctx) { scrollbar-width: thin; scrollbar-color: #1DB954 transparent; }
}
html.glass-light :is(.glass-options-dropdown, #studio-key-menu, #library-sort-menu, #home-expanded-sort-menu, #notification-log-dropdown, #chordive-lang-menu, #bs-net-ctx, #widget-pin-ctx, #mobile-profile-ctx) { --menu-shade: 0.07; }
:is(.glass-options-dropdown, #studio-key-menu, #library-sort-menu, #home-expanded-sort-menu, #notification-log-dropdown, #chordive-lang-menu, #bs-net-ctx, #widget-pin-ctx, #mobile-profile-ctx)::-webkit-scrollbar { width: 6px; }
:is(.glass-options-dropdown, #studio-key-menu, #library-sort-menu, #home-expanded-sort-menu, #notification-log-dropdown, #chordive-lang-menu, #bs-net-ctx, #widget-pin-ctx, #mobile-profile-ctx)::-webkit-scrollbar-track { background: transparent; }
:is(.glass-options-dropdown, #studio-key-menu, #library-sort-menu, #home-expanded-sort-menu, #notification-log-dropdown, #chordive-lang-menu, #bs-net-ctx, #widget-pin-ctx, #mobile-profile-ctx)::-webkit-scrollbar-thumb { background: #1DB954; border-radius: 10px; }
:is(.glass-options-dropdown, #studio-key-menu, #library-sort-menu, #home-expanded-sort-menu, #notification-log-dropdown, #chordive-lang-menu, #bs-net-ctx, #widget-pin-ctx, #mobile-profile-ctx)::-webkit-scrollbar-button { display: none; height: 0; }
/* Kategori Seç listesi — Ton Seç menüsüyle aynı satırlar */
.glass-menu-keylike { padding: 0; gap: 0; border-radius: 1rem; max-height: 240px; }
.glass-menu-keylike > div {
  padding: 0.7rem 1rem;
  border-radius: 0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
}
.glass-menu-keylike > div:hover,
.glass-menu-keylike > div.text-primary {
  background: rgba(22,224,0,0.14);
  color: #16e000;
}
/* Şarkı başlık kartı — profildeki bulanıklık ayarına bağlı kalsın */
/* Kart Akorlar paneline de Repertuar paneline de taşınır; iç içe cam kuralı ikisinde de blur'u öldürmesin */
#song-header-card {
  backdrop-filter: blur(var(--bg-blur, 20px)) !important;
  -webkit-backdrop-filter: blur(var(--bg-blur, 20px)) !important;
}
body.reduced-motion #song-header-card { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
/* Şarkı içi pinli widget’lar — albüm kartı camı gibi bulanık arka plan */
#song-detail-mini-tools > .glass-panel,
#song-detail-mini-tools .glass-panel {
  background: rgba(16, 19, 16, 0.42) !important;
  backdrop-filter: blur(var(--bg-blur, 20px)) saturate(1.35) !important;
  -webkit-backdrop-filter: blur(var(--bg-blur, 20px)) saturate(1.35) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28) !important;
  isolation: isolate;
}
body.reduced-motion #song-detail-mini-tools .glass-panel {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: var(--bg-card-high) !important;
}
html.light #song-detail-mini-tools .glass-panel {
  background: rgba(255, 255, 255, 0.55) !important;
}
/* Stüdyo ipuçları — yeşil noktalı liste */
.studio-tips-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.studio-tips-list li { position: relative; padding-left: 1rem; font-size: 12px; line-height: 1.5; color: var(--text-muted); }
.studio-tips-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #1DB954;
  box-shadow: 0 0 6px rgba(29,185,84,0.6);
}
#library-list-container > [data-song-card] {
  content-visibility: auto;
  contain-intrinsic-size: auto 58px;
}/* YouTube — çubuk sanatçı adı genişliğinde; altında solda ±10 sn, sağda süre */
.yt-album-controls {
  top: calc(100% + 3px);
  width: 100%;
  min-width: 0;
  height: auto;
  flex-direction: column;
  align-items: stretch;
  gap: 1px;
}
.yt-album-controls input[type="range"] { flex: none; width: 100%; min-width: 0; }
.yt-album-controls .yt-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: max-content;
  height: 16px;
}
.yt-album-controls .yt-skip-group { display: flex; align-items: center; gap: 2px; margin-left: -2px; }
.yt-album-controls .yt-skip-btn { width: 16px; height: 16px; }
.yt-album-controls .yt-skip-btn .material-symbols-outlined { font-size: 14px; }
.yt-album-controls .yt-time { margin-left: 0; }
#song-header-card:has(#song-yt-controls:not(.hidden)) > .song-title-col { transform: translateY(-16px); }
@media (max-width: 639px) {
  #song-header-card:has(#song-yt-controls:not(.hidden)) > .song-title-col { transform: translateY(-8px); }
  .yt-album-controls { top: calc(100% - 6px); height: auto; }
}
/* Akor penceresi — açılır listelerle aynı cam */
#chord-hover-popup {
  background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), var(--glass) !important;
  backdrop-filter: blur(var(--bg-blur, 20px)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--bg-blur, 20px)) saturate(140%);
  border-color: var(--border) !important;
}
html.glass-light #chord-hover-popup { background: linear-gradient(rgba(0,0,0,0.07), rgba(0,0,0,0.07)), var(--glass) !important; }
body.reduced-motion #chord-hover-popup { background: var(--bg-card-high) !important; backdrop-filter: none; -webkit-backdrop-filter: none; }
/* Akor cetveli — tablet/touch: çerçeveye eşit yay */
@media (min-width: 1024px) {
  html.chordive-touch #song-ruler-row-inner.song-ruler-layout {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
  }
  html.chordive-touch .song-ruler-main {
    flex: 1 1 auto;
    min-width: 0;
  }
  html.chordive-touch #tone-action-group {
    opacity: 1 !important;
    transform: none !important;
  }
}
/* YouTube mini oynatıcı — albüm karesini tam doldur, kare dışına hiçbir katman taşmasın */
#detail-album-wrap.yt-active,
.yt-album-video {
  -webkit-mask-image: linear-gradient(#000, #000);
  mask-image: linear-gradient(#000, #000);
  contain: paint;
}
.yt-album-video { animation: none; }
.yt-album-video #song-yt-iframe {
  top: 0 !important;
  left: 50% !important;
  margin: 0 !important;
  width: 185% !important;
  height: 100% !important;
  transform: translateX(-50%) !important;
  background: #000 !important;
}
.yt-album-video iframe,
.yt-album-video #song-yt-iframe iframe {
  top: 0 !important;
  left: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: #000 !important;
}
#detail-album-thumb {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}
.chordive-crisp-media[style*="url("] {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}
.yt-album-video.yt-ready iframe,
.yt-album-video.yt-ready #song-yt-iframe { opacity: 1; }
/* Widget pencereleri — bulanıklık tam ekran perdede; panelde ayrıca backdrop-filter olursa Chrome
   panelin çevresinde ayrı boyanan bir dikdörtgen (kare) bırakır. */
html :is(#chord-library-modal, #chord-detail-modal, #pitch-modal, #countdown-modal, #metronome-modal, #tuner-modal, #looper-pro-modal, #band-sync-modal, #global-tab-modal, #profile-list-modal)[id],
html.chordive-touch :is(#chord-library-modal, #chord-detail-modal, #pitch-modal, #countdown-modal, #metronome-modal, #tuner-modal, #looper-pro-modal, #band-sync-modal, #global-tab-modal, #profile-list-modal)[id] {
  background: rgba(0,0,0,0.18) !important;
  backdrop-filter: blur(var(--bg-blur, 20px)) saturate(120%) !important;
  -webkit-backdrop-filter: blur(var(--bg-blur, 20px)) saturate(120%) !important;
}
body:not(.reduced-motion) .chordive-modal-backdrop > :is(.glass-panel, .widget-modal-panel, .glass-modal-panel) {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.reduced-motion :is(#chord-library-modal, #chord-detail-modal, #pitch-modal, #countdown-modal, #metronome-modal, #tuner-modal, #looper-pro-modal, #band-sync-modal, #global-tab-modal, #profile-list-modal)[id] {
  background: rgba(0,0,0,0.45) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
:is(#chord-library-modal, #chord-detail-modal, #pitch-modal, #countdown-modal, #metronome-modal, #tuner-modal, #looper-pro-modal, #band-sync-modal, #global-tab-modal, #profile-list-modal) > .glass-panel {
  background: var(--glass) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-color: rgba(255,255,255,0.1) !important;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35) !important;
}
#chord-detail-modal #chord-carousel-wrap { background: rgba(255,255,255,0.04) !important; border-color: rgba(255,255,255,0.08) !important; }
#chord-detail-modal #chord-shot-panel { background: rgba(255,255,255,0.04) !important; }
html.glass-light #chord-detail-modal #chord-carousel-wrap,
html.glass-light #chord-detail-modal #chord-shot-panel { background: rgba(0,0,0,0.04) !important; border-color: rgba(0,0,0,0.08) !important; }
body.reduced-motion :is(#chord-library-modal, #chord-detail-modal, #pitch-modal, #countdown-modal, #metronome-modal, #tuner-modal, #looper-pro-modal, #band-sync-modal, #global-tab-modal, #profile-list-modal) > .glass-panel {
  background: var(--bg-card-high) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Widget modallarındaki iç kutular: cam (koyu yedek renkler yerine) */
:is(#band-sync-modal, #looper-pro-modal, #countdown-modal, #metronome-modal, #tuner-modal, #pitch-modal, #chord-library-modal, #global-tab-modal) .glass-panel :is([style*="var(--bg-card-high"], [style*="var(--bg-card-highest"], [style*="var(--bg-card-low"], [style*="var(--bg-card,"], [style*="var(--bg-card)"]) {
  background: rgba(255,255,255,0.05) !important;
  border-color: rgba(255,255,255,0.1) !important;
}
:is(#band-sync-modal, #looper-pro-modal) .glass-panel button[style*="var(--bg-card"]:hover {
  background: rgba(255,255,255,0.09) !important;
}
html.glass-light :is(#band-sync-modal, #looper-pro-modal, #countdown-modal, #metronome-modal, #tuner-modal, #pitch-modal, #chord-library-modal, #global-tab-modal) .glass-panel :is([style*="var(--bg-card-high"], [style*="var(--bg-card-highest"], [style*="var(--bg-card-low"], [style*="var(--bg-card,"], [style*="var(--bg-card)"]) {
  background: rgba(0,0,0,0.04) !important;
  border-color: rgba(0,0,0,0.1) !important;
}

/* Okunur placeholder rengi */
input::placeholder, textarea::placeholder {
  color: color-mix(in srgb, var(--text, #fff) 55%, transparent);
  opacity: 1;
}
:is(#lib-search, #countdown-name-input, #chord-lib-search, .widget-field)::placeholder {
  color: color-mix(in srgb, var(--text, #fff) 60%, transparent) !important;
  opacity: 1 !important;
}

/* Akorlar: kategori filtresi çekmecesi — Sırala menüsüyle aynı cam */
#lib-cat-drawer.lib-cat-drawer-portal {
  --menu-shade: 0.2;
  background: linear-gradient(rgba(0,0,0,var(--menu-shade)), rgba(0,0,0,var(--menu-shade))), var(--glass) !important;
  backdrop-filter: blur(var(--bg-blur, 20px)) saturate(140%) !important;
  -webkit-backdrop-filter: blur(var(--bg-blur, 20px)) saturate(140%) !important;
  border-color: var(--border) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
  max-width: calc(100vw - 24px);
}
html.glass-light #lib-cat-drawer.lib-cat-drawer-portal { --menu-shade: 0.07; }
body.reduced-motion #lib-cat-drawer {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: var(--bg-card-high, #1c1c1c) !important;
}

/* Mobil alt bar: eşit genişlikte yuvalar, + butonu tam ortada */
nav.bottom-nav > * { flex: 1 1 0; min-width: 0; }
nav.bottom-nav > .bottom-nav-spacer { visibility: hidden; pointer-events: none; }

/* Widget pencereleri ekrana sığsın; içerik kaydırılsın, kapatma butonu hep görünür */
.widget-modal-panel { max-height: calc(100dvh - 2rem); }
.widget-modal-panel > .p-6 { overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
@media (max-width: 767px) {
  #metronome-modal { padding: 0.75rem !important; align-items: center; }
  #metronome-modal .widget-modal-panel { max-height: calc(100dvh - 1.5rem - env(safe-area-inset-bottom, 0px)); }
  #metronome-modal .widget-modal-panel > div:first-child { padding: 0.75rem 1rem !important; }
  #metronome-modal .widget-modal-panel > div:first-child h2 { font-size: 1.15rem !important; }
  #metronome-modal .widget-modal-panel > .p-6 { padding: 0.9rem 1rem 1rem !important; }
  #metronome-modal #metro-beat-flash { width: 4.25rem !important; height: 4.25rem !important; }
  #metronome-modal #metro-bpm-display { font-size: 1.4rem !important; }
  #metronome-modal .mb-4 { margin-bottom: 0.6rem !important; }
  #metronome-modal .mb-5 { margin-bottom: 0.75rem !important; }
  #metronome-modal .metro-sound-btn, #metronome-modal [id^="metro-btn-"] { padding-top: 0.4rem !important; padding-bottom: 0.4rem !important; }
  #metronome-modal #metro-measure-mute-btn { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
  #metronome-modal #metro-toggle-btn { padding-top: 0.6rem !important; padding-bottom: 0.6rem !important; }
}

/* Mobil şarkı başlığı: YouTube / düzenle / kalp butonları albüm kartının altında */
@media (max-width: 767px) {
  #song-detail-header { padding-bottom: 3.4rem !important; justify-content: flex-start !important; }
  html.chordive-touch #song-detail-header { max-height: 320px; }
  #song-detail-header-actions { bottom: 0.7rem !important; right: 0.85rem !important; }
}
nav.bottom-nav > * .nav-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Telefon: akor kütüphanesi üst bar ve alt menüye taşmasın */
@media (max-width: 767px) {
  #chord-library-modal {
    padding-top: calc(env(safe-area-inset-top, 0px) + 4.5rem) !important;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 5.5rem) !important;
  }
  #chord-library-panel { max-height: 100% !important; }
}

/* Stüdyo sanatçı alanı — resimli öneri listesi */
.artist-ac-list { position: fixed; z-index: 99999; }
.artist-ac-list.hidden { display: none !important; }
.artist-ac-avatar {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card-highest); border: 1px solid var(--border);
}
.artist-ac-avatar img { width: 100%; height: 100%; object-fit: cover; }
.artist-ac-initial { font-weight: 900; font-size: 14px; color: var(--primary); }
.artist-ac-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.artist-ac-count { flex-shrink: 0; font-size: 10px; font-weight: 700; opacity: .6; text-transform: uppercase; letter-spacing: .05em; }
#create-stage-panel {
  background: rgba(16, 19, 16, 0.55) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}
#detail-album-wrap,
#detail-album-wrap.yt-active,
.yt-album-video {
  overflow: hidden !important;
  contain: paint;
  background: transparent !important;
}
#page-profile section.glass-panel button,
#page-profile section.glass-panel label {
  opacity: 1 !important;
}
#page-profile section.glass-panel button:hover,
#page-profile section.glass-panel label:hover,
#page-profile section.glass-panel button:focus,
#page-profile section.glass-panel label:focus {
  outline: none !important;
  box-shadow: none !important;
  opacity: 1 !important;
}
