/* Song-Ads (views/song.js): Editor, Anlegen, Frame-Prüfung. Baut auf app.css auf (ve-*, vsl-*, vtpl-*). */
.sg { display: grid; gap: 12px; min-width: 0; }
.sg-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; min-width: 0; }
.sg-title { min-width: 0; }
.sg-steps { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; margin: 0; padding: 0; counter-reset: none; }
.sg-steps li { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650; color: var(--muted); background: var(--bg-2); border-radius: 99px; padding: 3px 10px 3px 4px; }
.sg-steps li span { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; background: #fff; font-size: 11px; color: var(--ink-2); }
.sg-steps li span svg { width: 12px; height: 12px; }
.sg-steps li.on { background: var(--ink); color: #fff; }
.sg-steps li.on span { background: var(--yellow); color: var(--ink); }
.sg-steps li.done { color: var(--green); background: var(--green-soft); }
.sg-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; min-width: 0; }
.sg-main { display: grid; gap: 12px; min-width: 0; }
.sg-side { position: sticky; top: 10px; min-width: 0; }
.sg-sec { background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 12px 14px; display: grid; gap: 10px; min-width: 0; }
.sg-sec.ok { border-color: #b9dcc2; }
.sg-sec-h { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; min-width: 0; }
.sg-sec-h h2 { margin: 0; font-size: 16px; display: inline-flex; gap: 7px; align-items: center; }
.sg-sec-h h2 svg { width: 17px; height: 17px; }
.sg-sec-h .tiny svg { width: 12px; height: 12px; vertical-align: -2px; }
.sg-set { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.sg-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 12px; min-width: 0; }
.sg-form.sm { background: var(--bg); border-radius: 10px; padding: 10px; }
.sg-lyrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; min-width: 0; }
.sg-part { border: 1px solid var(--rule); border-radius: 11px; padding: 8px; display: grid; gap: 6px; background: var(--bg); min-width: 0; }
.sg-part.k-refrain { background: #fffbe6; border-color: #f1e3a0; }
.sg-part.k-bridge { background: #f1f4ff; border-color: #d6ddf5; }
.sg-part-h { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.sg-ta { font-size: 14.5px; line-height: 1.55; resize: vertical; min-height: 64px; }
.sg-checks { display: grid; gap: 3px; }
.sg-check { display: flex; gap: 7px; align-items: flex-start; font-size: 12.5px; line-height: 1.4; }
.sg-check svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.sg-check.ok { color: var(--green); }
.sg-check.warn { color: #8a6d00; }
.sg-check.fail { color: var(--red); font-weight: 650; }
/* rechtlicher Hinweis (level "risk") – eigene Klasse: .risk ist in app.css schon eine Box */
.sg-check.sg-legal { color: var(--orange); }
.sg-crit { display: grid; gap: 6px; }
.sg-scores { display: flex; gap: 6px; flex-wrap: wrap; }
.sg-score { font-size: 12px; border-radius: 99px; padding: 2px 9px; background: var(--bg-2); }
.sg-score.s5, .sg-score.s4 { background: var(--green-soft); color: var(--green); }
.sg-score.s3 { background: var(--yellow-soft); color: #8a6d00; }
.sg-score.s2, .sg-score.s1 { background: var(--red-soft); color: var(--red); }
.sg-notes { margin: 0; padding-left: 18px; color: var(--ink-2); }
.sg-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sg-actions .btn svg { width: 15px; height: 15px; }
.sg-model { display: inline-flex; gap: 6px; align-items: center; }
.sg-model .select { width: auto; max-width: 240px; }
.sg-lyr-short { color: var(--ink-2); font-style: italic; }
.sg-quality { display: flex; gap: 6px; flex-wrap: wrap; }
.sg-unclear { display: grid; gap: 2px; color: #8a6d00; }
.sg-unclear svg, .sg-rights svg { width: 12px; height: 12px; vertical-align: -2px; }
.sg-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; min-width: 0; }
.sg-shot { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 8px; border: 1px solid var(--rule); background: #fff; border-radius: 10px; padding: 6px; text-align: left; font: inherit; cursor: pointer; min-width: 0; }
.sg-shot:hover { border-color: var(--ink-2); }
.sg-shot-img { position: relative; aspect-ratio: 9 / 16; background: #1d1d24; border-radius: 7px; overflow: hidden; display: grid; place-items: center; color: #777; }
.sg-shot-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-shot-img svg { width: 18px; height: 18px; }
.sg-flag { position: absolute; right: 3px; bottom: 3px; background: var(--yellow); color: var(--ink); border-radius: 5px; width: 18px; height: 18px; display: grid; place-items: center; }
.sg-flag svg { width: 12px; height: 12px; }
.sg-shot-b { display: grid; gap: 3px; align-content: start; min-width: 0; }
.sg-shot-t { font-size: 12.5px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.sg-shot-b .ve-st { margin-left: 0; justify-self: start; }
.sg-shot-edit { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; min-width: 0; }
.sg-shot-media { aspect-ratio: 9 / 16; background: #000; border-radius: 12px; overflow: hidden; display: grid; place-items: center; color: #777; }
.sg-shot-media img, .sg-shot-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-shot-ph svg { width: 28px; height: 28px; }
.sg-frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.sg-frames.big { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.sg-frames figure { margin: 0; }
.sg-frame { margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: zoom-in; display: block; width: 100%; border-radius: 6px; }
.sg-frame:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sg-frames img { width: 100%; display: block; border-radius: 6px; background: #000; }
.sg-frames figcaption, .sg-frame span { display: block; font-size: 11px; color: var(--muted); text-align: center; font-feature-settings: var(--tnum); }
.sg-zoom { display: grid; gap: 8px; }
.sg-dl { display: flex; gap: 6px; flex-wrap: wrap; }
.sg-dl .btn svg { width: 14px; height: 14px; }
.sg-prev { display: grid; gap: 8px; justify-items: center; }
.sg-stage { cursor: pointer; }
.sg-stage > img.sg-kb { animation: sg-kb 6s ease-in-out infinite alternate; }
@keyframes sg-kb { from { transform: scale(1); } to { transform: scale(1.06); } }
.sg-cap { position: absolute; left: 7%; right: 7%; top: 70%; transform: translateY(-50%); text-align: center; text-wrap: balance; font-family: var(--display); color: #fff; line-height: 1.16; -webkit-text-stroke: 0.14em #000; paint-order: stroke fill; text-shadow: 0 0 0.04em #000; pointer-events: none; font-size: 6.4cqw; }
.sg-cap.s-wort { font-size: 9.2cqw; text-transform: uppercase; }
.sg-cap .hl { color: #f5e600; }
.sg-go .vtpl-lib.compact .vtpl-grid { max-height: 300px; }
.sg-est b { font-weight: 700; }
.sg-rights { line-height: 1.45; }
@media (max-width: 1100px) {
  .sg-grid { grid-template-columns: minmax(0, 1fr); }
  .sg-side { position: static; order: -1; }
  .sg-prev .ve-stage { height: min(62vh, 560px); }
}
@media (max-width: 640px) {
  .sg-shot-edit { grid-template-columns: minmax(0, 1fr); }
  .sg-shot-media { max-width: 220px; justify-self: center; width: 100%; }
  .sg-lyrics { grid-template-columns: minmax(0, 1fr); }
  .sg-shots { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sg-shot { grid-template-columns: 46px minmax(0, 1fr); }
  .sg-prev .ve-controls { width: 100%; }
  .sg-model .select { max-width: 200px; }
}
@media (prefers-reduced-motion: reduce) { .sg-stage > img.sg-kb { animation: none; } }
