/* ═══════════════════════════════════════
   ABC SONG OVERLAY
═══════════════════════════════════════ */
.song-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
}

.song-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.song-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 10px;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1.5px solid var(--border);
  z-index: 1;
}

.song-title {
  font-family: "Baloo 2", "Noto Sans Hebrew", "Sora", sans-serif;
  font-weight: 900;
  font-size: clamp(18px, 5vw, 26px);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.song-close {
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text-mid);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.song-close:hover {
  background: var(--surface2);
}

.song-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 680px;
  padding: 14px 16px 20px;
}

.song-lcard {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: var(--bg);
  border: 2px solid var(--border);
  transition: all 0.2s var(--ease);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.song-lcard.active {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.12);
  z-index: 2;
  box-shadow: 0 6px 20px rgba(108, 79, 246, 0.4);
}

.song-lcard.active .song-l,
.song-lcard.active .song-ls,
.song-lcard.active .song-emoji {
  color: white !important;
}

.song-lcard.sung {
  background: var(--green-light);
  border-color: #86efac;
}

.song-l {
  font-family: "Baloo 2", "Noto Sans Hebrew", "Sora", sans-serif;
  font-weight: 900;
  font-size: clamp(20px, 5vw, 28px);
  color: var(--primary);
  line-height: 1;
}

.song-ls {
  font-family: "Baloo 2", "Noto Sans Hebrew", "Sora", sans-serif;
  font-weight: 700;
  font-size: clamp(12px, 3vw, 15px);
  color: var(--text-soft);
  line-height: 1;
}

.song-emoji {
  font-size: clamp(12px, 3vw, 16px);
  line-height: 1;
  color: var(--text);
}

.song-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 20px 20px;
  position: sticky;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  width: 100%;
  border-top: 1.5px solid var(--border);
}

.song-play-btn {
  background: var(--primary);
  border: none;
  border-radius: 50%;
  width: clamp(58px, 14vw, 70px);
  height: clamp(58px, 14vw, 70px);
  font-size: clamp(22px, 6vw, 28px);
  color: white;
  cursor: pointer;
  transition: all 0.3s var(--spring);
  box-shadow: 0 5px 20px rgba(108, 79, 246, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.song-play-btn:hover {
  transform: scale(1.08);
}

.song-play-btn:active {
  transform: scale(0.94);
}

.song-speed {
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text-mid);
  border-radius: 30px;
  padding: 9px 14px;
  font-family: "Baloo 2", "Noto Sans Hebrew", "Sora", sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
}

.song-speed.active-speed {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.song-lyrics {
  font-family: "Baloo 2", "Noto Sans Hebrew", "Sora", sans-serif;
  font-weight: 900;
  font-size: clamp(16px, 4vw, 22px);
  color: var(--primary);
  text-align: center;
  padding: 10px 16px 4px;
  min-height: 36px;
  transition: opacity 0.3s;
}

