/* cf-lyrics.css: the "Add lyrics" sheet used by beat-timeline.html and beat-editor.html (cf-lyrics.js).
   Self-contained (beat-timeline does not load cutflux-glass.css): same liquid-glass recipe, one blue, no gradients on
   controls, 12px type floor, 44px targets, light + dark via html[data-theme]. */
.cfl-scrim {
  --cfl-sheet: rgba(28, 28, 32, .82); --cfl-sheet-solid: #1C1C1E; --cfl-ink: #fff; --cfl-ink2: rgba(255,255,255,.68);
  --cfl-row: rgba(255,255,255,.07); --cfl-row-press: rgba(255,255,255,.13); --cfl-rim: rgba(255,255,255,.2); --cfl-blue: #3B82F6;
  position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0,0,0,.42); animation: cflFade .16s ease both; font-family: var(--cf-font, Inter, -apple-system, "Segoe UI", sans-serif);
}
html[data-theme="light"] .cfl-scrim {
  --cfl-sheet: rgba(255,255,255,.86); --cfl-sheet-solid: #fff; --cfl-ink: #0C0E16; --cfl-ink2: rgba(12,14,22,.66);
  --cfl-row: rgba(12,14,22,.05); --cfl-row-press: rgba(12,14,22,.1); --cfl-rim: rgba(255,255,255,.6); --cfl-blue: #1D4ED8;
}
@media (min-width: 720px) { .cfl-scrim { align-items: center; } }
.cfl-scrim.cfl-out { opacity: 0; transition: opacity .15s ease; }
.cfl-sheet {
  width: min(520px, 100%); max-height: min(78vh, 640px); display: flex; flex-direction: column; gap: 12px;
  padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px)); border-radius: 22px 22px 0 0; color: var(--cfl-ink);
  background: var(--cfl-sheet); -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8);
  box-shadow: inset 0 0 0 .5px var(--cfl-rim), inset 0 1px 0 rgba(255,255,255,.28), 0 -10px 40px rgba(0,0,0,.35);
  animation: cflUp .22s cubic-bezier(.3, 1.2, .5, 1) both;
}
@media (min-width: 720px) { .cfl-sheet { border-radius: 22px; } }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .cfl-sheet { background: var(--cfl-sheet-solid); } }
.cfl-head { display: flex; align-items: flex-start; gap: 12px; }
.cfl-head > div { flex: 1; min-width: 0; }
.cfl-title { margin: 0; font: 800 18px/1.25 inherit; letter-spacing: -.01em; color: var(--cfl-ink); }
.cfl-sub { margin: 4px 0 0; font: 500 13px/1.4 inherit; color: var(--cfl-ink2); }
.cfl-x {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; font-size: 22px; line-height: 1;
  background: var(--cfl-row); color: var(--cfl-ink);
}
.cfl-x:active { background: var(--cfl-row-press); }
.cfl-list { overflow-y: auto; display: flex; flex-direction: column; gap: 8px; min-height: 60px; overscroll-behavior: contain; }
.cfl-empty { margin: 8px 2px; font: 500 14px/1.5 inherit; color: var(--cfl-ink2); }
.cfl-item {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 12px 10px 14px; text-align: left;
  border: 0; border-radius: 14px; cursor: pointer; background: var(--cfl-row); color: var(--cfl-ink); font: inherit;
  transition: background .15s ease, transform .12s ease;
}
.cfl-item:active { background: var(--cfl-row-press); transform: scale(.985); }
.cfl-item:disabled { opacity: .6; }
.cfl-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cfl-item-main strong { font: 700 15px/1.3 inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfl-item-main span { font: 500 12.5px/1.35 inherit; color: var(--cfl-ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfl-item-main em { font: 600 12px/1.3 inherit; font-style: normal; color: #F59E0B; }
.cfl-item-go {
  flex: none; min-width: 64px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px;
  border-radius: 12px; background: var(--cfl-blue); color: #fff; font: 700 13.5px inherit;
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.22), inset 0 1px 0 rgba(255,255,255,.3);
}
.cfl-new {
  display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 12px; text-decoration: none;
  background: var(--cfl-row); color: var(--cfl-ink); font: 700 14px inherit;
}
.cfl-new:active { background: var(--cfl-row-press); }
.cfl-bt-add { margin-top: 8px; }
@keyframes cflFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cflUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cfl-scrim, .cfl-sheet { animation: none; } .cfl-item { transition: none; } }
