/* SINGLY production board — shots move sketch → image → moving clip. Uses renew.css tokens. */
.pv-root { color: var(--txt); }
.pv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 14px; }
.pv-head h2 { margin: 0; font-size: 20px; }
.pv-head.compact { margin-bottom: 10px; gap: 8px 14px; }
.pv-count { display: inline-block; margin-top: 4px; font-size: 12px; color: var(--txt-2); font-weight: 700; }
.pv-steps { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pv-step { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 5px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: var(--txt-3); background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.pv-step span { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; background: rgba(255,255,255,.07); }
.pv-step.done { color: #d9d2ff; border-color: rgba(124,92,255,.45); background: rgba(124,92,255,.14); }
.pv-step.done span { background: var(--brand); color: #fff; }
.pv-step.active { color: #fff; border-color: rgba(34,211,238,.6); box-shadow: 0 0 0 3px rgba(34,211,238,.12); }
.pv-step.active span { background: transparent; border: 2px solid var(--brand-2); border-top-color: transparent; animation: pvspin 1s linear infinite; }
@keyframes pvspin { to { transform: rotate(360deg); } }

.pv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.pv-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 10px; }
.pv-card { text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 7px; border-radius: 14px; color: var(--txt);
  background: var(--panel); border: 1px solid var(--line); cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; }
.pv-card:hover { transform: translateY(-2px); border-color: rgba(124,92,255,.5); }
.pv-card.on { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(124,92,255,.45), 0 10px 30px rgba(124,92,255,.18); }
.pv-media { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #0b0d13; }
.pv-thumb { position: absolute; inset: 0; background: #0b0d13 center / cover no-repeat; opacity: 0; transition: opacity .5s; }
.pv-thumb.loaded { opacity: 1; animation: pvreveal .7s ease-out; }
@keyframes pvreveal { from { filter: blur(10px) saturate(.3); transform: scale(1.04); } to { filter: none; transform: none; } }
.pv-sketch { position: absolute; inset: 0; padding: 9px 10px; display: flex; flex-direction: column; gap: 4px;
  background: repeating-linear-gradient(-28deg, rgba(255,255,255,.035) 0 2px, transparent 2px 9px), linear-gradient(160deg, #1d2030, #12141d);
  border: 1px dashed rgba(255,255,255,.18); border-radius: 10px; }
.pv-sketch p { margin: 0; font-size: 10.5px; line-height: 1.45; color: rgba(236,232,255,.72); font-style: italic; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.pv-sketch-type { font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: rgba(177,92,255,.9); }
.pv-sketch.big { position: relative; height: 100%; justify-content: center; padding: 22px; }
.pv-sketch.big p { font-size: 14px; -webkit-line-clamp: 8; }
.pv-shimmer { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(124,92,255,.28) 45%, rgba(34,211,238,.22) 55%, transparent 80%);
  background-size: 220% 100%; animation: pvshimmer 1.6s linear infinite; mix-blend-mode: screen; }
@keyframes pvshimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.pv-badge { position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; background: rgba(5,6,10,.72); color: #e9e6ff; backdrop-filter: blur(4px); }
.pv-st-video .pv-badge { background: var(--brand); color: #fff; }
.pv-st-drawing .pv-badge, .pv-st-animating .pv-badge { background: rgba(34,211,238,.85); color: #041016; }
.pv-failed .pv-badge { background: #ff6b6b; color: #fff; }
.pv-meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--txt-2); }
.pv-meta b { color: var(--txt); font-size: 12px; }
.pv-meta em { margin-left: auto; font-style: normal; font-size: 10.5px; padding: 1px 7px; border-radius: 999px; background: rgba(124,92,255,.16); color: #cfc6ff; }
.pv-lyric { margin: 0; font-size: 11.5px; line-height: 1.4; color: var(--txt-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pv-side { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 10px; }
.pv-preview, .pv-final, .pv-brief { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); overflow: hidden; }
.pv-stage { background: #05070b; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; }
.pv-stage-media, .pv-stage-media img, .pv-stage-media video { width: 100%; height: 100%; object-fit: contain; display: block; }
.pv-info { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.pv-info-lyric { margin: 0; color: #f5e7a8; }
.pv-info-dir { margin: 0; color: var(--txt-2); line-height: 1.55; }
.pv-preview-empty { padding: 28px; text-align: center; color: var(--txt-3); font-size: 13px; }
.pv-final { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: 13px; }
.pv-final .btn { margin-left: auto; }
.pv-brief summary { cursor: pointer; padding: 11px 14px; font-weight: 700; font-size: 13px; }
.pv-brief pre { margin: 0; padding: 0 14px 14px; white-space: pre-wrap; font: inherit; font-size: 12px; line-height: 1.6; color: var(--txt-2); max-height: 280px; overflow: auto; }
.pv-tools { text-align: center; padding: 10px; border-radius: 12px; border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.pv-tools:hover { border-color: var(--brand); }

.pv-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 46px 20px; text-align: center; border: 1px dashed rgba(124,92,255,.35); border-radius: 16px;
  background: radial-gradient(400px 160px at 50% 0%, rgba(124,92,255,.16), transparent 70%); }
.pv-empty p { margin: 0; color: var(--txt-2); font-size: 13px; }
.pv-pulse { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); animation: pvpulse 1.6s ease-in-out infinite; }
@keyframes pvpulse { 0%, 100% { transform: scale(.85); opacity: .6; } 50% { transform: scale(1); opacity: 1; } }

@media (max-width: 1000px) {
  .pv-layout { grid-template-columns: 1fr; }
  .pv-side { position: static; }
  .pv-board { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .pv-shimmer, .pv-pulse, .pv-step.active span, .pv-thumb.loaded { animation: none; }
}
.sg-board .pv-board { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.sg-board .pv-lyric { font-size: 11px; }
