/* 视频上传模块（istock 同款）：从 istock 页 <style> 中抽取 #vid- 规则，仅作用于本模块。 */
#vid-uploaded-view #vid-file-list-container {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, 92px);
        grid-auto-rows: 92px;
        gap: 10px;
        justify-content: space-between;
        align-content: start;
        flex: 1 1 auto;
        min-height: 0;
        max-height: none !important;
        margin-bottom: 0 !important;
        overflow-y: auto;
        padding-right: 2px;
      }
/* 视频卡片：方形、封面铺满 */
      #vid-uploaded-view #vid-file-list-container > div {
        position: relative;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 12px;
        overflow: hidden;
        background: #151515;
        border: 1px solid rgba(255, 255, 255, 0.10) !important;
        box-shadow: none !important;
      }
#vid-uploaded-view #vid-file-list-container > div > div { display: block !important; height: 100%; }
#vid-uploaded-view #vid-file-list-container > div > div > div:first-child {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
      }
#vid-uploaded-view #vid-file-list-container > div > div > div:first-child video,
      #vid-uploaded-view #vid-file-list-container > div > div > div:first-child img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
      }
#vid-uploaded-view #vid-file-list-container > div > div > div:nth-child(2) {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2;
        padding: 14px 7px 5px;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
      }
#vid-uploaded-view #vid-file-list-container > div > div > div:nth-child(2) > h3,
      #vid-uploaded-view #vid-file-list-container > div > div > div:nth-child(2) > h4 {
        color: #fff !important;
        font-size: 11px !important;
        line-height: 1.25 !important;
        margin: 0 !important;
      }
#vid-uploaded-view #vid-file-list-container > div > div > div:nth-child(2) > p,
      #vid-uploaded-view #vid-file-list-container > div > div > div:nth-child(2) > div { display: none !important; }
#vid-uploaded-view #vid-file-list-container > div > div > div:nth-child(3) {
        position: absolute;
        top: 6px;
        right: 6px;
        z-index: 3;
      }
#vid-uploaded-view #vid-file-list-container > div > div > div:nth-child(3) button {
        height: 22px !important;
        width: 22px !important;
        border: 0 !important;
        background: rgba(0, 0, 0, 0.58) !important;
        color: #fff !important;
        backdrop-filter: blur(4px);
      }
#vid-uploaded-view #vid-file-list-container > div > div > div:nth-child(3) button i { font-size: 10px; }
/* 底部固定区（总览 + 取消/生成）压缩成紧凑一行，把高度让给卡片网格 */ #vid-uploaded-view { padding: 14px !important; }
#vid-uploaded-view #vid-upload-summary {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 8px 12px !important;
        gap: 10px !important;
        border-radius: 12px !important;
        margin-bottom: 0 !important;
      }
#vid-uploaded-view > div:has(#vid-clear-btn) {
        flex-direction: row !important;
        gap: 10px !important;
      }
#vid-uploaded-view #vid-total-cost-label { display: none !important; }
#vid-uploaded-view #vid-credit-cost { font-size: 14px !important; line-height: 1.2 !important; }
#vid-uploaded-view #vid-clear-btn,#vid-uploaded-view #vid-start-btn {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
      }
/* 视频底部两个按钮与图片组件同规格（共享皮肤 upload-skin-square.css 里图片侧也是 10px/14px/10px） *//* 总览行去掉白底，改为透明 + 浅色文字 */ #vid-uploaded-view #vid-upload-summary {
        background: transparent !important;
        border: 0 !important;
        padding-left: 2px !important;
        padding-right: 2px !important;
        box-shadow: none !important;
      }
#vid-uploaded-view #vid-upload-summary > div:first-child,#vid-uploaded-view #vid-upload-summary #vid-total-files-label,#vid-uploaded-view #vid-upload-summary #vid-total-files-count {
        color: #d4d4d8 !important;
      }
/* 底部固定区内部不换行，避免移动端被撑高 */ #vid-uploaded-view #vid-upload-summary > div,#vid-uploaded-view #vid-clear-btn span,#vid-uploaded-view #vid-start-btn span { white-space: nowrap !important; }
#vid-uploaded-view #vid-upload-summary > div { width: auto !important; flex: 0 0 auto !important; }
#vid-uploaded-view #vid-upload-summary { flex-wrap: nowrap !important; }
/* 上传组件默认橙色虚线边线 */ #vid-upload-card #vid-upload-drop-zone {
        border-color: rgba(253, 124, 15, 0.5) !important;
      }
#vid-upload-card #vid-upload-drop-zone:hover {
        border-color: #FD7C0F !important;
        background-color: rgba(253, 124, 15, 0.06) !important;
      }
/* ===== 方形回显卡片的加载态 ===== */ #vid-uploaded-view #vid-file-list-container > div.sq-loading::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 4;
        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(1px);
      }
#vid-uploaded-view #vid-file-list-container > div.sq-loading::after {
        content: "";
        position: absolute;
        z-index: 5;
        top: 50%;
        left: 50%;
        width: 22px;
        height: 22px;
        margin: -11px 0 0 -11px;
        border: 2px solid rgba(255, 255, 255, 0.22);
        border-top-color: #FD7C0F;
        border-radius: 50%;
        animation: sq-card-spin 0.75s linear infinite;
      }
/* 上传回显层：覆盖上传区、高度与上传区一致（JS 用 hidden 类切换，这里用 :has() 保高度） */ #vid-upload-card { position: relative; }
#vid-upload-card:has(#vid-uploaded-view:not(.hidden)) #vid-upload-drop-zone {
        display: block !important;
        visibility: hidden;
      }
#vid-uploaded-view:not(.hidden) {
        position: absolute;
        inset: 0;
        overflow: hidden;
        border-radius: inherit;
        display: flex;
        flex-direction: column;
        gap: 10px;
      }
#vid-results-list { padding: 12px !important; }
#vid-results-list > * + * { margin-top: 12px !important; }
#vid-results-list [id^="vcontent-"] {
        min-height: 0 !important;
        padding-top: 16px !important;
        padding-bottom: 16px !important;
      }
#vid-results-list [id^="vcontent-"] .aspect-video { max-width: 560px; margin-left: auto; margin-right: auto; }
#vid-results-list [id^="vactions-"] { margin-top: 12px !important; }
/* Compact uploaded-file placeholder rows */ #vid-file-list-container > * + * { margin-top: 0 !important; }
#vid-file-list-container [id^="vid-file-"] { padding: 8px 10px !important; }
#vid-file-list-container [id^="vid-file-"] > div:first-child { gap: 10px !important; }
#vid-file-list-container [id^="vid-file-"] > div:first-child > div:first-child {
        height: 44px !important;
        width: 56px !important;
      }
#vid-file-list-container [id^="vid-file-"] .fas.fa-video { font-size: 1rem !important; }
#vid-file-list-container [id^="vid-file-"] > div:first-child > div:first-child span { display: none; }
#vid-file-list-container [id^="vid-file-"] h3,#vid-file-list-container [id^="vid-file-"] h4 {
        font-size: 0.8125rem !important;
        line-height: 1.25rem !important;
      }
#vid-file-list-container [id^="vid-file-"] p.mt-1 { margin-top: 2px !important; font-size: 0.6875rem !important; }
#vid-file-list-container [id^="vid-file-"] [id^="vid-progress"] { margin-top: 4px !important; }
#vid-file-list-container [id^="vid-file-"] > div:first-child > div:last-child > div { margin-top: 4px !important; }
#vid-file-list-container [id^="vid-file-"] > div:first-child > div:last-child button {
        height: 32px !important;
        width: 32px !important;
      }
#vid-clear-btn {
        flex: 0 0 auto !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        font-size: 0.875rem !important;
        color: #d1d5db !important;
        border-color: rgba(255, 255, 255, 0.25) !important;
      }
#vid-clear-btn:hover { color: #ffffff !important; }
