/* TR_LOG 게시판 스타일 */

/* 게시판 전체 커스텀 폰트: DungGeunMo (타래에 적는 글씨는 제외) */
@font-face {
    font-family: 'DungGeunMo';
    src: url('fonts/DungGeunMo.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body,
input,
textarea,
select,
button {
    font-family: 'DungGeunMo', sans-serif !important;
}

/* 글 입력창(입력/텍스트영역/선택박스)은 DungGeunMo 대신 Pretendard Light 사용 */
input,
textarea,
select {
    font-family: 'Pretendard Light', sans-serif !important;
    font-weight: 300;
}

/* 타래에 적는 글 전용 커스텀 폰트: Pretendard Light */
/* 위 게시판 전체 DungGeunMo 규칙보다 더 구체적인 선택자라 여기만 예외로 적용됨 */
@font-face {
    font-family: 'Pretendard Light';
    src: url('fonts/PretendardLight.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

.log20_tarae_reply_textarea,
.log20_tarae_thread_text {
    font-family: 'Pretendard Light', sans-serif !important;
    font-weight: 300;
    letter-spacing: -0.02em;
    font-size: 12px;
    line-height: 1.3;
}

/* 목록 영역 */
.log20_list_area {
    width: 100%;
    height: 100%;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    align-items: flex-start;
}

.log20_list_item {
    flex: 0 1 auto;
    height: 300px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
    transition: transform 0.2s;
    box-sizing: border-box;
}

.log20_order_badge {
    position: absolute;
    right: 6px;
    bottom: 6px;
    height: 15px;
    font-size: 12px;
    padding: 0 4px;
    border-radius: 2px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    padding-bottom: 2px;
}

.log20_item_link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.log20_item_image {
    width: 100%;
    height: calc(100% - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    overflow: hidden;
    position: relative;
    border-top: none;
    line-height: 0;
    margin: 0;
    padding: 0;
}

.log20_item_image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, transparent 0%, var(--bg-color, transparent) 100%);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    z-index: 3;
}

.log20_list_item:hover .log20_item_image::before {
    opacity: 1;
}

/* pclist 전용 스타일 */
.log20_list_pclist_area {
    width: 100%;
    height: 100%;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
}

.log20_list_pclist_item {
    width: calc((100% - 60px) / 4);
    min-width: 200px;
    max-width: 300px;
    height: 300px;
    position: relative;
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
    background: var(--white);
    transition: transform 0.2s;
    flex: 0 0 calc((100% - 60px) / 4);
}

.log20_list_pclist_link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.log20_list_pclist_image {
    width: 100%;
    height: calc(100% - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    overflow: hidden;
    position: relative;
    border-top: none;
}

.log20_list_pclist_image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, var(--bg-color, transparent) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    z-index: 3;
}

.log20_list_pclist_item:hover .log20_list_pclist_image::before {
    opacity: 1 !important;
    background: linear-gradient(to bottom, var(--bg-color, transparent) 0%, transparent 100%) !important;
}

.log20_list_pclist_subtitle {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s;
    z-index: 4;
    pointer-events: none;
    text-align: center;
    width: 70%;
    max-width: 70%;
    word-wrap: break-word;
    word-break: break-word;
    line-height: 1.4;
}

.log20_list_pclist_item:hover .log20_list_pclist_subtitle {
    opacity: 1 !important;
    color: var(--pclist-title-color, #000000) !important;
}

.log20_list_pclist_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.log20_list_pclist_image i {
    font-size: 120px;
    position: relative;
    z-index: 1;
}

.log20_list_pclist_title {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    background: var(--white);
    border-bottom: none;
    transition: color 0.2s;
}

.log20_list_pclist_item:hover .log20_list_pclist_title {
    color: var(--pclist-title-color, #000000) !important;
}

/* pclist 동적 뷰 컨테이너 */
.log20_pclist_view_container {
    position: relative;
    width: 100%;
    flex-basis: 100%;
    min-height: 100px;
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    justify-content: flex-start;
}

.log20_pclist_view_item {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
    animation: fadeIn 0.3s ease-in;
    max-width: 100%;
    box-sizing: border-box;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.log20_pclist_view_item.log20_pclist_view_left {
    width: 48% !important;
    margin-right: auto;
    margin-left: 0;
}

.log20_pclist_view_item.log20_pclist_view_right {
    width: 48% !important;
    margin-left: auto;
    margin-right: 0;
}

.log20_pclist_view_actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    z-index: 11;
}

.log20_pclist_view_action_text {
    font-size: 14px;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.log20_pclist_view_action_text:hover {
    opacity: 0.7;
}

.log20_pclist_view_loading,
.log20_pclist_view_error {
    padding: 40px;
    text-align: center;
    color: #666;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.log20_item_subtitle {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 4;
    pointer-events: none;
    text-align: center;
    width: 70%;
    max-width: 70%;
    word-wrap: break-word;
    word-break: break-word;
    line-height: 1.4;
}

.log20_list_item:hover .log20_item_subtitle {
    opacity: 1;
}

.log20_item_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
    vertical-align: top;
}

.log20_item_image i {
    font-size: 120px;
    position: relative;
    z-index: 1;
}

.log20_item_title {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    background: var(--white);
    border-bottom: none;
}

.log20_chk {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.log20_empty {
    width: 100%;
    text-align: center;
    padding: 50px 0;
    color: var(--text-muted);
}

.log20_top_buttons {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 0;
}

/* tarae (메모) 전용 스타일 */
.log20_list_tarae_area {
    width: 100%;
    margin: 0;
    padding: 0;
}

.log20_tarae_footer {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 12px;
    margin-left: 10px;
}

.log20_tarae_footer_btn {
    min-width: 60px;
    height: 27px;
    padding: 0 12px;
    border: 1px solid #3f6fef;
    background: #3f70ef;
    color: #dbed8f;
    font-size: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.log20_tarae_footer_btn--icon {
    width: 36px;
    min-width: 27px;
    height: 25px;
    padding: 0 8px;
    margin-bottom: 5px;
}

.log20_tarae_toggle_btn {
    font-size: 11px;
    min-width: 44px;
    height: 25px;
    padding: 0 8px;
    margin-bottom: 5px;
}

.log20_tarae_footer_btn:hover {
    background-color: var(--accent-color, #666);
    color: var(--action-color, #333);
    border-color: var(--action-color, #333);
}

.log20_tarae_reply {
    margin: 10px 0 10px 10px;
}

.log20_tarae_thread {
    margin: 15px 0 0 0px;
    padding: 0;
    border: 1px solid var(--card-bg-color);
    border-radius: 9px;
    background: #1e1e1ea3;
}

.log20_tarae_thread_toggle_top {
    margin: 0 0 8px 0;
}

.log20_tarae_thread_item {
    position: relative;
    padding: 10px 25px 10px 25px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.log20_tarae_thread_item:last-child {
    margin-bottom: 0;
}

/* 트위터 타래처럼 프로필 위/아래로 이어지는 연결선 */
/* 아래로 이어지는 선: 마지막 항목이 아니면 (프로필 하단 -> 다음 항목까지) */
.log20_tarae_thread_item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 46px;
    top: 81px;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.35);
}

/* 위에서 이어지는 선: 첫 항목이 아니면 (항목 상단 -> 프로필 상단까지) */
.log20_tarae_thread_item:not(:first-child)::before {
    content: '';
    position: absolute;
    left: 46px;
    top: 0;
    height: 21px;
    width: 2px;
    background: rgba(255, 255, 255, 0.35);
}

.log20_tarae_thread_meta {
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 11px;
    color: #666;
    margin: 5px 0px 0px 54px;
}

.log20_tarae_thread_profile {
    position: absolute;
    left: 17px;
    top: 21px;
    width: 60px;
    height: 60px;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    z-index: 1;
}

.log20_tarae_thread_profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.log20_tarae_thread_profile_fallback {
    font-size: 22px;
    color: #666;
    font-weight: 600;
}

.log20_tarae_thread_title {
    font-weight: 600;
    color: #ffffff;
    margin-left: 6px;
    font-size: 0;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.log20_tarae_thread_date {
    margin-left: auto;
    color: #d8eb8ed6;
}

.log20_tarae_thread_share,
.log20_tarae_thread_edit,
.log20_tarae_thread_delete {
    font-size: 11px;
    color: #999;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0 2px;
}

.log20_tarae_thread_share:hover,
.log20_tarae_thread_edit:hover,
.log20_tarae_thread_delete:hover {
    color: #333;
}


.log20_tarae_thread_content {
    font-size: 13px;
    line-height: 1.6;
    color: #333;
}

.log20_tarae_thread_body {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 16px;
    align-items: flex-start;
    margin-left: 54px;
}

.log20_tarae_thread_body.has-images {
    padding: 15px 15px;
    padding-left: 0;
}

.log20_tarae_thread_body.no-images {
    display: block;
}

.log20_tarae_thread_text {
    grid-column: 1;
    grid-row: 1;
    word-wrap: break-word;
    padding: 8px 8px 25px 8px;
}

/* interact(댓글/관심별) 버튼 */
.interact_btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 0;
    padding-left: 0 !important;
}
.interact_btn_comment {
    width: 18px;
    height: 18px;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: color 0.15s;
}
.interact_btn_comment i {
    font-size: 18px;
    line-height: 18px;
    width: 18px;
    height: 18px;
}
.interact_btn_comment:hover {
    color: #4374ff;
}
.interact_btn_interest {
    width: 18px;
    height: 18px;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #999;
}
.interact_btn_interest i {
    font-size: 20px;
    line-height: 18px;
    width: 18px;
    height: 18px;
}
.interact_btn_interest:disabled {
    cursor: default;
    opacity: 0.8;
}
.interact_btn[data-voted="1"] .interact_btn_interest {
    color: #f5b301;
}
.interact_btn_count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 18px;
    color: #f5b301;
    min-width: 12px;
    height: 18px;
}
.interact_btn_balloon {
    display: none;
    position: absolute;
    left: 0;
    bottom: calc(100% + 10px);
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(20, 20, 20, 0.92);
    color: #fff;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    max-width: 60vw;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    z-index: 5;
}
.interact_btn_balloon::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 14px;
    border: 5px solid transparent;
    border-top-color: rgba(20, 20, 20, 0.92);
}

.log20_tarae_thread_body .log20_tarae_images_rows {
    grid-column: 2;
    grid-row: 1;
    max-width: 100%;
}

.log20_tarae_thread_body .log20_tarae_images_row {
    max-width: 100%;
}

.log20_tarae_thread_body .log20_tarae_image_item img {
    max-width: 100%;
    height: auto;
    max-height: var(--tarae-image-max-height, 200px);
    object-fit: contain;
}

.log20_tarae_embed {
    margin: 16px 0;
    max-width: 100%;
    border: 1px solid var(--action-color, var(--border-light));
    border-radius: 6px;
    overflow: hidden;
}

.log20_tarae_embed_card {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 0;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    background: var(--white);
    overflow: hidden;
}

.log20_tarae_embed_image {
    width: 100%;
    max-width: none;
    height: 160px;
    flex: 0 0 160px;
    background: #f5f5f5;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.log20_tarae_embed_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.log20_tarae_embed_meta {
    padding: 8px 10px;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.log20_tarae_embed_title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.log20_tarae_embed_desc {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    max-height: 2.8em;
    overflow: hidden;
}

.log20_tarae_embed_url {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}


.log20_tarae_thread--empty {
    background: transparent !important;
    border-color: transparent !important;
}

.log20_tarae_thread_empty {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #999;
}

.log20_tarae_thread_start_btn {
    width: 18px;
    height: 18px;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: color 0.15s;
}

.log20_tarae_thread_start_btn i {
    font-size: 16px;
    line-height: 16px;
    width: 16px;
    height: 16px;
}

.log20_tarae_thread_start_btn:hover {
    color: #4374ff;
}

.log20_tarae_reply_textarea {
    width: 100%;
    min-height: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    /* font-size/font-family는 상단의 "타래 전용 폰트" 규칙에서 지정 (14px, 온글잎 긍정) */
    line-height: 1.5;
}

.log20_tarae_reply_preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.log20_tarae_reply_preview_item {
    position: relative;
    width: calc(12.5% - 6px);
    max-width: 60px;
    aspect-ratio: 1 / 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #fafafa;
    cursor: grab;
}

.log20_tarae_reply_preview_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.log20_tarae_reply_preview_item.is-dragging {
    opacity: 0.6;
}

.log20_tarae_reply_preview_item.is-drop-target {
    outline: 2px dashed var(--action-color, #333);
    outline-offset: 2px;
}

.log20_tarae_reply_preview_remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.log20_tarae_reply_guest {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.log20_tarae_reply_input {
    flex: 1 1 0;
    min-width: 0;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.log20_tarae_reply_actions {
    margin-top: 8px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.log20_tarae_reply_actions--secondary {
    margin-top: 6px;
    align-items: flex-start;
    flex-wrap: wrap;
}

@media (max-width: 1024px) {
    .log20_tarae_reply_actions--secondary {
        flex-direction: column;
        align-items: stretch;
    }

    .log20_tarae_reply_actions--secondary .log20_tarae_reply_url,
    .log20_tarae_reply_actions--secondary .log20_tarae_reply_paste,
    .log20_tarae_reply_actions--secondary .log20_tarae_reply_youtube {
        display: block;
        width: 100%;
        flex: 0 0 100%;
    }

    .log20_tarae_reply_actions--secondary .log20_tarae_reply_url_input,
    .log20_tarae_reply_actions--secondary .log20_tarae_reply_paste_input,
    .log20_tarae_reply_actions--secondary .log20_tarae_reply_youtube_input {
        width: 100%;
        max-width: 100%;
    }
}

.log20_tarae_reply_uploading {
    display: none;
    font-size: 12px;
    color: #666;
    margin-left: 6px;
}

.log20_tarae_reply_uploading.is-visible {
    display: inline-block;
}

.log20_tarae_reply_actions_spacer {
    flex: 1 1 auto;
}

.log20_tarae_reply_cancel {
    margin-left: 0;
}

.log20_tarae_reply_attach {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--action-color, #333);
    background: #fff;
    color: var(--action-color, #333);
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.log20_tarae_reply_attach:hover {
    background-color: var(--accent-color, #666);
    color: var(--action-color, #333);
    border-color: var(--action-color, #333);
}

.log20_tarae_reply_file_count {
    font-size: 12px;
    color: #666;
}

.log20_tarae_reply_url {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.log20_tarae_reply_url_input {
    width: 200px;
    max-width: 200px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
}

.log20_tarae_reply_url_done,
.log20_tarae_reply_url_cancel {
    border: 1px solid var(--action-color, #333);
    background: #fff;
    color: var(--action-color, #333);
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
}

.log20_tarae_reply_url_cancel {
    border-color: #ccc;
    color: #666;
}

.log20_tarae_reply_url_done:hover {
    background-color: var(--accent-color, #666);
    color: var(--action-color, #333);
    border-color: var(--action-color, #333);
}

.log20_tarae_reply_url_cancel:hover {
    border-color: #999;
    color: #333;
}

.log20_tarae_reply_paste {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.log20_tarae_reply_youtube {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.log20_tarae_reply_paste_input {
    width: 200px;
    max-width: 200px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
}

.log20_tarae_reply_youtube_input {
    width: 200px;
    max-width: 200px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
}

.log20_tarae_reply_paste_cancel {
    border: 1px solid #ccc;
    background: #fff;
    color: #666;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
}

.log20_tarae_reply_youtube_cancel {
    border: 1px solid #ccc;
    background: #fff;
    color: #666;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
}

.log20_tarae_youtube {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    padding-top: 0;
    margin-bottom: 8px;
}

.log20_tarae_youtube iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .log20_tarae_youtube {
        max-width: 100%;
    }
}

/* 이미지 없이 유튜브만 첨부한 경우: 데스크탑 60% */
.log20_tarae_body.no-images .log20_tarae_youtube {
    max-width: 60%;
}

/* 모바일에서 이미지 없이 유튜브만 첨부: 100% */
@media (max-width: 768px) {
    .log20_tarae_body.no-images .log20_tarae_youtube {
        max-width: 100%;
    }
}

/* 이미지와 함께 유튜브 첨부: thread text 100% */
.log20_tarae_thread_body.has-images .log20_tarae_thread_text .log20_tarae_youtube {
    max-width: 100%;
}

/* 모바일/작은 화면: 이미지를 무조건 텍스트 아래에 배치, 높이 유동적 */
@media (max-width: 768px) {
    .log20_tarae_thread_body.has-images {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding-left: 15px;
        height: auto;
        min-height: 0;
        align-items: stretch;
    }
    .log20_tarae_thread_body.has-images .log20_tarae_thread_text {
        order: 1;
        min-width: 0;
        flex: 0 0 auto;
        max-height: none;
    }
    .log20_tarae_thread_text {
        padding-left: 30px;
        padding-right: 5px;
    }
    .log20_tarae_thread_body.has-images .log20_tarae_images_rows {
        order: 2;
        min-width: 0;
        flex: 0 0 auto;
        margin-top: 0;
    }

    .log20_tarae_images_row .log20_tarae_image_item {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

.log20_tarae_reply_paste_cancel:hover {
    border-color: #999;
    color: #333;
}
.log20_tarae_reply_file {
    display: none;
}

.tarae_attach_btn {
    border: 1px solid var(--action-color, #333);
    background: #fff;
    color: var(--action-color, #333);
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    min-width: 120px;
    margin-bottom: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-start;
    text-align: left;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.tarae_attach_btn:hover {
    background-color: var(--accent-color, #666);
    color: var(--action-color, #333);
    border-color: var(--action-color, #333);
}

.tarae_attach_count {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.tarae_uploading {
    display: none;
    font-size: 12px;
    color: #333;
    background: #fff;
    border-radius: 8px;
    margin-left: 8px;
}

.tarae_uploading.is-visible {
    display: inline-block;
}

.tarae_uploading--submit {
    vertical-align: middle;
    margin-left: 8px;
}


.tarae_attach_input {
    display: none;
}

.tarae_attach_controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.tarae_url_controls {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.tarae_url_add_btn {
    border: 1px solid var(--action-color, #333);
    background: #fff;
    color: var(--action-color, #333);
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    min-width: 120px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.tarae_url_add_btn:hover {
    background-color: var(--accent-color, #666);
    color: var(--action-color, #333);
    border-color: var(--action-color, #333);
}

.tarae_url_inputs {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tarae_url_inputs--inline {
    margin-top: 0;
    flex: 1 1 auto;
}

.tarae_url_row {
    display: flex;
    gap: 6px;
    flex: 1 1 auto;
    width: 100%;
}

.tarae_url_input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    height: 32px;
    line-height: 1.4;
}

.tarae_url_done_btn {
    border: 1px solid var(--action-color, #333);
    background: #fff;
    color: var(--action-color, #333);
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
    height: 32px;
}

.tarae_url_done_btn:hover {
    background-color: var(--accent-color, #666);
    color: var(--action-color, #333);
    border-color: var(--action-color, #333);
}

.tarae_url_cancel_btn {
    border: 1px solid #ccc;
    background: #fff;
    color: #666;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
    height: 32px;
}

.tarae_url_cancel_btn:hover {
    border-color: #999;
    color: #333;
}

.tarae_paste_controls {
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.tarae_paste_add_btn {
    border: 1px solid var(--action-color, #333);
    background: #fff;
    color: var(--action-color, #333);
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    min-width: 120px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.tarae_paste_add_btn:hover {
    background-color: var(--accent-color, #666);
    color: var(--action-color, #333);
    border-color: var(--action-color, #333);
}

.tarae_paste_inputs {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tarae_paste_inputs--inline {
    margin-top: 0;
    flex: 1 1 auto;
}

.tarae_paste_row {
    display: flex;
    gap: 6px;
    align-items: center;
    flex: 1 1 auto;
    width: 100%;
}

.tarae_paste_input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    resize: none;
    height: 32px;
    line-height: 1.4;
}

.tarae_paste_cancel_btn {
    border: 1px solid #ccc;
    background: #fff;
    color: #666;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    height: 32px;
}

.tarae_paste_cancel_btn:hover {
    border-color: #999;
    color: #333;
}

/* 타래 작성/수정 폼: 게시글별 프로필 이미지 설정 */
.log20_tarae_reply_profile {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.log20_tarae_reply_profile_preview {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--gray-100, #eee);
    border: 1px solid var(--action-color, #333);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.log20_tarae_reply_profile_preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.log20_tarae_reply_profile_preview_fallback {
    font-size: 22px;
    color: #999;
    font-weight: 600;
}

/* 글을 처음 쓸 때(메모) 등록하는 프로필 사진은 최대 100x100으로 더 크게 */
.log20_tarae_reply_profile--lg .log20_tarae_reply_profile_preview {
    width: 100px;
    height: 100px;
    min-width: 100px;
}

.log20_tarae_reply_profile--lg .log20_tarae_reply_profile_preview_fallback {
    font-size: 40px;
}

.log20_tarae_reply_profile_controls {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.log20_tarae_reply_profile_buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.log20_tarae_reply_profile_set,
.log20_tarae_reply_profile_reset {
    border: 1px solid var(--action-color, #333);
    background: #fff;
    color: var(--action-color, #333);
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.log20_tarae_reply_profile_set:hover,
.log20_tarae_reply_profile_reset:hover {
    background-color: var(--accent-color, #666);
    color: var(--action-color, #333);
    border-color: var(--action-color, #333);
}

.log20_tarae_reply_profile_hint {
    font-size: 11px;
    color: #999;
}

.log20_tarae_reply_profile_status {
    display: none;
    font-size: 12px;
    color: #666;
}

.log20_tarae_reply_profile_status.is-visible {
    display: inline-block;
}

.log20_tarae_reply_profile_file {
    display: none;
}

/* 게시글(메모) 작성 시 프로필 사진 옆에 적는 닉네임/한마디 메모 입력칸 */
.log20_tarae_note_input {
    font-style: italic;
    font-size: 13px;
    color: var(--action-color, #333);
    border: 1px solid var(--action-color, #333);
    border-radius: 4px;
    padding: 5px 8px;
    max-width: 220px;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
}

.log20_tarae_note_input::placeholder {
    font-style: italic;
    color: #999;
}

.log20_tarae_item {
    padding: 15px 5px 0px 5px;
    border-bottom: 1px solid var(--action-color, #333);
}

.log20_tarae_item:hover {
    background-color: transparent;
}

.log20_tarae_item:last-child {
    border-bottom: none;
}

.log20_tarae_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 16px;
}

.log20_tarae_header_left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.log20_tarae_profile {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.log20_tarae_profile_img {
    width: 100px;
    height: 100px;
    min-width: 100px;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 100px;
}

.log20_tarae_profile_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.log20_tarae_profile_fallback {
    font-size: 40px;
    color: #666;
    font-weight: 600;
}

.log20_tarae_profile_name {
    font-size: 0px;
    color: #f4e048;
    font-weight: 600;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 게시글(메모) 작성 시 프로필 사진 옆에 적는 닉네임/한마디 메모 */
.log20_tarae_profile_note {
    font-size: 12px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
}

.log20_tarae_title {
    font-weight: 600;
    font-size: 0px;
    color: #ffffff;
}

.log20_tarae_date {
    color: #999;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.log20_tarae_content {
    margin-top: 8px;
}

/* 첫 번째 첨부 이미지: 게시글 폭에 맞춰 크게, 그 아래로 본문이 이어짐 */
.log20_tarae_hero_image {
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}
.log20_tarae_hero_image img {
    display: block;
    width: 100%;
    height: auto;
}

.log20_tarae_body {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 16px;
    align-items: flex-start;
}

.log20_tarae_body.no-images {
    display: block;
}

.log20_tarae_images {
    grid-column: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.log20_tarae_images_rows {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.log20_tarae_images_row {
    display: grid;
    gap: 8px;
}

.log20_tarae_images_row .log20_tarae_image_item {
    overflow: hidden;
    border-radius: 4px;
}

.log20_tarae_images--1 .log20_tarae_image_item {
    width: 100%;
}

.log20_tarae_images--2 .log20_tarae_image_item {
    width: calc(50% - 4px);
}

.log20_tarae_images--3 .log20_tarae_image_item,
.log20_tarae_images--4 .log20_tarae_image_item {
    width: calc(50% - 4px);
}

.log20_tarae_image_item img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: var(--tarae-image-max-height, 200px);
    display: block;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.tarae_image_modal_content {
    position: relative;
}

.tarae_image_modal_nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.tarae_image_modal_prev {
    left: 10px;
}

.tarae_image_modal_next {
    right: 10px;
}

.tarae_image_modal_nav:hover {
    background: rgba(0, 0, 0, 0.75);
}

.log20_tarae_image_item img:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.log20_tarae_text {
    grid-column: 1;
    grid-row: 1;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
}

.log20_tarae_body.has-images {
    display: grid;
    grid-template-columns: 37% 63%;
    gap: 0px;
}

/* tarae 이미지 모달 */
.tarae_image_modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    /* 모달이 뒤쪽 레이아웃에 영향을 주지 않도록 */
    pointer-events: none;
}

.tarae_image_modal[style*="flex"] {
    pointer-events: auto;
}

.tarae_image_modal_backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    /* 배경 클릭 시에만 pointer-events 활성화 */
    pointer-events: auto;
}

.tarae_image_modal_content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #111;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    z-index: 1;
    /* 모달 콘텐츠는 항상 클릭 가능 */
    pointer-events: auto;
}

.tarae_image_modal_inner {
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 10px 10px;
    box-sizing: border-box;
}

.tarae_image_modal_inner img {
    max-width: 100%;
    max-height: calc(90vh - 50px);
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.tarae_image_modal_close {
    position: absolute;
    top: 6px;
    right: 10px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.tarae_image_modal_close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 핸드아웃 이미지 모달 스타일 (tarae 모달과 동일) */
.scena_handout_image_modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    pointer-events: none;
}

.scena_handout_image_modal[style*="flex"] {
    pointer-events: auto;
}

.scena_handout_image_modal_backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    pointer-events: auto;
}

.scena_handout_image_modal_content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #111;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    z-index: 1;
    pointer-events: auto;
}

.scena_handout_image_modal_inner {
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 10px 10px;
    box-sizing: border-box;
}

.scena_handout_image_modal_inner img {
    max-width: 100%;
    max-height: calc(90vh - 50px);
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.scena_handout_image_modal_close {
    position: absolute;
    top: 6px;
    right: 10px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.scena_handout_image_clickable {
    cursor: pointer;
    transition: opacity 0.2s;
}

.scena_handout_image_clickable:hover {
    opacity: 0.8;
}

/* 모달이 열려있을 때 body 스크롤만 막기 (레이아웃 영향 없음) */
body.tarae_modal_open {
    overflow: hidden;
    /* position, width, left, top은 JavaScript에서 동적으로 설정 */
}

html.tarae_modal_open {
    overflow: hidden;
    height: 100%;
}

.log20_tarae_subtitle {
    margin-bottom: 6px;
    color: inherit;
    font-size: 13px;
}

/* tarae 검색창 */
.log20_tarae_search_outside {
    width: 78%;
    max-width: 100%;
    margin: 16px auto 0 auto;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.log20_tarae_search_outside .log20_tarae_search_wrap {
    width: 100%;
}

.log20_tarae_search_wrap {
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: stretch;
    justify-content: center;
}

.log20_tarae_search_input_row {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
}

.log20_tarae_search_button_row {
    display: flex;
    gap: 6px;
    flex: 0 0 auto;
}

.log20_tarae_search_input_row .log20_tarae_search_input {
    width: 100%;
}

@media (min-width: 769px) {
    .log20_tarae_search_input_row {
        flex: 0 0 27%;
    }
}

.log20_tarae_search_input {
    flex: 1;
    height: 30px;
    padding: 0 8px;
    border: 1px solid var(--action-color);
    border-radius: 4px;
    font-size: 11px;
    background: var(--action-color, #e6f692f0);
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.log20_tarae_search_input:focus {
    outline: none;
    border-color: var(--action-color, #333);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.log20_tarae_search_btn,
.log20_tarae_search_reset {
    width: 38px;
    height: 30px;
    padding: 0;
    border: 1px solid #d9ec8f;
    border-radius: 5px;
    font-size: 12px;
    background: var(--accent-color, #d9ec8f);
    color: var(--action-color, #1e606b);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.log20_tarae_search_btn:hover,
.log20_tarae_search_reset:hover {
    background-color: var(--action-color, #666);
    color: var(--accent-color, #333);
    border-color: var(--action-color, #333);
}

.log20_tarae_toggle {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 8px;
    font-size: 12px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    border-radius: 3px;
}

.log20_tarae_btn {
    display: inline-block;
    padding: 2px 6px;
    font-size: 11px;
    border-radius: 3px;
    text-decoration: none;
    color: #999;
    border: none;
    background: transparent;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.log20_tarae_share_wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.log20_tarae_share_toast {
    position: absolute;
    left: 50%;
    bottom: 100%;
    margin-bottom: 4px;
    transform: translate(-50%, -6px);
    padding: 2px 6px;
    font-size: 11px;
    color: #fff;
    background: #333;
    border-radius: 10px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.log20_tarae_share_toast--bottom {
    bottom: auto;
    top: 100%;
    margin-bottom: 0;
    margin-top: 4px;
    transform: translate(-50%, 6px);
}

.log20_tarae_share_toast.is-visible {
    opacity: 1;
    transform: translate(-50%, -10px);
}

.log20_tarae_share_toast--bottom.is-visible {
    transform: translate(-50%, 10px);
}

.log20_tarae_btn_edit:hover,
.log20_tarae_btn_delete:hover {
    color: #333;
    border-color: transparent;
    background-color: transparent;
}

/* 작성 폼 */
.log20_write_form {
    margin: 20px auto;
    text-align: left;
    background: var(--card-bg-color);
    padding: 30px;
    border-radius: var(--card-border-radius);
}

.log20_write_form dl {
    margin: 10px 0 0 0;
    padding: 5px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.log20_write_form dt {
    font-weight: bold;
    margin: 0;
    color: var(--text-primary);
    min-width: 140px;
    display: flex;
    align-items: center;
}

.log20_write_form dt label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.log20_write_form dd {
    margin: 0;
    flex: 1;
}

.log20_write_form input[type="text"],
.log20_write_form input[type="url"],
.log20_write_form input[type="color"] {
    padding: 6px 7px 6px 13px;
    border: 1px solid #00447b;
    border-radius: 4px;
    font-size: 12px;
}

.log20_write_form input[type="color"] {
    width: 60px;
    height: 40px;
    padding: 2px;
    cursor: pointer;
    vertical-align: middle;
    margin-right: 10px;
}

.log20_write_form input[type="text"].full_input,
.log20_write_form input[type="url"].full_input {
    width: 100%;
    max-width: 100%;
}

.log20_write_form small {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
}

.log20_field_row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.log20_field_block {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.log20_field_inline {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

#bo_w .bo_v_option {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 0;
    list-style: none;
}

#bo_w .bo_v_option li {
    margin: 0;
}

#bo_w .bo_v_option .chk_box {
    display: flex;
    align-items: center;
    gap: 8px;
}

#bo_w .bo_v_option select {
    min-width: 160px;
}

/* 게시물 보기 */
#bo_v_top.view_buttons_inline {
    width: 100%;
    margin: 0 auto 5px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0px 15px 0px;
    box-sizing: border-box;
}

.log20_content {
    width: 78%;
    height: 100%;
    margin: 0 auto;
}


#bo_list {
    margin: 0 auto;
}

.log20_content_title {
    display: flex;
    gap: 20px;
    margin: 20px 0 0 0;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--card-border-radius) var(--card-border-radius) 0 0;
}

.log20_thumbnail {
    width: 20%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.log20_thumbnail img {
    height: 300px;
    width: auto;
    object-fit: contain;
}

.log20_thumbnail i {
    font-size: 80px;
    color: var(--text-muted);
}

.log20_info {
    width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 15px;
    min-height: 100%;
    position: relative;
    height: 300px;
}

.log20_info_row {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
}

.log20_info_bottom {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
    margin-top: auto;
}

.log20_info_item {
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
}

.log20_info_item_subtitle {
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.log20_info_item_title {
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 0.4em;
}

.log20_info_item_rule {
    text-align: left;
}

.log20_info_item_gm {
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.log20_info_item_pl {
    text-align: right;
    margin-left: auto;
}

.log20_content_menu {
    margin-top: 0;
    height: 60px;
    background-color: var(--card-bg-color);
    border: 1px solid var(--card-border-color);
    border-radius: 0 0 var(--card-border-radius) var(--card-border-radius);
    border-top: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.log20_content_menu_pclist {
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-right: 1px solid var(--action-color, #333);
    height: 100%;
}

.log20_content_menu_pclist .log_content_menu_btn {
    flex: 0 0 auto;
}

.log20_content_menu_memo {
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-right: 1px solid var(--action-color, #333);
    height: 100%;
}

.log20_content_menu_memo .log_content_menu_btn {
    flex: 0 0 auto;
}

.log20_content_menu_scena {
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    height: 100%;
}

.log20_content_menu_scena .log_content_menu_btn {
    flex: 0 0 auto;
}

.log_content_menu_btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    flex: 1;
    max-width: 80%;
}

.log_content_menu_icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.log_content_menu_icon i {
    font-size: 15px;
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-align: center;
    margin: 0;
    padding: 0;
}

.log_content_menu_text {
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    text-align: left;
}

/* 모바일 화면 대응 */
@media (max-width: 768px) {
    .log20_content_menu {
        height: auto;
        padding-top: 5px;
        padding-bottom: 5px;
        align-items: flex-start;
    }

    .log20_content_menu_pclist,
    .log20_content_menu_memo,
    .log20_content_menu_scena {
        width: 100%;
        flex-direction: row;
        gap: 10px;
        align-items: center;
        justify-content: center;
        height: 100%;
    }

    .log_content_menu_btn {
        width: auto;
        max-width: 100%;
        flex-direction: column;
        gap: 5px;
        align-items: center;
        justify-content: center;
        flex: 1;
    }

    .log_content_menu_text {
        text-align: center;
        font-size: 11px;
    }

    .log20_info_bottom {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .log20_info_bottom .log20_info_item_rule,
    .log20_info_bottom .log20_info_item_gm,
    .log20_info_bottom .log20_info_item_pl {
        line-height: 1.2 !important;
        margin: 0 !important;
        padding: 0 !important;
        height: auto !important;
        min-height: auto !important;
    }

    /* 모바일에서 핸드아웃 숨김 및 본문 100% */
    .log20_scena_view_body {
        flex-direction: column;
    }

    .log20_scena_view_body_logpart {
        width: 100% !important;
        max-width: 100% !important;
    }

    .log20_scena_view_body_handout {
        display: none !important;
    }
}

.log20_content_sublist_title,
.log_content_sublist_scena_title {
    width: 80%;
    height: 80px;
    padding: 0 36px;
    background: var(--card-bg-color);
    border-radius: var(--card-border-radius) var(--card-border-radius) 0 0;
    margin: 20px auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    box-sizing: border-box;
}

.log20_content_sublist_title_text,
.log_content_sublist_scena_title_text {
    font-size: 40px;
    font-weight: 700;
    font-style: italic;
    text-align: right;
}

.log20_scena_view {
    width: 80%;
    margin: 0 auto 40px auto;
    background: #fff;
    border: 1px solid var(--card-border-color, #e5e5e5);
    border-radius: var(--card-border-radius, 12px);
    padding: 30px;
    box-sizing: border-box;
    position: relative;
}

.log20_scena_view_back_btn_wrap {
    width: 80%;
    margin: 40px auto 10px auto;
    position: relative;
}

.log20_scena_view_back_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.log20_scena_view_back_btn:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.log20_scena_view_back_btn i {
    font-size: 18px;
}

.log20_scena_view_title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    word-break: keep-all;
    line-height: 1.3;
    padding-bottom: 15px;
}

.log20_scena_view_body {
    font-size: 16px;
    line-height: 1.7;
    color: #222;
    word-break: break-word;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.log20_scena_view_body img,
.log20_scena_view_body video,
.log20_scena_view_body iframe,
.log20_scena_view_body table {
    max-width: 100%;
}

.log20_scena_view_body img {
    height: auto;
    display: block;
    margin: 15px auto;
}

.log20_scena_view_body table {
    width: 100%;
    border-collapse: collapse;
}

.log20_scena_view_body pre,
.log20_scena_view_body code {
    white-space: pre-wrap;
    word-break: break-word;
    background: #f6f6f6;
    padding: 8px 10px;
    border-radius: 4px;
    display: block;
}

/* 시나리오 보기 - 본문/핸드아웃 80:20 분할 */
.log20_scena_view_body_logpart {
    width: 80%;
    max-width: 80%;
}

.log20_scena_view_body_handout {
    width: 20%;
    max-width: 20%;
    box-sizing: border-box;
    padding-left: 10px;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    align-self: flex-start;
}

.log20_scena_view_handout_header_box {
    width: 90%;
    height: 40px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px auto;
    font-weight: 600;
    box-sizing: border-box;
}

.log20_scena_view_handout_list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.log20_scena_view_handout_item {
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid var(--border-light);
    padding: 4px 0;
}

.log20_scena_view_handout_header {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    cursor: pointer;
}

.log20_scena_view_handout_thumb {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.log20_scena_view_handout_thumb img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.log20_scena_view_handout_title {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.log20_scena_view_handout_toggle {
    flex: 0 0 auto;
    font-size: 11px;
    color: #999;
}

.log20_scena_view_handout_detail {
    display: none;
    padding: 6px 0 8px 0;
}

.log20_scena_view_handout_detail_inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.log20_scena_view_handout_detail_image {
    width: 100%;
}

.log20_scena_view_handout_detail_image img {
    width: 80%;
    max-width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.log20_scena_view_handout_detail_body {
    font-size: 12px;
    line-height: 1.5;
    color: #333;
    word-break: break-word;
}

.log20_scena_view_handout_item.is-open .log20_scena_view_handout_detail {
    display: block;
}

.log20_content_sublist {
    width: 80%;
    padding: 0px 20px 20px 20px;
    background-color: var(--card-bg-color) !important;
    border: 1px solid var(--card-border-color);
    border-top: none;
    border-radius: 0 0 var(--card-border-radius) var(--card-border-radius);
    /* min-height: 400px; */
    height: auto;
    margin: 0 auto 20px auto;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;
    box-sizing: border-box;
}

/* 타래 배경 이미지: 카드 배경색 자체에 오퍼시티를 섞어서(45%만 이미지가 비치도록) 적용 */
.log20_content_sublist.has-tarae-bg {
    background-color: color-mix(in srgb, var(--card-bg-color) 100%, transparent) !important;
    border: none !important;
}

/* 제목바는 오버레이 없이 배경이 100% 그대로 비치도록 완전 투명 처리 */
.log20_content_sublist_title.has-tarae-bg-title {
    background-color: transparent !important;
}

.log20_content_sublist_scena {
    width: 100%;
    padding: 5px 20px 20px 20px;
    background: var(--card-bg-color) !important;
    border: 1px solid var(--card-border-color);
    border-top: none;
    border-radius: 0 0 var(--card-border-radius) var(--card-border-radius);
    min-height: 60vh;
    height: 60vh;
    max-height: 60vh;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* 시나리오 리스트 래퍼 */
.log20_content_sublist_scena_wrapper {
    width: 100%;
    flex: 1;
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

/* 최신 시나리오 영역 (header 제외한 모든 sublist) */
.log20_content_sublist_newscena {
    width: 100%;
    flex: 1;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    display: block;
    padding: 15px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* 썸네일 이미지 영역 (상단 좌측: 가로 60%, 세로 60%) */
.log20_scena_newscena_thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 60%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    padding-bottom: 10px;
    box-sizing: border-box;
}

.log20_scena_newscena_thumbnail::before {
    position: absolute;
    top: 0;
    left: -75%;
    z-index: 2;
    display: block;
    content: '';
    width: 50%;
    height: 100%;
    background: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 100%);
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 100%);
    -webkit-transform: skewX(-25deg);
    transform: skewX(-25deg);
    pointer-events: none;
}

.log20_scena_newscena_thumbnail:hover::before {
    -webkit-animation: shine .75s;
    animation: shine .75s;
}

.log20_scena_newscena_thumbnail img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.log20_scena_newscena_thumbnail:hover img {
    transform: scale(1.1);
}

@-webkit-keyframes shine {
    100% {
        left: 125%;
    }
}

@keyframes shine {
    100% {
        left: 125%;
    }
}

.log20_scena_newscena_thumbnail i {
    font-size: 120px;
    color: inherit;
}


/* PC 포트폴리오 영역 (상단 우측: 가로 40%, 세로 60%) */
.log20_content_sublist_newscena_pcport {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 60%;
    max-height: 100%;
    min-height: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 15px;
    box-sizing: border-box;
    overflow: hidden;
}

.log20_pc_port_grid {
    width: 100%;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    display: grid;
    gap: 8px;
    align-content: start;
    overflow: hidden;
    grid-auto-rows: minmax(0, 1fr);
}

/* PC 이미지 그리드 - 2개일 때 */
.log20_pc_port_grid[data-count="2"] {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    align-items: stretch;
}

/* PC 이미지 그리드 - 3개일 때 */
.log20_pc_port_grid[data-count="3"] {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    align-items: stretch;
}

/* PC 이미지 그리드 - 4개일 때 */
.log20_pc_port_grid[data-count="4"] {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    align-items: stretch;
}

/* PC 이미지 그리드 - 5개일 때 */
.log20_pc_port_grid[data-count="5"] {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    align-items: stretch;
}

/* PC 이미지 그리드 - 6개일 때 */
.log20_pc_port_grid[data-count="6"] {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    align-items: stretch;
}

.log20_pc_port_item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
}

.log20_pc_port_item_inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 0;
}

.log20_pc_port_item_inner img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 4px;
    cursor: pointer;
}

.log20_pc_port_item_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.log20_pc_port_item:hover .log20_pc_port_item_overlay {
    opacity: 1;
}

.log20_pc_port_item_name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: center;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
}

.log20_pc_port_empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #bbb;
    border: 1px dashed #ddd;
    border-radius: 4px;
}

/* PC 이미지 팝업 */
.log20_pc_image_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.log20_pc_image_modal.is-active {
    opacity: 1;
    pointer-events: auto;
}

.log20_pc_image_modal_inner {
    max-width: 90%;
    max-height: 90%;
}

.log20_pc_image_modal_inner img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* 정보 영역 (하단 좌측: 가로 40%, 세로 40%) */
.log20_scena_newscena_info {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40%;
    height: 40%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 0 10px 10px;
    box-sizing: border-box;
}


.log20_scena_item_subtitle {
    font-size: 11px;
    color: #333;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.4;
    overflow: hidden;
    position: relative;
    z-index: 2;
    width: 60%;
}

/* 부제 영역 (하단 우측: 가로 60%, 세로 40%) */
.log20_scena_newscena_subt {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 60%;
    height: 40%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding: 10px;
}

.log20_scena_newscena_subt .log20_item_subtitle {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    padding: 0;
    font-size: 13px;
    font-weight: normal;
    color: #333;
    opacity: 1;
    width: 100%;
    max-width: 100%;
    text-align: left;
    pointer-events: auto;
}

.log20_scena_item_title_row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
    border-top: 1px solid var(--action-color, #333);
    border-bottom: 1px solid var(--action-color, #333);
    padding: 0px 12px;
    margin: 0;
    height: 45px;
    box-sizing: border-box;
    overflow: hidden;
    transition: color 0.3s ease;
    width: 100%;
}

.log20_scena_newscena_info .log20_scena_item_title {
    font-size: 32px;
    font-weight: bold;
    line-height: 1.3;
    word-break: break-word;
    display: flex;
    align-items: center;
}

.log20_scena_item_writer {
    font-size: 10px;
    color: #777;
    margin: 0;
    align-self: flex-end;
}

.log20_scena_newscena_info .log20_scena_item_trailer {
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}

.log20_scena_item_meta .log20_scena_item_rule,
.log20_scena_item_meta .log20_scena_item_gm,
.log20_scena_item_meta .log20_scena_item_pc {
    font-size: 12px;
    margin: 0;
    padding: 0;
    color: inherit;
    line-height: 1.3;
    word-break: break-word;
}

.log20_scena_item_meta .log20_scena_item_pc {
    flex-basis: 100%;
    width: 100%;
}

.log20_scena_item_title_row::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--action-color, #333);
    transform: var(--hover-transform, scaleY(0));
    transform-origin: var(--hover-origin, top center);
    transition: transform 0.4s ease;
    z-index: 0;
}

.log20_scena_item_title_row:hover::before {
    transform: var(--hover-transform-hover, scaleY(1));
}

.log20_scena_item_title_row .log20_scena_item_title,
.log20_scena_item_title_row .log20_scena_item_writer {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease, transform 0.3s ease;
}

.log20_scena_item_title_row:hover .log20_scena_item_title,
.log20_scena_item_title_row:hover .log20_scena_item_writer {
    transform: translateX(2px);
}

.log20_scena_item_title_row .log20_scena_item_writer strong {
    transition: color 0.3s ease;
}

.log20_scena_item_title_row:hover .log20_scena_item_title,
.log20_scena_item_title_row:hover .log20_scena_item_writer,
.log20_scena_item_title_row:hover .log20_scena_item_writer strong {
    color: var(--accent-color, #666);
}

.log20_scena_newscena_info .log20_scena_list_item_startdate,
.log20_scena_newscena_info .log20_scena_item_enddate {
    font-size: 12px;
    color: #333;
}

.log20_scena_list_item_dates {
    margin: 0;
    padding-top: 0;
    font-size: 12px;
    color: #333;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    height: 32px;
    box-sizing: border-box;
}

.log20_scena_newscena_info .log20_scena_list_item_dates {
    align-self: flex-start;
    margin-top: auto; /* info 영역 내에서 하단 정렬 */
}

.log20_scena_list_item_dates span {
    display: inline-flex;
    align-items: center;
}

.log20_scena_list_item_date_label {
    font-size: 12px;
    font-weight: 500;
    color: #333;
}

.log20_scena_list_item_startdate,
.log20_scena_item_enddate {
    font-weight: 500;
    color: #333;
}

.log20_scena_list_item_range_sep {
    color: #666;
    font-weight: 500;
}

.log20_scena_rule_row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 32px;
    box-sizing: border-box;
}

.log20_scena_action_cell {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 0;
    box-sizing: border-box;
    flex-shrink: 0;
}

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

.log20_scena_action_cell .log20_subitem_btn {
    color: var(--action-color, #333);
    border-color: var(--action-color, #ccc);
    background: #fff;
}

.log20_scena_action_cell .log20_subitem_btn:hover {
    background: var(--action-color, #333);
    border-color: var(--accent-color, #666);
    color: var(--accent-color, #666);
}

.log20_scena_item_subtitle {
    font-size: 14px;
    color: #666;
}
.log20_scena_action_row {
    margin-top: 0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 0;
}

/* 시나리오 리스트 영역 (별도 영역, 화면 하단) */
.log20_content_scenalist {
    width: 90%;
    margin: 25px auto 10px auto;
    background: #ffffff;
    border: 1px solid var(--action-color, var(--card-border-color));
    border-radius: var(--card-border-radius);
    padding: 10px 15px;
    box-sizing: border-box;
    position: relative;
    height: 15vh;
    display: flex;
    align-items: center;
}

.log20_scenalist_thumbnails_wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.log20_scenalist_thumbnails {
    flex: 1;
    height: 100%;
    display: flex;
    gap: 10px;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.log20_scenalist_thumb_item {
    flex: 0 0 calc(25% - 7.5px);
    min-width: calc(25% - 7.5px);
    max-width: calc(25% - 7.5px);
    width: calc(25% - 7.5px);
    height: 100%;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
    box-sizing: border-box;
}


.log20_scenalist_thumb_item_image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 0;
}

.log20_scenalist_thumb_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.log20_scenalist_thumb_item:hover img {
    transform: scale(1.1);
}

.log20_scenalist_thumb_item_name {
    background: transparent;
    font-size: 11px;
    color: #333;
    text-align: center;
    padding: 8px 4px;
    line-height: 1.3;
    word-break: break-word;
}

.log20_scenalist_thumbnails img {
    display: block;
    height: 100%;
    object-fit: cover;
    margin: auto 0;
}

.log20_scenalist_thumb_item i {
    font-size: 32px;
    color: #999;
}

.log20_scenalist_arrow {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--accent-color, #666);
    color: var(--action-color, #333);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
    flex-shrink: 0;
}

.log20_scenalist_arrow:hover {
    background: var(--accent-color, #666);
}

.log20_scenalist_arrow i {
    font-size: 14px;
}

.log20_scenalist_arrow img {
    display: block;
    max-width: 70%;
    max-height: 70%;
    margin: 0 auto;
    object-fit: contain;
}

.log20_sublist_area {
    width: 100%;
}

.log20_sublist_scena_area {
    width: 90%;
    margin: 0 auto;
}

.log20_sublist_header {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 0;
    padding: 0;
    border-bottom: 5px solid;
    margin-bottom: 15px;
}

.log20_content_sublist_scena .log20_sublist_header {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.log20_sublist_write_btn {
    position: relative;
    width: 100%;
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    text-align: right;
    font-size: 14px;
    font-weight: 500;
    border-radius: 0px !important;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    color: var(--accent-color, #666);
    transition: background-color 0.35s ease, color 0.35s ease;
}

.log20_sublist_write_btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: var(--action-color, #333);
    transition: height 0.45s ease;
    z-index: -1;
}

.log20_sublist_write_btn_text {
    display: inline-block;
    transition: transform 0.35s ease, font-weight 0.35s ease, color 0.35s ease;
    color: var(--action-color, #333);
    letter-spacing: 0.02em;
}

.log20_sublist_write_btn:hover {
    color: var(--accent-color, #fff);
    background-color: transparent;
}

.log20_sublist_write_btn:hover::before {
    height: 100%;
}

.log20_sublist_write_btn:hover .log20_sublist_write_btn_text {
    font-weight: 700;
    transform: translateX(-3px);
    color: var(--accent-color, #fff);
}

.log20_loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* 반응형 디자인 - 너비 제한 제거, 게시물이 필요한 만큼만 공간을 차지하도록 함 */

@media (max-width: 768px) {
    .log20_list_area {
        width: 100%;
        gap: 15px;
    }

    .log20_list_item {
        width: 100%;
        max-width: 500px;
        height: auto;
        min-height: 400px;
    }

    .log20_content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .log20_content_title {
        flex-direction: column;
    }

    .log20_thumbnail {
        width: 100%;
        height: auto;
        min-height: auto;
    }

    .log20_thumbnail img {
        width: 100%;
        height: auto;
        object-fit: contain;
        max-height: none;
    }

    .log20_info {
        width: 100%;
        overflow: visible;
        align-items: center;
        height: auto;
        min-height: auto;
        position: relative;
        gap: 25px;
        padding-bottom: 25px;
    }

    .log20_info_item {
        width: 100% !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .log20_info_item_subtitle {
        width: 100% !important;
        display: block !important;
        margin: 0 0 15px 0 !important;
        padding: 0 !important;
        text-align: center !important;
    }

    .log20_info_item_title {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        display: block !important;
        margin: 20px 0 !important;
        padding: 0 !important;
        text-align: center !important;
        font-size: 28px !important;
    }

    .log20_content_title {
        overflow: visible;
        padding-bottom: 20px;
    }

    .log20_content_sublist {
        padding-left: 0;
        padding-right: 0;
    }

    .log20_tarae_thread_item {
        padding-left: 5px;
        padding-right: 5px;
    }
}

/* 버튼 스타일 */
.log20_top_buttons {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
}

#bo_btn_top .log20_category_buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    grid-column: 2;
    justify-self: center;
}

@media (max-width: 768px) {
    .log20_top_buttons {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        row-gap: 8px;
    }

    #bo_btn_top .log20_category_buttons {
        width: 100%;
        justify-content: center;
        justify-self: auto;
    }

    .btn_bo_user {
        justify-content: center;
        width: 100%;
    }
}

#bo_btn_top a.log20_category_btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 4px 10px !important;
    line-height: 1 !important;
    margin: 0 4px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: 1px solid var(--btn-secondary-bg) !important;
    background: var(--btn-secondary-bg) !important;
    color: var(--btn-secondary-text) !important;
    border-radius: var(--btn-secondary-radius) !important;
}

#bo_btn_top a.log20_category_btn.is-active {
    background: var(--btn-accent-bg) !important;
    color: var(--btn-accent-text) !important;
    border-color: var(--btn-accent-bg) !important;
}

#bo_btn_top {
    min-height: 30px;
}

.btn_bo_user {
    display: flex;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-self: end;
    grid-column: 3;
}

.btn_bo_user li {
    margin: 0;
}

.btn_bo_user.bo_v_com {
    justify-content: flex-end;
}

#bo_v_top.view_buttons_inline .btn_bo_user .btn,
#bo_v_top.view_buttons_inline .btn_bo_user .btn_b01,
.btn_bo_user.bo_v_com .btn,
.btn_bo_user.bo_v_com .btn_b01 {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-color: var(--btn-primary-bg);
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#bo_v_top.view_buttons_inline .btn_bo_user .btn:hover,
#bo_v_top.view_buttons_inline .btn_bo_user .btn_b01:hover,
.btn_bo_user.bo_v_com .btn:hover,
.btn_bo_user.bo_v_com .btn_b01:hover {
    background: var(--btn-primary-bg-hover, var(--btn-primary-bg));
    border-color: var(--btn-primary-bg-hover, var(--btn-primary-bg));
    color: var(--btn-primary-text-hover, var(--btn-primary-text));
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--spacing-lg);
    border: 1px solid #00447b;
    border-radius: var(--btn-primary-radius);
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-base);
    font: inherit;
    line-height: 1.5;
    appearance: none;
    vertical-align: middle;
}

.btn:hover {
    background: var(--btn-primary-bg-hover, var(--btn-primary-bg));
    border-color: var(--btn-primary-bg-hover, var(--btn-primary-bg));
    color: var(--btn-primary-text-hover, var(--btn-primary-text));
}

/* 완료/취소 버튼: 사이트 공통 CSS의 a.btn { border: 0; } 보다 우선하도록 명시 */
a.btn.btn_01,
a.btn.btn_02,
.btn_01,
.btn_02 {
    border: 1px solid #00447b !important;
    height: 30px;
}

.btn_admin {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-color: var(--btn-primary-bg);
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 15px;
}

.btn_admin:hover {
    background: var(--btn-primary-bg-hover, var(--btn-primary-bg));
    border-color: var(--btn-primary-bg-hover, var(--btn-primary-bg));
    color: var(--btn-primary-text-hover, var(--btn-primary-text));
}


.btn_b01 {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-color: var(--btn-primary-bg);
}

.btn_b01:hover {
    background: var(--btn-primary-bg-hover, var(--btn-primary-bg));
    border-color: var(--btn-primary-bg-hover, var(--btn-primary-bg));
    color: var(--btn-primary-text-hover, var(--btn-primary-text));
}

/* 검색 영역 */
.bo_sch_wrap {
    display: none;
    position: relative;
    margin-top: 20px;
}

.bo_sch {
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
}

.bo_sch_bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.sch_bar {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.sch_input {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
}

.sch_btn {
    padding: 8px 15px;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* 페이지네이션 */
.paginate_wrap {
    margin: 20px 0;
    text-align: center;
}

/* 버튼 확인 영역 */
.btn_confirm {
    display: flex;
    justify-content: right;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

/* 작성완료 버튼 */
.btn_submit,
#btn_submit {
    font-weight: bold;
}

/* 시나리오 목록 영역 */
.log20_scena_list_area {
    flex-direction: column;
    gap: 0;
}

/* 시나리오 목록 아이템 스타일 */
.log20_scena_list_item {
    width: 100%;
    height: 245px;
    position: relative;
    overflow: hidden;
    background: var(--white);
    margin-bottom: 0;
    display: flex;
    align-items: center;
}


.log20_scena_item_link {
    display: flex;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    align-items: center;
}

.log20_subitem_actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-top: 1px solid var(--border-light);
    background: #fafafa;
}

.log20_subitem_btn {
    font-size: 11px;
    padding: 4px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #333;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.log20_subitem_btn:hover {
    background: #f0f0f0;
}

.log20_subitem_btn--delete {
    border-color: #c0392b;
    color: #c0392b;
}

.log20_subitem_btn--delete:hover {
    background: #c0392b;
    color: #fff;
}

/* 왼쪽 20% - 부제목 정보 영역 */
.log20_scena_list_item_subdetail {
    width: 20%;
    height: 100%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    position: relative;
}

/* 시작 날짜 - 최상단 좌측 */
.log20_scena_list_item_startdate {
    font-size: 10px;
    line-height: 1.2;
}

/* 룰과 트레일러 영역 - width 우측 정렬, height 중앙정렬부터 시작 */
.log_scena_list_item_explain {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    flex: 1;
    text-align: right;
}

.log_scena_list_item_explain > div {
    width: 100%;
    border-bottom: 1px solid var(--action-color, #333);
    padding-bottom: 4px;
    margin-bottom: 4px;
}

.log_scena_list_item_explain > div:last-child {
    margin-bottom: 0;
}

.log20_scena_item_rule {
    font-size: 12px;
    margin-bottom: 0px;
    line-height: 1.3;
    word-break: break-word;
}

.log20_scena_item_trailer {
    font-size: 10px;
    line-height: 1.3;
    word-break: break-word;
}

.log20_scena_list_item_subdetail .log20_scena_item_gm,
.log20_scena_list_item_subdetail .log20_scena_item_pc {
    font-size: 12px;
    margin-bottom: 3px;
    text-align: right;
    line-height: 1.3;
}

/* 가운데 40% - 썸네일 이미지 영역 */
.log20_scena_list_item_thumbnail {
    width: 40%;
    height: 240px;
    padding-bottom:15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    margin: 10px 0;
}

.log20_scena_list_item_thumbnail img {
    max-height: 240px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.log20_scena_list_item_thumbnail i {
    font-size: 48px;
}

/* 오른쪽 40% - 주요정보 영역 */
.log20_scena_list_item_maindetail {
    width: 40%;
    height: 100%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    position: relative;
    padding-top: 55px;
}

.log20_scena_list_item_maindetail .log20_scena_item_title {
    font-size: 24px;
    font-weight: bold;
    text-align: left;
    margin-bottom: 5px;
    line-height: 1.4;
    word-break: break-word;
    border-top: 1px solid var(--action-color, #333);
    border-bottom: 1px solid var(--action-color, #333);
    padding-top: 5px;
    padding-bottom: 5px;
    display: flex;
    align-items: center;
}

.log20_scena_item_trailer_main {
    font-size: 12px;
    margin: 5px 0 10px;
    line-height: 1.4;
    word-break: break-word;
}

.log20_scena_item_meta {
    font-size: 12px;
    margin: 0;
    padding: 0;
    line-height: 1.3;
    word-break: break-word;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    grid-row: auto;
    min-height: 32px;
    height: auto;
    box-sizing: border-box;
}

.log20_scena_item_meta span {
    display: inline-flex;
    gap: 4px;
    font-size: 12px;
    margin: 0;
    padding: 0;
    color: inherit;
    align-items: center;
    line-height: 1.3;
}

.log20_scena_item_enddate {
    font-size: 10px;
    text-align: right;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.log20_subitem_actions--overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0;
    margin: 0;
    background: transparent;
    border-top: none;
    gap: 10px;
    z-index: 2;
}

.log20_subitem_actions--overlay .log20_subitem_btn {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--action-color, #333);
    color: var(--action-color, #333);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.log20_subitem_actions--overlay .log20_subitem_btn i {
    font-size: 15px;
    line-height: 1;
}

.log20_subitem_actions--overlay .log20_subitem_btn:hover {
    background: var(--action-color, #333);
    color: #fff;
}

.log20_subitem_btn--icon {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.log20_subitem_btn--icon i {
    font-size: 15px;
    line-height: 1;
    color: inherit;
}

/* pclist view 스타일 */
.pclist_view_content {
    max-width: 100%;
    margin: 15px 0 0 0;
    margin: 0 auto;
    padding: 20px;
}

.pclist_view_oneline {
    font-size: 18px;
    font-style: italic;
    color: #333;
    margin-bottom: 20px;
    padding-top: 15px;
    padding-bottom: 10px;
    text-align: center;
}

.pclist_view_header {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.pclist_view_main_image {
    flex: 0 0 50%;
    width: 50%;
}

.pclist_view_main_image_wrapper {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
}

.pclist_view_main_image_img {
    width: 100%;
    height: auto;
    display: block;
}

.pclist_view_main_image_empty {
    color: #999;
    font-size: 14px;
    padding: 40px;
    text-align: center;
}

.pclist_view_title_area {
    flex: 1;
}

.pclist_view_subtitle {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.pclist_view_title {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: #333;
    border-bottom: 1px solid #333;
   border-top: 1px solid #333;
}

.pclist_view_keywords {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pclist_view_keyword {
    padding: 5px 12px;
    background: transparent;
    border-radius: 15px;
    font-size: 14px;
}

.pclist_view_color_boxes {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    justify-content: flex-end;
}

.pclist_view_color_box {
    width: 30px;
    height: 30px;
    border-radius: 0;
    flex-shrink: 0;
    flex-grow: 0;
    min-width: 30px;
    max-width: 30px;
}

.pclist_view_etc {
    margin-bottom: 30px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pclist_view_etc_row_pair {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pclist_view_etc_row {
    display: flex;
    gap: 10px;
    flex: 1;
    min-width: calc(50% - 5px);
    padding-bottom: 0;
    border: none;
}

.pclist_view_etc_subject {
    flex: 0 0 60px;
    color: #333;
    background: #e8e8e8;
    border-radius: 15px;
    padding: 5px 12px;
    text-align: center;
}

.pclist_view_etc_content {
    flex: 1;
    color: #333;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pclist_view_content_body {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.pclist_view_content_body .view_content {
    line-height: 1.6;
    color: #333;
}

/* write.pclist.skin.php 스타일 */
#fwrite {
    width: 90%;
    margin: 0 auto;
}

#secret_password_area {
    display: none;
}

.log20_field_block.flex-1 {
    flex: 1;
}

.log20_keyword_container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.log20_keyword_block {
    flex: 1;
    min-width: 150px;
}

.log20_etc_container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.log20_etc_row_pair {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.log20_etc_row {
    display: flex;
    gap: 15px;
    flex: 1;
    min-width: calc(50% - 7.5px);
    padding: 10px;
    flex-direction: column;
}

.log20_etc_inner {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.log20_etc_subject_block {
    flex: 1;
    min-width: 120px;
}

.log20_etc_content_block {
    flex: 2;
    min-width: 150px;
}

.log20_existing_image {
    margin-bottom: 15px;
}

.log20_existing_image_preview {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.log20_existing_image img {
    max-width: 150px;
    max-height: 150px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.log20_existing_image_link {
    display: block;
    margin-bottom: 5px;
}

.log20_existing_image_label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.log20_existing_image_label input[type="checkbox"] {
    margin: 0;
}

.log20_field_small {
    display: block;
    margin-top: 5px;
    color: #666;
}

/* list.scena.skin.php 목록 버튼 컨테이너 */
.log20_scenalist_back_btn_wrap {
    width: 90%;
    margin: 0 auto 10px auto;
    padding: 0 20px;
}

/* list.scena.skin.php 목록 버튼 */
.log20_scenalist_back_btn_wrap .btn_b01.btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--btn-primary-radius);
}

/* list.scena.skin.php 목록 버튼 아이콘 */
.log20_scenalist_back_btn_wrap .btn_b01.btn i {
    font-size: 15px;
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================================
   리뷰 게시판 (작품 리뷰)
   ======================================================== */
.log20_review_article {
    position: relative;
    width: 95%;
    margin: 0 auto 20px auto;
}

/* 인용구 (갤러리 아래, 본문 위. 갤러리에 바로 붙지 않도록 여백을 넉넉히 줌) */
.log20_review_quote {
    text-align: center;
    padding: 57px 24px 22px 24px;
    margin-top: -10px;
    background: rgb(47 47 47);
}
.log20_review_quote_mark {
    display: block;
    font-size: 15px;
    color: #ffffff;
    text-shadow: 0 0 1px rgb(255 232 67), 0 0 12px rgba(255, 255, 255, 0.7);
    opacity: 0.85;
    margin-bottom: 4px;
}
.log20_review_quote_text {
    font-size: 15px;
    line-height: 1.5;
    color: #e1e1e1;
    text-shadow: 0 0 1px rgb(255 232 67), 0 0 12px rgba(255, 255, 255, 0.7);
    max-width: 720px;
    margin: 0 auto;
}

/* 갤러리(이미지+예고편) 캐러셀 */
.log20_review_gallery {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    background: #111;
    border-radius: var(--card-border-radius, 12px);
    overflow: hidden;
}
.log20_review_gallery_track {
    position: relative;
    width: 100%;
    height: 100%;
}
.log20_review_slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}
.log20_review_slide.is-active {
    opacity: 1;
    visibility: visible;
}
.log20_review_slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.log20_review_trailer {
    position: relative;
    width: 100%;
    height: 100%;
}
.log20_review_trailer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.7);
}
.log20_review_trailer iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
.log20_review_trailer_play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    border: none;
    color: #fff;
    font-size: 64px;
    cursor: pointer;
    opacity: 0.9;
    transition: transform 0.15s, opacity 0.15s;
}
.log20_review_trailer_play:hover {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 1;
}
.log20_review_gallery_empty {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #222, #444);
}
.log20_review_gallery_nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s;
}
.log20_review_gallery_nav:hover {
    background: rgba(0, 0, 0, 0.65);
}
.log20_review_gallery_prev { left: 16px; }
.log20_review_gallery_next { right: 16px; }

/* 배경음악(BGM) 볼륨 컨트롤: 제목 위, 스피커 아이콘 + 슬라이더 (항상 노출) */
/* 이전엔 overflow:hidden인 갤러리 위에 떠 있는 절대 위치 + hover로만 펼쳐지는 슬라이더라
   드래그 중 마우스가 살짝만 벗어나도 슬라이더가 접혀버려 조작이 씹히는 문제가 있었음.
   -> 제목 정보 영역 안, 평범한 문서 흐름으로 옮기고 슬라이더도 항상 보이게 단순화함 */
.log20_review_bgm_volume {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 4px 0;
}
.log20_review_bgm_volume_btn {
    flex-shrink: 0;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    border: none;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s;
}
.log20_review_bgm_volume_btn:hover {
    background: rgba(0, 0, 0, 0.7);
}
.log20_review_bgm_volume_slider {
    display: block;
    width: 100px;
    height: 2px;
    -webkit-appearance: none;
    appearance: none;
    background: #c3c3c3;
    border-radius: 1px;
    outline: none;
    cursor: pointer;
    vertical-align: middle;
}
.log20_review_bgm_volume_slider::-webkit-slider-runnable-track {
    height: 2px;
    border-radius: 1px;
    background: #c3c3c3;
}
.log20_review_bgm_volume_slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    margin-top: -6.5px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.log20_review_bgm_volume_slider::-moz-range-track {
    height: 2px;
    border-radius: 1px;
    background: #c3c3c3;
}
.log20_review_bgm_volume_slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border: none;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.log20_review_gallery_dots {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    gap: 6px;
    z-index: 3;
}
.log20_review_gallery_dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: background-color 0.15s, transform 0.15s;
}
.log20_review_gallery_dot.is-active {
    background: #fff;
    transform: scale(1.3);
}

/* 포스터: 갤러리 왼쪽 아래, 최대 세로 150px (비율 2:3 유지, 자동 축소) */
/* 예고편(동영상) 재생 중에는 포스터/제목/별점/BGM 볼륨바 오버레이를 숨겨서
   영상 내용과 유튜브 자체 컨트롤(재생바/볼륨)을 가리지 않도록 함 */
.log20_review_poster,
.log20_review_gallery_info {
    transition: opacity 0.25s ease;
}
.log20_review_gallery.is-trailer-playing .log20_review_poster,
.log20_review_gallery.is-trailer-playing .log20_review_gallery_info {
    opacity: 0;
    pointer-events: none;
}
.log20_review_poster {
    position: absolute;
    left: 16px;
    bottom: 16px;
    height: 150px;
    max-height: 150px;
    width: auto;
    max-width: 30%;
    aspect-ratio: 2 / 3;
    box-sizing: border-box;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    z-index: 4;
}
.log20_review_poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 정보 블록: 포스터 옆(왼쪽 아래), 제목/감독작가/장르|개봉일|러닝타임이 평점 위에 세로로 쌓임 */
.log20_review_gallery_info {
    position: absolute;
    left: 132px;
    right: 16px;
    bottom: 16px;
    z-index: 4;
    color: #fff;
}
.log20_review_gallery_info .log20_review_title {
    margin: 0 0 4px 0;
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    color: #fff !important;
}
.log20_review_gallery_info .log20_review_director {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
}
.log20_review_gallery_info .log20_review_meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 8px;
}
.log20_review_gallery_info .log20_review_rating_display {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffc107;
    font-size: 26px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}
.log20_review_rating_display .fa-regular.fa-star {
    color: rgba(255, 255, 255, 0.5);
}
.log20_review_rating_number {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-left: 4px;
}

/* 리뷰 상세 화면: 목록/수정 버튼 오른쪽 정렬 + 크기 확대 */
#bo_v_review #bo_v_top.view_buttons_inline {
    justify-content: flex-end;
}
#bo_v_review #bo_v_top.view_buttons_inline .btn_bo_user .btn,
#bo_v_review #bo_v_top.view_buttons_inline .btn_bo_user .btn_b01 {
    width: 40px;
    height: 40px;
    font-size: 15px;
}
@media (max-width: 768px) {
    .log20_review_gallery_info .log20_review_title {
        font-size: 16px;
    }
    .log20_review_gallery_info .log20_review_rating_display {
        font-size: 18px;
    }
    .log20_review_rating_number {
        font-size: 14px;
    }
}

/* 본문 영역 */
.log20_review_body {
    background: rgb(47 47 47);
    border: 1px solid var(--card-border-color, #ddd);
    border-top: none;
    border-radius: 0 0 var(--card-border-radius, 12px) var(--card-border-radius, 12px);
    padding: 10px 40px 40px 40px;
    box-sizing: border-box;
}

.log20_review_content,
.log20_review_content p,
.log20_review_content span,
.log20_review_content div,
.log20_review_content li {
    color: #c3c3c3 !important;
}
.log20_review_content {
    font-size: 15px;
    line-height: 1.7;
    word-break: break-word;
}
.log20_review_content img {
    max-width: min(700px, 100%);
    width: auto;
    height: auto;
    display: inline-block;
    vertical-align: top;
}
/* 이미지 하나만 담긴 문단/블록은 인라인으로 배치해서,
   700px 이하로 좁은 이미지들을 나란히(같은 줄에) 끌어다 놓을 수 있게 함 */
.log20_review_content p:has(> img:only-child),
.log20_review_content div:has(> img:only-child) {
    display: inline-block;
    vertical-align: top;
    margin: 4px 6px 4px 0;
    max-width: 100%;
}
.log20_review_content table {
    width: 80%;
    max-width: 80%;
    margin: 12px 0;
    border-collapse: collapse;
}
.log20_review_content table td,
.log20_review_content table th {
    border: 1px solid var(--card-border-color, #ddd);
    padding: 6px 10px;
}

/* 댓글(타래 잇기) */
.log20_review_comments {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--card-border-color, #eee);
}
.log20_review_comment_toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #666;
    font-size: 18px;
    padding: 0;
}
.log20_review_comment_toggle:hover {
    color: #4374ff;
}
.log20_review_comment_count {
    font-size: 12px;
    font-weight: 700;
    color: #999;
}
.log20_review_comment_form {
    margin-top: 10px;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px;
}
.log20_review_comment_form textarea {
    width: 100%;
    resize: vertical;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 13px;
    box-sizing: border-box;
}
#log20_review_comment_submit {
    align-self: flex-end !important;
    margin-top: 4px !important;
    border: 1px solid #c3c3c3 !important;
    color: #c3c3c3 !important;
    font-size: 13px !important;
    height: 30px;
    width: 50px;
    white-space: nowrap;
    padding: 0 4px;
}
.log20_review_comment_list {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.log20_review_comment_item {
    padding: 15px 20px;
    margin-top: -35px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    font-size: 13px;
}
.log20_review_comment_name {
    font-weight: 700;
    margin-right: 8px;
    color: #c3c3c3;
}
.log20_review_comment_date {
    color: #999;
    font-size: 11px;
}
.log20_review_comment_text {
    margin-top: 4px;
    white-space: pre-wrap;
    word-break: break-word;
    color: #c3c3c3;
}

/* 글쓰기 폼: 별점 입력 위젯 */
.log20_review_rating_widget {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 26px;
    color: #ffc107;
    cursor: pointer;
}
.log20_review_rating_star.is-empty {
    color: #ddd;
}
.log20_review_rating_star.is-half {
    /* fa-solid 별 전체를 쓰되 살짝 옅게 표시 (half는 클릭 판정용, 시각은 근사치) */
    opacity: 0.5;
}
.log20_review_rating_value {
    font-size: 14px;
    color: #666;
    margin-left: 6px;
}

/* 리뷰 게시판 목록 (카드 그리드) */
.log20_review_list_wrap {
    width: 88%;
    margin: 0 auto;
}
.log20_top_buttons {
    display: flex;
    align-items: center;
    margin: 0 auto 5px auto;
    padding: 20px 9px 15px 0px;
}
.log20_review_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 203px);
    justify-content: start;
    gap: 20px;
}
@media (max-width: 600px) {
    .log20_review_grid {
        grid-template-columns: repeat(2, 1fr);
        justify-content: stretch;
        gap: 10px;
    }
    .log20_review_card {
        width: 100%;
        height: auto;
        aspect-ratio: 203 / 305;
    }
}
.log20_review_card {
    display: block;
    position: relative;
    width: 203px;
    height: 305px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    border: 1px solid var(--card-border-color, #eee);
    transition: transform 0.15s, box-shadow 0.15s;
}
.log20_review_card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 4;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}
.log20_review_card:hover::after {
    opacity: 1;
}
.log20_review_card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.log20_review_card_media {
    position: relative;
    width: 100%;
    height: 100%;
    background: #222;
}
/* 배경음악(BGM)이 있는 게시글 썸네일 왼쪽 위 표시 */
.log20_review_card_bgm_badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    font-size: 19px;
    line-height: 1;
    color: #ffc107;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}
.log20_review_card_media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.log20_review_card_poster_empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 32px;
    background: linear-gradient(135deg, #222, #444);
}
.log20_review_card_rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
    color: #ffc107;
    font-size: 12px;
    font-weight: 700;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.95), 0 0 10px rgba(0, 0, 0, 0.9);
}
.log20_review_card_overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    text-align: right;
    padding: 18px 10px 16px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0) 75%);
}
.log20_review_card_quote {
    margin-bottom: 3px;
    width: 100%;
    text-align: right;
}
.log20_review_card_quote p {
    margin: 0;
    text-align: right;
    font-family: 'Pretendard Light', sans-serif;
    font-weight: 300;
    font-size: 11px;
    font-style: italic;
    line-height: 1.4;
    color: #fff;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.95), 0 0 10px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 1);
}
.log20_review_card_title {
    font-size: 19px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.95), 0 0 10px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 1);
    background-image: linear-gradient(120deg, #fff176 0%, #fff176 100%);
    background-repeat: no-repeat;
    background-size: 0% 38%;
    background-position: 100% 88%;
    transition: background-size 0.3s ease;
}
.log20_review_card:hover .log20_review_card_title {
    background-size: 100% 38%;
}


/* 리뷰 게시판: 평가 입력 에디터 높이 500px */
.log20_review_content_field #wr_content_viewer {
    min-height: 300px !important;
    height: 300px;
}
.log20_review_content_field textarea#wr_content {
    height: 500px;
}

/* 리뷰 게시판 글쓰기 폼: 필드를 세로로 한 줄씩 쌓기 (log20_field_row의 flex-row와 무관) */
.log20_review_field_stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.log20_review_field_stack dl {
    margin: 0;
}

/* 리뷰 게시판 글쓰기 폼: 전체 폭 80% + 필드 라벨 노란색 (이 폼에만 적용) */
#bo_w_review #fwrite {
    width: 95%;
    margin: 30px auto;
}
#bo_w_review .log20_write_form dt,
#bo_w_review .log20_write_form dt label {
    color: #ffd400;
}

/* 평가(에디터+파일첨부): 본문 아래, 파일 첨부 위아래로 한 줄씩 여백 */
#bo_w_review .form-group + .form-group {
    margin-top: 1.5em;
}
#bo_w_review #fileDropzone {
    margin-top: 1.5em;
}
#bo_w_review label[for="wr_content"] {
    display: block;
    margin-bottom: 1.5ex;
}

/* 감독/작가+장르, 개봉일+러닝타임: 한 줄에 각 45% */
.log20_review_paired_row {
    display: flex;
    gap: 10%;
}
.log20_review_paired_field {
    flex: 0 0 45%;
    max-width: 45%;
}

/* 이미지 첨부 시 선택한 파일 미리보기 (가로 150px) */
.log20_review_gallery_new_preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}
.log20_review_gallery_new_preview_item {
    width: 220px;
    max-width: 100%;
}
.log20_review_gallery_crop_box {
    position: relative;
    width: 220px;
    max-width: 100%;
    aspect-ratio: 16 / 7;
    border-radius: 6px;
    border: 1px solid var(--card-border-color, #ddd);
    overflow: hidden;
    cursor: crosshair;
    background: #111;
    user-select: none;
}
.log20_review_gallery_crop_box img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.log20_review_gallery_crop_hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4px;
    font-size: 11px;
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    transition: opacity 0.15s ease;
    pointer-events: none;
}
.log20_review_gallery_new_preview_name {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #888;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 기존에 업로드된 스틸컷/이미지 미리보기 (드래그 크롭 박스 사용, 한 줄로 나열 후 넘치면 다음 줄로) */
.log20_review_gallery_preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}
.log20_review_gallery_preview_item {
    width: 220px;
    max-width: 100%;
}
.log20_review_gallery_preview_item label {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #888;
}

#container_wr {
    max-width: 1000px;
}

/* 이전글 / 다음글: 게시글 양옆에 화살표만 표시 (노란색, 화면 세로 중앙 고정) */
/* #container_wr의 max-width(1000px) 기준으로, 콘텐츠 바로 바깥쪽에 약간의 여백을 두고 배치 */
.log20_review_side_nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    font-size: 69px;
    color: #0261be;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.log20_review_side_nav:hover {
    opacity: 1;
}
.log20_review_side_nav_prev {
    left: max(12px, calc((100vw - 1000px) / 2 - 100px));
}
.log20_review_side_nav_next {
    right: max(12px, calc((100vw - 1000px) / 2 - 100px));
}
.log20_review_side_nav_prev:hover {
    transform: translate(-4px, -50%);
}
.log20_review_side_nav_next:hover {
    transform: translate(4px, -50%);
}
@media (max-width: 900px) {
    .log20_review_side_nav {
        top: auto;
        bottom: 16px;
        transform: none;
        width: 48px;
        height: 48px;
        font-size: 26px;
        background: rgba(0, 0, 0, 0.55);
        border-radius: 50%;
        opacity: 0.9;
    }
    .log20_review_side_nav_prev {
        left: 12px;
        right: auto;
    }
    .log20_review_side_nav_next {
        right: 12px;
        left: auto;
    }
    .log20_review_side_nav_prev:hover,
    .log20_review_side_nav_next:hover {
        transform: none;
    }
}

/* 리뷰 게시판: 분류(카테고리) 플로팅 메뉴 */
.log20_review_category_float {
    position: fixed;
    top: 9%;
    left: 76%;
    right: auto;
    z-index: 60;
    width: 176px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    user-select: none;
}
.log20_review_category_float.is-dragging {
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}
.log20_review_category_float_header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    background: #0076ff;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: grab;
}
.log20_review_category_float_header:active {
    cursor: grabbing;
}
.log20_review_category_float_list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 10px 14px;
    gap: 10px;
    justify-items: center;
    background: #dfe7ffba;
}
.log20_review_category_item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    color: #444;
    font-size: 13px;
}
.log20_review_category_item i {
    color: #dd355e;
    font-size: 15px;
}
.log20_review_category_item.is-active {
    font-weight: 700;
    color: #dd355e;
}
@media (max-width: 900px) {
    .log20_review_category_float {
        display: none;
    }
}

/* 스티커 위젯 */
.log20_sticker_wrap {
    position: relative;
}
.log20_sticker_canvas {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    height: 100%;
    z-index: 30;
    pointer-events: none;
}
@media (max-width: 600px) {
    .log20_sticker_canvas,
    [data-sticker-target],
    [data-sticker-edit-target] {
        display: none !important;
    }
}
.log20_sticker_item {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 31;
}
.log20_sticker_item.is-editable {
    pointer-events: auto;
}
.log20_sticker_item img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}
.log20_sticker_item.is-editable {
    cursor: grab;
}
.log20_sticker_item.is-editable.is-dragging {
    cursor: grabbing;
    opacity: 0.85;
}
.log20_sticker_delete {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}
.log20_sticker_item.is-editable:hover .log20_sticker_delete {
    display: flex;
}
.log20_sticker_item.is-editable {
    outline: 1px dashed rgba(255, 212, 0, 0.7);
    outline-offset: 4px;
}
.log20_sticker_resize_handle,
.log20_sticker_rotate_handle {
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 68, 123, 0.85);
    color: #fff;
    font-size: 11px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.log20_sticker_item.is-editable .log20_sticker_resize_handle,
.log20_sticker_item.is-editable .log20_sticker_rotate_handle {
    display: flex;
}
.log20_sticker_resize_handle {
    right: -10px;
    bottom: -10px;
    cursor: nwse-resize;
}
.log20_sticker_rotate_handle {
    left: 50%;
    top: -30px;
    transform: translateX(-50%);
    cursor: grab;
}
.log20_sticker_add_wrap {
    position: relative;
    z-index: 32;
    text-align: right;
    margin-top: 8px;
}
.log20_sticker_add_btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid #00447b;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: #ffd400;
    font-size: 13px;
    cursor: pointer;
}

/* 스티커 추가 모달 */
.log20_sticker_modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}
.log20_sticker_modal_box {
    width: 420px;
    max-width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
    background: #222;
    color: #eee;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.log20_sticker_modal_box h3 {
    margin: 0 0 14px 0;
    font-size: 16px;
}
.log20_sticker_modal_box h3 span {
    font-size: 12px;
    font-weight: 400;
    color: #999;
}
.log20_sticker_modal_row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.log20_sticker_preview_label {
    display: block;
    margin: 14px 0 6px 0;
    font-size: 13px;
    color: #ccc;
}
.log20_sticker_preview_row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.log20_sticker_slot_preview {
    display: none;
    height: 60px;
    width: 60px;
    object-fit: contain;
    border: 1px solid #00447b;
    border-radius: 4px;
    background: #111;
}
.log20_sticker_modal_row_num {
    flex: 0 0 16px;
    font-size: 12px;
    color: #888;
}
.log20_sticker_modal_row_or {
    flex: 0 0 auto;
    font-size: 11px;
    color: #888;
}
.log20_sticker_modal_row input[type="file"] {
    flex: 1 1 auto;
    min-width: 0;
}
.log20_sticker_modal_row input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
}
.log20_sticker_modal_box input[type="file"],
.log20_sticker_modal_box input[type="text"] {
    box-sizing: border-box;
    padding: 6px 8px;
    border: 1px solid #00447b;
    border-radius: 4px;
    background: #1a1a1a;
    color: #eee;
    font-size: 11px;
}
.log20_sticker_modal_actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

/* 스티커/정렬 저장 바 (화면 하단 고정) */
.log20_sticker_savebar {
    position: fixed;
    left: 50%;
    bottom: 102px;
    transform: translateX(-50%);
    z-index: 150;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 7px 22px;
    background: rgba(20, 20, 20, 0.92);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    font-size: 13px;
}

/* 게시글 드래그 정렬 모드 */
.log20_review_grid.is-sorting .log20_review_card {
    cursor: grab;
}
.log20_review_grid.is-sorting .log20_review_card.is-dragging {
    opacity: 0.4;
    cursor: grabbing;
}
