:root {
  --bg: #08090d;
  --glass: rgba(18, 20, 28, 0.72);
  --glass-strong: rgba(24, 27, 38, 0.88);
  --surface: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f5fa;
  --muted: #939bb0;
  --accent: #a8c7fa;
  --accent-solid: #7cacf8;
  --on-accent: #071936;
  --live: #4ade80;
  --danger: #fb7185;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Şık Özel Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
  margin: 16px 0;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.24);
}

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--muted);
  font-size: 0.84rem;
}

.full-width {
  width: 100%;
}

.yt-hidden-host {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  bottom: 0;
  left: 0;
}

/* Dinamik Kapak Arka Planı */
.ambient-bg {
  position: fixed;
  inset: -40px;
  background-size: cover;
  background-position: center;
  filter: blur(85px) saturate(1.45);
  opacity: 0.24;
  transition: background-image 0.9s ease, opacity 0.6s ease;
  z-index: -2;
}

.ambient-vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 30% 10%, rgba(124, 172, 248, 0.08), transparent 55%),
    linear-gradient(180deg, rgba(8, 9, 13, 0.55) 0%, rgba(8, 9, 13, 0.92) 100%);
  z-index: -1;
}

/* Buton Sistemi */
.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.18s ease, filter 0.18s ease;
}

.pill-btn:active {
  transform: scale(0.96);
}

.pill-btn.primary {
  background: var(--accent);
  color: var(--on-accent);
}

.pill-btn.primary:hover {
  filter: brightness(1.08);
}

.pill-btn.subtle {
  background: var(--surface-hover);
  color: var(--text);
  border: 1px solid var(--border);
}

.pill-btn.subtle:hover {
  background: rgba(255, 255, 255, 0.14);
}

.pill-btn.danger {
  background: rgba(251, 113, 133, 0.14);
  color: var(--danger);
  border: 1px solid rgba(251, 113, 133, 0.35);
}

.pill-btn.danger:hover {
  background: rgba(251, 113, 133, 0.24);
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, transform 0.12s;
  flex-shrink: 0;
}

.icon-btn.sm {
  width: 34px;
  height: 34px;
}

.icon-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.icon-btn.active {
  color: var(--accent);
  background: rgba(168, 199, 250, 0.14);
}

.icon-btn.accent-fill {
  background: var(--accent);
  color: var(--on-accent);
}

input[type="text"],
input[type="password"],
input[type="url"] {
  width: 100%;
  padding: 11px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.18s, background 0.18s;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="url"]:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(168, 199, 250, 0.12);
}

/* Ana Grid */
.app-shell {
  display: grid;
  grid-template-columns: 268px 1fr;
  height: calc(100vh - 102px);
  gap: 12px;
  padding: 12px 12px 10px;
}

.glass-panel {
  background: var(--glass);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 16px;
  overflow-y: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sidebar-left,
.sidebar-right {
  display: flex;
  flex-direction: column;
}

/* Sol Panel */
.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 0 4px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: #071022;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 14px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  transition: background 0.16s, color 0.16s;
}

.nav-item:hover {
  background: var(--surface);
  color: var(--text);
}

.nav-item.active {
  background: rgba(168, 199, 250, 0.14);
  color: var(--accent);
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 12px 6px 8px;
}

.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.65);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(74, 222, 128, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
  }
}

.playlist-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  overflow-y: auto;
}

.pl-item {
  background: transparent;
  border: none;
  color: var(--text);
  padding: 9px 12px;
  border-radius: 11px;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.15s;
}

.pl-item:hover {
  background: var(--surface-hover);
}

.user-dock {
  position: relative;
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.16s, background 0.16s;
}

.user-dock:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
}

.user-dock.guest {
  justify-content: space-between;
}

.avatar-status-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  cursor: pointer;
}

.avatar-status-wrap .avatar {
  width: 100%;
  height: 100%;
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.avatar-status-wrap .status-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  border: 2.5px solid #141722;
}

.status-dot.online {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.55);
}

.status-dot.idle {
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.status-dot.dnd {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.status-dot.offline {
  background: #64748b;
}

.presence-text {
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.presence-text.online { color: #4ade80; }
.presence-text.idle { color: #fbbf24; }
.presence-text.dnd { color: #f87171; }
.presence-text.offline { color: #94a3b8; }

.presence-popover {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  right: 0;
  background: #171b27;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.6);
  z-index: 60;
  animation: toastIn 0.16s ease;
}

.presence-popover-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 4px 10px 6px;
}

.presence-option {
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s;
}

.presence-option:hover {
  background: rgba(255, 255, 255, 0.07);
}

.presence-option.active {
  background: rgba(168, 199, 250, 0.11);
  border-color: rgba(168, 199, 250, 0.28);
}

.presence-opt-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.presence-opt-meta strong {
  font-size: 0.84rem;
  font-weight: 600;
}

.presence-opt-meta span {
  font-size: 0.72rem;
  color: var(--muted);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
}

.user-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.user-meta strong,
.user-meta span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-meta strong {
  font-size: 0.88rem;
}

/* Orta Alan */
.main-content {
  padding: 20px 22px;
}

.view-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.view-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  padding: 6px 6px 6px 18px;
  border-radius: 999px;
  transition: border-color 0.2s, background 0.2s;
}

.search-pill:focus-within {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.09);
}

.search-pill input {
  background: transparent;
  border: none;
  padding: 6px 2px;
  font-size: 0.94rem;
}

.mood-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s, transform 0.12s;
}

.chip:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.hero-welcome {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(168, 199, 250, 0.12), rgba(99, 102, 241, 0.08));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 44px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
}

.hero-welcome h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-welcome p {
  max-width: 520px;
  line-height: 1.5;
}

/* Şarkı Satırları */
.track-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.track-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: background 0.16s, border-color 0.16s;
}

.track-row:hover {
  background: var(--surface-hover);
  border-color: var(--border);
}

.track-row.playing {
  background: rgba(168, 199, 250, 0.12);
  border-color: rgba(168, 199, 250, 0.25);
}

.track-thumb-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
}

.track-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.16s;
  color: #fff;
}

.track-row:hover .thumb-play-overlay,
.track-row.playing .thumb-play-overlay {
  opacity: 1;
}

.track-meta {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.track-title {
  font-size: 0.93rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-row.playing .track-title {
  color: var(--accent);
}

.track-sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

.track-dur {
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-right: 4px;
}

/* Topluluk Listeleri & Hero */
.pl-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 14px;
}

.pl-grid-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.pl-grid-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.pl-grid-cover {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
}

.pl-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 22px;
}

.pl-hero-cover {
  width: 136px;
  height: 136px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.pl-hero-meta {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.pl-hero-meta h1 {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  word-break: break-word;
}

.badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(168, 199, 250, 0.16);
  color: var(--accent);
}

.pl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

/* Kartlar & Aktarma */
.import-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.surface-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.brand-dot.yt {
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
}

.brand-dot.sp {
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}

.inline-form {
  display: flex;
  gap: 8px;
}

.error-msg {
  color: var(--danger);
  font-size: 0.83rem;
  min-height: 18px;
}

/* Jam Sahnesi */
.jam-stage-layout {
  display: flex;
  gap: 14px;
  align-items: stretch;
  min-height: calc(100vh - 185px);
}

.jam-stage-main {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.jam-stage-main .view-header {
  flex-wrap: wrap;
}

.stage-visual-card {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(124, 172, 248, 0.16), rgba(255, 255, 255, 0.02) 72%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.stage-cover {
  width: 176px;
  height: 176px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55);
}

#visualizer-canvas {
  width: 100%;
  max-width: 560px;
  height: 72px;
}

.jam-members {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.member-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
}

.member-pill img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.jam-chat-drawer {
  width: 280px;
  flex-shrink: 0;
  max-height: calc(100vh - 185px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 1380px) {
  .jam-stage-layout {
    flex-direction: column;
    min-height: auto;
  }

  .jam-chat-drawer {
    width: 100%;
    height: 340px;
    max-height: 360px;
  }
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-msg {
  font-size: 0.86rem;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 10px;
  border-radius: 12px;
}

.chat-msg strong {
  color: var(--accent);
  margin-right: 6px;
}

.chat-time {
  color: var(--muted);
  font-size: 0.7rem;
  float: right;
  margin-top: 2px;
}

/* Sağ Panel Akış */
.sidebar-right {
  gap: 14px;
  padding: 16px 14px;
}

.sidebar-right-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 12px;
  border-bottom: 1px solid var(--border);
}

.live-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.online-count-badge {
  font-size: 0.73rem;
  font-weight: 700;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
}

.right-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.right-members-section {
  flex: 1;
  min-height: 0;
}

.mini-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 999px;
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}

.status-group-label {
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  padding: 6px 4px 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.feed-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.16s, background 0.16s, transform 0.14s;
}

.feed-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-strong);
}

.feed-card.member-offline {
  opacity: 0.52;
  background: rgba(255, 255, 255, 0.02);
}

.feed-card.member-offline:hover {
  opacity: 0.78;
}

.feed-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feed-user .avatar-status-wrap {
  width: 36px;
  height: 36px;
  cursor: default;
}

.feed-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.me-tag {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(168, 199, 250, 0.16);
  color: var(--accent);
  flex-shrink: 0;
}

.feed-track-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(168, 199, 250, 0.08);
  border: 1px solid rgba(168, 199, 250, 0.16);
  border-radius: 10px;
  padding: 6px 9px;
  min-width: 0;
}

.feed-track {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.mini-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  flex-shrink: 0;
}

.mini-eq span {
  width: 2.5px;
  background: var(--accent);
  border-radius: 99px;
  animation: miniEq 0.9s ease-in-out infinite;
}

.mini-eq span:nth-child(1) { height: 5px; animation-delay: 0s; }
.mini-eq span:nth-child(2) { height: 11px; animation-delay: 0.2s; }
.mini-eq span:nth-child(3) { height: 7px; animation-delay: 0.4s; }

@keyframes miniEq {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1); }
}

.room-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.room-card-head strong {
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-pill-btn {
  padding: 6px 12px;
  font-size: 0.78rem;
}

.empty-feed-box {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  padding: 14px 10px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 14px;
}

/* Yüzen Alt Oynatıcı (Floating Dock) */
.player-dock {
  margin: 0 12px 12px;
  height: 78px;
  background: var(--glass-strong);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 460px) 1fr;
  align-items: center;
  gap: 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.player-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cover-trigger {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
}

.np-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-expand-hint {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
}

.cover-trigger:hover .cover-expand-hint {
  opacity: 1;
}

.now-playing-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  padding: 6px 10px;
  margin: -6px -4px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.now-playing-meta:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-strong);
}

.np-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.np-open-arrow {
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.now-playing-meta:hover .np-open-arrow {
  opacity: 1;
  transform: translateY(0);
}

.now-playing-meta strong {
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.now-playing-meta span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.transport-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.play-fab {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--text);
  color: #08090d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.15s;
}

.play-fab:hover {
  transform: scale(1.07);
  background: var(--accent);
}

.play-fab:active {
  transform: scale(0.95);
}

.play-fab.lg {
  width: 60px;
  height: 60px;
}

.timeline-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.time-label {
  font-size: 0.72rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-width: 32px;
  text-align: center;
}

/* Özel İnce Slider (Kesintisiz Dolgu + Pürüzsüz Thumb) */
.custom-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  border: none;
  padding: 0;
  outline: none;
  cursor: pointer;
  background: linear-gradient(
    to right,
    var(--accent) 0%,
    var(--accent) var(--val, 0%),
    rgba(255, 255, 255, 0.15) var(--val, 0%),
    rgba(255, 255, 255, 0.15) 100%
  );
  transition: filter 0.14s ease;
}

.custom-slider:hover,
.custom-slider:focus {
  background: linear-gradient(
    to right,
    var(--accent-solid) 0%,
    var(--accent-solid) var(--val, 0%),
    rgba(255, 255, 255, 0.2) var(--val, 0%),
    rgba(255, 255, 255, 0.2) 100%
  );
}

.custom-slider::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: transparent;
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  margin-top: -4px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.55), 0 0 0 2px rgba(168, 199, 250, 0.25);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.custom-slider:hover::-webkit-slider-thumb,
.custom-slider:active::-webkit-slider-thumb {
  transform: scale(1.18);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.65), 0 0 0 4px rgba(168, 199, 250, 0.3);
}

.custom-slider::-moz-range-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.custom-slider::-moz-range-progress {
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
}

.custom-slider::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.player-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.speed-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 5px 11px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.speed-pill:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
}

.vol-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 125px;
}

/* Tam Ekran Odak Modu */
.focus-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(8, 9, 13, 0.88);
  backdrop-filter: blur(42px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.focus-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.focus-close {
  position: absolute;
  top: 24px;
  right: 24px;
}

.focus-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  max-width: 520px;
  padding: 24px;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.focus-overlay.open .focus-content {
  transform: scale(1);
}

.focus-cover {
  width: 290px;
  height: 290px;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

.focus-content h1 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.focus-controls {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 8px;
}

/* Modallar & Toast */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 180;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.dialog {
  width: 100%;
  max-width: 400px;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  background: #161923;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  transform: scale(0.94) translateY(8px);
  transition: transform 0.22s cubic-bezier(0.2, 0, 0, 1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.modal.open .dialog {
  transform: scale(1) translateY(0);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dialog form,
#register-extra {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dialog-playlist {
  max-width: 440px;
  gap: 18px;
}

.dialog-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dialog-title-wrap h3 {
  font-size: 1.08rem;
  line-height: 1.25;
}

.dialog-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: rgba(168, 199, 250, 0.14);
  border: 1px solid rgba(168, 199, 250, 0.25);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  padding-left: 2px;
}

.toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s;
}

.toggle-card:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--border-strong);
}

.toggle-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toggle-card-info strong {
  font-size: 0.88rem;
  font-weight: 600;
}

.toggle-card-info span {
  font-size: 0.76rem;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.toggle-track::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  transform: translateY(-50%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s ease;
}

.toggle-switch input:checked + .toggle-track {
  background: var(--accent);
  border-color: var(--accent);
}

.toggle-switch input:checked + .toggle-track::after {
  transform: translate(20px, -50%);
  background: var(--on-accent);
}

.toggle-switch input:focus-visible + .toggle-track {
  box-shadow: 0 0 0 3px rgba(168, 199, 250, 0.3);
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 999px;
}

.seg-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 8px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.seg-btn.active {
  background: var(--accent);
  color: var(--on-accent);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.toast-container {
  position: fixed;
  bottom: 104px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 220;
}

.toast {
  background: #1b202e;
  color: var(--text);
  border: 1px solid var(--border-strong);
  padding: 11px 16px;
  border-radius: 14px;
  font-size: 0.86rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  animation: toastIn 0.2s ease;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobil */
.mobile-nav {
  display: none;
}

@media (max-width: 980px) {
  body {
    display: flex;
    flex-direction: column;
    height: 100dvh;
  }

  .app-shell {
    grid-template-columns: 1fr;
    flex: 1;
    min-height: 0;
    height: auto;
    padding: 8px;
  }

  .sidebar-left,
  .sidebar-right,
  .main-content {
    display: none;
    height: 100%;
  }

  .mobile-active {
    display: flex !important;
  }

  .main-content.mobile-active {
    display: block !important;
  }

  .pl-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .jam-stage-layout {
    flex-direction: column;
    height: auto;
  }

  .jam-chat-drawer {
    width: 100%;
    height: 280px;
  }

  .player-dock {
    flex-shrink: 0;
    margin: 0 8px 6px;
    height: 70px;
    padding: 0 10px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px;
  }

  .player-center {
    gap: 0;
  }

  .transport-controls {
    gap: 4px;
  }

  .timeline-row,
  #btn-shuffle,
  #btn-prev,
  #btn-repeat {
    display: none;
  }

  .mobile-nav {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 54px;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--glass-strong);
    border-top: 1px solid var(--border);
  }

  .mobile-tab {
    background: transparent;
    border: none;
    color: var(--muted);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
  }

  .mobile-tab.active {
    color: var(--accent);
  }
}


/* --- Jam Lobi, Sıra, Öneri & Kilit --- */
.jam-lobby-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.jam-queue-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.jam-suggest-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(14, 16, 24, 0.9);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.jam-queue-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.jam-q-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 13px;
}

.jam-q-row img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.jam-q-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.jam-q-meta strong {
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jam-q-meta span {
  font-size: 0.74rem;
  color: var(--muted);
}

.jam-q-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.controls-locked {
  opacity: 0.42;
  pointer-events: none;
  filter: grayscale(0.4);
}

/* --- Gelişmiş Oda Sohbeti (Silme + GIF/Foto) --- */
.chat-media-row {
  margin-bottom: 6px;
}

.chat-msg {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  font-size: 0.83rem;
}

.chat-msg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.chat-msg-author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.79rem;
  color: var(--accent);
}

.chat-msg-del {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 6px;
  font-size: 0.74rem;
  opacity: 0.7;
  transition: opacity 0.14s, color 0.14s, background 0.14s;
}

.chat-msg-del:hover {
  opacity: 1;
  color: var(--danger);
  background: rgba(251, 113, 133, 0.14);
}

.chat-msg-img {
  max-width: 100%;
  max-height: 190px;
  border-radius: 10px;
  object-fit: cover;
  margin-top: 4px;
  border: 1px solid var(--border);
}

/* --- Şarkı Sözleri (Lyrics) Paneli --- */
.lyrics-drawer {
  position: fixed;
  top: 12px;
  right: 12px;
  bottom: 102px;
  width: 340px;
  max-width: calc(100vw - 24px);
  background: rgba(18, 21, 31, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 140;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.6);
  animation: toastIn 0.18s ease;
}

.lyrics-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.lyrics-body {
  flex: 1;
  overflow-y: auto;
  white-space: pre-wrap;
  line-height: 1.75;
  font-size: 0.92rem;
  color: rgba(243, 245, 250, 0.9);
  padding-right: 4px;
}

/* --- Sağ Tık Context Menü --- */
.context-menu {
  position: fixed;
  min-width: 196px;
  background: #171b27;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 250;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.ctx-item {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  text-align: left;
  padding: 8px 12px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.14s;
}

.ctx-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.ctx-item.danger {
  color: var(--danger);
}

.ctx-item.danger:hover {
  background: rgba(251, 113, 133, 0.14);
}

/* --- Klavye Kısayolları Modalı --- */
.shortcuts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}

.shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.86rem;
}

.shortcut-key-btn {
  min-width: 90px;
  padding: 6px 12px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.07);
  color: var(--accent);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s;
}

.shortcut-key-btn.recording {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}


/* --- PC Only Gizleme (Mobil & Tablet) --- */
@media (max-width: 1024px), (pointer: coarse) {
  .desktop-only {
    display: none !important;
  }
}

/* --- Spotify Tarzı Büyük & Animasyonlu Şarkı Sözleri --- */
.lyrics-stage {
  position: fixed;
  top: 12px;
  left: 292px;
  right: 12px;
  bottom: 112px;
  background: linear-gradient(165deg, rgba(22, 27, 42, 0.96), rgba(10, 12, 19, 0.98));
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  z-index: 150;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
}

.lyrics-stage.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lyrics-stage-inner {
  width: 100%;
  height: 100%;
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lyrics-head-track {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.lyrics-mini-cover {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.lyrics-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 8px 60px;
  scroll-behavior: smooth;
}

.lyric-line {
  font-size: clamp(1.2rem, 2.1vw, 1.75rem);
  font-weight: 700;
  line-height: 1.45;
  color: rgba(243, 245, 250, 0.35);
  cursor: pointer;
  transform-origin: left center;
  transition: color 0.24s ease, transform 0.24s ease, opacity 0.24s ease;
}

.lyric-line:hover {
  color: rgba(243, 245, 250, 0.72);
}

.lyric-line.past {
  color: rgba(243, 245, 250, 0.5);
}

.lyric-line.active {
  color: #ffffff;
  transform: scale(1.04);
  text-shadow: 0 4px 24px rgba(168, 199, 250, 0.45);
}

.lyrics-plain {
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.85;
  font-weight: 600;
  color: rgba(243, 245, 250, 0.88);
  white-space: pre-wrap;
}

.lyrics-empty {
  margin: auto;
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  max-width: 340px;
}

@media (max-width: 980px) {
  .lyrics-stage {
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 136px;
    border-radius: 22px;
    border: 1px solid var(--border-strong);
  }

  .lyrics-stage-inner {
    padding: 16px 16px;
  }

  .player-right {
    display: flex !important;
    gap: 4px;
  }

  .player-right .vol-wrap,
  .player-right #btn-speed {
    display: none;
  }
}

/* --- Discord Tarzı Profil Popout Kartı & Düzenleme --- */
.feed-user.clickable {
  cursor: pointer;
}

.user-popout-card {
  width: 100%;
  max-width: 360px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(160deg, #1d263b, #0d111a);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.7);
  transform: scale(0.94) translateY(10px);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal.open .user-popout-card {
  transform: scale(1) translateY(0);
}

.popout-banner {
  position: relative;
  z-index: 1;
  height: 82px;
  background: linear-gradient(135deg, rgba(168, 199, 250, 0.28), rgba(124, 172, 248, 0.08));
  background-size: cover;
  background-position: center;
}

.popout-banner.lg {
  height: 118px;
}

.popout-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  background: rgba(8, 9, 13, 0.55);
  color: #fff;
}

.popout-body {
  position: relative;
  z-index: 2;
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.popout-avatar-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: -36px;
}

.avatar-status-wrap.lg {
  width: 72px;
  height: 72px;
}

.avatar-status-wrap.lg .avatar {
  border: 4px solid rgba(13, 17, 26, 0.9);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.avatar-status-wrap.lg .status-dot {
  width: 18px;
  height: 18px;
  border-width: 3px;
}

.popout-status-pill {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.popout-identity h3 {
  font-size: 1.2rem;
  font-weight: 800;
}

.popout-listening {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.popout-listening-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.popout-track-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.popout-track-row img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.popout-track-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.popout-track-meta strong {
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popout-preview {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, #1d263b, #0d111a);
}

.popout-preview-body {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 0 14px 12px;
  margin-top: -26px;
}

.popout-preview-body > div {
  padding-top: 26px;
  min-width: 0;
}

.popout-avatar {
  position: relative;
  z-index: 2;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #161923;
  background: #161923;
  flex-shrink: 0;
}

.popout-preview-body strong {
  display: block;
  font-size: 0.94rem;
}

.color-pair-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.color-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
}

.color-chip input[type="color"] {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}


/* --- Üst Canlı Topluluk & Sahne Şeridi (Sağ Sidebar Yerine) --- */
.live-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.live-top-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.live-users-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.live-users-strip::-webkit-scrollbar {
  display: none;
}

.live-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 11px 4px 4px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}

.live-user-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.live-user-chip.is-offline {
  opacity: 0.48;
}

.live-user-chip.is-offline:hover {
  opacity: 0.82;
}

.live-user-chip .avatar-status-wrap {
  width: 28px;
  height: 28px;
}

.live-user-chip .avatar-status-wrap .status-dot {
  width: 10px;
  height: 10px;
  border-width: 2px;
}

.live-rooms-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.live-room-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(168, 199, 250, 0.12);
  border: 1px solid rgba(168, 199, 250, 0.28);
  color: var(--accent);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.live-room-chip:hover {
  background: rgba(168, 199, 250, 0.22);
}

/* --- Yüzen Popout Kart (Adım 1 - Modal Değil) --- */
.floating-popout {
  position: fixed;
  width: 310px;
  z-index: 210;
  transform: none;
  animation: toastIn 0.16s ease;
}

.popout-profile-trigger {
  cursor: pointer;
}

.popout-profile-trigger:hover h3 {
  text-decoration: underline;
}

/* --- Tam Kullanıcı Profil Modalı (Adım 2) --- */
.full-profile-dialog {
  width: 100%;
  max-width: 540px;
  max-height: 86vh;
  overflow-y: auto;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(160deg, #1d263b, #0d111a);
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.72);
  transform: scale(0.95) translateY(8px);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal.open .full-profile-dialog {
  transform: scale(1) translateY(0);
}

.fp-body {
  padding: 0 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fp-stats-pills {
  display: flex;
  gap: 6px;
}

.fp-history-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.fp-history-list::-webkit-scrollbar {
  height: 5px;
}

.fp-history-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 99px;
  margin: 0;
}

.fp-history-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 99px;
}

.fp-history-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.32);
}

.fp-hist-chip {
  flex: 0 0 185px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s;
}

.fp-hist-chip:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

.fp-hist-chip img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.fp-hist-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fp-hist-meta strong {
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-hist-meta span {
  font-size: 0.69rem;
  color: var(--muted);
}

.fp-playlists-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 10px;
}

/* --- İstatistikler, Ortak Liste & Jam Formu --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-card strong {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-toggle {
  grid-column: span 1;
}

.jam-create-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compact-toggle {
  padding: 10px 13px;
}

.pl-collab-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .live-top-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .floating-popout {
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
  }
}


/* --- Topluluk Sayfası Kart Grid & Canlı Mini Progress --- */
.nav-online-pill {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.28);
  padding: 2px 8px;
  border-radius: 999px;
}

.community-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.community-user-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.community-user-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.community-user-card.is-offline {
  opacity: 0.62;
}

.community-user-card.is-offline:hover {
  opacity: 0.92;
}

.community-card-banner {
  position: relative;
  z-index: 1;
  height: 62px;
  background: linear-gradient(135deg, rgba(168, 199, 250, 0.24), rgba(124, 172, 248, 0.06));
  background-size: cover;
  background-position: center;
}

.community-card-body {
  position: relative;
  z-index: 2;
  padding: 0 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.community-card-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: -26px;
}

.community-card-top .avatar-status-wrap {
  width: 52px;
  height: 52px;
}

.community-card-top .avatar {
  border: 3px solid rgba(13, 17, 26, 0.9);
}

.community-card-top .status-dot {
  width: 14px;
  height: 14px;
  border-width: 2.5px;
}

.community-card-ident {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.community-card-ident strong {
  font-size: 0.96rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.community-card-track {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.community-card-track-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.community-card-track-row img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.community-card-track-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.community-card-track-meta strong {
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.community-card-track-meta span {
  font-size: 0.72rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.live-mini-progress {
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.live-mini-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.25s linear;
}


/* --- Ekolayzer Modalı & Ortak Kişi Hapı --- */
.eq-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip.active {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.eq-bands {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.eq-band-row {
  display: grid;
  grid-template-columns: 92px 1fr 52px;
  align-items: center;
  gap: 12px;
}

.eq-band-lbl {
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.eq-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.collab-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 4px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s;
}

.collab-user-pill:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--border-strong);
}

.collab-user-pill img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}


/* --- Sıradaki Şarkılar (Queue) Çekmecesi --- */
.queue-drawer {
  position: fixed;
  top: 12px;
  right: 12px;
  bottom: 112px;
  width: 350px;
  max-width: calc(100vw - 24px);
  background: rgba(16, 19, 29, 0.96);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 155;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transform: translateX(28px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.queue-drawer.open {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.queue-now-box {
  background: rgba(168, 199, 250, 0.1);
  border: 1px solid rgba(168, 199, 250, 0.24);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.queue-drawer-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-right: 2px;
}

@media (max-width: 980px) {
  .queue-drawer {
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 136px;
    width: auto;
    max-width: none;
  }
}

.discover-feed {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* --- Çalma Listesi İçi Arama & Sürükle-Bırak --- */
.pl-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--muted);
}

.pl-filter-bar input {
  background: transparent;
  border: none;
  padding: 7px 0;
  font-size: 0.88rem;
  box-shadow: none !important;
}

.drag-handle {
  color: var(--muted);
  cursor: grab;
  padding: 4px 2px;
  font-size: 0.95rem;
  letter-spacing: -1px;
  user-select: none;
  opacity: 0.55;
  transition: opacity 0.14s, color 0.14s;
}

.track-row:hover .drag-handle {
  opacity: 1;
  color: var(--text);
}

.track-row.dragging {
  opacity: 0.35;
}

.track-row.drag-over {
  border-top: 2px solid var(--accent);
  background: rgba(168, 199, 250, 0.1);
}

@media (max-width: 640px) {
  .modal {
    padding: 10px;
  }

  .dialog {
    padding: 16px;
    border-radius: 20px;
    gap: 10px;
  }

  .dialog form {
    gap: 9px;
  }

  .popout-preview .popout-banner {
    height: 56px;
  }

  .popout-avatar {
    width: 42px;
    height: 42px;
  }

  .color-chip {
    padding: 6px 8px;
    font-size: 0.78rem;
  }

  .toggle-card.compact-toggle {
    padding: 8px 11px;
  }
}


/* --- Genişletilmiş Şimdi Çalıyor Ekranı --- */
.npv-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  padding: 36px 24px;
  border-radius: 26px;
  background: radial-gradient(circle at top, var(--dynamic-glow, rgba(124, 172, 248, 0.16)), rgba(255, 255, 255, 0.02) 70%);
  border: 1px solid var(--border);
}

.npv-cover-wrap {
  width: min(290px, 72vw);
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 26px 65px rgba(0, 0, 0, 0.65);
}

.npv-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.npv-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 560px;
}

.npv-meta h1 {
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.npv-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.pl-hero-desc {
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 540px;
}

/* --- Jam Canlı Tepkiler --- */
.jam-reactions-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 4;
}

.floating-react {
  position: absolute;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 18, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 1.15rem;
  animation: floatReact 2.2s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.floating-react small {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
}

@keyframes floatReact {
  0% { opacity: 0; transform: translateY(10px) scale(0.75); }
  15% { opacity: 1; transform: translateY(-18px) scale(1.06); }
  100% { opacity: 0; transform: translateY(-210px) scale(0.95); }
}

.jam-react-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
  z-index: 5;
}

.react-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.14s ease, border-color 0.14s ease;
}

.react-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--border-strong);
  transform: scale(1.12);
}

.react-btn:active {
  transform: scale(0.92);
}


/* --- Uygulamayı Yükle Kartı --- */
.install-promo-btn {
  margin-top: 10px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 14px;
  border: 1px solid rgba(168, 199, 250, 0.22);
  background: linear-gradient(135deg, rgba(168, 199, 250, 0.12), rgba(168, 199, 250, 0.03));
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}

.install-promo-btn:hover {
  background: linear-gradient(135deg, rgba(168, 199, 250, 0.2), rgba(168, 199, 250, 0.06));
  border-color: rgba(168, 199, 250, 0.4);
  transform: translateY(-1px);
}

.install-promo-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(168, 199, 250, 0.18);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.install-promo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.install-promo-text strong {
  font-size: 0.82rem;
  font-weight: 700;
}

.install-promo-text span {
  font-size: 0.71rem;
  color: var(--muted);
}

.install-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.install-step {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  font-size: 0.84rem;
  line-height: 1.45;
}


/* --- Ritimo Marka Logosu & Wordmark --- */
.brand-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
}

.brand-o {
  display: inline-block;
  margin-left: 1px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent) 0%, #60a5fa 55%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(168, 199, 250, 0.45));
}


/* --- Odak Modu & Şimdi Çalıyor Ses Dalgası --- */
.wave-canvas {
  width: 100%;
  max-width: 520px;
  height: 68px;
  display: block;
  margin: 4px auto;
}

.focus-wave {
  max-width: 600px;
  height: 84px;
  margin: 6px auto 2px;
}

.focus-time-row {
  width: 100%;
  max-width: 440px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.focus-prog-track {
  flex: 1;
  height: 4px;
}


/* ==========================================================================
   YT MUSIC TARZI DÜZ, SABİT & TAM EKRAN ARAYÜZ SİSTEMİ
   ========================================================================== */
:root {
  --bg: #030303;
  --glass: #030303;
  --glass-strong: #161616;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-hover: rgba(255, 255, 255, 0.11);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
}

body {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  background: #030303;
}

.ambient-bg {
  opacity: 0.14;
}

.ambient-vignette {
  background: radial-gradient(circle at 50% 0%, var(--dynamic-glow, rgba(124, 172, 248, 0.12)), transparent 52%),
    linear-gradient(180deg, rgba(3, 3, 3, 0.45) 0%, #030303 100%);
}

/* Sabit Üst Header */
.top-header {
  height: 64px;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 240px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 0 20px 0 18px;
  background: rgba(3, 3, 3, 0.94);
  border-bottom: 1px solid var(--border);
  z-index: 80;
}

.top-header-left {
  display: flex;
  align-items: center;
}

.top-header-left .brand-logo {
  cursor: pointer;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 520px;
  height: 40px;
  padding: 0 6px 0 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--muted);
  transition: background 0.16s, border-color 0.16s;
}

.header-search:focus-within {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--text);
}

.header-search input {
  background: transparent;
  border: none;
  padding: 6px 0;
  font-size: 0.9rem;
  border-radius: 0;
  box-shadow: none !important;
}

.header-search-btn {
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.14s;
}

.header-search-btn:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.top-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Ana Kabuk: Sıfır Dış Boşluk, Düz Sabit Kenarlar */
.app-shell {
  flex: 1;
  min-height: 0;
  height: auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  padding: 0;
}

.sidebar-left {
  background: #030303;
  border: none;
  border-right: 1px solid var(--border);
  border-radius: 0;
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: none;
}

.nav-item {
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.9rem;
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
}

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 14px 4px;
}

.new-pl-sidebar-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  margin-bottom: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.new-pl-sidebar-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.pl-item {
  border-radius: 8px;
}

.user-dock {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.install-promo-btn {
  border-radius: 10px;
}

/* Ana İçerik Alanı: Düz & Geniş */
.main-content {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 24px 36px 36px;
  overflow-y: auto;
}

::-webkit-scrollbar-track {
  margin: 0;
}

.chip {
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.84rem;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.chip:hover {
  background: rgba(255, 255, 255, 0.17);
}

.hero-welcome {
  border-radius: 12px;
  padding: 24px 26px;
}

.surface-card,
.pl-hero,
.pl-grid-card,
.stat-card,
.stage-visual-card,
.npv-card,
.community-user-card {
  border-radius: 12px;
}

.track-row {
  border-radius: 8px;
}

.track-thumb {
  border-radius: 6px;
}

/* Şarkı Sözleri Paneli: Ana İçerikle Birebir Eşit */
.lyrics-stage {
  top: 64px;
  left: 240px;
  right: 0;
  bottom: 72px;
  border-radius: 0;
  border: none;
  border-left: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(16, 18, 26, 0.98), #050507);
}

/* Tam Genişlik Sabit Alt Oynatıcı (YT Music Tarzı) */
.player-dock {
  position: relative;
  flex-shrink: 0;
  margin: 0;
  height: 72px;
  width: 100%;
  background: #181818;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.55);
  z-index: 90;
}

.player-top-timeline {
  position: absolute;
  top: -5px;
  left: 0;
  right: 0;
  height: 10px;
  display: flex;
  align-items: center;
  z-index: 95;
}

.player-edge-slider {
  height: 3px;
  border-radius: 0;
  transition: height 0.12s ease;
}

.player-top-timeline:hover .player-edge-slider {
  height: 5px;
}

.player-edge-slider::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 0;
}

.player-top-timeline:hover .player-edge-slider::-webkit-slider-runnable-track {
  height: 5px;
}

.player-edge-slider::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  margin-top: -4.5px;
  opacity: 0;
}

.player-top-timeline:hover .player-edge-slider::-webkit-slider-thumb,
.player-edge-slider:active::-webkit-slider-thumb {
  opacity: 1;
}

.player-bar-inner {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(240px, 520px) minmax(200px, 1fr);
  align-items: center;
  gap: 16px;
  padding: 0 18px;
}

.player-controls-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.player-time-readout {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.time-sep {
  opacity: 0.5;
}

.player-left {
  justify-content: center;
}

.cover-trigger {
  width: 44px;
  height: 44px;
  border-radius: 6px;
}

.play-fab {
  width: 38px;
  height: 38px;
  background: transparent;
  color: #ffffff;
}

.play-fab:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.06);
}

.play-fab.lg {
  background: #ffffff;
  color: #030303;
}

.toast-container {
  bottom: 86px;
}

/* Mobil Uyum */
@media (max-width: 980px) {
  .top-header {
    grid-template-columns: auto 1fr;
    padding: 0 12px;
    gap: 10px;
    height: 58px;
  }

  .top-header-right {
    display: none;
  }

  .header-search-btn {
    display: none;
  }

  .main-content {
    padding: 14px 14px 20px;
  }

  .player-dock {
    height: 64px;
    margin: 0;
    padding: 0;
  }

  .player-bar-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 0 10px;
    gap: 8px;
  }

  .player-time-readout,
  #btn-prev,
  #btn-repeat,
  #btn-shuffle,
  #btn-speed,
  .vol-wrap {
    display: none !important;
  }

  .player-left {
    justify-content: flex-start;
  }

  .player-right {
    display: flex !important;
    gap: 2px;
  }

  .lyrics-stage {
    top: 58px;
    left: 0;
    right: 0;
    bottom: 118px;
    border-left: none;
  }
}


/* ==========================================================================
   GENİŞLETİLEBİLİR SIDEBAR, YT MUSIC RAFLAR, KOYU MODAL & TAM MOBİL UYUM
   ========================================================================== */
:root {
  --sidebar-w: 240px;
}

.top-header {
  grid-template-columns: var(--sidebar-w) 1fr auto;
}

.app-shell {
  grid-template-columns: var(--sidebar-w) 1fr;
}

.sidebar-left {
  position: relative;
}

.lyrics-stage {
  left: var(--sidebar-w);
}

.sidebar-resizer {
  position: absolute;
  top: 0;
  right: -3px;
  bottom: 0;
  width: 6px;
  cursor: col-resize;
  z-index: 30;
  transition: background 0.14s;
}

.sidebar-resizer:hover,
body.resizing-sidebar .sidebar-resizer {
  background: var(--accent);
}

body.resizing-sidebar {
  user-select: none;
  cursor: col-resize;
}

/* Ana Sayfa Rafları (YT Music Tarzı) */
.yt-shelf {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shelf-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.shelf-header h2 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.shelf-header h3 {
  font-size: 1.08rem;
  font-weight: 700;
}

.shelf-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 2px;
}

.yt-mix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px 14px;
}

.yt-mix-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.14s;
  min-width: 0;
}

.yt-mix-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.yt-mix-item img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.yt-mix-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.yt-mix-meta strong {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yt-mix-meta span {
  font-size: 0.77rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yt-card-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(168px, 182px);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.yt-album-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  min-width: 0;
}

.yt-album-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.yt-album-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.22s ease;
}

.yt-album-card:hover .yt-album-cover-wrap img {
  transform: scale(1.04);
}

.yt-album-play-fab {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.16s, transform 0.16s;
}

.yt-album-card:hover .yt-album-play-fab {
  opacity: 1;
  transform: translateY(0);
}

.yt-album-card strong {
  font-size: 0.88rem;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.yt-album-card span {
  font-size: 0.77rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Keşfet Sayfası */
.explore-top-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.explore-big-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1c1c1e;
  color: var(--text);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.explore-big-card:hover {
  background: #27272a;
  border-color: rgba(255, 255, 255, 0.18);
}

.mood-genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 10px;
}

.genre-tile {
  position: relative;
  text-align: left;
  padding: 13px 14px 13px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #18181b;
  color: var(--text);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.14s;
}

.genre-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--g, var(--accent));
}

.genre-tile:hover {
  background: #242429;
}

/* Kitaplık Yuvarlak Sanatçılar */
.artists-circle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 16px;
}

.artist-circle-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  cursor: pointer;
}

.artist-circle-card img {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.18s, border-color 0.18s;
}

.artist-circle-card:hover img {
  transform: scale(1.05);
  border-color: var(--accent);
}

.artist-circle-card strong {
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Karanlık Listeye Ekle & EQ Bağlantı Kartı */
.dialog-dark {
  background: #0e1016;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.dark-pl-choices {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 290px;
  overflow-y: auto;
}

.dark-pl-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s;
}

.dark-pl-row:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

.dark-pl-row img {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
}

.dark-pl-row-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dark-pl-row-meta strong {
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eq-connect-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(168, 199, 250, 0.08);
  border: 1px solid rgba(168, 199, 250, 0.22);
}

.eq-connect-card > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.eq-connect-card strong {
  font-size: 0.86rem;
}

.eq-connect-card span {
  font-size: 0.74rem;
}

/* ==========================================================================
   KESİN MOBİL RESPONSIVE (EN SONDA - HİÇBİR KURAL EZEMEZ!)
   ========================================================================== */
@media (max-width: 980px) {
  .top-header {
    grid-template-columns: auto 1fr !important;
    height: 56px;
    padding: 0 12px;
    gap: 10px;
  }

  .app-shell {
    grid-template-columns: 1fr !important;
  }

  .sidebar-left,
  .main-content {
    display: none !important;
  }

  .sidebar-left.mobile-active {
    display: flex !important;
    width: 100% !important;
    border-right: none;
  }

  .main-content.mobile-active {
    display: block !important;
    width: 100% !important;
    padding: 14px 14px 20px;
  }

  .sidebar-resizer {
    display: none !important;
  }

  .explore-top-cards {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .explore-big-card {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 13px 16px;
    gap: 12px;
    font-size: 0.94rem;
  }

  .yt-mix-grid {
    grid-template-columns: 1fr;
  }

  .yt-card-row {
    grid-auto-columns: minmax(144px, 152px);
    gap: 12px;
  }

  .player-dock {
    height: 62px;
  }

  .player-bar-inner {
    grid-template-columns: minmax(0, 1fr) auto !important;
    padding: 0 10px;
    gap: 8px;
  }

  /* Mobilde YT Music gibi: Sol = Kapak + İsim, Sağ = Oynat + Sonraki */
  .player-controls-left {
    order: 2;
    gap: 2px;
  }

  .player-left {
    order: 1;
    justify-content: flex-start;
  }

  .player-right,
  #btn-player-add-pl,
  #btn-prev,
  .player-time-readout {
    display: none !important;
  }

  .mobile-nav {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    height: 54px;
  }

  .lyrics-stage {
    top: 56px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 116px !important;
    border-left: none;
  }
}


/* ==========================================================================
   ŞEFFAF-SİYAH HEADER, MOBİL HAMBURGER DRAWER, VİDEO MODU & PROFİL SAYFASI
   ========================================================================== */
.top-header {
  background: transparent;
  border-bottom-color: transparent;
  transition: background 0.22s ease, border-color 0.22s ease;
}

.top-header.scrolled {
  background: rgba(3, 3, 3, 0.96);
  border-bottom-color: var(--border);
  backdrop-filter: blur(16px);
}

.mobile-only-btn {
  display: none;
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 160;
}

/* Şimdi Çalıyor Video Modu (YT Kontrolleri Gizli, Sadece Bizim Overlay) */
.npv-mode-switch {
  width: 210px;
}

.npv-video-stage {
  position: relative;
  width: min(680px, 100%);
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.7);
}

.npv-video-slot {
  position: relative;
  width: 100%;
  height: 100%;
}

.yt-hidden-host.in-video-stage {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 1 !important;
  pointer-events: none !important;
}

.yt-hidden-host.in-video-stage iframe {
  width: 100% !important;
  height: 100% !important;
  border: none;
  pointer-events: none !important;
}

.npv-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, transparent 32%, transparent 75%, rgba(0, 0, 0, 0.32) 100%);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.npv-video-stage:hover .npv-video-overlay {
  opacity: 1;
}

.npv-video-top-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
}

.npv-vid-icon {
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
}

.npv-vid-icon:hover {
  background: rgba(0, 0, 0, 0.82);
}

/* Tam Sayfa Kullanıcı Profili (/kullanici_adi) */
.profile-page-card {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(160deg, #1d263b, #0d111a);
}

.profile-page-card .popout-banner.lg {
  height: 168px;
}

/* Mobil: YT Music Tarzı Hamburger Drawer + En Altta Sadece Player */
@media (max-width: 980px) {
  .mobile-only-btn {
    display: inline-flex;
  }

  .top-header-left {
    gap: 8px;
  }

  .main-content {
    display: block !important;
    width: 100% !important;
    padding: 14px 14px 20px;
  }

  .sidebar-left {
    display: flex !important;
    position: fixed !important;
    top: 0;
    left: 0;
    bottom: 0;
    width: 270px !important;
    max-width: 82vw;
    z-index: 170;
    background: #0a0a0c;
    border-right: 1px solid var(--border-strong);
    transform: translateX(-105%);
    transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .sidebar-left.drawer-open {
    transform: translateX(0);
  }

  .lyrics-stage {
    bottom: 62px !important;
  }
}


/* ==========================================================================
   SOL SIDEBAR TAM BOY KARANLIK + SAĞ SÜTUN HEADER + KESİNTİSİZ VİDEO + PROFİL HİZA
   ========================================================================== */
.sidebar-brand-row {
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 8px 6px;
  flex-shrink: 0;
}

.sidebar-brand-row .brand-logo {
  cursor: pointer;
}

.main-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.main-column .top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 64px;
  padding: 0 36px;
  flex-shrink: 0;
}

.mobile-only-flex {
  display: none;
  align-items: center;
  gap: 8px;
}

.main-column .main-content {
  flex: 1;
  min-height: 0;
}

.fp-stats-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 32px;
}

/* Kesintisiz Fixed Video Host (DOM Taşımadan Sadece Koordinat Günceller) */
.yt-hidden-host.video-docked {
  position: fixed !important;
  opacity: 1 !important;
  z-index: 40 !important;
  border-radius: 12px;
  overflow: hidden;
  pointer-events: none !important;
}

.yt-hidden-host.video-docked iframe {
  width: 100% !important;
  height: 100% !important;
  border: none;
  pointer-events: none !important;
}

.npv-video-overlay {
  z-index: 45;
}

@media (max-width: 980px) {
  .mobile-only-flex {
    display: flex;
  }

  .main-column .top-header {
    padding: 0 12px;
    height: 58px;
  }

  .main-column .main-content {
    padding: 14px 14px 20px;
  }
}

/* ==========================================================================
   SIDEBAR SCROLL FIX + BANNER FEATHERING + FULL-WIDTH PROFILE + MODERN TABS + VIDEO PERF
   ========================================================================== */

/* 1. Sol Sidebar Yatay Scrollbar Düzeltmesi */
.sidebar-left {
  overflow-x: hidden !important;
}

.sidebar-resizer {
  right: 0 !important;
  width: 5px !important;
}

/* 2. Banner - Kart/Sayfa Birleşim Yumuşatma (Soft Gradient Feathering) */
.popout-banner,
.community-card-banner,
.fp-banner-hero {
  position: relative;
  overflow: hidden;
}

.popout-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58%;
  background: linear-gradient(to bottom, transparent 0%, rgba(13, 17, 26, 0.55) 58%, rgba(13, 17, 26, 0.98) 100%);
  pointer-events: none;
}

.community-card-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62%;
  background: linear-gradient(to bottom, transparent 0%, rgba(20, 20, 22, 0.6) 60%, #141416 100%);
  pointer-events: none;
}

/* 3. Tam Genişlik Sayfa Tipi Profil (/kullanici_adi - YT Music Esintili) */
.profile-page-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.fp-banner-hero {
  width: 100%;
  height: 220px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  background-color: #141416;
}

.fp-banner-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(3, 3, 3, 0.08) 0%, rgba(3, 3, 3, 0.45) 55%, #030303 100%);
  pointer-events: none;
}

.fp-hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: -78px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.fp-hero-left {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.avatar-status-wrap.xl {
  position: relative;
  width: 124px;
  height: 124px;
  flex-shrink: 0;
}

.avatar-status-wrap.xl .avatar {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #030303;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
}

.avatar-status-wrap.xl .status-dot {
  width: 20px;
  height: 20px;
  right: 6px;
  bottom: 6px;
  border: 3px solid #030303;
}

.fp-hero-identity {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.fp-hero-identity h1 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #ffffff;
}

.fp-hero-subrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.92rem;
}

.fp-dot-sep {
  color: rgba(255, 255, 255, 0.3);
}

.fp-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.fp-sections {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 0 8px;
}

.fp-listening-wide {
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
}

.fp-listening-wide .popout-track-row {
  gap: 14px;
}

.fp-listening-wide .popout-track-row img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
}

.fp-section-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fp-section-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fp-section-head h3 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.fp-history-rows {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fp-track-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.14s ease;
}

.fp-track-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.fp-track-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #18181b;
}

.fp-track-title-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fp-track-title-col strong {
  font-size: 0.94rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-track-title-col span {
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-track-time {
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* 4. Jam Sahnesi & Diğer Sekmeler: Ana Sayfa / Keşfet Tarzı Modern Düz Tasarım */
#view-jam .jam-create-card,
#view-import .surface-card,
#view-history .stat-card,
#view-history .toggle-card,
#view-jam .stage-visual-card,
#view-jam .jam-chat-drawer,
#view-jam .jam-queue-box,
#view-community .community-user-card,
#view-public-playlists .pl-grid-card {
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: none;
}

#view-jam .jam-create-card {
  padding: 26px 28px;
  background: linear-gradient(135deg, #17171c 0%, #111114 100%);
}

#view-jam .jam-create-card h2 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-top: 4px;
}

#view-jam .compact-toggle {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
}

#view-jam .stage-visual-card {
  padding: 28px;
  background: linear-gradient(180deg, #18181d 0%, #111114 100%);
}

#view-import .surface-card {
  padding: 24px;
  gap: 14px;
}

#view-import .view-header h2,
#view-history .view-header h2,
#view-community .view-header h2,
#view-public-playlists .view-header h2 {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

#view-community .community-user-card:hover {
  background: #1a1a1e;
  border-color: rgba(255, 255, 255, 0.14);
}

/* 5. Video Modu Performans İyileştirmesi + Tam Ekran Odak Video Modu */
body.video-mode-active .ambient-bg {
  opacity: 0 !important;
  filter: none !important;
  transition: none !important;
}

.focus-overlay {
  background: rgba(6, 7, 10, 0.96) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.focus-mode-switch {
  width: 210px;
}

.focus-overlay.focus-video-active .focus-content {
  max-width: 920px;
  width: 100%;
}

.focus-video-stage {
  position: relative;
  width: min(820px, 86vw);
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.75);
}

.yt-hidden-host.video-docked.in-focus {
  z-index: 160 !important;
}

.focus-video-stage .npv-video-overlay {
  z-index: 165 !important;
}

.yt-hidden-host:fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
  z-index: 9999 !important;
  opacity: 1 !important;
}

@media (max-width: 980px) {
  .fp-banner-hero {
    height: 150px;
    border-radius: 10px;
  }

  .fp-hero-header {
    margin-top: -54px;
    padding: 0 10px;
    gap: 14px;
  }

  .avatar-status-wrap.xl,
  .avatar-status-wrap.xl .avatar {
    width: 88px;
    height: 88px;
  }

  .fp-hero-left {
    gap: 14px;
  }

  .focus-video-stage {
    width: 94vw;
  }
}

/* ==========================================================================
   PROFİL SCROLL FİX + RİTİMO HESABI MODAL + BLUETOOTH FOLLOW BAR + JAM QUEUE FİX
   ========================================================================== */

/* 1. Profil "Son 10 Dinleme Etkinliği" Scroll Bug Düzeltmesi */
.fp-section-block,
.fp-history-rows,
#fp-history-list {
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
}

/* 2. Bluetooth Tarzı Birlikte Dinleme Barı */
.follow-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 28px;
  background: linear-gradient(90deg, rgba(168, 199, 250, 0.14), rgba(20, 20, 24, 0.95));
  border-bottom: 1px solid rgba(168, 199, 250, 0.25);
  flex-shrink: 0;
}

.follow-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
}

.follow-banner-left .avatar.sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

/* 3. Modern Ritimo Hesabı Modalı & Avatar Yükleme + Önizleme */
.dialog-auth {
  background: #141416 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  max-width: 440px !important;
  padding: 24px !important;
}

.auth-modal-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
}

.auth-reg-extra {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.avatar-upload-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.avatar-preview-lg {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(168, 199, 250, 0.45);
  background: #0c0c0f;
  flex-shrink: 0;
}

.avatar-upload-controls {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.upload-file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.84rem;
}

/* 4. Jam Sırası & Şarkı Öner Sıkışıklık Düzeltmesi */
.jam-queue-box {
  padding: 20px 22px !important;
  gap: 14px !important;
  display: flex;
  flex-direction: column;
}

#jam-suggest-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

#jam-suggest-results {
  max-height: 360px !important;
  overflow-y: auto;
  padding: 10px !important;
  gap: 8px !important;
  display: flex;
  flex-direction: column;
  background: #0d0d10;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

#jam-suggest-results .jam-suggest-row,
#jam-suggest-results .jam-q-row {
  padding: 10px 12px !important;
  gap: 12px !important;
  min-height: 62px;
  align-items: center;
  background: #151519;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

#jam-queue-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 5. E-posta Input Tasarım Düzeltmesi + Rozetler + Recap Modal + Discord RPC Modal */
input[type="email"] {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b0b0e;
  color: var(--text);
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.16s ease, background 0.16s ease;
}

input[type="email"]:focus {
  border-color: var(--accent);
  background: #101116;
}

.fp-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.ritimo-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #e5e7eb;
  background: rgba(168, 199, 250, 0.12);
  border: 1px solid rgba(168, 199, 250, 0.28);
}

.dialog-recap {
  background: #141416 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  max-width: 720px !important;
  width: 94vw !important;
  padding: 24px !important;
}

.recap-body-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 12px;
}

.recap-canvas-wrap {
  width: 240px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #08090d;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

#recap-canvas {
  width: 100%;
  height: auto;
  display: block;
}

.recap-info-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.recap-stat-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.recap-badges-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
}

.rpc-status-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  font-weight: 600;
}

.rpc-status-box .status-dot {
  position: static;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

@media (max-width: 680px) {
  .recap-body-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .recap-info-col {
    width: 100%;
  }
}

/* 6. Arama Kanalları Şeridi + Kilit SVG + Arkadaşlar & DM Drawer */
.search-channels-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  margin-bottom: 10px;
}

.channel-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #f3f4f6;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.14s, border-color 0.14s;
}

.channel-pill:hover {
  background: #1f2026;
  border-color: rgba(168, 199, 250, 0.45);
}

.channel-pill img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.clickable-channel,
#np-sub {
  cursor: pointer;
}

.clickable-channel:hover,
#np-sub:hover {
  color: var(--accent);
  text-decoration: underline;
}

.lock-svg-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.social-trigger-btn {
  position: relative;
}

.social-unread-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 72px;
  width: 360px;
  max-width: 94vw;
  z-index: 160;
  background: #0f1014;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.social-drawer.open {
  transform: translateX(0);
}

.social-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.social-drawer-head h3 {
  font-size: 1rem;
  font-weight: 700;
}

.social-view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  overflow-y: auto;
  gap: 10px;
}

.social-subhead {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 4px;
}

.social-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: #16171d;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.social-row.clickable {
  cursor: pointer;
}

.social-row.clickable:hover {
  background: #1e2028;
}

.social-row .avatar.sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.social-row-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.social-row-meta strong {
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-row-meta span {
  font-size: 0.76rem;
}

.dm-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.dm-msg {
  max-width: 86%;
  padding: 9px 12px;
  border-radius: 12px;
  background: #181a22;
  border: 1px solid rgba(255, 255, 255, 0.07);
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dm-msg.me {
  align-self: flex-end;
  background: rgba(168, 199, 250, 0.14);
  border-color: rgba(168, 199, 250, 0.28);
}

.dm-text {
  font-size: 0.88rem;
  word-break: break-word;
}

.dm-time {
  font-size: 0.68rem;
  color: var(--muted);
  align-self: flex-end;
}

.dm-track-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.35);
}

.dm-track-card img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.dm-track-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.dm-track-meta strong {
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dm-track-meta span {
  font-size: 0.72rem;
}

.dm-quick-share {
  padding-top: 6px;
}

.dm-form {
  display: flex;
  gap: 8px;
}

@media (max-width: 980px) {
  .social-drawer {
    bottom: 62px;
    width: 100vw;
    max-width: 100vw;
  }
}
