/* feed.css — 러너 피드(트위터형) 반응형 스타일 */
.rf-shell { max-width: 620px; margin: 0 auto; padding: 0 0 80px; }
.rf-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--ro-surface,#fff) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ro-border,#e6e9f0); padding: 12px 16px 0; }
.rf-head h1 { margin: 0 0 8px; font-size: 20px; font-weight: 900; letter-spacing: -.02em; color: var(--ro-text,#0f172a); }
.rf-head h1 small { font-size: 13px; font-weight: 700; color: var(--ro-text-sub,#64748b); margin-left: 6px; }
.rf-head-links { display: flex; gap: 14px; padding: 0 0 8px; }
.rf-head-links a { font-size: 13px; font-weight: 800; color: var(--ro-text-sub,#64748b); text-decoration: none; }
.rf-head-links a:hover { color: #4e8fff; }
.rf-tabs { display: flex; }
.rf-tab { flex: 1; text-align: center; padding: 12px; font-size: 14px; font-weight: 800; color: var(--ro-text-sub,#64748b); text-decoration: none; border-bottom: 2.5px solid transparent; }
.rf-tab.is-active { color: var(--ro-text,#0f172a); border-bottom-color: #4e8fff; }

/* 작성 박스 */
.rf-compose { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 8px solid var(--ro-bg,#f1f5f9); }
.rf-compose__ava { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; object-fit: cover; background: linear-gradient(135deg,#4e8fff,#6366f1); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 18px; }
.rf-compose__main { flex: 1; min-width: 0; }
.rf-compose__ta { width: 100%; border: 0; resize: none; font: inherit; font-size: 17px; line-height: 1.5; background: transparent; color: var(--ro-text,#0f172a); outline: none; min-height: 52px; }
.rf-compose__ta::placeholder { color: var(--ro-text-muted,#94a3b8); }
.rf-compose__thumbs { display: grid; grid-template-columns: repeat(auto-fill,minmax(90px,1fr)); gap: 8px; margin-top: 8px; }
.rf-thumb { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--ro-bg,#eef2f7); }
.rf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rf-thumb__x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 14px; cursor: pointer; line-height: 1; }
.rf-compose__foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.rf-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: #4e8fff; cursor: pointer; }
.rf-icon-btn:hover { background: rgba(78,143,255,.12); }
.rf-icon-btn:disabled { opacity: .4; cursor: not-allowed; }
.rf-compose__count { margin-left: auto; font-size: 12.5px; font-weight: 800; color: var(--ro-text-muted,#94a3b8); }
.rf-compose__count.is-over { color: #ef4444; }
.rf-btn { border: 0; border-radius: 999px; background: linear-gradient(135deg,#4e8fff,#3a78ee); color: #fff; font-size: 14px; font-weight: 800; padding: 9px 20px; cursor: pointer; }
.rf-btn:disabled { opacity: .5; cursor: not-allowed; }

/* 로그인 유도 */
.rf-login { padding: 16px; border-bottom: 8px solid var(--ro-bg,#f1f5f9); text-align: center; color: var(--ro-text-sub,#64748b); font-size: 13.5px; }
.rf-login a { color: #4e8fff; font-weight: 800; text-decoration: none; }

/* 안내(작성 자격 등) */
.rf-notice { margin: 12px 16px 0; padding: 11px 14px; border-radius: 12px; background: var(--ro-info-50,#e0f2fe); color: var(--ro-text,#0f172a); font-size: 13.5px; font-weight: 700; border: 1px solid var(--ro-border,#e6e9f0); }

/* 인기 토픽 스트립 */
.rf-trends { display: flex; align-items: center; gap: 7px; overflow-x: auto; padding: 10px 16px; border-bottom: 1px solid var(--ro-border,#e6e9f0); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.rf-trends::-webkit-scrollbar { display: none; }
.rf-trends__label { font-size: 12px; font-weight: 800; color: var(--ro-text-sub,#64748b); flex-shrink: 0; }
.rf-trend { flex-shrink: 0; font-size: 13px; font-weight: 700; color: #4e8fff; text-decoration: none; background: rgba(78,143,255,.1); padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.rf-trend:hover { background: rgba(78,143,255,.18); }

/* 공개 범위 선택 */
.rf-vis { border: 1px solid var(--ro-border,#d8dee9); background: var(--ro-surface,#fff); color: var(--ro-text-sub,#64748b); font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 6px 10px; cursor: pointer; }

/* 더보기 잠금(무기록/비로그인) */
.rf-locked { text-align: center; padding: 32px 20px 40px; }
.rf-locked img { width: 110px; height: auto; margin: 0 auto 10px; display: block; }
.rf-locked strong { display: block; font-size: 15.5px; font-weight: 900; color: var(--ro-text,#0f172a); }
.rf-locked p { margin: 6px 0 14px; font-size: 13.5px; color: var(--ro-text-sub,#64748b); line-height: 1.6; }
.rf-locked__actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.rf-btn--ghost { background: var(--ro-surface,#fff) !important; color: var(--ro-text,#0f172a) !important; border: 1.5px solid var(--ro-border,#d8dee9) !important; }

/* 차단 목록 */
.rf-block-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--ro-border,#e6e9f0); }
.rf-block-row__ava { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: linear-gradient(135deg,#4e8fff,#6366f1); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; }
.rf-block-row__name { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 700; color: var(--ro-text,#0f172a); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-unblock { border: 1px solid var(--ro-border,#d8dee9); background: var(--ro-surface,#fff); color: var(--ro-text,#0f172a); font-size: 13px; font-weight: 800; border-radius: 999px; padding: 7px 15px; cursor: pointer; }
.rf-unblock:hover { background: var(--ro-bg,#f1f5f9); }

/* 작성 자격 게이트(러닝 기록 필요) */
.rf-gate { display: flex; gap: 14px; align-items: center; padding: 16px; border-bottom: 8px solid var(--ro-bg,#f1f5f9); }
.rf-gate__mascot { width: 76px; height: 76px; object-fit: contain; flex-shrink: 0; }
.rf-gate strong { display: block; font-size: 14.5px; color: var(--ro-text,#0f172a); line-height: 1.4; }
.rf-gate p { margin: 5px 0 9px; font-size: 13px; color: var(--ro-text-sub,#64748b); line-height: 1.55; }
@media (max-width: 480px) { .rf-gate__mascot { width: 60px; height: 60px; } }

/* 글 카드 */
.rf-post { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--ro-border,#e6e9f0); transition: background .12s; }
.rf-post:hover { background: color-mix(in srgb, var(--ro-bg,#f8fafc) 55%, transparent); }
.rf-post__ava { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; overflow: hidden; text-decoration: none; }
.rf-post__ava img { width: 100%; height: 100%; object-fit: cover; }
.rf-post__ava-txt { width: 100%; height: 100%; background: linear-gradient(135deg,#4e8fff,#6366f1); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 18px; }
.rf-post__main { flex: 1; min-width: 0; }
.rf-post__head { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.rf-post__name { font-weight: 800; font-size: 14.5px; color: var(--ro-text,#0f172a); text-decoration: none; }
.rf-post__name:hover { text-decoration: underline; }
.rf-post__time { color: var(--ro-text-muted,#94a3b8); font-size: 13px; }
.rf-post__time a { color: inherit; text-decoration: none; }
.rf-post__time::before { content: "·"; margin: 0 4px; }
.rf-post__menu { margin-left: auto; position: relative; }
.rf-post__menu-btn { border: 0; background: transparent; color: var(--ro-text-muted,#94a3b8); cursor: pointer; font-size: 17px; padding: 2px 6px; border-radius: 6px; }
.rf-post__menu-btn:hover { background: rgba(120,130,150,.14); color: #475569; }
.rf-post__menu-pop { position: absolute; right: 0; top: 26px; background: var(--ro-surface,#fff); border: 1px solid var(--ro-border,#e6e9f0); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.14); padding: 6px; min-width: 140px; display: none; z-index: 30; }
.rf-post__menu-pop.is-open { display: block; }
.rf-post__menu-pop button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 9px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 700; color: var(--ro-text,#0f172a); cursor: pointer; }
.rf-post__menu-pop button:hover { background: var(--ro-bg,#f1f5f9); }
.rf-post__menu-pop button.is-danger { color: #dc2626; }
.rf-post__body { font-size: 15px; line-height: 1.55; color: var(--ro-text,#0f172a); margin-top: 2px; overflow-wrap: anywhere; white-space: normal; }
.rf-post__body .rf-tag, .rf-post__body .rf-mention, .rf-post__body .rf-link { color: #4e8fff; text-decoration: none; font-weight: 600; }
.rf-post__body .rf-tag:hover, .rf-post__body .rf-mention:hover, .rf-post__body .rf-link:hover { text-decoration: underline; }
.rf-post__body .rf-mention--plain { color: var(--ro-text-muted,#94a3b8); font-weight: 600; }

/* 이미지 그리드 */
.rf-imgs { margin-top: 10px; display: grid; gap: 3px; border-radius: 16px; overflow: hidden; border: 1px solid var(--ro-border,#e6e9f0); }
.rf-imgs[data-n="1"] { grid-template-columns: 1fr; }
.rf-imgs[data-n="2"] { grid-template-columns: 1fr 1fr; }
.rf-imgs[data-n="3"] { grid-template-columns: 1fr 1fr; }
.rf-imgs[data-n="3"] a:first-child { grid-row: span 2; }
.rf-imgs[data-n="4"] { grid-template-columns: 1fr 1fr; }
.rf-imgs a { display: block; overflow: hidden; background: var(--ro-bg,#eef2f7); }
.rf-imgs[data-n="1"] a { max-height: 510px; aspect-ratio: auto; }
.rf-imgs img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; display: block; }
.rf-imgs[data-n="1"] img { aspect-ratio: auto; max-height: 510px; }

/* 액션 바 */
.rf-actions { display: flex; gap: 4px; margin-top: 10px; max-width: 340px; }
.rf-act { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--ro-text-muted,#64748b); font-size: 13px; font-weight: 700; cursor: pointer; padding: 6px 8px; border-radius: 999px; flex: 1; }
.rf-act:hover { background: rgba(78,143,255,.1); color: #4e8fff; }
.rf-act--like.is-liked { color: #ef4444; }
.rf-act--like.is-liked:hover { background: rgba(239,68,68,.1); }
.rf-act--repost.is-reposted { color: #16a34a; }
.rf-act--repost.is-reposted:hover { background: rgba(22,163,74,.1); }
.rf-act--repost:hover { color: #16a34a; background: rgba(22,163,74,.1); }
.rf-act svg { width: 17px; height: 17px; }

/* 이어달리기(순수 재공유) 표시 */
.rf-repost-wrap { border-bottom: 1px solid var(--ro-border,#e6e9f0); }
.rf-repost-wrap > .rf-post { border-bottom: 0; }
.rf-repost-by { display: flex; align-items: center; gap: 6px; padding: 9px 16px 0 56px; font-size: 12.5px; font-weight: 700; color: var(--ro-text-sub,#64748b); }
.rf-repost-by svg { width: 14px; height: 14px; flex-shrink: 0; }
.rf-repost-by a { color: inherit; text-decoration: none; }
.rf-repost-by a:hover { text-decoration: underline; }

/* 러닝 기록 카드(자랑하기) */
.rf-run { display: flex; align-items: center; gap: 10px; margin-top: 10px; border: 1px solid var(--ro-border,#e6e9f0); border-radius: 14px; padding: 11px 13px; text-decoration: none; background: linear-gradient(135deg, rgba(78,143,255,.08), rgba(99,102,241,.06)); }
.rf-run:hover { border-color: #4e8fff; }
.rf-run__ico { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg,#4e8fff,#6366f1); display: flex; align-items: center; justify-content: center; color: #fff; }
.rf-run__ico svg { width: 18px; height: 18px; }
.rf-run__stats { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; color: var(--ro-text,#0f172a); }
.rf-run__stats b { font-size: 16px; font-weight: 900; }
.rf-run__stats span { font-size: 12.5px; color: var(--ro-text-sub,#64748b); font-weight: 700; }
.rf-run__go { flex-shrink: 0; font-size: 12.5px; font-weight: 800; color: #4e8fff; }

/* 러닝 첨부 피커 + 칩 */
.rf-run-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; background: rgba(78,143,255,.12); color: #2563eb; font-size: 12.5px; font-weight: 800; border-radius: 999px; padding: 5px 6px 5px 12px; }
.rf-run-chip__x { border: 0; background: rgba(0,0,0,.12); color: inherit; width: 20px; height: 20px; border-radius: 50%; cursor: pointer; font-size: 13px; line-height: 1; }
.rf-run-menu { margin-top: 8px; border: 1px solid var(--ro-border,#e6e9f0); border-radius: 12px; overflow: hidden; background: var(--ro-surface,#fff); max-height: 260px; overflow-y: auto; }
.rf-run-menu__item { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--ro-border,#eef1f6); background: transparent; padding: 10px 13px; font-size: 13.5px; font-weight: 700; color: var(--ro-text,#0f172a); cursor: pointer; }
.rf-run-menu__item:hover { background: var(--ro-bg,#f1f5f9); }
.rf-run-menu__msg { padding: 12px 13px; font-size: 13px; color: var(--ro-text-sub,#64748b); }

/* 멘션 자동완성 드롭다운 */
.rf-mention-box { position: absolute; left: 0; top: 100%; z-index: 40; margin: 4px 0 0; padding: 5px; list-style: none; min-width: 180px; max-width: 260px; background: var(--ro-surface,#fff); border: 1px solid var(--ro-border,#e6e9f0); border-radius: 12px; box-shadow: 0 12px 28px rgba(0,0,0,.16); }
.rf-mention-box li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; font-size: 14px; font-weight: 700; color: var(--ro-text,#0f172a); cursor: pointer; }
.rf-mention-box li:hover { background: var(--ro-bg,#f1f5f9); }
.rf-mention-sub { margin-left: auto; font-size: 11px; font-weight: 800; color: #4e8fff; background: rgba(78,143,255,.12); padding: 1px 7px; border-radius: 999px; }

/* 첨부 썸네일 로딩 상태 */
.rf-thumb--loading { opacity: .6; }
.rf-thumb--loading::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.06); }

/* 추천 러너 위젯 */
.rf-suggest { border-bottom: 8px solid var(--ro-bg,#f1f5f9); padding: 14px 0 16px; }
.rf-suggest__title { font-size: 15px; font-weight: 900; color: var(--ro-text,#0f172a); padding: 0 16px 10px; }
.rf-suggest__row { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px; scrollbar-width: none; }
.rf-suggest__row::-webkit-scrollbar { display: none; }
.rf-suggest__card { flex-shrink: 0; width: 140px; border: 1px solid var(--ro-border,#e6e9f0); border-radius: 14px; padding: 14px 12px; text-align: center; background: var(--ro-surface,#fff); }
.rf-suggest__ava { display: block; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; margin: 0 auto 8px; background: linear-gradient(135deg,#4e8fff,#6366f1); }
.rf-suggest__ava img { width: 100%; height: 100%; object-fit: cover; }
.rf-suggest__ava span { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 20px; }
.rf-suggest__name { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 13.5px; font-weight: 800; color: var(--ro-text,#0f172a); text-decoration: none; overflow: hidden; }
.rf-suggest__name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-suggest__meta { font-size: 11.5px; color: var(--ro-text-muted,#94a3b8); margin: 2px 0 10px; }
.rf-suggest__btn { width: 100%; border: 0; border-radius: 999px; background: linear-gradient(135deg,#4e8fff,#3a78ee); color: #fff; font-size: 13px; font-weight: 800; padding: 7px 0; cursor: pointer; }

/* 라운지 프로필 헤더 */
.rf-prof { border-bottom: 8px solid var(--ro-bg,#f1f5f9); }
.rf-prof__banner { height: 160px; background: linear-gradient(135deg,#4e8fff 0%,#6366f1 55%,#a855f7 100%); background-size: cover; background-position: center; }
.rf-prof__bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 0 16px; margin-top: -42px; }
.rf-prof__ava { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; border: 4px solid var(--ro-surface,#fff); background: linear-gradient(135deg,#4e8fff,#6366f1); flex-shrink: 0; }
.rf-prof__ava img { width: 100%; height: 100%; object-fit: cover; }
.rf-prof__ava span { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: #fff; font-weight: 900; font-size: 34px; }
.rf-prof__actions { display: flex; gap: 8px; align-items: center; padding-bottom: 6px; }
.rf-prof__btn { display: inline-flex; align-items: center; border: 0; border-radius: 999px; background: linear-gradient(135deg,#4e8fff,#3a78ee); color: #fff; font-size: 13.5px; font-weight: 800; padding: 9px 18px; cursor: pointer; text-decoration: none; }
.rf-prof__btn--ghost { background: var(--ro-surface,#fff); color: var(--ro-text,#0f172a); border: 1.5px solid var(--ro-border,#d8dee9); }
.rf-prof__name { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 12px 16px 0; font-size: 20px; font-weight: 900; letter-spacing: -.02em; color: var(--ro-text,#0f172a); }
.rf-prof__bio { margin: 8px 0 0; padding: 0 16px; font-size: 14px; line-height: 1.55; color: var(--ro-text,#0f172a); white-space: pre-wrap; overflow-wrap: anywhere; }
.rf-prof__meta { display: flex; gap: 16px; align-items: center; padding: 12px 16px 16px; font-size: 13.5px; color: var(--ro-text-sub,#64748b); }
.rf-prof__meta a { color: inherit; text-decoration: none; }
.rf-prof__meta a b { color: var(--ro-text,#0f172a); font-weight: 900; }

/* 라운지 프로필 편집 */
.rf-pe-label { font-size: 13.5px; font-weight: 800; color: var(--ro-text,#0f172a); margin-bottom: 8px; }
.rf-pe-banner { height: 130px; border-radius: 14px; background: linear-gradient(135deg,#4e8fff,#6366f1,#a855f7); background-size: cover; background-position: center; border: 1px solid var(--ro-border,#e6e9f0); }
.rf-pe-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.rf-pe-avarow { display: flex; gap: 16px; align-items: flex-start; }
.rf-pe-ava { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg,#4e8fff,#6366f1); flex-shrink: 0; border: 1px solid var(--ro-border,#e6e9f0); }
.rf-pe-ava img { width: 100%; height: 100%; object-fit: cover; }
.rf-pe-ava span { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: #fff; font-weight: 900; font-size: 32px; }

/* 인용(한마디 얹기) 임베드 박스 */
.rf-quote { display: block; margin-top: 10px; border: 1px solid var(--ro-border,#e6e9f0); border-radius: 14px; padding: 10px 12px; text-decoration: none; background: var(--ro-surface,#fff); }
.rf-quote:hover { background: var(--ro-bg,#f8fafc); }
.rf-quote__head { display: flex; align-items: center; gap: 5px; }
.rf-quote__name { font-size: 13.5px; font-weight: 800; color: var(--ro-text,#0f172a); }
.rf-quote__time { font-size: 12px; color: var(--ro-text-muted,#94a3b8); }
.rf-quote__time::before { content: "·"; margin: 0 4px; }
.rf-quote__body { margin-top: 3px; font-size: 14px; line-height: 1.5; color: var(--ro-text,#0f172a); overflow-wrap: anywhere; }
.rf-quote__thumb { margin-top: 8px; border-radius: 10px; overflow: hidden; max-height: 220px; }
.rf-quote__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; max-height: 220px; }

/* 빈 상태 / 더보기 */
.rf-empty { text-align: center; padding: 56px 20px; color: var(--ro-text-sub,#64748b); }
.rf-empty img { width: 120px; height: auto; margin: 0 auto 12px; display: block; }
.rf-more { display: block; width: 100%; text-align: center; padding: 16px; border: 0; background: transparent; color: #4e8fff; font-size: 14px; font-weight: 800; cursor: pointer; border-bottom: 1px solid var(--ro-border,#e6e9f0); }
.rf-more:hover { background: var(--ro-bg,#f8fafc); }
.rf-more:disabled { color: var(--ro-text-muted,#94a3b8); cursor: default; }

/* 스레드 답글 구분 */
.rf-thread-label { padding: 12px 16px 4px; font-size: 13px; font-weight: 800; color: var(--ro-text-sub,#64748b); }
.rf-back { display: inline-flex; align-items: center; gap: 6px; padding: 12px 16px; color: var(--ro-text,#0f172a); font-weight: 800; text-decoration: none; font-size: 15px; }

@media (max-width: 640px) {
    .rf-post__body { font-size: 15.5px; }
    .rf-compose__ta { font-size: 16px; }
}
