/* ---------- Страница прогноза (макет 15) — только то, чего нет в app.css ---------- */

.gm__link { text-align: center; padding: 14px 0 0; }

/* Глубокий анализ команд: две колонки на десктопе, одна на мобильном */
.deep { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.deep .panel { margin-top: 0; }

/* Одиночная шкала (форма, средняя результативность) */
.gauge { margin-bottom: 18px; }
.gauge__head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.gauge__head b { font-weight: 700; }
.gauge__bar { height: 8px; background: var(--c-line); border-radius: 999px; overflow: hidden; }
.gauge__bar i { display: block; height: 100%; background: var(--c-accent); border-radius: 999px; }
/* Светофор шкал (Figma): <40 красный, 40–65 оранжевый, >65 зелёный */
.gauge__bar i.is-low { background: #e5484d; }
.gauge__bar i.is-mid { background: #f5a524; }

/* Сильные / слабые стороны / факторы риска — значок-кружок перед пунктом */
.plist, .mlist, .risklist { list-style: none; margin: 0 0 20px; padding: 0; font-size: 14px; color: var(--c-muted); }
.plist li, .mlist li, .risklist li { position: relative; padding-left: 28px; margin-bottom: 10px; line-height: 1.5; }
.plist li:last-child, .mlist li:last-child, .risklist li:last-child { margin-bottom: 0; }
.plist li::before, .mlist li::before, .risklist li::before {
    content: ''; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; line-height: 1;
}
.plist li::before { content: '✓'; background: rgba(12, 193, 148, .14); color: var(--c-accent-dark); }
.mlist li::before { content: '–'; background: rgba(232, 84, 77, .12); color: #e8544d; }
.risklist li::before { content: '!'; background: rgba(245, 165, 36, .16); color: #f5a524; }

/* Ключевая информация о матче — 3×2 на десктопе (аудит Figma №22) */
.info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 24px; }
.info__row { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--c-line); font-size: 14px; }
.info__row:nth-last-child(-n+3) { border-bottom: 0; }
.info__row dt { color: var(--c-faint); }
.info__row dd { font-weight: 600; margin: 0; }

/* Альтернативные линии прогноза */
.altpicks { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 14px; }
.altcard { background: var(--c-card); border-radius: var(--r-md); padding: 14px 16px; }
.altcard__pick { display: block; font-size: 16px; font-weight: 700; color: var(--c-accent-dark); margin-bottom: 4px; }
.altcard__label { display: block; font-size: 13px; color: var(--c-muted); }

.bet__coef { font-size: 13px; color: var(--c-muted); margin-left: auto; }

/* FAQ */
.faq__item { border-bottom: 1px solid var(--c-line); padding: 14px 0; }
.faq__item:last-child { border-bottom: 0; }
.faq__item summary { cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before { content: '+'; display: inline-block; width: 18px; color: var(--c-accent); font-weight: 700; }
.faq__item[open] summary::before { content: '–'; }
.faq__item p { margin-top: 10px; padding-left: 18px; font-size: 14px; color: var(--c-muted); line-height: 1.55; }

/* Оценочный прогноз (легаси prognoz_view: шапка-вердикт + строки обоснования + таблицы «последние 10») */
.pv__tabs { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; margin-bottom: 20px; }
.pv__tab { flex: none; white-space: nowrap; cursor: pointer; border: 0; }

.pv__head { display: flex; align-items: center; gap: 12px; background: var(--c-card); border-radius: var(--r-md); padding: 16px; margin-bottom: 16px; }
.pv__side { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; min-width: 0; text-align: center; }
.pv__logo { display: block; }
.pv__logo img { width: 40px; height: 40px; object-fit: contain; }
.pv__name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.pv__tbtm { font-size: 20px; font-weight: 700; }
.pv__sub { font-size: 11px; color: var(--c-muted); }
.pv__pts { flex: none; min-width: 44px; height: 44px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; }
.pv__pts--green { background: var(--c-accent); color: #fff; }
.pv__pts--red { background: #e8544d; color: #fff; }
.pv__pts--grey { background: var(--c-chip); color: var(--c-muted); }
.pv__verdict { flex: 2; text-align: center; font-size: 15px; font-weight: 700; padding: 0 8px; }

.pv__lines { margin-bottom: 24px; }
.pv__line { display: flex; align-items: center; gap: 14px; background: var(--c-card); border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 8px; }
.pv__line:last-child { margin-bottom: 0; }
.pv__linept { flex: none; min-width: 34px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.pv__linept--green { background: rgba(12, 193, 148, .14); color: var(--c-accent-dark); }
.pv__linept--red { background: rgba(232, 84, 77, .12); color: #e8544d; }
.pv__linept--grey { background: var(--c-chip); color: var(--c-muted); }
.pv__linetext { flex: 1; font-size: 13px; color: var(--c-muted); line-height: 1.5; }
.pv__linetext b { color: var(--c-text); }

.pv__tables { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pv__tables .tbl-wrap { margin-bottom: 0; }
.pv__tables > div { min-width: 0; }

/* Разбор матча (БК-текст, легаси-разметка из своей же базы): картинки некрупные, таблицы по ширине контейнера */
.bk-text { font-size: 14px; color: var(--c-muted); line-height: 1.6; max-width: 100%; overflow-x: auto; }
.bk-text h2, .bk-text h3 { color: var(--c-text); margin: 20px 0 10px; }
.bk-text p { margin: 0 0 12px; }
.bk-text img { max-width: 40px; max-height: 40px; width: auto; height: auto; object-fit: contain; vertical-align: middle; }
.bk-text table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13px; }
.bk-text table td, .bk-text table th { padding: 8px; border-bottom: 1px solid var(--c-line); }
.bk-text ul { padding-left: 18px; }
.bk-text .row { flex-wrap: wrap; }

@media (max-width: 900px) {
    .deep { grid-template-columns: 1fr; }
    .pv__tables { grid-template-columns: 1fr; }
    .info { grid-template-columns: repeat(2, 1fr); }
    .info__row:nth-last-child(-n+3) { border-bottom: 1px solid var(--c-line); }
    .info__row:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (max-width: 640px) {
    .pv__head { flex-wrap: wrap; justify-content: center; }
    .pv__verdict { order: 3; flex: 0 0 100%; padding: 8px 0 0; }
    .info { grid-template-columns: 1fr; }
    .info__row:nth-last-child(-n+2) { border-bottom: 1px solid var(--c-line); }
    .info__row:last-child { border-bottom: 0; }
}
