/* Community: feed, creator profiles, series, the post viewer and bottom sheets. Phone first. */
.cm-body { overflow-x: hidden; }
.cm { max-width: 1160px; margin: 0 auto; padding: 14px 16px 80px; }
.cm-view[hidden] { display: none; }
.cm svg, .cm-viewer svg, .cm-sheet svg { max-width: none; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* buttons */
.cm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.cm-btn:active { transform: scale(.97); }
.cm-btn[disabled] { opacity: .55; pointer-events: none; }
.cm-btn[hidden] { display: none; }
.cm-btn-p { background: var(--yellow); border-color: var(--yellow); color: #160d00; }
.cm-btn-s { height: 30px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.cm-btn-d { color: var(--red); }
.cm-btn-block { width: 100%; height: 44px; font-size: 15px; border-radius: 12px; }
.cm-btn .coin { width: 16px; height: 16px; }
.cm-ico { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: 0 0 auto; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cm-ico svg { width: 22px; height: 22px; min-width: 22px; flex: none; }
.cm-ico:active { background: rgba(255, 255, 255, .08); }
.cm-link { border: 0; background: none; color: var(--yellow-2); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; padding: 4px 0; }
.cm-link[hidden] { display: none; }
.cm-chip { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); font-size: 13px; font-weight: 800; text-decoration: none; }
.cm-chip .coin { width: 16px; height: 16px; }
.cm-msg { margin: 0; font-size: 13.5px; color: var(--yellow); }
.cm-msg:empty { display: none; }
.cm-msg.is-err { color: var(--red); }
.cm-msg.is-ok { color: var(--green); }
.cm-row { display: flex; gap: 8px; }
.cm-row input { flex: 1; min-width: 0; }

/* avatars */
.cm-ava { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, #ffbf3a, #46b4ff); color: #160d00; font-weight: 900; font-size: 14px; text-transform: uppercase; }
.cm-ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cm-ava-s { width: 22px; height: 22px; font-size: 10px; }
.cm-ava-xl { width: 84px; height: 84px; font-size: 34px; box-shadow: 0 0 0 3px var(--bg, #070708), 0 0 0 5px rgba(255, 191, 58, .55); }
.cm-me { padding: 0; border: 0; background: none; cursor: pointer; }
.cm-me .cm-ava { width: 34px; height: 34px; }

/* feed head */
.cm-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.cm-top h1 { margin: 0; font-size: 26px; letter-spacing: -.01em; }
.cm-top-r { display: flex; align-items: center; gap: 8px; }
.cm-name { margin: 0 0 14px; padding: 14px; border-radius: 14px; border: 1px solid rgba(255, 191, 58, .35); background: rgba(255, 191, 58, .06); display: grid; gap: 10px; }
.cm-name[hidden] { display: none; }
.cm-name label { font-size: 14px; font-weight: 700; }
.cm input, .cm-sheet input, .cm-sheet textarea, .cm-sheet select, .cm-c-form input {
  width: 100%; min-width: 0; height: 42px; padding: 0 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--ink); font: inherit; font-size: 16px; }
.cm-sheet textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; }
.cm input:focus, .cm-sheet input:focus, .cm-sheet textarea:focus, .cm-sheet select:focus, .cm-c-form input:focus { outline: none; border-color: var(--yellow); }

.cm-tabs { display: flex; gap: 4px; padding: 4px; margin: 0 0 10px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.cm-tabs::-webkit-scrollbar { display: none; }
.cm-tab { flex: 1 0 auto; height: 34px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.cm-tab[hidden] { display: none; }
.cm-tab.is-on { background: var(--panel-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.cm-tags { display: flex; gap: 6px; margin: 0 -16px 12px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.cm-tags:empty { display: none; }
.cm-tags::-webkit-scrollbar { display: none; }
.cm-tag { flex: 0 0 auto; height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.cm-tag em { font-style: normal; color: var(--muted-2); margin-left: 3px; }
.cm-tag.is-on { background: var(--ink); border-color: var(--ink); color: #0b0b0d; }

/* grid + cards */
.cm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 720px) { .cm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1040px) { .cm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cm-card { min-width: 0; animation: cm-in .25s ease both; }
@keyframes cm-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.cm-thumb { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #111; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cm-thumb > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-thumb.is-locked > img { filter: blur(14px) saturate(1.2); transform: scale(1.2); }
.cm-badge { position: absolute; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 999px; background: rgba(0, 0, 0, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-size: 12px; font-weight: 800; }
.cm-badge svg { width: 13px; height: 13px; }
.cm-badge .coin { width: 14px; height: 14px; }
.cm-badge-tl { top: 7px; left: 7px; }
.cm-badge-tr { top: 7px; right: 7px; }
.cm-badge-bl { bottom: 7px; left: 7px; }
.cm-badge-warn { color: var(--yellow-2); }
.cm-lock { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.cm-lock svg { width: 26px; height: 26px; }
.cm-lock b { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
.cm-lock .coin { width: 16px; height: 16px; }
.cm-proc { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 13px; }
.cm-cmeta { display: grid; gap: 2px; padding: 7px 2px 0; }
.cm-cmeta strong { font-size: 13.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-cuser { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted); font-size: 12.5px; text-decoration: none; }
.cm-cuser span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-cuser i { font-style: normal; margin-left: auto; display: inline-flex; gap: 3px; align-items: center; flex: 0 0 auto; }
.cm-cuser i svg { width: 12px; height: 12px; }
.cm-end { text-align: center; color: var(--muted); margin: 22px 0 0; font-size: 14px; }
.cm-end:empty { display: none; }
#sentinel { height: 1px; }

/* empty state */
.cm-empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 10px; padding: 40px 16px; text-align: center; color: var(--muted); }
.cm-empty strong { color: var(--ink); font-size: 16px; }

/* profile */
.cm-back-row { display: flex; align-items: center; gap: 6px; margin: -4px 0 8px -8px; }
.cm-back { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; }
.cm-back svg { width: 22px; height: 22px; min-width: 22px; flex: none; }
.cm-back-t { font-weight: 800; font-size: 16px; }
.cm-prof { display: grid; gap: 10px; margin-bottom: 18px; }
.cm-prof-head { display: flex; align-items: center; gap: 18px; }
.cm-prof-stats { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); text-align: center; }
.cm-prof-stats > * { display: grid; gap: 1px; padding: 4px 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.cm-prof-stats > div { cursor: default; }
.cm-prof-stats strong { font-size: 18px; }
.cm-prof-stats span { font-size: 12.5px; color: var(--muted); }
.cm-prof-name { margin: 2px 0 0; font-size: 18px; }
.cm-prof-bio { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; }
.cm-prof-bio:empty { display: none; }
.cm-prof-actions { display: flex; gap: 8px; }
.cm-prof-actions .cm-btn { flex: 1; }
.cm-prof-actions .cm-btn.is-following { background: var(--panel-2); border-color: var(--line-2); color: var(--ink); }
.cm-earn { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-radius: 12px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.cm-earn[hidden] { display: none; }
.cm-earn > div { display: grid; gap: 2px; padding: 10px 8px; background: var(--panel); text-align: center; }
.cm-earn strong { display: inline-flex; justify-content: center; align-items: center; gap: 4px; font-size: 16px; }
.cm-earn strong .coin { width: 15px; height: 15px; }
.cm-earn span { font-size: 12px; color: var(--muted); }
.cm-sec-h { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 8px; }
.cm-sec-h h3 { margin: 0; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cm-sec-h.is-empty h3 { display: none; }
.cm-rail { display: flex; gap: 10px; margin: 0 -16px 14px; padding: 0 16px 2px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cm-rail:empty { display: none; }
.cm-rail::-webkit-scrollbar { display: none; }
.cm-scard { flex: 0 0 148px; scroll-snap-align: start; display: grid; gap: 6px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.cm-scard .cm-thumb { aspect-ratio: 1; }
.cm-scard strong { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-scard span { font-size: 12px; color: var(--muted); }
.cm-scard-stack { position: absolute; inset: auto 8px -5px; height: 10px; border-radius: 0 0 10px 10px; background: rgba(255, 255, 255, .08); }

/* series page */
.cm-ser-head { display: grid; gap: 14px; margin-bottom: 18px; }
@media (min-width: 720px) { .cm-ser-head { grid-template-columns: 220px 1fr; align-items: end; } }
.cm-ser-cover { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #111; }
@media (min-width: 720px) { .cm-ser-cover { aspect-ratio: 1; } }
.cm-ser-cover img { width: 100%; height: 100%; object-fit: cover; }
.cm-ser-cover.is-locked img { filter: blur(14px); transform: scale(1.2); }
.cm-ser-info { display: grid; gap: 6px; }
.cm-ser-info h2 { margin: 0; font-size: 22px; }
.cm-ser-info p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }
.cm-ser-info p:empty { display: none; }
.cm-by { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 700; }
.cm-ser-meta { color: var(--muted) !important; font-size: 13px !important; }

/* viewer: full screen on phones, two columns on wide screens */
.cm-viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #070708; color: var(--ink); overflow: hidden; }
.cm-viewer[open] { display: grid; grid-template-rows: auto auto 1fr auto; }
.cm-viewer::backdrop { background: rgba(0, 0, 0, .8); }
.cm-v-bar { display: flex; align-items: center; gap: 6px; padding: calc(env(safe-area-inset-top, 0px) + 8px) 8px 8px 12px; border-bottom: 1px solid var(--line); }
.cm-v-user { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; }
.cm-v-user > span:last-child { display: grid; min-width: 0; line-height: 1.2; }
.cm-v-user strong { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-v-user em { font-style: normal; font-size: 12px; color: var(--muted); }
.cm-v-media { position: relative; display: grid; place-items: center; background: #000; max-height: 62dvh; min-height: 200px; overflow: hidden; }
.cm-v-media > img { width: 100%; height: 100%; max-height: 62dvh; object-fit: contain; display: block; }
.cm-v-media .clanker-player, .cm-v-media video { width: 100%; max-height: 62dvh; }
/* tall videos: the whole frame fits the screen instead of being cut off */
.cm-v-media .cc-player { width: 100%; max-height: 66dvh; }
.cm-v-media { max-height: 66dvh; }
.cm-v-lock { position: relative; width: 100%; aspect-ratio: 4 / 5; max-height: 62dvh; overflow: hidden; }
.cm-v-lock > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(22px) saturate(1.2); transform: scale(1.25); }
.cm-v-lock-in { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 20px; text-align: center; background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .55)); }
.cm-v-lock-in svg { width: 30px; height: 30px; }
.cm-v-lock-in strong { font-size: 17px; }
.cm-v-lock-in .cm-btn { min-width: 220px; height: 44px; font-size: 15px; border-radius: 12px; }
.cm-v-lock-in small { color: rgba(255, 255, 255, .75); font-size: 12.5px; }
.cm-v-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 14px 16px; display: grid; gap: 8px; align-content: start; }
.cm-v-acts { display: flex; align-items: center; gap: 2px; margin: 0 -8px; }
.cm-v-spacer { flex: 1; }
.cm-act { display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 8px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cm-act svg { width: 24px; height: 24px; }
.cm-act .coin { width: 22px; height: 22px; }
.cm-act:active { transform: scale(.92); }
.cm-act.is-on { color: #ff4d6d; }
.cm-act.is-on svg { fill: currentColor; }
.cm-act-q { color: var(--muted); }
.cm-act[hidden] { display: none; }
.cm-v-body h2 { margin: 0; font-size: 17px; line-height: 1.3; }
.cm-v-series { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 5px 10px; border-radius: 8px; background: rgba(255, 191, 58, .1); color: var(--yellow-2); font-size: 13px; font-weight: 700; text-decoration: none; }
.cm-v-series[hidden] { display: none; }
.cm-v-desc { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; }
.cm-v-desc:empty { display: none; }
.cm-v-sales { margin: 0; font-size: 13px; color: var(--muted); }
.cm-v-sales[hidden] { display: none; }
.cm-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-pills:empty { display: none; }
.cm-pills .cm-tag { height: 26px; font-size: 12.5px; }
.cm-c-h { margin: 6px 0 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cm-comments { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cm-comments li { display: grid; grid-template-columns: 28px 1fr; gap: 9px; font-size: 14px; line-height: 1.4; }
.cm-comments .cm-ava { width: 28px; height: 28px; font-size: 12px; }
.cm-comments .cm-c-top { display: flex; gap: 8px; align-items: baseline; }
.cm-comments .cm-c-top a { color: var(--ink); font-weight: 800; text-decoration: none; font-size: 13px; }
.cm-comments .cm-c-top em { color: var(--muted-2); font-style: normal; font-size: 12px; }
.cm-comments .cm-c-top button { margin-left: auto; border: 0; background: none; color: var(--muted-2); font: inherit; font-size: 12px; cursor: pointer; }
.cm-comments p { margin: 2px 0 0; color: var(--ink-2); overflow-wrap: anywhere; }
.cm-comments .cm-c-none { display: block; color: var(--muted); font-size: 13.5px; }
.cm-c-form { display: flex; gap: 8px; align-items: center; padding: 10px 12px calc(env(safe-area-inset-bottom, 0px) + 10px); border-top: 1px solid var(--line); background: #0b0b0d; }
.cm-c-form[hidden] { display: none; }
.cm-c-form input { height: 40px; border-radius: 999px; padding: 0 16px; }
.cm-c-form .cm-btn { height: 40px; border-radius: 999px; }

@media (min-width: 900px) {
  .cm-viewer { inset: 0; margin: auto; width: min(1100px, calc(100vw - 48px)); height: min(820px, calc(100dvh - 48px)); border: 1px solid var(--line-2); border-radius: 16px; }
  .cm-viewer[open] { grid-template-columns: minmax(0, 1.35fr) minmax(340px, 1fr); grid-template-rows: auto 1fr auto; }
  .cm-v-media { grid-column: 1; grid-row: 1 / 4; max-height: none; height: 100%; }
  .cm-v-media > img, .cm-v-media .clanker-player, .cm-v-media video { max-height: 100%; }
  .cm-v-lock { aspect-ratio: auto; height: 100%; max-height: none; }
  .cm-v-bar { grid-column: 2; padding-top: 10px; }
  .cm-v-body { grid-column: 2; }
  .cm-c-form { grid-column: 2; }
}

/* bottom sheet */
.cm-sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: 560px; max-height: 88dvh; margin: 0 auto; padding: 0 0 calc(env(safe-area-inset-bottom, 0px) + 14px); border: 1px solid var(--line-2); border-bottom: 0; border-radius: 18px 18px 0 0; background: var(--panel); color: var(--ink); overflow: hidden; }
.cm-sheet[open] { display: flex; flex-direction: column; animation: cm-up .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes cm-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.cm-sheet::backdrop { background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@media (min-width: 640px) { .cm-sheet { inset: 0; margin: auto; height: fit-content; border-radius: 16px; border-bottom: 1px solid var(--line-2); } }
.cm-sheet-grip { width: 38px; height: 4px; margin: 8px auto 0; border-radius: 4px; background: var(--line-2); }
@media (min-width: 640px) { .cm-sheet-grip { display: none; } }
.cm-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 4px 18px; }
.cm-sheet-head h2 { margin: 0; font-size: 17px; }
.cm-sheet-body { overflow-y: auto; padding: 6px 18px 4px; display: grid; gap: 12px; }
.cm-field { display: grid; gap: 6px; }
.cm-field > span { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.cm-field small { color: var(--muted); font-size: 12px; }
.cm-price { position: relative; }
.cm-price .coin { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); pointer-events: none; }
.cm-price input { padding-left: 38px !important; }
.cm-amts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cm-amts button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--ink); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.cm-amts button .coin { width: 17px; height: 17px; }
.cm-amts button:active { border-color: var(--yellow); }
.cm-menu { display: grid; gap: 2px; margin: 0 -8px; }
.cm-menu button, .cm-menu a { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 10px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
.cm-menu button:active, .cm-menu a:active { background: var(--panel-2); }
.cm-menu svg { width: 20px; height: 20px; color: var(--muted); }
.cm-menu .is-d { color: var(--red); }
.cm-menu .is-d svg { color: var(--red); }
.cm-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cm-pick button { position: relative; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #111; cursor: pointer; }
.cm-pick button.is-on { border-color: var(--yellow); }
.cm-pick img { width: 100%; height: 100%; object-fit: cover; }
.cm-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cm-people a { display: flex; align-items: center; gap: 10px; padding: 8px 4px; color: var(--ink); text-decoration: none; font-weight: 700; }
.cm-sum { display: grid; gap: 4px; padding: 12px; border-radius: 12px; background: var(--panel-2); font-size: 14px; }
.cm-sum div { display: flex; justify-content: space-between; gap: 10px; }
.cm-sum span { color: var(--muted); }
.cm-sum strong { display: inline-flex; align-items: center; gap: 4px; }
.cm-sum .coin { width: 15px; height: 15px; }
.cm-radio { display: grid; gap: 6px; }
.cm-radio label { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); font-size: 14.5px; cursor: pointer; }
.cm-radio input { width: 18px; height: 18px; accent-color: var(--yellow); }
.cm-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.cm-toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); z-index: 2147483000; transform: translate(-50%, 20px); max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 999px; background: #f4f4f6; color: #0b0b0d; font-size: 14px; font-weight: 700; box-shadow: 0 8px 30px rgba(0, 0, 0, .4); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.cm-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.cm-toast.is-err { background: #ff5c6c; color: #fff; }
@media (min-width: 720px) { .cm-tabs { max-width: 520px; } }
#d-save.is-on { color: var(--yellow); }
#d-save.is-on svg { fill: currentColor; }
.cm-guest .cm-coins { background: var(--yellow); border-color: var(--yellow); color: #160d00; }
.cm-ava-l { width: 56px; height: 56px; font-size: 22px; }
.cm-up { display: flex; align-items: center; gap: 12px; }
.cm-prof-report { display: block; margin: 28px auto 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.cm-prof-report:hover { color: var(--ink-2); }
.cm-review { display: grid; gap: 8px; margin-bottom: 14px; }
.cm-review[hidden] { display: none; }
.cm-review h3 { margin: 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cm-rp { display: flex; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); font-size: 14px; }
.cm-rp a { color: var(--ink); font-weight: 800; text-decoration: none; }
.cm-rp p { margin: 4px 0 0; color: var(--ink-2); }
.cm-rp small { display: block; margin-top: 4px; color: var(--muted); }
.cm-rp-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.cm-check { display: inline-block; width: 15px; height: 15px; margin-left: 3px; vertical-align: -2px; flex: none; }
.cm .cm-check, .cm-viewer .cm-check, .cm-sheet .cm-check { fill: #1d9bf0; stroke: none; }
.cm-check .cm-check-tick { fill: none !important; stroke: #fff !important; stroke-width: 2.4 !important; }
.cm-prof-name .cm-check { width: 19px; height: 19px; vertical-align: -3px; }
.cm-cuser .cm-check { width: 13px; height: 13px; margin-left: -2px; }
#p-creator[hidden] { display: none; }

/* desktop: the header carries Log in; the feed uses the width */
body.cm-guest #coins { display: none; }
@media (min-width: 1400px) { .cm { max-width: 1280px; } .cm-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* a post as its own page (landed on /c/...): it sits in the page under the header, the feed follows */
.cm-post-page .cm-viewer[open] { position: static; display: block; width: 100%; height: auto; max-width: 1160px; margin: 0 auto; overflow: visible; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.cm-post-page #post-close { display: none; }
.cm-post-page .cm-v-media { max-height: 72vh; }
.cm-post-page .cm-v-media > img, .cm-post-page .cm-v-media .clanker-player, .cm-post-page .cm-v-media video { max-height: 72vh; }
.cm-post-page .cm-v-body { overflow: visible; padding-bottom: 8px; }
.cm-post-page .cm-c-form { background: transparent; border-top: 0; padding-bottom: 16px; }
@media (min-width: 900px) {
  .cm-post-page .cm-viewer[open] { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(340px, 1fr); grid-template-rows: auto auto 1fr; margin: 18px auto 8px; width: calc(100% - 32px); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background: var(--panel); }
  .cm-post-page .cm-viewer[open] { height: min(80vh, 780px); }
  .cm-post-page .cm-v-media { grid-row: 1 / 4; height: 100%; max-height: none; }
  .cm-post-page .cm-v-media > img, .cm-post-page .cm-v-media .clanker-player, .cm-post-page .cm-v-media video { max-height: 100%; height: 100%; }
  .cm-post-page .cm-v-body { overflow-y: auto; }
}
.cm-post-page #v-feed .cm-tabs, .cm-post-page #v-feed #tags { display: none; }

/* Top Contributor: a gold profile */
.cm-prof { position: relative; }
.cm-prof.is-top { padding: 16px; margin-left: -4px; margin-right: -4px; border-radius: 20px; border: 1px solid rgba(255, 199, 90, .32);
  background: radial-gradient(90% 70% at 0% 0%, rgba(255, 191, 58, .16), transparent 60%), linear-gradient(180deg, rgba(255, 191, 58, .05), rgba(255, 191, 58, 0) 70%); }
.cm-prof.is-top .cm-ava-xl { box-shadow: 0 0 0 3px var(--bg, #070708), 0 0 0 6px #f6bd45, 0 0 0 7px rgba(255, 236, 190, .6), 0 0 34px rgba(255, 180, 60, .55); }
.cm-prof.is-top .cm-prof-name { color: #fff3d6; }
.cm-prof-tc { margin: -2px 0 2px; }
.cm-prof { grid-template-columns: minmax(0, 1fr); }
.cm-prof-actions { flex-wrap: wrap; }
#p-tc-admin { flex-basis: 100%; }
@media (max-width: 520px) { .cm-prof.is-top { padding: 14px 12px; margin-left: -6px; margin-right: -6px; } }
.cm-prof-tc[hidden] { display: none; }

/* locked videos show a clear frame so buyers can see what they're getting */
.cm-thumb.is-locked.is-video > img { filter: none; transform: none; }
.cm-thumb.is-locked.is-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .55)); pointer-events: none; }
.cm-v-lock.is-video { aspect-ratio: auto; height: 66dvh; max-height: 66dvh; }
.cm-v-lock.is-video > img { filter: none; transform: none; object-fit: contain; }
.cm-v-lock.is-video .cm-v-lock-in { background: linear-gradient(180deg, rgba(0, 0, 0, .05) 30%, rgba(0, 0, 0, .7)); place-content: end center; padding-bottom: 28px; }
.cm-peek { color: rgba(255, 255, 255, .8); font-size: 13px; text-decoration: underline; }

@media (max-width: 440px) { .cm-prof-head { gap: 12px; } .cm-prof-stats strong { font-size: 16px; } .cm-prof-stats span { font-size: 11.5px; } }
