/* 
   TRUTH SOCIAL PREMIUM - UNIFIED DESIGN SYSTEM
   Author: Antigravity
   Prefix: ts-
*/

:root {
    /* Truth Social Color Palette (Dark Theme Default) */
    --ts-primary: #8B3DFF;
    --ts-primary-hover: #7026E0;
    --ts-primary-light: rgba(139, 61, 255, 0.1);
    --primary: var(--ts-primary);

    --ts-bg: #000000;
    --ts-surface: #15181c;
    --ts-surface-hover: #1c1f23;

    --ts-text: #FFFFFF;
    --ts-text-secondary: #71767b;
    --ts-text-muted: #71767b;
    --ts-text-dim: #aab8c2;

    --ts-border: #2f3336;
    --ts-divider: rgba(255, 255, 255, 0.1);

    --ts-success: #00ba7c;
    --ts-danger: #f4212e;
    --ts-warning: #ffd400;

    --ts-radius-sm: 8px;
    --ts-radius-md: 16px;
    --ts-radius-lg: 24px;
    --ts-radius-full: 9999px;

    --ts-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
    --ts-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

    --ts-font: 'Inter', 'Outfit', sans-serif;
}

[data-theme="light"] {
    --ts-bg: #FFFFFF;
    --ts-surface: #FFFFFF;
    --ts-surface-hover: #f7f9f9;

    --ts-text: #0F1419;
    --ts-text-secondary: #536471;
    --ts-text-muted: #536471;
    --ts-text-dim: #8ba2ad;

    --ts-border: #eff3f4;
    --ts-divider: rgba(0, 0, 0, 0.06);

    --ts-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
}

/* Glassmorphism */
.ts-glass {
    background: rgba(var(--ts-bg-rgb, 0,0,0), 0.9) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ── Base ── */
body {
    margin: 0;
    padding: 0;
    background: var(--ts-bg);
    color: var(--ts-text);
    font-family: 'Inter', 'Roboto', 'Outfit', sans-serif;
    line-height: 1.5;
    direction: rtl;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}

* {
    box-sizing: border-box;
    word-break: break-word;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--ts-transition);
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ── Layout ── */
.ts-app-layout {
    display: grid;
    grid-template-columns: 275px 1fr 350px;
    max-width: 1300px;
    margin: 0 auto;
    min-height: 100vh;
}



/* Tablet / Small Desktop (Collapse Nav, Hide Sidebar Right) */
@media (max-width: 1100px) {
    .ts-app-layout {
        grid-template-columns: 80px 1fr;
    }

    .ts-sidebar-right {
        display: none;
    }

    .ts-sidebar-left {
        align-items: center;
        padding: 0 !important;
    }

    .ts-nav-item {
        width: 50px !important;
        height: 50px !important;
        padding: 0 !important;
        justify-content: center;
        gap: 0 !important;
        margin: 8px auto !important;
    }

    .ts-nav-item .nav-label,
    .sidebar-user-info,
    .more-icon {
        display: none !important;
    }

    .ts-logo-wrap {
        display: flex;
        justify-content: center;
        width: 100%;
        padding: 12px 0 !important;
    }

    .ts-sidebar-footer {
        display: flex;
        justify-content: center;
        padding: 12px 0;
    }

    .sidebar-user-card {
        padding: 0 !important;
        justify-content: center;
    }
}

/* Mobile (Hide Nav, Show Bottom Nav) */
@media (max-width: 600px) {
    .ts-app-layout {
        grid-template-columns: 1fr;
    }

    .ts-sidebar-left {
        display: none !important;
    }

    .ts-bottom-nav {
        display: flex !important;
    }

    .ts-main-content {
        border-left: none;
        padding-bottom: 70px;
    }
}

/* ── Navigation (Left) ── */
.ts-sidebar-left {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--ts-border);
    overflow: hidden;
}

.ts-logo-wrap {
    padding: 12px;
    flex-shrink: 0;
    z-index: 10;
    background: var(--ts-bg);
}

.ts-sidebar-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    scrollbar-width: none;
}

.ts-sidebar-content::-webkit-scrollbar {
    display: none;
}

.ts-logo {
    font-size: 30px;
    font-weight: 900;
    color: var(--ts-primary);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.ts-logo:hover {
    background: var(--ts-primary-light);
}

.ts-nav-list {
    list-style: none;
    margin-top: 4px;
    flex: 1;
}

.ts-nav-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 16px;
    border-radius: var(--ts-radius-full);
    font-size: 20px;
    font-weight: 500;
    margin: 4px 0;
    width: fit-content;
}

.ts-nav-item:hover {
    background: var(--ts-surface-hover);
}

.ts-nav-item.active {
    font-weight: 800;
}

.ts-sidebar-footer {
    margin-top: auto;
    padding: 16px 8px;
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--ts-radius-full);
    transition: var(--ts-transition);
}

.sidebar-user-card:hover {
    background: var(--ts-surface-hover);
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
    line-height: 1.2;
}

.sidebar-user-info .name {
    font-weight: 800;
    font-size: 15px;
    color: var(--ts-text);
}

.sidebar-user-info .username {
    font-size: 13px;
    color: var(--ts-text-muted);
}

/* ── Content (Center) ── */
.ts-main-content {
    border-left: 1px solid var(--ts-border);
    min-width: 0;
}

.ts-feed-header {
    position: sticky;
    top: 0;
    background: var(--ts-bg);
    backdrop-filter: blur(12px);
    padding: 16px;
    border-bottom: 1px solid var(--ts-border);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 20px;
}

.ts-feed-header h2 {
    font-size: 20px;
    font-weight: 800;
}

.ts-feed-tabs {
    display: flex;
    border-bottom: 1px solid var(--ts-border);
}

.ts-feed-tab-item {
    flex: 1;
    text-align: center;
    padding: 16px;
    font-weight: 700;
    color: var(--ts-text-muted);
    position: relative;
    cursor: pointer;
}

.ts-feed-tab-item.active {
    color: var(--ts-text);
}

.ts-feed-tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 4px;
    background: var(--ts-primary);
    border-radius: 2px;
}

/* ── Creation ── */
.ts-create-post {
    padding: 16px;
    border-bottom: 1px solid var(--ts-border);
    display: flex;
    gap: 12px;
}

.ts-textarea {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--ts-text);
    font-size: 20px;
    resize: none;
    font-family: inherit;
    margin-top: 8px;
    min-height: 50px;
    transition: min-height 0.2s ease;
}

.ts-textarea:focus {
    min-height: 120px;
}

/* ── Create Post Box ── */
.ts-create-post {
    background: var(--ts-surface);
    margin-bottom: 12px;
    border-radius: var(--ts-radius-md);
    border: 1px solid var(--ts-border);
    padding: 16px 20px;
    display: flex;
    gap: 16px;
    margin: 0 5px 05px 5px;
}

.ts-create-post .ts-post-header {
    flex-shrink: 0;
}

.ts-create-post .ts-post-body {
    flex: 1;
    min-width: 0;
}

.ts-create-post .ts-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--ts-border);
    padding-top: 12px;
    margin-top: 12px;
}

/* ── Post Card ── */
.ts-post-card {
    padding: 16px;
    border-bottom: 1px solid var(--ts-border);
    transition: var(--ts-transition);
    cursor: pointer;
    overflow: visible !important;
}

.ts-post-card:hover {
    background: var(--ts-surface-hover);
}

.ts-post-header {
    display: flex;
    gap: 12px;
    position: relative;
}

.ts-post-body {
    flex: 1;
    min-width: 0;

}

.ts-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: #333;
}

.ts-user-info {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.ts-display-name {
    font-weight: 800;
    font-size: 15px;
}

.ts-post-time {
    color: var(--ts-text-muted);
    font-size: 15px;
}

.ts-post-text {
    font-size: 15px;
    line-height: 1.5;
    margin-top: 4px;
    color: var(--ts-text);
    white-space: pre-wrap;
}

.ts-post-media {
    margin-top: 12px;
    border-radius: var(--ts-radius-md);
    overflow: hidden;
    border: 1px solid var(--ts-border);
}

.ts-post-footer {
    display: flex;
    justify-content: space-between;
    max-width: 425px;
    margin-top: 12px;
    color: var(--ts-text-muted);
}

.ts-post-action {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    padding: 8px;
    border-radius: var(--ts-radius-full);
    background: transparent;
    border: none;
    color: var(--ts-text-dim);
    cursor: pointer;
}

.ts-post-action:hover {
    background: var(--ts-primary-light);
    color: var(--ts-primary);
}

.ts-post-action.like:hover {
    background: rgba(244, 33, 46, 0.1);
    color: var(--ts-danger);
}

/* ── Dropdowns ── */
.ts-dropdown-wrap {
    position: relative;
}

.ts-dropdown {
    position: absolute;
    top: 30px;
    left: 0;
    right: auto;
    background: var(--ts-bg);
    border: 1px solid var(--ts-border);
    border-radius: var(--ts-radius-md);
    box-shadow: var(--ts-shadow);
    z-index: 1000;
    min-width: 160px;
    padding: 6px;
    display: none;
    transform: translateY(-5px);
    transition: opacity 0.2s, transform 0.2s;
}

.ts-dropdown.open {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.ts-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--ts-radius-sm);
    color: var(--ts-text);
    font-weight: 600;
    cursor: pointer;
}

.ts-dropdown-item:hover {
    background: var(--ts-surface-hover);
}

.ts-dropdown-item.danger {
    color: var(--ts-danger);
}

.ts-dropdown-item.danger:hover {
    background: rgba(244, 33, 46, 0.1);
}

/* ── Articles Components ── */
.x-tabs { display: flex; width: 100%; border-bottom: 1px solid var(--ts-divider); }
.x-tab { flex: 1; text-align: center; padding: 16px 0; font-weight: 700; color: var(--ts-text-muted); cursor: pointer; position: relative; transition: background 0.2s; }
.x-tab:hover { background: var(--ts-surface-hover); }
.x-tab.active { color: var(--ts-text); }
.x-tab.active::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 56px; height: 4px; background: var(--ts-primary); border-radius: 2px; }

.x-categories-scroll { padding: 12px 16px; border-bottom: 1px solid var(--ts-divider); overflow-x: auto; display: flex; gap: 8px; white-space: nowrap; scrollbar-width: none; }
.x-categories-scroll::-webkit-scrollbar { display: none; }
.cat-chip { padding: 6px 16px; border-radius: 20px; border: 1px solid var(--ts-border); font-size: 14px; font-weight: 700; color: var(--ts-text-secondary); cursor: pointer; transition: all 0.2s; background: transparent; }
.cat-chip:hover { background: var(--ts-surface-hover); border-color: var(--ts-primary); color: var(--ts-primary); }
.cat-chip.active { background: var(--ts-text); color: var(--ts-bg); border-color: var(--ts-text); }

.x-art-card { padding: 16px; border-bottom: 1px solid var(--ts-divider); display: flex; gap: 12px; cursor: pointer; transition: background 0.2s; }
.x-art-card:hover { background: var(--ts-surface-hover); }
.x-art-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid var(--ts-divider); }
.x-art-body { flex-grow: 1; min-width: 0; }
.x-art-header { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; flex-wrap: wrap; }
.x-art-author { font-weight: 800; color: var(--ts-text); font-size: 15px; }
.x-art-handle { color: var(--ts-text-muted); font-size: 15px; }
.x-art-dot { color: var(--ts-text-muted); font-size: 15px; }
.x-art-time { color: var(--ts-text-muted); font-size: 15px; }

.x-art-follow-btn { margin-right: auto; background: var(--ts-text); color: var(--ts-bg); border: none; padding: 6px 16px; border-radius: 20px; font-size: 14px; font-weight: 800; cursor: pointer; transition: opacity 0.2s; }
.x-art-follow-btn.followed { background: transparent; border: 1px solid var(--ts-border); color: var(--ts-text); }
.x-art-follow-btn:hover { opacity: 0.9; }

.x-art-title { font-size: 18px; font-weight: 800; line-height: 1.3; margin-bottom: 8px; color: var(--ts-text); display: block; text-decoration: none; }
.x-art-preview { font-size: 15px; line-height: 1.5; color: var(--ts-text); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; opacity: 0.9; }

.x-art-image-wrap { border-radius: 16px; overflow: hidden; border: 1px solid var(--ts-divider); margin-bottom: 12px; max-height: 350px; background: var(--ts-surface); }
.x-art-image { width: 100%; height: auto; display: block; object-fit: cover; }

.x-art-actions { display: flex; justify-content: space-between; max-width: 380px; color: var(--ts-text-muted); }
.x-art-action { display: flex; align-items: center; gap: 8px; font-size: 13px; transition: all 0.2s; padding: 8px 12px; border-radius: 20px; }
.x-art-action:hover { background: var(--ts-primary-light); color: var(--ts-primary); }

.x-skeleton-card { height: 200px; border-bottom: 1px solid var(--ts-divider); margin: 16px; background: linear-gradient(90deg, transparent, var(--ts-surface-hover), transparent); background-size: 200% 100%; animation: x-shimmer 1.5s infinite; border-radius: 16px; }
@keyframes x-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Profile ── */
.ts-profile-hero {
    border-bottom: 1px solid var(--ts-border);
}

.ts-profile-cover {
    height: 90px;
    background: #15181c;
    overflow: hidden;
}

.ts-profile-header-box {
    padding: 0 16px 16px;
    position: relative;
    margin-top: 0;
}

.ts-profile-avatar-wrap {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--ts-bg);
    overflow: hidden;
    background: var(--ts-surface);
    margin-top: -60px;
    position: relative;
    z-index: 2;
}

.ts-profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ts-profile-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 16px;
}

.ts-profile-actions {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

#themeIconSun {
    color: #FFD400;
}

#themeIconMoon {
    color: #8B3DFF;
}

.ts-profile-info {
    margin-top: 12px;
}

.ts-profile-display-name {
    font-size: 22px;
    font-weight: 900;
}

.ts-profile-username {
    color: var(--ts-text-muted);
    font-size: 16px;
}

.ts-profile-bio {
    margin-top: 12px;
    font-size: 15px;
    color: var(--ts-text);
}

.ts-profile-stats {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.ts-stat-item {
    display: flex;
    gap: 6px;
    font-size: 15px;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer;
    color: var(--ts-text);
    font-family: inherit;
}

.ts-stat-item:hover .ts-stat-lab {
    text-decoration: underline;
}

.ts-stat-val {
    font-weight: 900;
    color: var(--ts-text);
}

.ts-stat-lab {
    color: var(--ts-text-muted);
    font-weight: 500;
}

/* ── Feed Header & Search ── */
.ts-feed-header,
.ts-search-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 16px;
    background: var(--ts-bg);
    border-bottom: 1px solid var(--ts-divider);
    height: 53px;
}

.ts-feed-header h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
}

.ts-feed-header .ts-text-muted {
    font-size: 13px;
}

.ts-search-box .games-icon-link {
    color: var(--ts-text-dim);
    display: flex;
    align-items: center;
}

.ts-search-box .games-icon-link:hover {
    color: var(--ts-primary);
}

.feed-search-input-wrap {
    background: var(--ts-surface-hover);
    border-radius: var(--ts-radius-full);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    height: 38px;
    width: 100%;
    border: 1px solid transparent;
    transition: var(--ts-transition);
}

.feed-search-input-wrap:focus-within {
    background: var(--ts-bg);
    border-color: var(--ts-primary);
}

.feed-search-icon {
    color: var(--ts-text-muted);
    width: 18px;
}

.ts-search-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--ts-text);
    font-size: 15px;
    width: 100%;
}

/* ── Tabs ── */
.ts-feed-tabs {
    display: flex;
    border-bottom: 1px solid var(--ts-border);
    background: var(--ts-bg);
}

.ts-feed-tab-item {
    flex: 1;
    padding: 16px;
    text-align: center;
    font-weight: 800;
    color: var(--ts-text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    transition: var(--ts-transition);
    font-size: 15px;
}

.ts-feed-tab-item:hover {
    background: var(--ts-surface-hover);
}

.ts-feed-tab-item.active {
    color: var(--ts-text);
}

.ts-feed-tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 4px;
    background: var(--ts-primary);
    border-radius: var(--ts-radius-full);
}

/* ── Auth (Login/Register) ── */
.ts-auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: var(--ts-bg);
}

.ts-auth-card {
    background: var(--ts-surface);
    width: 100%;
    max-width: 450px;
    border-radius: var(--ts-radius-lg);
    border: 1px solid var(--ts-border);
    padding: 40px;
    box-shadow: var(--ts-shadow);
}

.ts-auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.ts-auth-header h1 {
    font-size: 28px;
    font-weight: 900;
    margin-top: 16px;
}

.ts-auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Notifications ── */
.ts-notif-item {
    display: flex;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--ts-border);
    transition: var(--ts-transition);
    cursor: pointer;
}

.ts-notif-item:hover {
    background: var(--ts-surface-hover);
}

.ts-notif-item.unread {
    background: var(--ts-primary-light);
}

.ts-notif-icon {
    color: var(--ts-primary);
}

/* ── Components ── */
.ts-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--ts-radius-full);
    font-weight: 800;
    cursor: pointer;
    border: none;
    transition: var(--ts-transition);
    font-size: 15px;
}

.ts-btn-primary {
    background: var(--ts-primary);
    color: white;
}

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

.ts-btn-outline {
    background: transparent;
    border: 1px solid var(--ts-border);
    color: var(--ts-text);
    font-weight: 800;
}

.ts-btn-outline:hover {
    background: var(--ts-surface-hover);
}

.ts-btn-danger {
    background: var(--ts-danger);
    color: white;
}

.ts-btn-sm {
    padding: 6px 16px;
    font-size: 13px;
}

.ts-input {
    background: var(--ts-surface);
    border: 1px solid var(--ts-border);
    border-radius: var(--ts-radius-sm);
    padding: 14px;
    color: var(--ts-text);
    font-family: inherit;
    outline: none;
    width: 100%;
}

.ts-input:focus {
    border-color: var(--ts-primary);
}

















/* ── Auth Modal (Isolated) ── */
.auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000000;
    backdrop-filter: blur(4px);
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.auth-modal-content {
    background: var(--ts-bg);
    width: 100%;
    max-width: 450px;
    border-radius: var(--ts-radius-lg);
    box-shadow: var(--ts-shadow);
    position: relative;
    margin: auto;
}

/* ── Modals ── */
.comment-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(91, 112, 131, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000000;
    backdrop-filter: blur(4px);
    padding: 20px;
}


@media (max-width: 600px) {
    .auth-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .auth-modal-content {
        max-height: 95vh;
        border-radius: 20px 20px 0 0;
        border: none;
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .comment-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .comment-modal-content,
    .modal-content {
        max-height: 95vh;
        height: auto;
        border-radius: 20px 20px 0 0;
        border: none;
        width: 100%;
        position: relative;
        display: flex;
        flex-direction: column;
        transition: transform 0.3s cubic-bezier(0.1, 0, 0.3, 1);
    }

    /* Fix modal body scrolling */
    .comment-modal-body,
    .ts-modal-body {
        flex: 1;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
        max-height: none !important;
        padding: 12px;
    }

    /* Ensure modal header stays sticky */
    .ts-modal-header,
    .comment-modal-header {
        position: sticky;
        top: 0;
        background: var(--ts-bg);
        z-index: 10;
        padding: 16px;
        border-bottom: 1px solid var(--ts-border);
        flex-shrink: 0;
    }

    /* Modal footer sticky at bottom */
    .ts-modal-footer,
    .comment-modal-footer {
        position: sticky;
        bottom: 0;
        background: var(--ts-bg);
        z-index: 10;
        border-top: 1px solid var(--ts-border);
        flex-shrink: 0;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }

    /* Fix for notification items on mobile */
    .ts-notif-item {
        padding: 14px 16px;
    }
}

/* Also ensure body doesn't scroll when modal is open */
body.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}












.comment-modal-content,
.modal-content {
    background: var(--ts-bg);
    width: 100%;
    max-width: 600px;
    border-radius: var(--ts-radius-lg);
    max-height: 90vh;
    border: 1px solid var(--ts-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--ts-shadow);
}

.ts-modal-header {
    padding: 16px;
    border-bottom: 1px solid var(--ts-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ts-modal-title {
    font-size: 20px;
    font-weight: 800;
}

.ts-modal-body,
.comment-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    max-height: 70vh;
    scrollbar-width: thin;
    scrollbar-color: var(--ts-border) transparent;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    display: flex;
    flex-direction: column;
}

.comment-modal-body .ts-post-card {
    margin-bottom: 0;
    padding: 12px;
    border-bottom: 1px solid var(--ts-border);
}

.comment-modal-body .ts-post-card:last-child {
    border-bottom: none;
}

.ts-modal-footer {
    padding: 16px;
    border-top: 1px solid var(--ts-border);
}

/* ── Follow List (Refined) ── */
.follow-user-row {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--ts-border);
    gap: 12px;
    position: relative;
    min-height: 80px;
}

.follow-user-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    flex: 1;
    direction: rtl;
}

.follow-user-info {
    text-align: right;
    flex: 1;
    padding-right: 4px;
}

.follow-user-name {
    font-weight: 800;
    font-size: 15px;
    color: var(--ts-text);
    display: block;
}

.follow-user-meta {
    font-size: 13px;
    color: var(--ts-text-muted);
    display: block;
}

.follow-user-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--ts-border);
}

.follow-list-btn {
    position: absolute;
    left: 16px;
    bottom: 16px;
    min-width: 80px;
}

/* ── Textarea Scroll Hide ── */
textarea.ts-input {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    resize: none;
    overflow-y: auto;
}

textarea.ts-input::-webkit-scrollbar {
    display: none !important;
}

.comment-modal-footer .ts-post-footer {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    gap: 12px;
}

.comment-modal-footer .ts-avatar {
    margin-left: 8px;
}

#commentModalTextarea {
    width: 100%;
    flex: 1;
    border-radius: 20px !important;
    padding: 10px 16px !important;
    min-height: 40px;
    max-height: 120px;
}

/* ── Interaction ── */
.is-liked {
    color: var(--ts-danger) !important;
    fill: var(--ts-danger);
}

.is-disliked {
    color: var(--ts-primary) !important;
    fill: var(--ts-primary);
}

/* ── Compatibility Layer ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--ts-radius-full);
    font-weight: 800;
    cursor: pointer;
    border: none;
    transition: var(--ts-transition);
    font-size: 15px;
}

.btn-primary {
    background: var(--ts-primary);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--ts-border);
    color: var(--ts-text);
}

.input {
    background: var(--ts-surface);
    border: 1px solid var(--ts-border);
    border-radius: var(--ts-radius-sm);
    padding: 14px;
    color: var(--ts-text);
    font-family: inherit;
    outline: none;
    width: 100%;
}

/* ── Image Loading & Skeleton System ── */
.ts-media-box {
    width: 100%;
    background: linear-gradient(90deg, var(--ts-surface) 25%, var(--ts-border) 37%, var(--ts-surface) 63%);
    background-size: 400% 100%;
    animation: ts-shimmer 1.5s infinite;
    overflow: hidden;
    position: relative;
    border-radius: var(--ts-radius-md);
    aspect-ratio: 16/9;
    /* Default for posts */
}

.ts-media-box.avatar {
    border-radius: 50%;
    aspect-ratio: 1/1;
}

@keyframes ts-shimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

.ts-lazy-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, filter 0.3s ease-out;
    filter: blur(10px);
}

.ts-lazy-img.loaded {
    opacity: 1;
    filter: blur(0);
}

/* Remove shimmer animation when image/video is loaded */
.ts-media-box:has(.ts-lazy-img.loaded),
.ts-media-box:has(.ts-lazy-video.loaded) {
    animation: none;
    background: #000;
}

.ts-lazy-video:not(.loaded) {
    background-color: transparent !important;
}

.card {
    background: var(--ts-surface);
    border-radius: var(--ts-radius-md);
    border: 1px solid var(--ts-border);
    padding: 16px;
}

.text-muted {
    color: var(--ts-text-muted);
}

.text-primary {
    color: var(--ts-primary);
}

.text-danger {
    color: var(--ts-danger);
}

.animate-spin {
    animation: ts-spin 1s linear infinite;
}

@keyframes ts-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.ts-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--ts-bg);
    border-top: 1px solid var(--ts-border);
    display: none;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
    backdrop-filter: blur(12px);
}

.ts-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--ts-text-muted);
    font-size: 10px;
    text-decoration: none;
    min-width: 60px;
}

.ts-bottom-nav-item.active {
    color: var(--ts-primary);
}

.ts-bottom-nav-item svg {
    width: 24px;
    height: 24px;
}

/* ── Specific Overrides ── */
.verified-badge {
    width: 18.75px;
    height: 18.75px;
    fill: var(--ts-primary);
    margin-right: 2px;
}

.ts-btn-action {
    background: none;
    border: none;
    color: var(--ts-text-dim);
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: var(--ts-transition);
    padding: 8px;
    border-radius: 50%;
}

.ts-btn-action:hover {
    background: var(--ts-primary-light);
    color: var(--ts-primary);
}

.ts-btn-action.liked {
    color: var(--ts-danger);
}

.ts-btn-action.liked:hover {
    background: rgba(244, 33, 46, 0.1);
}


/* ── Upload Progress ── */
.upload-progress-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 300px;
    max-width: 90vw;
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.upload-progress-container::-webkit-scrollbar {
    display: none;
}

.upload-card {
    background: var(--ts-surface);
    border: 1px solid var(--ts-border);
    border-radius: var(--ts-radius-md);
    padding: 12px;
    box-shadow: var(--ts-shadow);
    animation: slideUp 0.3s ease;
}

.upload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.upload-title {
    font-weight: 800;
    font-size: 13px;
    color: var(--ts-text);
}

.upload-status {
    font-size: 11px;
    color: var(--ts-text-muted);
    margin-bottom: 4px;
}

.upload-bar-bg {
    background: #333;
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.upload-bar-fill {
    height: 100%;
    background: var(--ts-primary);
    width: 0%;
    transition: width 0.3s ease;
}

.upload-percentage {
    font-size: 11px;
    font-weight: 800;
    color: var(--ts-primary);
}

.upload-cancel {
    background: none;
    border: none;
    color: var(--ts-text-muted);
    cursor: pointer;
    padding: 2px;
}

.upload-cancel:hover {
    color: var(--ts-danger);
}

/* ── Utilities ── */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.gap-1 {
    gap: 4px;
}

.gap-2 {
    gap: 8px;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.text-sm {
    font-size: 13px;
}

.text-bold {
    font-weight: 800;
}

.mb-2 {
    margin-bottom: 8px;
}

.mt-2 {
    margin-top: 8px;
}

.w-full {
    width: 100%;
}

.hidden {
    display: none !important;
}

.reels-page .action-btn-v[onclick*="openReelComments"] {
    display: none !important;
}

/* ── Suggestions & Find Users ── */
.suggestions-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.suggestion-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--ts-border);
    transition: var(--ts-transition);
}

.suggestion-card:hover {
    background: var(--ts-surface-hover);
}

.suggestion-link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.suggestion-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--ts-surface-hover);
    border: 1px solid var(--ts-border);
}

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

.suggestion-name {
    font-weight: 800;
    font-size: 15px;
    color: var(--ts-text);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-username {
    color: var(--ts-text-muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.reels-page .ts-sidebar-left,
.reels-page .ts-sidebar-right {
    display: none !important;
}

.reels-page .ts-feed-main {
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
}

@media (max-width: 991px) {
    .ts-sidebar-right {
        display: none !important;
    }
}

/* ── Responsiveness ── */
@media (max-width: 1000px) {
    .ts-layout-container {
        grid-template-columns: 80px 1fr;
    }

    .ts-sidebar-left span {
        display: none;
    }

    .ts-sidebar-right {
        display: none;
    }
}

@media (max-width: 600px) {
    .ts-layout-container {
        grid-template-columns: 1fr;
        padding-bottom: 70px;
    }

    .ts-sidebar-left {
        display: none;
    }

    .ts-bottom-nav {
        display: flex;
    }

    .ts-feed-header {
        position: sticky;
        top: 0;
        z-index: 900;
        background: var(--ts-bg);
        backdrop-filter: blur(8px);
    }

    .ts-post-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .comment-modal-content {
        max-height: 95vh;
        border-radius: 20px 20px 0 0;
        border: none;
        align-self: flex-end;
        transition: transform 0.3s cubic-bezier(0.1, 0, 0.3, 1);
        position: relative;

    }

    .comment-modal-content::before {
        content: '';
        width: 40px;
        height: 5px;
        background: var(--ts-divider);
        border-radius: 3px;
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 100;
    }

    .comment-modal-header {
        padding-top: 24px !important;
    }

    .ts-modal-body,
    .comment-modal-body {
        max-height: 80vh;
    }

    .ts-auth-card {
        padding: 24px;
    }
}

/* ── Right Sidebar Cards ── */
.ts-sidebar-right {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ts-trend-card,
.sidebar-pod {
    background: var(--ts-surface);
    border-radius: 20px;
    border: 1px solid var(--ts-border);
    overflow: hidden;
    margin-bottom: 20px;
}

.ts-trend-header {
    padding: 16px;
    border-bottom: 1px solid var(--ts-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ts-trend-title {
    font-size: 19px;
    font-weight: 900;
    margin: 0;
    color: var(--ts-text);
}

.sidebar-pod-see-all {
    font-size: 13px;
    color: var(--ts-primary);
    font-weight: 500;
    text-decoration: none;
}

.sidebar-pod-see-all:hover {
    text-decoration: underline;
}

.ts-trend-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    transition: background 0.2s;
    cursor: pointer;
    justify-content: space-between;
    gap: 12px;
}

.ts-trend-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-person-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

.sidebar-person-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--ts-surface-hover);
    border: 1px solid var(--ts-border);
}

.sidebar-person-info {
    flex: 1;
    min-width: 0;
    text-align: right;
}

.sidebar-person-name {
    font-weight: 800;
    font-size: 15px;
    color: var(--ts-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-person-username {
    font-size: 13px;
    color: var(--ts-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Sidebar Ads ── */
.ad-sidebar-box {
    display: block;
    padding: 16px;
    text-decoration: none;
    transition: background 0.2s;
}

.ad-sidebar-box:hover {
    background: rgba(255, 255, 255, 0.03);
}

.ad-sidebar-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 12px;
    object-fit: cover;
    aspect-ratio: 16/9;
    border: 1px solid var(--ts-border);
}

.ad-sidebar-title {
    font-weight: 800;
    font-size: 15px;
    color: var(--ts-text);
    margin-bottom: 4px;
}

.ad-sidebar-url {
    font-size: 12px;
    color: var(--ts-text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ad-sidebar-desc {
    font-size: 13px;
    color: var(--ts-text-muted);
    line-height: 1.4;
}

/* ── Sidebar Footer ── */
.sidebar-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 12px;
}

.sidebar-footer-links a {
    font-size: 13px;
    color: var(--ts-text-muted);
    text-decoration: none;
}

.sidebar-footer-links a:hover {
    text-decoration: underline;
}

.sidebar-copyright {
    font-size: 13px;
    color: var(--ts-text-muted);
    padding: 0 12px;
    margin-top: 12px;
}

/* ── Notification Improvements ── */
.ts-notif-item {
    border-left: 3px solid transparent;
}

.ts-notif-item.unread {
    border-left-color: var(--ts-primary);
    background: rgba(84, 72, 238, 0.05);
}

/* ── Content Toggles ── */
.ts-read-more,
.ts-show-more {
    color: var(--ts-primary);
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-top: 4px;
}

.ts-read-more:hover,
.ts-show-more:hover {
    text-decoration: underline;
}

.ts-post-text {
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ts-profile-bio {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ts-text);
}

/* ── Video Player ── */
.video-player-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: var(--ts-radius-md);
    overflow: hidden;
    margin-top: 12px;
    border: 1px solid var(--ts-border);
}

/* Hide Native Browser Controls Aggressively */
.custom-video::-webkit-media-controls {
    display: none !important;
}

.custom-video::-webkit-media-controls-enclosure {
    display: none !important;
}

.custom-video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

.custom-video::-moz-media-controls {
    display: none !important;
}

.custom-video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    max-height: 700px;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    padding: 8px 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.video-player-wrapper:hover .video-controls,
.video-player-wrapper.is-paused .video-controls {
    opacity: 1;
}

.video-progress-wrap {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin-bottom: 8px;
    cursor: pointer;
}

.video-progress-wrap:hover {
    height: 6px;
}

.seek-bar {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 5;
    cursor: pointer;
}

.progress-bar-fill {
    height: 100%;
    background: var(--ts-primary);
    border-radius: 2px;
    width: 0;
}

.video-controls-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.controls-left,
.controls-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.play-toggle,
.mute-toggle,
.fullscreen-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.play-toggle:hover,
.mute-toggle:hover,
.fullscreen-toggle:hover {
    transform: scale(1.1);
}

.play-toggle .icon-pause,
.play-toggle .icon-play {
    display: none !important;
}

.video-player-wrapper.is-playing .icon-pause {
    display: flex !important;
}

.video-player-wrapper.is-paused .icon-play {
    display: flex !important;
}

/* Fullscreen Controls Support - Pinned to Bottom 0 */
.video-player-wrapper:fullscreen .custom-video {
    height: 100% !important;
    max-height: none !important;
}

.video-player-wrapper:fullscreen .video-controls {
    bottom: 0 !important;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
}

.video-player-wrapper:-webkit-full-screen .custom-video {
    height: 100% !important;
    max-height: none !important;
}

.video-player-wrapper:-webkit-full-screen .video-controls {
    bottom: 0 !important;
    padding: 20px;
}

.video-time {
    color: white;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    min-width: 90px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.volume-slider {
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
}

.volume-control:hover .volume-slider {
    width: 60px;
}


.notif-date-label {
    background: var(--ts-surface) !important;
    color: var(--ts-primary) !important;
    padding: 6px 12px !important;
    margin: 16px 12px 8px !important;
    font-size: 11px !important;
    border-radius: var(--ts-radius-sm) !important;
    display: inline-block;
}

/* ── Ads & Badges ── */
.ad-header-strip {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #191c20;
    border: 1px solid var(--ts-border);
    border-radius: var(--ts-radius-lg);
    margin: 12px;
    text-decoration: none;
    transition: var(--ts-transition);
    gap: 12px;
}

.ad-header-strip:hover {
    border-color: var(--ts-divider);
    background: #1e2227;
}

.ad-header-img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
}

.ad-header-content {
    flex: 1;
    min-width: 0;
}

.ad-header-title {
    display: block;
    font-weight: 800;
    font-size: 14px;
    color: var(--ts-text);
}

.ad-header-desc {
    display: block;
    font-size: 12px;
    color: var(--ts-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ad-badge-mini {
    background: rgba(255, 212, 0, 0.15);
    color: var(--ts-warning);
    font-size: 10px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 212, 0, 0.2);
    letter-spacing: 0.5px;
    width: fit-content;
}

/* ── Native Feed Ads ── */
.ad-native-card {
    border-bottom: 1px solid var(--ts-border);
    background: var(--ts-bg);
    margin-bottom: 0;
    overflow: hidden;
    padding-bottom: 0 !important;
}

.ad-media-wrap {
    display: block;
    width: 100%;
    border-top: 1px solid var(--ts-divider);
    border-bottom: 1px solid var(--ts-divider);
    text-decoration: none;
}

.ad-feed-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.ad-footer-bar {
    padding: 12px 16px;
    background: var(--ts-surface);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    border-bottom: 1px solid var(--ts-border);
}

.ad-footer-bar:hover {
    background: var(--ts-surface-hover);
}

.ad-domain {
    font-size: 11px;
    color: var(--ts-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-cta-title {
    font-weight: 800;
    font-size: 14px;
    color: var(--ts-text);
    margin-top: 2px;
}

.ad-cta-btn {
    font-size: 13px !important;
    font-weight: 800 !important;
    pointer-events: none;
}

/* Pointer styles */
a.ad-header-strip,
a.ad-sidebar-box,
a.ad-media-wrap {
    cursor: pointer;
}

div.ad-header-strip,
div.ad-sidebar-box,
div.ad-media-wrap {
    cursor: default;
}

/* -- Auth Modal Refinement -- */
.auth-step {
    display: none;
}

.auth-step.active {
    display: block;
    animation: authFadeIn 0.3s ease-out;
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.field-error {
    color: var(--ts-danger);
    font-size: 12px;
    margin-top: 4px;
    font-weight: 700;
    display: none;
    text-align: right;
}

.ts-input.has-error {
    border-color: var(--ts-danger) !important;
    background: rgba(255, 59, 48, 0.05) !important;
}

.username-status.available {
    color: #34c759;
    font-weight: 700;
}

.username-status.taken {
    color: var(--ts-danger);
    font-weight: 700;
}

.username-suggestion-chip {
    display: inline-block;
    padding: 4px 10px;
    background: var(--ts-primary-light);
    color: var(--ts-primary);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    margin: 2px;
    cursor: pointer;
}

/* -- Load More Centering -- */
.load-more-wrap {
    display: flex !important;
    justify-content: center !important;
    width: 100%;
    padding: 30px 0;
}

/* -- Auth Prompt Box -- */
.auth-prompt-box {
    padding: 60px 30px;
    text-align: center;
    background: var(--ts-bg-dark);
    border-radius: var(--ts-radius-lg);
    margin: 20px;
    border: 1px solid var(--ts-border);
}

.auth-prompt-box h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

.auth-prompt-box p {
    color: var(--ts-text-muted);
    margin-bottom: 30px;
}

/* -- Compact Create Post -- */
.ts-create-post-compact {
    background: var(--ts-surface);
    border-bottom: 1px solid var(--ts-border);
    padding: 12px 16px;
    transition: var(--ts-transition);
}

.compact-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.compact-avatar-wrap {
    flex-shrink: 0;
}

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

.compact-input-area {
    flex: 1;
    min-width: 0;
}

.ts-textarea-compact {
    width: 100%;
    background: transparent;
    border: none;
    resize: none;
    color: var(--ts-text);
    font-size: 16px;
    padding: 8px 4px;
    max-height: 200px;
    outline: none !important;
}

.compact-left-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.media-group {
    display: flex;
    gap: 4px;
}

.compact-action-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ts-primary);
    transition: var(--ts-transition);
}

.compact-action-btn:hover {
    background: var(--ts-primary-light);
}

.compact-action-btn svg {
    width: 20px;
    height: 20px;
}

.compact-post-btn {
    padding: 6px 16px !important;
    font-size: 13px !important;
    border-radius: var(--ts-radius-full) !important;
}

.ts-create-post-compact.focused {
    background: var(--ts-surface-hover);
}