/* 影片庫採用單一清單；每列保留一格真實縮圖，唔使用拼貼或卡片格。 */
.vl-page{padding:28px 32px;max-width:1500px;margin:0 auto;color:var(--fg)}
.vl-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:0;border:0;min-height:0;background:none}
.vl-heading-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.vl-heading h1{font-size:28px;letter-spacing:-.6px;margin:0 0 6px}
.vl-heading p,.vl-note{font-size:16px;line-height:1.8;color:var(--muted)}
.vl-heading p{margin:0}
.vl-page .kbtn,.vl-dialog .kbtn{display:inline-flex;align-items:center;justify-content:center;min-height:40px;text-decoration:none;cursor:pointer;font:inherit;font-size:16px}
.vl-page .btn{min-height:40px}
.vl-sync{display:flex;gap:14px;flex-wrap:wrap;padding:0;margin:12px 0 20px;font-size:14px;color:var(--muted)}
.vl-types{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 14px}
.vl-type{display:inline-flex;align-items:center;gap:8px;padding:8px 11px;border:1px solid var(--line);border-radius:5px;background:var(--surface);color:var(--muted);font:inherit;font-size:16px;min-height:40px;cursor:pointer;white-space:nowrap}
.vl-type:hover{border-color:var(--accent)}
.vl-type[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent);font-weight:500}
.vl-type small,.vl-type>span:last-child{font-size:14px;font-variant-numeric:tabular-nums}
.vl-filters{display:block;padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:8px}
.vl-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center}
.vl-search{min-width:0}
.vl-filters .field{box-sizing:border-box;height:42px;min-height:42px;width:100%;font-size:16px;margin:0}
.vl-search-row .btn,.vl-search-row .kbtn{height:42px}
.vl-refine{display:flex;align-items:center;gap:8px;margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}
.vl-refine .field{width:220px;max-width:100%;min-width:0}
.vl-filter-context{font-size:14px;color:var(--muted);margin-left:auto}
.vl-page .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.vl-results{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:14px;margin:20px 0 12px}
.vl-list-wrap{width:100%;border:1px solid var(--line);border-radius:7px;background:var(--surface);overflow:hidden}
.vl-list{width:100%;border-collapse:collapse;table-layout:fixed;text-align:left;font-size:16px}
.vl-list th{padding:11px 12px;background:var(--raised);font-size:14px;font-weight:500;color:var(--muted);border-bottom:1px solid var(--line);border-right:1px solid var(--line)}
.vl-list td{padding:12px;vertical-align:top;border-bottom:1px solid var(--line);border-right:1px solid var(--line);overflow-wrap:anywhere}
.vl-list th:last-child,.vl-list td:last-child{border-right:0}
.vl-row:last-child td{border-bottom:0}
.vl-row:hover{background:var(--accent-soft)}
.vl-thumbnail-col{width:154px}.vl-class-col{width:154px}.vl-action-col{width:220px}
.vl-thumb{display:block;position:relative;padding:0;border:1px solid var(--line);border-radius:4px;width:100%;aspect-ratio:16/9;background:#141923;cursor:pointer;overflow:hidden}
.vl-thumb img{display:block;width:100%;height:100%;object-fit:cover}.vl-thumb:hover img{opacity:.85}
.vl-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:50%;width:32px;height:32px;display:grid;place-items:center;background:#111b;color:#fff;font-size:16px;padding-left:2px}
.vl-duration{position:absolute;right:4px;bottom:4px;padding:2px 4px;background:#000c;color:white;font-size:13px;font-variant-numeric:tabular-nums;border-radius:3px}
.vl-info-cell h2{font-size:16px;line-height:1.6;margin:0 0 6px;overflow-wrap:anywhere}
.vl-meta{display:flex;gap:8px;flex-wrap:wrap;font-size:13px;color:var(--muted);line-height:1.7}.vl-meta span{color:var(--danger)}
.vl-sources{display:flex;flex-wrap:wrap;gap:5px;font-size:13px;color:var(--muted);margin-top:4px}.vl-sources span+span:before{content:'·';margin-right:5px}
.vl-category,.vl-label{display:block;width:fit-content;max-width:100%;font-size:14px;line-height:1.6;border:1px solid var(--line);border-radius:4px;padding:3px 6px;margin-bottom:5px;color:var(--muted)}
.vl-category{color:var(--accent);border-color:var(--accent-line);background:var(--accent-soft);font-weight:500}
.vl-actions{display:flex;gap:6px;flex-wrap:wrap}.vl-actions .kbtn{font-size:14px;padding:6px 9px;min-height:34px}
.vl-history{margin-top:7px;color:var(--muted);font-size:13px}.vl-history summary,.vl-monitor summary{cursor:pointer;min-height:26px;align-content:center}.vl-history p{line-height:1.7}
.vl-user-note{font-size:16px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;max-height:100px;overflow:auto;margin:6px 0 0}
.vl-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0;font-size:16px}.vl-page button:disabled{opacity:.45;cursor:not-allowed}
.vl-list .vl-empty{padding:32px;text-align:center}.vl-empty h2{font-size:20px}.vl-empty p{font-size:16px;color:var(--muted)}
.vl-monitor{padding:16px;border:1px solid var(--line);border-radius:8px;font-size:16px;color:var(--muted);line-height:1.8}
.vl-dialog{width:min(900px,calc(100% - 32px));max-width:none;max-height:calc(100dvh - 32px);box-sizing:border-box;overflow:auto;border:1px solid var(--line);border-radius:10px;padding:20px;background:var(--surface);color:var(--fg)}
.vl-dialog::backdrop{background:#000b}.vl-dialog>header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin:0 0 16px;padding:0;border:0;min-height:0;background:none}
.vl-dialog h2{font-size:20px;line-height:1.6;margin:0;overflow-wrap:anywhere}.vl-dialog header .kbtn{flex-shrink:0}
.vl-player{background:#111;aspect-ratio:16/9;min-height:200px}.vl-player iframe{display:block;width:100%;height:100%;min-height:200px;border:0}
.vl-dialog form{display:grid;gap:14px}.vl-dialog form label{display:grid;gap:6px;font-size:16px}.vl-dialog .field{width:100%;box-sizing:border-box}.vl-dialog textarea{resize:vertical}.vl-dialog [role=status]{font-size:16px;line-height:1.7}
.vl-page :is(button,a,input,select,summary):focus-visible,.vl-dialog :is(button,a,input,textarea):focus-visible{outline:3px solid var(--accent);outline-offset:3px}
/* 斷點放最後，由大到細；窄螢幕依然係一條片一列，縮圖固定留喺左欄。 */
@media(max-width:1199px){.vl-page{padding:24px}}
@media(max-width:1000px){
 .vl-list,.vl-list tbody{display:block}.vl-list thead{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden}
 .vl-list .vl-row{display:grid;grid-template-columns:120px minmax(0,1fr);gap:0 12px;padding:12px;border-bottom:1px solid var(--line)}.vl-list .vl-row:last-child{border-bottom:0}
 .vl-list .vl-row td{display:block;padding:0;border:0;min-width:0}.vl-thumbnail-cell{grid-column:1;grid-row:1/span 3;align-self:start}.vl-info-cell{grid-column:2;grid-row:1}.vl-class-cell{grid-column:2;grid-row:2;margin-top:7px}.vl-action-cell{grid-column:2;grid-row:3;margin-top:7px}.vl-class-cell .vl-category,.vl-class-cell .vl-label{display:inline-block;margin:0 4px 4px 0}
}
@media(max-width:600px){
 .vl-page{padding:22px 16px}.vl-heading{flex-wrap:wrap}.vl-heading h1{font-size:26px}.vl-heading-actions{flex-wrap:wrap}.vl-types{flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding-bottom:6px}.vl-types .vl-type{flex-shrink:0}
 .vl-filters{padding:10px}.vl-search-row{grid-template-columns:minmax(0,1fr) auto}.vl-search-row .vl-search{grid-column:1/-1}.vl-search-row .btn{width:100%}.vl-search-row .kbtn{min-width:70px}.vl-refine{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.vl-refine .field{width:100%;max-width:none}.vl-filter-context{margin-left:0;grid-column:1/-1}.vl-filters .field{height:44px}.vl-results{flex-wrap:wrap}
 .vl-list .vl-row{grid-template-columns:104px minmax(0,1fr);gap:0 10px;padding:12px 10px}.vl-info-cell h2{font-size:16px}.vl-actions .kbtn{font-size:13px;padding:6px 8px}.vl-page .kbtn,.vl-page .btn,.vl-dialog .kbtn,.vl-history summary,.vl-monitor summary{min-height:44px}
 .vl-dialog{width:calc(100% - 20px);padding:14px;max-height:calc(100dvh - 20px)}.vl-dialog h2{font-size:18px}
}
