.prediction-page {
    min-height: calc(100vh - 116px);
    border-radius: 8px;
    background: #f5f7fb;
    padding: 18px;
    color: #172033;
}

.prediction-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 16px;
    align-items: stretch;
    margin-bottom: 16px;
}

.prediction-header h1 {
    margin: 4px 0 8px;
    color: #172033;
    font-size: 28px;
    font-weight: 700;
}

.prediction-header p {
    margin: 0;
    max-width: 780px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.8;
}

.prediction-controls,
.forecast-panel {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
}

.prediction-controls {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.prediction-page label {
    display: block;
    margin: 0;
}

.prediction-page label span {
    display: block;
    margin-bottom: 7px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.prediction-page .form-control {
    height: 42px;
    border-color: #d6dee9;
    border-radius: 8px;
    box-shadow: none;
}

.prediction-status {
    margin-bottom: 16px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #64748b;
    font-size: 13px;
}

.prediction-status.success {
    border-color: #bbf7d0;
    background: #ecfdf5;
    color: #15803d;
}

.prediction-status.warn {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}

.info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: 12px;
    margin-bottom: 12px;
}

.factor-controls {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.factor-summary,
.leisu-status {
    margin-bottom: 10px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1e3a8a;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.6;
}

.factor-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.leisu-status {
    border-color: #e2e8f0;
    background: #fff;
    color: #64748b;
}

.leisu-status.success {
    border-color: #bbf7d0;
    background: #ecfdf5;
    color: #15803d;
}

.leisu-status.warn {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}

.leisu-notes {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.leisu-note {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    padding: 9px 11px;
    font-size: 13px;
    line-height: 1.55;
}

.leisu-note.warn {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}

.factor-stat {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
    padding: 10px 12px;
    color: #475569;
    font-size: 13px;
}

.factor-stat strong {
    color: #172033;
    text-align: right;
}

.factor-stat.active {
    border-color: #fde68a;
    background: #fffbeb;
}

.forecast-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .8fr);
    gap: 12px;
    margin-bottom: 12px;
}

.market-grid,
.detail-grid {
    display: grid;
    gap: 12px;
}

.market-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 12px;
}

.detail-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.forecast-panel {
    padding: 16px;
}

.primary-panel {
    grid-row: span 3;
    display: grid;
    align-content: space-between;
    min-height: 430px;
}

.panel-headline span,
.forecast-note {
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.panel-headline strong {
    display: block;
    margin-top: 6px;
    color: #172033;
    font-size: 22px;
}

.panel-title {
    margin-bottom: 12px;
    color: #172033;
    font-size: 16px;
    font-weight: 800;
}

.score-forecast {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin: 28px 0;
}

.score-forecast div {
    border: 1px solid #d8e1ea;
    border-radius: 8px;
    background: #f8fafc;
    padding: 22px 12px;
    text-align: center;
}

.score-forecast span {
    display: block;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
}

.score-forecast strong {
    display: block;
    margin-top: 8px;
    color: #0f766e;
    font-size: 64px;
    line-height: 1;
}

.score-forecast em {
    color: #94a3b8;
    font-size: 38px;
    font-style: normal;
    font-weight: 800;
    text-align: center;
}

.prob-bars {
    display: grid;
    gap: 10px;
}

.prob-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 58px;
    gap: 10px;
    align-items: center;
    color: #475569;
    font-size: 13px;
}

.prob-track {
    height: 10px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.prob-fill {
    height: 100%;
    border-radius: inherit;
    background: #0f766e;
}

.prob-row.draw .prob-fill {
    background: #b7791f;
}

.prob-row.away .prob-fill {
    background: #2563eb;
}

.odds-row,
.metric-list,
.score-list,
.risk-list,
.aux-list {
    display: grid;
    gap: 10px;
}

.odds-pill,
.metric-item,
.score-item,
.risk-item,
.aux-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
    padding: 10px 12px;
    color: #475569;
    font-size: 13px;
}

.odds-pill strong,
.metric-item strong,
.score-item strong,
.risk-item strong,
.aux-item strong {
    color: #172033;
    font-size: 14px;
    text-align: right;
}

.aux-item.primary {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.aux-item.accent {
    border-color: #fde68a;
    background: #fffbeb;
}

.score-item.highlight {
    border-color: #99f6e4;
    background: #f0fdfa;
}

.risk-item.warn {
    border-color: #fed7aa;
    background: #fff7ed;
}

.risk-item.good {
    border-color: #bbf7d0;
    background: #ecfdf5;
}

@media (max-width: 1180px) {
    .prediction-header,
    .info-grid,
    .forecast-grid,
    .market-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .factor-controls,
    .factor-stats {
        grid-template-columns: 1fr 1fr;
    }

    .primary-panel {
        min-height: auto;
    }
}

@media (max-width: 760px) {
    .prediction-page {
        padding: 12px;
    }

    .prediction-header h1 {
        font-size: 23px;
    }

    .factor-controls,
    .factor-stats {
        grid-template-columns: 1fr;
    }

    .score-forecast {
        grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
        gap: 6px;
    }

    .score-forecast div {
        padding: 16px 8px;
    }

    .score-forecast strong {
        font-size: 46px;
    }

    .score-forecast em {
        font-size: 28px;
    }
}
