/* ========================
   로드비 피드 스킨 v2
   좌: 이미지 고정 / 우: 댓글 타임라인
======================== */

#roadb_feed {
    max-width: 900px;
    margin: 0 auto;
    padding: 16px 0 40px;
    
    font-size: 14px;
    color: var(--content-font-color);
}

/* 상단 바 */
.rf-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px 19px;
    gap: 10px;
}

.rf-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.rf-cat {
    padding: 3px 12px;
    border-radius: 12px;
    border: 1px solid var(--card-border-color);
    background: var(--card-bg-color);
    color: var(--text-muted);
    font-size: 0.82em;
    text-decoration: none;
    transition: all 0.15s;
}

.rf-cat:hover,
.rf-cat.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.rf-write-btn {
    padding: 5px 14px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.82em;
    font-weight: 600;
    transition: opacity 0.15s;
}

.rf-write-btn:hover {
    opacity: 0.85;
    color: #fff;
}
/* 피드 */
.rf-feed { display: flex; flex-direction: column; gap: 14px; }

/* 카드 */
.rf-card {
    background: var(--card-bg-color);
    border-radius: 10px;
    box-shadow: 0 1px 10px rgb(from var(--content-font-color) r g b / 6%);
    border: 1px solid rgb(from var(--card-border-color) r g b / 40%);
    overflow: hidden;
}
.rf-card-inner {
    display: flex !important;
    flex-direction: row !important;
    min-height: 300px;
}

/* ========================
   왼쪽: 이미지
======================== */
.rf-left {
    width: 42% !important;
    flex-shrink: 0 !important;
    background: var(--container-bg-color);
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    border-right: 1px solid var(--card-border-color);
}
.rf-img-wrap {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}
.rf-img {
    width: 100%; height: 100%;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
    transition: filter 0.25s;
    
}
.rf-img-blur { filter: blur(18px) brightness(0.4); cursor: default; }
.rf-no-img {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 3em;
}
/* 접기/민감 커버 */
.rf-img-cover {
    position: absolute; inset: 0; z-index: 5;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 10px; color: #fff; text-align: center;
    background: rgba(20,20,40,0.75); padding: 20px;
}
.rf-img-cover i { font-size: 2em; opacity: 0.75; }
.rf-img-cover p { margin: 0; font-size: 0.9em; }
.rf-sens-cover { background: rgba(60,30,0,0.75); }
.rf-secret-cover { background: rgba(30,30,50,0.85); }
.rf-cover-btn {
    padding: 6px 18px; border-radius: 16px;
    border: 1.5px solid rgba(255,255,255,0.55);
    background: transparent; color: #fff;
    cursor: pointer; font-size: 0.83em; transition: background 0.15s;
}
.rf-cover-btn:hover { background: rgba(255,255,255,0.15); }

/* 좋아요/댓글 버튼 (이미지 하단) */
.rf-left-actions {
    display: flex;
    align-items: center;
    gap: 1px;
    padding: 4px 6px;
    border-top: 1px solid var(--card-border-color);
    background: rgba(255,255,255,0.9);
}

.rf-like-btn,
.rf-cmt-icon-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 0.9em;
    cursor: pointer;
    border-radius: 16px;
    transition: all 0.15s;
}

.rf-like-btn:hover  { color: var(--error-color, #e44); background: rgb(from var(--error-color, #e44) r g b / 7%); }
.rf-like-btn.liked  { color: var(--error-color, #e44); }
.rf-cmt-icon-btn:hover { color: var(--primary-color); background: rgb(from var(--primary-color) r g b / 8%); }

.rf-like-btn.like-pop {
    animation: rfLikePop 0.3s ease;
}

@keyframes rfLikePop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ========================
   오른쪽: 댓글 타임라인
======================== */
.rf-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: auto;  

    
}

/* 상단 헤더 */
.rf-num {
    font-size: 0.88em;
    color: var(--secondary-color); 
    font-weight: 700;
}

.rf-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.73em;
    font-weight: 600;
}

.rf-badge-cat    { background: rgb(from var(--primary-color) r g b / 12%); color: var(--primary-color); }
.rf-badge-secret { background: #eee;    color: var(--text-muted); }
.rf-badge-sens   { background: rgb(from var(--accent-color, #f59e0b) r g b / 15%); color: var(--accent-color, #f59e0b); }


/* 수정/삭제 드롭다운 */
.rf-head-edit { position: relative; }
.rf-edit-dot {
    width: 26px; height: 26px; background: none; border: none;
    color: var(--text-muted); cursor: pointer; font-size: 0.95em; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; transition: background 0.12s;
}
.rf-edit-dot:hover { background: var(--form-bg-color); color: var(--text-muted); }
.rf-edit-menu {
    position: absolute; right: 0; top: 30px; z-index: 100;
    background: var(--card-bg-color); border: 1px solid var(--card-border-color); border-radius: 8px;
    box-shadow: 0 4px 16px rgb(from var(--content-font-color) r g b / 8%); min-width: 100px; overflow: hidden;
}
.rf-edit-menu a, .rf-edit-menu button {
    display: flex; align-items: center; gap: 7px;
    padding: 8px 14px; font-size: 0.83em; color: var(--text-muted);
    text-decoration: none; background: none; border: none;
    width: 100%; text-align: left; cursor: pointer; transition: background 0.12s;
}
.rf-edit-menu a:hover { background: rgb(from var(--primary-color) r g b / 5%); }
.rf-edit-menu button:hover { background: rgb(from var(--error-color, #e44) r g b / 6%); color: var(--error-color, #e44); }

/* 본문 */
.rf-post-body {
    padding: 5px 14px 7px;
    /* border-bottom: 1px solid var(--card-border-color); */
    flex-shrink: 0;
}
.rf-post-text { font-size: 0.9em; line-height: 1.65; color: var(--content-font-color); }

/* 댓글 목록 (스크롤) */
.rf-cmts-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px 0;
    /* 스크롤바 스타일 */
    scrollbar-width: thin;
    scrollbar-color: var(--card-border-color) transparent;
}
.rf-cmts-list::-webkit-scrollbar { width: 4px; }
.rf-cmts-list::-webkit-scrollbar-track { background: transparent; }
.rf-cmts-list::-webkit-scrollbar-thumb { background: var(--card-border-color); border-radius: 2px; }

/* 더보기 버튼 */
.rf-more-btn {
    width: 100%; padding: 7px;
    border: none; background: none;
    color: var(--primary-color); font-size: 0.8em; font-weight: 600;
    cursor: pointer; display: flex; align-items: center;
    justify-content: center; gap: 5px; transition: background 0.12s;
}
.rf-more-btn:hover { background: rgb(from var(--primary-color) r g b / 6%); }
.rf-cmt-more { display: none; }

/* 개별 댓글 */
.rf-cmt {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    padding: 7px 12px;
    transition: background 0.1s;
}

.rf-cmt:hover {
    background: rgba(0,0,0,0.015);
}

.rf-cmt-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    max-width: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--form-bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.2em;
}

.rf-cmt-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rf-cmt-body {
    flex: 1;
    min-width: 0;
}

.rf-cmt-head {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 3px;
}

.rf-cmt-name     { font-size: 0.95em; font-weight: 700; color: var(--content-font-color); }
.rf-cmt-rank     { font-size: 0.75em; font-weight: 700; }
.rf-cmt-date     { font-size: 0.75em; color: var(--text-muted); margin-left: auto; }

.rf-cmt-del-btn {
    background: none;
    border: none;
    color: var(--card-border-color);
    cursor: pointer;
    font-size: 0.8em;
    padding: 0 2px;
    transition: color 0.12s;
}

.rf-cmt-del-btn:hover {
    color: var(--error-color, #e44);
}

.rf-cmt-text {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--content-font-color);
}

.rf-cmt-img-wrap {
    margin-top: 5px;
}

.rf-cmt-img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 6px;
    cursor: zoom-in;
    border: 1px solid var(--card-border-color);
    object-fit: contain;
    display: block;
}

/* 해시태그 */
.rf-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 6px 14px 4px;
    border-top: 1px solid var(--card-border-color);
    flex-shrink: 0;
}

.rf-tag {
    color: var(--text-muted);
    font-size: 0.88em;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.12s;
}

.rf-tag:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* 댓글 입력창 */
.rf-cmt-write {
    border-top: 1px solid var(--card-border-color);
    padding: 8px 10px;
    flex-shrink: 0;
    background: var(--container-bg-color);
}
.rf-cmt-write-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.rf-cmt-av {
    width: 30px;
    height: 30px;
    min-width: 30px;
    max-width: 30px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--form-bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1em;
}

.rf-cmt-av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rf-cmt-input-wrap {
    flex: 1;
    min-width: 0;
}

/* 이미지 미리보기 */
.rf-cmt-img-preview-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 5px;
}

.rf-cmt-img-preview {
    max-height: 80px;
    max-width: 120px;
    border-radius: 6px;
    border: 1px solid var(--card-border-color);
    object-fit: contain;
    display: block;
}

.rf-cmt-img-remove {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 0.7em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rf-cmt-input-row {
    display: flex;
    gap: 5px;
    align-items: flex-end;
}

.rf-cmt-ta {
    flex: 1;
    padding: 7px 10px;
    border: 1px solid var(--card-border-color);
    border-radius: 14px;
    font-size: 0.90em;
    font-family: inherit;
    resize: none;
    box-sizing: border-box;
    line-height: 1.5;
    min-height: 80px;
    background: var(--card-bg-color);
    transition: border-color 0.15s;
}

.rf-cmt-ta:focus {
    outline: none;
    border-color: var(--primary-color);
}

.rf-cmt-btns {
    display: flex;
    gap: 3px;
    align-items: center;
    flex-shrink: 0;
}

.rf-cmt-img-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.95em;
    transition: color 0.15s, background 0.15s;
}

.rf-cmt-img-btn:hover {
    color: var(--primary-color);
    background: rgb(from var(--primary-color) r g b / 10%);
}

.rf-cmt-post {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s;
}

.rf-cmt-post:hover {
    opacity: 0.85;
}
/* 빈 상태 */
.rf-empty {
    text-align: center; padding: 60px 20px; color: var(--text-muted);
    background: var(--card-bg-color); border-radius: 6px; border: 1px solid var(--card-border-color);
}
.rf-empty i { font-size: 3em; display: block; margin-bottom: 14px; }

/* 페이지네이션 */
.rf-pagination { margin-top: 24px; text-align: center; }

/* 라이트박스 */
#rf-lightbox { position: fixed; inset: 0; z-index: 9999; }
#rf-lb-bg { position: absolute; inset: 0; background: rgba(0,0,0,0.92); cursor: pointer; }
#rf-lb-wrap {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center; pointer-events: none;
}
#rf-lb-img {
    max-width: 92vw; max-height: 92vh; object-fit: contain;
    border-radius: 4px; box-shadow: 0 8px 40px rgb(from var(--content-font-color) r g b / 35%); pointer-events: all;
}
#rf-lb-close {
    position: absolute; top: 14px; right: 18px;
    background: rgba(255,255,255,0.12); border: none; color: #fff;
    width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
    font-size: 1.2em; display: flex; align-items: center; justify-content: center;
    pointer-events: all; transition: background 0.15s;
}
#rf-lb-close:hover { background: rgba(255,255,255,0.25); }

/* ========================
   글쓰기 (write.skin.php용)
======================== */
#roadb_write {
    max-width: 900px; margin: 0 auto;
    padding: 20px 16px; 
}
.rb-write-title { font-size: 1.2em; font-weight: 700; margin-bottom: 20px; color: var(--content-font-color); }
.rb-write-layout { display: flex; gap: 20px; align-items: flex-start; }
.rb-write-left  { width: 280px; flex-shrink: 0; display: flex; flex-direction: column; gap: 14px; }
.rb-write-right { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.rb-write-section { background: var(--card-bg-color); border: 1px solid var(--card-border-color); border-radius: 10px; padding: 14px; }
.rb-write-label {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.82em; font-weight: 700; color: var(--text-muted); margin-bottom: 10px;
}
.rb-img-upload-area {
    position: relative; aspect-ratio: 3/4;
    border: 2px dashed var(--card-border-color); border-radius: 8px;
    overflow: hidden; background: var(--container-bg-color);
    cursor: pointer; transition: border-color 0.15s, background 0.15s;
    display: block;
}
.rb-img-upload-area:hover, .rb-img-upload-area.drag-over { border-color: var(--primary-color); background: rgb(from var(--primary-color) r g b / 5%); }
.rb-img-placeholder {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 8px; color: var(--text-muted); text-align: center; padding: 16px;
}
.rb-img-placeholder i { font-size: 2em; }
.rb-img-placeholder p { font-size: 0.82em; margin: 0; }
.rb-img-placeholder small { font-size: 0.72em; }
.rb-img-preview { width: 100%; height: 100%; object-fit: contain; display: block; }
.rb-img-remove-btn {
    position: absolute; top: 7px; right: 7px;
    width: 26px; height: 26px; background: rgba(0,0,0,0.55); color: #fff;
    border: none; border-radius: 50%; cursor: pointer; font-size: 0.8em;
    display: flex; align-items: center; justify-content: center; transition: background 0.15s;
}
.rb-img-remove-btn:hover { background: var(--error-color, #e44); }
.rb-img-upload-progress { margin-top: 8px; text-align: center; }
.rb-progress-bar { height: 3px; background: var(--primary-color); border-radius: 2px; transition: width 0.2s; margin-bottom: 4px; }
#rb-progress-text { font-size: 0.75em; color: var(--text-muted); }
.rb-options { display: flex; flex-direction: column; gap: 7px; }
.rb-option-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 11px; border-radius: 8px; border: 1.5px solid var(--card-border-color);
    background: var(--card-bg-color); cursor: pointer; transition: all 0.15s;
}
.rb-option-item:hover { border-color: var(--primary-color); background: rgb(from var(--primary-color) r g b / 4%); }
.rb-option-item input[type=checkbox] { display: none; }
.rb-option-item:has(input:checked) { border-color: var(--primary-color); background: rgb(from var(--primary-color) r g b / 6%); }
.rb-option-icon {
    width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
    border-radius: 7px; background: var(--form-bg-color); color: var(--text-muted); font-size: 0.9em; flex-shrink: 0;
}
.rb-option-item:has(input:checked) .rb-option-icon { background: rgb(from var(--primary-color) r g b / 12%); color: var(--primary-color); }
.rb-option-text strong { display: block; font-size: 0.85em; color: var(--content-font-color); }
.rb-option-text small { font-size: 0.72em; color: var(--text-muted); }
.rb-tags-input {
    width: 100%; padding: 7px 11px; border: 1px solid var(--card-border-color); border-radius: 7px;
    font-size: 0.85em; font-family: inherit; box-sizing: border-box; transition: border-color 0.15s;
}
.rb-tags-input:focus { outline: none; border-color: var(--primary-color); }
.rb-tags-preview { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.rb-tag-chip { padding: 2px 9px; background: rgb(from var(--primary-color) r g b / 10%); color: var(--primary-color); border-radius: 10px; font-size: 0.78em; font-weight: 600; }
.rb-editor-section { flex: 1; }
.rb-write-footer { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.rb-btn {
    display: inline-flex; align-items: center; gap: 5px; padding: 7px 16px;
    border-radius: 8px; font-size: 0.85em; font-weight: 600;
    text-decoration: none; cursor: pointer; border: 1px solid var(--card-border-color);
    background: var(--card-bg-color); color: var(--text-muted); transition: all 0.15s;
}
.rb-btn-cancel:hover { background: var(--form-bg-color); }
.rb-btn-submit { background: var(--primary-color); color: #fff; border-color: var(--primary-color); padding: 7px 22px; }
.rb-btn-submit:hover { opacity: 0.88; color: #fff; }

/* 반응형 */
@media (max-width: 640px) {
    .rf-card-inner { flex-direction: column; }
    .rf-left { width: 100%; border-right: none; border-bottom: 1px solid var(--card-border-color); }
    .rf-img-wrap { min-height: 240px; }
    .rf-right { max-height: none; }
    .rb-write-layout { flex-direction: column; }
    .rb-write-left { width: 100%; }
    .rb-img-upload-area { aspect-ratio: 16/10; }
}

/* ========================
   외부 이미지 링크 섹션
======================== */
.rb-ext-url-section { margin-top: 8px; }
.rb-ext-url-btn {
    width: 100%; padding: 7px 12px;
    background: none; border: 1.5px dashed var(--card-border-color);
    border-radius: 8px; color: var(--primary-color);
    font-size: 0.82em; font-weight: 600;
    cursor: pointer; display: flex;
    align-items: center; justify-content: center; gap: 6px;
    transition: all 0.15s;
}
.rb-ext-url-btn:hover { background: rgb(from var(--primary-color) r g b / 6%); border-color: var(--primary-color); }
.rb-ext-url-row {
    display: flex; gap: 5px; align-items: center; margin-top: 7px;
}
.rb-ext-url-input {
    flex: 1; padding: 7px 10px;
    border: 1px solid var(--card-border-color); border-radius: 7px;
    font-size: 0.82em; font-family: inherit;
    box-sizing: border-box; transition: border-color 0.15s;
}
.rb-ext-url-input:focus { outline: none; border-color: var(--primary-color); }
.rb-ext-url-apply, .rb-ext-url-clear {
    width: 30px; height: 30px; border-radius: 50%;
    border: none; cursor: pointer; font-size: 0.85em;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: opacity 0.15s;
}
.rb-ext-url-apply { background: var(--primary-color); color: #fff; }
.rb-ext-url-apply:hover { opacity: 0.85; }
.rb-ext-url-clear { background: #f0f0f0; color: var(--text-muted); }
.rb-ext-url-clear:hover { background: rgb(from var(--error-color, #e44) r g b / 10%); color: var(--error-color, #e44); }

/* ========================
   유튜브 미리보기 (글쓰기)
======================== */
.rb-yt-input {
    width: 100%; padding: 8px 12px;
    border: 1px solid var(--card-border-color); border-radius: 8px;
    font-size: 0.85em; font-family: inherit;
    box-sizing: border-box; transition: border-color 0.15s;
}
.rb-yt-input:focus { outline: none; border-color: #ff3333; }
.rb-yt-preview-wrap { margin-top: 10px; }
.rb-yt-iframe-wrap {
    position: relative; width: 100%; padding-top: 56.25%;
    border-radius: 8px; overflow: hidden; background: #000;
}
.rb-yt-iframe-wrap iframe {
    position: absolute; inset: 0; width: 100%; height: 100%;
    border: none;
}

/* ========================
   유튜브 임베드 (목록)
======================== */
.rf-yt-wrap {
    background: #000 !important;
    min-height: 200px;
}
.rf-yt-embed {
    position: absolute !important;
    inset: 0; width: 100% !important; height: 100% !important;
    border: none;
}

/* ========================
   미디어 없을 때: 글만 전체 너비
======================== */
.rf-card-inner.rf-no-media {
    flex-direction: column !important;
}
.rf-card-inner.rf-no-media .rf-right {
    max-height: none !important;
    border-left: none;
}


/* ========================
   글 작성자 정보
======================== */
.rf-author {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 4px;
}
.rf-author-avatar {
    width: 24px !important; height: 24px !important;
    min-width: 24px !important; max-width: 24px !important; max-height: 24px !important;
    border-radius: 50%; overflow: hidden; background: var(--form-bg-color);
    display: flex !important; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 0.9em; flex-shrink: 0;
}
.rf-author-avatar img {
    width: 24px !important; height: 24px !important;
    min-width: 24px !important; max-width: 24px !important;
    object-fit: cover; display: block !important;
}
.rf-author-info {
    display: flex; flex-direction: column; gap: 1px;
}
.rf-author-name {
    font-size: 0.83em; font-weight: 700; color: var(--content-font-color);
    display: flex; align-items: center; gap: 5px;
}
.rf-author-rank { font-size: 0.75em; font-weight: 700; }
.rf-author-date { font-size: 0.72em; color: var(--text-muted); }

/* ========================
   카드 전체 너비 헤더
======================== */
.rf-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 14px;
    border-bottom: 1px solid var(--card-border-color);
    flex-shrink: 0;
    background: var(--card-border-color);
}
.rf-card-head-left {
    display: flex; align-items: center; gap: 8px;
}
.rf-card-head-right {
    display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.rf-card-head .rf-author-date {
    font-size: 0.78em; color: var(--text-muted);
}

/* ========================
   공지 카드 스타일
======================== */
.rf-card-notice {
    border-color: rgb(from var(--primary-color) r g b / 40%);
    box-shadow: 0 0 0 1px rgb(from var(--primary-color) r g b / 20%),
                0 2px 12px rgb(from var(--primary-color) r g b / 10%);
}
.rf-card-notice .rf-card-head {
    background: rgb(from var(--primary-color) r g b / 8%);
    border-bottom-color: rgb(from var(--primary-color) r g b / 20%);
}
.rf-badge-notice {
    background: var(--primary-color);
    color: #fff;
    font-size: 0.72em;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ========================
   본문 위 작성자 정보
======================== */
.rf-post-author {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px 2px;
}
.rf-post-author-avatar {
    width: 45px !important;
    height: 45px !important;
    border-radius: 50%;
    overflow: hidden;
    background: var(--form-bg-color);
    border: 1px solid var(--card-border-color);
    flex-shrink: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);

}
.rf-post-author-avatar img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 50%;
    display: block !important;
}
.rf-post-author-info {
    display: flex; flex-direction: column; gap: 1px;
}
.rf-post-author .rf-author-name {
    font-size: 0.93em; 
    font-weight: 700;
    color: var(--content-font-color);
    display: flex;
    align-items: center; 
    gap: 5px;
}
.rf-post-author .rf-author-date {
    font-size: 0.79em; color: var(--text-muted);
}

/* ========================
   댓글 로그인 안내
======================== */
.rf-cmt-login-msg {
    padding: 10px 14px;
    text-align: center;
}
.rf-cmt-login-msg a {
    font-size: 0.82em; color: var(--primary-color);
    display: inline-flex; align-items: center; gap: 6px;
}
.rf-cmt-login-msg a:hover { text-decoration: underline; }

/* ========================
   비회원 이름/비번 입력
======================== */
.rb-nonmember-fields {
    padding: 12px 0 4px;
}
.rb-nonmember-row {
    display: flex; gap: 10px; flex-wrap: wrap;
}
.rb-nonmember-field {
    display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 140px;
}
.rb-nonmember-field label {
    font-size: 0.78em; color: var(--text-muted); font-weight: 600;
}
.rb-nonmember-field input {
    padding: 6px 10px; border: 1px solid var(--card-border-color); border-radius: 6px;
    font-size: 0.88em; outline: none;
}
.rb-nonmember-field input:focus { border-color: var(--primary-color); }

/* ========================
   댓글창 비회원 이름/비번
======================== */
.rf-cmt-nonmember {
    display: flex; 
    gap: 6px; 
    padding: 2px 0 6px 40px;
    justify-content: flex-start;
}
.rf-cmt-nm-input {
    flex: none; 
    width: 120px;
    padding: 5px 9px;
    border: 1px solid var(--card-border-color);
    border-radius: 6px;
    font-size: 0.8em; 
    outline: none;
    min-width: 0;
}
.rf-cmt-nm-input:focus { border-color: var(--primary-color); }

/* ========================
   비밀글 잠금 (전체)
======================== */

/* ========================
   비밀글 전체 오버레이
======================== */
.rf-secret-overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: var(--container-bg-color);
    gap: 6px; z-index: 10;
    border-radius: inherit;
}
.rf-secret-overlay i    { font-size: 2em; color: var(--primary-color); }
.rf-secret-overlay p    { font-size: 0.95em; font-weight: 700; color: var(--text-muted); margin: 0; }
.rf-secret-overlay small { font-size: 0.78em; color: var(--text-muted); }

.rf-card-inner { position: relative; }

/* ========================
   이미지 비율 레이아웃
======================== */

/* 세로형(portrait): 기존과 동일 - 이미지 왼쪽, 댓글 오른쪽 */
.rf-card-inner.rf-portrait {
    align-items: stretch;
    flex-direction: row !important;
}
.rf-card-inner.rf-portrait .rf-left {
    width: 42%;
    min-width: 42%;
}
.rf-card-inner.rf-portrait .rf-right {
    flex: 1;
}

/* 가로형(landscape): 이미지 위, 댓글 아래 */
.rf-card-inner.rf-landscape {
    flex-direction: column !important;
    min-height: unset !important;
}
.rf-card-inner.rf-landscape .rf-left {
    width: 100% !important;
    min-width: unset !important;
    border-right: none !important;
    border-bottom: 1px solid var(--card-border-color);
    max-height: 480px;
}
.rf-card-inner.rf-landscape .rf-img-wrap {
    min-height: 320px;
    max-height: 480px;
}
.rf-card-inner.rf-landscape .rf-img {
    max-height: 480px;
    object-fit: contain;
}
.rf-card-inner.rf-landscape .rf-left-actions {
    flex-direction: row !important;
    justify-content: flex-start;
    padding: 8px 14px;
    border-top: 1px solid var(--card-border-color);
    border-right: none !important;
}
.rf-card-inner.rf-landscape .rf-right {
    max-height: none !important;
    width: 100% !important;
}

/* 미디어 없을 때 */
.rf-card-inner.rf-no-media {
    flex-direction: column !important;
}
.rf-card-inner.rf-no-media .rf-right {
    max-height: none !important;
    border-left: none;
}
