/* Sohbet odaları: sohbet lobisinin yanında, aynı sohbet alanında sekme olarak açılır. Lobi sohbetinin sınıfları (.messages, .msg, .composer, .reply-bar) ve renk belirteçleri kullanılır:
 * ayrı bir renk şeması yok, tema (açık/koyu) ile birlikte değişir. Oyun içi DJ paneli de aynı belirteçlerle çizilir. */
.lobby-chat { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.lobby-chat[hidden] { display: none; }
.crm-embed { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.crm-embed[hidden] { display: none; }
.crm-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.crm-bar .tt { flex: 1; min-width: 0; display: grid; } .crm-bar .tt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-room { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); position: relative; }
.crm-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.crm-main .reply-bar { margin: 0; border-radius: 0; }
.crm-del { flex: none; border: 0; background: none; opacity: .35; cursor: pointer; font-size: 13px; padding: 0 4px; } .crm-del:hover { opacity: 1; }
.crm-people { position: absolute; z-index: 5; top: 0; right: 0; bottom: 0; width: min(300px, 86vw); transform: translateX(105%); transition: transform .2s; background: var(--surface); border-left: 1px solid var(--line-strong); box-shadow: -10px 0 30px rgba(0, 0, 0, .25); overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.crm-people.open { transform: none; }
.crm-ph { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 8px; }
.crm-person { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; flex-wrap: wrap; } .crm-person:hover { background: var(--hover); }
.crm-person .who { flex: 1; min-width: 0; display: grid; } .crm-person .who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-person .avatar, .crm-pt .avatar { width: 30px; height: 30px; flex: none; }
.crm-sheet .crm-act { display: grid; gap: 6px; margin: 10px 0; } .crm-pt { display: flex; align-items: center; gap: 12px; } .crm-pb { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.crm-danger { background: #dc2626 !important; border-color: #dc2626 !important; color: #fff !important; }
.crm-mlist { display: grid; gap: 4px; max-height: 40vh; overflow-y: auto; }
.crm-list { display: grid; gap: 6px; } .crm-list .modal-actions { margin-top: 8px; }
.crm-li { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: inherit; font: inherit; text-align: left; cursor: pointer; } .crm-li:hover { background: var(--hover); }
.crm-li .ic { font-size: 1.4rem; } .crm-li .who { flex: 1; min-width: 0; display: grid; } .crm-li .who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-owner { background: #f59e0b !important; color: #1f1300 !important; } .crm-mod { background: #38bdf8 !important; color: #04202e !important; }
.crm-b-gold { background: linear-gradient(135deg, #fde68a, #f59e0b) !important; color: #3b2300 !important; } .crm-b-platin { background: linear-gradient(135deg, #f1f5f9, #94a3b8) !important; color: #0f172a !important; }
.crm-b-vip { background: linear-gradient(135deg, #f0abfc, #a855f7) !important; color: #2e0a3f !important; } .crm-b-dj { background: linear-gradient(135deg, #67e8f9, #2563eb) !important; color: #02142f !important; }

/* oyun içi DJ paneli: uygulamanın kendi paneli gibi (belirteçler); radyo odasında sohbetin yanında sütun, dar ekranda altta bölme; diğer oyunlarda katman */
.djd-bar { padding: 6px 12px 0; display: flex; }
.djd-btn { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-2); color: var(--text); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.djd-btn.live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; }
.djd-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ef4444; color: #fff; font-size: .7rem; display: inline-flex; align-items: center; justify-content: center; }
.djd { background: var(--surface); color: var(--text); border-left: 1px solid var(--line); overflow-y: auto; padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.djd[hidden] { display: none; }
.djd-head { display: flex; align-items: center; gap: 8px; } .djd-head b { flex: 1; font-size: .95rem; } .djd-head .dim { font-size: .75rem; color: var(--dim); }
.djd-status { display: flex; align-items: center; gap: 10px; } .djd-l { margin-left: auto; font-weight: 800; }
.djd-pill { padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .75rem; font-weight: 800; } .djd-pill.live { color: #dc2626; border-color: #dc2626; }
.djd-take { padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-strong); font-size: .82rem; display: grid; gap: 6px; justify-items: start; }
.djd-now { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); } .djd-now > div { flex: 1; min-width: 0; display: grid; } .djd-now small, .djd-req small, .djd-conn small { font-size: .7rem; color: var(--dim); } .djd-now b { overflow-wrap: anywhere; }
.djd-title { display: flex; gap: 6px; align-items: center; } .djd-title .input { flex: 1; min-width: 0; }
.djd h4 { margin: 2px 0 0; font-size: .7rem; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.djd-reqs { display: grid; gap: 8px; } .djd-empty { color: var(--dim); font-size: .85rem; padding: 6px 0; }
.djd-req { padding: 9px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 2px; } .djd-req b { overflow-wrap: anywhere; } .djd-req p { margin: 2px 0 0; padding: 5px 8px; border-left: 3px solid var(--accent); background: var(--hover); font-size: .85rem; overflow-wrap: anywhere; }
.djd-acts { display: grid; grid-template-columns: 1.6fr 1fr .6fr; gap: 6px; margin-top: 6px; } .djd-acts button { min-height: 36px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: inherit; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.djd-acts .ok { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } .djd-acts .bad { color: var(--danger, #dc2626); }
.djd .btn.ghost { color: var(--text); }
.djd-foot { display: flex; gap: 8px; margin-top: auto; } .djd-foot .btn { flex: 1; }
.djd-conn { display: grid; gap: 4px; } .djd-conn > div { display: grid; grid-template-columns: 110px 1fr auto; gap: 6px; align-items: center; } .djd-conn code { overflow-wrap: anywhere; font-size: .8rem; }
.crm-room.has-dock.dock-open { grid-template-columns: minmax(0, 1fr) 320px; }
@media (max-width: 760px) {
  .crm-room.has-dock.dock-open { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 52%; }
  .crm-room.has-dock.dock-open .djd { border-left: 0; border-top: 1px solid var(--line-strong); border-radius: 16px 16px 0 0; }
}
.djd-ov { position: fixed; inset: 0; z-index: 220; display: flex; justify-content: flex-end; align-items: flex-end; }
.djd-back { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.djd-ov .djd { position: relative; width: 380px; max-width: 100%; height: 100%; box-shadow: -12px 0 40px rgba(0, 0, 0, .35); }
@media (max-width: 760px) { .djd-ov .djd { width: 100%; height: auto; max-height: 82vh; border-left: 0; border-top: 1px solid var(--line-strong); border-radius: 16px 16px 0 0; padding-bottom: max(14px, env(safe-area-inset-bottom)); } }
