#video-workspace{display:flex;min-height:100vh}#video-workspace[hidden]{display:none}.video-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}.video-card{border:1px solid var(--line,#ddd);border-radius:10px;overflow:hidden;background:#fff}.video-cover{display:block;width:100%;border:0;border-radius:0;padding:0;background:#161b22;position:relative;aspect-ratio:16/9;color:white}.video-cover video{width:100%;height:100%;object-fit:contain;pointer-events:none}.video-cover span{position:absolute;inset:0;display:grid;place-items:center;font-size:32px;text-shadow:0 1px 5px #000}.video-info{padding:10px}.video-info h3{font-size:15px;margin:5px 0;overflow-wrap:anywhere}.video-actions{display:flex;gap:6px;margin-top:10px}.video-actions button{padding:6px 9px;font-size:12px}.video-search-shell{position:relative;flex:1;min-width:0}.video-search-shell .search{width:100%}#suggestions{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:40;background:white;border:1px solid #ddd;border-radius:8px;box-shadow:0 8px 25px #0002;max-height:330px;overflow:auto}#suggestions button{display:block;width:100%;text-align:left;border:0;border-radius:0}#suggestions p{padding:8px 12px}.sequence{position:sticky;bottom:0;background:#f8f9fb;border-top:1px solid #ddd;padding:12px 24px;z-index:10;margin-top:auto}.sequence-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.sequence-head h2{font-size:16px;margin:0}.sequence-head #play{margin-left:auto}.slots{display:flex;gap:10px;overflow-x:auto;padding:10px 0 0;min-height:100px}.slot{flex:0 0 190px;background:#fff;border:1px solid #cdd2d9;border-radius:8px;padding:10px;cursor:grab}.slot strong{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:13px;margin:6px 0}.slot small{color:#687080}.slot button{padding:3px 9px}.slot.over{outline:2px solid #5068d9}.slot.playing{border:2px solid #5068d9}.slot-empty{color:#687080;align-self:center}.content-shell{display:flex;flex-direction:column}main{flex:1}#player-dialog{width:min(960px,94vw)}#player{display:block;width:100%;max-height:65vh;background:#101318}#player-status{min-height:24px}#form-error,#delete-error{color:#c33}dialog{overscroll-behavior:contain}@media(max-width:700px){.sequence{padding:10px 12px}.sequence-head{gap:8px}.sequence-head #play{margin-left:0}.video-grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}}
#video-workspace{display:block}.content-shell{min-height:100vh;min-width:0}.toolbar h1{font-size:22px;margin:0}.toolbar{margin:0 0 16px}.video-info .chips span{background:#f0f3f8;color:#78859b;font-size:11px;border-radius:4px;padding:3px 6px}#suggestions button{white-space:normal;overflow-wrap:anywhere}@media(max-width:650px){.content-shell{min-height:calc(100dvh - 110px)}}

.player-stage{position:relative;width:100%;height:min(56.25vw,60dvh,510px);background:#101318;overflow:hidden}.player-stage video,#player{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:contain;background:#101318;opacity:0;pointer-events:none}.player-stage video.active-player{opacity:1;pointer-events:auto;z-index:1}#player-dialog .dialog-head{height:44px;margin-bottom:12px;align-items:center}#player-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:18px;min-width:0}#player-dialog .dialog-head button{flex-shrink:0}#player-status{height:24px;margin:12px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#retry{height:34px}#retry[hidden]{display:block!important;visibility:hidden;pointer-events:none}
/* Explicit ID selectors override the old #player opacity rule. */
#player.active-player,#player-next.active-player{opacity:1;pointer-events:none;z-index:1}
#player-dialog{max-height:96dvh}#player-dialog .player-stage{height:min(48vw,48dvh,430px)}
#player-overlay{position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;gap:12px;background:#101318;color:#fff;font-size:14px}#player-overlay.has-frame{background:#10131855}#player-overlay.is-error .spinner{display:none}
.sequence-controls{display:flex;align-items:center;gap:8px;margin-top:12px}.sequence-controls button{padding:7px 10px;white-space:nowrap}#sequence-time{margin-left:auto;font-variant-numeric:tabular-nums;white-space:nowrap;font-size:13px}
#sequence-seek{display:block;width:100%;margin:10px 0 4px;padding:0;accent-color:#365df1;height:20px;cursor:pointer}#sequence-segments{display:flex;gap:2px;height:30px;overflow:hidden}#sequence-segments button{flex-basis:0;min-width:0;padding:3px 0;font-size:11px;overflow:hidden;white-space:nowrap;border-radius:3px;background:#e4e8f1;color:#52617a}#sequence-segments button.current{background:#365df1;color:#fff;border-color:#365df1}
.playback-footer{display:flex;align-items:center;gap:10px;height:38px;margin-top:8px;font-size:12px}#current-slot{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1}#player-status{margin:0;height:auto;flex-shrink:0;font-size:12px;color:#778195}#retry{padding:5px 10px;height:30px}
@media(max-width:650px){.sequence-controls{gap:5px;flex-wrap:wrap}.sequence-controls button{font-size:11px;padding:6px 7px}#sequence-time{font-size:12px}#transport-mute{display:none}.playback-footer{gap:5px}#player-status{max-width:110px}#player-dialog .dialog-head{height:32px}}
