:root {
    --fp-green: #16a34a;
    --fp-red: #dc2626;
    --fp-border: #e5e7eb;
    --fp-text: #1f2937;
    --fp-muted: #6b7280;
    --fp-radius: 10px;
}

/* ═══════════════════════════════════════════
   MATCH HEADER
   ═══════════════════════════════════════════ */
.fp-match-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1d4ed8 100%);
    color: #fff;
    border-radius: var(--fp-radius);
    padding: 30px 20px;
    margin-bottom: 28px;
    text-align: center;
}
.fp-league-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 14px;
    opacity: .8;
}
.fp-league-logo { width: 22px; height: 22px; object-fit: contain; }
.fp-teams-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}
.fp-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 110px;
}
.fp-team-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.3));
}
.fp-team-name { font-size: 17px; font-weight: 700; }
.fp-vs { font-size: 24px; font-weight: 800; opacity: .4; }
.fp-match-meta { margin-top: 16px; font-size: 13px; opacity: .6; }

/* Блок коэффициентов под баннером: без <h2>, чтобы TOC Reboot встал после таблицы */
.fp-bm-odds-section {
    margin: 0 0 28px;
    padding: 20px 18px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-radius);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.fp-bm-odds-title {
    margin: 0 0 14px;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--fp-text);
}
.fp-bm-odds-section .fp-table-wrap {
    margin-top: 0;
    margin-bottom: 0;
    border: none;
}
.fp-bm-odds-section .fp-bm-odds-block {
    border: 1px solid var(--fp-border);
    border-radius: calc(var(--fp-radius) - 2px);
}

/* ═══════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════ */
.fp-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 16px 0 24px;
    border-radius: var(--fp-radius);
    border: 1px solid var(--fp-border);
}

.fp-comp-table,
.fp-stats-table,
.fp-h2h-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

/* Head */
.fp-comp-table thead,
.fp-stats-table thead,
.fp-h2h-table thead {
    background: #1e293b;
}
.fp-comp-table th,
.fp-stats-table th,
.fp-h2h-table th {
    padding: 13px 16px;
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    text-align: center;
    border-bottom: none;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Cells */
.fp-comp-table td,
.fp-stats-table td {
    padding: 11px 16px;
    text-align: center;
    border-bottom: 1px solid #f3f4f6;
    font-size: 15px;
    font-weight: 600;
    color: var(--fp-text);
}
.fp-h2h-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #f3f4f6;
    color: var(--fp-text);
}

/* Zebra */
.fp-comp-table tbody tr:nth-child(even),
.fp-stats-table tbody tr:nth-child(even),
.fp-h2h-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

/* Label column */
.fp-comp-label,
.fp-stat-label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--fp-muted) !important;
    white-space: nowrap;
}

/* Better highlight */
.fp-better {
    color: var(--fp-green) !important;
    font-weight: 700 !important;
}

/* Total row */
.fp-comp-total td {
    border-top: 2px solid #6366f1;
    font-size: 16px !important;
    font-weight: 800 !important;
    background: #f5f3ff;
}

/* H2H score colors */
.fp-h2h-score { text-align: center; font-weight: 700; }
.fp-h2h-home-win { color: var(--fp-green); }
.fp-h2h-away-win { color: var(--fp-red); }

/* ═══════════════════════════════════════════
   FORM GUIDE
   ═══════════════════════════════════════════ */
.fp-form-guide {
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-radius);
    padding: 14px 18px;
    margin: 16px 0;
}
.fp-form-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}
.fp-form-row + .fp-form-row { border-top: 1px solid #f3f4f6; }
.fp-form-logo { width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; }
.fp-form-name { font-weight: 600; font-size: 14px; min-width: 140px; color: var(--fp-text); }
.fp-form-badges { display: flex; gap: 5px; }
.fp-form-badge {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}
.fp-form-badge.fp-w { background: var(--fp-green); }
.fp-form-badge.fp-d { background: #9ca3af; }
.fp-form-badge.fp-l { background: var(--fp-red); }

/* ═══════════════════════════════════════════
   EARLY PREVIEW (mode A, no odds yet)
   ═══════════════════════════════════════════ */
.fp-early-preview-notice {
    margin: 16px 0 20px;
    padding: 14px 18px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #1e3a5f;
    font-size: 15px;
    line-height: 1.45;
}

/* ═══════════════════════════════════════════
   TL;DR — snapshot summary (after odds on single)
   ═══════════════════════════════════════════ */
.fp-tldr {
    margin: 20px 0 24px;
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--fp-surface, #f8fafc);
    border: 1px solid var(--fp-border, #e2e8f0);
}
.fp-tldr__title {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--fp-text, #172033);
}
.fp-tldr__list {
    margin: 0;
    padding: 0 0 0 18px;
    list-style: disc;
}
.fp-tldr__list li {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--fp-text-muted, #475569);
}
.fp-tldr__list li:last-child {
    margin-bottom: 0;
}
.entry-content .fp-tldr h2 {
    margin-top: 0;
}

/* ═══════════════════════════════════════════
   Line movement — median odds deltas (on-view)
   ═══════════════════════════════════════════ */
.fp-line-movement {
    margin: 0 0 24px;
    padding: 16px 18px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--fp-border, #e2e8f0);
    border-left: 4px solid var(--fp-accent, #2563eb);
}
.fp-line-movement__title {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--fp-text, #172033);
}
.fp-line-movement__list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.fp-line-movement__item {
    display: block;
    margin: 0 0 12px;
}
.fp-line-movement__item:last-child {
    margin-bottom: 0;
}
.fp-line-movement__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    color: var(--fp-text-muted, #475569);
}
.fp-line-movement__chart-wrap {
    margin-top: 12px;
    max-width: 320px;
}
.fp-line-movement__chart {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}
@media (max-width: 560px) {
    .fp-line-movement__chart-wrap {
        max-width: none;
    }
}
.fp-line-movement__note {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--fp-text-muted, #64748b);
}
.entry-content .fp-line-movement h2 {
    margin-top: 0;
}

.fp-bets--early-placeholder .fp-bet-card {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    border: 1px dashed rgba(99, 102, 241, 0.35);
}
.fp-bets--early-placeholder .fp-bet-pick {
    font-size: 16px;
    color: #475569;
}

/* ═══════════════════════════════════════════
   BETTING CARDS — main prediction + safe bet
   ═══════════════════════════════════════════ */
.fp-bets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin: 28px 0;
}
.fp-bet-card {
    border-radius: 14px;
    padding: 22px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: none;
}
.fp-bet-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .12;
    border-radius: 14px;
    z-index: 0;
}
.fp-bet-card > * { position: relative; z-index: 1; }

/* Primary bet — vivid gradient */
.fp-bet-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #a855f7 100%);
    color: #fff;
    box-shadow: 0 8px 30px rgba(79,70,229,.35);
}
.fp-bet-primary .fp-bet-type {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: .85;
    margin-bottom: 8px;
    font-weight: 700;
    color: #fff;
}
.fp-bet-primary .fp-bet-pick {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
}
.fp-bet-primary .fp-bet-conf {
    display: inline-block;
    margin-top: 10px;
    background: rgba(255,255,255,.2);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

/* Safe bet — green gradient */
.fp-bet-safe {
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
    color: #fff;
    box-shadow: 0 8px 30px rgba(5,150,105,.3);
}
.fp-bet-safe .fp-bet-type {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: .85;
    margin-bottom: 8px;
    font-weight: 700;
    color: #fff;
}
.fp-bet-safe .fp-bet-pick {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
}
.fp-bet-safe .fp-bet-conf {
    display: inline-block;
    margin-top: 10px;
    background: rgba(255,255,255,.2);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

/* Value / additional pick */
.fp-bet-value {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 50%, #2dd4bf 100%);
    color: #fff;
    box-shadow: 0 8px 30px rgba(15,118,110,.28);
}
.fp-bet-value .fp-bet-type,
.fp-bet-value .fp-bet-pick,
.fp-bet-value .fp-bet-conf {
    color: #fff;
}
.fp-bet-value .fp-bet-type {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: .85;
    margin-bottom: 8px;
    font-weight: 700;
}
.fp-bet-value .fp-bet-pick {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
}
.fp-bet-odd {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.92em;
    font-weight: 700;
    opacity: .95;
    white-space: nowrap;
}
.fp-bets--picks {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Secondary odds blocks (totals, BTTS, DC, AH) */
.fp-odds-secondary-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 0 28px;
}
.fp-bm-odds-section--totals .fp-bm-odds-table th,
.fp-bm-odds-section--handicap .fp-bm-odds-table th {
    font-size: 11px;
    padding: 10px 8px;
}

/* ═══════════════════════════════════════════
   DISCLAIMER
   ═══════════════════════════════════════════ */
.fp-disclaimer {
    background: #fefce8;
    border: 1px solid #fde68a;
    border-radius: var(--fp-radius);
    padding: 14px 18px;
    margin-top: 24px;
}
.fp-disclaimer p { margin: 0; font-size: 12px; color: #854d0e; line-height: 1.6; }

/* ═══════════════════════════════════════════
   BOOKMAKER ODDS (single post)
   ═══════════════════════════════════════════ */
.fp-bm-odds-block { margin-top: 1.25rem; }
.fp-bm-odds-block .fp-bm-odds-table {
    display: table !important;
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.fp-bm-odds-block .fp-bm-odds-table thead {
    display: table-header-group !important;
    background: #1e293b;
    color: #fff;
}
.fp-bm-odds-block .fp-bm-odds-table tbody {
    display: table-row-group !important;
}
.fp-bm-odds-block .fp-bm-odds-table tr {
    display: table-row !important;
}
.fp-bm-odds-block .fp-bm-odds-table th,
.fp-bm-odds-block .fp-bm-odds-table td {
    display: table-cell !important;
    vertical-align: middle;
    padding: 10px 12px;
    text-align: center;
    border-bottom: 1px solid var(--fp-border);
}
.fp-bm-odds-block .fp-bm-odds-table th:first-child,
.fp-bm-odds-block .fp-bm-odds-table td.fp-bm-name {
    text-align: left;
}
.fp-bm-odds-block .fp-bm-odds-table td.fp-bm-name {
    font-weight: 600;
    color: var(--fp-text);
}
.fp-bm-odds-block .fp-bm-odds-table col.fp-bm-col-name { width: 24%; }
.fp-bm-odds-block .fp-bm-odds-table col.fp-bm-col-odd { width: 9%; }
.fp-bm-odds-block .fp-bm-odds-table col.fp-bm-col-action { width: 96px; }
.fp-bm-odds-block .fp-bm-odds-table .fp-bm-action,
.fp-bm-odds-block .fp-bm-odds-table .fp-bm-col-action-h {
    white-space: nowrap;
    width: 96px;
}
.fp-bm-odds-table--totals {
    min-width: 420px;
}
.fp-bm-odds-table--handicap {
    min-width: 520px;
}

/* FAQ block */
.fp-faq,
.fp-faq__list,
.fp-faq__item {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.fp-faq {
    margin: 2rem 0 1.5rem;
    column-count: 1 !important;
    columns: auto !important;
}
.fp-faq__title {
    margin: 0 0 1rem;
    font-size: 1.35rem;
    line-height: 1.3;
}
.fp-faq__list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.fp-faq__item {
    break-inside: avoid;
    page-break-inside: avoid;
}
.fp-faq__q {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
    line-height: 1.35;
}
.fp-faq__a {
    margin: 0;
    line-height: 1.6;
}
.entry-content .fp-faq h2,
.entry-content .fp-faq h3,
.entry-content .fp-faq p {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
}
.fp-bm-cta {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    background: var(--fp-green);
    color: #fff !important;
}
.fp-bm-cta:hover { filter: brightness(1.08); }
.fp-bm-cta--ph {
    background: #e5e7eb;
    color: var(--fp-muted) !important;
    font-weight: 600;
    cursor: default;
    font-size: 12px;
}

/* Single прогноза: на мобиле — карточки как fp-pc-row, на десктопе — таблица */
.fp-bm-odds-mobile {
    display: none;
}

@media (max-width: 720px) {
    .fp-bm-odds-desktop {
        display: none !important;
    }

    .fp-bm-odds-mobile {
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
        width: 100%;
        max-width: 100%;
    }

    .fp-bm-odds-section {
        padding: 16px 14px;
    }

    .fp-bm-mobile-card {
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0.85rem 1rem;
        border: 1px solid var(--fp-border);
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    }

    .fp-bm-mobile-card__bm {
        font-weight: 700;
        font-size: 1rem;
        line-height: 1.3;
        color: var(--fp-text);
    }

    .fp-bm-mobile-card__market {
        margin-top: 0.15rem;
        font-size: 0.8rem;
        line-height: 1.35;
        color: var(--fp-muted);
    }

    .fp-bm-mobile-card__odds {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem 0.65rem;
    }

    .fp-bm-mobile-card__odds--inline {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .fp-bm-mobile-odd {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.15rem;
        min-height: 3.25rem;
        padding: 0.45rem 0.35rem;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        background: #f8fafc;
        text-align: center;
    }

    .fp-bm-mobile-odd__label {
        font-size: 0.72rem;
        font-weight: 700;
        color: var(--fp-muted);
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }

    .fp-bm-mobile-odd__value {
        font-size: 1.12rem;
        font-weight: 800;
        line-height: 1.2;
        color: var(--fp-text);
        font-variant-numeric: tabular-nums;
    }

    .fp-bm-mobile-card__action {
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
        padding-top: 0.1rem;
    }

    .fp-bm-mobile-card__action .fp-pc-cta {
        width: 100%;
        justify-content: center;
        padding: 0.65rem 1rem;
        font-size: 0.95rem;
        border-radius: 8px;
        box-sizing: border-box;
    }

    .fp-bm-mobile-cta--ph {
        opacity: 0.55;
        cursor: default;
    }

    .fp-table-wrap--comp,
    .fp-table-wrap--stats {
        overflow-x: visible;
    }

    .fp-comp-table,
    .fp-stats-table {
        min-width: 0 !important;
        table-layout: fixed;
        width: 100%;
    }

    .fp-comp-table th,
    .fp-stats-table th {
        white-space: normal;
        font-size: 11px;
        line-height: 1.25;
        padding: 8px 6px;
        letter-spacing: 0;
        word-break: break-word;
    }

    .fp-comp-table td,
    .fp-stats-table td {
        padding: 8px 6px;
        font-size: 13px;
    }

    .fp-comp-label,
    .fp-stat-label {
        white-space: normal;
        font-size: 12px !important;
        line-height: 1.25;
    }
}

/* ═══════════════════════════════════════════
   INJURIES
   ═══════════════════════════════════════════ */
.fp-injuries-wrap {
    display: grid;
    gap: 16px;
    margin: 0 0 24px;
    padding: 18px 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--fp-radius);
}
@media (min-width: 720px) {
    .fp-injuries-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.fp-injuries-team-title {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--fp-text);
}
.fp-injuries-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.fp-injuries-item {
    padding: 8px 0;
    border-top: 1px solid #fef3c7;
    font-size: 14px;
    line-height: 1.45;
}
.fp-injuries-item:first-child { border-top: 0; padding-top: 0; }
.fp-injuries-player { font-weight: 600; color: var(--fp-text); }
.fp-injuries-meta { color: var(--fp-muted); }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 640px) {
    .fp-match-header { padding: 22px 14px; }
    .fp-teams-row { gap: 14px; }
    .fp-team-logo { width: 48px; height: 48px; }
    .fp-team-name { font-size: 14px; }
    .fp-vs { font-size: 18px; }
    .fp-form-name { min-width: 100px; font-size: 13px; }
    .fp-form-badge { width: 24px; height: 24px; font-size: 11px; }
    .fp-bets { grid-template-columns: 1fr; }
    .fp-bet-card { padding: 18px 16px; }
    .fp-bet-primary .fp-bet-pick,
    .fp-bet-safe .fp-bet-pick { font-size: 17px; }
    .fp-comp-table td, .fp-comp-table th,
    .fp-stats-table td, .fp-stats-table th,
    .fp-h2h-table td, .fp-h2h-table th { padding: 8px 10px; font-size: 13px; }
}
