.post_snippet_container {
    font-family: "Roboto", sans-serif;
    background: var(--uw-white-1);
    padding: 0px;
    position: relative;
    color:var(--uw-text-1) !important;
    transition:0.1s;
    cursor: pointer;
    border-radius: 20px;
    margin-bottom: 10px;
    z-index: 1;
}

.post_snippet_layout {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.post_snippet_profile_column {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.post_snippet_useractions_dropdown_button {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.1s ease;
}

.post_username_tag {
    text-decoration: none; 
    color: var(--uw-text-1); 
    font-weight: 600;
    transition: 0.1s;
}

.post_username_tag:hover {
    color: var(--uw-blurple-1);
}



.dropdown-icon {
    width: 16px;
    height: 16px;
    opacity: 0.4;
    transition: opacity 0.1s ease;
}

.post_snippet_useractions_dropdown_button:hover .dropdown-icon {
    opacity: 1;
}

.post_snippet_content_column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post_snippet_user_profilepicture {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--uw-white-1);
    object-fit: cover;
    cursor: pointer;
    transition: 0.1s;
}

.post_snippet_user_profilepicture:hover {
    opacity: 0.8;
}

.post_snippet_user_profilepicture.has-story {
    border: 1px solid var(--uw-white-3) !important;
    box-shadow: 0 0 0 1px var(--uw-white-1), 0 0 0 3px var(--uw-blurple-1);
}


.post_snippet_user_username {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 0;
    justify-content: space-between;
}

.user-name-container {
    display: flex;
    align-items: center;
    gap: 4px;
}

.user-badges {
    display: flex;
    align-items: center;
    gap: 4px;
}

.group-link {
    display: inline-flex;
    align-items: center;
    transition: 0.1s;
    border-radius: 50px;
    padding: 2px 8px;
    margin-left:4px;
    border:1px solid transparent;
    background: transparent;
}

.group-link:hover {
background: var(--uw-white-2);
}

.group-icon {
    transition: 0.1s;
}


.post_snippet_post_content {
    margin: 0 0 10px 0;
    color: var(--uw-text-1) !important;
    font-size: 15px;

    /* Ensure content stays within the box */
    word-wrap: break-word; /* Break long words */
    overflow-wrap: break-word; /* For older browsers */
    word-break: break-word; /* Force break long unbroken strings */
    white-space: normal; /* Allow text to wrap to the next line */
    hyphens: auto; /* Add hyphenation for better breaking */

    /* Handle overflow gracefully */
    max-height: 400px; /* Limit the height of the content */
    overflow-y: auto; /* Add vertical scroll if content exceeds max height */
    padding-right: 5px; /* Add space to avoid text hidden under scrollbar */
}

.post_snippet_post_content p {
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    hyphens: auto;
}

.post_snippet_post_content a {
    color: var(--uw-blurple-1);
    text-decoration: none;
    transition: 0.1s;
}

.post_snippet_post_content a:hover {
    text-decoration: underline;
}

/* Optional: Style the scrollbar for a better appearance */
.post_snippet_post_content::-webkit-scrollbar {
    width: 8px;
    border-radius: 50px;
    background-color:#111418 !important;
}

.post_snippet_post_content::-webkit-scrollbar-thumb {
    background: #8c9096; /* Scrollbar color */
    border-radius: 10px; /* Rounded edges */
}

.post_snippet_post_media_container {
    margin-top: 10px;
    margin-bottom: 10px;
}

.post_snippet_post_media_image_wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    min-height: 1px;
    transition:  0.1s;
}

.post_snippet_post_media_image_wrapper::before {
    content: '';
    position: absolute;
    inset: -20%;
    background-image: var(--bg-url);
    background-size: cover;
    background-position: center;
    filter: blur(40px);
    transform: scale(1.2);
    z-index: 0;
}

.post_snippet_post_media_image {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    max-height: 512px;
    border-radius: 20px;
    transition: 0.1s;
    object-fit: contain;
    border: none;
}


/* Video Styles */
.vids_video_container {
    margin: 0px 0;
    width: 100%;
}

.vids_video_frame {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 20px;
    border: 1px solid var(--uw-white-3);
}

.post_snippet_video {
    width: 100%;
    max-height: 500px;
    border-radius: 20px;
    border: 1px solid var(--uw-white-3);
    object-fit: contain;
    background: #000;
}


.post_snippet_post_media_expand {
    display: block;
    font-size: 12px;
    margin-top: 10px;
    margin-bottom:10px;
    color: var(--uw-text-2);
    background: var(--uw-white-2);
    text-decoration: none;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 50px;
    text-align: center;
    width: fit-content;
    transition:0.1s;
}

.post_snippet_post_media_expand:hover {
    background: var(--uw-white-3);
}

.post_snippet_trending_container {
    font-family: "Roboto", sans-serif;
    margin-top:10px;
    margin-bottom:10px;
    border: none;
    border-radius: 50px;
    padding: 5px 20px;
    width:10%;
    font-size: 12px;
    text-align: center;
    cursor:default;
}

.post_snippet_trending_trendingcolor {
    background: var(--uw-white-2);
    color: var(--uw-text-1);
    border:1px solid var(--uw-white-3);
    transition:0.1s;
}

.post_snippet_trending_trendingcolor:hover {
    background: var(--uw-white-3);
    border:1px solid var(--uw-white-4);
}

.post_snippet_trending_nodisplay {
    display: none;
}

.post_snippet_trending_viralcolor {
    background: var(--uw-white-2);
    color: var(--uw-text-1);
    border:1px solid var(--uw-white-3);
    transition:0.1s;
}

.post_snippet_trending_viralcolor:hover {
    background: var(--uw-white-3);
    border:1px solid var(--uw-white-4);
}

.post_snippet_useractions_container {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.post_snippet_useractions_container button img {
    width: 16px;
    height: 16px;
}

/* Read-only stats (explore page) - not interactive, no button appearance */
.post_snippet_stats_readonly {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    padding-top: 4px;
}
.post_snippet_stats_readonly .post_snippet_stat_item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--uw-text-2);
    font-weight: 400;
    cursor: default;
    pointer-events: none;
    user-select: none;
}
.post_snippet_stats_readonly .post_snippet_stat_icon {
    width: 14px;
    height: 14px;
    opacity: 0.6;
    object-fit: contain;
}

.post_snippet_useractions_container button {
    padding: 5px 10px;
    width: 100%;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    transition: 0.1s;
    background:transparent;
    outline: none;
    border: none;
    text-align: center;
    width:fit-content;
    border:1px solid transparent;
} 

.post_snippet_useractions_container button i {
    font-size: 12px;
}

.post_snippet_useractions_container button:hover {
    background: var(--uw-white-2);
}


/* Post Dropdown container */
.post_snippet_useractions_dropdown {
    position: relative;
    display: inline-block;
    z-index: 1;
}

/* The button/icon that triggers the post dropdown */
.post_snippet_useractions_dropdown_button {
    color:var(--uw-text-1);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px
}

/* Post Dropdown content (hidden by pointer) */
.post_snippet_useractions_dropdown_content {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100%);
    background-color: var(--uw-white-1);
    border:1px solid var(--uw-white-2);
    min-width: 160px;
    border-radius: 20px;
    z-index: 1;
}


/* Links and buttons inside the post dropdown */
.post_snippet_useractions_dropdown_content a,
.post_snippet_useractions_dropdown_content button {
    color: var(--uw-text-1);
    padding: 5px 20px;
    margin:10px;
    font-size: 12px;
    text-decoration: none;
    display: block;
    border-radius: 50px;
    background: var(--uw-white-1);
    border:1px solid var(--uw-white-2);
    width: 90%;
    text-align: left;
    cursor: pointer;
}

.post_snippet_useractions_dropdown_content a:hover,
.post_snippet_useractions_dropdown_content button:hover {
    background:var(--uw-white-2);
    border:1px solid var(--uw-white-3);
}

/* Show the dropdown menu when the button is clicked */
.post_snippet_useractions_dropdown:hover .post_snippet_useractions_dropdown_content {
    display: block;
}

/* Delete button inside the dropdown */
.post_snippet_useractions_dropdown_deletebutton {
    color: #f23f43 !important;
}

.bi-exclamation-diamond-fill{
    color: #f23f43 !important;
}

/* CSS for the Like Button Replacement */
.post_snippet_useractions_like {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.post_snippet_useractions_like img {
    width: 20px;
    height: 20px;
}


.post_snippet_useractions_save {
    background: none;
    border: none;
    cursor: pointer;
}

.post_snippet_useractions_comments {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.comments-btn:hover .save-icon {
    border:1px solid #ccc;
}

.post_snippet_useractions_save_icon {
    width: 20px; /* Set a size for the icon */
    height: 20px;
}

.action-count {
    font-size: 12px;
    color: var(--uw-text-2);
    font-weight: 500;
    min-width: 16px;
    text-align: center;
}


.post_snippet_useractions_reveal {
    font-family: "Roboto", sans-serif;
    display: block;
    font-size: 12px;
    margin-top: 10px;
    text-decoration: none;
    color:var(--uw-text-1);
    background-color: var(--uw-white-2);
    padding: 5px 20px;
    border-radius: 50px;
    text-align: left;
    width: fit-content;
    margin-bottom:10px;
    cursor:pointer;
    transition:0.1s;
    border:1px solid var(--uw-white-3);
}

.post_snippet_useractions_reveal:hover {
    background-color: var(--uw-white-3);
    border:1px solid var(--uw-white-4);
}

p{
    margin: 0;
}

@media (max-width: 768px) {
    .post_snippet_container {
        padding: 18px;
    }

    .post_snippet_useractions_reveal {
        padding: 12px;
        width: 400px;
    }

    .post_snippet_profilecontainer {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        margin-bottom: 8px;
    }

    .post_snippet_user_profilepicture {
        width: 32px;
        height: 32px;
        margin-right: 0;
        cursor: pointer;
        transition: 0.1s;
        border: 1px solid var(--uw-white-3);
    }
    
    .post_snippet_user_profilepicture:hover {
        border:1px solid var(--uw-blurple-1);
    }

    .post_snippet_user_username {
        font-size: 14px;
    }

    .post_snippet_post_content {
        font-size: 16px;
        margin: 0 0 8px 0;
        margin-top:10px !important;
    }

    .post_snippet_post_media_image {
        max-height: 240px;
        max-width: 100%;
    }

    .post_snippet_post_media_expand {
        font-size: 12px;
        width: 100%;
        padding: 6px 0;
    }

    .post_snippet_trending_container {
        width: auto;
        font-size: 10px;
        padding: 4px 8px;
        margin: 5px 0;
    }

    .post_snippet_useractions_container button {
        padding: 6px 12px;
        font-size: 12px;
    }

    .post_snippet_useractions_dropdown {
        position: relative;
    }

    .post_snippet_useractions_dropdown_content {
        min-width: 140px;
        border-radius: 8px;
    }

    .post_snippet_useractions_like img,
    .post_snippet_useractions_save_icon {
        width: 18px;
        height: 18px;
    }
}

.custom-video-continer {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 10px auto;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.custom-video {
    width: 100%;
    border-radius: 8px 8px 0 0;
}

.custom-video-controls {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 8px;
    background: #ffffff;
    border:1px solid #f0f2f5;
    border-radius: 0 0 8px 8px;
    margin-top:-5px;
    box-shadow: 0 4px 12px #f0f2f590;
}

.play-pause-button, .mute-button {
    background: none;
    border: none;
    color: #5865f2;
    font-size: 1.2rem;
    cursor: pointer;
}


.seek-bar, .volume-bar {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #f0f2f5;
    border-radius: 3px;
    cursor: pointer;
}

.volume-bar{
    width: 10%;
}

.seek-bar::-webkit-slider-thumb, .volume-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #5865f2;
    border-radius: 50%;
}

.seek-bar:hover, .volume-bar:hover {
    background: #e3e6e9;
}

.fullscreen-button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}



/* Hamburger Menu Styles */
.post_snippet_hamburger_menu {
    position: relative;
}

.post_snippet_hamburger_button {
    padding: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post_snippet_hamburger_button:hover {
    background: var(--uw-white-2);
}

.post_snippet_hamburger_icon {
    width: 18px;
    height: 18px;
    opacity: 0.6;
    transition: 0.1s;
}

.post_snippet_hamburger_button:hover .post_snippet_hamburger_icon {
    opacity: 1;
}

.post_snippet_hamburger_dropdown {
    display: none;
    position: absolute;
    right: 0;
    bottom: 100%;
    padding: 10px;
    margin-bottom: 5px;
    background: var(--uw-white-1);
    border: none;
    outline: none;
    border-radius: 20px;
    min-width: 160px;
    z-index: 1000;
    overflow: hidden;
    border:1px solid var(--uw-white-2);
}

.post_snippet_hamburger_dropdown.show {
    display: block;
}

.post_snippet_hamburger_item {
    width: fit-content;
    padding: 6px 12px !important;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 12px !important;
    color: var(--uw-text-1);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.1s;
    font-weight: 500;
    border-radius: 20px;
    text-decoration: none;

}

.post_snippet_hamburger_item:hover {
    background: var(--uw-white-2);
}

.post_snippet_hamburger_item img {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.post_snippet_hamburger_delete {
    color: #ef4444;
}

.post_snippet_hamburger_delete:hover {
    background: #fee;
}

/* Translation Notice Styles */
.translation-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin-top: 10px;
    background: var(--uw-white-2);
    border: none;
    border-radius: 20px;
    font-size: 12px;
    color: var(--uw-text-2);
}

.translation-notice img.translation-logo {
    height: 14px;
    width: auto;
}

.translation-notice span {
    font-weight: 500;
}

/* Embedded Content Styles */
.post_snippet_embedded_content {
    margin-bottom: 10px;
}

.embedded-repost {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.embedded-repost-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--uw-text-1);
}

.embedded-repost-icon {
    font-size: 16px;
}

.embedded-repost-text {
    font-weight: 500;
}

.embedded-repost-preview {
    padding: 10px;
    background: var(--uw-white-1);
    border-radius: 10px;
    border: 1px solid var(--uw-white-3);
}

.embedded-repost-link {
    color: var(--uw-blurple-1);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.1s;
}

.embedded-repost-link:hover {
    text-decoration: underline;
}




.embedded-link {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.1s;
    background-color: var(--uw-white-2);
}

.embedded-link:hover {
    background-color: var(--uw-white-3);
}

.embedded-link-container {
    display: flex;
    text-decoration: none;
    color: inherit;
    max-height: 120px;
}

.embedded-link-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    background-color: var(--uw-white-2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.embedded-link-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.embedded-link-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.embedded-link-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--uw-text-1);
    margin-bottom: 4px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.embedded-link-description {
    font-size: 13px;
    color: var(--uw-text-2);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 4px;
}

.embedded-link-site {
    font-size: 12px;
    color: var(--uw-blurple-1);
    font-weight: 500;
}

/* Mobile responsive for embedded links - always show text (stack image above content) */
@media (max-width: 768px) {
    .embedded-link-container {
        flex-direction: column;
        max-height: none;
    }
    
    .embedded-link-image {
        width: 100%;
        height: 160px;
    }
}

/* Embedded Video Styles */
.embedded-video {
    border: 1px solid var(--uw-white-3);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.2s ease;
    background-color: var(--uw-white-1);
    margin-top: 10px;
}

.embedded-video:hover {
    border-color: var(--uw-white-4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 40%; /* Reduced from 56.25% (16:9) to 40% for smaller height */
    background-color: var(--uw-white-2);
}

.embedded-video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.embedded-video-title {
    padding: 12px;
    font-weight: 600;
    font-size: 14px;
    color: var(--uw-text-1);
    line-height: 1.3;
    border-top: 1px solid var(--uw-white-3);
}

/* Mobile responsive for embedded videos */
@media (max-width: 768px) {
    .embedded-video {
        margin-top: 8px;
    }
    
    .embedded-video-title {
        padding: 10px;
        font-size: 13px;
    }
}

/* Embedded Spotify Styles */
.embedded-spotify {
    border: 1px solid var(--uw-white-3);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    background-color: var(--uw-white-1);
    margin-top: 10px;
}

.embedded-spotify:hover {
    border-color: var(--uw-white-4);
}

.embedded-spotify-iframe {
    display: block;
    border: none;
}

@media (max-width: 768px) {
    .embedded-spotify {
        margin-top: 8px;
    }
}

/* Embedded Post Container Styles */
.embedded-post-container {
    background: var(--uw-white-1);
    border-radius: 20px;
    transition: 0.1s;
    box-shadow: none;
}


.embedded-repost-error {
    color: var(--uw-text-10);
    font-style: italic;
}

/* Embedded Repost Actions */
.embedded-repost-actions {
    margin-top: 10px;
}

.embedded-repost-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--uw-white-2);
    border-radius: 20px;
    color: var(--uw-text-1);
    text-decoration: none;
    font-size: 12px;
    transition: 0.1s;
    cursor: pointer;
}

.embedded-repost-view-btn:hover {
    background: var(--uw-white-3);
    color: var(--uw-text-1);
    text-decoration: none;
}

.embedded-repost-view-icon {
    width: 16px;
    height: 16px;
}

/* Announcement Banner Styles */
.announcement-banner {
    font-family: "Roboto", sans-serif;
    background: var(--uw-white-1);
    padding: 10px 15px;
    position: relative;
    color: var(--uw-text-1) !important;
    border-top: 1px solid var(--uw-white-3);
    cursor: default; /* No pointer cursor since it's not clickable */
}

.announcement-banner:hover {
    background: var(--uw-background-11);
}

/* Ensure announcement banner doesn't have interactive elements */
.announcement-banner .post_snippet_user_profilepicture {
    cursor: default;
}

.announcement-banner .post_username_tag {
    cursor: default;
}

.announcement-banner .post_username_tag:hover {
    color: var(--uw-text-1); /* Keep same color on hover */
}

/* Mobile responsive for announcement banner */
@media (max-width: 768px) {
    .announcement-banner {
        padding: 18px;
    }
}

