/* Live Center - compact consecutive match list (شكل الماتشات ورا بعض، مش مسافات كبيرة) */

.gsp-live-center-matches .gsp-league-section {
    margin-bottom: 0.5rem;
}

/* Single column list: matches one after another, small gaps */
.gsp-live-center-matches .gsp-live-center-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem 0.75rem;
    grid-template-columns: unset;
}

.gsp-live-center-matches .gsp-live-center-grid .gsp-match-card-enhanced {
    min-height: 0;
    max-width: none;
    width: 100%;
}

/* Mobile: keep vertical list, no horizontal scroll */
@media (max-width: 767px) {
    .gsp-live-center-matches .gsp-live-center-grid {
        display: flex !important;
        flex-direction: column !important;
        overflow: visible;
        scroll-snap-type: none;
        gap: 0.5rem;
        padding: 0.5rem 0.5rem 0.75rem;
    }
    
    .gsp-live-center-matches .gsp-live-center-grid .gsp-match-card-enhanced {
        flex: 0 0 auto;
        min-width: 100%;
        max-width: 100%;
    }
}

/* Time / minute inside the match card (جوه الماتش) */
.gsp-match-center-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.gsp-match-time-inside {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gsp-text-muted);
}

.gsp-match-minute-in {
    color: var(--gsp-accent);
    font-weight: 700;
}

.gsp-match-live .gsp-match-minute-in {
    animation: livePulse 2s infinite;
}

/* VS Modal - Compete flow */
.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);
}
