/* 가사 화면: 파트 칸 | 가사 칸. 파트 칸 폭을 고정해야 모든 줄의 가사가 한 자리에서
 * 시작한다(되풀이되는 줄은 표처럼 칸이 맞아야 함). 유틸 클래스로는 열 폭 고정 그리드를
 * 표현할 수 없어 여기 둔다. */
.lyrics {
  display: grid;
  grid-template-columns: var(--label-width, 5.5em) 1fr;
  line-height: 1.55;
}
.lyrics .row { display: contents; }
.lyrics .label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* 0.8em 글자 기준 한 글자 = 0.8em. app.js 의 labelWidth 가 이 비율로 폭을 잡는다 */
  font-size: 0.8em;
  padding-top: 0.2em;
  text-align: right;
}
/* 칸 사이 간격을 column-gap 대신 안쪽 여백으로 둔다. gap 은 배경이 안 칠해져 강조 줄이 둘로 갈라졌다 */
.lyrics .text { overflow-wrap: anywhere; padding-left: 0.6em; }
.lyrics .gap { grid-column: 1 / -1; height: 0.9em; }
/* 내 파트 강조는 줄 전체가 아니라 **내가 부르는 조각만**(2026-10-05 사용자 지시). 테마 토큰(primary)을
 * 투명도로만 쓴다 — Vuetify 에 '옅은 primary 배경' 유틸이 없어서 여기 둔다. 줄은 왼쪽 막대로만 표시. */
.lyrics .seg-mine { background: rgba(var(--v-theme-primary), 0.18); font-weight: 700;
  box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lyrics .row.mine > :first-child { box-shadow: inset 4px 0 0 rgb(var(--v-theme-primary)); }
.lyrics.dim .row:not(.mine) .text { opacity: 0.45; }

/* 곡목록 한 줄: 번호 | 제목 | 내 줄 수. 같은 이유로 칸 폭 고정. */
.song-row {
  display: grid;
  grid-template-columns: 2em 1fr 4.5em;
  align-items: center;
  column-gap: 0.75rem;
}

.editor textarea {
  font-family: ui-monospace, Consolas, "D2Coding", monospace;
  font-size: 14px;
  line-height: 1.5;
}

/* 무대 모드: 7월 프롬프트(pptx)와 같은 순검정 배경. 글자색은 사람별 데이터 색이라 테마 토큰으로
 * 표현할 수 없고, 배경도 테마(다크/라이트)와 무관하게 검정이어야 해서 여기 둔다. */
.stage-wrap { background: #000; }
.lyrics.stage { color: #fff; }
.lyrics.stage .row.mine > :first-child { box-shadow: inset 4px 0 0 #fff; }
.lyrics.stage .seg-mine { background: rgba(255, 255, 255, 0.2); font-weight: 800; }
/* 줄 안에서 바뀐 조각의 이름표(보기 화면). 유틸 클래스로는 위첨자 크기·간격을 못 준다 */
.lyrics .seg-tag { font-size: 0.55em; margin: 0 0.15em; }
/* 색 견본: 무대처럼 검은 바탕에 그 색 글자. 색은 사람마다 다른 데이터라 테마 토큰이 아니다 */
.swatch {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.9em; height: 1.9em; border-radius: 6px; background: #000;
  font-weight: 800; border: 2px solid transparent; cursor: default;
}
button.swatch { cursor: pointer; }
.swatch.picked { border-color: rgb(var(--v-theme-primary)); }
/* 색 범례·붓: 검은 바탕에 사람 색 글자(무대와 같은 모습). 색이 데이터라 테마로 못 준다 */
.legend { font-weight: 700; }
.brush {
  background: #000; border: 2px solid #444; border-radius: 8px;
  padding: 0.25em 0.7em; font-weight: 800; cursor: pointer;
}
.brush.on { border-color: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35); }
.brush-sample { background: #000; padding: 0 0.4em; border-radius: 4px; font-weight: 800; }
/* 색칠 막대는 긴 가사를 내려도 위에 붙어 있어야 한다. sticky 는 유틸 클래스가 없다 */
.paint-bar { position: sticky; top: 56px; z-index: 2; }

/* 슬라이드 보기: 화면 전체를 덮는 검정 무대. 메뉴 막대(z 1004)보다 위. 크기·위치를 화면에 고정해야
 * 해서 유틸 클래스로 안 된다 */
.slide-stage {
  position: fixed; inset: 0; z-index: 3000; background: #000;
  display: flex; align-items: center; justify-content: center;
  user-select: none; cursor: none; touch-action: pan-y;
}
.slide-body {
  max-width: 94%; max-height: 92%; text-align: center; line-height: 1.1;
  font-family: "NanumSquareRoundEB", "NanumSquareRound", "Malgun Gothic", sans-serif;
  word-break: keep-all; overflow-wrap: anywhere;
}
.slide-hud {
  position: fixed; left: 0; right: 0; bottom: 0; padding: 8px 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  color: #fff; background: rgba(0, 0, 0, 0.6); opacity: 0; transition: opacity 0.3s; cursor: default;
}
.slide-hud.on { opacity: 1; }
.slide-stage:has(.slide-hud.on) { cursor: default; }
/* 숨은 동안에는 누름을 무대로 넘긴다(아래쪽을 눌러도 장이 넘어가게) */
.slide-hud { pointer-events: none; }
.slide-hud.on { pointer-events: auto; }

/* 분량 표: 사람 칸 폭을 고정해 숫자가 줄마다 같은 자리에 온다(되풀이되는 줄은 칸이 맞아야 함).
 * 표 칸 폭은 유틸 클래스로 못 준다 */
.shares table { table-layout: fixed; width: 100%; }
.shares .num-col { white-space: nowrap; overflow: hidden; }
.shares .song-head td { border-bottom: none !important; padding-top: 10px !important; height: auto !important; }
.shares .song-head td { max-width: 0; }
.shares .clickable { cursor: pointer; }
.swatch-name { background: #000; padding: 0.1em 0.45em; border-radius: 4px; font-weight: 800; }

/* 곡 이동 막대: 메뉴 막대(48px) 바로 아래에 붙는다. sticky 와 테마 바탕은 유틸로 못 준다 */
.song-nav {
  position: sticky; top: 48px; z-index: 3;
  background: rgb(var(--v-theme-surface));
  border-bottom: thin solid rgba(var(--v-border-color), var(--v-border-opacity));
}
/* 분량 알약: 사람마다 같은 폭이라 곡목록 줄마다 숫자가 같은 자리에 온다 */
.share-chips { display: flex; gap: 4px; margin-top: 4px; }
.share-chip {
  display: inline-flex; align-items: center; justify-content: space-between;
  width: 4.6em; padding: 0 0.4em; border-radius: 6px; background: #000;
  font-size: 12px; line-height: 1.7; white-space: nowrap;
}
.share-name { font-weight: 800; }
.share-num { color: #fff; font-variant-numeric: tabular-nums; }
.legend-share { font-weight: 700; margin-left: 0.3em; }
.legend-solo { font-weight: 400; opacity: 0.75; font-size: 0.85em; margin-left: 0.15em; }
/* 탭으로 위쪽 막대를 숨긴 상태: 곡 이동 막대도 접는다(빈자리 없이). 메뉴 막대는 v-app-bar 의
 * model-value 가 접는다. 밀린 만큼은 app.js 가 스크롤로 맞춘다 */
.song-nav.hidden { display: none; }
/* 강조 버튼은 고른 이름 길이와 상관없이 폭이 같아야 옆 단추들이 밀리지 않는다 */
.focus-btn { width: 9.5em; justify-content: flex-start; }
.focus-btn .v-btn__content { overflow: hidden; }
