:root {
    --bg-color: #F5F7FB;
    --card-bg: #FFFFFF;
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --secondary-blue: #3B82F6;
    --text-main: #172033;
    --text-muted: #718096;
    --border-color: #E2E8F0;
    --radius-card: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --accent: #F59E0B;
    --msg-bg-own: #2563EB;
    --nav-width: 240px;
    --header-height: 64px;
    --transition: all 0.2s ease-in-out;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: Montserrat, "Segoe UI", sans-serif;
    background: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }
button { cursor: pointer; border: 0; background: none; color: inherit; font: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.app-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 20px 40px;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}

.sidebar-left {
    position: sticky;
    top: 20px;
    height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-right: 4px;
}
.sidebar-left::-webkit-scrollbar { width: 0; }

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 24px;
    padding-left: 10px;
    color: var(--primary);
    font-size: 22px;
    font-weight: 800;
}
.logo svg, .logo i { width: 28px; height: 28px; }
.site-logo {
    display: block;
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}
.top-logo { display: none; align-items: center; flex: 0 0 auto; }
.top-logo .site-logo { height: 32px; max-width: 120px; }
.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
}

.nav-menu { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    transition: var(--transition);
}
.nav-item svg, .nav-item i { width: 20px; height: 20px; flex: 0 0 auto; }
.nav-item:hover { background: rgba(37, 99, 235, 0.05); color: var(--primary); }
.nav-item.active { background: rgba(37, 99, 235, 0.1); color: var(--primary); font-weight: 600; }
.nav-menu form { margin: 0; }
.badge, .mobile-badge {
    margin-left: auto;
    min-width: 18px;
    padding: 2px 6px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.sidebar-bottom-poster {
    margin-top: auto;
    padding: 20px;
    border-radius: var(--radius-card);
    background: linear-gradient(135deg, var(--primary), var(--secondary-blue));
    color: #fff;
    text-align: center;
}
.sidebar-bottom-poster p { margin: 0 0 12px; font-size: 13px; font-weight: 600; }
.sidebar-bottom-poster a, .sidebar-bottom-poster button {
    display: block;
    width: 100%;
    padding: 8px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
}

.main-feed { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px;
    border-radius: var(--radius-card);
    background: var(--card-bg);
    box-shadow: var(--shadow);
}
.search-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--bg-color);
    color: var(--text-muted);
}
.search-box input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text-main);
    font-size: 14px;
}
.top-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-muted);
}
.notification-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--danger);
}
.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: #DBEAFE;
    flex: 0 0 auto;
}

.notify { position: relative; }
.notify summary { list-style: none; cursor: pointer; }
.notify summary::-webkit-details-marker { display: none; }
.notify-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    z-index: 30;
    width: min(340px, 78vw);
    padding: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-card);
    background: #fff;
    box-shadow: 0 16px 40px rgba(23, 32, 51, 0.12);
}
.notify-list { list-style: none; margin: 0; padding: 0; }
.notify-list li { padding: 10px 0; border-top: 1px solid var(--border-color); }
.notify-list p { margin: 0 0 4px; font-size: 14px; }
.notify-list span { color: var(--text-muted); font-size: 12px; }
.notify-list .is-unread p { font-weight: 700; }

.card {
    padding: 20px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: var(--radius-card);
    background: var(--card-bg);
    box-shadow: var(--shadow);
}
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-header h3 { margin: 0; font-size: 16px; }
.section-header a { color: var(--primary); font-size: 12px; font-weight: 700; }
.text-muted { color: var(--text-muted); font-size: 13px; }

.hero-banner {
    position: relative;
    display: flex;
    min-height: 240px;
    padding: 40px;
    overflow: hidden;
    border-radius: var(--radius-card);
    background:
        linear-gradient(100deg, rgba(23, 32, 51, 0.88), rgba(37, 99, 235, 0.35)),
        linear-gradient(135deg, #1e3a8a, #2563EB 55%, #60a5fa);
    color: #fff;
}
.hero-content { position: relative; z-index: 1; max-width: 460px; }
.hero-content h1 { margin: 0 0 10px; font-size: 32px; line-height: 1.2; }
.hero-content p { margin: 0 0 20px; font-size: 16px; opacity: 0.92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.btn-primary, .btn-secondary, .btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: 0;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); }
.btn-light { background: #fff; color: var(--primary); }
.btn-sm { padding: 8px 14px; }
.btn-block { width: 100%; }

.alert {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
}
.alert-success { background: #ECFDF5; color: #047857; }
.alert-error { background: #FEF2F2; color: #B91C1C; }
.alert-warning { background: #FFFBEB; color: #B45309; }
.alert-info { background: #EFF6FF; color: #1D4ED8; }

.sidebar-right { display: flex; flex-direction: column; gap: 20px; }
.sidebar-right .recommendation-card {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
}
.sidebar-right .recommendation-card:last-child { margin-bottom: 0; }
.sidebar-right .recommendation-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #E0E7FF;
}
.sidebar-right .recommendation-info { flex: 1; min-width: 0; }
.sidebar-right .recommendation-info h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-right .recommendation-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-right .btn-add-friend {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sidebar-right .btn-add-friend:hover { background: var(--primary); color: #fff; }
.sidebar-right .btn-add-friend svg,
.sidebar-right .btn-add-friend i { width: 16px; height: 16px; }
.sidebar-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.sidebar-empty p { margin: 0; }
.community-item, .event-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.community-item:last-child, .event-card:last-child { margin-bottom: 0; }
.community-icon { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #E0E7FF; }
.community-info, .event-info { display: flex; flex-direction: column; min-width: 0; }
.community-info strong, .event-info strong { font-size: 14px; }
.community-info span, .event-info span { color: var(--text-muted); font-size: 12px; }
.event-info svg, .event-info i { width: 12px; height: 12px; }
.event-date {
    min-width: 52px;
    padding: 8px;
    border-radius: var(--radius-sm);
    background: #FEF2F2;
    color: var(--danger);
    text-align: center;
}
.event-date span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.event-date strong { display: block; font-size: 18px; }
.weather-temp { margin: 0; font-size: 36px; font-weight: 800; color: var(--primary); }
.site-footer { margin: 4px 0 0; color: var(--text-muted); font-size: 12px; text-align: center; }

.mobile-nav { display: none; }
.stat-row { display: flex; flex-wrap: wrap; gap: 10px; }
.stat-pill {
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--bg-color);
    font-size: 13px;
}
.stat-pill strong { display: block; font-size: 15px; }

.auth-body {
    min-height: 100vh;
    display: flex;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .18), transparent 36%),
        var(--bg-color);
}
.auth-wrap { width: min(440px, calc(100% - 32px)); margin: auto; padding: 32px 0; }
.auth-wrap .logo { margin-bottom: 18px; padding-left: 0; }
.auth-card h1 { margin: 0 0 6px; font-size: 26px; }
.auth-card > p { margin-top: 0; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-field span { font-size: 13px; font-weight: 600; }
.form-field input,
.form-field textarea,
.form-field select,
.sort-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
    color: var(--text-main);
    font-size: 15px;
}
.sort-select { width: auto; padding: 8px 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; }
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus,
.sort-select:focus { border-color: var(--primary); outline: none; }
.page-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.page-header h1 { margin: 0; font-size: 24px; font-weight: 800; }
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
}
.btn-outline:hover { background: rgba(37, 99, 235, 0.05); }
.form-row { display: flex; flex-wrap: wrap; gap: 12px; }
.form-row .form-field { flex: 1 1 180px; }
.check-line { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 14px; font-weight: 600; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.media-grid img { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; background: var(--bg-color); }
.map-frame { width: 100%; height: 280px; border: 0; border-radius: 12px; background: var(--bg-color); }
.pager { display: flex; gap: 8px; align-items: center; }
details.card > summary { cursor: pointer; font-weight: 800; list-style: none; }
details.card > summary::-webkit-details-marker { display: none; }
details.card[open] > summary { margin-bottom: 16px; }
.auth-switch { margin: 16px 0 0; font-size: 14px; text-align: center; }
.auth-switch a { color: var(--primary); font-weight: 700; }
.auth-note { color: var(--text-muted); font-size: 13px; text-align: center; }
.form-error { margin: 0 0 14px; }

@media (max-width: 1200px) {
    .app-container { grid-template-columns: 240px minmax(0, 1fr); }
    .sidebar-right { display: none; }
}

@media (max-width: 900px) {
    body { background: var(--card-bg); padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
    .app-container { display: block; max-width: none; padding: 0; }
    .sidebar-left, .sidebar-right { display: none; }
    .mobile-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        display: flex;
        justify-content: space-between;
        padding: 8px 10px max(8px, env(safe-area-inset-bottom));
        border-top: 1px solid var(--border-color);
        background: #fff;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, .05);
    }
    .mobile-nav-item {
        position: relative;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        color: var(--text-muted);
        font-size: 10px;
        font-weight: 600;
    }
    .mobile-nav-item.active { color: var(--primary); }
    .mobile-nav-item svg, .mobile-nav-item i { width: 22px; height: 22px; }
    .mobile-icon { position: relative; display: flex; }
    .mobile-badge {
        position: absolute;
        top: -6px;
        right: -10px;
        margin: 0;
        padding: 1px 4px;
        font-size: 9px;
    }
    .main-feed { gap: 0; }
    .hamburger { display: inline-flex; }
    .top-logo { display: flex; }
    body.nav-open { overflow: hidden; }
    body.nav-open .sidebar-left {
        display: flex;
        position: fixed;
        z-index: 60;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(300px, 88vw);
        height: 100%;
        max-height: none;
        margin: 0;
        padding: 16px 12px calc(16px + env(safe-area-inset-bottom));
        background: #fff;
        box-shadow: 12px 0 40px rgba(23, 32, 51, 0.18);
        overflow-y: auto;
    }
    body.nav-open .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 55;
        background: rgba(23, 32, 51, 0.45);
    }
    .top-bar {
        position: sticky;
        top: 0;
        z-index: 20;
        border-radius: 0;
        box-shadow: 0 1px 0 var(--border-color);
    }
    .top-bar .search-box { display: none; }
    .hero-banner { min-height: 200px; padding: 24px 16px; border-radius: 0; }
    .hero-content h1 { font-size: 26px; }
    .card { border: 0; border-bottom: 8px solid var(--bg-color); border-radius: 0; box-shadow: none; }
    .site-footer { padding-bottom: 12px; }
    .notify-panel { position: fixed; left: 12px; right: 12px; top: 68px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

.app-container.no-right { grid-template-columns: 240px minmax(0, 1fr); }
.hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: var(--bg-color);
    color: var(--text-main);
    flex: 0 0 auto;
}
.hamburger svg, .hamburger i { width: 22px; height: 22px; }
.nav-backdrop { display: none; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.btn-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-color);
    color: var(--text-main);
    font-weight: 700;
    font-size: 14px;
}
.btn-soft:hover { background: #E2E8F0; }
.inline-form { display: inline-flex; margin: 0; flex: 0 0 auto; }
.empty-state { text-align: center; padding: 12px 8px 20px; }
.empty-state h2 { margin: 0 0 6px; font-size: 18px; }
.load-more { align-self: center; }

.post-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.post-author { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; }
.post-author-info { min-width: 0; }
.post-author-info h4 { display: flex; align-items: center; gap: 4px; margin: 0; font-size: 15px; font-weight: 700; }
.post-author-info p { margin: 2px 0 0; font-size: 12px; color: var(--text-muted); }
.post-author-info h4 svg, .post-author-info h4 i { width: 14px; height: 14px; color: var(--primary); }
.author-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-link { font-weight: 600; }
.post-more { position: relative; flex: 0 0 auto; }
.post-more summary { list-style: none; }
.post-more summary::-webkit-details-marker { display: none; }
.post-more-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 6;
    min-width: 210px;
    padding: 6px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(23, 32, 51, 0.14);
}
.post-more-menu button {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-main);
    font-weight: 600;
    font-size: 14px;
    text-align: left;
}
.post-more-menu button:hover { background: var(--bg-color); }
.post-more-menu .is-danger { color: var(--danger); }
.post-more-menu form { margin: 0; }
.post-more-menu select {
    width: 100%;
    margin: 4px 0;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
}
.post-content p { margin: 0 0 12px; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.post-image { margin-bottom: 12px; border-radius: var(--radius-sm); overflow: hidden; }
.post-image img { display: block; width: 100%; max-height: 520px; object-fit: cover; }
.repost-embed {
    display: block;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-color);
    color: inherit;
}
.repost-embed strong { display: block; margin-bottom: 4px; }
.repost-embed p { margin: 0; color: var(--text-muted); font-size: 14px; }
.repost-embed img { width: 100%; max-height: 240px; object-fit: cover; border-radius: 8px; margin-top: 8px; }
.post-card:target { box-shadow: 0 0 0 2px var(--primary); }
.post-footer {
    display: flex;
    align-items: center;
    gap: 4px;
    border-top: 1px solid var(--border-color);
    padding-top: 8px;
}
.post-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 6px 8px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
}
.post-action:hover { color: var(--primary); background: rgba(37, 99, 235, 0.06); }
.post-action svg, .post-action i { width: 18px; height: 18px; }
.views-action { margin-left: auto; cursor: default; }
.views-action:hover { color: var(--text-muted); background: transparent; }
.react-wrap { position: relative; }
.react-picker {
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    z-index: 7;
    display: flex;
    gap: 2px;
    padding: 6px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(23, 32, 51, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px) scale(0.96);
    transition: 0.15s ease;
}
.react-wrap:hover .react-picker,
.react-wrap:focus-within .react-picker,
.react-wrap.is-open .react-picker {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}
.react-picker button {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    font-size: 22px;
    line-height: 1;
}
.react-picker button:hover,
.react-picker button.is-selected { transform: translateY(-4px) scale(1.2); background: #F8FAFC; }
.react-btn.is-active[data-kind="like"] { color: #2563EB; }
.react-btn.is-active[data-kind="love"],
.react-btn.is-active[data-kind="angry"] { color: #EF4444; }
.react-btn.is-active[data-kind="laugh"],
.react-btn.is-active[data-kind="wow"],
.react-btn.is-active[data-kind="sad"] { color: #D97706; }
.react-stack { display: inline-flex; }
.react-stack span { margin-right: -4px; }
.share-box, .comments-panel { margin-top: 12px; }
.share-box { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share-box[hidden], .comments-panel[hidden] { display: none !important; }
.share-box button, .reply-hint button {
    border: 0;
    background: var(--bg-color);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
    color: var(--text-main);
}
.repost-form, .comment-compose { display: flex; gap: 8px; flex: 1; min-width: 180px; }
.repost-form input, .comment-compose input[type="text"] {
    flex: 1;
    min-width: 0;
    border: 0;
    border-radius: 999px;
    background: var(--bg-color);
    padding: 10px 14px;
    color: var(--text-main);
}
.comments-panel { display: flex; flex-direction: column; gap: 12px; }
.comment { display: flex; gap: 10px; }
.comment-bubble { background: var(--bg-color); border-radius: 14px; padding: 8px 12px; }
.comment-author { font-weight: 700; font-size: 13px; color: inherit; }
.comment-parent { color: var(--text-muted); font-size: 12px; }
.comment-bubble p { margin: 2px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.comment-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; color: var(--text-muted); font-size: 12px; }
.comment-meta button { border: 0; background: none; padding: 0; color: inherit; font-weight: 700; }
.comment-meta button.is-liked { color: var(--primary); }
.reply-hint { display: flex; justify-content: space-between; gap: 8px; margin: 0; font-size: 12px; color: var(--text-muted); }
.reply-hint[hidden] { display: none !important; }
.composer-preview { display: flex; align-items: center; gap: 12px; }
.composer-preview img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; }
.composer-error[hidden], .composer-preview[hidden] { display: none !important; }
.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 80;
    transform: translateX(-50%) translateY(12px);
    padding: 12px 16px;
    border-radius: 12px;
    background: #172033;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

.post-card.is-promoted { position: relative; }
.post-card.is-promo-gold { box-shadow: 0 0 0 1px #F6D98A, 0 10px 28px rgba(202, 138, 4, 0.12); }
.post-card.is-promo-blue { box-shadow: 0 0 0 1px #93C5FD, 0 10px 28px rgba(37, 99, 235, 0.12); }
.post-card.is-promo-soft { box-shadow: 0 0 0 1px #E2E8F0, 0 8px 24px rgba(15, 23, 42, 0.04); }
.promo-flag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 12px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.promo-flag svg,
.promo-flag i { width: 14px; height: 14px; }
.is-promo-gold .promo-flag { background: #FFF7E6; color: #A16207; }
.is-promo-blue .promo-flag { background: #EFF6FF; color: #1D4ED8; }
.is-promo-soft .promo-flag { background: #F8FAFC; color: #475569; }

.banner-stack { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
[data-feed-list] > .site-banner { margin: 16px 0; }
.site-banner {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: #fff;
    color: inherit;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: var(--shadow);
}
.site-banner img {
    display: block;
    width: 100%;
    height: 200px;
    max-height: 220px;
    object-fit: cover;
    background: #0f172a;
}
.site-banner-caption {
    display: block;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text-main);
}
.site-banner.is-text .site-banner-caption { padding-top: 36px; }
.site-banner-mark {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}
.sidebar-right .site-banner img { height: 140px; max-height: 140px; }
.sidebar-right .banner-stack { margin-bottom: 16px; }

@media (max-width: 900px) {
    .site-banner { border-radius: 0; }
    .site-banner img { height: 160px; max-height: 180px; }
    .banner-stack { gap: 0; margin-bottom: 8px; }
    .post-image { margin: 0 -20px 12px; width: calc(100% + 40px); border-radius: 0; }
    .post-footer { gap: 0; }
    .post-action { flex: 1; }
    .views-action { flex: 0 0 auto; }
    .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
    .action-label, .react-label { display: none; }
}
@media (max-width: 900px) {
    .hamburger { display: inline-flex; }
}
