/* ─── Music Player: FAB + Card ───────────────────────────────────────────── */

/* ─── FAB Container ──────────────────────────────────────────────────────── */
#mp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 2147483647;
  width: 56px;
  height: 56px;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#mp-fab.is-expanded {
  width: 340px;
  height: 380px;
  border-radius: 24px;
  cursor: default;
}

/* FAB icon (collapsed) */
.mp-fab-icon {
  width: 56px;
  height: 56px;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.2s;
  border-radius: 28px;
  object-fit: cover;
}

#mp-fab.is-expanded .mp-fab-icon {
  opacity: 0;
  pointer-events: none;
}

/* Player content (expanded) */
.mp-player-content {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s 0.15s;
  border-radius: 24px;
  overflow: hidden;
}

#mp-fab.is-expanded .mp-player-content {
  opacity: 1;
  pointer-events: auto;
}

/* Album art background */
#mp-art-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.8));
}

/* Close button */
.mp-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.mp-close-btn svg {
  width: 16px;
  height: 16px;
}

/* Content */
.mp-content-wrapper {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  z-index: 5;
  border-radius: 10px;
  transition: background-color 0.4s;
}

.mp-track-image {
  width: 100%;
  height: 160px;
  margin-bottom: 16px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
}

.mp-track-info {
  margin-bottom: 20px;
}

#mp-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

#mp-artist {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Progress (hidden per reference) */
.mp-progress-wrap {
  display: none;
}

/* Controls */
.mp-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.mp-btn {
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.mp-btn:hover {
  transform: scale(1.05);
}

#mp-play {
  flex: 1;
  border-radius: 28px;
}

#mp-prev,
#mp-next {
  width: 56px;
}

.mp-btn svg {
  width: 24px;
  height: 24px;
}

/* Backdrop */
#mp-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  background: transparent;
  pointer-events: none;
  transition: background 0.3s;
}

#mp-backdrop.is-open {
  background: rgba(0,0,0,0.5);
  pointer-events: auto;
}

@media (max-width: 600px) {
  #mp-fab.is-expanded {
    width: calc(100vw - 32px);
    max-width: 340px;
  }
}
