/* Live demo: real panel inside a simulated Premiere Pro window */
.ld-wrap { max-width: 1080px; margin: 0 auto; }
.ld-chips { display: flex; justify-content: center; gap: 8px; margin: 0 0 18px; flex-wrap: wrap; }
.ld-chip { font: inherit; font-size: 14px; font-weight: 600; color: var(--text-muted); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.ld-chip:hover { color: var(--text); }
.ld-chip.is-on { color: #fff; background: var(--accent-soft); border-color: var(--accent); }

.ld-win { direction: ltr; background: #1d1d1f; border: 1px solid var(--line-strong); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.ld-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #262628; border-bottom: 1px solid #111; font-size: 12px; color: var(--text-dim); }
.ld-bar .ld-dot { width: 11px; height: 11px; border-radius: 50%; }
.ld-bar .ld-title-t { margin-left: 8px; flex: 1; }
.ld-reset { font: inherit; font-size: 12px; color: var(--text-muted); background: transparent; border: 1px solid var(--line-strong); border-radius: 6px; padding: 3px 10px; cursor: pointer; }
.ld-reset:hover { color: var(--text); border-color: var(--text-dim); }

.ld-top { display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
.ld-monitor-col { padding: 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ld-monitor { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: radial-gradient(120% 90% at 30% 20%, #3a4a78 0%, #1f2540 45%, #121320 100%); border: 1px solid #111; }
.ld-monitor::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.45)); pointer-events: none; }
.ld-scene { position: absolute; inset: 0; opacity: .5; background:
    radial-gradient(circle at 70% 35%, rgba(255,190,120,.35), transparent 28%),
    radial-gradient(circle at 25% 70%, rgba(110,150,255,.22), transparent 32%); }
.ld-tc { position: absolute; left: 10px; bottom: 8px; z-index: 3; font: 600 11px/1 ui-monospace, Menlo, monospace; color: #7fd1ff; letter-spacing: .02em; }
.ld-caption { position: absolute; z-index: 2; left: 6%; right: 6%; bottom: 14%; text-align: center; direction: rtl; font-weight: 800; font-size: clamp(18px, 3.1vw, 34px); line-height: 1.25; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.65); min-height: 1.3em; }
.ld-w { display: inline-block; padding: 0 .22em; border-radius: .22em; transition: background .06s; }
.ld-w.is-on { color: #111; text-shadow: none; }
.ld-title { position: absolute; z-index: 2; left: 0; right: 0; top: 22%; text-align: center; direction: rtl; font-weight: 800; font-size: clamp(22px, 4.2vw, 46px); color: #fff; opacity: 0; text-shadow: 0 3px 14px rgba(0,0,0,.5); will-change: transform, opacity, filter; pointer-events: none; }
.ld-transport { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 12px; }
.ld-play { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); background: #2a2a2d; color: #ddd; display: grid; place-items: center; cursor: pointer; padding: 0; }
.ld-play:hover { background: #333; }
.ld-play svg { width: 11px; height: 11px; fill: currentColor; }
.ld-play .ic-play { display: none; } .ld-play.is-paused .ic-play { display: block; } .ld-play.is-paused .ic-pause { display: none; }
.ld-saved { margin-inline-start: auto; font-variant-numeric: tabular-nums; }

.ld-panel-col { background: #191919; border-left: 1px solid #111; }
.ld-panel-frame { display: block; width: 100%; height: 100%; min-height: 470px; border: 0; background: #191919; }

.ld-tl { border-top: 1px solid #111; background: #202022; padding: 8px 12px 12px; position: relative; user-select: none; touch-action: pan-y; }
.ld-grid { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 0 6px; align-items: center; }
.ld-lbl { font-size: 10px; font-weight: 700; color: var(--text-dim); text-align: center; height: 22px; line-height: 22px; }
.ld-row { position: relative; height: 22px; margin-bottom: 3px; background: rgba(255,255,255,.025); border-radius: 3px; }
.ld-row.ld-ruler { height: 16px; background: none; margin-bottom: 4px; }
.ld-ruler span { position: absolute; top: 0; font-size: 9px; color: var(--text-dim); transform: translateX(-2px); padding-left: 3px; border-left: 1px solid #3a3a3d; height: 100%; }
.ld-row.ld-a { height: 34px; }
.ld-clip, .ld-gap { position: absolute; top: 1px; bottom: 1px; transition: left .9s cubic-bezier(.2,.7,.2,1), width .9s cubic-bezier(.2,.7,.2,1); overflow: hidden; }
.ld-gap { background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(255,255,255,.04) 5px 6px); }
.ld-vid { background: linear-gradient(180deg, #5a74c9, #43589f); border: 1px solid #2c3a70; border-radius: 3px; }
.ld-vid span { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); font-size: 10px; color: rgba(255,255,255,.85); white-space: nowrap; }
.ld-aud { background: #1f4d3b; border: 1px solid #12301f; border-radius: 3px; }
.ld-aud svg { position: absolute; inset: 3px 1px; width: calc(100% - 2px); height: calc(100% - 6px); fill: #5fe0a2; opacity: .85; }
.ld-cap { background: linear-gradient(180deg, #d98a3d, #b36d28); border: 1px solid #6e4113; border-radius: 3px; animation: ld-pop .35s cubic-bezier(.2,.8,.3,1) both; transition: left .9s cubic-bezier(.2,.7,.2,1), width .9s cubic-bezier(.2,.7,.2,1); }
.ld-cap span { position: absolute; inset: 0; padding: 0 4px; font: 600 10px/20px Heebo, sans-serif; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: rtl; }
.ld-title.ld-clip { position: absolute; }
.ld-row .ld-title { font-size: 10px; font-weight: 700; background: linear-gradient(180deg, #9b6fe0, #7a4fc2); border: 1px solid #47298a; border-radius: 3px; color: #fff; opacity: 1; text-shadow: none; z-index: auto; top: 1px; left: auto; right: auto; text-align: left; line-height: 20px; padding: 0 6px; }
.ld-row .ld-title b { position: absolute; top: 50%; width: 7px; height: 7px; background: #ffd54a; transform: translate(-50%,-50%) rotate(45deg); border: 1px solid #5a4500; }
.ld-row .ld-title b[style*="right"] { transform: translate(50%,-50%) rotate(45deg); }
@keyframes ld-pop { from { opacity: 0; transform: scaleY(.3); } to { opacity: 1; transform: none; } }

.ld-tracks { position: relative; grid-column: 2; }
.ld-labels { grid-column: 1; grid-row: 1; align-self: start; }
.ld-gridwrap { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 6px; position: relative; }
.ld-markers { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.ld-markers i { position: absolute; top: 18px; bottom: 0; background: rgba(250,204,21,.18); border-left: 2px solid #facc15; border-right: 2px solid #facc15; animation: ld-mark .5s ease both; }
@keyframes ld-mark { from { opacity: 0; } to { opacity: 1; } }
.ld-inout { position: absolute; top: 16px; bottom: 0; background: rgba(80,160,255,.12); border-left: 2px solid #4aa3ff; border-right: 2px solid #4aa3ff; pointer-events: none; z-index: 2; display: none; }
.ld-playhead { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1.5px solid #ff4d4d; z-index: 5; pointer-events: none; }
.ld-playhead::before { content: ""; position: absolute; top: 0; left: -6px; border: 6px solid transparent; border-top-color: #ff4d4d; border-bottom: 0; }

.ld-hint { margin: 14px auto 0; max-width: 640px; text-align: center; font-size: 15px; color: var(--text-muted); min-height: 1.6em; }
.ld-hint.is-off { visibility: hidden; }

@media (max-width: 860px) {
    .ld-top { grid-template-columns: 1fr; }
    .ld-panel-col { border-left: 0; border-top: 1px solid #111; }
    .ld-panel-frame { height: 520px; }
}
@media (prefers-reduced-motion: reduce) { .ld-clip, .ld-gap, .ld-cap { transition: none; animation: none; } }
