/* 批量创建视频素材弹窗：独立 material-bv-create-* 前缀 */

.material-bv-create-modal__overlay {
    position: fixed;
    inset: 0;
    /* 需求：不压暗页面，但保留弹窗阴影美化效果 */
    background: transparent;
    /* 需求：窗口为非模态，允许继续操作其它菜单 */
    pointer-events: none;
    z-index: 9999;
}

.material-bv-create-modal__window {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 1100px;
    max-width: calc(100vw - 32px);
    height: 720px;
    max-height: calc(100vh - 32px);
    background: #1b1b1b;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.material-bv-create-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #2e2e2e;
    /* 可拖拽提示 */
    cursor: move;
}

.material-bv-create-modal__title {
    color: #f2f2f2;
    font-size: 16px;
    font-weight: 700;
}

.material-bv-create-modal__close {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #3a3a3a;
    background: transparent;
    color: #f2f2f2;
    cursor: pointer;
    font-size: 22px;
    line-height: 30px;
}

.material-bv-create-modal__body {
    padding: 14px 16px;
    display: flex;
    gap: 14px;
    flex: 1;
    overflow: hidden;
}

.material-bv-create-modal__left {
    width: 42%;
    min-width: 380px;
    border: 1px solid #2e2e2e;
    border-radius: 10px;
    padding: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.material-bv-create-modal__right {
    width: 58%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.material-bv-create__drop {
    border: 2px dashed #444;
    border-radius: 10px;
    padding: 18px 14px;
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
    cursor: pointer;
    user-select: none;
}

.material-bv-create__drop-title {
    color: #eaeaea;
    font-weight: 700;
    font-size: 14px;
}

.material-bv-create__drop-sub {
    color: #a8a8a8;
    font-size: 12px;
    margin-top: 6px;
}

.material-bv-create__list-hint {
    margin-top: 10px;
    min-height: 18px;
    color: #a8a8a8;
    font-size: 12px;
}

.material-bv-create__list-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.material-bv-create__video-list {
    margin-top: 10px;
    overflow: auto;
    flex: 1;
    padding-right: 6px;
}

.material-bv-create__video-row {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 10px;
    border: 1px solid #2e2e2e;
    border-radius: 10px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.02);
}

.material-bv-create__video-row.is-current {
    border-color: #5a8bff;
    box-shadow: 0 0 0 1px rgba(90, 139, 255, 0.25) inset;
}

.material-bv-create__video-row input[type="text"] {
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    color: #f2f2f2;
    padding: 6px 8px;
    border-radius: 8px;
    outline: none;
    font-size: 13px;
}

.material-bv-create__video-row input[type="text"]:focus {
    border-color: #5a8bff;
    background: rgba(90, 139, 255, 0.08);
}

.material-bv-create__video-size {
    color: #a8a8a8;
    font-size: 12px;
    white-space: nowrap;
}

.material-bv-create__video-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.material-bv-create__video-resolution {
    color: #a8a8a8;
    font-size: 12px;
    white-space: nowrap;
}

.material-bv-create__video-status {
    font-size: 12px;
    white-space: nowrap;
}

.material-bv-create__video-status--analyzed {
    color: #37d67a;
}

.material-bv-create__section {
    border: 1px solid #2e2e2e;
    border-radius: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.material-bv-create__section--actions {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.material-bv-create__row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.material-bv-create__row:last-child {
    margin-bottom: 0;
}

.material-bv-create__label {
    width: 120px;
    color: #eaeaea;
    font-size: 13px;
}

.material-bv-create__select,
.material-bv-create__input {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    color: #f2f2f2;
    padding: 8px 10px;
    font-size: 13px;
    outline: none;
}

/* Windows 下拉 option 默认白底：显式覆盖为深色 */
.material-bv-create__select option {
    background: #1b1b1b;
    color: #f2f2f2;
}

.material-bv-create__select optgroup {
    background: #1b1b1b;
    color: #f2f2f2;
}

.material-bv-create__muted {
    color: #a8a8a8;
    font-size: 12px;
    white-space: nowrap;
}

.material-bv-create__current-line {
    color: #eaeaea;
    font-size: 13px;
    margin-bottom: 10px;
}

.material-bv-create__current-line strong {
    color: #f2f2f2;
}

.material-bv-create__progress {
    margin-bottom: 10px;
}

.material-bv-create__progress-text {
    color: #eaeaea;
    font-size: 12px;
    margin-bottom: 6px;
}

.material-bv-create__progress-bar {
    height: 10px;
    background: #2b2b2b;
    border-radius: 999px;
    overflow: hidden;
}

.material-bv-create__progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #5a8bff, #66e1ff);
    width: 0%;
}

.material-bv-create__btn-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.material-bv-create__btn {
    border-radius: 10px;
    border: 1px solid #3a3a3a;
    background: transparent;
    color: #f2f2f2;
    cursor: pointer;
    padding: 10px 14px;
    font-size: 13px;
}

.material-bv-create__btn--sm {
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
}

.material-bv-create__btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.material-bv-create__btn--primary {
    background: #2f6bff;
    border-color: #2f6bff;
}

.material-bv-create__btn--ghost {
    background: rgba(255, 255, 255, 0.02);
}

.material-bv-create__hint {
    margin-top: 10px;
    color: #a8a8a8;
    font-size: 12px;
    min-height: 18px;
}

.material-bv-create-modal__foot {
    padding: 12px 16px;
    border-top: 1px solid #2e2e2e;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* 预览弹窗：封面图 + 宫格图 */
.material-bv-create-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
}

.material-bv-create-preview-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.material-bv-create-preview-modal__window {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 980px;
    max-width: calc(100vw - 32px);
    background: #1b1b1b;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.material-bv-create-preview-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #2e2e2e;
}

.material-bv-create-preview-modal__title {
    color: #f2f2f2;
    font-size: 15px;
    font-weight: 700;
}

.material-bv-create-preview-modal__close {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #3a3a3a;
    background: transparent;
    color: #f2f2f2;
    cursor: pointer;
    font-size: 22px;
    line-height: 30px;
}

.material-bv-create-preview-modal__body {
    padding: 14px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.material-bv-create-preview-modal__col {
    border: 1px solid #2e2e2e;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    padding: 12px;
}

.material-bv-create-preview-modal__label {
    color: #eaeaea;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.material-bv-create-preview-modal__img-wrap {
    background: #0f0f0f;
    border: 1px solid #2e2e2e;
    border-radius: 10px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
}

.material-bv-create-preview-modal__img-wrap--grid {
    position: relative;
}

.material-bv-create-preview-modal__grid-id-layer {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.material-bv-create-preview-modal__grid-id {
    position: absolute;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
    user-select: none;
    white-space: nowrap;
}

.material-bv-create-preview-modal__img {
    max-width: 100%;
    max-height: 520px;
    display: block;
}

.material-bv-create-preview-modal__meta {
    color: #a8a8a8;
    font-size: 12px;
    margin-top: 10px;
}

.material-bv-create-preview-modal__foot {
    padding: 12px 16px;
    border-top: 1px solid #2e2e2e;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.material-bv-create-preview-modal__id-toggle {
    margin-right: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #eaeaea;
    font-size: 12px;
    user-select: none;
}

.material-bv-create-preview-modal__id-toggle input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #2f6bff;
}

.material-bv-create-preview-modal__btn {
    border-radius: 10px;
    border: 1px solid #3a3a3a;
    background: rgba(255, 255, 255, 0.02);
    color: #f2f2f2;
    cursor: pointer;
    padding: 10px 14px;
    font-size: 13px;
}

