.song-detail-wrap {
  padding-bottom: 118px;
}

.song-bottom-dock {
  --dock-bg: rgba(17, 24, 39, 0.96);
  --dock-border: rgba(255, 255, 255, 0.08);
  --dock-text: #ffffff;
  --dock-muted: rgba(255, 255, 255, 0.74);
  --dock-accent: #635bff;
  --dock-accent-hover: #746dff;
  --dock-accent-soft: rgba(99, 91, 255, 0.16);
  --dock-active: #00d9a6;
  --dock-active-soft: rgba(0, 217, 166, 0.18);
  --dock-btn-hover: rgba(255, 255, 255, 0.10);
  --dock-shadow: 0 14px 36px rgba(15, 23, 42, 0.28);
  position: fixed;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(640px, calc(100vw - 18px));
  z-index: 1040;
  pointer-events: none;
}

.song-bottom-dock__inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--dock-border);
  border-radius: 22px;
  background: var(--dock-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--dock-shadow);
  color: var(--dock-text);
  max-width: 100%;
  flex-wrap: nowrap;
}

.song-bottom-dock__section {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.song-bottom-dock__section--scroll,
.song-bottom-dock__section--metro {
  flex: 1 1 0;
}

.song-bottom-dock__section + .song-bottom-dock__section {
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.10);
}

.song-bottom-dock__label,
.song-dock-btn__label {
  display: none !important;
}

.song-dock-btn {
  appearance: none;
  border: 0;
  outline: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: transparent;
  color: var(--dock-text);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
  flex: 0 0 auto;
  font-size: 1rem;
  line-height: 1;
}

.song-dock-btn .js-autoscroll-toggle-icon,
.song-dock-btn .js-metronome-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  min-width: 16px;
  font-size: 1rem;
  line-height: 1;
}

.song-dock-btn:hover {
  background: var(--dock-btn-hover);
}

.song-dock-btn:active {
  transform: scale(0.97);
}

.song-dock-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.24);
}

.song-dock-btn--play {
  width: 40px;
  min-width: 40px;
  height: 40px;
  background: var(--dock-accent);
  box-shadow: 0 8px 20px rgba(99, 91, 255, 0.28);
}

.song-dock-btn--play:hover {
  background: var(--dock-accent-hover);
}

.song-dock-btn--play .js-autoscroll-toggle-icon,
.song-dock-btn--play .js-metronome-toggle-icon {
  width: 18px;
  min-width: 18px;
  font-size: 1.08rem;
}

.song-dock-btn--icon.is-active,
.song-dock-btn--play.is-active {
  background: var(--dock-active-soft);
  color: var(--dock-active);
}

.song-dock-btn--play.is-active {
  box-shadow: 0 8px 20px rgba(0, 217, 166, 0.18);
}

.song-bottom-dock__range {
  flex: 1 1 78px;
  width: 78px;
  min-width: 60px;
  max-width: 96px;
  accent-color: #8b83ff;
}

.song-bottom-dock__status {
  min-width: 44px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--dock-text);
  white-space: nowrap;
  padding: 0;
}

@media (max-width: 991.98px) {
  .song-detail-wrap {
    padding-bottom: 120px;
  }

  .song-bottom-dock {
    width: min(560px, calc(100vw - 14px));
    bottom: max(8px, env(safe-area-inset-bottom));
  }

  .song-bottom-dock__inner {
    gap: 7px;
    padding: 8px 10px;
    border-radius: 20px;
  }

  .song-bottom-dock__section + .song-bottom-dock__section {
    padding-left: 7px;
  }

  .song-bottom-dock__range {
    flex: 1 1 62px;
    width: 62px;
    min-width: 48px;
    max-width: 74px;
  }
}

@media (max-width: 767.98px) {
  .song-detail-wrap {
    padding-bottom: 126px;
  }

  .song-bottom-dock {
    width: calc(100vw - 12px);
    bottom: max(7px, env(safe-area-inset-bottom));
  }

  .song-bottom-dock__inner {
    gap: 5px;
    padding: 7px 8px;
    border-radius: 18px;
  }

  .song-bottom-dock__section {
    gap: 4px;
  }

  .song-bottom-dock__section + .song-bottom-dock__section {
    padding-left: 5px;
  }

  .song-dock-btn {
    min-width: 30px;
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
  }

  .song-dock-btn .js-autoscroll-toggle-icon,
  .song-dock-btn .js-metronome-toggle-icon {
    width: 14px;
    min-width: 14px;
    font-size: 0.9rem;
  }

  .song-dock-btn--play {
    width: 34px;
    min-width: 34px;
    height: 34px;
  }

  .song-dock-btn--play .js-autoscroll-toggle-icon,
  .song-dock-btn--play .js-metronome-toggle-icon {
    width: 16px;
    min-width: 16px;
    font-size: 0.98rem;
  }

  .song-bottom-dock__range {
    flex: 1 1 42px;
    width: 42px;
    min-width: 34px;
    max-width: 52px;
  }

  .song-bottom-dock__status {
    min-width: 30px;
    font-size: 0.68rem;
  }
}

@media (max-width: 575.98px) {
  .song-detail-wrap {
    padding-bottom: 132px;
  }

  .song-bottom-dock {
    width: calc(100vw - 8px);
    bottom: max(6px, env(safe-area-inset-bottom));
  }

  .song-bottom-dock__inner {
    gap: 4px;
    padding: 6px 7px;
    border-radius: 16px;
  }

  .song-bottom-dock__section {
    gap: 3px;
  }

  .song-bottom-dock__section + .song-bottom-dock__section {
    padding-left: 4px;
  }

  .song-dock-btn {
    min-width: 28px;
    width: 28px;
    height: 28px;
    font-size: 0.88rem;
  }

  .song-dock-btn--play {
    width: 32px;
    min-width: 32px;
    height: 32px;
  }

  .song-bottom-dock__range {
    flex: 1 1 36px;
    width: 36px;
    min-width: 28px;
    max-width: 44px;
  }

  .song-bottom-dock__status {
    min-width: 22px;
    font-size: 0.62rem;
  }

  .js-metronome-status {
    min-width: 0;
    max-width: 44px;
    overflow: hidden;
    text-overflow: clip;
  }
}


.song-dock-btn,
.song-dock-btn--play,
.js-autoscroll-toggle,
.js-metronome-toggle {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
