/* ==========================================================================
   MODÜL 4: NICK LİSTESİ, ARAMA, KİBAR TURUNCU SAYAÇ VE STATUS MODU
   Dosya Yolu: css/kb-nickler.css
   ========================================================================== */

/* Nick listesi (.nickler), K/B butonu, arama ve sayaç yerleşimleri kb-web.css ve kb-mobil.css içine ayrıldı */

/* Mobil ok ikonu varsayılan (Web) görünümde gizlidir; yalnızca kb-mobil.css içinde aktifleşir */
#kbNickToggleBtn .kb-mob-nick-arrow { display: none; }

/* Nick Satırları: Hem Normal Üyeler Hem Şekilli VIP Nickler Görünür */
html body .nickler ul li.nick {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    margin: 2px 0 !important;
    padding: 0 5px !important;
    border-radius: 7px !important;
    background: #ffffff !important;
    border: 1px solid #dbe3f0 !important;
    overflow: hidden !important;
    position: relative !important;
}
html body .nickler ul li.nick.kb-search-hidden,
html body .nickler ul li.nick[style*="display: none"],
html body .nickler ul li.nick[style*="display:none"] { display: none !important; }
html body .nickler ul li.nick::after { display: none !important; }
html body .nickler ul li.nick .donline {
    width: 6px !important; height: 6px !important; border-radius: 50% !important;
    position: absolute !important; left: 4px !important; bottom: 3px !important; top: auto !important;
    border: 1px solid #ffffff !important; z-index: 2 !important;
}
html body .nickler ul li.nick .arkaplan {
    width: 20px !important; height: 20px !important; flex: 0 0 20px !important;
    margin: 0 !important; background: transparent !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
}
html body .nickler ul li.nick .arkaplan img {
    width: 19px !important; height: 19px !important; border-radius: 50% !important; object-fit: cover !important;
}
html body .nickler ul li.nick span.isim {
    font-size: 11.5px !important; font-weight: 700 !important;
    line-height: 26px !important; height: 26px !important;
    white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important;
    display: block !important; flex: 1 1 auto !important;
}
/* Standart Üyelere Göz Yormayan Şık/Pastel Renk Paleti (Özel renkli/şekilli nicklere dokunmaz) */
html body .nickler ul li.nick.user:nth-child(12n+1) span.isim:not([style*="color"]) { color: var(--kb-nick-clr, #6366f1) !important; }
html body .nickler ul li.nick.user:nth-child(12n+2) span.isim:not([style*="color"]) { color: var(--kb-nick-clr, #ec4899) !important; }
html body .nickler ul li.nick.user:nth-child(12n+3) span.isim:not([style*="color"]) { color: var(--kb-nick-clr, #0d9488) !important; }
html body .nickler ul li.nick.user:nth-child(12n+4) span.isim:not([style*="color"]) { color: var(--kb-nick-clr, #8b5cf6) !important; }
html body .nickler ul li.nick.user:nth-child(12n+5) span.isim:not([style*="color"]) { color: var(--kb-nick-clr, #0284c7) !important; }
html body .nickler ul li.nick.user:nth-child(12n+6) span.isim:not([style*="color"]) { color: var(--kb-nick-clr, #db2777) !important; }
html body .nickler ul li.nick.user:nth-child(12n+7) span.isim:not([style*="color"]) { color: var(--kb-nick-clr, #059669) !important; }
html body .nickler ul li.nick.user:nth-child(12n+8) span.isim:not([style*="color"]) { color: var(--kb-nick-clr, #7c3aed) !important; }
html body .nickler ul li.nick.user:nth-child(12n+9) span.isim:not([style*="color"]) { color: var(--kb-nick-clr, #e11d48) !important; }
html body .nickler ul li.nick.user:nth-child(12n+10) span.isim:not([style*="color"]) { color: var(--kb-nick-clr, #2563eb) !important; }
html body .nickler ul li.nick.user:nth-child(12n+11) span.isim:not([style*="color"]) { color: var(--kb-nick-clr, #d97706) !important; }
html body .nickler ul li.nick.user:nth-child(12n+12) span.isim:not([style*="color"]) { color: var(--kb-nick-clr, #9333ea) !important; }

html body:not(.kb-theme-night):not(.kb-theme-dark) .nickler ul li.nick.q span.isim:not([style*="color"]) { color: #dc2626 !important; }
html body:not(.kb-theme-night):not(.kb-theme-dark) .nickler ul li.nick.a span.isim:not([style*="color"]) { color: #ea580c !important; }
html body:not(.kb-theme-night):not(.kb-theme-dark) .nickler ul li.nick.o span.isim:not([style*="color"]) { color: #0284c7 !important; }
html body:not(.kb-theme-night):not(.kb-theme-dark) .nickler ul li.nick.h span.isim:not([style*="color"]) { color: #16a34a !important; }
html body:not(.kb-theme-night):not(.kb-theme-dark) .nickler ul li.nick.v span.isim:not([style*="color"]) { color: #d97706 !important; }

/* Koyu Temalarda Nick Listesi Kartları & Yüksek Kontrastlı Yumuşak Nick Renkleri */
html body:is(.kb-theme-dark, .kb-theme-night) .nickler ul li.nick {
    background: #19243b !important;
    border-color: #293856 !important;
}
html body:is(.kb-theme-dark, .kb-theme-night) .nickler ul li.nick .donline { border-color: #19243b !important; }
html body:is(.kb-theme-dark, .kb-theme-night) .nickler ul li.nick.q span.isim:not([style*="color"]) { color: #f87171 !important; }
html body:is(.kb-theme-dark, .kb-theme-night) .nickler ul li.nick.a span.isim:not([style*="color"]) { color: #fb923c !important; }
html body:is(.kb-theme-dark, .kb-theme-night) .nickler ul li.nick.o span.isim:not([style*="color"]) { color: #38bdf8 !important; }
html body:is(.kb-theme-dark, .kb-theme-night) .nickler ul li.nick.h span.isim:not([style*="color"]) { color: #4ade80 !important; }
html body:is(.kb-theme-dark, .kb-theme-night) .nickler ul li.nick.v span.isim:not([style*="color"]) { color: #fbbf24 !important; }
html body:is(.kb-theme-dark, .kb-theme-night) .nickler ul li.nick.user span.isim:not([style*="color"]) { color: #93c5fd !important; }

/* Eski mobileditor çubuğunu gizle (Yazarken K harfi gizlemesi sadece kb-mobil.css içindedir) */
.editor .co-ust .mobileditor,
.mobileditor {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Dj- takısı alan veya DJ yetkisinde olan nicklerin yanında dans eden hareketli müzik/nota ikonu */
.kb-dj-nick-anim {
    display: inline-flex !important;
    align-items: center !important;
    gap: 1.5px !important;
    margin-left: 3px !important;
    padding: 1px 4px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #ec4899, #8b5cf6) !important;
    color: #ffffff !important;
    font-size: 8.5px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    box-shadow: 0 1px 4px rgba(236, 72, 153, 0.35) !important;
    flex: 0 0 auto !important;
    animation: kbDjNoteDance 0.9s ease-in-out infinite alternate !important;
}
.kb-dj-nick-anim i {
    font-size: 8.5px !important;
    color: #fde047 !important;
}
@keyframes kbDjNoteDance {
    0% { transform: translateY(0) rotate(-6deg) scale(0.96); }
    100% { transform: translateY(-2px) rotate(8deg) scale(1.06); }
}

/* Nick listesinde ikram yapılan nickin yanında çıkan ufak, minicik ama görünür ikram rozetleri */
.kb-nick-treat-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 10.5px !important;
    line-height: 1 !important;
    margin-left: 2px !important;
    padding: 1px 3px !important;
    border-radius: 999px !important;
    background: rgba(254, 243, 199, 0.9) !important;
    border: 1px solid #fcd34d !important;
    flex: 0 0 auto !important;
    box-shadow: 0 1px 3px rgba(217, 119, 6, 0.2) !important;
    animation: kbTreatPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
@keyframes kbTreatPop {
    0% { transform: scale(0.2); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Koyu Temalarda Yardımcı Çubuklar (Oto-Kelime, İfade Hapları, Yazı Stili Hızlı Tuşlar & Sağ Tık Menüsü) */
html body:is(.kb-theme-dark, .kb-theme-night) :is(.kb-autoword-bar, .quote-box, .kb-edit-bar, .kb-mention-popup, .context-menu) {
    background: #162036 !important; border-color: #334155 !important; color: #e2e8f0 !important;
}
html body:is(.kb-theme-dark, .kb-theme-night) :is(.kb-autoword-chip, .kb-msg-react-pill, .kb-react-emoji-btn, .kb-ts-qbtn:not(.active)) {
    background: #1e293b !important; border-color: #334155 !important; color: #e2e8f0 !important;
}
html body:is(.kb-theme-dark, .kb-theme-night) .kb-ts-quick-row,
html body:is(.kb-theme-dark, .kb-theme-night) .kb-msg-react-bar { border-bottom-color: #293856 !important; }

/* ==========================================================================
   SEPULTURA (SUNUCU SAHİBİ) ÇOK ÖZEL ŞEKİLLİ KRALİYET NİCK & KART TASARIMI
   ========================================================================== */
@keyframes kbSepulturaGoldShine {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.kb-sepultura-royal-nick,
body.kb-pm-sepultura #kbPmNick,
body.kb-is-root-owner #kbMenuHeroNick,
.msg .kanal .nick.kb-sepultura-royal-nick,
.msg .mesajsekil .nick.kb-sepultura-royal-nick {
    font-family: 'Cinzel Decorative', Georgia, serif !important;
    font-weight: 900 !important;
    letter-spacing: 0.45px !important;
    background: linear-gradient(90deg, #991b1b 0%, #d97706 24%, #b45309 48%, #e11d48 74%, #991b1b 100%) !important;
    background-size: 200% auto !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #b91c1c !important;
    filter: drop-shadow(0 1px 1px rgba(245, 158, 11, 0.28)) !important;
    animation: kbSepulturaGoldShine 3.8s linear infinite !important;
}
.msg .kanal .nick.kb-sepultura-royal-nick *,
.msg .mesajsekil .nick.kb-sepultura-royal-nick * {
    font-family: inherit !important;
    background: inherit !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

:is(body.kb-theme-dark, body.kb-theme-night) :is(.kb-sepultura-royal-nick, body.kb-pm-sepultura #kbPmNick, body.kb-is-root-owner #kbMenuHeroNick, .msg .kanal .nick.kb-sepultura-royal-nick, .msg .mesajsekil .nick.kb-sepultura-royal-nick),
.kb-sep-royal-plate .kb-sepultura-royal-nick,
.kb-ucard-header .kb-sepultura-royal-nick,
html body .nickler ul li.nick.kb-nick-row-sepultura .kb-sepultura-royal-nick {
    background: linear-gradient(90deg, #fde047 0%, #fb7185 26%, #fef9c3 50%, #f59e0b 76%, #fde047 100%) !important;
    background-size: 200% auto !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 1px 4px rgba(245, 158, 11, 0.45)) !important;
}

.kb-sepultura-royal-nick::before,
body.kb-pm-sepultura #kbPmNick::before,
body.kb-is-root-owner #kbMenuHeroNick::before {
    content: "༺♛ " !important;
    font-family: system-ui, 'Segoe UI Symbol', serif !important;
    font-size: 0.92em !important;
    -webkit-text-fill-color: #f59e0b !important;
    color: #f59e0b !important;
}
.kb-sepultura-royal-nick::after,
body.kb-pm-sepultura #kbPmNick::after,
body.kb-is-root-owner #kbMenuHeroNick::after {
    content: " ♛༻" !important;
    font-family: system-ui, 'Segoe UI Symbol', serif !important;
    font-size: 0.92em !important;
    -webkit-text-fill-color: #f59e0b !important;
    color: #f59e0b !important;
}
/* Nick listesinde dar alana tam sığması için kompakt kraliyet sembolü */
html body .nickler ul li.nick.kb-nick-row-sepultura .kb-sepultura-royal-nick::before { content: "♛ " !important; }
html body .nickler ul li.nick.kb-nick-row-sepultura .kb-sepultura-royal-nick::after  { content: " ⚜" !important; }

html body .nickler ul li.nick.kb-nick-row-sepultura {
    background: linear-gradient(135deg, #1e1b4b 0%, #450a0a 55%, #311042 100%) !important;
    border: 1.5px solid #f59e0b !important;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.28), inset 0 0 8px rgba(251, 191, 36, 0.16) !important;
}
html body .nickler ul li.nick.kb-nick-row-sepultura .arkaplan {
    border-radius: 50% !important;
    box-shadow: 0 0 0 1.5px #fde047 !important;
}

.kb-mention-tag.kb-mention-sepultura {
    background: linear-gradient(135deg, #1e1b4b 0%, #7f1d1d 55%, #4c1d95 100%) !important;
    color: #fde047 !important;
    border: 1px solid #f59e0b !important;
    font-family: 'Cinzel Decorative', Georgia, serif !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35) !important;
}

/* ==========================================================================
   YAYIN ALAN DJ CANLI & YANAR DÖNER NEON NİCK VE EKOLAYZER TASARIMI
   ========================================================================== */
@keyframes kbDjNeonFlow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 200% 50%; }
}
@keyframes kbDjEqBounce {
    0%, 100% { transform: scaleY(0.32); }
    50%      { transform: scaleY(1); }
}
@keyframes kbDjPulseGlow {
    0%, 100% { box-shadow: 0 2px 10px rgba(236, 72, 153, 0.32), inset 0 0 8px rgba(56, 189, 248, 0.16); }
    50%      { box-shadow: 0 3px 16px rgba(56, 189, 248, 0.52), inset 0 0 12px rgba(236, 72, 153, 0.28); }
}

.kb-dj-chroma-nick,
.msg .kanal .nick.kb-dj-chroma-nick,
.msg .mesajsekil .nick.kb-dj-chroma-nick,
html body .nickler ul li.nick .kb-dj-chroma-nick {
    font-weight: 900 !important;
    letter-spacing: 0.3px !important;
    background: linear-gradient(90deg, #ff007f 0%, #7c3aed 20%, #00d2ff 40%, #10b981 60%, #f59e0b 80%, #ff007f 100%) !important;
    background-size: 200% auto !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #ec4899 !important;
    filter: drop-shadow(0 1px 2px rgba(236, 72, 153, 0.32)) !important;
    animation: kbDjNeonFlow 2.2s linear infinite !important;
}
.msg .kanal .nick.kb-dj-chroma-nick *,
.msg .mesajsekil .nick.kb-dj-chroma-nick * {
    background: inherit !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

:is(body.kb-theme-dark, body.kb-theme-night) :is(.kb-dj-chroma-nick, .msg .kanal .nick.kb-dj-chroma-nick, .msg .mesajsekil .nick.kb-dj-chroma-nick),
html body .nickler ul li.nick.kb-nick-row-dj .kb-dj-chroma-nick {
    background: linear-gradient(90deg, #38bdf8 0%, #f472b6 22%, #fde047 45%, #34d399 68%, #c084fc 85%, #38bdf8 100%) !important;
    background-size: 200% auto !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 0 5px rgba(244, 114, 182, 0.45)) !important;
}

html body .nickler ul li.nick.kb-nick-row-dj {
    background: linear-gradient(135deg, #1e1b4b 0%, #3b0764 52%, #0f172a 100%) !important;
    border: 1.5px solid #ec4899 !important;
    animation: kbDjPulseGlow 2.6s ease-in-out infinite !important;
}
html body .nickler ul li.nick.kb-nick-row-onair {
    background: linear-gradient(135deg, #4c0519 0%, #3b0764 50%, #083344 100%) !important;
    border: 1.5px solid #38bdf8 !important;
}

.kb-dj-pill-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    margin-left: auto !important;
    padding: 1px 6px !important;
    border-radius: 999px !important;
    font-size: 9.5px !important;
    font-weight: 900 !important;
    letter-spacing: 0.3px !important;
    color: #fff !important;
    background: linear-gradient(135deg, #ec4899, #7c3aed) !important;
    box-shadow: 0 1px 6px rgba(236, 72, 153, 0.45) !important;
    flex-shrink: 0 !important;
}
.kb-dj-pill-badge.onair {
    background: linear-gradient(135deg, #ef4444, #db2777) !important;
}
.kb-dj-mini-eq {
    display: inline-flex !important;
    align-items: flex-end !important;
    gap: 1.5px !important;
    height: 9px !important;
}
.kb-dj-mini-eq i {
    display: block !important;
    width: 2px !important;
    height: 9px !important;
    border-radius: 1px !important;
    background: #fde047 !important;
    transform-origin: bottom !important;
    animation: kbDjEqBounce 0.65s ease-in-out infinite !important;
}
.kb-dj-mini-eq i:nth-child(2) { animation-delay: 0.18s !important; background: #38bdf8 !important; }
.kb-dj-mini-eq i:nth-child(3) { animation-delay: 0.34s !important; background: #4ade80 !important; }

.kb-msg-dj-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 5px;
    margin-right: 4px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 900;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: linear-gradient(135deg, #ec4899, #6366f1);
    vertical-align: middle;
}

/* ==========================================================================
   WEBRTC ÇOKLU KONFERANS DOCK & HIZLI SEÇİM ÇİPLERİ + RADYO MENÜ BUTONLARI
   ========================================================================== */
.kb-conf-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 128px;
    overflow-y: auto;
    padding: 6px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
html body:is(.kb-theme-dark, .kb-theme-night) .kb-conf-chip-wrap {
    background: #0f172a;
    border-color: #334155;
}
.kb-conf-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}
html body:is(.kb-theme-dark, .kb-theme-night) .kb-conf-chip {
    background: #1e293b;
    border-color: #475569;
    color: #e2e8f0;
}
.kb-conf-chip.active {
    background: linear-gradient(135deg, #4f46e5, #059669) !important;
    color: #fff !important;
    border-color: transparent !important;
}

.kb-webrtc-dock .kb-rtc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}
.kb-webrtc-dock .kb-rtc-title {
    font-size: 12.5px;
    font-weight: 800;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 6px;
}
.kb-webrtc-dock .kb-rtc-title i { color: #34d399; }
.kb-webrtc-dock .kb-rtc-add-btn {
    border: 1px solid rgba(99, 102, 241, 0.6);
    background: #312e81;
    color: #e0e7ff;
    border-radius: 8px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}
.kb-webrtc-dock .kb-rtc-peers {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 6px 0;
    max-height: 130px;
    overflow-y: auto;
}
.kb-webrtc-dock .kb-rtc-peer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.9);
    font-size: 11.5px;
    color: #e2e8f0;
}
.kb-webrtc-dock .kb-rtc-peer-row.me { background: rgba(49, 46, 129, 0.65); }
.kb-webrtc-dock .kb-rtc-st.ok   { color: #4ade80; font-weight: 800; }
.kb-webrtc-dock .kb-rtc-st.wait { color: #fde047; font-weight: 700; }
.kb-webrtc-dock .kb-rtc-st.err  { color: #f87171; font-weight: 700; }
.kb-webrtc-dock .kb-rtc-videos {
    grid-template-columns: 1fr 92px;
    gap: 6px;
    margin-bottom: 6px;
}
.kb-webrtc-dock .kb-rtc-videos video {
    width: 100%;
    height: 118px;
    border-radius: 8px;
    background: #020617;
    object-fit: cover;
}
.kb-webrtc-dock .kb-rtc-actions { display: flex; gap: 8px; }
.kb-webrtc-dock .kb-rtc-btn {
    flex: 1;
    height: 34px;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
.kb-webrtc-dock .kb-rtc-btn.mute { background: #334155; }
.kb-webrtc-dock .kb-rtc-btn.mute.is-muted { background: #d97706; }
.kb-webrtc-dock .kb-rtc-btn.hangup { background: #dc2626; }

.kb-radio-menu-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 8px;
}
.kb-rm-act-btn {
    height: 32px;
    border: none;
    border-radius: 9px;
    color: #fff;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.kb-rm-act-btn.guest { background: linear-gradient(135deg, #ec4899, #7c3aed); }
.kb-rm-act-btn.req   { background: linear-gradient(135deg, #0284c7, #4f46e5); }

/* ==========================================================================
   YÜZEN (FLOATING & DRAGGABLE) YOUTUBE MİNİ PLAYER VE SOHBET İZLE ROZETİ
   ========================================================================== */
.kb-yt-mini-player {
    position: fixed;
    top: calc(var(--kb-header-h, 52px) + 44px);
    right: calc(var(--kb-web-right-w, 210px) + 12px);
    width: 320px;
    max-width: calc(100vw - 16px);
    background: var(--kb-bg, #ffffff);
    color: var(--kb-text, #1e293b);
    border: 1.5px solid var(--kb-border, #cbd5e1);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.28);
    z-index: 9550;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
html.kb-view-mobil .kb-yt-mini-player {
    top: auto;
    bottom: calc(var(--kb-editor-h, 54px) + 10px);
    right: 8px;
    width: 268px;
}
html body:is(.kb-theme-dark, .kb-theme-night) .kb-yt-mini-player {
    background: var(--kb-bg, #0f172a);
    border-color: var(--kb-border, #334155);
    color: var(--kb-text, #f1f5f9);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.55);
}

.kb-yt-mini-player.kb-yt-dragging iframe { pointer-events: none !important; }

.kb-yt-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 10px;
    background: linear-gradient(90deg, #dc2626 0%, #991b1b 55%, #1e1b4b 100%);
    color: #ffffff;
    cursor: grab;
    user-select: none;
    touch-action: none;
}
.kb-yt-head:active { cursor: grabbing; }
.kb-yt-brand {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}
.kb-yt-svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    background: #fff;
    border-radius: 5px;
    padding: 1px;
}
.kb-yt-title {
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kb-yt-win-btns { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.kb-yt-wbtn {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.kb-yt-wbtn.close:hover { background: #ef4444; }

.kb-yt-controls {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-bottom: 1px solid var(--kb-border, #e2e8f0);
    background: var(--kb-bg, #f8fafc);
}
.kb-yt-url-row { display: flex; gap: 5px; }
.kb-yt-url-row input {
    flex: 1 1 auto;
    min-width: 0;
    height: 30px;
    padding: 0 9px;
    border-radius: 8px;
    border: 1px solid var(--kb-border, #cbd5e1);
    background: var(--kb-ed-inp-bg, #ffffff);
    color: var(--kb-text, #0f172a);
    font-size: 11.5px;
    outline: none;
}
html body:is(.kb-theme-dark, .kb-theme-night) .kb-yt-url-row input {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}
.kb-yt-url-row button {
    height: 30px;
    padding: 0 11px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
}

.kb-yt-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.kb-yt-preset-chip {
    padding: 3px 7px;
    border-radius: 999px;
    border: 1px solid var(--kb-border, #cbd5e1);
    background: rgba(239, 68, 68, 0.08);
    color: var(--kb-text, #334155);
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
}
.kb-yt-preset-chip.active,
.kb-yt-preset-chip:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
}

.kb-yt-stage {
    position: relative !important;
    width: 100% !important;
    height: 180px !important;
    min-height: 180px !important;
    flex: 0 0 180px !important;
    background: #090d16;
    overflow: hidden;
}
html.kb-view-mobil .kb-yt-stage {
    height: 152px !important;
    min-height: 152px !important;
    flex: 0 0 152px !important;
}
.kb-yt-stage iframe {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    display: none;
    z-index: 2;
}
.kb-yt-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px;
    font-size: 11.5px;
    font-weight: 600;
    color: #94a3b8;
}

/* Küçültülmüş (Minimize) Müzik Çubuğu (Pill) Modu — Ses Kesilmez! */
.kb-yt-mini-player.kb-yt-minimized {
    width: 226px !important;
    border-radius: 999px !important;
}
.kb-yt-mini-player.kb-yt-minimized .kb-yt-controls { display: none !important; }
.kb-yt-mini-player.kb-yt-minimized .kb-yt-stage {
    width: 1px !important;
    height: 1px !important;
    aspect-ratio: auto !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
}

/* Sohbet Satırı İçindeki YouTube "▶ İzle" Rozeti */
.kb-yt-inline-watch {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #ffffff !important;
    font-size: 10.5px;
    font-weight: 800;
    cursor: pointer;
    vertical-align: middle;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}
.kb-yt-inline-watch:hover { filter: brightness(1.1); }

/* ==========================================================================
   #OPERS ODASI GÖRSEL PROFİL RESMİ (AVATAR) ONAY KARTI
   ========================================================================== */
.kb-oper-avatar-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    border: 1.5px solid #6366f1;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.14);
}
html body:is(.kb-theme-dark, .kb-theme-night) .kb-oper-avatar-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    border-color: #6366f1;
    color: #f1f5f9;
}
.kb-oac-preview {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid #f59e0b;
    background: #020617;
    cursor: zoom-in;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}
.kb-oac-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.kb-oac-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.kb-oac-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 2px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #4f46e5, #db2777);
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.4px;
}
.kb-oac-user {
    font-size: 12.5px;
    line-height: 1.35;
    color: inherit;
}
.kb-oac-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 2px;
}
.kb-oac-btn {
    height: 30px;
    padding: 0 12px;
    border: none;
    border-radius: 9px;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.kb-oac-btn.ok { background: linear-gradient(135deg, #059669, #16a34a); }
.kb-oac-btn.no { background: linear-gradient(135deg, #dc2626, #be123c); }
.kb-oac-result {
    font-size: 12px;
    font-weight: 800;
}
.kb-oac-result.ok { color: #10b981; }
.kb-oac-result.no { color: #f43f5e; }
html.kb-view-mobil .kb-oper-avatar-card { padding: 8px 10px; gap: 9px; }
html.kb-view-mobil .kb-oac-preview { width: 58px; height: 58px; flex-basis: 58px; }

/* ============================================================
   #OPERS KULLANICI GİRİŞ İSTİHBARAT SATIRI (GERÇEK İL & ESKİ NİCKLER)
   ============================================================ */
.kb-oper-intel-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 10px;
    margin: 5px 8px;
    padding: 7px 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.98));
    border: 1px solid rgba(99, 102, 241, 0.28);
    border-left: 4px solid #6366f1;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
    font-size: 12.5px;
    line-height: 1.45;
    color: #1e293b;
}
body.kb-theme-dark .kb-oper-intel-row {
    background: linear-gradient(135deg, #111827, #1e293b);
    border-color: rgba(99, 102, 241, 0.42);
    border-left-color: #818cf8;
    color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}
.kb-oi-time {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    font-family: monospace;
}
body.kb-theme-dark .kb-oi-time { color: #94a3b8; }
.kb-oi-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.3px;
}
.kb-oi-nick {
    font-weight: 800;
    color: #4338ca;
    cursor: pointer;
    text-decoration: underline dotted rgba(79, 70, 229, 0.45);
}
body.kb-theme-dark .kb-oi-nick { color: #a5b4fc; }
.kb-oi-nick:hover { color: #db2777; }
.kb-oi-city {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.32);
    color: #065f46;
    font-size: 12px;
}
.kb-oi-city i { color: #ef4444; }
body.kb-theme-dark .kb-oi-city {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(52, 211, 153, 0.35);
    color: #6ee7b7;
}
.kb-oi-prev {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    color: #334155;
    font-size: 12px;
}
.kb-oi-prev > i { color: #f59e0b; }
body.kb-theme-dark .kb-oi-prev { color: #cbd5e1; }
.kb-oi-oldnick {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.38);
    color: #b45309;
    font-weight: 800;
    font-size: 11.5px;
}
body.kb-theme-dark .kb-oi-oldnick {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(251, 191, 36, 0.42);
    color: #fde68a;
}
.kb-oi-first {
    font-size: 11.5px;
    font-style: italic;
    color: #64748b;
}
body.kb-theme-dark .kb-oi-first { color: #94a3b8; }
.kb-ucard-intel-box {
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(16, 185, 129, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.28);
    font-size: 11.5px;
    line-height: 1.55;
    color: #1e293b;
}
body.kb-theme-dark .kb-ucard-intel-box {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(129, 140, 248, 0.38);
    color: #e2e8f0;
}
html.kb-view-mobil .kb-oper-intel-row { margin: 4px 5px; padding: 6px 9px; font-size: 11.5px; gap: 5px 7px; }

/* ARKA PLAN (HIDDEN TAB) GPU/CPU DONMA ÖNLEYİCİ ANİMASYON DONDURUCU */
body.kb-bg-paused *,
body.kb-bg-paused *::before,
body.kb-bg-paused *::after {
    animation-play-state: paused !important;
    transition: none !important;
}

/* ============================================================
   GÖRSEL & SESLİ EFEKT KOMUTLARI PANELİ VE PARÇACIK ANİMASYONU
   ============================================================ */
.kb-fx-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-height: 52dvh;
    overflow-y: auto;
    padding: 2px;
}
.kb-fx-card-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    cursor: pointer;
    text-align: left;
    transition: transform 0.14s ease, border-color 0.14s ease;
}
.kb-fx-card-btn:hover { transform: translateY(-1px); border-color: #8b5cf6; }
.kb-fx-card-btn:active { transform: scale(0.97); }
body:is(.kb-theme-dark, .kb-theme-night) .kb-fx-card-btn {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-color: #334155;
    color: #f1f5f9;
}
.kb-fx-ico { font-size: 22px; line-height: 1; flex: 0 0 26px; text-align: center; }
.kb-fx-meta { display: flex; flex-direction: column; min-width: 0; }
.kb-fx-meta b { font-size: 12px; font-weight: 800; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-fx-meta small { font-size: 10.5px; font-weight: 700; color: #7c3aed; font-family: monospace; }
body:is(.kb-theme-dark, .kb-theme-night) .kb-fx-meta small { color: #a78bfa; }
.kb-fx-mute-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed #cbd5e1;
    font-size: 11.5px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
}
body:is(.kb-theme-dark, .kb-theme-night) .kb-fx-mute-row { color: #cbd5e1; border-top-color: #334155; }
.kb-fx-particle {
    position: absolute;
    pointer-events: none;
    z-index: 40;
    will-change: transform, opacity;
}
.kb-fx-particle.kb-fx-up {
    bottom: 8px;
    animation: kbFxRiseAnim 2.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.kb-fx-particle.kb-fx-down {
    top: 6px;
    animation: kbFxFallAnim 2.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
@keyframes kbFxRiseAnim {
    0%   { transform: translate3d(0, 12px, 0) scale(0.6); opacity: 0; }
    18%  { opacity: 1; }
    100% { transform: translate3d(14px, -260px, 0) scale(1.22) rotate(14deg); opacity: 0; }
}
@keyframes kbFxFallAnim {
    0%   { transform: translate3d(0, -16px, 0) scale(0.7); opacity: 0; }
    18%  { opacity: 1; }
    100% { transform: translate3d(-14px, 260px, 0) scale(1.18) rotate(-16deg); opacity: 0; }
}
