/* ============================================================
   Feed System Styles
   Feed composer, posts, comments, reactions
   ============================================================ */

/* ============================================================
   FEED PANEL (inside community-content)
   Layout controlled by community.css
   ============================================================ */

/* Profile Card */
.feed-profile-card {
    background: var(--gsp-bg-card);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: var(--gsp-radius-xl);
    padding: 1.5rem;
    text-align: center;
}

.feed-profile-avatar {
    margin-bottom: 1rem;
}

.feed-avatar-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gsp-primary), var(--gsp-secondary));
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--gsp-bg-card);
}

.feed-avatar-fallback {
    width: 94px;
    height: 94px;
    border-radius: 50%;
    background: var(--gsp-bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(139, 92, 246, 0.8);
}

.feed-profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gsp-text-primary);
    margin-bottom: 0.25rem;
}

.feed-profile-handle {
    font-size: 0.9rem;
    color: var(--gsp-text-muted);
    margin-bottom: 1rem;
}

.feed-profile-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(249, 115, 22, 0.1);
}

.feed-stat {
    text-align: center;
}

.feed-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gsp-text-primary);
    display: block;
}

.feed-stat-label {
    font-size: 0.8rem;
    color: var(--gsp-text-muted);
}

/* Main Feed Area */
.feed-main {
    min-width: 0;
}

/* Feed Composer - mobile & web */
.feed-composer {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0 0.75rem;
    align-items: start;
    background: var(--gsp-bg-card);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: var(--gsp-radius-xl);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    box-sizing: border-box;
}

.feed-composer-header {
    grid-column: 1;
    grid-row: 1;
    padding: 0;
    border-bottom: none;
    margin-bottom: 0;
}

.feed-composer-body {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0;
}

.feed-composer-footer {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 0.75rem;
}

.feed-composer-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: rgba(139, 92, 246, 0.8);
    flex-shrink: 0;
}

.feed-composer-body {
    flex: 1;
    min-width: 0;
}

.feed-composer-input {
    width: 100%;
    min-height: 72px;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: var(--gsp-radius-md);
    background: rgba(0, 0, 0, 0.15);
    color: var(--gsp-text-primary);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
    line-height: 1.45;
}

.feed-composer-input:focus {
    outline: none;
    border-color: var(--gsp-primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.feed-composer-input::placeholder {
    color: var(--gsp-text-muted);
}

.feed-composer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(249, 115, 22, 0.12);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feed-composer-actions {
    display: flex;
    gap: 0.5rem;
}

.feed-composer-image-preview {
    width: 100%;
    position: relative;
    margin-bottom: 0.5rem;
    border-radius: var(--gsp-radius-md);
    overflow: hidden;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.feed-composer-image-preview img {
    max-width: 100%;
    max-height: 200px;
    display: block;
    object-fit: contain;
}

.feed-composer-remove-image {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.feed-composer-remove-image:hover {
    background: rgba(220, 38, 38, 0.9);
}

.feed-composer-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--gsp-radius-md);
    background: rgba(249, 115, 22, 0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.feed-composer-btn:hover {
    background: rgba(249, 115, 22, 0.2);
    transform: scale(1.05);
}

.feed-post-btn {
    padding: 0.6rem 1.5rem;
    background: var(--gsp-gradient-primary);
    color: white;
    border: none;
    border-radius: var(--gsp-radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feed-post-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* Feed Posts */
.feed-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feed-loading,
.feed-empty {
    text-align: center;
    padding: 3rem;
    color: var(--gsp-text-muted);
}

.feed-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.feed-empty h3 {
    font-size: 1.5rem;
    color: var(--gsp-text-primary);
    margin-bottom: 0.5rem;
}

/* Widgets */
.feed-widget {
    background: var(--gsp-bg-card);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: var(--gsp-radius-xl);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.feed-widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gsp-text-primary);
    margin-bottom: 1rem;
}

.feed-widget-content {
    color: var(--gsp-text-secondary);
}

.feed-widget-placeholder {
    color: var(--gsp-text-muted);
    font-size: 0.9rem;
}

.feed-loading-small {
    text-align: center;
    padding: 1rem;
}

.gsp-spinner-small {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(249, 115, 22, 0.2);
    border-top-color: var(--gsp-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Trending Match in Widget */
.feed-trending-match {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(249, 115, 22, 0.05);
    border-radius: var(--gsp-radius-md);
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feed-trending-match:hover {
    background: rgba(249, 115, 22, 0.1);
}

.feed-trending-match:last-child {
    margin-bottom: 0;
}

.feed-trending-teams {
    flex: 1;
    font-size: 0.85rem;
    color: var(--gsp-text-primary);
}

.feed-trending-score {
    font-weight: 700;
    color: var(--gsp-primary);
    font-size: 0.9rem;
}

.feed-trending-status {
    font-size: 0.7rem;
    color: var(--gsp-text-muted);
    margin-top: 0.25rem;
}


@media (max-width: 768px) {
    .feed-composer {
        padding: 1rem;
        gap: 0 0.5rem;
    }
    
    .feed-composer-input {
        min-height: 60px;
        padding: 0.75rem 0.875rem;
    }
    
    .feed-composer-avatar {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .feed-composer {
        padding: 0.75rem 1rem;
    }
    
    .feed-composer-footer {
        padding-top: 0.75rem;
        margin-top: 0.75rem;
    }
    
    .feed-post-btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Feed Composer Modal - centered overlay */
.feed-composer-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.feed-composer-content {
    background: var(--gsp-bg-card);
    border-radius: var(--gsp-radius-xl);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feed-composer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(249, 115, 22, 0.15);
}

.feed-composer-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gsp-text-primary);
}

.feed-composer-close {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--gsp-text-muted);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.feed-composer-close:hover {
    background: rgba(249, 115, 22, 0.1);
    color: var(--gsp-primary);
}

.feed-composer-body {
    padding: 1.5rem;
}

.feed-composer-textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: var(--gsp-radius-md);
    background: var(--gsp-bg-primary);
    color: var(--gsp-text-primary);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 1rem;
}

.feed-composer-textarea:focus {
    outline: none;
    border-color: var(--gsp-primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.feed-composer-preview {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(249, 115, 22, 0.05);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: var(--gsp-radius-md);
}

.feed-analysis-preview {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feed-analysis-header {
    font-weight: 700;
    color: var(--gsp-primary);
    margin-bottom: 0.5rem;
}

.feed-analysis-item {
    font-size: 0.9rem;
    color: var(--gsp-text-primary);
}

.feed-composer-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.feed-composer-btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--gsp-radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.feed-composer-btn-primary {
    background: var(--gsp-gradient-primary);
    color: white;
}

.feed-composer-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.feed-composer-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.feed-composer-btn-secondary {
    background: transparent;
    color: var(--gsp-text-muted);
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.feed-composer-btn-secondary:hover {
    background: rgba(249, 115, 22, 0.05);
    color: var(--gsp-primary);
}

/* Feed Post Item */
.feed-post {
    background: var(--gsp-bg-card);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: var(--gsp-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.feed-post-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feed-post-avatar-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.feed-post-avatar-link:hover {
    opacity: 0.9;
}

.feed-post-author-link {
    color: var(--gsp-text-primary);
    text-decoration: none;
    font-weight: 700;
}
.feed-post-author-link:hover {
    color: var(--gsp-primary);
    text-decoration: underline;
}

.feed-post-owner-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}
.feed-post-owner-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.35rem;
    border-radius: var(--gsp-radius-sm);
    font-size: 1rem;
    opacity: 0.7;
}
.feed-post-owner-btn:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.06);
}
.feed-post-delete-btn:hover {
    background: rgba(239, 68, 68, 0.15);
}

.feed-post-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 50%;
    background: var(--gsp-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1.25rem;
    overflow: hidden;
}
.feed-post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.feed-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feed-post-info {
    flex: 1;
}

.feed-post-author {
    font-weight: 700;
    color: var(--gsp-text-primary);
    margin-bottom: 0.25rem;
}

.feed-post-time {
    font-size: 0.85rem;
    color: var(--gsp-text-muted);
}

.feed-post-content {
    color: var(--gsp-text-primary);
    line-height: 1.6;
    margin-bottom: 1rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.feed-post-image {
    margin-bottom: 1rem;
    border-radius: var(--gsp-radius-md);
    overflow: hidden;
    border: 1px solid rgba(249, 115, 22, 0.15);
}

.feed-post-image img {
    max-width: 100%;
    max-height: 400px;
    display: block;
    object-fit: contain;
    vertical-align: top;
}

.feed-post-analysis {
    background: rgba(249, 115, 22, 0.05);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: var(--gsp-radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
}

.feed-post-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(249, 115, 22, 0.1);
}

.feed-post-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: var(--gsp-text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--gsp-radius-sm);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.feed-post-action:hover {
    background: rgba(249, 115, 22, 0.1);
    color: var(--gsp-primary);
}

.feed-post-action.active {
    color: var(--gsp-primary);
}

/* Comments */
.feed-comments {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(249, 115, 22, 0.1);
}

.feed-comment {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(249, 115, 22, 0.03);
    border-radius: var(--gsp-radius-md);
}

.feed-comment-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 50%;
    background: var(--gsp-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
    overflow: hidden;
}

.feed-comment-content {
    flex: 1;
}

.feed-comment-author {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gsp-text-primary);
    margin-bottom: 0.25rem;
}

.feed-comment-avatar-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.feed-comment-avatar-link:hover {
    opacity: 0.8;
}

.feed-comment-author-link {
    color: var(--gsp-text-primary);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.feed-comment-author-link:hover {
    color: var(--gsp-primary);
    text-decoration: underline;
}

.feed-comment-text {
    font-size: 0.9rem;
    color: var(--gsp-text-primary);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.feed-comment-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem 1rem;
    font-size: 0.8rem;
    flex-wrap: wrap;
}
.feed-comment-replies {
    margin-top: 0.5rem;
    margin-left: 0.5rem;
    padding-left: 0.75rem;
    border-left: 2px solid rgba(249, 115, 22, 0.2);
}

.feed-comment-action {
    background: transparent;
    border: none;
    color: var(--gsp-text-muted);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--gsp-radius-sm);
    transition: all 0.3s ease;
}

.feed-comment-action:hover {
    background: rgba(249, 115, 22, 0.1);
    color: var(--gsp-primary);
}

/* Mobile-first bottom sheet for post/comment actions */
.feed-bottom-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: feed-fade-in 0.2s ease;
}
.feed-bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gsp-bg-card);
    border-radius: 16px 16px 0 0;
    padding: 0.5rem 0 max(env(safe-area-inset-bottom), 0.5rem);
    z-index: 1001;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    animation: feed-slide-up 0.25s ease;
}
@keyframes feed-fade-in {
    from { opacity: 0; } to { opacity: 1; }
}
@keyframes feed-slide-up {
    from { transform: translateY(100%); } to { transform: translateY(0); }
}
.feed-bottom-sheet-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.25rem;
    border: none;
    background: none;
    color: var(--gsp-text-primary);
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    min-height: 48px;
    transition: background 0.15s;
}
.feed-bottom-sheet-item:hover,
.feed-bottom-sheet-item:focus {
    background: rgba(249, 115, 22, 0.08);
}
.feed-bottom-sheet-item.feed-bottom-sheet-danger {
    color: #dc2626;
}
.feed-bottom-sheet-item.feed-bottom-sheet-danger:hover {
    background: rgba(220, 38, 38, 0.08);
}
.feed-post-more-btn,
.feed-comment-more-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(249, 115, 22, 0.1);
    color: var(--gsp-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    padding: 0;
    transition: background 0.2s, color 0.2s;
}
.feed-post-more-btn:hover,
.feed-comment-more-btn:hover {
    background: rgba(249, 115, 22, 0.2);
    color: var(--gsp-primary);
}

/* Notifications */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ============================================================
   PREDICTION POST STYLES
   ============================================================ */
.feed-prediction {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.08) 0%, rgba(251, 191, 36, 0.04) 100%);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: var(--gsp-radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.feed-prediction-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feed-prediction-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gsp-gradient-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feed-prediction-badge-icon {
    font-size: 1rem;
}

.feed-prediction-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.feed-prediction-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gsp-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1rem;
    border: 2px solid rgba(249, 115, 22, 0.3);
}

.feed-prediction-user-info {
    flex: 1;
}

.feed-prediction-username {
    font-weight: 700;
    color: var(--gsp-text-primary);
    font-size: 0.95rem;
}

.feed-prediction-time {
    font-size: 0.8rem;
    color: var(--gsp-text-muted);
}

/* Prediction Match Card */
.feed-prediction-match {
    background: var(--gsp-bg-card);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: var(--gsp-radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
}

.feed-prediction-match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(249, 115, 22, 0.1);
}

.feed-prediction-league {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--gsp-text-secondary);
}

.feed-prediction-league-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.feed-prediction-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(249, 115, 22, 0.15);
    color: var(--gsp-primary);
}

.feed-prediction-status.live {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    animation: pulse 2s infinite;
}

.feed-prediction-status.finished {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.feed-prediction-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.feed-prediction-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.feed-prediction-team-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.feed-prediction-team-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gsp-text-primary);
    text-align: center;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feed-prediction-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
}

.feed-prediction-score {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gsp-text-primary);
}

.feed-prediction-score-divider {
    color: var(--gsp-text-muted);
    margin: 0 0.5rem;
}

/* Prediction Details */
.feed-prediction-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.feed-prediction-detail {
    background: rgba(249, 115, 22, 0.05);
    padding: 0.75rem;
    border-radius: var(--gsp-radius-sm);
    text-align: center;
}

.feed-prediction-detail-label {
    font-size: 0.75rem;
    color: var(--gsp-text-muted);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feed-prediction-detail-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gsp-primary);
}

/* Prediction Result */
.feed-prediction-result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--gsp-radius-md);
    margin-top: 1rem;
    font-weight: 700;
}

.feed-prediction-result.correct {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.feed-prediction-result.incorrect {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.feed-prediction-result.pending {
    background: rgba(249, 115, 22, 0.15);
    color: var(--gsp-primary);
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.feed-prediction-result-icon {
    font-size: 1.25rem;
}

/* Prediction Actions */
.feed-prediction-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(249, 115, 22, 0.1);
    margin-top: 1rem;
}

.feed-prediction-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: var(--gsp-text-muted);
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: var(--gsp-radius-sm);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.feed-prediction-action:hover {
    background: rgba(249, 115, 22, 0.1);
    color: var(--gsp-primary);
}

.feed-prediction-action.liked {
    color: var(--gsp-primary);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Responsive */
@media (max-width: 768px) {
    .feed-composer-content {
        max-width: 100%;
        margin: 1rem;
    }
    
    .feed-post-actions {
        flex-wrap: wrap;
    }
    
    .feed-prediction {
        padding: 1rem;
    }
    
    .feed-prediction-team-logo {
        width: 40px;
        height: 40px;
    }
    
    .feed-prediction-score {
        font-size: 1.5rem;
    }
    
    .feed-prediction-details {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================================
   Feed modals (Edit post / Delete post) – front-end, mobile-friendly
   ============================================================ */
.feed-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.feed-modal {
    background: var(--gsp-bg-card);
    border-radius: var(--gsp-radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.feed-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(249, 115, 22, 0.15);
    flex-shrink: 0;
}

.feed-modal-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gsp-text-primary);
}

.feed-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--gsp-text-muted);
    cursor: pointer;
    padding: 0.25rem;
    margin: -0.25rem;
    border-radius: var(--gsp-radius-sm);
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-modal-close:hover {
    color: var(--gsp-text-primary);
    background: rgba(0, 0, 0, 0.06);
}

.feed-modal-body {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.feed-modal-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gsp-text-primary);
    margin-bottom: 0.35rem;
}
.feed-modal-message {
    margin: 0;
    color: var(--gsp-text-secondary);
    font-size: 1rem;
}

.feed-edit-textarea {
    width: 100%;
    min-height: 120px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(249, 115, 22, 0.25);
    border-radius: var(--gsp-radius-md);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--gsp-text-primary);
    background: var(--gsp-bg);
    resize: vertical;
    box-sizing: border-box;
}

.feed-edit-textarea:focus {
    outline: none;
    border-color: var(--gsp-primary);
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.feed-modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(249, 115, 22, 0.15);
    flex-shrink: 0;
}

.feed-modal-btn {
    min-height: 44px;
    padding: 0.6rem 1.25rem;
    border-radius: var(--gsp-radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    border: none;
}

.feed-modal-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.feed-modal-cancel {
    background: rgba(0, 0, 0, 0.06);
    color: var(--gsp-text-primary);
}

.feed-modal-cancel:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.1);
}

.feed-modal-primary {
    background: var(--gsp-gradient-primary);
    color: white;
}

.feed-modal-primary:hover:not(:disabled) {
    opacity: 0.95;
    transform: translateY(-1px);
}

.feed-modal-danger {
    background: #dc2626;
    color: white;
}

.feed-modal-danger:hover:not(:disabled) {
    background: #b91c1c;
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .feed-modal-overlay {
        padding: 0.75rem;
        align-items: flex-end;
    }
    .feed-modal {
        max-height: 85vh;
        border-radius: var(--gsp-radius-xl) var(--gsp-radius-xl) 0 0;
    }
    .feed-modal-footer {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
    .feed-modal-btn {
        flex: 1;
        min-height: 48px;
    }
}

/* Challenge panel - post-prediction */
.gsp-pred-compete-panel {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--gsp-primary-weak, rgba(249, 115, 22, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gsp-pred-compete-text {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Challenge CTA - use boom style */
.feed-challenge-cta.btnChallengePrimary,
.gsp-challenge-cta-make-pick {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gsp-pred-compete-vs-btn {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
    background: var(--gsp-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.gsp-pred-compete-vs-btn:hover {
    background: var(--gsp-primary-strong, #c96a42);
}

/* VS Modal (shared with live-center) */
.gsp-vs-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 9999;
    padding: 0;
}

@media (min-width: 769px) {
    .gsp-vs-modal-overlay {
        align-items: center;
    }
}

.gsp-vs-modal {
    background: var(--gsp-bg-card, #fff);
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 420px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
}

@media (min-width: 769px) {
    .gsp-vs-modal {
        border-radius: 16px;
        max-height: 80vh;
    }
}

.gsp-vs-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gsp-border, rgba(0,0,0,.08));
}

.gsp-vs-modal-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
}

.gsp-vs-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gsp-text-muted, #71717a);
}

.gsp-vs-modal-search {
    margin: 0.75rem 1.25rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--gsp-border);
    border-radius: 8px;
    font-size: 0.95rem;
}

.gsp-vs-followers-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 1rem 1rem;
}

.gsp-vs-follower-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--gsp-border);
}

.gsp-vs-follower-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gsp-primary-weak, rgba(249, 115, 22, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gsp-vs-avatar-initial {
    font-weight: 700;
    color: var(--gsp-primary);
}

.gsp-vs-follower-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gsp-vs-follower-name {
    flex: 1;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gsp-vs-invite-btn,
.gsp-vs-compete-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gsp-primary);
    background: var(--gsp-primary-weak);
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.gsp-vs-share-row {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--gsp-border);
}

.gsp-vs-share-btn {
    flex: 1;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--gsp-border);
    border-radius: 8px;
    background: var(--gsp-bg-card);
    cursor: pointer;
}
.gsp-vs-share-btn.gsp-vs-share-icon {
    flex: none;
    padding: 0.5rem;
    min-width: 40px;
}

.gsp-vs-share-btn:hover {
    background: var(--gsp-primary-weak);
    color: var(--gsp-primary);
}

.gsp-vs-empty {
    padding: 1.5rem;
    text-align: center;
    color: var(--gsp-text-muted);
}
