/* Taboo! Social Newsfeed — plugin-owned card system */

body ul.ow_newsfeed {
    width: 100%;
    max-width: 1080px;
    margin-right: auto;
    margin-left: auto;
    padding: 0;
}

.ow_newsfeed_item:not(.ow_nocontent) {
    margin: 0 0 18px;
    list-style: none;
}

.ow_newsfeed_item .taboo-newsfeed-card {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 13px;
    position: relative;
    box-sizing: border-box;
    padding: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 66, 139, .46);
    border-radius: 16px;
    background:
        radial-gradient(circle at 92% 0, rgba(205, 16, 96, .12), transparent 34%),
        linear-gradient(145deg, rgba(80, 4, 45, .94), rgba(27, 0, 19, .96));
    box-shadow: 0 11px 30px rgba(0, 0, 0, .24);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.ow_newsfeed_item .taboo-newsfeed-card:hover,
.ow_newsfeed_item .taboo-newsfeed-card:focus-within {
    border-color: rgba(255, 92, 158, .78);
    box-shadow: 0 15px 36px rgba(0, 0, 0, .32), 0 0 22px rgba(255, 31, 113, .1);
}

.ow_newsfeed_item .taboo-newsfeed-card--line {
    grid-template-columns: minmax(0, 1fr);
}

.ow_canvas .ow_newsfeed_item .taboo-newsfeed-card > .ow_newsfeed_avatar {
    float: none;
    width: 50px !important;
    height: auto !important;
    margin: 0 !important;
}

.ow_canvas .ow_newsfeed_item .taboo-newsfeed-card > .ow_newsfeed_avatar img {
    width: 46px !important;
    height: 46px !important;
    object-fit: cover;
    border: 2px solid rgba(255, 93, 158, .58);
    border-radius: 10px;
    box-shadow: 0 5px 16px rgba(0, 0, 0, .3);
}

.ow_canvas .ow_newsfeed_item .taboo-newsfeed-card > .ow_newsfeed_body {
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}

.ow_newsfeed_item .ow_newsfeed_context_menu_wrap {
    min-width: 0;
}

.ow_newsfeed_item .ow_newsfeed_string {
    color: #eadce5;
    line-height: 1.4;
}

.ow_newsfeed_item .ow_newsfeed_string a {
    color: #67a0ff;
}

.ow_newsfeed_item .ow_newsfeed_content {
    width: min(100%, 920px) !important;
    max-width: 920px !important;
    box-sizing: border-box;
    margin: 12px auto 0 !important;
}

.ow_newsfeed_item .ow_newsfeed_oembed_atch {
    display: grid !important;
    grid-template-columns: 220px minmax(0, 1fr) !important;
    width: min(100%, 820px) !important;
    max-width: 820px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    min-height: 138px;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid rgba(255, 75, 144, .4);
    border-radius: 13px;
    background: rgba(29, 0, 20, .76);
}

.ow_newsfeed_item .ow_newsfeed_oembed_atch .ow_newsfeed_item_picture {
    float: none !important;
    width: 220px !important;
    height: 138px !important;
    margin: 0 !important;
    overflow: hidden;
    background: rgba(20, 0, 14, .72);
}

.ow_newsfeed_item .ow_newsfeed_oembed_atch .ow_newsfeed_item_picture img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
}

.ow_newsfeed_item .ow_newsfeed_oembed_atch .ow_newsfeed_item_content {
    min-width: 0;
    box-sizing: border-box;
    padding: 17px 19px;
}

.ow_newsfeed_item .ow_newsfeed_item_title {
    display: block;
    margin-bottom: 7px;
    overflow: hidden;
    color: #fff !important;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
}

.ow_newsfeed_item .ow_newsfeed_item_content .ow_remark {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #ead8e3 !important;
    font-size: 14px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.ow_newsfeed_item .ow_newsfeed_btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.ow_newsfeed_item .ow_newsfeed_left {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    width: auto !important;
    min-width: 0;
    float: none !important;
}

.ow_newsfeed_item .ow_newsfeed_control {
    position: relative !important;
    top: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 9px !important;
}

.ow_newsfeed_item .ow_newsfeed_date {
    order: 2;
    align-self: center;
    float: none !important;
    margin: 0 0 0 auto !important;
    color: #bfa1b3 !important;
    line-height: 34px !important;
}

.ow_newsfeed_item .ow_newsfeed_delimiter {
    display: none;
}

/* ==========================================================
   TABOO! COMMENT PILL
   ========================================================== */

html body .ow_newsfeed_item .ow_newsfeed_btns {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

html body .ow_newsfeed_item .ow_newsfeed_left {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    width: auto !important;
    float: none !important;
}

html body .ow_newsfeed_item .ow_newsfeed_control {
    position: relative !important;
    top: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 9px !important;
}

html body .ow_newsfeed_item .ow_newsfeed_date {
    order: 2 !important;
    align-self: center !important;
    float: none !important;
    margin: 0 0 0 auto !important;
    line-height: 34px !important;
}

html body .ow_newsfeed_item .ow_newsfeed_btn_wrap:has(.newsfeed_comment_btn_cont),
html body .ow_newsfeed_item .ow_newsfeed_btn_wrap:has(.newsfeed_counter_comments),
html body .ow_newsfeed_item .ow_newsfeed_btn_wrap[class*="-status-comments"] {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 64px !important;
    height: 30px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 8px 0 34px !important;
    color: #ffffff !important;
    background: linear-gradient(180deg, #5b102e 0%, #2b0716 100%) !important;
    border: 2px solid #ff5f99 !important;
    border-radius: 8px !important;
    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.34),
        0 0 10px rgba(255, 55, 125, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    font-family: Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.82) !important;
    overflow: hidden !important;
}

html body .ow_newsfeed_item .ow_newsfeed_btn_wrap:has(.newsfeed_comment_btn_cont)::before,
html body .ow_newsfeed_item .ow_newsfeed_btn_wrap:has(.newsfeed_counter_comments)::before,
html body .ow_newsfeed_item .ow_newsfeed_btn_wrap[class*="-status-comments"]::before {
    content: "" !important;
    position: absolute !important;
    left: 8px !important;
    top: 8px !important;
    width: 15px !important;
    height: 10px !important;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(255, 210, 228, 0.95) !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.34) !important;
}

html body .ow_newsfeed_item .ow_newsfeed_btn_wrap:has(.newsfeed_comment_btn_cont)::after,
html body .ow_newsfeed_item .ow_newsfeed_btn_wrap:has(.newsfeed_counter_comments)::after,
html body .ow_newsfeed_item .ow_newsfeed_btn_wrap[class*="-status-comments"]::after {
    content: "" !important;
    position: absolute !important;
    left: 17px !important;
    top: 17px !important;
    width: 0 !important;
    height: 0 !important;
    border-top: 5px solid rgba(255, 255, 255, 0.96) !important;
    border-right: 5px solid transparent !important;
}

html body .ow_newsfeed_item .ow_newsfeed_btn_wrap:has(.newsfeed_comment_btn_cont) .newsfeed_comment_btn_cont {
    display: none !important;
}

html body .ow_newsfeed_item .ow_newsfeed_btn_wrap[class*="-status-comments"] .newsfeed-feature-button-control {
    display: none !important;
}

html body .ow_newsfeed_item .ow_newsfeed_btn_wrap:has(.newsfeed_comment_btn_cont) .newsfeed_counter_comments,
html body .ow_newsfeed_item .ow_newsfeed_btn_wrap:has(.newsfeed_counter_comments) .newsfeed_counter_comments,
html body .ow_newsfeed_item .ow_newsfeed_btn_wrap[class*="-status-comments"] .ow_newsfeed_btn_label {
    display: inline !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    text-indent: 0 !important;
}

html body .ow_newsfeed_item .ow_newsfeed_btn_wrap:has(.newsfeed_comment_btn_cont):hover,
html body .ow_newsfeed_item .ow_newsfeed_btn_wrap:has(.newsfeed_comment_btn_cont):focus-within,
html body .ow_newsfeed_item .ow_newsfeed_btn_wrap:has(.newsfeed_counter_comments):hover,
html body .ow_newsfeed_item .ow_newsfeed_btn_wrap:has(.newsfeed_counter_comments):focus-within,
html body .ow_newsfeed_item .ow_newsfeed_btn_wrap[class*="-status-comments"]:hover,
html body .ow_newsfeed_item .ow_newsfeed_btn_wrap[class*="-status-comments"]:focus-within {
    background: linear-gradient(180deg, #e02b6f 0%, #961549 100%) !important;
    border-color: #ff9ac0 !important;
    box-shadow:
        0 4px 11px rgba(0, 0, 0, 0.42),
        0 0 14px rgba(255, 75, 145, 0.40),
        inset 0 1px 0 rgba(255, 255, 255, 0.20) !important;
}

/* Virtual Gifts: preserve transparent artwork without creating a tall blank item. */
.ow_newsfeed_item[data-entity-type="user_gift"] .ow_newsfeed_oembed_atch {
    display: grid !important;
    grid-template-columns: 180px minmax(0, 1fr) !important;
    width: min(100%, 680px) !important;
    max-width: 680px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

.ow_newsfeed_item[data-entity-type="user_gift"] .ow_newsfeed_oembed_atch .ow_newsfeed_item_picture {
    float: none !important;
    width: 180px !important;
    height: 180px !important;
    margin: 0 !important;
}

.ow_newsfeed_item[data-entity-type="user_gift"] .ow_newsfeed_oembed_atch .ow_newsfeed_item_picture img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    padding: 10px !important;
    box-sizing: border-box;
}

/* Taboo Awards currently supplies raw image markup. Keep it compact and centered. */
.ow_newsfeed_item[data-entity-type="tabooawards-earned"] .ow_newsfeed_content {
    display: flex;
    align-items: center;
    min-height: 0;
}

.ow_newsfeed_item[data-entity-type="tabooawards-earned"] .taboo-awards-feed-icon {
    display: block;
    width: 150px !important;
    height: 150px !important;
    max-width: 100%;
    object-fit: contain;
}

/* Large standalone media remains prominent without taking over the page. */
.ow_newsfeed_item .ow_newsfeed_large_image,
.ow_newsfeed_item .ow_newsfeed_photo_grid {
    max-width: 680px;
    margin-right: auto;
    margin-left: auto;
}

.ow_newsfeed_item .ow_newsfeed_large_image .ow_newsfeed_item_picture {
    max-width: 680px;
}

.ow_newsfeed_item .ow_newsfeed_large_image .ow_newsfeed_item_picture img {
    width: auto;
    max-width: 100%;
    max-height: 620px;
    border-radius: 12px;
}

@media (max-width: 700px) {
    .ow_newsfeed_item .taboo-newsfeed-card {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 10px;
        padding: 11px;
        border-radius: 13px;
    }

    .ow_canvas .ow_newsfeed_item .taboo-newsfeed-card > .ow_newsfeed_avatar {
        width: 42px;
    }

    .ow_canvas .ow_newsfeed_item .taboo-newsfeed-card > .ow_newsfeed_avatar img {
        width: 38px;
        height: 38px;
    }

    .ow_newsfeed_item .ow_newsfeed_oembed_atch,
    .ow_newsfeed_item[data-entity-type="user_gift"] .ow_newsfeed_oembed_atch {
        display: block !important;
        width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        max-width: 100%;
    }

    .ow_newsfeed_item .ow_newsfeed_oembed_atch .ow_newsfeed_item_picture,
    .ow_newsfeed_item[data-entity-type="user_gift"] .ow_newsfeed_oembed_atch .ow_newsfeed_item_picture {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
    }

    .ow_newsfeed_item[data-entity-type="user_gift"] .ow_newsfeed_oembed_atch .ow_newsfeed_item_picture {
        aspect-ratio: 1 / 1;
        max-height: 280px;
    }

    .ow_newsfeed_item .ow_newsfeed_oembed_atch .ow_newsfeed_item_content {
        padding: 14px;
    }
}
