/* ============================================================
   CLIB 공통 영상 업로드 팝업
   public/css/video-upload.css
   ============================================================ */

#uploadDialog {
    width: calc(100% - 32px);
    max-width: 560px;
    max-height: 90vh;
    margin: auto;
    padding: 0;
    border: 1px solid #333;
    border-radius: 18px;
    background: #171717;
    color: #f5f5f5;
    overflow: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
    box-sizing: border-box;
}

#uploadDialog::backdrop {
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(2px);
}

#uploadDialog,
#uploadDialog * {
    box-sizing: border-box;
}

#uploadDialog .upload-panel {
    position: relative;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 26px;
    border: 0;
    background: #171717;
    color: #f5f5f5;
}

#uploadDialog .dialog-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #383838;
    border-radius: 50%;
    background: #222;
    color: #ddd;
    font-family: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

#uploadDialog .dialog-close:hover {
    background: #303030;
    color: #fff;
}

#uploadDialog .upload-header {
    padding-right: 45px;
    margin-bottom: 22px;
}

#uploadDialog .upload-eyebrow {
    margin-bottom: 7px;
    color: #888;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

#uploadDialog .upload-header h2 {
    margin: 0 0 7px;
    color: #fff;
    font-size: 24px;
    line-height: 1.25;
}

#uploadDialog .upload-header p {
    margin: 0;
    color: #999;
    font-size: 13px;
    line-height: 1.5;
}

#uploadDialog .upload-section {
    margin: 0 0 18px;
}

#uploadDialog .upload-section h3 {
    margin: 0 0 9px;
    color: #ddd;
    font-size: 13px;
    font-weight: 700;
}

#uploadDialog .upload-dropzone {
    position: relative;
    width: 100%;
    min-height: 145px;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px dashed #444;
    border-radius: 12px;
    background: #202020;
    color: #ddd;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

#uploadDialog .upload-dropzone:hover {
    border-color: #666;
    background: #252525;
}

#uploadDialog .upload-dropzone.dragover {
    border-color: #888;
    background: #292929;
}

#uploadDialog .upload-dropzone input[type="file"] {
    display: none !important;
}

#uploadDialog .upload-drop-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #444;
    border-radius: 10px;
    background: #292929;
    color: #ddd;
    font-size: 22px;
}

#uploadDialog .upload-dropzone strong {
    margin-bottom: 5px;
    color: #eee;
    font-size: 14px;
}

#uploadDialog .upload-dropzone span {
    color: #999;
    font-size: 12px;
    line-height: 1.5;
}

#uploadDialog .upload-dropzone small {
    margin-top: 7px;
    color: #777;
    font-size: 11px;
}

#uploadDialog .upload-dropzone em {
    display: block;
    max-width: 100%;
    margin-top: 8px;
    overflow: hidden;
    color: #ccc;
    font-size: 12px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#uploadDialog #subtitleProjectZipStatus {
    margin: 9px 0 0;
    color: #888;
    font-size: 12px;
    line-height: 1.5;
}

#uploadDialog .upload-select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #383838;
    border-radius: 9px;
    background: #222;
    color: #eee;
    font-family: inherit;
    font-size: 13px;
    outline: none;
}

#uploadDialog .upload-select:focus {
    border-color: #666;
}

#uploadDialog .upload-select option {
    background: #222;
    color: #eee;
}

#uploadDialog .upload-payment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

#uploadDialog .payment-card {
    position: relative;
    display: block;
    min-width: 0;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

#uploadDialog .payment-card > input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

#uploadDialog .payment-card-inner {
    min-height: 66px;
    display: flex;
    align-items: center;
    padding: 13px 14px;
    border: 1px solid #363636;
    border-radius: 11px;
    background: #202020;
    transition: border-color 0.15s ease, background 0.15s ease;
}

#uploadDialog .payment-card:hover .payment-card-inner {
    background: #272727;
    border-color: #505050;
}

#uploadDialog .payment-card > input:checked + .payment-card-inner {
    background: #292929;
    border-color: #777;
}

#uploadDialog .payment-radio {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin-right: 10px;
    border: 2px solid #666;
    border-radius: 50%;
}

#uploadDialog .payment-card > input:checked + .payment-card-inner .payment-radio {
    border: 5px solid #eee;
}

#uploadDialog .payment-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

#uploadDialog .payment-info strong {
    color: #eee;
    font-size: 13px;
}

#uploadDialog .payment-info small {
    color: #888;
    font-size: 11px;
    line-height: 1.5;
}

#uploadDialog .payment-info .payment-balance {
    color: #999;
    overflow-wrap: anywhere;
}

#uploadDialog .payment-balance span {
    color: #eee;
    font-weight: 600;
}

#uploadDialog .dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 9px;
    margin-top: 22px;
}

#uploadDialog .dialog-actions button {
    width: 100%;
    min-width: 0;
    height: 43px;
    padding: 0 12px;
    border-radius: 9px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

#uploadDialog .ghost-btn {
    border: 1px solid #383838 !important;
    background: #202020 !important;
    color: #bbb !important;
}

#uploadDialog .ghost-btn:hover {
    background: #292929 !important;
    color: #fff !important;
}

#uploadDialog .primary-btn {
    border: 1px solid #4a4a4a !important;
    background: #303030 !important;
    color: #fff !important;
}

#uploadDialog .primary-btn:hover {
    background: #3a3a3a !important;
    border-color: #5a5a5a !important;
}

#uploadDialog .primary-btn:disabled {
    opacity: 0.5;
    cursor: wait;
}

@media (max-width: 600px) {
    #uploadDialog {
        width: calc(100vw - 24px);
        max-width: none;
        max-height: 88vh;
        border-radius: 16px;
    }

    #uploadDialog .upload-panel {
        padding: 22px 18px;
    }

    #uploadDialog .upload-header h2 {
        font-size: 21px;
    }

    #uploadDialog .upload-dropzone {
        min-height: 130px;
        padding: 16px 12px;
    }

    #uploadDialog .upload-payment-grid {
        gap: 8px;
    }

    #uploadDialog .payment-card-inner {
        padding: 12px 10px;
    }

    #uploadDialog .payment-radio {
        margin-right: 7px;
    }
}

@media (max-width: 360px) {
    #uploadDialog .upload-payment-grid {
        grid-template-columns: 1fr;
    }
}




/* 영상 파일 + 편집 프로젝트 ZIP 나란히 배치 */
#uploadDialog .upload-sections-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

/* 각 업로드 항목의 여백 */
#uploadDialog .upload-sections-row .upload-section {
    min-width: 0;
    margin-bottom: 0;
}

/* 파일 선택 영역 높이 조정 */
#uploadDialog .upload-sections-row .upload-dropzone {
    min-height: 180px;
    padding: 20px 12px;
    box-sizing: border-box;
}

/* 좁은 화면에서는 다시 위아래 배치 */
@media (max-width: 520px) {
    #uploadDialog .upload-sections-row {
        grid-template-columns: 1fr;
    }
}



#subtitleFileStatus {
    font-size: 13px;
    line-height: 1.5;
}

