.music-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(26, 47, 43, 0.97);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(201, 169, 110, 0.22);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}

.music-bar.is-visible {
  display: block;
}

.music-bar__inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.music-bar__play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #C9A96E;
  color: #1A2F2B;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

.music-bar__main {
  flex: 1;
  min-width: 0;
}

.music-bar__title {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.music-bar__progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.music-bar__time {
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.music-bar__track {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.music-bar__fill {
  height: 100%;
  background: #C9A96E;
  border-radius: 2px;
  width: 0%;
  transition: width 0.15s linear;
  pointer-events: none;
}

.music-bar__lyric {
  display: none;
  width: 100%;
  margin: 8px 0 0;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: rgba(201, 169, 110, 0.92);
  font-family: var(--font-display, 'Cormorant Garamond'), 'Noto Serif SC', serif;
  font-size: 0.92rem;
  line-height: 1.45;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.music-bar__lyric.is-visible {
  display: block;
}

.music-bar__lyric:hover {
  color: #e8d4a8;
}

.music-bar__lyric::after {
  content: ' ›';
  opacity: 0.55;
  font-size: 0.85em;
}

.music-bar__close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  padding: 4px;
  margin-top: 2px;
}

.music-bar__close:hover {
  color: rgba(255, 255, 255, 0.7);
}
