:root {
  color-scheme: dark;
  --bg: #071d20;
  --surface: #102c2e;
  --surface-2: #17393a;
  --line: #356063;
  --ink: #fff2d7;
  --muted: #aec8be;
  --accent: #ff694d;
  --accent-ink: #192527;
  --intro: #f7b26f;
  --verse: #48c0bb;
  --chorus: #ff7057;
  --bridge: #d8c56f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 10% 0%, #165e61 0, var(--bg) 42%), var(--bg); color: var(--ink); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.app-shell { max-width: 740px; margin: 0 auto; padding: calc(14px + env(safe-area-inset-top)) 18px 116px; }
.app-header, .section-heading-row, .now-playing, .controls, .comment, .comment-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cover-hero { position: relative; min-height: 190px; overflow: hidden; border: 1px solid rgba(255, 211, 145, .4); border-radius: 23px; background: #24494a; box-shadow: 0 18px 48px rgba(0,0,0,.32); }
.cover-hero::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(7,29,32,.86) 0%, rgba(7,29,32,.34) 60%, rgba(255,93,67,.22)); }
.cover-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.app-header { position: relative; z-index: 1; min-height: 190px; padding: 20px; align-items: flex-start; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.55rem, 5vw, 2rem); letter-spacing: -.035em; }
h2 { font-size: 1.05rem; letter-spacing: -.015em; }
.eyebrow, .label { color: var(--muted); font-size: .7rem; font-weight: 750; letter-spacing: .12em; }
.text-button { border: 1px solid rgba(255, 242, 215, .52); background: rgba(7,29,32,.42); color: var(--ink); border-radius: 999px; padding: .5rem .75rem; font-size: .85rem; backdrop-filter: blur(6px); }

.now-playing { padding: 15px 2px; }
.active-section { margin-top: 4px; color: var(--accent); font-size: 1.25rem; font-weight: 750; }
.clock, .duration, time { color: var(--muted); font-variant-numeric: tabular-nums; }
.clock { color: var(--ink); font-size: 1.4rem; font-weight: 700; }
.now-actions { display: flex; align-items: flex-end; flex-direction: column; gap: 8px; }
.player-panel { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(160deg, rgba(21,57,58,.98), var(--surface)); box-shadow: 0 12px 28px rgba(0,0,0,.18); }
.waveform { min-height: 176px; padding: 64px 14px 0; touch-action: pan-y; }
.waveform wave { overflow: hidden !important; border-radius: 8px; }
.section-bands { position: absolute; pointer-events: none; left: 14px; top: 8px; height: 24px; display: flex; overflow: hidden; border-radius: 6px; transform: translateX(0); }
.section-band { min-width: 2px; position: relative; border: 0; color: #102629; font-size: 9px; line-height: 24px; font-weight: 900; text-transform: uppercase; white-space: nowrap; overflow: hidden; padding: 0 0 0 5px; border-right: 1px solid rgba(20, 12, 20, .28); text-align: left; pointer-events: auto; }
.section-band.intro { background: var(--intro); }.section-band.verse { background: var(--verse); }.section-band.chorus { background: var(--chorus); }.section-band.bridge { background: var(--bridge); }
.tempo-ruler { position: absolute; top: 40px; left: 14px; height: 16px; transform: translateX(0); pointer-events: none; border-top: 1px solid rgba(174, 200, 190, .5); }
.bar-tick { position: absolute; bottom: 0; width: 1px; height: 7px; background: rgba(174, 200, 190, .55); transform: translateX(-50%); }.bar-tick.is-phrase { height: 12px; background: var(--ink); }.bar-tick span { position: absolute; top: -12px; left: 3px; color: var(--muted); font-size: 8px; font-variant-numeric: tabular-nums; }
.comment-markers { position: absolute; top: 64px; left: 14px; height: 96px; transform: translateX(0); pointer-events: none; }
.comment-marker { position: absolute; width: 26px; height: 26px; padding: 0; border: 2px solid var(--ink); border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .72rem; font-weight: 900; box-shadow: 0 3px 12px rgba(0,0,0,.36); transform: translateX(-50%); pointer-events: auto; }
.comment-marker.author-antoine { background: #5ad4cf; }.comment-marker.author-maxime { background: #ff7057; }
.controls { padding: 10px 14px 8px; }
.play-button { width: 45px; height: 45px; border: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 1rem; font-weight: 900; }
.seek { accent-color: var(--accent); flex: 1; min-width: 0; }
.duration { min-width: 38px; text-align: right; font-size: .86rem; }
.zoom-row { display: flex; align-items: center; gap: 12px; padding: 0 14px 14px; color: var(--muted); font-size: .75rem; }.zoom-row input { flex: 1; accent-color: var(--accent); }
.audio-empty { text-align: center; padding: 34px 22px; border: 1px dashed var(--line); border-radius: 18px; background: var(--surface); }
.audio-empty h2 { margin: 10px 0 6px; }.audio-empty p { max-width: 430px; margin: 0 auto 20px; color: var(--muted); line-height: 1.5; font-size: .9rem; }.empty-icon { color: var(--accent); font-size: 2rem; }
.primary-button { display: inline-block; border: 0; border-radius: 10px; padding: .82rem 1rem; background: var(--accent); color: var(--accent-ink); font-weight: 800; text-align: center; }

.sections-panel, .comments-panel { margin-top: 31px; }.section-heading-row { margin-bottom: 12px; }.count, .sync-state { color: var(--muted); font-size: .8rem; }
.structure-help { margin: -3px 0 14px; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.sync-state { display: inline-flex; align-items: center; gap: 6px; }.sync-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }.sync-state.is-online::before { background: var(--bridge); }
.sections-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }.sections-list li { border-bottom: 1px solid var(--line); padding-bottom: 12px; }.section-row { width: 100%; display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px; padding: 13px 8px 13px 2px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); text-align: left; }.section-row:hover, .section-row.is-selected { background: var(--surface); }.section-row.is-selected { box-shadow: inset 3px 0 var(--accent); }.section-dot { width: 9px; height: 9px; border-radius: 50%; }.section-name { font-weight: 680; }.section-range { color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.section-lyrics { padding: 0 8px 2px 21px; }.vocal-note, .instrumental-note { color: var(--muted); font-size: .72rem; font-style: italic; }.lyrics-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 9px; }.lyrics-column { min-width: 0; }.lyrics-column p { margin-top: 4px; color: var(--ink); font-size: .82rem; line-height: 1.42; }.lyrics-language { display: inline-block; color: var(--accent); font-size: .65rem; font-weight: 900; letter-spacing: .12em; }
.comments-list { display: grid; gap: 10px; }.empty-comments { padding: 18px 0; border-top: 1px solid var(--line); color: var(--muted); line-height: 1.5; }.comment { display: block; padding: 12px; border: 1px solid var(--line); border-left-width: 5px; border-radius: 13px; background: var(--surface); }.comment.author-antoine { border-left-color: #5ad4cf; }.comment.author-maxime { border-left-color: #ff7057; }.comment-jump { display: flex; align-items: center; gap: 7px; width: 100%; min-width: 0; margin: 0 0 7px; padding: 0; border: 0; background: transparent; color: var(--muted); text-align: left; opacity: .78; }.comment-jump:hover { opacity: 1; }.comment-jump time { flex: 0 0 auto; color: var(--muted); font-size: .66rem; font-weight: 650; }.comment-section { min-width: 0; color: var(--muted); font-size: .66rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.comment-section::after { content: " ·"; }.comment-body { min-width: 0; }.comment-text { line-height: 1.42; white-space: pre-wrap; }.comment-meta { margin-top: 6px; color: var(--muted); font-size: .78rem; }.comment-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 9px; }.comment-actions button { padding: 0; border: 0; background: transparent; color: var(--muted); font-size: .75rem; text-decoration: underline; }.comment-actions .comment-delete { color: #ff9b89; }.comment-notes { display: grid; gap: 7px; margin-top: 10px; }.comment-note-item { padding: 8px 10px; border-radius: 8px; background: var(--bg); font-size: .8rem; line-height: 1.4; }.comment-note-item.author-antoine { border-left: 3px solid #5ad4cf; }.comment-note-item.author-maxime { border-left: 3px solid #ff7057; }.comment-note-meta { display: block; margin-top: 3px; color: var(--muted); font-size: .7rem; }
.composer { position: fixed; z-index: 5; left: 0; right: 0; bottom: 0; padding: 10px 18px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 25%); }.composer-inner { display: grid; grid-template-columns: 46px 46px 1fr; gap: 8px; width: min(704px, 100%); margin: 0 auto; }.shortcut-button { border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--ink); font-size: 1.15rem; font-weight: 900; }.shortcut-button.is-active { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }.shortcut-button:disabled { opacity: .45; }.comment-button { display: flex; justify-content: space-between; gap: 12px; width: 100%; border: 0; border-radius: 13px; padding: 15px 17px; background: var(--accent); color: var(--accent-ink); font-weight: 850; box-shadow: 0 8px 28px rgba(0,0,0,.28); }.comment-button:disabled { background: var(--surface-2); color: var(--muted); box-shadow: none; }
.comment-dialog { width: min(100% - 28px, 490px); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); }.comment-dialog::backdrop { background: rgba(5, 3, 5, .72); }.comment-dialog form { padding: 19px; }.comment-dialog header { align-items: flex-start; margin-bottom: 20px; }.close-button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink); font-size: 1.45rem; line-height: 1; }.comment-dialog label { display: block; margin: 13px 0 6px; color: var(--muted); font-size: .82rem; font-weight: 650; }.comment-dialog input, .comment-dialog textarea, .comment-dialog select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px; background: var(--bg); color: var(--ink); }.comment-dialog textarea { resize: vertical; }.submit-button { width: 100%; margin-top: 18px; }
@media (max-width: 560px) { .lyrics-columns { grid-template-columns: 1fr; gap: 12px; } }
@media (min-width: 700px) { .app-shell { padding-left: 28px; padding-right: 28px; }.waveform { min-height: 190px; } }
