.wba-player {
  position: fixed;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 999999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wba-position-left { left: 18px; }
.wba-position-right { right: 18px; }
.wba-position-center { left: 50%; transform: translateX(-50%); }

.wba-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(22, 34, 29, 0.94);
  color: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.wba-toggle:hover {
  background: rgba(37, 57, 48, 0.98);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.wba-toggle:focus-visible {
  outline: 3px solid #8fac1a;
  outline-offset: 3px;
}

.wba-icon {
  position: relative;
  display: inline-block;
  width: 15px;
  height: 16px;
  flex: 0 0 15px;
}

.is-paused .wba-icon::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 2px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid currentColor;
}

.is-playing .wba-icon::before,
.is-playing .wba-icon::after {
  content: "";
  position: absolute;
  top: 1px;
  width: 5px;
  height: 14px;
  border-radius: 1px;
  background: currentColor;
}

.is-playing .wba-icon::before { left: 1px; }
.is-playing .wba-icon::after { right: 1px; }

.autoplay-blocked .wba-toggle {
  animation: wba-pulse 1.8s ease-in-out 2;
}

@keyframes wba-pulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.24); }
  50% { box-shadow: 0 8px 30px rgba(143, 172, 26, 0.58); }
}

@media (max-width: 520px) {
  .wba-player { bottom: max(12px, env(safe-area-inset-bottom)); }
  .wba-position-left { left: 12px; }
  .wba-position-right { right: 12px; }
  .wba-toggle { min-height: 42px; padding: 9px 13px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .wba-toggle { transition: none; }
  .autoplay-blocked .wba-toggle { animation: none; }
}

