/* ============================================
   MMA.SOCIAL - Forum Styles
   .fm-* prefix
   2026 Premium Design
   ============================================ */

.fm-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 20px 60px;
}

/* Header */
.fm-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.fm-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary, #fff);
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.fm-header-sub {
    font-size: 0.88rem;
    color: var(--text-muted, #606075);
    margin: 0;
}

.fm-new-thread-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--accent-gold, #E8B830), #ffd700);
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(212,175,55,0.25);
    white-space: nowrap;
    flex-shrink: 0;
}

.fm-new-thread-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212,175,55,0.35);
}

/* ============================================
   CATEGORY CARDS (Forum Index)
   ============================================ */
.fm-categories {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fm-category-card {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 22px 24px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    box-shadow: var(--glass-shadow);
    text-decoration: none;
    transition: all 0.25s ease;
}

.fm-category-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
    box-shadow: var(--glass-shadow-hover);
    background: var(--glass-bg-hover);
}

.fm-cat-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 48px;
    text-align: center;
}

.fm-cat-info {
    flex: 1;
    min-width: 0;
}

.fm-cat-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin: 0 0 4px;
}

.fm-cat-desc {
    font-size: 0.85rem;
    color: var(--text-muted, #606075);
    margin: 0 0 6px;
    line-height: 1.5;
}

.fm-cat-latest {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-secondary, #a8a8b8);
    overflow: hidden;
    white-space: nowrap;
}

.fm-cat-latest-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 0.6rem;
    flex-shrink: 0;
    line-height: 1;
}

.fm-cat-latest-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.fm-cat-latest-by {
    color: var(--text-muted, #606075);
    flex-shrink: 0;
}

.fm-cat-latest-time {
    color: var(--text-muted, #606075);
    font-size: 0.72rem;
    flex-shrink: 0;
    margin-left: auto;
}

.fm-cat-stats {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
}

.fm-cat-stat {
    text-align: center;
}

.fm-cat-stat-val {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
}

.fm-cat-stat-lbl {
    font-size: 0.65rem;
    color: var(--text-muted, #606075);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ============================================
   THREAD CARDS (Category Page)
   Card-based thread listing with avatars
   ============================================ */
.fm-thread-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* --- Thread Card --- */
.fm-thread-card {
    position: relative;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 22px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    box-shadow: var(--glass-shadow);
    text-decoration: none;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    min-height: 44px;
}

.fm-thread-card:hover {
    border-color: var(--accent-gold, #E8B830);
    background: var(--glass-bg-hover);
    transform: translateY(-2px);
    box-shadow: var(--glass-shadow-hover);
}

/* Pinned thread card */
.fm-thread-card.pinned {
    border-color: rgba(212,175,55,0.5);
    background: linear-gradient(135deg, rgba(212,175,55,0.06), transparent);
}

.fm-thread-card.pinned:hover {
    border-color: var(--accent-gold, #E8B830);
}

/* Locked thread card */
.fm-thread-card.locked {
    opacity: 0.8;
}

/* --- Avatar Column --- */
.fm-tc-avatar {
    flex-shrink: 0;
    padding-top: 2px;
}

.fm-tc-avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border, #252535);
    display: block;
}

.fm-tc-avatar-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1;
    text-transform: uppercase;
    user-select: none;
}

/* --- Body / Main Content --- */
.fm-tc-body {
    flex: 1;
    min-width: 0;
}

.fm-tc-title-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 4px;
}

.fm-tc-pin, .fm-tc-lock {
    font-size: 0.85rem;
    flex-shrink: 0;
    line-height: 1.4;
}

.fm-tc-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fm-tc-preview {
    font-size: 0.82rem;
    color: var(--text-muted, #606075);
    line-height: 1.5;
    margin: 4px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fm-tc-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.fm-tc-author {
    font-size: 0.78rem;
    color: var(--text-secondary, #a8a8b8);
    font-weight: 600;
}

.fm-tc-dot {
    font-size: 0.6rem;
    color: var(--text-muted, #606075);
    line-height: 1;
}

.fm-tc-time {
    font-size: 0.75rem;
    color: var(--text-muted, #606075);
    font-family: 'JetBrains Mono', monospace;
}

/* --- Right Column: Stats + Last Reply --- */
.fm-tc-right {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    padding-top: 2px;
}

.fm-tc-stats {
    display: flex;
    gap: 14px;
    align-items: center;
}

.fm-tc-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.fm-tc-stat-icon {
    color: var(--text-muted, #606075);
    flex-shrink: 0;
    opacity: 0.7;
}

.fm-tc-stat-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary, #a8a8b8);
}

.fm-tc-last-reply {
    text-align: right;
}

.fm-tc-lr-by {
    display: block;
    font-size: 0.72rem;
    color: var(--text-secondary, #a8a8b8);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 120px;
}

.fm-tc-lr-time {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted, #606075);
    white-space: nowrap;
}

/* --- Legacy class compat (old .fm-thread-item kept for thread.php if needed) --- */
.fm-thread-item {
    position: relative;
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 16px 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    box-shadow: var(--glass-shadow);
    margin-bottom: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.fm-thread-item:hover {
    border-color: var(--glass-border-hover);
    background: var(--glass-bg-hover);
}

.fm-thread-item.pinned {
    border-color: var(--accent-gold);
    background: linear-gradient(135deg, rgba(212,175,55,0.04), transparent);
}

/* ============================================
   THREAD DETAIL
   ============================================ */
.fm-thread-detail {
    margin-bottom: 24px;
}

.fm-thread-detail-header {
    margin-bottom: 18px;
}

.fm-thread-detail-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary, #fff);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.fm-thread-detail-meta {
    display: flex;
    gap: 14px;
    font-size: 0.8rem;
    color: var(--text-muted, #606075);
    flex-wrap: wrap;
}

/* ============================================
   POSTS (Forum replies)
   ============================================ */
.fm-replies-header {
    margin-bottom: 16px;
}

.fm-replies-header h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted, #606075);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.fm-posts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.fm-post {
    display: flex;
    gap: 16px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    box-shadow: var(--glass-shadow);
    padding: 20px;
    transition: border-color 0.2s;
}

.fm-post:hover {
    border-color: var(--glass-border-hover);
}

.fm-post-op {
    border-color: rgba(212,175,55,0.2);
    background: linear-gradient(135deg, rgba(212,175,55,0.03), transparent);
}

/* Post Sidebar (votes + avatar) */
.fm-post-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    min-width: 50px;
}

.fm-vote-btn {
    background: none;
    border: none;
    color: var(--text-muted, #606075);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.15s ease;
    line-height: 1;
}

.fm-vote-btn:hover {
    background: var(--bg-tertiary, #16161f);
}

.fm-vote-up:hover, .fm-vote-up.voted {
    color: var(--accent-green, #22c55e);
}

.fm-vote-down:hover, .fm-vote-down.voted {
    color: var(--accent-red, #ef4444);
}

.fm-vote-score {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-secondary, #a8a8b8);
}

.fm-post-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border, #252535);
    margin-top: 8px;
}

.fm-post-avatar-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold, #E8B830), #ffd700);
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: 8px;
}

/* Post Content */
.fm-post-content {
    flex: 1;
    min-width: 0;
}

.fm-post-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.fm-post-author {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
    text-decoration: none;
    transition: color 0.2s;
}

.fm-post-author:hover {
    color: var(--accent-gold, #E8B830);
}

.fm-post-time {
    font-size: 0.75rem;
    color: var(--text-muted, #606075);
    margin-left: auto;
}

.fm-post-body {
    font-size: 0.92rem;
    color: var(--text-secondary, #a8a8b8);
    line-height: 1.7;
    word-wrap: break-word;
}

.fm-post-body.deleted {
    color: var(--text-muted, #606075);
    font-style: italic;
}

/* Post Actions */
.fm-post-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.fm-reply-toggle {
    background: none;
    border: none;
    color: var(--text-muted, #606075);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.2s;
    font-family: inherit;
}

.fm-reply-toggle:hover {
    color: var(--accent-gold, #E8B830);
}

/* Inline Reply */
.fm-inline-reply {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border, #252535);
}

.fm-inline-reply.active {
    display: block;
}

.fm-inline-reply textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-tertiary, #16161f);
    border: 1px solid var(--border, #252535);
    border-radius: 10px;
    color: var(--text-primary, #fff);
    font-size: 0.88rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.fm-inline-reply textarea:focus {
    outline: none;
    border-color: var(--accent-gold, #E8B830);
}

.fm-inline-reply-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

.fm-reply-cancel {
    padding: 7px 16px;
    background: none;
    border: 1px solid var(--border, #252535);
    border-radius: 8px;
    color: var(--text-muted, #606075);
    font-size: 0.82rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.fm-reply-cancel:hover {
    border-color: var(--text-muted, #606075);
    color: var(--text-secondary, #a8a8b8);
}

.fm-reply-submit {
    padding: 7px 18px;
    background: var(--accent-gold, #E8B830);
    border: none;
    border-radius: 8px;
    color: #000;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.fm-reply-submit:hover {
    background: #e8c547;
    transform: translateY(-1px);
}

.fm-reply-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   MAIN REPLY FORM (bottom of thread)
   ============================================ */
.fm-reply-form-wrap {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    box-shadow: var(--glass-shadow);
    padding: 22px 24px;
    margin-bottom: 28px;
}

.fm-reply-form-wrap h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted, #606075);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 14px;
}

.fm-reply-textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-tertiary, #16161f);
    border: 1px solid var(--border, #252535);
    border-radius: 12px;
    color: var(--text-primary, #fff);
    font-size: 0.92rem;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.fm-reply-textarea:focus {
    outline: none;
    border-color: var(--accent-gold, #E8B830);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}

.fm-reply-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.fm-char-count {
    font-size: 0.75rem;
    color: var(--text-muted, #606075);
    font-family: 'JetBrains Mono', monospace;
}

.fm-reply-submit-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--accent-gold, #E8B830), #ffd700);
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(212,175,55,0.25);
}

.fm-reply-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212,175,55,0.35);
}

.fm-reply-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Locked / Login notice */
.fm-locked-notice {
    text-align: center;
    padding: 24px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    box-shadow: var(--glass-shadow);
    color: var(--text-muted, #606075);
    font-size: 0.92rem;
    margin-bottom: 28px;
}

.fm-locked-notice a {
    color: var(--accent-gold, #E8B830);
    text-decoration: none;
    font-weight: 600;
}

.fm-locked-notice a:hover {
    text-decoration: underline;
}

/* ============================================
   NEW THREAD FORM
   ============================================ */
.fm-new-thread-form {
    max-width: 700px;
}

.fm-form-field {
    margin-bottom: 22px;
}

.fm-form-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary, #a8a8b8);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.fm-form-input,
.fm-form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary, #16161f);
    border: 1px solid var(--border, #252535);
    border-radius: 12px;
    color: var(--text-primary, #fff);
    font-size: 0.92rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.fm-form-input:focus,
.fm-form-textarea:focus {
    outline: none;
    border-color: var(--accent-gold, #E8B830);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}

.fm-form-textarea {
    resize: vertical;
    min-height: 200px;
}

.fm-form-help {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted, #606075);
    margin-top: 6px;
    font-family: 'JetBrains Mono', monospace;
}

.fm-form-errors {
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid var(--accent-red, #ef4444);
    border-radius: 10px;
    color: var(--accent-red, #ef4444);
    font-size: 0.88rem;
    margin-bottom: 16px;
}

.fm-submit-btn {
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--accent-gold, #E8B830), #ffd700);
    color: #000;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(212,175,55,0.25);
}

.fm-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212,175,55,0.35);
}

.fm-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.fm-empty {
    text-align: center;
    padding: 80px 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    box-shadow: var(--glass-shadow);
}

.fm-empty-icon {
    font-size: 3rem;
    margin-bottom: 14px;
    opacity: 0.4;
}

.fm-empty h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin: 0 0 8px;
}

.fm-empty p {
    font-size: 0.9rem;
    color: var(--text-muted, #606075);
    margin: 0;
}

/* ============================================
   PAGINATION
   ============================================ */
.fm-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border, #252535);
}

.fm-page-btn {
    padding: 9px 15px;
    background: var(--bg-secondary, #101018);
    border: 1px solid var(--border, #252535);
    border-radius: 10px;
    color: var(--text-secondary, #a8a8b8);
    font-size: 0.82rem;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.fm-page-btn:hover {
    border-color: var(--accent-gold, #E8B830);
    color: var(--text-primary, #fff);
}

.fm-page-btn.active {
    background: var(--accent-gold, #E8B830);
    color: #000;
    border-color: var(--accent-gold, #E8B830);
    font-weight: 700;
}

/* ============================================
   THREAD TAGS
   ============================================ */
.fm-tag {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.fm-tag-discussion { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.fm-tag-news { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.fm-tag-question { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.fm-tag-prediction { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.fm-tag-results { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

/* ============================================
   EMOJI REACTIONS ON POSTS
   ============================================ */
.fm-reactions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.fm-reaction {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.fm-reaction:hover {
    border-color: var(--accent-gold);
    background: var(--glass-bg-hover);
}

.fm-reaction.active {
    border-color: var(--accent-gold);
    background: rgba(232, 184, 48, 0.1);
}

.fm-reaction-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================
   NEW POSTS POLLING BANNER
   ============================================ */
.fm-new-posts-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(212,175,55,0.1), rgba(212,175,55,0.05));
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: var(--glass-radius);
    margin-bottom: 16px;
    font-size: 0.88rem;
    color: var(--text-secondary, #a8a8b8);
    animation: fm-banner-slide-in 0.3s ease;
}

.fm-new-posts-banner .fm-new-posts-count {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--accent-gold, #E8B830);
}

.fm-new-posts-btn {
    padding: 6px 16px;
    background: var(--accent-gold, #E8B830);
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.fm-new-posts-btn:hover {
    background: #e8c547;
    transform: translateY(-1px);
}

@keyframes fm-banner-slide-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fm-post.fm-post-new {
    animation: fm-post-fade-in 0.4s ease;
}

@keyframes fm-post-fade-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .fm-page { padding: 16px 12px 60px; }

    .fm-header {
        flex-direction: column;
        gap: 12px;
    }

    .fm-header h1 { font-size: 1.25rem; }

    /* Category cards */
    .fm-category-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 18px 16px;
        border-radius: 12px;
    }

    .fm-cat-stats {
        align-self: flex-end;
    }

    .fm-cat-latest-time { display: none; }

    /* Thread cards */
    .fm-thread-card {
        gap: 12px;
        padding: 14px 16px;
    }

    .fm-tc-avatar-img {
        width: 36px;
        height: 36px;
    }

    .fm-tc-avatar-initial {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .fm-tc-title {
        font-size: 0.9rem;
    }

    /* Hide last reply on tablet */
    .fm-tc-last-reply { display: none; }

    /* Legacy thread item compat */
    .fm-thread-item {
        flex-wrap: wrap;
        gap: 10px;
        padding: 14px 14px;
    }

    .fm-thread-avatar { display: none; }
    .fm-thread-last-reply { display: none; }

    .fm-thread-stats {
        margin-left: auto;
    }

    /* Posts */
    .fm-post {
        flex-direction: column;
        gap: 10px;
        padding: 16px;
    }

    .fm-post-sidebar {
        flex-direction: row;
        gap: 10px;
    }

    .fm-post-avatar, .fm-post-avatar-ph {
        margin-top: 0;
    }

    .fm-thread-detail-title { font-size: 1.15rem; }

    .fm-reply-form-wrap { padding: 16px; }
}

@media (max-width: 480px) {
    /* Thread cards: smaller avatar, hide preview */
    .fm-thread-card {
        gap: 10px;
        padding: 12px 14px;
    }

    .fm-tc-avatar-img {
        width: 32px;
        height: 32px;
    }

    .fm-tc-avatar-initial {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .fm-tc-preview { display: none; }

    .fm-tc-stats { gap: 10px; }

    .fm-tc-right {
        gap: 6px;
    }

    .fm-tc-stat-val {
        font-size: 0.78rem;
    }

    .fm-tc-meta {
        margin-top: 6px;
    }

    /* Legacy compat */
    .fm-thread-stats { gap: 10px; }
}
