/* NCAAB Comparison Tool - Modern UI */
:root {
    --bg: #0b1220;
    --card: #0f172a;
    --card-2: #111827;
    --border: #1f2937;
    --text: #e2e8f0;
    --muted: #9ca3af;
    --accent: #2563eb;
    --accent-2: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --chip-bg: #111827;
    --chip-border: #1f2937;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
.hidden { display: none !important; }

body {
    font-family: 'DM Sans', sans-serif;
    background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.08), transparent 35%), radial-gradient(circle at 80% 0%, rgba(16, 185, 129, 0.07), transparent 30%), var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.page-shell {
    max-width: 1260px;
    margin: 0 auto;
    padding: 28px 18px 40px;
}

.page-header {
    margin-bottom: 16px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.back-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 12px;
    cursor: pointer;
}

.title-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

.title-block h1 {
    margin: 0;
    font-size: 26px;
    letter-spacing: -0.5px;
}

.subtitle {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 15px;
}

.logo-small {
    width: 52px;
    height: 52px;
}

.matchup-shell {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    position: sticky;
    top: 10px;
    z-index: 5;
}

.control-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.control label {
    display: block;
    font-weight: 700;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 6px;
}

.control input,
.control select {
    width: 100%;
    padding: 12px 12px;
    background: var(--card-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 15px;
    height: 48px;
    box-sizing: border-box;
    line-height: normal;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.control input:focus,
.control select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.control.wide {
    grid-column: span 2;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 18px 0 10px;
}

.section-header h2 {
    margin: 0;
    font-size: 18px;
}

.mini-hint {
    color: var(--muted);
    font-size: 13px;
}

.game-list-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow);
    margin-bottom: 18px;
}

.game-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.game-card {
    background: var(--card-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr minmax(200px, 0.9fr) 1.1fr;
    gap: 12px;
    align-items: center;
    cursor: pointer;
    transition: border 0.2s ease, transform 0.2s ease;
}

.game-card:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.game-card-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-self: flex-start;
}

.team-line {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: center;
}

.team-line img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    object-fit: contain;
}

.team-line .name { font-weight: 800; }
.team-line .record { color: var(--muted); font-size: 12px; }

.game-card-center {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 64px;
}

.game-card-center .meta-chip {
    justify-self: center;
}

.game-card-right {
    align-self: center;
    justify-self: flex-end;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.odds-pill {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.odds-pill .label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.odds-pill .value { font-weight: 800; }

.game-card-right {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.spread-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.game-card:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.game-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.game-card-team {
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-card-team img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    object-fit: contain;
}

.game-card-team .name {
    font-weight: 700;
}

.game-card-team .record {
    color: var(--muted);
    font-size: 12px;
}

.game-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.game-card-meta .meta-chip {
    padding: 6px 8px;
    font-size: 12px;
}

.game-card-angles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.angle-chip {
    padding: 6px 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    font-size: 12px;
    color: var(--text);
}

.empty-state {
    text-align: center;
    color: var(--muted);
    padding: 12px 0;
}

.matchup-detail.hidden { display: none; }

.detail-header {
    margin-bottom: 12px;
}

.detail-header .back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta-strip {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.meta-chip {
    background: var(--chip-bg);
    border: 1px solid var(--chip-border);
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.meta-chip.muted { color: var(--muted); }
.meta-chip.conference { border-color: rgba(37, 99, 235, 0.5); color: #cbdcff; }
.meta-chip.non-conference { border-color: rgba(245, 158, 11, 0.5); color: #fce7b2; }
.meta-chip.neutral { border-color: rgba(16, 185, 129, 0.5); background: rgba(16, 185, 129, 0.12); color: #d1fae5; }
.meta-chip.conference-chip { background: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.4); color: #d1fae5; }
.meta-chip.non-conference-chip { background: rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.4); color: #fde68a; }
.meta-chip.neutral-chip { background: rgba(16, 185, 129, 0.18); border-color: rgba(16, 185, 129, 0.5); color: #d1fae5; }
.meta-chip.venue { border-color: rgba(148, 163, 184, 0.6); }
.meta-chip.odds { border-color: rgba(148, 163, 184, 0.6); }

.tab-container {
    margin-top: 16px;
}

.tab-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.tab-button {
    padding: 12px 10px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    color: var(--muted);
    font-weight: 700;
    transition: all 0.2s ease;
}

.tab-button.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(16, 185, 129, 0.18));
    color: var(--text);
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.15);
}

.tab-button:hover { border-color: var(--accent); }

.tab-content { display: none; }
.tab-content.active { display: block; }

.comparison-container {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

.teams-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(16, 185, 129, 0.12));
    margin-bottom: 16px;
}

.team-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-logo {
    width: 62px;
    height: 62px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    padding: 6px;
    object-fit: contain;
}

.team-name {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 2px;
}

.team-record {
    color: var(--muted);
    font-weight: 600;
}

.matchup-center {
    text-align: center;
}

.matchup-center .meta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 4px 0;
    color: var(--muted);
    font-size: 14px;
}

.meta-pill {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-weight: 500;
}
.meta-pill.conference-chip { background: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.4); color: #d1fae5; }
.meta-pill.non-conference-chip { background: rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.4); color: #fde68a; }
.meta-pill.neutral-chip { background: rgba(16, 185, 129, 0.18); border-color: rgba(16, 185, 129, 0.5); color: #d1fae5; }

.vs-divider {
    font-size: 15px;
    color: var(--muted);
    letter-spacing: 2px;
}

.coming-soon {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}

.coming-soon-icon {
    font-size: 42px;
    margin-bottom: 10px;
}

/* GAME LOGS */
.game-logs-comparison { width: 100%; }

.ncaab-comparison-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 14px;
}

.game-log-team-card {
    background: var(--card-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.ncaab-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.ncaab-card-header h3 {
    margin: 0;
    font-size: 18px;
    letter-spacing: -0.3px;
}

.record-chip {
    background: rgba(16, 185, 129, 0.12);
    color: #bdf6dd;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.game-log-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.game-log-stat-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
}

.game-log-stat-box .stat-label {
    color: var(--muted);
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 4px;
}

.game-log-stat-box .stat-value {
    font-size: 18px;
    font-weight: 800;
}

.resume-builder,
.strength-of-schedule {
    background: var(--card);
    border: 1px dashed var(--border);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
}

.resume-title,
.sos-title {
    margin: 0 0 10px 0;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: var(--muted);
}

.resume-item,
.sos-metric {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.resume-item:last-child,
.sos-metric:last-child { border-bottom: none; }

.resume-label { color: var(--muted); font-weight: 700; }
.resume-value { font-weight: 800; }
.resume-value.highlight { color: var(--accent-2); }
.resume-value.warning { color: var(--warning); }
.resume-value.danger { color: var(--danger); }

.momentum-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 700;
}

.momentum-arrow.up { color: var(--accent-2); }
.momentum-arrow.down { color: var(--danger); }
.momentum-arrow.steady { color: var(--muted); }
.momentum-text { color: var(--text); }

.momentum-bar {
    display: flex;
    gap: 4px;
    margin: 8px 0 12px;
}

.momentum-segment {
    flex: 1;
    height: 6px;
    border-radius: 4px;
    background: var(--border);
}

.momentum-segment.win { background: rgba(16, 185, 129, 0.6); }
.momentum-segment.loss { background: rgba(239, 68, 68, 0.6); }

.game-log-list {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.game-log-list::-webkit-scrollbar { height: 6px; }
.game-log-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }

.game-log-item {
    min-width: 210px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
}

.game-log-item.win { border-color: rgba(16, 185, 129, 0.5); }
.game-log-item.loss { border-color: rgba(239, 68, 68, 0.5); }

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

.game-result { font-weight: 800; font-size: 12px; }
.game-result.win { color: var(--accent-2); }
.game-result.loss { color: var(--danger); }
.game-date { color: var(--muted); font-size: 12px; }

.game-opponent {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.opponent-name { font-weight: 700; }

.opponent-rank {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
}

.opponent-rank.top25 { background: rgba(245, 158, 11, 0.15); color: #fde68a; border-color: rgba(245, 158, 11, 0.4); }
.opponent-rank.top50 { background: rgba(96, 165, 250, 0.18); color: #dbeafe; border-color: rgba(96, 165, 250, 0.4); }
.opponent-rank.top100 { background: rgba(16, 185, 129, 0.12); color: #c5f6df; border-color: rgba(16, 185, 129, 0.4); }
.opponent-rank.unranked { color: var(--muted); }

.location-badge {
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
}

.location-badge.away { border-color: rgba(37, 99, 235, 0.5); }
.location-badge.home { border-color: rgba(16, 185, 129, 0.5); }
.location-badge.neutral { border-color: rgba(148, 163, 184, 0.5); }

.game-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-weight: 700;
}

.score-display { color: var(--text); }
.score-margin.positive { color: var(--accent-2); }
.score-margin.negative { color: var(--danger); }

.quality-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    margin-top: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
}

.quality-badge.statement-win { border-color: rgba(37, 99, 235, 0.6); color: #dbeafe; }
.quality-badge.upset-loss { border-color: rgba(239, 68, 68, 0.6); color: #fecdd3; }
.quality-badge.road-warrior { border-color: rgba(139, 92, 246, 0.6); color: #ede9fe; }

.ncaab-vs-section {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.h2h-insights {
    background: var(--card-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    width: 100%;
    max-width: 660px;
    box-shadow: var(--shadow);
}

.h2h-title {
    margin: 0 0 10px 0;
    font-size: 14px;
    letter-spacing: 0.6px;
    color: var(--muted);
    text-transform: uppercase;
}

.h2h-insight-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
}

.h2h-insight-text { font-size: 14px; color: var(--text); }
.h2h-insight-text .team-highlight { color: var(--accent); font-weight: 800; }
.h2h-insight-text .stat-highlight { color: var(--accent-2); font-weight: 800; }

.game-logs-v2 {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-block {
    background: var(--card-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}

.card-title {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-stats-wrapper .quick-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
}

.team-stat {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.team-stat.stat-better {
    border-color: rgba(16, 185, 129, 0.6);
    background: rgba(16, 185, 129, 0.12);
    color: #d1fae5;
}

.team-stat.stat-worse {
    border-color: rgba(239, 68, 68, 0.6);
    background: rgba(239, 68, 68, 0.1);
    color: #fecaca;
}

.stat-label {
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

.stat-team-label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
}

.comparison-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-label {
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

.comparison-value {
    font-size: 15px;
    text-align: center;
}

.comparison-value.stat-better {
    color: #34d399;
}

.comparison-value.stat-worse {
    color: #f87171;
}

.recent-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.recent-team-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recent-team-title {
    font-size: 15px;
    font-weight: 700;
}

.recent-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    background: var(--card);
}

.recent-card.win {
    border-color: rgba(16, 185, 129, 0.5);
}

.recent-card.loss {
    border-color: rgba(239, 68, 68, 0.5);
}

.recent-card-top,
.recent-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 13px;
}

.location-badge-mini {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 700;
}

.rank-badge {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
}

.recent-score {
    font-weight: 700;
}

.recent-margin {
    font-weight: 700;
}

.recent-margin.positive {
    color: #10b981;
}

.recent-margin.negative {
    color: #f87171;
}

@media (max-width: 768px) {
    .stat-row {
        grid-template-columns: 1fr;
    }

    .comparison-row {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* POWER RATINGS / RANKINGS TABLES */
.power-ratings-insights-container,
.rankings-insights-container {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.power-ratings-insights {
    background: var(--card-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    width: 100%;
}

.insights-title {
    text-align: center;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin: 0 0 10px 0;
}

.insight-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
    font-size: 14px;
}

.tab-explanation {
    text-align: center;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 16px;
    padding: 8px 12px;
    font-style: italic;
}

.team-name-highlight { color: var(--accent); font-weight: 800; }
.stat-highlight { color: var(--accent-2); font-weight: 800; }

.power-ratings-table-wrapper,
.rankings-table-wrapper {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.power-ratings-table,
.rankings-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-2);
    color: var(--text);
    font-size: 14px;
}

.power-ratings-table th,
.rankings-table th {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 12px 10px;
    font-weight: 800;
    text-align: center;
}

.power-ratings-table td,
.rankings-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
    text-align: center;
    font-weight: 700;
}

.power-ratings-table tbody tr:hover,
.rankings-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }

/* Zebra striping for paired rows */
.rankings-table tbody tr.pair-light {
    background: rgba(255, 255, 255, 0.02);
}

.rankings-table tbody tr.pair-dark {
    background: rgba(0, 0, 0, 0.3);
}

.rankings-table tbody tr.pair-light:hover {
    background: rgba(255, 255, 255, 0.05);
}

.rankings-table tbody tr.pair-dark:hover {
    background: rgba(0, 0, 0, 0.4);
}

.stat-name-col { text-align: left; }
.logo-col { text-align: center; }

.advantage-logo { height: 22px; }
.even-indicator { color: var(--muted); font-weight: 700; }

.logo-cell-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 4px;
}

.team-logo-table {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
}

/* RANKINGS COLORS */
.l5rank-col { font-weight: 800; }

/* OUTLIER BOT */
.outlier-bot-icon {
    font-size: 64px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.3));
    text-align: center;
    margin-bottom: 16px;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.bet-selection-section {
    background: var(--card-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.bet-selection-section h4 {
    margin: 0 0 6px 0;
    text-align: center;
}

.outlier-bot-tip {
    margin: 0 0 14px 0;
    color: var(--muted);
    text-align: center;
}

.beta-notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 0 auto 20px auto;
    padding: 10px 16px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    max-width: 600px;
}

.beta-badge {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    border-radius: 4px;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.beta-text {
    margin: 0;
    font-size: 11px;
    color: var(--muted);
    text-align: center;
    line-height: 1.4;
}

.bet-category { margin-bottom: 18px; }
.bet-category h5 {
    margin: 0 0 8px 0;
    color: var(--muted);
    letter-spacing: 0.5px;
}

.bet-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.bet-option { position: relative; }
.bet-option input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }

.bet-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: border 0.2s ease, transform 0.2s ease;
}

.bet-option input[type="radio"]:checked + .bet-label {
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.bet-label-header {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.bet-label-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.team-logo-mini { width: 22px; height: 22px; }
.team-logo-mini img { width: 100%; height: 100%; object-fit: contain; }
.team-name-bet { font-weight: 700; }
.total-type { font-size: 11px; letter-spacing: 0.5px; color: var(--muted); }

.line-input {
    width: 120px;
    padding: 8px;
    background: var(--card-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    text-align: center;
}

.analyze-button {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(16, 185, 129, 0.9));
    color: white;
    border: none;
    padding: 12px 32px;
    font-weight: 800;
    border-radius: 10px;
    cursor: pointer;
    max-width: 280px;
    margin: 10px auto 0 auto;
    display: block;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
}

.analyze-button:disabled { opacity: 0.6; cursor: not-allowed; }

.bet-analysis-results { padding: 12px 0; }

.decision-box {
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
}

.decision-box.agree { background: rgba(16, 185, 129, 0.08); border-color: rgba(16, 185, 129, 0.4); }
.decision-box.disagree { background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.4); }

.decision-title { margin: 6px 0; font-size: 24px; }
.bet-description { margin: 0 0 10px 0; color: var(--muted); }

.analysis-bullets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
}

.bullet-section {
    background: var(--card-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
}

.bullet-section-title {
    margin: 0 0 8px 0;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.bullet-list {
    margin: 0;
    padding-left: 16px;
    color: var(--text);
}

.outlier-actions { text-align: center; margin-top: 12px; }
.regenerate-button {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
}

.outlier-loading,
.outlier-error {
    text-align: center;
    padding: 40px 20px;
}

.outlier-loading-spinner {
    width: 52px;
    height: 52px;
    border: 5px solid rgba(255, 255, 255, 0.08);
    border-top: 5px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 960px) {
    .control-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
    .control.wide { grid-column: span 1; }
    .teams-header { grid-template-columns: 1fr; text-align: center; }
    .team-block { justify-content: center; }
    .ncaab-comparison-cards { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .page-shell { padding: 20px 12px 28px; }
    .header-top { flex-direction: column; align-items: flex-start; }
    .matchup-shell { position: static; }
    .meta-strip { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
    .teams-header { padding: 12px; }
    .game-log-list { margin-right: -6px; padding-right: 6px; }
    .tab-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* SIDE-BY-SIDE RECENT GAMES COMPARISON LAYOUT */
.recent-games-comparison-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: var(--card-2);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.recent-comparison-team-left,
.recent-comparison-team-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.recent-comparison-team-right {
    justify-content: flex-end;
}

.team-logo-comparison {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}

.team-name-comparison {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-rank-comparison {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 7px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.recent-games-comparison-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Win Percentage Header */
.win-pct-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--card-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
}

.win-pct-team-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.win-pct-team-section.right {
    justify-content: flex-end;
}

.win-pct-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.win-pct-team-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.win-pct-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.games-count {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Win/Loss Progress Bars */
.win-loss-bars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.wl-bar-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wl-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
}

.wl-win-label,
.wl-loss-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1.3;
}

.wl-win-label {
    color: #10b981;
}

.wl-loss-label {
    color: #ef4444;
}

.wl-win-label strong,
.wl-loss-label strong {
    font-size: 14px;
    display: block;
    margin-top: 2px;
}

.wl-bar {
    position: relative;
    height: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
}

.wl-win-fill,
.wl-loss-fill {
    height: 100%;
    transition: width 0.6s ease;
}

.wl-win-fill {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.wl-loss-fill {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.comparison-game-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.comparison-game-left,
.comparison-game-right {
    min-width: 0;
}

.mini-game-info {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: all 0.2s ease;
}

.mini-game-info:hover {
    background: rgba(255, 255, 255, 0.03);
}

.mini-game-info.win {
    border-left: 3px solid rgba(16, 185, 129, 0.6);
}

.mini-game-info.loss {
    border-left: 3px solid rgba(239, 68, 68, 0.6);
}

/* Mirrored layout for home team */
.mini-game-home.win {
    border-left: none;
    border-right: 3px solid rgba(16, 185, 129, 0.6);
}

.mini-game-home.loss {
    border-left: none;
    border-right: 3px solid rgba(239, 68, 68, 0.6);
}

.mini-game-home .mini-game-header {
    justify-content: flex-end;
}

.mini-game-header {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.mini-location {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    min-width: 18px;
}

.mini-opp {
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-rank {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 4px;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.mini-game-score {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mini-result {
    font-size: 11px;
    font-weight: 800;
}

.mini-result.win {
    color: #10b981;
}

.mini-result.loss {
    color: #ef4444;
}

.mini-scores {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.mini-date {
    font-size: 10px;
    color: var(--muted);
    white-space: nowrap;
}

.no-game {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px;
    text-align: center;
    color: var(--muted);
}

.scoreboard-game-row {
    display: grid;
    grid-template-columns: 100px 1fr 200px;
    gap: 12px;
    align-items: center;
    padding: 8px 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.scoreboard-game-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.scoreboard-game-row.win {
    border-left: 3px solid rgba(16, 185, 129, 0.6);
}

.scoreboard-game-row.loss {
    border-left: 3px solid rgba(239, 68, 68, 0.6);
}

.scoreboard-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.location-symbol {
    font-weight: 700;
    color: var(--muted);
    min-width: 20px;
}

.game-date-scoreboard {
    font-size: 11px;
    color: var(--muted);
}

.scoreboard-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.result-indicator {
    font-weight: 800;
    font-size: 12px;
    min-width: 16px;
    text-align: center;
}

.result-indicator.win {
    color: #10b981;
}

.result-indicator.loss {
    color: #ef4444;
}

.score-box {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 15px;
}

.team-score {
    min-width: 30px;
    text-align: right;
}

.team-score.win {
    color: var(--text);
    font-weight: 800;
}

.score-separator {
    color: var(--muted);
    font-weight: 600;
}

.opp-score {
    min-width: 30px;
    text-align: left;
    color: var(--muted);
}

.scoreboard-right {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    min-width: 0;
}

.opp-rank-scoreboard {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.opp-name-scoreboard {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.opp-logo-scoreboard {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 4px;
}

/* KENPOM-STYLE COMPARISON LAYOUT */
.kenpom-style-comparison {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kenpom-stat-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    background: var(--card-2);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.kenpom-stat-left,
.kenpom-stat-right {
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.kenpom-stat-left {
    text-align: right;
}

.kenpom-stat-right {
    text-align: left;
}

.kenpom-stat-left.stat-better,
.kenpom-stat-right.stat-better {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.kenpom-stat-left.stat-worse,
.kenpom-stat-right.stat-worse {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.kenpom-stat-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.kenpom-stat-label span {
    min-width: 120px;
    text-align: center;
}

.team-logo-mini-kenpom {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 4px;
}

/* UPDATED CARD TITLES */
.card-title {
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: var(--muted) !important;
    margin-bottom: 14px !important;
}

/* BAR COMPARISON LAYOUT */
.bar-comparison-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bar-stat-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bar-stat-row:last-child {
    border-bottom: none;
}

.bar-stat-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
}

.bar-stat-value {
    font-size: 15px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.bar-stat-value:first-child {
    text-align: right;
}

.bar-stat-value:last-child {
    text-align: left;
}

.bar-stat-value.stat-better {
    color: #10b981;
}

.bar-stat-value.stat-worse {
    color: #ef4444;
}

.bar-stat-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.bar-stat-label span {
    min-width: 100px;
    text-align: center;
}

.bar-team-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 3px;
}

.bar-stat-visual {
    display: none;
    height: 6px;
    background: var(--card);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 10px;
}

.bar-fill {
    height: 100%;
    transition: width 0.6s ease;
}

.bar-fill-left {
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
}

.bar-fill-right {
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    margin-left: auto;
}

.bar-fill.bar-better {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.3);
}

.bar-fill.bar-worse {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

/* RESPONSIVE ADJUSTMENTS FOR NEW LAYOUT */
@media (max-width: 768px) {
    .recent-games-comparison-header {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .recent-comparison-team-right {
        justify-content: flex-start;
    }

    .win-pct-header {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px 12px;
    }

    .win-pct-team-section {
        justify-content: center;
    }

    .win-pct-team-section.right {
        justify-content: center;
    }

    .win-pct-logo {
        width: 28px;
        height: 28px;
    }

    .win-pct-team-name {
        font-size: 13px;
    }

    .win-loss-bars {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 12px;
    }

    .wl-bar {
        height: 20px;
    }

    .comparison-game-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .mini-game-info {
        padding: 6px 8px;
    }

    .mini-opp {
        font-size: 10px;
    }

    .mini-scores {
        font-size: 12px;
    }

    .scoreboard-game-row {
        grid-template-columns: 80px 1fr 160px;
        gap: 8px;
        padding: 8px;
    }

    .scoreboard-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .scoreboard-center {
        gap: 6px;
    }

    .score-box {
        font-size: 14px;
    }

    .opp-name-scoreboard {
        font-size: 11px;
        max-width: 100px;
    }

    .kenpom-stat-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .kenpom-stat-label {
        order: -1;
        justify-content: center;
    }

    .kenpom-stat-left,
    .kenpom-stat-right {
        text-align: center;
    }

    .kenpom-stat-label span {
        min-width: auto;
    }

    .bar-stat-header {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 8px;
    }

    .bar-stat-value:first-child,
    .bar-stat-value:last-child {
        text-align: center;
    }

    .bar-stat-label {
        order: -1;
        justify-content: center;
    }

    .bar-stat-label span {
        min-width: auto;
    }

    .bar-stat-visual {
        margin: 0 8px;
    }

    .bar-team-logo {
        width: 16px;
        height: 16px;
    }
}

/* ============================================
   MULTI-AGENT STREAMING UI STYLES
   ============================================ */

/* Multi-Agent Analysis Container */
.outlier-loading.multi-agent {
    padding: 30px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.multi-agent-header {
    text-align: center;
    margin-bottom: 30px;
}

.multi-agent-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.multi-agent-subtitle {
    font-size: 14px;
    color: #a0a0b0;
    margin: 0;
}

/* Agents Container */
.agents-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

/* Individual Agent Item */
.agent-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid #4a5568;
    transition: all 0.3s ease;
}

.agent-item[data-status="pending"] {
    opacity: 0.5;
    border-left-color: #4a5568;
}

.agent-item[data-status="active"] {
    opacity: 1;
    border-left-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.agent-item[data-status="complete"] {
    opacity: 1;
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.08);
}

/* Agent Icon/Number */
.agent-icon {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agent-number {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    z-index: 2;
    position: relative;
}

/* Agent Spinner (rotating circle) */
.agent-spinner {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #3b82f6;
    border-radius: 50%;
    opacity: 0;
    animation: none;
}

.agent-item[data-status="active"] .agent-spinner {
    opacity: 1;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Agent Details */
.agent-details {
    flex: 1;
}

.agent-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.agent-description {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 6px;
}

.agent-result {
    font-size: 13px;
    font-weight: 600;
    color: #10b981;
    font-family: 'Monaco', 'Courier New', monospace;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.agent-item[data-status="complete"] .agent-result {
    opacity: 1;
}

/* Agent Status Icon */
.agent-status-icon {
    font-size: 24px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.agent-item[data-status="complete"] .agent-status-icon {
    transform: scale(1.2);
}

/* Multi-Agent Footer */
.multi-agent-footer {
    margin-top: 30px;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.progress-text {
    text-align: center;
    font-size: 13px;
    color: #a0a0b0;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .agent-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .agent-icon {
        width: 40px;
        height: 40px;
    }

    .agent-number {
        font-size: 18px;
    }

    .agent-name {
        font-size: 14px;
    }

    .agent-description {
        font-size: 12px;
    }

    .agent-status-icon {
        position: absolute;
        top: 16px;
        right: 16px;
    }
}

/* Animation for agent completion */
@keyframes agentComplete {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.agent-item[data-status="complete"] {
    animation: agentComplete 0.5s ease;
}

/* Pulse effect for active agent */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
    }
}

.agent-item[data-status="active"] {
    animation: pulse 2s ease-in-out infinite;
}

/* ============================================ */
/* IMPROVED ANALYSIS RESULTS LAYOUT (V2) */
/* ============================================ */

.bet-analysis-results-v2 {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Header section with bet description */
.analysis-header {
    background: rgba(59, 130, 246, 0.1);
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
    padding: 24px 30px;
}

.bet-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #64748b;
    margin-bottom: 8px;
}

.bet-description-main {
    font-size: 20px;
    font-weight: 600;
    color: #3b82f6;
    line-height: 1.4;
}

/* Main reasoning section */
.analysis-reasoning {
    padding: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.reasoning-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #64748b;
    margin-bottom: 16px;
}

.reasoning-content {
    font-size: 16px;
    line-height: 1.8;
    color: #e2e8f0;
    background: rgba(0, 0, 0, 0.2);
    padding: 24px;
    border-radius: 8px;
    border-left: 4px solid rgba(59, 130, 246, 0.5);
}

.reasoning-content strong {
    color: #60a5fa;
    font-weight: 600;
}

/* Decision highlight (AGREE or DISAGREE in the text) */
.decision-highlight {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    margin: 0 4px;
}

.decision-highlight.agree {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 2px solid #10b981;
}

.decision-highlight.disagree {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 2px solid #ef4444;
}

/* Insights sections */
.analysis-insights {
    padding: 20px 30px 30px 30px;
}

.insight-section {
    margin-bottom: 24px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 20px;
    border-left: 3px solid rgba(100, 116, 139, 0.3);
}

.insight-section:last-child {
    margin-bottom: 0;
}

.insight-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.insight-icon {
    font-size: 18px;
}

.insight-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #94a3b8;
}

.insight-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.insight-list li {
    font-size: 15px;
    line-height: 1.7;
    color: #cbd5e1;
    padding: 12px 0;
    padding-left: 24px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.insight-list li:last-child {
    border-bottom: none;
}

.insight-list li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: #64748b;
    font-size: 18px;
    line-height: 1.7;
}

/* Action button */
.analysis-actions {
    padding: 20px 30px 30px 30px;
    display: flex;
    justify-content: center;
}

.action-button {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}
/* ============================================================================
   COMPREHENSIVE POWER RATINGS - CSS STYLING
   ============================================================================ */

/* Power Ratings Insights Section */
.power-ratings-insights-section {
    background: linear-gradient(135deg, #1a1f2e 0%, #2a3f5f 100%);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.insights-title {
    font-size: 18px;
    font-weight: 700;
    color: #10B981;
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: 0.5px;
}

.insights-content {
    color: #e5e7eb;
    line-height: 1.8;
}

.insights-content p {
    margin: 12px 0;
}

.insights-content strong {
    color: #fff;
    font-weight: 600;
}

.insights-content ul {
    list-style: none;
    padding-left: 0;
    margin: 12px 0;
}

.insights-content li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.highlight-green {
    color: #10B981;
    font-weight: 600;
}

.highlight-yellow {
    color: #F59E0B;
    font-weight: 600;
}

.highlight-red {
    color: #EF4444;
    font-weight: 600;
}

/* Power Ratings Categories Container */
.power-ratings-categories {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Category Card */
.power-ratings-category {
    background: #1a1f2e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.power-ratings-category:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Category Header (Collapsible) */
.category-header {
    background: linear-gradient(135deg, #2a3f5f 0%, #1a1f2e 100%);
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
    user-select: none;
}

.category-header:hover {
    background: linear-gradient(135deg, #3a4f6f 0%, #2a3f4e 100%);
}

.category-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.category-toggle {
    color: #10B981;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.power-ratings-category.collapsed .category-toggle {
    transform: rotate(-90deg);
}

/* Category Content */
.category-content {
    display: block;
    transition: all 0.3s ease;
}

/* Power Ratings Table */
.power-ratings-table {
    width: 100%;
    border-collapse: collapse;
    background: #0f1419;
}

.power-ratings-table thead {
    background: #1a1f2e;
    border-bottom: 2px solid #2a3f5f;
}

.power-ratings-table th {
    padding: 14px 16px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
}

.power-ratings-table tbody tr {
    border-bottom: 1px solid #1a1f2e;
    transition: background 0.2s ease;
}

/* Zebra Striping */
.power-ratings-table tbody tr.even-row {
    background: #0f1419;
}

.power-ratings-table tbody tr.odd-row {
    background: #141920;
}

.power-ratings-table tbody tr:hover {
    background: #1f2937 !important;
}

.power-ratings-table td {
    padding: 14px 16px;
    font-size: 14px;
    color: #e5e7eb;
}

/* Column Styles - Power Ratings Table (5 columns) */
.power-ratings-table th.stat-name-col:first-child,
.power-ratings-table td.stat-name-col:first-child {
    text-align: left;
    font-weight: 500;
    color: #d1d5db;
    width: 32% !important;
}

.power-ratings-table th.stat-name-col:last-child,
.power-ratings-table td.stat-name-col:last-child {
    text-align: right;
    font-weight: 500;
    color: #d1d5db;
    width: 32% !important;
}

.power-ratings-table th.away-col,
.power-ratings-table td.away-col,
.power-ratings-table th.home-col,
.power-ratings-table td.home-col {
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    width: 15% !important;
}

.power-ratings-table th.logo-col,
.power-ratings-table td.logo-col {
    text-align: center;
    width: 6% !important;
    padding: 8px;
}

/* Column Styles - Rankings Table (11 columns) */
.rankings-table th.stat-name-col:first-child,
.rankings-table td.stat-name-col:first-child {
    text-align: left;
    font-weight: 500;
    color: #d1d5db;
    width: 18% !important;
}

.rankings-table th.stat-name-col:last-child,
.rankings-table td.stat-name-col:last-child {
    text-align: right;
    font-weight: 500;
    color: #d1d5db;
    width: 18% !important;
}

.rankings-table th.season-col,
.rankings-table td.season-col {
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    width: 8% !important;
}

.rankings-table th.away-col,
.rankings-table td.away-col,
.rankings-table th.home-col,
.rankings-table td.home-col {
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    width: 7% !important;
}

.rankings-table th.last5-col,
.rankings-table td.last5-col {
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    width: 7% !important;
}

.rankings-table th.l5rank-col,
.rankings-table td.l5rank-col {
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    width: 7% !important;
    white-space: nowrap;
}

.rankings-table th.logo-col,
.rankings-table td.logo-col {
    text-align: center;
    width: 6% !important;
    padding: 8px;
}

.logo-cell-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.team-logo-table {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.advantage-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    opacity: 0.9;
}

.even-indicator {
    color: #6b7280;
    font-size: 18px;
    font-weight: 300;
}

/* Rank Badge Styling */
.rank-badge {
    font-size: 12px;
    font-weight: 500;
    margin-left: 6px;
    opacity: 0.85;
}

/* Tooltip Styling */
.has-tooltip {
    position: relative;
    cursor: help;
    border-bottom: 1px dotted #6b7280;
}

.has-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: #1f2937;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.has-tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .power-ratings-insights-section {
        padding: 16px;
    }

    .insights-title {
        font-size: 16px;
    }

    .insights-content {
        font-size: 13px;
    }

    .category-header {
        padding: 12px 16px;
    }

    .category-title {
        font-size: 14px;
    }

    .power-ratings-table th,
    .power-ratings-table td {
        padding: 10px 12px;
        font-size: 12px;
    }

    .stat-name-col {
        font-size: 11px;
    }

    .away-col, .home-col {
        font-size: 13px;
    }

    .team-logo-table {
        width: 24px;
        height: 24px;
    }

    .advantage-logo {
        width: 28px;
        height: 28px;
    }

    /* Hide one stat name column on mobile */
    .power-ratings-table th:last-child,
    .power-ratings-table td:last-child {
        display: none;
    }
}

/* Animation for Category Expand/Collapse */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 2000px;
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        max-height: 2000px;
    }
    to {
        opacity: 0;
        max-height: 0;
    }
}

/* Loading State */
.power-ratings-loading {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.power-ratings-loading::before {
    content: "⚡";
    display: block;
    font-size: 48px;
    margin-bottom: 16px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Error State */
.power-ratings-error {
    background: #7f1d1d;
    color: #fecaca;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}
