/* COCOA 테마 화면 — Astryx chocolate 토큰(tokens.css) 위에서 변수로만 색을 쓴다.
   아이보리 바탕 · 갈색 강조 · Fraunces 제목 · Albert Sans/Pretendard 본문 · 둥근 알약 버튼 */

:root {
  --cc-bg: var(--color-background-body);
  --cc-surface: var(--color-background-surface);
  --cc-soft: var(--color-background-muted);
  --cc-text: var(--color-text-primary);
  --cc-sub: color-mix(in srgb, var(--color-text-primary) 64%, var(--color-background-body));
  --cc-muted: color-mix(in srgb, var(--color-text-primary) 46%, var(--color-background-body));
  --cc-line: color-mix(in srgb, var(--color-border) 55%, transparent);
  --cc-line2: color-mix(in srgb, var(--color-border) 30%, transparent);
  --cc-accent: var(--color-accent);
  --cc-accent-soft: var(--color-accent-muted);
  --cc-like: var(--color-icon-pink);
  --cc-hover: var(--color-overlay-hover);
  --cc-ease: cubic-bezier(.2, .8, .2, 1);
  --cc-side: 240px;
  --cc-mid: 620px;
  --cc-rightw: 330px;
  --cc-safe-b: env(safe-area-inset-bottom, 0px);
}

/* ---------- 바탕 ---------- */
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
body {
  margin: 0; background: var(--cc-bg); color: var(--cc-text);
  font-family: var(--font-family-body); font-size: 15px; line-height: 1.6; letter-spacing: -.01em;
  word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
body.cc-lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--cc-accent); outline-offset: 2px; border-radius: 6px; }
#hd_login_msg, .sound_only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cc-skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--cc-accent); color: var(--color-on-accent); padding: 8px 14px; border-radius: var(--radius-full); }
.cc-skip:focus { left: 8px; }
.cc-ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cc-ic-sm { width: 16px; height: 16px; }
.cc-ic-xl { width: 40px; height: 40px; stroke-width: 1.4; }

/* ---------- 3단 배치 ---------- */
.cc-app {
  display: grid; grid-template-columns: var(--cc-side) minmax(0, var(--cc-mid)) var(--cc-rightw);
  gap: 0 36px; justify-content: center; max-width: 1340px; margin: 0 auto; padding: 0 20px; min-height: 100vh; box-sizing: border-box;
}
.cc-app.no-right { grid-template-columns: var(--cc-side) minmax(0, 1fr); max-width: 1260px; }
.cc-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 0 18px; box-sizing: border-box; }
.cc-main { min-width: 0; min-height: 100vh; padding: 0 0 64px; }
.cc-right { position: sticky; top: 0; align-self: start; max-height: 100vh; overflow: auto; padding: 18px 0 28px; box-sizing: border-box; scrollbar-width: none; }
.cc-right::-webkit-scrollbar { display: none; }
.cc-mtop, .cc-tabbar { display: none; }

/* 로고: 아이콘 + 사이트 이름(Fraunces 이탤릭) */
.cc-logo { display: inline-flex; align-items: center; gap: 10px; padding: 4px 10px 4px 6px; margin-bottom: 18px; }
.cc-logo-ic { width: 34px; height: 34px; border-radius: 10px; }
.cc-logo-wm { font-family: var(--font-family-heading); font-style: italic; font-weight: 600; font-size: 26px; letter-spacing: -.02em; color: var(--cc-text); font-variation-settings: "opsz" 72; }
.cc-logo.is-lg .cc-logo-ic { width: 44px; height: 44px; border-radius: 13px; }
.cc-logo.is-lg .cc-logo-wm { font-size: 34px; }

/* 왼쪽 메뉴 */
.cc-nav { display: flex; flex-direction: column; gap: 2px; }
.cc-nav-i { position: relative; display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: var(--radius-full); font-size: 16px; color: var(--cc-sub); transition: background .15s, color .15s; }
.cc-nav-i:hover { background: var(--cc-hover); color: var(--cc-text); }
.cc-nav-i.is-on { color: var(--cc-text); font-weight: 700; background: var(--cc-accent-soft); }
.cc-nav-i.is-on .cc-ic { stroke-width: 2.3; color: var(--cc-accent); }
.cc-nav-i .cc-av { margin: -2px; }
.cc-nav-i.is-on .cc-av { box-shadow: 0 0 0 2px var(--cc-bg), 0 0 0 3.5px var(--cc-accent); }
.cc-dot { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 10px; background: var(--cc-like); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.cc-dot.is-sm { position: absolute; top: 7px; right: 7px; min-width: 8px; width: 8px; height: 8px; padding: 0; margin: 0; box-shadow: 0 0 0 2px var(--cc-bg); }
.cc-side-btn { margin-top: 10px; justify-content: flex-start; padding-left: 18px !important; }
.cc-side-btn:first-of-type { margin-top: 22px; }
.cc-side-ft { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--cc-line2); }
.cc-side-me { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-container); }
.cc-side-me:hover { background: var(--cc-hover); }
.cc-side-me span { display: flex; flex-direction: column; font-weight: 700; font-size: 14px; line-height: 1.3; min-width: 0; }
.cc-side-me small { font-weight: 400; color: var(--cc-muted); font-size: 12.5px; }
.cc-side-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px 10px 0; font-size: 12.5px; color: var(--cc-muted); }
.cc-side-links a:hover, .cc-side-links button:hover { color: var(--cc-text); }
.cc-side-links .cc-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--cc-muted); }

/* ---------- 버튼 · 공용 부품 ---------- */
.cc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 18px; border-radius: var(--radius-full); border: 1px solid transparent; font-weight: 700; font-size: 14px; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .1s; box-sizing: border-box; text-decoration: none; }
.cc-btn:active { transform: scale(.97); }
.cc-btn:disabled { opacity: .55; cursor: default; }
.cc-btn-pri { background: var(--cc-accent); color: var(--color-on-accent); }
.cc-btn-pri:hover { background: color-mix(in srgb, var(--cc-accent) 88%, #000); }
.cc-btn-soft { background: var(--cc-accent-soft); color: var(--color-text-accent); }
.cc-btn-soft:hover { background: color-mix(in srgb, var(--cc-accent) 16%, transparent); }
.cc-btn-line { background: transparent; color: var(--cc-text); border-color: var(--color-border-emphasized); }
.cc-btn-line:hover { background: var(--cc-hover); }
.cc-btn-sm { height: 30px; padding: 0 13px; font-size: 13px; }
.cc-btn-lg { height: 48px; padding: 0 22px; font-size: 15.5px; width: 100%; }
.cc-btn-block { width: 100%; }
.cc-btn-icon { width: 38px; padding: 0; }
.cc-icbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; color: var(--cc-text); flex: none; }
.cc-icbtn:hover { background: var(--cc-hover); }
.cc-icbtn.is-on { color: var(--cc-accent); background: var(--cc-accent-soft); }
.cc-link { border: 0; background: none; padding: 0; color: var(--cc-sub); font-size: 13px; font-weight: 600; }
.cc-link:hover { color: var(--cc-text); }
.cc-badge { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; margin-left: 6px; border-radius: var(--radius-full); background: var(--cc-soft); color: var(--cc-sub); font-size: 11.5px; font-weight: 600; vertical-align: 1px; }
.cc-badge.is-author { background: var(--cc-accent-soft); color: var(--color-text-accent); }
.cc-nick { font-weight: 700; color: var(--cc-text); }
.cc-nick:hover { text-decoration: underline; text-underline-offset: 2px; }
.cc-meta { margin: 0; font-size: 13px; color: var(--cc-muted); }
.cc-meta a:hover { color: var(--cc-text); }
.cc-tag, .cc-mention { color: var(--color-text-accent); font-weight: 600; }
.cc-tag:hover, .cc-mention:hover { text-decoration: underline; }
.cc-out { color: var(--color-text-info); text-decoration: underline; text-underline-offset: 2px; }

/* 아바타 (사진이 없으면 첫 글자) */
.cc-av { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; overflow: hidden; background: var(--cc-soft); vertical-align: middle; }
.cc-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-av.is-letter { color: #fff; font-weight: 700; font-family: var(--font-family-heading); line-height: 1; }
.cc-av.h0 { background: #8C5927; } .cc-av.h1 { background: #B88859; } .cc-av.h2 { background: #c44a70; }
.cc-av.h3 { background: #2e6b5a; } .cc-av.h4 { background: #6b4a8c; } .cc-av.h5 { background: #a06018; }

/* 검색창 */
.cc-search { position: relative; display: flex; align-items: center; margin-bottom: 18px; }
.cc-search > .cc-ic { position: absolute; left: 14px; color: var(--cc-muted); width: 19px; height: 19px; pointer-events: none; }
.cc-search input { width: 100%; height: 44px; padding: 0 16px 0 42px; border-radius: var(--radius-full); border: 1px solid transparent; background: var(--cc-soft); color: var(--cc-text); font-size: 14.5px; box-sizing: border-box; outline: 0; }
.cc-search input:focus { background: var(--cc-surface); border-color: var(--cc-accent); }
.cc-search input::placeholder { color: var(--cc-muted); }
.cc-search .cc-icbtn { position: absolute; right: 4px; }
.cc-search.is-big input { height: 50px; font-size: 15.5px; }

/* ---------- 홈 상단 탭 · 칩 ---------- */
.cc-feedhd { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--cc-bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); margin: 0 -4px; padding: 0 4px; border-bottom: 1px solid var(--cc-line2); }
.cc-toptabs { display: flex; align-items: center; gap: 6px; padding: 14px 0 6px; }
.cc-toptabs > a { position: relative; padding: 6px 4px; margin-right: 14px; font-family: var(--font-family-heading); font-size: 22px; font-weight: 600; color: var(--cc-muted); letter-spacing: -.02em; }
.cc-toptabs > a.is-on { color: var(--cc-text); }
.cc-toptabs > a.is-on::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: -2px; height: 3px; border-radius: 3px; background: var(--cc-accent); }
.cc-toptabs.is-sub { padding: 6px 0 10px; justify-content: space-between; }
.cc-viewsw { margin-left: auto; display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--radius-full); background: var(--cc-soft); }
.cc-viewsw a { display: inline-flex; width: 34px; height: 30px; align-items: center; justify-content: center; border-radius: var(--radius-full); color: var(--cc-muted); }
.cc-viewsw a .cc-ic { width: 18px; height: 18px; }
.cc-viewsw a.is-on { background: var(--cc-surface); color: var(--cc-text); box-shadow: var(--shadow-low); }
.cc-chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 12px; scrollbar-width: none; }
.cc-chips::-webkit-scrollbar { display: none; }
.cc-chips a { flex: none; height: 34px; padding: 0 15px; display: inline-flex; align-items: center; border-radius: var(--radius-full); background: var(--cc-soft); color: var(--cc-sub); font-size: 14px; font-weight: 600; transition: background .15s, color .15s; }
.cc-chips a:hover { color: var(--cc-text); }
.cc-chips a.is-on { background: var(--color-background-inverted); color: var(--cc-bg); }
.cc-chips.is-pad { padding: 4px 0 14px; }
.cc-toptabs.is-sub .cc-chips { padding: 0; min-width: 0; }

/* ---------- 노트 그리드 (메이슨리) ---------- */
.cc-notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px 14px; padding-top: 16px; }
.cc-notes.is-js { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); align-items: start; }
.cc-notes-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.cc-note { min-width: 0; animation: cc-in .35s var(--cc-ease) both; }
.cc-note.is-removing { opacity: 0; transform: scale(.96); transition: .25s; }
.cc-note.is-new { animation: cc-new .6s var(--cc-ease); }
.cc-note-cv { position: relative; display: block; border-radius: var(--radius-container); overflow: hidden; background: var(--cc-soft); }
.cc-note-img { display: block; aspect-ratio: 3/4; }
.cc-note-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--cc-ease); }
.cc-note-cv:hover .cc-note-img img { transform: scale(1.03); }
.cc-note-cv::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--cc-line2); pointer-events: none; }
.cc-note-vid { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--cc-muted); }
.cc-note-badge { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 8px; border-radius: var(--radius-full); background: rgba(20, 16, 16, .55); color: #fff; font-size: 11.5px; font-style: normal; font-weight: 700; backdrop-filter: blur(6px); }
.cc-note-badge .cc-ic { width: 13px; height: 13px; stroke-width: 2.2; }
.cc-note-badge.is-play { left: 8px; right: auto; }
.cc-note-badge.is-play .cc-ic path { stroke: none; }
.cc-note-quote { display: flex; align-items: flex-end; min-height: 170px; padding: 46px 16px 18px; box-sizing: border-box; background: var(--color-background-card); font-family: var(--font-family-heading); font-size: 16px; line-height: 1.45; font-weight: 500; color: var(--cc-text); }
.cc-note-quote::before { content: "\201C"; position: absolute; top: 2px; left: 12px; font-size: 54px; line-height: 1; color: var(--cc-accent); opacity: .5; }
.cc-note-quote span { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.cc-note-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 9px 2px 0; font-size: 14px; line-height: 1.45; font-weight: 600; color: var(--cc-text); }
.cc-note-ft { display: flex; align-items: center; gap: 6px; margin: 7px 2px 0; }
.cc-note-by { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; font-size: 12.5px; color: var(--cc-sub); }
.cc-note-by b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-note-like { display: inline-flex; align-items: center; gap: 3px; border: 0; background: none; padding: 2px; color: var(--cc-muted); font-size: 12.5px; }
.cc-note-like .cc-ic { width: 17px; height: 17px; }
.cc-note-like.is-on { color: var(--cc-like); }
.cc-note-like.is-on .cc-ic { fill: currentColor; }

/* ---------- 스레드형 게시물 ---------- */
.cc-feed { display: flex; flex-direction: column; }
.cc-composer { display: flex; align-items: center; gap: 12px; padding: 16px 4px; border-bottom: 1px solid var(--cc-line2); cursor: pointer; color: var(--cc-muted); }
.cc-composer > span:not(.cc-av) { flex: 1; font-size: 15px; }
.cc-composer i { display: inline-flex; gap: 6px; color: var(--cc-accent); }
.cc-post { padding: 18px 4px 14px; border-bottom: 1px solid var(--cc-line2); animation: cc-in .35s var(--cc-ease) both; }
.cc-post.is-new { animation: cc-new .6s var(--cc-ease); }
.cc-post.is-removing { opacity: 0; transform: translateX(-10px); transition: .25s; }
.cc-post.is-detail { border-bottom: 0; padding-top: 6px; }
.cc-post-hd { display: flex; align-items: center; gap: 11px; }
.cc-post-who { flex: 1; min-width: 0; }
.cc-post-who p { margin: 0; line-height: 1.35; }
.cc-post-who > p:first-child { display: flex; align-items: center; flex-wrap: wrap; }
.cc-text { margin: 10px 0 0; font-size: 15.5px; line-height: 1.65; white-space: normal; }
.cc-post.is-detail .cc-text { font-size: 16.5px; }
.cc-text.is-clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; position: relative; }
.cc-acts { display: flex; align-items: center; gap: 4px; margin: 10px -8px 0; }
.cc-act { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 10px; border: 0; border-radius: var(--radius-full); background: none; color: var(--cc-sub); font-size: 13.5px; font-weight: 600; }
.cc-act:hover { background: var(--cc-hover); color: var(--cc-text); }
.cc-act.is-on { color: var(--cc-like); }
.cc-act.is-on .cc-ic { fill: currentColor; }
.cc-act-save { margin-left: auto; }
.cc-act-save.is-on { color: var(--cc-accent); }
.js-like.pop .cc-ic, .js-save.pop .cc-ic { animation: cc-pop .4s var(--cc-ease); }
.cc-post-more { display: inline-block; margin-top: 2px; font-size: 13.5px; color: var(--cc-muted); }
.cc-post-more:hover { color: var(--cc-text); }

/* 사진 캐러셀 */
.cc-car { position: relative; margin-top: 12px; border-radius: var(--radius-container); overflow: hidden; background: var(--cc-soft); }
.cc-car-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.cc-car-track::-webkit-scrollbar { display: none; }
.cc-car-track.is-drag { scroll-snap-type: none; cursor: grabbing; }
.cc-car-slide { flex: 0 0 100%; scroll-snap-align: start; display: block; max-height: 720px; }
.cc-car-slide img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.cc-car-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 252, 247, .9); color: #4a3520; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-low); opacity: 0; transition: opacity .2s; }
.cc-car-nav .cc-ic { width: 18px; height: 18px; stroke-width: 2.4; }
.cc-car-nav.prev { left: 10px; } .cc-car-nav.next { right: 10px; }
.cc-car:hover .cc-car-nav { opacity: 1; }
.cc-car.at-start .cc-car-nav.prev, .cc-car.at-end .cc-car-nav.next { opacity: 0 !important; pointer-events: none; }
.cc-car-count { position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: var(--radius-full); background: rgba(20, 16, 16, .55); color: #fff; font-size: 12px; font-weight: 600; }
.cc-car-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.cc-car-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .55); transition: width .25s, background .25s; }
.cc-car-dots i.is-on { width: 16px; background: #fff; }
.cc-heart-burst { position: absolute; left: 50%; top: 50%; z-index: 3; color: #fff; transform: translate(-50%, -50%) scale(0); opacity: 0; pointer-events: none; filter: drop-shadow(0 4px 18px rgba(0,0,0,.35)); }
.cc-heart-burst .cc-ic { width: 96px; height: 96px; fill: currentColor; stroke: none; }
.cc-heart-burst.is-on { animation: cc-burst .8s var(--cc-ease); }
.cc-vidcard { position: relative; display: block; margin-top: 12px; max-width: 340px; aspect-ratio: 9/16; border-radius: var(--radius-container); overflow: hidden; background: #1c1610; }
.cc-vidcard video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-vidcard-badge { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 6px; border-radius: var(--radius-full); background: rgba(20, 16, 16, .55); color: #fff; font-size: 12px; font-weight: 700; }
.cc-vidcard-badge .cc-ic { width: 14px; height: 14px; }
.cc-vidcard-badge .cc-ic path { stroke: none; }

/* 투표 */
.cc-poll { margin-top: 12px; padding: 14px; border-radius: var(--radius-container); border: 1px solid var(--cc-line); background: var(--cc-surface); }
.cc-poll-q { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px; font-weight: 700; }
.cc-poll-q .cc-ic { color: var(--cc-accent); width: 19px; height: 19px; margin-top: 2px; }
.cc-poll-opts { display: flex; flex-direction: column; gap: 7px; }
.cc-poll-opt { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 0 14px; border-radius: var(--radius-element); border: 1px solid var(--color-border-emphasized); background: transparent; text-align: left; overflow: hidden; font-size: 14.5px; font-weight: 600; }
button.cc-poll-opt:hover { background: var(--cc-accent-soft); border-color: var(--cc-accent); }
.cc-poll-opt.is-picking { opacity: .6; }
.cc-poll-opt.is-shown { border-color: transparent; background: var(--cc-soft); }
.cc-poll-opt .bar { position: absolute; left: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--color-border) 55%, transparent); border-radius: inherit; transition: width .7s var(--cc-ease); }
.cc-poll-opt.is-top .bar { background: color-mix(in srgb, var(--cc-accent) 26%, transparent); }
.cc-poll-opt .tx, .cc-poll-opt b { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.cc-poll-opt.is-mine .tx { color: var(--color-text-accent); }
.cc-poll-meta { margin: 9px 0 0; font-size: 12.5px; color: var(--cc-muted); }

/* ---------- 상세 · 댓글 ---------- */
.cc-pagehd { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; height: 58px; background: color-mix(in srgb, var(--cc-bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); margin: 0 -4px; padding: 0 4px; }
.cc-pagehd h1 { margin: 0; font-family: var(--font-family-heading); font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.cc-pagehd-sub { color: var(--cc-muted); font-size: 13.5px; }
.cc-sec-t { margin: 0 0 12px; font-family: var(--font-family-heading); font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.cc-sec-t b { color: var(--cc-accent); font-weight: 600; }
.cc-cmts-wrap { padding: 18px 4px 8px; border-top: 1px solid var(--cc-line2); scroll-margin-top: 70px; }
.cc-cform { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: var(--radius-container); background: var(--cc-soft); margin-bottom: 14px; }
.cc-cform.is-guest { justify-content: center; color: var(--cc-sub); font-weight: 600; font-size: 14px; padding: 14px; }
.cc-cform-b { flex: 1; min-width: 0; }
.cc-cform textarea { width: 100%; min-height: 36px; padding: 7px 0; border: 0; background: transparent; resize: none; color: var(--cc-text); font: inherit; font-size: 15px; line-height: 1.5; outline: 0; box-sizing: border-box; }
.cc-cform .cc-btn { margin-top: 2px; }
.cc-replying { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 12.5px; color: var(--color-text-accent); font-weight: 600; }
.cc-cmts { display: flex; flex-direction: column; }
.cc-cmt { display: flex; gap: 10px; padding: 11px 0; animation: cc-in .3s var(--cc-ease) both; scroll-margin-top: 80px; }
.cc-cmt.d1 { padding-left: 44px; }
.cc-cmt.is-new, .cc-cmt.is-hl { animation: cc-hl 2s var(--cc-ease); border-radius: var(--radius-element); }
.cc-cmt-b { flex: 1; min-width: 0; }
.cc-cmt-hd { margin: 0; font-size: 13.5px; display: flex; align-items: center; flex-wrap: wrap; gap: 0 6px; }
.cc-cmt-hd .cc-badge { margin-left: 0; height: 18px; font-size: 11px; }
.cc-cmt-hd em { font-style: normal; color: var(--cc-muted); font-size: 12.5px; }
.cc-cmt-t { margin-top: 2px; font-size: 14.5px; line-height: 1.55; }
.cc-cmt-a { display: flex; gap: 12px; margin: 4px 0 0; }
.cc-cmt-a .cc-link { font-size: 12.5px; color: var(--cc-muted); }
.cc-cmt-like { align-self: flex-start; display: inline-flex; flex-direction: column; align-items: center; gap: 0; min-width: 32px; padding: 4px 0; border: 0; background: none; color: var(--cc-muted); font-size: 11.5px; }
.cc-cmt-like .cc-ic { width: 16px; height: 16px; }
.cc-cmt-like.is-on { color: var(--cc-like); }
.cc-cmt-like.is-on .cc-ic { fill: currentColor; }
.cc-nocmt { padding: 24px 0; text-align: center; color: var(--cc-muted); margin: 0; }
.cc-morefrom { padding: 24px 4px 0; border-top: 1px solid var(--cc-line2); margin-top: 14px; }

/* ---------- 오른쪽 사이드바 ---------- */
.cc-box { padding: 16px; margin-bottom: 14px; border-radius: var(--radius-page); background: var(--color-background-card); }
.cc-box-hd { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.cc-box-hd h3 { margin: 0; font-family: var(--font-family-heading); font-size: 17px; font-weight: 600; }
.cc-box-hd a { font-size: 12.5px; font-weight: 600; color: var(--color-text-accent); }
.cc-mini-shorts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cc-mini-short { position: relative; aspect-ratio: 3/4; border-radius: var(--radius-element); overflow: hidden; background: var(--cc-soft); }
.cc-mini-short img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--cc-ease); }
.cc-mini-short:hover img { transform: scale(1.05); }
.cc-mini-short span { position: absolute; left: 5px; bottom: 5px; display: inline-flex; align-items: center; gap: 2px; color: #fff; font-size: 11px; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.cc-mini-short .cc-ic { width: 12px; height: 12px; }
.cc-mini-short .cc-ic path { stroke: none; }
.cc-people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cc-people li { display: flex; align-items: center; gap: 10px; }
.cc-people li > div { flex: 1; min-width: 0; line-height: 1.35; }
.cc-people p { margin: 0; font-size: 12.5px; color: var(--cc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-people.is-list { padding: 8px 4px; }
.cc-people.is-list li { padding: 6px 0; }
.cc-trend { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.cc-trend a { display: flex; align-items: center; gap: 12px; padding: 7px 4px; border-radius: var(--radius-element); }
.cc-trend a:hover { background: var(--cc-hover); }
.cc-trend i { width: 18px; font-style: normal; font-family: var(--font-family-heading); font-weight: 700; color: var(--cc-accent); text-align: center; }
.cc-trend span { display: flex; flex-direction: column; line-height: 1.3; }
.cc-trend b { font-size: 14px; }
.cc-trend small { font-size: 12px; color: var(--cc-muted); }
.cc-foot { padding: 6px 4px; font-size: 12px; color: var(--cc-muted); }
.cc-foot p { margin: 0 0 4px; }
.cc-foot a:hover { color: var(--cc-text); }

/* ---------- 탐색 ---------- */
.cc-explore-hd { padding-top: 18px; }
.cc-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.cc-cloud a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: var(--radius-full); border: 1px solid var(--cc-line); font-size: 14px; font-weight: 600; }
.cc-cloud a:hover { border-color: var(--cc-accent); color: var(--color-text-accent); }
.cc-cloud small { color: var(--cc-muted); font-weight: 500; font-size: 12px; }
.cc-taghd { display: flex; align-items: center; gap: 14px; margin: 4px 0 16px; }
.cc-taghd-ic { width: 64px; height: 64px; border-radius: var(--radius-page); background: var(--cc-accent-soft); color: var(--cc-accent); display: flex; align-items: center; justify-content: center; }
.cc-taghd-ic .cc-ic { width: 30px; height: 30px; }
.cc-taghd h1, .cc-page-t { margin: 0; font-family: var(--font-family-heading); font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.cc-taghd p { margin: 2px 0 0; color: var(--cc-muted); font-size: 14px; }
.cc-page-t { font-size: 22px; margin-bottom: 14px; }
.cc-peoplebar { margin-bottom: 16px; }
.cc-peoplebar-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.cc-pcard { flex: none; width: 132px; padding: 14px 10px; border-radius: var(--radius-container); background: var(--color-background-card); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cc-pcard a { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; width: 100%; }
.cc-pcard b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.cc-pcard small { font-size: 12px; color: var(--cc-muted); }

/* ---------- 알림 ---------- */
.cc-noti-list { padding-bottom: 20px; }
.cc-noti-b { margin: 18px 4px 6px; font-size: 13px; font-weight: 700; color: var(--cc-muted); }
.cc-noti { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: var(--radius-container); }
.cc-noti:hover { background: var(--cc-hover); }
.cc-noti.is-new { background: var(--cc-accent-soft); }
.cc-noti-av { position: relative; flex: none; }
.cc-noti-ic { position: absolute; right: -3px; bottom: -3px; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--cc-accent); color: #fff; box-shadow: 0 0 0 2px var(--cc-bg); }
.cc-noti-ic .cc-ic { width: 12px; height: 12px; stroke-width: 2.4; }
.t-like .cc-noti-ic { background: var(--cc-like); }
.t-like .cc-noti-ic .cc-ic { fill: currentColor; }
.t-follow .cc-noti-ic { background: var(--color-icon-info); }
.t-mention .cc-noti-ic { background: var(--color-icon-success); }
.cc-noti-b2 { flex: 1; min-width: 0; }
.cc-noti-b2 p { margin: 0; font-size: 14.5px; line-height: 1.45; }
.cc-noti-b2 em { font-style: normal; color: var(--cc-muted); font-size: 12.5px; margin-left: 2px; }
.cc-noti-b2 q { display: block; margin-top: 3px; color: var(--cc-sub); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-noti-th { width: 46px; height: 46px; border-radius: var(--radius-element); object-fit: cover; flex: none; }

/* ---------- 프로필 ---------- */
.cc-prof { padding: 28px 4px 6px; }
.cc-prof-top { display: flex; align-items: center; gap: 22px; }
.cc-prof-av { box-shadow: 0 0 0 4px var(--cc-bg), 0 0 0 5.5px var(--color-border); }
.cc-prof-id { min-width: 0; flex: 1; }
.cc-prof-id h1 { margin: 0; font-family: var(--font-family-heading); font-size: 28px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.cc-prof-id > p { margin: 2px 0 0; color: var(--cc-muted); font-size: 14px; display: flex; align-items: center; flex-wrap: wrap; }
.cc-prof-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cc-prof-bio { margin: 16px 0 0; font-size: 15px; line-height: 1.6; }
.cc-prof-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 10px 0 0; font-size: 13px; color: var(--cc-muted); }
.cc-prof-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0 0; }
.cc-prof-stats > * { padding: 12px 8px; border-radius: var(--radius-container); background: var(--color-background-card); text-align: center; }
.cc-prof-stats a:hover { box-shadow: var(--shadow-inset-hover); }
.cc-prof-stats dt { font-size: 12px; color: var(--cc-sub); }
.cc-prof-stats dd { margin: 2px 0 0; font-family: var(--font-family-heading); font-size: 21px; font-weight: 600; }
.cc-prof-tags { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 14px 0 0; font-size: 13.5px; }
.cc-prof-tags a { color: var(--color-text-accent); font-weight: 600; }
.cc-ptabs { position: sticky; top: 0; z-index: 15; display: flex; gap: 2px; margin-top: 18px; border-bottom: 1px solid var(--cc-line2); background: color-mix(in srgb, var(--cc-bg) 90%, transparent); backdrop-filter: blur(12px); overflow-x: auto; scrollbar-width: none; }
.cc-ptabs a { position: relative; flex: 1 0 auto; text-align: center; padding: 13px 14px; font-weight: 700; font-size: 14.5px; color: var(--cc-muted); }
.cc-ptabs a.is-on { color: var(--cc-text); }
.cc-ptabs a.is-on::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: -1px; height: 3px; border-radius: 3px; background: var(--cc-accent); }
.cc-replies { display: flex; flex-direction: column; }
.cc-rp { display: block; padding: 14px 4px; border-bottom: 1px solid var(--cc-line2); }
.cc-rp:hover { background: var(--cc-hover); }
.cc-rp-to { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; color: var(--cc-muted); overflow: hidden; white-space: nowrap; }
.cc-rp-to span { overflow: hidden; text-overflow: ellipsis; }
.cc-rp-t { margin: 4px 0 2px; font-size: 15px; }
.cc-rp em { font-style: normal; font-size: 12.5px; color: var(--cc-muted); }

/* ---------- 비어 있음 · 불러오기 ---------- */
.cc-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 70px 20px; text-align: center; color: var(--cc-sub); }
.cc-empty .cc-ic-xl { color: var(--color-border-emphasized); margin-bottom: 4px; }
.cc-empty b { font-size: 17px; color: var(--cc-text); font-family: var(--font-family-heading); font-weight: 600; }
.cc-empty p { margin: 0 0 8px; font-size: 14px; }
.cc-more-load { min-height: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-top: 18px; }
.cc-more-load.is-end { display: block; }
.cc-end { text-align: center; color: var(--cc-muted); font-size: 13.5px; margin: 10px 0; }
.cc-skel { display: flex; flex-direction: column; gap: 8px; }
.cc-skel-img { aspect-ratio: 3/4; border-radius: var(--radius-container); }
.cc-skel i { display: block; height: 12px; border-radius: 6px; }
.cc-skel i.s { width: 60%; }
.cc-skel-img, .cc-skel i { background: linear-gradient(90deg, var(--cc-soft) 25%, color-mix(in srgb, var(--cc-soft) 50%, var(--cc-bg)) 50%, var(--cc-soft) 75%); background-size: 200% 100%; animation: cc-shimmer 1.3s linear infinite; }
.cc-skel.is-row { flex-direction: row; align-items: center; gap: 10px; padding: 10px 0; }
.cc-skel.is-row i.c { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.cc-skel.is-row span { flex: 1; display: flex; flex-direction: column; gap: 6px; }

/* ---------- 모달 · 시트 ---------- */
.cc-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.cc-modal-bg { position: absolute; inset: 0; background: var(--color-overlay); opacity: 0; transition: opacity .24s; backdrop-filter: blur(2px); }
.cc-modal-box { position: relative; width: 100%; max-width: 600px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--color-background-popover); border-radius: var(--radius-page); box-shadow: var(--shadow-high); transform: translateY(16px) scale(.98); opacity: 0; transition: transform .26s var(--cc-ease), opacity .2s; overflow: hidden; }
.cc-modal.is-open .cc-modal-bg { opacity: 1; }
.cc-modal.is-open .cc-modal-box { transform: none; opacity: 1; }
.cc-grab { display: none; }
.cc-modal-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--cc-line2); }
.cc-modal-hd b { font-family: var(--font-family-heading); font-size: 18px; font-weight: 600; }
.cc-modal-hd .cc-link { font-size: 15px; }
.cc-modal-bd { padding: 16px; overflow-y: auto; }
.cc-modal-ft { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-top: 1px solid var(--cc-line2); }
.cc-modal-note { margin: 0; padding: 0 16px 14px; font-size: 12px; color: var(--cc-muted); }
.cc-modal-ft + .cc-modal-note { padding-top: 0; }
.cc-tools { display: flex; gap: 2px; color: var(--cc-accent); }
.cc-tools .cc-icbtn { color: var(--cc-accent); }
.cc-len { font-size: 12.5px; color: var(--cc-muted); }
.cc-compose-who { display: flex; gap: 12px; align-items: flex-start; }
.cc-compose-who > div { min-width: 0; flex: 1; }
.cc-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cc-cats label { cursor: pointer; }
.cc-cats input { position: absolute; opacity: 0; pointer-events: none; }
.cc-cats span { display: inline-flex; height: 28px; padding: 0 12px; align-items: center; border-radius: var(--radius-full); background: var(--cc-soft); font-size: 13px; font-weight: 600; color: var(--cc-sub); }
.cc-cats input:checked + span { background: var(--cc-accent); color: var(--color-on-accent); }
.cc-cats input:focus-visible + span { outline: 2px solid var(--cc-accent); outline-offset: 2px; }
#ccComposeForm textarea, .cc-sup textarea { width: 100%; margin-top: 12px; padding: 4px 0; border: 0; background: transparent; resize: none; color: var(--cc-text); font: inherit; font-size: 16px; line-height: 1.6; outline: 0; box-sizing: border-box; min-height: 96px; }
.cc-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; padding: 22px; margin-top: 8px; border: 1.5px dashed var(--color-border-emphasized); border-radius: var(--radius-container); background: transparent; color: var(--cc-sub); font-size: 13.5px; }
.cc-drop:hover, .cc-drop.is-over { background: var(--cc-accent-soft); border-color: var(--cc-accent); color: var(--cc-text); }
.cc-drop .cc-ic { color: var(--cc-accent); width: 28px; height: 28px; }
.cc-previews { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0; }
.cc-previews .pv { position: relative; flex: none; width: 96px; height: 120px; border-radius: var(--radius-element); overflow: hidden; background: var(--cc-soft); cursor: grab; }
.cc-previews .pv img { width: 100%; height: 100%; object-fit: cover; }
.cc-previews .pv i { position: absolute; left: 5px; top: 5px; min-width: 18px; height: 18px; border-radius: 9px; background: rgba(20,16,16,.6); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cc-previews .pv button { position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(20,16,16,.6); color: #fff; font-size: 16px; line-height: 1; }
.cc-pollbox { display: flex; flex-direction: column; gap: 7px; margin-top: 12px; padding: 12px; border-radius: var(--radius-container); background: var(--cc-soft); }
.cc-pollbox input, .cc-pollbox select { height: 40px; padding: 0 12px; border-radius: var(--radius-element); border: 1px solid var(--cc-line); background: var(--cc-surface); color: var(--cc-text); font: inherit; font-size: 14.5px; box-sizing: border-box; }
.cc-pollbox input:first-child { font-weight: 700; }
.cc-pollbox-days { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--cc-sub); }
.cc-pollbox-days select { height: 34px; }
/* 숏폼 업로드 */
.cc-sup { display: grid; grid-template-columns: 220px 1fr; gap: 18px; }
.cc-sup-pick { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 9/16; border-radius: var(--radius-container); border: 1.5px dashed var(--color-border-emphasized); background: var(--cc-soft); overflow: hidden; cursor: pointer; }
.cc-sup-pick.is-over { border-color: var(--cc-accent); background: var(--cc-accent-soft); }
.cc-sup-pick.has-video { border-style: solid; border-color: transparent; background: #1c1610; }
.cc-sup-pick video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cc-sup-pick.has-video .cc-sup-empty { display: none; }
.cc-sup-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px; text-align: center; color: var(--cc-sub); }
.cc-sup-empty .cc-ic { width: 30px; height: 30px; color: var(--cc-accent); margin-bottom: 4px; }
.cc-sup-empty small { font-size: 11.5px; color: var(--cc-muted); }
.cc-sup-dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: var(--radius-full); background: rgba(20,16,16,.6); color: #fff; font-size: 12px; font-style: normal; font-weight: 700; }
.cc-sup-side { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cc-sup-cover { display: grid; grid-template-columns: 72px 1fr; grid-template-rows: auto auto auto; gap: 4px 12px; align-items: start; padding: 10px; border-radius: var(--radius-container); background: var(--cc-soft); }
.cc-sup-cover b { grid-column: 1 / -1; font-size: 13px; }
.cc-sup-cover img { grid-row: span 3; width: 72px; aspect-ratio: 9/16; object-fit: cover; border-radius: var(--radius-inner); background: #1c1610; }
.cc-sup-cover p { margin: 0; font-size: 12.5px; color: var(--cc-sub); }
.cc-sup-cover-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-sup-cover .cc-link { justify-self: start; font-size: 12.5px; }
.cc-sup textarea { margin-top: 0; min-height: 80px; }
.cc-sup .cc-modal-note { padding: 0; }
.cc-sup-prog { display: flex; align-items: center; gap: 10px; }
.cc-sup-prog span { flex: 1; height: 6px; border-radius: 3px; background: var(--cc-soft); overflow: hidden; }
.cc-sup-prog i { display: block; height: 100%; width: 0; background: var(--cc-accent); transition: width .2s; }
.cc-sup-prog b { font-size: 12.5px; color: var(--cc-sub); min-width: 46px; text-align: right; }
/* 아래에서 올라오는 시트 */
.cc-sheet { align-items: flex-end; padding: 0; }
.cc-sheet .cc-modal-box { max-width: 420px; margin: 0 auto 24px; padding: 8px; border-radius: var(--radius-page); transform: translateY(30px); }
.cc-sheet-i { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 0; border-radius: var(--radius-container); background: none; font-size: 15.5px; font-weight: 600; text-align: left; color: var(--cc-text); box-sizing: border-box; }
.cc-sheet-i:hover { background: var(--cc-hover); }
.cc-sheet-i .cc-ic { color: var(--cc-sub); }
.cc-sheet-i.is-danger, .cc-sheet-i.is-danger .cc-ic { color: var(--color-text-error); }
.cc-sheet-i.is-cancel { justify-content: center; color: var(--cc-sub); margin-top: 4px; border-top: 1px solid var(--cc-line2); border-radius: 0 0 var(--radius-container) var(--radius-container); }
/* 숏폼 댓글 시트 */
.cc-csheet .cc-modal-box { max-width: 480px; height: min(70vh, 640px); padding: 0; display: flex; flex-direction: column; }
.cc-csheet-hd { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 8px 18px; border-bottom: 1px solid var(--cc-line2); }
.cc-csheet-hd b { font-family: var(--font-family-heading); font-size: 17px; font-weight: 600; }
.cc-csheet-list { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 16px; overscroll-behavior: contain; }
.cc-csheet-empty { text-align: center; padding: 50px 0; color: var(--cc-sub); }
.cc-csheet-empty p { margin: 4px 0 0; font-size: 13.5px; }
.cc-cs-row { display: flex; gap: 10px; padding: 10px 0; }
.cc-cs-row.is-reply { padding-left: 42px; }
.cc-cs-row.is-new { animation: cc-hl 2s var(--cc-ease); border-radius: var(--radius-element); }
.cc-cs-b { flex: 1; min-width: 0; }
.cc-cs-b p { margin: 0; font-size: 13px; }
.cc-cs-b em { font-style: normal; color: var(--cc-muted); font-size: 12px; }
.cc-cs-t { font-size: 14.5px; line-height: 1.5; margin-top: 1px; }
.cc-cs-a { margin-top: 3px !important; display: flex; gap: 10px; }
.cc-cs-a .cc-link { font-size: 12px; color: var(--cc-muted); }
.cc-cs-more { display: block; margin: 0 0 4px 42px; border: 0; background: none; padding: 2px 0; font-size: 12.5px; font-weight: 600; color: var(--cc-muted); }
.cc-cs-more::before { content: ""; display: inline-block; width: 22px; height: 1px; background: var(--cc-line); vertical-align: middle; margin-right: 8px; }
.cc-csheet-form { padding: 10px 14px calc(10px + var(--cc-safe-b)); border-top: 1px solid var(--cc-line2); }
.cc-csheet-form > div { display: flex; align-items: center; gap: 8px; }
.cc-csheet-form input[type=text] { flex: 1; height: 40px; padding: 0 14px; border-radius: var(--radius-full); border: 1px solid transparent; background: var(--cc-soft); color: var(--cc-text); font: inherit; font-size: 14.5px; outline: 0; min-width: 0; }
.cc-csheet-form input[type=text]:focus { border-color: var(--cc-accent); background: var(--cc-surface); }
.cc-csheet-form.is-guest { display: block; text-align: center; font-weight: 600; color: var(--cc-sub); }

/* 사진 크게 보기 · 토스트 */
.cc-lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(20, 14, 10, .92); padding: 24px; cursor: zoom-out; }
.cc-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius-inner); }
.cc-lightbox .cc-icbtn { position: absolute; top: 14px; right: 14px; color: #fff; background: rgba(255,255,255,.12); }
.cc-toast { position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translate(-50%, 20px); padding: 11px 18px; border-radius: var(--radius-full); background: var(--color-background-inverted); color: var(--cc-bg); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-high); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--cc-ease); white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }
.cc-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 숏폼 뷰어 ---------- */
html.cc-sh-lock, html.cc-sh-lock body { overflow: hidden; height: 100%; }
body[data-page=shorts] .cc-main { padding: 0; height: 100vh; display: flex; justify-content: center; }
.cc-sh { height: 100vh; width: 100%; max-width: 460px; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.cc-sh::-webkit-scrollbar { display: none; }
.cc-sh-slide { height: 100vh; scroll-snap-align: start; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; padding: 14px 0; box-sizing: border-box; }
.cc-sh-stage { position: relative; height: 100%; max-height: 860px; aspect-ratio: 9/16; max-width: 100%; border-radius: var(--radius-page); overflow: hidden; background: #0e0a08; box-shadow: var(--shadow-high); }
.cc-sh-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cc-sh-tap { position: absolute; inset: 0; z-index: 1; border: 0; background: transparent; cursor: pointer; }
.cc-sh-paused { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%) scale(.8); width: 76px; height: 76px; border-radius: 50%; background: rgba(0,0,0,.4); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transition: .2s; pointer-events: none; }
.cc-sh-paused .cc-ic { width: 34px; height: 34px; margin-left: 4px; }
.cc-sh-paused .cc-ic path { stroke: none; }
.cc-sh-slide.is-paused .cc-sh-paused { opacity: 1; transform: translate(-50%, -50%); }
.cc-sh-hint { position: absolute; top: 16px; left: 50%; z-index: 2; transform: translateX(-50%); padding: 6px 12px; border-radius: var(--radius-full); background: rgba(0,0,0,.45); color: #fff; font-size: 12.5px; font-weight: 600; pointer-events: none; transition: opacity .3s; }
html.cc-sh-sound .cc-sh-hint { opacity: 0; }
.cc-sh-prog { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 3px; background: rgba(255,255,255,.2); }
.cc-sh-prog i { display: block; height: 100%; width: 0; background: #fff; }
.cc-sh-stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; z-index: 1; background: linear-gradient(transparent, rgba(0,0,0,.62)); pointer-events: none; }
.cc-sh-info { position: absolute; left: 0; right: 68px; bottom: 0; z-index: 2; padding: 60px 16px 18px; color: #fff; pointer-events: none; }
.cc-sh-info > * { pointer-events: auto; }
.cc-sh-by { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.cc-sh-by > a { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.cc-sh-text { font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.cc-sh-info.is-open .cc-sh-text { -webkit-line-clamp: unset; max-height: 40vh; overflow-y: auto; }
.cc-sh-text .cc-tag, .cc-sh-text .cc-mention { color: #fff; }
.cc-sh-meta { margin: 6px 0 0; font-size: 12px; opacity: .8; }
.cc-btn.is-glass { height: 28px; padding: 0 12px; font-size: 12.5px; background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.5); backdrop-filter: blur(6px); }
.cc-btn.is-glass.is-on { background: transparent; }
.cc-sh-rail { position: absolute; right: 8px; bottom: 20px; z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.cc-sh-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 54px; padding: 4px 0; border: 0; background: none; color: #fff; font-size: 11.5px; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.cc-sh-btn .cc-ic { width: 30px; height: 30px; filter: drop-shadow(0 1px 4px rgba(0,0,0,.4)); }
.cc-sh-btn.is-on.js-like { color: #ff7a9c; }
.cc-sh-btn.is-on .cc-ic { fill: currentColor; }
.cc-sh-btn.is-on.js-save { color: #f2c38e; }
.cc-sh-nav { position: fixed; right: 28px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; z-index: 5; }
.cc-sh-nav .cc-icbtn { width: 46px; height: 46px; background: var(--cc-soft); }
.cc-sh-stage .cc-heart-burst { z-index: 4; }

/* ---------- 로그인 화면 ---------- */
body:has(.cc-auth) { background: var(--cc-bg); }
.cc-auth { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.cc-auth-art { position: relative; overflow: hidden; background: var(--color-background-inverted); }
.cc-auth-cols { position: absolute; inset: -40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; transform: rotate(-6deg) scale(1.15); opacity: .85; }
.cc-auth-col { display: flex; flex-direction: column; gap: 12px; animation: cc-drift 60s linear infinite; }
.cc-auth-col.c1 { animation-direction: reverse; animation-duration: 70s; }
.cc-auth-col.c2 { animation-duration: 80s; }
.cc-auth-col span { display: block; aspect-ratio: 3/4; border-radius: var(--radius-container); background-size: cover; background-position: center; }
.cc-auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,22,16,.15), rgba(28,22,16,.82)); }
.cc-auth-copy { position: absolute; left: 48px; right: 48px; bottom: 56px; z-index: 1; color: #FFFCF7; }
.cc-auth-copy b { display: block; font-family: var(--font-family-heading); font-size: clamp(30px, 3.4vw, 46px); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.cc-auth-copy p { margin: 14px 0 0; font-size: 16px; opacity: .85; line-height: 1.6; }
.cc-auth-box { display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 400px; margin: 0 auto; padding: 48px 24px; box-sizing: border-box; }
.cc-auth-box .cc-logo { margin-bottom: 4px; padding-left: 0; }
.cc-auth-sub { margin: 0 0 26px; color: var(--cc-sub); }
.cc-form { display: flex; flex-direction: column; gap: 10px; }
.cc-input { height: 50px; padding: 0 16px; border-radius: var(--radius-element); border: 1px solid var(--color-border); background: var(--cc-surface); color: var(--cc-text); font: inherit; font-size: 15px; outline: 0; box-sizing: border-box; }
.cc-input:focus { border-color: var(--cc-accent); box-shadow: 0 0 0 3px var(--cc-accent-soft); }
.cc-auth-row { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; font-size: 13.5px; color: var(--cc-sub); }
.cc-auth-row a:hover { color: var(--cc-text); }
.cc-chk { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.cc-chk input { accent-color: var(--cc-accent); width: 16px; height: 16px; }
.cc-demo { margin-top: 28px; }
.cc-demo-t { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 12.5px; color: var(--cc-muted); }
.cc-demo-t::before, .cc-demo-t::after { content: ""; flex: 1; height: 1px; background: var(--cc-line); }
.cc-demo-btns { display: flex; flex-direction: column; gap: 8px; }
.cc-demo-btn { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--radius-container); border: 1px solid var(--cc-line); background: var(--cc-surface); text-align: left; transition: border-color .15s, background .15s; }
.cc-demo-btn:hover { border-color: var(--cc-accent); background: var(--cc-accent-soft); }
.cc-demo-btn span { display: flex; flex-direction: column; line-height: 1.35; }
.cc-demo-btn b { font-size: 14.5px; }
.cc-demo-btn small { font-size: 12.5px; color: var(--cc-muted); }
.cc-demo-note { margin: 10px 0 0; font-size: 12px; color: var(--cc-muted); text-align: center; }
.cc-auth-foot { margin: 28px 0 0; text-align: center; font-size: 14px; color: var(--cc-sub); }
.cc-auth-foot a { color: var(--color-text-accent); font-weight: 700; }

/* ---------- 움직임 ---------- */
@keyframes cc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes cc-new { 0% { opacity: 0; transform: translateY(-10px); } 100% { opacity: 1; transform: none; } }
@keyframes cc-pop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes cc-burst { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.2); } 25% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); } 45% { transform: translate(-50%, -50%) scale(.95); } 80% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -60%) scale(1); } }
@keyframes cc-hl { 0%, 40% { background: var(--cc-accent-soft); } 100% { background: transparent; } }
@keyframes cc-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes cc-drift { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- 반응형 ---------- */
@media (max-width: 1240px) {
  .cc-app { grid-template-columns: 76px minmax(0, var(--cc-mid)) var(--cc-rightw); gap: 0 28px; }
  .cc-app.no-right { grid-template-columns: 76px minmax(0, 1fr); }
  .cc-side { align-items: center; }
  .cc-logo-wm, .cc-nav-i span, .cc-side-btn span, .cc-side-me span, .cc-side-links { display: none; }
  .cc-side .cc-logo { padding: 4px; }
  .cc-nav-i { padding: 12px; justify-content: center; }
  .cc-nav-i .cc-dot { position: absolute; top: 4px; right: 2px; margin: 0; min-width: 18px; height: 18px; font-size: 10px; }
  .cc-side-btn { width: 48px; padding: 0 !important; justify-content: center; }
  .cc-side-ft { border: 0; }
  .cc-side-me { padding: 6px; }
}
@media (max-width: 1060px) {
  .cc-app { grid-template-columns: 76px minmax(0, 1fr); max-width: 860px; }
  .cc-right { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .cc-app, .cc-app.no-right { display: block; padding: 0 14px; }
  .cc-side { display: none; }
  .cc-main { padding-bottom: calc(80px + var(--cc-safe-b)); }
  .cc-mtop { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; height: 54px; margin: 0 -14px; padding: 0 8px 0 10px; background: color-mix(in srgb, var(--cc-bg) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .cc-mtop .cc-logo { margin: 0; }
  .cc-mtop .cc-logo-ic { width: 30px; height: 30px; }
  .cc-mtop .cc-logo-wm { display: inline; font-size: 22px; }
  .cc-mtop-r { display: flex; }
  .cc-feedhd, .cc-pagehd, .cc-ptabs { top: 54px; }
  .cc-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-around; height: calc(60px + var(--cc-safe-b)); padding-bottom: var(--cc-safe-b); background: color-mix(in srgb, var(--cc-bg) 94%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--cc-line2); }
  .cc-tabbar > a { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 52px; font-size: 10.5px; color: var(--cc-muted); }
  .cc-tabbar > a.is-on { color: var(--cc-text); font-weight: 700; }
  .cc-tabbar > a.is-on .cc-ic { stroke-width: 2.3; }
  .cc-tab-plus { width: 50px; height: 38px; border: 0; border-radius: 14px; background: var(--cc-accent); color: var(--color-on-accent); display: flex; align-items: center; justify-content: center; }
  .cc-tab-plus .cc-ic { stroke-width: 2.4; }
  .cc-toptabs > a { font-size: 19px; margin-right: 8px; }
  .cc-notes { gap: 14px 10px; }
  .cc-notes-col { gap: 16px; }
  .cc-note-t { font-size: 13.5px; }
  .cc-more-load { grid-template-columns: repeat(2, 1fr); }
  .cc-prof-top { gap: 16px; }
  .cc-prof-top .cc-av { width: 76px !important; height: 76px !important; }
  .cc-prof-id h1 { font-size: 23px; }
  .cc-prof-stats { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .cc-prof-stats dd { font-size: 18px; }
  .cc-prof-stats dt { font-size: 11px; }
  /* 시트: 아래에서 올라옴 */
  .cc-modal.cc-sheetable { align-items: flex-end; padding: 0; }
  .cc-sheetable .cc-modal-box, .cc-sheet .cc-modal-box { max-width: none; margin: 0; max-height: calc(100vh - 30px); border-radius: var(--radius-page) var(--radius-page) 0 0; transform: translateY(100%); padding-bottom: var(--cc-safe-b); }
  .cc-grab { display: block; width: 40px; height: 5px; margin: 8px auto 2px; border-radius: 3px; background: var(--color-border); flex: none; touch-action: none; }
  .cc-sheet .cc-modal-box { padding-top: 0; }
  .cc-csheet .cc-modal-box { height: 72vh; }
  .cc-sup { grid-template-columns: 1fr; }
  .cc-sup-pick { aspect-ratio: auto; height: 220px; }
  .cc-sup-pick.has-video { height: 46vh; }
  /* 숏폼: 화면 가득 */
  body[data-page=shorts] .cc-app { padding: 0; }
  body[data-page=shorts] .cc-mtop { display: none; }
  body[data-page=shorts] .cc-main { height: 100dvh; padding: 0; }
  .cc-sh { max-width: none; height: calc(100dvh - 60px - var(--cc-safe-b)); }
  .cc-sh-slide { height: calc(100dvh - 60px - var(--cc-safe-b)); padding: 0; }
  .cc-sh-stage { border-radius: 0; height: 100%; width: 100%; aspect-ratio: auto; max-height: none; box-shadow: none; }
  .cc-sh-nav { display: none; }
  /* 로그인 */
  .cc-auth { grid-template-columns: 1fr; }
  .cc-auth-art { height: 220px; }
  .cc-auth-copy { left: 24px; right: 24px; bottom: 22px; }
  .cc-auth-copy b { font-size: 26px; }
  .cc-auth-copy p { display: none; }
  .cc-auth-box { padding: 28px 22px 40px; }
}
@media (min-width: 721px) {
  .cc-csheet { align-items: center; padding: 20px; }
  .cc-csheet .cc-modal-box { margin: 0; transform: translateY(16px) scale(.98); }
}
