/*
 * AnimeAV1 theme — the CMS comment thread (partials/comments/*, filled by
 * comments.js / comments-guest.js / community.min.js) in the reference's
 * comment look (WP comments-box.css: 32px round avatars at the left, plain
 * name + grey time, quiet action row, a soft rounded composer box).
 * Same class hooks as public/assets/animeflv/css/animeflv-comments.css; that
 * file is not loaded on AnimeAV1 pages.
 */

/* Box around the thread (partials on the anime / watch pages) */
#comments .af-cm-load { padding: .5rem 0; text-align: center; }
#comments .af-cm-load .Button { display: inline-flex; align-items: center; height: 2.5rem; padding: 0 1.25rem; border-radius: .5rem; border: 1px solid rgb(var(--line)); color: rgb(var(--lead)); font-size: .875rem; font-weight: 700; cursor: pointer; }
#comments .af-cm-load .Button:hover { background: rgb(var(--soft)); }

/* Reactions bar */
#cm-reactions:empty { display: none; }
#cm-reactions .cm-reactions-inner { display: flex; flex-wrap: wrap; gap: .4rem; }
#cm-reactions .cm-rx { display: inline-flex; align-items: center; gap: .4rem; height: 2.25rem; padding: 0 .8rem 0 .3rem; border-radius: 999px; background: rgb(var(--mute)); border: 1px solid rgb(var(--line) / .6); color: rgb(var(--subs)); font-size: .8rem; font-weight: 700; cursor: pointer; transition: background .15s, color .15s; }
#cm-reactions .cm-rx:hover { background: rgb(var(--soft)); color: rgb(var(--lead)); }
#cm-reactions .cm-rx.is-active { background: rgb(var(--main) / .15); border-color: rgb(var(--main) / .5); color: rgb(var(--main)); }
#cm-reactions .cm-rx.is-pending { opacity: .6; }
#cm-reactions .cm-rx-gif { width: 1.6rem; height: 1.6rem; border-radius: 999px; object-fit: cover; }
#cm-reactions .cm-rx-emoji { width: 1.6rem; font-size: 1.05rem; text-align: center; }
#cm-reactions .cm-rx-count { color: rgb(var(--subs)); font-weight: 500; }
#cm-reactions .cm-rx-count:empty { display: none; }
@media (max-width: 639px) { #cm-reactions .cm-rx-label { display: none; } #cm-reactions .cm-rx { padding-right: .6rem; } }

/* Widget */
.cm-widget { color: rgb(var(--subs)); font-size: .875rem; line-height: 1.5; }
.cm-widget a { color: inherit; }
.cm-widget p { margin: 0; }
.cm-widget button:not(.av1-u), .cm-widget .btn:not(.av1-u), #cm-gif-panel button { margin: 0; border: 0; background: none; box-shadow: none; color: inherit; font: inherit; cursor: pointer; }
.cm-widget .mr-1 { margin-right: .25rem; } .cm-widget .mr-2 { margin-right: .5rem; } .cm-widget .ml-2 { margin-left: .5rem; } .cm-widget .ml-1 { margin-left: .25rem; } .cm-widget .mt-1 { margin-top: .25rem; } .cm-widget .mt-3 { margin-top: .75rem; } .cm-widget .mb-0 { margin-bottom: 0; }
.cm-widget .clearfix { display: none; }
.cm-widget .text-muted { color: rgb(var(--subs)); }

/* Header: "N comentarios" · Ordenar por */
.cm-widget .sc-header { display: flex; align-items: center; gap: 1rem; }
.cm-widget .sc-h-title { color: rgb(var(--lead)); font-size: 1.5rem; font-weight: 700; line-height: 2rem; }
.cm-widget .sc-h-title i { display: none; }
.cm-widget .sc-h-sort { position: relative; margin-left: auto; }

/* Drop-downs (sort, "Más") — main.js adds .show to the parent */
.cm-widget .dropdown-menu { position: absolute; top: 100%; z-index: 40; display: none; min-width: 10rem; margin-top: .3rem; padding: .35rem; border: 1px solid rgb(var(--line)); border-radius: .6rem; background: rgb(var(--body)); box-shadow: 0 12px 32px #0005; }
.cm-widget .show > .dropdown-menu { display: grid; gap: .1rem; }
.cm-widget .sc-h-sort .dropdown-menu { right: 0; }
.cm-widget .dropdown-menu .dropdown-item { display: flex; align-items: center; justify-content: space-between; padding: .55rem .65rem; border-radius: .45rem; color: rgb(var(--lead)); font-size: .8rem; white-space: nowrap; cursor: pointer; }
.cm-widget .dropdown-menu .dropdown-item:hover { background: rgb(var(--soft)); }
.cm-widget .dropdown-menu .dropdown-item .ic-active { display: none; color: rgb(var(--main)); }
.cm-widget .dropdown-menu .dropdown-item.active { font-weight: 700; }
.cm-widget .dropdown-menu .dropdown-item.active .ic-active { display: inline; }

/* Rules note */
.cm-widget .cm-rules-note { margin-bottom: 1rem; padding: .7rem 1rem; border-radius: .6rem; border: 1px solid rgb(var(--warn, 234 179 8) / .3); background: rgb(var(--warn, 234 179 8) / .08); font-size: .8rem; }
.cm-widget .cm-rules-note a { color: rgb(var(--main)); font-weight: 700; }

/* Avatars: 32px circles at the left */
.cm-widget .user-avatar { position: absolute; left: 0; top: .5rem; width: 2rem; height: 2rem; overflow: hidden; border-radius: 999px; background: rgb(var(--soft)); }
.cm-widget .user-avatar::before { content: attr(data-initial); position: absolute; inset: 0; display: grid; place-items: center; color: rgb(var(--subs)); font-size: .8rem; font-weight: 700; }
.cm-widget .user-avatar .user-avatar-img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; }

/* Composer */
.cm-widget .comment-input { position: relative; padding: .5rem 0 .5rem 3rem; }
.cm-widget .ci-form > .user-name { margin-bottom: .35rem; font-size: .75rem; }
.cm-widget .ci-form > .user-name .link-highlight { color: rgb(var(--lead)); font-weight: 700; }
.cm-widget .comment-input.is-collapsed .comment-form { display: none; }
.cm-widget .comment-form { position: relative; margin: 0; }
.cm-widget .comment-form .comment-container { position: relative; padding: .75rem 1rem; border: 1px solid rgb(var(--line)); border-radius: .75rem; background: rgb(var(--soft)); transition: border-color .15s; }
.cm-widget .comment-form .comment-container:focus-within { border-color: rgb(var(--main) / .6); }
.cm-widget .comment-form .af-ci-field, .cm-widget .comment-form .cm-composer-grow { position: relative; }
.cm-widget .comment-form textarea.form-control { display: block; width: 100%; min-height: 3rem; padding: 0 4.5rem 0 0; border: 0; background: transparent; box-shadow: none; color: rgb(var(--lead)); font-size: .875rem; line-height: 1.6; resize: none; overflow: hidden; field-sizing: content; }
.cm-widget .comment-form textarea.form-control::placeholder { color: rgb(var(--subs)); }
.cm-widget .comment-form textarea.form-control:focus { outline: none; }
.cm-widget .comment-form .ci-emo { position: absolute; top: -.35rem; right: -.5rem; z-index: 2; display: flex; }
.cm-widget .comment-form .ci-emo .cb-icon { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: .45rem; color: rgb(var(--subs)); cursor: pointer; }
.cm-widget .comment-form .ci-emo .cb-icon:hover { background: rgb(var(--line)); color: rgb(var(--lead)); }
.cm-widget .comment-form .af-gif-label { padding: 0 .2rem; border: 1.5px solid currentColor; border-radius: .2rem; font-size: .55rem; font-weight: 700; line-height: .8rem; }
.cm-widget .comment-form .ci-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .5rem; }
.cm-widget .comment-form .ci-b-left { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.cm-widget .comment-form .ci-b-right { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.cm-widget .comment-form .cb-li { display: flex; align-items: center; }
.cm-widget .comment-form .btn-spoil { display: inline-flex; align-items: center; height: 1.9rem; padding: 0 .6rem; border-radius: .45rem; color: rgb(var(--subs)); font-size: .75rem; font-weight: 600; }
.cm-widget .comment-form .btn-spoil i { opacity: .4; }
.cm-widget .comment-form .btn-spoil:hover { background: rgb(var(--line)); color: rgb(var(--lead)); }
.cm-widget .comment-form .btn-spoil.active { background: rgb(239 68 68 / .12); color: #f87171; }
.cm-widget .comment-form .btn-spoil.active i { opacity: 1; }
.cm-widget .cm-fmt-bar { display: flex; gap: .1rem; }
.cm-widget .cm-fmt-btn { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: .45rem; color: rgb(var(--subs)); font-size: .8rem; }
.cm-widget .cm-fmt-btn:hover { background: rgb(var(--line)); color: rgb(var(--lead)); }
.cm-widget .cm-fmt-i { font-style: italic; } .cm-widget .cm-fmt-s { text-decoration: line-through; }
.cm-widget .cm-fmt-ts { display: none; }
.cm-player-ready .cm-widget .cm-fmt-ts { display: grid; }
.cm-widget .comment-form .ci-b-right button[type=submit], .cm-widget .comment-form .ci-b-right .btn-primary { height: 2.1rem; padding: 0 1rem; border-radius: .5rem; background: rgb(var(--main)); color: rgb(var(--fore, 0 0 0)); font-size: .8rem; font-weight: 700; }
.cm-widget .comment-form .ci-b-right button[type=submit]:hover { filter: brightness(1.1); }
.cm-widget .comment-form .ci-b-right .btn-secondary, .cm-widget .comment-form .ci-b-right .cm-edit-cancel { padding: 0 .4rem; color: rgb(var(--subs)); font-size: .8rem; font-weight: 600; cursor: pointer; }
.cm-widget .comment-form .ci-b-right .btn-secondary:hover { color: rgb(var(--lead)); }
.cm-widget .cm-error, .cm-widget .alert-danger { flex: 0 0 100%; padding: .5rem .8rem; border-radius: .5rem; background: rgb(239 68 68 / .12); color: #f87171; font-size: .8rem; }
.cm-widget .loading-absolute { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; border-radius: .75rem; background: rgb(var(--body) / .6); }
.cm-widget .loading-absolute .loading, #cm-gif-panel .loading { display: block; width: 1.6rem; height: 1.6rem; border: 3px solid rgb(var(--line)); border-top-color: rgb(var(--main)); border-radius: 999px; animation: av1-spin .8s linear infinite; }
.cm-widget .loading-absolute .loading > div { display: none; }
.cm-widget .guest-comment-form textarea.form-control { cursor: pointer; }

/* One comment */
.cm-widget .cw_l-line { position: relative; padding: .5rem 0 .5rem 3rem; }
.cm-widget .cw_l-line + .cw_l-line { margin-top: .5rem; }
.cm-widget .cw_l-line.comment-focus > .info { background: rgb(var(--main) / .06); box-shadow: 0 0 0 .5rem rgb(var(--main) / .06); border-radius: .3rem; }
.cm-widget .ipinned { margin-bottom: .15rem; color: rgb(var(--main)); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.cm-widget .ihead { display: flex; flex-wrap: wrap; align-items: center; column-gap: .45rem; min-height: 1.4rem; font-size: .8rem; }
.cm-widget .ihead .user-name { color: rgb(var(--lead)); font-weight: 700; }
.cm-widget .ihead .user-name:hover { text-decoration: underline; }
.cm-widget .ihead .time { color: rgb(var(--subs)); font-size: .75rem; }
.cm-widget .ihead .eps { padding: .05rem .4rem; border-radius: .3rem; background: rgb(var(--line)); color: rgb(var(--lead)); font-size: .65rem; font-weight: 700; }
.cm-widget .cm-ban-badge, .cm-widget .cm-staff-badge { margin-left: .35rem; padding: .1rem .35rem; border-radius: .3rem; background: rgb(var(--main)); color: rgb(var(--fore, 0 0 0)); font-size: .6rem; font-weight: 700; text-transform: uppercase; vertical-align: 1px; }
.cm-widget .cm-ban-badge { background: #ef4444; color: #fff; }

.cm-widget .ibody { position: relative; margin: .25rem 0 .35rem; color: rgb(var(--lead) / .9); font-size: .875rem; line-height: 1.65; overflow-wrap: anywhere; }
.cm-widget .cm-body p { margin-bottom: .3rem; }
.cm-widget .cm-body p:last-child { margin-bottom: 0; }
.cm-widget .cm-body a { color: rgb(var(--main)); }
.cm-widget .cm-body blockquote { margin: .5rem 0; padding-left: .75rem; border-left: 3px solid rgb(var(--main)); color: rgb(var(--subs)); }
.cm-widget .tag-name { margin-right: .25rem; color: rgb(var(--main)); font-weight: 700; }
.cm-widget .cm-body img { max-width: 100%; border-radius: .4rem; }
.cm-widget .cm-gif-wrap { display: block; margin-top: .35rem; }
.cm-widget .cm-gif-wrap img, .cm-widget .cm-embed-gif { max-width: min(100%, 26rem); max-height: 20rem; border-radius: .4rem; }
.cm-widget .cm-comment-notice { color: rgb(var(--subs)); font-style: italic; font-size: .8rem; }
.cm-widget .cm-thread-locked { margin-bottom: .5rem; padding: .4rem .8rem; border-radius: .5rem; background: rgb(var(--soft)); font-size: .8rem; }
.cm-widget .ibody.is-spoil > .cm-body { filter: blur(6px); user-select: none; pointer-events: none; }
.cm-widget .show-spoil:empty { display: none; }
.cm-widget .ibody.is-spoil > .show-spoil { position: absolute; inset: 0; display: flex; align-items: center; }
.cm-widget .show-spoil .btn { height: 1.8rem; padding: 0 .8rem; border-radius: .45rem; background: rgb(var(--line)); color: rgb(var(--lead)); font-size: .75rem; font-weight: 700; }
.cm-widget .cm-auto-spoil { padding: 0 .25rem; border-radius: .25rem; background: rgb(var(--lead)); color: transparent; }
.cm-widget .cm-auto-spoil.is-open { background: rgb(var(--soft)); color: inherit; }
.cm-widget .cm-auto-spoil-toggle { margin-left: .25rem; padding: 0 .35rem; border-radius: .3rem; background: rgb(var(--main)); color: rgb(var(--fore, 0 0 0)); font-size: .65rem; cursor: pointer; }
.cm-widget .cm-ts { padding: 0 .3rem; border-radius: .3rem; background: rgb(var(--main) / .12); color: rgb(var(--main)); font-weight: 700; cursor: pointer; }
.cm-widget .cm-ts.cm-ts--bad { background: rgb(var(--soft)); color: rgb(var(--subs)); cursor: default; }

/* Actions */
.cm-widget .ibottom { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; }
.cm-widget .ib-li { position: relative; }
.cm-widget .ib-li > .btn { display: inline-flex; align-items: center; padding: .2rem 0; color: rgb(var(--subs)); font-size: .75rem; font-weight: 600; }
.cm-widget .ib-li > .btn:hover, .cm-widget .ib-more.show > .btn { color: rgb(var(--main)); }
.cm-widget .cm-btn-vote.active { color: rgb(var(--main)); }
.cm-widget .ib-dislike .cm-btn-vote.active { color: #f87171; }
.cm-widget .ibottom .value:empty { display: none; }
.cm-widget .ib-more .dropdown-menu { left: 0; }

/* Replies */
.cm-widget .reply-block { margin-top: .5rem; padding-left: 2.6rem; }
.cm-widget .reply-block .user-avatar, .cm-widget .replies-wrap .cw_l-line .user-avatar { width: 1.75rem; height: 1.75rem; }
.cm-widget .replies { position: relative; margin: .4rem 0 0 -1.75rem; padding-left: 1.75rem; }
.cm-widget .replies::before { content: ""; position: absolute; top: 0; bottom: 1rem; left: 0; width: 1px; background: rgb(var(--line)); }
.cm-widget .replies-wrap { padding-top: .25rem; }
.cm-widget .replies-wrap .cw_l-line { padding-left: 2.6rem; }
.cm-widget .replies-wrap.is-thread-locked { opacity: .8; }
.cm-widget .cm-anchor { display: block; height: 0; }
.cm-widget .rep-more .cm-btn-show-rep { display: inline-flex; align-items: center; padding: .3rem .5rem; color: rgb(var(--main)); font-size: .75rem; font-weight: 700; }
.cm-widget .rep-more .cm-btn-show-rep i { transition: transform .2s; }
.cm-widget .rep-more .cm-btn-show-rep.active i { transform: rotate(180deg); }
.cm-widget .rep-more .cm-btn-show-rep span::before { content: "Ver "; }
.cm-widget .rep-more .cm-btn-show-rep.active span::before { content: "Ocultar "; }

/* Pager */
.cm-widget .cm-foot { margin-top: 1.25rem; }
.cm-widget .cm-foot #cm-view-more { display: inline-flex; align-items: center; height: 2.25rem; padding: 0 1rem; border-radius: .5rem; border: 1px solid rgb(var(--line)); color: rgb(var(--lead)); font-size: .8rem; font-weight: 700; }
.cm-widget .cm-foot #cm-view-more:hover { background: rgb(var(--soft)); }
.cm-widget .no-result { padding: 1.25rem 0 .25rem; color: rgb(var(--subs)); text-align: center; }

/* Inline edit composer */
.cm-widget .cm-edit-composer-wrap { position: relative; margin: .35rem 0; }
.cm-widget .cm-edit-composer-wrap .cm-composer-grow { display: flex; flex-direction: column; }

/* Panels comments.js puts on <body> */
emoji-picker.emoji-picker { display: none; }
emoji-picker.emoji-picker.cm-emoji-open { position: fixed; z-index: 1060; display: block; width: 320px; height: 340px; --background: rgb(var(--body)); --border-color: rgb(var(--line)); --indicator-color: rgb(var(--main)); --input-border-color: rgb(var(--line)); --input-font-color: rgb(var(--lead)); --outline-color: rgb(var(--main)); --button-hover-background: rgb(var(--soft)); border-radius: .6rem; box-shadow: 0 12px 32px #0006; }
#cm-gif-panel { display: none; }
#cm-gif-panel.cm-gif-open { position: fixed; z-index: 1060; display: flex; flex-direction: column; width: 320px; height: 360px; max-width: calc(100vw - 16px); padding: .6rem; border: 1px solid rgb(var(--line)); border-radius: .6rem; background: rgb(var(--body)); box-shadow: 0 12px 32px #0006; font-size: .8rem; }
#cm-gif-panel .cm-gif-head { display: flex; gap: .4rem; margin-bottom: .5rem; }
#cm-gif-panel .cm-gif-q { flex: 1; height: 2.1rem; padding: 0 .75rem; border: 1px solid rgb(var(--line)); border-radius: .5rem; background: rgb(var(--soft)); color: rgb(var(--lead)); }
#cm-gif-panel .cm-gif-q:focus { border-color: rgb(var(--main)); outline: none; }
#cm-gif-panel .cm-gif-close { width: 2.1rem; height: 2.1rem; border-radius: .5rem; background: rgb(var(--soft)); color: rgb(var(--lead)); font-size: 1rem; }
#cm-gif-panel .cm-gif-grid { display: grid; flex: 1; grid-template-columns: 1fr 1fr; gap: .4rem; overflow-y: auto; }
#cm-gif-panel .cm-gif-tile { display: block; padding: 0; border-radius: .35rem; overflow: hidden; background: rgb(var(--soft)); }
#cm-gif-panel .cm-gif-tile img { display: block; width: 100%; height: 100px; object-fit: cover; }
#cm-gif-panel .cm-gif-msg { padding: .6rem; color: rgb(var(--subs)); text-align: center; }

/* common.css styles every [class*=ic-] as an icon mask; the CMS's .ic-active
   check (a Font Awesome glyph) is not one. */
.cm-widget i.ic-active { -webkit-mask: none; mask: none; background: none; width: auto; height: auto; }

/* ── match-ref: the reference's thread head and composer (theme
      partials/comments/widget + composer) ── */
#comments #cm-reactions { display: none !important; }
.cm-widget .user-avatar.comment-avatar { height: auto; aspect-ratio: 1; }
.cm-widget .av1-cm-form .comment-container { padding: 1rem; transition: border-color .15s; }
.cm-widget .av1-cm-form .comment-container:focus-within { border-color: rgb(var(--line)); }
.cm-widget .av1-cm-form .af-ci-field { position: relative; display: grid; }
.cm-widget .av1-cm-form textarea.comment-subject { display: block; width: 100%; height: auto; min-height: 1.5rem; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; color: rgb(var(--lead)); font: inherit; font-size: 1rem; line-height: 1.5rem; resize: none; overflow: hidden; field-sizing: content; outline: none; }
.cm-widget .av1-cm-form textarea.comment-subject::placeholder { color: rgb(var(--subs)); opacity: 1; }
.cm-widget .av1-cm-form .ci-emo { position: static; display: flex; }
.cm-widget .av1-cm-form .ci-buttons { gap: .5rem; margin: .25rem -1rem -1rem; }
.cm-widget .av1-cm-form .ci-b-left { gap: 0; }
.cm-widget .av1-cm-form .cm-fmt-bar { gap: 0; }
.cm-widget .av1-cm-form .cm-fmt-btn, .cm-widget .av1-cm-form .cb-gif { display: inline-flex; align-items: center; justify-content: center; width: auto; height: auto; min-width: 2rem; min-height: 2rem; margin: 0; padding: 0; border: 0; border-radius: 999px; background: none; color: rgb(var(--text)); font-size: 1rem; line-height: 1; }
.cm-widget .av1-cm-form .cm-fmt-btn:hover, .cm-widget .av1-cm-form .cb-gif:hover { background: rgb(var(--line)); color: rgb(var(--subs)); }
.cm-widget .av1-cm-form .ci-b-right button[type=submit] { height: auto; min-height: 2.5rem; min-width: 2.5rem; padding: 0 .75rem; border: 0; border-radius: 0 0 var(--radius-lg, .5rem) 0; background: rgb(var(--line)); color: rgb(var(--subs)); font-size: .875rem; font-weight: 600; filter: none; }
.cm-widget .av1-cm-form .ci-b-right button[type=submit]:hover { background: rgb(var(--edge)); color: rgb(var(--lead)); }
.cm-widget .av1-cm-form .ci-b-right .btn-close-reply, .cm-widget .av1-cm-form .ci-b-right #df-cm-close { padding: 0 .5rem; font-size: .875rem; }
.cm-widget .av1-cm-form .cm-error { margin: 0; }
.cm-widget.av1-cm .sc-h-sort > .btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.5rem; margin: 0 -.75rem 0 0; padding: 0 .75rem; border: 0; background: none; color: rgb(var(--text)); font-size: .875rem; font-weight: 500; line-height: 1.25rem; }
.cm-widget.av1-cm .sc-h-sort > .btn:hover { color: rgb(var(--lead)); }
.cm-widget.av1-cm .sc-h-sort.show .ic-chevron-down { transform: scaleY(-1); }
.cm-widget.av1-cm .cm-foot #cm-view-more { gap: .5rem; height: auto; padding: .5rem 0; border: 0; color: rgb(var(--lead)); font-size: .875rem; font-weight: 700; }
.cm-widget.av1-cm .cm-foot #cm-view-more:hover { background: none; color: rgb(var(--main)); }

/* ── match-ref: the reference's comment rows (theme partials/comments/item
      + replies-toggle): 16px name / message, "Me gusta" · "Responder" pills,
      the like count after them, "…" at the top-right ── */
.cm-widget .av1-cm-item + .av1-cm-item { margin-top: 0; }
.cm-widget .av1-cm-item .ihead { column-gap: .375rem; min-height: 0; font-size: 1rem; line-height: 1.5rem; }
.cm-widget .av1-cm-item .ihead .user-name { color: rgb(var(--lead)); font-weight: 700; }
.cm-widget .av1-cm-item .ihead .user-name:hover { text-decoration: none; }
.cm-widget .av1-cm-item .ihead .time { color: rgb(var(--text)); font-size: .75rem; line-height: 1rem; }
.cm-widget .av1-cm-item .ibody { display: block; margin: .25rem 0 0; color: rgb(var(--lead) / .9); font-size: 1rem; line-height: 1.5rem; }
.cm-widget .av1-cm-item .ibottom { gap: 0; row-gap: .5rem; margin: .5rem 0 .5rem -.75rem; }
.cm-widget .av1-cm-item .ib-like, .cm-widget .av1-cm-item .ib-like > .cm-btn-vote { display: contents; }
.cm-widget .av1-cm-item .ib-like .av1-pill { order: 1; }
.cm-widget .av1-cm-item .ib-reply { order: 2; }
.cm-widget .av1-cm-item .ib-like .value { order: 3; display: flex; align-items: center; padding: 0 .25rem 0 1rem; color: rgb(var(--text)); font-size: .75rem; font-weight: 500; }
.cm-widget .av1-cm-item .av1-pill { display: inline-flex; align-items: center; gap: .375rem; min-height: 2rem; min-width: 0; margin: 0; padding: 0 .75rem; border: 0; border-radius: 999px; background: none; color: rgb(var(--subs)); font-size: .75rem; font-weight: 700; line-height: 1rem; }
.cm-widget .av1-cm-item .av1-pill:hover { background: rgb(var(--soft)); color: rgb(var(--lead)); }
html:not(.dark) .cm-widget .av1-cm-item .av1-pill:hover { background: rgb(var(--line)); }
.cm-widget .av1-cm-item .cm-btn-vote.active .av1-pill { color: rgb(var(--main)); }
.cm-widget .av1-cm-item .ib-more { position: absolute; top: 0; right: 0; order: 9; }
.cm-widget .av1-cm-item .ib-more > .btn { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; min-height: 2rem; min-width: 2rem; padding: 0; border-radius: 999px; color: rgb(var(--subs)); font-size: 1.125rem; }
.cm-widget .av1-cm-item .ib-more > .btn:hover, .cm-widget .av1-cm-item .ib-more.show > .btn { background: rgb(var(--soft)); color: rgb(var(--lead)); }
.cm-widget .av1-cm-item .ib-more .dropdown-menu { left: auto; right: 0; }
.cm-widget .av1-cm-item .reply-block { margin: 0; padding: .5rem 0 .5rem 3rem; }
.cm-widget .av1-cm-item .replies { margin: 0 0 0 -3rem; padding-left: 3rem; }
.cm-widget .av1-cm-item .replies::before { top: -2.5rem; bottom: 1.25rem; left: 1rem; background: rgb(var(--edge)); }
.cm-widget .av1-cm-item .replies-wrap .cw_l-line { padding-left: 3rem; }
.cm-widget .av1-cm-item .replies-wrap .user-avatar { width: 2rem; height: auto; }
.cm-widget .rep-more .cm-btn-show-rep { gap: .5rem; padding: .25rem 0; color: rgb(var(--lead)); font-size: .875rem; font-weight: 700; }
.cm-widget .rep-more .cm-btn-show-rep .ic-plus-circle { color: rgb(var(--subs)); }
.cm-widget .rep-more .cm-btn-show-rep span.av1-rep-show::before, .cm-widget .rep-more .cm-btn-show-rep span.av1-rep-hide::before { content: none; }
.cm-widget .rep-more .cm-btn-show-rep .av1-rep-hide, .cm-widget .rep-more .cm-btn-show-rep.active .av1-rep-show { display: none; }
.cm-widget .rep-more .cm-btn-show-rep.active .av1-rep-hide { display: inline; }
/* match-ref: when the composer bar wraps (phones) "Responder" starts the
   second line, as in the reference (justify-between keeps it right otherwise). */
.cm-widget .av1-cm-form .ci-b-right { margin-left: 0; }
