#nm-audio {
  display: none;
}

.nm-player-shell[hidden] {
  display: none !important;
}

/* ---- Full-width bottom bar (matches Figma node 49:3063) ---- */
.nm-player-shell {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 100;
}

.nm-player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--nm-color-gold);
}

/* Hidden JS-only elements */
.nm-player-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
}

/* ---- Track number / queue position ---- */
.nm-player-pos {
  flex-shrink: 0;
  width: 32px;
  color: var(--nm-color-text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.4px;
}

.nm-player-pos:empty {
  display: none;
}

/* ---- Track info (cover + title) ---- */
.nm-player-track {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 320px;
  flex-shrink: 0;
  min-width: 0;
}

.nm-player-cover {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.nm-player-title {
  color: var(--nm-color-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Artist name ---- */
.nm-player-artist {
  width: 110px;
  flex-shrink: 0;
  color: var(--nm-color-text);
  font-size: 16px;
  font-weight: 400;
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Play count ---- */
.nm-player-plays {
  flex-shrink: 0;
  color: var(--nm-color-text);
  font-size: 14px;
  font-weight: 400;
  opacity: 0.5;
  white-space: nowrap;
}

/* ---- Progress bar ---- */
.nm-player-progress-wrap {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 500px;
  height: 36px;
  display: flex;
  align-items: center;
}

.nm-player-progress {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: var(--nm-radius-pill);
  background: rgba(29, 29, 29, 0.08);
  outline: none;
  cursor: pointer;
}

.nm-player-progress::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: var(--nm-radius-pill);
}

.nm-player-progress::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--nm-color-gold);
  cursor: pointer;
  margin-top: -4px;
}

.nm-player-progress::-moz-range-track {
  height: 4px;
  border-radius: var(--nm-radius-pill);
  background: rgba(29, 29, 29, 0.08);
}

.nm-player-progress::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--nm-color-gold);
  border: none;
  cursor: pointer;
}

/* ---- Action buttons ---- */
.nm-player-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nm-player-btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 100px;
  background: var(--nm-color-gold);
  color: var(--nm-color-white);
  cursor: pointer;
  flex-shrink: 0;
}

/* Play/Pause icon toggling */
.nm-player-btn-play .nm-icon-pause { display: none; }
.nm-player-btn-play .nm-icon-play { display: block; }
.nm-player-btn-play.is-playing .nm-icon-pause { display: block; }
.nm-player-btn-play.is-playing .nm-icon-play { display: none; }

.nm-player-btn-settings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 100px;
  background: rgba(29, 29, 29, 0.06);
  color: var(--nm-color-text);
  cursor: pointer;
  flex-shrink: 0;
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .nm-player-bar {
    gap: 16px;
    padding: 20px;
  }

  .nm-player-track {
    width: 220px;
  }

  .nm-player-artist {
    width: 90px;
  }
}

@media (max-width: 860px) {
  .nm-player-bar {
    gap: 12px;
    padding: 16px;
  }

  .nm-player-artist,
  .nm-player-plays,
  .nm-player-pos {
    display: none;
  }

  .nm-player-track {
    width: auto;
    flex: 0 1 200px;
  }

  .nm-player-progress-wrap {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .nm-player-bar {
    padding: 12px;
    gap: 10px;
  }

  .nm-player-track {
    flex: 0 1 160px;
  }

  .nm-player-btn-play,
  .nm-player-btn-settings {
    width: 42px;
    height: 42px;
  }

  .nm-player-btn-play svg,
  .nm-player-btn-settings svg {
    width: 18px;
    height: 18px;
  }
}
