.song-sidebar-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);
  overflow: hidden;
}

.song-sidebar-card--inline {
  position: static;
}

.song-sidebar-card__header {
  padding: 22px 22px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.song-sidebar-card__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}

.song-sidebar-card__subtitle {
  margin-top: 6px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #64748b;
}

.song-sidebar-card__body {
  padding: 20px;
  max-height: calc(100vh - 80px);
  overflow: auto;
}

.song-sidebar-placeholder {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #64748b;
  padding: 20px;
}

.song-sidebar-placeholder__icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 118, 110, 0.08);
  color: #0f766e;
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.song-sidebar-placeholder__title {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.song-sidebar-placeholder__text {
  font-size: 0.92rem;
  line-height: 1.6;
}

.song-sidebar-tabs {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 6px 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.song-sidebar-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 0.98rem;
  font-weight: 700;
  padding: 0 0 10px;
  position: relative;
}

.song-sidebar-tab.is-active {
  color: #111827;
}

.song-sidebar-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 999px;
  background: #111827;
}

.song-sidebar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.song-sidebar-grid--guitar,
.song-sidebar-grid--ukulele {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}



.song-chord-card {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  align-items: stretch;
}

.song-chord-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.song-chord-card.is-selected {
  border-color: rgba(15, 118, 110, 0.24);
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.08);
}

.song-chord-card:hover .song-chord-card__inner,
.song-chord-card.is-selected .song-chord-card__inner {
  border-color: rgba(15, 118, 110, 0.18);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.song-chord-card__inner {
  width: 100%;
  border: 1px solid #e6e8ee;
  border-radius: 22px;
  padding: 18px 16px;
  background: #fff;
  display: grid;
  gap: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.song-chord-card.is-selected .song-chord-card__inner {
  border-color: #cfe7df;
  box-shadow: 0 0 0 2px rgba(114, 176, 160, 0.12);
}

.song-chord-card__inner--empty {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}



.song-chord-card__title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
}

.song-chord-card__subtitle {
  font-size: 14px;
  font-weight: 700;
  color: #6b7280;
}

.song-chord-card__name {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 8px;
}

.song-chord-card__frame {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px 0 2px;
}

.song-chord-card__frame--instrument {
  justify-content: center;
  align-items: center;
  padding: 4px 0 0;
}

.song-chord-card__frame--instrument-compact {
  padding: 2px 0 0;
  justify-content: center;
  align-items: center;
}



.song-chord-card__empty {
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}



.song-chord-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.song-chord-note--bass {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.18);
  color: #7c3aed;
}

.song-chord-note--support {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.16);
  color: #dc2626;
}

.song-chord-note--rh {
  background: rgba(29, 78, 216, 0.1);
  border-color: rgba(29, 78, 216, 0.16);
  color: #1d4ed8;
}

.song-mini-fretboard {
  position: relative;
  width: 82px;
  margin: 0 auto;
}

.song-mini-fretboard__top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 3px;
  min-height: 12px;
}

.song-mini-fretboard__top-marker {
  text-align: center;
  font-size: 0.9rem;
  line-height: 1;
  color: #111827;
}

.song-mini-fretboard__nut {
  height: 5px;
  background: #111827;
  border-radius: 999px;
  margin-bottom: 1px;
}

.song-mini-fretboard__nut.is-hidden {
  opacity: 0;
}

.song-mini-fretboard__grid {
  display: grid;
  gap: 0;
  border-left: 2px solid rgba(17, 24, 39, 0.75);
  border-right: 2px solid rgba(17, 24, 39, 0.75);
}

.song-mini-fretboard__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.song-mini-fretboard__cell {
  position: relative;
  width: 20px;
  height: 24px;
  border-top: 1.5px solid rgba(17, 24, 39, 0.55);
  border-right: 1.5px solid rgba(17, 24, 39, 0.55);
}

.song-mini-fretboard__row .song-mini-fretboard__cell:first-child {
  border-left: 1.5px solid rgba(17, 24, 39, 0.55);
}

.song-mini-fretboard__dot {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: #2c2f36;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.song-mini-fretboard__fret-label {
  position: absolute;
  right: -18px;
  top: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #4b5563;
}

@media (max-width: 767.98px) {
  .song-sidebar-card__body {
    padding: 14px;
  }

  .song-sidebar-grid--guitar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .song-sidebar-grid--piano {
    grid-template-columns: 1fr;
  }

  .song-chord-card__inner {
    padding: 12px 12px 10px;
    border-radius: 18px;
  }

  .song-chord-card__title {
    font-size: 15px;
  }

  .song-chord-card__subtitle {
    font-size: 11px;
  }
}

@media (max-width: 575.98px) {
  .song-sidebar-grid--guitar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .song-chord-card__inner {
    padding: 10px 10px 8px;
    border-radius: 16px;
  }

  .song-chord-card__title-row {
    margin-bottom: 6px;
  }

  .song-chord-card__title {
    font-size: 14px;
  }

  .song-chord-card__subtitle {
    font-size: 10px;
  }
}

