/* Comment Clipper (a view of the user page) */
.clp { --red: #ef4444; width: min(1280px, 100%); margin: 0 auto; display: grid; gap: 12px; align-content: start; }
.clp-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.clp-head h1 { margin: 0; font-size: clamp(22px, 3vw, 28px); letter-spacing: -.02em; }
.clp-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; max-width: 60ch; }
.clp-form { display: flex; gap: 8px; align-items: center; }
.clp-form .input { width: 220px; }
.clp-status { display: flex; align-items: center; gap: 12px; min-height: 22px; flex-wrap: wrap; }
.clp-live { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.clp-main { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 900px) { .clp-main { grid-template-columns: minmax(0, 1fr); } }

.clp-feed { padding: 14px; display: grid; gap: 8px; }
.clp-feed header { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.clp-feed header b { color: var(--muted); font-variant-numeric: tabular-nums; }
.clp-hold { font-size: 12px; color: var(--ok); }
.clp-list { list-style: none; margin: 0; padding: 0; height: min(66vh, 620px); overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 900px) { .clp-list { height: 300px; } }
.clp-list .empty { color: var(--muted); font-size: 14px; padding: 20px 6px; text-align: center; }
.clp-row { display: grid; grid-template-columns: 40px 1fr; gap: 10px; width: 100%; text-align: start; padding: 8px; border-radius: 12px; border: 1px solid transparent; background: var(--panel-2); color: inherit; font: inherit; cursor: pointer; }
.clp-row:hover { border-color: #404040; }
.clp-row.flash { border-color: var(--ok); }
.clp-row img, .clp-ph { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #212121; display: grid; place-items: center; font-weight: 800; }
.clp-row b { display: block; font-size: 13px; color: var(--muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clp-row span { display: block; overflow-wrap: anywhere; font-size: 15px; }

.clp-editor { padding: 14px; }
.clp-noedit { color: var(--muted); padding: 40px 8px; text-align: center; }
.clp-work { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .clp-work { grid-template-columns: minmax(0, 1fr); justify-items: center; } .clp-ctrl { width: 100%; } }
.clp-stage { height: min(74vh, 780px); aspect-ratio: 9 / 16; background: #000; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; position: relative; }
@media (max-width: 900px) { .clp-stage { height: auto; width: min(100%, 420px); } }
.clp-stage canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.clp-hint { position: absolute; inset: auto 0 62px 0; text-align: center; font-size: 13px; color: #dcdcdc; pointer-events: none; text-shadow: 0 1px 6px #000; padding: 0 12px; }

/* the timeline: the bar at the bottom of the picture */
.clp-tl { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .82) 45%); }
.clp-bar { display: flex; align-items: center; gap: 8px; }
.clp-pp { appearance: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; color: #000; font-size: 14px; cursor: pointer; flex: none; display: grid; place-items: center; }
.clp-pp:disabled { opacity: .5; cursor: default; }
.clp-track { position: relative; flex: 1; height: 34px; cursor: pointer; touch-action: none; border-radius: 8px; }
.clp-track::before { content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .3); }
.clp-fill { position: absolute; left: 0; top: 15px; height: 4px; border-radius: 2px; background: var(--grad); width: 0; }
.clp-head2 { position: absolute; top: 6px; width: 3px; height: 22px; margin-left: -1px; background: #fff; border-radius: 2px; pointer-events: none; }
.clp-mk { position: absolute; top: 2px; width: 16px; height: 30px; margin-left: -8px; display: grid; place-items: center; cursor: ew-resize; }
.clp-mk::after { content: ""; width: 6px; height: 18px; border-radius: 3px; background: var(--red); }
.clp-mk.on::after { box-shadow: 0 0 0 2px #fff; }
.clp-track.assign { outline: 2px dashed var(--red); outline-offset: 1px; }
.clp-tt { font-size: 12px; color: #ebebeb; font-variant-numeric: tabular-nums; flex: none; min-width: 78px; text-align: end; }
.clp-th { font-size: 12px; color: #ffb4b4; text-align: center; min-height: 16px; margin-bottom: 2px; }

.clp-ctrl { display: grid; gap: 14px; min-width: 0; }
.clp-ctrl h3 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.clp-line { display: flex; gap: 8px; flex-wrap: wrap; }
.clp-clip { margin-top: 10px; display: grid; gap: 6px; }
.clp-bctrl { display: grid; gap: 14px; }
.clp-r { display: grid; grid-template-columns: 104px 1fr 54px; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.clp-r output { text-align: end; font-variant-numeric: tabular-nums; }
.clp-r input[type=range] { width: 100%; accent-color: var(--violet); }
.clp-note { color: var(--muted); font-size: 12px; margin: 0; }
.clp-chips { display: flex; flex-wrap: wrap; gap: 6px; touch-action: none; user-select: none; -webkit-user-select: none; }
.clp-chip { padding: 5px 9px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line); font-size: 14px; cursor: pointer; }
.clp-chip.px { background: #404040; border-style: dashed; color: transparent; position: relative; }
.clp-chip.px::after { content: attr(data-t); position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); filter: blur(3.5px); }

.clp-blist { display: grid; gap: 6px; }
.clp-bb { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.clp-bb.on { border-color: var(--violet); background: #1c1c1c; }
.clp-key { appearance: none; border: 0; background: var(--red); color: #fff; font: inherit; font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.clp-key.act { animation: clp-kp 1s infinite; }
@keyframes clp-kp { 50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, .25); } }
.clp-bn { appearance: none; border: 0; background: none; color: var(--text); font: inherit; font-size: 13px; text-align: start; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 2px; }
.clp-bt { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.clp-bt.set { color: var(--ok); }
.clp-x { appearance: none; border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 6px; }
.clp-x:hover { color: var(--red); }
@media (prefers-reduced-motion: reduce) { .clp-key.act { animation: none; } }

/* post to TikTok */
.clp-post { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); }
.clp-post h3 { margin: 0; }
.clp-pform { display: grid; gap: 8px; }
.clp-pform textarea { resize: vertical; min-height: 72px; }
.clp-who { margin: 0; font-weight: 600; }
.clp-chk { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.clp-chk input:disabled + span { color: var(--muted); }
.clp-note a { color: var(--violet); }
.msg.ok { color: var(--ok); }
