/* =================== VIOLÍN CON PIANO =================== */
/* Lista de canciones */
.lista-canciones {
  display: grid; gap: 6px; max-height: min(42vh, 360px); overflow-y: auto;
  padding: 5px; border-radius: 16px; background: var(--orange-soft);
}
.cancion {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px;
  text-align: left; color: var(--orange-dark);
  transition: background-color 0.2s, box-shadow 0.2s;
}
.cancion.on { background: #ffffff; color: var(--orange-ink); box-shadow: var(--shadow-sm); }
.c-num {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: 15px; font-weight: 900;
  background: rgba(154, 63, 28, 0.12); font-variant-numeric: tabular-nums;
}
.cancion.on .c-num { background: var(--orange-ink); color: #ffffff; }
.c-txt { display: flex; flex-direction: column; min-width: 0; }
.c-tit { font-size: 18px; font-weight: 800; line-height: 1.15; }
.c-sub { font-size: 13px; font-weight: 600; color: var(--muted); }

/* Pantalla de tocar */
.screen-play { gap: 10px; }
.titulo-cancion {
  font-size: clamp(18px, 2.6vw, 26px); font-weight: 900; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50vw;
}
.hoja {
  position: relative; flex: 1; min-height: 0;
  width: calc(100% - 24px); max-width: 1180px;
  background: #fffdf7; border-radius: 20px; box-shadow: var(--shadow);
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.partitura { color: #1d1410; }
.partitura svg { display: block; width: 100%; height: auto; }
.partitura g.note.sonando, .partitura g.note.sonando * { fill: #c2410c; stroke: #c2410c; }
.cursor {
  position: absolute; left: 0; top: 0; width: 6px; margin-left: -3px; border-radius: 3px;
  background: rgba(194, 65, 12, 0.32); pointer-events: none; will-change: transform;
}
.cuenta {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  font-size: clamp(90px, 18vw, 200px); font-weight: 900; line-height: 1; color: var(--orange-ink);
  text-shadow: 0 4px 0 rgba(255, 255, 255, 0.9); pointer-events: none;
}
.cuenta:empty { display: none; }
.cuenta.late { animation: cuenta-late 0.45s var(--ease-out); }
@keyframes cuenta-late { 0% { transform: translate(-50%, -50%) scale(1.35); opacity: 0.4; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; } }

.mandos {
  flex: none; display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 4px 16px 14px;
}
.mando { height: 50px; padding: 0 16px; font-size: 15px; }
.mando .icon { width: 22px; height: 22px; }
.mando-grande { min-width: 190px; font-size: 22px; }
.mando-grande .icon { width: 26px; height: 26px; fill: currentColor; }

@media (max-width: 600px) {
  .mando-grande { min-width: 140px; }
  .hoja { width: calc(100% - 12px); border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) { .cuenta.late { animation: none; } }

/* Créditos de los sonidos */
.creditos { margin: 2px 0 0; font-size: 11.5px; line-height: 1.3; color: var(--muted); text-align: center; }
.mando-tempo { height: 50px; padding: 0 16px; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; }
