/* Bayrak emojileri: Windows'ta yerleşik emoji yazı tipinde bayrak yok (harf olarak görünür).
   Yalnızca bayrak karakterleri için küçük bir yazı tipi; sayfada bayrak yoksa hiç indirilmez. */
@font-face {
  font-family: "Twemoji Country Flags";
  unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
  src: url("/fonts/TwemojiCountryFlags.woff2?v=1fe9b7f7f114") format("woff2");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #111318;
  --bg-2: #171a20;
  --bg-3: #1e222a;
  --bg-4: #282d38;
  --bg-deep: #0c0e12;
  --line: #2a303b;
  --text: #e8eaef;
  --muted: #959cab;
  --faint: #687080;
  --accent: #2ec4b6;
  --accent-2: #26a99d;
  --accent-ink: #04201d;
  --danger: #f05d5d;
  --warn: #f2b84b;
  --ok: #3fcf8e;
  --admin: #22d3ee;
  --radius: 10px;
  --font: "Twemoji Country Flags", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, sans-serif;
}

* { box-sizing: border-box; }

/* ---------- kaydırma çubukları (temaya uygun, ince, köşeleri yuvarlak) ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb {
  background-color: #2f3542; border-radius: 10px; min-height: 36px;
  border: 3px solid transparent; background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background-color: #414a5c; }
::-webkit-scrollbar-thumb:active { background-color: color-mix(in srgb, var(--accent) 55%, var(--bg-4)); }
::-webkit-scrollbar-button { display: none; height: 0; width: 0; }
/* Yan listeler: çubuk yalnızca üzerine gelince görünür (Discord gibi), yer kaplamaz */
.channel-scroll::-webkit-scrollbar, .members::-webkit-scrollbar { width: 8px; }
.channel-scroll::-webkit-scrollbar-thumb, .members::-webkit-scrollbar-thumb { background-color: transparent; border-width: 2px; }
.channel-scroll:hover::-webkit-scrollbar-thumb, .members:hover::-webkit-scrollbar-thumb { background-color: #2f3542; }
/* Firefox */
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: var(--bg-4) transparent; }
}
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
a { color: var(--accent); }
.muted { color: var(--muted); }
.spacer { flex: 1; }
h2 { font-size: 20px; margin: 0; }

/* ---------- ortak bileşenler ---------- */
.logo { display: block; width: 34px; height: 34px; flex: none; object-fit: contain; }
.logo.sm { width: 28px; height: 28px; }
.login-card .logo { width: 52px; height: 52px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 800; letter-spacing: -.01em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: var(--bg-3); color: var(--text);
  padding: 9px 14px; border-radius: 8px; cursor: pointer; text-decoration: none; font-weight: 600; font-size: 14px;
}
.btn:hover { background: var(--bg-4); }
.btn:disabled { opacity: .5; cursor: progress; }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-2); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.small { padding: 6px 10px; font-size: 13px; }
.btn.block { width: 100%; padding: 11px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: var(--bg-4); color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.off { color: var(--danger); }
.icon-btn.on { background: var(--accent); color: var(--accent-ink); }
.icon-btn.danger:hover { background: var(--danger); color: #fff; }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }

.avatar {
  position: relative; width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 14px;
  transition: box-shadow .12s;
}
.avatar.xs { width: 22px; height: 22px; font-size: 11px; }
.avatar.online::after {
  content: ""; position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--ok); border: 2px solid var(--bg-2);
}
.badge {
  font-size: 10px; font-weight: 700; background: var(--bg-4); color: var(--accent);
  padding: 2px 6px; border-radius: 4px; text-transform: uppercase; letter-spacing: .04em;
}

label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); }
input, select, textarea { font: inherit; color: var(--text); }
input:not([type=checkbox]), select {
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; }
.error { color: var(--danger); font-size: 14px; min-height: 1.2em; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100; max-width: calc(100% - 32px);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: .2s;
  background: var(--bg-4); border: 1px solid var(--line); padding: 10px 16px; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { border-color: var(--danger); }

.dialog {
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); color: var(--text);
  padding: 0; width: min(460px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
}
.dialog::backdrop { background: rgba(0,0,0,.6); }
.dialog-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.dialog h3 { margin: 10px 0 0; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.dialog-footer { display: flex; gap: 8px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- giriş ---------- */
.login-view {
  min-height: 100dvh; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(900px 500px at 20% -10%, rgba(46,196,182,.14), transparent 60%), var(--bg);
}
.login-card {
  width: min(380px, 100%); background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px;
  padding: 30px 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.login-card p { margin: 0 0 4px; }

/* ---------- ana düzen ---------- */
.app { display: grid; grid-template-columns: auto minmax(0, 1fr) 240px; height: 100dvh; }
.scrim { display: none; }

.navcol { display: flex; min-height: 0; height: 100dvh; }
.sidebar { width: 248px; background: var(--bg-2); display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.pane { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.server-header {
  height: 54px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 14px;
  font-weight: 800; font-size: 16px; border-bottom: 1px solid var(--line);
}
.channel-scroll { flex: 1; overflow-y: auto; padding: 6px 8px 12px; }
.section-title {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint);
  font-weight: 700; padding: 16px 8px 6px;
}
.channel-list, .voice-members, .member-list { list-style: none; margin: 0; padding: 0; }
.channel {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 8px; margin: 1px 0;
  border: 0; background: none; border-radius: 6px; color: var(--muted); cursor: pointer; text-align: left;
}
.channel:hover { background: var(--bg-3); color: var(--text); }
.channel.active { background: var(--bg-4); color: var(--text); }
.channel.unread { color: var(--text); font-weight: 650; }
.channel.unread::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: auto; }
.ch-icon svg { width: 18px; height: 18px; display: block; opacity: .8; }
.section-title.has-action { display: flex; align-items: center; justify-content: space-between; }
.section-add {
  width: 20px; height: 20px; padding: 0; border: 0; border-radius: 4px; background: none;
  color: var(--faint); cursor: pointer; display: grid; place-items: center;
}
.section-add:hover, .section-add[aria-expanded="true"] { color: var(--text); background: var(--bg-3); }
.section-add svg { width: 15px; height: 15px; }
.channel.dm { padding: 5px 8px; }
.channel.dm .avatar { width: 24px; height: 24px; font-size: 11px; }
.channel.has-unread { color: var(--text); font-weight: 650; }
.unread-count {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center;
}
.dm-empty { font-size: 12.5px; padding: 4px 8px 6px; line-height: 1.4; }
.dm-picker {
  position: fixed; z-index: 70; width: min(340px, calc(100vw - 16px)); max-height: min(440px, 70dvh); display: flex; flex-direction: column; gap: 6px;
  padding: 8px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.dm-results { overflow-y: auto; min-height: 0; }
.dm-none { padding: 8px; }
.dm-picker-title { font-size: 12px; color: var(--faint); font-weight: 700; padding: 2px 6px 6px; }
.dm-pick {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px; border: 0; border-radius: 6px;
  background: none; color: var(--text); cursor: pointer; text-align: left; font: inherit; font-size: 14px;
}
.dm-pick:hover, .dm-pick:focus-visible { background: var(--bg-3); }
.dm-pick .muted { margin-left: auto; font-size: 12px; }
.avatar.xs.online::after, .channel.dm .avatar.online::after { width: 9px; height: 9px; right: -3px; bottom: -3px; }
.pc-dm { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.pc-dm svg { width: 15px; height: 15px; display: block; }
.pc-body .btn + .btn { margin-top: 6px; }
#btn-menu.has-unread { position: relative; }
#btn-menu.has-unread::after { content: ""; position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.welcome > .avatar.lg { margin-bottom: 8px; cursor: pointer; }
.ch-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.voice-members { padding: 2px 0 6px 26px; }
.vm { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 6px; color: var(--muted); font-size: 14px; }
.vm-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vm.speaking .avatar { box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 4px var(--ok); }
.vm.speaking .vm-name { color: var(--text); }
.vm-icons { margin-left: auto; display: flex; align-items: center; gap: 5px; color: var(--faint); }
.vm-icons svg { width: 15px; height: 15px; display: block; }
.vm-icons .danger { color: var(--danger); }
.live { font-size: 9.5px; font-weight: 800; background: var(--danger); color: #fff; border-radius: 4px; padding: 1px 5px; letter-spacing: .03em; border: 0; font-family: inherit; }
button.live { cursor: pointer; }
button.live:hover { filter: brightness(1.15); }

.voice-panel { position: relative; border-top: 1px solid var(--line); padding: 10px 12px; }
.voice-status {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 4px 6px; margin: -4px -6px;
  border: 0; border-radius: 6px; background: none; cursor: pointer; text-align: left; color: var(--ok);
}
.voice-status:hover { background: var(--bg-3); }
.voice-status-text { min-width: 0; }
.voice-status-text strong { display: block; font-size: 14px; white-space: nowrap; }
.voice-status-text small { display: block; color: var(--muted); }
.ping { font-weight: 600; font-variant-numeric: tabular-nums; }
.signal { width: 18px; height: 16px; flex: none; fill: currentColor; }
.signal rect { transition: opacity .2s; }

/* bağlantı kalitesi renkleri ve sinyal çubukları */
.q-good { color: var(--ok); }
.q-ok { color: var(--warn); }
.q-bad { color: var(--danger); }
.q-wait { color: var(--faint); }
.q-ok .signal rect:nth-child(3) { opacity: .25; }
.q-bad .signal rect:nth-child(n+2) { opacity: .25; }
.q-wait .signal rect { opacity: .35; animation: signal-wait 1.2s infinite; }
.q-wait .signal rect:nth-child(2) { animation-delay: .2s; }
.q-wait .signal rect:nth-child(3) { animation-delay: .4s; }
@keyframes signal-wait { 50% { opacity: 1; } }

.voice-details {
  position: absolute; left: 8px; right: 8px; bottom: calc(100% + 6px); z-index: 20;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; padding: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.45); display: flex; flex-direction: column; gap: 8px; font-size: 13.5px;
}
.nd-title { font-weight: 700; font-size: 14px; }
.nd-sep { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 700; margin-top: 4px; }
.nd-row { display: flex; align-items: flex-start; gap: 8px; }
.nd-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; margin-top: 6px; }
.nd-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.nd-label small { display: block; color: var(--muted); font-size: 12px; }
.nd-value { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nd-note { margin: 2px 0 0; color: var(--faint); font-size: 12px; }
.voice-actions { display: flex; gap: 6px; margin-top: 10px; }
.voice-actions .icon-btn { flex: 1; background: var(--bg-3); }
.voice-actions .icon-btn.on { background: var(--accent); }

.user-panel { display: flex; align-items: center; gap: 6px; padding: 9px 8px 9px 10px; background: var(--bg-deep); }
.user-meta { flex: 1; min-width: 0; margin-left: 4px; }
.user-meta strong, .user-meta small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta strong { font-size: 14px; }
.user-meta small { color: var(--muted); font-size: 12px; }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.main-header {
  height: 54px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 16px;
  border-bottom: 1px solid var(--line); font-size: 16px;
}
.main-header .hash svg { width: 20px; height: 20px; display: block; color: var(--faint); }
.mobile-only { display: none; }

/* ---------- görüntü alanı ---------- */
.stage { flex: none; overflow: hidden; padding: 12px; background: var(--bg-deep); border-bottom: 1px solid var(--line); }
/* Kutuların boyutu JS'te (layoutStage) alana sığacak şekilde hesaplanır: --tile-w, --focus-w, --thumb-w */
.video-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-content: center; }
.video-grid > .tile { flex: 0 0 var(--tile-w, 320px); min-width: 0; }
.video-grid.has-focus > .tile { flex-basis: var(--thumb-w, 160px); }
.video-grid.has-focus > .tile.focused { order: -1; flex-basis: var(--focus-w, 100%); margin-inline: calc((100% - var(--focus-w, 100%)) / 2); }
.video-grid.has-focus .tile:not(.focused) .tile-stats, .video-grid.has-focus .tile:not(.focused) .tile-actions { display: none; }
.tile {
  position: relative; background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9;
  cursor: pointer; box-shadow: 0 0 0 2px transparent; transition: box-shadow .12s;
}
.tile.speaking { box-shadow: 0 0 0 2px var(--ok); }
.tile video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.tile.mirror video { transform: scaleX(-1); }
.tile:fullscreen { aspect-ratio: auto; border-radius: 0; }
.tile-label {
  position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 56px);
  background: rgba(0,0,0,.62); padding: 3px 9px; border-radius: 6px; font-size: 13px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* ---------- sohbet ---------- */
.chat { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.messages { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 0; overscroll-behavior: contain; scrollbar-gutter: stable; }
.welcome { padding: 28px 18px 12px; }
.welcome-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--bg-4); display: grid; place-items: center; margin-bottom: 10px; }
.welcome-icon svg { width: 28px; height: 28px; }
.welcome h2 { font-size: 24px; }
.welcome p { margin: 4px 0 0; }
.empty { padding: 20px 18px; }
.day-sep {
  display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12px; font-weight: 600; margin: 16px 18px 4px;
}
.day-sep::before, .day-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.msg { display: grid; grid-template-columns: 60px minmax(0, 1fr); padding: 3px 18px 3px 0; margin-top: 12px; }
.msg > .avatar { width: 38px; height: 38px; margin: 2px auto 0; font-size: 16px; }
.msg.grouped { margin-top: 0; padding-top: 1px; padding-bottom: 1px; }
.msg:hover { background: rgba(255,255,255,.025); }
.msg-head { display: flex; gap: 8px; align-items: baseline; }
.msg-head strong { font-size: 15px; }
.msg-head time { font-size: 12px; color: var(--faint); }
.hover-time { font-size: 11px; color: var(--faint); text-align: center; visibility: hidden; padding-top: 3px; }
.msg.grouped:hover .hover-time { visibility: visible; }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.typing { height: 20px; padding: 0 18px; font-size: 12.5px; color: var(--muted); }
.composer { padding: 2px 16px 16px; }
.composer-row { display: flex; align-items: flex-end; gap: 4px; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 6px; }
.composer-row:focus-within { border-color: var(--accent); }
.composer-row .icon-btn { margin-bottom: 3px; }
.composer textarea {
  flex: 1; width: 100%; resize: none; max-height: 200px; display: block;
  background: transparent; border: 0; padding: 9px 6px; line-height: 1.4; outline: none;
}

/* ---------- üyeler ---------- */
.members { background: var(--bg-2); border-left: 1px solid var(--line); overflow-y: auto; padding: 0 8px 8px; display: flex; flex-direction: column; }
.member { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; }
.member:hover { background: var(--bg-3); }
.member-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-voice svg { width: 15px; height: 15px; display: block; color: var(--ok); }

/* ---------- duyarlı ---------- */
@media (max-width: 1050px) {
  .app { grid-template-columns: auto minmax(0, 1fr); }
  .members { display: none; }
}
@media (max-width: 720px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .navcol {
    position: fixed; inset: 0 auto 0 0; width: min(330px, 92vw); z-index: 30;
    transform: translateX(-100%); transition: transform .2s ease;
  }
  .navcol .sidebar { width: auto; flex: 1; min-width: 0; }
  .app.sidebar-open .navcol { transform: none; box-shadow: 20px 0 50px rgba(0,0,0,.5); }
  .friends-tabs { overflow-x: auto; margin-left: 4px !important; padding-left: 8px !important; }
  .friends-tabs button { padding: 4px 8px !important; }
  .scrim { position: fixed; inset: 0; z-index: 25; background: rgba(0,0,0,.5); }
  .app.sidebar-open .scrim { display: block; }
  .mobile-only { display: inline-grid; }
  .main-header { padding: 0 8px; }
  .main-header .btn span { display: none; }
  .msg { grid-template-columns: 52px minmax(0, 1fr); padding-right: 12px; }
  .composer { padding: 2px 10px calc(10px + env(safe-area-inset-bottom)); }
  }

/* ---------- yönetici paneli ---------- */
.admin-header {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; background: var(--bg-2); border-bottom: 1px solid var(--line);
}
.admin-header .brand { font-size: 18px; }
.admin-main { max-width: 1180px; margin: 0 auto; padding: 20px 16px 40px; display: grid; gap: 18px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat small { display: block; color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.stat strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.card h2 { font-size: 16px; margin-bottom: 12px; display: flex; align-items: baseline; gap: 8px; }
.card h2 small { font-weight: 500; font-size: 13px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--faint); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; padding: 8px; font-weight: 700; white-space: nowrap; }
td { padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
td.nowrap { white-space: nowrap; }
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-cell small { display: block; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.pill.on { color: var(--ok); } .pill.on::before { background: var(--ok); }
.pill.bad { color: var(--danger); } .pill.bad::before { background: var(--danger); }
.pill.warn { color: var(--warn); } .pill.warn::before { background: var(--warn); }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.sessions { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.pw-box {
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
  font: 600 20px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em;
  background: var(--bg); border: 1px dashed var(--accent); padding: 12px 14px; border-radius: 8px; user-select: all;
}

/* ---------- profil fotoğrafı ---------- */
.avatar.has-photo { background: var(--bg-4); }
.avatar > img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar.lg { width: 72px; height: 72px; font-size: 28px; }
.profile-row { display: flex; align-items: center; gap: 16px; }
.profile-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.profile-info strong { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- yama notları ---------- */
.icon-btn.has-dot { position: relative; color: var(--text); }
.icon-btn.has-dot::after {
  content: ""; position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger); box-shadow: 0 0 0 2px var(--bg);
}
.dialog.wide { width: min(560px, calc(100% - 32px)); }
.news-list { display: flex; flex-direction: column; gap: 18px; max-height: 60dvh; overflow-y: auto; padding-right: 4px; }
.news-entry header { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.news-entry header time { font-size: 13px; margin-left: auto; }
.news-entry ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--text); }
.news-entry li::marker { color: var(--accent); }
.news-version {
  font: 700 12px ui-monospace, SFMono-Regular, Menlo, monospace; padding: 2px 7px; border-radius: 6px;
  background: var(--bg-4); color: var(--muted);
}
.news-version.latest { background: var(--accent); color: var(--accent-ink); }

/* ---------- güncelleme uyarısı ---------- */
.update-banner {
  display: flex; align-items: center; gap: 12px; padding: 8px 16px; flex: none;
  background: color-mix(in srgb, var(--accent) 16%, var(--bg)); border-bottom: 1px solid var(--line); font-size: 14px;
}
.update-banner span { flex: 1; }

/* ---------- ekran paylaşımı: kalite seçimi ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { flex-direction: row; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 84px;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg);
  color: var(--text); font-weight: 600; font-size: 14px; transition: .12s;
}
.chip span small { font-weight: 500; font-size: 11.5px; color: var(--muted); }
.chip:hover span { border-color: var(--faint); }
.chip input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--bg)); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.small-note { font-size: 12.5px; margin: 0; }

/* ---------- yayın üstü bilgiler ---------- */
.tile-stats {
  position: absolute; left: 8px; top: 8px; display: flex; align-items: center; gap: 6px; max-width: calc(100% - 90px);
  background: rgba(0,0,0,.62); padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 600;
  font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tile-stats span { color: #fff; overflow: hidden; text-overflow: ellipsis; }
.tile-stats .signal { width: 14px; height: 12px; }
.tile.cam .tile-stats { opacity: 0; transition: opacity .12s; }
.tile.cam:hover .tile-stats { opacity: 1; }
.tile-actions { position: absolute; right: 8px; top: 8px; display: flex; gap: 6px; opacity: 0; transition: opacity .12s; }
.tile:hover .tile-actions, .tile.focused .tile-actions { opacity: 1; }
.tile-btn {
  width: 30px; height: 30px; border: 0; border-radius: 6px; background: rgba(0,0,0,.62); color: #fff;
  cursor: pointer; display: grid; place-items: center;
}
.tile-btn:hover { background: rgba(0,0,0,.85); }
.tile-btn svg { width: 16px; height: 16px; }
.tile.offer { display: grid; place-items: center; background: var(--bg-3); cursor: default; }
.offer-body { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 16px; }
.offer-body > div:nth-child(2) { display: flex; align-items: center; gap: 8px; }
.offer-body p { margin: 0 0 4px; }
.tile.offer.compact .offer-body { gap: 6px; padding: 8px; }
.tile.offer.compact .offer-body > .avatar, .tile.offer.compact .offer-body p { display: none; }
.tile.offer.tiny .offer-body > div { display: none; }
.tile.offer.tiny .offer-body .btn { padding: 5px 9px; font-size: 12px; }
.pc-watch, .pc-join { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.pc-join svg { width: 15px; height: 15px; display: block; }
.pc-status .live { margin-left: 2px; }
@media (max-width: 720px) { .tile-actions { opacity: 1; } }

/* ---------- yükleme çubuğu ---------- */
.progress { height: 8px; border-radius: 4px; background: var(--bg-4); overflow: hidden; margin-top: 12px; }
.progress > div { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.card .small-note { margin-top: 10px; }

/* ---------- mikrofon testi ---------- */
.mic-test { display: flex; align-items: center; gap: 12px; }
.mic-test .level { flex: 1; height: 8px; border-radius: 4px; background: var(--bg-4); overflow: hidden; }
.mic-test .level > div { height: 100%; width: 0; background: var(--ok); transition: width .06s linear; }

/* ---------- giriş hassasiyeti ---------- */
#gate-range { width: 100%; accent-color: var(--warn); }


/* ---------- mesaj işlemleri ---------- */
.msg { position: relative; }
.msg-actions { position: absolute; right: 14px; top: -10px; display: none; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 2px; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.msg:hover .msg-actions { display: flex; }
.msg-act { width: 30px; height: 28px; border: 0; background: none; color: var(--muted); border-radius: 6px; cursor: pointer; display: grid; place-items: center; }
.msg-act svg { width: 16px; height: 16px; }
.msg-act.danger:hover { background: var(--danger); color: #fff; }
.msg.grouped .msg-main { grid-column: 2; }
[data-user] { cursor: pointer; }
.msg-author:hover { text-decoration: underline; }
@media (hover: none) { .msg:hover .msg-actions { display: none; } .msg.touched .msg-actions { display: flex; top: -14px; } }

/* ---------- ekler ---------- */
.atts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.att-img { display: block; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: zoom-in; background: var(--bg-3);
  max-width: min(420px, 100%); max-height: 320px; }
.att-img img { display: block; max-width: 100%; max-height: 320px; width: auto; height: auto; object-fit: contain; }
.att-video { max-width: min(480px, 100%); max-height: 320px; border-radius: 8px; background: #000; }
.att-file { display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-width: 240px; max-width: 420px;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; color: var(--text); text-decoration: none; }
a.att-file:hover { border-color: var(--accent); }
.att-ico { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 8px; background: var(--bg-4); color: var(--accent); }
.att-ico svg { width: 20px; height: 20px; }
.att-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 4px; }
.att-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.att-meta audio { width: 100%; height: 32px; }
.att-dl svg { width: 18px; height: 18px; color: var(--muted); }

/* yüklenmeyi bekleyen dosyalar */
.pending { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.pend { position: relative; display: flex; align-items: center; gap: 8px; width: 270px; padding: 8px 30px 12px 8px;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pend img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; flex: none; }
.pend-meta { display: flex; flex-direction: column; min-width: 0; }
.pend-meta strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pend-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--bg-4); }
.pend-bar > div { height: 100%; background: var(--accent); transition: width .15s; }
.pend.done .pend-bar > div { background: var(--ok); }
.pend.error { border-color: var(--danger); }
.pend.error small { color: var(--danger); }
.pend-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.pend-x:hover { background: var(--danger); color: #fff; }
.pend-x svg { width: 14px; height: 14px; }
.chat { position: relative; }
.drop-hint { position: absolute; inset: 8px; z-index: 5; display: grid; place-items: center; pointer-events: none;
  border: 2px dashed var(--accent); border-radius: 14px; background: color-mix(in srgb, var(--bg) 82%, transparent); font-size: 18px; font-weight: 700; color: var(--accent); }

/* ---------- profil kartı ---------- */
.avatar.xl { width: 84px; height: 84px; font-size: 34px; }
.profile-card { position: fixed; z-index: 60; width: 300px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden auto; overscroll-behavior: contain; max-height: calc(100dvh - 16px); max-width: calc(100vw - 16px);
  box-shadow: 0 18px 50px rgba(0,0,0,.55); }
.pc-banner { height: 64px; opacity: .85; }
.pc-body { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.pc-body > .avatar { margin-top: -44px; border: 5px solid var(--bg-2); box-sizing: content-box; }
.pc-name { display: flex; align-items: center; gap: 8px; font-size: 19px; margin-top: 6px; }
.pc-status { font-size: 13px; color: var(--faint); display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.pc-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--faint); }
.pc-status.on { color: var(--ok); }
.pc-status.on::before { background: var(--ok); }
.pc-section { margin-top: 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.pc-bio { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.pc-body .btn { margin-top: 12px; }
#in-bio { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; resize: vertical; font: inherit; color: var(--text); }

/* ---------- resim görüntüleyici ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.88); display: grid; place-items: center; padding: 24px 24px 72px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.lightbox-bar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 12px 18px; background: rgba(0,0,0,.6); }
.lightbox-bar span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- yayın: başlat/durdur ---------- */
.icon-btn.live-btn { background: var(--danger) !important; color: #fff !important; }

/* ---------- tam ekran ---------- */
.tile:fullscreen { border-radius: 0; background: #000; }
.tile:fullscreen video { object-fit: contain; }
.tile:fullscreen .tile-actions { opacity: 1; }
.tile.idle, .tile.idle * { cursor: none !important; }
.tile.idle .tile-actions, .tile.idle .tile-stats, .tile.idle .tile-label { opacity: 0 !important; transition: opacity .3s; }
.tile:fullscreen .tile-btn { width: 38px; height: 38px; }

/* ---------- sinema modu ---------- */
.app.cinema { grid-template-columns: minmax(0, 1fr); }
.app.cinema .navcol, .app.cinema .members, .app.cinema .chat, .app.cinema .main-header, .app.cinema .update-banner { display: none !important; }
.app.cinema .stage { flex: 1; border: 0; padding: 10px; display: flex; }
.app.cinema .video-grid { flex: 1; }
.app.cinema .tile.focused .tile-actions { opacity: 1; }
.app.cinema.idle, .app.cinema.idle * { cursor: none; }
.app.cinema.idle .tile-actions, .app.cinema.idle .tile-stats, .app.cinema.idle .tile-label { opacity: 0 !important; transition: opacity .3s; }
.exit-cinema { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50; background: rgba(0,0,0,.7); border-color: transparent; }
.app.cinema.idle ~ .exit-cinema { opacity: 0; transition: opacity .3s; }


/* ---------- yayın göstergesi (Discord düzeni) ---------- */
.tile-top { position: absolute; left: 8px; top: 8px; display: flex; align-items: center; gap: 6px; pointer-events: none; }
.live-badge { background: var(--danger); color: #fff; font-weight: 800; font-size: 11px; letter-spacing: .05em; padding: 3px 7px; border-radius: 5px; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.viewers { display: inline-flex; align-items: center; gap: 4px; background: rgba(0,0,0,.62); color: #fff; padding: 3px 7px; border-radius: 5px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.viewers svg { width: 13px; height: 13px; display: block; }
.tile-stats { left: auto !important; top: auto !important; right: 8px; bottom: 8px; max-width: 48% !important; }
.tile-label { max-width: 48% !important; }
.tile.screen .tile-stats { opacity: .9; }
.video-grid.has-focus .tile:not(.focused) .tile-top .viewers { display: none; }
.video-grid.has-focus .tile:not(.focused) .live-badge { font-size: 9px; padding: 2px 5px; }
.tile.idle .tile-top, .app.cinema.idle .tile-top { opacity: 0; transition: opacity .3s; }
/* Sinema modu: çıkış butonu yayının üstüne binmesin — yayının üstünde kendi şeridinde durur */
.app.cinema .stage { padding-top: 48px; }
.exit-cinema { top: 9px !important; }


/* =====================================================================
   v0.9 — sol menü şeridi, arkadaşlar, yeni ayarlar, profil, rozetler
   ===================================================================== */
/* Yönetici adı: hareketli camgöbeği (yalnızca yöneticiler; kimse seçemez) */
.is-admin {
  color: #22d3ee !important;
  background: linear-gradient(90deg, #06b6d4, #67e8f9, #22d3ee, #a5f3fc, #0891b2, #06b6d4) 0 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: admin-name 5s linear infinite;
}
@keyframes admin-name { to { background-position: 300% 0; } }
@media (prefers-reduced-motion: reduce) { .is-admin { animation: none; } }
/* Diğer ad renkleri ve yazı tipleri sayfaya kişiye göre eklenir (app.js: nameStyleClass) */
/* Yetkili işareti: rozet değil, adın hemen yanında sabit */
.staff-mark { display: inline-block; flex: none; width: 16px; height: 16px; margin-left: 4px; vertical-align: -3px; background: none; -webkit-text-fill-color: initial; text-shadow: none; filter: none; animation: none; padding: 0; }
.staff-mark svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3)); }
.pc-name .staff-mark, .fp-name .staff-mark { width: 22px; height: 22px; margin-left: 6px; vertical-align: -4px; }
.name-sw { display: grid; place-items: center; color: #10131a; }
.name-sw svg { width: 14px; height: 14px; stroke-width: 3; }

/* ---------- sol menü şeridi ---------- */
.rail { width: 72px; flex: none; background: var(--bg-deep); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0; overflow-y: auto; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail-btn {
  position: relative; width: 48px; height: 48px; flex: none; border: 0; padding: 0; border-radius: 50%; cursor: pointer;
  background: var(--bg-3); color: var(--text); display: grid; place-items: center; transition: border-radius .15s, background .15s, color .15s;
}
.rail-btn:hover, .rail-btn.active { border-radius: 16px; background: var(--accent); color: var(--accent-ink); }
.rail-btn.server { background: var(--bg-3); }
.rail-btn.server img { width: 36px; height: 36px; object-fit: contain; display: block; }
.rail-btn.server:hover, .rail-btn.server.active { background: var(--bg-3); }
.rail-btn.green { color: var(--ok); }
.rail-btn.green:hover, .rail-btn.green.active { background: var(--ok); color: #04201d; }
.rail-ico svg { width: 24px; height: 24px; display: block; }
.rail-pill {
  position: absolute; left: -12px; top: 50%; width: 4px; height: 0; border-radius: 0 4px 4px 0; background: var(--text);
  transform: translateY(-50%); transition: height .15s;
}
.rail-btn:hover .rail-pill { height: 20px; }
.rail-btn.active .rail-pill { height: 40px; }
.rail-badge {
  position: absolute; right: -4px; bottom: -4px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px;
  background: var(--danger); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; border: 4px solid var(--bg-deep);
}
.rail-dot { position: absolute; left: -12px; top: 50%; width: 4px; height: 8px; border-radius: 0 4px 4px 0; background: var(--text); transform: translateY(-50%); }
.rail-btn.active .rail-dot { display: none; }
.rail-sep { width: 32px; height: 2px; border-radius: 1px; background: var(--line); flex: none; }
a.rail-btn { text-decoration: none; }

/* ---------- ana sayfa kenar çubuğu ---------- */
.find-btn {
  width: 100%; height: 30px; border: 0; border-radius: 6px; background: var(--bg-deep); color: var(--faint);
  font-size: 13px; text-align: left; padding: 0 10px; cursor: pointer;
}
.find-btn:hover { color: var(--muted); }
.nav-item { margin-top: 8px; padding: 9px 10px; gap: 12px; font-weight: 600; }
.nav-item .ch-icon svg { width: 20px; height: 20px; opacity: 1; }
.nav-item .unread-count { margin-left: auto; }

/* kanal satırı: yönetici için dişli */
.ch-row { position: relative; }
.ch-gear {
  position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; border: 0; border-radius: 4px; padding: 0;
  background: none; color: var(--faint); cursor: pointer; display: grid; place-items: center; opacity: 0;
}
.ch-gear svg { width: 15px; height: 15px; }
.ch-row:hover > .ch-gear, .ch-gear:focus-visible { opacity: 1; }
.ch-gear:hover { color: var(--text); }
.ch-row:hover > .channel { padding-right: 32px; }
@media (hover: none) { .ch-gear { opacity: .7; } }

/* ---------- üst çubuk: arkadaş sekmeleri ---------- */
.friends-tabs { display: flex; align-items: center; gap: 4px; margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--line); min-width: 0; }
.friends-tabs button {
  border: 0; background: none; color: var(--muted); padding: 4px 10px; border-radius: 6px; font-weight: 600; font-size: 14px;
  cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
}
.friends-tabs button:hover { background: var(--bg-3); color: var(--text); }
.friends-tabs button[aria-selected="true"] { background: var(--bg-4); color: var(--text); }
.friends-tabs .add-tab { background: var(--ok); color: #04201d; }
.friends-tabs .add-tab:hover { background: var(--ok); color: #04201d; filter: brightness(1.08); }
.friends-tabs .add-tab[aria-selected="true"] { background: none; color: var(--ok); }
.friends-tabs .unread-count { margin-left: 0; }

/* ---------- arkadaşlar sayfası ---------- */
.friends-page { flex: 1; min-height: 0; overflow-y: auto; }
.fp-inner { padding: 18px 26px 30px; max-width: 900px; }
.fp-inner h2 { font-size: 18px; margin-bottom: 4px; }
.fp-inner > p { margin: 0 0 14px; }
.fp-title { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin: 18px 0 8px; }
.friend-list { display: flex; flex-direction: column; }
.friend-row { display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-top: 1px solid var(--line); border-radius: 8px; }
.friend-row:first-child { border-top-color: transparent; }
.friend-row:hover { background: var(--bg-3); border-top-color: transparent; }
.friend-row:hover + .friend-row { border-top-color: transparent; }
.fr-meta { display: flex; flex-direction: column; min-width: 0; }
.fr-meta strong { display: inline-flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-meta small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-actions { margin-left: auto; display: flex; gap: 8px; }
.round-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bg-2); color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.friend-row:hover .round-btn { background: var(--bg-deep); }
.round-btn svg { width: 18px; height: 18px; }
.round-btn:hover { color: var(--text); }
.round-btn.ok:hover { color: var(--ok); }
.round-btn.bad:hover { color: var(--danger); }
.add-friend { display: flex; align-items: center; gap: 8px; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 10px; padding: 6px 6px 6px 14px; }
.add-friend:focus-within { border-color: var(--accent); }
.add-friend input { border: 0 !important; background: transparent !important; padding: 8px 0 !important; }
.add-friend .btn { white-space: nowrap; }
.fp-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 60px 20px; }
.fp-empty-ico { width: 80px; height: 80px; border-radius: 50%; background: var(--bg-3); display: grid; place-items: center; color: var(--faint); }
.fp-empty-ico svg { width: 38px; height: 38px; }
.btn.ok { color: var(--ok); }
.btn.ok:hover { background: var(--ok); border-color: var(--ok); color: #04201d; }

/* ---------- sağ panel ---------- */
.member.offline { opacity: .45; }
.member.offline:hover { opacity: .8; }
.member .ubadge { flex: none; }
.active-list { display: flex; flex-direction: column; gap: 8px; }
.active-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: var(--bg-3); }
.active-item .fr-meta { flex: 1; }
.active-empty { text-align: center; padding: 20px 10px; }
.active-empty p { margin: 6px 0 0; font-size: 13px; }
.members.as-profile { padding: 0; }
.profile-card.static { position: static; width: auto; max-height: none; max-width: none; box-shadow: none; border: 0; border-radius: 0; overflow: visible; }
.aside-card { background: transparent; }

/* ---------- rozetler ---------- */
.ubadge { display: inline-grid; width: 20px; height: 20px; flex: none; vertical-align: middle; }
.ubadge svg { width: 100%; height: 100%; display: block; }
.ubadge.sm { width: 15px; height: 15px; }
.msg-head .ubadge { align-self: center; }

/* ---------- profil kartı ---------- */
.pc-banner { height: 96px; opacity: 1; position: relative; overflow: hidden; }
.pc-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-top { display: flex; align-items: flex-end; justify-content: space-between; margin-top: -44px; }
.pc-top > .avatar { border: 5px solid var(--bg-2); box-sizing: content-box; }
.pc-body > .avatar { margin-top: 0; }
.aside-card .pc-top > .avatar { border-color: var(--bg-2); }
.pc-badges { display: flex; gap: 4px; padding: 4px 6px; border-radius: 8px; background: var(--bg-deep); margin-bottom: 4px; }
.avatar.xl.online::after { width: 18px; height: 18px; right: 2px; bottom: 2px; border-width: 4px; }
.pc-row { display: flex; gap: 6px; margin-top: 12px; }
.pc-row .btn { margin-top: 0 !important; }
.pc-row .btn.primary { flex: 1; }
.pc-row .btn svg { width: 15px; height: 15px; display: block; }
.pc-friend { min-width: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--ok); font-size: 13px; font-weight: 600; }
.pc-friend svg { width: 18px; height: 18px; }
.pc-badge-list { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.pc-badge-item { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.pc-badge-item small { display: block; font-size: 12px; }
.pc-body .btn svg { width: 15px; height: 15px; }
.pc-body > .btn { display: inline-flex; gap: 6px; }

/* ---------- giriş: dil ---------- */
.login-lang { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 13px; color: var(--faint); margin-top: 2px; }
.login-lang button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px 4px; border-radius: 4px; }
.login-lang button:hover { color: var(--text); }
.login-lang button.active { color: var(--text); font-weight: 700; }

/* ---------- ayarlar (tam ekran) ---------- */
dialog.settings {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--bg); color: var(--text);
}
dialog.settings::backdrop { background: var(--bg); }
dialog.settings[open] { animation: settings-in .16s ease-out; }
@keyframes settings-in { from { opacity: 0; transform: scale(1.02); } }
.settings-shell { display: flex; height: 100%; }
.settings-nav { flex: 1 0 236px; background: var(--bg-2); display: flex; justify-content: flex-end; overflow-y: auto; padding: 56px 8px 24px 16px; }
.sn-inner { width: 218px; display: flex; flex-direction: column; gap: 2px; }
.sn-group { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); font-weight: 700; padding: 14px 10px 6px; }
.sn-group:first-child { padding-top: 0; }
.sn-item { display: flex; align-items: center; gap: 10px; text-align: left; border: 0; background: none; color: var(--muted); padding: 8px 10px; border-radius: 6px; font-size: 15px; font-weight: 500; cursor: pointer; }
.sn-item:hover { background: var(--bg-3); color: var(--text); }
.sn-item.active { background: var(--bg-4); color: var(--text); }
.sn-item.danger { color: var(--danger); }
.sn-sep { height: 1px; background: var(--line); margin: 8px 10px; }
.sn-version { font-size: 12px; padding: 8px 10px; }
.settings-main { flex: 1 1 800px; overflow-y: auto; display: flex; align-items: flex-start; }
.settings-content { flex: 0 1 760px; min-width: 0; padding: 56px 40px 90px; }
.settings-page { display: flex; flex-direction: column; gap: 14px; }
.settings-page > h2 { font-size: 20px; margin-bottom: 4px; }
.settings-page > h3, .pe-title { margin: 12px 0 0; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 700; }
.pe-title { margin: 0; }
.settings-close-wrap { position: sticky; top: 0; flex: none; padding: 56px 20px 0 0; }
.settings-close { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.sc-x { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--faint); display: grid; place-items: center; }
.sc-x svg { width: 18px; height: 18px; }
.settings-close:hover { color: var(--text); }
.settings-close:hover .sc-x { border-color: var(--text); background: var(--bg-3); }
.sc-esc { font-size: 12px; font-weight: 700; }
.settings-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; min-width: 0; }

.account-card { background: var(--bg-deep); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ac-banner { height: 100px; overflow: hidden; }
.ac-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac-head { display: flex; align-items: flex-start; gap: 14px; padding: 0 16px; margin-top: -34px; }
.ac-head .ac-names, .ac-head .btn { margin-top: 44px; }
.ac-head > .avatar { border: 6px solid var(--bg-deep); box-sizing: content-box; }
.ac-names { display: flex; flex-direction: column; min-width: 0; }
.ac-names strong { font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-head .btn { flex: none; }
.ac-body { margin: 14px 16px 16px; padding: 14px; background: var(--bg-2); border-radius: 10px; }

.profile-editor { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.pe-form { display: flex; flex-direction: column; gap: 14px; }
.pe-sep { height: 1px; background: var(--line); }
.pe-block { display: flex; flex-direction: column; gap: 10px; }
.pe-preview { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 10px; }
#profile-preview { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-2); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { position: relative; width: 36px; height: 36px; border-radius: 8px; border: 0; padding: 0; cursor: pointer; flex-direction: row; display: grid; place-items: center; }
.swatch.on { outline: 2px solid var(--text); outline-offset: 2px; }
.swatch.auto::after { content: "A"; color: #fff; font-weight: 800; font-size: 13px; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.swatch.custom { border: 2px dashed var(--faint); color: var(--muted); overflow: hidden; }
.swatch.custom.on { border-style: solid; border-color: transparent; }
.swatch.custom span svg { width: 16px; height: 16px; display: block; }
.swatch.custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; padding: 0; border: 0; }
.save-bar {
  position: sticky; bottom: 18px; z-index: 2; display: flex; align-items: center; gap: 10px; margin-top: 18px;
  background: var(--bg-deep); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 10px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: settings-in .16s ease-out;
}
.save-bar span { flex: 1; font-weight: 600; font-size: 14px; }
.btn.link { background: none; border-color: transparent; }
.btn.link:hover { background: none; text-decoration: underline; }
.lang-list { display: flex; flex-direction: column; gap: 8px; }
.lang-item { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-size: 15px; cursor: pointer; }
.lang-item.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--bg-2)); }
.lang-item input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.lang-name { font-weight: 700; flex: 1; }
.settings .mic-test { margin-top: -2px; }

/* ---------- kanal penceresi ---------- */
#cd-create, #cd-edit { display: flex; flex-direction: column; gap: 12px; }
.kind-list { display: flex; flex-direction: column; gap: 8px; }
.kind { flex-direction: row; align-items: center; gap: 12px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; color: var(--text); cursor: pointer; }
.kind:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--bg)); }
.kind input { accent-color: var(--accent); margin: 0; }
.kind-ico svg { width: 22px; height: 22px; display: block; color: var(--muted); }
.kind small { display: block; color: var(--muted); font-weight: 500; }

/* ---------- telefon: ayarlar menü → sayfa ---------- */
@media (max-width: 720px) {
  .settings-shell { display: block; position: relative; }
  .settings-nav { position: absolute; inset: 0; padding: 60px 12px 24px; justify-content: stretch; }
  .sn-inner { width: 100%; }
  .settings-main { position: absolute; inset: 0; display: block; }
  dialog.settings:not(.page-open) .settings-main { display: none; }
  dialog.settings.page-open .settings-nav { display: none; }
  .settings-content { padding: 64px 16px 90px; }
  .settings-close-wrap { position: fixed; top: 10px; right: 10px; padding: 0; z-index: 3; }
  .sc-esc { display: none; }
  .profile-editor { grid-template-columns: minmax(0, 1fr); }
  .pe-preview { position: static; order: -1; }
  .settings-grid { grid-template-columns: 1fr; }
  .fp-inner { padding: 14px 12px 24px; }
  .add-friend { flex-wrap: wrap; }
}

/* ---------- rozet göster/gizle ---------- */
.my-badges { display: flex; flex-direction: column; gap: 8px; }
.my-badge { flex-direction: row; align-items: center; gap: 12px; padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; color: var(--text); cursor: pointer; }
.my-badge .ubadge { width: 26px; height: 26px; }
.mb-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.mb-text small { font-weight: 500; }
.switch { position: relative; flex: none; width: 40px; height: 24px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; z-index: 1; }
.switch-ui { position: absolute; inset: 0; border-radius: 12px; background: var(--bg-4); transition: background .15s; }
.switch-ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + .switch-ui { background: var(--ok); }
.switch input:checked + .switch-ui::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- profil görselleri: kırpma alanı (GIF) ve arka plan çerçevesi ---------- */
.av-clip { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; display: block; }
.av-clip > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-clip > img.cropped, .bn-frame > img.cropped { position: absolute; max-width: none; object-fit: fill; }
.pc-banner, .ac-banner { position: relative; overflow: hidden; container-type: size; }
/* Arka plan her zaman 960x336 oranında; kutu farklı orandaysa "cover" gibi taşar, ortalanır */
.bn-frame {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); overflow: hidden;
  aspect-ratio: 960 / 336; width: max(100cqw, 100cqh * 960 / 336);
}
.bn-frame > img:not(.cropped) { width: 100%; height: 100%; object-fit: cover; display: block; }
.zoomable { cursor: zoom-in; }
.pc-top > .avatar.zoomable:hover .av-clip::after, .pc-banner.zoomable:hover::after {
  content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.25) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 26px no-repeat;
}
.pc-banner.zoomable:hover::after { z-index: 1; }

/* ---------- kırpma ekranı ---------- */
.crop-dialog { width: min(520px, calc(100% - 24px)); }
.crop-stage {
  position: relative; height: 340px; border-radius: 10px; overflow: hidden; background: #000;
  touch-action: none; cursor: grab; user-select: none;
}
.crop-stage.dragging { cursor: grabbing; }
.crop-dialog.banner .crop-stage { height: 260px; }
#crop-img { position: absolute; max-width: none; pointer-events: none; user-select: none; }
.crop-mask { position: absolute; pointer-events: none; border: 2px solid rgba(255,255,255,.9); border-radius: 50%; box-shadow: 0 0 0 9999px rgba(0,0,0,.62); }
.crop-dialog.banner .crop-mask { border-radius: 10px; }
.crop-zoom { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.crop-zoom input { flex: 1; accent-color: var(--accent); }
.cz-ico svg { width: 22px; height: 22px; display: block; }
.cz-ico.small svg { width: 15px; height: 15px; }

/* ---------- özel renk seçici ---------- */
.color-pop {
  position: fixed; z-index: 90; width: 240px; padding: 12px; display: flex; flex-direction: column; gap: 10px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.55);
}
.cp-sv { position: relative; height: 150px; border-radius: 8px; cursor: crosshair; touch-action: none; }
.cp-knob { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 1px 4px rgba(0,0,0,.5); pointer-events: none; }
.cp-hue {
  -webkit-appearance: none; appearance: none; width: 100%; height: 12px; border-radius: 6px; padding: 0 !important; border: 0 !important;
  background: linear-gradient(to right, red, #ff0, lime, cyan, blue, #f0f, red) !important;
}
.cp-hue::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid rgba(0,0,0,.35); cursor: pointer; }
.cp-hue::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid rgba(0,0,0,.35); }
.cp-row { display: flex; align-items: center; gap: 8px; }
.cp-preview { width: 36px; height: 36px; border-radius: 8px; flex: none; border: 1px solid var(--line); }
.cp-row input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: lowercase; padding: 8px 10px !important; }
.cp-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ----- Moderasyon penceresi */
.mod-dialog { width: min(560px, calc(100% - 32px)); }
.mod-dialog h2 { font-size: 18px; }
.mod-status { display: flex; flex-wrap: wrap; gap: 14px; }
.mod-block { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.mod-block .small-note { margin: 0; }
.mod-title { font-weight: 700; font-size: 14px; }
.mod-title.danger { color: var(--danger); }
.mod-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mod-row select { width: auto; flex: 0 0 auto; padding: 7px 10px; }
.mod-row input { flex: 1 1 160px; padding: 7px 10px; width: auto; }
.mod-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.mod-col .mod-row { align-self: stretch; }

/* ----- Yönetici paneli: emojiler, kayıtlar */
.card h2 .spacer { flex: 1; }
.card .small-note.top { margin: -4px 0 12px; }
.emoji-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.emoji-form input { width: 220px; padding: 7px 10px; }
.emoji-preview img { width: 32px; height: 32px; object-fit: contain; display: block; }
.emoji-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.emoji-tile { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--bg); min-width: 0; }
.emoji-tile img { width: 40px; height: 40px; object-fit: contain; }
.emoji-tile code { font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.emoji-tile .actions { justify-content: center; }
td.detail { max-width: 340px; overflow-wrap: anywhere; color: var(--muted); }

/* ---------- emojiler ---------- */
.cemoji { width: 22px; height: 22px; object-fit: contain; vertical-align: -5px; display: inline-block; margin: 0 1px; }
.msg-body.jumbo { font-size: 40px; line-height: 1.25; letter-spacing: 3px; }
.msg-body.jumbo .cemoji { width: 48px; height: 48px; vertical-align: -8px; }
.msg-body .edited { font-size: 11px; color: var(--faint); white-space: nowrap; }
.msg-body.jumbo .edited { font-size: 11px; vertical-align: middle; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--danger); }

.emoji-picker {
  position: fixed; z-index: 80; width: min(360px, calc(100vw - 16px)); height: min(430px, calc(100dvh - 16px));
  display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55); overflow: hidden;
}
.emoji-picker[hidden] { display: none; }
.ep-search { margin: 10px 10px 6px; width: auto !important; padding: 8px 10px !important; }
.ep-tabs { display: flex; gap: 2px; padding: 0 8px 6px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; flex: none; }
.ep-tabs::-webkit-scrollbar { display: none; }
.ep-tab { flex: none; width: 32px; height: 30px; border: 0; border-radius: 6px; background: none; font-size: 18px; cursor: pointer; display: grid; place-items: center; filter: grayscale(.7); opacity: .75; }
.ep-tab:hover, .ep-tab.active { background: var(--bg-4); filter: none; opacity: 1; }
.ep-tab .cemoji { width: 20px; height: 20px; margin: 0; vertical-align: 0; }
.ep-body { flex: 1; overflow-y: auto; padding: 4px 8px 8px; overscroll-behavior: contain; }
.ep-section h4 { position: sticky; top: -4px; z-index: 1; margin: 0; padding: 8px 2px 4px; background: var(--bg-2); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); }
/* Ekran dışındaki emoji ızgaraları yerleştirilmez/çizilmez: seçici anında açılır */
.ep-sections .ep-grid { content-visibility: auto; }
.ep-section.empty, .ep-results[hidden], .ep-sections[hidden] { display: none; }
.ep-item { height: 38px; padding: 0; border: 0; border-radius: 8px; background: none; font-size: 24px; line-height: 38px; text-align: center; cursor: pointer; display: block; contain: layout paint style; font-family: "Twemoji Country Flags", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", var(--font); }
.ep-item:hover, .ep-item:focus-visible { background: var(--bg-4); }
.ep-item .cemoji { width: 28px; height: 28px; margin: 0; vertical-align: middle; }
.ep-empty { padding: 24px 6px; text-align: center; }
.ep-footer { flex: none; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px; border-top: 1px solid var(--line); background: var(--bg-deep); font-size: 13px; color: var(--muted); }
.ep-prev { font-size: 22px; min-width: 26px; display: grid; place-items: center; }
.ep-prev .cemoji { width: 24px; height: 24px; margin: 0; }
.ep-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#btn-emoji.active { color: var(--accent); }

.composer { position: relative; }
.emoji-suggest {
  position: absolute; left: 16px; right: 16px; bottom: calc(100% - 2px); z-index: 15; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 6px; box-shadow: 0 -8px 30px rgba(0,0,0,.4); display: flex; flex-direction: column; gap: 1px;
}
.emoji-suggest[hidden] { display: none; }
.edit-box .emoji-suggest { left: 0; right: 0; }
.es-head { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px 6px; }
.es-item { display: flex; align-items: center; gap: 10px; border: 0; background: none; color: var(--text); padding: 5px 8px; border-radius: 6px; text-align: left; cursor: pointer; font: inherit; }
.es-item.active, .es-item:hover { background: var(--bg-4); }
.es-ch { font-size: 20px; width: 24px; text-align: center; }
.es-item .cemoji { width: 22px; height: 22px; margin: 0 1px; vertical-align: 0; }

/* tepkiler */
.reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.reaction {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px; border-radius: 8px; cursor: pointer;
  background: var(--bg-3); border: 1px solid transparent; color: var(--muted); font: 600 13px var(--font);
}
.reaction:hover { border-color: var(--line); background: var(--bg-4); }
.reaction.mine { background: color-mix(in srgb, var(--accent) 16%, var(--bg-3)); border-color: color-mix(in srgb, var(--accent) 60%, transparent); color: var(--text); }
.reaction:disabled { cursor: default; opacity: .7; }
.reaction .remoji { font-size: 16px; line-height: 1; }
.reaction .cemoji { width: 18px; height: 18px; vertical-align: 0; margin: 0; }
.msg-act.quick { font-size: 17px; line-height: 1; }
.msg-act.quick .remoji { font-size: 17px; }
.msg-act.quick .cemoji { width: 18px; height: 18px; margin: 0; vertical-align: 0; }
.msg-act:hover { background: var(--bg-4); color: var(--text); }
.msg-act.quick:hover { transform: scale(1.12); }

/* düzenleme */
.msg.editing { background: rgba(255,255,255,.03); }
.edit-box { position: relative; margin: 2px 0 4px; }
.edit-input {
  display: block; width: 100%; resize: none; background: var(--bg-3); border: 1px solid var(--accent); border-radius: 8px;
  padding: 8px 10px; line-height: 1.45; max-height: 240px; overflow-y: auto;
}
.edit-hint { font-size: 12px; margin-top: 4px; }

/* susturma */
.composer-blocked { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius); background: color-mix(in srgb, var(--warn) 12%, var(--bg-3)); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); color: var(--text); font-size: 14px; }
.composer-blocked svg { width: 18px; height: 18px; color: var(--warn); flex: none; }
.pc-mod { margin-top: 8px; width: 100%; justify-content: center; }
.pc-mod svg { width: 15px; height: 15px; display: block; }

/* ---------- müzik ---------- */
.ch-playing { margin-left: auto; color: var(--accent); display: grid; place-items: center; }
.ch-playing svg { width: 14px; height: 14px; animation: mpulse 1.4s ease-in-out infinite; }
@keyframes mpulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .ch-playing svg { animation: none; } }

.music-panel {
  flex: none; display: flex; flex-direction: column; gap: 10px; max-height: min(62%, 560px); overflow-y: auto;
  padding: 14px 18px 12px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, var(--bg-2)), var(--bg));
}
.music-panel[hidden] { display: none; }
.mp-top { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: 16px; align-items: start; }
.mp-screen { aspect-ratio: 16 / 9; border-radius: 10px; background: var(--bg-deep); overflow: hidden; display: grid; place-items: center; border: 1px solid var(--line); }
.mp-screen[data-source="spotify"] { aspect-ratio: auto; height: 152px; }
.mp-screen[data-source="soundcloud"] { aspect-ratio: auto; height: 166px; }
.mp-art { width: 100%; height: 100%; object-fit: cover; }
.mp-art.ph, .mp-thumb.ph, .mq-thumb.ph, .mm-thumb.ph { display: grid; place-items: center; color: var(--faint); background: var(--bg-3); }
.mp-art.ph svg { width: 44px; height: 44px; }
.mp-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mp-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.mp-title { font-size: 18px; font-weight: 700; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.mp-sub { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-progress { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.mp-time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 38px; text-align: center; }
.mp-seek { flex: 1; padding: 0 !important; height: 4px; accent-color: var(--accent); border: 0 !important; background: none !important; }
.mp-controls { display: flex; align-items: center; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.mp-controls .spacer { flex: 1; }
.mp-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; flex: none; }
.mp-btn svg { width: 18px; height: 18px; }
.mp-btn:hover { color: var(--text); background: var(--bg-4); }
.mp-btn.big { width: 44px; height: 44px; background: var(--text); color: var(--bg); }
.mp-btn.big:hover { background: #fff; transform: scale(1.04); }
.mp-btn.big svg { width: 20px; height: 20px; }
.mp-btn.on { color: var(--accent); }
.mp-btn.dim { opacity: .45; }
.mp-btn.danger:hover { background: var(--danger); color: #fff; }
.mp-controls .btn svg { width: 15px; height: 15px; display: block; }
.mp-controls .btn { gap: 6px; }
.mp-vol { flex-direction: row; align-items: center; gap: 6px; color: var(--muted); margin-right: 6px; }
.mp-vol svg { width: 16px; height: 16px; display: block; }
.mp-vol input { width: 90px; padding: 0 !important; border: 0 !important; background: none !important; accent-color: var(--accent); }
.mp-error { font-size: 13px; color: var(--danger); }
.mp-note { font-size: 12px; }
.mp-add { display: flex; align-items: center; gap: 8px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; padding: 4px 4px 4px 10px; }
.mp-add:focus-within { border-color: var(--accent); }
.mp-add-ico { color: var(--faint); display: grid; }
.mp-add-ico svg { width: 16px; height: 16px; }
.mp-add-input { border: 0 !important; background: none !important; padding: 6px 2px !important; min-width: 0; }
.mp-add .btn { flex: none; }
.mq-head { display: flex; align-items: baseline; gap: 8px; font-size: 13px; padding: 2px 2px 6px; }
.mq-head .spacer { flex: 1; }
.mq-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.mq-row { display: flex; align-items: center; gap: 4px; border-radius: 8px; }
.mq-row:hover { background: var(--bg-3); }
.mq-row.current { background: color-mix(in srgb, var(--accent) 12%, var(--bg-3)); }
.mq-row.failed { opacity: .55; }
.mq-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 5px 6px; background: none; border: 0; color: var(--text); text-align: left; cursor: pointer; font: inherit; border-radius: 8px; }
.mq-idx { width: 22px; text-align: center; font-size: 12px; color: var(--faint); flex: none; font-variant-numeric: tabular-nums; }
.mq-idx .eq svg { width: 15px; height: 15px; color: var(--accent); display: block; margin: auto; }
.mq-thumb { width: 44px; height: 33px; border-radius: 5px; object-fit: cover; flex: none; }
.mq-thumb.ph svg { width: 16px; height: 16px; }
.mq-text { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.mq-text strong { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mq-text small { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mq-dur { font-size: 12px; font-variant-numeric: tabular-nums; flex: none; padding-right: 4px; }
.mq-acts { display: flex; flex: none; opacity: 0; transition: opacity .12s; }
.mq-row:hover .mq-acts, .mq-row:focus-within .mq-acts { opacity: 1; }
.mq-acts .mp-btn { width: 30px; height: 30px; }
.mq-acts .mp-btn svg { width: 15px; height: 15px; }
@media (hover: none) { .mq-acts { opacity: 1; } }

.music-host { position: fixed; z-index: 4; overflow: hidden; border-radius: 10px; background: var(--bg-deep); }
.music-host.offscreen { left: -10000px; top: 0; width: 320px; height: 180px; visibility: hidden; pointer-events: none; }
.music-host[data-source=""] { display: none; }
.music-frame, .music-frame > iframe, .music-frame > div { width: 100%; height: 100%; border: 0; display: block; }
.music-frame iframe { width: 100%; height: 100%; border: 0; }
.music-host[data-source="youtube"] .music-frame iframe { pointer-events: none; }
.app.sidebar-open ~ .music-host, .settings[open] ~ .music-host { visibility: hidden; }

.music-mini { margin: 0 8px 8px; position: relative; display: flex; align-items: center; gap: 2px; padding: 6px 4px 8px 6px; border-radius: 10px; background: var(--bg-3); border: 1px solid var(--line); overflow: hidden; }
.music-mini[hidden] { display: none; }
.mm-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--text); text-align: left; cursor: pointer; padding: 0; font: inherit; }
.mm-thumb { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; flex: none; }
.mm-thumb.ph svg { width: 16px; height: 16px; }
.mm-text { min-width: 0; display: flex; flex-direction: column; }
.mm-text strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-text small { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-acts { display: flex; flex: none; }
.mm-acts .mp-btn { width: 28px; height: 28px; }
.mm-acts .mp-btn svg { width: 14px; height: 14px; }
.mm-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--bg-4); }
.mm-bar > span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 1s linear; }

@media (max-width: 760px) {
  .music-panel { padding: 10px 12px; max-height: 58%; }
  .mp-top { grid-template-columns: 1fr; gap: 10px; }
  .mp-screen { max-height: 200px; }
  .mp-screen.idle { display: none; }
  .mp-vol { display: none; }
}
.mp-label-row { display: flex; align-items: center; gap: 10px; min-height: 30px; }
.mp-label-row .mp-label { flex: 1; }
.mp-label-row .btn { gap: 6px; }
.mp-label-row .btn svg { width: 15px; height: 15px; display: block; }

/* ---------- tanıtım sayfası (oturum yokken) ----------
   Kimlik logodan geliyor: siyah mürekkep, beyaz kenarlı çıkartma, "şşş" diyen figür.
   Kâğıt zemin + mürekkep yazı; tek cesur öğe dev figür ve yanındaki geniş, kalın başlık. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/fonts/archivo-latin.woff2?v=258a93fe93ae") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/fonts/archivo-latin-ext.woff2?v=837705d41279") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
.landing {
  --paper: #f1f2ee;
  --ink: #000;
  --graphite: #4d524c;
  --rule: #cbd0c8;
  --field: #fff;
  --teal: #2ec4b6;
  --teal-ink: #0a6a62;
  --err: #b3191f;
  min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  overflow-x: clip; /* eğik figür kenardan taşmasın */
  font-family: "Archivo", system-ui, sans-serif; font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  .landing { --paper: #181a17; --ink: #f1f2ee; --graphite: #a9aea6; --rule: #343832; --field: #222520; --teal-ink: #4fd8ca; --err: #ff7a7a; }
}
.landing :focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.landing > main { flex: 1; }

.ld-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(1200px, 100%); margin: 0 auto; padding: 20px 32px; }
.ld-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 22px; font-weight: 800; font-stretch: 125%; letter-spacing: -.02em; }
.ld-brand img { width: 36px; height: 36px; }
.ld-lang { margin: 0; gap: 2px; font-size: 14px; }
.landing .login-lang button { color: var(--graphite); padding: 6px 8px; border-radius: 6px; font: inherit; }
.landing .login-lang button:hover { color: var(--ink); }
.landing .login-lang button.active { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* Kahraman alanı: solda başlık + giriş, sağda sayfanın kenarına taşan çıkartma figür */
.ld-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 44%); align-items: center; gap: 24px;
  width: min(1200px, 100%); margin: 0 auto; padding: 32px 32px 96px;
}
.ld-hero h1 {
  margin: 0; font-size: clamp(44px, 6.6vw, 92px); line-height: .92; font-weight: 900; font-stretch: 125%;
  letter-spacing: -.045em; text-wrap: balance; max-width: 11ch;
}
.ld-lead { margin: 28px 0 0; max-width: 34em; font-size: 19px; line-height: 1.55; color: var(--graphite); text-wrap: pretty; }
.ld-figure { position: relative; justify-self: end; width: min(100%, 520px); }
.ld-figure img { display: block; width: 100%; height: auto; transform: rotate(-7deg); filter: drop-shadow(0 22px 28px rgba(0, 0, 0, .22)); }
@media (prefers-reduced-motion: no-preference) {
  .ld-figure img { animation: ld-stick .7s cubic-bezier(.2, .9, .25, 1.15) .15s both; }
  @keyframes ld-stick {
    from { transform: rotate(4deg) scale(1.12) translateY(-18px); filter: drop-shadow(0 48px 40px rgba(0, 0, 0, .12)); opacity: 0; }
    to { transform: rotate(-7deg) scale(1); filter: drop-shadow(0 22px 28px rgba(0, 0, 0, .22)); opacity: 1; }
  }
}

/* Giriş: başlığın altında tek satır (geniş ekranda), etiketler görünür */
.ld-form { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 10px; margin-top: 36px; max-width: 640px; }
.ld-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.ld-form input {
  height: 50px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--field); color: var(--ink);
  font: 500 16px/1 "Archivo", system-ui, sans-serif;
}
.ld-form input:focus { outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 45%, transparent); }
.ld-form .error { grid-column: 1 / -1; min-height: 0; font-size: 14px; font-weight: 600; color: var(--err); }
.ld-form .error:empty { display: none; }
.ld-note { grid-column: 1 / -1; margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--graphite); }
.ld-anchor { position: absolute; top: -120px; }
.ld-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 26px; border: 2px solid var(--ink); border-radius: 12px;
  background: var(--ink); color: var(--paper); font: 800 16px/1 "Archivo", system-ui, sans-serif; font-stretch: 112%; text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 4px 0 var(--teal); transition: transform .08s, box-shadow .08s;
}
.ld-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--teal); }
.ld-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--teal); }
.ld-btn:disabled { opacity: .6; cursor: default; }

/* İçeride: kart yok; ince çizgilerle ayrılmış iki sütunlu liste */
.ld-inside { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; width: min(1136px, calc(100% - 64px)); margin: 0 auto; padding: 72px 0 96px; border-top: 2px solid var(--ink); }
.ld-inside h2 { margin: 0; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.05; font-weight: 800; font-stretch: 118%; letter-spacing: -.03em; text-wrap: balance; position: sticky; top: 32px; align-self: start; }
.ld-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.ld-list li { display: flex; gap: 14px; padding: 22px 0; border-top: 1px solid var(--rule); }
.ld-list li:nth-child(-n + 2) { border-top: 0; padding-top: 4px; }
.ld-list h3 { margin: 2px 0 6px; font-size: 18px; font-weight: 750; font-stretch: 108%; letter-spacing: -.01em; }
.ld-list p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--graphite); }
.ld-ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #000; }
.ld-ico svg { width: 17px; height: 17px; }

/* Kapı: kapanıştaki siyah şerit */
.ld-door { background: var(--ink); color: var(--paper); padding: 88px 32px; text-align: center; }
.ld-door h2 { margin: 0; font-size: clamp(36px, 5vw, 68px); line-height: .95; font-weight: 900; font-stretch: 125%; letter-spacing: -.04em; }
.ld-door p { margin: 18px auto 32px; max-width: 30em; font-size: 18px; line-height: 1.5; opacity: .8; }
.ld-btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.ld-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; width: min(1200px, 100%); margin: 0 auto; padding: 24px 32px 32px; font-size: 14px; color: var(--graphite); }
.ld-footer a { margin-left: auto; color: var(--ink); font-weight: 700; text-underline-offset: 4px; }

@media (max-width: 960px) {
  .ld-hero { grid-template-columns: 1fr; padding-top: 8px; padding-bottom: 72px; }
  .ld-figure { grid-row: 1; justify-self: end; width: 200px; margin: 0 -8px -36px 0; }
  .ld-inside { grid-template-columns: 1fr; gap: 28px; padding-top: 56px; }
  .ld-inside h2 { position: static; }
}
@media (max-width: 640px) {
  .ld-nav { padding: 14px 16px; }
  .ld-brand { font-size: 19px; }
  .ld-hero { padding: 0 16px 56px; }
  .ld-hero h1 { font-size: clamp(38px, 11.5vw, 56px); font-stretch: 112%; }
  .ld-lead { font-size: 17px; margin-top: 20px; }
  .ld-figure { width: 150px; margin-bottom: -20px; }
  .ld-form { grid-template-columns: 1fr; margin-top: 28px; }
  .ld-btn { width: 100%; }
  .ld-door .ld-btn { width: auto; }
  .ld-inside { width: calc(100% - 32px); padding: 48px 0 64px; }
  .ld-list { grid-template-columns: 1fr; }
  .ld-list li:nth-child(2) { border-top: 1px solid var(--rule); padding-top: 22px; }
  .ld-door { padding: 64px 16px; }
  .ld-door h2 { font-size: clamp(32px, 10vw, 48px); font-stretch: 112%; }
  .ld-footer { padding: 20px 16px 28px; }
}

/* ---------- ses kanalı görünümü (Discord gibi) ---------- */
.main-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.channel.voice.joined { color: var(--text); }
.channel.voice.joined .ch-icon { color: var(--ok); }
.app.voice-view { grid-template-columns: auto minmax(0, 1fr); }
.app.voice-view .members { display: none; }
.app.voice-view .main-body { flex-direction: row; }
.app.voice-view .stage:not([hidden]) { flex: 1; min-width: 0; display: flex; flex-direction: column; border-bottom: 0; padding: 14px 14px 12px; }
.app.voice-view .video-grid { flex: 1; min-height: 0; }
.app.voice-view .chat { flex: none; width: 360px; border-left: 1px solid var(--line); background: var(--bg); }
.app.voice-view .chat .composer { padding: 2px 12px 12px; }
.app.voice-view .chat .msg { grid-template-columns: 52px minmax(0, 1fr); padding-right: 10px; }
.app.voice-view.vchat-closed .chat { display: none; }
.app.cinema .stage-bar { display: none !important; }
#btn-vchat { position: relative; }
#btn-vchat.on { color: var(--text); background: var(--bg-4); }
.vchat-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px var(--bg-2); }
@media (max-width: 1100px) { .app.voice-view .chat { width: 300px; } }
@media (max-width: 720px) {
  .app.voice-view .chat { width: auto; flex: 1; border-left: 0; }
  .app.voice-view:not(.vchat-closed) .stage { display: none !important; }
}

.stage-bar { flex: none; display: flex; justify-content: center; align-items: center; gap: 10px; padding-top: 12px; }
.sb-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--bg-3); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: background .12s, transform .12s; }
.sb-btn svg { width: 21px; height: 21px; }
.sb-btn:hover { background: var(--bg-4); }
.sb-btn:active { transform: scale(.95); }
.sb-btn.off { color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, var(--bg-3)); }
.sb-btn.on { color: #04201d; background: var(--accent); }
.sb-btn.live-btn { color: #fff; background: var(--danger); }
.sb-btn.danger { color: #fff; background: var(--danger); width: 58px; border-radius: 24px; }
.sb-btn.danger:hover { background: color-mix(in srgb, var(--danger) 85%, #000); }
.sb-btn:disabled { opacity: .45; cursor: default; }
@media (max-width: 480px) { .stage-bar { gap: 6px; } .sb-btn { width: 42px; height: 42px; } .sb-btn.danger { width: 50px; } }

.stage-join { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; }
.stage-join .sj-ico { width: 72px; height: 72px; border-radius: 50%; background: var(--bg-3); display: grid; place-items: center; color: var(--muted); }
.stage-join .sj-ico svg { width: 34px; height: 34px; }
.stage-join h2 { font-size: 26px; }
.stage-join p { margin: 0; }
.sj-members { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 8px 0 6px; max-width: 520px; }
.stage-join .btn { gap: 8px; padding: 10px 20px; font-size: 15px; }
.stage-join .btn svg { width: 18px; height: 18px; display: block; }

.tile.member { background: color-mix(in srgb, var(--mc, #555) 38%, #14161b); display: grid; place-items: center; cursor: default; container-type: size; }
.tile.member .member-body { display: grid; place-items: center; }
.tile.member .avatar { width: clamp(24px, 38cqh, 104px); height: auto; aspect-ratio: 1; font-size: clamp(11px, 15cqh, 40px); cursor: pointer; transition: box-shadow .12s; }
.tile.member.speaking { box-shadow: 0 0 0 2px var(--ok); }
.tile.member.speaking .avatar { box-shadow: 0 0 0 3px var(--ok); }
.tile-label .tl-ico { display: inline-grid; vertical-align: -2px; margin-right: 5px; color: var(--danger); }
.tile-label .tl-ico svg { width: 13px; height: 13px; }
.tile.member.tiny .tile-label { font-size: 11px; padding: 2px 6px; left: 4px; bottom: 4px; }

.mini-player { position: fixed; right: 18px; bottom: 96px; z-index: 40; width: min(340px, calc(100vw - 36px)); aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 16px 40px rgba(0,0,0,.6); border: 1px solid var(--line); }
.mini-player video { width: 100%; height: 100%; object-fit: contain; display: block; cursor: pointer; }
.mini-player .mp-bar { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 6px; padding: 8px; background: linear-gradient(rgba(0,0,0,.7), transparent); opacity: 0; transition: opacity .15s; }
.mini-player:hover .mp-bar, .mini-player:focus-within .mp-bar { opacity: 1; }
@media (hover: none) { .mini-player .mp-bar { opacity: 1; } }
.mini-label { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app.cinema ~ .mini-player { display: none; }

/* ---------- birlikte izle ---------- */
.tile.watch { background: #000; cursor: pointer; display: grid; place-items: center; }
.tile.watch .watch-slot { width: 100%; height: 100%; }
.tile.watch.local-hidden { background: var(--bg-3); }
.tile.watch .offer-body { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 12px; max-width: 90%; }
.tile.watch .offer-body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.tile.watch .offer-body p { margin: 0; }
.tile.watch.compact .offer-body p, .tile.watch.tiny .offer-body strong { display: none; }
.wt-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, var(--bg-4)); color: var(--accent); }
.wt-ico svg { width: 22px; height: 22px; }

.watch-host { position: fixed; z-index: 4; overflow: hidden; border-radius: var(--radius); background: #000; }
.watch-host.offscreen { left: -10000px; top: 0; width: 480px; height: 270px; visibility: hidden; pointer-events: none; }
.watch-host.mini { z-index: 41; border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.6); border: 1px solid var(--line); }
.watch-frame, .watch-frame > iframe, .watch-frame > div, .watch-frame .tw-slot iframe { width: 100%; height: 100%; border: 0; display: block; }
.watch-host[data-source="youtube"] .watch-frame iframe, .watch-host[data-source="vimeo"] .watch-frame iframe { pointer-events: none; }
.watch-host.mini .watch-frame iframe { pointer-events: none; }
.watch-host:fullscreen { border-radius: 0; }
.watch-host:fullscreen .watch-frame iframe { pointer-events: auto; }
.wh-bar { display: none; position: absolute; left: 0; right: 0; top: 0; align-items: center; gap: 6px; padding: 8px; background: linear-gradient(rgba(0,0,0,.75), transparent); opacity: 0; transition: opacity .15s; }
.watch-host.mini .wh-bar { display: flex; }
.watch-host.mini:hover .wh-bar { opacity: 1; }
@media (hover: none) { .watch-host.mini .wh-bar { opacity: 1; } }
.app.cinema ~ .watch-host.mini { display: none; }
.app.cinema #watch-bar { display: none !important; }

.watch-bar { flex: none; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; max-height: 42vh; }
.wb-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wb-info { min-width: 120px; flex: 0 1 240px; display: flex; flex-direction: column; }
.wb-info strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-info small { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-ctl { display: flex; align-items: center; gap: 4px; }
.wb-ctl .mp-btn.big { width: 40px; height: 40px; }
.wb-progress { flex: 1 1 160px; display: flex; align-items: center; gap: 8px; min-width: 140px; }
.wb-tools { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.wb-tools .btn { gap: 6px; margin-right: 4px; }
.wb-tools .btn.on { border-color: var(--accent); color: var(--accent); }
.wb-count { background: var(--accent); color: #04201d; border-radius: 999px; font-size: 11px; font-weight: 800; padding: 0 6px; line-height: 17px; }
.wb-note { font-size: 12px; }
.wb-queue { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 0; }
.wb-add { display: flex; gap: 8px; }
.wb-add input { padding: 7px 10px !important; }
.wb-add .btn { flex: none; }
.wb-empty { margin: 0; font-size: 13px; }
.watch-dialog { width: min(480px, calc(100% - 32px)); }
.wd-sources { display: flex; flex-wrap: wrap; gap: 6px; }
.wd-chip { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line); color: var(--muted); }
@media (max-width: 720px) {
  .wb-progress { order: 5; flex-basis: 100%; }
  .wb-tools .mp-btn[title] { width: 32px; height: 32px; }
  .watch-bar .mp-vol { display: none; }
}
.app.voice-view.cinema { grid-template-columns: minmax(0, 1fr); }

/* ---------- kişi başı ses düzeyi ---------- */
.user-audio { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--bg-3); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.ua-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ua-head svg { width: 15px; height: 15px; display: block; color: var(--muted); }
.ua-head strong { flex: 1; }
.ua-val { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent); min-width: 44px; text-align: right; }
.user-audio input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; padding: 0 !important; border: 0 !important; border-radius: 3px; cursor: pointer;
  background: linear-gradient(90deg, var(--accent) var(--fill, 50%), var(--bg-4) var(--fill, 50%)) !important;
}
.user-audio input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.user-audio input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; }
.ua-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ua-mute { flex-direction: row; align-items: center; gap: 8px; color: var(--text); font-size: 13px; cursor: pointer; }
.user-audio-pop { position: fixed; z-index: 75; width: 300px; padding: 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0,0,0,.55); }
.user-audio-pop .user-audio { margin-top: 10px; }
.uap-name { display: flex; align-items: center; gap: 8px; }
.uap-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vm-icons .vol-pct { font-size: 10.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.audio-protect .my-badge { cursor: pointer; }

/* ---------- bahsetmeler ---------- */
.mention { background: color-mix(in srgb, var(--accent) 18%, transparent); color: color-mix(in srgb, var(--accent) 70%, #fff); border-radius: 4px; padding: 0 3px; font-weight: 600; cursor: pointer; }
.mention:hover { background: var(--accent); color: #04201d; }
.mention.me { background: color-mix(in srgb, var(--warn) 22%, transparent); color: #ffd98a; }
.msg.mentioned { background: color-mix(in srgb, var(--warn) 8%, transparent); box-shadow: inset 2px 0 0 var(--warn); }
.msg.mentioned:hover { background: color-mix(in srgb, var(--warn) 12%, transparent); }
.mention-pill { margin-left: auto; flex: none; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.channel.has-mention::after { display: none; }
.channel.has-mention { color: var(--text); font-weight: 650; }
.rail-dot.count { left: auto; right: -4px; top: auto; bottom: -4px; transform: none; width: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--bg-deep); }
.rail-btn.active .rail-dot.count { display: grid; }
.mention-suggest .es-item { padding: 5px 8px; }
.mention-suggest .avatar.xs { width: 24px; height: 24px; font-size: 11px; flex: none; }
.ms-name { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.ms-name strong { font-size: 14px; }
.ms-name small { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- müzik: dinleyenler ---------- */
.listeners { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.listeners .ls-ico svg { width: 14px; height: 14px; display: block; }
.ls-avs { display: inline-flex; align-items: center; }
.ls-avs .avatar, .ch-listeners .avatar { width: 22px; height: 22px; font-size: 10px; border: 2px solid var(--bg-3); margin-left: -6px; flex: none; cursor: pointer; }
.ls-avs .avatar:first-child, .ch-listeners .avatar:first-child { margin-left: 0; }
.ls-more { margin-left: 4px; font-size: 11px; font-weight: 800; color: var(--muted); }
.ls-count { font-variant-numeric: tabular-nums; }
.mp-label-row .listeners .ls-avs .avatar { border-color: var(--bg-2); }
.music-mini { flex-wrap: wrap; }
.mm-listeners { flex-basis: 100%; display: flex; align-items: center; padding: 6px 2px 0 2px; margin-top: 4px; border-top: 1px solid var(--line); }
.ch-listeners { display: inline-flex; align-items: center; margin-left: auto; }
.ch-listeners .avatar { width: 18px; height: 18px; font-size: 9px; border-color: var(--bg-2); }
.ch-listeners + .ch-playing { margin-left: 6px; }

/* ---------- yayın: ses ve çıkış ---------- */
.tile-btn.wide { width: auto; padding: 0 10px; gap: 6px; display: inline-flex; align-items: center; font: 700 12.5px var(--font); color: #fff; }
.tile-btn.wide svg { width: 15px; height: 15px; display: block; }
.tile-vol { display: inline-flex; align-items: center; gap: 0; background: rgba(0,0,0,.62); border-radius: 8px; }
.tile-vol .tile-btn { background: transparent; }
.tile-vol input[type=range] {
  -webkit-appearance: none; appearance: none; width: 0; opacity: 0; height: 4px; margin: 0; padding: 0 !important; border: 0 !important; border-radius: 2px; cursor: pointer;
  background: linear-gradient(90deg, #fff var(--fill, 50%), rgba(255,255,255,.25) var(--fill, 50%)) !important; transition: width .15s, opacity .15s, margin .15s;
}
.tile-vol:hover input[type=range], .tile-vol:focus-within input[type=range], .tile-vol.compact input[type=range] { width: 90px; opacity: 1; margin: 0 10px 0 2px; }
.tile-vol.compact input[type=range] { width: 64px; }
.tile-vol input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.tile-vol input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
@media (hover: none) { .tile-vol input[type=range] { width: 70px; opacity: 1; margin: 0 8px 0 2px; } }
#mini-vol:empty { display: none; }
.wb-leave { gap: 6px; margin-left: 4px; }
.wb-leave svg { width: 15px; height: 15px; display: block; }
.vm-icons .local-mute { color: var(--faint); }
.tile-label .tl-ico.local-mute { color: #b8bec9; }

/* ---------- moderasyon: sistem satırı, seste susturma ---------- */
.sys-notice { display: flex; align-items: center; gap: 8px; margin: 8px 18px; padding: 8px 12px; border-radius: 8px; font-size: 13.5px; background: color-mix(in srgb, var(--accent) 10%, var(--bg-2)); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); color: var(--text); }
.sys-notice svg { width: 16px; height: 16px; flex: none; display: block; color: var(--accent); }
.sys-notice.warn { background: color-mix(in srgb, var(--warn) 12%, var(--bg-2)); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.sys-notice.warn svg { color: var(--warn); }
.vm-icons .srv-mute { color: var(--danger); filter: drop-shadow(0 0 3px color-mix(in srgb, var(--danger) 60%, transparent)); }
.tile-label .tl-ico.srv-mute { color: var(--danger); }
.icon-btn.srv-muted { color: var(--danger) !important; opacity: .8; }

/* ---------- Etkinlik: yayında / dinliyor / izliyor ---------- */
.member-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.member-line { display: flex; align-items: center; gap: 4px; min-width: 0; }
.member-line .member-name { flex: 0 1 auto; }
.member-act, .fr-act { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 11.5px; color: var(--muted); }
.member-act .act-text, .fr-act .act-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.act-ico { flex: none; display: inline-flex; }
.act-ico svg { width: 12px; height: 12px; display: block; }
.act-live { color: var(--danger); font-weight: 600; }
.act-music .act-ico { color: var(--ok); }
.act-watch .act-ico { color: var(--accent); }
.member > .live { flex: none; }
.fr-actions .live { align-self: center; font-size: 11px; padding: 3px 7px; }

/* ---------- Yönetici paneli (uygulama içinde) ---------- */
.admin-dialog { width: min(1280px, calc(100vw - 32px)); height: calc(100vh - 32px); max-width: none; max-height: none; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); overflow: hidden; }
.admin-dialog::backdrop { background: rgba(0,0,0,.6); }
.admin-dialog iframe { width: 100%; height: 100%; border: 0; display: block; background: transparent; }
.icon-btn.no-mic { color: var(--warn) !important; }

/* ---------- %200 üstü ses (uyarılı) ---------- */
.user-audio input[type=range].boost { background: linear-gradient(90deg, var(--accent) 0 50%, var(--danger) 50% var(--fill), var(--bg-4) var(--fill)) !important; }
.ua-val.boost { color: var(--danger); }
.ua-warn { margin: 0; display: flex; gap: 6px; align-items: flex-start; font-size: 12px; line-height: 1.35; color: var(--warn); }
.ua-warn[hidden] { display: none; }
.ua-warn svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.toast.warn { border-color: var(--warn); }

/* ---------- ekolayzer ---------- */

/* ---------- gönder düğmesi ---------- */
.composer-row .send-btn { color: var(--accent); }
.composer-row .send-btn:disabled { color: var(--faint); opacity: .55; cursor: default; background: none; }
.composer-row .send-btn:not(:disabled):hover { background: color-mix(in srgb, var(--accent) 16%, transparent); }

/* ---------- mesajdaki video / müzik kutuları (Discord gibi) ---------- */
.embeds { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.embed {
  --ec: var(--line);
  width: min(440px, 100%); padding: 10px 12px 12px; border-radius: 8px; border-left: 4px solid var(--ec);
  background: var(--bg-2); display: flex; flex-direction: column; gap: 4px;
}
.embed.playing { width: min(640px, 100%); }
.em-head { display: flex; gap: 6px; align-items: baseline; font-size: 12px; color: var(--muted); min-width: 0; }
.em-provider { font-weight: 700; color: var(--text); }
.em-author { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.em-author::before { content: "·"; margin-right: 6px; color: var(--faint); }
.em-title { font-weight: 700; color: var(--accent); text-decoration: none; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.em-title:hover { text-decoration: underline; }
.em-media { position: relative; margin-top: 6px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; cursor: pointer; }
.embed.loading { min-height: 0; }
.embed.loading .em-media { margin-top: 0; background: var(--bg-3); }
.em-media.live { cursor: default; }
.em-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.em-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.em-thumb.ph { background: linear-gradient(135deg, color-mix(in srgb, var(--ec) 45%, #000), #000); }
.em-play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 64px; height: 64px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: rgba(0, 0, 0, .72); color: #fff; cursor: pointer; box-shadow: 0 4px 18px rgba(0, 0, 0, .4);
}
.em-play svg { width: 26px; height: 26px; margin-left: 4px; }
.em-media:hover .em-play, .em-play:focus-visible { background: var(--ec); }
.em-badge { position: absolute; left: 8px; top: 8px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 4px; }
.em-missing { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; text-align: center; background: rgba(0, 0, 0, .65); color: #fff; font-size: 13px; }
/* SoundCloud: geniş değil, alçak bir çubuk */
.embed.audio .em-media { aspect-ratio: auto; height: 96px; }
.embed.audio .em-media.live { height: 166px; }
.embed.audio .em-thumb { width: 96px; right: auto; }
.embed.audio .em-play { left: auto; right: 16px; translate: 0 -50%; width: 52px; height: 52px; }
.embed.audio .em-media:not(.live) { background: linear-gradient(90deg, #111 96px, color-mix(in srgb, var(--ec) 30%, #111)); }
@media (max-width: 640px) { .embed, .embed.playing { width: 100%; } }

/* ---------- durum: çevrimiçi / boşta (ay) / meşgul / görünmez ---------- */
.avatar.online[data-st="idle"]::after, .st-dot[data-st="idle"] { background: radial-gradient(circle at 26% 26%, var(--st-bg, var(--bg-2)) 0 40%, transparent 42%), var(--warn); }
.avatar.online[data-st="dnd"]::after, .st-dot[data-st="dnd"] { background: linear-gradient(var(--st-bg, var(--bg-2)), var(--st-bg, var(--bg-2))) center / 58% 24% no-repeat, var(--danger); }
.avatar.online[data-st="invisible"]::after, .st-dot[data-st="invisible"] { background: var(--st-bg, var(--bg-2)); box-shadow: inset 0 0 0 2.5px var(--faint); }
.user-panel { --st-bg: var(--bg-deep); }
.user-panel .avatar.online::after { border-color: var(--bg-deep); }
#me-avatar, .user-panel .user-meta { cursor: pointer; }
.user-panel .user-meta:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.me-status { color: var(--muted); font-size: 12px; }
.status-pop {
  position: fixed; z-index: 76; width: 280px; padding: 6px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0,0,0,.55); display: flex; flex-direction: column; gap: 2px; --st-bg: var(--bg-2);
}
.status-pop[hidden] { display: none; }
.st-item { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.st-item:hover, .st-item:focus-visible { background: var(--bg-4); outline: none; }
.st-item.active { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.st-dot { flex: none; width: 12px; height: 12px; margin-top: 3px; border-radius: 50%; background: var(--ok); }
.st-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.st-text strong { font-size: 14px; }
.st-text small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.st-sep { height: 1px; margin: 4px 6px; background: var(--line); }
.st-ico svg { width: 14px; height: 14px; display: block; margin-top: 2px; color: var(--muted); }
.pc-status.on.st-idle { color: var(--warn); }
.pc-status.on.st-idle::before { background: var(--warn); }
.pc-status.on.st-dnd { color: var(--danger); }
.pc-status.on.st-dnd::before { background: var(--danger); }

/* ---------- yönetici paneli: düzen ---------- */
.row-actions-cell { width: 1%; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; white-space: nowrap; }
.more-btn { min-width: 34px; font-size: 16px; line-height: 1; letter-spacing: .05em; }
.more-btn[aria-expanded="true"] { background: var(--bg-4); }
.row-menu {
  position: fixed; z-index: 60; min-width: 210px; max-height: calc(100vh - 16px); overflow-y: auto; padding: 6px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0,0,0,.55); display: flex; flex-direction: column;
}
.row-menu[hidden] { display: none; }
.row-menu-item { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: none; color: var(--text); text-align: left; font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.row-menu-item:hover, .row-menu-item:focus-visible { background: var(--bg-4); outline: none; }
.row-menu-item.danger { color: var(--danger); }
.row-menu-item.ok { color: var(--ok); }
.row-menu-sep { height: 1px; margin: 4px 6px; background: var(--line); }
td.ip { font-variant-numeric: tabular-nums; color: var(--muted); }
.emoji-empty { grid-column: 1 / -1; }
#users-body td { vertical-align: middle; }
.admin-header .brand .badge { white-space: nowrap; }
html.in-app .admin-header { padding: 10px 16px; }

/* Dar ekran: tablolar kart olur, her hücrenin başlığı yanında */
@media (max-width: 760px) {
  .admin-header { gap: 8px; padding: 10px 12px; }
  .admin-header #refresh-info { display: none; }
  .admin-header .btn { white-space: nowrap; }
  .admin-main { padding: 12px 10px 32px; }
  .card { padding: 14px 12px; }
  .card table, .card thead, .card tbody, .card tr, .card td { display: block; width: 100%; }
  .card thead { display: none; }
  .card tr { padding: 10px 0; border-top: 1px solid var(--line); }
  .card tr:first-child { border-top: 0; }
  .card td { border: 0; padding: 3px 0; white-space: normal; }
  .card td[data-label] { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 10px; align-items: baseline; }
  .card td[data-label]::before { content: attr(data-label); grid-row: 1 / span 9; color: var(--faint); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
  .card td[data-label] > * { grid-column: 2; min-width: 0; }
  #users-body td:first-child, #users-body td.row-actions-cell { display: block; }
  #users-body td:first-child::before, #users-body td.row-actions-cell::before { display: none; }
  #users-body td:first-child { padding-bottom: 6px; }
  #users-body td.row-actions-cell { width: 100%; padding-top: 8px; }
  .row-actions { justify-content: flex-start; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- engelleme ---------- */
.msg.blocked-msg { display: flex; align-items: center; gap: 8px; padding: 4px 16px 4px 72px; font-size: 13px; min-height: 0; }
.msg.blocked-msg .bm-ico svg { width: 15px; height: 15px; display: block; color: var(--faint); }
.msg.blocked-msg .link-btn { font-size: 13px; }
.sys-notice.refused { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: color-mix(in srgb, var(--danger) 8%, transparent); }
.blocked-list { display: flex; flex-direction: column; gap: 4px; }
.blocked-row { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 8px; }
.blocked-row:hover { background: var(--bg-3); }
.blocked-row .br-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-block { align-self: flex-start; }
.composer-blocked .btn { margin-left: auto; }
@media (max-width: 720px) { .msg.blocked-msg { padding-left: 16px; } }

/* ---------- moderasyon animasyonu: tokmak iner ---------- */
.modfx {
  position: fixed; inset: 0; z-index: 120; pointer-events: none; display: grid; place-items: center; align-content: center; gap: 4px;
  background: radial-gradient(circle at 50% 46%, rgba(0,0,0,.62), rgba(0,0,0,.25) 45%, transparent 70%);
  opacity: 0; transition: opacity .25s;
}
.modfx.play { opacity: 1; }
.modfx.out { opacity: 0; transition: opacity .45s; }
.mfx-flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
.modfx.play .mfx-flash { animation: mfx-flash .5s ease-out .56s; }
.modfx.k-ban .mfx-flash { background: #ff3b3b; }
@keyframes mfx-flash { 0% { opacity: .28; } 100% { opacity: 0; } }

.mfx-stage { position: relative; width: 360px; height: 280px; }
.modfx.play .mfx-stage { animation: mfx-shake .45s linear .56s; }
@keyframes mfx-shake {
  0%, 100% { transform: translate(0, 0); } 15% { transform: translate(-9px, 6px); } 30% { transform: translate(8px, -5px); }
  45% { transform: translate(-6px, 3px); } 60% { transform: translate(4px, -2px); } 80% { transform: translate(-2px, 1px); }
}
.mfx-target { position: absolute; left: 116px; top: 110px; width: 128px; height: 128px; }
.mfx-target .avatar { width: 128px; height: 128px; font-size: 54px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.mfx-target .avatar::after { display: none; }
.modfx.play .mfx-target { animation: mfx-squash .55s cubic-bezier(.3,1.6,.5,1) .56s both; transform-origin: 50% 100%; }
@keyframes mfx-squash { 0% { transform: scale(1.12, .74); } 45% { transform: scale(.94, 1.06); } 100% { transform: scale(1, 1); } }

.mfx-hammer { position: absolute; left: 140px; top: -2px; width: 260px; height: 120px; transform-origin: 250px 60px; transform: rotate(70deg); opacity: 0; filter: drop-shadow(0 12px 18px rgba(0,0,0,.55)); }
.mfx-hammer svg { width: 100%; height: 100%; display: block; }
.modfx.play .mfx-hammer { animation: mfx-swing 1.4s both; }
@keyframes mfx-swing {
  0% { transform: rotate(70deg); opacity: 0; animation-timing-function: ease-out; }
  12% { transform: rotate(80deg); opacity: 1; animation-timing-function: cubic-bezier(.55, 0, .9, .3); }
  40% { transform: rotate(-3deg); animation-timing-function: ease-out; }
  47% { transform: rotate(9deg); animation-timing-function: ease-in-out; }
  56% { transform: rotate(0deg); }
  86% { transform: rotate(0deg); opacity: 1; animation-timing-function: ease-in; }
  100% { transform: rotate(55deg); opacity: 0; }
}

.mfx-ring { position: absolute; left: 180px; top: 112px; width: 20px; height: 20px; margin: -10px; border-radius: 50%; border: 4px solid rgba(255, 230, 150, .9); opacity: 0; }
.modfx.play .mfx-ring { animation: mfx-ring .7s ease-out .56s; }
.modfx.k-ban .mfx-ring { border-color: rgba(255, 90, 90, .95); }
@keyframes mfx-ring { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(14); } }

.mfx-dust { position: absolute; left: 180px; top: 112px; }
.mfx-dust i { position: absolute; width: 9px; height: 9px; margin: -4px; border-radius: 50%; background: #d9cdb8; opacity: 0; transform: rotate(var(--a)) translateX(0); }
.modfx.play .mfx-dust i { animation: mfx-dust .6s ease-out .56s; }
@keyframes mfx-dust { 0% { opacity: .95; transform: rotate(var(--a)) translateX(10px) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateX(110px) scale(.3); } }

.mfx-bolts i { position: absolute; width: 18px; height: 54px; opacity: 0; background: #ffe45c; clip-path: polygon(40% 0, 100% 0, 60% 42%, 95% 42%, 20% 100%, 40% 55%, 0 55%); filter: drop-shadow(0 0 8px #ffd400); }
.mfx-bolts i:nth-child(1) { left: 92px; top: 70px; transform: rotate(-25deg); }
.mfx-bolts i:nth-child(2) { left: 252px; top: 80px; transform: rotate(20deg); }
.mfx-bolts i:nth-child(3) { left: 170px; top: 238px; transform: rotate(180deg) scale(.8); }
.modfx.play .mfx-bolts i { animation: mfx-bolt .5s steps(2, jump-none) .6s 2; }
@keyframes mfx-bolt { 0% { opacity: 1; } 100% { opacity: 0; } }

.mfx-crack { position: absolute; inset: 0; border-radius: 50%; opacity: 0;
  background:
    linear-gradient(68deg, transparent 47%, rgba(20,20,20,.85) 48%, rgba(20,20,20,.85) 50%, transparent 51%) 0 0 / 100% 55% no-repeat,
    linear-gradient(-58deg, transparent 47%, rgba(20,20,20,.8) 48%, rgba(20,20,20,.8) 50%, transparent 51%) 100% 0 / 60% 70% no-repeat,
    linear-gradient(10deg, transparent 48%, rgba(20,20,20,.75) 49%, rgba(20,20,20,.75) 50.5%, transparent 51.5%) 30% 100% / 50% 60% no-repeat; }
.modfx.play .mfx-crack { animation: mfx-in .1s linear .58s forwards; }

/* Bant: iki şerit çapraz (gümüş koli bandı) */
.mfx-tape i, .avatar .tape i {
  position: absolute; left: -12%; width: 124%; height: 24%; top: 50%;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 3px, transparent 3px 7px), linear-gradient(180deg, #d8dde3, #9aa3ad 55%, #c3c9d0);
  clip-path: polygon(2% 8%, 0 30%, 3% 52%, 0 74%, 2% 96%, 98% 92%, 100% 70%, 97% 48%, 100% 26%, 98% 4%);
  box-shadow: 0 2px 3px rgba(0,0,0,.35); opacity: .97;
}
.mfx-tape i:nth-child(1), .avatar .tape i:nth-child(1) { transform: translateY(-50%) rotate(-21deg); }
.mfx-tape i:nth-child(2), .avatar .tape i:nth-child(2) { transform: translateY(-50%) rotate(19deg); }
.mfx-tape { position: absolute; inset: 0; }
.mfx-tape i { opacity: 0; }
.modfx.play .mfx-tape i:nth-child(1) { animation: mfx-tape1 .28s cubic-bezier(.2,1.5,.5,1) .66s forwards; }
.modfx.play .mfx-tape i:nth-child(2) { animation: mfx-tape2 .28s cubic-bezier(.2,1.5,.5,1) .82s forwards; }
@keyframes mfx-tape1 { 0% { opacity: 0; transform: translateY(-50%) rotate(-40deg) scale(2); } 100% { opacity: .97; transform: translateY(-50%) rotate(-21deg) scale(1); } }
@keyframes mfx-tape2 { 0% { opacity: 0; transform: translateY(-50%) rotate(40deg) scale(2); } 100% { opacity: .97; transform: translateY(-50%) rotate(19deg) scale(1); } }
@keyframes mfx-in { to { opacity: 1; } }

.mfx-caption { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 0 16px; opacity: 0; transform: translateY(-14px) scale(.9); }
.modfx.play .mfx-caption { animation: mfx-cap .45s cubic-bezier(.2,1.4,.5,1) .72s forwards; }
@keyframes mfx-cap { to { opacity: 1; transform: none; } }
.mfx-caption strong { font-size: clamp(24px, 4vw, 38px); font-weight: 900; letter-spacing: -.02em; color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.45), 0 0 24px rgba(0,0,0,.6); }
.modfx.k-ban .mfx-caption strong { color: #ff6b6b; }
.mfx-caption small { font-size: 15px; color: #e9e9e9; text-shadow: 0 1px 6px rgba(0,0,0,.8); }

/* Hareketi azalt: tokmak yok, sade kart */
.modfx.reduce .mfx-target, .modfx.reduce .mfx-caption { animation: none !important; opacity: 1; transform: none; }
.modfx.reduce .mfx-tape i, .modfx.reduce .mfx-crack { animation: none !important; opacity: .97; }
.modfx.reduce .mfx-flash, .modfx.reduce .mfx-ring { display: none; }
@media (max-width: 420px) { .mfx-stage { transform: scale(.82); } }

/* Susturulan kişinin profil fotoğrafında kalıcı bant */
.avatar .tape { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.avatar.online::after { z-index: 2; }

/* ---------- mini oyunlar: Tek Kart ---------- */
.ch-game { display: inline-flex; color: var(--accent); margin-left: 4px; }
.ch-game svg { width: 14px; height: 14px; display: block; }
.game-strip { display: flex; align-items: center; gap: 8px; margin: 0 16px 6px; padding: 8px 10px 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 10%, var(--bg-2)); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); font-size: 14px; }
.game-strip[hidden] { display: none; }
.game-strip.my-turn { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, var(--bg-2)); }
.gs-ico svg { width: 18px; height: 18px; display: block; color: var(--accent); }
.game-pick { position: fixed; z-index: 70; width: 300px; padding: 6px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0,0,0,.55); }
.game-pick[hidden] { display: none; }
.gp-title { padding: 6px 10px 4px; font-size: 12px; font-weight: 700; color: var(--faint); }
.gp-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 8px; background: none; color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.gp-item:hover, .gp-item:focus-visible { background: var(--bg-4); outline: none; }
.gp-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 18%, var(--bg-3)); color: var(--accent); flex: none; }
.gp-ico svg { width: 20px; height: 20px; }
.gp-text { display: flex; flex-direction: column; gap: 2px; }

/* Pencere ve masa arka planları */
.game-dialog {
  --felt-a: #1f7a52; --felt-b: #135237; --felt-c: #0b3424; --rim: #5a3a1e; --ink: #fff;
  width: min(1180px, calc(100vw - 24px)); height: min(800px, calc(100dvh - 24px)); max-width: none; max-height: none; padding: 0;
  border: 1px solid rgba(255,255,255,.1); border-radius: 18px; overflow: hidden; color: var(--ink);
  background: radial-gradient(ellipse at 50% 40%, var(--felt-b), var(--felt-c) 75%);
}
.game-dialog[data-theme="navy"] { --felt-a: #2a5aa8; --felt-b: #183a73; --felt-c: #0c1e3f; --rim: #2b2f3a; }
.game-dialog[data-theme="wine"] { --felt-a: #9a2d47; --felt-b: #6c1b30; --felt-c: #3a0c19; --rim: #3b2416; }
.game-dialog[data-theme="wood"] { --felt-a: #9c6a3c; --felt-b: #6e4523; --felt-c: #3d2511; --rim: #2a1a0c; }
.game-dialog[data-theme="violet"] { --felt-a: #6a46c2; --felt-b: #43297f; --felt-c: #1f1240; --rim: #2a1f3f; }
.game-dialog[data-theme="night"] { --felt-a: #253250; --felt-b: #141c30; --felt-c: #070b16; --rim: #1a1f2c; }
.game-dialog[data-theme="sand"] { --felt-a: #d5b483; --felt-b: #b08a57; --felt-c: #6f5431; --rim: #4a3720; }
.game-dialog[open] { display: flex; flex-direction: column; }
.game-dialog::backdrop { background: rgba(0,0,0,.65); }
.gd-head { position: relative; display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 16px; background: rgba(0,0,0,.3); border-bottom: 1px solid rgba(255,255,255,.08); flex-wrap: wrap; z-index: 6; }
.gd-title { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; }
.gd-title small { font-weight: 500; font-size: 12.5px; color: rgba(255,255,255,.7); }
.gd-ico svg { width: 20px; height: 20px; display: block; color: #ffd86b; }
.gd-pill { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.14); }
.gd-pill.playing { background: #2e9e63; } .gd-pill.over { background: #a06a1c; }
.gd-ibtn { color: rgba(255,255,255,.8); }
.gd-ibtn.on { background: rgba(255,255,255,.16); color: #fff; }
.gd-themes { position: absolute; right: 12px; top: calc(100% + 6px); display: flex; gap: 8px; padding: 10px; border-radius: 12px; background: rgba(10,12,16,.92); box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.gd-theme { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); cursor: pointer; }
.gd-theme.on { border-color: #ffd86b; box-shadow: 0 0 0 2px #ffd86b; }
.th-felt { background: radial-gradient(circle at 35% 30%, #2a9a68, #0f4a31); } .th-navy { background: radial-gradient(circle at 35% 30%, #3768bf, #102650); }
.th-wine { background: radial-gradient(circle at 35% 30%, #b23a58, #4a1020); } .th-wood { background: repeating-linear-gradient(100deg, #8a5b31 0 6px, #7a4f2a 6px 11px); }
.th-violet { background: radial-gradient(circle at 35% 30%, #8360d8, #2a1856); } .th-night { background: radial-gradient(circle at 30% 30%, #fff 0 1px, transparent 2px) 0 0 / 9px 9px, radial-gradient(circle at 35% 30%, #2e3c60, #070b16); }
.th-sand { background: radial-gradient(circle at 35% 30%, #e6c99b, #8c6c40); }
.gd-rules { margin: 10px 16px 0; padding: 12px 16px; border-radius: 12px; background: rgba(0,0,0,.4); font-size: 14px; line-height: 1.5; z-index: 5; }
.gd-rules[hidden] { display: none; }
.gd-rules ul { margin: 6px 0 0; padding-left: 18px; }
.gd-body { flex: 1; min-height: 0; position: relative; overflow: hidden; }

/* Lobi */
.ut-lobby { height: 100%; overflow: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 28px 16px; text-align: center; }
.ut-lobby h2 { margin: 6px 0 0; font-size: 28px; }
.ut-lobby-cards { display: flex; margin-bottom: 6px; }
.ut-lobby-cards .ucard { margin: 0 -10px; }
.ut-lobby-cards .ucard:nth-child(1) { transform: rotate(-14deg) translateY(8px); }
.ut-lobby-cards .ucard:nth-child(2) { transform: translateY(-6px); z-index: 1; }
.ut-lobby-cards .ucard:nth-child(3) { transform: rotate(14deg) translateY(8px); }
.ut-seats { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin: 12px 0; }
.ut-seat { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 96px; }
.ut-seat .avatar { width: 64px; height: 64px; font-size: 26px; box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.ut-seat strong { font-size: 14px; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ut-empty { width: 64px; height: 64px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.35); display: grid; place-items: center; font-size: 24px; color: rgba(255,255,255,.5); }
.ut-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.btn.big { padding: 12px 22px; font-size: 16px; border-radius: 12px; }

/* Masa düzeni: üstte oval masa (rakipler kenarında), altta elin */
.ut-table { position: relative; height: 100%; display: flex; flex-direction: column; }
.ut-arena { position: relative; flex: 1; min-height: 240px; }
.ut-felt { position: absolute; left: 7%; right: 7%; top: 10%; bottom: 4%; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 35%, var(--felt-a), var(--felt-b) 70%);
  box-shadow: 0 0 0 10px var(--rim), 0 0 0 12px rgba(0,0,0,.35), 0 18px 50px rgba(0,0,0,.5), inset 0 0 60px rgba(0,0,0,.35); }
.game-dialog[data-theme="wood"] .ut-felt { background: repeating-linear-gradient(95deg, rgba(255,255,255,.04) 0 3px, transparent 3px 12px), radial-gradient(ellipse at 50% 35%, var(--felt-a), var(--felt-b) 70%); }
.game-dialog[data-theme="night"] .ut-felt { background: radial-gradient(circle, rgba(255,255,255,.6) 0 1px, transparent 1.5px) 0 0 / 22px 22px, radial-gradient(ellipse at 50% 35%, var(--felt-a), var(--felt-b) 70%); }

.ut-seat-o { position: absolute; left: clamp(var(--sw), var(--x), calc(100% - var(--sw))); top: max(var(--sh), var(--y)); --sw: 70px; --sh: 64px; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 10px 8px; border-radius: 14px; background: rgba(0,0,0,.42); min-width: 92px; z-index: 2; transition: background .2s, box-shadow .2s; }
.ut-seat-o.turn { background: rgba(255, 216, 107, .2); box-shadow: 0 0 0 2px #ffd86b, 0 0 18px rgba(255,216,107,.45); }
.ut-seat-o.away { opacity: .55; }
.ut-seat-o.winner { box-shadow: 0 0 0 2px #ffd86b, 0 0 28px rgba(255,216,107,.7); }
.ut-seat-o strong { font-size: 13px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ut-av { position: relative; display: grid; place-items: center; }
.ut-av .avatar { width: 44px; height: 44px; font-size: 18px; }
.ut-ring { position: absolute; inset: -5px; border-radius: 50%; background: conic-gradient(#ffd86b var(--p, 360deg), rgba(255,255,255,.12) 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); }
.ut-fan { position: relative; display: flex; justify-content: center; height: 34px; width: 80px; margin-top: 2px; }
.ut-fan .ucard.mini { position: absolute; left: 50%; bottom: 0; width: 22px; height: 33px; margin-left: -11px; border-radius: 4px; border-width: 1.5px; transform-origin: 50% 120%; transform: rotate(var(--r)); box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.ut-count { position: absolute; right: -4px; bottom: -4px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: #fff; color: #111; font-weight: 900; font-size: 12px; display: grid; place-items: center; box-shadow: 0 2px 4px rgba(0,0,0,.4); z-index: 2; }
.ut-away { font-size: 11px; color: rgba(255,255,255,.7); }
.ut-tek { position: absolute; top: -10px; right: -10px; background: #ff4d4d; color: #fff; font-weight: 900; font-size: 12px; padding: 3px 8px; border-radius: 999px; transform: rotate(10deg); box-shadow: 0 2px 6px rgba(0,0,0,.4); animation: ut-pop .35s cubic-bezier(.2,1.6,.5,1); }
.ut-catch { position: absolute; bottom: -16px; animation: ut-pulse 1s ease-in-out infinite; z-index: 3; }
@keyframes ut-pulse { 50% { transform: scale(1.08); } }
@keyframes ut-pop { from { transform: rotate(10deg) scale(0); } }

.ut-center { position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 26px; z-index: 1; }
.ut-dirring { position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; margin: -150px 0 0 -150px; color: rgba(255,255,255,.14); pointer-events: none; animation: ut-spin 14s linear infinite; will-change: rotate; }
.ut-dirring.ccw { animation-direction: reverse; transform: scaleX(-1); }
.ut-dirring svg { width: 100%; height: 100%; display: block; }
@keyframes ut-spin { to { rotate: 360deg; } }
.ut-deck { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; color: #fff; cursor: default; padding: 0; font: inherit; }
.ut-stack { position: relative; width: 88px; height: 132px; }
.ut-stack .ucard { position: absolute; inset: 0; width: 100%; height: 100%; }
.ut-stack .ucard.s3 { transform: translate(-6px, 5px) rotate(-6deg); }
.ut-stack .ucard.s2 { transform: translate(-3px, 2px) rotate(-3deg); }
.ut-deck.can { cursor: pointer; }
.ut-deck.can .ut-stack .ucard:last-child { box-shadow: 0 0 0 3px #ffd86b, 0 10px 24px rgba(0,0,0,.45); animation: ut-pulse 1.4s ease-in-out infinite; }
.ut-deck.can:hover .ut-stack .ucard:last-child { transform: translateY(-6px); }
.ut-deck small { font-size: 12px; opacity: .85; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.ut-pile { position: relative; width: 88px; height: 132px; border-radius: 12px; }
.ut-pile::before { content: ""; position: absolute; inset: -18px; border-radius: 50%; background: radial-gradient(circle, var(--glow, transparent), transparent 70%); opacity: .7; }
.ut-pile.glow-red { --glow: rgba(229,72,77,.75); } .ut-pile.glow-yellow { --glow: rgba(242,179,0,.75); } .ut-pile.glow-green { --glow: rgba(31,164,99,.75); } .ut-pile.glow-blue { --glow: rgba(47,115,224,.8); }
.ut-pile .ucard { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-5deg); }
.ut-pile .ucard.under { transform: rotate(9deg) translate(6px, 2px); filter: brightness(.82); }
.ut-bubble { position: absolute; left: calc(100% + 22px); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; width: max-content; max-width: min(260px, 80vw); padding: 8px 14px; border-radius: 12px; background: rgba(0,0,0,.4); text-align: center; }
.ut-color { padding: 2px 10px; border-radius: 999px; font-weight: 800; font-size: 12.5px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.ut-last { font-size: 13.5px; opacity: .92; }
.ut-turn { font-weight: 800; font-size: 16px; }
.my-turn .ut-turn { color: #ffd86b; }

/* Benim elim: yay şeklinde yelpaze */
.ut-me { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0 12px; z-index: 3; }
.ut-me.spectator { padding: 18px; }
.ut-hand { display: flex; justify-content: center; align-items: flex-end; width: 100%; padding: 30px 20px 6px; min-height: 160px; }
.ut-hand .ucard { flex: none; margin-left: calc(var(--step) - var(--cw)); transform-origin: 50% 160%; transform: translateY(var(--y, 0)) rotate(var(--r, 0deg)); transition: transform .18s, box-shadow .18s; }
.ut-hand .ucard:first-child { margin-left: 0; }
.ut-hand .ucard:hover, .ut-hand .ucard:focus-visible { transform: translateY(calc(var(--y, 0px) - 18px)) rotate(var(--r, 0deg)); z-index: 50 !important; outline: none; }
.ut-me.turn .ut-hand .ucard:not(.playable)::after { content: ""; position: absolute; inset: 0; background: rgba(8, 10, 14, .45); pointer-events: none; } /* filtre yerine örtü: daha ucuz */
.ut-me.turn .ut-hand .ucard.playable { transform: translateY(calc(var(--y, 0px) - 16px)) rotate(var(--r, 0deg)); box-shadow: 0 0 0 3px #ffd86b, 0 12px 22px rgba(0,0,0,.45); }
.ut-me.turn .ut-hand .ucard.playable:hover { transform: translateY(calc(var(--y, 0px) - 30px)) rotate(var(--r, 0deg)) scale(1.04); }
.ut-buttons { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; flex-wrap: wrap; }
.ut-mytimer { width: 160px; height: 6px; border-radius: 3px; background: rgba(0,0,0,.35); overflow: hidden; }
.ut-me:not(.turn) .ut-mytimer { display: none; }
.ut-mytimer span { display: block; height: 100%; width: 100%; background: #6ee7a8; border-radius: 3px; transform-origin: 0 50%; transition: transform .2s linear; }
.ut-mytimer span.low { background: #ff6b6b; }
.ut-call { background: #ff4d4d !important; color: #fff !important; font-weight: 900; font-size: 16px; padding: 10px 22px; letter-spacing: .05em; border-radius: 12px; box-shadow: 0 4px 0 #a32727; animation: ut-pulse .9s ease-in-out infinite; }
.ut-pass { background: rgba(255,255,255,.92) !important; color: #111 !important; font-weight: 800; }
.ut-hint { font-size: 13px; color: rgba(255,255,255,.8); }

/* Uçan kart */
.game-dialog .ut-fly { position: fixed; z-index: 30; pointer-events: none; margin: 0 !important; }

/* Kazanma */
.ut-over { position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(6,10,12,.84); text-align: center; animation: mfx-in .3s forwards; opacity: 0; overflow: hidden; }
.ut-over h2 { margin: 0; font-size: 32px; }
.ut-over .avatar.xl { width: 96px; height: 96px; font-size: 40px; box-shadow: 0 0 0 4px #ffd86b, 0 0 30px rgba(255,216,107,.6); }
.ut-trophy { font-size: 56px; animation: ut-land .5s cubic-bezier(.2,1.3,.5,1); }
@keyframes ut-land { from { transform: translateY(-40px) scale(1.2); opacity: 0; } }
.ut-confetti i { position: absolute; top: -20px; left: var(--x); width: calc(10px * var(--s)); height: calc(16px * var(--s)); background: var(--c); border-radius: 2px; animation: ut-fall 2.6s linear var(--d) 3; opacity: .9; will-change: transform; }
@keyframes ut-fall { from { transform: translateY(0) rotate(0); } to { transform: translateY(110vh) rotate(720deg); } }

/* Renk seçici */
.ut-picker { position: absolute; left: 50%; bottom: 190px; translate: -50% 0; z-index: 9; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 20px; border-radius: 16px; background: rgba(12,14,18,.95); box-shadow: 0 16px 40px rgba(0,0,0,.6); animation: ut-pop2 .2s ease-out; }
@keyframes ut-pop2 { from { transform: scale(.85); opacity: 0; } }
.ut-colors { display: flex; gap: 12px; }
.ut-cbtn { width: 58px; height: 58px; border-radius: 14px; border: 3px solid rgba(255,255,255,.85); cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,.4); transition: transform .12s; }
.ut-cbtn:hover, .ut-cbtn:focus-visible { transform: scale(1.1); outline: none; }

/* Kart (özgün çizim) */
.ucard {
  --cc: #444; --cc2: #222; position: relative; width: 88px; height: 132px; flex: none; border-radius: 12px; padding: 0; border: 4px solid #fff;
  background: linear-gradient(155deg, var(--cc) 0%, var(--cc2) 100%); color: #fff; font-family: inherit;
  box-shadow: 0 6px 14px rgba(0,0,0,.4); display: grid; place-items: center; overflow: hidden; user-select: none;
}
button.ucard { cursor: pointer; }
.c-red { --cc: #f0575b; --cc2: #c9282f; } .c-yellow { --cc: #ffc61a; --cc2: #e09a00; } .c-green { --cc: #2fbf76; --cc2: #138a50; } .c-blue { --cc: #4189f0; --cc2: #1d58bb; } .c-wild { --cc: #2a2a31; --cc2: #0f0f13; }
.ut-color.c-red, .ut-cbtn.c-red { background: #e5484d; } .ut-color.c-yellow, .ut-cbtn.c-yellow { background: #f2b300; } .ut-color.c-green, .ut-cbtn.c-green { background: #1fa463; } .ut-color.c-blue, .ut-cbtn.c-blue { background: #2f73e0; }
.uc-shine { position: absolute; inset: 0; background: linear-gradient(125deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 38%); pointer-events: none; }
.uc-face { position: relative; width: 70%; height: 62%; border-radius: 14px 5px; background: #fff; display: grid; place-items: center; transform: skewY(-12deg); box-shadow: inset 0 -3px 0 rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.2); }
.uc-sym { transform: skewY(12deg); font-weight: 900; font-size: 38px; line-height: 1; color: var(--cc2); text-shadow: 2px 2px 0 rgba(0,0,0,.12); }
.v-skip .uc-sym, .v-reverse .uc-sym { font-size: 40px; }
.v-6 .uc-sym, .v-9 .uc-sym { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 3px; } /* 6 ile 9 karışmasın */
.uc-corner { position: absolute; font-weight: 900; font-size: 15px; line-height: 1; text-shadow: 0 1px 1px rgba(0,0,0,.35); }
.uc-corner.tl { top: 6px; left: 7px; } .uc-corner.br { bottom: 6px; right: 7px; transform: rotate(180deg); }
.c-wild .uc-face { background: #0f0f13; border: 2px solid #fff; }
.uc-wheel { position: absolute; inset: 12%; border-radius: 50%; background: conic-gradient(#f0575b 0 25%, #ffc61a 0 50%, #2fbf76 0 75%, #4189f0 0); transform: skewY(12deg); box-shadow: 0 0 0 2px #fff; }
.c-wild .uc-sym { position: relative; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,.8); }
.ucard.back { --cc: #2c1f4f; background: radial-gradient(circle at 50% 50%, #3b2a6b, #1a1233); }
.ucard.back::after { content: ""; position: absolute; inset: 7px; border-radius: 7px; border: 2px solid rgba(255,216,107,.55); background: repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 5px, transparent 5px 10px); }
.uc-logo { position: relative; z-index: 1; width: 58%; aspect-ratio: 1; border-radius: 50%; background: #fff url("/img/logo.png?v=859b47a60d65") center / 82% no-repeat; box-shadow: 0 0 0 3px #ffd86b, 0 2px 8px rgba(0,0,0,.4); }
.ucard.back.mini::after, .ucard.back.mini .uc-logo { display: none; }
.ucard.back.mini { background: linear-gradient(155deg, #3b2a6b, #1a1233); }

@media (max-width: 720px) {
  .game-dialog { width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .ucard { width: 62px; height: 93px; border-width: 3px; border-radius: 9px; }
  .uc-sym { font-size: 26px; } .v-skip .uc-sym, .v-reverse .uc-sym { font-size: 28px; }
  .uc-corner { font-size: 11px; }
  .ut-stack, .ut-pile { width: 62px; height: 93px; }
  .ut-seat-o { min-width: 70px; padding: 4px 6px 6px; --sw: 46px; --sh: 52px; }
  .ut-seat-o strong { font-size: 11.5px; max-width: 76px; }
  .ut-av .avatar { width: 34px; height: 34px; font-size: 14px; }
  .ut-fan { width: 56px; height: 26px; } .ut-fan .ucard.mini { width: 16px; height: 24px; margin-left: -8px; }
  .ut-center { gap: 14px; top: 58%; }
  .ut-dirring { width: 200px; height: 200px; margin: -100px 0 0 -100px; }
  .ut-felt { left: 2%; right: 2%; top: 14%; }
  .ut-bubble { left: 50%; top: calc(100% + 8px); transform: translateX(-50%); padding: 6px 10px; }
  .ut-hand { min-height: 120px; padding: 24px 8px 4px; }
  .ut-picker { bottom: 140px; }
  .ut-cbtn { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) { .ut-dirring, .ut-deck.can .ucard, .ut-call, .ut-catch { animation: none !important; } }

/* ---------- Tek Kart: cezalar (kime, ne geldi) ---------- */
.ut-table { --pen: #ff4d57; --pen-soft: #ffb4b8; --rev: #7dd3fc; --late: #fbbf24; }
.game-dialog .ut-fly.pen { box-shadow: 0 0 0 2px var(--pen), 0 0 20px rgba(255, 77, 87, .85); }
/* Cezalı koltuk: kırmızı çerçeve, köşede "+4" rozeti; sırası geçenin yüzünde yasak işareti */
.ut-seat-o.hit { background: rgba(120, 12, 24, .55); box-shadow: 0 0 0 2px var(--pen), 0 0 22px rgba(255, 77, 87, .5); }
.ut-seat-o.hit.k-timeout { box-shadow: 0 0 0 2px var(--late), 0 0 22px rgba(251, 191, 36, .45); background: rgba(90, 60, 0, .5); }
.ut-seat-o.hit.fresh { animation: ut-shake .45s var(--d, 0ms) both; }
.ut-seat-o.k-plus .ut-av::after, .ut-seat-o.k-skip .ut-av::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid var(--pen); background: linear-gradient(45deg, transparent calc(50% - 2px), var(--pen) calc(50% - 2px) calc(50% + 2px), transparent calc(50% + 2px)); box-shadow: 0 0 10px rgba(255, 77, 87, .6); }
.ut-seat-o.k-plus.fresh .ut-av::after, .ut-seat-o.k-skip.fresh .ut-av::after { animation: ut-stamp .35s cubic-bezier(.2, 1.5, .5, 1) var(--d, 0ms) both; }
.ut-hitbadge { position: absolute; top: -16px; right: -16px; z-index: 4; display: flex; flex-direction: column; align-items: center; line-height: 1; padding: 4px 8px 4px; border-radius: 12px; background: var(--pen); color: #fff; transform: rotate(8deg); box-shadow: 0 3px 0 rgba(120, 10, 20, .7), 0 6px 14px rgba(0, 0, 0, .45); white-space: nowrap; }
.ut-seat-o.edge-r .ut-hitbadge { right: auto; left: -16px; transform: rotate(-8deg); }
.ut-hitbadge b { font-size: 20px; font-weight: 900; letter-spacing: -.02em; }
.ut-hitbadge small { font-size: 10px; font-weight: 700; opacity: .95; margin-top: 1px; }
.k-timeout .ut-hitbadge { background: var(--late); color: #2a1a00; box-shadow: 0 3px 0 rgba(120, 80, 0, .7), 0 6px 14px rgba(0, 0, 0, .45); }
.hit.fresh .ut-hitbadge { animation: ut-badge .5s cubic-bezier(.2, 1.6, .5, 1) var(--d, 0ms) both; }
.hit.fresh .ut-count { animation: ut-bump .5s ease-out var(--d, 0ms) both; }
.ut-seat-o.actor.fresh { animation: ut-actor .7s ease-out; }
@keyframes ut-shake { 0%, 100% { translate: 0 0; } 20% { translate: -6px 0; } 40% { translate: 5px 0; } 60% { translate: -4px 0; } 80% { translate: 2px 0; } }
@keyframes ut-stamp { from { transform: scale(1.8); opacity: 0; } }
@keyframes ut-badge { from { transform: rotate(-25deg) scale(0); } 60% { transform: rotate(12deg) scale(1.25); } }
@keyframes ut-bump { 40% { transform: scale(1.6); background: var(--pen); color: #fff; } }
@keyframes ut-actor { 30% { box-shadow: 0 0 0 2px #fff, 0 0 24px rgba(255, 255, 255, .5); } }

/* Balon: [yapan] +4 → [cezalı] ve açık cümle */
.ut-bubble.has-ev { box-shadow: 0 0 0 2px rgba(255, 77, 87, .85), 0 8px 24px rgba(0, 0, 0, .35); background: rgba(40, 4, 10, .62); }
.ut-bubble.k-reverse { box-shadow: 0 0 0 2px rgba(125, 211, 252, .8); background: rgba(0, 20, 35, .55); }
.ut-bubble.k-timeout { box-shadow: 0 0 0 2px rgba(251, 191, 36, .85); background: rgba(40, 26, 0, .6); }
.ut-bubble.fresh { animation: ut-pop2 .25s ease-out; }
.ut-ev { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ut-evrow { display: flex; align-items: center; gap: 6px; }
.ut-evav .avatar { width: 28px; height: 28px; font-size: 12px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
.ut-evrow .ut-evav:last-child .avatar { box-shadow: 0 0 0 2px var(--pen); }
.ut-evchip { display: inline-flex; align-items: center; gap: 4px; min-width: 34px; justify-content: center; padding: 3px 9px; border-radius: 999px; background: var(--pen); color: #fff; font-weight: 900; font-size: 15px; line-height: 1.1; }
.ut-evchip.k-reverse { background: var(--rev); color: #04263a; }
.ut-evchip.k-timeout { background: var(--late); color: #2a1a00; }
.ut-clock svg { width: 15px; height: 15px; display: block; }
.ut-arrow { display: inline-grid; color: rgba(255, 255, 255, .85); }
.ut-arrow svg { width: 20px; height: 20px; }
.ut-evtext { font-size: 14.5px; color: var(--pen-soft); line-height: 1.25; }
.k-reverse .ut-evtext { color: var(--rev); }
.k-timeout .ut-evtext { color: #fde68a; }

/* Ceza bana geldi: elimin üstünde kalıcı not, masada bir anlık kırmızı parlama */
.ut-mehit { position: absolute; top: -8px; left: 50%; translate: -50% 0; z-index: 60; display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(150, 14, 28, .94); border: 2px solid #ff8a90; color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; box-shadow: 0 8px 22px rgba(0, 0, 0, .45); }
.ut-mehit b { display: grid; place-items: center; min-width: 34px; height: 28px; padding: 0 6px; border-radius: 999px; background: #fff; color: #c3121f; font-size: 17px; font-weight: 900; }
.ut-me.k-timeout .ut-mehit { background: rgba(120, 80, 0, .94); border-color: var(--late); }
.ut-me.k-timeout .ut-mehit b { color: #8a5a00; }
.ut-me.hit.fresh .ut-mehit { animation: ut-pop2 .3s ease-out var(--d, 0ms) both; }
.ut-me.hit.fresh .ut-hand { animation: ut-shake .45s var(--d, 0ms) both; }
.ut-table.ouch::after { content: ""; position: absolute; inset: 0; z-index: 7; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 140px 30px rgba(255, 40, 55, .55); animation: ut-ouch 1.3s ease-out .35s both; }
.ut-hand .ucard.got-pen { animation: ut-gotpen 2.8s ease-out var(--d, 0ms) both; }
@keyframes ut-gotpen { 0%, 65% { box-shadow: 0 0 0 3px var(--pen), 0 0 22px rgba(255, 77, 87, .9); } }
@keyframes ut-ouch { from { opacity: 0; } 20% { opacity: 1; } to { opacity: 0; } }

/* Masanın ortasında bir an: büyük "+4" ve kime */
.ut-splash::before { content: ""; position: absolute; left: 50%; top: 45%; width: 260px; height: 200px; translate: -50% -50%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); }
.ut-splash { position: absolute; left: 50%; top: 56%; z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: none; transform: translate(-50%, -50%); animation: ut-splash 1.7s ease-out var(--d, 0ms) both; }
.ut-splash b { font-size: 96px; line-height: .95; font-weight: 900; letter-spacing: -.03em; color: var(--pen); -webkit-text-stroke: 3px #fff; paint-order: stroke fill; text-shadow: 0 6px 0 rgba(110, 8, 18, .85), 0 14px 30px rgba(0, 0, 0, .55); }
.ut-nosign { display: block; width: 104px; height: 104px; color: var(--pen); filter: drop-shadow(0 6px 0 rgba(110, 8, 18, .85)) drop-shadow(0 12px 24px rgba(0, 0, 0, .5)); }
.ut-nosign svg { width: 100%; height: 100%; display: block; }
.ut-splash span { padding: 4px 14px; border-radius: 999px; background: rgba(0, 0, 0, .7); color: #fff; font-weight: 800; font-size: 17px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ut-splash.mine span { background: var(--pen); }
.ut-splash.k-reverse b { color: var(--rev); text-shadow: 0 6px 0 rgba(4, 50, 80, .85), 0 14px 30px rgba(0, 0, 0, .55); }
.ut-splash.k-timeout b { font-size: 64px; color: var(--late); text-shadow: 0 5px 0 rgba(120, 80, 0, .85), 0 14px 30px rgba(0, 0, 0, .55); }
@keyframes ut-splash { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 0; } 14% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; } 24% { transform: translate(-50%, -50%) scale(1); } 72% { opacity: 1; } 100% { transform: translate(-50%, -62%) scale(1.04); opacity: 0; } }
.ut-dirring.flip svg { animation: ut-flipring .9s ease-out; }
@keyframes ut-flipring { from { transform: rotate(-120deg) scale(1.25); color: var(--rev); } }

/* Son hamleler */
.ut-log { position: absolute; left: 14px; bottom: 12px; z-index: 2; margin: 0; padding: 8px 10px; list-style: none; display: flex; flex-direction: column; gap: 5px; width: min(300px, 26%); border-radius: 12px; background: rgba(0, 0, 0, .34); font-size: 12.5px; line-height: 1.3; }
.ut-log li { display: flex; align-items: flex-start; gap: 7px; opacity: .62; }
.ut-log li.now { opacity: 1; }
.ut-log li.pen .ut-logtx { color: var(--pen-soft); }
.ut-logav .avatar { width: 18px; height: 18px; font-size: 9px; }
.ut-logtx { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px), (max-height: 620px) { .ut-log { display: none; } }
@media (max-width: 720px) {
  .ut-splash { top: 58%; }
  .ut-splash b { font-size: 68px; }
  .ut-splash.k-timeout b { font-size: 46px; }
  .ut-nosign { width: 76px; height: 76px; }
  .ut-hitbadge { top: -14px; right: -12px; padding: 3px 6px; }
  .ut-hitbadge b { font-size: 16px; }
  .ut-evav .avatar { width: 22px; height: 22px; font-size: 10px; }
  .ut-evtext { font-size: 13px; }
  .ut-mehit { font-size: 12.5px; padding: 4px 12px 4px 6px; }
  .ut-mehit b { font-size: 15px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .ut-splash, .ut-table.ouch::after { display: none; }
  .ut-hand .ucard.got-pen, .ut-seat-o.hit.fresh, .hit.fresh .ut-hitbadge, .hit.fresh .ut-count, .ut-me.hit.fresh .ut-hand, .ut-me.hit.fresh .ut-mehit, .ut-dirring.flip svg { animation: none !important; }
}

/* ---------- ayarlar: ikonlar ---------- */
.sn-ico, .opt-ico, .h-ico, .btn-ico { display: inline-grid; place-items: center; flex: none; }
.sn-ico svg { width: 18px; height: 18px; opacity: .85; }
.sn-item.active .sn-ico svg { opacity: 1; color: var(--accent); }
.lbl { display: inline-flex; align-items: center; gap: 8px; }
.opt-ico svg { width: 16px; height: 16px; color: var(--muted); }
.opt-ico.big { width: 36px; height: 36px; border-radius: 10px; background: var(--bg-3); }
.opt-ico.big svg { width: 20px; height: 20px; color: var(--text); }
.h-ico svg { width: 18px; height: 18px; color: var(--accent); }
.settings-page h3 { display: flex; align-items: center; gap: 8px; }
.pe-title { display: flex; align-items: center; gap: 8px; }
.btn-ico svg { width: 15px; height: 15px; }
.btn .btn-ico { margin-right: 6px; vertical-align: -2px; display: inline-block; }

/* ---------- ses kanalı: kişi simgeleri ---------- */
.vm-icons .vm-ico { display: inline-flex; align-items: center; }
.vm-icons .vol-pct { display: inline-flex; align-items: center; gap: 2px; }
.vm-icons .vol-pct svg { width: 12px; height: 12px; }
.vm-icons .vm-mic { color: var(--faint); transition: color .15s; }
.vm.speaking .vm-icons .vm-mic { color: var(--ok); }
.vm-icons .live { display: inline-flex; align-items: center; gap: 3px; }
.vm-icons .live .live-ico svg { width: 11px; height: 11px; }


/* ---------- yanıtlar ---------- */
.msg-reply { grid-column: 1 / -1; position: relative; display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; margin: 0 0 3px; padding: 0 0 0 60px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; line-height: 18px; text-align: left; cursor: pointer; }
.msg-reply::before { content: ""; position: absolute; left: 29px; top: 9px; width: 25px; height: 13px; border: 2px solid var(--line-strong, #4a4f5a); border-right: 0; border-bottom: 0; border-top-left-radius: 7px; }
.msg-reply .avatar.xxs { width: 16px; height: 16px; font-size: 8px; flex: none; }
.msg-reply .mr-name { flex: none; font-weight: 600; font-size: 13px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-reply .mr-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-reply .mr-file svg, .msg-reply .mr-ico svg { width: 14px; height: 14px; display: block; }
.msg-reply:hover .mr-text { color: var(--text); }
.msg-reply.deleted { cursor: default; font-style: italic; }
.msg-reply.deleted .mr-ico { flex: none; }
.msg.has-reply { margin-top: 14px; }
.msg.replying { background: color-mix(in srgb, var(--accent) 10%, transparent); box-shadow: inset 2px 0 0 var(--accent); }
.msg.flash { animation: msg-flash 2s ease-out; }
@keyframes msg-flash { 0%, 30% { background: color-mix(in srgb, var(--accent) 22%, transparent); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .msg.flash { animation: none; background: color-mix(in srgb, var(--accent) 14%, transparent); } }
.reply-bar { display: flex; align-items: center; gap: 8px; margin: 0 0 -1px; padding: 6px 8px 6px 12px; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; background: var(--bg-2); font-size: 13px; color: var(--muted); }
.reply-bar[hidden] { display: none; }
.reply-bar + .pending + .composer-row, .reply-bar:not([hidden]) ~ .composer-row { border-top-left-radius: 0; border-top-right-radius: 0; }
.reply-bar .rb-ico svg { width: 15px; height: 15px; display: block; }
.reply-bar .rb-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reply-bar .rb-text strong { font-weight: 700; }
.rb-ping { display: inline-flex; align-items: center; gap: 3px; border: 0; background: none; font: inherit; font-size: 12px; font-weight: 800; color: var(--faint); cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.rb-ping svg { width: 13px; height: 13px; }
.rb-ping.on { color: var(--accent); }
.rb-ping:hover { background: var(--bg-3); }
.reply-bar .rb-x { width: 26px; height: 26px; }
.reply-bar .rb-x svg { width: 15px; height: 15px; }
@media (max-width: 720px) {
  .msg-reply { padding-left: 52px; }
  .msg-reply::before { left: 25px; width: 22px; }
}
.app.voice-view .chat .msg-reply { padding-left: 52px; }
.app.voice-view .chat .msg-reply::before { left: 25px; width: 22px; }

/* ---------- spoiler / NSFW ---------- */
.spoiler { border-radius: 4px; padding: 0 2px; background: var(--bg-4, #3a3f4b); color: transparent; cursor: pointer; transition: background .15s, color .15s; -webkit-user-select: none; user-select: none; }
.spoiler * { visibility: hidden; }
.spoiler:hover { background: #4a505c; }
.spoiler:focus-visible { outline: 2px solid var(--accent); }
.spoiler.shown { background: rgba(255,255,255,.08); color: inherit; cursor: auto; -webkit-user-select: text; user-select: text; }
.spoiler.shown * { visibility: visible; }
.att-wrap { position: relative; display: inline-block; max-width: 100%; }
.att-mask { position: relative; display: inline-block; max-width: 100%; border-radius: 8px; overflow: hidden; vertical-align: top; }
.att-mask:not(.shown) > .att-img img, .att-mask:not(.shown) > .att-video { filter: blur(36px) saturate(.8); transform: scale(1.08); }
.att-mask:not(.shown) > .att-img { pointer-events: none; }
.mask-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px; border: 0; background: rgba(8,10,14,.35); color: #fff; font: inherit; cursor: pointer; text-align: center; }
.mask-cover:hover { background: rgba(8,10,14,.5); }
.mask-ico svg { width: 26px; height: 26px; opacity: .9; }
.mask-tag { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mask-tag strong { padding: 3px 10px; border-radius: 999px; background: rgba(0,0,0,.65); font-size: 13px; font-weight: 800; letter-spacing: .06em; }
.mask-tag.nsfw strong { background: var(--danger); }
.mask-tag small { font-size: 12px; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.mask-hint { font-size: 11.5px; opacity: .8; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.mask-corner { position: absolute; left: 6px; top: 6px; padding: 2px 7px; border-radius: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; font-weight: 700; pointer-events: none; }
.att-mask.is-nsfw .mask-corner { background: color-mix(in srgb, var(--danger) 85%, black); }
.att-mask { width: fit-content; max-width: min(420px, 100%); }
.att-mask:has(> .att-video) { max-width: min(480px, 100%); }
.att-mask > .att-img { max-width: 100%; }
.att-mask:not(.shown) > .att-img, .att-mask:not(.shown) > .att-video { min-width: 200px; min-height: 140px; }
.nsfw-tool { position: absolute; right: 6px; top: 6px; z-index: 2; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 8px; background: rgba(0,0,0,.7); color: #fff; cursor: pointer; opacity: 0; transition: opacity .15s; }
.nsfw-tool svg { width: 16px; height: 16px; }
.att-wrap:hover .nsfw-tool, .nsfw-tool:focus-visible { opacity: 1; }
.nsfw-tool:hover { background: var(--danger); }
.nsfw-tool.active { background: color-mix(in srgb, var(--danger) 80%, black); }
@media (hover: none) { .nsfw-tool { opacity: .9; } }
.pend-sp { position: absolute; top: 4px; right: 28px; width: 22px; height: 22px; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.pend-sp svg { width: 14px; height: 14px; }
.pend-sp:hover { background: var(--bg-4, #3a3f4b); color: var(--text); }
.pend-sp.on { background: var(--warn); color: #1a1300; }
.pend.is-spoiler > img { filter: blur(6px); }
.pend { padding-right: 54px; }

/* ---------- dönen plak ---------- */
.vinyl { --vs: 40px; position: relative; flex: none; width: var(--vs); height: var(--vs); border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 50%, #141414 0 30%, transparent 30.5%), repeating-radial-gradient(circle at 50% 50%, #0b0b0b 0 1.2px, #1d1d1d 1.6px 2.6px), #111;
  box-shadow: 0 2px 6px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.06); animation: vinyl-spin 2.4s linear infinite; animation-play-state: paused; }
.vinyl.spin { animation-play-state: running; }
.vinyl::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 30deg, transparent 0 40deg, rgba(255,255,255,.10) 55deg, transparent 75deg 210deg, rgba(255,255,255,.07) 230deg, transparent 250deg); pointer-events: none; }
.vinyl-label { width: 42%; height: 42%; border-radius: 50%; overflow: hidden; background: var(--accent); display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(0,0,0,.5); }
.vinyl-label img { width: 100%; height: 100%; object-fit: cover; }
.vinyl-ph { color: #0b0b0b; display: grid; place-items: center; }
.vinyl-ph svg { width: 55%; height: 55%; }
.vinyl-hole { position: absolute; width: 6%; height: 6%; min-width: 3px; min-height: 3px; border-radius: 50%; background: #0b0b0b; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
@keyframes vinyl-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .vinyl { animation: none; } }
.mm-vinyl { --vs: 40px; }
.mp-vinyl { height: 80%; width: auto; aspect-ratio: 1; }
.mp-loop-label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--accent); margin-top: 6px; }
.mp-loop-label svg { width: 14px; height: 14px; }

/* ---------- ad plakası: üye listesinde adın arkası ---------- */
/* Discord'daki gibi: plaka sağdan sola, adın olduğu yerde iyice kaybolur. Plaka ayrı bir katmanda; yazılar ve
   simgeler üstünde. Bayrak her satırda aynı yerde ve aynı boyda (ses simgesi olsa da olmasa da). */
.member.np { position: relative; isolation: isolate; }
.member.np::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 18%, rgba(0,0,0,.18) 38%, rgba(0,0,0,.6) 58%, #000 78%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 18%, rgba(0,0,0,.18) 38%, rgba(0,0,0,.6) 58%, #000 78%); }
/* Türk bayrağı: hafif ışık-gölge geçişli al zemin, sağda büyük ay yıldız (resmî oranlarla); en sağda ses simgesine yer kalır */
.member.np-tr::before { background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='225 200 560 400'%3E%3Cmask id='m'%3E%3Crect x='0' y='0' width='1200' height='800' fill='white'/%3E%3Ccircle cx='475' cy='400' r='160' fill='black'/%3E%3C/mask%3E%3Ccircle cx='425' cy='400' r='200' fill='white' fill-opacity='.9' mask='url(%23m)'/%3E%3Cpolygon fill='white' fill-opacity='.9' points='583.334,400 764.235,458.779 652.431,304.894 652.431,495.106 764.235,341.221'/%3E%3C/svg%3E") right 36px center / auto 90% no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .2) 100%),
    linear-gradient(90deg, #a8000d 0%, #d20716 45%, #e30a17 70%, #f02234 100%); }
.member.np:hover::before { filter: brightness(1.12); }
.member.np:hover { background: transparent; }
.member.np .member-act { text-shadow: 0 1px 3px rgba(0, 0, 0, .85); }
/* Geçişli adlarda text-shadow rengi karartır; gölge filtreyle verilir */
.member.np .member-name { filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .9)) drop-shadow(0 0 6px rgba(0, 0, 0, .5)); }
.member.np .member-act { color: rgba(255, 255, 255, .85); }
.member.np .member-voice { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(0, 0, 0, .45); }
.member.np .member-voice svg { color: #fff; width: 14px; height: 14px; }
.member.np .member-text { padding-right: 34px; }

/* Profil düzenleyicide plaka seçimi: her seçenek listede nasıl görüneceğini gösterir */
.np-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.np-choice { display: flex; flex-direction: column; gap: 6px; padding: 6px; border: 2px solid var(--line); border-radius: 10px; background: var(--bg-2); color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.np-choice:hover { border-color: var(--faint); }
.np-choice.on { border-color: var(--accent); }
.np-choice:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.np-sample { pointer-events: none; }
.np-label { display: inline-flex; align-items: center; gap: 5px; padding: 0 4px 2px; font-size: 13px; font-weight: 600; }
.np-check { display: inline-grid; color: var(--accent); }
.np-check svg { width: 14px; height: 14px; }

/* ---------- ad görünümü düzenleyici: kendi renklerin + yazı tipleri ---------- */
.name-custom { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); }
.name-custom[hidden] { display: none; }
.nc-label { font-size: 13px; color: var(--muted); }
.nc-slot { position: relative; display: inline-grid; }
.nc-color { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
.nc-remove { position: absolute; top: -7px; right: -7px; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--bg-4); color: var(--text); cursor: pointer; }
.nc-remove svg { width: 11px; height: 11px; }
.nc-add { border: 2px dashed var(--faint); background: transparent; color: var(--muted); }
.nc-add svg { width: 16px; height: 16px; }
.nc-bar { flex: 1 1 120px; min-width: 120px; height: 10px; border-radius: 5px; }
.name-fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 8px; }
.nf-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 8px 10px; border: 2px solid var(--line); border-radius: 10px; background: var(--bg-2); color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.nf-choice:hover { border-color: var(--faint); }
.nf-choice.on { border-color: var(--accent); }
.nf-choice:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nf-sample { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 700; line-height: 1.5; }
.nf-choice small { font-size: 11.5px; color: var(--muted); }

/* ---------- tam profil ---------- */
.full-profile { width: min(880px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); color: var(--text); overflow: auto; box-shadow: 0 24px 70px rgba(0, 0, 0, .55); }
.full-profile::backdrop { background: rgba(0, 0, 0, .65); }
.full-profile[open] { animation: ut-pop2 .18s ease-out; }
.fp-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: rgba(0, 0, 0, .5); color: #fff; }
.fp-close:hover { background: rgba(0, 0, 0, .7); }
.fp-banner { position: relative; height: 220px; overflow: hidden; container-type: size; }
.fp-head { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 0 28px; }
.fp-head > .avatar.fp-av { width: 128px; height: 128px; font-size: 50px; margin-top: -70px; border: 6px solid var(--bg-2); box-sizing: content-box; flex: none; }
.fp-head > .avatar.fp-av.online::after { width: 24px; height: 24px; right: 6px; bottom: 6px; border-width: 5px; }
.fp-id { width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fp-name { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 26px; line-height: 1.25; }
.fp-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-actions { position: absolute; top: 14px; right: 28px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; max-width: calc(100% - 200px); }
.fp-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.fp-actions .btn svg { width: 15px; height: 15px; }
.fp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; padding: 22px 28px 28px; }
.fp-card { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 14px; background: var(--bg-deep); min-width: 0; }
.fp-card h3 { margin: 6px 0 0; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.fp-card h3:first-child { margin-top: 0; }
.fp-fav { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg-3); min-width: 0; }
.fp-fav-ico { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 10px; color: #fff; }
.fp-fav-ico svg { width: 22px; height: 22px; }
.fav-game .fp-fav-ico { background: linear-gradient(135deg, #6a5cff, #b8a9ff); }
.fav-music .fp-fav-ico { background: linear-gradient(135deg, #ec4899, #f59e0b); }
.fav-show .fp-fav-ico { background: linear-gradient(135deg, #14b8a6, #2193b0); }
.fp-fav-text { display: flex; flex-direction: column; min-width: 0; }
.fp-fav-text small { font-size: 12px; color: var(--muted); }
.fp-fav-text strong { font-size: 15px; overflow-wrap: anywhere; }
.fp-fav-img { margin: 4px 0 0; border-radius: 12px; overflow: hidden; background: var(--bg-3); }
.fp-fav-img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.fp-fav-img figcaption { padding: 6px 10px; font-size: 12px; color: var(--muted); }
.fp-banner.zoomable, .fp-av.zoomable, .fp-fav-img.zoomable { cursor: zoom-in; }
.pc-top > .avatar.to-full, .pc-banner.to-full { cursor: pointer; }
.fav-editor label { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 720px) {
  .full-profile { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; }
  .fp-banner { height: 150px; }
  .fp-head { padding: 0 16px; gap: 8px; }
  .fp-head > .avatar.fp-av { width: 96px; height: 96px; font-size: 38px; margin-top: -54px; }
  .fp-actions { position: static; max-width: none; justify-content: flex-start; }
  .fp-name { font-size: 22px; }
  .fp-grid { grid-template-columns: 1fr; padding: 16px; }
}

/* ---------- Plus: fotoğraf çerçeveleri ---------- */
/* Çerçeve fotoğraftan %36 büyük; durum noktası çerçevenin üstünde kalır */
.av-frame { position: absolute; inset: -18.2%; z-index: 1; pointer-events: none; }
.av-frame svg { display: block; width: 100%; height: 100%; overflow: visible; }
.avatar.framed.online::after { z-index: 3; }
.av-frame .fr-spin, .av-frame .fr-spin-r, .av-frame .fr-spin-slow, .av-frame .fr-sway { transform-box: view-box; transform-origin: 60px 60px; }
.av-frame .fr-spin { animation: fr-rot 6s linear infinite; }
.av-frame .fr-spin-r { animation: fr-rot 9s linear infinite reverse; }
.av-frame .fr-spin-slow { animation: fr-rot 40s linear infinite; }
.av-frame .fr-sway { animation: fr-sway 5s ease-in-out infinite; }
.av-frame .fr-led { animation: fr-pulse 1.8s ease-in-out infinite; }
.av-frame .fr-flick-a { animation: fr-flick 0.9s ease-in-out infinite; }
.av-frame .fr-flick-b { animation: fr-flick 0.9s ease-in-out infinite reverse; }
.av-frame .fr-tw { transform-box: fill-box; transform-origin: center; animation: fr-twinkle 2.4s ease-in-out infinite; }
.av-frame .fr-drip { transform-box: fill-box; transform-origin: 50% 0; animation: fr-drip 4.5s ease-in-out infinite; }
@keyframes fr-drip { 0%, 100% { transform: scaleY(1); } 55% { transform: scaleY(1.45); } 70% { transform: scaleY(1.3); } }
@keyframes fr-rot { to { transform: rotate(360deg); } }
@keyframes fr-sway { 50% { transform: rotate(4deg); } }
@keyframes fr-pulse { 50% { opacity: .35; } }
@keyframes fr-flick { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes fr-twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.55); } }
@media (prefers-reduced-motion: reduce) { .av-frame * { animation: none !important; } }
.plus-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: linear-gradient(135deg, #ff5fa2, #8b5cf6); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: none; vertical-align: 1px; }
.fr-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.fr-choice { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 6px 8px; border: 2px solid var(--line); border-radius: 12px; background: var(--bg-2); color: var(--text); font: inherit; cursor: pointer; }
.fr-choice:hover:not(:disabled) { border-color: var(--faint); }
.fr-choice.on { border-color: var(--accent); }
.fr-choice:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fr-choice small { font-size: 12px; color: var(--muted); text-align: center; }
.fr-choice.locked { cursor: not-allowed; opacity: .55; }
.fr-choice.locked::after { content: "Plus"; position: absolute; top: 6px; right: 6px; padding: 0 6px; border-radius: 999px; background: linear-gradient(135deg, #ff5fa2, #8b5cf6); color: #fff; font-size: 10px; font-weight: 800; }
/* Yönetici ad rengi örnekleri de akar */
.swatch.name-sw.shimmer { animation: admin-name 5s linear infinite; }
@media (prefers-reduced-motion: reduce) { .swatch.name-sw.shimmer { animation: none; } }

/* ---------- bağlantılar ---------- */
.conn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.conn-field { display: flex; flex-direction: column; gap: 6px; }
.conn-name { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.conn-ico { display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 7px; background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--c); }
.conn-ico svg { width: 15px; height: 15px; }
.fp-conns { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.fp-conn { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg-3); color: var(--text); text-decoration: none; min-width: 0; border: 1px solid transparent; }
.fp-conn:hover { border-color: var(--line); background: var(--bg-4); }
.fp-conn .conn-ico { width: 32px; height: 32px; border-radius: 9px; }
.fp-conn .conn-ico svg { width: 18px; height: 18px; }
.fp-conn-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.fp-conn-text small { font-size: 11.5px; color: var(--muted); }
.fp-conn-text strong { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-conn-out { display: inline-grid; color: var(--faint); }
.fp-conn-out svg { width: 14px; height: 14px; }

/* ---------- profil düzenleyici: tıklayınca açılan bölümler ---------- */
.pe-acc { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); overflow: hidden; }
.pe-acc[hidden] { display: none; }
.pe-acc + .pe-acc { margin-top: -4px; }
.pe-acc > summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; list-style: none; user-select: none; font-weight: 600; font-size: 14px; }
.pe-acc > summary::-webkit-details-marker { display: none; }
.pe-acc > summary:hover { background: var(--bg-3); }
.pe-acc > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pe-acc-title { flex: none; display: inline-flex; align-items: center; }
.pe-acc-sum { flex: 1; min-width: 0; text-align: right; font-weight: 500; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pe-acc-chev { flex: none; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .18s; }
.pe-acc[open] > summary .pe-acc-chev { transform: rotate(225deg) translate(-2px, -2px); }
.pe-acc[open] > summary { border-bottom: 1px solid var(--line); }
.pe-acc-body { display: flex; flex-direction: column; gap: 10px; padding: 14px; animation: pe-open .18s ease-out; }
@keyframes pe-open { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .pe-acc-body { animation: none; } .pe-acc-chev { transition: none; } }
.pe-acc-body label { display: flex; flex-direction: column; gap: 6px; }
.pe-sub { margin-top: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.pe-sub:first-child { margin-top: 0; }
.pe-acc-sum .ns-sample { font-size: 14px; font-weight: 700; }
.bio-wrap { position: relative; }
.bio-wrap textarea { width: 100%; padding-right: 44px; box-sizing: border-box; }
.bio-emoji { position: absolute; right: 6px; bottom: 8px; width: 32px; height: 32px; }
.bio-emoji svg { width: 20px; height: 20px; }
.pc-bio .emoji, .fp-card .pc-bio .emoji { width: 1.25em; height: 1.25em; vertical-align: -0.25em; }

/* ---------- özel durum ---------- */
.member-cs, .me-cs, .pc-cs, .st-cs { display: flex; align-items: center; gap: 5px; min-width: 0; }
.member-cs { font-size: 11.5px; color: var(--muted); }
.member-cs .cs-txt, .me-cs .cs-txt, .st-cs .cs-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cs-emo { display: inline-flex; flex: none; line-height: 1; }
.cs-emo img, .cs-emo .emoji { width: 15px; height: 15px; }
.member.np .member-cs { color: rgba(255, 255, 255, .88); text-shadow: 0 1px 3px rgba(0, 0, 0, .85); }
.me-cs { font-size: 12px; color: var(--muted); }
.pc-cs { margin-top: 2px; font-size: 14px; color: var(--text); }
.pc-cs .cs-txt { overflow-wrap: anywhere; }
.pc-cs .cs-emo img, .pc-cs .cs-emo .emoji { width: 20px; height: 20px; }
.st-cs { font-size: 12px; color: var(--muted); }
.cs-dialog { width: min(440px, calc(100% - 24px)); }
.cs-row { display: flex; align-items: center; gap: 8px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-deep); }
.cs-row:focus-within { border-color: var(--accent); }
.cs-emoji { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px; background: var(--bg-3); color: var(--muted); cursor: pointer; font-size: 22px; }
.cs-emoji:hover { background: var(--bg-4); color: var(--text); }
.cs-emoji svg { width: 22px; height: 22px; }
.cs-emoji img, .cs-emoji .emoji { width: 24px; height: 24px; }
.cs-row input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 15px; color: var(--text); padding: 8px 4px; }
.cs-clear-input svg { width: 16px; height: 16px; }

/* ---------- ad animasyonları ---------- */
@keyframes ns-shine { 0% { background-position: -160% 0, 0 0; } 60%, 100% { background-position: 260% 0, 0 0; } }
@keyframes ns-pulse { 0%, 100% { filter: brightness(1) drop-shadow(0 0 0 transparent); } 50% { filter: brightness(1.35) drop-shadow(0 0 6px var(--ns-glow)); } }
@keyframes ns-hue { to { filter: hue-rotate(360deg); } }
@keyframes ns-wave { to { background-position: 100% 0; } }
@keyframes ns-rise { from { background-position: 0 0; } to { background-position: 0 100%; } }
@keyframes ns-stripes { to { background-position: .99em 0; } }
@keyframes ns-breathe { 50% { opacity: .5; } }
@keyframes ns-neon { 0%, 7%, 9%, 11%, 40%, 42%, 100% { opacity: 1; } 8%, 10%, 41% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { [class*="ns-"] { animation: none !important; } }
.name-anims { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 8px; }
.na-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 8px 10px; border: 2px solid var(--line); border-radius: 10px; background: var(--bg-2); color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.na-choice:hover:not(:disabled) { border-color: var(--faint); }
.na-choice.on { border-color: var(--accent); }
.na-choice:disabled { cursor: not-allowed; opacity: .5; }
.na-choice:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.na-choice small { font-size: 11.5px; color: var(--muted); }

/* ---------- profil temaları (profil kartı, tam profil, önizleme) ----------
   Tema, kartın içindeki renk değişkenlerini yeniden tanımlar; kart bileşenleri bu değişkenlerle çizildiği için
   her şey birlikte değişir. "image": kişinin kendi görseli, seçtiği oranda soluklaştırılmış. */
.ptheme { background: var(--pt-bg, var(--bg-2)) !important; color: var(--text); }
.ptheme-contrast { --bg: #000; --bg-2: #000; --bg-3: #1a1a1a; --bg-4: #2a2a2a; --bg-deep: #000; --line: #fff; --text: #fff; --muted: #f0f0f0; --faint: #ffd400; --accent: #ffd400; --pt-bg: #000; border: 2px solid #fff !important; }
.ptheme-contrast .fp-card, .ptheme-contrast .fp-fav, .ptheme-contrast .fp-conn, .ptheme-contrast .pc-badges { border: 1px solid #fff; }
.ptheme-light { --bg: #fff; --bg-2: #ffffff; --bg-3: #eef1f5; --bg-4: #e2e6ec; --bg-deep: #f4f6f9; --line: #d6dbe3; --text: #121418; --muted: #4b5563; --faint: #6b7280; --pt-bg: #fff; }
.ptheme-ocean { --bg-2: #0a2c47; --bg-3: rgba(120, 200, 255, .12); --bg-4: rgba(120, 200, 255, .2); --bg-deep: rgba(2, 18, 33, .55); --line: rgba(120, 200, 255, .22); --muted: #a7cfe9; --faint: #7fb3d6; --accent: #38bdf8;
  --pt-bg: radial-gradient(120% 60% at 50% 0%, rgba(125, 211, 252, .28), transparent 60%), repeating-radial-gradient(circle at 50% 120%, rgba(255, 255, 255, .035) 0 2px, transparent 2px 18px), linear-gradient(180deg, #0e4166, #06213a 70%, #041627); }
.ptheme-lagoon { --bg-2: #b8f0ea; --bg-3: rgba(255, 255, 255, .55); --bg-4: rgba(255, 255, 255, .75); --bg-deep: rgba(255, 255, 255, .45); --line: rgba(13, 115, 119, .25); --text: #04363a; --muted: #1f6b6e; --faint: #2b8a8e; --accent: #0d9488;
  --pt-bg: radial-gradient(90% 50% at 20% 0%, rgba(255, 255, 255, .7), transparent 60%), linear-gradient(170deg, #d9fbf6, #8fe3dc 60%, #4cc9c0); }
.ptheme-abyss { --bg-2: #030a1e; --bg-3: rgba(34, 211, 238, .08); --bg-4: rgba(34, 211, 238, .16); --bg-deep: rgba(0, 4, 16, .6); --line: rgba(34, 211, 238, .18); --muted: #8fb3d9; --faint: #5f86b0; --accent: #22d3ee;
  --pt-bg: radial-gradient(2px 2px at 20% 30%, #5eead4, transparent), radial-gradient(1.5px 1.5px at 70% 20%, #a5f3fc, transparent), radial-gradient(2px 2px at 85% 60%, #67e8f9, transparent), radial-gradient(1.5px 1.5px at 35% 75%, #99f6e4, transparent), radial-gradient(2.5px 2.5px at 55% 45%, rgba(94, 234, 212, .8), transparent), linear-gradient(180deg, #0a1b4a, #030a1e 55%, #01040d); }
.ptheme-aurora { --bg-2: #07122a; --bg-3: rgba(134, 239, 172, .1); --bg-4: rgba(134, 239, 172, .18); --bg-deep: rgba(2, 8, 22, .55); --line: rgba(134, 239, 172, .2); --muted: #b6d7e8; --faint: #7fb7a8; --accent: #4ade80;
  --pt-bg: radial-gradient(70% 28% at 30% 18%, rgba(74, 222, 128, .45), transparent 70%), radial-gradient(60% 24% at 75% 28%, rgba(167, 139, 250, .45), transparent 70%), radial-gradient(80% 30% at 55% 8%, rgba(45, 212, 191, .35), transparent 70%), radial-gradient(1.5px 1.5px at 15% 60%, #fff, transparent), radial-gradient(1.5px 1.5px at 80% 70%, #fff, transparent), radial-gradient(1px 1px at 45% 85%, #fff, transparent), linear-gradient(180deg, #0b1d3a, #07122a 55%, #040a18); }
.ptheme-sakura { --bg-2: #2a1626; --bg-3: rgba(249, 168, 212, .12); --bg-4: rgba(249, 168, 212, .2); --bg-deep: rgba(24, 8, 20, .5); --line: rgba(249, 168, 212, .22); --muted: #f5c6dc; --faint: #e79abd; --accent: #f472b6;
  --pt-bg: radial-gradient(5px 3px at 18% 22%, rgba(251, 207, 232, .9), transparent), radial-gradient(4px 3px at 72% 14%, rgba(251, 207, 232, .8), transparent), radial-gradient(5px 3px at 86% 48%, rgba(249, 168, 212, .8), transparent), radial-gradient(4px 3px at 30% 64%, rgba(251, 207, 232, .7), transparent), radial-gradient(5px 3px at 60% 82%, rgba(249, 168, 212, .7), transparent), radial-gradient(90% 50% at 50% 0%, rgba(244, 114, 182, .35), transparent 65%), linear-gradient(180deg, #4a2240, #2a1626 60%, #1a0d18); }
.ptheme-synth { --bg-2: #160b2e; --bg-3: rgba(236, 72, 153, .12); --bg-4: rgba(236, 72, 153, .2); --bg-deep: rgba(10, 4, 24, .55); --line: rgba(236, 72, 153, .25); --muted: #d6bcf5; --faint: #a78bfa; --accent: #ec4899;
  --pt-bg: linear-gradient(180deg, transparent 62%, rgba(236, 72, 153, .5) 63%, transparent 64%), repeating-linear-gradient(90deg, rgba(34, 211, 238, .18) 0 1px, transparent 1px 28px), radial-gradient(60% 22% at 50% 62%, rgba(251, 113, 133, .55), transparent 70%), linear-gradient(180deg, #1e0b3d 0%, #3b0f5c 55%, #12062a 64%, #0a0418); }
.ptheme-marble { --bg-2: #1b1d22; --bg-3: rgba(255, 255, 255, .07); --bg-4: rgba(255, 255, 255, .13); --bg-deep: rgba(10, 11, 14, .55); --line: rgba(255, 255, 255, .14); --muted: #c9cdd4; --faint: #9aa1ab; --accent: #e5c07b;
  --pt-bg: repeating-linear-gradient(118deg, transparent 0 46px, rgba(255, 255, 255, .05) 46px 47px, transparent 47px 90px), repeating-linear-gradient(32deg, transparent 0 70px, rgba(229, 192, 123, .08) 70px 71px, transparent 71px 140px), radial-gradient(120% 80% at 20% 0%, #3a3d45, #1b1d22 60%, #121317); }
/* Kart kraliçesi: hazır görselli tema, yazılar okunsun diye soluklaştırılmış */
.ptheme-cardqueen { --bg-2: rgba(16, 14, 20, .72); --bg-3: rgba(255, 255, 255, .1); --bg-4: rgba(255, 255, 255, .18); --bg-deep: rgba(8, 6, 12, .5); --line: rgba(255, 255, 255, .16); --muted: #d4ccdc; --faint: #a99fb6; --accent: #c4b5fd;
  --pt-bg: linear-gradient(180deg, rgba(14, 12, 18, .35), rgba(14, 12, 18, .62) 45%, rgba(14, 12, 18, .82)), url("/img/themes/card-queen.webp?v=04937284ce96") center 18% / cover no-repeat; }
.ptheme-cardqueen .pc-bio, .ptheme-cardqueen .muted { text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.ptheme-image { --bg-2: rgba(12, 14, 18, .75); --bg-3: rgba(255, 255, 255, .1); --bg-4: rgba(255, 255, 255, .18); --bg-deep: rgba(0, 0, 0, .42); --line: rgba(255, 255, 255, .16);
  --pt-bg: linear-gradient(180deg, rgb(12 14 18 / calc(var(--pt-fade, 60) * 1% - 15%)), rgb(12 14 18 / calc(var(--pt-fade, 60) * 1%)) 45%, rgb(12 14 18 / calc(var(--pt-fade, 60) * 1% + 15%))), var(--pt-img) center / cover no-repeat; }
.ptheme-image .pc-bio, .ptheme-image .muted { text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
/* Tema seçici */
.pt-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.pt-choice { display: flex; flex-direction: column; gap: 6px; padding: 6px; border: 2px solid var(--line); border-radius: 12px; background: var(--bg-2); color: var(--text); font: inherit; cursor: pointer; }
.pt-choice:hover:not(:disabled) { border-color: var(--faint); }
.pt-choice.on { border-color: var(--accent); }
.pt-choice:disabled { cursor: not-allowed; opacity: .55; }
.pt-choice:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pt-swatch { position: relative; height: 56px; border-radius: 8px; overflow: hidden; background: var(--pt-bg, var(--bg-2)); }
.pt-swatch::after { content: ""; position: absolute; left: 8px; right: 30%; bottom: 8px; height: 8px; border-radius: 4px; background: var(--text); opacity: .8; box-shadow: 0 -12px 0 -1px var(--muted); }
.pt-choice small { font-size: 12px; color: var(--muted); text-align: center; }
.pt-image-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pt-fade { display: flex; align-items: center; gap: 10px; }
.pt-fade input { flex: 1; accent-color: var(--accent); }
.pt-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); background: var(--bg-3); }
.pt-noimg svg { width: 22px; height: 22px; }
.name-sw-groups { display: flex; flex-direction: column; gap: 8px; }
.sw-group { display: flex; flex-direction: column; gap: 6px; }
.sw-label { font-size: 11.5px; color: var(--muted); }

/* ---- v1.28 müzik: seçen kişi, DJ kuralları, atlama oylaması, kütüphane ---- */
.mm-info { cursor: default; }
.mp-by { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; vertical-align: middle; cursor: pointer; border-radius: 999px; padding: 2px 9px 2px 2px; background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); font-weight: 600; }
.mp-by:hover { background: color-mix(in srgb, var(--text) 13%, transparent); }
.mp-by .avatar { flex: none; }
.mp-by-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-by.sm { gap: 4px; padding: 1px 7px 1px 1px; font-size: 11.5px; font-weight: 600; }
.mp-by.sm .avatar { width: 16px; height: 16px; font-size: 8px; }
.mp-by.lg { font-size: 13.5px; padding: 3px 12px 3px 3px; }
.mp-by.lg .avatar { width: 26px; height: 26px; font-size: 12px; }
.mp-by .avatar.online::after { display: none; }
.mp-picked { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12.5px; min-width: 0; }
.mp-you { font-size: 11px; font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); border-radius: 999px; padding: 1px 8px; }
.mq-sub { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mq-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 0 1 auto; }
.mq-sub .mp-by { flex: 0 1 auto; }
.mq-row.mine .mq-idx { color: var(--accent); }
.mq-row.pending .mq-thumb { filter: grayscale(1); opacity: .6; }
.mq-main.static { cursor: default; }
.mm-text .mm-by { margin-top: 3px; align-self: flex-start; background: none; padding-left: 0; color: var(--muted); }
.mm-text .mm-by:hover { color: var(--text); background: none; }
.mp-btn:disabled { cursor: not-allowed; }
.mp-btn.dim:hover { background: none; color: var(--muted); transform: none; }
.mp-btn.big.dim:hover { background: var(--text); color: var(--bg); }
.mp-vote { width: auto; min-width: 36px; padding: 0 8px; border-radius: 999px; display: inline-flex; gap: 4px; align-items: center; }
.mp-vote.on { color: var(--accent); }
.mp-vote-n { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mp-vote-label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--accent); }
.mp-vote-label svg { width: 14px; height: 14px; display: block; }
.mq-rule { font-size: 11.5px; border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; cursor: help; }
.mp-banned { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 8px 12px; border-radius: 10px; color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, var(--bg-3)); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }
.mp-banned svg { width: 18px; height: 18px; flex: none; display: block; }
.mp-screen { position: relative; }
.mp-screen-note { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 12px; color: var(--muted); }
.mp-lib-btn { display: inline-flex; gap: 6px; align-items: center; }
.mp-lib-btn svg { width: 15px; height: 15px; display: block; }
.mp-library { border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.ml-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.ml-head .spacer { flex: 1; }
.ml-head .btn { display: inline-flex; gap: 6px; align-items: center; }
.ml-head .btn svg { width: 15px; height: 15px; display: block; }
.mp-library .ml-search { flex: 0 1 220px; width: auto; min-width: 120px; padding: 5px 10px !important; font-size: 13px; }
.ml-list { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.ml-row { display: flex; align-items: center; gap: 10px; padding: 4px 6px; border-radius: 8px; }
.ml-row:hover { background: var(--bg-3); }
.ml-ico { width: 30px; height: 30px; border-radius: 6px; background: var(--bg-4); color: var(--faint); display: grid; place-items: center; flex: none; }
.ml-ico svg { width: 15px; height: 15px; }
.ml-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ml-text strong { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-text small { font-size: 12px; }
.ml-acts { display: flex; align-items: center; gap: 2px; flex: none; }
.ml-acts .mp-btn { width: 30px; height: 30px; }
.ml-acts .mp-btn svg { width: 15px; height: 15px; }
.ml-empty { font-size: 13px; padding: 10px 6px; }
.ml-uploads { display: flex; flex-direction: column; gap: 4px; }
.ml-up { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.ml-up > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-bar { width: 120px; height: 4px; border-radius: 2px; background: var(--bg-4); overflow: hidden; }
.ml-bar > span { display: block; height: 100%; background: var(--accent); }
@media (max-width: 760px) { .mp-library .ml-search { flex-basis: 100%; order: 5; } }

/* ---- v1.28 ad plakası: her ülkenin bayrağı + kendi görselin (Plus) ---- */
.member.np-flag::before { background:
    linear-gradient(180deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .28) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, 0) 60%),
    var(--np-img) right center / cover no-repeat; }
.member.np-custom::before { background:
    linear-gradient(180deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .3) 100%),
    var(--np-img) center / cover no-repeat; }
.np-choices { display: flex; flex-direction: column; gap: 10px; }
.np-top { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.np-upload { align-items: center; justify-content: center; min-height: 72px; border-style: dashed; color: var(--muted); }
.np-upload:hover { color: var(--text); }
.np-upload.locked { cursor: default; opacity: .7; }
.np-up-ico { display: grid; }
.np-up-ico svg { width: 20px; height: 20px; }
.np-label .plus-tag { margin-left: 4px; }
.np-custom-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.np-country-head { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-top: 2px; }
.np-country-head .np-search { margin-left: auto; width: 200px; padding: 6px 10px !important; font-size: 13px; }
.np-flags { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px; max-height: 236px; overflow-y: auto; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.np-flag { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border: 1px solid transparent; border-radius: 7px; background: none; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; text-align: left; min-width: 0; }
.np-flag:hover { background: var(--bg-3); }
.np-flag.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--bg-3)); }
.np-flag img { width: 24px; height: 18px; border-radius: 3px; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.np-flag span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-none { padding: 8px; font-size: 13px; }
@media (max-width: 760px) { .np-country-head .np-search { width: 100%; } .np-country-head { flex-wrap: wrap; } }

.mm-listeners { display: flex; align-items: center; gap: 6px; }
.mm-open { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; max-width: 50%; padding: 2px 8px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 11.5px; cursor: pointer; }
.mm-open:hover { color: var(--text); background: var(--bg-4); }
.mm-open svg { width: 12px; height: 12px; display: block; flex: none; }
.mm-open { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Tek Kart masası açıkken arkadaki uygulamanın animasyonları durur (masa daha akıcı) */
body.game-open #app-view *, body.game-open #app-view *::before, body.game-open #app-view *::after { animation-play-state: paused !important; }

/* Paletten düz renk: geçişli "kendi geçişin" düğmesinden ayrı görünsün (kesik çerçeve, damlalık simgesi) */
.swatch.palette-sw:not(.on) { background: var(--bg-3); border: 2px dashed var(--faint); color: var(--muted); }
.swatch.palette-sw:not(.on):hover { color: var(--text); border-color: var(--text); }
.swatch.palette-sw svg { width: 16px; height: 16px; }

/* ---------- uygulama temaları (Ayarlar → Görünüm; bu cihazda saklanır) ---------- */
:root[data-app-theme="midnight"] { --bg: #000000; --bg-2: #0a0b0d; --bg-3: #131419; --bg-4: #1d1f25; --bg-deep: #000000; --line: #23262d; --muted: #9298a5; --faint: #646b78; }
:root[data-app-theme="navy"] { --bg: #0f1626; --bg-2: #131c30; --bg-3: #1a2540; --bg-4: #233050; --bg-deep: #0a1020; --line: #263353; --muted: #95a2bf; --faint: #66739a; }
:root[data-app-theme="grape"] { --bg: #17121f; --bg-2: #1d1727; --bg-3: #261e34; --bg-4: #302642; --bg-deep: #100c16; --line: #362b4b; --muted: #a698b9; --faint: #786b8d; }
:root[data-app-theme="forest"] { --bg: #0f1713; --bg-2: #131d18; --bg-3: #19261f; --bg-4: #213128; --bg-deep: #0a110d; --line: #27382e; --muted: #94a99c; --faint: #667a6e; }
:root[data-app-theme="light"] {
  color-scheme: light;
  --bg: #ffffff; --bg-2: #f3f4f7; --bg-3: #e9ebf0; --bg-4: #dde0e7; --bg-deep: #e4e7ec; --line: #d5d9e1;
  --text: #15181e; --muted: #555d6b; --faint: #868d9a; --danger: #d93838; --warn: #b7791f; --ok: #1f9d63; --admin: #0891b2;
}
:root[data-app-theme="light"] ::-webkit-scrollbar-thumb { background-color: #c3c8d2; }
:root[data-app-theme="light"] ::-webkit-scrollbar-thumb:hover { background-color: #a9b0bd; }
:root[data-app-theme="light"] .dialog::backdrop, :root[data-app-theme="light"] .game-dialog::backdrop { background: rgba(20, 24, 32, .45); }
:root[data-app-theme="light"] .mp-btn.big:hover { background: #000; }
:root[data-app-theme="light"] .member.np .member-name, :root[data-app-theme="light"] .member.np .member-act { color: #fff; }

/* Hareketleri azalt: tüm animasyon ve geçişler durur (yavaş bilgisayarlar için) */
:root.reduce-motion *, :root.reduce-motion *::before, :root.reduce-motion *::after { animation-duration: 0s !important; animation-iteration-count: 1 !important; transition: none !important; scroll-behavior: auto !important; }
/* Sıkışık mesajlar */
:root.compact .msg { margin-top: 4px; padding-top: 1px; padding-bottom: 1px; }
:root.compact .msg.grouped { padding-top: 0; padding-bottom: 0; }

/* Görünüm ayarları */
.app-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; margin-bottom: 6px; }
.at-choice { display: flex; flex-direction: column; gap: 6px; padding: 6px 6px 8px; border: 2px solid var(--line); border-radius: 12px; background: var(--bg-2); color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.at-choice:hover { border-color: var(--faint); }
.at-choice.on { border-color: var(--accent); }
.at-choice small { padding: 0 4px; font-size: 13px; font-weight: 600; }
.at-sample { --s-bg: #111318; --s-bg2: #171a20; --s-bg3: #1e222a; --s-line: #2a303b; display: flex; height: 64px; border-radius: 8px; overflow: hidden; border: 1px solid var(--s-line); background: var(--s-bg); }
.at-side { width: 30%; background: var(--s-bg2); border-right: 1px solid var(--s-line); }
.at-main { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 10px 8px; }
.at-main i { display: block; height: 6px; border-radius: 3px; background: var(--s-bg3); }
.at-main i:nth-child(2) { width: 70%; }
.at-main i.acc { width: 40%; background: var(--accent); }
.at-choice[data-preview="midnight"] .at-sample { --s-bg: #000; --s-bg2: #0a0b0d; --s-bg3: #1d1f25; --s-line: #23262d; }
.at-choice[data-preview="navy"] .at-sample { --s-bg: #0f1626; --s-bg2: #131c30; --s-bg3: #233050; --s-line: #263353; }
.at-choice[data-preview="grape"] .at-sample { --s-bg: #17121f; --s-bg2: #1d1727; --s-bg3: #302642; --s-line: #362b4b; }
.at-choice[data-preview="forest"] .at-sample { --s-bg: #0f1713; --s-bg2: #131d18; --s-bg3: #213128; --s-line: #27382e; }
.at-choice[data-preview="light"] .at-sample { --s-bg: #fff; --s-bg2: #f3f4f7; --s-bg3: #dde0e7; --s-line: #d5d9e1; }
.app-accents { margin-bottom: 4px; }
.app-reset-row { margin: 14px 0 6px; }
.pe-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pe-head h2 { margin-bottom: 0; }
.pe-head .btn { display: inline-flex; align-items: center; gap: 6px; }
.pe-head .btn .opt-ico svg { width: 15px; height: 15px; display: block; }
