@charset "utf-8";

/* ============================================================
   폰트
   ============================================================ */

@font-face {
    font-family: 'PuradakGentleGothic';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_11-01@1.1/PuradakGentleGothicR.woff2') format('woff2');
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'NexonLv1Gothic';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@2.1/NEXON Lv1 Gothic OTF Light.woff') format('woff');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'BookkMyungjo';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2302@1.0/BookkMyungjo-Lt.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'BelovedMyoeunttobak';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2601-1@1.0/Griun_Myoeunddobak-Rg.woff2') format('woff2');
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PyeojinGothic';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2504-1@1.0/PyeojinGothic-Regular.woff2') format('woff2');
    font-weight: 400 700;
    font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Cutive+Mono&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Libre+Barcode+39+Text&display=swap');


/* ============================================================
   list.skin — 레이아웃
   ============================================================ */

#bo_list {
    width: 1170px;
    height: 800px;
    position: absolute;
    top: calc(50% - 400px);
    left: calc(50% - 420px);
    padding: 10px;
}

.list-layout {
    width: 100%;
    height: 800px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.list-header {
    width: 100%;
    height: 170px;
    position: relative;
}

.list-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 15px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 10px;
    padding-top: 30px;
    flex: 1;
    align-items: flex-start;
    align-content: flex-start;
}

/* ── 카세트테이프 리스트 아이템 (3열) ── */

.tape-item {
    width: calc((100% - 30px) / 3);
    flex-shrink: 0;
}

/* 완료·보류 항목: 흑백 처리, hover 시 컬러 복원 */
.tape-item.tape-inactive .list-tape {
    filter: grayscale(100%);
    opacity: 0.75;
    transition: filter 0.35s ease, opacity 0.35s ease;
}
.tape-item.tape-inactive .list-tape:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.list-tape {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 2.5;
    border: 3px solid black;
    border-radius: 10px;
    position: relative;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.list-tape:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.list-tape-top-outline {
    width: 90%;
    height: 65%;
    margin: 4% auto 0;
    clip-path: polygon(12px 0%, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%, 0 12px);
    background: black;
    padding: 2px;
    display: flex;
}

.list-tape-top-inline {
    flex: 1;
    background-color: #fff;
    clip-path: polygon(11px 0%, calc(100% - 11px) 0, 100% 11px, 100% 100%, 0 100%, 0 11px);
    padding: 2px;
    display: flex;
    flex-direction: column;
    background-size: cover;
    background-position: center;
}

.list-tape-title {
    width: 75%;
    height: 22%;
    margin: 6% auto 3%;
    border: 2px solid black;
    background: rgba(255,255,255,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.list-tape-title-text {
    font-family: 'BelovedMyoeunttobak';
    font-size: 16px;
    color: #111;
    text-align: center;
    padding: 3px 4px 0px 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.list-tape-rollbox {
    width: 60%;
    height: 36%;
    border: 2px solid black;
    border-radius: 30px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 5px 8px;
    background: rgba(255,255,255,0.6);
    box-sizing: border-box;
}

.list-tape-roll {
    width: 20%;
    aspect-ratio: 1 / 1;
    border: 2px solid black;
    border-radius: 100%;
    background-color: white;
    flex-shrink: 0;
}

.list-tape-roll-middle {
    flex: 1;
    height: 100%;
    border: 2px solid black;
    position: relative;
    overflow: hidden;
    margin: 0 6px;
}

.list-tape-middle-left {
    position: absolute;
    width: 90%;
    aspect-ratio: 1 / 1;
    background: #222222;
    border-radius: 100%;
    top: -70%;
    left: -59%;
}

.list-tape-middle-right {
    position: absolute;
    width: 90%;
    aspect-ratio: 1 / 1;
    background: #222222;
    border-radius: 100%;
    top: -70%;
    right: -59%;
}

.list-tape-bottom {
    position: absolute;
    bottom: 0;
    left: 18%;
    width: 64%;
    height: 22%;
    overflow: visible;
}

.list-tape-bottom svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.list-footer {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
}


/* ── 헤더: 버튼 그룹 ── */

.star-button-group {
    position: absolute;
    top: 15px;
    right: 20px;
    display: flex;
    flex-direction: row;
    gap: 25px;
    z-index: 99;
}

.star-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.star-shape {
    width: 30px;
    height: 40px;
    background-color: var(--primary-color);
    clip-path: polygon(
        50% 0%,
        62% 35%, 100% 50%, 62% 65%,
        50% 100%,
        38% 65%, 0% 50%, 38% 35%
    );
    transition: background-color 0.3s ease;
}

.star-text {
    font-family: 'NexonLv1Gothic';
    font-size: 9px;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 6px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.star-btn:hover .star-shape { background-color: var(--secondary-color); }
.star-btn:hover .star-text  { color: var(--secondary-color); }
.star-btn:active             { transform: translateY(1px); }
.star-btn.disabled           { cursor: not-allowed; pointer-events: none; }


/* ── 헤더: 타이틀 ── */

.title-main {
    font-family: 'PuradakGentleGothic';
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.title-sub {
    font-family: var(--content-font-family);
    font-size: 14px;
    color: var(--content-font-color);
    line-height: 1.4;
    margin-bottom: 20px;
    padding-top: 3px;
}


/* ── 헤더: 검색창 ── */

/*#bo_sch {
    display: flex;
    justify-content: flex-end;
    gap: 3px;
    border: 0;
    padding: 0;
    margin: 0 0 25px;
    width: 100%;
}

#bo_sch form {
    width: auto !important;
    margin-left: 0 !important;
    display: inline-flex !important;
    align-items: center;
}

#bo_sch input {
    width: 200px !important;
    flex: none !important;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
}

#bo_sch button {
    width: 40px;
    height: 32px;
    border: 1px solid var(--primary-color);
    background: var(--primary-color);
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#bo_sch button i { font-size: 12px; }*/

/* ── 헤더: 검색창 ── */

#bo_sch {
    position: absolute;
    /* 기존 bottom: -10px; 에서 값을 대폭 올려 배치 높이를 위로 올립니다 */
    bottom: 30px; 
    right: 20px;
    border: 0;
    padding: 0;
    margin: 0;
    z-index: 10;
}

#bo_sch form {
    margin: 0 !important;
    display: block !important;
}

/* 1. 전체 테두리 박스 크기 및 내부 여백 조절 */
.search-box-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: space-between; /* 내부 요소를 양 끝으로 밀착 */
    width: 250px; /* 전체 검색창 박스의 직관적인 너비 설정 */
    height: 32px;
    border: 1.5px solid var(--primary-color); /* 캐릭터 리본색 라인 테두리 */
    border-radius: 8px; /* image_cec826 느낌의 부드러운 라운딩으로 조율 */
    background-color: #fff;
    padding: 0 10px; /* 좌우 여백을 줄여 버튼이 테두리와 가까워지게 설정 */
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.search-box-wrapper:hover,
.search-box-wrapper:focus-within {
    border-color: var(--primary-color);
}

/* 2. 글자 입력창 너비 최적화 */
.search-box-wrapper .sch_input {
    flex: 1 !important; /* 남은 공간을 꽉 채우되 */
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    background: transparent !important;
    padding: 0 8px 0 2px !important; /* 오른쪽에 마진을 살짝 주어 글자가 버튼과 겹치지 않게 방지 */
    margin: 0 !important;
    font-family: var(--content-font-family);
    font-size: 12px;
    color: var(--primary-color);
    outline: none !important;
}

.search-box-wrapper .sch_input::placeholder {
    color: var(--secondary-color);
    font-size: 13px;
}

/* 3. 돋보기 버튼을 우측 끝 테두리 안쪽으로 밀착 */
.search-box-wrapper .sch_btn {
    flex-shrink: 0; /* 크기가 압축되지 않도록 고정 */
    width: 24px; /* 아이콘 크기에 맞는 슬림한 너비 */
    height: 100%;
    border: none !important;
    background: transparent !important;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
    transition: color 0.2s ease;
}

.search-box-wrapper .sch_btn:hover {
    color: var(--primary-color);
}

.search-box-wrapper .sch_btn i {
    font-size: 13px;
}


/* ── 게시물 그리드 ── */

.movie-item {
    width: calc(1120px / 4);
    flex-shrink: 0;
}

.movie-item,
.movie-item * {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

.movie-thumb-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 2;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.movie-poster-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) brightness(0.7) sepia(30%) hue-rotate(180deg);
    transition: filter 0.4s ease, transform 0.4s ease;

    --c-size: 21px;
    --p-size: 8px;
    --p-gap: 32px;

    -webkit-mask-image:
        linear-gradient(black, black),
        radial-gradient(circle at 50% 0px,   black var(--p-size), transparent calc(var(--p-size) + 0.5px)),
        radial-gradient(circle at 50% 100%,  black var(--p-size), transparent calc(var(--p-size) + 0.5px)),
        radial-gradient(circle at 0    0,    black var(--c-size), transparent calc(var(--c-size) + 0.5px)),
        radial-gradient(circle at 100% 0,    black var(--c-size), transparent calc(var(--c-size) + 0.5px)),
        radial-gradient(circle at 0    100%, black var(--c-size), transparent calc(var(--c-size) + 0.5px)),
        radial-gradient(circle at 100% 100%, black var(--c-size), transparent calc(var(--c-size) + 0.5px));

    -webkit-mask-size:
        100% 100%,
        var(--p-gap) 100%,
        var(--p-gap) 100%,
        100% 100%, 100% 100%, 100% 100%, 100% 100%;

    -webkit-mask-repeat: no-repeat, repeat-x, repeat-x, no-repeat, no-repeat, no-repeat, no-repeat;

    -webkit-mask-position:
        0 0,
        center top,
        center bottom,
        0 0, 0 0, 0 0, 0 0;

    padding: 0 var(--c-size);
    -webkit-mask-clip: border-box, content-box, content-box, border-box, border-box, border-box, border-box;
    -webkit-mask-composite: source-over, destination-out, destination-out, destination-out, destination-out, destination-out, destination-out;
    mask-composite: exclude;
}

.movie-item:hover .movie-poster-img    { filter: grayscale(0%) brightness(1) sepia(0%) hue-rotate(0deg); transform: scale(1.05); }
.movie-item:hover .movie-thumb-container { transform: translateY(-5px); }


/* ── 푸터: 페이지네이션 ── */

.pg_wrap_box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    width: 100%;
    box-sizing: border-box;
}

.pg_group { display: flex; gap: 15px; }

.pg_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.pg_btn:hover { opacity: 0.7; }

.triangle      { width: 0; height: 0; display: inline-block; }
.triangle.left  { border-right: 10px solid var(--primary-color); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.triangle.right { border-left:  10px solid var(--primary-color); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }

.bar { width: 2px; height: 14px; background-color: var(--primary-color); display: inline-block; }
.pg_btn.first .bar { margin-right: 2px; }
.pg_btn.last  .bar { margin-left:  2px; }


/* ============================================================
   write.skin — 레이아웃
   ============================================================ */

#bo_w {
    width: 1170px;
    height: 800px;
    position: absolute;
    top: calc(50% - 400px);
    left: calc(50% - 420px);
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#bo_w::-webkit-scrollbar { display: none; }

.write-title {
    font-family: 'PuradakGentleGothic';
    font-size: 35px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.write-layout {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 20px;
}

.write-left  { flex: 0 0 320px; }
.write-right { flex: 1; }


/* ── 이미지 업로드 ── */

.img-upload-area { width: 100%; }

.log-section { margin-bottom: 18px; }

.img-upload-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.img-upload-header label {
    font-family: 'BookkMyungjo';
    font-weight: bold;
    color: #315798;
    font-size: 14px;
    margin: 0;
    display: inline;
}

.img-upload-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
}

.img-upload-btn:hover { background-color: var(--secondary-color); }

.img-dropzone {
    border: 2px dashed var(--secondary-color);
    border-radius: 4px;
    padding: 10px;
    min-height: 80px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.img-dropzone.dragover {
    border-color: var(--primary-color);
    background-color: #e8eff8;
}

.img-preview-single { display: flex; justify-content: center; align-items: flex-start; }

.img-preview-item { position: relative; display: inline-block; }

.log-section .img-preview-single .img-preview-item img {
    max-height: 200px;
    max-width: 100%;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.img-delete-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(180, 40, 40, 0.78);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    line-height: 1;
    padding: 0;
}

.img-delete-btn:hover { background: rgba(180, 40, 40, 1); }


/* ── 텍스트 필드 ── */

.info_row_group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.info_field { flex: 1; }
.info_field.half    { flex: 0 0 calc(50%    - 5px); }
.info_field.third   { flex: 0 0 calc(33.333% - 7px); }
.info_field.quarter { flex: 0 0 calc(25%    - 7.5px); }
.info_field.full    { flex: 0 0 100%; }

.info_field label {
    display: block;
    font-family: 'BookkMyungjo';
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--primary-color) !important;
    font-size: 14px;
}

.info_field input[type="text"],
.info_field input[type="date"],
.info_field select {
    width: 100%;
    margin-top: 2px;
    padding: 3px;
    border-bottom: 2px solid var(--primary-color);
    border-top: transparent;
    border-left: transparent;
    border-right: transparent;
    border-radius: 0;
    font-family: 'BelovedMyoeunttobak';
    font-size: 16px;
    box-sizing: border-box;
    background-color: transparent;
}

/* 색상 코드 커스텀 피커 */
.color-picker-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    border-bottom: 2px solid var(--primary-color);
    padding: 3px 0;
}

.color-swatch {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid var(--primary-color);
    cursor: pointer;
    display: inline-block;
}

/* 숨겨진 color input: position absolute로 스와치 근처에 두어 picker 위치 고정 */
.color-picker-row input[type="color"] {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 0;
    opacity: 0;
    padding: 0;
    border: none;
    pointer-events: none;
}

.color-hex-input {
    flex: 1;
    border: none !important;
    border-bottom: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent;
    font-family: 'BelovedMyoeunttobak';
    font-size: 16px;
    color: inherit;
    outline: none;
    width: 100%;
}

.info_field textarea {
    width: 100%;
    min-height: 120px;
    margin-top: 2px;
    padding: 3px;
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    border-left: transparent;
    border-right: transparent;
    border-radius: 0;
    font-family: 'BelovedMyoeunttobak';
    font-size: 16px;
    box-sizing: border-box;
    background-color: transparent;
    resize: vertical;
    line-height: 1.6;
}


/* ── 제출 버튼 ── */

.btn-box {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px 0;
}

#bo_w .btn_submit,
#bo_w .btn_cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0 14px;
    height: 32px;
    font-size: 14px;
    font-weight: normal;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s;
    line-height: 1;
}

#bo_w .btn_submit:hover,
#bo_w .btn_cancel:hover { background-color: var(--secondary-color); }


/* ============================================================
   view.skin — 레이아웃
   ============================================================ */

#bo_v {
    width: 1170px;
    height: 800px;
    position: absolute;
    top: calc(50% - 400px);
    left: calc(50% - 420px);
    padding: 10px;
    box-sizing: border-box;
}

.view-container {
    width: 100%;
    height: 100%;
    display: flex;
    gap: 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

/* view-thread: flex 자식이 스크롤 되려면
   부모가 고정 높이를 가져야 하므로
   .view-container를 기준으로 min-height: 0 사용 */
.view-thread {
    flex: 1;
    min-height: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.view-thread::-webkit-scrollbar { display: none; }

.view-receipt-wrapper {
    flex: 0 0 320px;
    align-self: flex-start;
    position: sticky;
    top: 15px;
    margin-right: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rc-tape-img {
    width: 140px;
    height: auto;
    display: block;
    transform: rotate(-2deg);
    margin-bottom: -20px;
    position: relative;
    z-index: 3;
    pointer-events: none;
}

.view-receipt {
    width: 100%;
    background-color: whitesmoke;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.25);
    font-family: 'D2Coding';
    padding: 40px 24px 40px;
    box-sizing: border-box;
    color: #222;
    letter-spacing: -0.1em;
}

/* ── 영수증 내부 요소 ── */

.rc-title {
    font-family: 'GMarketSans' !important;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    letter-spacing: -1px;
    margin-bottom: 5px;
    line-height: 1.1;
}

.rc-meta {
    font-family: 'GMarketSans' !important;
    font-weight: 500;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 14px;
    letter-spacing: -0.5px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.rc-divider {
    width: 100%;
    border: none;
    border-top: 1.5px dashed #888;
    margin: 0;
}

.rc-catchphrase {
    font-size: 13px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
    line-height: 1.5;
    word-break: break-all;
}

.rc-log {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0;
}

.rc-log-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.rc-log-date { flex: 1; }
.rc-log-time { flex-shrink: 0; text-align: right; }

.rc-stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin: 0;
}

.rc-stat-row:last-of-type { padding-bottom: 8px; }

.rc-card {
    font-size: 13px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin: 0;
}

.rc-card:last-of-type { padding-bottom: 0; }

.receipt-title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin: 0 auto;
    padding: 30px 0px 20px 0px;
}

.receipt-info {
    font-size: 16px;
    display: flex;
    flex-direction: row;
    gap: 30px;
    margin: 0 auto;
}


/* ── 뷰 히어로 ── */

.view-hero {
    width: 100%;
    min-height: 300px;
    background-size: cover;
    background-position: center top;
    background-color: #111;
    position: relative;
    display: flex;
    align-items: flex-end;
    border-radius: 8px;
    overflow: hidden;
}

.view-hero-gradient {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        to top,
        rgba(10,10,10,0.95) 0%,
        rgba(10,10,10,0.5)  50%,
        rgba(10,10,10,0.1)  100%
    );
}

.view-hero-content {
    position: relative;
    z-index: 2;
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.view-title {
    font-family: 'GMarketSans';
    font-weight: 700;
    font-size: 30px;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.view-plot {
    font-family: 'Pretendard';
    font-size: 14px;
    color: rgba(255,255,255,0.82);
    line-height: 1.65;
    max-width: 480px;
}

/* ── 액션 버튼 ── */

.view-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.view-action-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7);
    background: transparent;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.view-action-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    transform: scale(1.08);
}

.view-action-btn.active {
    background: rgba(255,255,255,0.9);
    color: #111;
    border-color: #fff;
}

#like-btn.liked {
    background: rgba(220,50,50,0.85);
    border-color: rgba(220,50,50,0.9);
    color: #fff;
}

/* ── 스레드 본문 ── */

.thread-content {
    flex: 1;
    background: rgba(15,15,15,0.92);
    color: rgba(255,255,255,0.88);
    font-family: 'BookkMyungjo', serif;
    font-size: 15px;
    line-height: 1.9;
    padding: 28px;
    overflow-y: auto;
    scrollbar-width: none;
}

.thread-content::-webkit-scrollbar { display: none; }



.bg-blur-layer {
    position: fixed;
    top: -30px;
    left: -30px;
    width: calc(100vw + 60px);
    height: calc(100vh + 60px);
    background-size: cover;
    background-position: center;
    filter: blur(18px) saturate(1.8) brightness(0.35);
    z-index: -1;
}

.bg-blur-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0.1)  0%,
        rgba(0,0,0,0.5)  60%,
        rgba(0,0,0,0.85) 100%
    );
    z-index: -1;
}

.view-layout-wrapper {
    border-radius: 4px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.06),
        0 8px 32px rgba(0,0,0,0.6),
        0 32px 80px rgba(0,0,0,0.4);
    overflow: hidden;
}

.view-layout {
    width: 1000px;
    height: 800px;
    overflow-y: scroll;
    overflow-x: hidden;
    margin: 0 auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.view-layout::-webkit-scrollbar { display: none; }


/* ── 뷰어 헤더 ── */

.movie-header {
    width: 100%;
    min-height: 400px;
    background-color: #111;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.movie-overlay {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(17,17,17,1) 10%, rgba(17,17,17,0.4) 50%, rgba(17,17,17,0) 100%);
    padding: 40px 20px;
    box-sizing: border-box;
}

.movie-header-admin {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.btn-admin {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0,0,0,0.4);
    color: rgba(255,255,255,0.7) !important;
    text-decoration: none;
    border-radius: 2px;
    font-size: 11px;
    border: 1px solid rgba(255,255,255,0.3);
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-admin:hover {
    background: rgba(229,9,20,0.8);
    color: #fff !important;
    border-color: transparent;
}

.btn-admin i { margin-right: 4px; }














/* ── 뷰어 인포 ── */

.movie-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    gap: 30px;
}

.movie-poster     { flex: 0 0 250px; }
.movie-poster img { width: 100%; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }

.movie-content {
    flex: 1;
    color: #fff;
    padding-bottom: 10px;
}

.movie-title {
    font-family: 'PyeojinGothic';
    font-weight: 700;
    font-size: 32px;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
    line-height: 1.2;
}

.movie-plot {
    font-family: 'PyeojinGothic';
    font-weight: 400;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    margin-bottom: 14px;
    max-width: 520px;
}

.movie-etc    { display: flex; flex-direction: row; gap: 30px; }

.movie-player {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.movie-staff {
    flex: 0 0 230px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: 'PyeojinGothic';
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 15px;
}

.movie-staff span { display: block; }


/* ── BGM 플레이어 ── */

.play-btn {
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.play-btn::after {
    content: '';
    position: absolute;
    left: 16px;
    top: 12px;
    border-left: 12px solid #111;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    transition: all 0.2s;
}

.play-btn.playing::after {
    left: 14px;
    top: 12px;
    width: 12px;
    height: 16px;
    border-left: 4px solid #111;
    border-right: 4px solid #111;
    border-top: 0;
    border-bottom: 0;
    background: transparent;
}

.player-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    max-width: 300px;
    margin-top: 15px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 2px;
    position: relative;
}

.progress-fill {
    width: 40%;
    height: 100%;
    background-color: #e50914;
    border-radius: 2px;
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-family: 'Cutive Mono', monospace;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.5px;
}


/* ── 세션 본문 ── */

.session-frame {
    background-color: rgba(17,17,17,1);
    padding: 30px;
}


/* ── 영수증 스타일 콘텐츠 ── */

.receipt-content {
    font-family: 'Cutive Mono';
    font-size: 14px;
    font-weight: bold;
    padding: 50px 30px;
    background-color: whitesmoke;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    color: #333;
}

.receipt-divider {
    width: 100%;
    border-top: 2px dashed #999;
    margin: 10px 0;
}

.receipt-top    { text-align: center; margin-bottom: 10px; text-transform: uppercase; }
.receipt-middle { width: 100%; word-break: break-all; }

.receipt-date-row,
.receipt-bottom { display: flex; justify-content: space-between; width: 100%; }

.receipt-barcode {
    font-family: 'Libre Barcode 39 Text';
    font-size: 40px;
    text-align: center;
    margin-top: 20px;
    width: 100%;
    font-weight: normal !important;
}


/* ============================================================
   댓글
   ============================================================ */

.cmt_btn {
    display: block;
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1em;
    font-weight: 600;
    color: var(--content-font-color);
    background: var(--container-bg-color);
    transition: var(--transition-fast);
    text-align: left;
    border: 0;
}

.cmt_btn:hover {
    background: linear-gradient(135deg,
        rgb(from var(--primary-color) r g b / 5%)  0%,
        rgb(from var(--primary-color) r g b / 10%) 100%
    );
    border-color: var(--primary-color);
}

.cmt_btn strong {
    color: var(--primary-color);
    margin-left: var(--spacing-xs);
}

/* 댓글 아이템 */
.comment_item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: box-shadow 0.2s;
}
.comment_item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.13); }

/* ── 헤더 ── */
.cmt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.cmt-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 프로필 아바타 */
.cmt-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--light-bg-color);
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--input-border-color, #ececec);
}
.cmt-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cmt-avatar .fa-user-circle { font-size: 32px; color: var(--text-muted); line-height: 1; }

.cmt-author {
    font-size: 0.92em;
    font-weight: 700;
    color: var(--content-font-color);
}
.cmt-date {
    font-size: 0.78em;
    color: var(--text-muted, #999);
}

/* 수정·삭제 버튼 */
.cmt-header-right {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.15s;
}
.comment_item:hover .cmt-header-right { opacity: 1; }

.cmt-action-btn {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: none;
    background: none;
    color: #bbb;
    font-size: 0.82em;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.cmt-action-btn:hover { color: #888; }
.cmt-delete-btn:hover { color: #888; }

/* 본문 */
.cmt-content {
    font-size: 0.93em;
    line-height: 1.7;
    color: var(--content-font-color);
    word-wrap: break-word;
    margin-bottom: 10px;
}

/* 하단 액션 */
.cmt-footer {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}
.cmt-footer-btn {
    width: 32px; height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1em;
    color: #bbb;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.cmt-footer-btn:hover { color: #888; }
.cmt-like-btn:hover    { color: #e0245e; }
.cmt-like-btn.liked    { color: #e0245e; }
.cmt-like-btn.like-pop { transform: scale(1.3); transition: transform 0.15s; }
.cmt-like-count        { font-size: 0.8em; font-weight: 700; margin-left: 2px; }

/* 비밀글 뱃지 */
.badge_secret {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: linear-gradient(135deg, var(--warning-color), #ff9800);
    color: var(--white);
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    margin-right: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

/* 옵션 메뉴 */
.comment_options {
    position: relative;
    flex-shrink: 0;
    margin-left: var(--spacing-sm);
}

.btn_cm_opt {
    padding: var(--spacing-xs) var(--spacing-sm);
    background-color: transparent;
    border: 1px solid var(--border-light);
    border-radius: var(--card-border-radius);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn_cm_opt:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.comment_actions_menu {
    display: none;
    position: absolute;
    right: 0;
    margin-top: var(--spacing-xs);
    background-color: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--card-border-radius);
    box-shadow: 0 4px 12px rgb(from var(--text-color) r g b / 15%);
    z-index: 100;
    min-width: 120px;
}

.comment_actions_menu li { list-style: none; }

.comment_actions_menu li a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--content-font-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

.comment_actions_menu li a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.comment_actions_menu li a i { margin-right: var(--spacing-xs); }


/* ── 댓글 입력 폼 ── */

#bo_vc {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 0;
}

#bo_vc_w {
    padding: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.comment_form_container { display: flex; flex-direction: column; gap: 0; }

/* 게스트 입력 */
.cmt-guest-row {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-light);
}
.cmt-guest-input {
    flex: 1;
    padding: 7px 12px;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 0.9em;
    background: var(--form-bg-color);
    color: var(--form-text-color);
    outline: none;
}
.cmt-guest-input:focus { border-color: var(--primary-color); }

/* 트위터 스타일 작성행 */
.cmt-write-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--border-light);
}

.cmt-write-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--light-bg-color);
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--input-border-color, #ececec);
    margin-top: 2px;
}
.cmt-write-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cmt-write-avatar .fa-user-circle { font-size: 34px; color: var(--text-muted); line-height: 1; }

.cmt-write-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cmt-textarea {
    width: 100%;
    min-height: 68px;
    padding: 6px 0;
    border: none;
    border-bottom: 1.5px solid var(--input-border-color, #eee);
    background: transparent;
    color: var(--content-font-color);
    font-size: 0.97em;
    line-height: 1.6;
    resize: none;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.cmt-textarea:focus { border-bottom-color: var(--primary-color); }
.cmt-textarea::placeholder { color: var(--text-muted); opacity: 0.6; }

.cmt-write-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.cmt-char-counter {
    font-size: 0.8em;
    color: var(--text-muted);
    margin-right: auto;
}

.cmt-secret-label {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s;
}
.cmt-secret-label input { display: none; }
.cmt-secret-label:has(input:checked) { color: var(--primary-color); }

.cmt-submit-btn {
    padding: 5px 18px;
    background: var(--primary-color);
    color: var(--btn-primary-text, #fff);
    border: none;
    border-radius: 20px;
    font-size: 0.88em;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.15s, transform 0.15s;
}
.cmt-submit-btn:hover { filter: brightness(0.93); transform: translateY(-1px); }

.char_counter { font-size: 0.85em; color: var(--text-muted); white-space: nowrap; }

.captcha_row {
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-light);
}

#bo_vc_empty {
    margin: 0;
    padding: 30px 0 20px !important;
    color: var(--text-muted);
    text-align: center;
}


/* ============================================================
   반응형
   ============================================================ */

@media (max-width: 768px) {
    #bo_list .td_chk      { width: 25px; padding: var(--spacing-xs); }
    #bo_list .td_num2     { display: none; }
    #bo_list .td_datetime { display: none; }
    #bo_list .td_name     { width: 60px; font-size: 0.85em; }
    .td_subject           { padding-left: var(--spacing-sm) !important; }

    #bo_list thead th:nth-child(2),
    #bo_list thead th:last-child { display: none; }
}




/* ============================================================
   TWITTER-STYLE MEMO / THREAD
   ============================================================ */

/* 목록 컨테이너 */
.memo-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── 카드 ── */
.memo-item {
    display: flex;
    gap: 12px;
    background: var(--card-bg-color);
    border-bottom: 1px solid var(--card-border-color, #efefef);
    padding: 14px 16px;
    position: relative;
    transition: background 0.15s;
}
.memo-item:hover { background: var(--light-bg-color); }

/* ── 아바타 ── */
.memo-avatar {
    width: 44px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.memo-avatar > img,
.memo-avatar > .fa-user-circle {
    width: 44px; height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--light-bg-color);
    border: 1.5px solid var(--input-border-color, #ececec);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--text-muted);
    line-height: 1;
}

/* ── 본문 영역 ── */
.memo-body { flex: 1; min-width: 0; }

/* ── 헤더 ── */
.memo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 2px;
}
.memo-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
}
.memo-name {
    font-weight: 700;
    font-size: 1em;
    color: var(--content-font-color);
    white-space: nowrap;
}
.memo-rank {
    font-size: 0.8em;
    font-weight: normal;
}
.memo-category {
    display: inline-block;
    padding: 1px 8px;
    background: var(--primary-color);
    color: var(--btn-primary-text, #7a3f3a);
    border-radius: 20px;
    font-size: 0.74em;
    font-weight: 600;
}
.memo-date {
    font-size: 0.78em;
    color: var(--text-muted);
    white-space: nowrap;
}
.memo-secret-badge {
    font-size: 0.76em;
    color: var(--text-muted);
}

/* ── 수정·삭제 버튼 (hover 시 노출) ── */
.memo-actions {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.15s;
}
.memo-item:hover .memo-actions { opacity: 1; }

.memo-edit-btn,
.memo-delete-btn {
    width: 28px; height: 28px;
    border: none;
    background: none;
    color: var(--text-muted);
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.memo-edit-btn:hover   { background: var(--light-bg-color); color: var(--primary-color); }
.memo-delete-btn:hover { background: rgba(220,50,50,0.08); color: var(--danger-color, #dc3232); }

/* ── 본문 텍스트 ── */
.memo-content {
    font-size: 0.97em;
    line-height: 1.65;
    color: var(--content-font-color);
    white-space: normal;
    word-break: break-word;
    margin-bottom: 2px;
}

/* ── 수정 폼 ── */
.memo-edit-area { margin-top: 8px; }
.memo-edit-textarea {
    width: 100%;
    min-height: 72px;
    padding: 8px 0;
    border: none;
    border-bottom: 1.5px solid var(--input-border-color, #eee);
    background: transparent;
    color: var(--content-font-color);
    font-size: 0.97em;
    line-height: 1.6;
    resize: none;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.memo-edit-textarea:focus { border-bottom-color: var(--primary-color); }

.memo-edit-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.memo-save-btn,
.memo-cancel-btn {
    padding: 5px 16px;
    border: none;
    border-radius: 20px;
    font-size: 0.87em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.memo-save-btn   { background: var(--primary-color); color: var(--btn-primary-text, #7a3f3a); margin-left: auto; }
.memo-cancel-btn { background: var(--light-bg-color); color: var(--text-muted); }
.memo-save-btn:hover   { filter: brightness(0.95); }
.memo-cancel-btn:hover { background: var(--card-border-color); }

/* ── 액션바 (reply + 좋아요) ── */
.memo-reply-section { margin-top: 10px; margin-bottom: 8px; }

.memo-action-bar {
    display: flex;
    align-items: center;
    gap: 4px;
}

.memo-reply-toggle,
.memo-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 0.88em;
    cursor: pointer;
    border-radius: 20px;
    transition: background 0.15s, color 0.15s;
}
.memo-reply-toggle:hover { background: var(--light-bg-color); color: var(--primary-color); }
.memo-reply-toggle .memo-reply-count { font-weight: 700; color: var(--primary-color); }

.memo-like-btn:hover       { background: rgba(224,36,94,0.08); color: #e0245e; }
.memo-like-btn.liked       { color: #e0245e; }
.memo-like-btn.like-pop    { transform: scale(1.3); }
.memo-like-btn .memo-like-count { font-weight: 700; }

/* 좋아요한 사람 */
.memo-liked-by {
    font-size: 0.78em;
    color: var(--text-muted);
    margin-top: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}
.memo-liked-by i      { color: #e0245e; font-size: 0.85em; }
.memo-liked-by strong { color: var(--content-font-color); }
.memo-liked-by:hover  { text-decoration: underline; }

/* 좋아요 목록 */
.memo-liker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--card-border-color, #eee);
    font-size: 0.9em;
}
.memo-liker-item:last-child { border-bottom: none; }
.memo-liker-item img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.memo-liker-item i   { font-size: 32px; color: var(--text-muted); }

/* ── 답글 영역 ── */
.memo-reply-area { margin-top: 4px; }
.memo-reply-loading,
.memo-reply-empty,
.memo-reply-error {
    padding: 12px 0;
    font-size: 0.88em;
    color: var(--text-muted);
    text-align: center;
}
.memo-reply-error { color: var(--danger-color, #dc3232); }

.memo-reply-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--card-border-color, #efefef);
}
.memo-reply-item:last-child { border-bottom: none; }

.memo-reply-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--light-bg-color);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.memo-reply-avatar img          { width: 100%; height: 100%; object-fit: cover; }
.memo-reply-avatar .fa-user-circle { font-size: 28px; color: var(--text-muted); line-height: 1; }

/* ── 작성란 (트위터 스타일) ── */
.memo-write-area {
    background: var(--card-bg-color);
    border-bottom: 1px solid var(--card-border-color, #efefef);
    padding: 14px 16px;
    margin-bottom: 0;
}
.memo-write-inner {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.memo-write-body {
    flex: 1;
    border-bottom: 1.5px solid var(--input-border-color, #eee);
    padding-bottom: 10px;
    transition: border-color 0.2s;
}
.memo-write-body:focus-within { border-bottom-color: var(--primary-color); }

.memo-write-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--light-bg-color);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.memo-write-avatar img { width: 100%; height: 100%; object-fit: cover; }
.memo-write-avatar .fa-user-circle { font-size: 40px; color: var(--text-muted); line-height: 1; }

.memo-input {
    width: 100%;
    min-height: 72px;
    padding: 6px 0;
    border: none;
    background: transparent;
    color: var(--content-font-color);
    font-size: 1.05em;
    line-height: 1.6;
    resize: none;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
}
.memo-input::placeholder { color: var(--text-muted); opacity: 0.6; }

.memo-write-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}
.memo-select {
    padding: 5px 12px;
    border: 1px solid var(--input-border-color, #ddd);
    border-radius: 20px;
    background: var(--form-bg-color);
    color: var(--form-text-color);
    font-size: 0.87em;
    cursor: pointer;
}
.memo-submit-btn {
    padding: 6px 20px;
    background: var(--primary-color);
    color: var(--btn-primary-text, #7a3f3a);
    border: none;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.memo-submit-btn:hover { filter: brightness(0.95); transform: translateY(-1px); }

/* ── 툴바 ── */
.memo-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: auto;
}
.memo-img-btn,
.memo-secret-btn,
.memo-spoiler-btn {
    width: 32px; height: 32px;
    border: none;
    background: none;
    color: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.memo-img-btn:hover,
.memo-secret-btn:hover,
.memo-spoiler-btn:hover { background: var(--light-bg-color); }

