body {
            background-color: #F5F7FA;
            color: #1A1D2B;
            min-height: 100vh;
        }
        .accent-dot {
            display: inline-block; width: 8px; height: 8px;
            background-color: #1D4ED8; border-radius: 50%; margin-right: 12px;
            box-shadow: 0 0 8px rgba(29,78,216,0.4); animation: pulse 2s infinite;
        }
        @keyframes pulse {
            0%, 100% { opacity: 0.7; box-shadow: 0 0 6px rgba(29,78,216,0.3); }
            50% { opacity: 1; box-shadow: 0 0 12px rgba(29,78,216,0.5); }
        }
        .card {
            background: #FFFFFF;
            border: 1px solid #E5E7EB;
            box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
        }
        .logo-placeholder {
            background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
            border: 1px solid #E5E7EB;
        }

        /* Pitch */
        .pitch {
            background: linear-gradient(to right, #2d7a2d 0%, #339933 12%, #2d7a2d 25%, #339933 37%, #2d7a2d 50%, #339933 62%, #2d7a2d 75%, #339933 87%, #2d7a2d 100%);
            border: 2px solid #1a5c1a;
            border-radius: 8px;
            position: relative;
            aspect-ratio: 1.5 / 1;
        }
        .pitch-line { position: absolute; border: 1px solid rgba(255,255,255,0.5); pointer-events: none; }
        .pitch-center-line { left: 50%; top: 0; bottom: 0; width: 0; border-left: 1px solid rgba(255,255,255,0.5); }
        .pitch-center-circle {
            position: absolute; left: 50%; top: 50%; width: 20%; padding-bottom: 20%;
            transform: translate(-50%,-50%); border: 1px solid rgba(255,255,255,0.5); border-radius: 50%;
        }
        .pitch-box-left { left: 0; top: 20%; bottom: 20%; width: 12%; border-right: 1px solid rgba(255,255,255,0.5); border-top: 1px solid rgba(255,255,255,0.5); border-bottom: 1px solid rgba(255,255,255,0.5); border-left: none; }
        .pitch-box-right { right: 0; top: 20%; bottom: 20%; width: 12%; border-left: 1px solid rgba(255,255,255,0.5); border-top: 1px solid rgba(255,255,255,0.5); border-bottom: 1px solid rgba(255,255,255,0.5); border-right: none; }
        .pitch-goal-left { left: 0; top: 35%; bottom: 35%; width: 5%; border-right: 1px solid rgba(255,255,255,0.5); border-top: 1px solid rgba(255,255,255,0.5); border-bottom: 1px solid rgba(255,255,255,0.5); border-left: none; }
        .pitch-goal-right { right: 0; top: 35%; bottom: 35%; width: 5%; border-left: 1px solid rgba(255,255,255,0.5); border-top: 1px solid rgba(255,255,255,0.5); border-bottom: 1px solid rgba(255,255,255,0.5); border-right: none; }

        .player-dot {
            position: absolute;
            left: var(--desktop-left);
            top: var(--desktop-top);
            transform: translate(-50%, -50%);
            display: flex; flex-direction: column; align-items: center; gap: 2px;
            cursor: pointer; z-index: 10; border: 0; background: transparent; padding: 0;
        }
        .player-dot .dot {
            width: 30px; height: 30px; border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-size: 11px; font-weight: 700; color: #fff;
            border: 2px solid rgba(255,255,255,0.6);
            text-shadow: 0 1px 2px rgba(0,0,0,0.4);
            transition: transform 0.2s;
            box-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }
        .player-dot:hover .dot { transform: scale(1.2); }
        .player-dot .name-label {
            font-size: 9px; color: #fff;
            background: rgba(0,0,0,0.65); padding: 1px 5px; border-radius: 3px;
            white-space: nowrap; max-width: 75px; overflow: hidden; text-overflow: ellipsis;
        }
        .team-a-dot .dot { background: #1D4ED8; border-color: rgba(255,255,255,0.7); }
        .team-b-dot .dot { background: #EA580C; border-color: rgba(255,255,255,0.7); }

        @media (max-width: 640px) {
            .pitch {
                width: min(100%, 420px);
                aspect-ratio: 2 / 3;
                background: linear-gradient(to bottom, #2d7a2d 0%, #339933 12%, #2d7a2d 25%, #339933 37%, #2d7a2d 50%, #339933 62%, #2d7a2d 75%, #339933 87%, #2d7a2d 100%);
            }
            .pitch-center-line {
                left: 0;
                right: 0;
                top: 50%;
                bottom: auto;
                width: auto;
                height: 0;
                border-left: 0;
                border-top: 1px solid rgba(255,255,255,0.5);
            }
            .pitch-box-left {
                left: 20%;
                right: 20%;
                top: auto;
                bottom: 0;
                width: auto;
                height: 12%;
                border-top: 1px solid rgba(255,255,255,0.5);
                border-right: 1px solid rgba(255,255,255,0.5);
                border-left: 1px solid rgba(255,255,255,0.5);
                border-bottom: none;
            }
            .pitch-box-right {
                left: 20%;
                right: 20%;
                top: 0;
                bottom: auto;
                width: auto;
                height: 12%;
                border-bottom: 1px solid rgba(255,255,255,0.5);
                border-right: 1px solid rgba(255,255,255,0.5);
                border-left: 1px solid rgba(255,255,255,0.5);
                border-top: none;
            }
            .pitch-goal-left {
                left: 35%;
                right: 35%;
                top: auto;
                bottom: 0;
                width: auto;
                height: 5%;
                border-top: 1px solid rgba(255,255,255,0.5);
                border-right: 1px solid rgba(255,255,255,0.5);
                border-left: 1px solid rgba(255,255,255,0.5);
                border-bottom: none;
            }
            .pitch-goal-right {
                left: 35%;
                right: 35%;
                top: 0;
                bottom: auto;
                width: auto;
                height: 5%;
                border-bottom: 1px solid rgba(255,255,255,0.5);
                border-right: 1px solid rgba(255,255,255,0.5);
                border-left: 1px solid rgba(255,255,255,0.5);
                border-top: none;
            }
            .player-dot {
                left: var(--mobile-left);
                top: var(--mobile-top);
                gap: 1px;
            }
            .player-dot .dot {
                width: 26px;
                height: 26px;
                font-size: 10px;
                border-width: 2px;
            }
            .player-dot .name-label {
                max-width: 58px;
                font-size: 8px;
                padding: 1px 4px;
            }
        }

        /* Model switcher */
        .model-strip { scrollbar-width: none; -ms-overflow-style: none; }
        .model-strip::-webkit-scrollbar { display: none; }
        .model-pill { transition: all 0.2s ease; white-space: nowrap; }
        .model-pill.active {
            background: #1D4ED8; color: #fff; border-color: #1D4ED8;
            box-shadow: 0 8px 20px rgba(29,78,216,0.18);
        }
        .model-pill.active .model-meta { color: rgba(255,255,255,0.8); }

        /* Markdown rendered content */
        .md-content h2 { font-size: 1.25rem; font-weight: 700; margin: 1.5rem 0 0.75rem; color: #1A1D2B; }
        .md-content h3 { font-size: 1.1rem; font-weight: 600; margin: 1.25rem 0 0.5rem; color: #1A1D2B; }
        .md-content p { margin: 0.5rem 0; color: #4B5563; line-height: 1.7; }
        .md-content ul, .md-content ol { margin: 0.5rem 0; padding-left: 1.5rem; color: #4B5563; }
        .md-content li { margin: 0.25rem 0; line-height: 1.6; }
        .md-content strong { color: #1A1D2B; }

        .jiahao-card {
            overflow: hidden;
        }
        .jiahao-card-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
            margin-bottom: 16px;
        }
        .jiahao-readmore {
            flex-shrink: 0;
            min-width: 120px;
        }
        .jiahao-preview {
            position: relative;
            border-radius: 10px;
            border: 1px solid #E5E7EB;
            background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
            padding: 14px 16px;
            max-height: 260px;
            overflow: hidden;
        }
        .jiahao-preview::after {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            height: 44px;
            background: linear-gradient(180deg, rgba(248,250,252,0), #F8FAFC 78%);
            pointer-events: none;
        }
        .jiahao-preview h2,
        .jiahao-preview h3 {
            display: none;
        }
        .jiahao-preview p:first-child,
        .jiahao-preview ul:first-child,
        .jiahao-preview ol:first-child {
            margin-top: 0;
        }
        .jiahao-preview p:last-child,
        .jiahao-preview ul:last-child,
        .jiahao-preview ol:last-child {
            margin-bottom: 0;
        }

        /* Score bar */
        .score-bar { height: 6px; border-radius: 3px; background: #E5E7EB; overflow: hidden; }
        .score-bar-fill { height: 100%; border-radius: 3px; transition: width 0.6s ease; }

        /* Odds strip */
        .odds-row {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .odds-label {
            font-size: 12px;
            font-family: ui-monospace, SFMono-Regular, monospace;
            color: #6B7280;
            flex-shrink: 0;
            min-width: 64px;
        }
        .odds-pills {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            flex: 1;
            min-width: 0;
        }
        .odds-pill {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 3px;
            min-height: 56px;
            padding: 9px 10px;
            border-radius: 8px;
            border: 1px solid #E5E7EB;
            background: #F9FAFB;
            font-family: ui-monospace, SFMono-Regular, monospace;
            text-align: center;
            white-space: nowrap;
            overflow: visible;
        }
        .odds-pill-label {
            font-size: 12px;
            color: #9CA3AF;
            line-height: 1;
        }
        .odds-pill-value {
            font-size: 18px;
            line-height: 1.15;
            font-weight: 600;
            color: #1A1D2B;
        }
        .odds-pill.picked {
            background: rgba(29, 78, 216, 0.08);
            border-color: rgba(29, 78, 216, 0.35);
            box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.10);
        }
        .odds-pill.picked .odds-pill-label {
            color: #1D4ED8;
        }
        .odds-pill.picked .odds-pill-value {
            color: #1D4ED8;
            font-weight: 700;
        }
        .odds-llm-mark {
            position: absolute;
            right: -18px;
            top: 50%;
            width: 88px;
            height: 88px;
            border-radius: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: transparent;
            border: 0;
            box-shadow: none;
            overflow: visible;
            transform: translateY(-50%) rotate(20deg);
            z-index: 2;
            pointer-events: none;
        }
        .odds-llm-mark img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
            filter: drop-shadow(0 8px 10px rgba(15, 23, 42, 0.28));
        }
        .odds-llm-mark span {
            display: none;
            width: 100%;
            height: 100%;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            font-weight: 800;
            color: #1D4ED8;
            background: transparent;
            text-shadow: 0 4px 10px rgba(15, 23, 42, 0.22);
        }
        @media (max-width: 640px) {
            .odds-row { flex-wrap: wrap; }
            .odds-label { min-width: auto; width: 100%; }
            .odds-pills { width: 100%; gap: 6px; }
            .odds-pill { min-height: 50px; padding: 8px 6px; }
            .odds-pill-value { font-size: 16px; }
            .odds-llm-mark { width: 58px; height: 58px; right: -12px; }
        }
        .team-profile-trigger {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            max-width: 100%;
            margin-left: auto;
            padding: 7px 11px 7px 13px;
            border-radius: 9px;
            border: 1px solid rgba(29, 78, 216, 0.22);
            background: rgba(255, 255, 255, 0.82);
            color: #1D4ED8;
            font-size: 12px;
            font-weight: 800;
            line-height: 1;
            white-space: nowrap;
            box-shadow: 0 6px 18px rgba(29, 78, 216, 0.08);
            backdrop-filter: blur(8px);
            transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
        }
        .team-profile-trigger:hover {
            transform: translateY(-1px);
            border-color: rgba(29, 78, 216, 0.44);
            background: rgba(255, 255, 255, 0.98);
            color: #1E40AF;
            box-shadow: 0 10px 24px rgba(29, 78, 216, 0.12);
        }
        .team-profile-trigger-arrow {
            width: 14px;
            height: 14px;
            flex: 0 0 auto;
            transition: transform 0.18s ease;
        }
        .team-profile-trigger:hover .team-profile-trigger-arrow {
            transform: translateX(2px);
        }
        .team-profile-modal {
            color: #1A1D2B;
        }
        .profile-team-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 16px;
        }
        .profile-team-card {
            border: 1px solid #E5E7EB;
            border-top: 3px solid var(--profile-color);
            border-radius: 12px;
            background: #FFFFFF;
            padding: 16px;
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
        }
        .profile-card-head {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            margin-bottom: 14px;
        }
        .profile-team-mark {
            width: 12px;
            height: 38px;
            border-radius: 9999px;
            background: var(--profile-color);
            box-shadow: 0 0 0 4px color-mix(in srgb, var(--profile-color) 13%, transparent);
            flex: 0 0 auto;
        }
        .profile-card-head h3 {
            font-size: 18px;
            line-height: 1.2;
            font-weight: 800;
            margin: 0 0 6px;
            color: #0F172A;
        }
        .profile-card-head p {
            margin: 0;
            color: #475569;
            font-size: 13px;
            line-height: 1.65;
        }
        .profile-chip-row {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 14px;
        }
        .profile-chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            max-width: 100%;
            padding: 5px 8px;
            border-radius: 9999px;
            border: 1px solid #E2E8F0;
            background: #F8FAFC;
            color: #475569;
            font-size: 11px;
            line-height: 1.2;
        }
        .profile-chip b {
            color: var(--profile-color);
            font-weight: 800;
        }
        .profile-list-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
            margin-bottom: 14px;
        }
        .profile-list {
            border-radius: 10px;
            border: 1px solid #E5E7EB;
            background: #F8FAFC;
            padding: 12px;
        }
        .profile-list h4 {
            margin: 0 0 8px;
            font-size: 12px;
            font-weight: 800;
            color: #0F172A;
        }
        .profile-list ul {
            margin: 0;
            padding: 0;
            list-style: none;
        }
        .profile-list li {
            position: relative;
            padding-left: 12px;
            color: #475569;
            font-size: 12px;
            line-height: 1.55;
        }
        .profile-list li + li {
            margin-top: 7px;
            padding-top: 7px;
            border-top: 1px solid #E5E7EB;
        }
        .profile-list li::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0.62em;
            width: 5px;
            height: 5px;
            border-radius: 9999px;
            background: var(--profile-color);
        }
        .profile-list-risk li::before {
            background: #DC2626;
        }
        .profile-detail-stack {
            display: grid;
            gap: 8px;
        }
        .profile-detail {
            border-radius: 10px;
            border: 1px solid #E5E7EB;
            background: #FFFFFF;
            overflow: hidden;
        }
        .profile-detail summary {
            cursor: pointer;
            padding: 10px 12px;
            color: #0F172A;
            font-size: 13px;
            font-weight: 800;
            list-style: none;
        }
        .profile-detail summary::-webkit-details-marker {
            display: none;
        }
        .profile-detail summary::after {
            content: '+';
            float: right;
            color: #94A3B8;
            font-weight: 800;
        }
        .profile-detail[open] summary::after {
            content: '-';
        }
        .profile-detail-body {
            padding: 0 12px 12px;
        }
        .profile-field + .profile-field {
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px solid #EEF2F7;
        }
        .profile-field span {
            display: block;
            margin-bottom: 3px;
            color: var(--profile-color);
            font-size: 11px;
            font-weight: 800;
        }
        .profile-field p {
            margin: 0;
            color: #475569;
            font-size: 12px;
            line-height: 1.65;
        }
        .sub-player { transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease; }
        .sub-player:hover { transform: translateY(-1px); border-color: #CBD5E1; background: #F8FAFC; }
        body.modal-open { overflow: hidden; }
        @media (max-width: 640px) {
            .jiahao-card-head {
                flex-direction: column;
                align-items: stretch;
            }
            .jiahao-readmore {
                width: 100%;
            }
            .jiahao-preview {
                max-height: 300px;
                padding: 13px 14px;
            }
            .team-profile-trigger { padding: 7px 10px; font-size: 11px; }
            .modal-panel {
                top: auto;
                bottom: 0;
                left: 0;
                width: 100%;
                max-width: none;
                height: calc(100vh - 10px);
                height: calc(100dvh - 10px);
                max-height: none;
                display: flex;
                flex-direction: column;
                transform: none; border-radius: 16px 16px 0 0;
            }
            .modal-panel > .flex:first-child {
                flex: 0 0 auto;
                padding: 14px 16px;
            }
            #modal-title {
                font-size: 18px;
                line-height: 1.25;
            }
            #modal-body {
                flex: 1 1 auto;
                min-height: 0;
                max-height: none;
                padding: 18px 16px calc(24px + env(safe-area-inset-bottom, 0px));
                overscroll-behavior: contain;
                -webkit-overflow-scrolling: touch;
            }
            .profile-team-grid { grid-template-columns: 1fr; }
            .profile-team-card { padding: 14px; }
            .profile-list-grid { grid-template-columns: 1fr; }
        }

        ::-webkit-scrollbar { width: 6px; height: 6px; }
        ::-webkit-scrollbar-track { background: #F5F7FA; }
        ::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 3px; }
        ::-webkit-scrollbar-thumb:hover { background: #1D4ED8; }

        @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
        .animate-fade-in { animation: fadeIn 0.35s ease forwards; }
