/* ============================================================
   Bruckmed — Ambient Player mini oynatıcı görünümü
   Sol-alt köşede; varsayılan: küçük 🎵 pili. Tıklayınca açılır.
   ============================================================ */
.bm-amb {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9990;            /* modal/onboarding'in altında kalsın diye orta seviye */
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
}

/* küçük yuvarlak tetik (her zaman görünür) */
.bm-amb-toggle {
  width: 44px; height: 44px;
  border: none;
  border-radius: 999px;
  background: var(--brand-gradient, linear-gradient(135deg, #134e4a, #0d9488));
  color: #fff;
  box-shadow: var(--shadow-md, 0 4px 10px rgba(0,0,0,.18));
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  line-height: 1;
  transition: transform .15s ease, box-shadow .15s ease;
  flex: 0 0 auto;
}
.bm-amb-toggle:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg, 0 8px 18px rgba(0,0,0,.22)); }
.bm-amb-toggle:active { transform: translateY(0); }

/* çalarken hafif nabız */
.bm-amb.bm-playing .bm-amb-note { animation: bm-pulse 1.8s ease-in-out infinite; display:inline-block; }
@keyframes bm-pulse { 0%,100% { transform: scale(1); opacity:.95 } 50% { transform: scale(1.15); opacity:1 } }

/* açılır panel */
.bm-amb-panel {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, #e4e4e7);
  border-radius: 999px;
  padding: 6px 8px 6px 12px;
  box-shadow: var(--shadow-lg, 0 10px 20px rgba(0,0,0,.12));
  max-width: 78vw;
}
.bm-amb.bm-open .bm-amb-panel { display: flex; }

.bm-amb-panel button {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text, #09090b);
  font-size: 15px;
  width: 30px; height: 30px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  transition: background .12s ease;
  flex: 0 0 auto;
}
.bm-amb-panel button:hover { background: var(--bg-muted, #f4f4f5); }
.bm-amb-pp { color: var(--brand-primary, #0d9488) !important; font-size: 13px; }
.bm-amb-close { color: var(--text-subtle, #a1a1aa) !important; }

.bm-amb-meta {
  font-size: 12px;
  color: var(--text-muted, #71717a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}
.bm-amb-title { font-weight: 500; }

/* ses sürgüsü */
.bm-amb-vol {
  -webkit-appearance: none; appearance: none;
  width: 72px; height: 4px;
  border-radius: 999px;
  background: var(--border-strong, #d4d4d8);
  outline: none;
  cursor: pointer;
  flex: 0 0 auto;
}
.bm-amb-vol::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--brand-primary, #0d9488);
  box-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.bm-amb-vol::-moz-range-thumb {
  width: 13px; height: 13px; border: none; border-radius: 50%;
  background: var(--brand-primary, #0d9488);
}

/* mobil: sürgü ve meta'yı sadeleştir */
@media (max-width: 480px) {
  .bm-amb { left: 10px; bottom: 10px; }
  .bm-amb-toggle { width: 36px; height: 36px; font-size: 15px; opacity: .82; }
  .bm-amb-toggle:hover, .bm-amb.bm-open .bm-amb-toggle, .bm-amb.bm-playing .bm-amb-toggle { opacity: 1; }
  .bm-amb-meta { display: none; }
  .bm-amb-vol { width: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .bm-amb.bm-playing .bm-amb-note { animation: none; }
  .bm-amb-toggle { transition: none; }
}
