/* ============================================
   Flavor Comments v1.1 - Komikcast-style
   ============================================ */

:root {
    --fc-bg: #0d1117;
    --fc-bg-card: #161b22;
    --fc-bg-input: #0d1117;
    --fc-bg-hover: #1c2333;
    --fc-border: #30363d;
    --fc-text: #e6edf3;
    --fc-text-muted: #7d8590;
    --fc-text-secondary: #9198a1;
    --fc-primary: #7c5cfc;
    --fc-primary-hover: #6a4de6;
    --fc-primary-10: rgba(124, 92, 252, 0.1);
    --fc-danger: #f85149;
    --fc-success: #3fb950;
    --fc-radius: 12px;
    --fc-radius-sm: 8px;
    --fc-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
}

.fc-reactions-block,
.fc-wrap {
    font-family: var(--fc-font);
    font-size: 14px;
    color: var(--fc-text);
    line-height: 1.5;
    max-width: 100%;
}

.fc-reactions-block *,
.fc-wrap * {
    box-sizing: border-box;
}

/* ============================================
   REACTION BLOCK (Your Reaction?)
   ============================================ */

.fc-reactions-block {
    background: var(--fc-bg-card);
    border-radius: var(--fc-radius);
    padding: 24px;
    margin-bottom: 24px;
}

.fc-reactions-title {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--fc-text);
    margin: 0 0 4px;
}

.fc-reactions-subtitle {
    text-align: center;
    font-size: 13px;
    color: var(--fc-text-muted);
    margin: 0 0 24px;
}

.fc-reactions-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.fc-post-reaction-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.15s ease;
    outline: none;
    box-shadow: none;
}

.fc-post-reaction-btn:hover {
    transform: scale(1.1);
}

.fc-post-reaction-btn:focus,
.fc-post-reaction-btn:focus-visible,
.fc-post-reaction-btn:active {
    outline: none !important;
    box-shadow: none !important;
}

.fc-post-reaction-btn.active .fc-post-reaction-icon {
    box-shadow: none !important;
    outline: none !important;
    border: none !important;
}

.fc-post-reaction-btn.active .fc-post-reaction-icon img,
.fc-post-reaction-btn:focus .fc-post-reaction-icon img,
.fc-post-reaction-btn:focus-visible .fc-post-reaction-icon img {
    box-shadow: none !important;
    outline: none !important;
    border: none !important;
    filter: none !important;
}

.fc-post-reaction-btn.active .fc-post-reaction-count {
    color: var(--fc-primary);
    font-weight: 700;
}

.fc-post-reaction-btn.active .fc-post-reaction-label {
    color: var(--fc-primary);
    font-weight: 600;
}

.fc-post-reaction-icon {
    width: 56px;
    height: 56px;
    border-radius: 0;
    overflow: visible;
    transition: transform 0.2s;
    box-shadow: none;
    outline: none;
    border: none;
}

.fc-post-reaction-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fc-post-reaction-info {
    text-align: center;
}

.fc-post-reaction-count {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--fc-text);
}

.fc-post-reaction-label {
    display: block;
    font-size: 12px;
    color: var(--fc-text-muted);
}

@media (min-width: 768px) {
    .fc-post-reaction-icon {
        width: 80px;
        height: 80px;
    }
}

/* ============================================
   COMMENT FORM CARD
   ============================================ */

.fc-form-card {
    background: var(--fc-bg-card);
    border-radius: var(--fc-radius);
    padding: 16px;
    border: 1px solid var(--fc-border);
    margin-bottom: 24px;
}

.fc-login-card {
    background: var(--fc-bg-card);
    border-radius: var(--fc-radius);
    padding: 16px 20px;
    border: 1px solid var(--fc-border);
    margin-bottom: 24px;
    text-align: center;
    color: var(--fc-text-muted);
}

.fc-login-card a {
    color: var(--fc-primary);
    text-decoration: none;
    font-weight: 600;
}

.fc-login-card a:hover {
    text-decoration: underline;
}

/* Editor (contenteditable) */
.fc-editor,
.fc-reply-editor {
    width: 100%;
    background: var(--fc-bg-input);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius-sm);
    padding: 12px;
    color: var(--fc-text);
    font-size: 14px;
    font-family: var(--fc-font);
    line-height: 1.6;
    min-height: 80px;
    max-height: 300px;
    overflow-y: auto;
    outline: none;
    white-space: pre-wrap;
    word-wrap: break-word;
    transition: border-color 0.2s;
}

.fc-editor:focus,
.fc-reply-editor:focus {
    border-color: var(--fc-primary);
    box-shadow: 0 0 0 3px var(--fc-primary-10);
}

.fc-editor:empty::before,
.fc-reply-editor:empty::before {
    content: attr(data-placeholder);
    color: var(--fc-text-muted);
    pointer-events: none;
}

.fc-reply-editor {
    min-height: 60px;
}

/* Spoiler tag inside editor */
.fc-editor .fc-spoiler-inline,
.fc-reply-editor .fc-spoiler-inline,
.fc-comment-content .fc-spoiler-inline {
    background: var(--fc-text-muted);
    color: var(--fc-text-muted);
    padding: 1px 4px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
}

.fc-comment-content .fc-spoiler-inline.revealed {
    background: var(--fc-bg-hover);
    color: var(--fc-text);
}

/* Image preview */
.fc-img-preview,
.fc-reply-img-preview {
    position: relative;
    display: inline-block;
    margin-top: 8px;
}

.fc-img-preview img,
.fc-reply-img-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: var(--fc-radius-sm);
    object-fit: cover;
    border: 1px solid var(--fc-border);
}

.fc-img-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--fc-danger);
    color: #fff;
    border: 2px solid var(--fc-bg-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Toolbar */
.fc-editor-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--fc-border);
}

.fc-toolbar-actions {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
}

.fc-toolbar-right {
    display: none;
    align-items: center;
    gap: 12px;
}

@media (min-width: 768px) {
    .fc-toolbar-right {
        display: flex;
    }
}

.fc-tb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--fc-text-muted);
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}

.fc-tb-btn:hover {
    color: var(--fc-text);
    background: var(--fc-primary-10);
}

.fc-tb-btn.active {
    color: var(--fc-primary);
    background: var(--fc-primary-10);
}

.fc-tb-divider {
    width: 1px;
    height: 24px;
    background: var(--fc-border);
    margin: 0 4px;
    align-self: center;
}

@media (max-width: 640px) {
    .fc-tb-divider {
        display: none;
    }
}

.fc-char-count {
    font-size: 12px;
    color: var(--fc-text-muted);
    white-space: nowrap;
}

.fc-send-btn {
    padding: 6px 16px;
    background: var(--fc-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.fc-send-btn:hover {
    background: var(--fc-primary-hover);
}

.fc-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile send row */
.fc-mobile-send {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
}

@media (min-width: 768px) {
    .fc-mobile-send {
        display: none;
    }
}

.fc-cancel-reply-btn {
    padding: 6px 14px;
    background: transparent;
    color: var(--fc-text-muted);
    border: 1px solid var(--fc-border);
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}

.fc-cancel-reply-btn:hover {
    background: var(--fc-bg-hover);
    color: var(--fc-text);
}

/* ============================================
   COMMENTS HEADER
   ============================================ */

.fc-comments-header {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 16px;
}

.fc-comments-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--fc-text);
    margin: 0;
}

.fc-comment-count {
    font-weight: 400;
    color: var(--fc-text-muted);
    font-size: 14px;
}

.fc-sort-bar {
    display: flex;
    gap: 4px;
}

.fc-sort-btn {
    padding: 4px 12px;
    background: transparent;
    border: 1px solid var(--fc-border);
    border-radius: 20px;
    color: var(--fc-text-muted);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
}

.fc-sort-btn:hover {
    background: var(--fc-bg-hover);
}

.fc-sort-btn.active {
    background: var(--fc-primary);
    color: #fff;
    border-color: var(--fc-primary);
}

/* ============================================
   COMMENT ITEM
   ============================================ */

.fc-comments-list {
    display: flex;
    flex-direction: column;
}

.fc-comment {
    padding: 16px 0;
    border-bottom: 1px solid var(--fc-border);
    animation: fcFadeIn 0.25s ease;
}

.fc-comment:last-child {
    border-bottom: none;
}

@keyframes fcFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.fc-comment-inner {
    display: flex;
    gap: 12px;
}

.fc-comment-avatar {
    flex-shrink: 0;
}

.fc-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.fc-comment-body {
    flex: 1;
    min-width: 0;
}

.fc-comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.fc-comment-author {
    font-weight: 600;
    font-size: 13px;
    color: var(--fc-text);
}

/* Pinned comment */
.fc-comment.fc-pinned {
    background: rgba(245, 158, 11, 0.05);
    border-left: 3px solid #f59e0b;
    padding-left: 12px;
    margin-left: -3px;
}

.fc-pinned-badge {
    font-size: 11px;
    color: #f59e0b;
    font-weight: 600;
}

.fc-comment-badge {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 10px;
    background: var(--fc-primary);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
}

.fc-comment-time {
    font-size: 12px;
    color: var(--fc-text-muted);
}

.fc-comment-edited {
    font-size: 11px;
    color: var(--fc-text-muted);
    font-style: italic;
}

/* Content */
.fc-comment-content {
    margin-bottom: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: var(--fc-text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.fc-comment-content p {
    margin: 0 0 4px;
}

.fc-comment-content img.emoji,
.fc-comment-content img.wp-smiley,
.fc-comment-content img[src*="twemoji"],
.fc-comment-content img[src*="smilies"] {
    display: inline !important;
    width: 1.2em !important;
    height: 1.2em !important;
    max-width: 1.2em !important;
    max-height: 1.2em !important;
    vertical-align: -0.15em !important;
    margin: 0 1px !important;
    padding: 0 !important;
    border: none !important;
}

.fc-comment-content b,
.fc-comment-content strong {
    font-weight: 700;
    color: var(--fc-text);
}

.fc-comment-content i,
.fc-comment-content em {
    font-style: italic;
}

.fc-comment-content s,
.fc-comment-content strike {
    text-decoration: line-through;
    opacity: 0.7;
}

/* Spoiler box */
.fc-spoiler-box {
    background: var(--fc-bg-hover);
    border: 1px dashed var(--fc-border);
    border-radius: var(--fc-radius-sm);
    padding: 14px;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--fc-text-muted);
    font-size: 13px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.fc-spoiler-box:hover {
    border-color: var(--fc-primary);
    background: var(--fc-primary-10);
}

/* Spoiler image */
.fc-spoiler-image-box {
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin-bottom: 8px;
    max-width: 300px;
}

.fc-blurred-img {
    max-width: 300px;
    max-height: 250px;
    border-radius: var(--fc-radius-sm);
    filter: blur(20px);
    transition: filter 0.3s;
}

.fc-spoiler-img-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.75);
    padding: 8px 16px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--fc-text-muted);
    font-size: 12px;
    white-space: nowrap;
    transition: opacity 0.3s;
}

.fc-spoiler-image-box.revealed .fc-blurred-img {
    filter: none;
}

.fc-spoiler-image-box.revealed .fc-spoiler-img-label {
    opacity: 0;
    pointer-events: none;
}

/* Comment image */
.fc-comment-image {
    margin-bottom: 8px;
}

.fc-comment-image img {
    max-width: 300px;
    max-height: 250px;
    border-radius: var(--fc-radius-sm);
    object-fit: cover;
    cursor: pointer;
    border: 1px solid var(--fc-border);
    transition: opacity 0.15s;
}

.fc-comment-image img:hover {
    opacity: 0.85;
}

/* Actions */
.fc-comment-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.fc-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: transparent;
    border: none;
    color: var(--fc-text-muted);
    cursor: pointer;
    font-size: 12px;
    border-radius: 4px;
    transition: all 0.15s;
}

.fc-action-btn:hover {
    color: var(--fc-primary);
    background: var(--fc-primary-10);
}

/* Menu dropdown */
.fc-comment-menu {
    position: relative;
}

.fc-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: var(--fc-bg-card);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 50;
    min-width: 100px;
    overflow: hidden;
}

.fc-dropdown-item {
    display: block;
    width: 100%;
    padding: 8px 14px;
    background: transparent;
    border: none;
    color: var(--fc-text);
    cursor: pointer;
    font-size: 13px;
    text-align: left;
    transition: background 0.15s;
}

.fc-dropdown-item:hover {
    background: var(--fc-bg-hover);
}

.fc-text-danger {
    color: var(--fc-danger) !important;
}

/* Replies */
.fc-replies-wrap {
    margin-top: 8px;
}

.fc-show-replies-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
    background: transparent;
    border: none;
    color: var(--fc-primary);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.fc-replies-list {
    margin-top: 8px;
}

.fc-replies-list .fc-comment {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.fc-replies-list .fc-avatar {
    width: 32px;
    height: 32px;
}

.fc-reply-form-wrap {
    margin-top: 10px;
}

.fc-reply-form-card {
    background: var(--fc-bg-card);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius-sm);
    padding: 12px;
}

.fc-load-more-replies-btn {
    padding: 4px 0;
    background: transparent;
    border: none;
    color: var(--fc-primary);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

/* Load More */
.fc-load-more-wrap {
    text-align: center;
    padding: 16px 0;
}

.fc-load-more-btn {
    padding: 10px 24px;
    background: var(--fc-bg-card);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    color: var(--fc-text);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.15s;
}

.fc-load-more-btn:hover {
    background: var(--fc-bg-hover);
    border-color: var(--fc-primary);
}

/* Loading */
.fc-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.fc-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--fc-border);
    border-top-color: var(--fc-primary);
    border-radius: 50%;
    animation: fcSpin 0.6s linear infinite;
}

@keyframes fcSpin {
    to { transform: rotate(360deg); }
}

/* Empty */
.fc-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--fc-text-muted);
}

.fc-empty p {
    margin-top: 12px;
    font-size: 14px;
}

/* Lightbox */
.fc-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    cursor: pointer;
    animation: fcFadeIn 0.2s ease;
}

.fc-lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: var(--fc-radius);
}

/* Toast */
.fc-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    background: var(--fc-bg-card);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius-sm);
    color: var(--fc-text);
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 99998;
    animation: fcSlideIn 0.3s ease;
}

.fc-toast-error { border-color: var(--fc-danger); }
.fc-toast-success { border-color: var(--fc-success); }

@keyframes fcSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Edit mode */
.fc-comment.fc-editing .fc-comment-content,
.fc-comment.fc-editing .fc-comment-image,
.fc-comment.fc-editing .fc-spoiler-box,
.fc-comment.fc-editing .fc-spoiler-image-box,
.fc-comment.fc-editing .fc-comment-actions {
    display: none !important;
}

.fc-edit-form-wrap {
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 600px) {
    .fc-comment-inner {
        gap: 8px;
    }

    .fc-avatar {
        width: 32px;
        height: 32px;
    }

    .fc-comment-image img,
    .fc-blurred-img {
        max-width: 100%;
    }

    .fc-reactions-grid {
        gap: 16px;
    }

    .fc-post-reaction-icon {
        width: 48px;
        height: 48px;
    }

    .fc-comments-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .fc-comments-title-row {
        width: 100% !important;
        justify-content: space-between !important;
    }

    .fc-header-actions {
        width: 100% !important;
        justify-content: space-between !important;
    }

    .fc-sort-bar {
        width: 100%;
        justify-content: flex-end;
    }

    .fc-sort-btn {
        flex: 1;
        text-align: center;
    }

    .fc-comment-actions {
        flex-wrap: wrap;
        gap: 2px;
    }

    .fc-action-btn {
        font-size: 11px;
        padding: 3px 6px;
    }

    .fc-report-text {
        display: none !important;
    }

    .fc-dropdown {
        right: auto;
        left: 0;
    }

    .fc-form-card {
        padding: 12px;
    }

    .fc-editor {
        min-height: 60px;
        font-size: 13px;
    }

    .fc-reactions-block {
        padding: 16px;
    }

    .fc-reactions-title {
        font-size: 16px;
    }
}

/* GIF search popup */
#fc-gif-btn {
    position: relative;
}

.fc-gif-popup {
    position: absolute;
    bottom: calc(100% + 8px);
    left: -100px;
    width: 320px;
    max-height: 400px;
    background: var(--fc-bg-card);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    z-index: 100;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: fcPopIn 0.15s ease;
}

@keyframes fcPopIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .fc-gif-popup {
        left: -50px;
        width: 280px;
    }
}

.fc-gif-search {
    padding: 8px;
    border-bottom: 1px solid var(--fc-border);
}

.fc-gif-search input {
    width: 100%;
    padding: 8px 10px;
    background: var(--fc-bg-input);
    border: 1px solid var(--fc-border);
    border-radius: 6px;
    color: var(--fc-text);
    font-size: 13px;
    outline: none;
}

.fc-gif-search input:focus {
    border-color: var(--fc-primary);
}

.fc-gif-results {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.fc-gif-results img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.15s;
}

.fc-gif-results img:hover {
    opacity: 0.8;
}

/* ============================================
   Emoji Picker
   ============================================ */

#fc-emoji-btn {
    position: relative;
}

.fc-emoji-popup {
    position: absolute;
    bottom: calc(100% + 8px);
    right: -20px;
    width: 340px;
    max-height: 380px;
    background: var(--fc-bg-card);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    z-index: 100;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: fcPopIn 0.15s ease;
}

.fc-emoji-cats {
    display: flex;
    gap: 0;
    overflow-x: auto;
    border-bottom: 1px solid var(--fc-border);
    padding: 0;
    flex-shrink: 0;
    scrollbar-width: none;
}

.fc-emoji-cats::-webkit-scrollbar {
    display: none;
}

.fc-emoji-cat-btn {
    flex-shrink: 0;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--fc-text-muted);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.fc-emoji-cat-btn:hover {
    color: var(--fc-text);
    background: var(--fc-bg-hover);
}

.fc-emoji-cat-btn.active {
    color: var(--fc-primary);
    border-bottom-color: var(--fc-primary);
}

.fc-emoji-grid {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 2px;
}

.fc-emoji-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.1s;
    padding: 0;
    line-height: 1;
}

.fc-emoji-item:hover {
    background: var(--fc-bg-hover);
    transform: scale(1.15);
}

@media (max-width: 600px) {
    .fc-emoji-popup {
        right: -60px;
        width: 300px;
    }

    .fc-emoji-grid {
        grid-template-columns: repeat(7, 1fr);
    }

    .fc-emoji-item {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}

/* ============================================
   Aturan Komentar - HARD RESET (immune to theme)
   ============================================ */

#flavor-comments .fc-rules-box {
    all: initial !important;
    display: block !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif !important;
    background: #161b22 !important;
    border: 1px solid #30363d !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    color: #e6edf3 !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

#flavor-comments .fc-rules-box * {
    box-sizing: border-box !important;
}

#flavor-comments .fc-rules-toggle {
    all: initial !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 16px 20px !important;
    margin: 0 !important;
    background: linear-gradient(to right, #161b22, transparent) !important;
    border: none !important;
    border-bottom: 1px solid #30363d !important;
    cursor: pointer !important;
    text-align: left !important;
    color: #e6edf3 !important;
    font-family: inherit !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

#flavor-comments .fc-rules-box.collapsed .fc-rules-toggle {
    border-bottom: none !important;
}

#flavor-comments .fc-rules-toggle:hover {
    background: #1c2333 !important;
}

#flavor-comments .fc-rules-icon {
    all: initial !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 8px !important;
    background: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
}

#flavor-comments .fc-rules-title-text {
    all: initial !important;
    display: block !important;
    font-family: inherit !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #e6edf3 !important;
    flex: 1 !important;
    line-height: 1.4 !important;
}

#flavor-comments .fc-rules-chevron {
    color: #7d8590 !important;
    transition: transform 0.2s !important;
    flex-shrink: 0 !important;
}

#flavor-comments .fc-rules-box.collapsed .fc-rules-chevron {
    transform: rotate(-90deg) !important;
}

#flavor-comments .fc-rules-content {
    all: initial !important;
    display: block !important;
    max-height: 800px !important;
    opacity: 1 !important;
    overflow: hidden !important;
    transition: max-height 0.3s ease, opacity 0.3s ease !important;
}

#flavor-comments .fc-rules-box.collapsed .fc-rules-content {
    max-height: 0 !important;
    opacity: 0 !important;
}

#flavor-comments .fc-rules-list {
    all: initial !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 20px !important;
    list-style: none !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif !important;
}

#flavor-comments .fc-rules-list li {
    all: initial !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 14px !important;
    font-family: inherit !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #9198a1 !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

#flavor-comments .fc-rules-bullet {
    all: initial !important;
    display: block !important;
    width: 6px !important;
    height: 6px !important;
    min-width: 6px !important;
    border-radius: 50% !important;
    background: #7c5cfc !important;
    margin-top: 8px !important;
}

#flavor-comments .fc-rules-list li span {
    font-family: inherit !important;
    color: inherit !important;
}

#flavor-comments .fc-rules-list li b,
#flavor-comments .fc-rules-list li strong {
    color: #e6edf3 !important;
    font-weight: 600 !important;
}

/* Warning section */
#flavor-comments .fc-rules-warning {
    all: initial !important;
    display: flex !important;
    gap: 14px !important;
    padding: 16px 20px !important;
    margin: 0 !important;
    border-top: 1px solid rgba(239, 68, 68, 0.2) !important;
    background: rgba(239, 68, 68, 0.06) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif !important;
    box-sizing: border-box !important;
}

#flavor-comments .fc-rules-warning-icon {
    all: initial !important;
    display: block !important;
    color: #ef4444 !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
}

#flavor-comments .fc-rules-warning-title {
    all: initial !important;
    display: block !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #ef4444 !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

#flavor-comments .fc-rules-warning-list {
    all: initial !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    font-family: inherit !important;
}

#flavor-comments .fc-rules-warning-list li {
    all: initial !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-family: inherit !important;
    font-size: 13px !important;
    color: #fca5a5 !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    line-height: 1.5 !important;
}

#flavor-comments .fc-rules-warning-list li::before {
    content: '' !important;
    display: inline-block !important;
    width: 4px !important;
    height: 4px !important;
    min-width: 4px !important;
    border-radius: 50% !important;
    background: #fca5a5 !important;
    flex-shrink: 0 !important;
}

/* ============================================
   Notifications
   ============================================ */

.fc-comments-title-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
}

.fc-comments-title-row .fc-comments-title {
    margin: 0 !important;
    padding: 0 !important;
}

.fc-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fc-notif-wrap {
    position: relative;
}

.fc-notif-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 14px !important;
    background: var(--fc-bg-hover) !important;
    border: 1px solid var(--fc-border) !important;
    border-radius: 20px !important;
    color: var(--fc-text-muted) !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-family: var(--fc-font) !important;
    transition: all 0.15s !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
}

.fc-notif-btn:hover {
    color: var(--fc-text) !important;
    border-color: var(--fc-text-muted) !important;
    background: var(--fc-bg-card) !important;
}

.fc-notif-btn.has-unread {
    color: var(--fc-primary) !important;
    border-color: var(--fc-primary) !important;
    background: var(--fc-primary-10) !important;
}

.fc-notif-btn-text {
    font-weight: 500 !important;
}

.fc-notif-badge {
    background: var(--fc-danger) !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    min-width: 18px !important;
    height: 18px !important;
    border-radius: 9px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 5px !important;
    line-height: 1 !important;
}

/* Notification Dropdown (small popup below button) */
/* Panel hidden by default — JS adds .fc-notif-open to show */
#flavor-comments .fc-notif-panel {
    all: initial !important;
    display: none !important;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    width: 360px !important;
    max-height: 420px !important;
    background: #161b22 !important;
    border: 1px solid #30363d !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5) !important;
    z-index: 999999 !important;
    flex-direction: column !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    color: #e6edf3 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

#flavor-comments .fc-notif-panel.fc-notif-open {
    display: flex !important;
}

#flavor-comments .fc-notif-panel-header {
    all: initial !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 16px !important;
    border-bottom: 1px solid #30363d !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
    background: #161b22 !important;
}

#flavor-comments .fc-notif-panel-title {
    all: initial !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #e6edf3 !important;
    line-height: 1.3 !important;
}

#flavor-comments .fc-notif-panel-close {
    all: initial !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    background: transparent !important;
    border: none !important;
    color: #7d8590 !important;
    cursor: pointer !important;
    font-size: 20px !important;
    border-radius: 6px !important;
    line-height: 1 !important;
    font-family: inherit !important;
    transition: all 0.15s !important;
}

#flavor-comments .fc-notif-panel-close:hover {
    color: #e6edf3 !important;
    background: #1c2333 !important;
}

#flavor-comments .fc-notif-list {
    overflow-y: auto !important;
    flex: 1 !important;
    max-height: 300px !important;
}

#flavor-comments .fc-notif-item {
    all: initial !important;
    display: flex !important;
    gap: 10px !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    cursor: pointer !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    box-sizing: border-box !important;
    transition: background 0.15s !important;
}

#flavor-comments .fc-notif-item:hover {
    background: #1c2333 !important;
}

#flavor-comments .fc-notif-item.unread {
    background: rgba(124, 92, 252, 0.06) !important;
    border-left: 3px solid var(--fc-primary) !important;
}

#flavor-comments .fc-notif-avatar {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    object-fit: cover !important;
}

#flavor-comments .fc-notif-body {
    flex: 1 !important;
    min-width: 0 !important;
}

#flavor-comments .fc-notif-text {
    all: initial !important;
    display: block !important;
    font-family: inherit !important;
    font-size: 13px !important;
    color: #e6edf3 !important;
    line-height: 1.4 !important;
    margin: 0 0 3px 0 !important;
}

#flavor-comments .fc-notif-text strong {
    color: #e6edf3 !important;
    font-weight: 600 !important;
}

#flavor-comments .fc-notif-preview {
    all: initial !important;
    display: block !important;
    font-family: inherit !important;
    font-size: 12px !important;
    color: #7d8590 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 0 3px 0 !important;
    line-height: 1.4 !important;
}

#flavor-comments .fc-notif-time {
    all: initial !important;
    display: block !important;
    font-family: inherit !important;
    font-size: 11px !important;
    color: #7d8590 !important;
    line-height: 1.3 !important;
}

#flavor-comments .fc-notif-empty {
    all: initial !important;
    display: block !important;
    padding: 32px 16px !important;
    text-align: center !important;
    color: #7d8590 !important;
    font-size: 13px !important;
    font-family: inherit !important;
    line-height: 1.5 !important;
}

#flavor-comments .fc-notif-panel-footer {
    all: initial !important;
    display: block !important;
    padding: 10px 16px !important;
    border-top: 1px solid #30363d !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    background: #161b22 !important;
}

#flavor-comments .fc-notif-mark-read-btn {
    all: initial !important;
    display: block !important;
    width: 100% !important;
    padding: 8px 14px !important;
    background: #1c2333 !important;
    border: 1px solid #30363d !important;
    border-radius: 8px !important;
    color: #7d8590 !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-family: inherit !important;
    text-align: center !important;
    transition: all 0.15s !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
}

#flavor-comments .fc-notif-mark-read-btn:hover {
    color: #e6edf3 !important;
    border-color: #7d8590 !important;
    background: #0d1117 !important;
}

/* ============================================
   Like Button
   ============================================ */

.fc-like-btn {
    gap: 4px !important;
}

.fc-like-btn.active {
    color: var(--fc-primary) !important;
}

.fc-like-btn.active svg {
    fill: var(--fc-primary);
    stroke: var(--fc-primary);
}

.fc-like-count {
    font-size: 12px;
    min-width: 8px;
}

/* Report button */
.fc-report-text {
    display: none;
}

@media (min-width: 640px) {
    .fc-report-text {
        display: inline;
    }
}

.fc-report-btn:hover {
    color: var(--fc-danger) !important;
}

/* Menu push right */
.fc-comment-menu {
    margin-left: auto;
}

/* Dropdown divider */
.fc-dropdown-divider {
    height: 1px;
    background: var(--fc-border);
    margin: 4px 0;
}

/* ============================================
   Report Modal (center overlay)
   ============================================ */

/* ============================================
   Report Modal - HARD RESET (immune to theme)
   ============================================ */

#fc-report-modal {
    all: initial !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.65) !important;
    z-index: 999999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif !important;
    box-sizing: border-box !important;
}

#fc-report-modal.fc-modal-open {
    display: flex !important;
}

#fc-report-modal * {
    box-sizing: border-box !important;
}

#fc-report-modal .fc-modal {
    all: initial !important;
    display: block !important;
    background: #161b22 !important;
    border: 1px solid #30363d !important;
    border-radius: 12px !important;
    padding: 24px !important;
    width: 100% !important;
    max-width: 420px !important;
    position: relative !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif !important;
    color: #e6edf3 !important;
    animation: fcModalIn 0.2s ease !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
}

@keyframes fcModalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

#fc-report-modal .fc-modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
}

#fc-report-modal .fc-modal-title {
    all: initial !important;
    display: block !important;
    font-family: inherit !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #e6edf3 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

#fc-report-modal .fc-modal-close {
    all: initial !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    color: #7d8590 !important;
    cursor: pointer !important;
    padding: 4px !important;
    border-radius: 4px !important;
    width: 28px !important;
    height: 28px !important;
}

#fc-report-modal .fc-modal-close:hover {
    color: #e6edf3 !important;
    background: #1c2333 !important;
}

#fc-report-modal .fc-modal-desc {
    all: initial !important;
    display: block !important;
    font-family: inherit !important;
    font-size: 14px !important;
    color: #7d8590 !important;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    line-height: 1.5 !important;
}

#fc-report-modal .fc-report-reasons {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
}

#fc-report-modal .fc-report-reason-btn {
    all: initial !important;
    display: block !important;
    font-family: inherit !important;
    padding: 10px 12px !important;
    background: #1c2333 !important;
    border: 1px solid #30363d !important;
    border-radius: 8px !important;
    color: #e6edf3 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    text-align: center !important;
    transition: all 0.15s !important;
    line-height: 1.4 !important;
}

#fc-report-modal .fc-report-reason-btn:hover {
    border-color: var(--fc-primary) !important;
}

#fc-report-modal .fc-report-reason-btn.active {
    background: var(--fc-primary) !important;
    border-color: var(--fc-primary) !important;
    color: #fff !important;
}

#fc-report-modal .fc-report-textarea {
    all: initial !important;
    display: block !important;
    font-family: inherit !important;
    width: 100% !important;
    background: #0d1117 !important;
    border: 1px solid #30363d !important;
    border-radius: 8px !important;
    color: #e6edf3 !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    resize: vertical !important;
    min-height: 70px !important;
    margin: 0 0 14px 0 !important;
    outline: none !important;
    line-height: 1.5 !important;
}

#fc-report-modal .fc-report-textarea:focus {
    border-color: var(--fc-primary) !important;
}

#fc-report-modal .fc-report-submit-btn {
    all: initial !important;
    display: block !important;
    font-family: inherit !important;
    width: 100% !important;
    padding: 10px 20px !important;
    background: var(--fc-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-align: center !important;
    box-shadow: 0 4px 14px var(--fc-primary-10) !important;
    line-height: 1.4 !important;
}

#fc-report-modal .fc-report-submit-btn:hover {
    background: var(--fc-primary-hover) !important;
}

/* ============================================
   FINAL HEADER + NOTIFICATION OVERRIDES
   Must come last to beat theme/plugin conflicts
   ============================================ */

#flavor-comments .fc-comments-header {
    display: block !important;
    margin-bottom: 16px !important;
}

#flavor-comments .fc-comments-title-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
}

#flavor-comments .fc-comments-title {
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
}

#flavor-comments .fc-header-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    margin-left: auto !important;
    flex: 1 1 auto !important;
}

#flavor-comments .fc-sort-bar {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    margin-left: auto !important;
    width: auto !important;
}

#flavor-comments .fc-notif-wrap {
    position: relative !important;
    flex: 0 0 auto !important;
}

#flavor-comments .fc-notif-btn {
    all: unset !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-height: 38px !important;
    padding: 0 14px !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 999px !important;
    color: #d0d7de !important;
    cursor: pointer !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22) !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

#flavor-comments .fc-notif-btn:hover {
    transform: translateY(-1px) !important;
    color: #ffffff !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.04) 100%) !important;
    border-color: rgba(255,255,255,0.18) !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28) !important;
}

#flavor-comments .fc-notif-btn:focus,
#flavor-comments .fc-notif-btn:focus-visible,
#flavor-comments .fc-notif-btn:active {
    outline: none !important;
    box-shadow: 0 0 0 2px var(--fc-primary-10), 0 10px 24px rgba(0, 0, 0, 0.22) !important;
}

#flavor-comments .fc-notif-btn.has-unread {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--fc-primary) 0%, var(--fc-primary-hover) 100%) !important;
    border-color: rgba(255,255,255,0.08) !important;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255,255,255,0.06) inset !important;
}

#flavor-comments .fc-notif-btn svg {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0 !important;
    opacity: 0.96 !important;
}

#flavor-comments .fc-notif-btn-text {
    font: inherit !important;
    color: inherit !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

#flavor-comments .fc-notif-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 20px !important;
    height: 20px !important;
    padding: 0 6px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,0.2) !important;
    border: 1px solid rgba(255,255,255,0.24) !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
}

@media (max-width: 600px) {
    #flavor-comments .fc-comments-title-row {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    #flavor-comments .fc-header-actions {
        width: 100% !important;
        justify-content: space-between !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    #flavor-comments .fc-sort-bar {
        flex: 1 1 auto !important;
        width: auto !important;
    }

    /* Notif button compact on mobile */
    #flavor-comments .fc-notif-btn {
        padding: 6px 10px !important;
        font-size: 11px !important;
    }

    /* Notif panel full width on mobile */
    #flavor-comments .fc-notif-panel {
        width: calc(100vw - 32px) !important;
        right: -16px !important;
    }

    /* Sort buttons compact */
    .fc-sort-btn {
        padding: 4px 10px !important;
        font-size: 11px !important;
    }

    /* Editor toolbar wrap */
    .fc-toolbar-actions {
        flex-wrap: wrap !important;
        gap: 2px !important;
    }

    .fc-toolbar-right {
        flex-wrap: nowrap !important;
    }

    /* Comment badges wrap */
    .fc-comment-meta {
        flex-wrap: wrap !important;
        gap: 2px !important;
    }

    /* Reply form compact */
    .fc-reply-form-card {
        padding: 10px !important;
    }

    /* Lightbox */
    .fc-lightbox img {
        max-width: 95vw !important;
        max-height: 85vh !important;
    }
}

/* Auth modal mobile */
@media (max-width: 440px) {
    #fc-auth-modal > div {
        margin: 8px !important;
        max-width: calc(100vw - 16px) !important;
    }
}

/* Report modal mobile */
@media (max-width: 480px) {
    #fc-report-modal .fc-modal {
        margin: 8px !important;
        max-width: calc(100vw - 16px) !important;
        padding: 16px !important;
    }

    #fc-report-modal .fc-report-reasons {
        grid-template-columns: 1fr !important;
    }
}
