.voice-source-tabs{display:flex;gap:8px;margin:24px 0 20px;flex-wrap:wrap}
    .voice-source-tab{border:1px solid #ddd;background:#fff;border-radius:10px;padding:11px 18px;cursor:pointer;font:inherit}
    .voice-source-tab.active{background:#111;color:#fff;border-color:#111}
    .voice-source-panel[hidden]{display:none}
    .voice-placeholder{border:1px solid #e5e5e5;border-radius:14px;padding:24px;margin-bottom:16px}
    .voice-placeholder strong{display:block;font-size:18px;margin-bottom:8px}
    .voice-placeholder p{margin:0 0 16px;color:#666;line-height:1.6}
    .voice-placeholder textarea{display:block;width:100%;box-sizing:border-box;resize:vertical;margin:0 0 14px;padding:12px;border:1px solid #ddd;border-radius:10px;font:inherit}
    .voice-library-list,.voice-design-results,.voice-remix-results{display:grid;gap:10px}
    .voice-library-item{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 16px;border:1px solid #e5e5e5;border-radius:12px}
    .voice-library-item strong,.voice-library-item small{display:block}
    .voice-library-item small{margin-top:4px;color:#777}



/* =========================================================
   CLIB Dubbing
========================================================= */

:root {
    --dubbing-bg: #090a0c;
    --dubbing-surface: #111417;
    --dubbing-surface-2: #15191d;
    --dubbing-border: #30363d;

    --dubbing-text: #f1f3f5;
    --dubbing-muted: #9aa3ad;

    --dubbing-accent: #e88ac1;
    --dubbing-accent-dark: #b85f96;

    --dubbing-success: #72c78a;
}


/* =========================================================
   본문
========================================================= */

body {
    margin: 0;

    background: var(--dubbing-bg);
    color: var(--dubbing-text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}


.dubbing-main {
    width: 100%;
    max-width: 1180px;

    margin: 0 auto;
    padding: 40px 28px 80px;
    box-sizing: border-box;
    
}


/* =========================================================
   Header
========================================================= */

.dubbing-header {
    margin-bottom: 30px;

    position: relative;    
    top: -70px;

}


.dubbing-eyebrow,
.dubbing-card-eyebrow {
    margin-bottom: 8px;

    color: var(--dubbing-accent);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: .14em;
}


.dubbing-header h1 {
    margin: 0;

    font-size: 42px;
    line-height: 1.25;
}


.dubbing-header p {
    margin: 10px 0 0;

    color: var(--dubbing-muted);

    font-size: 14px;
}




/* 음성 소스 탭 */
.voice-source-tabs {
    display: flex;
    gap: 8px;
    background: #111;
}

.voice-source-tab {
    padding: 10px 18px;

    background: #1b1b1b;
    color: #aaa;

    border: 1px solid #333;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 500;

    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

/* 마우스를 올렸을 때 */
.voice-source-tab:hover {
    background: #292929;
    color: #fff;
    border-color: #444;
}

/* 선택된 탭 */
.voice-source-tab.active {
    background: #333;
    color: #fff;
    border-color: #555;
    font-weight: 600;
}

/* 키보드 포커스 */
.voice-source-tab:focus-visible {
    outline: 2px solid #888;
    outline-offset: 2px;
}



/* 보조 버튼 - 다크 테마 */
.secondary-button {
    background: #1b1b1b;
    color: #ccc;
    border: 1px solid #383838;
    border-radius: 8px;

    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

/* 마우스 오버 */
.secondary-button:hover {
    background: #292929;
    color: #fff;
    border-color: #505050;
}

/* 클릭 중 */
.secondary-button:active {
    background: #333;
}

/* 키보드 포커스 */
.secondary-button:focus-visible {
    outline: 2px solid #888;
    outline-offset: 2px;
}

/* 비활성화 */
.secondary-button:disabled {
    background: #151515;
    color: #666;
    border-color: #292929;
    cursor: not-allowed;
}



/* =========================================================
   Card
========================================================= */

.dubbing-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    margin-bottom: 22px;
    background: var(--dubbing-surface);

    border: 1px solid var(--dubbing-border);
    border-radius: 16px;
    overflow: hidden;

    position: relative;    
    top: -110px;
}


.step-number {
    display: flex;

    justify-content: center;
    align-items: flex-start;

    padding-top: 30px;

    background: #0d0f12;

    color: #66707b;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: .08em;
}


.dubbing-card-content {
    min-width: 0;
    padding: 30px;
}


.dubbing-card h2 {
    margin: 0;
    font-size: 23px;
}


.dubbing-card-content > p {
    margin: 9px 0 22px;
    color: var(--dubbing-muted);

    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   Title row
========================================================= */

.dubbing-card-title-row {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 20px;
}


.status-badge {
    flex: 0 0 auto;

    padding: 6px 11px;

    border: 1px solid #353c44;
    border-radius: 999px;

    color: #9ca5ae;

    font-size: 12px;
}


.status-badge.ready {
    color: #bdecc8;

    border-color: #3d7350;

    background: rgba(72, 135, 90, .12);
}


/* =========================================================
   Audio upload
========================================================= */

.audio-dropzone {
    display: flex;

    flex-direction: column;
    align-items: center;

    justify-content: center;

    min-height: 210px;

    padding: 28px;

    box-sizing: border-box;

    border: 1px dashed #444c55;
    border-radius: 14px;

    background: #0d1013;

    text-align: center;

    transition:
        border-color .18s ease,
        background .18s ease;
}


.audio-dropzone:hover,
.audio-dropzone.dragover {
    border-color: var(--dubbing-accent);

    background: #131015;
}


.dropzone-icon {
    margin-bottom: 12px;

    font-size: 38px;
}


.audio-dropzone strong {
    margin-bottom: 7px;

    font-size: 16px;
}


.audio-dropzone span {
    margin-bottom: 18px;

    color: var(--dubbing-muted);

    font-size: 13px;
}


/* =========================================================
   Buttons
========================================================= */

.outline-button,
.text-button,
.generate-button,
.download-button {
    font-family: inherit;
}


.outline-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 40px;

    padding: 0 17px;

    border: 1px solid #3d454e;
    border-radius: 9px;

    color: #e7ebef;
    background: #171b20;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}


.outline-button:hover {
    background: #20252b;
    border-color: #59636e;
}


.text-button {
    padding: 5px 8px;

    border: 0;

    background: transparent;

    font-size: 13px;

    cursor: pointer;
}


.text-button.danger {
    color: #e58c8c;
}


/* =========================================================
   Uploaded audio
========================================================= */

.audio-preview {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 20px;
    margin-top: 14px;
    padding: 15px 17px;
    border: 1px solid #30373e;
    border-radius: 12px;
    background: #0d1013;
}


.audio-preview-info {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}


.audio-file-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #1b151a;
    font-size: 19px;
}


.audio-preview-info strong {
    display: block;
    overflow: hidden;
    max-width: 500px;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.audio-preview-info small {
    display: block;
    margin-top: 4px;
    color: var(--dubbing-muted);
    font-size: 12px;
}


/* =========================================================
   Sample scripts
========================================================= */

.sample-script-section {
    margin-top: 28px;

    padding-top: 25px;

    border-top: 1px solid #292f35;
}


.section-title-row h3 {
    margin: 0;

    font-size: 16px;
}


.section-title-row p {
    margin: 6px 0 16px;

    color: var(--dubbing-muted);

    font-size: 13px;
}


.sample-script-list {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 9px;
}


.sample-script {
    display: flex;

    align-items: center;

    gap: 10px;

    min-width: 0;

    padding: 13px;

    border: 1px solid #2e353c;
    border-radius: 10px;

    background: #0d1013;

    color: #e9edf0;

    text-align: left;

    cursor: pointer;

    transition:
        background .18s ease,
        border-color .18s ease;
}


.sample-script:hover {
    background: #15191e;
    border-color: #4b545e;
}


.sample-script-text {
    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 13px;
}


/* =========================================================
   Emotion tag
========================================================= */

.emotion-tag {
    flex: 0 0 auto;

    padding: 4px 7px;

    border-radius: 6px;

    font-size: 11px;
    font-weight: 700;
}


.emotion-tag.anger {
    background: #3a2022;
    color: #ef9a9a;
}


.emotion-tag.sadness {
    background: #202b3c;
    color: #9fbce8;
}


.emotion-tag.fear {
    background: #2d2639;
    color: #c2a9e8;
}


.emotion-tag.joy {
    background: #3b3420;
    color: #e4ca86;
}


.emotion-tag.tension {
    background: #24342d;
    color: #91d2a9;
}


.emotion-tag.playful {
    background: #27292d;
    color: #c2c6cb;
}


.emotion-tag.despair {
    background: #29232a;
    color: #cda6c9;
}


.emotion-tag.shout {
    background: #3b2720;
    color: #e7ae83;
}


/* =========================================================
   Dialogue
========================================================= */

.dialogue-editor {
    border: 1px solid #353c44;
    border-radius: 12px;

    background: #0d1013;

    overflow: hidden;
}


.dialogue-editor textarea {
    display: block;

    width: 100%;
    min-height: 180px;

    padding: 18px;

    box-sizing: border-box;

    border: 0;
    outline: 0;

    resize: vertical;

    color: #f4f6f8;
    background: transparent;

    font: inherit;
    font-size: 16px;
    line-height: 1.7;
}


.dialogue-editor textarea::placeholder {
    color: #66707a;
}


.dialogue-footer {
    display: flex;

    justify-content: flex-end;

    padding: 9px 14px;

    border-top: 1px solid #292f35;

    color: #737d87;

    font-size: 12px;
}



/* =========================================================
   Acting options
========================================================= */

.acting-options {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    width: 100%;
    margin-top: 18px;
    box-sizing: border-box;
}


.acting-options {
    display: flex;
    gap: 20px;
    align-items: stretch;
}


.acting-options .option-group {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}


.option-group {
    padding: 16px;
    border: 1px solid #2e353c;
    border-radius: 11px;
    background: #0d1013;
}


.option-group label {
    display: block;
    margin-bottom: 10px;
    color: #aeb6be;
    font-size: 14px;
    font-weight: 700;
}


.option-group select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #3a424a;
    border-radius: 8px;
    outline: 0;
    color: #edf0f2;
    background: #171b20;
    font: inherit;
}


.range-row {
    display: flex;
    align-items: center;
    gap: 12px;
}


.range-row input {
    flex: 1;
}


.range-row span {
    min-width: 42px;
    color: #e5e9ec;
    font-size: 13px;
    text-align: right;
}



/* =========================================================
   Generate
========================================================= */

.generate-button {
    width: 100%;

    min-height: 48px;

    margin-top: 22px;

    border: 1px solid #b86497;
    border-radius: 11px;

    color: #fff;
    background: #8e416f;

    font-size: 14px;
    font-weight: 800;

    cursor: pointer;

    transition:
        background .18s ease,
        border-color .18s ease;
}


.generate-button:hover:not(:disabled) {
    background: #a64d82;
    border-color: #d47eb2;
}


.generate-button:disabled {
    opacity: .45;

    cursor: not-allowed;
}


.generate-hint {
    margin: 9px 0 0 !important;

    color: #727c86 !important;

    font-size: 14px !important;
    text-align: center;
}


/* =========================================================
   Result
========================================================= */

.result-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 180px;
    border: 1px dashed #343b43;
    border-radius: 12px;

    background: #0d1013;
    color: #6f7882;
    text-align: center;    

}

.dubbing-list-empty {
    position: relative;    
    left: 60px; 

}


.result-empty span {
    margin-bottom: 10px;

    font-size: 30px;
}


.result-empty p {
    margin: 0;

    font-size: 13px;
}


.result-content {
    margin-top: 20px;
}


.result-dialogue {
    padding: 18px;

    border: 1px solid #30373e;
    border-radius: 11px;

    background: #0d1013;
}


.result-label {
    color: var(--dubbing-accent);

    font-size: 11px;
    font-weight: 800;
}


.result-dialogue p {
    margin: 10px 0 0;

    color: #f1f3f5;

    font-size: 16px;
    line-height: 1.7;
}


.result-player {
    margin-top: 14px;
}


.result-player audio {
    width: 100%;
}


.result-actions {
    display: flex;

    justify-content: flex-end;

    gap: 9px;

    margin-top: 14px;
}

.download-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 40px;

    padding: 0 17px;

    box-sizing: border-box;

    border: 1px solid #b86497;
    border-radius: 9px;

    color: #fff;
    background: #8e416f;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}


/* 다운로드 버튼 호버 */
.download-button:hover {
    background: #a65383;
    border-color: #c878a7;

    transform: translateY(-1px);

    box-shadow: 0 5px 14px rgba(184, 100, 151, 0.25);
}


/* 클릭 */
.download-button:active {
    transform: translateY(0);

    box-shadow: 0 2px 6px rgba(184, 100, 151, 0.18);
}


/* =========================================================
   Mobile
========================================================= */

@media (max-width: 760px) {

    .dubbing-main {
        padding: 26px 14px 50px;
    }


    .dubbing-card {
        grid-template-columns: 1fr;
    }


    .step-number {
        justify-content: flex-start;

        padding: 16px 20px 0;

        background: transparent;
    }


    .dubbing-card-content {
        padding: 20px;
    }


    .sample-script-list {
        grid-template-columns: 1fr;
    }


    .acting-options {
        grid-template-columns: 1fr;
    }


    .dubbing-card-title-row {
        flex-direction: column;
    }


    .audio-preview {
        align-items: flex-start;
    }
}




/* =========================================================
   MY DUBBINGS
========================================================= */

.my-dubbings-card {
    width: 100%;
    margin-bottom: 22px;
    box-sizing: border-box;

    background: var(--dubbing-surface);
    border: 1px solid var(--dubbing-border);
    border-radius: 16px;
    overflow: hidden;

    position: relative;    
    top: -110px;
}


.my-dubbings-content {
    width: 100%;
    min-width: 0;
    padding: 30px;
    box-sizing: border-box;
}


.my-dubbings-eyebrow {
    margin-bottom: 10px;
    color: var(--dubbing-accent);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;

    position: relative;    
    left: 60px;
}


.my-dubbings-content h2 {
    margin: 0 0 24px;

    color: var(--dubbing-text);

    font-size: 23px;
    line-height: 1.3;

    position: relative;    
    left: 60px;
}




.secondary-button {
    position: relative;    
    top: 5px;
}



.voice-source-status {
    position: relative;    
    top: 5px;
    left: 470px;
}



/* =========================================================
   목록
========================================================= */

.my-dubbings-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 12px;
}


/* =========================================================
   음성 하나
========================================================= */

.my-dubbing-item {
    display: flex;
    align-items: center;

    width: 100%;
    min-width: 0;

    padding: 16px 18px;

    box-sizing: border-box;

    gap: 18px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.025);
}


/* =========================================================
   대사 / 정보
========================================================= */

.my-dubbing-info {
    flex: 1 1 auto;
    min-width: 0;
}


.my-dubbing-dialogue {
    width: 100%;

    color: #fff;

    font-size: 15px;
    line-height: 1.5;

    white-space: nowrap;

    overflow: hidden;
    text-overflow: ellipsis;
}


.my-dubbing-meta {
    margin-top: 6px;

    color: #888;

    font-size: 12px;
    line-height: 1.4;

    white-space: nowrap;
}


/* =========================================================
   오디오
========================================================= */

.my-dubbing-item audio {
    flex: 0 0 320px;

    width: 320px;
    max-width: 320px;
}


/* =========================================================
   다운로드
========================================================= */

.my-dubbing-download {
    flex: 0 0 auto;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 80px;

    padding: 9px 14px;

    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;

    color: #fff;
    background: rgba(255, 255, 255, 0.06);

    font-size: 13px;

    text-decoration: none;

    white-space: nowrap;

    cursor: pointer;
}


.my-dubbing-download:hover {
    background: rgba(255, 255, 255, 0.1);

    border-color: rgba(255, 255, 255, 0.2);
}


/* =========================================================
   비어 있을 때
========================================================= */

.my-dubbings-empty {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 70px;

    padding: 20px;

    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;

    color: #888;

    background: rgba(255, 255, 255, 0.02);

    font-size: 14px;

    text-align: center;
}


/* =========================================================
   모바일
========================================================= */

@media (max-width: 768px) {

    .my-dubbing-item {
        flex-direction: column;

        align-items: stretch;

        gap: 12px;
    }


    .my-dubbing-item audio {
        width: 100%;
        max-width: 100%;
    }


    .my-dubbing-download {
        width: 100%;
    }

}



.my-dubbing-delete {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 60px;
    padding: 9px 14px;

    box-sizing: border-box;

    border: 1px solid rgba(255, 90, 90, 0.28);
    border-radius: 8px;

    color: #e7a0a0;
    background: rgba(255, 90, 90, 0.06);

    font-size: 13px;
    white-space: nowrap;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.my-dubbing-delete:hover {
    background: rgba(255, 90, 90, 0.12);
    border-color: rgba(255, 90, 90, 0.45);
}




.dialogue-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.dialogue-title-row h2 {
    margin: 0;
    text-align: left;
}



.dubbing-credit-balance {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;

    position: relative;
    top: -20px;
    left: -10px;
}

.dubbing-credit-label {
    color: #aaa;
    font-size: 14px;
}

.dubbing-credit-balance strong {
    color: #fff;
    font-size: 14px;
}

.credit-row {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
}



/* =========================================================
   샘플 대사 팝업
========================================================= */

.sample-script-dialog {
    width: min(720px, calc(100vw - 40px));
    min-width: 0;
    max-width: min(720px, calc(100vw - 40px));
    max-height: min(760px, calc(100vh - 40px));

    padding: 0;
    border: 0;
    border-radius: 18px;

    background: #171417;
    color: #fff;

    overflow: hidden;
    box-sizing: border-box;
}

.sample-script-dialog::backdrop {
    background: rgba(0, 0, 0, 0.7);
}

.sample-script-dialog-inner {
    position: relative;
    padding: 32px;
    max-height: min(760px, calc(100vh - 40px));
    overflow-y: auto;
}

.sample-script-dialog-close {
    position: absolute;
    top: 16px;
    right: 16px;

    width: 36px;
    height: 36px;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.08);
    color: #fff;

    font-size: 24px;
    line-height: 1;

    cursor: pointer;
}

.sample-script-dialog-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.sample-script-dialog-emotion {
    display: inline-flex;
    align-items: center;

    margin-bottom: 12px;
    padding: 5px 10px;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.08);

    font-size: 12px;
    font-weight: 600;
}

.sample-script-dialog h3 {
    margin: 0 40px 24px 0;

    font-size: 22px;
    line-height: 1.45;
}

.sample-script-dialog-text {
    white-space: pre-wrap;

    font-size: 15px;
    line-height: 1.85;

    color: #d8d3d7;
}




/* ============================================================
   샘플 음성 녹음
============================================================ */


.sample-recording-control {
    position: relative;

    width: 100%;
    min-height: 230px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 22px;
}


.sample-record-button {

    transform: translateX(100px);

    width: 135px;
    height: 135px;

    border: 0;
    border-radius: 50%;

    background: #211c20;
    color: #fff;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 8px;

    cursor: pointer;

    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}



.sample-record-button:hover {

     transform: translateX(100px) scale(1.05);

}


/* 녹음 중 */

.sample-record-button.recording {

    background: #7a2028;

    box-shadow:
        0 0 0 8px rgba(180, 45, 60, .12),
        0 0 30px rgba(180, 45, 60, .35);

    animation: sampleRecordingPulse 1.4s infinite;
        
    transform: translateX(100px)
}

.sample-record-button.recording:hover {
    transform: translateX(100px) scale(1.05);
}


.sample-record-button:active,
.sample-record-button:focus,
.sample-record-button:focus-visible {
    transform: translateX(100px) scale(0.98);
}




.sample-record-icon {

    font-size: 38px;
    line-height: 1;

}


.sample-record-label {

    font-size: 14px;
    font-weight: 600;

}




@keyframes sampleRecordingPulse {

    0%,
    100% {
        box-shadow:
            0 0 0 8px rgba(180, 45, 60, .12),
            0 0 30px rgba(180, 45, 60, .35);
    }

    50% {
        box-shadow:
            0 0 0 14px rgba(180, 45, 60, .08),
            0 0 42px rgba(180, 45, 60, .45);
    }

}


/* 상태 */

.sample-recording-status {

    margin-top: 20px;

    text-align: center;

    font-size: 14px;

    color: #aaa;

}


.sample-recording-control.recording
~ .sample-recording-result
.sample-recording-status {

    color: #ff6875;

}


.sample-recording-timer {

    margin-top: 8px;

    text-align: center;

    font-size: 28px;

    font-variant-numeric: tabular-nums;

    font-weight: 700;

    color: #fff;

}


/* 녹음 결과 */

.sample-recording-result {

    margin-top: 24px;

    padding: 20px;

    border-radius: 14px;

    background: #151216;

    border: 1px solid #2d272c;

}


.sample-recording-player audio {

    width: 100%;

}


/* =========================================================
   녹음 결과 버튼
   ========================================================= */

.sample-recording-actions {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 14px;
    width: 100%;

    transform: translateX(-80px);
}


/* 녹음 중지 버튼 */

.sample-stop-button {
    position: static;    
 
    transform: translate(400px, -90px);

    min-width: 165px;
    height: 54px;

    padding: 0 28px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #4a4b50;
    border-radius: 28px;

    background: linear-gradient(
        180deg,
        #3a3b40 0%,
        #303136 100%
    );

    color: #f5f5f5;

    font-size: 16px;
    font-weight: 400;

    cursor: pointer;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.sample-stop-button:hover {
    background: linear-gradient(
        180deg,
        #45464b 0%,
        #38393e 100%
    );

    border-color: #5a5b60;

    transform: translate(400px, -90px) scale(1.05);
}



.sample-stop-button:active {
    transform: translateY(0);

    transform: translate(400px, -90px);
}


.sample-stop-button:active,
.sample-stop-button:focus,
.sample-stop-button:focus-visible {
    transform: translate(400px, -90px) scale(0.98);
}


/* =========================================================
   녹음 완료 액션 버튼
   ========================================================= */

.sample-recording-actions button {
    height: 54px;
    padding: 0 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #48494e;
    border-radius: 14px;

    background: linear-gradient(
        180deg,
        #393a3f 0%,
        #303136 100%
    );

    color: #f2f2f2;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.sample-recording-actions button:hover {
    background: linear-gradient(
        180deg,
        #45464b 0%,
        #38393e 100%
    );

    border-color: #5a5b60;

    transform: translateY(-1px);

    box-shadow:
        0 5px 14px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sample-recording-actions button:active {
    transform: translateY(0);
}


/* 비활성화 */

.sample-recording-actions button:disabled,
.sample-stop-button:disabled {
    opacity: 0.45;
    cursor: default;
    transform: none;
}


/* =========================================================
   녹음 완료 영역
   ========================================================= */

.sample-recording-result {
    margin-top: 28px;
    padding: 22px;

    border: 1px solid #2d2e32;
    border-radius: 18px;

    background: rgba(25, 26, 29, 0.75);
}


/* 오디오 플레이어 */

.sample-recording-player {
    margin-bottom: 18px;
}

.sample-recording-player audio {
    width: 100%;
}


/* 액션 버튼 */

.sample-recording-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}





.sample-recording-button {

    min-height: 42px;

    padding: 0 18px;

    border-radius: 9px;

    border: 1px solid #393239;

    background: #211d21;

    color: #fff;

    cursor: pointer;

}


.sample-recording-button.primary {

    background: #fff;

    color: #111;

    border-color: #fff;

}


.sample-recording-button:hover {

    opacity: .88;

}


.sample-recording-button:disabled {

    opacity: .5;

    cursor: default;

}


@media (max-width: 600px) {

    .sample-record-button {

        width: 130px;
        height: 130px;

    }


    .sample-recording-actions {

        flex-direction: column;

    }


    .sample-recording-button {

        width: 100%;

    }

}



/* =====================================================
   스튜디오 소분류 현재 메뉴
   ===================================================== */

/* 현재 페이지 */

.video-subnav a.active {
    color: #ffffff;
    background: #17263f;
    border-color: #477dc8;
    box-shadow: 0 0 16px rgba(62, 126, 210, 0.20);
}




.voice-empty-state {

    transform: translateY(6px);
}




/* ============================================================
   음성 라이브러리
============================================================ */

.voice-library-panel {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #292d32;
    border-radius: 14px;
    background: #111417;
}

.voice-library-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.voice-library-toolbar-text {
    color: #8f969d;
    font-size: 14px;
    line-height: 1.6;
}

.load-voice-library-button {
    flex-shrink: 0;
    height: 42px;
    padding: 0 18px;
    border: 1px solid #3a4047;
    border-radius: 9px;
    background: #1a1e22;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.load-voice-library-button:hover {
    background: #24292f;
    border-color: #59616a;
}

.load-voice-library-button:active {
    transform: translateY(1px);
}


.voice-library-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.voice-library-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    min-height: 78px;
    padding: 15px 16px;
    border: 1px solid #292e34;
    border-radius: 11px;
    background: #171a1e;
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.voice-library-item:hover {
    background: #1d2227;
    border-color: #454c54;
    transform: translateY(-1px);
}

.voice-library-item.selected {
    border-color: #a6ff3f;
    background: rgba(166, 255, 63, 0.07);
    box-shadow:
        0 0 0 1px rgba(166, 255, 63, 0.18);
}

.voice-library-item.selected::after {
    content: "✓ 선택됨";
    position: absolute;
    top: 12px;
    right: 12px;
    color: #a6ff3f;
    font-size: 12px;
    font-weight: 700;
}

.voice-library-name {
    display: block;
    margin-bottom: 6px;
    padding-right: 60px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.voice-library-description {
    display: block;
    color: #858d95;
    font-size: 13px;
    line-height: 1.45;
}



.voice-library-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
    border: 1px solid #343a40;
    border-radius: 50%;
    background: #20252a;
    color: #a6ff3f;
    font-size: 13px;
}





/* =====================================================
   음성 라이브러리 검색 영역
===================================================== */

.voice-library-tools {
    margin-bottom: 18px;
}


.voice-library-search {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* 검색 입력 */

#voiceLibrarySearch {
    flex: 1;

    height: 42px;

    box-sizing: border-box;

    padding: 0 14px;

    border: 1px solid #3a414b;
    border-radius: 8px;

    background: #171b20;
    color: #e8edf3;

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


/* placeholder */

#voiceLibrarySearch::placeholder {
    color: #7f8996;
}


/* focus */

#voiceLibrarySearch:focus {
    border-color: #6f747c;
    background: #1b2026;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.04);
}


/* 검색 버튼 */

#voiceLibrarySearchButton {
    height: 42px;

    padding: 0 16px;

    border: 1px solid #3a414b;
    border-radius: 8px;

    background: #1b2026;
    color: #e8edf3;

    font-size: 14px;
    font-weight: 500;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}


#voiceLibrarySearchButton:hover {
    background: #242a31;
    border-color: #555e69;
}


/* =====================================================
   음성 목록과 검색 영역 사이 여백
===================================================== */

#voiceLibraryList {
    margin-top: 18px;
}


/* =====================================================
   더 많은 음성 불러오기
===================================================== */

#loadMoreVoiceLibraryButton {

    display: block;

    margin: 24px auto 8px;

    min-width: 190px;
    height: 42px;

    padding: 0 20px;

    border: 1px solid #3d4650;
    border-radius: 9px;

    background: #1b2026;
    color: #dfe5eb;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease;
}


#loadMoreVoiceLibraryButton:hover {

    background: #252c33;

    border-color: #59636e;

    color: #ffffff;

}


#loadMoreVoiceLibraryButton:active {

    transform: translateY(1px);

}


#loadMoreVoiceLibraryButton:disabled {

    background: #171b20;

    border-color: #30363d;

    color: #737b84;

    cursor: default;

    opacity: 0.8;

}


/* 숨김 상태 */

#loadMoreVoiceLibraryButton[hidden] {

    display: none;

}





/* =====================================================
   음성 디자인
===================================================== */

.voice-design-section {
    margin-top: 26px;
    padding: 26px 22px 30px;

    border: 1px solid #30363d;
    border-radius: 12px;

    background: #11151a;
}


/* 설명 */

.voice-design-section p {
    margin: 0 0 18px;

    color: #c3cbd4;

    font-size: 15px;
    line-height: 1.7;
}


/* 음성 디자인 입력 */

#voiceDesignPrompt {
    display: block;

    width: 100%;
    min-height: 120px;

    box-sizing: border-box;

    padding: 14px 16px;

    border: 1px solid #3a424c;
    border-radius: 9px;

    background: #171b20;
    color: #e9edf2;

    font-size: 15px;
    line-height: 1.6;

    resize: vertical;

    outline: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


#voiceDesignPrompt::placeholder {
    color: #7d8792;
}


#voiceDesignPrompt:focus {
    border-color: #59636e;

    background: #1a1f25;

    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.04);
}


/* 음성 디자인 버튼 */

#voiceDesignButton {
    margin-top: 14px;

    min-width: 150px;
    height: 42px;

    padding: 0 20px;

    border: 1px solid #3d4650;
    border-radius: 8px;

    background: #1d2329;
    color: #edf1f5;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease;
}


#voiceDesignButton:hover {
    background: #272e35;
    border-color: #59636e;
}


#voiceDesignButton:active {
    transform: translateY(1px);
}


#voiceDesignButton:disabled {
    opacity: 0.55;
    cursor: default;
}


/* =====================================================
   음성 디자인
===================================================== */

.voice-source-panel[data-voice-panel="design"] {
    padding: 26px 22px 30px;

    border: 1px solid #30363d;
    border-radius: 12px;

    background: #11151a;
}


/* 헤더 */

.voice-source-panel[data-voice-panel="design"]
.voice-panel-header {
    margin-bottom: 20px;
}


.voice-source-panel[data-voice-panel="design"]
.voice-panel-header h3 {
    margin: 0 0 8px;

    color: #f1f4f7;

    font-size: 21px;
    font-weight: 700;
}


.voice-source-panel[data-voice-panel="design"]
.voice-panel-header p {
    margin: 0;

    color: #9da7b2;

    font-size: 14px;
    line-height: 1.6;
}


/* 음성 특징 입력 */

.voice-prompt-input {

    display: block;

    width: 100%;
    min-height: 130px;

    box-sizing: border-box;

    padding: 14px 16px;

    border: 1px solid #39424d;
    border-radius: 9px;

    background: #171b20;
    color: #e9edf2;

    font-size: 15px;
    line-height: 1.65;

    resize: vertical;

    outline: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.voice-prompt-input::placeholder {
    color: #727d89;
}


.voice-prompt-input:focus {

    border-color: #596571;

    background: #1a1f25;

    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.04);
}


/* 버튼 영역 */

.voice-prompt-actions {
    display: flex;

    align-items: center;

    margin-top: 14px;
}


/* 디자인 버튼 */

.voice-prompt-actions .primary-button {

    min-width: 150px;
    height: 42px;

    padding: 0 20px;

    border: 1px solid #3d4650;
    border-radius: 8px;

    background: #1d2329;
    color: #edf1f5;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease;
}


.voice-prompt-actions .primary-button:hover {

    background: #272e35;

    border-color: #59636e;

}


.voice-prompt-actions .primary-button:active {

    transform: translateY(1px);

}


.voice-prompt-actions .primary-button:disabled {

    opacity: 0.55;

    cursor: default;

}


/* =====================================================
   디자인 결과
===================================================== */

.voice-design-results {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;

    margin-top: 22px;
}


/* 결과 카드 */

.voice-design-result {

    padding: 18px;

    border: 1px solid #343c45;
    border-radius: 10px;

    background: #171b20;

    box-sizing: border-box;
}


/* 결과 제목 */

.voice-design-result-header {

    margin-bottom: 14px;

    color: #e9edf2;

    font-size: 14px;
    font-weight: 600;
}


/* 미리듣기 */

.voice-design-result audio {

    width: 100%;

    margin-bottom: 14px;
}


/* 음성 사용 버튼 */

.voice-design-result .voice-select-button {

    width: 100%;

    height: 38px;

    border: 1px solid #3d4650;
    border-radius: 7px;

    background: #1d2329;
    color: #e2e7ec;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
}


.voice-design-result .voice-select-button:hover {

    background: #272e35;
    border-color: #59636e;

}


/* 선택된 결과 */

.voice-design-result.selected {

    border-color: #8bdc32;
    background: #182018;

}


/* 모바일 */

@media (max-width: 800px) {

    .voice-design-results {

        grid-template-columns: 1fr;

    }

}


.voice-design-credit-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;

    position: relative;
    top: -20px;
    left: -10px;

    transform: translateY(-15px);
}

.voice-design-credit-info > div {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 8px;

    white-space: nowrap;

    color: #aaa;
    font-size: 14px;
}

.voice-design-credit-info > div strong {
    color: #fff;
    font-size: 14px;
}

@media (max-width: 700px) {

    .voice-design-credit-info {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 12px 20px;
    }

}



.voice-panel-header{
    position: relative;

    transform: translateY(7px);
}

.voice-panel-header p {
    color: #999;
    font-size: 15px;
}





.voice-remix-base-source {
    position: relative;

    transform: translateY(10px);
}




.voice-remix-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}


.voice-remix-credit-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;

    position: relative;
    top: -20px;
    left: -10px;

    transform: translateY(-15px);
}

.voice-remix-credit-info > div {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 8px;

    white-space: nowrap;

    color: #aaa;
    font-size: 14px;
}

.voice-remix-credit-info > div strong {
    color: #fff;
    font-size: 14px;
}


.voice-remix-prompt {
    position: relative;    
}

.voice-remix-prompt h3 {
    margin: 0 0 16px 0;
    transform: translateY(65px);
}




/* =====================================================
   음성 조합 - 기본 음성 선택 탭
===================================================== */

.voice-remix-source-tabs {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    margin-bottom: 12px;
}

.voice-remix-source-tab {
    min-width: 110px;
    height: 40px;

    padding: 0 18px;

    border: 1px solid #3a424c;
    border-radius: 6px;

    background: #181d22;
    color: #c8cdd3;

    font-size: 14px;
    font-weight: 500;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.voice-remix-source-tab:hover {
    background: #20262d;
    border-color: #59636e;
}

.voice-remix-source-tab.active {
    background: #252c34;
    border-color: #7d8996;
    color: #ffffff;
}




#voiceRemixUploadButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 40px;
    padding: 0 18px;

    border: 1px solid #3a424c;
    border-radius: 6px;

    background: #181d22;
    color: #d9dde2;

    font-size: 14px;
    font-weight: 500;

    cursor: pointer;
}

#voiceRemixUploadButton:hover {
    background: #20262d;
    border-color: #59636e;
}




.voice-remix-file-info {
    margin-top: 10px;

    font-size: 14px;
    color: #8f98a3;
}

.voice-remix-file-info strong {
    color: #d5d9de;
    font-weight: 500;
}




/* =====================================================
   음성 조합 결과
===================================================== */

.voice-remix-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;

    margin-top: 24px;
}

.voice-remix-result {
    display: flex;
    flex-direction: column;
    align-items: center;

    min-width: 0;
}

.voice-remix-result-header {
    width: 100%;

    margin-bottom: 10px;

    text-align: left;
}

.voice-remix-result-header strong {
    color: #e1e5e9;
    font-size: 16px;
    font-weight: 600;
}



.voice-remix-result audio {
    width: 100%;
    max-width: 330px;
}




.voice-remix-result .voice-select-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 10px;

    min-width: 140px;
    height: 38px;

    padding: 0 18px;

    border: 1px solid #3a424c;
    border-radius: 6px;

    background: #1b2026;
    color: #d8dde2;

    font-size: 14px;
    font-weight: 500;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.voice-remix-result .voice-select-button:hover {
    background: #252c34;
    border-color: #65717d;
    color: #ffffff;
}

.voice-remix-result .voice-select-button:disabled {
    opacity: 0.5;
    cursor: default;
}





/* ============================================================
   영상 업로드 팝업
============================================================ */

#uploadDialog {
    width: 100%;
    max-width: 560px;
    max-height: 90vh;

    margin: auto;
    padding: 0;

    border: 1px solid #333;
    border-radius: 18px;

    background: #171717;
    color: #f5f5f5;

    overflow: hidden;

    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.65);
}


/* 바깥 배경 */

#uploadDialog::backdrop {
    background: rgba(0, 0, 0, 0.78);
}


/* ============================================================
   팝업 내부
============================================================ */

#uploadDialog .upload-panel {
    position: relative;

    width: 100%;
    box-sizing: border-box;

    margin: 0;
    padding: 26px;

    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-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 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-bottom: 18px;
}

#uploadDialog .upload-section h3 {
    margin: 0 0 9px;

    color: #ddd;

    font-size: 13px;
    font-weight: 700;
}


/* ============================================================
   파일 Drop Zone
============================================================ */

#uploadDialog .upload-dropzone {
    position: relative;

    width: 100%;
    min-height: 145px;

    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 20px;

    border: 1px dashed #444;
    border-radius: 12px;

    background: #202020;

    color: #ddd;

    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-drop-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 9px;

    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;
}

#uploadDialog .upload-dropzone small {
    margin-top: 7px;

    color: #666;

    font-size: 11px;
}


/* 파일명 */

#uploadDialog .upload-dropzone em {
    display: block;

    max-width: 90%;

    margin-top: 8px;

    overflow: hidden;

    color: #ccc;

    font-size: 12px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ============================================================
   영상 종류 select
============================================================ */

#uploadDialog .upload-select {
    width: 100%;
    height: 42px;

    box-sizing: border-box;

    padding: 0 12px;

    border: 1px solid #383838;
    border-radius: 9px;

    background: #222;
    color: #eee;

    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: 1fr 1fr;

    gap: 10px;
}


/* 결제 카드 */

#uploadDialog .payment-card {
    display: block;

    margin: 0;
    padding: 0;

    cursor: pointer;
}


/* 실제 radio 숨김 */

#uploadDialog .payment-card > input {
    position: absolute;

    opacity: 0;
    pointer-events: none;
}


/* 카드 */

#uploadDialog .payment-card-inner {
    min-height: 66px;

    box-sizing: border-box;

    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;
}


/* hover */

#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;
}


/* radio */

#uploadDialog .payment-radio {
    width: 17px;
    height: 17px;

    flex: 0 0 17px;

    margin-right: 10px;

    box-sizing: border-box;

    border: 2px solid #666;
    border-radius: 50%;
}


/* 선택된 radio */

#uploadDialog .payment-card > input:checked
    + .payment-card-inner
    .payment-radio {
    border: 5px solid #eee;
}


/* 결제 정보 */

#uploadDialog .payment-info {
    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;
}


/* ============================================================
   하단 버튼
============================================================ */

#uploadDialog .dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1.5fr;

    gap: 9px;

    margin-top: 22px;
}


/* 모든 버튼 공통
   기존 흰색 버튼 스타일보다 우선하도록
   구체적으로 지정
*/

#uploadDialog .dialog-actions button {
    width: 100%;
    height: 43px;

    box-sizing: border-box;

    border-radius: 9px;

    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 h2 {
        font-size: 21px;
    }

    #uploadDialog .upload-dropzone {
        min-height: 130px;
    }

}



/* 업로드 팝업의 실제 파일 input은 화면에 표시하지 않음 */
#uploadDialog #videoFile {
    display: none !important;
}




/* 영상 업로드 영역: 내부 요소를 세로로 정렬 */
#uploadDialog .upload-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* 업로드 아이콘 */
#uploadDialog .upload-drop-icon {
    flex: 0 0 auto;
    margin-bottom: 9px;
}

/* 안내 문구를 각각 독립된 줄로 표시 */
#uploadDialog .upload-dropzone strong,
#uploadDialog .upload-dropzone span,
#uploadDialog .upload-dropzone small {
    display: block;
    width: 100%;
    text-align: center;
}


#uploadDialog .upload-drop-icon {
    align-self: center;
    margin-left: auto;
    margin-right: auto;
}



#uploadDialog .dialog-close .close-icon {
    display: inline-block;
    position: relative;
    top: -3px;
}