/* Fixed Cypra music player — stays on screen while scrolling */
.cypra-music {
  --cm-bg: rgba(12, 12, 14, 0.92);
  --cm-fg: #f4f4f5;
  --cm-muted: rgba(244, 244, 245, 0.65);
  --cm-accent: #ff4d00;
  --cm-border: rgba(255, 255, 255, 0.12);
  position: fixed;
  z-index: 2147483000;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 8px;
  min-width: 0;
  max-width: min(380px, calc(100vw - 32px));
  border-radius: 999px;
  background: var(--cm-bg);
  border: 1px solid var(--cm-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--cm-fg);
  font-family: "Segoe UI", system-ui, sans-serif;
  pointer-events: auto;
  user-select: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.cypra-music[hidden] {
  display: none !important;
}

.cypra-music__logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--cm-accent);
}

.cypra-music__meta {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.15;
}

.cypra-music__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cypra-music__sub {
  font-size: 10px;
  color: var(--cm-muted);
  white-space: nowrap;
}

.cypra-music__controls {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.cypra-music__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--cm-fg);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}

.cypra-music__btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.cypra-music__btn:active {
  transform: scale(0.94);
}

.cypra-music__btn svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
}

.cypra-music__btn--play {
  width: 36px;
  height: 36px;
  background: var(--cm-accent);
  color: #fff;
}

.cypra-music__btn--play:hover {
  background: #ff6320;
}

.cypra-music.is-playing .cypra-music__logo {
  animation: cypra-music-spin 8s linear infinite;
}

@keyframes cypra-music-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cypra-music.is-playing .cypra-music__logo {
    animation: none;
  }
}

@media (max-width: 480px) {
  .cypra-music {
    right: 12px;
    left: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    max-width: none;
  }
}
