/* Son yüklenen küçük UI düzeltmeleri. */
.voice-dock:not(.collapsed) .voice-user .voice-user-permissions {
  display: grid !important;
  grid-template-columns: repeat(3, 30px) !important;
  grid-auto-flow: row !important;
  width: 106px !important;
  min-width: 106px !important;
  max-width: 106px !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 5px !important;
  gap: 4px !important;
  place-content: center !important;
}

.voice-dock:not(.collapsed) .voice-user .voice-user-permissions:empty {
  display: none !important;
}

.voice-dock:not(.collapsed) .voice-user .voice-user-permissions > button.voice-permission-button.icon-action {
  grid-column: auto !important;
  grid-row: auto !important;
  width: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
}

.voice-dock .voice-permission-button.icon-action.local-mute {
  color: #8fb8b0 !important;
  border-color: rgba(77, 174, 154, .36) !important;
  background: rgba(15, 48, 49, .76) !important;
}

.voice-dock .voice-permission-button.icon-action.local-mute.active {
  color: #fff1f4 !important;
  border-color: rgba(255, 91, 121, .7) !important;
  background: rgba(151, 39, 61, .72) !important;
  box-shadow: 0 0 12px rgba(255, 74, 108, .18) !important;
}

.voice-dock .voice-user.locally-muted .voice-user-copy small {
  color: #f0788e;
}

.voice-dock .voice-user-permissions > button.voice-permission-button.icon-action:hover {
  transform: none !important;
  filter: brightness(1.06) !important;
  box-shadow: 0 0 9px rgba(59, 224, 184, .16) !important;
}

.voice-user-volume {
  display: flex;
  width: min(150px, 100%);
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  color: #73918d;
}

.voice-user-volume .ui-icon { width: 12px; height: 12px; }
.voice-user-volume button {
  display: grid;
  width: 22px;
  min-width: 22px;
  height: 22px;
  padding: 0;
  place-items: center;
  color: #7ea59e;
  background: transparent;
  border: 0;
  border-radius: 7px;
}
.voice-user-volume button:hover { color: #dffbf4; background: rgba(47, 195, 158, .12); }
.voice-user-volume button.active { color: #ff758c; background: rgba(170, 45, 68, .18); }
.voice-user-volume input { width: 78px; min-width: 44px; height: 12px; margin: 0; accent-color: #39d8b1; }
.voice-user-volume b { min-width: 28px; color: #78928f; font-size: 7px; text-align: right; }

.voice-dock:not(.collapsed) .voice-actions {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 5px !important;
}

.voice-actions #voice-deafen.active,
.voice-actions #voice-ptt.active {
  color: #44dfb7;
  border-color: rgba(68, 223, 183, .5);
  background: rgba(29, 104, 88, .28);
}

.ptt-settings { display: grid; gap: 12px; }
.ptt-toggle,
.ptt-key-capture {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px;
  color: #e7f3f1;
  text-align: left;
  background: #13242c;
  border: 1px solid #2d4650;
  border-radius: 12px;
}
.ptt-toggle > span { display: grid; gap: 3px; }
.ptt-toggle small,
.ptt-key-capture small { color: #789099; font-size: 9px; }
.ptt-toggle input { width: 18px; height: 18px; accent-color: #35d7ad; }
.ptt-key-capture { display: grid; width: 100%; }
.ptt-key-capture strong { color: #43dfb6; font-size: 17px; }
.ptt-key-capture.listening { border-color: #43dfb6; box-shadow: 0 0 16px rgba(67, 223, 182, .14); }

@media (max-width: 680px) {
  .voice-dock:not(.collapsed) .voice-actions { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .voice-user-volume input { width: 62px; }
}

@media (max-width: 680px) {
  .voice-dock:not(.collapsed) .voice-actions {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 3px !important;
    padding: 6px !important;
  }

  .voice-dock:not(.collapsed) .voice-actions button {
    min-width: 0 !important;
    min-height: 42px !important;
    padding: 5px 1px !important;
  }

  .voice-dock:not(.collapsed) .voice-actions button span {
    font-size: 5.5px !important;
  }

}

.voice-dock.collapsed .voice-head-manage,
.voice-dock.collapsed .voice-head-output,
.voice-dock.collapsed .voice-head-leave,
.voice-dock.collapsed #voice-collapse,
.voice-dock.collapsed .voice-dock-head > div {
  display: none !important;
}

.voice-head-output {
  color: #7edfc8 !important;
  border-color: rgba(74, 205, 175, .28) !important;
  background: rgba(31, 112, 96, .12) !important;
}

.voice-head-output:hover {
  transform: none !important;
  box-shadow: 0 0 9px rgba(61, 219, 180, .14) !important;
}

#voice-camera-switch .ui-icon { width: 13px; height: 13px; }

@media (max-width: 680px) {
  .voice-dock.has-cameras:not(.collapsed) {
    width: var(--voice-dock-width) !important;
    height: var(--voice-dock-height) !important;
    min-width: min(260px, calc(100vw - 16px)) !important;
    min-height: 220px !important;
    max-width: calc(100vw - 12px) !important;
    max-height: calc(100dvh - 16px) !important;
  }

  .voice-dock:not(.collapsed) .voice-resize-handle {
    right: 3px !important;
    bottom: 57px !important;
    width: 24px !important;
    height: 24px !important;
  }
}

.floating-dm-messages .message-row,
.floating-dm-messages .message-row.own {
  display: flex !important;
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
  flex-direction: row !important;
  border: 0 !important;
  box-sizing: border-box !important;
}

.floating-dm-messages .message-row:not(.own) {
  justify-content: flex-start !important;
}

.floating-dm-messages .message-row.own {
  justify-content: flex-end !important;
}

.floating-dm-messages .message-content {
  width: auto !important;
  max-width: 84% !important;
  flex: 0 1 auto !important;
}

.view-once-choice {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 12px;
  padding: 11px 12px;
  color: #eef6fa;
  background: #172430;
  border: 1px solid #344957;
  border-radius: 7px;
  cursor: pointer;
  user-select: none;
}

.view-once-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.view-once-box {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border: 1px solid #758792;
  border-radius: 4px;
  background: #22313d;
}

.view-once-box .ui-icon {
  width: 14px;
  opacity: 0;
}

.view-once-choice input:checked + .view-once-box {
  color: #06271f;
  border-color: #28d3ad;
  background: #28d3ad;
}

.view-once-choice input:checked + .view-once-box .ui-icon { opacity: 1; }

.view-once-choice > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.view-once-choice strong { font-size: 13px; }
.view-once-choice small { color: #8799a5; font-size: 11px; }

.view-once-media {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-width: 190px;
  padding: 10px;
  color: #e9f5f7;
  text-align: left;
  background: rgba(12, 29, 38, 0.72);
  border: 1px solid rgba(69, 213, 183, 0.34);
  border-radius: 9px;
}

button.view-once-media { cursor: pointer; }
button.view-once-media:hover { border-color: #2fd5b0; background: rgba(23, 65, 64, 0.78); }
button.view-once-media:disabled { opacity: .58; cursor: wait; }

.view-once-media > span:first-child {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  color: #37dfba;
  border-radius: 50%;
  background: rgba(39, 211, 173, 0.12);
}

.view-once-media > span:last-child { display: grid; gap: 2px; }
.view-once-media strong { font-size: 12px; }
.view-once-media small { color: #8ba0aa; font-size: 10px; }
.view-once-player video { display: block; width: 100%; max-height: 70vh; border-radius: 10px; background: #000; }

@media (max-width: 680px) {
  .view-once-media { min-width: 160px; }
}

.voice-screen-volume {
  position: absolute;
  z-index: 10;
  right: 10px;
  bottom: 54px;
  display: none;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 4px 7px;
  color: #eefbf7;
  background: rgba(5, 10, 14, 0.9);
  border: 1px solid rgba(80, 225, 187, 0.32);
  border-radius: 11px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
}

.voice-user.has-live-screen.is-focused .voice-screen-volume { display: flex; }

.voice-screen-volume button {
  display: grid;
  place-items: center;
  width: 27px;
  min-width: 27px;
  height: 27px;
  padding: 0;
  color: #37dfba;
  background: #111d24;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
}

.voice-screen-volume button.muted { color: #ff607b; }
.voice-screen-volume button .ui-icon { width: 15px; height: 15px; }
.voice-screen-volume input { width: clamp(78px, 12vw, 140px); accent-color: #31dab0; }
.voice-screen-volume-value { min-width: 38px; color: #9fb7b0; font-size: 9px; font-weight: 800; text-align: right; }

@media (max-width: 680px) {
  .voice-screen-volume { right: 7px; bottom: 49px; }
  .voice-screen-volume input { width: 82px; }
}

/* Yayın açıldığında videosu olmayan katılımcıların araçları yer değiştirmesin. */
.voice-dock.has-cameras:not(.collapsed) .voice-user:not(.has-live-video) {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) 112px !important;
  align-items: center !important;
  align-content: center !important;
  column-gap: 9px !important;
  min-height: 76px !important;
  padding: 7px !important;
}

.voice-dock.has-cameras:not(.collapsed) .voice-user:not(.has-live-video) .voice-user-media {
  grid-column: 1 !important;
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  aspect-ratio: 1 !important;
  margin: 0 !important;
}

.voice-dock.has-cameras:not(.collapsed) .voice-user:not(.has-live-video) .voice-user-media > .avatar {
  width: 42px !important;
  height: 42px !important;
  margin: 0 !important;
}

.voice-dock.has-cameras:not(.collapsed) .voice-user:not(.has-live-video) .voice-user-copy {
  grid-column: 2 !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.voice-dock.has-cameras:not(.collapsed) .voice-user:not(.has-live-video) .voice-user-permissions {
  grid-column: 3 !important;
  justify-self: end !important;
  align-self: center !important;
  margin: 0 !important;
}

@media (max-width: 680px) {
  .voice-dock.has-cameras:not(.collapsed) .voice-user:not(.has-live-video) {
    grid-template-columns: 38px minmax(0, 1fr) 108px !important;
    column-gap: 6px !important;
    padding: 6px !important;
  }

  .voice-dock.has-cameras:not(.collapsed) .voice-user:not(.has-live-video) .voice-user-media,
  .voice-dock.has-cameras:not(.collapsed) .voice-user:not(.has-live-video) .voice-user-media > .avatar {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
  }
}
/* Canlı ses daveti */
.voice-invite-card {
  width: min(320px, calc(100vw - 118px));
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--role-color, #27d4b2) 36%, #294452);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(17, 38, 48, .98), rgba(13, 27, 36, .98));
  box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 8px 22px rgba(0, 0, 0, .16);
}

.voice-invite-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 7px;
  color: #65e8ce;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.voice-invite-kicker > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2de0b7;
  box-shadow: 0 0 9px rgba(45, 224, 183, .75);
}

.voice-invite-join {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 52px;
  padding: 6px 9px;
  border: 1px solid #31576a;
  border-radius: 9px;
  color: #eaf9ff;
  background: linear-gradient(135deg, rgba(36, 67, 83, .96), rgba(24, 48, 64, .96));
  text-align: left;
  transition: border-color .16s ease, box-shadow .16s ease, filter .16s ease;
}

.voice-invite-join:hover {
  border-color: #39dabb;
  box-shadow: 0 0 16px rgba(45, 218, 184, .18);
  filter: brightness(1.07);
}

.voice-invite-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #071d22;
  background: linear-gradient(145deg, #51e8cf, #22bca4);
}

.voice-invite-icon .ui-icon { width: 19px; height: 19px; }
.voice-invite-copy { min-width: 0; display: grid; gap: 2px; }
.voice-invite-copy strong { font-size: 14px; line-height: 1.15; }
.voice-invite-copy small { overflow: hidden; color: #9db7c2; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.voice-invite-note { display: block; margin: 7px 2px 0; color: #829ba6; font-size: 10px; }
.voice-invite-bars { display: flex; align-items: end; gap: 2px; height: 19px; color: #65cbff; }
.voice-invite-bars i { width: 3px; border-radius: 3px; background: currentColor; animation: voice-invite-bars 1.05s ease-in-out infinite alternate; }
.voice-invite-bars i:nth-child(1) { height: 7px; }
.voice-invite-bars i:nth-child(2) { height: 13px; animation-delay: -.25s; }
.voice-invite-bars i:nth-child(3) { height: 18px; animation-delay: -.5s; }
.voice-invite-bars i:nth-child(4) { height: 10px; animation-delay: -.75s; }

@keyframes voice-invite-bars { to { height: 5px; opacity: .55; } }

@media (max-width: 640px) {
  .voice-invite-card { width: min(286px, calc(100vw - 78px)); }
}
/* Mikrofon / kamera isteği: 30 saniyelik sarı uyarı */
.voice-dock .voice-user.permission-requested {
  animation: voice-permission-request-pulse 1s ease-in-out 30;
}

@keyframes voice-permission-request-pulse {
  0%, 100% {
    border-color: rgba(246, 196, 74, .42);
    box-shadow: 0 0 0 0 rgba(246, 196, 74, 0);
  }
  50% {
    border-color: #ffd65d;
    box-shadow: 0 0 0 2px rgba(255, 214, 93, .28), 0 0 18px rgba(255, 193, 55, .42);
  }
}
/* Profil kadın / erkek simgesi hizası */
.profile-facts .gender-fact > .gender-person-icon {
  display: inline-grid;
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  padding: 0;
  margin: 0;
  place-items: center;
  line-height: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.profile-facts .gender-fact > .gender-person-icon .ui-icon {
  display: block;
  margin: 0;
}
/* Kullanıcı kartında profil fotoğrafı ile bilgiler arasındaki nefes payı */
.member-list .member-profile-trigger {
  column-gap: 12px;
}
/* Cihaza uyarlanan hızlı arayüz eğitimi */
.interface-tour {
  position: fixed;
  inset: 0;
  z-index: 50000;
  pointer-events: none;
}

.interface-tour-shade {
  position: fixed;
  z-index: 1;
  display: block;
  pointer-events: auto;
  background: rgba(1, 7, 11, .88);
  backdrop-filter: blur(1px);
}

.interface-tour-ring {
  position: fixed;
  z-index: 2;
  display: block;
  border: 2px solid var(--tour-accent, #44e0bb);
  border-radius: 12px;
  pointer-events: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tour-accent, #44e0bb) 18%, transparent), 0 0 24px color-mix(in srgb, var(--tour-accent, #44e0bb) 40%, transparent);
  animation: interface-tour-ring 1.25s ease-in-out infinite alternate;
}

.interface-tour-card {
  position: fixed;
  z-index: 3;
  width: min(350px, calc(100vw - 20px));
  padding: 16px;
  pointer-events: auto;
  color: #edf8f7;
  overflow: hidden;
  background: radial-gradient(circle at 92% 4%, color-mix(in srgb, var(--tour-accent, #42dfb5) 15%, transparent), transparent 34%), linear-gradient(145deg, #172832, #101d25);
  border: 1px solid color-mix(in srgb, var(--tour-accent, #42dfb5) 45%, #253943);
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .48);
  animation: interface-tour-card-in .2s ease-out;
}

.interface-tour-head { display: flex; align-items: center; gap: 10px; }
.interface-tour-head > span {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #081b1b;
  font-size: 17px;
  font-weight: 950;
  background: var(--tour-accent, #42dfb5);
  border-radius: 11px;
  box-shadow: 0 0 18px color-mix(in srgb, var(--tour-accent, #42dfb5) 32%, transparent);
}
.interface-tour-head > i { display: grid; gap: 2px; font-style: normal; }
.interface-tour-head small { color: var(--tour-accent, #42dfb5); font-size: 8px; font-weight: 900; letter-spacing: .09em; }
.interface-tour-head b { color: #8299a2; font-size: 9px; }
.interface-tour-progress { height: 3px; margin: 11px 0 13px; overflow: hidden; background: #263943; border-radius: 99px; }
.interface-tour-progress > i { display: block; height: 100%; background: var(--tour-accent, #42dfb5); border-radius: inherit; box-shadow: 0 0 10px var(--tour-accent, #42dfb5); transition: width .2s ease; }
.interface-tour-card > strong { display: block; font-size: 17px; }
.interface-tour-card > p { margin: 7px 0 15px; color: #a9bdc4; font-size: 11px; line-height: 1.55; }
.interface-tour-actions,
.interface-tour-actions > span { display: flex; align-items: center; gap: 7px; }
.interface-tour-actions { justify-content: space-between; }
.interface-tour-card button {
  min-height: 34px;
  padding: 0 12px;
  color: #c7d7dc;
  background: #20313b;
  border: 1px solid #344a56;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
}
.interface-tour-card button:hover { border-color: var(--tour-accent, #4bd9b7); box-shadow: 0 0 12px color-mix(in srgb, var(--tour-accent, #4bd9b7) 18%, transparent); }
.interface-tour-card button:disabled { opacity: .38; }
.interface-tour-card [data-tour-disable] { padding: 0; color: #8fa3aa; background: transparent; border-color: transparent; }
.interface-tour-card [data-tour-next] { color: #071817; background: var(--tour-accent, #42d8b4); border-color: var(--tour-accent, #42d8b4); }

@keyframes interface-tour-ring {
  to { filter: brightness(1.3); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tour-accent, #44e0bb) 22%, transparent), 0 0 30px color-mix(in srgb, var(--tour-accent, #44e0bb) 54%, transparent); }
}

@keyframes interface-tour-card-in { from { opacity: 0; transform: scale(.98); } }

@media (max-width: 640px) {
  .interface-tour-card { padding: 14px; }
  .interface-tour-card > strong { font-size: 15px; }
  .interface-tour-card > p { margin-bottom: 12px; font-size: 10px; }
}
/* Hediye gönder: hover sırasında kart yerinden oynamaz */
.gift-recipient-card:hover,
.gift-recipient-card:focus-visible,
.market-gift-button:hover:not(:disabled),
.market-gift-button:focus-visible:not(:disabled) {
  transform: none !important;
}

.gift-recipient-card:hover,
.gift-recipient-card:focus-visible {
  filter: brightness(1.06);
  box-shadow: 0 0 16px rgba(47, 221, 165, .17);
}

.market-gift-button:hover:not(:disabled),
.market-gift-button:focus-visible:not(:disabled) {
  box-shadow: 0 0 16px rgba(255, 83, 122, .17);
}

/* Kurulabilir uygulama önerisi */
.auth-brand .brand-word,
.auth-mobile-brand .brand-word {
  color: #fff !important;
  opacity: 1 !important;
}

.install-app-banner {
  position: fixed;
  z-index: 48000;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 30px;
  align-items: center;
  gap: 10px;
  width: min(430px, calc(100vw - 36px));
  padding: 10px;
  color: #e9fbf7;
  background: rgba(13, 28, 35, .98);
  border: 1px solid rgba(65, 221, 183, .35);
  border-radius: 15px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .42), 0 0 22px rgba(45, 218, 173, .08);
  backdrop-filter: blur(18px);
}

.install-app-banner.hidden { display: none !important; }
.install-app-logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #05201a;
  background: linear-gradient(145deg, #54e5c1, #16bda0);
  border-radius: 12px;
  font-size: 19px;
  font-weight: 950;
}
.install-app-banner > div { display: grid; min-width: 0; gap: 2px; }
.install-app-banner strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.install-app-banner small { color: #8fa6ad; font-size: 9px; }
.install-app-banner button { border: 0; cursor: pointer; }
.install-app-banner [data-install-app] {
  min-height: 34px;
  padding: 0 15px;
  color: #06201a;
  background: #38d8b3;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 950;
}
.install-app-banner [data-install-app]:hover,
.install-app-banner [data-install-app]:focus-visible {
  transform: none;
  filter: brightness(1.08);
  box-shadow: 0 0 16px rgba(56, 216, 179, .23);
}
.install-app-banner [data-install-dismiss] {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  color: #8fa6ad;
  background: transparent;
  border-radius: 8px;
}
.install-app-banner [data-install-dismiss]:hover { color: #fff; background: rgba(255,255,255,.06); }
.install-app-banner [data-install-dismiss] .ui-icon { width: 14px; height: 14px; }

.install-help {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px 12px;
  padding: 4px 0;
}
.install-help > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #06201a;
  background: #3cdbb6;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
}
.install-help p { margin: 0; color: #b8c8cd; font-size: 11px; line-height: 1.45; }

@media (max-width: 640px) {
  .install-app-banner {
    right: 8px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    grid-template-columns: 38px minmax(0, 1fr) auto 30px;
    gap: 8px;
    width: calc(100vw - 16px);
    padding: 9px;
    border-radius: 13px;
  }
  .install-app-logo { width: 38px; height: 38px; border-radius: 10px; }
  .install-app-banner [data-install-app] { min-height: 36px; padding-inline: 13px; }
}

/* Compact screen-share tools stay reachable without forcing camera focus. */
.voice-screen-controls-toggle {
  position: absolute;
  z-index: 14;
  right: 8px;
  bottom: 8px;
  display: none;
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  color: #dffbf3;
  background: rgba(6, 17, 21, 0.9);
  border: 1px solid rgba(80, 225, 187, 0.38);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
}
.voice-screen-controls-toggle .ui-icon { width: 16px; height: 16px; }
.voice-user.has-live-screen .voice-screen-controls-toggle { display: grid; place-items: center; }
.voice-user.has-live-screen.screen-controls-open .voice-screen-controls-toggle { color: #061914; background: #35ddb5; }

.voice-screen-controls {
  position: absolute;
  z-index: 13;
  right: 8px;
  bottom: 47px;
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  max-width: calc(100% - 16px);
  padding: 5px;
  background: rgba(5, 10, 14, 0.92);
  border: 1px solid rgba(80, 225, 187, 0.3);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
}
.voice-user.has-live-screen.screen-controls-open .voice-screen-controls { display: flex; }
.voice-screen-controls .voice-screen-zoom,
.voice-screen-controls .voice-screen-volume {
  position: static;
  display: flex;
  min-height: 30px;
  padding: 2px 4px;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.voice-screen-controls .voice-screen-zoom input,
.voice-screen-controls .voice-screen-volume input { width: clamp(64px, 9vw, 108px); }
.voice-screen-fullscreen {
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  color: #dffbf3;
  background: #111d24;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 8px;
  font-size: 17px;
}

.call-screen-fullscreen {
  position: absolute;
  z-index: 8;
  right: 18px;
  top: 82px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 11px;
  color: #eafff8;
  background: rgba(6, 17, 21, 0.88);
  border: 1px solid rgba(80, 225, 187, 0.4);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0,0,0,.45);
  backdrop-filter: blur(10px);
}
.call-screen-fullscreen.hidden { display: none; }

@media (max-width: 680px) {
  .voice-screen-controls { right: 6px; bottom: 44px; gap: 3px; max-width: calc(100% - 12px); }
  .voice-screen-controls .voice-screen-zoom input,
  .voice-screen-controls .voice-screen-volume input { width: 58px; }
  .voice-screen-controls .voice-screen-zoom-value,
  .voice-screen-controls .voice-screen-volume-value { display: none; }
  .voice-screen-controls-toggle { right: 6px; bottom: 6px; }
  .call-screen-fullscreen { top: 66px; right: 10px; }
  .call-screen-fullscreen span { display: none; }
}

/* Focused broadcast always consumes the available frame without pushing controls below it. */
.voice-dock.has-cameras:not(.collapsed) .voice-users.camera-focus-mode {
  display: flex !important;
  min-height: 0 !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  align-items: stretch !important;
  align-content: stretch !important;
  overflow-y: auto !important;
}
.voice-dock.has-cameras:not(.collapsed) .voice-users.camera-focus-mode > .voice-user {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  align-self: stretch !important;
}
.voice-dock.has-cameras:not(.collapsed) .voice-users.camera-focus-mode .voice-user.is-focused {
  display: grid !important;
  min-height: 160px !important;
  flex: 1 1 160px !important;
  grid-template-rows: minmax(0, 1fr) auto auto !important;
  grid-column: auto !important;
}
.voice-dock.has-cameras:not(.collapsed) .voice-users.camera-focus-mode .voice-user.is-focused .voice-user-media {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
}
.voice-dock.has-cameras:not(.collapsed) .voice-users.camera-focus-mode .voice-user.is-focused .voice-user-media > video {
  width: 100% !important;
  height: 100% !important;
  object-fit: fill !important;
}
.voice-dock.has-cameras:not(.collapsed) .voice-users.camera-focus-mode .voice-user:not(.is-focused) {
  min-height: 62px !important;
  max-height: 78px !important;
  flex: 0 0 auto !important;
}

/* Private-call shares open as centered, movable and resizable windows. */
.call-screen-window {
  position: absolute;
  z-index: 5;
  top: 48%;
  left: 50%;
  display: grid;
  width: min(74vw, 1120px);
  min-width: min(280px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  height: min(66vh, 700px);
  min-height: 190px;
  max-height: calc(100vh - 170px);
  grid-template-rows: 34px minmax(0, 1fr);
  overflow: hidden;
  background: #020609;
  border: 1px solid rgba(48, 226, 181, .72);
  border-radius: 15px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .62), 0 0 0 1px rgba(48, 226, 181, .08);
  transform: translate(-50%, -50%);
}
.call-screen-window.hidden { display: none !important; }
.call-screen-window-local { z-index: 5; }
.call-screen-window-remote { z-index: 4; }
.call-screen-window-head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px 0 11px;
  color: #dffbf3;
  font-size: 9px;
  font-weight: 850;
  background: rgba(8, 24, 29, .98);
  border-bottom: 1px solid rgba(48, 226, 181, .25);
  cursor: move;
  user-select: none;
  touch-action: none;
}
.call-screen-window-head button {
  width: 26px;
  min-width: 26px;
  height: 26px;
  padding: 0;
  color: #baf8e9;
  background: #12242b;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 7px;
}
.call-screen-window > video {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: contain !important;
  background: #020609 !important;
}
.call-screen-window-resize {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  width: 28px;
  height: 28px;
  cursor: nwse-resize;
  touch-action: none;
}
.call-screen-window-resize::after {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 10px;
  height: 10px;
  content: "";
  border-right: 2px solid #39dab2;
  border-bottom: 2px solid #39dab2;
}
.call-screen-window.is-dragging,
.call-screen-window.is-resizing { transition: none !important; }
.call-overlay.local-screen-sharing.remote-screen-sharing .call-screen-window-remote {
  left: 26%;
  width: min(46vw, 820px);
  height: min(56vh, 620px);
}
.call-overlay.local-screen-sharing.remote-screen-sharing .call-screen-window-local {
  left: 74%;
  width: min(46vw, 820px);
  height: min(56vh, 620px);
}

@media (max-width: 680px) {
  .call-screen-window {
    top: 46%;
    width: calc(100vw - 20px);
    min-width: 220px;
    height: min(58vh, 520px);
    max-height: calc(100dvh - 168px);
    border-radius: 12px;
  }
  .call-overlay.local-screen-sharing.remote-screen-sharing .call-screen-window-remote {
    top: 31%;
    left: 50%;
    width: calc(100vw - 20px);
    height: 31vh;
  }
  .call-overlay.local-screen-sharing.remote-screen-sharing .call-screen-window-local {
    top: 65%;
    left: 50%;
    width: calc(100vw - 20px);
    height: 31vh;
  }
}

/* Discord tarzı kişisel görüntü ve isteğe bağlı yayın kontrolleri. */
.voice-user-volume { width: min(178px, 100%); }
.voice-user-volume input { min-width: 34px; flex: 1 1 68px; }
.voice-user-volume .local-camera.active { color: #ff758c; background: rgba(170, 45, 68, .18); }
.voice-user-volume .local-camera.unavailable:not(.active) { color: #657d82; opacity: .6; }
.voice-user.camera-hidden-locally .voice-camera-badge { display: none !important; }

.voice-screen-entry {
  display: none;
  width: min(310px, 100%);
  min-height: 42px;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  margin-top: 6px;
  color: #eaf7f5;
  text-align: left;
  background: linear-gradient(110deg, rgba(112, 24, 43, .34), rgba(18, 43, 50, .9));
  border: 1px solid rgba(255, 84, 111, .44);
  border-radius: 10px;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .2);
}
.voice-user.has-screen-broadcast .voice-screen-entry { display: grid; }
.voice-screen-entry:hover { border-color: rgba(255, 102, 126, .76); background: linear-gradient(110deg, rgba(139, 29, 51, .45), rgba(21, 51, 58, .96)); }
.voice-screen-entry > i {
  width: 7px;
  height: 7px;
  background: #ff405f;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 64, 95, .52);
  animation: voice-live-dot 1.15s ease-out infinite;
}
.voice-screen-entry > span { display: grid; min-width: 0; gap: 2px; }
.voice-screen-entry b { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.voice-screen-entry small { color: #8ea6ab; font-size: 7px; }
.voice-screen-entry em {
  padding: 5px 7px;
  color: #071d18;
  font-size: 7px;
  font-style: normal;
  font-weight: 900;
  background: #43ddb5;
  border-radius: 7px;
  white-space: nowrap;
}
.voice-user.screen-share-joined .voice-screen-entry { border-color: rgba(67, 221, 181, .48); background: rgba(15, 48, 46, .82); }
.voice-user.screen-share-joined .voice-screen-entry em { color: #ffdce3; background: rgba(171, 42, 67, .76); }
.voice-user.screen-share-loading .voice-screen-entry > i { background: #f7bf59; }

@keyframes voice-live-dot {
  70% { box-shadow: 0 0 0 7px rgba(255, 64, 95, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 64, 95, 0); }
}

/* Mesaj alanındaki canlı ses daveti, odadaki gerçek kişi sayısını gösterir. */
.composer-room-actions { position: relative; }
.composer-room-actions [data-action="join-voice"] {
  position: relative;
  overflow: visible;
}
.composer-voice-count {
  position: absolute;
  z-index: 3;
  top: -7px;
  right: -7px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 4px;
  color: #b9c9ce;
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  background: #30434d;
  border: 2px solid #101d25;
  border-radius: 999px;
  box-sizing: border-box;
  pointer-events: none;
}
.composer-room-actions [data-action="join-voice"].has-voice-users .composer-voice-count {
  color: #fff;
  background: #ff405f;
  box-shadow: 0 0 0 3px rgba(255, 64, 95, .14);
}
.composer-voice-invite {
  position: absolute;
  z-index: 25;
  right: 0;
  bottom: calc(100% + 10px);
  display: flex;
  width: max-content;
  max-width: min(250px, calc(100vw - 28px));
  min-height: 35px;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  color: #3076c9;
  background: #f5f9ff;
  border: 2px solid #7fa9dc;
  border-radius: 9px;
  box-shadow: 0 7px 20px rgba(0, 0, 0, .35), 0 0 0 3px rgba(84, 140, 205, .14);
}
.composer-voice-invite::after {
  position: absolute;
  right: 17px;
  bottom: -7px;
  width: 11px;
  height: 11px;
  content: "";
  background: #f5f9ff;
  border-right: 2px solid #7fa9dc;
  border-bottom: 2px solid #7fa9dc;
  transform: rotate(45deg);
}
.composer-voice-invite > i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: #ff405f;
  border-radius: 50%;
  animation: voice-live-dot 1.15s ease-out infinite;
}
.composer-voice-invite strong { overflow: hidden; font-size: 10px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.composer-voice-invite.is-pulsing {
  animation:
    composer-voice-invite-pulse .7s ease-in-out 6 alternate,
    composer-voice-invite-autohide 10s linear forwards;
}
@keyframes composer-voice-invite-pulse { to { filter: brightness(1.08); transform: translateY(-3px) scale(1.025); } }
@keyframes composer-voice-invite-autohide {
  0%, 92% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

/* Kullanıcı listesi cinsiyet filtresi. */
.member-search { position: relative; }
.member-gender-filter-toggle {
  display: grid;
  width: 32px;
  min-width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  color: #a7bbc2;
  background: #1b2a32;
  border: 1px solid #344953;
  border-radius: 9px;
}
.member-gender-filter-toggle:hover,
.member-gender-filter-toggle.active,
.member-gender-filter-toggle[aria-expanded="true"] { color: #52e2bd; background: rgba(38, 119, 101, .28); border-color: rgba(72, 220, 181, .58); }
.member-gender-filter-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 5px);
  right: 8px;
  display: grid;
  width: min(184px, calc(100vw - 34px));
  overflow: hidden;
  padding: 6px;
  color: #dfe9eb;
  background: rgba(17, 28, 35, .98);
  border: 1px solid #334852;
  border-radius: 11px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .48);
}
.member-gender-filter-menu.hidden { display: none; }
.member-gender-filter-menu > strong { padding: 6px 8px 7px; color: #82979e; font-size: 8px; }
.member-gender-filter-menu > button {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  padding: 6px 9px;
  color: #b5c4c8;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
}
.member-gender-filter-menu > button:hover,
.member-gender-filter-menu > button.active { color: #effffc; background: #263640; }
.member-gender-filter-menu > button i { width: 7px; height: 7px; background: transparent; border-radius: 50%; }
.member-gender-filter-menu > button.active i { background: #43ddb5; box-shadow: 0 0 0 3px rgba(67, 221, 181, .13); }

@media (max-width: 680px) {
  .voice-user-volume { width: min(158px, 100%); }
  .voice-screen-entry { min-height: 39px; padding: 5px 6px; gap: 6px; }
  .voice-screen-entry em { padding-inline: 6px; }
  .composer-voice-invite { right: -3px; max-width: min(230px, calc(100vw - 18px)); }
  .member-gender-filter-menu { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .voice-screen-entry > i,
  .composer-voice-invite,
  .composer-voice-invite > i { animation: none !important; }
}
