/**
 * MY 콘텐츠 저장소 - 모바일 스타일
 * @version 1.0
 * @since 2026-03-05
 */

/* ========================================
   토스트 메시지
   ======================================== */
.mycontent-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(51, 51, 51, 0.9);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    line-height: 1.4;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    max-width: 90%;
    text-align: center;
}
.mycontent-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ========================================
   팝업 오버레이 & 공통
   ======================================== */
.mycontent-popup-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}
.mycontent-popup-overlay.show {
    display: block;
}

.mycontent-popup {
    display: none;
    position: fixed;
    left: 5%;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border-radius: 12px;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    max-height: 85vh;
    overflow: hidden;
}
.mycontent-popup.show {
    display: block;
}
.mycontent-popup .popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
}
.mycontent-popup .popup-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}
.mycontent-popup .popup-header .btn-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mycontent-popup .popup-body {
    padding: 14px;
    overflow-y: auto;
    max-height: 50vh;
    -webkit-overflow-scrolling: touch;
}
.mycontent-popup .popup-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 12px;
    border-top: 1px solid #eee;
}
.mycontent-popup .popup-notice {
    width: 100%;
    margin: 0 0 6px 0;
    padding: 0;
    font-size: 11px;
    color: #888;
    line-height: 1.5;
    letter-spacing: -0.02em;
    word-break: keep-all;
}
.mycontent-popup .move-guide-msg {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #555;
}
.mycontent-popup .popup-footer button {
    flex: 1;
    padding: 12px 0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    min-height: 44px;
    border: none;
}
.mycontent-popup .btn-primary {
    background: #2ea443;
    color: #fff;
}
.mycontent-popup .btn-secondary {
    background: #f5f5f5;
    color: #666;
}
.mycontent-popup .btn-danger {
    background: #e74c3c;
    color: #fff;
}
.mycontent-popup .btn-save-profile {
    width: 100%;
    background: #2ea443;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    min-height: 44px;
    cursor: pointer;
}

/* ========================================
   프로필 팝업 폼
   ======================================== */
.mycontent-popup .form-group {
    margin-bottom: 16px;
}
.mycontent-popup .form-group > label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}
.mycontent-popup .form-group .req {
    color: #e74c3c;
    margin-left: 2px;
    font-weight: 700;
}
.mycontent-popup .form-group-row {
    display: flex;
    gap: 10px;
}
.mycontent-popup .form-group-row .form-col {
    flex: 1;
    min-width: 0;
}
.mycontent-popup .form-group-row select {
    width: 100%;
    box-sizing: border-box;
}
.mycontent-popup .gender-toggle {
    display: flex;
    gap: 0;
}
.mycontent-popup .gender-toggle input[type="radio"] {
    display: none;
}
.mycontent-popup .gender-toggle label {
    flex: 1;
    text-align: center;
    padding: 4px 0;
    border: 1px solid #ddd;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mycontent-popup .gender-toggle label:first-of-type {
    border-radius: 6px 0 0 6px;
}
.mycontent-popup .gender-toggle label:last-of-type {
    border-radius: 0 6px 6px 0;
    border-left: none;
}
.mycontent-popup .gender-toggle input[type="radio"]:checked + label {
    background: #2ea443;
    color: #fff;
    border-color: #2ea443;
}
.mycontent-popup .birth-selects {
    display: flex;
    gap: 6px;
}
.mycontent-popup .birth-selects select {
    flex: 1;
    padding: 10px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    min-height: 44px;
    background: #fff;
    -webkit-appearance: none;
}
.mycontent-popup .invest-exp-selects select {
    width: 100%;
    padding: 10px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    min-height: 44px;
    background: #fff;
    -webkit-appearance: none;
}
.mycontent-popup .region-selects {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mycontent-popup .region-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.mycontent-popup .region-row select {
    flex: 1;
    width: 100%;
    min-width: 0;
}
.mycontent-popup .region-row .city-other-input {
    flex: 1;
    min-width: 0;
}
.mycontent-popup .region-label {
    font-size: 13px;
    color: #666;
    min-width: 36px;
}
.mycontent-popup .region-row select,
.mycontent-popup .region-row .city-other-input {
    flex: 1;
    padding: 10px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    min-height: 44px;
    background: #fff;
    -webkit-appearance: none;
}
.mycontent-popup .region-row .city-other-input {
    color: #333;
    outline: none;
    box-sizing: border-box;
    height: 44px;
}
.mycontent-popup .region-row .city-other-input:focus {
    border-color: #2ea443;
}


/* ========================================
   폴더 선택 팝업
   ======================================== */
.mycontent-popup .folder-add-area {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    padding-bottom: 10px;
}
.mycontent-popup .folder-add-area .new-folder-name {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    min-height: 40px;
    box-sizing: border-box;
    text-align: center;
}
.mycontent-popup .folder-add-area .btn-create-folder {
    flex-shrink: 0;
    padding: 8px 12px;
    background: #2ea443;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    min-height: 40px;
    cursor: pointer;
}
.mycontent-popup .folder-list .popup-list-item,
.mycontent-popup .move-folder-list .popup-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    min-height: 38px;
}
.mycontent-popup .popup-list-item:last-child {
    border-bottom: none;
}
.mycontent-popup .popup-list-item input[type="radio"],
.mycontent-popup .popup-list-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.mycontent-popup .popup-list-item label {
    flex: 1;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}
.mycontent-popup .popup-list-item .count {
    font-size: 12px;
    color: #999;
}

/* 삭제 확인 팝업 */
.mycontent-popup.confirm-dialog .popup-body {
    text-align: center;
    padding: 24px 16px;
}
.mycontent-popup.confirm-dialog .popup-body p {
    margin: 0 0 8px;
    font-size: 17px;
    color: #333;
}
.mycontent-popup.confirm-dialog .sub-msg {
    font-size: 15px;
    color: #999;
}

/* ========================================
   모바일 타이틀 바 (초록색 배경)
   ======================================== */
.mycontent-sticky-title .title {
    background-color: #2ea443 !important;
    border-bottom-color: #2ea443 !important;
}
.mycontent-sticky-title .title .tit {
    color: #fff !important;
}
.mycontent-sticky-title .title .btn_back:after {
    background-position: -250px -25px !important;
}

/* ========================================
   저장소 페이지 - 배너
   ======================================== */
.mycontent-page {
    padding: 12px 16px 24px;
}
.mycontent-banner {
    margin-bottom: 20px;
}
.mycontent-banner-guide {
    background: linear-gradient(135deg, #f0faf2 0%, #f8f9fa 100%);
    border-radius: 10px;
    padding: 14px 16px;
    border-left: 3px solid #2ea443;
}
.mycontent-banner-guide ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.mycontent-banner-guide li {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    padding-left: 0;
    position: relative;
}
.mycontent-banner-guide li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: #999;
}
.mycontent-banner-guide li:not(.caution) {
    display: flex;
    align-items: baseline;
}
.mycontent-banner-guide li:not(.caution)::before {
    display: none;
}
.mycontent-banner-guide .mc-label {
    flex-shrink: 0;
    width: 5.7em;
}
.mycontent-banner-guide .mc-text {
    flex: 1;
}
.mycontent-banner-guide li.caution {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    color: #c0392b;
    font-size: 15px;
    margin-top: 8px;
    background: #fff5f5;
    padding: 6px 4px;
    border-radius: 4px;
    margin-left: -4px;
    line-height: 1.6;
}
.mycontent-banner-guide li.caution::before {
    content: "";
    display: none;
}
.mycontent-banner-guide li.caution .mc-label {
    width: 5.7em;
}
.mycontent-banner-guide li.caution .mc-text {
    display: block;
    width: 100%;
    font-size: 13px;
    letter-spacing: -0.2px;
    line-height: 1.7;
}
.mycontent-banner-guide li.caution .mc-label strong {
    color: #c0392b;
    letter-spacing: 0.25em;
}
.mycontent-banner-guide strong {
    color: #2ea443;
    font-weight: 700;
}
.mycontent-banner-guide .mc-label strong {
    display: inline-block;
    width: 5em;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

/* ========================================
   폴더 탭 (모바일: 가로 스크롤)
   ======================================== */
.mycontent-folder-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}
.mycontent-folder-tabs .tab {
    flex-shrink: 0;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 22px;
    background: #f5f5f5;
    font-size: 13px;
    color: #888;
    cursor: pointer;
    white-space: nowrap;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}
.mycontent-folder-tabs .tab.active {
    background: #2ea443;
    color: #fff;
    border-color: #2ea443;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(46, 164, 67, 0.3);
}
.mycontent-folder-tabs .tab-add {
    color: #2ea443;
    border-color: #2ea443;
    border-style: dashed;
    background: #fff;
    font-size: 12px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}
.mycontent-folder-tabs .tab-add:active {
    opacity: 1;
    background: #f0faf2;
}
.mycontent-folder-tabs .tab-input {
    flex-shrink: 0;
    display: flex;
    gap: 4px;
    align-items: center;
}
.mycontent-folder-tabs .tab-input input {
    width: 100px;
    padding: 8px 12px;
    border: 1px solid #2ea443;
    border-radius: 22px;
    font-size: 13px;
    outline: none;
    min-height: 44px;
    box-sizing: border-box;
    text-align: center;
}
.mycontent-folder-tabs .tab-input input:focus {
    box-shadow: 0 0 0 3px rgba(46, 164, 67, 0.15);
}
.mycontent-folder-tabs .tab-input button {
    padding: 8px 12px;
    border: none;
    border-radius: 22px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    min-height: 44px;
    transition: transform 0.15s ease;
}
.mycontent-folder-tabs .tab-input button:active {
    transform: scale(0.95);
}
.mycontent-folder-tabs .tab-input .btn-tab-ok {
    background: #2ea443;
    color: #fff;
}
.mycontent-folder-tabs .tab-input .btn-tab-cancel {
    background: #f0f0f0;
    color: #666;
}

/* 폴더 없음 상태 */
.mycontent-no-folders {
    text-align: center;
    padding: 48px 24px;
    color: #888;
    background: #fafbfc;
    border-radius: 12px;
    border: 1px dashed #ddd;
}
.mycontent-no-folders::before {
    content: '';
    display: block;
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56' fill='none'%3E%3Crect x='4' y='12' width='48' height='34' rx='4' fill='%23f0f0f0' stroke='%23ccc' stroke-width='1.5'/%3E%3Cpath d='M4 16V12a4 4 0 0 1 4-4h12l5 8h23a4 4 0 0 1 4 4v0' fill='%23e8e8e8' stroke='%23ccc' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center / contain;
    opacity: 0.5;
}
.mycontent-no-folders p {
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 20px;
    color: #777;
}
.mycontent-no-folders .btn-create-first {
    padding: 12px 28px;
    background: #2ea443;
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    min-height: 48px;
    box-shadow: 0 2px 8px rgba(46, 164, 67, 0.3);
    transition: transform 0.15s ease;
}
.mycontent-no-folders .btn-create-first:active {
    transform: scale(0.96);
}

/* ========================================
   편집 버튼 & 툴바
   ======================================== */
.mycontent-edit-btns {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}
.mycontent-edit-btns .btn-manual {
    padding-left: 32px;
    background: #e8f4fc url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%231e88c4" viewBox="0 0 24 24"><path d="M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/></svg>') no-repeat 11px center;
    background-size: 16px 16px;
    border-color: #5eadd8;
    color: #1e88c4;
}
.mycontent-edit-btns .btn-manual:active {
    background-color: #d0e8f7;
    border-color: #1e88c4;
    color: #1e88c4;
}
.mycontent-edit-btns button {
    padding: 10px 16px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    min-height: 44px;
    transition: all 0.15s ease;
}
.mycontent-edit-btns button:active {
    background: #f0f0f0;
    transform: scale(0.97);
}
.mycontent-edit-btns button.active {
    background: #2ea443;
    color: #fff;
    border-color: #2ea443;
    box-shadow: 0 2px 6px rgba(46, 164, 67, 0.25);
    font-weight: 600;
}

/* 편집 툴바 */
.mycontent-edit-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    margin: 0;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid transparent;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}
.mycontent-edit-toolbar.show {
    visibility: visible;
    height: auto;
    padding: 10px 14px;
    margin-bottom: 12px;
    border-color: #e8e8e8;
}
.mycontent-edit-toolbar .select-all {
    font-size: 13px;
    color: #555;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}
.mycontent-edit-toolbar .select-all input {
    width: 20px;
    height: 20px;
    accent-color: #2ea443;
}
.mycontent-edit-toolbar .edit-actions {
    display: flex;
    gap: 6px;
}
.mycontent-edit-toolbar .edit-actions button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    min-height: 40px;
    background: #fff;
    transition: all 0.15s ease;
}
.mycontent-edit-toolbar .btn-move {
    color: #2ea443 !important;
    border-color: #2ea443 !important;
}
.mycontent-edit-toolbar .btn-move:active {
    background: #f0faf2 !important;
}
.mycontent-edit-toolbar .btn-delete {
    color: #e74c3c !important;
    border-color: #e74c3c !important;
}
.mycontent-edit-toolbar .btn-delete:active {
    background: #fef5f5 !important;
}

/* ========================================
   폴더 관리 패널
   ======================================== */
.mycontent-folder-panel {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 14px;
    border: 1px solid #e8e8e8;
}
/* 패널 헤더: 제목 + 완료 버튼 가로 배치 */
.mycontent-folder-panel .folder-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}
.mycontent-folder-panel .folder-panel-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}
.mycontent-folder-panel .folder-panel-header .btn-panel-close {
    padding: 8px 18px;
    background: #2ea443;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    min-height: 38px;
    transition: transform 0.15s ease;
}
.mycontent-folder-panel .folder-panel-header .btn-panel-close:active {
    transform: scale(0.96);
}
/* 폴더 아이템 행 */
.mycontent-folder-panel .folder-panel-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.mycontent-folder-panel .folder-panel-item:last-child {
    border-bottom: none;
}
.mycontent-folder-panel .folder-panel-item .folder-name-input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    min-height: 44px;
    background: #fff;
    color: #333;
    outline: none;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
    box-sizing: border-box;
    text-align: center;
}
.mycontent-folder-panel .folder-panel-item .folder-name-input:focus {
    border-color: #2ea443;
    box-shadow: 0 0 0 3px rgba(46, 164, 67, 0.1);
}
.mycontent-folder-panel .btn-folder-rename,
.mycontent-folder-panel .btn-folder-delete {
    flex-shrink: 0;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    min-height: 44px;
    background: #fff;
    white-space: nowrap;
    transition: all 0.15s ease;
}
.mycontent-folder-panel .btn-folder-rename {
    color: #2ea443;
    border-color: #2ea443;
}
.mycontent-folder-panel .btn-folder-rename:active {
    background: #f0faf2;
    transform: scale(0.96);
}
.mycontent-folder-panel .btn-folder-delete {
    color: #e74c3c;
    border-color: #e74c3c;
}
.mycontent-folder-panel .btn-folder-delete:active {
    background: #fef5f5;
    transform: scale(0.96);
}

/* ========================================
   콘텐츠 그리드 (2열)
   ======================================== */
.mycontent-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.mycontent-grid .content-card {
    position: relative;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.mycontent-grid .content-card:active {
    transform: scale(0.98);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.mycontent-grid .content-card .thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 50%, #e0f2f1 100%);
}
.mycontent-grid .content-card .info {
    padding: 10px 12px 12px;
}
.mycontent-grid .content-card .info .title {
    font-size: 13px;
    color: #222;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: keep-all;
    letter-spacing: -0.02em;
}

/* 편집 모드 체크박스 */
.mycontent-grid .edit-checkbox {
    display: none;
}
.mycontent-grid.edit-mode .edit-checkbox {
    display: block;
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    z-index: 2;
    accent-color: #2ea443;
}
.mycontent-grid.edit-mode .content-card:has(.edit-checkbox:checked) {
    outline: 2px solid #2ea443;
    outline-offset: -2px;
    box-shadow: 0 0 0 4px rgba(46, 164, 67, 0.15);
}
.mycontent-grid.edit-mode .content-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 1;
}
.mycontent-grid.edit-mode .content-card:has(.edit-checkbox:checked)::after {
    background: rgba(46, 164, 67, 0.05);
}

/* 빈 상태 */
.mycontent-empty {
    text-align: center;
    padding: 60px 24px 48px;
    color: #999;
}
.mycontent-empty::before {
    content: '';
    display: block;
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'%3E%3Crect x='4' y='14' width='56' height='40' rx='4' fill='%23e8f5e9' stroke='%232ea443' stroke-width='2'/%3E%3Cpath d='M4 18V14a4 4 0 0 1 4-4h14l6 8h28a4 4 0 0 1 4 4v0' fill='%23c8e6c9' stroke='%232ea443' stroke-width='2'/%3E%3Cline x1='32' y1='28' x2='32' y2='42' stroke='%232ea443' stroke-width='2' stroke-linecap='round'/%3E%3Cline x1='25' y1='35' x2='39' y2='35' stroke='%232ea443' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
    opacity: 0.6;
}
.mycontent-empty p {
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
    color: #888;
}
.mycontent-empty p::first-line {
    font-size: 15px;
    font-weight: 600;
    color: #555;
}

/* ========================================
   콘텐츠 상세 - MY콘텐츠 담기 버튼
   ======================================== */
/* 플레이어(content.jsp) - contentVideo 내 video_wrap의 padding-bottom:50px 제거 */
.contentVideo .video_wrap {
    padding-bottom: 0 !important;
}
/* 상세페이지(web_view) - toggle_title(absolute, 50px)이 contentView 내 35px 차지 */
.contentView .toggle_title + .mycontent-action-btns {
    padding-top: 50px;
    background: linear-gradient(to bottom, transparent 50px, #fff 50px);
}
.mycontent-action-btns {
    display: flex;
    gap: 8px;
    padding: 10px 15px;
    position: relative;
    z-index: 5;
    background: #fff;
}
.mycontent-action-btns button {
    flex: 1;
    padding: 10px 0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    min-height: 44px;
    border: 1px solid;
}
.mycontent-action-btns .btn-mycontent-save {
    background: #fff;
    color: #2ea443;
    border-color: #2ea443;
}
.mycontent-action-btns .btn-mycontent-save::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url('/assets/mobile/images/common/ico_addContents_m.png') no-repeat center / contain;
    margin-right: 5px;
    vertical-align: middle;
}
.mycontent-action-btns .btn-share {
    background: #fff;
    color: #666;
    border-color: #999;
}
.mycontent-action-btns .btn-share::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url('/assets/mobile/images/common/ico_share_m.png') no-repeat center / contain;
    margin-right: 5px;
    vertical-align: middle;
}

/* ========================================
   공유하기 팝업 (UI-08)
   ======================================== */
.share-popup {
    width: 90%;
    max-width: 320px;
}
.share-popup .share-url-area {
    display: flex;
    gap: 8px;
    margin-bottom: 0;
}
/* 공유 팝업 전용 — 내용물이 URL+버튼 2요소뿐이므로 세로 공간 축소 */
#mycontentSharePopup .popup-body {
    max-height: none;
    padding: 12px 14px;
}
.share-popup .share-url-input {
    flex: 1;
    padding: 10px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    background: #f9f9f9;
    min-height: 44px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.share-popup .btn-copy-url {
    padding: 10px 14px;
    border: 1px solid #2ea443;
    border-radius: 6px;
    background: #2ea443;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    min-height: 44px;
}

/* ========================================
   플로팅 메뉴 - MY콘텐츠 버튼
   ======================================== */
.m-floating-menu .btn-mycontent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.m-floating-menu .btn-mycontent .ico {
    display: block;
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z'/%3E%3Cline x1='12' y1='11' x2='12' y2='17'/%3E%3Cline x1='9' y1='14' x2='15' y2='14'/%3E%3C/svg%3E") no-repeat center / contain;
}
.m-floating-menu .btn-mycontent .txt {
    font-size: 9px;
    line-height: 1.1;
    text-align: center;
    margin-top: 1px;
}

/* ========================================
   리스트 호버 오버레이 (모바일)
   ======================================== */
li[data-mc-idx] a.menu .imgArea {
    /* 모바일: 기존 m_sub.css의 position:absolute 레이아웃을 유지 (호버 오버레이 미사용) */
}
li[data-mc-idx] .mc-hover-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 10;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
li[data-mc-idx] a.menu:hover .mc-hover-overlay {
    display: flex;
}
li[data-mc-idx] a.menu:hover::before {
    display: none !important;
}
li[data-mc-idx]:hover .linksPopup {
    display: none !important;
}
.mc-hover-overlay button {
    width: 110px;
    height: 32px;
    border: 1px solid #fff;
    border-radius: 3px;
    background: transparent;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s;
}
.mc-hover-overlay .btn-overlay-view {
    background: #2ea443;
    border-color: #2ea443;
}
.mc-hover-overlay .btn-overlay-save:active {
    background: rgba(255, 255, 255, 0.2);
}

/* 호버 오버레이 비활성화 (모바일 li 리스트에서는 불필요) */
li[data-mc-idx] .mc-hover-overlay {
    display: none !important;
}

/* mc-thumb-wrap 오버레이 - 모바일 리스트에서는 비활성화 */
.mc-thumb-wrap .mc-hover-overlay {
    display: none !important;
}

/* 이중 메뉴 (모바일에서는 사용 안 함, 비활성화) */
.mycontent-dual-menu {
    display: none !important;
}
