#page-archive { max-width: 1800px; margin-inline: auto; }
.studio-filters { grid-template-columns: minmax(220px,1fr) 150px 150px auto auto; gap: 14px; padding-bottom: 22px; }
.studio-quick { display: flex; gap: 14px; padding-bottom: 12px; }
.studio-quick button { color: var(--cyan); font-size: 12px; }
.studio-layout { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 22px; margin-top: 22px; align-items: start; }
.studio-events { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.studio-events-head { padding: 20px 18px 16px; border-bottom: 1px solid var(--line); }
.studio-events-head h2 { font-size: 17px; }
.studio-events-head p { font-size: 12px; line-height: 1.5; margin: 8px 0 12px; }
#archiveEventSearch { margin: 0; font-size: 12px; }
.studio-events .archive-list { max-height: calc(100vh - 330px); min-height: 180px; overflow: auto; border: 0; }
.studio-event { width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 16px 18px; cursor: pointer; display: grid; gap: 9px; }
.studio-event:hover { background: #15212c; }
.studio-event.selected { background: #14292d; box-shadow: inset 3px 0 var(--cyan); }
.studio-event-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.studio-event .studio-event-top strong { font-size: 18px; font-weight: 650; letter-spacing: -.03em; }
.studio-event-duration { color: #acd7d1; background: #203237; padding: 4px 7px; border-radius: 5px; font-size: 11px; white-space: nowrap; }
.studio-event-name { font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.studio-event strong { font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.studio-event-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; gap: 8px; }
.studio-events #archiveMore { margin: 12px; width: calc(100% - 24px); }
.studio-workspace { min-width: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #0e151e; }
.studio-welcome { min-height: 590px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 36px; background: radial-gradient(ellipse at 50% 40%, #16343c80, transparent 65%); }
.studio-welcome-icon { display: grid; place-items: center; width: 84px; height: 84px; font-size: 50px; color: var(--cyan); border: 1px solid #386060; border-radius: 24px; margin-bottom: 26px; }
.studio-welcome h2 { font-size: 26px; font-weight: 650; letter-spacing: -.03em; }
.studio-welcome p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.studio-welcome > div { display: flex; gap: 25px; color: #7f9b9e; font-size: 11px; margin-top: 24px; flex-wrap: wrap; justify-content: center; }
.studio-title { padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.studio-title h2 { font-size: 18px; overflow-wrap: anywhere; line-height: 1.4; }
.studio-title p:last-child { margin: 6px 0 0; font-size: 12px; }
.studio-format { border: 1px solid #304147; border-radius: 6px; padding: 6px 8px; color: #8fb3b3; font-size: 10px; white-space: nowrap; }
#page-archive #archiveVideo { margin: 0; border-radius: 0; height: min(47vh,520px); min-height: 240px; max-height: none; object-fit: contain; }
#page-archive .archive-event-progress { padding: 12px 24px; background: #090f16; border-block: 1px solid var(--line); }
.studio-editor { padding: 24px; }
.studio-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.studio-editor-head h3 { font-size: 17px; font-weight: 600; margin: 0; }
.studio-editor-head .text-button { color: var(--cyan); font-size: 12px; }
.studio-trim { position: relative; height: 72px; margin: 0 9px; background: repeating-linear-gradient(135deg,#1c202b 0 5px,#151b24 5px 10px); border-radius: 8px; touch-action: none; cursor: crosshair; isolation: isolate; }
.studio-trim-clips { position: absolute; inset: 0; overflow: hidden; border-radius: 8px; }
.studio-trim-clips i { position: absolute; top: 10px; bottom: 10px; background: linear-gradient(#34676a,#244447); border-right: 1px solid #0e20254d; }
.studio-selection { position: absolute; inset-block: 0; background: #57d7d225; border-block: 2px solid var(--cyan); pointer-events: none; }
.studio-handle { position: absolute; top: -6px; height: 84px; width: 18px; border: 0; border-radius: 5px; padding: 0; background: var(--cyan); color: #073132; transform: translateX(-50%); cursor: ew-resize; touch-action: none; z-index: 3; display: grid; place-items: center; }
.studio-handle span { width: 4px; height: 20px; border-inline: 1px solid currentColor; pointer-events: none; }
.studio-handle:focus-visible { outline: 3px solid white; outline-offset: 3px; }
.studio-playhead { position: absolute; width: 2px; top: -12px; bottom: -6px; background: var(--amber); pointer-events: none; z-index: 2; }
.studio-playhead:before { content: ''; position: absolute; top: 0; left: -4px; width: 10px; height: 10px; background: var(--amber); transform: rotate(45deg); }
.studio-trim-labels { display: flex; justify-content: space-between; font: 10px/1.4 ui-monospace,monospace; color: #8699aa; margin-top: 14px; }
.studio-help { font-size: 11px; color: #8f9bab; line-height: 1.6; margin: 14px 0 0; }
.studio-range-fields { display: grid; grid-template-columns: minmax(90px,1fr) auto minmax(90px,1fr) auto; gap: 12px; align-items: center; margin-top: 22px; }
.studio-range-fields input { font-family: ui-monospace,monospace; margin-top: 6px; }
.studio-range-fields small { display: block; color: #78a5a3; margin-top: 5px; font-size: 11px; }
.studio-range-fields button { padding: 9px 11px; font-size: 11px; }
.studio-export-bar { display: flex; gap: 12px; align-items: center; margin-top: 23px; padding-top: 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.studio-export-bar > div { flex: 1; min-width: 170px; }
.studio-export-bar strong { font-size: 19px; font-weight: 650; }
.studio-export-bar p { margin: 6px 0 0; font-size: 11px; }
.studio-export-job { margin-top: 16px; padding: 15px; border: 1px solid #315457; border-radius: 8px; background: #13282b; display: grid; gap: 12px; font-size: 12px; }
.studio-export-job progress { width: 100%; height: 6px; accent-color: var(--cyan); }
.studio-export-job a { text-decoration: none; text-align: center; justify-self: start; }
.studio-export-job a:not([href]) { pointer-events: none; }
#page-archive button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
@media(max-width:1150px) { .studio-filters { grid-template-columns: minmax(180px,1fr) 140px 140px auto; }.studio-quick { grid-column:1/-1; padding:0; }.studio-layout { grid-template-columns:250px minmax(0,1fr);gap:14px; }.studio-range-fields { grid-template-columns:1fr 1fr; }.studio-range-fields label:nth-of-type(2) {grid-column:1;}.studio-title {padding:18px;}.studio-editor {padding:20px;} }
@media(max-width:760px) { .studio-layout {grid-template-columns:1fr;}.studio-events .archive-list {max-height:230px;min-height:0;}.studio-filters {grid-template-columns:1fr 1fr;}.studio-filters label:first-child {grid-column:1/-1;}.studio-quick {grid-column:auto;}.studio-welcome {min-height:320px;}.studio-format {display:none;}#page-archive #archiveVideo {height:260px;min-height:0;}.studio-export-bar button {flex:1;}.studio-title {padding:16px;}.studio-trim-labels span:nth-child(even) {visibility:hidden;} }
