/* =========================================================
   Movie Pink - Actor Pages
   ========================================================= */

/* =========================================================
   Movie Pink - Actor Pages
   Dark Theme
   ========================================================= */

:root {
  --actor-page-background: #090a0c;

  --actor-surface: #111417;
  --actor-surface-soft: #181c20;
  --actor-surface-hover: #20252b;

  --actor-text: #f1f3f5;
  --actor-text-secondary: #a5adb7;
  --actor-text-muted: #707985;

  --actor-blue: #315a9f;
  --actor-blue-dark: #24477f;
  --actor-green: #8bdc3f;
  --actor-green-dark: #6db52d;

  --actor-border: #30363d;
  --actor-border-dark: #454d56;

  --actor-input-background: #1a1f24;
  --actor-input-border: #3b444e;

  --actor-shadow: rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;

  color: var(--actor-text);
  background: var(--actor-page-background);

  font-family:
    Arial,
    "Noto Sans KR",
    sans-serif;
}

body {
  color: #f1f3f5 !important;
  background: #090a0c !important;
  font-size: 14px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
select,
input,
textarea {
  outline-offset: 3px;
}


/* =====================================================
   공통 상단 메뉴
   모든 페이지 동일 적용
   ===================================================== */

.topbar {
    width: 100%;
    min-height: 68px;

    display: flex;
    flex-wrap: nowrap;
    align-items: center;

    /* 변경 */
    justify-content: flex-start;

    gap: 20px;
    min-width: 0;
    box-sizing: border-box;

    padding: 0 70px; /* 버튼들 안쪽으로 이동 */

    background: #0b0c0e;
    border-bottom: 1px solid #24282d;
}


/* 모든 상단 메뉴 버튼의 크기 통일 */
.topbar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 108px;
  height: 38px;

  box-sizing: border-box;

  color: #f3f5f7;
  background: #08090b;

  border: 1px solid #20252b;
  border-radius: 22px;

  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;

  white-space: nowrap;

  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease;
}



/* 좌측 메뉴 */
.topbar-left {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 30px;
    flex: 0 0 auto;
}


/* 우측 메뉴 */
.topbar-right {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 30px;
    margin-left: auto;
    flex: 0 0 auto;
}



.topbar a.active
{
    box-shadow:inset 0 -2px #8bd447
}


/* 마우스를 올렸을 때 */
.topbar a:hover {
  color: #ffffff;
  background: #15181c;
  border-color: #394149;
}





/* ---------------------------------------
상단 가운데 제목 
------------------------------------------ */ 

.topbar-title {
  margin: 0;

  color: #ffffff;

  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}




/* =====================================================
   배우 페이지 2차 메뉴
   ===================================================== */

.actor-subnav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  min-height: 76px;
  padding: 14px 20px;

  box-sizing: border-box;

  background: #111418;
  border-bottom: 1px solid #292f36;
}

.actor-subnav a {
  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-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;

  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.actor-subnav a:hover {
  color: #ffffff;
  background: #1b2026;
  border-color: #343b44;
}

.actor-subnav a.active {
  color: #ffffff;
  background: #315da5;
  border-color: #315da5;
}

/* underbar 완전 제거 */
.actor-subnav a::before,
.actor-subnav a::after {
  display: none;
}




.actor-page {
  min-height: calc(100vh - 118px);

  padding: 36px 40px 60px;

  background: #090a0c;
  color: #f1f3f5;
}

.actor-list-page,
.actor-editor {
  width: 100%;
  max-width: 1320px;

  margin: 0 auto;
  padding: 32px;

  background: #111417;
  color: #f1f3f5;

  border: 1px solid #30363d;
  border-radius: 12px;

  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.actor-page-heading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;

  margin-bottom: 26px;
  padding-bottom: 20px;

  border-bottom: 1px solid #30363d;
}

.actor-page-heading h2,
.actor-editor h2 {
  margin: 0;

  color: #f1f3f5;

  font-size: 27px;
  font-weight: 700;
}


/* =====================================================
   배우 페이지 공통 입력 요소
   ===================================================== */

.actor-page select,
.actor-page input,
.actor-page textarea {
    box-sizing: border-box;

    border: 1px solid #353d46;
    border-radius: 7px;

    background: #1a1f24;
    color: #f2f2f2;

    font-family: inherit;
    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* Select */

.actor-page select {
    min-width: 120px;
    height: 40px;
    padding: 0 12px;

    cursor: pointer;

    color-scheme: dark;
}


/* Input */

.actor-page input[type="text"],
.actor-page input[type="search"] {
    height: 40px;
    padding: 0 12px;
}


/* Textarea */

.actor-page textarea {
    min-height: 120px;
    padding: 12px;
    resize: vertical;
}


/* 포커스 */

.actor-page select:focus,
.actor-page input:focus,
.actor-page textarea:focus {
    border-color: #8bd447;
    box-shadow: 0 0 0 2px rgba(139, 212, 71, 0.12);
}


/* Placeholder */

.actor-page input::placeholder,
.actor-page textarea::placeholder {
    color: #77818d;
}


/* Select 옵션 */

.actor-page select option {
    background: #1a1f24;
    color: #f2f2f2;
}



/* =====================================================
   나의 배우 리스트 상단
   ===================================================== */

.actor-list-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;

    min-height: 58px;
}


/* 제목 */

.actor-list-toolbar h1 {
    margin: 0;

    color: #f2f2f2;
    font-size: 26px;
    font-weight: 700;
    white-space: nowrap;
}


/* 나의 배우 리스트 정렬 select */

#actor-sort {
    width: 120px;
    min-width: 120px;
    height: 40px;

    margin-left: 2px;
}


.actor-market-heading {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;

    gap: 28px;
}

.actor-market-title {
    flex: 0 0 auto;
}

#market-sort {
    margin-top: 2px;
}





.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 42px;
  padding: 0 18px;

  color: #ffffff;
  background: #315a9f;

  border-radius: 6px;

  font-weight: 700;
}

.primary-button:hover {
  background: #24477f;
}


@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 10px;

    padding: 14px 20px;
  }

  .topbar-title {
    grid-row: 1;
    text-align: left;
    font-size: 22px;
  }

  .topbar-left,
  .topbar-right {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }

  .topbar-right {
    display: none;
  }

  .actor-subnav {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 8px 12px;
  }

  .actor-subnav a {
    flex: 0 0 auto;
    padding: 7px 13px;
    font-size: 13px;
  }

  .actor-page {
    padding: 24px 20px 50px;
  }
}



@media (max-width: 680px) {
  .topbar {
    padding: 12px;
  }

  .topbar-left {
    width: 100%;
  }

  .topbar-left a {
    flex: 1;
    padding: 8px 5px;
    font-size: 12px;
  }

  .actor-page {
    padding: 12px;
  }

  .actor-list-page,
  .actor-editor {
    padding: 16px;
    border-radius: 8px;
  }

  .actor-page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .actor-page-heading h2,
  .actor-editor h2 {
    font-size: 23px;
  }

  .primary-button {
    width: 100%;
  }
}




/* =========================================================
   공통 본문
   ========================================================= */

main {
  width: 100%;
  min-height: calc(100vh - 66px);

  padding: 36px 40px 60px;

  color: var(--actor-text) !important;
  background: var(--actor-page-background) !important;
}

.actor-list-page,
.actor-editor {
  width: 100%;
  max-width: 1320px;

  margin: 0 auto;
  padding: 32px;

  color: var(--actor-text) !important;
  background: var(--actor-surface) !important;

  border: 1px solid var(--actor-border);
  border-radius: 12px;

  box-shadow: 0 8px 30px var(--actor-shadow);
}

.actor-list-page > h1,
.actor-editor > h1 {
  margin: 0 0 28px;

  color: #f1f3f5 !important;

  font-size: 28px;
  line-height: 1.3;
  font-weight: 700;
}

/* =========================================================
   배우 리스트 툴바
   ========================================================= */

.actor-list-toolbar {
  display: flex;
  align-items: center;
  gap: 33px; /*우측으로 이동 */

  margin-bottom: 28px;
  padding-bottom: 20px;

  border-bottom: 1px solid var(--actor-border);
}

.actor-list-toolbar h1 {
  margin: 0 auto 0 0;

  color: #f1f3f5 !important;

  font-size: 24px;
  font-weight: 700;
}

.actor-list-toolbar select {
  min-width: 110px;
  height: 38px;

  padding: 0 10px;

  color: #f1f3f5 !important;
  background: #1a1f24 !important;

  border: 1px solid var(--actor-input-border);
  border-radius: 6px;
}

.actor-list-toolbar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 38px;
  padding: 0 18px;

  color: #ffffff !important;
  background: var(--actor-blue) !important;

  border-radius: 6px;
  font-weight: 700;
}

.actor-list-toolbar a:hover {
  background: var(--actor-blue-dark) !important;
}



.actor-search-row button,
#actor-search-button {
    height: 38px;
    padding: 0 14px;

    color: #f1f3f5;
    background: #252b31;

    border: 1px solid #3b444d;
    border-radius: 6px;

    font-size: 14px;
    font-weight: 600;
    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.actor-search-row button:hover,
#actor-search-button:hover {
    background: #303840;
    border-color: #8bd447;
}

.actor-search-row button:active,
#actor-search-button:active {
    background: #1c2227;
}



#actorSearch {
    margin-left: 10px;
}

#actorSearchButton {
    margin-left: 8px;
}

/* 최신순 위로 이동 -- 위로 부터 간격: 높이 */

.actor-list-actions {
    transform: translateY(-2px);
}



#actorSearchButton {
    height: 38px;
    padding: 0 14px;
    color: #f1f3f5;
    background: #252b31;
    border: 1px solid #3b444d;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

#actorSearchButton:hover {
    background: #303840;
    border-color: #8bd447;
}



#actorListEmpty {
    margin-top: 14px;
    color: #c5cbd2;
    font-size: 14px;
}





/* =====================================================
   배우 이미지 업로드 영역
   ===================================================== */

.actor-image-upload-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}


/* 이미지 업로드 카드 */

.actor-image-upload {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  min-height: 400px;
  padding: 18px 14px;

  color: #f1f3f5;
  background: #171c21;

  border: 1px solid #37404a;
  border-radius: 9px;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}


/* 마우스를 올렸을 때 */

.actor-image-upload:hover {
  background: #1c2329;
  border-color: #64717d;
}


/* 드래그 중 */

.actor-image-upload.is-dragover {
  background: #202a25;
  border-color: #8bd447;
  box-shadow: 0 0 0 2px rgba(139, 212, 71, 0.2);
}


/* 제목 */

.actor-upload-title {
  display: block;

  margin-bottom: 14px;

  color: #f1f3f5;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}


/* 실제 파일 input 숨김 */

.actor-image-upload input[type="file"] {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}


/* 파일 선택 안내 */

.actor-upload-guide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 72px;
  padding: 12px 8px;

  color: #aab4be;
  background: #20262c;

  border: 1px dashed #4b5661;
  border-radius: 6px;

  text-align: center;
}


/* 어두운 파일 선택 버튼 */

.actor-upload-guide strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 30px;
  padding: 5px 13px;

  color: #f1f3f5;
  background: #303840;

  border: 1px solid #56616c;
  border-radius: 5px;

  font-size: 13px;
  font-weight: 600;
}


/* 안내 문구 */

.actor-upload-guide small {
  display: block;

  margin-top: 8px;

  color: #8f9ba7;
  font-size: 11px;
  line-height: 1.5;
}


/* 이미지 미리보기 */

.actor-image-upload img {
  display: none;

  width: 100%;
  max-width: 100%;
  height: 250px;

  margin-top: 16px;

  object-fit: contain;

  background: #0d1013;
  border: 1px solid #303943;
  border-radius: 6px;
}


/* 이미지가 선택되었을 때 */

.actor-image-upload.has-image img {
  display: block;
}


/* 이미지가 선택되면 안내 영역을 조금 어둡게 */

.actor-image-upload.has-image .actor-upload-guide {
  background: #1a2025;
  border-color: #46515c;
}


/* 반응형 */

@media (max-width: 1200px) {
  .actor-image-upload-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .actor-image-upload-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .actor-image-upload {
    min-height: 330px;
  }

  .actor-image-upload img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .actor-image-upload-grid {
    grid-template-columns: 1fr;
  }
}




/* =========================================================
   배우 카드 리스트
   ========================================================= */

.actor-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 24px;
}

.actor-card {
  overflow: hidden;

  color: var(--actor-text) !important;
  background: #111417 !important;

  border: 1px solid var(--actor-border);
  border-radius: 10px;

  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.actor-card:hover {
  transform: translateY(-3px);

  border-color: #4c5865;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.actor-card-image {
  width: 100%;
  height: 240px;

  display: block;
  object-fit: cover;

  background: #1b2026;
}

.actor-card-body {
  padding: 15px;

  color: var(--actor-text) !important;
  background: #111417 !important;
}

.actor-card-name {
  margin: 0 0 8px;

  color: #f1f3f5 !important;

  font-size: 18px;
  font-weight: 700;
}

.actor-card-meta {
  margin: 4px 0;

  color: #9da6b1 !important;

  font-size: 13px;
}

.actor-card-price {
  margin-top: 12px;

  color: var(--actor-green) !important;

  font-size: 15px;
  font-weight: 700;
}




.actor-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.actor-card-actions a,
.actor-card-actions button {
  flex: 1;
  min-height: 34px;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
}

.actor-card-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--actor-blue);
}

.actor-card-actions button {
  color: #333;
  background: #e9edf3;
}

#actor-empty {
  padding: 60px 20px;
  color: #888;
  text-align: center;
  font-size: 16px;
}



/* =========================================================
   배우 기본 정보
   ========================================================= */

.actor-basic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 24px;

  margin-bottom: 24px;
}

.actor-basic-grid label,
.actor-wide-field {
  display: flex;
  flex-direction: column;
  gap: 8px;

  color: #e4e8ed !important;
  font-weight: 700;
}

.actor-basic-grid input,
.actor-basic-grid select,
.actor-wide-field input,
.actor-wide-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 42px;

  padding: 10px 12px;

  color: #f1f3f5 !important;
  background: var(--actor-input-background) !important;

  border: 1px solid var(--actor-input-border);
  border-radius: 6px;
}

.actor-basic-grid select {
  color: #f1f3f5 !important;
  background-color: var(--actor-input-background) !important;
}

.actor-basic-grid input::placeholder,
.actor-wide-field input::placeholder,
.actor-wide-field textarea::placeholder {
  color: #707985 !important;
  opacity: 1;
}

.actor-basic-grid input:focus,
.actor-basic-grid select:focus,
.actor-wide-field input:focus,
.actor-wide-field textarea:focus {
  border-color: var(--actor-green);

  box-shadow: 0 0 0 3px rgba(139, 220, 63, 0.12);
}


/* =========================================================
   자동 연장 영역
   ========================================================= */

/* ============================================================
   공개 / 계약 옵션
   ============================================================ */

.actor-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
  margin-bottom: 32px;
}


/* 각각의 옵션 박스 */

.actor-option-group {
  min-width: 0;
  padding: 18px 20px;
  background: #1a1f24;
  border: 1px solid #303943;
  border-radius: 8px;
}


/* 체크박스 + 제목 */

.actor-option-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  margin: 0;

  color: #f1f3f5;
  font-size: 15px;
  font-weight: 700;

  cursor: pointer;
}


/* 체크박스 */

.actor-option-title input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 0;

  accent-color: #8bd447;
  cursor: pointer;
}


/* 설명 문구 */

.actor-option-description {
  margin: 10px 0 0;
  color: #8d97a3;
  font-size: 13px;
  line-height: 1.65;
}


/* 모바일 */

@media (max-width: 700px) {
  .actor-options {
    grid-template-columns: 1fr;
  }
}



/* =========================================================
   이미지 5장 업로드
   ========================================================= */

.actor-editor h2 {
  margin: 0 0 8px;
  color: #f1f3f5 !important;
  font-size: 21px;
}

.actor-image-help {
  margin: 0 0 20px;
  color: #8d97a3 !important;
  line-height: 1.6;
}

.actor-image-upload-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;

  margin-bottom: 30px;
}

.actor-image-upload {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;

  min-width: 0;
  padding: 14px;

  color: #e4e8ed !important;
  background: #181c21 !important;

  border: 1px solid #343c45;
  border-radius: 8px;

  cursor: pointer;
}

.actor-image-upload:hover {
  border-color: #596675;
  background: #1d2228 !important;
}

.actor-image-upload > span {
  color: #e4e8ed !important;

  font-weight: 700;
  text-align: center;
}

.actor-image-upload input[type="file"] {
  width: 100%;
  max-width: 100%;

  color: #b9c2cc !important;
  font-size: 11px;
}

.actor-image-upload img {
  display: block;

  width: 100%;
  aspect-ratio: 3 / 4;

  object-fit: cover;

  background: #20262d !important;

  border: 1px dashed #4a5663;
  border-radius: 5px;
}

.actor-image-upload img:not([src]),
.actor-image-upload img[src=""] {
  visibility: hidden;
}



/* =========================================================
   작품활동 / 요청사항
   ========================================================= */

.actor-wide-field {
  display: flex;
  flex-direction: column;
  gap: 8px;

  margin-bottom: 20px;

  color: #e4e8ed !important;
  font-weight: 700;
}

.actor-wide-field textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.6;
}

/* =========================================================
   버튼
   ========================================================= */

.actor-form-actions {
  display: flex;
  justify-content: center;
  gap: 12px;

  margin-top: 28px;
}

.actor-form-actions button {
  min-width: 140px;
  min-height: 44px;

  padding: 0 24px;

  color: #ffffff !important;
  background: var(--actor-green) !important;

  border: 0;
  border-radius: 6px;

  font-size: 16px;
  font-weight: 700;

  cursor: pointer;
}

.actor-form-actions button:hover {
  background: var(--actor-green-dark) !important;
}

.actor-form-actions button.secondary {
  color: #e4e8ed !important;
  background: #343b44 !important;
}

.actor-form-message {
  min-height: 22px;
  margin: 18px 0 0;

  color: var(--actor-green) !important;

  text-align: center;
}

/* =========================================================
   반응형
   ========================================================= */

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 8px;

    padding: 14px 20px;
  }

  .topbar-title {
    grid-row: 1;
    text-align: left;
  }

  .topbar-left,
  .topbar-right {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .topbar-right {
    display: none;
  }

  main {
    padding: 24px 20px 50px;
  }

  .actor-editor,
  .actor-list-page {
    padding: 24px;
  }

  .actor-basic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .actor-image-upload-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .topbar {
    padding: 12px;
  }

  .topbar-left {
    width: 100%;
    gap: 6px;
  }

  .topbar-left a {
    flex: 1;
    padding: 8px 6px;

    font-size: 12px;
  }

  .topbar-title {
    font-size: 21px;
  }

  main {
    padding: 12px;
  }

  .actor-editor,
  .actor-list-page {
    padding: 16px;
    border-radius: 8px;
  }

  .actor-list-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .actor-list-toolbar h1 {
    margin: 0;
  }

  .actor-basic-grid {
    grid-template-columns: 1fr;
  }

  .actor-image-upload-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .actor-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
  }

  .actor-form-actions {
    flex-direction: column;
  }

  .actor-form-actions button {
    width: 100%;
  }


}



/* =====================================================
   배우 리스트 제목 / 정렬 / 검색
   ===================================================== */

.actor-page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
}

.actor-heading-content {
  flex: 1 1 auto;
  min-width: 0;
}

.actor-heading-content h2 {
  margin: 0;
}

.actor-page-description {
  margin-top: 16px;
}


/* 오른쪽 정렬 및 검색 영역 */

.actor-list-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 18px;
  flex: 0 0 auto;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;  

}


/* 정렬 select */

#actorSort {
  width: 138px;
  min-width: 138px;
}


/* 검색 영역 */

.actor-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.actor-search-label {
  font-weight: 600;
  white-space: nowrap;
}

#actorSearch {
  width: 220px;
  min-width: 180px;
}

#actorSearchButton {
  white-space: nowrap;
}



/* =====================================================
   반응형
   ===================================================== */

@media (max-width: 1000px) {

  .actor-page-heading {
    flex-direction: column;
    gap: 24px;
  }

  .actor-list-actions {
    width: 100%;
    justify-content: flex-start;
  }

}


@media (max-width: 600px) {

  .actor-list-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  #actorSort {
    width: 100%;
    max-width: 220px;
  }

  .actor-search-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    width: 100%;
  }

  .actor-search-label {
    grid-column: 1 / -1;
  }

  #actorSearch {
    width: 100%;
    min-width: 0;
  }

}

/*
이름과 나이 입력 아래에 오류 메시지를 표시할 때 사용
*/

.required-mark {
  color: #ff4d6d;
  font-weight: 700;
  margin-left: 3px;
}

.actor-field-error {
  display: block;
  min-height: 18px;
  margin-top: 6px;
  color: #ff5c7a;
  font-size: 13px;
  line-height: 1.4;
}


/* 나이 입력칸의 숫자 증감 버튼 제거 */
#actor-age::-webkit-inner-spin-button,
#actor-age::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox 숫자 입력 버튼 제거 */
#actor-age {
  -moz-appearance: textfield;
  appearance: textfield;
}



.actor-card-image-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1b2026;
  color: #8d98a6;
  font-size: 14px;
}

.actor-card-image-wrapper {
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: #1b2026;
  display: flex;
  align-items: center;
  justify-content: center;
}

.actor-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.actor-card-image-empty,
.image-load-failed {
  color: #8d98a6;
  font-size: 14px;
  text-align: center;
}

.image-load-failed {
  padding: 20px;
}


/*
 관리자 기능: 배우 리스트에서 수정, 삭제 
*/
.actor-admin-actions {
  display: none;
}


.actor-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.actor-admin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.actor-purchase-button,
.actor-edit-button,
.actor-delete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.actor-purchase-button {
  background: #ff4fa3;
  color: #ffffff;
}

.actor-purchase-button:hover {
  background: #ff2f91;
}

.actor-edit-button {
  background: #555555;
  color: #ffffff;
}

.actor-edit-button:hover {
  background: #666666;
}

.actor-delete-button {
  background: #b83232;
  color: #ffffff;
}

.actor-delete-button:hover {
  background: #d04444;
}

.actor-card-name {
  display: flex;
  align-items: center;
  gap: 6px;
}

.actor-famous-star {
  color: #ffd34d;
  font-size: 18px;
  line-height: 1;
}


.actor-card {
  cursor: pointer;
}

.actor-card:focus-visible {
  outline: 2px solid #ff4fa3;
  outline-offset: 4px;
}





.actor-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.actor-detail-modal[hidden] {
  display: none;
}

.actor-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 72%);
}

.actor-detail-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  border: 1px solid #3b3b3b;
  border-radius: 20px;
  background: #181818;
  color: #ffffff;
}

.actor-detail-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 30px;
  cursor: pointer;
}

.actor-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 16px;
  min-height: auto;
  height: auto;
}

.actor-detail-image,
.actor-detail-image-empty {
  width: 180px;
  height: 230px;
  flex: 0 0 auto;
  border-radius: 14px;
  object-fit: cover;
  background: #292929;
}

.actor-detail-image-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999999;
  text-align: center;
}

.actor-detail-title-area h2 {
  margin: 12px 0 8px;
  font-size: 26px;
}

.actor-detail-job {
  margin: 0;
  color: #bbbbbb;
}




/* 상세 정보 영역 */
.actor-detail-info {
  width: 100%;
  margin-top: 12px;
}

/* 상세 정보 한 줄 */
.actor-detail-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  min-height: 47px;
  border-bottom: 1px solid #303030;
}

/* 항목명 */
.actor-detail-row > span {
  color: #b9b9c5;
  font-size: 15px;
  text-align: left;
}

/* 정보값 글자 굵기 font-weight: 700; */
.actor-detail-row > strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 300;
  text-align: center;
  padding: 0 20px;
}



.actor-detail-block {
  margin-top: 12px;
}

.actor-detail-block h3 {
  margin: 0 0 8px;
  color: #ff78b8;
  font-size: 16px;
}

.actor-detail-block p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.7;
  color: #dddddd;
}

.actor-detail-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.actor-detail-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .actor-detail-dialog {
    padding: 22px 18px;
  }

  .actor-detail-header {
    flex-direction: column;
    align-items: center;
  }

  .actor-detail-title-area {
    width: 100%;
    text-align: center;
  }

  .actor-detail-image,
  .actor-detail-image-empty {
    width: 150px;
    height: 195px;
  }

  .actor-detail-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .actor-detail-row strong {
    text-align: left;
  }
}



.actor-purchase-button {
  width: 100%;
  margin-top: 12px;
  padding: 11px 14px;
  border: 0;
  border-radius: 10px;
  background: #ff4fa3;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.actor-purchase-button:hover {
  background: #ff2f91;
}

.actor-purchase-button:disabled {
  background: #555555;
  color: #cccccc;
  cursor: not-allowed;
}

.actor-purchase-button.is-purchased {
  background: #333333;
  color: #aaaaaa;
}


.actor-purchase-button.is-purchased {
  background: #555;
  color: #e5e7eb;
  cursor: not-allowed;
  opacity: 1;
}

.actor-purchase-button.is-purchased:hover {
  background: #555;
}


/*
  배우 리스트: 크레딧 표시
*/

.actor-list-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.actor-list-heading {
  min-width: 0;
}

.my-credit-balance {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #3f4b59;
  border-radius: 24px;
  background: #171c22;
  color: #9cff38;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .actor-list-header {
    gap: 14px;
  }

  .my-credit-balance {
    min-height: 36px;
    padding: 0 13px;
    font-size: 13px;
  }
}


/*
  나의 배우 리스트 : 팝업
*/

.actor-detail-content {
  position: relative;
}

.actor-detail-row > strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.actor-detail-row {
  gap: 16px;
}

@media (max-width: 600px) {
  .actor-detail-modal {
    padding: 12px;
  }

  .actor-detail-dialog {
    padding: 22px 18px;
    max-height: 92vh;
  }

  .actor-detail-header {
    gap: 14px;
  }

  .actor-detail-image,
  .actor-detail-image-empty {
    width: 110px;
    height: 145px;
  }

  .actor-detail-title-area h2 {
    font-size: 22px;
  }

  .actor-detail-row {
    grid-template-columns: 105px 1fr;
  }
}


/* 바우 등록 : 숫자 입력창의 위·아래 조정 버튼 제거 */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}





/* =====================================================
   배우 페이지 - 로고 뒤 버튼 숨김
===================================================== */


/* 로고 */

.topbar .brand {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;

    margin-left: 0;
    margin-right: 20px;

    transform: translateY(1px); /* 로고 높이 */
}

        
.topbar .brand img {
    display: block;
    width: 90px; /* 로고 크기 */
    height: auto;
    object-fit: contain;
} 

/* 로고 링크의 버튼 스타일 제거 */
.topbar .brand a {
    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    border: none;
    border-radius: 0;

    padding: 0;
    box-shadow: none;

    text-decoration: none;
}



.topbar .brand a {
    transition: transform 0.2s ease, filter 0.2s ease;
}

.topbar .brand a:hover {
    transform: scale(1.08);
    filter: brightness(1.2);
}







/* ============================================================
   크레딧 충전 모달
============================================================ */

.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;
    }

}





/* ============================================================
   나의 배우 - 숨김 / 복구 버튼
   ============================================================ */

   .my-actor-hidden-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin: 0 12px 0 0;
  padding: 9px 16px;

  border: 1px solid #3b4652;
  border-radius: 7px;

  background: #171b20;
  color: #d9e0e8;

  font-size: 14px;
  font-weight: 500;

  cursor: pointer;

  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.my-actor-hidden-button:hover {
  background: #20262d;
  border-color: #596674;
  color: #ffffff;
}

.my-actor-hidden-button:active {
  transform: translateY(1px);
}

.my-actor-hide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 10px;
  padding: 8px 16px;

  border: 1px solid #3b4652;
  border-radius: 7px;

  background: #171b20;
  color: #d9e0e8;

  font-size: 14px;
  font-weight: 500;

  cursor: pointer;

  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.my-actor-hide-button:hover {
  background: #20262d;
  border-color: #596674;
  color: #ffffff;
}

.my-actor-hide-button:active {
  transform: translateY(1px);
}




/* ============================================================
   배우 페이지 하위 메뉴
   배우 리스트 / 나의 배우 리스트 / 배우 등록·수정
   ============================================================ */


/* 마우스를 올렸을 때 */
.actor-subnav a:hover,
.actor-subnav button:hover,
.actor-menu a:hover,
.actor-menu button:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.10);
  color: #ffffff;
}

/* 현재 선택된 메뉴 */
.actor-subnav a.active,
.actor-subnav a[aria-current="page"],
.actor-subnav button.active,
.actor-menu a.active,
.actor-menu a[aria-current="page"],
.actor-menu button.active {
  background: rgba(72, 116, 190, 0.22);
  border-color: rgba(83, 130, 210, 0.45);
  color: #ffffff;

  box-shadow:
    0 0 0 1px rgba(80, 130, 220, 0.08),
    0 4px 16px rgba(40, 90, 170, 0.18);
}

/* 선택된 메뉴 아래쪽의 은은한 포인트 */
.actor-subnav a.active::after,
.actor-subnav a[aria-current="page"]::after,
.actor-menu a.active::after,
.actor-menu a[aria-current="page"]::after {
  content: "";

  position: absolute;

  left: 50%;
  bottom: -5px;

  width: 24px;
  height: 2px;

  transform: translateX(-50%);

  border-radius: 999px;

  background: #6fa8ff;

  box-shadow:
    0 0 8px rgba(111, 168, 255, 0.65);
}

/* 클릭할 때 */
.actor-subnav a:active,
.actor-subnav button:active,
.actor-menu a:active,
.actor-menu button:active {
  transform: translateY(1px);
}



.actor-subnav a,
.actor-subnav button,
.actor-menu a,
.actor-menu button {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 135px; /* 버튼의 폭 조정   */
  min-height: 42px;
  padding: 0 28px; 

  border: 1px solid transparent;
  border-radius: 999px;

  background: transparent;
  color: #aeb7c4;

  font-size: 14px;
  font-weight: 600;
  text-decoration: none;

  cursor: pointer;

  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}



/* 배우 카드 하단 버튼 - 한 줄 정렬 */
.actor-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: nowrap;
  margin-top: 14px;
}

.actor-card-actions .actor-purchase-button,
.actor-card-actions .actor-edit-button,
.actor-card-actions .actor-delete-button {
  width: auto;
  min-width: 63px;
  height: 46px;
  min-height: 46px;
  margin: 0;
  padding: 0 16px;
  box-sizing: border-box;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  line-height: 1;
}

.actor-admin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
}

/* 배우 카드 하단 버튼 3개 - 카드 폭에 정확히 맞춤 */
.actor-card-actions {
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  gap: 8px;
  margin-top: 14px;
  padding: 0;
}

/* 수정/삭제를 감싸는 컨테이너를 레이아웃에서 제거 */
.actor-admin-actions {
  display: contents;
}

/* 구매 / 수정 / 삭제 동일한 폭 */
.actor-card-actions .actor-purchase-button,
.actor-card-actions .actor-edit-button,
.actor-card-actions .actor-delete-button {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  height: 46px;
  min-height: 46px;

  margin: 0;
  padding: 0 8px;

  box-sizing: border-box;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  line-height: 1;
  white-space: nowrap;
}




.actor-card-basic-info {
  white-space: nowrap;
}

.actor-info-separator {
  margin: 0 6px;
  opacity: 0.5;
}


#actor-country {
    margin-top: 6px;
}



.actor-country {
    margin-left: 8px;
    font-size: 13px;
    font-weight: 400;
    color: #8d96a3;
}




/* 숨긴 배우 - 목록에 복구 버튼 */
.my-actor-restore-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px 14px;
    min-height: 40px;
    box-sizing: border-box;

    background: #191d22;
    color: #dce5ee;

    border: 1px solid #39434e;
    border-radius: 8px;

    font-size: 13px;
    font-weight: 600;
    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

/* 마우스를 올렸을 때 */
.my-actor-restore-button:hover {
    background: #2b323a;
    border-color: #596777;
    color: #ffffff;
    transform: translateY(-1px);
}

/* 클릭했을 때 */
.my-actor-restore-button:active {
    background: #15191d;
    transform: translateY(0);
}

/* 키보드 포커스 */
.my-actor-restore-button:focus-visible {
    outline: 2px solid #8bd450;
    outline-offset: 3px;
}





/* 배우 수익 홍보 문구 */
.actor-revenue-promo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    box-sizing: border-box;

    /* 위·아래 간격 축소 */
    margin: 6px auto 8px;
    padding: 4px 15px;

    background: transparent;
    border: none;
    border-radius: 0;
    text-align: center;

    position: static;
}

.actor-revenue-promo-icon {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    border: none;
    color: #c4b5fd;
    font-size: 20px;

    position: static;
}

.actor-revenue-promo p {
    margin: 0;
    color: #e7e7ef;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    overflow-wrap: anywhere;
    text-align: center;

    position: static;
}


/* 홍보 문구와 배우 목록 사이 간격 */
.actor-list-page {
    margin-top: 0 !important;
}

@media (max-width: 600px) {
    .actor-revenue-promo {
        gap: 7px;
        margin-bottom: 4px;
        padding: 0 10px;
    }

    .actor-revenue-promo p {
        font-size: 12px;
        line-height: 1.6;
    }
}




.actor-revenue-promo-highlight {
    color: #ff80c8;
    font-weight: 600;
}




