/* Экран песни: аккорды над текстом, панель тональности, режим служения. */

.song-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: -4px 0 16px; color: var(--text-2); font-size: 14.5px; }

.tools {
  position: sticky; top: calc(var(--safe-t) + 8px); z-index: 8;
  display: flex; align-items: center; gap: 8px; margin-bottom: 18px;
  padding: 7px; border-radius: 999px;
  background: rgba(29, 33, 71, 0.86); border: 1px solid var(--line-2);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.tools .icon-btn { width: 40px; height: 40px; background: transparent; border: 0; }
.tools .icon-btn.on { background: var(--gold-soft); }
.tools .spacer { flex: 1; }
.tools .txt { font-weight: 800; font-size: 15px; }
.tools .txt.big { font-size: 20px; }
.tools .txt sup { font-size: .6em; margin-left: 1px; }

.transpose { display: flex; align-items: center; gap: 2px; padding-left: 4px; }
.transpose .cur {
  min-width: 58px; height: 40px; border-radius: 999px; padding: 0 10px;
  display: grid; place-items: center; line-height: 1.05; text-align: center;
  background: var(--gold); color: #251a02; font-weight: 800; font-size: 17px;
}
.transpose .cur small { display: block; font-size: 10px; font-weight: 700; opacity: .7; margin-top: 1px; }

/* Сам текст песни */
.sheet-music { --size: 18px; font-size: var(--size); line-height: 1.35; }
.sm-section {
  display: inline-block; margin: 22px 0 8px;
  padding: 4px 12px; border-radius: 8px;
  font-size: .78em; font-weight: 800; color: var(--violet);
  background: rgba(140, 124, 240, 0.14);
}
.sm-section:first-child { margin-top: 0; }
.sm-gap + .sm-section { margin-top: 8px; }
.sm-line { display: flex; flex-wrap: wrap; align-items: flex-end; margin-bottom: .35em; }
.sm-gap { height: .9em; }
.seg { display: inline-flex; flex-direction: column; white-space: pre; }
.seg .ch {
  color: var(--gold); font-weight: 800; font-size: .86em; line-height: 1.25;
  padding-right: .45em; min-height: 1.25em;
}
.seg .tx { font-weight: 500; }
.sm-line.chords-only .seg .ch { padding-right: 1.1em; }
.no-chords .seg .ch, .no-chords .sm-line.chords-only { display: none; }
.no-chords .sm-line { margin-bottom: .15em; }

.song-notes {
  margin: 0 0 18px; padding: 12px 14px; border-radius: var(--r-sm);
  background: rgba(79, 209, 192, 0.09); border-left: 3px solid var(--teal);
  color: var(--text); font-size: 15px; white-space: pre-wrap;
}

/* Предпросмотр в редакторе */
.preview {
  padding: 16px; border-radius: var(--r-md);
  background: var(--night-2); border: 1px solid var(--line);
}
.preview .sheet-music { --size: 16px; }

/* ---------- Режим служения (листаем песни сет-листа) ---------- */

.view.live { padding-bottom: calc(var(--safe-b) + 110px); }

.live-pos { font-weight: 700; color: var(--text-2); font-size: 14px; }
.live-dots { display: flex; gap: 5px; margin-left: auto; }
.live-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.live-dots i.on { background: var(--gold); width: 20px; border-radius: 4px; }

.live-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; gap: 10px; padding: 10px 16px calc(var(--safe-b) + 10px);
  background: linear-gradient(180deg, transparent, rgba(21, 24, 51, .95) 35%);
}
.live-nav .btn { flex: 1; }
.live-nav .btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 22ch; }

/* Сет-лист в редакторе служения */
.set-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.set-item + .set-item { border-top: 1px solid var(--line); }
.set-item .n { width: 18px; color: var(--text-3); font-weight: 700; }
.set-item .item-main { min-width: 0; }
.set-item .mini { width: 34px; height: 34px; }
.set-item .key { cursor: pointer; }
.team-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.team-row + .team-row { border-top: 1px solid var(--line); }
.team-row .role { width: 110px; flex: none; font-weight: 700; color: var(--text-2); font-size: 14.5px; }
.team-row button.who { flex: 1; text-align: left; padding: 8px 12px; border-radius: 10px; background: var(--night-3); font-weight: 600; }
.team-row button.who.empty-who { color: var(--text-3); }

@media (min-width: 700px) {
  .sheet-music { --size: 20px; }
}
