/* Change lyrics on a phone (mobile-lyrics.js, 2026-11-26). Only rendered at phone widths, where the
   desktop Studio editor is not mounted. Paper & Rose: white cards on warm paper, rose for the
   changed lines and playback, the ink pill for the main action. */
.ml-page { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 560px; margin: 0 auto;
  padding: 18px 16px calc(var(--bottom, 64px) + 96px); color: var(--pr-ink, #1b1613); }
.ml-head { display: flex; align-items: flex-start; gap: 10px; }
.ml-head-text { min-width: 0; }
.ml-head h2 { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.ml-sub { margin: 6px 0 0; color: var(--pr-ink-3, #756c64); font-size: 13px; line-height: 1.55; }
.ml-back { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-top: -2px;
  padding: 0; border: 0; border-radius: 50%; background: var(--pr-sunken, #f5f2ee); color: var(--pr-ink-2, #4f4741); }
.ml-loading, .ml-empty { margin: 0; color: var(--pr-ink-3, #756c64); font-size: 14px; line-height: 1.6; }
.ml-error { margin: 0; padding: 12px 14px; border-radius: var(--pr-r-input, 12px); background: var(--pr-rose-soft, #fdecef);
  color: var(--pr-rose-deep, #b3243f); font-size: 14px; line-height: 1.55; }
.ml-cost { padding: 10px 12px; border-radius: var(--pr-r-input, 12px); background: var(--pr-sunken, #f5f2ee);
  color: var(--pr-ink-2, #4f4741); font-size: 12px; line-height: 1.55; }
.ml-upload .button { width: 100%; justify-content: center; }

.ml-group { display: flex; flex-direction: column; gap: 8px; }
.ml-group h3 { margin: 4px 0 0; font-size: 14px; font-weight: 600; color: var(--pr-ink-2, #4f4741); }
.ml-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none;
  border-radius: var(--pr-r-card, 16px); background: var(--pr-card, #fff); box-shadow: var(--pr-shadow-card); overflow: hidden; }
.ml-list > li + li { border-top: 1px solid var(--pr-line, #ebe5dd); }
.ml-song { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 12px; border: 0;
  background: transparent; color: inherit; text-align: left; font: inherit; }
.ml-song:active { background: var(--pr-press, rgba(27, 22, 19, .08)); }
.ml-song-cover { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; overflow: hidden;
  background: var(--pr-raised, #f3efe9); color: var(--pr-ink-3, #756c64); }
.ml-song-cover img { width: 100%; height: 100%; object-fit: cover; }
.ml-song-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ml-song-title { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-song-meta { color: var(--pr-ink-3, #756c64); font-size: 12px; font-variant-numeric: tabular-nums; }
.ml-song > .icon { flex: none; color: var(--pr-ink-4, #a89f97); }

.ml-wait { display: flex; flex-direction: column; gap: 12px; padding: 22px 16px; border-radius: var(--pr-r-card, 16px);
  background: var(--pr-card, #fff); box-shadow: var(--pr-shadow-card); text-align: center; }
.ml-wait strong { font-size: 15px; font-weight: 600; }
.ml-wait p { margin: 0; color: var(--pr-ink-3, #756c64); font-size: 12px; line-height: 1.55; }
.ml-progress { display: block; height: 6px; border-radius: 999px; background: var(--pr-raised, #f3efe9); overflow: hidden; }
.ml-progress-fill { display: block; height: 100%; border-radius: inherit; background: var(--pr-rose, #e23d5b); transition: width .6s ease; }
.ml-tips { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0 0 0 18px; color: var(--pr-ink-2, #4f4741); font-size: 13px; line-height: 1.55; }

.ml-versions { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.ml-versions::-webkit-scrollbar { display: none; }
.ml-version { flex: none; min-height: 34px; padding: 0 14px; border: 1px solid var(--pr-line-strong, #ddd5cb); border-radius: 999px;
  background: var(--pr-card, #fff); color: var(--pr-ink-2, #4f4741); font: inherit; font-size: 13px; }
.ml-version.is-selected { border-color: var(--pr-ink, #1b1613); background: var(--pr-ink, #1b1613); color: #fff; }
.ml-player { display: flex; gap: 8px; }
.ml-player .ml-play { flex: 1; justify-content: center; }
.ml-pause { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--pr-line-strong, #ddd5cb); border-radius: 999px; background: var(--pr-card, #fff); color: var(--pr-ink-2, #4f4741); }

.ml-lines { display: flex; flex-direction: column; margin: 0; padding: 4px 0; list-style: none;
  border-radius: var(--pr-r-card, 16px); background: var(--pr-card, #fff); box-shadow: var(--pr-shadow-card); }
.ml-section { padding: 12px 14px 4px; color: var(--pr-ink-3, #756c64); font-size: 12px; font-weight: 600; }
.ml-line { margin: 0 6px; border-radius: 12px; }
.ml-line.is-changed { background: var(--pr-rose-soft, #fdecef); }
.ml-line-button { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 8px; width: 100%; padding: 10px 8px;
  border: 0; background: transparent; color: inherit; text-align: left; font: inherit; }
.ml-line-button:active { background: var(--pr-press, rgba(27, 22, 19, .08)); border-radius: 12px; }
.ml-time { color: var(--pr-ink-4, #a89f97); font-size: 11px; line-height: 22px; font-variant-numeric: tabular-nums; }
.ml-text { font-size: 15px; line-height: 22px; overflow-wrap: anywhere; }
.ml-line.is-changed .ml-text { color: var(--pr-rose-deep, #b3243f); font-weight: 500; }
.ml-was { grid-column: 2; margin-top: 2px; color: var(--pr-ink-3, #756c64); font-size: 12px; line-height: 1.45; text-decoration: line-through;
  text-decoration-color: var(--pr-ink-4, #a89f97); overflow-wrap: anywhere; }
.ml-edit { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 8px; row-gap: 8px; padding: 10px 8px; }
.ml-input { grid-column: 2; width: 100%; min-height: 64px; padding: 10px 12px; border: 1px solid var(--pr-rose-line, #f4a3b2);
  border-radius: var(--pr-r-input, 12px); background: var(--pr-card, #fff); color: var(--pr-ink, #1b1613);
  font: inherit; font-size: 16px; line-height: 1.45; resize: vertical; }
.ml-input:focus { outline: 2px solid var(--pr-rose-line, #f4a3b2); outline-offset: 1px; }
.ml-edit-actions { grid-column: 2; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.ml-edit-actions .button { min-height: 36px; }

.ml-footer { position: sticky; bottom: calc(var(--bottom, 64px) + 10px); z-index: 5; display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .94); box-shadow: var(--pr-shadow-pop);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); }
.ml-count { flex: 1; min-width: 0; color: var(--pr-ink-3, #756c64); font-size: 13px; }
.ml-footer.is-ready .ml-count { color: var(--pr-ink, #1b1613); font-weight: 500; }
.ml-footer .ml-submit { flex: none; }

.ml-compare { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--pr-r-card, 16px);
  background: var(--pr-rose-soft, #fdecef); box-shadow: 0 0 0 1px var(--pr-rose-line, #f4a3b2); }
.ml-compare > strong { font-size: 15px; font-weight: 600; }
.ml-compare-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ml-compare-buttons .button { justify-content: center; }
.ml-compare-actions { display: flex; flex-direction: column; gap: 6px; }
.ml-compare-actions .button { justify-content: center; }
.ml-compare-note { color: var(--pr-ink-3, #756c64); font-size: 12px; text-align: center; }
@media (prefers-reduced-motion: reduce) { .ml-progress-fill { transition: none; } }
