/* ========================================
   PIANO FIT - BASE
   ======================================== */

.chord-piano-fit {
  width: 100%;
}

.chord-piano-fit--compact {
  width: 100%;
}

.chord-piano-fit__viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

.chord-piano-fit__viewport--compact {
  overflow: hidden;
  padding-bottom: 0;
}

.chord-piano-fit__viewport--full {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding-bottom: 8px;
}

.chord-piano-fit__keyboard {
  position: relative;
  width: 100%;
  min-width: 980px;
}

.chord-piano-fit__keyboard--compact {
  min-width: 0;
}

.chord-piano-fit__keyboard--full {
  min-width: 1120px !important;
}

.chord-piano-fit__whites {
  display: grid;
  grid-template-columns: repeat(var(--white-count, 29), minmax(0, 1fr));
  width: 100%;
  min-width: 980px;
  position: relative;
  background: #ffffff;
}

.chord-piano-fit__whites--full {
  min-width: 1120px !important;
}

.chord-piano-fit__white {
  position: relative;
  min-width: 0;
  height: 132px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #cfd4dc;
  border-right: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.chord-piano-fit__white:first-child {
  border-left: 1px solid #d7dde8;
}

.chord-piano-fit__white:last-child {
  border-right: 1px solid #cfd4dc;
}

.chord-piano-fit__white--compact {
  min-height: 52px;
}

.chord-piano-fit__blacks {
  position: absolute;
  inset: 0;
  width: 100%;
  min-width: 980px;
  height: 0;
  pointer-events: none;
  z-index: 3;
}

.chord-piano-fit__blacks--full {
  min-width: 1120px !important;
}

.chord-piano-fit__black {
  position: absolute;
  top: 0;
  width: 16px;
  height: 78px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
  z-index: 4;
  border-radius: 0 0 7px 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.chord-piano-fit__black--compact {
  height: 34px;
  border-radius: 0 0 5px 5px;
}

.chord-piano-fit__white.is-active {
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
}

.chord-piano-fit__black.is-active {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
}

.chord-piano-fit__white.is-active.is-bass,
.chord-piano-fit__black.is-active.is-bass {
  background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 100%);
}

.chord-piano-fit__white.is-active.is-support,
.chord-piano-fit__black.is-active.is-support {
  background: linear-gradient(180deg, #c4b5fd 0%, #a78bfa 100%);
}

.chord-piano-fit__white.is-active.is-rh,
.chord-piano-fit__black.is-active.is-rh {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
}

.chord-piano-fit__white.is-active.is-both,
.chord-piano-fit__black.is-active.is-both {
  background: linear-gradient(180deg, #6d28d9 0%, #4c1d95 100%);
}

.chord-piano-fit__note-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 6;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  bottom: 8px;
}

.chord-piano-fit__note-label--black {
  bottom: 6px;
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
}

.chord-piano-fit__note-label--compact {
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  font-size: 8px;
  bottom: 4px;
}

.chord-piano-fit__keymark {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  color: #94a3b8;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  z-index: 2;
}

.chord-piano-fit__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 10px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.4;
}

.chord-piano-fit__legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chord-piano-fit__legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}

.chord-piano-fit__legend-dot--bass { background: #0f172a; }
.chord-piano-fit__legend-dot--support { background: #64748b; }
.chord-piano-fit__legend-dot--rh { background: #2563eb; }
.chord-piano-fit__legend-dot--both { background: #7c3aed; }

/* ========================================
   COMPACT INLINE PIANO
   ======================================== */

.chord-visual.chord-piano.chord-visual--compact-inline {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0;
  padding: 8px 10px 10px !important;
  border-radius: 14px !important;
  border: 1px solid #dbe4f0 !important;
  background: #fff !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06) !important;
  min-width: 150px !important;
  max-width: 190px !important;
  width: 170px !important;
}

.chord-visual.chord-piano.chord-visual--compact-inline .chord-piano-fit,
.chord-visual.chord-piano.chord-visual--compact-inline .chord-piano-fit--compact {
  width: 100% !important;
}

.chord-visual.chord-piano.chord-visual--compact-inline .chord-piano-fit__viewport,
.chord-visual.chord-piano.chord-visual--compact-inline .chord-piano-fit__viewport--compact {
  width: 100% !important;
  overflow: hidden !important;
  padding-bottom: 0 !important;
  border-radius: 10px !important;
  border: 1px solid #dbe4f0 !important;
  background: #eef2f7 !important;
}

.chord-visual.chord-piano.chord-visual--compact-inline .chord-piano-fit__keyboard,
.chord-visual.chord-piano.chord-visual--compact-inline .chord-piano-fit__keyboard--compact {
  position: relative !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 64px !important;
}

.chord-visual.chord-piano.chord-visual--compact-inline .chord-piano-fit__whites {
  display: grid !important;
  grid-template-columns: repeat(var(--white-count), minmax(0, 1fr)) !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  position: relative !important;
  background: #fff !important;
}

.chord-visual.chord-piano.chord-visual--compact-inline .chord-piano-fit__blacks {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 0 !important;
  pointer-events: none !important;
}

.chord-visual.chord-piano.chord-visual--compact-inline .chord-piano-fit__white,
.chord-visual.chord-piano.chord-visual--compact-inline .chord-piano-fit__white--compact {
  position: relative !important;
  min-width: 0 !important;
  height: 58px !important;
  min-height: 58px !important;
  max-height: 58px !important;
  border-left: 0 !important;
  border-right: 1px solid #d7dde8 !important;
  border-bottom: 1px solid #d7dde8 !important;
  border-top: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.chord-visual.chord-piano.chord-visual--compact-inline .chord-piano-fit__white:first-child {
  border-left: 1px solid #d7dde8 !important;
}

.chord-visual.chord-piano.chord-visual--compact-inline .chord-piano-fit__black,
.chord-visual.chord-piano.chord-visual--compact-inline .chord-piano-fit__black--compact {
  position: absolute !important;
  top: 0 !important;
  width: 6.2% !important;
  min-width: 8px !important;
  max-width: 11px !important;
  height: 36px !important;
  max-height: 36px !important;
  transform: translateX(-50%) !important;
  border-radius: 0 0 6px 6px !important;
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08) !important;
  z-index: 3 !important;
}

.chord-visual.chord-piano.chord-visual--compact-inline .chord-piano-fit__note-label {
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
  z-index: 4 !important;
}

.chord-visual.chord-piano.chord-visual--compact-inline .chord-piano-fit__note-label--compact {
  min-width: 14px !important;
  height: 14px !important;
  padding: 0 4px !important;
  bottom: 3px !important;
  font-size: 8px !important;
  font-weight: 800 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #0f172a !important;
}

.chord-visual.chord-piano.chord-visual--compact-inline .chord-piano-fit__note-label--black.chord-piano-fit__note-label--compact {
  bottom: 6px !important;
  color: #111827 !important;
}

.chord-visual.chord-piano.chord-visual--compact-inline .chord-piano-fit__keymark,
.chord-visual.chord-piano.chord-visual--compact-inline .chord-piano-fit__keymark--compact {
  display: block !important;
  position: absolute !important;
  left: 50% !important;
  bottom: 18px !important;
  transform: translateX(-50%) !important;
  color: #94a3b8 !important;
  font-size: 8px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  z-index: 2 !important;
}

.chord-visual.chord-piano.chord-visual--compact-inline .chord-piano-fit__white.is-active .chord-piano-fit__keymark,
.chord-visual.chord-piano.chord-visual--compact-inline .chord-piano-fit__white.is-active .chord-piano-fit__keymark--compact {
  color: rgba(255, 255, 255, 0.92) !important;
}

.chord-visual.chord-piano.chord-visual--compact-inline .chord-piano-fit__legend {
  display: none !important;
}

/* ========================================
   ABOVE MODE - PIANO PREVIEW
   ======================================== */

.cg-above-piano,
.cg-above-piano * {
  box-sizing: border-box;
}

.cg-above-piano {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  vertical-align: top;
}

.cg-above-piano__name {
  display: block;
  font-size: 17px;
  line-height: 1;
  font-weight: 800;
  color: #334155;
  text-align: center;
  letter-spacing: -0.01em;
}

.cg-above-piano__visual {
  display: block;
  width: 296px;
  min-width: 296px;
  max-width: 296px;
}

.cg-above-piano .chord-piano-fit,
.cg-above-piano .chord-piano-fit--compact {
  width: 296px !important;
  min-width: 296px !important;
  max-width: 296px !important;
}

.cg-above-piano .chord-piano-fit__viewport,
.cg-above-piano .chord-piano-fit__viewport--compact {
  width: 296px !important;
  min-width: 296px !important;
  max-width: 296px !important;
  overflow: hidden !important;
  padding: 0 !important;
  border: 2px solid #cbd5e1 !important;
  border-radius: 18px !important;
  background: #eef2f7 !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08) !important;
}

.cg-above-piano .chord-piano-fit__keyboard,
.cg-above-piano .chord-piano-fit__keyboard--compact {
  position: relative !important;
  width: 296px !important;
  min-width: 296px !important;
  max-width: 296px !important;
  min-height: 106px !important;
  height: 106px !important;
  overflow: hidden !important;
}

.cg-above-piano .chord-piano-fit__whites {
  display: grid !important;
  grid-template-columns: repeat(var(--white-count), minmax(0, 1fr)) !important;
  width: 296px !important;
  min-width: 296px !important;
  max-width: 296px !important;
  background: #ffffff !important;
  position: relative !important;
  z-index: 1 !important;
}

.cg-above-piano .chord-piano-fit__white,
.cg-above-piano .chord-piano-fit__white--compact {
  position: relative !important;
  height: 106px !important;
  min-height: 106px !important;
  max-height: 106px !important;
  min-width: 0 !important;
  border-top: 0 !important;
  border-left: 0 !important;
  border-right: 1px solid #cbd5e1 !important;
  border-bottom: 1px solid #cbd5e1 !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  overflow: hidden !important;
}

.cg-above-piano .chord-piano-fit__white:first-child {
  border-left: 1px solid #cbd5e1 !important;
  border-top-left-radius: 18px !important;
  border-bottom-left-radius: 18px !important;
}

.cg-above-piano .chord-piano-fit__white:last-child {
  border-top-right-radius: 18px !important;
  border-bottom-right-radius: 18px !important;
}

.cg-above-piano .chord-piano-fit__blacks {
  position: absolute !important;
  inset: 0 !important;
  width: 296px !important;
  min-width: 296px !important;
  max-width: 296px !important;
  height: 106px !important;
  pointer-events: none !important;
  overflow: hidden !important;
  z-index: 4 !important;
}

.cg-above-piano .chord-piano-fit__black,
.cg-above-piano .chord-piano-fit__black--compact {
  position: absolute !important;
  top: 0 !important;
  width: 12px !important;
  min-width: 12px !important;
  max-width: 12px !important;
  height: 44px !important;
  max-height: 44px !important;
  transform: translateX(-50%) !important;
  border-radius: 0 0 8px 8px !important;
  background: linear-gradient(180deg, #1f2937 0%, #0f172a 100%) !important;
  border: 0 !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.16) !important;
  z-index: 5 !important;
}

.cg-above-piano .chord-piano-fit__white.is-active.is-bass {
  background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 100%) !important;
}

.cg-above-piano .chord-piano-fit__white.is-active.is-support {
  background: linear-gradient(180deg, #c4b5fd 0%, #a78bfa 100%) !important;
}

.cg-above-piano .chord-piano-fit__white.is-active.is-rh {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%) !important;
}

.cg-above-piano .chord-piano-fit__white.is-active.is-both {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%) !important;
}

.cg-above-piano .chord-piano-fit__black.is-active.is-bass,
.cg-above-piano .chord-piano-fit__black.is-active.is-support,
.cg-above-piano .chord-piano-fit__black.is-active.is-rh,
.cg-above-piano .chord-piano-fit__black.is-active.is-both {
  background: #0f172a !important;
  box-shadow: 0 0 0 2px #60a5fa inset !important;
}

.cg-above-piano .chord-piano-fit__note-label,
.cg-above-piano .chord-piano-fit__note-label--compact {
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  min-width: auto !important;
  height: auto !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  bottom: 9px !important;
  z-index: 6 !important;
  color: #ffffff !important;
  letter-spacing: -0.01em;
}

.cg-above-piano .chord-piano-fit__note-label--black,
.cg-above-piano .chord-piano-fit__note-label--black.chord-piano-fit__note-label--compact {
  bottom: 7px !important;
  font-size: 10px !important;
  color: #ffffff !important;
}

.cg-above-piano .chord-piano-fit__keymark,
.cg-above-piano .chord-piano-fit__keymark--compact {
  display: block !important;
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  bottom: 6px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  z-index: 3 !important;
  color: rgba(71, 85, 105, 0.88) !important;
}

.cg-above-piano .chord-piano-fit__white.is-active .chord-piano-fit__keymark,
.cg-above-piano .chord-piano-fit__white.is-active .chord-piano-fit__keymark--compact {
  color: rgba(255, 255, 255, 0.92) !important;
}

.cg-above-piano .chord-piano-fit__legend {
  display: none !important;
}

/* ========================================
   ABOVE MODE - LINE PIANO PLAYER
   ======================================== */

.lyrics-above-line--piano {
  margin-bottom: 1rem;
}

.cg-line-piano {
  display: grid;
  gap: 14px;
  padding: 14px 16px 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.cg-line-piano__top {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 12px;
}

.cg-line-piano__play {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.26);
}

.cg-line-piano__play i {
  font-size: 1.1rem;
}

.cg-line-piano__current {
  min-width: 56px;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.cg-line-piano__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cg-line-piano__chip {
  border: 1px solid #dbe4f0;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  transition: all 0.18s ease;
}

.cg-line-piano__chip.is-active {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.25);
  color: #1d4ed8;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.10);
}

.cg-line-piano__stage {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 150px;
  overflow-x: auto;
  overflow-y: hidden;
}

.cg-line-piano-full {
  display: grid;
  gap: 8px;
  min-width: 980px;
}

.cg-line-piano-full__name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #334155;
  letter-spacing: -0.02em;
}

.cg-line-piano-full__visual {
  width: 980px;
}

.cg-line-piano-full .chord-piano-fit,
.cg-line-piano-full .chord-piano-fit__viewport,
.cg-line-piano-full .chord-piano-fit__keyboard,
.cg-line-piano-full .chord-piano-fit__whites,
.cg-line-piano-full .chord-piano-fit__blacks {
  width: 980px !important;
  min-width: 980px !important;
  max-width: 980px !important;
}

.cg-line-piano-full .chord-piano-fit__viewport {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  border: 2px solid #cbd5e1 !important;
  border-radius: 20px !important;
  background: #eef2f7 !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
}

.cg-line-piano-full .chord-piano-fit__keyboard {
  min-height: 132px !important;
  height: 132px !important;
}

.cg-line-piano-full .chord-piano-fit__white {
  height: 118px !important;
  min-height: 118px !important;
  max-height: 118px !important;
}

.cg-line-piano-full .chord-piano-fit__keyboard {
  min-height: 118px !important;
  height: 118px !important;
}


.cg-line-piano-full .chord-piano-fit__black {
  width: 10px !important;
  min-width: 10px !important;
  max-width: 10px !important;
  height: 50px !important;
  max-height: 50px !important;
  border-radius: 0 0 7px 7px !important;
}

.cg-line-piano-full .chord-piano-fit__note-label {
  font-size: 12px !important;
  bottom: 10px !important;
}

.cg-line-piano-full .chord-piano-fit__note-label--black {
  font-size: 9px !important;
  bottom: 7px !important;
}

.cg-line-piano-full .chord-piano-fit__keymark {
  font-size: 10px !important;
  bottom: 9px !important;
}

.cg-line-piano__lyrics {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  font-size: 1.28rem;
  line-height: 2.05;
  color: #111827;
}

.cg-line-piano__inline-cluster {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}

.cg-line-piano__inline-chord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.10);
  border: 1px solid rgba(59, 130, 246, 0.18);
  color: #1d4ed8;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  vertical-align: baseline;
}

.cg-line-piano__inline-lyric,
.cg-line-piano__text,
.cg-line-piano__lyric-segment {
  white-space: pre-wrap;
}

/* ========================================
   SIDEBAR / CARD PIANO
   ======================================== */

.song-chord-card__inner--piano {
  padding: 18px;
}

.song-chord-card__frame--piano {
  margin-top: 12px;
}

.song-chord-card__frame--piano .chord-piano-fit,
.song-chord-card__frame--piano .chord-piano-fit--compact {
  width: 100%;
}

.song-chord-card__frame--piano .chord-piano-fit__viewport,
.song-chord-card__frame--piano .chord-piano-fit__viewport--compact {
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  padding-bottom: 0 !important;
  border-radius: 14px;
  border: 1px solid #dbe4f0;
  background: #eef2f7;
}

.song-chord-card__frame--piano .chord-piano-fit__keyboard,
.song-chord-card__frame--piano .chord-piano-fit__keyboard--compact {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 84px !important;
}

.song-chord-card__frame--piano .chord-piano-fit__whites {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.song-chord-card__frame--piano .chord-piano-fit__blacks {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.song-chord-card__frame--piano .chord-piano-fit__white,
.song-chord-card__frame--piano .chord-piano-fit__white--compact {
  height: 74px !important;
  min-height: 74px !important;
  max-height: 74px !important;
  overflow: hidden !important;
}

.song-chord-card__frame--piano .chord-piano-fit__black,
.song-chord-card__frame--piano .chord-piano-fit__black--compact {
  width: 10px !important;
  min-width: 10px !important;
  max-width: 10px !important;
  height: 40px !important;
  max-height: 40px !important;
}

.song-chord-card__frame--piano .chord-piano-fit__note-label,
.song-chord-card__frame--piano .chord-piano-fit__note-label--compact {
  min-width: auto !important;
  height: auto !important;
  padding: 0 2px !important;
  font-size: 9px !important;
  bottom: 6px !important;
  background: rgba(255, 255, 255, 0.96) !important;
}

.song-chord-card__frame--piano .chord-piano-fit__note-label--black,
.song-chord-card__frame--piano .chord-piano-fit__note-label--black.chord-piano-fit__note-label--compact {
  bottom: 5px !important;
  font-size: 8px !important;
}

.song-chord-card__frame--piano .chord-piano-fit__keymark,
.song-chord-card__frame--piano .chord-piano-fit__keymark--compact {
  display: block !important;
  bottom: 24px !important;
  font-size: 8px !important;
}

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

@media (max-width: 991.98px) {
  .cg-above-piano__name {
    font-size: 15px;
  }

  .cg-above-piano__visual,
  .cg-above-piano .chord-piano-fit,
  .cg-above-piano .chord-piano-fit--compact,
  .cg-above-piano .chord-piano-fit__viewport,
  .cg-above-piano .chord-piano-fit__viewport--compact,
  .cg-above-piano .chord-piano-fit__keyboard,
  .cg-above-piano .chord-piano-fit__keyboard--compact,
  .cg-above-piano .chord-piano-fit__whites,
  .cg-above-piano .chord-piano-fit__blacks {
    width: 252px !important;
    min-width: 252px !important;
    max-width: 252px !important;
  }

  .cg-above-piano .chord-piano-fit__keyboard,
  .cg-above-piano .chord-piano-fit__keyboard--compact {
    height: 94px !important;
    min-height: 94px !important;
  }

  .cg-above-piano .chord-piano-fit__white,
  .cg-above-piano .chord-piano-fit__white--compact {
    height: 94px !important;
    min-height: 94px !important;
    max-height: 94px !important;
  }

  .cg-above-piano .chord-piano-fit__blacks {
    height: 94px !important;
  }

  .cg-above-piano .chord-piano-fit__black,
  .cg-above-piano .chord-piano-fit__black--compact {
    width: 11px !important;
    min-width: 11px !important;
    max-width: 11px !important;
    height: 38px !important;
    max-height: 38px !important;
  }

  .cg-above-piano .chord-piano-fit__note-label,
  .cg-above-piano .chord-piano-fit__note-label--compact {
    font-size: 11px !important;
  }

  .cg-above-piano .chord-piano-fit__note-label--black,
  .cg-above-piano .chord-piano-fit__note-label--black.chord-piano-fit__note-label--compact {
    font-size: 9px !important;
  }
}

@media (max-width: 767.98px) {
  .cg-above-piano__name {
    font-size: 13px;
  }

  .cg-above-piano__visual,
  .cg-above-piano .chord-piano-fit,
  .cg-above-piano .chord-piano-fit--compact,
  .cg-above-piano .chord-piano-fit__viewport,
  .cg-above-piano .chord-piano-fit__viewport--compact,
  .cg-above-piano .chord-piano-fit__keyboard,
  .cg-above-piano .chord-piano-fit__keyboard--compact,
  .cg-above-piano .chord-piano-fit__whites,
  .cg-above-piano .chord-piano-fit__blacks {
    width: 214px !important;
    min-width: 214px !important;
    max-width: 214px !important;
  }

  .cg-above-piano .chord-piano-fit__keyboard,
  .cg-above-piano .chord-piano-fit__keyboard--compact {
    height: 82px !important;
    min-height: 82px !important;
  }

  .cg-above-piano .chord-piano-fit__white,
  .cg-above-piano .chord-piano-fit__white--compact {
    height: 82px !important;
    min-height: 82px !important;
    max-height: 82px !important;
  }

  .cg-above-piano .chord-piano-fit__blacks {
    height: 82px !important;
  }

  .cg-above-piano .chord-piano-fit__black,
  .cg-above-piano .chord-piano-fit__black--compact {
    width: 9px !important;
    min-width: 9px !important;
    max-width: 9px !important;
    height: 32px !important;
    max-height: 32px !important;
  }

  .cg-above-piano .chord-piano-fit__note-label,
  .cg-above-piano .chord-piano-fit__note-label--compact {
    font-size: 9px !important;
    bottom: 7px !important;
  }

  .cg-above-piano .chord-piano-fit__note-label--black,
  .cg-above-piano .chord-piano-fit__note-label--black.chord-piano-fit__note-label--compact {
    font-size: 8px !important;
    bottom: 5px !important;
  }

  .cg-above-piano .chord-piano-fit__keymark,
  .cg-above-piano .chord-piano-fit__keymark--compact {
    font-size: 8px !important;
    bottom: 4px !important;
  }

  .lyrics-chord-cluster {
    margin-right: 10px;
  }

  .lyrics-above-clusters {
    gap: 10px 12px;
  }

  .cg-line-piano {
    padding: 12px;
    border-radius: 18px;
  }

  .cg-line-piano__top {
    grid-template-columns: auto 1fr;
  }

  .cg-line-piano__chips {
    grid-column: 1 / -1;
  }

  .cg-line-piano-full {
    min-width: 760px;
  }

  .cg-line-piano-full__visual,
  .cg-line-piano-full .chord-piano-fit,
  .cg-line-piano-full .chord-piano-fit__viewport,
  .cg-line-piano-full .chord-piano-fit__keyboard,
  .cg-line-piano-full .chord-piano-fit__whites,
  .cg-line-piano-full .chord-piano-fit__blacks {
    width: 760px !important;
    min-width: 760px !important;
    max-width: 760px !important;
  }
  .cg-line-piano__lyrics {
    font-size: 1.12rem;
    line-height: 1.95;
  }

  .cg-line-piano__inline-chord {
    font-size: 0.9rem;
    padding: 3px 9px;
  }
}