/* Prevent AdSense scroll detection issues */
.feed {
    overflow: visible !important; /* Critical: prevents AdSense from detecting scroll container */
    height: auto !important;
}

.feed_container {
    overflow: visible !important; /* Critical: prevents AdSense from detecting scroll container */
    height: auto !important;
}

.main_content {
    overflow: visible !important; /* Critical: prevents AdSense from detecting scroll container */
}

.feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feed-warning {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 8px;
}

.feed-warning svg {
    width: 24px;
    height: 24px;
    color: #ef4444;
    flex-shrink: 0;
    margin-top: 2px;
}

.feed-warning-content {
    flex: 1;
}

.feed-warning-content strong {
    display: block;
    color: #ef4444;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.feed-warning-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.posts-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feed-loader {
    display: flex;
    justify-content: center;
    padding: 24px;
}

.feed-loader-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.feed-end {
    text-align: center;
    padding: 32px 16px;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
}

.feed-skeletons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-post {
    background: #1e2024;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 16px;
}

.skeleton-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.skeleton-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.06) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-info {
    flex: 1;
}

.skeleton-name {
    width: 120px;
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.06) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin-bottom: 6px;
}

.skeleton-meta {
    width: 80px;
    height: 12px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.06) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-content {
    margin-bottom: 16px;
}

.skeleton-line {
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.06) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin-bottom: 8px;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-actions {
    display: flex;
    gap: 16px;
}

.skeleton-btn {
    width: 60px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.06) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}


.feed > .post-card {
    opacity: 1;
    transform: none;
}