.x-image{
    max-width: 400px;
    max-height: 600px;
}
.x {
    background-color: #15202b;
    border: 1px solid #38444d;
    border-radius: 16px;
    max-width:600px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.x-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

.user-info-wrapper {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    line-height: 1.3;
}

.username {
    font-weight: bold;
    font-size: 15px;
    margin-right: 4px;
    color: #e7e9ea;
}

.verified-badge {
    width: 18px;
    height: 18px;
    margin-right: 4px;
    vertical-align: text-bottom;
}

.user-id,
.timestamp {
    color: #8899a6;
    font-size: 15px;
    margin-right: 4px;
}

.separator {
    color: #8899a6;
    margin: 0 4px;
}

.more-options {
    margin-left: auto;
    padding: 8px;
    cursor: pointer;
    align-self: flex-start;
    margin-top: -8px;
    margin-right: -8px;
}

.more-options svg {
    width: 18.75px;
    height: 18.75px;
    fill: #8899a6;
    display: block;
}

.more-options:hover svg {
    fill: #1d9bf0;
}

.x-content {
    margin-left: 60px;
    margin-top: -20px;
    font-size: 15px;
    line-height: 1.5;
    color: #e7e9ea;
    white-space: pre-wrap;
}

.x-content a {
    color: #1d9bf0;
    text-decoration: none;
}
.x-content a:hover {
    text-decoration: underline;
}

.x-media {
    margin-top: 12px;
    margin-left: 60px;
}

.x-media img {
    max-width: 100%;
    border-radius: 16px;
    border: 1px solid #38444d;
    display: block;
}

/* --- UPDATED FOOTER STYLES --- */
.x-footer {
    display: flex; /* Main flex container */
    align-items: center;
    justify-content: space-between; /* Pushes the left and right groups apart */
    margin-top: 12px;
    margin-left: 60px;
    /* No gap here, handled within groups */
}

.footer-actions-left {
    display: flex;
    flex-grow: 1; /* Allows this group to take up space */
    justify-content: space-between; /* Spreads Comment, RT, Like, View */
    max-width: 75%; /* Prevents icons from spreading too far on wide screens, adjust as needed */
    padding-right: 15px; /* Add some space before the right group starts */
}

.footer-actions-right {
    display: flex;
    align-items: center;
    /* Use gap for spacing *only* between Bookmark and Share */
    gap: 15px; /* Adjust this value for closeness of Bookmark/Share */
}
/* --- End of Updated Footer Styles --- */


.action-item {
    display: flex;
    align-items: center;
    color: #8899a6;
    font-size: 13px;
    cursor: pointer;
}

/* Individual hover colors */
.action-item.comment:hover { color: #1d9bf0; }
.action-item.rex:hover { color: #00ba7c; }
.action-item.like:hover { color: #f91880; }
.action-item.view:hover { color: #1d9bf0; }
.action-item.bookmark:hover { color: #1d9bf0; }
.action-item.share:hover { color: #1d9bf0; }


.action-item svg {
    width: 18.75px;
    height: 18.75px;
    fill: currentColor;
    margin-right: 4px;
}

.action-item .count {
     line-height: 1;
}