.post-img {
    width: 100%;
    border-radius: 8px;
    margin-top: 8px;
    display: block
}

:root {
    --bg: #0f1113;
    --panel: #16181c;
    --muted: #9aa0a6;
    --accent: #ff4500;
    --card-border: #2a2d33;
    --sidebar: #14161a;
    --max-width: 1100px;
    --radius: 10px;
    --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%;
    margin: 0;
    font-family: var(--font-sans);
    background: var(--bg);
    color: #e6e6e6
}

.container {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 20px;
    padding: 0 16px
}

header.global {
    position: sticky;
    top: 0;
    z-index: 40;
    background: linear-gradient(
        180deg,
        rgba(22, 24, 28, 0.95),
        rgba(22, 24, 28, 0.85)
    );
    backdrop-filter: blur(4px);
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 24px;
    margin-bottom: 16px
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px
}

.logo .mark {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700
}

.search {
    flex: 1
}

.search input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid var(--card-border);
    background: #0f1113;
    color: #e6e6e6
}

.user-actions {
    display: flex;
    gap: 8px
}

.btn {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background: var(--panel);
    cursor: pointer;
    color: #e6e6e6
}

.sidebar {
    background: var(--sidebar);
    padding: 16px;
    border-radius: var(--radius);
    height: fit-content
}

.sub-list {
    list-style: none;
    padding: 0;
    margin: 0
}

.sub-list li {
    padding: 8px 6px;
    border-radius: 8px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer
}

.sub-list li:hover {
    background: #1c1f24
}

.sub-mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #2a2d33;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #e6e6e6
}

.feed {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.post {
    padding: 20px;
    background: var(--panel);
    border-radius: 12px;
    border: 1px solid var(--card-border)
}

.post-body h3 {
    margin: 0 0 6px 0;
    font-size: 16px
}

.post-meta {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 8px
}

.post-content {
    font-size: 15px;
    color: #dcdcdc
}

.post-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px
}

.post-footer button {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    color: inherit;
    transition: background 0.15s ease, color 0.15s ease
}

.post-footer button:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff
}

.post-footer img {
    width: 16px;
    height: 16px;
    display: block;
    opacity: 0.55;
    stroke: cyan;
    filter: brightness(0) invert(1);
    transition: opacity 0.15s ease
}

.post-footer button:hover img {
    opacity: 1
}

.trending {
    background: var(--sidebar);
    padding: 16px;
    border-radius: var(--radius);
    height: fit-content
}

.trending h4 {
    margin: 0 0 10px 0
}

.trend-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 6px;
    border-radius: 8px
}

.trend-item:hover {
    background: #1c1f24
}

@media (max-width:1024px) {
    .container {
        grid-template-columns: 1fr
    }

    .sidebar,
    .trending {
        order: 2
    }
}

a {
    color: inherit;
    text-decoration: none
}

.pill {
    background: #1c1f24;
    padding: 6px 8px;
    border-radius: 999px;
    font-size: 13px;
    color: #e6e6e6
}

.code-block {
    background: #0f1113;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid var(--card-border);
    overflow: auto;
    color: #e6e6e6
}

.btn-plus {
    position: absolute;
    bottom: 20px;
    right: 20px;

    width: 50px;
    height: 50px;
    border-radius: 50%;

    border: none;
    background-color: #ff4500;
    color: #fff;
    font-size: 28px;
    line-height: 50px;
    text-align: center;
    cursor: pointer;
}

.btn-plus:hover {
    background-color: #e03d00;
}