.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.header-player {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-width 0.25s ease, opacity 0.2s ease;
}

.header-track-title {
  position: absolute;
  left: 0;
  bottom: calc(100% + 2px);
  max-width: 100%;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--accent, #38bdf8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.header-player.is-active .header-track-title {
  opacity: 1;
}

.header-player.is-active {
  max-width: 148px;
  opacity: 1;
  pointer-events: auto;
}

#sparkling-global-audio {
  display: none;
}

.header-object-wrap {
  width: 48px;
  height: 36px;
  line-height: 0;
  overflow: hidden;
  flex-shrink: 0;
  background: transparent;
  border: none;
}

#header-sandbox {
  display: block;
  width: 48px;
  height: 36px;
}

.header-player-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(0, 0, 0, 0.45);
  color: var(--text, #e2e8f0);
  font-size: 0.893rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
}

.header-player-btn:hover:not(:disabled) {
  border-color: var(--accent, #38bdf8);
  background: rgba(56, 189, 248, 0.12);
}

.header-player-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

body.has-full-player .header-player {
  display: none;
}

@media (max-width: 700px) {
  .header-player.is-active {
    max-width: 132px;
  }

  .header-object-wrap,
  #header-sandbox {
    width: 42px;
    height: 32px;
  }

  .header-player-btn {
    width: 22px;
    height: 22px;
    font-size: 0.835rem;
  }
}