* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: #000;
    height: 100vh;
    overflow: hidden;
}

.layout {
    display: flex;
    height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: #000;
    min-height: 100vh;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar-header {
    margin-bottom: 30px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.sidebar {
    width: 350px;
    background: #111;
    color: #e0e0e0;
    padding: 30px;
    overflow-y: auto;
    position: fixed;
    height: 100vh;
    left: 0;
    width: 350px;
    background: #111;
    color: #e0e0e0;
    padding: 30px;
    overflow-y: auto;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    border-right: 1px solid #333;
}

.sidebar h1 {
    color: #00ff7f;
    margin-bottom: 0;
    font-size: 1.8em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
    text-shadow: 0px 0px 10px;
}

.sidebar h1 .emoji {
    filter: grayscale(100%) sepia(100%) saturate(1000%) hue-rotate(90deg) brightness(1.2);
}

.sidebar .version {
    color: #666;
    font-size: 0.9em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
}

.info-box {
    border: 1px solid #333;
    background: #111;
    margin-bottom: 15px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
}

.info-box h3 {
    background: #181818;
    border-bottom: 1px solid #333;
    padding: 6px 10px;
    font-size: 13px;
    color: #00ff7f;
    margin: 0;
    font-weight: 600;
}

.info-box-content {
    background: #000;
    padding: 10px;
    font-size: 14px;
    line-height: 1.4;
    color: #e5e5e5;
}

.info-box-content p {
    margin: 5px 0;
    padding-left: 1.8em;
    position: relative;
}

.info-box-content p::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #00ff7f;
}

.info-box code {
    background: #0a0a0a;
    color: #5fff72;
    padding: 4px 8px;
    border-radius: 3px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
    display: block;
    margin: 10px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    border: 1px solid #333;
}

.info-box a {
    color: #00ff7f;
    text-decoration: none;
    font-weight: 500;
}

.info-box a:hover {
    text-decoration: underline;
}

.main-content {
    margin-left: 350px;
    flex: 1;
    background: #000;
    overflow-y: auto;
    min-height: 100vh;
}

.content-wrapper {
    max-width: 1200px;
    padding: 30px;
}

.timeline {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
    max-width: 800px;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #333;
    padding-bottom: 30px;
    max-width: 800px;
}

.profile-header h2 {
    margin: 0;
    border: none;
    padding: 0;
}

.back-link {
    color: #00ff7f;
    text-decoration: none;
    font-weight: 500;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
}

.back-link:hover {
    text-decoration: underline;
}

h2 {
    color: #00ff7f;
    margin-bottom: 20px;
    font-size: 1.8em;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

.post {
    border: 1px solid #333;
    background: #111;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
    margin-bottom: 20px;
    max-width: 800px;
}

.post-meta {
    background: #181818;
    border-bottom: 1px solid #333;
    padding: 6px 10px;
    font-size: 13px;
    color: #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-author {
    font-weight: 600;
    color: #00ff7f;
    text-decoration: none;
}

.post-author:hover {
    text-decoration: underline;
}

.post-caption {
    font-weight: 600;
    color: #00ff7f;
    text-decoration: none;
}

.post-content {
    background: #000;
    padding: 10px;
    font-size: 14px;
    line-height: 1;
    color: #e5e5e5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.post-time {
    margin: 0;
    padding: 0 0 2px 0;
    line-height: 0.8;
    color: #666;
    font-size: 14px;
    font-style: italic;
}

.post-time::before {
    content: "# ";
}

.post-text {
    margin: 0;
    position: relative;
    padding-left: 1.8em;
}

.post-text a {
    color: #00ff7f;
    text-decoration: underline;
}

.post-text a:hover {
    color: #7fff81;
}

.post-text::before {
    content: "$";
    position: absolute;
    left: 0;
    top: 0;
    color: #00ff7f;
    font-weight: 700;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-style: italic;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
}

@media (max-width: 768px) {
    body {
        overflow: auto;
        overflow-y: scroll;
    }

    .layout {
        flex-direction: column;
        min-height: auto;
        overflow: visible;
    }

    .sidebar {
        width: 100%;
        position: sticky;
        border-right: 1px solid #333;
    }

    .sidebar h1 {
        color: #00ff7f;
        margin-bottom: 0;
        font-size: 1.8em;
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
            "Liberation Mono", "Courier New", monospace;
        text-shadow: 1px 1px 10px green;
    }

    .sidebar h1 .emoji {
        filter: grayscale(100%) sepia(100%) saturate(1000%) hue-rotate(90deg) brightness(1.2);
    }

    .sidebar .version {
        color: #666;
        font-size: 0.9em;
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
            "Liberation Mono", "Courier New", monospace;
    }

    .info-box {
        border: 1px solid #333;
        background: #111;
        margin-bottom: 15px;
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
            "Liberation Mono", "Courier New", monospace;
    }

    .info-box h3 {
        background: #181818;
        border-bottom: 1px solid #333;
        padding: 6px 10px;
        font-size: 13px;
        color: #00ff7f;
        margin: 0;
        font-weight: 600;
    }

    .info-box-content {
        background: #000;
        padding: 10px;
        font-size: 14px;
        line-height: 1.4;
        color: #e5e5e5;
    }

    .info-box-content p {
        margin: 5px 0;
        padding-left: 1.8em;
        position: relative;
    }

    .info-box-content p::before {
        content: "•";
        position: absolute;
        left: 0;
        top: 0;
        color: #00ff7f;
    }

    .info-box code {
        background: #0a0a0a;
        color: #a9ffa6;
        padding: 4px 8px;
        border-radius: 3px;
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
            "Liberation Mono", "Courier New", monospace;
        display: block;
        margin: 10px 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: pre-wrap;
        border: 1px solid #333;
    }

    .info-box a {
        color: #5fff72;
        text-decoration: none;
        font-weight: 700;
    }

    .info-box a:hover {
        text-decoration: underline;
    }

    .main-content {
        margin-left: 350px;
        flex: 1;
        background: #000;
        overflow-y: auto;
        height: 100vh;
    }

    .content-wrapper {
        max-width: 1200px;
        padding: 30px;
    }

    .timeline {
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
            "Liberation Mono", "Courier New", monospace;
        max-width: 800px;
    }

    h2 {
        color: #00ff7f;
        margin-bottom: 20px;
        font-size: 1.8em;
        padding-bottom: 10px;
    }

    .post {
        border: 1px solid #333;
        background: #111;
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
            "Liberation Mono", "Courier New", monospace;
        margin-bottom: 20px;
        max-width: 800px;
    }

    .post:last-child {
        margin-bottom: 20px;
    }

    .post-meta {
        background: #181818;
        border-bottom: 1px solid #333;
        padding: 6px 10px;
        font-size: 13px;
        color: #ccc;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .post-author {
        font-weight: 600;
        color: #00ff7f;
        text-decoration: none;
    }

    .post-author:hover {
        text-decoration: underline;
    }

    .post-permalink {
        color: #666;
        text-decoration: none;
        font-size: 12px;
    }

    .post-permalink:hover {
        color: #00ff7f;
        text-decoration: underline;
    }

    .post-content {
        background: #000;
        padding: 10px;
        font-size: 14px;
        line-height: 1;
        color: #e5e5e5;
        white-space: pre-wrap;
        word-wrap: break-word;
    }

    .post-time {
        margin: 0;
        padding: 0 0 2px 0;
        line-height: 0.8;
        color: #666;
        font-size: 14px;
        font-style: italic;
    }

    .post-time::before {
        content: "# ";
    }

    .post-text {
        margin: 0;
        position: relative;
        padding-left: 1.8em;
        line-height: 1.5em;
    }

    .post-text a {
        color: #5fafff;
        text-decoration: underline;
    }

    .post-text a:hover {
        color: #7fc8ff;
    }

    .post-text::before {
        content: "$";
        position: absolute;
        left: 0;
        top: 0;
        color: #88ff92;
        font-weight: 700;
    }

    .pagination {
        display: flex;
        justify-content: normal;
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid #333;
    }

    .pagination a,
    .pagination span {
        padding: 10px 20px;
        background: #181818;
        color: #00ff7f;
        text-decoration: none;
        border-radius: 4px;
        font-weight: 500;
        border: 1px solid #333;
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
            "Liberation Mono", "Courier New", monospace;
    }

    .pagination a:hover {
        background: #222;
        border-color: #00ff7f;
    }

    .pagination span {
        background: #0a0a0a;
        color: #666;
        cursor: not-allowed;
    }

    .empty-state {
        text-align: center;
        padding: 60px 20px;
        color: #666;
        font-style: italic;
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
            "Liberation Mono", "Courier New", monospace;
    }

    .scroll-up {
        display: none;
    }

    .toggle-btn {
        display: none;
    }

    @media (max-width: 768px) {
        body {
            overflow: auto;
            overflow-y: scroll;
        }

        .layout {
            flex-direction: column;
            height: auto;
            overflow: visible;
        }

        .sidebar {
            width: 100%;
            position: sticky;
            top: 0;
            height: auto;
            z-index: 100;
            padding: 15px 30px;
        }

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

        .sidebar.minimized .sidebar-header {
            margin-bottom: 0;
        }

        .sidebar h1 {
            margin-bottom: 0;
            flex: 1;
            font-size: 1.5em;
        }

        .sidebar.minimized {
            cursor: pointer;
        }

        .sidebar.minimized .info-box {
            display: none;
        }

        .sidebar .toggle-btn {
            display: inline-block;
            color: #00ff7f;
            font-size: 1.5em;
            cursor: pointer;
            flex-shrink: 0;
            padding-left: 15px;
            user-select: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
        }

        .main-content {
            margin-left: 0;
            height: auto;
            overflow: visible;
        }
    }

    .profile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        border-bottom: 2px solid #333;
        padding-bottom: 30px;
        max-width: 800px;
    }

    .profile-header h2 {
        margin: 0;
        border: none;
        padding: 0;
    }

    .back-link {
        color: #5fafff;
        text-decoration: none;
        font-weight: 500;
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
            "Liberation Mono", "Courier New", monospace;
    }

    .back-link:hover {
        text-decoration: underline;
    }

    .post-caption {
        font-weight: 600;
        color: #00ff7f;
        text-decoration: none;
    }

    .user-profile {
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
            "Liberation Mono", "Courier New", monospace;
        margin-bottom: 30px;
        max-width: 800px;
    }

    .user-info {
        background: #000;
        padding: 10px;
        font-size: 17px;
        line-height: 3;
        color: #e5e5e5;
    }

    .user-info p {
        margin: 0 0 5px 0;
        padding-left: 1.8em;
        position: relative;
        color: #ccc;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .user-info p::before {
        position: absolute;
        left: 0;
        top: 0;
        color: #00ff7f;
    }

    .user-info strong {
        color: #5fafff;
    }

    /* Hashtag styling */
    .hashtag {
        color: #5fafff;
        text-decoration: none;
        font-weight: 500;
    }

    .hashtag:hover {
        text-decoration: underline;
        color: #7fc8ff;
    }

    /* Thread view styling */
    .thread-context {
        margin-bottom: 20px;
        max-width: 800px;
    }

    .reply-indicator {
        color: #666;
        font-size: 13px;
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
            "Liberation Mono", "Courier New", monospace;
        margin-bottom: 10px;
        padding-left: 10px;
    }

    .parent-post {
        border-left: 3px solid #5fafff;
        opacity: 0.8;
    }

    .parent-post:hover {
        opacity: 1;
    }

    .main-post {
        border-left: 3px solid #00ff7f;
    }

    .replies-section {
        margin-top: 30px;
        max-width: 800px;
    }

    .replies-header {
        color: #666;
        font-size: 14px;
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
            "Liberation Mono", "Courier New", monospace;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid #333;
    }

    .reply-post {
        margin-left: 20px;
        border-left: 3px solid #444;
    }

    .reply-post:hover {
        border-left-color: #5fafff;
    }

    .post-username {
        font-weight: 600;
        color: #00ff7f;
        text-decoration: none;
    }

    .post-username:hover {
        text-decoration: underline;
    }

    .post-actions {
        background: #0a0a0a;
        border-top: 1px solid #333;
        padding: 8px 10px;
    }

    .view-post-link {
        color: #5fafff;
        text-decoration: none;
        font-size: 12px;
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
            "Liberation Mono", "Courier New", monospace;
    }

    .view-post-link:hover {
        text-decoration: underline;
    }

    /* Post footer with reply count */
    .post-footer {
        background: #0a0a0a;
        border-top: 1px solid #333;
        padding: 6px 10px;
        display: flex;
        gap: 12px;
        justify-content: flex-end;
    }

    .like-count,
    .boost-count,
    .reply-count {
        color: #666;
        text-decoration: none;
        font-size: 12px;
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
            "Liberation Mono", "Courier New", monospace;
    }

    .post-footer .icon {
        filter: grayscale(100%) sepia(100%) saturate(1000%) hue-rotate(90deg) brightness(1.2);
    }

    .reply-count {
        color: #00ff7f;
    }

    .reply-count:hover {
        color: #00ff7f;
        text-decoration: underline;
        margin-bottom: 15px;
    }

    .sidebar.minimized .sidebar-header {
        margin-bottom: 0;
    }

    .sidebar h1 {
        margin-bottom: 0;
        flex: 1;
        font-size: 1.5em;
    }

    .sidebar.minimized {
        cursor: pointer;
    }

    .sidebar.minimized .info-box {
        display: none;
    }

    .sidebar .toggle-btn {
        display: inline-block;
        color: #00ff7f;
        font-size: 1.5em;
        cursor: pointer;
        flex-shrink: 0;
        padding-left: 15px;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }

    .main-content {
        margin-left: 0;
        min-height: auto;
        overflow: visible;
    }

}

.toggle-btn {
    display: none;
}

.user-profile {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
    margin-bottom: 30px;
    max-width: 800px;
}

.user-info {
    background: #000;
    padding: 10px;
    font-size: 17px;
    line-height: 3;
    color: #e5e5e5;
}

.user-info p {
    margin: 0 0 5px 0;
    padding-left: 1.8em;
    position: relative;
    color: #ccc;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.user-info p::before {
    position: absolute;
    left: 0;
    top: 0;
    color: #00ff7f;
}

.user-info strong {
    color: #8dfd8f;
}

.post:last-child {
    margin-bottom: 20px;
}

.post-permalink {
    color: #666;
    text-decoration: none;
    font-size: 12px;
}

.post-permalink:hover {
    color: #00ff7f;
    text-decoration: underline;
}

.pagination {
    display: flex;
    justify-content: normal;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.pagination a,
.pagination span {
    padding: 10px 20px;
    background: #181818;
    color: #00ff7f;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    border: 1px solid #333;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
}

.pagination a:hover {
    background: #222;
    border-color: #00ff7f;
}

.pagination span {
    background: #0a0a0a;
    color: #666;
    cursor: not-allowed;
}

.scroll-up {
    display: none;
}

/* Hashtag styling */
.hashtag {
    color: #5fafff;
    text-decoration: none;
    font-weight: 500;
}

.hashtag:hover {
    text-decoration: underline;
    color: #7fc8ff;
}

/* Thread view styling */
.thread-context {
    margin-bottom: 20px;
    max-width: 800px;
}

.reply-indicator {
    color: #666;
    font-size: 13px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
    margin-bottom: 10px;
    padding-left: 10px;
}

.parent-post {
    border-left: 3px solid #5fafff;
    opacity: 0.8;
}

.parent-post:hover {
    opacity: 1;
}

.main-post {
    border-left: 3px solid #00ff7f;
}

.replies-section {
    margin-top: 30px;
    max-width: 800px;
}

.replies-header {
    color: #666;
    font-size: 14px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.reply-post {
    margin-left: 20px;
    border-left: 3px solid #444;
}

.reply-post:hover {
    border-left-color: #5fafff;
}

.post-username {
    font-weight: 600;
    color: #00ff7f;
    text-decoration: none;
}

.post-username:hover {
    text-decoration: underline;
}

.post-actions {
    background: #0a0a0a;
    border-top: 1px solid #333;
    padding: 8px 10px;
}

.view-post-link {
    color: #5fafff;
    text-decoration: none;
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
}

.view-post-link:hover {
    text-decoration: underline;
}

/* Post footer with reply count */
.post-footer {
    background: #0a0a0a;
    border-top: 1px solid #333;
    padding: 6px 10px;
    text-align: right;
}

.reply-count {
    color: #666;
    text-decoration: none;
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
}

.reply-count:hover {
    color: #5fafff;
    text-decoration: underline;
}
