/* ══════════════════════════════════════════════════════════════════════════════
   MúsicaRoca – Lyrics Sync  v7  (Cinematic / Premium Player)
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Expand row ────────────────────────────────────────────────────────────── */
.mrpsg-track-lyrics-row {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  /* Unified atmospheric background spanning cover → lyrics → edge             *
   * Cover glow is baked in as a radial on the far left so the whole row       *
   * reads as one cohesive cinematic scene                                      */
  background:
    radial-gradient(
      ellipse 320px 100% at 0% 50%,
      rgba(255,100,30,0.07) 0%,
      transparent 100%
    ),
    linear-gradient(
      90deg,
      rgba(14,10,30,0.97) 0%,
      rgba(10,10,28,0.92) 20%,
      rgba( 7, 8,22,0.80) 40%,
      rgba( 4, 5,16,0.52) 62%,
      rgba( 2, 3,10,0.22) 82%,
      rgba( 0, 0, 0,0.00) 100%
    );
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: stretch;
  position: relative;
}
.mrpsg-track-lyrics-row.is-open { max-height: 260px; }

/* Remove the old separate ::after glow – it's now baked into the background */
.mrpsg-track-lyrics-row.is-open::after { display: none; }

/* ── Cover ─────────────────────────────────────────────────────────────────── */
.mrpsg-lyrics-cover {
  flex-shrink: 0;
  width: 160px;
  overflow: hidden;
  position: relative;
  z-index: 1;           /* above the ::after glow */
}
.mrpsg-lyrics-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(6,6,18,0.85) 100%);
  pointer-events: none;
}
.mrpsg-lyrics-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1), filter 0.4s ease;
  filter: brightness(0.85) saturate(1.1);
}
.mrpsg-track-lyrics-row.is-open .mrpsg-lyrics-cover img {
  transform: scale(1.06);
  filter: brightness(0.95) saturate(1.15);
}
.mrpsg-lyrics-cover-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  background: rgba(255,255,255,0.03);
}

/* ── Body column: lyrics stacked above links ──────────────────────────────── */
.mrpsg-lyrics-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

/* ── Lyrics box ────────────────────────────────────────────────────────────── */
.mrpsg-inline-lyrics {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 166px;
  overflow: hidden;
  padding: 14px 40px 6px 44px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}
.mrpsg-inline-lyrics::before,
.mrpsg-inline-lyrics::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 28px;
  pointer-events: none;
  z-index: 2;
}
.mrpsg-inline-lyrics::before {
  top: 0;
  background: linear-gradient(180deg, rgba(6,6,18,0.97) 0%, transparent 100%);
}
.mrpsg-inline-lyrics::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(6,6,18,0.97) 0%, transparent 100%);
}

/* ── Every lyric line ─────────────────────────────────────────────────────── */
.mrpsg-inline-lyrics .mr-lyrics-line {
  font-size: 11px;
  line-height: 1.55;
  color: rgba(255,255,255,0.16);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition:
    font-size   0.28s cubic-bezier(0.4,0,0.2,1),
    color       0.28s ease,
    opacity     0.28s ease,
    transform   0.32s cubic-bezier(0.4,0,0.2,1),
    text-shadow 0.28s ease;
  user-select: none;
  display: none;
  position: relative;
  z-index: 1;
}
.mrpsg-inline-lyrics .mr-lyrics-line.is-prev {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}
.mrpsg-inline-lyrics .mr-lyrics-line.is-active {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.mrpsg-inline-lyrics .mr-lyrics-line.is-next {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}
.mrpsg-inline-lyrics .mr-lyrics-line.is-ghost {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.2);
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.4;
  animation: ghostPulse 3.5s ease-in-out infinite;
}
@keyframes ghostPulse {
  0%, 100% { opacity: 0.65; }
  50%       { opacity: 0.2;  }
}

/* ── Word highlighting ─────────────────────────────────────────────────────── */
.mrpsg-inline-lyrics .mr-lyrics-word {
  display: inline;
  transition: color 0.14s ease, text-shadow 0.14s ease;
}
.mrpsg-inline-lyrics .mr-lyrics-word.is-done  { color: rgba(255,255,255,0.62); }
.mrpsg-inline-lyrics .mr-lyrics-word.is-active {
  color: #fff3c4;
  text-shadow:
    0 0 8px  rgba(255,220,120,0.55),
    0 0 18px rgba(255,160, 80,0.32);
  font-weight: 800;
}
.mrpsg-inline-lyrics .mr-lyrics-line.is-active.no-words {
  color: #fff3c4;
  text-shadow:
    0 0 10px rgba(255,220,120,0.4),
    0 0 24px rgba(255,140, 60,0.2);
}

/* Loading */
.mr-lyrics-state {
  font-size: 11px;
  color: rgba(255,255,255,0.18);
  font-style: italic;
  align-self: center;
  letter-spacing: 0.04em;
}

/* ── Streaming links bar – below lyrics, left-aligned ────────────────────── */
.mrpsg-lyrics-links {
  flex-shrink: 0;
  padding: 0 24px 14px 44px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.mr-stream-links-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mr-status-badges-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-left: 6px;
}

/* ── Link pills ── */
a.mr-stream-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.55);
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.015em;
  transition:
    background   0.22s ease,
    border-color 0.22s ease,
    color        0.22s ease,
    box-shadow   0.22s ease,
    transform    0.22s ease;
  white-space: nowrap;
}
a.mr-stream-link:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,220,140,0.28);
  color: rgba(255,255,255,0.88);
  box-shadow: 0 2px 14px rgba(255,200,120,0.09);
  transform: translateY(-1px);
}
.mr-sl-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.22s;
}
a.mr-stream-link:hover .mr-sl-dot { opacity: 1; }
.mr-sl-label { overflow: hidden; text-overflow: ellipsis; }

/* ── Status badges ── */
.mr-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.32);
  white-space: nowrap;
}
.mr-sb-early {
  color: rgba(255,210,100,0.65);
  border-color: rgba(255,210,100,0.12);
  background: rgba(255,180,50,0.05);
}
.mr-sb-dl {
  color: rgba(94,234,212,0.55);
  border-color: rgba(94,234,212,0.1);
  background: rgba(94,234,212,0.03);
}

/* ── Mobile ───────────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .mrpsg-lyrics-cover    { width: 90px; }
  .mrpsg-inline-lyrics   { padding: 10px 14px 4px 18px !important; height: 130px; }
  .mrpsg-lyrics-links    { padding: 0 10px 10px 18px; }
  .mrpsg-track-lyrics-row.is-open { max-height: 220px; }
  .mrpsg-inline-lyrics .mr-lyrics-line.is-active { font-size: 15px; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   Ambient Waveform  v3  – contained inside the lyrics body column only
   ══════════════════════════════════════════════════════════════════════════════ */

/* The waveform lives on .mrpsg-lyrics-body — the flex column that holds
   ONLY the inline-lyrics box + the links bar.
   This element already has flex:1 and min-width:0.
   Adding position:relative + overflow:hidden + isolation:isolate ensures
   the absolute ::before is clipped to this box and never bleeds out.          */

.mrpsg-lyrics-body {
  position: relative;
  overflow: hidden;          /* clips the waveform to this exact box */
  isolation: isolate;        /* new stacking context – z-index fully contained */
}

/* Waveform pseudo-element */
.mrpsg-track-lyrics-row.is-open .mrpsg-lyrics-body::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201200%20240%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M%200%2C124.8%20L%208%2C125.8%20L%2016%2C126.8%20L%2024%2C127.8%20L%2032%2C128.8%20L%2040%2C129.7%20L%2048%2C130.7%20L%2056%2C131.6%20L%2064%2C132.5%20L%2072%2C133.4%20L%2080%2C134.2%20L%2088%2C135.0%20L%2096%2C135.8%20L%20104%2C136.5%20L%20112%2C137.1%20L%20120%2C137.7%20L%20128%2C138.3%20L%20136%2C138.8%20L%20144%2C139.3%20L%20152%2C139.7%20L%20160%2C140.0%20L%20168%2C140.3%20L%20176%2C140.5%20L%20184%2C140.7%20L%20192%2C140.8%20L%20200%2C140.8%20L%20208%2C140.8%20L%20216%2C140.7%20L%20224%2C140.5%20L%20232%2C140.3%20L%20240%2C140.0%20L%20248%2C139.7%20L%20256%2C139.3%20L%20264%2C138.8%20L%20272%2C138.3%20L%20280%2C137.7%20L%20288%2C137.1%20L%20296%2C136.5%20L%20304%2C135.8%20L%20312%2C135.0%20L%20320%2C134.2%20L%20328%2C133.4%20L%20336%2C132.5%20L%20344%2C131.6%20L%20352%2C130.7%20L%20360%2C129.7%20L%20368%2C128.8%20L%20376%2C127.8%20L%20384%2C126.8%20L%20392%2C125.8%20L%20400%2C124.8%20L%20408%2C123.8%20L%20416%2C122.8%20L%20424%2C121.8%20L%20432%2C120.8%20L%20440%2C119.9%20L%20448%2C118.9%20L%20456%2C118.0%20L%20464%2C117.1%20L%20472%2C116.2%20L%20480%2C115.4%20L%20488%2C114.6%20L%20496%2C113.8%20L%20504%2C113.1%20L%20512%2C112.5%20L%20520%2C111.9%20L%20528%2C111.3%20L%20536%2C110.8%20L%20544%2C110.3%20L%20552%2C109.9%20L%20560%2C109.6%20L%20568%2C109.3%20L%20576%2C109.1%20L%20584%2C108.9%20L%20592%2C108.8%20L%20600%2C108.8%20L%20608%2C108.8%20L%20616%2C108.9%20L%20624%2C109.1%20L%20632%2C109.3%20L%20640%2C109.6%20L%20648%2C109.9%20L%20656%2C110.3%20L%20664%2C110.8%20L%20672%2C111.3%20L%20680%2C111.9%20L%20688%2C112.5%20L%20696%2C113.1%20L%20704%2C113.8%20L%20712%2C114.6%20L%20720%2C115.4%20L%20728%2C116.2%20L%20736%2C117.1%20L%20744%2C118.0%20L%20752%2C118.9%20L%20760%2C119.9%20L%20768%2C120.8%20L%20776%2C121.8%20L%20784%2C122.8%20L%20792%2C123.8%20L%20800%2C124.8%20L%20808%2C125.8%20L%20816%2C126.8%20L%20824%2C127.8%20L%20832%2C128.8%20L%20840%2C129.7%20L%20848%2C130.7%20L%20856%2C131.6%20L%20864%2C132.5%20L%20872%2C133.4%20L%20880%2C134.2%20L%20888%2C135.0%20L%20896%2C135.8%20L%20904%2C136.5%20L%20912%2C137.1%20L%20920%2C137.7%20L%20928%2C138.3%20L%20936%2C138.8%20L%20944%2C139.3%20L%20952%2C139.7%20L%20960%2C140.0%20L%20968%2C140.3%20L%20976%2C140.5%20L%20984%2C140.7%20L%20992%2C140.8%20L%201000%2C140.8%20L%201008%2C140.8%20L%201016%2C140.7%20L%201024%2C140.5%20L%201032%2C140.3%20L%201040%2C140.0%20L%201048%2C139.7%20L%201056%2C139.3%20L%201064%2C138.8%20L%201072%2C138.3%20L%201080%2C137.7%20L%201088%2C137.1%20L%201096%2C136.5%20L%201104%2C135.8%20L%201112%2C135.0%20L%201120%2C134.2%20L%201128%2C133.4%20L%201136%2C132.5%20L%201144%2C131.6%20L%201152%2C130.7%20L%201160%2C129.7%20L%201168%2C128.8%20L%201176%2C127.8%20L%201184%2C126.8%20L%201192%2C125.8%20L%201200%2C124.8%22%20fill%3D%22none%22%20stroke%3D%22rgba%28255%2C180%2C80%2C0.55%29%22%20stroke-width%3D%223.5%22%20stroke-linecap%3D%22round%22%2F%3E%3Cpath%20d%3D%22M%200%2C140.5%20L%208%2C140.8%20L%2016%2C141.1%20L%2024%2C141.3%20L%2032%2C141.5%20L%2040%2C141.7%20L%2048%2C141.8%20L%2056%2C141.9%20L%2064%2C142.0%20L%2072%2C142.0%20L%2080%2C142.0%20L%2088%2C141.9%20L%2096%2C141.8%20L%20104%2C141.7%20L%20112%2C141.5%20L%20120%2C141.3%20L%20128%2C141.0%20L%20136%2C140.7%20L%20144%2C140.4%20L%20152%2C140.0%20L%20160%2C139.6%20L%20168%2C139.2%20L%20176%2C138.7%20L%20184%2C138.2%20L%20192%2C137.7%20L%20200%2C137.2%20L%20208%2C136.6%20L%20216%2C135.9%20L%20224%2C135.3%20L%20232%2C134.6%20L%20240%2C133.9%20L%20248%2C133.2%20L%20256%2C132.4%20L%20264%2C131.7%20L%20272%2C130.9%20L%20280%2C130.1%20L%20288%2C129.2%20L%20296%2C128.4%20L%20304%2C127.5%20L%20312%2C126.7%20L%20320%2C125.8%20L%20328%2C124.9%20L%20336%2C124.0%20L%20344%2C123.1%20L%20352%2C122.2%20L%20360%2C121.2%20L%20368%2C120.3%20L%20376%2C119.4%20L%20384%2C118.5%20L%20392%2C117.6%20L%20400%2C116.7%20L%20408%2C115.7%20L%20416%2C114.8%20L%20424%2C114.0%20L%20432%2C113.1%20L%20440%2C112.2%20L%20448%2C111.3%20L%20456%2C110.5%20L%20464%2C109.7%20L%20472%2C108.9%20L%20480%2C108.1%20L%20488%2C107.3%20L%20496%2C106.6%20L%20504%2C105.9%20L%20512%2C105.2%20L%20520%2C104.5%20L%20528%2C103.9%20L%20536%2C103.3%20L%20544%2C102.7%20L%20552%2C102.1%20L%20560%2C101.6%20L%20568%2C101.1%20L%20576%2C100.7%20L%20584%2C100.2%20L%20592%2C99.8%20L%20600%2C99.5%20L%20608%2C99.2%20L%20616%2C98.9%20L%20624%2C98.7%20L%20632%2C98.5%20L%20640%2C98.3%20L%20648%2C98.2%20L%20656%2C98.1%20L%20664%2C98.0%20L%20672%2C98.0%20L%20680%2C98.0%20L%20688%2C98.1%20L%20696%2C98.2%20L%20704%2C98.3%20L%20712%2C98.5%20L%20720%2C98.7%20L%20728%2C99.0%20L%20736%2C99.3%20L%20744%2C99.6%20L%20752%2C100.0%20L%20760%2C100.4%20L%20768%2C100.8%20L%20776%2C101.3%20L%20784%2C101.8%20L%20792%2C102.3%20L%20800%2C102.8%20L%20808%2C103.4%20L%20816%2C104.1%20L%20824%2C104.7%20L%20832%2C105.4%20L%20840%2C106.1%20L%20848%2C106.8%20L%20856%2C107.6%20L%20864%2C108.3%20L%20872%2C109.1%20L%20880%2C109.9%20L%20888%2C110.8%20L%20896%2C111.6%20L%20904%2C112.5%20L%20912%2C113.3%20L%20920%2C114.2%20L%20928%2C115.1%20L%20936%2C116.0%20L%20944%2C116.9%20L%20952%2C117.8%20L%20960%2C118.8%20L%20968%2C119.7%20L%20976%2C120.6%20L%20984%2C121.5%20L%20992%2C122.4%20L%201000%2C123.3%20L%201008%2C124.3%20L%201016%2C125.2%20L%201024%2C126.0%20L%201032%2C126.9%20L%201040%2C127.8%20L%201048%2C128.7%20L%201056%2C129.5%20L%201064%2C130.3%20L%201072%2C131.1%20L%201080%2C131.9%20L%201088%2C132.7%20L%201096%2C133.4%20L%201104%2C134.1%20L%201112%2C134.8%20L%201120%2C135.5%20L%201128%2C136.1%20L%201136%2C136.7%20L%201144%2C137.3%20L%201152%2C137.9%20L%201160%2C138.4%20L%201168%2C138.9%20L%201176%2C139.3%20L%201184%2C139.8%20L%201192%2C140.2%20L%201200%2C140.5%22%20fill%3D%22none%22%20stroke%3D%22rgba%28255%2C210%2C110%2C0.45%29%22%20stroke-width%3D%225%22%20stroke-linecap%3D%22round%22%2F%3E%3Cpath%20d%3D%22M%200%2C123.3%20L%208%2C122.5%20L%2016%2C121.7%20L%2024%2C120.9%20L%2032%2C119.9%20L%2040%2C119.0%20L%2048%2C118.0%20L%2056%2C117.1%20L%2064%2C116.1%20L%2072%2C115.1%20L%2080%2C114.0%20L%2088%2C113.1%20L%2096%2C112.1%20L%20104%2C111.1%20L%20112%2C110.2%20L%20120%2C109.3%20L%20128%2C108.4%20L%20136%2C107.6%20L%20144%2C106.9%20L%20152%2C106.2%20L%20160%2C105.6%20L%20168%2C105.0%20L%20176%2C104.5%20L%20184%2C104.1%20L%20192%2C103.7%20L%20200%2C103.5%20L%20208%2C103.3%20L%20216%2C103.2%20L%20224%2C103.2%20L%20232%2C103.3%20L%20240%2C103.4%20L%20248%2C103.7%20L%20256%2C104.0%20L%20264%2C104.4%20L%20272%2C104.9%20L%20280%2C105.4%20L%20288%2C106.0%20L%20296%2C106.7%20L%20304%2C107.5%20L%20312%2C108.3%20L%20320%2C109.1%20L%20328%2C110.0%20L%20336%2C110.9%20L%20344%2C111.9%20L%20352%2C112.9%20L%20360%2C113.8%20L%20368%2C114.8%20L%20376%2C115.9%20L%20384%2C116.9%20L%20392%2C117.8%20L%20400%2C118.8%20L%20408%2C119.8%20L%20416%2C120.7%20L%20424%2C121.5%20L%20432%2C122.4%20L%20440%2C123.2%20L%20448%2C123.9%20L%20456%2C124.5%20L%20464%2C125.1%20L%20472%2C125.7%20L%20480%2C126.1%20L%20488%2C126.5%20L%20496%2C126.8%20L%20504%2C127.0%20L%20512%2C127.1%20L%20520%2C127.2%20L%20528%2C127.2%20L%20536%2C127.0%20L%20544%2C126.8%20L%20552%2C126.6%20L%20560%2C126.2%20L%20568%2C125.8%20L%20576%2C125.3%20L%20584%2C124.7%20L%20592%2C124.0%20L%20600%2C123.3%20L%20608%2C122.5%20L%20616%2C121.7%20L%20624%2C120.9%20L%20632%2C119.9%20L%20640%2C119.0%20L%20648%2C118.0%20L%20656%2C117.1%20L%20664%2C116.1%20L%20672%2C115.1%20L%20680%2C114.0%20L%20688%2C113.1%20L%20696%2C112.1%20L%20704%2C111.1%20L%20712%2C110.2%20L%20720%2C109.3%20L%20728%2C108.4%20L%20736%2C107.6%20L%20744%2C106.9%20L%20752%2C106.2%20L%20760%2C105.6%20L%20768%2C105.0%20L%20776%2C104.5%20L%20784%2C104.1%20L%20792%2C103.7%20L%20800%2C103.5%20L%20808%2C103.3%20L%20816%2C103.2%20L%20824%2C103.2%20L%20832%2C103.3%20L%20840%2C103.4%20L%20848%2C103.7%20L%20856%2C104.0%20L%20864%2C104.4%20L%20872%2C104.9%20L%20880%2C105.4%20L%20888%2C106.0%20L%20896%2C106.7%20L%20904%2C107.5%20L%20912%2C108.3%20L%20920%2C109.1%20L%20928%2C110.0%20L%20936%2C110.9%20L%20944%2C111.9%20L%20952%2C112.9%20L%20960%2C113.8%20L%20968%2C114.8%20L%20976%2C115.9%20L%20984%2C116.9%20L%20992%2C117.8%20L%201000%2C118.8%20L%201008%2C119.8%20L%201016%2C120.7%20L%201024%2C121.5%20L%201032%2C122.4%20L%201040%2C123.2%20L%201048%2C123.9%20L%201056%2C124.5%20L%201064%2C125.1%20L%201072%2C125.7%20L%201080%2C126.1%20L%201088%2C126.5%20L%201096%2C126.8%20L%201104%2C127.0%20L%201112%2C127.1%20L%201120%2C127.2%20L%201128%2C127.2%20L%201136%2C127.0%20L%201144%2C126.8%20L%201152%2C126.6%20L%201160%2C126.2%20L%201168%2C125.8%20L%201176%2C125.3%20L%201184%2C124.7%20L%201192%2C124.0%20L%201200%2C123.3%22%20fill%3D%22none%22%20stroke%3D%22rgba%28180%2C140%2C255%2C0.32%29%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%2F%3E%3Cpath%20d%3D%22M%200%2C140.1%20L%208%2C140.5%20L%2016%2C140.9%20L%2024%2C141.3%20L%2032%2C141.6%20L%2040%2C142.0%20L%2048%2C142.4%20L%2056%2C142.7%20L%2064%2C143.1%20L%2072%2C143.4%20L%2080%2C143.7%20L%2088%2C144.0%20L%2096%2C144.3%20L%20104%2C144.6%20L%20112%2C144.9%20L%20120%2C145.1%20L%20128%2C145.4%20L%20136%2C145.6%20L%20144%2C145.9%20L%20152%2C146.1%20L%20160%2C146.3%20L%20168%2C146.5%20L%20176%2C146.7%20L%20184%2C146.8%20L%20192%2C147.0%20L%20200%2C147.1%20L%20208%2C147.3%20L%20216%2C147.4%20L%20224%2C147.5%20L%20232%2C147.6%20L%20240%2C147.7%20L%20248%2C147.8%20L%20256%2C147.9%20L%20264%2C147.9%20L%20272%2C148.0%20L%20280%2C148.0%20L%20288%2C148.0%20L%20296%2C148.0%20L%20304%2C148.0%20L%20312%2C148.0%20L%20320%2C147.9%20L%20328%2C147.9%20L%20336%2C147.8%20L%20344%2C147.8%20L%20352%2C147.7%20L%20360%2C147.6%20L%20368%2C147.5%20L%20376%2C147.4%20L%20384%2C147.2%20L%20392%2C147.1%20L%20400%2C146.9%20L%20408%2C146.8%20L%20416%2C146.6%20L%20424%2C146.4%20L%20432%2C146.2%20L%20440%2C146.0%20L%20448%2C145.8%20L%20456%2C145.5%20L%20464%2C145.3%20L%20472%2C145.0%20L%20480%2C144.8%20L%20488%2C144.5%20L%20496%2C144.2%20L%20504%2C143.9%20L%20512%2C143.6%20L%20520%2C143.3%20L%20528%2C142.9%20L%20536%2C142.6%20L%20544%2C142.2%20L%20552%2C141.9%20L%20560%2C141.5%20L%20568%2C141.1%20L%20576%2C140.7%20L%20584%2C140.3%20L%20592%2C139.9%20L%20600%2C139.5%20L%20608%2C139.1%20L%20616%2C138.6%20L%20624%2C138.2%20L%20632%2C137.8%20L%20640%2C137.3%20L%20648%2C136.8%20L%20656%2C136.4%20L%20664%2C135.9%20L%20672%2C135.4%20L%20680%2C134.9%20L%20688%2C134.4%20L%20696%2C133.9%20L%20704%2C133.4%20L%20712%2C132.9%20L%20720%2C132.3%20L%20728%2C131.8%20L%20736%2C131.3%20L%20744%2C130.7%20L%20752%2C130.2%20L%20760%2C129.7%20L%20768%2C129.1%20L%20776%2C128.5%20L%20784%2C128.0%20L%20792%2C127.4%20L%20800%2C126.9%20L%20808%2C126.3%20L%20816%2C125.7%20L%20824%2C125.1%20L%20832%2C124.6%20L%20840%2C124.0%20L%20848%2C123.4%20L%20856%2C122.8%20L%20864%2C122.2%20L%20872%2C121.6%20L%20880%2C121.1%20L%20888%2C120.5%20L%20896%2C119.9%20L%20904%2C119.3%20L%20912%2C118.7%20L%20920%2C118.1%20L%20928%2C117.5%20L%20936%2C117.0%20L%20944%2C116.4%20L%20952%2C115.8%20L%20960%2C115.2%20L%20968%2C114.6%20L%20976%2C114.1%20L%20984%2C113.5%20L%20992%2C112.9%20L%201000%2C112.4%20L%201008%2C111.8%20L%201016%2C111.2%20L%201024%2C110.7%20L%201032%2C110.1%20L%201040%2C109.6%20L%201048%2C109.0%20L%201056%2C108.5%20L%201064%2C108.0%20L%201072%2C107.4%20L%201080%2C106.9%20L%201088%2C106.4%20L%201096%2C105.9%20L%201104%2C105.4%20L%201112%2C104.9%20L%201120%2C104.4%20L%201128%2C103.9%20L%201136%2C103.4%20L%201144%2C103.0%20L%201152%2C102.5%20L%201160%2C102.1%20L%201168%2C101.6%20L%201176%2C101.2%20L%201184%2C100.7%20L%201192%2C100.3%20L%201200%2C99.9%22%20fill%3D%22none%22%20stroke%3D%22rgba%28255%2C160%2C60%2C0.22%29%22%20stroke-width%3D%227%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;

  opacity: 0.09;
  filter: blur(2px);
  animation: mrAmbientWave 11s ease-in-out infinite;
  will-change: transform, opacity;
}

/* All direct children stay above the waveform */
.mrpsg-lyrics-body > * {
  position: relative;
  z-index: 1;
}

@keyframes mrAmbientWave {
  0%   { transform: translateX(-1.5%) scaleY(0.86); opacity: 0.06;  }
  28%  { transform: translateX( 0.8%) scaleY(1.14); opacity: 0.11;  }
  56%  { transform: translateX( 1.5%) scaleY(0.90); opacity: 0.07;  }
  80%  { transform: translateX(-0.4%) scaleY(1.18); opacity: 0.10;  }
  100% { transform: translateX(-1.5%) scaleY(0.86); opacity: 0.06;  }
}

/* More presence when an active line is visible */
.mrpsg-track-lyrics-row.is-open .mrpsg-lyrics-body:has(.is-active)::before {
  animation: mrAmbientWavePlaying 8s ease-in-out infinite;
}

@keyframes mrAmbientWavePlaying {
  0%   { transform: translateX(-1.0%) scaleY(0.90); opacity: 0.08;  }
  25%  { transform: translateX( 1.0%) scaleY(1.16); opacity: 0.13;  }
  55%  { transform: translateX( 1.4%) scaleY(0.88); opacity: 0.09;  }
  78%  { transform: translateX(-0.3%) scaleY(1.20); opacity: 0.12;  }
  100% { transform: translateX(-1.0%) scaleY(0.90); opacity: 0.08;  }
}

/* Word-boundary micro-pulse */
.mrpsg-track-lyrics-row.is-open .mrpsg-lyrics-body:has(.mr-word-pulse)::before {
  animation: mrWordPulse 0.4s ease-out forwards,
             mrAmbientWavePlaying 8s ease-in-out 0.4s infinite;
}

@keyframes mrWordPulse {
  0%   { opacity: 0.20; transform: scaleY(1.22); }
  100% { opacity: 0.10; transform: scaleY(1.0);  }
}

/* Keep lyrics-box vignettes clean (not waveform) */
.mrpsg-inline-lyrics::before {
  background: linear-gradient(180deg, rgba(6,6,18,0.97) 0%, transparent 100%);
  opacity: 1;
  animation: none;
  filter: none;
  transform: none;
}
.mrpsg-inline-lyrics::after {
  background: linear-gradient(0deg, rgba(6,6,18,0.97) 0%, transparent 100%);
  opacity: 1;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .mrpsg-track-lyrics-row.is-open .mrpsg-lyrics-body::before {
    animation: none;
    opacity: 0.06;
    transform: none;
  }
}

/* Mobile */
@media (max-width: 700px) {
  .mrpsg-track-lyrics-row.is-open .mrpsg-lyrics-body::before {
    opacity: 0.05;
    filter: blur(3px);
  }
}

/* ── Neutral "waiting" state ───────────────────────────────────────────────── */
.mr-lyrics-waiting {
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.05em;
  color: rgba(255,210,140,0.55);
  text-shadow:
    0 0 14px rgba(255,180,80,0.35),
    0 0 28px rgba(255,150,60,0.18);
  align-self: center;
  animation: mrWaitingPulse 4s ease-in-out infinite;
  user-select: none;
}

@keyframes mrWaitingPulse {
  0%, 100% { opacity: 0.50; }
  50%       { opacity: 0.75; }
}

@media (prefers-reduced-motion: reduce) {
  .mr-lyrics-waiting { animation: none; opacity: 0.55; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   Polish pass v9.17.7
   ══════════════════════════════════════════════════════════════════════════════ */

/* 1. Soft line entrance animation */
.mrpsg-inline-lyrics .mr-lyrics-line.is-active {
  animation: lyricsSoftIn 0.22s ease-out;
}
@keyframes lyricsSoftIn {
  from { opacity: 0; transform: translateY(3px); }
  to   { opacity: 1; transform: translateY(0);   }
}
@media (prefers-reduced-motion: reduce) {
  .mrpsg-inline-lyrics .mr-lyrics-line.is-active { animation: none; }
}

/* 2. Links bar: a touch more top gap so it breathes below the lyrics */
.mrpsg-lyrics-links {
  padding-top: 4px;
}

/* 3. Waiting hint: slightly more visible, centred, warm */
.mr-lyrics-waiting {
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.05em;
  color: rgba(255,210,140,0.50);
  text-shadow:
    0 0 16px rgba(255,180,80,0.30),
    0 0 32px rgba(255,140,50,0.14);
  align-self: center;
  text-align: center;
  animation: mrWaitingPulse 4.5s ease-in-out infinite;
  user-select: none;
}
@keyframes mrWaitingPulse {
  0%, 100% { opacity: 0.48; }
  50%       { opacity: 0.72; }
}
@media (prefers-reduced-motion: reduce) {
  .mr-lyrics-waiting { animation: none; opacity: 0.55; }
}
