*{box-sizing:border-box}

body {
    margin: 0;
    min-height: 100vh;
    background: #0b0c0e;
    color: #f2f2f2;
    font-family: Arial, "Noto Sans KR", sans-serif;
}

button,input,textarea,select
{
    font:inherit
}





main
{
    width:min(1080px,calc(100% - 32px));
    margin:auto
}

.creator-list
{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px
}

/* 영상 제작 카드 */
    
.creator {
    min-width: 0;
    padding: 12px;
    background: #121518;
    border: 1px solid #30363c;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0,0,0,.25);
}

/* 영상 카드 상단 */

.creator header {
    height: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2px 7px;
    color: #d7dadd;
}

.remove
{
    width:25px;
    height:25px;
    border:0;
    border-radius:50%;
    background:#333;
    color:#ddd;
    cursor:pointer
}

/* 미디어 업로드 영역 */

.upload {
    height: 138px;
    border: 1px dashed #4a5158;
    border-radius: 12px;
    background: linear-gradient(145deg, #20252a, #191d21);
    color: #aab0b5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .2s;
}

.upload:hover {
    border-color: #687179;
    background: #23282d;
}

.upload input
{
    display:none
}

.icons
{
    font-size:20px;
    margin-bottom:8px
}

.upload small
{
    margin-top:4px
}

.upload em
{
    max-width:90%;
    margin-top:6px;
    color:#c9e7a8;
    font-size:11px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    font-style:normal
}

.prompt {
    height: 178px;
    margin-top: 11px;
    padding: 13px;
    border-radius: 12px;
    background: #1a1e22;
    border: 1px solid #2d3338;
    position: relative;
}

.prompt label
{
    display:block;
    color:#aaa;
    font-size:14px;
    margin-bottom:5px
}

.prompt textarea
{
    width:100%;
    height:115px;
    resize:none;
    border:0;
    outline:0;
    background:transparent;
    color:#eee;

    /* Firefox 스크롤 바 */
    scrollbar-width: thin;
    scrollbar-color: #4b535b #1a1e22;
}


/* Chrome / Edge / Safari 스크롤 바 */

.prompt textarea::-webkit-scrollbar
{
    width:8px;
}

.prompt textarea::-webkit-scrollbar-track
{
    background:#1a1e22;
    border-radius:8px;
}

.prompt textarea::-webkit-scrollbar-thumb
{
    background:#4b535b;
    border-radius:8px;
    border:2px solid #1a1e22;
}

.prompt textarea::-webkit-scrollbar-thumb:hover
{
    background:#68737d;
}

.prompt textarea::-webkit-scrollbar-button
{
    background:#1a1e22;
    height:0;
}

.prompt textarea::placeholder
{
    color:#777
}

.prompt small
{
    position:absolute;
    right:10px;
    bottom:8px;
    color:#666;
    font-size:10px
}




/* ============================================================
   역할 / 배우 선택 영역
============================================================ */

.creator-character-settings {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;

  margin: 10px 0 12px;
}

.creator-setting {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  color: #dce2e8;
  font-size: 14px;
  font-weight: 600;
}

.creator-setting select {
  height: 36px;
  min-width: 92px;

  padding: 0 9px;

  color: #e9edf1;
  background: #20252b;
  border: 1px solid #454c55;
  border-radius: 7px;

  font-size: 14px;
}

.creator-setting select:focus {
  outline: none;
  border-color: #7d8794;
}

.creator-setting select option {
  color: #e9edf1;
  background: #20252b;
}




/* ============================================================
   카드 하단이 다음 제작세트에 붙지 않도록 함
============================================================ */

#creatorList .creator {
  margin-bottom: 0;
}


/* ============================================================
   모바일
============================================================ */

@media (max-width: 520px) {
  .creator-character-settings {
    gap: 7px;
  }

  .creator-setting {
    font-size: 13px;
  }

  .creator-setting select {
    min-width: 86px;
    height: 34px;
    font-size: 13px;
  }
}


/* ============================================================
   제작세트 3개를 한 줄에 배치
============================================================ */

#creatorList {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}


/* 제작세트 카드 */
#creatorList .creator {
  min-width: 0;
  margin: 0;
}


/* 제작세트 내부 미디어 3개는 기존처럼 한 줄 */
#creatorList .creator .media-inputs {
  display: flex;
  gap: 10px;
}

#creatorList .creator .media-input {
  flex: 1 1 0;
  min-width: 0;
}


/* ============================================================
   화면이 좁아지면 2열
============================================================ */

@media (max-width: 1100px) {
  #creatorList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* ============================================================
   모바일은 1열
============================================================ */

@media (max-width: 700px) {
  #creatorList {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}



.media-input.selected {
    border-color: #8bd447;
    background: #20252a;
}

.media-input.selected .media-title {
    color: #8bd447;
}


.model-setting {
    display: grid !important;
    grid-template-columns: 65px 1fr !important;
    align-items: center;
}

.model-select-wrap {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 6px;
}

.model-select-wrap select {
    flex: 1;
    min-width: 0;
}

.model-feature {
    flex: 0 0 auto;
    color: #777e84;
    font-size: 11px;
    white-space: nowrap;
}



/* =========================================================
   1세트형 모델용 PC 작업 영역
   Hailuo 02 / Veo
   ========================================================= */

.model-workspace {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr);
    gap: 18px;
    align-items: stretch;
}

.model-info-panel {
    min-height: 420px;
    padding: 24px;
    background:
        linear-gradient(
            145deg,
            #15191d,
            #0e1012
        );

    border: 1px solid #30363c;
    border-radius: 14px;

    overflow: hidden;
}

.model-info-panel .model-info-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.model-info-panel .model-info-description {
    color: #9da5ac;
    line-height: 1.6;
}

.model-info-panel .model-info-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 18px 0;
    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #252b31,
            #15181b
        );

    overflow: hidden;
}

.model-info-panel .model-info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/*
 모바일에서는 설명 란은 숨김 처리 ----
*/
@media (max-width: 680px) {

    .model-info-panel {
        display: none !important;
    }

    .model-workspace {
        display: block;
    }

}


/* ============================================================
   Veo
============================================================ */

.movie-pink-panel {

    width: 100%;
    box-sizing: border-box;
    padding: 18px;

    background: #111417;
    border: 1px solid #30363d;
    border-radius: 14px;
    color: #e8edf2;
    margin-bottom: 18px;

}


/* ============================================================
   시작 / 마지막 이미지
============================================================ */

.movie-pink-frame-row {

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;

}


.movie-pink-frame {

    position: relative;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    padding: 18px 12px;
    background: #171b1f;
    border: 1px dashed #353c43;
    border-radius: 12px;
    cursor: pointer;

    transition:
        border-color .2s ease,
        background .2s ease;

    overflow: hidden;

}


.movie-pink-frame:hover {

    border-color: #6fd42f;
    background: #1b2024;

}


.movie-pink-frame input {

    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;

}


/* ============================================================
   Veo - 이어갈 영상 미리보기
   ============================================================ */

.movie-pink-extend-source {
    width: 100%;
    box-sizing: border-box;

    margin-bottom: 14px;
    padding: 14px 16px 16px;

    background: #111417;
    border: 1px solid #30363d;
    border-radius: 12px;

    color: #e8edf2;
}


/* 제목 + 삭제 버튼 */

.movie-pink-extend-header {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 10px;

    color: #dfe5ea;
    font-size: 14px;
}


.movie-pink-extend-header strong {
    font-weight: 600;
}


/* 삭제 버튼 */

/* Veo 참조이미지 3개의 삭제 버튼 */

.movie-pink-extend-clear {
    appearance: none;
    -webkit-appearance: none;

    position: absolute !important;
    top: 6px !important;
    right: 6px !important;

    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid #3a4046 !important;
    border-radius: 6px !important;

    background: #1b1e22 !important;
    color: #9299a1 !important;

    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 22px !important;

    
    align-items: center !important;
    justify-content: center !important;

    text-align: center !important;
    box-shadow: none !important;

    cursor: pointer;
    z-index: 100 !important;

    transition:
        background-color .15s ease,
        border-color .15s ease,
        color .15s ease;
}

.movie-pink-extend-clear:hover {
    background: #292e33 !important;
    border-color: #555d65 !important;
    color: #f0f2f4 !important;
}


/*
 프레임 2개 이미지 삭제 버튼
*/
.movie-pink-frame .movie-pink-extend-clear {
    position: absolute !important;

    top: 6px !important;
    right: 6px !important;

    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid #3a4046 !important;
    border-radius: 6px !important;

    background: #1b1e22 !important;
    color: #9299a1 !important;

    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    line-height: 22px !important;

    /*display: flex !important; */
    align-items: center !important;
    justify-content: center !important;

    box-shadow: none !important;
    cursor: pointer !important;
    z-index: 100 !important;
    box-sizing: border-box !important;
}

.movie-pink-extend-clear[hidden] {
    display: none !important;
}

.movie-pink-frame {
    position: relative !important;
}

.movie-pink-frame .movie-pink-image-dropzone {
    position: relative !important;
}





/* 영상 영역 */

.movie-pink-extend-video {
    width: 100%;
    max-width: 760px;

    margin: 0 auto;

    background: #000;
    border-radius: 8px;

    overflow: hidden;
}


/* 실제 video */

#moviePinkExtendPreview {
    display: block;

    width: 100% !important;
    max-width: 760px !important;

    height: auto !important;
    max-height: 428px !important;

    margin: 0 auto;

    background: #000;

    object-fit: contain;
}


/* 영상 정보 */

.movie-pink-extend-info {
    display: flex;
    flex-direction: column;
    gap: 4px;

    padding: 14px 16px 16px;

    box-sizing: border-box;

    color: #aeb5bc;
    font-size: 11px;
}


#moviePinkExtendTitle {
    color: #dfe5ea;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}


#moviePinkExtendMeta {
    color: #737c84;
    font-size: 11px;
    line-height: 1.4;
}


/* 모바일 */

@media (max-width: 680px) {

    .movie-pink-extend-source {
        padding: 12px;
    }

    .movie-pink-extend-video {
        max-width: 100%;
    }

    #moviePinkExtendPreview {
        width: 100% !important;
        max-width: 100% !important;
        max-height: none !important;
    }

}




.frame-badge {

    position: absolute;
    top: 9px;
    left: 10px;
    padding: 3px 7px;
    border-radius: 999px;

    background: #20252a;
    color: #777f87;
    font-size: 10px;

}


.movie-pink-frame-icon {

    width: 42px;
    height: 42px;
    display: flex;

    align-items: center;
    justify-content: center;
    margin-bottom: 9px;
    border-radius: 50%;

    background: #252b30;
    border: 1px solid #343b42;

}


.movie-pink-frame-icon img {

    width: 20px;
    height: 20px;
    opacity: .65;

}


.movie-pink-frame strong {

    font-size: 14px;
    font-weight: 600;
    color: #dfe5ea;

}


.movie-pink-frame small {

    margin-top: 5px;
    font-size: 11px;
    color: #737c84;

}


.movie-pink-frame em {

    display: block;
    width: 100%;
    margin-top: 7px;
    padding: 0 8px;

    box-sizing: border-box;
    text-align: center;
    font-size: 10px;

    color: #8bdc4b;
    font-style: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

}


/* ============================================================
   텍스트 입력
============================================================ */

.movie-pink-field {

    margin-top: 12px;

}


.movie-pink-field > label {

    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #dce2e7;

}


.movie-pink-field textarea {

    display: block;
    width: 100%;
    min-height: 72px;
    box-sizing: border-box;
    padding: 12px 13px;

    border: 1px solid #30373e;
    border-radius: 10px;
    outline: none;
    resize: vertical;

    background: #191e22;
    color: #e8edf2;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.55;

    transition:
        border-color .2s ease,
        background .2s ease;

}


.movie-pink-field textarea:focus {

    border-color: #72d332;
    background: #1c2125;

}


.movie-pink-field textarea::placeholder {

    color: #68717a;

}


.movie-pink-field > small {

    display: block;
    margin-top: 5px;
    font-size: 10px;
    color: #626b73;

}


.movie-pink-main-prompt textarea {

    min-height: 110px;

}


/* ============================================================
   오디오 생성
============================================================ */

.movie-pink-audio-toggle {

    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 14px;
    padding-top: 13px;

    border-top: 1px solid #292f35;
    cursor: pointer;

}


.movie-pink-audio-toggle input {

    position: absolute;
    opacity: 0;
    pointer-events: none;

}


.toggle-box {

    width: 17px;
    height: 17px;
    flex: 0 0 17px;

    box-sizing: border-box;
    border: 1px solid #59616a;
    border-radius: 4px;
    background: #191e22;

}


.movie-pink-audio-toggle input:checked
+ .toggle-box {

    background: #82d63d;
    border-color: #82d63d;
    position: relative;

}


.movie-pink-audio-toggle input:checked
+ .toggle-box::after {

    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;

    border-right: 2px solid #111;
    border-bottom: 2px solid #111;
    transform: rotate(45deg);

}


.toggle-text {

    color: #dce4e9;
    font-size: 13px;
    font-weight: 600;

}


/* ============================================================
   모바일
============================================================ */

@media (max-width: 680px) {

    .movie-pink-panel {

        padding: 12px;
        border-radius: 12px;

    }


    .movie-pink-frame-row {

        gap: 8px;

    }


    .movie-pink-frame {

        min-height: 125px;
        padding: 14px 8px;

    }


    .movie-pink-frame strong {

        font-size: 12px;

    }


    .movie-pink-frame small {

        font-size: 10px;

    }


    .movie-pink-field textarea {

        font-size: 13px;

    }

}


/* ============================================================
   Veo 입력 방식
============================================================ */

.movie-pink-input-mode {

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    padding: 4px;
    margin-bottom: 14px;

    background: #191d21;
    border: 1px solid #2d3339;
    border-radius: 10px;

}


.movie-pink-mode {

    height: 36px;
    border: 0;
    border-radius: 7px;

    background: transparent;
    color: #747c84;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;

}


.movie-pink-mode.active {

    background: #30363c;
    color: #f0f3f5;
    font-weight: 600;

}


/* ============================================================
   참조 이미지
============================================================ */


.movie-pink-reference {

    position: relative;
    min-height: 135px;
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;
    padding: 15px 8px;

    box-sizing: border-box;
    background: #171b1f;
    border: 1px dashed #353c43;
    border-radius: 11px;
    cursor: pointer;
    overflow: hidden;

}


.movie-pink-reference:hover {

    border-color: #72d332;
    background: #1b2024;

}


.movie-pink-reference input {

    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;

}


.reference-number {

    position: absolute;
    top: 8px;
    left: 8px;
    width: 20px;
    height: 20px;
    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #252b30;
    color: #929aa2;
    font-size: 10px;

}


.movie-pink-reference-icon {

    width: 38px;
    height: 38px;
    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 8px;
    border-radius: 50%;
    background: #252b30;
    border: 1px solid #343b42;
    color: #8b949c;
    font-size: 21px;

}


.movie-pink-reference strong {

    color: #dfe5ea;
    font-size: 12px;

}


.movie-pink-reference small {

    margin-top: 4px;
    color: #6e777f;
    font-size: 9px;
    text-align: center;

}


.movie-pink-reference em {

    width: 90%;
    margin-top: 5px;
    color: #8bdc4b;
    font-size: 9px;

    font-style: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;

}


.movie-pink-reference-help {

    margin: 8px 2px 0;
    color: #69727a;
    font-size: 10px;
    line-height: 1.45;

}


/* ============================================================
   참조 이미지 모드의 8초 고정 안내
============================================================ */

.movie-pink-reference-duration-notice {

    margin-top: 7px;
    color: #8bdc4b;
    font-size: 11px;

}


/* ============================================================
   모바일
============================================================ */

@media (max-width: 680px) {

    .movie-pink-reference-grid {

        gap: 6px;

    }


    .movie-pink-reference {

        min-height: 115px;
        padding: 10px 5px;

    }


    .movie-pink-reference strong {

        font-size: 10px;

    }

}




.add-btn {
    margin: 18px 0 22px;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 0;
    background: transparent;
    color: #aeb5ba;
    cursor: pointer;
    font-size: 14px;
}

.add-btn b {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;

    border-radius: 12px;

    background: #252a2f;
    border: 1px solid #3a4147;
    color: #fff;

    font-size: 32px;
    font-weight: 300;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease;
}

.add-btn:hover b {
    background: #30363c;
    border-color: #657079;

    transform: translateY(-1px);
}

.add-btn:active b {
    transform: translateY(1px);
}

/* 영상 생성하기 버튼 박스 : 예상 소모 줄 바꿈 해결 230을 더 크게 변경 */

.generation-bar {
    min-height: 116px;
    display: grid;
    grid-template-columns: 350px 1fr 220px;
    align-items: center;
    gap: 20px;
    background: #14171a;

    border: 1px solid #30363b;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.settings
{
    height:170px;
    padding:12px 14px;
    background:#111315;
    display:grid;gap:6px
}

.settings label {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    align-items: center;
    color: #aaa;
    font-size: 12px;
    min-width: 0;
}

.settings label .setting-name {
    white-space: nowrap;
}

.settings select
{
    height:28px;
    border:0;
    border-radius:6px;
    background:#222528;
    color:#eee
}

.generate {
    justify-self: center;
    min-width: 170px;
    height: 52px;
    padding: 0 28px;

    border: 1px solid #79b947;
    border-radius: 10px;
    background: #8bd447;
    color: #10130d;

    font-size: 17px;
    font-weight: 700;
    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

/* 영상 생성하기 버튼 호버 효과 */

.generate:hover {
    background: #9ae25a;
    border-color: #9ae25a;

    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(139, 212, 71, 0.22);
}

/* 영상 생성하기 버튼 클릭 효과 */

.generate:active {
    transform: translateY(1px);
    box-shadow: none;
}


.generate:disabled
{
    opacity: 0.45;
    cursor: wait;
    transform: none;
    box-shadow: none;
}


.media-clear {
    position: absolute;
    top: 5px;
    right: 5px;

    width: 17px;
    height: 17px;

    padding: 0;
    border: 0;
    border-radius: 50%;

    background: rgba(55, 60, 66, 0.95);
    color: #b8bec5;

    font-size: 12px;
    font-weight: 400;

    display: none;
    align-items: center;
    justify-content: center;

    line-height: 1;
    text-align: center;

    cursor: pointer;
    z-index: 20;

    box-sizing: border-box;

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.media-clear:hover {
    background: rgba(75, 80, 87, 0.98);
    color: #ffffff;
}


.movie-pink-clear {
    width: 17px;
    height: 17px;

    top: 6px;
    right: 6px;

    background: rgba(55, 60, 66, 0.92);
    color: #b8bec5;

    font-size: 13px;
    line-height: 17px;
}


/*------------------------------------
  선택되었을 때만 보이게
------------------------------------ */
.media-input.selected .media-clear {
    display: flex;
}



.media-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.media-input {
    position: relative;
    min-height: 108px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border: 1px solid #343a40;
    border-radius: 10px;
    background: #1b1f23;

    color: #bfc6cd;
    cursor: pointer;

    transition:
        border-color .2s ease,
        background-color .2s ease,
        box-shadow .2s ease,
        transform .15s ease;
}

.media-input:hover {
    border-color: #8bd447;
    background: #20252a;
}

.media-input.dragover {
    border-color: #8bd447;
    background: #252b30;
    box-shadow: 0 0 0 2px rgba(139, 212, 71, .18);
}

.media-input.selected {
    border-color: #8bd447;
    background: #20252a;
}

.media-input.selected .media-title {
    color: #8bd447;
}

.media-input input {
    display: none;
}

.media-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 8px;
    margin-bottom: 7px;

    border-radius: 50%;
    background: #292e33;
    border: 1px solid #3c4248;
}

.media-icon img {
    width: 21px;
    height: 21px;
    display: block;
}

.media-title {
    font-size: 14px;
    font-weight: 600;
    color: #e2e6ea;
}

.media-input small {
    margin-top: 3px;
    font-size: 11px;
    color: #7f8993;
}

.media-input em {
    display: block;
    width: 90%;
    min-height: 15px;
    margin-top: 4px;

    font-size: 10px;
    font-style: normal;
    text-align: center;
    color: #8bd447;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


@media (max-width: 680px) {
    .media-inputs {
        gap: 6px;
    }

    .media-input {
        min-height: 92px;
    }

    .media-icon {
        width: 34px;
        height: 34px;
    }

    .media-icon img {
        width: 19px;
        height: 19px;
    }

    .media-title {
        font-size: 13px;
    }

    .media-input small {
        font-size: 10px;
    }
}



.creator-error {
    min-height: 20px;
    margin-top: 8px;
    padding: 0 4px;

    color: #ff5c5c;
    font-size: 13px;
    line-height: 20px;

    visibility: hidden;
}

.creator-error.show {
    visibility: visible;
}


#status.error {
    color: #ff5c5c;
}


.add-btn {
    display: inline-flex;
    vertical-align: middle;
}

.input-guide {
    display: inline-flex;
    align-items: center;
    height: 32px;
    margin-left: 12px;
    color: #8bd447;
    font-size: 14px;
    font-weight: 600;
    vertical-align: middle;
    transform: translateY(-1px);
}

@media (max-width: 680px) {
    .input-guide {
        display: inline-flex;
        margin-left: 8px;
        font-size: 13px;
    }
}



.credits {
    padding-right: 28px;
    color: #c5c9cc;
    font-size: 14px;
}

.credits div {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin: 9px 0;
    gap: 20px;
}

.credits strong {
    color: #f1f3f4;
    font-weight: 500;
    white-space: nowrap;
}

.credits b {
    font-size: 17px;
    font-weight: 600;
}

.credits div:first-child b {
    color: #ff5555;
}



.credits span
{
    font-weight:500
}

.credits-estimate span {
    min-width: 95px;
    white-space: nowrap;
}


/* ============================================================
   크레딧 충전 모달
============================================================ */

.credit-modal {

    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.72);
    z-index: 1000;
}

.credit-modal.show {
    display: flex;
}


.credit-modal-box {

    width: min(460px, calc(100vw - 32px));

    background: #151a20;
    color: #f2f4f6;
    border: 1px solid #303841;
    border-radius: 16px;
    padding: 24px;
    box-sizing: border-box;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}


.credit-usage {
    margin-top: 32px;
}


.credit-usage p {
    font-size: 14px;
    line-height: 1.7;
}



/* ============================================================
   제목
============================================================ */

.credit-modal-header {

    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}


.credit-modal-header h3 {

    margin: 0;
    font-size: 22px;
    color: #f5f7f8;
}


.credit-close {

    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
}


/* ============================================================
   현재 보유 크레딧
============================================================ */

.credit-balance {

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 14px 16px;
    margin-bottom: 18px;
    background: #20262d;
    border: 1px solid #303841;

    border-radius: 10px;
    font-size: 14px;
    color: #c7cdd3;
}


.credit-balance strong {
    font-size: 17px;

    color: #ffffff;
}


/* ============================================================
   충전 상품
============================================================ */

.credit-products {

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}


.credit-product {

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 125px;
    padding: 16px;
    border: 1px solid #3a424b;
    border-radius: 12px;
    background: #1b2128;
    color: #f5f7f8;
    cursor: pointer;

    transition:
        transform 0.15s,
        box-shadow 0.15s,
        border-color 0.15s,
        background 0.15s;
}


.credit-product:hover {

    transform: translateY(-2px);
    border-color: #8bd63f;
    background: #222a31;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}


.credit-product strong {

    font-size: 22px;
    margin-bottom: 8px;
    color: #ffffff;
}


.credit-product span {

    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #f0f2f4;
}


.credit-product small {

    font-size: 13px;
    color: #aeb5bc;
}


/* ============================================================
   결제 안내
============================================================ */

.credit-payment-message {

    margin: 18px 0 0;
    text-align: center;
    font-size: 13px;
    color: #9da5ad;
}


/* ============================================================
   모바일
============================================================ */

@media (max-width: 680px) {

    .credit-modal-box {
        padding: 20px;
    }

    .credit-products {
        grid-template-columns: 1fr 1fr;
    }

    .credit-product {
        min-height: 115px;
    }

}




.status
{
    min-height:30px;
    padding:8px;
    color:#555;
    font-size:13px
}

h2 {
    margin: 25px 0 18px;
    padding: 0;
    background: transparent;
    border: 0;
    color: #f0f2f3;
    text-align: left;
    font-size: 22px;
    font-weight: 650;
    letter-spacing: -0.3px;
}

h2::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 10px;
    border-radius: 3px;
    background: #8bd447;
}

.videos
{
    padding:14px 0;
    display:flex;
    flex-direction:column;
    gap:14px
}

.empty
{
    padding:50px;
    border:1px dashed #ccc;
    color:#888;
    text-align:center
}

.video-card
{
    display:grid;grid-template-columns:42% 1fr;gap:18px;padding:14px;background:#121416;border-radius:10px;color:#fff
}
    
.preview
{
    position:relative;background:#000;min-height:210px;display:grid;place-items:center
}

.preview video
{
    width:100%;max-height:360px
}

.loading
{
    position:absolute;inset:0;display:grid;place-items:center;background:#0008
}

.loading.hidden
{
    display:none
}

.info
{
    padding:8px;display:flex;flex-direction:column
}

.meta
{
    display:flex;flex-wrap:wrap;gap:7px;margin-bottom:12px
}

.meta span
{
    padding:5px 9px;border-radius:99px;background:#26292c;color:#bbb;font-size:12px
}

.state
{
    color:#a9e06e!important
}


.prompt
{
    font-size: 13px;
    line-height: 1.45;
}



.video-prompt
{
    font-size: 13px;
    line-height: 1.45;

    min-height:80px;
    padding:12px;
    border-radius:8px;
    
    background:#1d2023;
    color:#ddd;
    white-space:pre-wrap;
    word-break:break-word
}

.actions
{
    margin-top:auto;
    padding-top:16px;
    display:flex;
    flex-wrap:wrap;
    gap:8px
}

.actions a,.actions button
{
    min-height:38px;padding:8px 15px;border:1px solid #3c4044;border-radius:7px;background:#24272a;
    color:#fff;text-decoration:none;cursor:pointer
}

.actions .gallery
{
    background:#8bd447;
    border-color:#6d9f39;color:#111;font-weight:700
}

.actions .disabled
{
    opacity:.45;pointer-events:none
}

.notice
{
    margin:12px 0 0;color:#85888b;font-size:11px
}




/* ============================================================
   Veo 프레임 역할 / 배우 선택
============================================================ */

.movie-pink-frame-actor {
    gap: 10px;
}

.movie-pink-role,
.movie-pink-actor {
    position: relative;
    z-index: 5;

    width: 100%;
    min-height: 38px;
    padding: 0 12px;

    border: 1px solid #39414a;
    border-radius: 8px;

    background: #1a2026;
    color: #f5f7fa;

    font-size: 13px;
}

.movie-pink-role:focus,
.movie-pink-actor:focus {
    outline: none;
    border-color: #8b5cf6;
}

.movie-pink-image-dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 150px;
    padding: 18px;

    border: 1px dashed #39414a;
    border-radius: 12px;

    background: #171c21;
    cursor: pointer;
    box-sizing: border-box;
}

.movie-pink-image-dropzone input[type="file"] {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
    pointer-events: none;
}

.movie-pink-image-dropzone strong,
.movie-pink-image-dropzone small,
.movie-pink-image-dropzone em,
.movie-pink-image-dropzone .movie-pink-frame-icon {
    pointer-events: none;
}


/*
   select는 파일 선택 영역보다 위에 있어야 함
*/

.movie-pink-frame-actor .movie-pink-role,
.movie-pink-frame-actor .movie-pink-actor {
    z-index: 10;
}

.movie-pink-frame-actor .movie-pink-frame-icon,
.movie-pink-frame-actor strong,
.movie-pink-frame-actor small,
.movie-pink-frame-actor em {
    position: relative;
    z-index: 3;
    pointer-events: none;
}


/* ============================================================
   Veo 프레임 상단 선택 영역
============================================================ */

.movie-pink-frame-actor {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.movie-pink-frame-topline {
    display: flex;
    align-items: center;
    min-height: 18px;
}

.movie-pink-frame-select-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.movie-pink-inline-field {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.movie-pink-inline-field label {
    flex: 0 0 auto;

    color: #f3f5f7;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.movie-pink-role,
.movie-pink-actor {
    min-width: 0;
    height: 38px;
    padding: 0 10px;

    border: 1px solid #39414a;
    border-radius: 8px;

    background: #1a2026;
    color: #f5f7fa;

    font-size: 13px;
}

.movie-pink-role {
    width: 104px;
}

.movie-pink-actor {
    flex: 1;
    width: 130px;
}

.movie-pink-role:focus,
.movie-pink-actor:focus {
    outline: none;
    border-color: #8b5cf6;
}

.movie-pink-image-dropzone {
    margin-top: 2px;
}


/*
    PC에서는 한 줄, 좁은 화면에서는 자동으로 줄바꿈되도록
*/

@media (max-width: 560px) {

    .movie-pink-frame-select-row {
        flex-wrap: wrap;
    }

    .movie-pink-inline-field {
        flex: 1 1 100%;
    }

    .movie-pink-role,
    .movie-pink-actor {
        flex: 1;
        width: auto;
    }

}


/*
 참조 이미지 3개의 디자인 수정
*/

/* ============================================================
   Veo High - 참조 이미지 영역
============================================================ */

#moviePinkReferenceInputs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}


/* 참조 이미지 카드 */

.movie-pink-reference-card {
    position: relative;

    display: flex;
    flex-direction: column;
    gap: 10px;

    min-width: 0;
    min-height: 230px;

    padding: 12px;

    border: 1px dashed #39414a;
    border-radius: 12px;

    background: #171c21;
    color: #f5f7fa;

    box-sizing: border-box;
}

/* 번호 */

.movie-pink-reference-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    border-radius: 50%;

    background: #252d35;
    color: #dce3eb;

    font-size: 12px;
    font-weight: 700;
}

/* 역할 + 배우 한 줄 */

.movie-pink-reference-select-row {
    display: flex;
    align-items: center;
    gap: 6px;

    width: 100%;
    min-width: 0;
}

.movie-pink-reference-select-row label {
    flex: 0 0 auto;

    color: #f3f5f7;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* 역할 / 배우 선택 */

.movie-pink-reference-role,
.movie-pink-reference-actor {
    min-width: 0;
    height: 34px;

    padding: 0 8px;

    border: 1px solid #39414a;
    border-radius: 8px;

    background-color: #1a2026;
    color: #f5f7fa;

    font-size: 12px;
    color-scheme: dark;
}

.movie-pink-reference-role {
    width: 92px;
}

.movie-pink-reference-actor {
    flex: 1;
    width: 100px;
}

.movie-pink-reference-role:focus,
.movie-pink-reference-actor:focus {
    outline: none;
    border-color: #8b5cf6;
}

/* 이미지 입력 영역 */

.movie-pink-reference-dropzone {
    position: relative;

    display: flex;
    flex: 1;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 130px;
    padding: 14px;

    border: 1px dashed #39414a;
    border-radius: 10px;

    background: #1a2026;

    cursor: pointer;
    box-sizing: border-box;
}

.movie-pink-reference-dropzone:hover {
    border-color: #657184;
    background: #20272f;
}

/* 기본 파일 입력 버튼 숨김 */

.movie-pink-reference-dropzone input[type="file"] {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
    pointer-events: none;
}

/* 이미지 아이콘 */

.movie-pink-reference-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    margin-bottom: 8px;

    border: 1px solid #39414a;
    border-radius: 50%;

    background: #252d35;
}

.movie-pink-reference-icon img {
    width: 20px;
    height: 20px;
    opacity: 0.75;
}

/* 텍스트 */

.movie-pink-reference-dropzone strong {
    color: #f5f7fa;
    font-size: 13px;
    font-weight: 700;
}

.movie-pink-reference-dropzone small {
    margin-top: 5px;

    color: #8d99a8;
    font-size: 11px;
    text-align: center;
}

.movie-pink-reference-status {
    min-height: 16px;

    color: #8d99a8;
    font-size: 11px;
    text-align: center;
}

/* 파일명 */

.movie-pink-reference-file-name {
    display: block;

    max-width: 100%;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #cbd5e1;
    font-size: 11px;
    text-align: center;
}

/* 모바일 */

@media (max-width: 760px) {

    #moviePinkReferenceInputs {
        grid-template-columns: 1fr;
    }

    .movie-pink-reference-card {
        min-height: 210px;
    }

}


/*
  Veo High : 3장 이미지 
*/

/* Veo High 참조 이미지 */

.movie-pink-reference-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.movie-pink-reference-slot {
    display: flex;
    flex-direction: column;
    gap: 10px;

    min-width: 0;
    padding: 12px;

    border: 1px dashed #39414a;
    border-radius: 12px;

    background: #171c21;
    box-sizing: border-box;
}

.movie-pink-reference-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    border-radius: 50%;
    background: #252d35;
    color: #e5e7eb;

    font-size: 12px;
    font-weight: 700;
}

.movie-pink-reference-select-row {
    display: flex;
    align-items: center;
    gap: 6px;

    width: 100%;
    min-width: 0;
}

.movie-pink-reference-select-row label {
    flex: 0 0 auto;

    color: #f3f4f6;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.movie-pink-reference-role,
.movie-pink-reference-actor {
    min-width: 0;
    height: 34px;

    border: 1px solid #39414a;
    border-radius: 8px;

    background: #1a2026;
    color: #f5f7fa;

    font-size: 12px;
    color-scheme: dark;
}

.movie-pink-reference-role {
    width: 90px;
}

.movie-pink-reference-actor {
    flex: 1;
    width: 100px;
}

.movie-pink-reference-image-area {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 145px;
    padding: 14px;

    border: 1px dashed #39414a;
    border-radius: 10px;

    background: #1a2026;
    color: #f5f7fa;

    cursor: pointer;
    box-sizing: border-box;
}

.movie-pink-reference-image-area:hover {
    background: #20272f;
    border-color: #657184;
}

.movie-pink-reference-image-area input[type="file"] {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
    pointer-events: none;
}



.movie-pink-reference-image-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    margin-bottom: 8px;

    border: 1px solid #39414a;
    border-radius: 50%;

    background: #252d35;
    font-size: 20px;
}

.movie-pink-reference-image-area strong {
    color: #f5f7fa;
    font-size: 13px;
}

.movie-pink-reference-image-area span {
    margin-top: 5px;

    color: #8d99a8;
    font-size: 11px;
}

.movie-pink-reference-slot small {
    color: #8d99a8;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 760px) {

    .movie-pink-reference-grid {
        grid-template-columns: 1fr;
    }

}





/* ============================================================
   Veo High - 참조 이미지 3열 전체 너비
============================================================ */

#moviePinkReferenceInputs {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#moviePinkReferenceInputs .movie-pink-reference-grid {
    display: grid !important;

    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;

    gap: 12px;

    width: 100% !important;
    max-width: 100%;

    margin: 0;
    padding: 0;

    box-sizing: border-box;
}

#moviePinkReferenceInputs .movie-pink-reference-slot {
    display: flex !important;
    flex-direction: column;

    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;

    flex: none !important;

    box-sizing: border-box;
}

/* 역할 + 배우 선택 영역 */

#moviePinkReferenceInputs .movie-pink-reference-select-row {
    display: flex !important;
    align-items: center;

    width: 100% !important;
    min-width: 0;

    gap: 6px;
}

/* select가 카드 밖으로 밀리지 않도록 */

#moviePinkReferenceInputs .movie-pink-reference-role,
#moviePinkReferenceInputs .movie-pink-reference-actor {
    min-width: 0 !important;
    max-width: 100%;

    box-sizing: border-box;
}

/* 이미지 영역도 카드 너비에 맞춤 */

#moviePinkReferenceInputs .movie-pink-reference-image-area {
    display: flex;

    width: 100% !important;
    min-width: 0;
    max-width: 100%;

    box-sizing: border-box;
}

/* 설명 문구는 3개 카드 아래 전체 너비 */

#moviePinkReferenceInputs .movie-pink-reference-help {
    width: 100%;
    margin-top: 12px;
}

/* 화면이 좁을 때 */

@media (max-width: 760px) {

    #moviePinkReferenceInputs .movie-pink-reference-grid {
        grid-template-columns: 1fr !important;
    }

}




/* Veo 참조 이미지 배우 이름 */
#moviePinkReferenceImageName1,
#moviePinkReferenceImageName2,
#moviePinkReferenceImageName3 {
    display: block;
    margin-top: 4px;
    color: #b7e88a;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
    word-break: break-word;
    font-style: normal;
}



/* =====================================================
   영상 제작 제목 영역
   제목은 항상 중앙
   오른쪽 버튼은 콘텐츠 영역 안쪽에 고정
   ===================================================== */

.video-title-row {
    width: 100%;
    min-height: 64px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    padding: 8px 32px;
    box-sizing: border-box;
}


/* 제목은 정확히 가운데 */

.video-title-row h1 {
    grid-column: 2;

    margin: 0;

    font-size: 24px;
    line-height: 1.3;

    text-align: center;
    white-space: nowrap;
}


/* 오른쪽 버튼 영역 */

.video-title-actions {
    grid-column: 3;

    justify-self: end;

    display: flex;
    align-items: center;

    gap: 10px;

    white-space: nowrap;
}


/* =====================================================
   내 영상
   ===================================================== */

.video-title-actions .my-videos-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 128px;
    height: 40px;

    padding: 0 20px;

    box-sizing: border-box;

    border: 1px solid #3a3f46;
    border-radius: 22px;

    background: #111417;
    color: #f2f2f2;

    font-size: 15px;
    font-weight: 600;

    line-height: 1;
    white-space: nowrap;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}


.video-title-actions .my-videos-btn:hover {
    background: #191d21;
    border-color: #8cff3f;
    color: #ffffff;

    box-shadow:
        0 0 10px rgba(140, 255, 63, 0.12);
}


.video-title-actions .my-videos-btn:active {
    transform: translateY(1px);
}


/* =====================================================
   영상 업로드
   ===================================================== */

.video-title-actions .primary-btn {
    position: static;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 136px;
    height: 40px;

    padding: 0 18px;

    box-sizing: border-box;

    border: 1px solid #394149;
    border-radius: 22px;

    background: #15181c;
    color: #f3f5f7;

    font-size: 14px;
    font-weight: 700;

    line-height: 1;
    white-space: nowrap;

    cursor: pointer;

    transform: none;

    transition:
        color 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease;
}


.video-title-actions .primary-btn:hover {
    color: #ffffff;

    background: #242a31;
    border-color: #8bdc3f;
}





/* 업로드 팝업 -------------------------------------*/

dialog{
    border:1px solid #343a42;
    border-radius:18px;
    background:#121416;
    color:#fff;
    max-width:460px;
    width:calc(100% - 32px)
}

dialog::backdrop{
    background:#000b
}

.upload-panel{
    padding:30px;
    position:relative
}

.dialog-close{
    position:absolute;
    right:18px;
    top:14px;
    background:transparent;
    border:0;
    color:#aaa;
    font-size:26px
}



/* 업로드 팝업 내부 기본 스타일 */
#uploadDialog .upload-panel label {
    display: block;
    margin-top: 20px;
    font-size: 13px;
}

/* 업로드 팝업의 일반 입력 요소 */
#uploadDialog .upload-panel input,
#uploadDialog .upload-panel select {
    display: block;
    width: 100%;
    margin-top: 8px;
}




.dialog-actions{
    display:flex;
    justify-content:flex-end;
    gap:10px;
    margin-top:26px
}

@media(max-width:800px){
    
    
    .brand{
        font-size:18px
    }
    
    .topbar>button{
        display:none
    }
    
    .gallery-page{
        padding:35px 16px
    }
    
    .hero{
        display:block
    }
    
    .hero .primary-btn{
        margin-top:25px
    }
    
    .gallery-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:14px
    }
}


@media(max-width:520px){
    
    .gallery-grid{
        grid-template-columns:1fr
    }
    
    .toolbar{
        align-items:stretch;
        flex-direction:column;
        gap:12px
    }
}



.my-credit-balance {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;

    margin-bottom: 18px;
    padding: 10px 14px;

    border: 1px solid #343a40;
    border-radius: 10px;

    background: #171a1d;
    color: #e9ecef;

    font-size: 14px;
}

.my-credit-balance strong {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
}




/* ============================================================
   영상 업로드 팝업
============================================================ */

#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;
}




/* =========================================================
   내 영상 버튼
   ========================================================= */

.my-videos-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 128px;
    height: 40px;

    padding: 0 20px;

    box-sizing: border-box;

    border: 1px solid #3a3f46;
    border-radius: 22px;

    background: #111417;
    color: #f2f2f2;

    font-size: 15px;
    font-weight: 600;
    line-height: 1;

    white-space: nowrap;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

.my-videos-btn:hover {
    background: #191d21;
    border-color: #8cff3f;
    color: #ffffff;

    box-shadow: 0 0 10px rgba(140, 255, 63, 0.12);
}

.my-videos-btn:active {
    transform: translateY(1px);
}

.my-videos-btn:focus-visible {
    outline: none;
    border-color: #8cff3f;
    box-shadow: 0 0 0 2px rgba(140, 255, 63, 0.15);
}


/* =========================================================
   영상 업로드 버튼
   ========================================================= */

.video-title-actions .primary-btn {
    position: static;
}





/* =====================================================
   영상 제작 페이지 2차 메뉴
   ===================================================== */

.video-subnav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    height: 40px;

    margin-top: 27px;
    margin-bottom: 24px;

    padding: 0;

    box-sizing: border-box;

    background: transparent;
    border-bottom: 0;    
}

.video-subnav a,
.video-subnav button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 114px;
    height: 40px;

    box-sizing: border-box;

    color: #b9c1cc;
    background: transparent;

    border: 1px solid transparent;
    border-radius: 7px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;

    cursor: pointer;

    transition:
        color 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease;
}

.video-subnav a:hover,
.video-subnav button:hover {
    color: #ffffff;
    background: #1b2026;
    border-color: #343b44;
}

.video-subnav a.active {
    color: #ffffff;
    background: #315da5;
    border-color: #315da5;
}




.prompt textarea::placeholder {
    font-size: 85%;
}
 



/* ============================================================
   스튜디오 2차 메뉴
   영상 제작 / 더빙 / 내 영상 / 영상 업로드
   ============================================================ */

.video-subnav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.video-subnav a,
.video-subnav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 42px;
  padding: 0 24px;

  border: 1px solid transparent;
  border-radius: 999px;

  background: transparent;
  color: #aeb7c4;

  font-family: inherit;
  font-size: 14px;
  font-weight: 600;

  text-decoration: none;
  white-space: nowrap;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

/* 마우스를 올렸을 때 */
.video-subnav a:hover,
.video-subnav button:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.10);
  color: #ffffff;
}

/* 현재 선택된 메뉴 */
.video-subnav a.active,
.video-subnav button.active {
  background: rgba(60, 105, 180, 0.28);
  border-color: rgba(90, 145, 235, 0.55);
  color: #ffffff;

  box-shadow:
    0 0 0 1px rgba(90, 145, 235, 0.08),
    0 4px 16px rgba(40, 90, 180, 0.18);
}

/* 클릭 */
.video-subnav a:active,
.video-subnav button:active {
  transform: translateY(1px);
}







/* =====================================================
   Tutorial - Topbar 버튼 정렬
===================================================== */

.topbar-left a,
.topbar-right a {
    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    width: 108px !important;
    min-width: 108px !important;
    height: 38px !important;

    box-sizing: border-box !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #f3f5f7 !important;
    background: #08090b !important;

    border: 1px solid #20252b !important;
    border-radius: 22px !important;

    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;

    cursor: pointer;

    transition:
        color 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease;
}


/* 왼쪽 메뉴 */
.topbar-left {
    display: flex !important;
    align-items: center !important;
    gap: 30px !important;
}


/* 오른쪽 메뉴 */
.topbar-right {
    display: flex !important;
    align-items: center !important;
    gap: 30px !important;
}



/* 마우스 오버 */
.topbar-left a:hover,
.topbar-right a:hover {
    color: #ffffff !important;
    background: #15181c !important;
    border-color: #394149 !important;
}


#authUserBtn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 108px !important;
    height: 38px !important;

    padding: 0 !important;
    margin: 0 !important;

    text-align: center !important;
    line-height: 38px !important;
}




topbar a:active,
.topbar button:active {
    background: #171b1e;
    transform: translateY(1px);
    box-shadow: none;
}

.topbar a.active
{
    box-shadow:inset 0 -2px #8bd447
}





/* 영상 업로드 영역: 내부 요소를 세로로 정렬 */
#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;
}




/* =========================================
   Hailuo 전용 안내 레이아웃
   ========================================= */

.creator-workspace {
    display: block;
    width: 100%;
    min-width: 0;
}

/* Hailuo 안내를 위한 좌우 배치 */
.creator-workspace.hailuo-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 28px;
    align-items: start;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

/* 제작 세트 영역의 기존 너비를 최대한 보존 */
.creator-workspace-main {
    min-width: 0;
    width: 100%;
}


/* 오른쪽 설명 영역 */
.creator-workspace.hailuo-layout .hailuo-guide {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 24px;
    margin: -20px 0 0;
}

.hailuo-guide-header {
    padding-bottom: 20px;
    margin-bottom: 22px;
    border-bottom: 1px solid #30333d;
}

.hailuo-guide-label {
    display: block;
    margin-bottom: 12px;
    color: #767578;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.hailuo-guide-header h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 17px;
    line-height: 1.4;
    word-break: keep-all;
}

.hailuo-guide-header p,
.hailuo-guide-item p {
    color: #b5bac7;
    font-size: 13px;
    line-height: 1.9;
    overflow-wrap: break-word;
}

.hailuo-guide-header p {
    margin: 0;
}

.hailuo-guide-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.hailuo-guide-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #b5b5b6;
    background: #252139;
    border: 1px solid #4e4b54;
    border-radius: 12px;
    font-size: 22px;
}

.hailuo-guide-item h3 {
    margin: 2px 0 9px;
    color: #f4f4f8;
    font-size: 14px;
    line-height: 1.5;
    word-break: keep-all;
}

.hailuo-guide-item p {
    margin: 0;
    word-break: keep-all;
}

.hailuo-guide-example {
    margin-top: 14px;
    padding: 15px;
    background: #1d2028;
    border-left: 3px solid #a6a6a7;
    border-radius: 4px 10px 10px 4px;
}

.hailuo-guide-example span {
    display: block;
    margin-bottom: 7px;
    color: #9f9fa0;
    font-size: 12px;
    font-weight: 700;
}

.hailuo-guide-example p {
    color: #ececf4;
}

/* 좁은 화면에서는 안내를 아래에 배치 */
@media (max-width: 900px) {
    .creator-workspace.hailuo-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
}




/* Hailuo 전용: 제작 세트와 안내 패널 */

.creator-workspace.hailuo-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
    gap: 28px;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}


/* Hailuo에서는 표시되는 제작 세트가 왼쪽 너비를 모두 사용 */
.creator-workspace.hailuo-layout #creatorList {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    gap: 24px;
}

/* 제작 세트 카드가 부모 너비를 사용 */
.creator-workspace.hailuo-layout #creatorList .creator {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* 안내 박스도 오른쪽 열 전체 사용 */
.creator-workspace.hailuo-layout #hailuoGuide {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 0;
}

@media (max-width: 900px) {
    .creator-workspace.hailuo-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
}




/* Hailuo 안내 내용을 위로 이동 */
.creator-workspace.hailuo-layout #hailuoGuide {
    position: relative !important;
    top: -30px !important;
}



.creator-workspace.hailuo-layout .creator-workspace-main #addCreator {
    margin-top: 25px;
}

.creator-workspace.hailuo-layout .creator-workspace-main #inputGuide {
    margin-top: 4px;
}




/* 영상 제작 안내 문구 */
/* 영상 제작 홍보 문구 */
.video-creation-promo {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;

    width: 100%;
    max-width: none;
    margin: 12px auto 16px;
    padding: 0 10px;

    box-sizing: border-box;
    background: transparent;
    border: none;
    text-align: center;
}


.video-creation-promo-icon {
    flex: 0 0 auto;
    color: #c4b5fd;
    font-size: 18px;
}

.video-creation-promo p {
    flex: 1;
    min-width: 0;
    margin: 0;

    color: #e7e7ef;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;

    white-space: normal;
    overflow-wrap: break-word;
    word-break: keep-all;
    text-align: center;
}

@media (max-width: 600px) {
    .video-creation-promo {
        gap: 6px;
        padding: 0 10px;
        margin-bottom: 10px;
    }

    .video-creation-promo p {
        font-size: 12px;
        line-height: 1.6;
    }
}



/* 영상 제작 홍보 문구: 3줄로 표시 */
.video-creation-promo {
    max-width: 900px;
    margin: 12px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.video-creation-promo p {
    white-space: normal;
    line-height: 1.8;
    text-align: center;
    overflow-wrap: break-word;

    color: #6f706f;  /* 글자색: 회색 */
}



/* =====================================================
   모바일 스튜디오 2차 메뉴
===================================================== */

@media (max-width: 768px) {

    .video-subnav {
        display: flex !important;

        justify-content: flex-start !important;
        align-items: center !important;

        flex-wrap: nowrap !important;

        width: 100vw !important;
        max-width: none !important;

        overflow-x: auto !important;
        overflow-y: visible !important;

        margin: 0 !important;
        padding: 0 16px !important;

        gap: 28px !important;

        box-sizing: border-box !important;

        white-space: nowrap !important;

        scroll-behavior: auto !important;

        scrollbar-width: none !important;

        -webkit-overflow-scrolling: touch;
    }

    .video-subnav::-webkit-scrollbar {
        display: none;
    }

    .video-subnav > a,
    .video-subnav > button {
        flex: 0 0 auto !important;

        margin: 0 !important;

        transform: none !important;

        white-space: nowrap !important;
    }

      /* 선택된 서브 메뉴의 테두리만 제거 */
    .video-subnav > a.active,
    .video-subnav > button.active {
        border: none !important;
    }

    
}







