/* FindFyre Team Updates — /updates and /updates/{slug} */

.ffup-page {
    --ffup-pink: #e0548d;
    --ffup-pink-hover: #ff7ab0;
    --ffup-bg: #0b0e14;
    --ffup-card: #141821;
    --ffup-border: rgba(255, 255, 255, 0.08);
    --ffup-text: #f2f4f8;
    --ffup-muted: #8b93a7;
    --ffup-secondary: #c5cad6;
    min-height: 70vh;
    padding: 88px 16px 96px;
    background: var(--ffup-bg);
    color: var(--ffup-text);
}

body.fp-light .ffup-page,
html.ff-light .ffup-page {
    --ffup-bg: #f4f5f8;
    --ffup-card: #ffffff;
    --ffup-border: rgba(15, 18, 28, 0.08);
    --ffup-text: #16181d;
    --ffup-muted: #6b7280;
    --ffup-secondary: #374151;
}

@media (min-width: 769px) {
    .ffup-page {
        margin-left: var(--sidebar-w, 56px);
        width: calc(100% - var(--sidebar-w, 56px));
        box-sizing: border-box;
    }
}

.ffup-inner {
    max-width: 640px;
    margin: 0 auto;
}

.ffup-head {
    margin: 0 0 28px;
}

.ffup-title {
    margin: 0;
    font-family: Poppins, Inter, system-ui, sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ffup-text);
}

.ffup-sub {
    margin: 8px 0 0;
    color: var(--ffup-muted);
    font-size: 15px;
}

.ffup-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 18px;
    color: var(--ffup-pink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.ffup-back:hover {
    color: var(--ffup-pink-hover);
}

.ffup-feed {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ffup-card {
    background: var(--ffup-card);
    border: 1px solid var(--ffup-border);
    border-radius: 16px;
    padding: 16px 16px 14px;
    cursor: pointer;
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.ffup-card:hover {
    border-color: rgba(224, 84, 141, 0.35);
}

.ffup-page[data-ffup-view="detail"] .ffup-card {
    cursor: default;
}

.ffup-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.ffup-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.ffup-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #1b2230;
    flex-shrink: 0;
}

.ffup-idblock {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ffup-name-row {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.ffup-name {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ffup-verified {
    display: inline-flex;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #258fd3;
}

.ffup-verified svg {
    width: 14px;
    height: 14px;
    display: block;
}

.ffup-handle {
    color: var(--ffup-muted);
    font-size: 13px;
    line-height: 1.3;
}

.ffup-time {
    color: var(--ffup-muted);
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 2px;
}

.ffup-menu {
    position: relative;
    flex-shrink: 0;
}

.ffup-menu-btn {
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: var(--ffup-muted);
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.ffup-menu-btn:hover {
    background: rgba(224, 84, 141, 0.1);
    color: var(--ffup-pink);
}

.ffup-menu-pop {
    display: none;
    position: absolute;
    right: 0;
    top: 34px;
    min-width: 160px;
    background: var(--ffup-card);
    border: 1px solid var(--ffup-border);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    z-index: 5;
    overflow: hidden;
}

.ffup-menu-pop.open {
    display: block;
}

.ffup-menu-pop button {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    color: var(--ffup-text);
    padding: 10px 12px;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.ffup-menu-pop button:hover {
    background: rgba(224, 84, 141, 0.12);
    color: var(--ffup-pink);
}

.ffup-title-line {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.ffup-body {
    margin: 0;
    color: var(--ffup-secondary);
    font-size: 15px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.ffup-page[data-ffup-view="list"] .ffup-body {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ffup-page[data-ffup-view="detail"] .ffup-body {
    margin-bottom: 4px;
}

.ffup-body p {
    margin: 0 0 10px;
}

.ffup-body p:last-child {
    margin-bottom: 0;
}

.ffup-link,
.ffup-tag,
.ffup-mention,
.ffup-body a {
    color: var(--ffup-pink) !important;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
}

.ffup-link:hover,
.ffup-tag:hover,
.ffup-mention:hover,
.ffup-body a:hover {
    color: var(--ffup-pink-hover) !important;
}

.ffup-more {
    display: inline-block;
    margin-top: 8px;
    color: var(--ffup-pink);
    font-size: 14px;
    font-weight: 600;
}

.ffup-media {
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
    background: #0a0d14;
    position: relative;
}

.ffup-media img,
.ffup-media video {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(70vh, 680px);
    object-fit: cover;
    object-position: center;
}

.ffup-media + .ffup-media {
    margin-top: 8px;
}

.ffup-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.ffup-play img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: none;
    max-height: none;
}

.ffup-empty {
    text-align: center;
    padding: 48px 12px;
    color: var(--ffup-muted);
}

.ffup-empty-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ffup-text);
    margin-bottom: 8px;
}

.ffup-retry {
    display: inline-flex;
    margin-top: 14px;
    background: var(--ffup-pink);
    color: #fff !important;
    text-decoration: none;
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 600;
    cursor: pointer;
}

.ffup-loading,
.ffup-end {
    text-align: center;
    color: var(--ffup-muted);
    padding: 18px 0 8px;
    font-size: 13px;
}

.ffup-toast {
    position: fixed;
    left: 50%;
    bottom: 88px;
    transform: translateX(-50%);
    background: rgba(20, 24, 33, 0.94);
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 13px;
    z-index: 40;
}
