
.song-detail-wrap {
  max-width: 980px;
  padding-bottom: 110px;
}

.song-detail-back {
  font-weight: 600;
  text-decoration: none;
}

.song-hero-card,
.song-panel,
.related-song-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.song-hero-card,
.song-panel {
  padding: 24px;
}

.song-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.song-meta {
  font-size: 1rem;
  line-height: 1.75;
  color: #64748b;
}

.song-meta a,
.related-song-link,
.source-link {
  color: #0f766e;
  text-decoration: none;
  font-weight: 600;
}

.song-meta a:hover,
.related-song-link:hover,
.source-link:hover {
  color: #115e59;
}

.song-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.song-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #334155;
  font-size: 0.95rem;
  font-weight: 600;
}

.song-first-line {
  margin-top: 18px;
  margin-bottom: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fafc;
  color: #475569;
  line-height: 1.8;
}

.song-panel-title {
  margin-bottom: 14px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.song-toolbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.song-toolbar-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.song-toolbar-group-scroll {
  flex: 1 1 280px;
}

.song-toolbar-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #64748b;
}

.song-toolbar-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.song-toolbar-scroll {
  width: 100%;
}

.song-toolbar-btn {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  color: #334155;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  transition: all 0.18s ease;
}

.song-toolbar-btn:hover {
  border-color: rgba(15, 118, 110, 0.24);
  color: #0f766e;
}

.song-toolbar-btn.is-active {
  background: rgba(15, 118, 110, 0.1);
  border-color: rgba(15, 118, 110, 0.18);
  color: #0f766e;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.08);
}

.song-toolbar-status {
  min-width: 56px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #334155;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.song-scroll-range {
  flex: 1 1 160px;
  min-width: 120px;
}

.chord-token-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chord-token-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 14px;
  background: rgba(15, 118, 110, 0.08);
  color: #0f766e;
  border: 1px solid rgba(15, 118, 110, 0.14);
  font-weight: 700;
  line-height: 1;
}

.source-info-list {
  display: grid;
  gap: 14px;
}

.source-info-row {
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fafc;
  color: #475569;
  line-height: 1.7;
}

.source-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.related-song-card {
  padding: 18px;
  height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.related-song-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.related-song-title {
  display: block;
  font-size: 1.05rem;
  line-height: 1.5;
}

.related-song-meta {
  margin-top: 8px;
  color: #64748b;
}

/* ========================================
   BOTTOM DOCK
   ======================================== */

.song-bottom-dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1040;
  pointer-events: none;
}

.song-bottom-dock__inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 28px;
  background: rgba(56, 58, 66, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.28);
  color: #ffffff;
}

.song-bottom-dock__section {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.song-bottom-dock__section--scroll {
  flex: 1 1 auto;
}

.song-bottom-dock__section--metro {
  flex: 0 0 auto;
}

.song-bottom-dock__label {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.song-dock-btn {
  appearance: none;
  border: 0;
  outline: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  transition: all 0.18s ease;
}

.song-dock-btn i {
  font-size: 1.35rem;
  line-height: 1;
}

.song-dock-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.song-dock-btn--play {
  width: 60px;
  height: 60px;
  background: #635bff;
  box-shadow: 0 8px 20px rgba(99, 91, 255, 0.35);
}

.song-dock-btn--play:hover {
  background: #746dff;
}

.song-dock-btn--play i {
  font-size: 1.7rem;
}

.song-dock-btn--icon.is-active,
.song-dock-btn--play.is-active {
  background: rgba(0, 220, 170, 0.18);
  color: #00e0b0;
}

.song-bottom-dock__range {
  flex: 1 1 180px;
  min-width: 90px;
  accent-color: #8f8f99;
}

.song-bottom-dock__status {
  min-width: 58px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.96);
  white-space: nowrap;
}

/* ========================================
   RESPONSIVE
   ======================================== */

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

  .song-hero-card,
  .song-panel {
    padding: 20px;
  }

  .song-toolbar {
    top: 8px;
  }

  .song-bottom-dock {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .song-bottom-dock__inner {
    gap: 10px;
    padding: 12px 14px;
  }

  .song-bottom-dock__label {
    font-size: 0.92rem;
  }

  .song-bottom-dock__range {
    min-width: 70px;
  }
}

@media (max-width: 767.98px) {
  .song-hero-card,
  .song-panel {
    padding: 18px;
    border-radius: 20px;
  }

  .song-toolbar {
    position: sticky;
    top: 8px;
    padding: 10px;
    border-radius: 16px;
    gap: 10px;
  }

  .song-toolbar-group {
    width: 100%;
    align-items: flex-start;
  }

  .song-toolbar-pills {
    width: 100%;
  }

  .song-toolbar-btn {
    font-size: 0.88rem;
    padding: 8px 12px;
  }

  .song-toolbar-status {
    min-width: 52px;
    font-size: 0.84rem;
  }

  .song-chip,
  .chord-token-chip {
    font-size: 0.9rem;
  }

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

  .song-bottom-dock {
    left: 8px;
    right: 8px;
    bottom: 8px;
  }

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

  .song-bottom-dock__label {
    display: none;
  }

  .song-bottom-dock__section--scroll {
    flex: 1 1 auto;
  }

  .song-bottom-dock__range {
    flex: 1 1 90px;
    min-width: 56px;
  }

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

  .song-dock-btn i {
    font-size: 1.2rem;
  }

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

  .song-dock-btn--play i {
    font-size: 1.45rem;
  }

  .song-bottom-dock__status {
    min-width: 48px;
    font-size: 0.86rem;
  }
}

@media (max-width: 575.98px) {
  .song-panel-title {
    font-size: 1.08rem;
  }

  .song-title {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }

  .song-toolbar-btn {
    flex: 1 1 auto;
    text-align: center;
  }

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

  .song-bottom-dock__inner {
    gap: 6px;
    padding: 9px 10px;
  }

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

  .song-bottom-dock__range {
    min-width: 44px;
  }

  .song-bottom-dock__status {
    min-width: 42px;
    font-size: 0.8rem;
  }
}