/* Страница матча / прогноза */
.match-page-hero {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.match-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, var(--accent-soft), transparent 70%);
    pointer-events: none;
}
.match-page-hero .league-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-bottom: 16px;
    position: relative;
}
.match-teams-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
}
.match-teams-large .team-block {
    flex: 1;
    text-align: center;
    max-width: 140px;
}
.match-teams-large .team-block .team-name {
    font-weight: 700;
    font-size: 1rem;
    margin-top: 8px;
}
.match-teams-large .score-block {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2px 6px;
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    min-width: 88px;
    text-align: center;
}
.match-teams-large .score-block .score-num,
.match-teams-large .score-block .score-sep {
    display: inline-block;
    line-height: 1;
}
.match-teams-large .vs-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.match-meta-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 14px;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    flex-wrap: wrap;
}
.match-meta-row .live-badge {
    color: var(--red);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}
.match-meta-row .live-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.odds-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 12px;
}
.odds-section h4 {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.odds-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.odds-grid .odds-btn {
    min-width: 72px;
}
.odds-grid.odds-1x2-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    flex-wrap: unset;
}
.odds-grid.odds-1x2-row .odds-btn {
    min-width: 0;
    width: 100%;
}
.odds-bk-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    width: 100%;
}
.odds-bk-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    border-radius: var(--radius-xs);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}
.odds-bk-label {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
}
.odds-bk-value {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
}
.odds-empty {
    text-align: center;
    padding: 24px;
    color: var(--text-tertiary);
    font-size: 0.85rem;
}
.odds-empty a { color: var(--accent); }
.prediction-detail-card {
    background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: 0;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.prediction-detail-card--paywalled {
    border-color: rgba(251, 191, 36, 0.35);
}
.prediction-detail-card__top {
    padding: 18px 18px 14px;
    border-bottom: 1px solid var(--border-light);
}
.prediction-detail-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}
.prediction-detail-card__author-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    text-decoration: none;
}
.prediction-detail-card__author-name:hover {
    color: var(--accent);
}
.prediction-detail-card__author-title {
    display: block;
    font-size: 0.72rem;
    color: var(--text-tertiary);
    margin-top: 2px;
}
.prediction-detail-card__badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.prediction-detail-card .pick-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 18px 18px;
}
.pick-market-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}
.pick-outcome {
    font-size: 1.1rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.prediction-detail-card .pick-odds {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
}
.prediction-detail-card .confidence-pill {
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}
.match-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.match-stat-item {
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
}
.match-stat-item .val {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.1rem;
}
.match-stat-item .lbl {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    margin-top: 4px;
    text-transform: uppercase;
}
.comments-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
}
.comment-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}
.comment-item:last-child { border-bottom: none; }
.comment-form textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
    resize: vertical;
    margin-bottom: 10px;
}
.comment-form button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
}

/* Форма прогноза на странице матча */
.match-prediction-box {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 20px;
}
.match-prediction-box.muted {
    border-color: var(--border);
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.85rem;
}
.match-prediction-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}
.match-prediction-head h3 { margin: 0; font-size: 1rem; }
.match-prediction-hint { font-size: 0.72rem; color: var(--text-tertiary); }
.odds-section-pick { margin-bottom: 12px; }
.odds-section-pick h4 { margin-bottom: 8px; }
.match-prediction-meta {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}
.picked-summary {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
    min-height: 1.2em;
}
.confidence-field label { font-size: 0.75rem; color: var(--text-tertiary); }
.confidence-slider { width: 100%; accent-color: var(--accent); margin: 8px 0 12px; }
.analysis-field {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
    margin-bottom: 12px;
    resize: vertical;
}
.match-pred-form-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}
.match-pred-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    padding: 8px 16px;
    border: 1px solid var(--accent);
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    background: var(--accent);
    cursor: pointer;
    transition: opacity var(--transition-fast), border-color var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
}
.match-pred-submit:hover {
    opacity: 0.92;
}
.match-pred-submit:active {
    opacity: 0.85;
}
.match-pred-submit svg {
    flex-shrink: 0;
    opacity: 0.95;
}
@media (min-width: 480px) {
    .match-pred-submit {
        width: auto;
        min-width: 200px;
    }
}
.match-pred-login-link { color: var(--accent); text-decoration: none; }
.match-pred-login-link:hover { text-decoration: underline; }

/* Платный прогноз — форма */
.paid-pred-card {
    margin: 14px 0 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.06), rgba(230, 57, 70, 0.04));
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.paid-pred-card.is-active {
    border-color: rgba(251, 191, 36, 0.45);
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.12);
}
.paid-pred-card__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
}
.paid-pred-card__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(251, 191, 36, 0.15);
    color: var(--amber);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.paid-pred-card__title { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.paid-pred-card__sub {
    margin: 0;
    font-size: 0.72rem;
    color: var(--text-tertiary);
    line-height: 1.45;
    max-width: 420px;
}
.paid-pred-toggle {
    margin-left: auto;
    flex-shrink: 0;
    cursor: pointer;
}
.paid-pred-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.paid-pred-toggle__ui {
    display: block;
    width: 44px;
    height: 26px;
    border-radius: 999px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    position: relative;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.paid-pred-toggle__ui::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text-secondary);
    transition: transform 0.2s ease, background 0.2s ease;
}
.paid-pred-toggle input:checked + .paid-pred-toggle__ui {
    background: var(--amber-soft);
    border-color: var(--amber);
}
.paid-pred-toggle input:checked + .paid-pred-toggle__ui::after {
    transform: translateX(18px);
    background: var(--amber);
}
.paid-pred-card__body {
    padding: 0 16px 16px;
    border-top: 1px solid var(--border-light);
    margin-top: 0;
    padding-top: 14px;
}
.paid-pred-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 14px;
}
@media (max-width: 720px) {
    .paid-pred-grid { grid-template-columns: 1fr; }
}
.paid-pred-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 2px;
}
.paid-pred-hint {
    font-size: 0.68rem;
    color: var(--text-muted);
}
.paid-pred-input {
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
}
.paid-pred-input:focus {
    outline: none;
    border-color: var(--accent);
}
.paid-pred-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.paid-pred-chip {
    padding: 5px 10px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-size: 0.72rem;
    cursor: pointer;
    font-family: inherit;
}
.paid-pred-chip:hover {
    border-color: var(--amber);
    color: var(--amber);
}
.paid-pred-field--wide { position: relative; }
.paid-pred-counter {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 0.65rem;
    color: var(--text-muted);
}
.paid-pred-earn {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--green-soft);
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}
.paid-pred-earn strong {
    font-size: 1.05rem;
    color: var(--green);
    font-family: var(--font-mono);
}
.paid-pred-earn__fee {
    font-size: 0.68rem;
    color: var(--text-muted);
}
.paid-pred-note {
    margin: 10px 0 0;
    font-size: 0.72rem;
    color: var(--text-tertiary);
}
.paid-pred-note a { color: var(--accent); text-decoration: none; }
.paid-pred-note a:hover { text-decoration: underline; }
.paid-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.14);
    color: var(--amber);
    border: 1px solid rgba(251, 191, 36, 0.28);
}
.paid-badge--lg {
    font-size: 0.78rem;
    padding: 6px 14px;
}
.prediction-paywall {
    position: relative;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    text-align: center;
}
.prediction-paywall__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(251, 191, 36, 0.12), transparent 65%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(99, 102, 241, 0.08), transparent 55%);
    pointer-events: none;
}
.prediction-paywall__inner {
    position: relative;
    padding: 22px 20px 24px;
}
.paywall-lock-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.06));
    color: var(--amber);
    border: 1px solid rgba(251, 191, 36, 0.35);
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.12);
}
.paywall-title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}
.paywall-sub {
    margin: 0 0 14px;
    font-size: 0.78rem;
    color: var(--text-tertiary);
}
.paywall-price {
    font-family: var(--font-mono);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 14px;
}
.paywall-teaser {
    margin: 0 auto 18px;
    max-width: 100%;
    padding: 12px 16px;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    border-left: 3px solid var(--amber);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    text-align: left;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    box-sizing: border-box;
}
@media (min-width: 520px) {
    .paywall-teaser {
        max-width: 420px;
    }
}
.paywall-steps {
    list-style: none;
    margin: 0 auto 20px;
    padding: 0;
    max-width: 320px;
    text-align: left;
}
.paywall-steps li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.4;
}
.paywall-step-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.paywall-steps a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}
.paywall-steps a:hover {
    text-decoration: underline;
}
.paywall-actions {
    max-width: 320px;
    margin: 0 auto;
}
.paywall-buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.paywall-buy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.45);
}
.paywall-buy-btn:active {
    transform: translateY(0);
}
.paywall-buy-btn--link {
    background: linear-gradient(135deg, var(--accent), #4f46e5);
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.35);
}
.paywall-balance {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--text-tertiary);
    margin-top: 12px;
}
.paywall-balance strong {
    color: var(--text-primary);
    font-family: var(--font-mono);
}
.paywall-balance--low strong {
    color: var(--red);
}
.paywall-deposit-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--accent-soft);
}
.paywall-deposit-link:hover {
    text-decoration: underline;
}
.status-pill--won { color: var(--green); }
.status-pill--lost { color: var(--red); }
.status-pill--pending { color: var(--amber); }
.pred-flash {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    font-size: 0.85rem;
}
.pred-flash.success { background: var(--green-soft); }
.pred-flash.error { background: var(--red-soft); color: var(--red); }
.status-pill {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
}
.prediction-analysis {
    margin: 14px 18px 0;
    padding: 0 0 4px;
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    box-sizing: border-box;
}
.comment-head { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.comment-time { font-size: 0.7rem; color: var(--text-muted); margin-left: auto; }
.comment-text {
    font-size: 0.85rem;
    margin-left: 36px;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.comments-empty { color: var(--text-tertiary); font-size: 0.85rem; }
.match-comment-form { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.odds-extra-row { flex-wrap: wrap; }
.odds-extra-row .odds-btn { min-width: calc(33% - 6px); flex: 1; }

/* Хлебные крошки */
.match-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--text-tertiary);
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.match-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}
.match-breadcrumb a:hover { color: var(--accent); }
.match-breadcrumb-current {
    color: var(--text-primary);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

/* Баннер результата */
.match-page-hero--finished::before {
    background: radial-gradient(ellipse at 50% 0%, rgba(34, 197, 94, 0.15), transparent 70%);
}
.match-page-hero--live::before {
    background: radial-gradient(ellipse at 50% 0%, rgba(239, 68, 68, 0.12), transparent 70%);
}
.match-result-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--green);
    position: relative;
}
.match-hero-actions {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
}
.match-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.match-share-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Победитель */
.team-block--winner .team-name { color: var(--green); }
.team-block--winner .team-logo,
.team-block--winner .team-logo-fallback {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
    border-radius: 8px;
}
.team-winner-badge {
    display: inline-flex;
    color: var(--amber);
    margin-top: 4px;
}
.score-block--final {
    display: inline-flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2px 6px;
}
.score-block--final .score-num {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}
.score-num--winner { color: var(--green); }
.score-sep { font-size: 1.5rem; color: var(--text-muted); line-height: 1; }
.score-ht {
    flex-basis: 100%;
    width: 100%;
    text-align: center;
    font-size: 0.65rem;
    color: var(--text-tertiary);
    font-weight: 500;
    margin-top: 2px;
}
.match-pred-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Распределение прогнозов */
.match-pred-distribution {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 16px;
}
.match-pred-distribution h4 {
    font-size: 0.78rem;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}
.pred-dist-bars { display: flex; flex-direction: column; gap: 8px; }
.pred-dist-row {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
}
.pred-dist-row--winner .pred-dist-label { color: var(--green); font-weight: 700; }
.pred-dist-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}
.pred-dist-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-soft));
    border-radius: 3px;
    transition: width 0.4s ease;
}
.pred-dist-row--winner .pred-dist-bar span { background: var(--green); }
.pred-dist-pct {
    font-family: var(--font-mono);
    font-weight: 700;
    min-width: 32px;
    text-align: right;
    color: var(--text-tertiary);
}

.match-insight-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 16px;
}
.match-insight-badge,
.match-insight-meta {
    font-size: 0.72rem;
    color: var(--text-tertiary);
}
.glicko-prob-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}
.glicko-prob-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
}
.glicko-prob-card.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-glow) inset;
}
.glicko-prob-card strong {
    display: block;
    font-size: 1.3rem;
    font-family: var(--font-mono);
}
.glicko-prob-card small,
.glicko-prob-label {
    color: var(--text-tertiary);
}
.glicko-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.glicko-summary div,
.mini-standings-card,
.h2h-summary-card,
.team-form-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
}
.glicko-summary span,
.mini-standings-metrics,
.h2h-summary-card span {
    display: block;
    font-size: 0.72rem;
    color: var(--text-tertiary);
}
.glicko-summary strong {
    display: block;
    margin-top: 4px;
}
.value-bet-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.value-bet-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
}
.value-bet-card.active {
    border-color: var(--green);
    box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.2) inset;
}
.value-bet-card span {
    display: block;
    color: var(--text-tertiary);
    font-size: 0.72rem;
}
.value-bet-card strong {
    display: block;
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: 1.1rem;
}
.mini-standings-compare,
.h2h-summary,
.team-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.mini-standings-team {
    font-weight: 700;
    margin-bottom: 8px;
}
.mini-standings-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.h2h-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 12px;
}
.h2h-summary-card {
    text-align: center;
}
.h2h-summary-card strong {
    display: block;
    font-size: 1.25rem;
    font-family: var(--font-mono);
}
.h2h-list,
.team-form-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.h2h-row,
.team-form-row {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 12px;
}
.h2h-row:hover,
.team-form-row:hover {
    border-color: var(--border-active);
}
.h2h-row__meta,
.team-form-row {
    font-size: 0.74rem;
    color: var(--text-tertiary);
}
.h2h-row__meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}
.h2h-row__teams {
    font-weight: 600;
    color: var(--text-primary);
}
.h2h-row__score {
    margin-top: 4px;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent);
}
.team-form-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}
.team-form-head a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.72rem;
}
.form-badges {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}
.form-badge {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
}
.form-badge--w { background: var(--green); }
.form-badge--d { background: var(--amber); color: #111; }
.form-badge--l { background: var(--red); }
.team-form-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
}
.team-form-row span:nth-child(2) {
    color: var(--text-primary);
}
.team-form-row strong {
    color: var(--accent);
    font-family: var(--font-mono);
}

@media (max-width: 767px) {
    .glicko-prob-grid,
    .value-bet-grid,
    .glicko-summary,
    .mini-standings-compare,
    .h2h-summary,
    .team-form-grid,
    .team-form-row {
        grid-template-columns: 1fr;
    }
}

/* Прогнозы сообщества на матче */
.match-community-preds {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}
.community-pred-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: border-color var(--transition-fast);
}
.community-pred-mini:hover { border-color: var(--accent); }
.community-pred-mini-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.community-pred-author { font-size: 0.78rem; font-weight: 600; }
.community-pred-pick { font-size: 0.72rem; color: var(--accent); }
.community-pred-status {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}
.community-pred-status.won { background: var(--green-soft); color: var(--green); }
.community-pred-status.lost { background: var(--red-soft); color: var(--red); }
.community-pred-status.pending { background: var(--amber-soft); color: var(--amber); }

/* Связанные матчи */
.related-matches-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}
.related-match-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast);
}
.related-match-card:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}
.related-match-date { font-size: 0.68rem; color: var(--text-tertiary); }
.related-match-teams { font-size: 0.78rem; font-weight: 600; line-height: 1.3; }

/* Подсветка выигравшего исхода в линии */
.odds-winner,
.odds-btn.odds-winner,
.odds-bk-cell.odds-winner {
    border-color: var(--green) !important;
    background: var(--green-soft) !important;
}
.odds-winner .odds-label,
.odds-winner .odds-bk-label { color: var(--green); font-weight: 700; }
.odds-winner .odds-val,
.odds-winner .odds-bk-value { color: var(--green); }

@media (max-width: 500px) {
    .match-hero-actions { position: static; margin-bottom: 10px; text-align: right; }
    .match-teams-large { gap: 10px; }
    .match-teams-large .score-block .score-num { font-size: 1.5rem; }
}

/* Навигация по разделам матча */
.match-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: sticky;
    top: 8px;
    z-index: 5;
    backdrop-filter: blur(8px);
}
.match-section-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.match-section-nav__link:hover {
    color: var(--accent);
    background: var(--accent-soft);
    border-color: rgba(99, 102, 241, 0.2);
}
#match-section-pred-view,
#match-section-pred,
#match-section-odds,
#match-section-community,
#match-section-comments {
    scroll-margin-top: 72px;
}

.prediction-detail-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding: 12px 18px 16px;
    border-top: 1px solid var(--border-light);
    font-size: 0.75rem;
}
.prediction-detail-card__stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--amber);
    font-weight: 600;
}
.prediction-detail-card__stat-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}
.prediction-detail-card__stat-link:hover {
    text-decoration: underline;
}

.comments-block--enhanced {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Модалка после публикации */
body.pred-modal-open {
    overflow: hidden;
}
.pred-published-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.pred-published-modal.is-open {
    opacity: 1;
    visibility: visible;
}
.pred-published-modal__backdrop {
    position: absolute;
    inset: 0;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
}
.pred-published-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 360px;
    padding: 24px 22px 20px;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transform: scale(0.94) translateY(8px);
    transition: transform 0.25s ease;
}
.pred-published-modal.is-open .pred-published-modal__dialog {
    transform: scale(1) translateY(0);
}
.pred-published-modal__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-soft);
    color: var(--green);
}
.pred-published-modal__icon--paid {
    background: rgba(251, 191, 36, 0.15);
    color: var(--amber);
}
.pred-published-modal__dialog h2 {
    margin: 0 0 8px;
    font-size: 1.15rem;
}
.pred-published-modal__text {
    margin: 0 0 12px;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-secondary);
}
.pred-published-modal__price {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--amber);
    margin-bottom: 16px;
}
.pred-published-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pred-published-modal__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
}
.pred-published-modal__btn.primary {
    background: var(--accent);
    color: #fff;
}
.pred-published-modal__btn.ghost {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

/* Страница матча / прогноза — длинный текст на мобильных */
.match-page .main-content {
    overflow-x: hidden;
    max-width: 100%;
}
.prediction-paywall,
.prediction-paywall__inner,
.match-prediction-box,
.comments-block,
.match-page-hero {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.prediction-paywall__inner {
    overflow-x: hidden;
}
.paywall-steps li,
.paid-pred-note,
.paid-pred-input,
.analysis-field,
.match-teams-large .team-name {
    overflow-wrap: anywhere;
    word-break: break-word;
}
