
/* PlaMúsica v2.25.0 — Worship Mode Core */
body.pm-worship-active{overflow:hidden!important}

.pm-worship{
  --pm-worship-scale:1.08;
  position:fixed;
  inset:0;
  z-index:2147483000;
  display:grid;
  grid-template-rows:auto auto minmax(0,1fr) auto;
  background:#020509;
  color:#f7fafc;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.pm-worship[hidden]{display:none!important}
.pm-worship-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  min-height:76px;
  padding:10px 18px;
  border-bottom:1px solid #1c2935;
  background:rgba(4,10,16,.96);
  backdrop-filter:blur(14px);
}
.pm-worship-identity{min-width:0;display:grid;gap:2px}
.pm-worship-kicker{font-size:10px;font-weight:950;letter-spacing:.16em;color:#50ccff}
.pm-worship-identity strong{font-size:20px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pm-worship-identity small{font-size:10px;color:#8195a7;font-weight:750}
.pm-worship-top-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.pm-worship-key-controls,.pm-worship-font-controls{
  display:flex;align-items:center;gap:4px;padding:3px;border:1px solid #263746;border-radius:11px;background:#07111a
}
.pm-worship-key-controls span,.pm-worship-font-controls span{min-width:72px;text-align:center;font-size:11px;font-weight:900;color:#e6eff7}
.pm-worship button{
  border:1px solid #2d4355;
  border-radius:9px;
  background:#0d1b27;
  color:#eaf4fb;
  font-weight:900;
  cursor:pointer;
  min-height:38px;
  padding:8px 11px;
}
.pm-worship button:hover{border-color:#54caff;background:#10283a}
.pm-worship button:disabled{opacity:.3;cursor:not-allowed}
.pm-worship-key-controls button,.pm-worship-font-controls button{min-width:38px;padding:7px}
.pm-worship-fullscreen{border-color:#285979!important}
.pm-worship-close{border-color:#7b3030!important;background:#341111!important}
.pm-worship-preview-badge{
  padding:7px 14px;text-align:center;background:#3b2c07;border-bottom:1px solid #8b6811;color:#ffe49c;
  font-size:10px;font-weight:900;letter-spacing:.04em
}
.pm-worship-scroll{
  min-width:0;
  overflow:auto;
  overscroll-behavior:contain;
  scroll-behavior:smooth;
  padding:clamp(18px,3.5vw,48px) clamp(16px,6vw,90px) 90px;
  background:radial-gradient(circle at 50% -10%,#0b1721 0,#020509 45%);
}
.pm-worship-sheet{
  width:min(1100px,100%);
  margin:0 auto;
  font-size:calc(18px * var(--pm-worship-scale));
  line-height:1.7;
  color:#f5f7fa;
}
.pm-worship-sheet .pm-music-sheet,
.pm-worship-sheet .pm-song-section,
.pm-worship-sheet .pm-cifra-render,
.pm-worship-sheet [class*="pm-song"]{
  max-width:100%!important;
}
.pm-worship-sheet .pm-music-sheet{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  padding:0!important;
  color:#f5f7fa!important;
}
.pm-worship-sheet .pm-song-section{
  break-inside:avoid;
  margin:0 0 1.5em!important;
  padding:0!important;
  background:transparent!important;
  border-color:#243340!important;
}
.pm-worship-sheet .pm-chorus-section{
  padding:1em 1.15em!important;
  border-left:5px solid #ffb02e!important;
  border-radius:10px;
  background:#10100c!important;
}
.pm-worship-sheet .pm-inline-chord,
.pm-worship-sheet .pm-note-cell-chord,
.pm-worship-sheet .pm-note-score-chord,
.pm-worship-sheet .pm-chord,
.pm-worship-sheet b[class*="chord"]{
  color:#ffb02e!important;
  font-weight:950!important;
  text-shadow:0 0 14px rgba(255,176,46,.14);
}
.pm-worship-sheet p,
.pm-worship-sheet .pm-lyric,
.pm-worship-sheet .pm-lyric-line,
.pm-worship-sheet .pm-chord-segment{
  color:#f7f8fa!important;
  font-size:1em!important;
  line-height:1.72!important;
}
.pm-worship-sheet h1,.pm-worship-sheet h2,.pm-worship-sheet h3,.pm-worship-sheet h4{
  color:#fff!important;
  font-size:1.15em!important;
}
.pm-worship-sheet .pm-song-intro{
  background:#071019!important;border-color:#20394b!important;color:#e9f2f8!important
}
.pm-worship-bottombar{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;
  gap:12px;
  padding:10px 16px;
  border-top:1px solid #1b2a36;
  background:rgba(4,10,16,.97);
  backdrop-filter:blur(12px);
}
.pm-worship-nav{
  display:grid!important;
  gap:2px;
  min-width:0;
  text-align:left;
  padding:9px 12px!important;
}
.pm-worship-nav span{font-size:8px;letter-spacing:.1em;color:#6f8ba0}
.pm-worship-nav strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pm-worship-next{text-align:right!important}
.pm-worship-center{display:flex;align-items:center;gap:8px;color:#71889a;font-size:10px}
.pm-worship-open{position:relative}
.pm-worship-open em{
  position:absolute;right:-7px;top:-9px;padding:2px 5px;border-radius:99px;background:#e2a318;color:#201600;
  font-size:7px;font-style:normal;font-weight:950
}

@media(max-width:760px){
  .pm-worship{grid-template-rows:auto auto minmax(0,1fr) auto}
  .pm-worship-topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:9px 10px;gap:8px}
  .pm-worship-identity strong{font-size:16px}
  .pm-worship-identity small{font-size:9px}
  .pm-worship-top-actions{display:grid;grid-template-columns:auto auto auto;gap:5px}
  .pm-worship-key-controls{grid-column:1/-1;justify-self:end}
  .pm-worship-font-controls span{min-width:52px}
  .pm-worship-fullscreen span,.pm-worship-close span{display:none}
  .pm-worship-scroll{padding:20px 12px 80px}
  .pm-worship-sheet{font-size:calc(19px * var(--pm-worship-scale));line-height:1.78}
  .pm-worship-bottombar{grid-template-columns:1fr 70px 1fr;padding:8px;gap:6px}
  .pm-worship-nav{padding:8px!important}
  .pm-worship-nav strong{font-size:9px}
  .pm-worship-center{display:grid;justify-items:center;gap:2px;text-align:center}
  .pm-worship-center button{min-height:34px;padding:6px 8px}
}
@media(max-width:430px){
  .pm-worship-topbar{grid-template-columns:1fr}
  .pm-worship-top-actions{grid-template-columns:1fr 1fr auto auto}
  .pm-worship-key-controls{grid-column:1/3;justify-self:stretch}
  .pm-worship-key-controls span{flex:1}
  .pm-worship-font-controls{grid-column:1/3}
  .pm-worship-scroll{padding-left:9px;padding-right:9px}
  .pm-worship-sheet{font-size:calc(18px * var(--pm-worship-scale))}
  .pm-worship-bottombar{grid-template-columns:1fr 58px 1fr}
}
@media(orientation:landscape) and (max-height:560px){
  .pm-worship-topbar{min-height:54px;padding:5px 10px}
  .pm-worship-scroll{padding-top:14px}
  .pm-worship-bottombar{padding:5px 10px}
}


/* v2.26.1 — Worship Readability + Theme Shield */
.pm-worship{
  --pm-worship-lyric-size:calc(21px * var(--pm-worship-scale));
  --pm-worship-heading-size:36px;
  --pm-worship-chord-size:18px;
}

/* Titles should not scale aggressively with A-/A+ */
.pm-worship-sheet .pm-song-section-title,
.pm-worship-sheet h1,
.pm-worship-sheet h2,
.pm-worship-sheet h3,
.pm-worship-sheet h4{
  font-size:var(--pm-worship-heading-size)!important;
  line-height:1.15!important;
}

/* Lyrics are the main target of A-/A+ */
.pm-worship-sheet p,
.pm-worship-sheet .pm-inline-lyric,
.pm-worship-sheet .pm-lyric,
.pm-worship-sheet .pm-lyric-line,
.pm-worship-sheet .pm-chord-segment,
.pm-worship-sheet [class*="lyric"]{
  color:#ffffff!important;
  opacity:1!important;
  filter:none!important;
  text-shadow:0 0 1px rgba(255,255,255,.12)!important;
  font-size:var(--pm-worship-lyric-size)!important;
  line-height:1.72!important;
  font-weight:600!important;
}

/* Ensure nested lyric spans don't inherit muted app colors */
.pm-worship-sheet p span,
.pm-worship-sheet .pm-inline-lyric span,
.pm-worship-sheet .pm-lyric span,
.pm-worship-sheet .pm-lyric-line span,
.pm-worship-sheet .pm-chord-segment span{
  color:inherit!important;
  opacity:1!important;
}

/* Chords remain highly visible but do not grow disproportionately */
.pm-worship-sheet .pm-inline-chord,
.pm-worship-sheet .pm-note-cell-chord,
.pm-worship-sheet .pm-note-score-chord,
.pm-worship-sheet .pm-chord,
.pm-worship-sheet b[class*="chord"]{
  color:#ffbd38!important;
  opacity:1!important;
  font-size:var(--pm-worship-chord-size)!important;
  line-height:1.25!important;
}

/* DARK THEME */
.pm-worship[data-theme="dark"]{
  background:#020509!important;
  color:#fff!important;
}
.pm-worship[data-theme="dark"] .pm-worship-scroll{
  background:radial-gradient(circle at 50% -10%,#0c1822 0,#020509 45%)!important;
}
.pm-worship[data-theme="dark"] .pm-worship-sheet,
.pm-worship[data-theme="dark"] .pm-worship-sheet .pm-music-sheet{
  color:#fff!important;
}
.pm-worship[data-theme="dark"] .pm-worship-sheet .pm-chorus-section{
  background:#11100c!important;
  border-left-color:#ffb82f!important;
}

/* LIGHT THEME */
.pm-worship[data-theme="light"]{
  background:#f7f9fc!important;
  color:#0b1520!important;
}
.pm-worship[data-theme="light"] .pm-worship-topbar,
.pm-worship[data-theme="light"] .pm-worship-bottombar{
  background:rgba(255,255,255,.98)!important;
  border-color:#d8e2eb!important;
  color:#0b1520!important;
}
.pm-worship[data-theme="light"] .pm-worship-identity strong,
.pm-worship[data-theme="light"] .pm-worship-center,
.pm-worship[data-theme="light"] .pm-worship-nav strong{
  color:#0b1520!important;
}
.pm-worship[data-theme="light"] .pm-worship-identity small,
.pm-worship[data-theme="light"] .pm-worship-nav span{
  color:#60768a!important;
}
.pm-worship[data-theme="light"] .pm-worship-scroll{
  background:linear-gradient(180deg,#ffffff,#f3f7fb)!important;
}
.pm-worship[data-theme="light"] .pm-worship-sheet,
.pm-worship[data-theme="light"] .pm-worship-sheet .pm-music-sheet{
  color:#07111d!important;
}
.pm-worship[data-theme="light"] .pm-worship-sheet p,
.pm-worship[data-theme="light"] .pm-worship-sheet .pm-inline-lyric,
.pm-worship[data-theme="light"] .pm-worship-sheet .pm-lyric,
.pm-worship[data-theme="light"] .pm-worship-sheet .pm-lyric-line,
.pm-worship[data-theme="light"] .pm-worship-sheet .pm-chord-segment,
.pm-worship[data-theme="light"] .pm-worship-sheet [class*="lyric"]{
  color:#0a1420!important;
  text-shadow:none!important;
  font-weight:650!important;
}
.pm-worship[data-theme="light"] .pm-worship-sheet p span,
.pm-worship[data-theme="light"] .pm-worship-sheet .pm-inline-lyric span,
.pm-worship[data-theme="light"] .pm-worship-sheet .pm-lyric span,
.pm-worship[data-theme="light"] .pm-worship-sheet .pm-lyric-line span,
.pm-worship[data-theme="light"] .pm-worship-sheet .pm-chord-segment span{
  color:inherit!important;
}
.pm-worship[data-theme="light"] .pm-worship-sheet .pm-song-section-title,
.pm-worship[data-theme="light"] .pm-worship-sheet h1,
.pm-worship[data-theme="light"] .pm-worship-sheet h2,
.pm-worship[data-theme="light"] .pm-worship-sheet h3,
.pm-worship[data-theme="light"] .pm-worship-sheet h4{
  color:#07111d!important;
}
.pm-worship[data-theme="light"] .pm-worship-sheet .pm-inline-chord,
.pm-worship[data-theme="light"] .pm-worship-sheet .pm-note-cell-chord,
.pm-worship[data-theme="light"] .pm-worship-sheet .pm-note-score-chord,
.pm-worship[data-theme="light"] .pm-worship-sheet .pm-chord,
.pm-worship[data-theme="light"] .pm-worship-sheet b[class*="chord"]{
  color:#c76a00!important;
  text-shadow:none!important;
}
.pm-worship[data-theme="light"] .pm-worship-sheet .pm-chorus-section{
  background:#fff9ea!important;
  border-color:#f0d9a6!important;
  border-left-color:#d78b13!important;
}
.pm-worship[data-theme="light"] .pm-worship-key-controls,
.pm-worship[data-theme="light"] .pm-worship-font-controls{
  background:#f7fafc!important;
  border-color:#cad9e5!important;
}
.pm-worship[data-theme="light"] .pm-worship-key-controls span,
.pm-worship[data-theme="light"] .pm-worship-font-controls span{
  color:#0b1520!important;
}
.pm-worship[data-theme="light"] button{
  background:#fff!important;
  color:#0b1520!important;
  border-color:#c8d7e3!important;
}
.pm-worship[data-theme="light"] .pm-worship-close{
  background:#fff0f0!important;
  color:#8e1b1b!important;
  border-color:#e6b6b6!important;
}
.pm-worship-theme{border-color:#3b5d76!important}

@media(max-width:760px){
  .pm-worship{
    --pm-worship-heading-size:30px;
    --pm-worship-chord-size:17px;
    --pm-worship-lyric-size:calc(20px * var(--pm-worship-scale));
  }
  .pm-worship-theme span{display:none}
}
@media(max-width:430px){
  .pm-worship{
    --pm-worship-heading-size:28px;
    --pm-worship-chord-size:16px;
    --pm-worship-lyric-size:calc(19px * var(--pm-worship-scale));
  }
}
