/*
 * animeflv-comments.css — the CMS comment widget (partials/comments/*,
 * comments.js, comments-guest.js, community.min.js) in animeflv's white
 * `.WdgtCn` "Comentarios" box.
 * Owned by the WATCH area; shared by the episode page, the anime page and
 * community posts. Loaded on every page by layouts/animeflv.
 *
 * animeflv's own comment vocabulary is dormant in css.css (.Comment: 65px
 * round avatar at the left from 767px with 80px of padding, 12px text, the
 * name 700 #01bcf3, the date 11px #bbb; .Button.Reply: 10px uppercase pills;
 * .TxtABtn: the bordered textarea box with the pill submit at the bottom
 * right; .Msj.Wrn/.Err: rounded notes). The CMS thread keeps its comments.js
 * class hooks (HOOKS §3.11) and takes those values here.
 *
 * Class hooks styled (stable — anime and community include the partials):
 *   #comments .af-cm-load · #cm-reactions .cm-rx* · .cm-widget .sc-header
 *   (.sc-h-title .cm-count, .sc-h-sort) · .cm-rules-note · .comment-input
 *   (.user-avatar, .user-name, .ci-form) · .comment-form (.af-ci-field,
 *   textarea.comment-subject, .ci-emo .cb-icon, .ci-buttons .ci-b-left/right,
 *   .btn-spoil, .cm-fmt-btn, .cm-error) · .cw_l-line (.info .ihead .user-name
 *   .time .eps, .ibody .cm-body .show-spoil, .ibottom .ib-li .btn
 *   .cm-btn-vote .value, .ib-more .cm-menu) · .replies .rep-more
 *   .cm-btn-show-rep · #cm-view-more · .no-result · emoji-picker ·
 *   #cm-gif-panel · body tokens (.cm-ts, .cm-auto-spoil, .cm-gif-wrap).
 */

/* ------------------------------------------------------ box extras */

#comments .af-cm-load { padding: 5px 0; text-align: center; }
#comments .af-cm-load .Button { cursor: pointer; font-size: 12px; }

/* The anime's reaction bar (CMS): pills in animeflv's light-blue tint. */
#cm-reactions { margin-bottom: 15px; }
#cm-reactions:empty { display: none; }
#cm-reactions .cm-reactions-inner { display: flex; flex-wrap: wrap; gap: 6px; }
#cm-reactions .cm-rx {
    display: inline-flex; align-items: center; gap: 6px; height: 32px; margin: 0; padding: 0 12px 0 4px;
    border: 0; border-radius: 16px; background-color: rgba(59, 66, 72, .05); color: #3b4248;
    font-size: 12px; font-weight: 700; line-height: 32px; box-shadow: none; cursor: pointer; transition: background-color .2s, color .2s;
}
#cm-reactions .cm-rx:hover { background-color: rgba(1, 188, 243, .1); color: #01bcf3; }
#cm-reactions .cm-rx:focus { outline: none; }
#cm-reactions .cm-rx.is-active { background-color: #01bcf3; color: #fff; }
#cm-reactions .cm-rx.is-pending { opacity: .6; }
#cm-reactions .cm-rx-gif { width: 24px; height: 24px; max-width: none; border-radius: 50%; object-fit: cover; }
#cm-reactions .cm-rx-emoji { width: 24px; font-size: 16px; line-height: 24px; text-align: center; }
#cm-reactions .cm-rx-count { color: #9da1a4; font-weight: 400; }
#cm-reactions .cm-rx.is-active .cm-rx-count { color: rgba(255, 255, 255, .8); }
#cm-reactions .cm-rx-count:empty { display: none; }
#cm-reactions .cm-rx-pop { animation: af-rx-pop .35s ease; }
@keyframes af-rx-pop { 50% { transform: scale(1.12); } }
@media (max-width: 575px) {
    #cm-reactions .cm-reactions-inner { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
    #cm-reactions .cm-reactions-inner::-webkit-scrollbar { display: none; }
    #cm-reactions .cm-rx { flex-shrink: 0; }
    #cm-reactions .cm-rx-label { display: none; }
    #cm-reactions .cm-rx { padding-right: 10px; }
}

/* ------------------------------------------------------- the widget */

.cm-widget { color: #666; font-size: 12px; line-height: 20px; }
.cm-widget a { color: inherit; }
.cm-widget p { margin-bottom: 0; }
.cm-widget button, .cm-widget .btn, #cm-gif-panel button {
    margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
    color: inherit; font-weight: 700; text-transform: none;
}
.cm-widget button:hover, #cm-gif-panel button:hover { background: none; }
.cm-widget button:focus, .cm-widget .btn:focus { outline: none; box-shadow: none; }

/* Header: "N comentarios" · Ordenar por */
.cm-widget .sc-header { display: flex; align-items: center; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #f3f3f3; line-height: 30px; }
.cm-widget .sc-header .sc-h-title { color: #9da1a4; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.cm-widget .sc-header .sc-h-title .cm-count { color: #3b4248; }
.cm-widget .sc-header .sc-h-title i { margin-right: 6px; color: #01bcf3; }
.cm-widget .sc-header .sc-h-sort { position: relative; margin-left: auto; }
.cm-widget .sc-header .sc-h-sort > .btn { display: inline-block; padding: 0 12px; border-radius: 15px; background-color: rgba(1, 188, 242, .1); color: #01bcf2; font-size: 12px; font-weight: 700; line-height: 30px; cursor: pointer; }
.cm-widget .sc-header .sc-h-sort > .btn:hover, .cm-widget .sc-header .sc-h-sort.show > .btn { background-color: #01bcf2; color: #fff; }

/* Drop-downs (sort, "Más" on a comment): .mm-dropdown's white list. */
.cm-widget .dropdown-menu {
    position: absolute; top: 100%; z-index: 60; display: none; min-width: 170px; margin: 5px 0 0; padding: 0;
    border: 0; border-radius: 3px; background-color: #fff; box-shadow: 0 0 30px rgba(0, 0, 0, .15);
    font-size: 12px; text-align: left;
}
.cm-widget .show > .dropdown-menu { display: block; }
.cm-widget .sc-h-sort .dropdown-menu { right: 0; left: auto; }
.cm-widget .dropdown-menu .dropdown-item {
    display: block; padding: 5px 15px; border-bottom: 1px solid #eee; color: #666;
    font-weight: 700; line-height: 26px; text-transform: uppercase; white-space: nowrap; cursor: pointer;
}
.cm-widget .dropdown-menu .dropdown-item:last-child { border-bottom: 0; }
.cm-widget .dropdown-menu .dropdown-item:hover { background-color: rgba(1, 188, 242, .1); color: #01bcf2; }
.cm-widget .dropdown-menu .dropdown-item.active { background-color: #01bcf2; color: #fff; }
.cm-widget .dropdown-menu .dropdown-item .ic-active { display: none; }

/* Rules note above the composer: animeflv's .Msj.Wrn. */
.cm-widget .cm-rules-note { margin: 0 0 15px; padding: 10px 20px; border-radius: 20px; background-color: rgba(255, 193, 7, .1); color: #666; font-size: 12px; line-height: 18px; }
.cm-widget .cm-rules-note a { color: #ffc107; font-weight: 700; }

/* Avatars: .Comment figure — 65px circles at the left from 767px. */
.cm-widget .user-avatar {
    position: absolute; left: 0; top: 0; display: none; width: 65px; height: 65px; overflow: hidden;
    border-radius: 50%; background-color: #eceff1;
}
.cm-widget .user-avatar::before {
    content: attr(data-initial); position: absolute; left: 0; top: 0; width: 100%; height: 100%;
    color: #9da1a4; font-size: 24px; font-weight: 700; line-height: 65px; text-align: center;
}
.cm-widget .user-avatar .user-avatar-img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }

/* Composer row: "Comentar como …" + animeflv's .TxtABtn box. */
.cm-widget .comment-input { position: relative; min-height: 65px; margin-bottom: 30px; }
.cm-widget .comment-input > .user-name { margin-bottom: 5px; }
.cm-widget .ci-form > .user-name { margin-bottom: 5px; color: #9da1a4; font-size: 12px; }
.cm-widget .ci-form > .user-name .link-highlight { color: #01bcf3; 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; }
.cm-widget .comment-form .af-ci-field,
.cm-widget .comment-form .cm-composer-grow {
    position: relative; border: 1px solid #e8e7f0; border-radius: 5px; background-color: #fff; transition: border-color .2s;
}
.cm-widget .comment-form .af-ci-field:focus-within,
.cm-widget .comment-form .cm-composer-grow:focus-within { border-color: #01bcf3; }
.cm-widget .comment-form textarea.form-control {
    display: block; width: 100%; min-height: 70px; height: 70px; margin: 0; padding: 10px 80px 10px 15px;
    border: 0; border-radius: 5px; background-color: transparent; box-shadow: none;
    color: #3b4248; font-size: 13px; line-height: 20px; resize: none; overflow: hidden; field-sizing: content;
}
.cm-widget .comment-form textarea.form-control::placeholder { color: #b0bec5; }
.cm-widget .comment-form textarea.form-control:focus { outline: none; box-shadow: none; }
.cm-widget .comment-input.is-reply textarea.form-control { min-height: 50px; height: 50px; }
.cm-widget .comment-form .ci-emo { position: absolute; top: 4px; right: 4px; z-index: 2; display: flex; }
.cm-widget .comment-form .ci-emo .cb-icon { width: 32px; height: 32px; color: #b0bec5; font-size: 15px; line-height: 32px; text-align: center; cursor: pointer; }
.cm-widget .comment-form .ci-emo .cb-icon:hover { color: #01bcf3; }
.cm-widget .comment-form .ci-emo .cb-icon:focus { outline: none; }
.cm-widget .comment-form .ci-emo .af-gif-label { display: inline-block; padding: 0 3px; border: 1.5px solid currentColor; border-radius: 3px; font-size: 9px; font-weight: 700; line-height: 13px; vertical-align: middle; }
.cm-widget .comment-form .ci-buttons { display: flex; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.cm-widget .comment-form .ci-b-left { display: flex; flex-wrap: wrap; align-items: center; }
.cm-widget .comment-form .ci-b-right { display: flex; align-items: center; margin-left: auto; }
.cm-widget .comment-form .cb-li { display: flex; align-items: center; }
.cm-widget .comment-form .btn-spoil { display: inline-block; padding: 0 10px; border-radius: 10px; color: #9da1a4; font-size: 10px; font-weight: 700; line-height: 22px; text-transform: uppercase; cursor: pointer; }
.cm-widget .comment-form .btn-spoil i { margin-right: 4px; opacity: .4; }
.cm-widget .comment-form .btn-spoil:hover { color: #3b4248; }
.cm-widget .comment-form .btn-spoil.active { background-color: rgba(251, 52, 71, .1); color: #fb3447; }
.cm-widget .comment-form .btn-spoil.active i { opacity: 1; }
.cm-widget .cm-fmt-bar { display: flex; margin-left: 5px; }
.cm-widget .cm-fmt-btn { width: 26px; height: 26px; padding: 0; color: #b0bec5; font-size: 12px; line-height: 26px; text-align: center; cursor: pointer; }
.cm-widget .cm-fmt-btn:hover { color: #01bcf3; }
.cm-widget .cm-fmt-btn strong, .cm-widget .cm-fmt-i, .cm-widget .cm-fmt-s { font-size: 12px; }
.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: inline-block; }
/* Submit: .TxtABtn button (12px pill); Cancel: a plain grey link. */
.cm-widget .comment-form .ci-b-right button[type=submit],
.cm-widget .comment-form .ci-b-right .btn-primary {
    margin: 0 0 0 10px; padding: 5px 15px; border-radius: 15px; background-color: #3b4248; color: #fff;
    font-size: 12px; font-weight: 700; line-height: 20px; cursor: pointer;
}
.cm-widget .comment-form .ci-b-right button[type=submit]:hover,
.cm-widget .comment-form .ci-b-right .btn-primary:hover { background-color: #01bcf3; }
.cm-widget .comment-form .ci-b-right .btn-secondary,
.cm-widget .comment-form .ci-b-right .cm-edit-cancel { padding: 0 5px; color: #9da1a4; font-size: 12px; font-weight: 700; cursor: pointer; }
.cm-widget .comment-form .ci-b-right .btn-secondary:hover,
.cm-widget .comment-form .ci-b-right .cm-edit-cancel:hover { color: #fb3447; }
.cm-widget .cm-error,
.cm-widget .alert-danger {
    flex: 0 0 100%; margin: 0 0 10px; padding: 8px 20px; border: 0; border-radius: 20px;
    background-color: rgba(251, 52, 71, .1); color: #fb3447; font-size: 12px; line-height: 18px;
}
.cm-widget .loading-absolute { position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: center; background-color: rgba(255, 255, 255, .7); border-radius: 5px; }
.cm-widget .loading-absolute .loading,
#cm-gif-panel .loading { width: 26px; height: 26px; border: 3px solid rgba(1, 188, 243, .2); border-top-color: #01bcf3; border-radius: 50%; animation: af-cm-spin .8s linear infinite; }
.cm-widget .loading-absolute .loading > div { display: none; }
@keyframes af-cm-spin { to { transform: rotate(360deg); } }
/* Guests: comments-guest.js opens the sign-in on any touch of the form. */
.cm-widget .guest-comment-form textarea.form-control { cursor: pointer; }

/* ------------------------------------------------------ one comment */

/* .Comment: 12px, the 65px avatar at the left (≥767), 80px of padding. */
.cm-widget .cw_l-line { position: relative; min-height: 65px; margin-bottom: 25px; }
.cm-widget .cw_l-line:last-child { margin-bottom: 0; }
.cm-widget .cw_l-line.comment-focus > .info { background-color: rgba(1, 188, 243, .06); box-shadow: 0 0 0 8px rgba(1, 188, 243, .06); border-radius: 3px; }
.cm-widget .cw_l-line .ipinned { margin-bottom: 2px; color: #ff7e00; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.cm-widget .cw_l-line .ihead { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
.cm-widget .cw_l-line .ihead .user-name { color: #01bcf3; font-size: 12px; font-weight: 700; }
.cm-widget .cw_l-line .ihead .user-name:hover { text-decoration: underline; }
.cm-widget .cw_l-line .ihead .time { color: #bbb; font-size: 11px; }
.cm-widget .cw_l-line .ihead .eps { padding: 0 8px; border-radius: 10px; background-color: rgba(1, 188, 242, .1); color: #01bcf2; font-size: 10px; font-weight: 700; line-height: 18px; text-transform: uppercase; }
.cm-widget .cm-ban-badge,
.cm-widget .cm-staff-badge { display: inline-block; margin-left: 5px; padding: 0 6px; border-radius: 8px; background-color: #3b4248; color: #fff; font-size: 9px; font-weight: 700; line-height: 16px; text-transform: uppercase; vertical-align: 1px; }
.cm-widget .cm-ban-badge { background-color: #fb3447; }
.cm-widget .cm-edited-label { color: #bbb; }

/* Body */
.cm-widget .ibody { position: relative; margin: 5px 0 6px; color: #666; font-size: 13px; line-height: 20px; word-wrap: break-word; overflow-wrap: anywhere; }
.cm-widget .cm-body p { margin-bottom: 5px; }
.cm-widget .cm-body p:last-child { margin-bottom: 0; }
.cm-widget .cm-body a { color: #01bcf3; }
.cm-widget .cm-body blockquote { margin: 0 0 5px; padding: 2px 0 2px 10px; border-left: 3px solid #e8e7f0; color: #9da1a4; }
.cm-widget .cm-body .tag-name, .cm-widget .tag-name { margin-right: 4px; color: #01bcf3; font-weight: 700; }
.cm-widget .cm-body img { max-width: 100%; }
.cm-widget .cm-gif-wrap { display: block; margin-top: 5px; }
.cm-widget .cm-gif-wrap img, .cm-widget .cm-embed-gif { max-width: 220px; max-height: 220px; border-radius: 5px; }
.cm-widget .cm-comment-notice { color: #9da1a4; font-style: italic; font-size: 12px; }
.cm-widget .cm-comment-notice i { margin-right: 4px; }
.cm-widget .cm-thread-locked { margin-bottom: 8px; padding: 6px 15px; border-radius: 15px; background-color: rgba(255, 193, 7, .1); color: #666; font-size: 12px; }
/* Spoiler curtain */
.cm-widget .ibody.is-spoil > .cm-body { filter: blur(5px); user-select: none; pointer-events: none; }
.cm-widget .show-spoil:empty { display: none; }
.cm-widget .ibody.is-spoil > .show-spoil { position: absolute; left: 0; top: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: flex-start; margin: 0 !important; }
.cm-widget .show-spoil .btn { padding: 0 12px; border-radius: 15px; background-color: #3b4248; color: #fff; font-size: 10px; font-weight: 700; line-height: 24px; text-transform: uppercase; cursor: pointer; }
.cm-widget .show-spoil .btn:hover { background-color: #01bcf3; }
.cm-widget .cm-auto-spoil { padding: 0 4px; border-radius: 3px; background-color: #3b4248; color: #fff; }
.cm-widget .cm-auto-spoil.is-open { background-color: rgba(59, 66, 72, .08); color: inherit; }
.cm-widget .cm-auto-spoil-toggle { margin-left: 4px; padding: 0 6px; border-radius: 8px; background-color: #01bcf3; color: #fff; font-size: 10px; line-height: 16px; cursor: pointer; }
.cm-widget .cm-ts { display: inline; padding: 0 5px; border-radius: 8px; background-color: rgba(1, 188, 243, .1); color: #01bcf3; font-size: 12px; font-weight: 700; cursor: pointer; }
.cm-widget .cm-ts.cm-ts--bad { background-color: rgba(59, 66, 72, .06); color: #9da1a4; cursor: default; }

/* Actions: .Button.Reply pills (10px uppercase), stronger on hover. */
.cm-widget .ibottom { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.cm-widget .ibottom .ib-li { position: relative; }
.cm-widget .ibottom .ib-li > .btn {
    display: inline-block; padding: 0 10px; border-radius: 10px; background-color: rgba(59, 66, 72, .05); color: #9da1a4;
    font-size: 10px; font-weight: 700; line-height: 20px; text-transform: uppercase; cursor: pointer; transition: background-color .2s, color .2s;
}
.cm-widget .ibottom .ib-li > .btn:hover,
.cm-widget .ibottom .ib-more.show > .btn { background-color: #3b4248; color: #fff; }
.cm-widget .ibottom .ib-li > .btn i { margin-right: 4px; }
.cm-widget .ibottom .cm-btn-vote.active { background-color: rgba(1, 188, 243, .12); color: #01bcf3; }
.cm-widget .ibottom .ib-dislike .cm-btn-vote.active { background-color: rgba(251, 52, 71, .1); color: #fb3447; }
.cm-widget .ibottom .value:empty { display: none; }
.cm-widget .ibottom .ib-more .dropdown-menu { left: 0; }
.cm-widget .ibottom .clearfix { display: none; }

/* Reply form and replies, indented under the comment's text. */
.cm-widget .reply-block { margin-top: 12px; }
.cm-widget .reply-block .user-avatar { width: 40px; height: 40px; }
.cm-widget .reply-block .user-avatar::before { font-size: 16px; line-height: 40px; }
.cm-widget .replies { margin-top: 10px; }
.cm-widget .replies-wrap { padding-top: 15px; }
.cm-widget .replies-wrap .cw_l-line { min-height: 40px; margin-bottom: 18px; }
.cm-widget .replies-wrap .cw_l-line .user-avatar { width: 40px; height: 40px; }
.cm-widget .replies-wrap .cw_l-line .user-avatar::before { font-size: 16px; line-height: 40px; }
.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,
.cm-widget .rep-more #cm-view-more { padding: 0; color: #01bcf3; font-size: 12px; font-weight: 700; line-height: 20px; cursor: pointer; }
.cm-widget .rep-more .cm-btn-show-rep:hover { text-decoration: underline; }
.cm-widget .rep-more .cm-btn-show-rep i { margin-right: 6px; 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: .Button.StylC, centred. */
.cm-widget .cm-foot { margin-top: 20px; text-align: center; }
.cm-widget .cm-foot #cm-view-more { display: inline-block; height: 30px; padding: 0 15px; border-radius: 30px; background-color: rgba(1, 188, 242, .1); color: #01bcf2; font-weight: 400; line-height: 30px; }
.cm-widget .cm-foot #cm-view-more:hover { background-color: #01bcf2; color: #fff; }
.cm-widget .cm-foot #cm-view-more i { margin-right: 6px; }
.cm-widget .no-result { padding: 20px 0 5px; color: #9da1a4; text-align: center; }

/* Inline edit composer (comments.js template). */
.cm-widget .cm-edit-composer-wrap { position: relative; margin: 5px 0; }
.cm-widget .cm-edit-composer-wrap .ci-form { width: 100%; }
.cm-widget .cm-edit-composer-wrap .cm-composer-grow { display: flex; flex-direction: column; }
.cm-widget .cm-edit-composer-wrap .cm-composer-grow .cm-fmt-bar { order: 2; margin: 0 0 4px 8px; }

/* From 767px: animeflv's .Comment layout (avatar column). */
@media (min-width: 767px) {
    .cm-widget .user-avatar { display: block; }
    .cm-widget .comment-input,
    .cm-widget .cw_l-line { padding-left: 80px; }
    .cm-widget .comment-input.is-reply,
    .cm-widget .replies-wrap .cw_l-line,
    .cm-widget .reply-block.comment-input { min-height: 40px; padding-left: 55px; }
}
@media (max-width: 766px) {
    .cm-widget .replies-wrap { margin-left: 2px; padding-left: 12px; border-left: 2px solid #eceff1; }
    .cm-widget .comment-form textarea.form-control { padding-right: 75px; }
}

/* ---------------------------------- panels comments.js puts on <body> */

/* emoji-picker (custom element) and the GIF panel: hidden until opened;
   comments.js writes only left / top. */
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: #fff; --border-color: #eceff1; --indicator-color: #01bcf3; --input-border-color: #e8e7f0;
    --input-font-color: #3b4248; --outline-color: #01bcf3; --button-hover-background: rgba(1, 188, 243, .1);
    box-shadow: 0 0 30px rgba(0, 0, 0, .2); border-radius: 5px;
}
#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: 10px; border-radius: 5px; background-color: #fff; box-shadow: 0 0 30px rgba(0, 0, 0, .2); font-size: 12px;
}
#cm-gif-panel .cm-gif-head { display: flex; gap: 6px; margin-bottom: 8px; }
#cm-gif-panel .cm-gif-q { flex: 1; height: 32px; margin: 0; padding: 0 12px; border: 1px solid #e8e7f0; border-radius: 16px; color: #3b4248; font-size: 12px; }
#cm-gif-panel .cm-gif-q:focus { border-color: #01bcf3; outline: none; }
#cm-gif-panel .cm-gif-close { width: 32px; height: 32px; padding: 0; border-radius: 16px; background-color: #fb3447; color: #fff; font-size: 16px; line-height: 32px; cursor: pointer; }
#cm-gif-panel .cm-gif-close:hover { background-color: #fb3447; opacity: .85; }
#cm-gif-panel .cm-gif-grid { display: grid; flex: 1; grid-template-columns: 1fr 1fr; gap: 6px; overflow-y: auto; }
#cm-gif-panel .cm-gif-tile { display: block; padding: 0; border-radius: 3px; overflow: hidden; background-color: #eceff1; cursor: pointer; }
#cm-gif-panel .cm-gif-tile img { display: block; width: 100%; height: 100px; object-fit: cover; }
#cm-gif-panel .cm-gif-msg { padding: 10px; color: #9da1a4; text-align: center; }
