/* ============================================================
   GoalScorePro - Match Page Styles
   Match header, Stats, Predictions, AI Analysis, Community Poll
   Matching https://goalscorepro.com design - ORANGE THEME
   ============================================================ */

/* ============================================================
   MATCH HEADER CARD - Compact for less scrolling
   ============================================================ */
/* شكل الماتش زي الصورة التانية: مستغل المساحة - بنفس ألواننا */
.gsp-match-header-card {
    background: var(--gsp-surface);
    border: 1px solid var(--gsp-border);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    box-shadow: var(--gsp-shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.06));
}

.gsp-match-header-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gsp-primary);
}

.gsp-match-header-content {
    text-align: center;
}

.gsp-match-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.gsp-match-league-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gsp-match-league {
    font-size: 0.9rem;
    color: var(--gsp-text);
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gsp-match-round {
    font-size: 0.8rem;
    color: var(--gsp-primary);
    margin: 0;
}

.gsp-match-date {
    font-size: 0.75rem;
    color: var(--gsp-muted);
    margin: 0;
    text-align: right;
}

.gsp-match-date-tz {
    font-size: 0.65rem;
    color: var(--gsp-muted);
    margin: 0.15rem 0 0;
    text-align: right;
    opacity: 0.85;
}

.gsp-match-teams-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0;
}

.gsp-team-block {
    flex: 1;
    min-width: 0;
    max-width: 140px;
    text-align: center;
    transition: all 0.3s ease;
}

/* Winner/Loser/Draw - clear visual distinction when match finished */
.gsp-team-block.winner {
    opacity: 1;
}
.gsp-team-block.winner .gsp-team-logo-wrapper {
    border-color: var(--gsp-success);
    box-shadow: 0 0 20px color-mix(in srgb, var(--gsp-success) 25%, transparent);
}
.gsp-team-block.winner .gsp-team-name {
    color: var(--gsp-success);
    font-weight: 800;
}

.gsp-team-block.loser {
    opacity: 0.65;
}
.gsp-team-block.loser .gsp-team-name {
    color: var(--gsp-text-muted);
}

.gsp-team-block.draw .gsp-team-name {
    color: var(--gsp-text-secondary);
}

.gsp-result-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
}
/* Winner/Loser/Draw badges use theme semantic colors */
.gsp-result-badge.winner {
    background: color-mix(in srgb, var(--gsp-success) 15%, var(--gsp-surface));
    color: var(--gsp-success);
}
.gsp-result-badge.draw {
    background: color-mix(in srgb, var(--gsp-warning) 15%, var(--gsp-surface));
    color: var(--gsp-warning);
}

.gsp-score-sep {
    margin: 0 4px;
    opacity: 0.7;
}
.gsp-match-score-lg .score-winner {
    color: var(--gsp-success);
    font-weight: 900;
}
.gsp-match-score-lg .score-loser {
    color: var(--gsp-muted);
    font-weight: 700;
}

.gsp-team-logo-wrapper {
    width: 56px;
    height: 56px;
    margin: 0 auto 6px;
    background: var(--gsp-primary-weak);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid color-mix(in srgb, var(--gsp-primary) 30%, transparent);
    transition: all 0.3s ease;
}

.gsp-team-logo-wrapper:hover {
    border-color: color-mix(in srgb, var(--gsp-primary) 50%, transparent);
    box-shadow: 0 0 16px var(--gsp-primary-weak);
}

.gsp-team-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.gsp-team-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gsp-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gsp-score-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
    min-width: 90px;
}

.gsp-match-date-short {
    font-size: 0.75rem;
    color: var(--gsp-muted);
    font-weight: 600;
}

.gsp-match-score {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    background: var(--gsp-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gsp-match-status-text {
    margin-top: 10px;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
}

.gsp-match-venue {
    font-size: 0.9rem;
    color: var(--gsp-text-muted);
}

/* ============================================================
   MATCH TABS - مش horizontal: جريد على الموبايل، بنفس ألواننا
   ============================================================ */
.gsp-match-tabs {
    background: var(--gsp-surface);
    padding: var(--space-2, 12px) var(--space-3, 16px);
    margin: 0;
    justify-content: center;
    border-radius: 0;
    border: none;
    border-top: 1px solid var(--gsp-border);
    border-bottom: 1px solid var(--gsp-border);
    position: sticky;
    top: 72px;
    z-index: 90;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1, 8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.gsp-match-tab {
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--gsp-bg);
    color: var(--gsp-muted);
    border: 1px solid var(--gsp-border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.gsp-match-tab:hover {
    background: var(--gsp-primary-weak);
    color: var(--gsp-text);
    border-color: color-mix(in srgb, var(--gsp-primary) 25%, transparent);
}

.gsp-match-tab.active {
    background: var(--gsp-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--gsp-primary) 35%, transparent);
}

.gsp-match-tab-icon {
    font-size: 1rem;
}

/* Tab content area - consistent vertical spacing */
.gsp-tab-content-area {
    padding: var(--space-3, 16px) 0;
}

.gsp-card.gsp-card-no-pad {
    padding: 0;
    overflow: hidden;
    margin-bottom: var(--space-3, 16px);
}

.gsp-card.gsp-card-mb {
    margin-bottom: var(--space-3, 16px);
}

/* Match page wrapper for proper sticky behavior */
.gsp-match-page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 80px);
}

.gsp-match-sticky-header {
    position: sticky;
    top: 72px;
    z-index: 80;
    background: var(--gsp-bg-dark);
}

/* ============================================================
   TAB CONTENT
   ============================================================ */
.gsp-tab-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   PREDICTIONS: MOBILE POP-UP (not inline like first image)
   ============================================================ */
.gsp-pred-mobile-trigger {
    display: none;
}

@media (max-width: 768px) {
    .gsp-pred-mobile-trigger {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: var(--space-4, 24px) var(--space-3, 16px);
        margin-bottom: var(--space-3, 16px);
        background: color-mix(in srgb, var(--gsp-primary) 8%, var(--gsp-surface));
        border: 1px solid color-mix(in srgb, var(--gsp-primary) 25%, transparent);
        border-radius: 14px;
        color: var(--gsp-text);
        font-weight: 600;
        font-size: 1.05rem;
        cursor: pointer;
    }
    .gsp-pred-mobile-trigger:hover {
        background: color-mix(in srgb, var(--gsp-primary) 12%, var(--gsp-surface));
    }
    .gsp-pred-mobile-hint {
        font-size: 0.8rem;
        font-weight: 500;
        color: var(--gsp-text-secondary);
        margin-top: 4px;
    }
    /* On mobile hide inline block; content shown inside modal when opened */
    #content-predictions > .gsp-pred-inline-content {
        display: none !important;
    }
    #gspPredModal .gsp-pred-inline-content {
        display: block !important;
    }
}

/* Predictions modal (bottom sheet on mobile) */
.gsp-pred-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
    visibility: hidden;
}

.gsp-pred-modal:not(.gsp-hidden) {
    pointer-events: auto;
    visibility: visible;
}

.gsp-pred-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gsp-pred-modal:not(.gsp-hidden) .gsp-pred-modal-backdrop {
    opacity: 1;
}

.gsp-pred-modal-sheet {
    background: var(--gsp-surface);
    border-radius: 16px 16px 0 0;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.25s ease;
}

.gsp-pred-modal:not(.gsp-hidden) .gsp-pred-modal-sheet {
    transform: translateY(0);
}

.gsp-pred-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3, 16px) var(--space-4, 24px);
    border-bottom: 1px solid var(--gsp-border);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    background: var(--gsp-surface);
}

.gsp-pred-modal-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gsp-text);
}

.gsp-pred-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0 0.25rem;
    cursor: pointer;
    color: var(--gsp-muted);
}

.gsp-pred-modal-body {
    overflow-y: auto;
    overflow-x: hidden;
    padding: var(--space-3, 16px) var(--space-4, 24px);
    padding-bottom: max(env(safe-area-inset-bottom), var(--space-3, 16px));
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .gsp-pred-modal-sheet {
        max-height: 90vh;
        min-height: 0;
    }
    .gsp-pred-modal-body {
        padding: var(--space-2, 12px) var(--space-3, 16px);
        padding-bottom: max(env(safe-area-inset-bottom), var(--space-3, 16px));
    }
    .gsp-pred-modal .gsp-predictions-block {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
        padding: 0;
    }
    .gsp-pred-modal .gsp-predictions-block .gsp-pred-tabs-wrap {
        margin-top: var(--space-1, 8px);
    }
    .gsp-pred-modal .gsp-market-card-wrap {
        width: 100%;
        box-sizing: border-box;
        margin-bottom: var(--space-3, 16px);
        padding: var(--space-2, 12px);
    }
    .gsp-pred-modal .gsp-market-htft .gsp-htft-cell {
        min-height: 48px;
        padding: var(--space-1, 8px);
    }
    .gsp-pred-modal .gsp-pred-stack {
        margin-top: var(--space-1, 8px);
    }
    .gsp-pred-modal .gsp-market-card .gsp-market-segment {
        min-height: 64px;
        padding: var(--space-2, 12px) var(--space-1, 8px);
    }
}

/* ============================================================
   📊 Predictions block: single column, no tabs
   ============================================================ */
.gsp-predictions-block .gsp-pred-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: var(--space-2, 12px);
}

.gsp-predictions-block .gsp-pred-section {
    margin-bottom: var(--space-4, 24px);
}

.gsp-predictions-block .gsp-pred-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gsp-text);
    margin: 0 0 var(--space-2, 12px) 0;
}

.gsp-predictions-block .gsp-pred-stack > * {
    margin-bottom: var(--space-4, 24px);
}
.gsp-predictions-block .gsp-pred-stack > *:last-child {
    margin-bottom: 0;
}

/* Market cards: single theme (token-based subtle tint) */
.gsp-market-tint {
    background-color: color-mix(in srgb, var(--gsp-primary) 8%, var(--gsp-surface));
}

.gsp-market-card-wrap {
    margin-bottom: var(--space-4, 24px);
    border-radius: 12px;
    padding: var(--space-2, 12px);
    box-sizing: border-box;
    background-color: var(--gsp-surface);
    border: 1px solid var(--gsp-border);
}
.gsp-market-card-wrap.market--match-result,
.gsp-market-card-wrap.market--btts,
.gsp-market-card-wrap.market--goals,
.gsp-market-card-wrap.market--corners,
.gsp-market-card-wrap.market--handicap,
.gsp-market-card-wrap.market--first-goal,
.gsp-market-card-wrap.market--double-chance,
.gsp-market-card-wrap.market--ht-corners,
.gsp-market-card-wrap.market--challenge-score {
    background-color: var(--gsp-surface);
    border: 1px solid var(--gsp-border);
}

.gsp-challenge-score-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gsp-challenge-score-inputs input {
    width: 4rem;
    padding: 0.5rem;
    font-size: 1.1rem;
    text-align: center;
    border: 2px solid var(--gsp-border);
    border-radius: 8px;
}

.gsp-challenge-score-inputs input:focus {
    outline: none;
    border-color: var(--gsp-primary);
}

.gsp-challenge-score-sep {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--gsp-text-muted);
}

.gsp-market-card-wrap .gsp-market-htft.market--halftime { background-color: transparent; }
.gsp-predictions-block .gsp-pred-section .gsp-market-htft.market--halftime,
.gsp-predictions-block .gsp-market-htft.market--halftime {
    background-color: var(--gsp-bg);
    border-radius: 12px;
    padding: var(--space-1, 8px);
    border: 1px solid var(--gsp-border);
}

.gsp-predictions-block .gsp-market-card-wrap:last-child {
    margin-bottom: 0;
}

.gsp-market-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gsp-text);
    margin: 0 0 var(--space-1, 8px) 0;
}

.gsp-market-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 12px;
    border: 1px solid var(--gsp-border);
    overflow: hidden;
}

.gsp-market-card .gsp-goal-split {
    display: flex;
    width: 100%;
}

.gsp-market-segment {
    flex: 1;
    min-height: 72px;
    padding: var(--space-2, 12px) var(--space-1, 8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-1, 8px);
    background: var(--gsp-bg);
    border: 2px solid var(--gsp-border);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    border-radius: 10px;
}

.gsp-market-segment:hover {
    background: var(--gsp-primary-weak);
}

.gsp-market-segment.gsp-prediction-selected {
    background: color-mix(in srgb, var(--gsp-primary) 12%, var(--gsp-surface));
    border-color: var(--gsp-primary);
}

.gsp-market-card-2 .gsp-market-segment { min-width: 0; }
.gsp-market-card-3 .gsp-market-segment { min-width: 0; }
.gsp-market-card-4 .gsp-market-segment { min-width: 0; }

.gsp-market-card .gsp-goal-line {
    padding: var(--space-1, 8px) var(--space-1, 8px);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gsp-text);
    text-align: center;
    background: color-mix(in srgb, var(--gsp-border) 50%, transparent);
}

.gsp-market-htft {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-1, 8px);
}

.gsp-market-htft .gsp-htft-cell {
    min-height: 56px;
    padding: var(--space-1, 8px);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.gsp-pred-save-status {
    margin-top: 0.75rem;
    font-size: 0.85rem;
}

.gsp-pred-save-status.gsp-pred-save-login {
    color: var(--gsp-text-secondary);
}

.gsp-pred-save-status.gsp-pred-save-saved {
    color: var(--gsp-success);
    font-weight: 500;
}

.gsp-pred-save-status.gsp-pred-save-error {
    color: var(--gsp-danger);
}

.gsp-pred-save-status.gsp-pred-save-error[data-retry] {
    cursor: pointer;
}

/* كل صناديق النسب بنفس الشكل: ثيم واحد */
.gsp-market-segment,
.gsp-market-htft .gsp-htft-cell {
    background-color: var(--gsp-bg) !important;
    border: 2px solid var(--gsp-border) !important;
    color: var(--gsp-text);
}
.gsp-market-segment:hover,
.gsp-market-htft .gsp-htft-cell:hover {
    background-color: var(--gsp-primary-weak) !important;
}
.gsp-market-segment.gsp-prediction-selected,
.gsp-market-htft .gsp-htft-cell.gsp-prediction-selected {
    background-color: color-mix(in srgb, var(--gsp-primary) 14%, var(--gsp-surface)) !important;
    border-color: var(--gsp-primary) !important;
}

.gsp-market-estimated {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gsp-muted);
}

/* ============================================================
   PREDICTION CATEGORIES (chips + list)
   ============================================================ */
.gsp-pred-categories-wrap {
    margin-bottom: 1.25rem;
}

.gsp-pred-category-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.gsp-pred-chip {
    flex-shrink: 0;
    padding: var(--space-1, 8px) var(--space-2, 12px);
    border-radius: 9999px;
    border: 1px solid color-mix(in srgb, var(--gsp-primary) 30%, transparent);
    background: var(--gsp-primary-weak);
    color: var(--gsp-text);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

.gsp-pred-chip:hover {
    background: color-mix(in srgb, var(--gsp-primary) 14%, var(--gsp-surface));
}

.gsp-pred-chip.active {
    background: var(--gsp-primary);
    color: #fff;
    border-color: var(--gsp-primary);
}

.gsp-pred-category-list {
    margin-top: var(--space-2, 12px);
    min-height: 80px;
}

.gsp-pred-category-item {
    padding: var(--space-1, 8px) var(--space-2, 12px);
    border-radius: 8px;
    border: 1px solid var(--gsp-border);
    margin-bottom: var(--space-1, 8px);
    cursor: pointer;
    font-weight: 500;
}

.gsp-pred-category-item:hover {
    background: var(--gsp-primary-weak);
}

/* ============================================================
   PREDICTIONS GRID
   ============================================================ */
.gsp-predictions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
}

.gsp-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--gsp-text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.gsp-card-full {
    grid-column: 1 / -1;
}

/* ============================================================
   PROBABILITY ITEMS
   ============================================================ */
.gsp-probability-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.gsp-probability-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.gsp-probability-item span:first-child {
    color: var(--gsp-text-secondary);
    font-size: 0.95rem;
}

.gsp-prob-value {
    font-weight: 800;
    font-size: 1.1rem;
}

.probability-bar {
    grid-column: 1 / -1;
    height: 10px;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.probability-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease;
}

.probability-fill.home {
    background: linear-gradient(90deg, #10B981, #059669);
}

.probability-fill.draw {
    background: linear-gradient(90deg, #FBBF24, #F59E0B);
}

.probability-fill.away {
    background: linear-gradient(90deg, #06B6D4, #0891B2);
}

/* ============================================================
   CORRECT SCORE GRID
   ============================================================ */
.correct-score-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.score-cell {
    text-align: center;
    padding: 14px 10px;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.12);
    border-radius: var(--gsp-radius-sm);
    transition: all 0.3s ease;
    cursor: pointer;
}

.score-cell:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.35);
    transform: translateY(-3px);
}

.score-cell.highlight {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(6, 182, 212, 0.15) 100%);
    border-color: var(--gsp-primary);
}

.score-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gsp-text-primary);
}

.score-value {
    font-size: 0.8rem;
    color: var(--gsp-text-muted);
    margin-top: 6px;
}

/* ============================================================
   ANALYSIS ITEMS
   ============================================================ */
.gsp-analysis-items {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.gsp-analysis-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-radius: var(--gsp-radius-md);
    background: rgba(16, 185, 129, 0.06);
    border-left: 4px solid var(--gsp-primary);
}

.gsp-analysis-item.success {
    border-left-color: var(--gsp-green);
    background: rgba(16, 185, 129, 0.08);
}

.gsp-analysis-item.primary {
    border-left-color: var(--gsp-primary);
}

.gsp-analysis-item.accent {
    border-left-color: var(--gsp-accent);
    background: rgba(251, 191, 36, 0.08);
}

.gsp-analysis-item span:first-child {
    color: var(--gsp-text-secondary);
    font-size: 0.95rem;
}

.gsp-analysis-value {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--gsp-text-primary);
}

/* ============================================================
   AI CTA CARD
   ============================================================ */
.gsp-ai-cta {
    text-align: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(6, 182, 212, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 2.5rem;
}

.gsp-ai-cta h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.gsp-ai-cta p {
    color: var(--gsp-text-secondary);
    margin-bottom: 1.75rem;
}

/* ============================================================
   TEAM GOALS
   ============================================================ */
.gsp-team-goals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
}

.gsp-team-goals-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid;
}

.gsp-team-goals-title.home {
    color: var(--gsp-primary);
    border-color: var(--gsp-primary);
}

.gsp-team-goals-title.away {
    color: var(--gsp-cyan);
    border-color: var(--gsp-cyan);
}

.gsp-team-goals-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.gsp-team-goal-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding: 10px 14px;
    background: rgba(16, 185, 129, 0.04);
    border-radius: var(--gsp-radius-sm);
}

.gsp-team-goal-item span:last-child {
    font-weight: 700;
    color: var(--gsp-green);
}

/* ============================================================
   COMMUNITY POLL - Same styles as match page (orange theme)
   ============================================================ */
.gsp-poll-card {
    background: var(--gsp-bg-card);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: var(--gsp-radius-lg);
    padding: 1.75rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.gsp-poll-card::before {
    content: '';
    display: block;
    height: 4px;
    margin: -1.75rem -1.75rem 1.25rem -1.75rem;
    background: linear-gradient(90deg, var(--gsp-primary), var(--gsp-secondary));
    border-radius: var(--gsp-radius-lg) var(--gsp-radius-lg) 0 0;
}

.gsp-poll-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--gsp-text-primary);
}

.gsp-poll-subtitle {
    color: var(--gsp-text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.gsp-poll-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.gsp-poll-option {
    padding: 1.25rem 1rem;
    background: rgba(249, 115, 22, 0.06);
    border: 2px solid rgba(249, 115, 22, 0.2);
    border-radius: var(--gsp-radius-md);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.gsp-poll-option::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    transition: height 0.25s ease;
}

.gsp-poll-option.home::before {
    background: linear-gradient(0deg, rgba(249, 115, 22, 0.2) 0%, transparent 100%);
}

.gsp-poll-option.draw::before {
    background: linear-gradient(0deg, rgba(251, 191, 36, 0.2) 0%, transparent 100%);
}

.gsp-poll-option.away::before {
    background: linear-gradient(0deg, rgba(249, 115, 22, 0.15) 0%, transparent 100%);
}

.gsp-poll-option:hover {
    transform: translateY(-3px);
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.15);
}

.gsp-poll-option:hover::before {
    height: 50%;
}

.gsp-poll-your-vote {
    display: none;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gsp-primary);
}
.gsp-poll-option {
    position: relative;
}
.gsp-poll-option.voted .gsp-poll-your-vote {
    display: inline-block;
}
.gsp-poll-option.voted {
    border-color: var(--gsp-primary);
}

.gsp-poll-option.voted.home {
    border-color: var(--gsp-primary);
    background: rgba(249, 115, 22, 0.12);
}

.gsp-poll-option.voted.draw {
    border-color: var(--gsp-secondary);
    background: rgba(251, 191, 36, 0.12);
}

.gsp-poll-option.voted.away {
    border-color: var(--gsp-primary);
    background: rgba(249, 115, 22, 0.1);
}

.gsp-poll-option-icon {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.gsp-poll-option-label {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--gsp-text-primary);
    margin-bottom: 1.25rem;
}

.gsp-poll-option-result {
    opacity: 0.9;
}

.gsp-poll-pct {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gsp-text-primary);
}

.gsp-poll-count {
    font-size: 0.8rem;
    color: var(--gsp-text-muted);
    margin-top: 6px;
}

.gsp-poll-total {
    color: var(--gsp-text-muted);
    font-size: 0.95rem;
}

.gsp-poll-total span {
    font-weight: 800;
    color: var(--gsp-primary);
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.gsp-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.gsp-stat-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(16, 185, 129, 0.08);
}

.gsp-stat-row:last-child {
    border-bottom: none;
}

.gsp-stat-home {
    text-align: right;
    font-weight: 700;
    color: var(--gsp-text-primary);
}

.gsp-stat-away {
    text-align: left;
    font-weight: 700;
    color: var(--gsp-text-primary);
}

.gsp-stat-label {
    text-align: center;
    font-size: 0.9rem;
    color: var(--gsp-text-muted);
}

.gsp-stat-bar-container {
    display: flex;
    height: 10px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.gsp-stat-bar-home {
    background: linear-gradient(90deg, var(--gsp-primary), var(--gsp-secondary));
    border-radius: 5px 0 0 5px;
    transition: width 0.5s ease;
}

.gsp-stat-bar-away {
    background: linear-gradient(90deg, var(--gsp-cyan), #0891B2);
    border-radius: 0 5px 5px 0;
    margin-left: auto;
    transition: width 0.5s ease;
}

/* ============================================================
   ENHANCED MATCH HEADER
   ============================================================ */
.gsp-match-league-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 0.75rem;
}

.gsp-league-logo-lg {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.gsp-match-score-lg {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1.1;
}

.gsp-match-status-badge {
    display: inline-block;
    margin-top: 0;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: #dcfce7;
    color: #15803d;
}

.gsp-match-status-badge.live {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    animation: pulse 2s infinite;
}

.gsp-match-status-badge.finished {
    background: #dcfce7;
    color: #15803d;
}

.gsp-match-info-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.8rem;
    color: #71717a;
}

/* ============================================================
   LINEUPS
   ============================================================ */
.gsp-lineups-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
}

.gsp-lineup-card {
    background: var(--gsp-bg-card);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: var(--gsp-radius-lg);
    padding: 1.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.gsp-lineup-card.home {
    border-top: 4px solid var(--gsp-primary);
}

.gsp-lineup-card.away {
    border-top: 4px solid var(--gsp-secondary);
}

.gsp-lineup-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(249, 115, 22, 0.12);
}

.gsp-lineup-team-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.gsp-lineup-team-name {
    font-weight: 700;
    font-size: 1.15rem;
}

.gsp-lineup-formation {
    font-size: 0.9rem;
    color: var(--gsp-primary);
    font-weight: 700;
}

.gsp-lineup-coach {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--gsp-text-muted);
    margin-bottom: 1.25rem;
}

.gsp-coach-photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.gsp-lineup-section {
    margin-bottom: 1.25rem;
}

.gsp-lineup-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gsp-text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gsp-lineup-players {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gsp-lineup-players.subs {
    max-height: 220px;
    overflow-y: auto;
}

.gsp-player-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(249, 115, 22, 0.04);
    border-radius: var(--gsp-radius-sm);
    transition: background 0.2s ease;
}

.gsp-player-row:hover {
    background: rgba(249, 115, 22, 0.1);
}

.gsp-player-number {
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gsp-gradient-primary);
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.gsp-player-name {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
}

.gsp-player-pos {
    font-size: 0.8rem;
    color: var(--gsp-text-muted);
    padding: 3px 10px;
    background: rgba(249, 115, 22, 0.12);
    border-radius: 12px;
}

/* ============================================================
   EVENTS
   ============================================================ */
.gsp-events-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gsp-event-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(16, 185, 129, 0.04);
    border-radius: var(--gsp-radius-md);
    border-left: 4px solid transparent;
}

.gsp-event-row.goal {
    border-left-color: var(--gsp-green);
    background: rgba(16, 185, 129, 0.08);
}

.gsp-event-row.yellow {
    border-left-color: var(--gsp-yellow);
    background: rgba(251, 191, 36, 0.08);
}

.gsp-event-row.red {
    border-left-color: var(--gsp-red);
    background: rgba(239, 68, 68, 0.08);
}

.gsp-event-row.sub {
    border-left-color: var(--gsp-primary);
}

.gsp-event-time {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--gsp-text-primary);
    min-width: 55px;
}

.gsp-event-icon {
    font-size: 1.35rem;
}

.gsp-event-content {
    flex: 1;
}

.gsp-event-player {
    font-weight: 700;
    font-size: 0.95rem;
}

.gsp-event-detail {
    font-size: 0.85rem;
    color: var(--gsp-text-muted);
}

.gsp-event-assist {
    font-size: 0.85rem;
    color: var(--gsp-text-secondary);
}

.gsp-event-team {
    font-size: 0.9rem;
    color: var(--gsp-text-muted);
}

/* ============================================================
   H2H
   ============================================================ */
.gsp-h2h-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gsp-h2h-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 18px;
    background: rgba(16, 185, 129, 0.04);
    border-radius: var(--gsp-radius-md);
}

.gsp-h2h-date {
    font-size: 0.85rem;
    color: var(--gsp-text-muted);
    min-width: 90px;
}

.gsp-h2h-teams {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.gsp-h2h-home,
.gsp-h2h-away {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
}

.gsp-h2h-home {
    text-align: right;
}

.gsp-h2h-away {
    text-align: left;
}

.gsp-h2h-score {
    font-weight: 800;
    font-size: 1.1rem;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.12);
    border-radius: var(--gsp-radius-sm);
}

.gsp-h2h-league {
    font-size: 0.8rem;
    color: var(--gsp-text-muted);
    min-width: 110px;
    text-align: right;
}

/* H2H - موبايل: ترتيب عمودي واضح ومفهوم */
@media (max-width: 576px) {
    .gsp-h2h-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 14px 12px;
    }
    
    .gsp-h2h-date,
    .gsp-h2h-league {
        min-width: 0;
        text-align: center;
        font-size: 0.8rem;
    }
    
    .gsp-h2h-date {
        order: 1;
    }
    
    .gsp-h2h-league {
        order: 2;
        margin-top: -6px;
    }
    
    .gsp-h2h-teams {
        flex-direction: column;
        gap: 6px;
        order: 3;
    }
    
    .gsp-h2h-home,
    .gsp-h2h-away {
        text-align: center;
        font-size: 0.9rem;
        line-height: 1.4;
        word-break: break-word;
        padding: 0 4px;
    }
    
    .gsp-h2h-score {
        text-align: center;
        align-self: center;
        font-size: 1.1rem;
        padding: 8px 18px;
        margin-top: 2px;
    }
}

/* ============================================================
   ANALYSIS FACTORS
   ============================================================ */
.gsp-analysis-factors {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 1.75rem;
}

.gsp-factor {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 1.25rem;
    background: rgba(16, 185, 129, 0.06);
    border-radius: var(--gsp-radius-md);
    border: 1px solid rgba(16, 185, 129, 0.12);
}

.gsp-factor-icon {
    font-size: 1.75rem;
}

.gsp-factor-label {
    font-weight: 700;
    font-size: 0.95rem;
}

.gsp-factor-desc {
    font-size: 0.85rem;
    color: var(--gsp-text-muted);
}

/* AI vs API Difference */
.gsp-ai-difference {
    margin: 1.75rem 0;
    padding: 1.75rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.08));
    border-radius: var(--gsp-radius-lg);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.gsp-ai-difference h4 {
    text-align: center;
    margin-bottom: 1.25rem;
    color: var(--gsp-text-primary);
}

.gsp-diff-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.gsp-diff-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 1.25rem;
    background: rgba(15, 22, 41, 0.5);
    border-radius: var(--gsp-radius-md);
}

.gsp-diff-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--gsp-primary);
}

.gsp-diff-desc {
    font-size: 0.85rem;
    color: var(--gsp-text-muted);
    line-height: 1.6;
}

/* ============================================================
   PLAYER PHOTOS
   ============================================================ */
.gsp-player-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.gsp-player-grid {
    font-size: 0.7rem;
    color: var(--gsp-text-muted);
    padding: 3px 8px;
    background: rgba(16, 185, 129, 0.12);
    border-radius: 6px;
}

/* ============================================================
   PITCH FORMATION VISUALIZATION
   ============================================================ */
.gsp-pitch {
    position: relative;
    background: linear-gradient(180deg, #1a5c34 0%, #2d7a4a 50%, #1a5c34 100%);
    border-radius: var(--gsp-radius-lg);
    padding: 1.25rem;
    margin: 1.25rem 0;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.3);
}

.gsp-pitch::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(255, 255, 255, 0.25);
}

.gsp-pitch::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
}

.gsp-pitch.away {
    flex-direction: column-reverse;
}

.gsp-pitch-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 5px 0;
}

.gsp-pitch-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 55px;
}

.gsp-pitch-jersey {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.gsp-pitch-name {
    font-size: 0.7rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    max-width: 65px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.gsp-coach-icon {
    font-size: 1.75rem;
}

.gsp-empty-hint {
    font-size: 0.8rem;
    color: var(--gsp-primary);
    margin-top: 0.625rem;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 25px;
    display: inline-block;
}

.gsp-event-comments {
    font-size: 0.8rem;
    color: var(--gsp-text-muted);
    font-style: italic;
}

/* ============================================================
   STANDINGS TABLE
   ============================================================ */
.gsp-standings-table {
    overflow-x: auto;
    margin-top: 1.25rem;
}

.gsp-standings-group {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--gsp-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
}

.gsp-standings-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.gsp-standings-table th,
.gsp-standings-table td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid rgba(16, 185, 129, 0.08);
}

.gsp-standings-table th {
    background: rgba(16, 185, 129, 0.08);
    color: var(--gsp-text-secondary);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.gsp-standings-table td.team-cell {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gsp-standings-table .team-logo-sm {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.gsp-standings-table tr.home-team {
    background: rgba(16, 185, 129, 0.12);
}

.gsp-standings-table tr.away-team {
    background: rgba(6, 182, 212, 0.12);
}

.gsp-standings-table td.form-cell {
    display: flex;
    gap: 3px;
    justify-content: center;
}

/* Form badges */
.gsp-form-badge {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 4px;
    color: white;
}

.gsp-form-badge.win {
    background: var(--gsp-green);
}

.gsp-form-badge.draw {
    background: var(--gsp-yellow);
}

.gsp-form-badge.loss {
    background: var(--gsp-red);
}

/* ============================================================
   PREDICTIONS - API DATA
   ============================================================ */
.gsp-prediction-winner {
    text-align: center;
    padding: 1.75rem;
}

.gsp-winner-badge {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 1.75rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.12));
    border-radius: var(--gsp-radius-lg);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.gsp-winner-label {
    font-size: 0.85rem;
    color: var(--gsp-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.gsp-winner-name {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gsp-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gsp-winner-comment {
    font-size: 0.9rem;
    color: var(--gsp-text-secondary);
}

.gsp-prediction-advice {
    margin-top: 1.25rem;
    padding: 14px 22px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--gsp-radius-md);
    color: var(--gsp-green);
    font-weight: 600;
}

/* Comparison grid */
.gsp-comparison-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gsp-comp-row {
    display: grid;
    grid-template-columns: 70px 1fr 70px;
    align-items: center;
    gap: 14px;
}

.gsp-comp-home,
.gsp-comp-away {
    font-weight: 700;
    font-size: 0.95rem;
}

.gsp-comp-home {
    text-align: right;
    color: var(--gsp-primary);
}

.gsp-comp-away {
    text-align: left;
    color: var(--gsp-cyan);
}

.gsp-comp-center {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.gsp-comp-label {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gsp-text-muted);
}

.gsp-comp-bar {
    display: flex;
    height: 8px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.gsp-comp-bar-home {
    background: linear-gradient(90deg, var(--gsp-primary), var(--gsp-secondary));
    transition: width 0.5s ease;
}

.gsp-comp-bar-away {
    background: linear-gradient(90deg, var(--gsp-cyan), #0891B2);
    margin-left: auto;
    transition: width 0.5s ease;
}

/* Team forms */
.gsp-team-forms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    margin-top: 1.25rem;
}

.gsp-team-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 1.25rem;
    background: rgba(16, 185, 129, 0.04);
    border-radius: var(--gsp-radius-md);
}

.gsp-team-form-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.gsp-team-form-name {
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
}

.gsp-form-badges {
    display: flex;
    gap: 5px;
}

/* ============================================================
   PLAYER STATISTICS
   ============================================================ */
.gsp-players-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
}

.gsp-players-team {
    background: rgba(15, 22, 41, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--gsp-radius-lg);
    overflow: hidden;
}

.gsp-players-team-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    font-weight: 700;
    font-size: 0.95rem;
}

.gsp-players-team-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.gsp-players-list {
    padding: 0.5rem;
    max-height: 550px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.gsp-players-list::-webkit-scrollbar {
    width: 6px;
}

.gsp-players-list::-webkit-scrollbar-track {
    background: transparent;
}

.gsp-players-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.gsp-players-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.gsp-player-stat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--gsp-radius-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease;
}

.gsp-player-stat-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.gsp-player-stat-row:last-child {
    border-bottom: none;
}

.gsp-player-stat-photo {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.gsp-player-stat-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gsp-player-stat-name {
    font-weight: 600;
    font-size: 0.925rem;
    color: var(--gsp-text-primary);
}

.gsp-player-stat-pos {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.02em;
}

.gsp-player-stat-data {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.8rem;
}

.gsp-player-stat-data span {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
}

.gsp-player-stat-data .stat-goals { color: rgba(34, 197, 94, 0.95); }
.gsp-player-stat-data .stat-assists { color: rgba(59, 130, 246, 0.95); }
.gsp-player-stat-data .stat-passes { color: rgba(168, 85, 247, 0.9); }

.gsp-player-rating {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50%;
}

.gsp-player-rating.high {
    background: rgba(16, 185, 129, 0.18);
    color: rgba(134, 239, 172, 0.95);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.gsp-player-rating.medium {
    background: rgba(251, 191, 36, 0.15);
    color: rgba(253, 224, 71, 0.95);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.gsp-player-rating.low {
    background: rgba(239, 68, 68, 0.15);
    color: rgba(252, 165, 165, 0.95);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ============================================================
   INJURIES TAB
   ============================================================ */
.gsp-injuries-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.gsp-injuries-team {
    background: rgba(249, 115, 22, 0.05);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: var(--gsp-radius-md);
    padding: 1rem;
}

.gsp-injuries-team-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(249, 115, 22, 0.15);
}

.gsp-injuries-team-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.gsp-injuries-team-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--gsp-text-primary);
}

.gsp-injuries-players {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gsp-injuries-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gsp-injuries-group-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gsp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 0.25rem 0;
}

.gsp-injuries-missing .gsp-injuries-group-title { color: #ef4444; }
.gsp-injuries-questionable .gsp-injuries-group-title { color: #f59e0b; }

.gsp-injuries-player {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(15, 22, 41, 0.3);
    border-radius: var(--gsp-radius-sm);
}

.gsp-injuries-player-photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--gsp-bg-card);
}

.gsp-injuries-player-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.gsp-injuries-player-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gsp-text-primary);
}

.gsp-injuries-player-reason {
    font-size: 0.8rem;
    color: var(--gsp-text-muted);
}

@media (max-width: 768px) {
    .gsp-injuries-team-logo { width: 28px; height: 28px; }
    .gsp-injuries-player-photo { width: 32px; height: 32px; }
}

/* ============================================================
   PREDICTIONS ENHANCED UI - Highlights, Goals, Corners, HT/FT, BTTS
   ============================================================ */

/* Highlights Section */
.gsp-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.gsp-highlight-card {
    background: rgba(249, 115, 22, 0.05);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: var(--gsp-radius-md);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.gsp-highlight-card:hover {
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.3);
    transform: translateY(-2px);
}

.gsp-highlight-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gsp-highlight-label {
    font-size: 0.75rem;
    color: var(--gsp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gsp-highlight-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gsp-text-primary);
}

.gsp-confidence-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: var(--gsp-radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    width: fit-content;
}

.gsp-confidence-high {
    background: rgba(16, 185, 129, 0.2);
    color: var(--gsp-green);
}

.gsp-confidence-medium {
    background: rgba(251, 191, 36, 0.2);
    color: var(--gsp-yellow);
}

.gsp-confidence-low {
    background: rgba(156, 163, 175, 0.2);
    color: var(--gsp-text-muted);
}

.gsp-share-btn {
    background: transparent;
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: var(--gsp-primary);
    padding: 0.5rem;
    border-radius: var(--gsp-radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.gsp-share-btn:hover {
    background: rgba(249, 115, 22, 0.1);
    border-color: var(--gsp-primary);
}

.gsp-share-btn-small {
    background: transparent;
    border: 1px solid rgba(249, 115, 22, 0.2);
    color: var(--gsp-primary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--gsp-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.gsp-share-btn-small:hover {
    background: rgba(249, 115, 22, 0.1);
}

/* Goals Grid - Mobile-first 2x2 grid */
.gsp-goals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.gsp-goal-card {
    background: rgba(249, 115, 22, 0.05);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: var(--gsp-radius-md);
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.gsp-goal-card:hover {
    border-color: rgba(249, 115, 22, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.1);
}

.gsp-goal-line {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--gsp-text-primary);
}

.gsp-goal-split {
    display: flex;
    align-items: stretch;
    border-radius: var(--gsp-radius-sm);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.gsp-goal-half {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    background: rgba(15, 22, 41, 0.3);
    transition: all 0.3s ease;
}

.gsp-goal-half.gsp-goal-highlight {
    background: rgba(16, 185, 129, 0.1);
}

.gsp-goal-divider {
    width: 1px;
    background: rgba(249, 115, 22, 0.2);
}

.gsp-goal-label {
    font-size: 0.75rem;
    color: var(--gsp-text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gsp-goal-percentage {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--gsp-text-primary);
    margin-bottom: 0.5rem;
}

.gsp-goal-percentage.gsp-goal-green {
    color: var(--gsp-green);
}

.gsp-goal-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(249, 115, 22, 0.3);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gsp-goal-checkbox:hover {
    border-color: var(--gsp-primary);
    background: rgba(249, 115, 22, 0.1);
}

/* Corners Grid - Mobile-first 2x2 grid */
.gsp-corners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

/* Share button small */
.gsp-share-btn-small {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: transparent;
    border: none;
    color: var(--gsp-text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--gsp-radius-sm);
    transition: all 0.3s ease;
    opacity: 0.7;
}

.gsp-share-btn-small:hover {
    opacity: 1;
    background: rgba(249, 115, 22, 0.1);
    color: var(--gsp-primary);
}

.gsp-corner-card {
    background: rgba(249, 115, 22, 0.05);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: var(--gsp-radius-md);
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.gsp-corner-card:hover {
    border-color: rgba(249, 115, 22, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.1);
}

.gsp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.gsp-section-subtitle {
    font-size: 0.85rem;
    color: var(--gsp-text-muted);
}

.gsp-corner-line {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--gsp-text-primary);
}

.gsp-corner-probs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.gsp-corner-prob-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    background: rgba(15, 22, 41, 0.3);
    border-radius: var(--gsp-radius-sm);
    transition: all 0.3s ease;
}

.gsp-corner-prob-item.gsp-corner-highlight {
    background: rgba(16, 185, 129, 0.1);
}

.gsp-corner-label {
    font-size: 0.8rem;
    color: var(--gsp-text-muted);
    flex: 1;
    text-align: left;
}

.gsp-corner-percentage {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gsp-text-primary);
    margin-right: 0.5rem;
}

.gsp-corner-percentage.gsp-corner-green {
    color: var(--gsp-green);
}

.gsp-corner-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(249, 115, 22, 0.3);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.gsp-corner-checkbox:hover {
    border-color: var(--gsp-primary);
    background: rgba(249, 115, 22, 0.1);
}

/* HT/FT Grid */
.gsp-htft-legend {
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--gsp-text-muted);
}

.gsp-legend-item {
    display: inline-block;
}

.gsp-htft-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
    max-width: 100%;
}

.gsp-htft-cell {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--gsp-radius-sm);
    border: 1px solid rgba(249, 115, 22, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0.5rem;
    min-height: 60px;
}

.gsp-htft-cell:hover {
    transform: scale(1.05);
    border-color: var(--gsp-primary);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.2);
}

.gsp-htft-combo {
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    letter-spacing: 0.5px;
}

.gsp-htft-prob {
    font-size: 0.75rem;
    font-weight: 600;
}

.gsp-htft-high {
    background: rgba(16, 185, 129, 0.2);
    color: var(--gsp-green);
}

.gsp-htft-medium {
    background: rgba(251, 191, 36, 0.2);
    color: var(--gsp-yellow);
}

.gsp-htft-low {
    background: rgba(156, 163, 175, 0.15);
    color: var(--gsp-text-muted);
}

/* BTTS Card */
.gsp-btts-content {
    padding: 1rem 0;
}

.gsp-btts-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.gsp-btts-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    border-radius: var(--gsp-radius-md);
    border: 2px solid;
    transition: all 0.3s ease;
}

.gsp-btts-option.gsp-btts-yes {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--gsp-green);
}

.gsp-btts-option:not(.gsp-btts-yes) {
    background: rgba(156, 163, 175, 0.1);
    border-color: rgba(156, 163, 175, 0.3);
}

.gsp-btts-label {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.gsp-btts-value {
    font-size: 2rem;
    font-weight: 900;
}

.gsp-btts-explanation {
    text-align: center;
    color: var(--gsp-text-muted);
    font-size: 0.9rem;
    padding: 1rem;
    background: rgba(249, 115, 22, 0.05);
    border-radius: var(--gsp-radius-md);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .gsp-match-header-card {
        padding: 0.75rem 1rem;
    }
    .gsp-match-teams-header {
        flex-direction: row;
        gap: 0.5rem;
        justify-content: space-between;
    }
    .gsp-team-block {
        max-width: 32%;
        min-width: 0;
    }
    .gsp-team-logo-wrapper {
        width: 44px;
        height: 44px;
        margin: 0 auto 4px;
    }
    .gsp-team-logo {
        width: 28px;
        height: 28px;
    }
    .gsp-team-name {
        font-size: 0.75rem;
    }
    .gsp-result-badge {
        font-size: 0.65rem;
        padding: 4px 8px;
    }
    .gsp-score-block {
        min-width: 72px;
    }
    .gsp-match-status-badge {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
    .gsp-match-score-lg {
        font-size: 1.75rem;
    }
    .gsp-match-date-short {
        font-size: 0.7rem;
    }
    .gsp-match-date {
        display: none;
    }
    .gsp-match-league {
        font-size: 0.8rem;
    }
    .gsp-match-round {
        font-size: 0.7rem;
    }
    .gsp-match-info-row {
        flex-direction: column;
        gap: 0.625rem;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        font-size: 0.75rem;
    }
    
    /* التابات مش horizontal: جريد 3 أعمدة */
    .gsp-match-tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 10px 12px;
    }
    .gsp-match-tab {
        margin: 0;
        padding: 10px 8px;
        font-size: 0.75rem;
        min-height: 44px;
    }
    
    .gsp-predictions-grid {
        grid-template-columns: 1fr;
    }
    
    .gsp-poll-options {
        grid-template-columns: 1fr;
    }
    
    .gsp-lineups-grid {
        grid-template-columns: 1fr;
    }
    
    /* Lineup: same look as website on mobile */
    .gsp-lineup-card {
        padding: 1.75rem;
    }
    .gsp-lineup-header {
        gap: 14px;
        margin-bottom: 1.25rem;
        padding-bottom: 1.25rem;
    }
    .gsp-lineup-team-logo {
        width: 44px;
        height: 44px;
    }
    .gsp-lineup-team-name {
        font-size: 1.15rem;
        font-weight: 700;
    }
    .gsp-lineup-formation {
        font-size: 0.9rem;
    }
    .gsp-lineup-coach {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    .gsp-coach-photo {
        width: 36px;
        height: 36px;
    }
    .gsp-lineup-section-title {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    .gsp-lineup-players {
        gap: 8px;
    }
    .gsp-player-row {
        padding: 10px 14px;
        gap: 12px;
    }
    .gsp-player-number {
        width: 34px;
        height: 34px;
        min-width: 34px;
        font-size: 0.9rem;
    }
    .gsp-player-name {
        font-size: 0.95rem;
    }
    .gsp-player-pos {
        font-size: 0.8rem;
    }
    .gsp-pitch {
        padding: 1.25rem;
        min-height: 300px;
    }
    .gsp-pitch-jersey {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 1rem;
    }
    .gsp-pitch-name {
        font-size: 0.7rem;
        max-width: 65px;
    }
    
    .gsp-analysis-factors {
        grid-template-columns: 1fr;
    }
    
    .correct-score-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .gsp-h2h-teams {
        flex-direction: column;
        gap: 5px;
    }
    
    .gsp-h2h-home,
    .gsp-h2h-away {
        text-align: center;
    }
    
    .gsp-match-info-row {
        flex-direction: column;
        gap: 0.625rem;
    }
    
    .gsp-players-grid {
        grid-template-columns: 1fr;
    }
    
    .gsp-player-stat-row {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .gsp-player-stat-photo {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }
    
    .gsp-player-stat-name { font-size: 0.875rem; }
    .gsp-player-stat-pos { font-size: 0.75rem; }
    .gsp-player-stat-data { font-size: 0.75rem; gap: 6px; }
    .gsp-player-rating {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
        font-size: 0.85rem;
    }
    
    .gsp-team-forms {
        grid-template-columns: 1fr;
    }
    
    /* Standings على الموبايل: جدول أفقي قابل للتمرير (مش كروت عمودية) */
    .gsp-standings-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        padding: 0 0.5rem;
    }
    .gsp-standings-table table {
        display: table;
        width: 100%;
        min-width: 520px;
        font-size: 0.8rem;
    }
    .gsp-standings-table thead {
        display: table-header-group;
    }
    .gsp-standings-table tbody {
        display: table-row-group;
    }
    .gsp-standings-table tr {
        display: table-row;
    }
    .gsp-standings-table th,
    .gsp-standings-table td {
        display: table-cell;
        padding: 0.4rem 6px;
        border: none;
        border-bottom: 1px solid rgba(0,0,0,0.06);
        vertical-align: middle;
    }
    .gsp-standings-table th {
        white-space: nowrap;
        font-size: 0.7rem;
    }
    .gsp-standings-table td.team-cell {
        display: table-cell;
        text-align: left;
        max-width: 120px;
    }
    .gsp-standings-table td.team-cell .team-logo-sm {
        width: 20px;
        height: 20px;
        vertical-align: middle;
        margin-right: 4px;
    }
    .gsp-standings-table tr.home-team,
    .gsp-standings-table tr.away-team {
        background: rgba(232, 122, 79, 0.08);
    }
    .gsp-standings-table tr.home-team td:first-child,
    .gsp-standings-table tr.away-team td:first-child {
        border-left: 3px solid var(--gsp-primary, #e87a4f);
    }
    .gsp-standings-table td.form-cell {
        display: table-cell;
        white-space: nowrap;
    }

    .gsp-diff-grid {
        grid-template-columns: 1fr;
    }
    
    .gsp-highlights-grid {
        grid-template-columns: 1fr;
    }
    
    .gsp-goals-grid,
    .gsp-corners-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .gsp-goal-split {
        flex-direction: column;
    }
    
    .gsp-goal-divider {
        width: 100%;
        height: 1px;
        margin: 0.5rem 0;
    }
    
    .gsp-goal-half {
        padding: 0.5rem;
    }
    
    .gsp-goal-percentage,
    .gsp-corner-percentage {
        font-size: 1.25rem;
    }
    
    .gsp-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .gsp-corner-prob-item {
        padding: 0.4rem;
    }
    
    .gsp-htft-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }
    
    .gsp-htft-cell {
        min-height: 50px;
        padding: 0.4rem;
    }
    
    .gsp-htft-combo {
        font-size: 0.8rem;
    }
    
    .gsp-htft-prob {
        font-size: 0.7rem;
    }
    
    .gsp-btts-options {
        flex-direction: column;
    }
}

/* ============================================================
   AI ANALYSIS RESPONSE STYLES
   ============================================================ */
.gsp-ai-response {
    background: var(--gsp-bg-card);
    border-radius: var(--gsp-radius-lg);
    padding: 1.5rem;
}

.gsp-ai-response-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(249, 115, 22, 0.15);
}

.gsp-ai-badge {
    background: var(--gsp-gradient-primary);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: var(--gsp-radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gsp-ai-response-content {
    line-height: 1.8;
    color: var(--gsp-text-primary);
}

.gsp-ai-text {
    font-size: 1rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.gsp-ai-text p {
    margin-bottom: 1rem;
}

.gsp-ai-text p:last-child {
    margin-bottom: 0;
}

.gsp-ai-charts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.gsp-ai-chart {
    max-width: 100%;
    height: auto;
    border-radius: var(--gsp-radius-md);
    border: 1px solid rgba(249, 115, 22, 0.15);
}

.gsp-ai-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(249, 115, 22, 0.15);
}

.gsp-ai-actions .gsp-btn {
    flex: 1;
}

@media (max-width: 768px) {
    .gsp-ai-response-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .gsp-ai-actions {
        flex-direction: column;
    }
    
    .gsp-ai-actions .gsp-btn {
        width: 100%;
    }
}

/* ============================================================
   CLICKABLE PREDICTIONS - Selection System
   ============================================================ */

/* Card subtitle */
.gsp-card-subtitle {
    font-size: 0.875rem;
    color: var(--gsp-text-muted);
    margin: -0.25rem 0 1rem 0;
    opacity: 0.9;
}

/* Professional AI Analysis card */
.gsp-ai-analysis-card {
    background: linear-gradient(135deg, rgba(15, 22, 41, 0.95), rgba(30, 41, 59, 0.9));
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.gsp-ai-analysis-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.gsp-ai-analysis-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
    color: var(--gsp-text-primary);
}
.gsp-ai-analysis-item:last-child {
    border-bottom: none;
}
.gsp-ai-analysis-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}
.gsp-ai-analysis-item strong {
    color: var(--gsp-text-primary);
}

@media (max-width: 480px) {
    .gsp-ai-analysis-item {
        font-size: 0.85rem;
        flex-direction: column;
        gap: 0.25rem;
    }
    .gsp-ai-analysis-icon {
        align-self: flex-start;
    }
}

/* Community Poll inside Predictions tab */
.gsp-poll-in-predictions {
    margin-top: 2rem;
}

/* Card hint text */
.gsp-card-hint {
    font-size: 0.75rem;
    color: var(--gsp-text-muted);
    margin-bottom: 0.75rem;
    opacity: 0.7;
}

/* Clickable prediction items */
.gsp-prediction-clickable {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.gsp-prediction-clickable:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.gsp-prediction-clickable:active {
    transform: scale(0.98);
}

/* Selected state */
.gsp-prediction-selected {
    border: 2px solid #10B981 !important;
    background: rgba(16, 185, 129, 0.15) !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3) !important;
}

.gsp-prediction-selected::after {
    content: '✓';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background: #10B981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

/* Goals card clickable */
.gsp-goal-half.gsp-prediction-clickable {
    border-radius: 6px;
    padding: 0.5rem;
}

.gsp-goal-half.gsp-prediction-selected {
    border: 2px solid #10B981 !important;
}

/* Corners card clickable */
.gsp-corner-prob-item.gsp-prediction-clickable {
    border-radius: 6px;
}

.gsp-corner-prob-item.gsp-prediction-selected {
    border: 2px solid #10B981 !important;
}

/* HT/FT cell clickable */
.gsp-htft-cell.gsp-prediction-clickable {
    cursor: pointer;
}

.gsp-htft-cell.gsp-prediction-selected {
    border: 2px solid #10B981 !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4) !important;
}

/* BTTS option clickable */
.gsp-btts-option.gsp-prediction-clickable {
    cursor: pointer;
}

.gsp-btts-option.gsp-prediction-selected {
    border: 2px solid #10B981 !important;
}

/* Checkbox indicator */
.gsp-goal-checkbox,
.gsp-corner-checkbox {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin-top: 0.25rem;
    transition: all 0.2s;
}

.gsp-prediction-selected .gsp-goal-checkbox,
.gsp-prediction-selected .gsp-corner-checkbox {
    background: #10B981;
    border-color: #10B981;
}

.gsp-prediction-selected .gsp-goal-checkbox::after,
.gsp-prediction-selected .gsp-corner-checkbox::after {
    content: '✓';
    color: white;
    font-size: 10px;
    display: block;
    text-align: center;
    line-height: 12px;
}

/* Notification animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Mobile adjustments for clickable predictions */
@media (max-width: 480px) {
    .gsp-prediction-selected::after {
        width: 14px;
        height: 14px;
        font-size: 8px;
        top: 2px;
        right: 2px;
    }
    
    .gsp-goal-checkbox,
    .gsp-corner-checkbox {
        width: 14px;
        height: 14px;
    }
}
