
    /* =========================================
       1. GLOBAL & RESET
       ========================================= */
    body { 
        font-family: -apple-system, system-ui, sans-serif; 
        background: #fafafa; 
        margin: 0; 
        /* Safe Area padding ensures content isn't covered by iPhone home bar */
        padding-bottom: calc(100px + env(safe-area-inset-bottom)); 
    }
    [x-cloak] { display: none !important; }
    a { text-decoration: none; color: inherit; }
    .hide { display: none; }

    /* =========================================
       2. LAYOUT & NAVIGATION
       ========================================= */
    .layout-wrapper { display: flex; justify-content: center; max-width: 950px; margin: 0 auto; gap: 30px; padding-top: 30px; align-items: flex-start; }
    
    /* Desktop Sidebar */
    .desktop-sidebar { width: 250px; position: sticky; top: 30px; display: none; flex-direction: column; gap: 10px; }
    .sidebar-link { display: flex; align-items: center; padding: 16px; border-radius: 8px; transition: background 0.2s; color: #262626; font-weight: 500; font-size: 16px; }
    .sidebar-link:hover { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
    .sidebar-link span.icon { font-size: 20px; margin-right: 15px; width: 24px; text-align: center; }

    /* Mobile Top Header */
    .mobile-header { 
        position: fixed; top: 0; left: 0; width: 100%; height: 40px; 
        background: #fff; border-bottom: 1px solid #dbdbdb; z-index: 1000; 
        display: flex; align-items: center; 
        justify-content: space-between; /* Force fit */
        padding: 0 5px; 
        box-sizing: border-box; 
    }
    .mobile-link { 
        display: inline-block; 
        padding: 8px 8px; 
        color: #262626; 
        font-weight: 600; 
        font-size: 13px; 
        flex-shrink: 1; 
        white-space: nowrap; 
    }

    /* Feed Stream & Responsive Adaptation */
    .feed-stream { width: 100%; max-width: 500px; }
    .feed-loader { text-align: center; padding: 20px; color: #999; font-size: 14px; }

    /* DESKTOP VIEW (> 850px) */
    @media (min-width: 850px) {
        .desktop-sidebar { display: flex; }
        .mobile-header { display: none; }
        .layout-wrapper { padding-top: 40px; }
    }

    /* TABLET/MOBILE VIEW (< 849px) */
    @media (max-width: 849px) {
        .layout-wrapper { display: block; padding-top: 70px; }
        .feed-stream { margin: 0 auto; max-width: 100%; padding: 0 10px; box-sizing: border-box; }
        .desktop-sidebar { display: none; }
    }

    /* IPHONE SE / TINY SCREEN VIEW (< 350px) */
    @media (max-width: 350px) {
        /* Full Bleed Mode */
        .feed-stream { padding: 0; } 
        .feed-card { border-radius: 0; border-left: none; border-right: none; margin-bottom: 15px; }
        
        /* Compact Menu: Hide Emojis, smaller text */
        .mobile-link { font-size: 11px; padding: 4px 4px; }
        .mobile-link .emoji { display: none; }
    }

    /* =========================================
       3. CARD CONTAINER
       ========================================= */
    .feed-card { background: #fff; border: 1px solid #dbdbdb; border-radius: 8px; margin-bottom: 24px; overflow: hidden; }

    /* =========================================
       4. CARD HEADER (SPLIT LAYOUT)
       ========================================= */
    .fc-header { display: flex; align-items: center; justify-content: space-between; padding: 12px; gap: 10px; }
    
    @media (max-width: 450px) {
        .fc-header { padding: 4px 5px; } /* Tighten vertical space */
    }

    /* Left: Presenter/User Info */
    .fc-header-left { 
        display: flex; align-items: center; 
        flex: 1; 
        min-width: 0; 
        max-width: 60%; /* Strict cap */
    }
    .fc-avatar { width: 40px; height: 40px; border-radius: 50%; margin-right: 10px; object-fit: cover; border: 1px solid #eee; flex-shrink: 0; }
    .fc-meta { display: flex; flex-direction: column; justify-content: center; overflow: hidden; width: 100%; }
    
    .fc-meta h4, .fc-meta span { 
        white-space: nowrap; 
        overflow: hidden; 
        text-overflow: ellipsis; 
        display: block; 
        width: 100%; 
    }
    .fc-meta h4 { font-size: 14px; font-weight: 600; color: #262626; margin: 0; }
    .fc-meta span { font-size: 12px; color: #8e8e8e; }

    /* Right: Sponsor Region */
    .fc-sponsor { 
        display: flex; 
        flex-direction: row;      
        align-items: center;      
        justify-content: flex-end; 
        flex-shrink: 0; 
        max-width: 40%; 
        gap: 6px;                 
    }
    .fc-sponsor-label { 
        font-size: 10px; 
        color: #999; 
        text-transform: uppercase; 
        letter-spacing: 0.5px; 
        margin-bottom: 0;         
        line-height: 1; 
        white-space: nowrap;      
    }
    .fc-sponsor-img { 
        height: 40px; 
        width: auto; 
        max-width: 100%;          
        object-fit: contain; 
    }

/* =========================================
       5. CARD MEDIA (SAFARI BULLETPROOF FIX)
       ========================================= */
    .fc-media { 
        width: 100%; 
        background: #262626; /* Dark gray for contrast */
        position: relative; 
        display: block; 
        overflow: hidden; 
    }
    
    /* The Colored/Blurred Background */
    .fc-media::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; z-index: 0; opacity: 0.3; }
    .fc-media > * { position: relative; z-index: 1; }
    
    /* HEIGHT CONTROL (Applies to Wrapper & Target) */
    .fc-media, .video-wrapper, .fc-carousel-wrapper, .fc-video-target {
        max-height: 600px; 
    }

    /* Mobile Height Cap */
    @media (max-width: 450px) {
        .fc-media, .video-wrapper, .fc-carousel-wrapper, .fc-video-target {
            max-height: 400px !important; 
        }
    }

    .video-wrapper { position: relative; width: 100%; height: 0; overflow: hidden; }
    .video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; }
    .fc-video-target { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
    .fc-video-target iframe { width: 100% !important; height: 100% !important; }

    /* CAROUSEL / IMAGE FIXES */
    .fc-carousel-wrapper { 
        position: relative; 
        width: 100%; 
        overflow: hidden; 
        aspect-ratio: 1/1; 
    }
    
    .fc-carousel-slides { 
        display: flex; 
        transition: transform 0.3s ease-out; 
        height: 100%; 
        width: 100%;
    }
    
    .fc-slide { 
        /* SAFARI FIX: Rigid Width */
        width: 100%; 
        flex: 0 0 100%; 
        height: 100%; 
        position: relative; /* Context for absolute img */
        background: transparent;
    }
    
    /* SAFARI FIX: Absolute Center Strategy */
    /* This forces the image to appear even if Flexbox collapses */
    .fc-slide img { 
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        margin: auto;
        
        max-width: 100%; 
        max-height: 100%; 
        width: auto; 
        height: auto;
        
        object-fit: contain; 
    }
    
    .fc-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.9); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 10; }
    .fc-prev { left: 10px; } 
    .fc-next { right: 10px; }
		
		
		

    /* =========================================
       6. CARD ACTIONS
       ========================================= */
.fc-actions { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    
    /* 
       OLD: padding: 10px 12px 2px 12px; (Too tight on bottom)
       NEW: Equal 12px padding all around 
    */
    padding: 12px; 
}
    .fc-act-group { display: flex; gap: 24px; align-items: center; }
    
    .fc-act-btn { 
        cursor: pointer; font-size: 24px; color: #262626; transition: transform 0.1s, color 0.2s; display: flex; align-items: center; line-height: 1; 
        /* Touch Targets */
        padding: 10px; margin: -10px;
    }
    .fc-act-btn:active { transform: scale(1.1); }
    .fc-act-btn:hover { color: #555; }
    .fc-act-btn.active-like { color: #ed4956; } 
    .fc-act-btn.active-comment { color: #0095f6; } 
    .fc-act-btn.active-save { color: #262626; } 
    .fc-act-btn.share { color: #262626; display:none;}

    .fc-comment-label { font-family: -apple-system, system-ui, sans-serif; font-size: 13px; font-weight: 500; color: #262626; margin-left: 6px; pointer-events: none; }
    .fc-close-label { font-size: 12px; color: #888; margin-left: 5px; font-weight: normal; }

    /* =========================================
       7. CARD BODY (TIGHTENED)
       ========================================= */
    .fc-body { 
        /* Minimal bottom padding, Top is 0 to sit flush with actions */
        padding: 0 12px 8px 12px; 
        font-size: 14px; 
        line-height: 1.3; 
        color: #262626; 
    }
    
    /* Truncation Logic */
    .line-clamp-2 {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* Compact "More" Button */
    .fc-read-more {
        color: #8e8e8e;
        cursor: pointer;
        font-size: 13px;
        font-weight: 500;
        text-align: right; 
        margin-top: -4px; 
        margin-bottom: 0;
        padding-right: 4px;
    }

    /* =========================================
       8. CTA & BUTTONS (COMPACT)
       ========================================= */
    .fc-cta { 
        background: #f0f2f5; 
        padding: 8px 12px; 
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
        border-top: 1px solid #efefef; 
        gap: 12px; 
    }

    /* Left Text Description */
    .fc-cta > div:first-child {
        font-size: 12px; 
        line-height: 1.25;
        font-weight: 500;
        color: #262626;
    }

    /* Base Button */
    .fc-btn { 
        padding: 4px 10px; 
        border-radius: 4px; 
        text-decoration: none; 
        font-weight: 600; 
        font-size: 12px; 
        display: flex; 
        align-items: center; 
        gap: 6px; 
        white-space: nowrap; 
        height: auto;
        min-height: 34px; 
        flex-shrink: 0;   
    }
    .fc-btn:hover { opacity: 0.9; }

    /* LOCKED: Fixed width for 2-line layout */
    .fc-btn.locked { 
        background: #262626; color: #fff; border: 1px solid #000;
        width: 125px; 
        white-space: normal; 
        text-align: left;
        line-height: 1.1; 
        font-size: 11px;
    }

    .fc-btn.unlocked { background: #0095f6; color: #fff; border: 1px solid #0095f6; } 
    .fc-btn.visit { background: #fff; color: #262626; border: 1px solid #dbdbdb; }

    /* =========================================
       9. COMMENTS & DEBUG
       ========================================= */
    .fc-comments-region { background: #fcfcfc; border-top: 1px solid #efefef; overflow: hidden; transition: max-height 0.3s ease-out; }
    .fc-comments-inner { padding: 20px; min-height: 200px; }
    .disqus-loader-msg { text-align: center; color: #999; font-size: 13px; padding: 20px; }

    #debug-console { position: fixed; bottom: 0; left: 0; right: 0; margin-right:1em; height: 300px; background: #1e1e1e; color: #00ff00; font-family: 'Courier New', monospace; border-top: 4px solid #333; z-index: 99999; display: flex; flex-direction: column; transition: height 0.3s; box-shadow: 0 -5px 20px rgba(0,0,0,0.5); }
    #debug-console.collapsed { height: 40px; }
    .dbg-header { background: #333; color: white; padding: 10px; cursor: pointer; display: flex; justify-content: space-between; font-weight: bold; font-size: 12px; user-select: none; }
    .dbg-body { display: flex; flex: 1; overflow: hidden; }
    .dbg-col { flex: 1; padding: 10px; overflow-y: auto; border-right: 1px solid #333; font-size: 11px; }
    .dbg-col:last-child { border-right: none; }
    .dbg-col h5 { margin: 0 0 5px 0; color: #fff; border-bottom: 1px solid #555; padding-bottom: 3px; position: sticky; top: 0; background: #1e1e1e; }
    .dbg-pre { white-space: pre-wrap; word-break: break-all; color: #a5f3fc; }
    .dbg-log-item { margin-bottom: 4px; border-bottom: 1px dashed #333; padding-bottom: 2px; }
    .dbg-time { color: #888; margin-right: 5px; }



/* --- AUTH MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75); /* Darker for better contrast */
    backdrop-filter: blur(5px);
    z-index: 10000; /* Highest priority */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box; /* Prevents padding from breaking width */
}

.modal-box {
    background: #fff;
    width: 100%;
    max-width: 380px; /* Slightly tighter width */
    border-radius: 16px; /* Softer corners */
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.modal-title {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #222;
    line-height: 1.4;
}

.modal-perks {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    font-size: 14px;
    color: #444;
    font-weight: 500;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
    line-height: 1.5;
}

.modal-btn {
    display: block;
    width: 80%;
		margin-left:auto;
		margin-right:auto;
    background: #8BCA01; 
    color: #fff !important;
    font-weight: 700;
    padding: 16px;
    border-radius: 50px; /* Full pill shape */
    text-decoration: none;
    font-size: 18px;
    transition: transform 0.1s, background 0.2s;
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.3);
}

.modal-btn:active { transform: scale(0.98); }

.modal-close {
    margin-top: 20px;
    font-size: 14px;
    color: #888;
    cursor: pointer;
    text-decoration: underline;
    padding: 5px; /* Increases touch target */
}







