/* =============================================
   Beat Player — dark/minimal
   ============================================= */

.bp-wrap {
  background: #0d0d0d;
  border: 1px solid #1e1e1e;
  border-radius: 16px;
  overflow: hidden;
  max-width: 780px;
  margin: 0 auto;
}

/* ---- Track List ---- */
.bp-track-list {
  padding: 0;
}

.bp-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid #161616;
  transition: background 0.2s;
  cursor: default;
}

.bp-track:last-child {
  border-bottom: none;
}

.bp-track:hover {
  background: #131313;
}

.bp-track.active {
  background: rgba(107, 47, 160, 0.08);
  border-left: 2px solid #6B2FA0;
}

.bp-track-play {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #a0a0a0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.bp-track-play:hover,
.bp-track.active .bp-track-play {
  border-color: #6B2FA0;
  color: #fff;
  background: rgba(107, 47, 160, 0.15);
}

.bp-icon-play-sm,
.bp-icon-pause-sm {
  width: 14px;
  height: 14px;
  fill: currentColor;
  pointer-events: none;
}

.bp-track-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bp-track-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f0f0f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Source Sans Pro', sans-serif;
}

.bp-track-meta {
  font-size: 0.75rem;
  color: #555;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bp-track.active .bp-track-title {
  color: #c084fc;
}

/* ---- License + Buy ---- */
.bp-track-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.bp-lic-select {
  background: #161616;
  border: 1px solid #2a2a2a;
  color: #a0a0a0;
  font-size: 0.78rem;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Source Sans Pro', sans-serif;
  transition: border-color 0.2s;
  max-width: 180px;
}

.bp-lic-select:focus {
  outline: none;
  border-color: #6B2FA0;
  color: #f0f0f0;
}

.bp-buy-btn {
  background: #6B2FA0;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.1s;
  font-family: 'Source Sans Pro', sans-serif;
  white-space: nowrap;
}

.bp-buy-btn:hover {
  background: #8B4FC0;
}

.bp-buy-btn:active {
  transform: scale(0.97);
}

.bp-buy-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---- Sticky Player Bar ---- */
.bp-player {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #0a0a0a;
  border-top: 1px solid #1e1e1e;
}

.bp-player-left {
  flex-shrink: 0;
}

.bp-play-main {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #6B2FA0;
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.bp-play-main:hover {
  background: #8B4FC0;
}

.bp-play-main:active {
  transform: scale(0.95);
}

.bp-icon-play,
.bp-icon-pause {
  width: 18px;
  height: 18px;
  fill: #fff;
  pointer-events: none;
}

.bp-player-mid {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.bp-now-playing {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.bp-now-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #e0e0e0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Source Sans Pro', sans-serif;
}

.bp-now-meta {
  font-size: 0.72rem;
  color: #444;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.bp-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bp-time {
  font-size: 0.7rem;
  color: #444;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  font-family: monospace;
}

.bp-progress-bar {
  flex: 1;
  height: 3px;
  background: #222;
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.bp-progress-bar:hover .bp-progress-thumb {
  opacity: 1;
}

.bp-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: #6B2FA0;
  border-radius: 2px;
  pointer-events: none;
  transition: width 0.1s linear;
}

.bp-progress-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  left: 0%;
}

/* ---- Volume ---- */
.bp-player-right {
  flex-shrink: 0;
}

.bp-vol-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.bp-vol-icon {
  width: 16px;
  height: 16px;
  color: #444;
  flex-shrink: 0;
  fill: currentColor;
}

.bp-vol {
  -webkit-appearance: none;
  width: 72px;
  height: 3px;
  background: #222;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.bp-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6B2FA0;
  cursor: pointer;
}

.bp-vol::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6B2FA0;
  border: none;
  cursor: pointer;
}

/* ---- Mobile ---- */
@media (max-width: 600px) {
  .bp-track {
    flex-wrap: wrap;
    gap: 0.6rem;
  }
  .bp-track-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .bp-lic-select {
    max-width: 140px;
  }
  .bp-player-right {
    display: none;
  }
}
