.corner_logo {
    width: 80px;
    height: auto;
}

.header_thread_avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: inherit;
}

.thread__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: inherit;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.pending-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.approve-reply-btn {
    border: none;
    cursor: pointer;
    color: #428842;
}

.thread__images {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.reply_images {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.login_prompt {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.video-mute-btn {
    /* Positioned to the left of the duration badge */
    position: absolute;
    bottom: 2%;
    right: 25%;
    /* Positioned to the left of the duration badge */
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 19px;
    font-size: 14px;
    cursor: pointer;
    z-index: 11;
    transition: background-color 0.2s;
}

.video-mute-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

a {
    color: white;
    text-decoration: none;
}

.content-reposted {
    padding: 17px 17px;
}

.repost-header {
    font-size: 13px;
    color: var(--secondary);
    font-weight: 600;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.post-pagination-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination-dot {
    width: 6px;
    height: 6px;
    background-color: var(--secondary);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.5;
}

.pagination-dot:hover {
    opacity: 0.8;
}

.pagination-dot.active {
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    opacity: 1;
}

.chunk-indicator {
    padding: 3px 5px;
    background-color: var(--dark-background);
    border-radius: 10px;
    font-size: 12px;
    color: var(--secondary);
}

.reply {
    padding: 12px 16px 0 16px;
    position: relative;
}

.reply:last-child .reply-connector {
    display: none;
}

.reply-author-name {
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.reply-author-name:hover {
    text-decoration: underline;
}

.reply-menu .tweet-menu {
    background: transparent;
    border: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.approval-notice {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reply-footer .reactions {
    gap: 16px;
    display: flex;
    align-items: center;
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
}

.reply-footer .thread__action,
.reply-footer .reaction {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: var(--secondary);
    transition: color 0.2s;
    font-size: 14px;
    background: transparent;
    padding: 0;
    border: none;
}

.reply-footer .thread__action:hover,
.reply-footer .reaction:hover {
    color: var(--primary);
}

.reply-footer .thread__action i,
.reply-footer .reaction i {
    font-size: 18px;
}

.reply-footer .reaction-count {
    font-size: 13px;
    display: inline-block !important;
    background: transparent !important;
    padding: 0 !important;
    color: inherit !important;
}

.reply-footer .pending-badge {
    font-size: 12px;
}

.reply-footer .approve-reply-btn {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    margin-left: 8px;
    cursor: pointer;
}

.reply-to-author {
    color: #9b9b9b;
    font-weight: 400;
}

.inline-reply-form {
    margin: 10px 19px 10px 58px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.inline-edit-form {
    padding: 20px;
    border-radius: 25px;
    border: var(--border-style);
}

/* New Inline Reply Wrapper */
.inline-reply-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--dark-background);
    border: 1px solid var(--background);
    border-radius: 24px;
    padding: 4px 8px 4px 16px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
    min-height: 44px;
    flex-direction: column;
}

.inline-reply-input-wrapper:focus-within {
    border-color: var(--functional);
}

.inline-reply-textarea {
    flex: 1;
    background: transparent !important;
    border: none !important;
    color: var(--primary);
    font-family: inherit;
    font-size: 14px;
    resize: none;
    padding: 8px 0;
    margin: 0;
    outline: none;
    line-height: 1.4rem;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
}

.reply-media-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.reply-submit-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--functional);
    color: white;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    padding: 0;
    margin-left: 4px;
}

.reply-submit-btn:hover {
    transform: scale(1.05);
    background: #0088cc;
}

.reply-submit-btn i {
    font-size: 14px;
    margin-left: -1px; /* Visual centering */
}

/* Adjust reply form to be column for better spacing with previews */
.inline-reply-form form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.inline-reply-textarea::placeholder {
    content: "Write your reply";
    color: var(--functional);
}

.inline-reply-textarea:focus {
    outline: none;
}

.inline-reply-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.reply-submit-btn,
.reply-cancel-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.reply-submit-btn {
    background: white;
    color: var(--dark-background);
    border: var(--secondary) solid 1px;
}

.reply-cancel-btn {
    background: transparent;
    color: var(--secondary);
    border: var(--border-style);
}

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

.thread__image {
    max-height: 500px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 10px;
}

.reply_image img {
    max-height: 400px;
    overflow: hidden;
    border-radius: 10px;
    object-fit: inherit;
}

.reply_images .reply_image:only-child {
    max-height: 500px;
    flex-basis: 100% !important;
}

.thread__image:only-child img {
    width: 100%;
    height: auto;
    max-width: calc(80% - 4px);
    max-height: 600px;
    object-position: center;
}

.thread__image img {
    max-width: 100%;
    cursor: pointer;
    transition: opacity 5s;
    color: grey;
    display: block;
}

.thread__image img:hover {
    opacity: 0.9;
}

.thread__text {
    color: rgb(241, 243, 245);
    font-size: 17px;
    margin-bottom: 12px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

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

.timestamp::before {
    margin: 4px 4px;
}

.notification-container {
    display: flex;
    align-items: center;
}

.notification-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #ff4444;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: bold;
    justify-content: center;
    align-items: center;
}

.notification-count:empty {
    display: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.entity-label,
.entity-edit {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--functional);
    text-overflow: ellipsis;
    max-width: 270px;
    white-space: nowrap;
    overflow: clip;
    padding: 5px 10px;
    background: black;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 900;
}

.entity-edit {
    margin-top: 15px;
}

.entity-label-wrapper {
    display: inline-flex;
}

.entity-edit .entity-edit-btn {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(50%, -50%);
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--secondary);
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
}

.entity-edit .entity-edit-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #fff;
}

.entity-edit .entity-edit-form {
    margin-left: 8px;
    gap: 6px;
    align-items: center;
}

.reply-node {
    position: relative;
}

.threads .tweet:last-child {
    border-bottom: none !important;
}

.threads-replies>article.reply:first-child {
    border-top: none !important;
}

.entity-edit .entity-edit-input {
    background: var(--surface);
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 8px;
}

.entity-edit .entity-edit-save,
.entity-edit .entity-edit-cancel {
    background: var(--surface);
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 12px;
    cursor: pointer;
}

.entity-edit .entity-edit-save:hover {
    background: rgba(34, 197, 94, 0.15);
}

.entity-edit .entity-edit-cancel:hover {
    background: rgba(239, 68, 68, 0.15);
}

@media (max-width: 768px) {
    .tweet {
        padding: 16px;
        background: #111111 !important;
    }

    .thread__grid {
        gap: 12px;
    }

    .thread__left {
        width: 40px;
    }

    .thread__avatar {
        width: 40px;
        height: 40px;
    }

    .main-text {
        font-size: 15px;
        line-height: 1.4;
    }

    .notification-container {
        margin-right: 8px;
    }

    .notification-count {
        top: -5px;
        right: -5px;
        font-size: 10px;
        min-width: 16px;
        height: 16px;
        line-height: 16px;
    }
}

.notification-popup {
    position: fixed;
    top: 30px;
    left: 80px;
    width: 550px;
    max-height: 800px;
    background: var(--background);
    border-radius: 12px;
    z-index: 1100;
    overflow-y: auto;
    display: none;
    border: 1px solid var(--border);
}

@media (max-width: 768px) {
    .notification-popup {
        top: 0;
        left: 0;
        width: 100%;
        height: calc(100% - 64px);
        /* Subtract mobile-nav height */
        max-height: none;
        border-radius: 0;
        border-width: 0 0 1px 0;
    }

    .notification-list {
        padding: 10px 16px;
    }
}


.notification-loading,
.notification-error,
.notification-empty {
    padding: 20px;
    text-align: center;
    color: var(--secondary);
}

.notification-error {
    color: var(--error-color);
}

.notification-list {
    display: flex;
    flex-direction: column;
    padding: 15px 24px;
}

.notification-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background-color 0.2s;
    gap: 12px;
    align-items: flex-start;
}

.notification-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.notification-badge-overlay {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid var(--background);
    background: var(--surface);
    z-index: 1;
}

.notification-badge-overlay.reaction {
    color: #ff4444;
}

.notification-badge-overlay.reply {
    color: #1d9bf0;
}

.notification-badge-overlay.topic {
    color: #ffad1f;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-icon {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.reaction {
    color: #ff6b6b;
}

.notification-icon.reply {
    background-color: rgba(51, 154, 240, 0.1);
    color: #339af0;
}

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

.notification-text {
    font-size: 14px;
    color: var(--secondary);
}

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

.notification-preview {
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--secondary);
}

.notification-unread {
    opacity: 1;
    background-color: rgba(29, 155, 240, 0.05);
    border-left: 3px solid #1d9bf0;
}

.notification-unread .notification-text {
    font-weight: 600;
}

.load-more-btn {
    width: 100%;
    padding: 0 0 15px 0;
    background: var(--surface);
    color: var(--functional);
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.load-more-btn:hover {
    color: #1d9bf0;
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth_buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.register-btn,
.login-btn {
    background: black;
    color: white;
}

.auth-btn i {
    font-size: 12px;
}

.timestamp {
    /* or any width */
    color: rgb(239, 239, 239);
    font-size: 15px;
    max-width: 300px;
    /* or any width */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-decoration: none;
}

.website {
    /* keep it on one line */
    /* or any width */
    color: white;
    white-space: nowrap;
    display: block;
    /* keep it on one line */
    font-size: 15px;
    /* or any width */
    overflow: hidden;
    font-weight: 700;
    text-decoration: none;
}

.timestamp+.timestamp {
    margin-left: 4px;
}

.edit-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* scroll if content overflows */

.edit-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.edit-actions button {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-actions button[type="submit"] {
    background-color: #1da1f2;
    color: white;
    border: none;
}

.edit-actions button[type="submit"]:hover {
    background-color: #1a91da;
}

.edit-actions button[type="button"] {
    background: none;
    border: 1px solid #38444d;
    color: #8b98a5;
}

.edit-actions button[type="button"]:hover {
    background-color: #38444d;
    color: #ffffff;
}

.author-info {
    display: flex;
    gap: 1px;
    flex: 1;
}

.username {
    color: rgb(239, 239, 239);
    font-size: 15px;
    font-weight: 600;
}

.tweet-menu {
    background: transparent;
    position: relative;
    z-index: 2;
    border: none;
    color: var(--secondary);
    cursor: pointer;
    display: flex;
    font-size: 15px;
    font-weight: 900;
    align-items: center;
    justify-content: center;
}

.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: 12px;
    z-index: 1000;
    display: none;
    padding: 8px 0;
    min-width: 400px;
    position: absolute;
    right: 0;
    transform: translateX(-20%);
}

.dropdown-menu-edit-post {
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    z-index: 1000;
    display: none;
    padding: 8px 0;
    min-width: 120px;
    max-width: 160px;
    position: absolute;
    top: 100%;
    right: 0;
}

.dropdown-menu-edit-post.show,
.dropdown-menu.show {
    display: block;
}

.menu-item {
    width: 100%;
    background: none;
    border: none;
    color: #ffffff;
    padding: 14px 15px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    transition: background-color 0.2s;
}

.menu-item:hover {
    background-color: #253341;
}

.menu-item.delete-item {
    color: #f91880;
}

.menu-item.delete-item:hover {
    background-color: rgba(249, 24, 128, 0.1);
}

.container-header {
    display: flex;
    flex-direction: row;
    align-items: start;
    column-gap: 11px;
    margin-left: -47px;
}

.container.no-images {
    grid-template-rows: 25px auto auto 40px 20px;
    grid-template-areas:
        "header sidemenu"
        "main auto"
        "whinge whinge"
        "reference reference"
        "footer footer";
}

.container.no-reference {
    grid-template-rows: 25px auto auto auto 20px;
    grid-template-areas:
        "header sidemenu"
        "main auto"
        "image auto"
        "whinge whinge"
        "footer footer";
}

.container.no-whinge-score {
    grid-template-rows: 25px auto auto auto 20px;
    grid-template-areas:
        "header sidemenu"
        "main auto"
        "image image"
        "reference reference"
        "footer footer";
}

.container.no-reference.no-images {
    grid-template-rows: 25px auto auto 20px;
    grid-template-areas:
        "header sidemenu"
        "main auto"
        "whinge whinge"
        "footer footer";
}

.container.no-images.no-whinge-score {
    grid-template-rows: 25px auto auto 20px;
    grid-template-areas:
        "header sidemenu"
        "main auto"
        "reference reference"
        "footer footer";
}

.container.no-reference.no-images.no-whinge-score {
    grid-template-rows: 25px auto 20px;
    grid-template-areas:
        "header sidemenu"
        "main auto"
        "footer footer";
}

.header-1 {
    grid-area: header;
    display: flex;
}

.whinge {
    display: flex;
    font-weight: 900;
    color: var(--secondary);
    margin-bottom: 5px;
}

.reference {
    grid-area: reference;
    display: flex;
    gap: 1.3em;
    align-items: center;
}

.main {
    color: var(--primary);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4em;
    cursor: pointer;
    overflow-wrap: break-word;
    word-break: break-word;
    margin-top: -27px;
}

.line-span {
    display: block;
    white-space: pre-wrap;
    line-height: 1.4rem;
    font-size: 15px;
}

.empty-line {
    display: block;
    margin-bottom: 0.3rem;
}

.main-reply {
    display: table;
    color: var(--primary);
    word-break: break-word;
    line-height: 1.3rem;
}

.main strong {
    font-weight: bold;
    color: var(--primary);
}

.footer {
    grid-area: footer;
}

.editor {
    grid-area: sidemenu;
    position: relative;
}

.time {
    grid-area: time;
    color: var(--secondary);
    font-size: 14px;
    font-weight: 500;
}

.container>.thread__image {
    grid-area: image;
}

.container>.thread__images {
    grid-area: image;
}

.container>.thread__youtube {
    grid-area: image;
}

.container.no-images>.thread__images,
.container.no-images>.thread__image,
.container.no-images>.thread__youtube {
    display: none;
}

.container .solve-form {
    position: fixed !important;
    grid-area: unset !important;
    display: none !important;
}

.container>.solve-form {
    display: none !important;
    grid-area: unset !important;
    position: fixed !important;
}

/* Wrapped image layout for threads - no horizontal scroll */

/* Wrapped image layout for threads - no horizontal scroll */
.thread .thread__images,
.container .thread__images {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 8px 0 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.is-editing .thread__images[data-tweet-id],
.is-editing .thread__image[data-tweet-id] {
    display: none !important;
}

.thread__youtube {
    margin: 10px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.thread__youtube iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
    border-radius: 8px;
}

.thread__youtube-inline {
    /* 16:9 aspect ratio */
    margin: 0 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
}

.thread__youtube-inline iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .main {
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
        -moz-hyphens: auto;
        -ms-hyphens: auto;
    }

    .tweet-content {
        max-width: 100%;
        overflow-x: hidden;
    }

    .container {
        max-width: 100%;
        overflow-x: hidden;
    }

    .website {
        white-space: normal !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        max-width: 100% !important;
        overflow: visible !important;
        text-overflow: initial !important;
    }

    .author-info {
        max-width: 100%;
        overflow-x: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .author_alias {
        white-space: normal !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        max-width: 100%;
        overflow: visible !important;
    }

    .time {
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        max-width: 100%;
    }

    span,
    a,
    div {
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        font-size: 14px !important;
    }

    .thread__action span:not(.reaction-count):not(.reaction-emoji):not(.active-reaction-count):not(.action-count) {
        display: none !important;
    }

    .reaction_annotation {
        display: none !important;
    }

    .thread__action i {
        font-size: 16px;
    }

    .reaction-count {
        font-size: 12px;
        margin-left: 4px;
    }

    /* Hide scroll bars on mobile */

    /* Hide scroll bars on mobile */
    * {
        /* Firefox */
        /* IE and Edge */
        scrollbar-width: none !important;
        /* Firefox */
        -ms-overflow-style: none !important;
        /* IE and Edge */
    }

    *::-webkit-scrollbar {
        /* Chrome, Safari, Opera */
        display: none !important;
        /* Chrome, Safari, Opera */
    }

    .thread__images {
        overflow: hidden !important;
        flex-wrap: wrap !important;
    }

    .thread__images::-webkit-scrollbar {
        display: none !important;
    }

    .tweet-menu {
        margin-left: auto !important;
    }

}

.thread__images .thread__image {
    /* Two images per row with gap */
    position: relative;
    display: block !important;
    box-sizing: border-box;
    flex: 1 1 calc(50% - 4px);
    /* Two images per row with gap */
    min-width: 0;
    margin-bottom: 0;
    max-height: fit-content;
    border-radius: 12px;
}

/* For 3-4 images, make them smaller */

/* For 3-4 images, make them smaller */
.thread__images .thread__image:nth-child(n+3) {
    flex: 1 1 calc(50% - 4px);
    max-width: calc(50% - 4px);
}

.thread__images .thread__image img {
    width: 100%;
    height: auto;
    object-fit: scale-down;
    border-radius: 20px
}

.thread__images .thread__image .remove-image {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: var(--border-style);
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 16px;
    line-height: 26px;
    text-align: center;
    cursor: pointer;
    z-index: 2;
}

.thread__images .thread__image .remove-image:hover {
    background: rgba(0, 0, 0, 0.75);
}

/* View count styling */

/* View count styling */
.view-count {
    cursor: default !important;
    opacity: 0.7;
}

.view-count:hover {
    background: transparent !important;
}

.view-count .fa-eye {
    color: var(--secondary);
}

.whinge-level-label {
    font-weight: 800;
}

.whinge-level-label[data-level="1"] {
    color: red;
}

.whinge-level-label[data-level="2"] {
    color: red;
}

.whinge-level-label[data-level="3"] {
    color: red;
}

.whinge-level-label[data-level="4"] {
    color: red;
}

.whinge-level-label[data-level="5"] {
    color: red;
}

.whinge-level-label[data-level="6"] {
    color: red;
}

.whinge-level-label[data-level="7"] {
    color: red;
}

.whinge-level-label::after,
.snapshot-whinge-label::after {
    /* Slightly fade them out to distinguish from score pipes */
    font-weight: 700;
    color: var(--secondary);
    opacity: 0.5;
    /* Slightly fade them out to distinguish from score pipes */
}

.post-pagination-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 8px;
}

.post-nav-btn {
    background: none;
    border: none;
    color: var(--secondary);
    font-size: 16px;
    cursor: pointer;
    border-radius: 20px;
}

.post-nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.post-page {
    white-space: pre-wrap;
    word-break: break-word;
    border: var(--border-style);
    padding: 27px;
    text-align: center;
    margin-top: 20px;
}

.post-pages-container {
    position: relative;
    transition: min-height 0.2s ease;
}

.post-page-number {
    font-size: 13px;
    color: var(--secondary);
    font-weight: 600;
    pointer-events: none;
    text-align: center;
    background: var(--border);
}

.thread__hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.thread__hashtags:empty {
    display: none;
}

.hashtag {
    color: #1d9bf0;
    font-size: 15px;
    text-decoration: none;
}

.hashtag:hover {
    text-decoration: underline;
}

.reply.reply-node:last-of-type {
    margin-bottom: 50vh;
}

.reply-approval-requirement-notice {
    background-color: rgba(38, 108, 122, 0.1);
    color: #266c7a;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    border: 1px solid rgba(38, 108, 122, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.thread__grid {
    display: grid;
    grid-template-columns: 40px 1fr;
    padding: 14px 22px 0 14px;
    position: relative;
    gap: 11px;
}

.thread__left {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.thread__avatar-container {
    position: relative;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.thread__avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: initial;
    border: var(--border-style);
}

.thread__follow-btn {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: black;
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 1px solid #000;
    cursor: pointer;
    transition: transform 0.2s;
}

.thread__follow-btn:hover {
    transform: scale(1.1);
}

.thread__connector {
    width: 2px;
    background-color: #333d42;
    flex-grow: 1;
    border-radius: 1px;
}

.thread__right {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.thread__header {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 2px;
}

.thread__header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.thread__header-bottom {
    margin-top: -2px;
}

.whinge-level-description {
    font-size: 12px;
    color: var(--secondary);
    font-weight: 400;
    opacity: 0.8;
}

.bulb-icon {
    font-size: 13px;
    margin-right: 3px;
    vertical-align: middle;
}

.bulb-icon.level-1 { color: var(--grade-1); }
.bulb-icon.level-2 { color: var(--grade-2); }
.bulb-icon.level-3 { color: var(--grade-3); }
.bulb-icon.level-4 { color: var(--grade-4); }
.bulb-icon.level-5 { color: var(--grade-5); }
.bulb-icon.level-6 { color: var(--grade-6); }
.bulb-icon.level-7 { color: var(--grade-7); }


.thread__author-info {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
}

.thread__dot {
    color: #777;
    font-size: 14px;
}

.thread__time {
    color: var(--secondary);
    font-size: 14px;
    font-weight: 300;
}

.thread__following-badge {
    color: var(--secondary);
    font-size: 14px;
    font-weight: 500;
}

.post-type-badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    background-color: var(--border);
    color: var(--secondary);
    border-radius: 3px;
    vertical-align: middle;
}

.thread__menu-container {
    display: flex;
    align-items: center;
    gap: 3px;
    position: relative;
}

.thread-dropdown-menu {
    left: auto !important;
    bottom: auto !important;
    right: 0;
    top: 100%;
    margin-left: 0 !important;
    transform-origin: top right !important;
    width: max-content;
    min-width: 150px;
    transform: translateY(-10px) scale(0.95) !important;
}

.thread-dropdown-menu.show {
    transform: translateY(0) scale(1) !important;
}

.thread__main-content {
    margin-top: 0;
}

.thread__main-content h1 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 800;
}

.thread__main-content .main-text {
    word-break: break-word;
    cursor: pointer;
}

.thread__video-container {
    position: relative;
    margin-top: 8px;
    border-radius: 8px;
    overflow: hidden;
    border: var(--border-style);
}

.thread__video-container video {
    width: 100%;
    display: block;
}

.thread__images-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.thread__image-wrapper {
    flex: 1 1 calc(50% - 4px);
    max-width: 90%;
    border-radius: 12px;
    overflow: hidden;
}

.thread__image-wrapper:only-child {
    flex-basis: 100%;
}

.thread__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 600px;
    display: block;
    cursor: pointer;
    border-radius: 13px;
}

.thread__image-wrapper img:only-of-type {
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    max-height: 350px;
    display: block;
    cursor: pointer;
}

.thread__youtube-container,
.thread__youtube-inline {
    margin-top: 8px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
}

.thread__youtube-container iframe,
.thread__youtube-inline iframe {
    display: block;
    width: 100%;
}

.youtube-title {
    display: block;
    padding: 12px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-top: 0;
    border-radius: 13px;
}

.thread__hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.thread__hashtags span {
    color: #1a8cd8;
    font-size: 14px;
    cursor: pointer;
}

.thread__reference {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--secondary);
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 4px;
    margin-top: 4px;
}

.thread__repost-info {
    font-size: 13px;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.thread__repost-info a {
    color: inherit;
}

.tweet {
    padding: 0 !important;
    border-bottom: var(--border-style);
    background: transparent;
}

.reply {
    padding: 0 !important;
    border-top: none !important;
    border-bottom: var(--border-style);
}

.thread__grid {
    transition: background-color 0.2s;
}

.thread__grid:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.main-text {
    white-space: pre-wrap;
}

@media (max-width: 600px) {
    .thread__grid {
        display: grid;
        padding: 10px 22px 0 6px;
        gap: 6px;
    }

    .thread__avatar-container {
        width: 32px;
        height: 32px;
    }
}

.thread__connector {
    display: none;
}

.reply-node .thread__connector {
    display: block;
}

.reply-node:last-of-type>.thread__grid>.thread__left>.thread__connector {
    display: none;
}

.thread__main-content+.thread__video-container,
.thread__main-content+.thread__images-container,
.thread__main-content+.thread__youtube-container {
}

.thread__action.share-success {
    color: #00ba7c;
}

.carousel-section {
    margin-top: 4px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.carousel-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
}

.carousel-section__header:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.carousel-section__title {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 15px;
    color: var(--primary);
}

.carousel-section__title i {
    color: var(--secondary);
    font-size: 14px;
}

.carousel-section__topic {
    color: var(--primary);
    font-weight: 600;
}

.carousel-section__label {
    color: var(--secondary);
}

.carousel-section__count {
    color: var(--secondary);
    font-size: 14px;
}

.carousel-section__toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-section__toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

.carousel-section__toggle i {
    transition: transform 0.3s;
}

.carousel-section__header.active .carousel-section__toggle i {
    transform: rotate(180deg);
}

.carousel-section__content {
    padding: 16px;
    border-top: var(--border-style);
}

.carousel-section__track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 12px;
}

.carousel-section__track::-webkit-scrollbar {
    display: none;
}

/* Carousel Card */

/* Carousel Card */
.carousel-card {
    min-width: 240px;
    max-width: 280px;
    background: var(--background);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.carousel-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.carousel-card__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.carousel-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-card__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.carousel-card__author {
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carousel-card__time {
    font-size: 13px;
    color: var(--secondary);
}

.carousel-card__content {
    font-size: 14px;
    line-height: 1.4;
    color: var(--primary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Carousel Navigation */

/* Carousel Navigation */
.carousel-section__nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.carousel-nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333d42;
    color: var(--primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.carousel-nav-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: #4a5568;
}

.carousel-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-nav-btn i {
    font-size: 14px;
}

/* Mobile Responsive */

/* Mobile Responsive */
@media (max-width: 600px) {
    .carousel-card {
        min-width: 240px;
        max-width: 240px;
    }

    .carousel-section__header {
        padding: 12px 16px;
    }

    .carousel-section__content {
        padding: 12px;
    }
}

.thread__action.disabled {
    /* pointer-events: none; - Removed to allow tooltip */
    opacity: 0.5;
    cursor: not-allowed;
}

.thread__author-info.has-username {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 6px;
}

.thread__author-top-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.thread__author-handle {
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.notification-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    flex-shrink: 0;
}

.reply-toggle {
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    user-select: none;
    margin-bottom: 10px;
}

.reply-toggle i {
    font-size: 12px;
}