:root {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-tertiary: #2a2a2a;
    --bg-input: #3a3a3a;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-muted: #707070;
    --border-color: #333333;
    --accent-color: #ff8e16;
    --accent-hover: #e67c00;
    --accent-shadow: rgba(255, 142, 22, 0.3);
    --info-color: #2196f3;
    --success-color: #4caf50;
    --danger-color: #f44336;
    --warning-color: #ffc107;
    --shadow: rgba(0, 0, 0, 0.6);
    --shadow-light: rgba(0, 0, 0, 0.3);
    --border-radius-lg: 16px;
    --border-radius-md: 10px;
    --border-radius-sm: 8px;
    --transition-speed: 0.3s;
    --love-color: #e91e63;
    --haha-color: #ff9800;
    --sad-color: #607d8b;
    --text-on-accent: #ffffff;
    --link-color: #0073aa;
    --danger-hover: #c82333;
    --success-bg: #d4edda;
    --success-text: #155724;
    --warning-bg: #fff3cd;
    --warning-text: #856404;
    --danger-bg: #f8d7da;
    --danger-text: #721c24;
    --overlay-bg: rgba(0, 0, 0, 0.7);
    --overlay-hover-bg: rgba(0, 0, 0, 0.8);
}

[data-theme="light"] {
    --bg-primary: #f0f2f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e2e6ea;
    --bg-input: #f8f9fa;
    --text-primary: #2c3e50;
    --text-secondary: #5a6a7a;
    --text-muted: #8898a8;
    --border-color: #dcdfe3;
    --shadow: rgba(0, 0, 0, 0.15);
    --shadow-light: rgba(0, 0, 0, 0.08);
    --text-on-accent: #ffffff;
    --overlay-bg: rgba(0, 0, 0, 0.7);
    --overlay-hover-bg: rgba(0, 0, 0, 0.8);
    --success-bg: #d4edda;
    --success-text: #155724;
    --warning-bg: #fff3cd;
    --warning-text: #856404;
    --danger-bg: #f8d7da;
    --danger-text: #721c24;
}

.f6c5-main-container {
    font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    line-height: 1.5;
    position: relative;
}

.f6c5-main-container * {
    box-sizing: border-box;
}

.f6c5-main-container p {
    margin: 0 !important;
    padding: 0 !important;
    display: contents !important;
}
.picker-container p,
.comments-list p,
.picker-header p {
    margin: 0 !important;
    padding: 0 !important;
    display: contents !important;
}

.f6c5-main-container .comments-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 12px 40px var(--shadow);
    transition: all var(--transition-speed) ease;
    margin-top: 30px;
    color: var(--text-primary);
}

.f6c5-main-container {
    --wp--style--global--content-size: 800px;
}

.f6c5-main-container .comments-header {
    background: linear-gradient(
        135deg,
        var(--accent-color),
        var(--accent-hover)
    );
    padding: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top-left-radius: var(--border-radius-lg);
    border-top-right-radius: var(--border-radius-lg);
}

.f6c5-main-container .comments-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle,
        var(--shadow-light) 1px,
        transparent 1px
    );
    background-size: 8px 8px;
    opacity: 0.1;
}

.f6c5-main-container .comments-header h3 {
    margin: 0;
    font-size: 1.6rem;
    color: var(--text-on-accent);
    font-weight: 700;
    text-shadow: 1px 1px 3px var(--shadow-light);
    position: relative;
    z-index: 1;
}

.f6c5-main-container .what-do-you-think {
    padding: 30px 25px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    background-color: var(--bg-secondary);
}

.f6c5-main-container .what-do-you-think h4 {
    margin: 0 0 20px 0;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
}

.f6c5-main-container .reaction-summary {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-weight: 500;
}

.f6c5-main-container .reactions {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.f6c5-main-container .reaction-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 15px 10px;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-speed) ease;
    background-color: var(--bg-tertiary);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px var(--shadow-light);
}

.f6c5-main-container .reaction-item:hover {
    border-color: var(--reaction-color);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 18px var(--shadow);
}

.f6c5-main-container .reaction-item.active {
    background-color: var(--bg-tertiary);
    border-color: var(--reaction-color);
    box-shadow: 0 4px 10px var(--shadow);
    transform: scale(1.02);
}

.f6c5-main-container .reaction-item.pulse-animation {
    animation: f6c5-pulse 0.5s ease;
}

@keyframes f6c5-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

.f6c5-main-container .reaction-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    transition: color var(--transition-speed) ease;
}

.f6c5-main-container .reaction-item:hover .reaction-icon,
.f6c5-main-container .reaction-item.active .reaction-icon {
    color: var(--reaction-color);
}

.f6c5-main-container .reaction-count {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

.f6c5-main-container .reaction-label {
    font-size: 0.8rem;
    opacity: 0.9;
    color: var(--text-secondary);
}

.f6c5-main-container .reaction-emoji {
    display: none;
}

.f6c5-main-container .comment-section-main {
    padding: 25px;
}

.f6c5-main-container .comment-count-and-sort {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.f6c5-main-container .comment-count {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.f6c5-main-container .sort-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.f6c5-main-container .sort-button {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    border-radius: 20px;
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-family: inherit;
    white-space: nowrap;
}

.f6c5-main-container .sort-button.active {
    background: var(--accent-color);
    color: var(--text-on-accent);
    border-color: var(--accent-color);
    box-shadow: 0 4px 10px var(--accent-shadow);
}

.f6c5-main-container .sort-button:not(.active):hover {
    background: var(--bg-tertiary);
    color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.f6c5-main-container .add-comment-area {
    display: flex !important;
    gap: 15px;
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: var(--border-radius-md);
    margin-bottom: 30px;
    position: relative;
    box-shadow: 0 6px 20px var(--shadow-light);
    border: 1px solid var(--border-color);
}

.f6c5-main-container .avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 0 2px var(--bg-tertiary);
}

.f6c5-main-container .comment-input-wrapper {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    position: relative;
}

.f6c5-main-container .comment-textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 15px 18px;
    color: var(--text-primary);
    font-size: 1.05rem;
    resize: none;
    min-height: 100px;
    transition: all var(--transition-speed) ease;
    font-family: inherit;
    line-height: 1.5;
}

.f6c5-main-container .comment-textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

.f6c5-main-container .comment-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px var(--accent-shadow);
}

.f6c5-main-container .login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--overlay-bg);
    border-radius: var(--border-radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-on-accent);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 5;
    transition: background-color var(--transition-speed) ease;
}

.f6c5-main-container .login-overlay:hover {
    background-color: var(--overlay-hover-bg);
}

.f6c5-main-container .login-overlay .login-text a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
}

.f6c5-main-container .login-overlay .login-text a:hover {
    text-decoration: underline;
}

.f6c5-main-container .comment-input-error {
    color: var(--danger-color);
    font-size: 0.9rem;
    margin-top: 5px;
    margin-bottom: 10px;
    font-weight: 500;
}

.f6c5-main-container .comment-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 5px;
    gap: 10px;
}

.f6c5-main-container .emoji-toggle-button {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 15px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
}

.f6c5-main-container .emoji-toggle-button:hover {
    background: var(--bg-tertiary);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.f6c5-main-container .post-comment-button {
    background: var(--accent-color);
    color: var(--text-on-accent);
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 10px var(--accent-shadow);
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
}

.f6c5-main-container .post-comment-button:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px var(--accent-shadow);
}

.f6c5-main-container .post-comment-button:disabled {
    background: var(--bg-input);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
}

.f6c5-main-container .comment-item {
    background: transparent;
    border: none;
    border-radius: var(--border-radius-md);
    padding: 15px;
    margin-bottom: 10px;
    transition: all var(--transition-speed) ease;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.f6c5-main-container .comment-item:last-child {
    border-bottom: none;
}

.f6c5-main-container .comment-item:hover {
    background: var(--bg-tertiary);
}

.f6c5-main-container .comment-item.pinned-comment {
    background: linear-gradient(
        135deg,
        rgba(255, 142, 22, 0.15),
        rgba(255, 142, 22, 0.08)
    );
    border: 1px solid var(--accent-color);
    box-shadow: 0 8px 25px var(--accent-shadow);
    order: -1;
}

.f6c5-main-container .comment-item.admin-comment {
    background-color: rgba(255, 142, 22, 0.05);
    border: 1px solid rgba(255, 142, 22, 0.2);
    border-left: 3px solid var(--accent-color);
}

.f6c5-main-container .comment-item.moderator-comment {
    background-color: rgba(33, 150, 243, 0.05);
    border: 1px solid rgba(33, 150, 243, 0.2);
    border-left: 3px solid var(--info-color);
}

.f6c5-main-container .reply-indicator {
    width: 100%;
    background: var(--shadow-light);
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: baseline;
    gap: 10px;
    line-height: 1.4;
    border-left: 3px solid var(--accent-color);
    border: 1px solid var(--shadow-light);
}

.f6c5-main-container .reply-indicator .fa-reply {
    flex-shrink: 0;
    color: var(--accent-color);
    font-size: 0.8rem;
}

.f6c5-main-container .reply-indicator-text-content {
    width: calc(100% - 6px);
    display: flex;
    flex-direction: row;
    gap: 4px;
    flex-wrap: nowrap;
    min-height: 0;
}

.f6c5-main-container .reply-indicator .replying-to-user {
    color: var(--accent-color);
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.f6c5-main-container .reply-indicator .replied-message-snippet {
    color: var(--text-secondary);
    width: 100%;
    font-style: italic;
    font-size: 0.9em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex-shrink: 1;
}

.f6c5-main-container .reply-indicator .reply-context-text {
    color: var(--text-muted);
    font-size: 0.9em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex-shrink: 1;
}

.f6c5-main-container .comment-main-content {
    display: flex;
    gap: 15px;
}

.f6c5-main-container .comment-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
    transition: all var(--transition-speed) ease;
}

.f6c5-main-container .comment-item.admin-comment .comment-avatar,
.f6c5-main-container .comment-item.moderator-comment .comment-avatar {
    border-color: var(--border-color);
}

.f6c5-main-container .comment-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.f6c5-main-container .comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
}

.f6c5-main-container .username {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.f6c5-main-container .user-tag {
    background: var(--accent-color);
    color: var(--text-on-accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px var(--accent-shadow);
}

.f6c5-main-container .pinned-icon {
    color: var(--accent-color);
    margin-right: 5px;
    font-size: 0.9em;
}

.f6c5-main-container .comment-time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.comment-options-menu {
    position: relative;
    margin-left: auto;
}

.options-menu-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50%;
    font-size: 1rem;
    line-height: 1;
}

.options-menu-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.options-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: 0 5px 15px var(--shadow);
    z-index: 10;
    width: 200px;
    padding: 5px 0;
}

.options-menu-dropdown button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
}

.options-menu-dropdown button:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.options-menu-dropdown .delete-button:hover {
    background: var(--danger-bg);
    color: var(--danger-color);
}

.f6c5-main-container .comment-edited-indicator {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    margin-left: 8px;
}

.f6c5-main-container .comment-content {
    color: var(--text-secondary);
    line-height: 1.7;
    word-wrap: break-word;
    font-size: 0.95rem;
}

.f6c5-main-container .comment-item.admin-comment .comment-content,
.f6c5-main-container .comment-item.moderator-comment .comment-content {
    color: var(--text-primary);
    font-weight: 500;
}

.f6c5-main-container .comment-content p {
    margin: 0;
}

.f6c5-main-container .comment-content img {
    max-width: 100%;
    border-radius: var(--border-radius-sm);
    margin-top: 10px;
    display: block;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.f6c5-main-container .edit-comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.f6c5-main-container .edit-comment-textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    resize: vertical;
    min-height: 80px;
}

.f6c5-main-container .edit-comment-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.f6c5-main-container .edit-comment-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.f6c5-main-container .edit-comment-actions button {
    padding: 6px 14px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
}

.f6c5-main-container .save-edit-button {
    background: var(--success-color);
    color: var(--text-on-accent);
    border: none;
}
.f6c5-main-container .cancel-edit-button {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.f6c5-main-container .read-more-button {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    padding: 0;
    font-family: inherit;
}

.f6c5-main-container .read-more-button:hover {
    color: var(--accent-hover);
    transform: translateX(3px);
}

.f6c5-main-container .comment-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.f6c5-main-container .comment-actions button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 15px;
    transition: all var(--transition-speed) ease;
    font-weight: 500;
    font-family: inherit;
}

.f6c5-main-container .comment-actions button:hover {
    background: var(--shadow-light);
    color: var(--text-primary);
}

.f6c5-main-container .like-button.active {
    color: var(--success-color);
    background: var(--success-bg);
    font-weight: 600;
}

.f6c5-main-container .dislike-button.active {
    color: var(--danger-color);
    background: var(--danger-bg);
    font-weight: 600;
}

.f6c5-main-container .reply-button:hover {
    color: var(--accent-color);
    background: var(--accent-shadow);
}

.f6c5-main-container .comment-reply {
    margin-left: 60px;
    background: transparent;
    border: none;
    border-radius: 0;
    border-left: 2px solid var(--shadow-light);
    padding: 15px 0 15px 20px;
    position: relative;
}

.f6c5-main-container .comment-reply::before {
    content: "";
    position: absolute;
    left: -2px;
    top: 0;
    width: 2px;
    height: 30px;
    background: var(--accent-color);
    border-radius: 2px;
}

.f6c5-main-container .comment-reply .read-more-button {
    display: none !important;
}

.f6c5-main-container .replies-container {
    margin-top: 0;
}

.f6c5-main-container .show-replies-button {
    padding: 8px 12px !important;
    font-size: 0.9rem !important;
    color: var(--accent-color) !important;
    font-weight: 600;
    background: var(--accent-shadow) !important;
}

.f6c5-main-container .show-replies-button:hover {
    background: var(--accent-shadow) !important;
}

#pickerContainer {
    position: absolute;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px var(--shadow);
    z-index: 10000;
    width: 450px;
    max-width: 90vw;
    height: 500px;
    max-height: 80vh;
    display: none;
    flex-direction: column;
    animation: f6c5-fadeInScale 0.2s ease-out;
    transform-origin: top left;
}

@keyframes f6c5-fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#pickerContainer .picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    background-color: var(--bg-tertiary);
    border-top-left-radius: var(--border-radius-lg);
    border-top-right-radius: var(--border-radius-lg);
}

#pickerContainer .picker-tabs {
    display: flex;
    gap: 10px;
}

#pickerContainer .picker-tab-button {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-family: inherit;
    white-space: nowrap;
}

#pickerContainer .picker-tab-button.active {
    background: var(--accent-color);
    color: var(--text-on-accent);
    border-color: var(--accent-color);
    box-shadow: 0 2px 8px var(--accent-shadow);
}

#pickerContainer .picker-tab-button:not(.active):hover {
    background: var(--bg-input);
    color: var(--accent-color);
}

#pickerContainer .picker-close-button {
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    transition: all var(--transition-speed) ease;
    font-size: 1.1rem;
    font-family: inherit;
}

#pickerContainer .picker-close-button:hover {
    background: var(--bg-input);
    color: var(--text-primary);
    transform: rotate(90deg);
}

#pickerContainer .picker-content {
    display: none;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
    overflow: hidden;
}

#pickerContainer .picker-content.active {
    display: flex;
}

#pickerContainer #emojiPickerContent .emoji-categories {
    display: flex;
    gap: 8px;
    padding: 15px 20px;
    overflow-x: auto;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-tertiary);
}

#pickerContainer #emojiPickerContent .emoji-category-btn {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: all var(--transition-speed) ease;
    font-weight: 500;
    font-family: inherit;
    flex-shrink: 0;
}

#pickerContainer #emojiPickerContent .emoji-category-btn.active {
    background: var(--accent-color);
    color: var(--text-on-accent);
    border-color: var(--accent-color);
}

#pickerContainer #emojiPickerContent .emoji-category-btn:hover:not(.active) {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

#pickerContainer #emojiPickerContent .emoji-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 10px;
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
    min-height: 0;
}

#pickerContainer #emojiPickerContent .emoji-button {
    background: none;
    border: none;
    font-size: 24px;
    padding: 8px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    font-family: inherit;
}

#pickerContainer #emojiPickerContent .emoji-button:hover {
    background: var(--bg-input);
    transform: scale(1.1);
}

#pickerContainer #gifPickerContent .gif-search-container {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    gap: 10px;
    background-color: var(--bg-tertiary);
}

#pickerContainer #gifPickerContent .gif-search-input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background-color: var(--bg-input);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
    font-family: inherit;
}

#pickerContainer #gifPickerContent .gif-search-input::placeholder {
    color: var(--text-muted);
}

#pickerContainer #gifPickerContent .gif-search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-shadow);
}

#pickerContainer #gifPickerContent .gif-search-button {
    background-color: var(--accent-color);
    color: var(--text-on-accent);
    border: none;
    padding: 10px 16px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-size: 1rem;
    transition: background-color var(--transition-speed) ease;
    flex-shrink: 0;
    font-weight: 600;
    font-family: inherit;
}

#pickerContainer #gifPickerContent .gif-search-button:hover {
    background-color: var(--accent-hover);
}

#pickerContainer #gifPickerContent .gif-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
    min-height: 0;
}

#pickerContainer #gifPickerContent .gif-item {
    position: relative;
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background-color: var(--bg-tertiary);
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    box-shadow: 0 2px 8px var(--shadow-light);
    border: 1px solid var(--border-color);
}

#pickerContainer #gifPickerContent .gif-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

#pickerContainer #gifPickerContent .gif-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px var(--shadow);
}

#pickerContainer #gifPickerContent .gif-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

#pickerContainer #gifPickerContent .gif-item:hover img {
    transform: scale(1.05);
}

#pickerContainer #gifPickerContent .gif-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    grid-column: 1 / -1;
    font-size: 1rem;
    font-weight: 500;
}

#emojiPickerContent .emoji-categories::-webkit-scrollbar,
#emojiPickerContent .emoji-grid::-webkit-scrollbar,
#gifPickerContent .gif-grid::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

#emojiPickerContent .emoji-categories::-webkit-scrollbar-track,
#emojiPickerContent .emoji-grid::-webkit-scrollbar-track,
#gifPickerContent .gif-grid::-webkit-scrollbar-track {
    background: var(--bg-input);
    border-radius: 10px;
    margin: 4px;
}

#emojiPickerContent .emoji-categories::-webkit-scrollbar-thumb,
#emojiPickerContent .emoji-grid::-webkit-scrollbar-thumb,
#gifPickerContent .gif-grid::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
    border: 2px solid var(--bg-input);
}

#emojiPickerContent .emoji-categories::-webkit-scrollbar-thumb:hover,
#emojiPickerContent .emoji-grid::-webkit-scrollbar-thumb:hover,
#gifPickerContent .gif-grid::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

#emojiPickerContent .emoji-categories,
#emojiPickerContent .emoji-grid,
#gifPickerContent .gif-grid {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--bg-input);
}

.f6c5-main-container .replying-to {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    box-shadow: inset 0 1px 5px var(--shadow-light);
}

.f6c5-main-container .replying-to-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.f6c5-main-container .replying-to-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all var(--transition-speed) ease;
    font-size: 1rem;
    font-family: inherit;
}

.f6c5-main-container .replying-to-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.f6c5-main-container .auth-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: var(--overlay-bg);
    justify-content: center;
    align-items: center;
}

.f6c5-main-container .auth-modal-content {
    background-color: var(--bg-secondary);
    margin: auto;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 25px var(--shadow);
    width: 90%;
    max-width: 450px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: f6c5-slideIn 0.3s ease-out;
}

@keyframes f6c5-slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.f6c5-main-container .auth-modal-close-button {
    color: var(--text-muted);
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.f6c5-main-container .auth-modal-close-button:hover,
.f6c5-main-container .auth-modal-close-button:focus {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.f6c5-main-container .auth-modal-content h2 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.f6c5-main-container .auth-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.f6c5-main-container .auth-options button,
.f6c5-main-container #authForm button {
    background-color: var(--accent-color);
    color: var(--text-on-accent);
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease,
        transform 0.2s ease;
    box-shadow: 0 4px 10px var(--accent-shadow);
    font-family: inherit;
}

.f6c5-main-container .auth-options button:hover,
.f6c5-main-container #authForm button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px var(--accent-shadow);
}

.f6c5-main-container #authForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.f6c5-main-container #authForm h3 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.f6c5-main-container #authForm input[type="text"],
.f6c5-main-container #authForm input[type="email"],
.f6c5-main-container #authForm input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background-color: var(--bg-input);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color var(--transition-speed) ease;
    font-family: inherit;
}

.f6c5-main-container #authForm input[type="text"]::placeholder,
.f6c5-main-container #authForm input[type="email"]::placeholder,
.f6c5-main-container #authForm input[type="password"]::placeholder {
    color: var(--text-muted);
}

.f6c5-main-container #authForm input[type="text"]:focus,
.f6c5-main-container #authForm input[type="email"]:focus,
.f6c5-main-container #authForm input[type="password"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-shadow);
}

.f6c5-main-container .auth-message {
    padding: 10px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 15px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.f6c5-main-container .auth-message.success {
    background-color: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-color);
}

.f6c5-main-container .auth-message.error {
    background-color: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid var(--danger-color);
}

.f6c5-profile-header {
    background: linear-gradient(
        135deg,
        var(--accent-color),
        var(--accent-hover)
    );
    padding: 40px 20px 80px 20px;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    position: relative;
}

.f6c5-profile-card {
    max-width: 900px;
    margin: -60px auto 0 auto;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    box-shadow: 0 8px 25px var(--shadow);
    display: flex;
    position: relative;
    top: 60px;
}

.f6c5-profile-sidebar {
    width: 280px;
    padding: 30px;
    text-align: center;
    border-right: 1px solid var(--border-color);
    flex-shrink: 0;
}

.f6c5-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid var(--bg-secondary);
    margin: -80px auto 15px auto;
    display: block;
    position: relative;
    box-shadow: 0 5px 15px var(--shadow);
    aspect-ratio: 1/1;
    object-fit: cover;
}

.f6c5-profile-displayname {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 700;
}

.f6c5-profile-username {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 5px 0 20px 0;
}

.f6c5-profile-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 25px;
    background: var(--bg-primary);
    padding: 15px;
    border-radius: var(--border-radius-sm);
}

.f6c5-profile-stats .f6c5-stat-item {
    display: flex;
    flex-direction: column;
}

.f6c5-profile-stats .f6c5-stat-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.f6c5-profile-stats .f6c5-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.f6c5-edit-profile-button {
    display: inline-block;
    width: 100%;
    padding: 12px;
    background: var(--accent-color);
    color: var(--text-on-accent);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
}

.f6c5-edit-profile-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.f6c5-profile-main {
    flex-grow: 1;
    padding: 20px;
}

.f6c5-profile-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.f6c5-profile-tab-button {
    padding: 15px 25px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
    border-bottom: 3px solid transparent;
}

.f6c5-profile-tab-button:hover {
    color: var(--text-primary);
}

.f6c5-profile-tab-button.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.f6c5-profile-tab-content {
    display: none;
}

.f6c5-profile-tab-content.active {
    display: block;
    animation: f6c5-fadeIn 0.5s ease;
}

@keyframes f6c5-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.f6c5-profile-comments-list,
.f6c5-profile-reactions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.f6c5-profile-comment-item {
    background: var(--bg-primary);
    padding: 15px;
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--accent-color);
}

.f6c5-profile-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.f6c5-profile-comment-context {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.f6c5-profile-comment-context a {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
}

.f6c5-profile-comment-context a:hover {
    text-decoration: underline;
}

.f6c5-profile-comment-item .comment-content {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
    word-wrap: break-word;
}

.f6c5-profile-comment-item .comment-content p,
.f6c5-profile-comment-item .edit-comment-form p {
    display: block !important;
}

.f6c5-profile-comment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.f6c5-profile-comment-votes {
    display: flex;
    gap: 15px;
}

.f6c5-profile-comment-votes span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.f6c5-profile-reaction-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-primary);
    padding: 15px;
    border-radius: var(--border-radius-sm);
}

.f6c5-profile-reaction-emoji {
    font-size: 2rem;
}

.f6c5-profile-reaction-details {
    display: flex;
    flex-direction: column;
}

.f6c5-profile-reaction-text a {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
}

.f6c5-profile-reaction-time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.f6c5-no-comments-found {
    color: var(--text-muted);
    padding: 20px;
    text-align: center;
    background: var(--bg-primary);
    border-radius: var(--border-radius-sm);
}

.f6c5-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: var(--overlay-bg);
    justify-content: center;
    align-items: center;
}

.f6c5-modal-content {
    background-color: var(--bg-secondary);
    margin: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 25px var(--shadow);
    width: 90%;
    max-width: 500px;
    position: relative;
    display: flex;
    flex-direction: column;
    animation: f6c5-slideIn 0.3s ease-out;
}

.f6c5-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.f6c5-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.f6c5-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.f6c5-modal-close:hover {
    color: var(--accent-color);
}

.f6c5-modal-body {
    padding: 25px;
    flex-grow: 1;
}

.f6c5-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

.f6c5-edit-profile-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
}

.f6c5-edit-profile-tab-btn {
    padding: 10px 20px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}

.f6c5-edit-profile-tab-btn.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.f6c5-edit-profile-tab-content {
    display: none;
}
.f6c5-edit-profile-tab-content.active {
    display: block;
}

.f6c5-form-group {
    margin-bottom: 20px;
}

.f6c5-form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.f6c5-form-group input[type="text"],
.f6c5-form-group input[type="password"],
.f6c5-form-group select,
.f6c5-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-input);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
}
.f6c5-form-group input:focus,
.f6c5-form-group select:focus,
.f6c5-form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-shadow);
}

.f6c5-avatar-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.f6c5-avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
}

.button-secondary {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-weight: 600;
}
.button-secondary:hover {
    background-color: var(--border-color);
}

.button-primary {
    background-color: var(--accent-color);
    border: none;
    color: var(--text-on-accent);
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}
.button-primary:hover {
    background-color: var(--accent-hover);
}

.f6c5-message-area {
    padding: 12px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 15px;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
}

.f6c5-message-area.success {
    background-color: var(--success-bg);
    color: var(--success-text);
}

.f6c5-message-area.error {
    background-color: var(--danger-bg);
    color: var(--danger-text);
}

.f6c5-profile-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.f6c5-profile-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    border-radius: var(--border-radius-sm);
    background: var(--bg-primary);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--border-color);
    font-weight: 600;
}

.f6c5-profile-pagination .page-numbers:hover {
    background: var(--accent-color);
    color: var(--text-on-accent);
    border-color: var(--accent-color);
}

.f6c5-profile-pagination .page-numbers.current {
    background: var(--accent-color);
    color: var(--text-on-accent);
    border-color: var(--accent-color);
    cursor: default;
}

.f6c5-profile-pagination .page-numbers.dots {
    background: transparent;
    border: none;
    padding: 8px 0;
}

@media (max-width: 768px) {
    .f6c5-profile-card {
        flex-direction: column;
        top: 20px;
        margin-top: -20px;
    }
    .f6c5-profile-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .f6c5-profile-avatar {
        width: 100px;
        height: 100px;
        margin-top: -70px;
    }
    .f6c5-profile-main {
        padding: 20px;
    }
    .f6c5-profile-tabs {
        justify-content: center;
    }
    .f6c5-profile-tab-button {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .f6c5-main-container .comments-header,
    .f6c5-main-container .what-do-you-think,
    .f6c5-main-container .comment-section-main {
        padding: 20px 15px;
    }
    .f6c5-main-container .comments-header h3 {
        font-size: 1.4rem;
    }
    .f6c5-main-container .what-do-you-think h4 {
        font-size: 1.1rem;
    }
    .f6c5-main-container .reactions {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .f6c5-main-container .reaction-item {
        padding: 10px 6px;
    }
    .f6c5-main-container .reaction-icon {
        font-size: 1.5rem;
    }
    .f6c5-main-container .reaction-count {
        font-size: 0.9rem;
    }
    .f6c5-main-container .reaction-label {
        font-size: 0.7rem;
    }
    .f6c5-main-container .comment-count-and-sort {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    .f6c5-main-container .sort-options {
        justify-content: center;
        flex-wrap: wrap;
    }
    .f6c5-main-container .sort-button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    .f6c5-main-container .add-comment-area {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    .f6c5-main-container .avatar {
        width: 40px;
        height: 40px;
        border-width: 2px;
    }
    .f6c5-main-container .comment-textarea {
        min-height: 80px;
        font-size: 0.95rem;
        padding: 12px 15px;
    }
    .f6c5-main-container .comment-actions-row {
        flex-direction: row;
        gap: 10px;
    }
    .f6c5-main-container .emoji-toggle-button {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    .f6c5-main-container .post-comment-button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    .f6c5-main-container .comment-item {
        padding: 12px;
    }
    .f6c5-main-container .comment-main-content {
        gap: 12px;
    }
    .f6c5-main-container .comment-avatar {
        width: 35px;
        height: 35px;
    }
    .f6c5-main-container .username {
        font-size: 0.95rem;
    }
    .f6c5-main-container .user-tag {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    .f6c5-main-container .comment-content {
        font-size: 0.9rem;
    }
    .f6c5-main-container .comment-actions {
        gap: 8px;
        margin-top: 8px;
    }
    .f6c5-main-container .comment-actions button {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    .f6c5-main-container .comment-actions .button-text {
        display: none;
    }
    .f6c5-main-container .comment-actions .show-replies-button .button-text {
        display: inline;
        font-size: 0.8rem;
    }
    .f6c5-main-container .comment-actions .show-replies-button .reply-label {
        display: none;
    }
    .f6c5-main-container .comment-reply {
        margin-left: 25px;
        padding: 10px 0 10px 15px;
    }
    .f6c5-main-container .reply-indicator {
        font-size: 0.8rem;
        padding: 6px 10px;
        margin-bottom: 8px;
    }
    #pickerContainer {
        position: fixed !important;
        top: auto !important;
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
        transform: none !important;
        width: calc(100% - 20px) !important;
        height: 60vh !important;
        max-height: 400px !important;
        max-width: none !important;
        border-radius: var(--border-radius-md);
    }
    #pickerContainer .picker-header {
        padding: 12px 15px;
    }
    #pickerContainer .picker-tabs {
        gap: 8px;
    }
    #pickerContainer .picker-tab-button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    #pickerContainer .picker-close-button {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    #pickerContainer #emojiPickerContent .emoji-grid {
        grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
        gap: 6px;
        padding: 15px;
    }
    #pickerContainer #emojiPickerContent .emoji-button {
        width: 40px;
        height: 40px;
        font-size: 20px;
        padding: 6px;
    }
    #pickerContainer #gifPickerContent .gif-search-container {
        padding: 10px 15px;
        gap: 8px;
    }
    #pickerContainer #gifPickerContent .gif-search-input {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    #pickerContainer #gifPickerContent .gif-search-button {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    #pickerContainer #gifPickerContent .gif-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 15px;
    }
    .f6c5-main-container .auth-modal-content {
        padding: 20px;
        gap: 15px;
    }
    .f6c5-main-container .auth-modal-content h2 {
        font-size: 1.3rem;
    }
    .f6c5-main-container .auth-options button,
    .f6c5-main-container #authForm button {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    .f6c5-main-container #authForm h3 {
        font-size: 1.1rem;
    }
    .f6c5-main-container #authForm input {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

.f6c5-avatar-link {
    position: relative;
    display: inline-block;
}

.f6c5-avatar-link::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding: 5px 10px;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 100;
    box-shadow: 0 2px 5px var(--shadow-light);
}

.f6c5-avatar-link:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

#commentingUserAvatarLink {
    height: fit-content;
}

#commentingUserAvatarLink:focus {
    outline: none;
}

.f6c5-footer {
    text-align: center;
    padding: 25px 20px 20px 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}

.f6c5-footer p {
    display: block !important;
    margin: 0 !important;
}

.f6c5-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    cursor: pointer;
}

.f6c5-footer a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

#f6c5-legal-modal .f6c5-modal-content {
    max-width: 800px;
}

#f6c5-legal-modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 15px;
    text-align: left;
}

#f6c5-legal-modal-body h2 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

#f6c5-legal-modal-body p,
#f6c5-legal-modal-body li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.7;
    display: block !important;
}

#f6c5-legal-modal-body ul {
    list-style-position: inside;
    padding-left: 0;
}

.f6c5-main-container .f6c5-rules-collapsible {
    padding: 20px 25px 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.f6c5-main-container .rules-toggle-button {
    width: 100%;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-family: inherit;
}

.f6c5-main-container .rules-toggle-button:hover {
    background-color: var(--bg-input);
    border-color: var(--accent-color);
}

.f6c5-main-container .rules-toggle-button i {
    transition: transform 0.3s ease;
}

.f6c5-main-container .rules-toggle-button.active i {
    transform: rotate(180deg);
}

.f6c5-main-container .rules-toggle-button.active {
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
}

.f6c5-main-container .rules-toggle-button:focus {
    outline: none;
}

.f6c5-main-container .rules-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background-color: var(--bg-primary);
    border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
    border: 1px solid var(--border-color);
    border-top: none;
}

.f6c5-main-container .rules-content.active {
    padding: 20px;
    max-height: 300px;
}

.f6c5-main-container .rules-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.f6c5-main-container .rules-content li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.f6c5-main-container .rules-content li i {
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .f6c5-main-container .f6c5-rules-collapsible {
        padding: 0 15px 15px 15px;
    }
}
