﻿.league-epl {
    --league-primary: #7a1f5c;
    --league-secondary: #c85aa0;
    --league-soft: rgba(122,31,92,0.16);
    --league-soft-2: rgba(200,90,160,0.12);
}

.league-laliga {
    --league-primary: #0b57d0;
    --league-secondary: #ff6b35;
    --league-soft: rgba(11,87,208,0.14);
    --league-soft-2: rgba(255,107,53,0.12);
}

.league-bundesliga {
    --league-primary: #d90429;
    --league-secondary: #ff6b6b;
    --league-soft: rgba(217,4,41,0.14);
    --league-soft-2: rgba(255,107,107,0.12);
}

.league-seriea {
    --league-primary: #0057b8;
    --league-secondary: #6bb6ff;
    --league-soft: rgba(0,87,184,0.14);
    --league-soft-2: rgba(107,182,255,0.12);
}

.league-ligue1 {
    --league-primary: #0f172a;
    --league-secondary: #3b82f6;
    --league-soft: rgba(15,23,42,0.12);
    --league-soft-2: rgba(59,130,246,0.12);
}

.league-ucl {
    --league-primary: #123c9c;
    --league-secondary: #4f8cff;
    --league-soft: rgba(18,60,156,0.15);
    --league-soft-2: rgba(79,140,255,0.12);
}

:root {
    --bg: #edf1f5;
    --bg-soft: #f6f9fc;
    --card: #ffffff;
    --card-soft: #f8fbff;
    --line: #e4ebf3;
    --line-soft: #edf2f7;
    --text: #1f2a37;
    --text-2: #506074;
    --text-3: #8190a5;
    --blue: #3478f6;
    --league-primary: #3478f6;
    --league-secondary: #8fb8ff;
    --league-soft: rgba(52,120,246,0.12);
    --league-soft-2: rgba(143,184,255,0.12);
    --blue-soft: #eaf2ff;
    --green: #16a34a;
    --green-soft: #ebf8f0;
    --orange: #ea8a1a;
    --orange-soft: #fff4e7;
    --red: #e25353;
    --red-soft: #fff0f0;
    --shadow-sm: 0 4px 12px rgba(31, 42, 55, 0.04);
    --shadow-md: 0 10px 28px rgba(31, 42, 55, 0.06);
    --r-xl: 4px;
    --r-lg: 4px;
    --r-md: 4px;
    --r-sm: 4px;
    --compact-hero-height: 64px;
    --compact-hero-offset: 64px;
    --analysis-tabs-height: 53px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: #edf1f5;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    max-width: 100vw;
    overflow-x: hidden;
}

button, input, select {
    font: inherit;
}

.app {
    width: 100%;
    min-height: 100vh;
    padding: calc(env(safe-area-inset-top, 0px) + 8px) 0 calc(env(safe-area-inset-bottom, 0px) + 88px);
}

.topbar {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 12px;
    z-index: 2;
    margin: 0;
}

.topbar-inner {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.topbar-side {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.nav-btn,
.tool-btn,
.action-btn,
.bottom-btn {
    border: none;
    background: rgba(255,255,255,0.9);
    color: var(--text);
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    cursor: pointer;
}

.nav-btn {
    width: 36px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    color: #ffffff;
}

.nav-btn svg {
    width: 28px;
    height: 28px;
    display: block;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.tool-btn {
    min-width: 36px;
    padding: 0 10px;
    font-size: 12px;
    color: var(--text-2);
}

.topbar-icon-btn {
    min-width: 36px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    color: #ffffff;
}

.topbar-icon-btn svg {
    width: 28px;
    height: 28px;
    display: block;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.topbar-title {
    min-width: 0;
    flex: 1;
    text-align: center;
    padding: 0 6px;
}

.topbar-title strong {
    display: block;
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-title span {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.72);
    line-height: 1.2;
    margin-top: 2px;
}

.scroll-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 12px 2px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scroll-chips::-webkit-scrollbar {
    display: none;
}

.chip {
    flex: 0 0 auto;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(52, 120, 246, 0.10);
    background: rgba(255,255,255,0.88);
    color: var(--text-2);
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.chip.active {
    background: var(--blue-soft);
    color: var(--blue);
    border-color: rgba(52, 120, 246, 0.16);
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    border-radius: 4px 4px 0 0;
    box-shadow: var(--shadow-md);
    padding: 12px 14px 16px;
    margin-bottom: 12px;
    color: #ffffff;
}

.hero-pitch {
    border-radius: 4px 4px 0 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.08) 0, rgba(255,255,255,0.08) 1px, transparent 1px) 0 0 / 18px 18px, linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.00)), repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 32px, rgba(255,255,255,0.00) 32px, rgba(255,255,255,0.00) 64px), linear-gradient(180deg, #18733c 0%, #146333 52%, #0f522a 100%);
    border: 1px solid rgba(255,255,255,0.10);
}

.hero-pitch::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, transparent 0%, transparent 49.6%, rgba(255,255,255,0.18) 49.6%, rgba(255,255,255,0.18) 50.4%, transparent 50.4%, transparent 100%);
    opacity: 0.7;
}

.hero-pitch::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 110px;
    height: 110px;
    transform: translate(-50%, -36%);
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.14);
    pointer-events: none;
}

.compact-hero {
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    z-index: 46;
    min-height: var(--compact-hero-height);
    padding: calc(env(safe-area-inset-top, 0px) + 6px) 14px 6px;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 10px 26px rgba(31, 42, 55, 0.14);
    opacity: 0;
    transform: translateY(-18px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
}

.compact-hero.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.compact-hero::after {
    display: none;
}

.compact-hero-inner {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto minmax(0, 1fr) 40px;
    align-items: center;
    gap: 6px;
}

.compact-nav-btn,
.compact-share-btn {
    align-self: start;
    margin-top: 2px;
}

.compact-team {
    min-width: 0;
    display: flex;
    align-items: center;
}

.compact-team-away {
    justify-content: flex-end;
}

.compact-team-away .compact-team-name {
    text-align: right;
}

.compact-team-name {
    min-width: 0;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.18);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-hero-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.compact-hero-badge {
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.96);
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.hero-meta-row {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 36px;
    padding: 0 44px;
    margin-bottom: 14px;
    text-align: center;
}

.hero-meta-pill {
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.96);
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.hero-meta-pill.score-highlight {
    background: rgba(255,255,255,0.96);
    border-color: rgba(255,255,255,0.92);
    color: #dc2626;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

.hero-match {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

.team-block {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.team-logo-wrap {
    width: 72px;
    height: 72px;
    border-radius: 90%;
/*    background: rgba(255,255,255,0.94);
    border: 2px solid rgba(255,255,255,0.28);
    box-shadow: 0 10px 24px rgba(0,0,0,0.18), inset 0 0 0 1px rgba(0,0,0,0.04);*/
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    display: block;
}

.team-name {
    max-width: 100%;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.18);
    word-break: break-all;
}

.hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 92px;
    gap: 0;
}

.hero-ai {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-ai-title {
    font-size: 11px;
    color: rgba(255,255,255,0.76);
    line-height: 1.2;
}

.hero-ai-main {
    margin-top: 3px;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.18);
}

.hero-ai-desc {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.35;
    color: rgba(255,255,255,0.84);
}

.hero-match[data-match-state="end"] .hero-ai {
    display: none;
}

/* Tabs */
.analysis-tabs {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: -2px 0 12px;
    padding: 0 4px;
    background: linear-gradient(180deg, rgba(238,243,248,0.96) 0%, rgba(238,243,248,0.92) 100%);
    border-bottom: 1px solid var(--line);
}

body.compact-hero-visible .analysis-tabs {
    position: fixed;
    top: var(--compact-hero-offset);
    z-index: 45;
    margin-top: 0;
}

body.compact-hero-visible .tab-panel.active {
    padding-top: calc(var(--analysis-tabs-height) + 12px);
}

.analysis-tab {
    position: relative;
    height: 40px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 700;
    box-shadow: none;
    cursor: pointer;
}

.analysis-tab.active {
    color: var(--league-primary);
}

.analysis-tab.active::after {
    content: "";
    position: absolute;
    left: 20%;
    right: 20%;
    bottom: 0;
    height: 3px;
    border-radius: 2px 2px 0 0;
    background: var(--league-primary);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* module 是唯一明确卡片层级 */
.module {
    position: relative;
    margin-bottom: 14px;
    padding: 12px 10px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.module::before {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    top: 0;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, var(--league-primary) 0%, color-mix(in srgb, var(--league-primary) 26%, #ffffff) 100%);
    opacity: 0.9;
}

.tab-panel > .module:first-of-type::before {
    display: none;
}

.module-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    padding-top: 4px;
}

.module-title-wrap {
    min-width: 0;
    flex: 1;
}

.module-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.module-desc {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.45;
    color: var(--text-3);
}

.module-tag {
    flex: 0 0 auto;
    height: 24px;
    border-radius: 999px;
    padding: 0 10px;
    background: var(--league-soft);
    color: var(--league-primary);
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.module-body {
    padding: 0;
}

.stack,
.module-body.stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.grid-2,
.grid-3 {
    display: grid;
    gap: 10px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* module 内部不再使用卡片层级 */
.panel,
.tile,
.row-card,
.soft-card,
.prob-card,
.risk-card,
.event-card,
.result-card,
.market-card,
.duel-item,
.time-card,
.impact-row,
.kpi {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

/* 仅作为分组块/浅底块，不形成新的卡片边界 */
.soft-card,
.panel,
.market-card,
.risk-card,
.event-card,
.result-card,
.prob-card {
    background: linear-gradient(180deg, rgba(248,251,255,0.82) 0%, rgba(244,248,253,0.82) 100%);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}
.panel[data-fundamental-lines] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    align-items: start;
}
.panel[data-fundamental-lines] .meta-line {
    margin: 0;
    min-height: 100%;
    padding: 8px 10px;
    background: rgba(255,255,255,0.76);
    border: 1px solid var(--line-soft);
    border-radius: 4px;
}

.market-section {
    gap: 12px;
}

.market-overview,
.market-summary,
.market-card {
    background: linear-gradient(180deg, rgba(248,251,255,0.9) 0%, rgba(244,248,253,0.9) 100%);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    padding: 10px 4px;
}

.market-overview-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.market-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.market-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--line-soft);
}

.market-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.market-row-main {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.market-row-main strong {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
}

.market-row-main span {
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-2);
}
.market-row-main .market-odd {
    color: var(--text-2);
}
.market-row-main .market-prob {
    color: var(--league-primary);
    font-weight: 700;
}

.market-mini-grid {
    gap: 8px;
    margin-bottom: 8px;
}

.market-mini-item {
    background: rgba(255,255,255,0.72);
    border: 1px solid var(--line-soft);
    border-radius: 4px;
    padding: 10px;
}

.market-mini-item label {
    display: block;
    font-size: 11px;
    line-height: 1.2;
    color: var(--text-3);
    margin-bottom: 6px;
}

.market-mini-item strong {
    display: block;
    font-size: 18px;
    line-height: 1.15;
    font-weight: 800;
    color: var(--text);
}

.market-mini-item span {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.45;
    color: var(--text-2);
}
.market-mini-item-script strong {
    font-size: 15px;
    line-height: 1.3;
}
.market-mini-item-script span {
    font-size: 10px;
    line-height: 1.5;
}

.row-card {
    padding: 6px 0;
    border-bottom: 1px dashed var(--line-soft);
}

.row-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* 比赛特征 */
.feature-compare {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-summary {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed var(--line-soft);
}

.feature-row {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) 0 minmax(0, 1fr) 88px;
    grid-template-rows: auto 12px;
    align-items: center;
    column-gap: 2.5px;
    row-gap: 4px;
}

.feature-left-value,
.feature-right-value {
    font-size: 11px;
    color: var(--text);
    white-space: nowrap;
    line-height: 1.2;
}

.feature-left-value {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
}

.feature-name {
    grid-column: 3;
    grid-row: 1;
    justify-self: center;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-3);
    white-space: nowrap;
    line-height: 1.2;
}

.feature-right-value {
    grid-column: 5;
    grid-row: 1;
    text-align: right;
}

.feature-track {
    position: relative;
    height: 12px;
    background: #e7edf3;
    overflow: hidden;
    border-radius: 0;
}

.feature-row > .feature-track:nth-last-of-type(2) {
    grid-column: 1 / span 2;
    grid-row: 2;
}

.feature-row > .feature-track:last-of-type {
    grid-column: 4 / span 2;
    grid-row: 2;
}

.feature-fill {
    position: absolute;
    top: 0;
    bottom: 0;
}

/* 主队：有色部分靠右 */
.feature-fill.left {
    right: 0;
    background: #9fa4aa;
}

/* 客队：有色部分靠左 */
.feature-fill.right {
    left: 0;
    background: #9fa4aa;
}

.feature-row.winner-left .feature-fill.left {
    background: #ef1111;
}

.feature-row.winner-left .feature-fill.right {
    background: #9fa4aa;
}

.feature-row.winner-right .feature-fill.right {
    background: #ef1111;
}

.feature-row.winner-right .feature-fill.left {
    background: #9fa4aa;
}

.duel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.duel-item {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line-soft);
}

.duel-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.duel-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--text-2);
}

.duel-top {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    gap: 8px;
    align-items: center;
}

.duel-num {
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
}

.duel-num.right {
    text-align: right;
}

.bar-track,
.bar-track-3,
.risk-track {
    width: 100%;
    overflow: hidden;
    border-radius: 999px;
    background: #eaf0f6;
}

.bar-track {
    height: 9px;
    display: flex;
}

.bar-left,
.bar-right {
    height: 100%;
}

.bar-left {
    background: linear-gradient(90deg, #4b88ff 0%, #6da2ff 100%);
}

.bar-right {
    background: linear-gradient(90deg, #ffb57c 0%, #ffcb9f 100%);
}

.metric-note {
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-3);
    line-height: 1.4;
}

.kpi {
    display: block;
}

.kpi label {
    display: block;
    font-size: 11px;
    color: var(--text-3);
    margin-bottom: 5px;
}

.kpi strong {
    display: block;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 800;
}

.kpi span {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.4;
    color: var(--text-2);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.card-title {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}

.badge {
    flex: 0 0 auto;
    height: 24px;
    border-radius: 999px;
    padding: 0 8px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.badge.blue {
    background: var(--blue-soft);
    color: var(--blue);
}

.badge.green {
    background: var(--green-soft);
    color: var(--green);
}

.badge.orange {
    background: var(--orange-soft);
    color: var(--orange);
}

.badge.red {
    background: var(--red-soft);
    color: var(--red);
}

.badge.gray {
    background: #eef3f8;
    color: var(--text-2);
}

.bar-track-3 {
    height: 12px;
    display: flex;
    margin-bottom: 8px;
}

.bar-track-3 span {
    height: 100%;
    display: block;
}

.bar-track-3 span:nth-child(1) {
    background: #5a92ff;
}

.bar-track-3 span:nth-child(2) {
    background: #cfd8e5;
}

.bar-track-3 span:nth-child(3) {
    background: #ffbf90;
}

.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 12px;
    color: var(--text-2);
    line-height: 1.45;
}

.meta-line strong {
    color: var(--text);
    font-weight: 800;
}

.risk-hero {
    background: linear-gradient(180deg, #fff8f8 0%, #fff3f3 100%);
    border-radius: 4px;
    padding: 12px;
    border: 1px solid #ffd9d9;
    box-shadow: none;
}

.risk-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.risk-head-main {
    min-width: 0;
}

.risk-head-main strong {
    display: block;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
}

.risk-head-main span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-2);
    line-height: 1.45;
}

.risk-circle {
    flex: 0 0 auto;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 5px #ffcaca;
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
}

.risk-track {
    height: 10px;
    margin-bottom: 8px;
}

.risk-fill {
    height: 100%;
    width: 58%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff8a8a 0%, #ff6b6b 100%);
}

.risk-item-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line-soft);
}

.risk-item-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.risk-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--orange);
    margin-top: 5px;
    flex: 0 0 auto;
}

.risk-item-main {
    min-width: 0;
    flex: 1;
}

.risk-item-main strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
}

.risk-item-main span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-2);
    line-height: 1.45;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.time-card {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 10px;
    align-items: start;
    padding: 8px 0;
    border-bottom: 1px solid var(--line-soft);
}

.time-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.time-mark {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: #fff;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px var(--line-soft);
}

.time-main strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
}

.time-main span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-2);
    line-height: 1.5;
}

.record-dual-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
}

@media (max-width: 700px) {
    .record-dual-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.record-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px;
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(246,250,255,0.96) 0%, rgba(240,246,252,0.96) 100%);
    border: 1px solid var(--line-soft);
}

.record-filters.single-line {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.record-filters.single-line::-webkit-scrollbar {
    display: none;
}

.record-filter-group {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}

.record-filter-group.toggle-group {
    gap: 0;
    padding: 2px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: rgba(255,255,255,0.96);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.record-filter-btn {
    min-height: 30px;
    padding: 0 10px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--text-2);
    font-size: 12px;
    font-weight: 700;
    box-shadow: none;
    white-space: nowrap;
}

.record-filter-btn.active {
    background: var(--blue-soft);
    color: var(--blue);
    box-shadow: inset 0 0 0 1px rgba(52,120,246,0.10);
}

.record-team-panel {
    background: linear-gradient(180deg, rgba(248,251,255,0.92) 0%, rgba(244,248,253,0.92) 100%);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    border-radius: 4px;
    padding-top: 8px;
}

.record-summary-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.record-summary-block.compact {
    margin-bottom: 8px;
}

.record-stat-line {
    min-width: 0;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid var(--line-soft);
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,251,255,0.92) 100%);
    box-shadow: 0 3px 10px rgba(31,42,55,0.04);
}

.record-stat-line label {
    display: inline;
    margin-right: 8px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-2);
    font-weight: 800;
}

.record-stat-line strong {
    font-size: 13px;
    line-height: 1.4;
    color: var(--text);
    font-weight: 800;
    letter-spacing: 0.01em;
}

.record-stat-line span {
    display: inline;
    margin-left: 8px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-2);
}

.record-table {
    border: 1px solid var(--line-soft);
    border-radius: 4px;
    overflow: hidden;
    background: rgba(255,255,255,0.9);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55);
}

.record-table-head,
.record-item {
    display: grid;
    grid-template-columns: 74px 68px minmax(0, 1fr) 44px;
    gap: 10px;
    align-items: center;
}

.record-table-head {
    padding: 10px 12px;
    background: linear-gradient(180deg, #f7faff 0%, #eef4fb 100%);
    border-bottom: 1px solid var(--line-soft);
    color: var(--text-3);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.record-table-body {
    display: flex;
    flex-direction: column;
}

.record-item {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(255,255,255,0.94);
}

.record-item:nth-child(even) {
    background: rgba(248,251,255,0.9);
}

.record-item:last-child {
    border-bottom: none;
}

.record-item-date {
    font-size: 11px;
    color: var(--text-3);
    white-space: normal;
    line-height: 1.35;
    word-break: break-all;
}

.record-item-league {
    font-size: 11px;
    color: var(--text-2);
    width:60px;
}

.record-item-teams {
    font-size: 11px;
    line-height: 1.45;
    color: var(--text);
    word-break: break-all;
}

.record-item-team-main {
    display: block;
    color: var(--text);
    font-weight: 700;
}

.record-item-scoreline {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.35;
    color: var(--league-primary);
    font-weight: 700;
}

.record-item-side {
    margin-left: 6px;
    color: var(--league-primary);
    font-size: 11px;
    font-weight: 700;
}

.record-item-meta {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.4;
    color: var(--text-3);
}

.record-item-score {
    text-align: right;
    width:26px;
}

.record-item-score strong {
    display: block;
    font-size: 13px;
    line-height: 1.1;
    color: var(--text);
    font-weight: 800;
}

.record-item-score span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    min-height: 22px;
    margin-top: 0;
    font-size: 12px;
    line-height: 1.2;
    color: var(--text);
    border-radius: 999px;
}

.record-team-panel .card-top {
    margin-bottom: 8px;
    padding-left:8px;
}

.record-team-panel .card-title,
[data-record-battle-summary] + .panel .record-table-head,
.record-table-head span {
    font-weight: 800;
}

[data-panel="record"] .module + .module {
    margin-top: 2px;
}

[data-panel="record"] .module-body.stack,
[data-panel="record"] .module-body {
    gap: 10px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 0;
    text-align: center;
    color: var(--text-2);
}

.empty-state strong {
    font-size: 15px;
    color: var(--text);
    font-weight: 800;
}

.empty-state span {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-3);
}

.is-hidden {
    display: none !important;
}

.bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    padding: 10px 12px calc(env(safe-area-inset-bottom, 0px) + 10px);
    background: linear-gradient(180deg, rgba(238,243,248,0) 0%, rgba(238,243,248,0.92) 28%, rgba(238,243,248,0.98) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.bottom-sheet-inner {
    background: rgba(255,255,255,0.92);
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 10px 32px rgba(31,42,55,0.10);
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 8px;
}

.bottom-btn {
    height: 44px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    background: #f4f8fc;
    color: var(--text);
    box-shadow: none;
}

.bottom-btn.primary {
    background: var(--league-primary);
    color: #fff;
    box-shadow: 0 10px 20px rgba(52,120,246,0.22);
}

.foot-note {
    padding: 6px 16px 0;
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-3);
    text-align: center;
}

@media (min-width: 700px) {
    body {
        background: linear-gradient(180deg, #f7faff 0%, #eef3f8 100%);
    }

    .app {
        max-width: 730px;
        margin: 0 auto;
        box-shadow: none;
        background: transparent;
    }
}

@media (max-width: 390px) {
    :root {
        --compact-hero-height: 58px;
        --compact-hero-offset: 58px;
        --analysis-tabs-height: 48px;
    }

    .hero {
        padding: 12px 14px 14px;
    }

    .hero-match {
        grid-template-columns: minmax(0, 1fr) 78px minmax(0, 1fr);
        gap: 6px;
    }

    .team-logo-wrap {
        width: 62px;
        height: 62px;
    }

    .team-name {
        font-size: 15px;
    }

    .hero-ai-main {
        font-size: 16px;
    }

    .hero-ai-desc,
    .hero-ai-title {
        font-size: 10px;
    }

    .compact-hero {
        padding: calc(env(safe-area-inset-top, 0px) + 5px) 12px 5px;
    }

    .compact-hero-inner {
        grid-template-columns: 36px minmax(0, 1fr) auto minmax(0, 1fr) 36px;
        gap: 6px;
    }

    .compact-team-name {
        font-size: 15px;
    }

    .compact-hero-badge {
        padding: 0 8px;
        font-size: 10px;
    }

    .analysis-tabs {
        padding: 0 2px;
        margin-bottom: 10px;
    }

    .analysis-tab {
        height: 36px;
        font-size: 12px;
        padding: 0;
    }

    .grid-2,
    .bottom-sheet-inner {
        grid-template-columns: 1fr;
    }

    .duel-top {
        grid-template-columns: 46px minmax(0, 1fr) 46px;
    }

    .market-row {
        align-items: flex-start;
    }

    .market-row .badge {
        margin-top: 2px;
    }

    .market-mini-item strong {
        font-size: 16px;
    }
    .panel[data-fundamental-lines] {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .market-mini-item-script strong {
        font-size: 14px;
    }

    .module {
        padding: 10px 8px;
        margin-bottom: 12px;
    }

    .module::before {
        left: 8px;
        right: 8px;
    }

    .feature-row {
        grid-template-columns: 68px minmax(0, 1fr) 0 minmax(0, 1fr) 68px;
        column-gap: 2.5px;
        row-gap: 4px;
    }

    .record-dual-grid {
        grid-template-columns: 1fr;
    }

    .record-filters {
        gap: 6px;
    }

    .record-filters.single-line {
        margin: 0 -2px;
        padding: 0 2px 2px;
    }

    .record-filter-group {
        gap: 6px;
    }

    .record-filter-btn {
        min-height: 28px;
        padding: 0 8px;
        font-size: 11px;
    }

    .record-item {
        grid-template-columns: 52px 46px minmax(0, 1fr) 24px;
        gap: 6px;
        align-items: start;
        padding: 8px 8px;
    }

    .record-table-head {
        display: none;
    }

    .record-item-date {
        grid-column: 1 / 2;
        font-size: 10px;
        line-height: 1.2;
    }

    .record-item-league {
        grid-column: 2 / 3;
        width: auto;
        font-size: 10px;
        line-height: 1.2;
        text-align: left;
        word-break: break-all;
    }

    .record-item-teams {
        grid-column: 3 / 4;
        font-size: 10px;
        line-height: 1.3;
    }

    .record-item-team-main {
        font-size: 11px;
        line-height: 1.3;
    }

    .record-item-scoreline {
        margin-top: 3px;
        font-size: 10px;
        line-height: 1.2;
    }

    .record-item-meta {
        display: block;
        margin-top: 3px;
        font-size: 10px;
        line-height: 1.2;
        grid-column: auto;
    }

    .record-stat-line {
        padding: 8px;
    }

    .record-item-score {
        grid-column: 4 / 5;
        text-align: right;
        align-self: start;
    }

    .record-item-score span {
        min-width: 18px;
        min-height: 18px;
        font-size: 11px;
        padding: 0;
    }

    .record-stat-line span {
        display: inline;
        margin-left: 6px;
        margin-top: 0;
    }

    .feature-name {
        font-size: 9px;
    }

    .feature-left-value,
    .feature-right-value {
        font-size: 10px;
    }
}

@media (min-width: 391px) and (max-width: 640px) {
    .record-dual-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .record-filters.single-line {
        margin: 0 -2px;
        padding: 0 2px 2px;
    }

    .record-filter-btn {
        min-height: 28px;
        padding: 0 9px;
        font-size: 11px;
    }

    .record-item {
        grid-template-columns: 62px 54px minmax(0, 1fr) 26px;
        gap: 8px;
        padding: 9px 10px;
        align-items: start;
    }

    .record-table-head {
        display: none;
    }

    .record-item-date,
    .record-item-league {
        font-size: 10px;
        line-height: 1.25;
    }

    .record-item-league {
        width: auto;
        word-break: break-all;
    }

    .record-item-teams {
        font-size: 11px;
        line-height: 1.35;
    }

    .record-item-team-main {
        font-size: 12px;
        line-height: 1.35;
    }

    .record-item-scoreline,
    .record-item-meta {
        font-size: 10px;
        line-height: 1.25;
    }

    .record-item-score {
        align-self: start;
    }

    .record-item-score span {
        min-width: 20px;
        min-height: 20px;
        font-size: 11px;
        padding: 0;
    }
}

.intel-shell {
    display: grid;
    gap: 12px;
}

.intel-overview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(52, 120, 246, 0.12);
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(52, 120, 246, 0.08), rgba(255,255,255,0.92));
}

.intel-overview-main {
    min-width: 0;
}

.intel-overview-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
}

.intel-overview-desc {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-2);
}

.intel-overview-meta {
    flex: 0 0 auto;
    text-align: right;
    font-size: 11px;
    line-height: 1.7;
    color: var(--text-3);
}

.intel-grid {
    display: grid;
    gap: 12px;
}

.intel-card {
    border-radius: 4px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(248,251,255,0.98), rgba(255,255,255,0.98));
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.intel-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px 10px;
}

.intel-card-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
}

.intel-card-sub {
    font-size: 11px;
    color: var(--text-3);
}

.intel-card-body {
    padding: 0 16px 14px;
    display: grid;
    gap: 12px;
}

.intel-group {
    display: grid;
    gap: 8px;
}

.intel-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: var(--text-2);
}

.intel-group-head strong {
    font-size: 13px;
    color: var(--text);
}

.intel-bar-wrap {
    display: grid;
    gap: 8px;
}

.intel-bar-outer {
    width: 100%;
    transform-origin: left center;
}

.intel-bar {
    width: 100%;
    min-height: 9px;
    display: flex;
    overflow: hidden;
    border-radius: 999px;
    background: #edf3fb;
    border: 1px solid rgba(52, 120, 246, 0.08);
}

.intel-bar-seg {
    min-width: 0;
}

.intel-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
}

.intel-legend-item {
    min-width: 92px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-2);
}

.intel-legend-swatch {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    flex: 0 0 auto;
}

.intel-legend-label {
    color: var(--text);
}

.intel-legend-value {
    color: var(--text-3);
}

.intel-summary {
    padding: 10px 12px;
    border-radius: 4px;
    background: var(--bg-soft);
    color: var(--text-2);
    font-size: 12px;
    line-height: 1.7;
}

.intel-summary strong {
    color: var(--text);
}

@media (max-width: 640px) {
    .intel-overview {
        display: grid;
    }

    .intel-overview-meta {
        text-align: left;
    }

    .intel-card-head {
        align-items: start;
        flex-direction: column;
    }

    .intel-legend-item {
        min-width: 78px;
    }
}

.recommend-shell {
    display: grid;
    gap: 12px;
}

.recommend-summary-card {
    padding: 12px;
    display: grid;
    gap: 8px;
    border: 1px solid rgba(140, 174, 211, 0.42);
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.96) 0%, rgba(239, 246, 255, 0.92) 100%);
    box-shadow: 0 10px 24px rgba(26, 64, 104, 0.08);
}

.recommend-login-card {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    padding: 28px 22px;
    display: grid;
    place-items: center;
    gap: 18px;
    border: 1px solid rgba(205, 168, 73, 0.28);
    border-radius: 4px;
    background:
        radial-gradient(circle at top right, rgba(223, 183, 86, 0.22), transparent 32%),
        radial-gradient(circle at bottom left, rgba(178, 132, 33, 0.14), transparent 28%),
        linear-gradient(135deg, rgba(255, 251, 238, 0.98) 0%, rgba(251, 242, 210, 0.95) 52%, rgba(255, 253, 247, 0.98) 100%);
    box-shadow: 0 18px 40px rgba(106, 76, 18, 0.10);
    text-align: center;
    cursor: pointer;
}

.recommend-login-card:focus-visible {
    outline: 3px solid rgba(205, 168, 73, 0.45);
    outline-offset: 3px;
}

.recommend-login-card::after {
    content: "";
    position: absolute;
    inset: auto -28px -28px auto;
    width: 140px;
    height: 140px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(210, 168, 63, 0.22), rgba(210, 168, 63, 0));
    pointer-events: none;
}

.recommend-login-lock {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(204, 165, 68, 0.26);
    background: linear-gradient(180deg, rgba(255,255,255,0.74) 0%, rgba(255, 247, 221, 0.92) 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.72), 0 12px 24px rgba(138, 103, 30, 0.12);
}

.recommend-login-lock svg {
    width: 46px;
    height: 46px;
    stroke: #b18427;
    stroke-width: 2.6;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.recommend-login-title {
    font-size: 26px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: #8b6520;
}

.recommend-summary-title {
    font-size: 14px;
    font-weight: 800;
    color: #17324d;
}

.recommend-summary-main {
    font-size: 16px;
    font-weight: 800;
    color: #003399;
    line-height: 1.5;
}

.recommend-summary-desc,
.recommend-summary-note {
    font-size: 12px;
    line-height: 1.7;
    color: #334b66;
}

.recommend-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

.recommend-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(139, 171, 206, 0.36);
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247, 250, 255, 0.96) 100%);
    box-shadow: 0 12px 28px rgba(29, 71, 115, 0.08);
}

.recommend-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    font-size: 12px;
    color: #1f3550;
    background: transparent;
}

.recommend-table th,
.recommend-table td {
    border: 0;
    border-right: 1px solid rgba(143, 173, 205, 0.24);
    border-bottom: 1px solid rgba(143, 173, 205, 0.24);
    padding: 10px 12px;
    vertical-align: top;
}

.recommend-table th:first-child,
.recommend-table td:first-child {
    border-left: 1px solid rgba(143, 173, 205, 0.24);
    min-width:200px;
}

.recommend-table th {
    background: rgba(237, 244, 253, 0.92);
    color: #31506f;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.recommend-table thead th:first-child {
    border-top-left-radius: 4px;
}

.recommend-table thead th:last-child {
    border-top-right-radius: 4px;
}

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

.recommend-table th:last-child,
.recommend-table td:last-child {
    border-right: 0;
}

.recommend-table tbody tr:nth-child(even) td {
    background: rgba(246, 250, 255, 0.74);
}

.recommend-table tbody tr:hover td {
    background: rgba(232, 242, 255, 0.82);
}

.recommend-import-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(69, 122, 190, 0.24);
    border-radius: 4px;
    background: linear-gradient(180deg, #ffffff 0%, #edf5ff 100%);
    color: #215b9c;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.recommend-import-btn:hover {
    background: linear-gradient(180deg, #f7fbff 0%, #e4f0ff 100%);
}

.recommend-import-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.recommend-import-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.recommend-cell-center {
    text-align: center;
    vertical-align: middle !important;
}

.recommend-cell-strong {
    font-weight: 800;
    color: #1f5fa8;
}

.recommend-pick-main {
    line-height: 1.7;
    color: #20374f;
}

.recommend-pick-sub {
    margin-top: 4px;
    font-size: 11px;
    color: #5a7087;
    line-height: 1.5;
}

.recommend-pick-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    line-height: 1.6;
    color: #20374f;
}

.recommend-pick-sep {
    color: #8aa0b5;
    line-height: 1;
}

.recommend-match-block {
    display: grid;
    gap: 8px;
}

.recommend-match-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: start;
}

.recommend-match-line + .recommend-match-line {
    margin-top: 8px;
    padding-top: 0;
    border-top: 0;
}

.recommend-match-label {
    padding: 2px 4px;
    border: 1px solid #aebfd0;
    background: #eef4fa;
    color: #38506b;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
    display: none;
}

.recommend-match-block > .recommend-match-line:first-child .recommend-pick-main {
    color: #72869a;
}

.recommend-match-block > .recommend-match-line:first-child .recommend-pick-main strong {
    color: #667c90;
    font-weight: 700;
}

.recommend-match-block > .recommend-match-line:first-child .recommend-pick-sub {
    color: #91a1b2;
}

.recommend-note-box {
    padding: 10px 12px;
    border: 1px solid rgba(239, 199, 92, 0.38);
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(255, 249, 224, 0.94) 0%, rgba(255, 244, 199, 0.9) 100%);
    color: #5a4b1f;
    font-size: 12px;
    line-height: 1.7;
}

.recommend-note-box strong {
    color: #694f00;
}

.recommend-section-title {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 800;
    color: #17324d;
}

.recommend-empty-cell {
    text-align: center;
    color: #6a7d92;
    padding: 14px 8px !important;
}

.recommend-tag {
    display: inline-block;
    min-width: 48px;
    padding: 2px 7px;
    border: 1px solid rgba(128, 164, 201, 0.42);
    border-radius: 999px;
    background: rgba(236, 244, 253, 0.9);
    color: #31506f;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
}

.recommend-tag + .recommend-tag {
    margin-left: 6px;
}

@media (max-width: 640px) {
    .recommend-login-card {
        min-height: 220px;
        padding: 20px 16px;
        gap: 14px;
    }

    .recommend-login-lock {
        width: 76px;
        height: 76px;
    }

    .recommend-login-lock svg {
        width: 38px;
        height: 38px;
    }

    .recommend-login-title {
        font-size: 20px;
    }

    .recommend-table-wrap {
        border-radius: 4px;
    }

    .recommend-table {
        min-width: 0;
        table-layout: auto;
    }

    .recommend-table th,
    .recommend-table td {
        padding: 8px 8px;
        font-size: 11px;
    }

    .recommend-table th {
        font-size: 10px;
    }

    .recommend-import-btn {
        width: 32px;
        height: 32px;
    }

    .recommend-pick-main {
        font-size: 11px;
        line-height: 1.55;
        word-break: break-word;
    }

    .recommend-pick-sub {
        font-size: 10px;
        line-height: 1.45;
        word-break: break-word;
    }

    .recommend-pick-inline {
        gap: 3px;
    }

    .recommend-match-line {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .recommend-match-line + .recommend-match-line {
        margin-top: 6px;
        padding-top: 0;
    }

    .recommend-match-label {
        padding: 1px 3px;
        font-size: 10px;
        white-space: normal;
    }


    .recommend-tag {
        min-width: 40px;
        padding: 1px 4px;
        font-size: 10px;
    }
}


