/* v2 k?pr?: eski UI ayn? kals?n, Next i?in ufak d?zeltmeler */
html, body {
  height: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.google-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: 25px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  margin-left: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.google-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  background: #f8f9fa;
}

.google-login-btn .google-g {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex-shrink: 0;
}

.google-login-btn .google-login-label {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}

.google-login-btn .google-login-letter {
  line-height: 1;
}

.google-login-btn .google-login-space {
  width: 0.28em;
  display: inline-block;
}

.auth-note {
  margin-top: 12px;
  padding: 10px 12px;
  background: #f8f9fa;
  border-radius: 10px;
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

.about-contact-modal {
  max-width: min(440px, calc(100vw - 24px));
  width: 100%;
}

.about-contact-body {
  padding: 0 20px 22px;
}

.about-contact-logo {
  text-align: center;
  margin-bottom: 12px;
}

.about-contact-logo img {
  border-radius: 16px;
}

.about-contact-intro {
  margin-top: 0;
  text-align: center;
}

.about-contact-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-contact-row {
  display: grid;
  grid-template-columns: minmax(108px, 132px) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.about-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.about-contact-btn i {
  font-size: 15px;
  line-height: 1;
}

.about-contact-btn:hover {
  color: #fff;
  filter: brightness(1.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.about-contact-btn--telegram {
  background: #229ed9;
}

.about-contact-btn--instagram {
  background: linear-gradient(45deg, #f58529, #dd2a7b 45%, #8134af 75%, #515bd4);
}

.about-contact-btn--snapchat {
  background: #fffc00;
  color: #111;
}

.about-contact-btn--snapchat:hover {
  color: #111;
}

.about-contact-btn--google {
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
}

.about-contact-btn--google:hover {
  color: #3c4043;
  background: #f8f9fa;
}

.about-contact-btn--google i {
  background: linear-gradient(120deg, #4285f4 20%, #ea4335 40%, #fbbc05 65%, #34a853);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.about-contact-btn--facebook {
  background: #1877f2;
}

.about-contact-btn--x {
  background: #111;
}

.about-contact-btn--whatsapp {
  background: #25d366;
}

.about-contact-btn--privacy {
  background: #0f766e;
}

.about-contact-btn--dm {
  background: #4f46e5;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.about-contact-url {
  display: block;
  min-width: 0;
  font-size: 11px;
  line-height: 1.35;
  color: #4b5563;
  word-break: break-all;
  user-select: text;
  -webkit-user-select: text;
}

.about-contact-note {
  color: #374151;
  font-weight: 500;
  word-break: normal;
}

.privacy-page {
  max-width: 800px;
  padding: 32px 20px 48px;
}

.privacy-page-title {
  margin: 0 0 8px;
  font-size: 1.75rem;
}

.privacy-page-updated {
  margin: 0 0 20px;
  opacity: 0.75;
}

.privacy-page-callout {
  margin: 0 0 28px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #064e3b;
  font-size: 14px;
  line-height: 1.5;
}

.privacy-section {
  margin-bottom: 26px;
}

.privacy-section h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  line-height: 1.35;
}

.privacy-section p {
  margin: 0 0 10px;
  line-height: 1.6;
  color: #1f2937;
}

.privacy-section ul {
  margin: 8px 0 0;
  padding-left: 1.2rem;
}

.privacy-section li {
  margin-bottom: 8px;
  line-height: 1.55;
  color: #1f2937;
}

.privacy-back-btn {
  display: inline-block;
  margin-top: 8px;
}

@media (max-width: 420px) {
  .about-contact-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .about-contact-btn {
    width: 100%;
  }
}

.player-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.95rem;
  text-align: center;
  padding: 16px;
}

.v2-player-wrap {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  position: relative;
}

.v2-player-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 180px;
  background: #000;
}

/* Web: canlı yayın da şarkı kutusunun 16:9 yüksekliğini kullanır (mobil zaten container ile alıyor). */
#web-player-slot .v2-player-wrap,
#web-player-slot .player-placeholder {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  min-height: 180px;
  height: auto !important;
  overflow: hidden;
  background: #000;
}

#web-player-slot .v2-player-wrap.live-mode #youtube-player,
#web-player-slot .v2-player-wrap.live-mode iframe {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
}

.v2-player-wrap iframe,
.v2-player-wrap #youtube-player {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.v2-now-playing {
  display: none !important; /* Eski sitede alt bar yok ? overlay kullan?l?yor */
}

.v2-player-wrap {
  position: relative;
}

/* Web ?alan ?ark? overlay ? player i?inde sol ?st (eski #web-player-overlay) */
#web-player-slot .v2-player-wrap #web-player-overlay,
#web-player-slot .player-placeholder #web-player-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
}

#web-player-slot .v2-player-wrap .v2-player-media,
#web-player-slot .v2-player-wrap iframe,
#web-player-slot .v2-player-wrap #youtube-player {
  position: relative;
  z-index: 1;
}

#web-player-slot .web-overlay-song-info {
  pointer-events: auto;
}

.web-view #web-player-overlay.web-only {
  display: block !important;
}

.v2-queue-empty {
  padding: 10px;
  font-size: 13px;
  color: #888;
}

.v2-queue-item {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.v2-queue-item img {
  width: 48px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  background: #222;
}

.v2-queue-pos {
  width: 18px;
  font-size: 12px;
  color: #888;
  flex-shrink: 0;
}

.v2-queue-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.v2-queue-by {
  font-size: 11px;
  color: #888;
}

/* Otomatik ?alma listesi ? eski site sat?r g?r?n?m? */
.v2-auto-playlist-list {
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fafafa;
}

.v2-playlist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid #f1f1f1;
  background: #fff;
}

.v2-playlist-item:last-child {
  border-bottom: none;
}

.v2-playlist-item:hover {
  background: #f8f9fa;
}

.v2-playlist-pos {
  width: 28px;
  height: 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #5b6ee1, #3d4db8);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v2-playlist-thumb {
  width: 54px;
  height: 40px;
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
  background: #eee;
  cursor: pointer;
}

.v2-playlist-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.v2-playlist-details {
  flex: 1;
  min-width: 0;
}

.v2-playlist-title {
  font-size: 13px;
  font-weight: 600;
  color: #222;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-playlist-meta {
  margin-top: 3px;
  font-size: 11px;
  color: #666;
  display: flex;
  gap: 6px;
  align-items: center;
}

.v2-playlist-del {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: #fde8e8;
  color: #c0392b;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.v2-playlist-del:hover {
  background: #f5c6c6;
}

.chat-message.v2-msg {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.chat-message.v2-msg img.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-message.v2-msg .msg-body {
  flex: 1;
  min-width: 0;
}

.chat-message.v2-msg .msg-user {
  font-weight: 700;
  font-size: 0.85rem;
  color: #000;
  margin-right: 6px;
}

.chat-message.v2-msg .msg-time {
  font-size: 0.7rem;
  color: #999;
}

.chat-message.v2-msg .msg-text {
  font-size: 0.9rem;
  word-break: break-word;
}

.chat-system-line {
  text-align: left;
  color: #888;
  font-size: 0.8rem;
  font-style: italic;
  padding: 5px 8px;
  overflow: hidden;
  max-height: 6rem;
  transform: translateY(0);
  transition: opacity 0.38s ease, max-height 0.38s ease, margin 0.38s ease,
    padding 0.38s ease, transform 0.38s ease;
}
.chat-system-line.is-ephemeral {
  max-height: 4rem;
}
.chat-system-line.is-fading {
  opacity: 0;
  max-height: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

/* Canl? yay?n */
.live-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  left: auto;
  z-index: 3;
  background: #e74c3c;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 4px;
}
.live-mode .v2-player-media {
  min-height: 180px;
}
.live-renew-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.live-renew-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: live-renew-spin 0.8s linear infinite;
}
@keyframes live-renew-spin {
  to { transform: rotate(360deg); }
}
.v2-player-wrap,
.player-placeholder {
  position: relative;
}
.live-active {
  outline: 2px solid #e74c3c;
}

/* DM paneli */
.dm-bell-btn {
  position: relative;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 18px;
  padding: 6px 8px;
  margin-right: 4px;
}
.dm-bell-btn--header {
  margin-right: 0;
  padding: 0;
}
.dm-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #e74c3c;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.dm-badge.inline {
  position: static;
  margin-left: 6px;
}
.dm-overlay {
  position: fixed;
  inset: 0;
  z-index: 200000;
  background: rgba(0, 0, 0, 0.35);
}
/* Desktop: sağ kenara gömülü tam yükseklik drawer (header altından alta) */
.dm-panel {
  position: fixed;
  top: var(--header-h, 48px);
  right: 0;
  bottom: 0;
  width: min(400px, 100vw);
  max-height: none;
  height: auto;
  background: #fff;
  border: none;
  border-left: 1px solid #e0e0e0;
  border-radius: 0;
  box-shadow: -10px 0 36px rgba(0, 0, 0, 0.16);
  /* Player progress/now-playing (~100000) üstünde; kanal emoji picker (150000) üstünde */
  z-index: 200001;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #222;
  animation: dmDrawerIn 0.22s ease-out;
}
@keyframes dmDrawerIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}
.dm-panel .dm-thread {
  position: relative;
  overflow: hidden;
}

/* Channel desktop: player | chat | DM as siblings on main row (flex 4:3:2) */
@media (min-width: 769px) {
  .web-view .yt-main-row .yt-video-col {
    flex: 5 1 0%;
    width: auto;
    max-width: none;
    min-width: 0;
  }
  .web-view .yt-main-row .yt-chat-col {
    flex: 4 1 0%;
    width: auto;
    max-width: none;
    min-width: 0;
    flex-direction: column;
  }
  .web-view .yt-main-row.dm-split-open .yt-video-col {
    flex: 4 1 0%;
  }
  .web-view .yt-main-row.dm-split-open .yt-chat-col {
    flex: 3 1 0%;
  }
  .web-view .yt-main-row.dm-split-open .channel-dm-pane {
    flex: 2 1 0%;
    width: auto;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
}
.channel-dm-pane {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}
.dm-panel.dm-embedded {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  height: 100%;
  max-height: none;
  border: none;
  border-left: 1px solid #e0e0e0;
  border-radius: 0;
  box-shadow: none;
  z-index: 1;
  animation: none;
}
/* Mobil: tam ekran WhatsApp benzeri DM */
@media (max-width: 767px) {
  .dm-panel {
    inset: 0;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border-left: none;
    box-shadow: none;
    animation: none;
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .dm-panel-header {
    min-height: 56px;
    padding: 6px 10px;
    gap: 12px;
  }
  .dm-panel-header-actions {
    gap: 10px;
  }
  .dm-panel-header .modern-close-btn,
  .dm-panel-header .dm-header-icon-btn,
  .dm-panel-header .dm-header-back {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    font-size: 18px;
  }
  .dm-panel-title {
    font-size: 17px;
  }
  /* Liste: tam genişlik satırlar */
  .dm-mobile-inbox .dm-list,
  .dm-drawer.dm-mobile-inbox .dm-list {
    width: 100%;
  }
  .dm-mobile-inbox .dm-row {
    padding: 12px 16px;
  }
  /* Thread: tek tam ekran sohbet (liste chrome yok) */
  .dm-mobile-thread .dm-peer {
    background: #075e54;
    border-bottom: none;
    min-height: 56px;
    padding: 6px 8px;
    gap: 10px;
    padding-top: max(6px, env(safe-area-inset-top, 0px));
  }
  .dm-mobile-thread .dm-peer-name,
  .dm-mobile-thread .dm-back,
  .dm-mobile-thread .dm-peer-menu-btn,
  .dm-mobile-thread .dm-peer-action-btn {
    color: #fff;
  }
  .dm-mobile-thread .dm-back,
  .dm-mobile-thread .dm-peer-menu-btn,
  .dm-mobile-thread .dm-peer-action-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  .dm-mobile-thread .dm-peer-action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
  }
  .dm-mobile-thread .dm-peer-menu-btn {
    background: #25d366;
    color: #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.28);
  }
  .dm-mobile-thread .dm-peer-menu-btn:hover {
    background: #1ebe57;
    color: #fff;
  }
  .dm-mobile-thread .dm-peer img {
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
  }
  .dm-mobile-thread .dm-peer-menu {
    right: 4px;
  }
  /* Ayarlar: tam ekran alt panel, chrome üst üste binmez */
  .dm-mobile-settings .dm-mobile-subhead {
    min-height: 56px;
  }
  .dm-mobile-settings .dm-settings {
    padding: 16px 16px 28px;
  }
}
.dm-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  background: #fafafa;
  gap: 10px;
  flex-shrink: 0;
}
.dm-panel-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}
.dm-panel-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 600;
}
.dm-panel-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}
.dm-header-back,
.dm-header-icon-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  color: inherit;
  font-size: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.dm-header-back:hover,
.dm-header-icon-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}
.dm-panel-header .modern-close-btn {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  margin: 0;
}
.dm-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.dm-avatar-rail {
  display: none;
}
.dm-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dm-list,
.dm-thread,
.dm-settings {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 0;
}
.dm-list {
  overflow: auto;
  overscroll-behavior: contain;
}
.dm-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 6px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.dm-broadcast-bar {
  margin: 8px 10px 4px;
  padding: 10px 12px 12px;
  border-radius: 12px;
  background: #e8f5e9;
  border: 1px solid rgba(7, 94, 84, 0.18);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.dm-broadcast-bar-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.dm-broadcast-bar-top strong {
  color: #075e54;
  font-size: 14px;
}
.dm-broadcast-bar-top span {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  color: #54656f;
}
.dm-broadcast-close {
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #075e54;
  padding: 0 4px;
}
.dm-broadcast-ttl {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dm-broadcast-ttl button {
  border: 1px solid #075e54;
  background: #fff;
  color: #075e54;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.dm-broadcast-ttl button.is-on {
  background: #075e54;
  color: #fff;
}
.dm-broadcast-text {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cfd8dc;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  resize: vertical;
  min-height: 72px;
}
.dm-broadcast-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dm-broadcast-preview {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.dm-broadcast-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dm-broadcast-preview button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.dm-broadcast-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.dm-broadcast-actions button {
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
  color: #075e54;
}
.dm-broadcast-send {
  margin-left: auto;
  background: #25d366 !important;
  color: #fff !important;
}
.dm-broadcast-send:disabled,
.dm-broadcast-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.dm-broadcast-hint {
  margin: 0;
  font-size: 11px;
  color: #54656f;
}
.dm-search {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 20px;
  margin-bottom: 0;
  background: #f0f2f5;
}
.dm-row {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 10px 14px;
  border-radius: 0;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}
.dm-row:hover {
  background: #f5f6f6;
}
.dm-row img,
.dm-peer img,
.dm-blocked-row img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.dm-row-meta {
  flex: 1;
  min-width: 0;
}
.dm-row-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.dm-row-name {
  font-weight: 600;
  font-size: 14px;
  color: #111;
}
.dm-row-time {
  font-size: 11px;
  color: #8696a0;
  flex-shrink: 0;
}
.dm-row-preview {
  font-size: 13px;
  color: #667781;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  margin-top: 2px;
}
.dm-back {
  border: 2px solid rgba(7, 94, 84, 0.45);
  background: #fff;
  cursor: pointer;
  color: #075e54;
  font-size: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
  transition: background 0.15s ease, transform 0.15s ease;
}
.dm-back i {
  font-size: 18px;
  font-weight: 900;
}
.dm-back:hover {
  background: #f0f2f5;
  transform: translateX(-1px);
}
.dm-peer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  padding: 8px 10px;
  margin: 0;
  border-bottom: 1px solid #e9edef;
  background: #f0f2f5;
  flex-shrink: 0;
  position: relative;
}
.dm-peer img {
  width: 40px;
  height: 40px;
}
.dm-peer-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.dm-peer-name {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dm-peer-menu-wrap {
  position: relative;
  flex-shrink: 0;
}
.dm-peer-menu-btn {
  border: none;
  background: #25d366;
  cursor: pointer;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}
.dm-peer-menu-btn:hover {
  background: #1ebe57;
  color: #fff;
}
.dm-peer-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  min-width: 160px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
  z-index: 20;
  overflow: hidden;
  padding: 4px 0;
}
.dm-peer-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 12px 16px;
  font-size: 14px;
  cursor: pointer;
  color: #111;
}
.dm-peer-menu-item:hover {
  background: #f5f6f6;
}
.dm-peer-menu-item.dm-block-item {
  color: #dc3545;
}
.dm-messages {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 10px 14px;
  min-height: 180px;
  scroll-behavior: auto !important;
  overscroll-behavior: contain;
  background-color: #e5ddd5;
  background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 18px 18px;
}
.dm-call-log {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 92%;
  padding: 7px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.06);
  color: #54656f;
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
}
.dm-call-log i {
  font-size: 12px;
  opacity: 0.85;
}
.dm-call-log small {
  font-weight: 500;
  opacity: 0.7;
  font-size: 11px;
  margin-left: 4px;
}
.dm-call-log.is-missed {
  color: #c62828;
  background: rgba(198, 40, 40, 0.08);
}
.dm-bubble.own {
  align-self: flex-end;
  background: #dcf8c6;
  color: #111;
  border-top-right-radius: 2px;
}
.dm-bubble.other {
  align-self: flex-start;
  background: #fff;
  color: #111;
  border-top-left-radius: 2px;
}
.dm-bubble small {
  display: block;
  opacity: 0.75;
  font-size: 10px;
  margin-top: 2px;
}
.dm-bubble .dm-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  opacity: 0.7;
  font-size: 10px;
  margin-top: 2px;
  color: #667781;
}
.dm-bubble.other .dm-meta {
  justify-content: flex-start;
}
.dm-ticks {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}
.dm-ticks--sent,
.dm-ticks--delivered {
  color: #8696a0;
}
.dm-ticks--read {
  color: #53bdeb;
}
.dm-bubble.other .dm-ticks--sent,
.dm-bubble.other .dm-ticks--delivered {
  color: rgba(0, 0, 0, 0.35);
}
.dm-settings {
  padding: 12px 14px 20px;
  overflow: auto;
  gap: 12px;
}
.dm-settings-lead {
  margin: 0;
  font-size: 13px;
  color: #667781;
  line-height: 1.4;
}
.dm-settings-toggle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 12px;
  border: 1px solid #e9edef;
  border-radius: 10px;
  background: #fafafa;
  cursor: pointer;
}
.dm-settings-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.dm-settings-toggle-text strong {
  font-size: 14px;
  color: #111;
}
.dm-settings-toggle-text span {
  font-size: 12px;
  color: #667781;
  line-height: 1.35;
}
.dm-settings-toggle input[type='checkbox'] {
  width: 42px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: #25d366;
  cursor: pointer;
}
.dm-settings-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 1px solid #e9edef;
  border-radius: 10px;
  background: #fff;
  padding: 14px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #111;
  cursor: pointer;
  text-align: left;
}
.dm-settings-link:hover {
  background: #f5f6f6;
}
.dm-settings-chevron {
  font-size: 20px;
  color: #8696a0;
  line-height: 1;
}
.dm-blocked-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}
.dm-blocked-row img {
  width: 40px;
  height: 40px;
}
.dm-blocked-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dm-blocked-meta strong {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dm-blocked-meta span {
  font-size: 11px;
  color: #8696a0;
}
.dm-unblock-btn {
  flex-shrink: 0;
  border: 1px solid #25d366;
  background: transparent;
  color: #128c7e;
  border-radius: 18px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.dm-unblock-btn:hover {
  background: rgba(37, 211, 102, 0.1);
}
.dm-hint {
  margin: 8px 12px !important;
}
.dm-compose.chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: none;
  background: transparent;
  flex-shrink: 0;
  min-height: 64px;
}
.dm-compose.chat-input .input-wrapper {
  flex: 1;
  min-width: 0;
  min-height: 48px;
}
.dm-compose.chat-input input {
  width: 100%;
  box-sizing: border-box;
  font-size: 16px;
}
.dm-inbox-btn {
  flex-shrink: 0;
  border: 1px solid #ddd;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  white-space: nowrap;
}
.dm-peer-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.dm-peer-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: #54656f;
  cursor: pointer;
  border-radius: 50%;
  font-size: 18px;
  padding: 0;
}
.dm-peer-action-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #111;
}
/* Profil */
.profile-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.profile-hero {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}
.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #eee;
}
.profile-role {
  color: #888;
  font-size: 13px;
  margin: 4px 0 8px;
}
.profile-bio {
  color: #444;
  line-height: 1.5;
}

/* === Mobil oyuncu + overlay istek listesi (eski player.php) === */
#mobile-player-slot #timarhane-player-container {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  z-index: 1;
}

#mobile-player-slot .v2-player-wrap,
#mobile-player-slot .player-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  overflow: hidden;
}

#mobile-player-slot .v2-player-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

#mobile-player-slot .v2-now-playing {
  display: none;
}

/* Web g?r?n?mde ?alan ?ark? overlay her zaman g?r?ns?n */
.web-view #web-player-overlay.web-only {
  display: block !important;
}

/* DevTools / dar pencere: overlay g?r?ns?n (coarse pointer ?art? olmadan) */
@media (max-width: 767px) {
  .mobile-view #mobile-player-overlay.mobile-only {
    display: block !important;
  }
  .mobile-view .overlay-volume-controls {
    display: flex !important;
  }
  .mobile-view .overlay-request-queue {
    display: flex;
  }
}

/* Sohbet mesaj? ? eski float avatar d?zeni */
.chat-message.v2-msg .message-avatar {
  float: left;
  margin-right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
}
.chat-message.v2-msg.is-yt-mirror .message-avatar {
  width: 0;
  height: 24px;
  margin-right: 0;
  overflow: hidden;
  visibility: hidden;
}
.chat-message.v2-msg.is-yt-bot .msg-user.is-yt-bot-nick {
  cursor: default;
  text-decoration: none;
  margin-right: 6px;
}
.chat-message.v2-msg.is-yt-bot .yt-bot-play {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.22em;
  line-height: 0;
}
.chat-message.v2-msg.is-yt-bot .yt-bot-play svg {
  width: 100%;
  height: 100%;
  display: block;
}
.chat-message.v2-msg .message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.chat-message.v2-msg .message-content {
  overflow: hidden;
}
.chat-message.v2-msg .message-time {
  font-size: 10px;
  color: #888;
  margin-left: 8px;
}

/* Web istek listesi sat?rlar? ? context_menu.css ile uyum */
.web-request-queue-container .request-queue-container {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.web-request-queue-container .request-queue-list {
  max-height: 240px;
  overflow-y: auto;
}

/* Kanal ayarlar? modal ? eski siteye yak?n */
.channel-settings-overlay .channel-info-modal-panel,
.channel-settings-overlay .channel-settings-panel {
  background: #fff;
  border-radius: 12px;
  max-width: 920px;
  width: 96vw;
  max-height: 90vh;
  overflow: auto;
  padding: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.channel-settings-header {
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  background: #f8f9fa;
}
.channel-settings-body {
  padding: 16px 20px 24px;
}
.channel-settings-hint {
  margin-bottom: 12px;
}
.channel-settings-overlay .modal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 16px;
  background: #f1f3f5;
  border-bottom: 1px solid #e9ecef;
}
.channel-settings-overlay .tab-btn {
  border: 1px solid #dee2e6;
  background: #fff;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  color: #495057;
}
.channel-settings-overlay .tab-btn.active {
  background: #007bff;
  border-color: #007bff;
  color: #fff;
  font-weight: 600;
}
.channel-settings-overlay .modal-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
}
.channel-settings-sticky-actions {
  display: none;
}
.ai-bot-settings-section {
  margin-top: 18px;
}
.ai-bot-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-weight: 600;
}
.yt-captions-settings-section {
  margin-top: 18px;
  padding-bottom: 8px;
}
.yt-captions-toggle-btn {
  margin-top: 10px;
  width: 100%;
  border: 1px solid #cfd8dc;
  background: #eceff1;
  color: #37474f;
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
}
.yt-captions-toggle-btn.is-on {
  background: #1b6b6b;
  border-color: #1b6b6b;
  color: #fff;
}
.yt-captions-toggle-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.ai-bot-avatar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ai-bot-avatar-row input[type='text'] {
  flex: 1;
  min-width: 180px;
}
.ai-bot-avatar-preview {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #dee2e6;
}
.compact-permissions-container {
  width: 100%;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
}
.compact-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.compact-permissions-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 680px;
}
.compact-permissions-table th {
  background: #007bff;
  color: #fff;
  padding: 10px 6px;
  font-size: 11px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 2;
  white-space: nowrap;
}
.compact-permissions-table th.role-column,
.compact-permissions-table td.role-name-cell {
  position: sticky;
  left: 0;
  z-index: 3;
  text-align: left;
  padding-left: 12px;
  min-width: 140px;
  max-width: 180px;
  background: #007bff;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.06);
}
.compact-permissions-table td.role-name-cell {
  z-index: 2;
  background: #fff;
  font-weight: 600;
}
.compact-permissions-table th.role-column {
  z-index: 4;
}
.compact-permissions-table td {
  padding: 8px 4px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}
.role-row--protected td {
  background: #f4f6f8;
  opacity: 0.72;
}
.role-row--protected td.role-name-cell {
  background: #eef1f4;
}
.role-row--editable td {
  background: #fff;
}
.role-row--editable:hover td {
  background: #f8fbff;
}
.role-row--editable:hover td.role-name-cell {
  background: #f0f7ff;
}
.role-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.role-lock-tag {
  font-size: 11px;
  opacity: 0.85;
}
.perm-col-head {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.15;
}
.perm-col-emoji {
  font-size: 14px;
}
.perm-col-label {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.95;
}
.perm-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  border: none;
  cursor: default;
  user-select: none;
}
.perm-badge--wide {
  min-width: 44px;
  font-size: 12px;
}
.perm-badge--allow {
  background: #e8f8ef;
  color: #1b7a3d;
}
.perm-badge--deny {
  background: #fdecee;
  color: #c0392b;
}
.perm-badge--locked {
  background: #f1f3f5;
  color: #6c757d;
}
button.perm-badge--toggle {
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
button.perm-badge--toggle:hover {
  transform: scale(1.06);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
button.perm-badge--toggle:focus-visible {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}
.number-input-container {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.number-input-container input {
  width: 52px;
  padding: 4px 6px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}
.number-input-container input:focus {
  border-color: #007bff;
  outline: none;
}
.request-cap-hint {
  font-size: 9px;
  color: #6c757d;
  white-space: nowrap;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.perm-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 8px 12px;
  border-top: 1px solid #eee;
  font-size: 11px;
  color: #666;
  background: #fafbfc;
}
.perm-legend .perm-badge {
  min-width: 22px;
  height: 22px;
  font-size: 11px;
  vertical-align: middle;
}
.unlimited-badge,
.banned-badge,
.protected-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
}
.unlimited-badge { background: linear-gradient(45deg, #28a745, #20c997); }
.banned-badge { background: linear-gradient(45deg, #dc3545, #e74c3c); }
.protected-badge { background: linear-gradient(45deg, #ffc107, #fd7e14); color: #222; }

/* Role permissions accordion (all breakpoints) */
.role-perms-desktop {
  display: none !important;
}
.role-perms-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 640px;
}
.role-acc-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.role-acc-card--protected {
  opacity: 0.78;
  background: #f4f6f8;
}
.role-acc-card--editable {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.role-acc-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: #212529;
  font-size: 14px;
  font-weight: 600;
}
.role-acc-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.role-acc-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6c757d;
  font-weight: 500;
  font-size: 12px;
}
.role-acc-req-chip {
  background: #eef5ff;
  color: #1a5fb4;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  white-space: nowrap;
}
.role-acc-card.is-open .role-acc-header {
  border-bottom: 1px solid #eef1f4;
  background: #f8fafc;
}
.role-acc-body {
  padding: 6px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.role-acc-perm {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid #f1f3f5;
}
.role-acc-perm:last-child {
  border-bottom: none;
}
.role-acc-perm--stack {
  flex-direction: column;
  align-items: stretch;
}
.role-acc-perm-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.role-acc-perm-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.role-acc-perm-label {
  font-size: 13px;
  font-weight: 600;
  color: #343a40;
  line-height: 1.35;
}
.role-acc-perm-hint {
  margin: 0;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
  color: #6c757d;
}
.role-acc-perm-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 120px;
  flex-shrink: 0;
  padding-top: 1px;
}
.number-input-container--mobile {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.number-input-container--mobile .request-cap-hint {
  max-width: 90px;
  font-size: 10px;
}
.role-acc-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.role-acc-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.role-acc-switch-ui {
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: #ced4da;
  position: relative;
  transition: background 0.15s ease;
  flex-shrink: 0;
}
.role-acc-switch-ui::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
}
.role-acc-switch input:checked + .role-acc-switch-ui {
  background: #28a745;
}
.role-acc-switch input:checked + .role-acc-switch-ui::after {
  transform: translateX(18px);
}
.role-acc-switch-text {
  font-size: 12px;
  font-weight: 600;
  color: #495057;
  min-width: 58px;
}

@media (min-width: 768px) {
  .role-perms-accordion {
    gap: 10px;
    max-width: 720px;
  }
  .role-acc-card {
    border-radius: 12px;
  }
  .role-acc-card--editable {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  }
  .role-acc-header {
    padding: 14px 18px;
    font-size: 15px;
  }
  .role-acc-body {
    padding: 8px 16px 14px;
    gap: 2px;
  }
  .role-acc-perm {
    padding: 12px 6px;
  }
  .role-acc-perm-label {
    font-size: 14px;
  }
  .role-acc-perm-hint {
    font-size: 12px;
  }
  .role-acc-perm-control {
    min-width: 140px;
  }
  .number-input-container--mobile .request-cap-hint {
    max-width: 120px;
    font-size: 11px;
  }
}

.manual-save-info {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #f8f9fa;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 12px;
  color: #555;
}
.duration-filters-section {
  margin-top: 20px;
}
.duration-filter-card {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.duration-filter-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
.filter-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.filter-header i {
  color: #6366f1;
  font-size: 18px;
}
.filter-title { font-weight: 700; color: #1e293b; }
.filter-description {
  display: block;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 10px;
}
.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.duration-input-group {
  display: flex;
  gap: 8px;
  align-items: center;
}
.duration-input-group input {
  width: 80px;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}
.duration-input-group select {
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
}
.background-settings-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.background-action-btn {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-weight: 600;
}
.background-action-btn.active {
  border-color: #007bff;
  background: #e7f1ff;
}
.settings-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.channel-live-link-input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ced4da;
}
.channel-title-clickable {
  display: block;
  border-radius: 10px;
  padding: 4px 8px;
}
.channel-settings-overlay .role-btn {
  width: auto;
  min-height: 32px;
  height: auto;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  line-height: 1.2;
}
.channel-settings-overlay .role-btn:hover {
  border-color: #007bff;
  background: #f0f7ff;
  color: #0056b3;
}
.channel-settings-overlay .role-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.channel-settings-overlay .unkick-btn,
.channel-settings-overlay .unban-btn {
  width: auto;
  min-width: auto;
  min-height: 32px;
  height: auto;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #c3e6cb;
  background: #d4edda;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #155724;
  white-space: nowrap;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.channel-settings-overlay .unkick-btn:hover,
.channel-settings-overlay .unban-btn:hover {
  border-color: #28a745;
  background: #c3e6cb;
}
.channel-settings-overlay .unkick-btn:disabled,
.channel-settings-overlay .unban-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.channel-settings-overlay .banned-list-note {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.45;
  color: #6c757d;
}
.channel-settings-overlay .upload-area {
  border: 2px dashed #007bff;
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  background: #f8fbff;
}
.v2-emoji-picker, .v2-gif-picker {
  z-index: 12000;
}

/* Kullanıcı menüsü — player overlay (100000+) üstünde; kapanabilsin */
.user-simple-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  padding: 16px;
  pointer-events: auto !important;
  touch-action: manipulation;
}
.user-simple-modal {
  position: relative;
  background: #fff;
  padding: 24px 20px 16px;
  border-radius: 10px;
  min-width: 260px;
  max-width: min(360px, 92vw);
  max-height: min(90vh, 640px);
  overflow-y: auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  pointer-events: auto !important;
  z-index: 2000001;
}
.user-simple-modal-close {
  position: absolute;
  right: 10px;
  top: 6px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #333;
  z-index: 2;
  padding: 4px 8px;
  pointer-events: auto !important;
}
.user-simple-modal-title {
  margin: 0 0 14px;
  font-size: 1.15rem;
  color: #333;
  text-align: center;
  padding-right: 18px;
  word-break: break-word;
}
.user-simple-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.user-simple-modal-actions button {
  width: 100%;
  padding: 9px 0;
  border: none;
  border-radius: 5px;
  font-size: 0.95rem;
  cursor: pointer;
  background: #eee;
  color: #333;
}
.user-simple-modal-actions button.ok {
  background: #28a745;
  color: #fff;
}
.user-simple-modal-actions button.warn {
  background: #fff3cd;
  color: #856404;
}
.user-simple-modal-actions button.danger {
  background: #e74c3c;
  color: #fff;
}
.user-simple-modal-actions button:hover {
  filter: brightness(0.97);
}

/* Profil paneli (chat içi) */
.user-profile-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000010 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 16px;
  pointer-events: auto !important;
  touch-action: manipulation;
}
.user-profile-panel {
  position: relative;
  background: #fff;
  color: #222;
  border-radius: 12px;
  width: min(400px, 94vw);
  max-height: min(88vh, 720px);
  overflow-y: auto;
  padding: 22px 18px 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  pointer-events: auto !important;
  z-index: 2000011;
}
.user-profile-panel-close {
  position: absolute;
  right: 10px;
  top: 6px;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #333;
  padding: 4px 8px;
  z-index: 2;
}
.user-profile-panel-hero {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding-right: 24px;
}
.user-profile-panel-avatar-btn {
  border: none;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
  flex-shrink: 0;
}
.user-profile-panel-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid #e8e8e8;
}
.user-profile-panel-meta {
  min-width: 0;
  flex: 1;
}
.user-profile-panel-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  word-break: break-word;
}
.user-profile-panel-global {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: #555;
}
.user-profile-panel-section {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}
.user-profile-panel-section h3 {
  margin: 0 0 8px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #777;
  font-weight: 700;
}
.user-profile-panel-bio {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  color: #333;
}
.user-profile-panel-roles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.user-profile-panel-roles li {
  font-size: 0.92rem;
  line-height: 1.35;
  padding: 7px 10px;
  background: #f5f7fa;
  border-radius: 6px;
  color: #333;
}
.user-profile-panel-roles li.muted {
  color: #777;
  background: #fafafa;
}
.user-profile-panel-hint,
.user-profile-panel-err {
  margin: 8px 0 0;
  font-size: 0.9rem;
}
.user-profile-panel-err {
  color: #c0392b;
}
.user-profile-panel-footer {
  margin-top: 14px;
  text-align: center;
}
.user-profile-panel-full {
  font-size: 0.85rem;
  color: #0b6bcb;
  text-decoration: none;
}
.user-profile-panel-full:hover {
  text-decoration: underline;
}

img.chat-inline-gif,
img.chat-inline-image {
  max-width: 80px;
  max-height: 60px;
  border-radius: 4px;
  margin: 2px;
  display: inline-block;
  vertical-align: middle;
  cursor: pointer;
  object-fit: cover;
}

/* Avatar büyük önizleme */
.avatar-lightbox-overlay,
.gif-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000020 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.82);
  cursor: pointer;
  padding: 16px;
  pointer-events: auto !important;
  touch-action: manipulation;
}
.avatar-lightbox-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2000021;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto !important;
}
.avatar-lightbox-close:hover {
  background: rgba(0, 0, 0, 0.65);
}
.avatar-lightbox-img,
.gif-lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  cursor: default;
  object-fit: contain;
}

/* GIF büyük önizleme — eski kurallar avatar-lightbox ile birleştirildi */

/* DM emoji / GIF araçları — panel içinde, kanal picker'dan izole */
.dm-compose-wrap {
  position: relative;
  flex-shrink: 0;
  z-index: 5;
  padding: 8px 10px 12px;
  background: #efeae2;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  overflow: visible;
}
.dm-typing-peek {
  position: absolute;
  left: 18px;
  bottom: calc(100% - 8px);
  z-index: 6;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  transform: translateY(40px) scale(0.82);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.48s cubic-bezier(0.22, 1.15, 0.32, 1),
    opacity 0.28s ease;
}
.dm-typing-peek.is-on {
  transform: translateY(-8px) scale(1);
  opacity: 1;
}
.dm-typing-peek img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  background: #ddd;
}
.dm-typing-peek-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #fff;
  border-radius: 10px;
  padding: 5px 7px 6px;
  margin-bottom: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.dm-typing-peek-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8696a0;
  display: block;
  animation: dm-typing-dot 1.15s ease-in-out infinite;
}
.dm-typing-peek-dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.dm-typing-peek-dots i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes dm-typing-dot {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  40% {
    transform: translateY(-3px);
    opacity: 1;
  }
}
.dm-picker-anchor {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: calc(100% + 6px);
  z-index: 30;
  display: flex;
  justify-content: flex-start;
  pointer-events: none;
}
/* DM action buttons inherit .chat-input / #dm*Button styles from v2-theme */
.dm-emoji-picker,
.dm-gif-picker {
  pointer-events: auto;
  position: relative;
  z-index: 31;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.dm-emoji-picker {
  border: 2px solid #007bff;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
}
.dm-emoji-picker button {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.dm-gif-picker {
  border: 2px solid #28a745;
  height: min(360px, 50vh);
  max-height: 360px;
  padding: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dm-gif-picker input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}
.dm-gif-hint {
  font-size: 12px;
  color: #555;
}
.dm-gif-results {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.dm-gif-results button {
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.dm-gif-results button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.dm-gif-results img {
  width: 90%;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
  margin: 0 auto;
  display: block;
}
@media (max-width: 768px) {
  .dm-emoji-picker {
    grid-template-columns: repeat(6, 1fr);
    max-height: 220px;
  }
  .dm-gif-picker {
    height: min(320px, 45vh);
  }
}

/* Voice messages */
@keyframes voice-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}
.voice-msg-bubble {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(14, 116, 144, 0.22);
  border: 1px solid rgba(34, 211, 238, 0.28);
  color: inherit;
  cursor: pointer;
  max-width: 100%;
  font: inherit;
}
.dm-bubble .voice-msg-bubble,
button.dm-voice-btn.voice-msg-bubble {
  border: none;
  width: 100%;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.08);
}
.dm-bubble.own .voice-msg-bubble {
  background: rgba(255, 255, 255, 0.18);
}
.voice-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(14, 116, 144, 0.85);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.voice-wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  flex: 1;
  min-width: 48px;
}
.voice-wave span {
  width: 3px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.55;
  height: 6px;
}
.voice-wave span:nth-child(2) { height: 14px; }
.voice-wave span:nth-child(3) { height: 10px; }
.voice-wave span:nth-child(4) { height: 16px; }
.voice-dur {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
  flex-shrink: 0;
}
.chat-compose-extras .chat-attach-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  min-width: 196px;
  z-index: 80;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0f172a;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-sizing: border-box;
}
/* Composer'daki yuvarlak buton stillerini menü satırlarından tamamen ayır */
.chat-input .chat-compose-extras .chat-attach-item,
.dm-compose.chat-input .chat-compose-extras .chat-attach-item,
.web-view .chat-input .chat-compose-extras .chat-attach-item,
.web-view #webChatInput .chat-compose-extras .chat-attach-item,
.web-view .dm-panel .chat-input .chat-compose-extras .chat-attach-item,
.dm-panel.dm-drawer .chat-input .chat-compose-extras .chat-attach-item {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 40px !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: none !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #e2e8f0 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  cursor: pointer;
  flex-shrink: 0;
}
.chat-input .chat-compose-extras .chat-attach-item.is-soon,
.web-view .chat-input .chat-compose-extras .chat-attach-item.is-soon {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
}
.chat-compose-extras .chat-attach-item:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08) !important;
}
.chat-input .chat-compose-extras .chat-attach-item svg,
.web-view .chat-input .chat-compose-extras .chat-attach-item svg {
  display: none !important;
}
/* Kayıt çubuğu — .chat-input button stillerini ez */
.chat-input .chat-compose-extras .voice-rec-bar,
.dm-compose.chat-input .chat-compose-extras .voice-rec-bar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: min(168px, 42vw);
  padding: 3px 5px;
  border-radius: 10px;
  background: rgba(127, 29, 29, 0.4);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fecaca;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  flex-shrink: 0;
  box-sizing: border-box;
}
.chat-input .chat-compose-extras .voice-rec-dot,
.dm-compose.chat-input .chat-compose-extras .voice-rec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f87171;
  animation: voice-pulse 1s infinite;
  flex-shrink: 0;
}
.chat-input .chat-compose-extras .voice-rec-timer,
.dm-compose.chat-input .chat-compose-extras .voice-rec-timer {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  min-width: 22px;
  flex-shrink: 0;
}
.chat-input .chat-compose-extras .voice-rec-btn,
.dm-compose.chat-input .chat-compose-extras .voice-rec-btn,
.web-view .chat-input .chat-compose-extras .voice-rec-btn {
  width: auto !important;
  min-width: 0 !important;
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  padding: 0 5px !important;
  margin: 0 !important;
  border-radius: 6px !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  background: rgba(0, 0, 0, 0.3) !important;
  color: #fff !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  box-shadow: none !important;
}
.chat-input .chat-compose-extras .voice-rec-btn.voice-rec-send,
.dm-compose.chat-input .chat-compose-extras .voice-rec-btn.voice-rec-send,
.web-view .chat-input .chat-compose-extras .voice-rec-btn.voice-rec-send {
  background: rgba(16, 185, 129, 0.55) !important;
  border-color: rgba(52, 211, 153, 0.5) !important;
}
.chat-input .chat-compose-extras .voice-rec-btn svg,
.web-view .chat-input .chat-compose-extras .voice-rec-btn svg {
  display: none;
}

/* Kanal sohbet üstü — ses gönder paneli (sabit mesaj yerinde) */
.voice-chat-banner {
  margin: 8px 8px 6px;
  padding: 12px 14px;
  border-radius: 12px;
  border-left: 4px solid #f87171;
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 45%, #450a0a 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(127, 29, 29, 0.35);
  flex-shrink: 0;
  z-index: 3;
}
.voice-chat-banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.voice-chat-banner-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.01em;
}
.voice-chat-banner-mic {
  font-size: 18px;
  line-height: 1;
}
.voice-chat-banner-live {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(248, 113, 113, 0.35);
  border: 1px solid rgba(254, 202, 202, 0.45);
  animation: voice-pulse 1s infinite;
}
.voice-chat-banner-close {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
}
.voice-chat-banner-close:hover {
  background: rgba(255, 255, 255, 0.28);
}
.voice-chat-banner .voice-rec-bar--banner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  max-width: none;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(254, 202, 202, 0.35);
  box-sizing: border-box;
}
.voice-chat-banner .voice-rec-bar--banner .voice-rec-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f87171;
  animation: voice-pulse 1s infinite;
  flex-shrink: 0;
}
.voice-chat-banner .voice-rec-bar--banner .voice-rec-timer {
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  min-width: 4.5em;
  flex: 1;
}
.voice-chat-banner .voice-rec-bar--banner .voice-rec-btn {
  width: auto !important;
  min-width: 72px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: none !important;
  padding: 0 14px !important;
  margin: 0 !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  background: rgba(0, 0, 0, 0.35) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: none !important;
}
.voice-chat-banner .voice-rec-bar--banner .voice-rec-btn.voice-rec-send {
  background: rgba(16, 185, 129, 0.75) !important;
  border-color: rgba(52, 211, 153, 0.65) !important;
}
.voice-chat-banner-idle {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.voice-chat-banner-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.9;
}
.voice-chat-banner-start {
  align-self: stretch;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: #7f1d1d;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.voice-chat-banner-start:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.web-view .voice-chat-banner {
  margin: 10px 10px 8px;
  padding: 14px 16px;
}
.web-view .voice-chat-banner-title {
  font-size: 16px;
}

.dm-row {
  position: relative;
}
.dm-row-main {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 1;
  min-width: 0;
  text-align: left;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: inherit;
}
.dm-row-quick {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  margin-left: 4px;
}
.dm-row-quick button {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #eef6f0;
  color: #128c7e;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.dm-row-quick button:hover {
  background: #d9f0e3;
}
.dm-row.is-request {
  background: #fff8e8;
}
.dm-archive-toggle {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  color: #128c7e;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
}
.dm-peer-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.dm-peer-sub {
  font-size: 11px;
  font-weight: 500;
  color: #8696a0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dm-request-banner {
  padding: 10px 12px;
  background: #fff4d6;
  font-size: 13px;
  color: #333;
}
.dm-request-banner p {
  margin: 0 0 8px;
}
.dm-request-actions {
  display: flex;
  gap: 8px;
}
.dm-accept-btn,
.dm-reject-btn {
  flex: 1;
  height: 36px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}
.dm-accept-btn {
  background: #25d366;
  color: #fff;
}
.dm-reject-btn {
  background: #ea4335;
  color: #fff;
}
.dm-messages.is-dark {
  background: #0b141a;
}
.dm-reply-preview,
.dm-reply-bar {
  font-size: 12px;
  color: #54656f;
  background: rgba(0, 0, 0, 0.06);
  border-left: 3px solid #25d366;
  padding: 4px 8px;
  margin-bottom: 4px;
  border-radius: 4px;
}
.dm-reply-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 8px 4px;
}
.dm-reply-bar button {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}
.dm-media-img {
  width: 100%;
  max-width: 100%;
  max-height: 280px;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  cursor: zoom-in;
}
.dm-video-note-wrap {
  position: relative;
  width: min(100%, 220px);
  min-width: 160px;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(145deg, #1a2332 0%, #0b0f14 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.12);
}
.dm-video-note-wrap.is-portrait {
  width: min(100%, 220px);
  aspect-ratio: 9 / 16;
  border-radius: 14px;
}
.dm-video-note-wrap.is-landscape {
  width: min(100%, 280px);
  min-width: 0;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
}
.dm-video-note-wrap:not(.is-ready) {
  background: linear-gradient(145deg, #243447 0%, #111820 100%);
}
.dm-video-note {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  background: #111;
  display: block;
}
.dm-video-note-wrap:not(.is-playing) .dm-video-note {
  pointer-events: none;
}
.dm-video-note-wrap.is-error {
  border-color: rgba(229, 57, 53, 0.55);
}
.dm-video-note-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: none;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  transition: background 0.15s ease;
}
.dm-video-note-play:hover {
  background: rgba(0, 0, 0, 0.4);
}
.dm-video-note-play-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.dm-video-note-play-icon i {
  font-size: 34px;
  margin-left: 3px;
}
.dm-video-note-play-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}
.dm-video-note-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  pointer-events: none;
}
.dm-video-note-badge i {
  font-size: 10px;
}
.dm-video-note-wrap.is-playing .dm-video-note-badge {
  opacity: 0.85;
}
.dm-video-note-dur {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 8px;
  pointer-events: none;
}
.dm-video-note-top {
  width: 100%;
  margin: 0 0 8px;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  flex-shrink: 0;
}
.dm-video-note-top .dm-video-note-wrap {
  border-radius: 12px;
}
.dm-video-note-top .dm-video-note-wrap.is-portrait {
  margin: 0 auto;
}
.dm-video-note-top .dm-video-note-wrap.is-landscape {
  max-width: 100%;
}
.dm-file-chip,
.dm-loc-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  text-align: left;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  font: inherit;
}
.dm-media-missing {
  font-size: 12px;
  opacity: 0.75;
  padding: 6px 0;
}
.dm-bubble {
  max-width: min(88%, 380px);
  padding: 8px 10px 6px;
  border-radius: 8px;
  position: relative;
  box-sizing: border-box;
}
.dm-bubble.is-media {
  max-width: min(94%, 440px);
  padding: 6px;
}
.dm-bubble.is-video-note {
  max-width: min(94%, 280px);
  padding: 4px;
}
.dm-bubble.is-video-note .dm-video-note-wrap {
  position: relative;
  z-index: 1;
}
.dm-bubble.is-video-note .dm-meta {
  margin-top: 2px;
  padding: 0 4px;
}
.dm-reactions {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}
.dm-reactions button {
  border: none;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 1px 6px;
  cursor: pointer;
  font-size: 12px;
}
.dm-msg-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.dm-msg-menu button {
  border: none;
  background: #fff;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.dm-bubble.is-hit {
  outline: 2px solid #25d366;
}
.dm-voice-btn {
  position: relative;
  overflow: hidden;
}
.dm-voice-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: #25d366;
}
.dm-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 8px;
}
.dm-gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}
.dm-video-note-rec {
  position: absolute;
  inset: 0;
  background: #0b0f14;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 12px 20px;
  box-sizing: border-box;
}
.dm-video-note-rec-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.dm-video-note-rec-frame.is-landscape {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 16 / 9;
}
.dm-video-note-rec-frame.is-portrait {
  aspect-ratio: 9 / 16;
  height: min(68dvh, 560px);
  width: auto;
  max-width: 100%;
}
.dm-video-note-rec-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dm-video-note-rec-frame video.is-front {
  transform: scaleX(-1);
}
.dm-video-note-rec-hud {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 700;
  font-size: 13px;
  z-index: 1;
}
.dm-video-note-rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #666;
}
.dm-video-note-rec-dot.is-on {
  background: #ea4335;
  box-shadow: 0 0 0 4px rgba(234, 67, 53, 0.28);
  animation: dm-video-note-pulse 1s ease-in-out infinite;
}
@keyframes dm-video-note-pulse {
  50% {
    opacity: 0.45;
  }
}
.dm-video-note-rec-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 1;
}
.dm-video-note-rec-bar > span {
  display: block;
  height: 100%;
  background: #25d366;
}
.dm-video-note-rec-hint {
  margin: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.9;
}
.dm-video-note-rec-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 520px;
}
.dm-video-note-rec-cancel,
.dm-video-note-rec-send,
.dm-video-note-rec-flip {
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  font: inherit;
}
.dm-video-note-rec-cancel {
  background: #ea4335;
  color: #fff;
}
.dm-video-note-rec-send {
  background: #25d366;
  color: #fff;
  flex: 1;
}
.dm-video-note-rec-send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.dm-video-note-rec-flip {
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.dm-thread-search {
  display: flex;
  justify-content: space-between;
  padding: 6px 12px;
  font-size: 12px;
  background: #e7f8ef;
}

.dm-panel .chat-input.dm-compose,
.web-view .dm-panel .chat-input.dm-compose,
.dm-panel.dm-drawer .chat-input.dm-compose {
  height: auto !important;
  min-height: 64px !important;
  max-height: none !important;
  padding: 10px 12px !important;
  gap: 8px !important;
  background: transparent !important;
  border-top: none !important;
  align-items: center !important;
}
.dm-panel .chat-input.dm-compose .input-wrapper,
.web-view .dm-panel .chat-input.dm-compose .input-wrapper,
.dm-panel.dm-drawer .chat-input.dm-compose .input-wrapper {
  min-height: 48px !important;
  border-radius: 24px !important;
  padding: 0 16px !important;
  background: #ffffff !important;
}
.dm-panel #dmMessageInput,
.web-view .dm-panel #dmMessageInput,
.dm-panel.dm-drawer #dmMessageInput {
  min-height: 48px !important;
  font-size: 16px !important;
}

/* --- Radyo kanalı oynatıcı --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.radio-player-wrap {
  min-height: 0;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.radio-player-inner {
  position: absolute;
  inset: 0;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8px 10px 12px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.radio-now-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  z-index: 5;
  pointer-events: auto;
}

.radio-now-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: none;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(8, 10, 18, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.radio-now-ticker {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 26px;
  border-radius: 10px;
  background: rgba(8, 10, 18, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 7%,
    #000 93%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 7%,
    #000 93%,
    transparent 100%
  );
}

.radio-now-ticker-track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: radio-now-ticker-scroll linear infinite;
  will-change: transform;
}

.radio-now-ticker:hover .radio-now-ticker-track {
  animation-play-state: paused;
}

.radio-now-ticker-item {
  flex-shrink: 0;
  padding: 0 2.8em;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 236, 210, 0.92);
  line-height: 26px;
  white-space: nowrap;
}

.radio-now-ticker-item::after {
  content: ' · ';
  margin-left: 2.8em;
  opacity: 0.45;
  font-weight: 500;
}

@keyframes radio-now-ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.radio-now-emoji {
  flex-shrink: 0;
  font-size: 1.35rem;
  line-height: 1;
}

.radio-now-text {
  flex: 0 1 auto;
  max-width: 160px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.radio-now-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

.radio-now-live {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8ef0c3;
}

.radio-now-live.is-off {
  color: rgba(255, 255, 255, 0.48);
  letter-spacing: 0.1em;
}

.radio-eq-canvas {
  flex: 1 1 auto;
  min-width: 72px;
  width: auto;
  height: 36px;
  display: block;
  opacity: 0.42;
}

.radio-eq-canvas.is-playing {
  opacity: 1;
}

.radio-start-btn {
  position: absolute;
  inset: 0;
  z-index: 6;
  border: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.radio-station-select-wrap {
  display: flex;
  align-items: center;
  flex: 0 1 190px;
  min-width: 120px;
  max-width: 220px;
  margin: 0;
  pointer-events: auto;
}

.radio-station-select {
  width: 100%;
  min-width: 0;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
}

.mobile-view.is-radio-channel #mobile-player-slot {
  aspect-ratio: 32 / 9 !important;
  max-height: none !important;
  height: auto !important;
  background: transparent !important;
}

.mobile-view.is-radio-channel #mobile-player-slot #timarhane-player-container {
  aspect-ratio: 32 / 9 !important;
  height: auto !important;
  min-height: 0 !important;
  contain: none !important;
  background: transparent !important;
}

.web-view.is-radio-channel #web-player-slot .radio-player-wrap {
  aspect-ratio: 16 / 9;
  min-height: 180px;
}

.mobile-view.is-radio-channel #mobile-player-overlay,
.web-view.is-radio-channel #web-player-overlay,
.mobile-view.is-radio-channel #mobile-neon-progress-container,
.web-view.is-radio-channel #web-neon-progress-container,
.mobile-view.is-radio-channel .overlay-request-queue,
.web-view.is-radio-channel .web-request-queue-container,
.mobile-view.is-radio-channel .mobile-controls,
.mobile-view.is-radio-channel iframe,
.web-view.is-radio-channel iframe,
.mobile-view.is-radio-channel #youtube-player,
.web-view.is-radio-channel #youtube-player {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body.radio-channel-page .web-header-controls-rail.is-radio-channel .overlay-btn,
body.radio-channel-page .chat-action-rail.is-radio-channel .overlay-btn,
.chat-action-rail.is-radio-channel .overlay-btn,
.web-header-controls-rail.is-radio-channel .overlay-btn {
  display: none !important;
}
.chat-action-rail.is-radio-channel .youtube-live-btn,
.web-header-controls-rail.is-radio-channel .youtube-live-btn,
body.radio-channel-page .chat-action-rail.is-radio-channel .youtube-live-btn,
body.radio-channel-page .web-header-controls-rail.is-radio-channel .youtube-live-btn {
  display: flex !important;
}

body.radio-channel-page iframe#youtube-player,
body.radio-channel-page #youtube-player,
body.radio-channel-page #youtube-player iframe {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 767px) {
  .radio-player-inner {
    padding: 6px 8px 10px;
  }
  .radio-now-stack {
    gap: 5px;
  }
  .radio-now-bar {
    gap: 8px;
    padding: 7px 8px;
  }
  .radio-now-ticker {
    height: 22px;
  }
  .radio-now-ticker-item {
    font-size: 0.7rem;
    line-height: 22px;
    letter-spacing: 0.04em;
  }
  .radio-station-select-wrap {
    flex-basis: 112px;
    min-width: 96px;
  }
  .radio-now-name {
    font-size: 0.88rem;
  }
  .radio-now-live {
    font-size: 0.58rem;
  }
  .radio-now-text {
    max-width: 108px;
  }
  .radio-eq-canvas {
    height: 28px;
  }
}

