.sports-analysis {
    min-width: 0;
    max-width: 100%;
    padding: 20px;
    color: #173024;
    font-size: 15px;
    line-height: 1.6;
    background: #fff;
    border-radius: 10px;
}
.sports-analysis .analysis-source-citation {
    display: none !important;
}

.sports-analysis *,
.sports-analysis *::before,
.sports-analysis *::after {
    box-sizing: border-box;
}

.sports-analysis :is(h1, h2, h3, p, li, a) {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
}

.sports-analysis h1 {
    margin: 0 0 14px;
    font-size: 24px;
    line-height: 1.4;
}

.sports-analysis h2 {
    margin: 0 0 10px;
    font-size: 21px;
    line-height: 1.45;
}

.sports-analysis h3 {
    margin: 18px 0 8px;
    font-size: 17px;
}

.sports-analysis p {
    margin: 8px 0;
}

.sports-analysis > article {
    min-width: 0;
    margin: 18px 0;
}

.analysis-card {
    width: 100%;
    padding: 24px;
    border: 1px solid #add4b1;
    border-top: 5px solid #189d3c;
    border-radius: 12px;
    background: #f6fbf5;
}

.analysis-card-teams {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.analysis-card-teams > .analysis-card-records {
    min-width: 0;
}

.analysis-card :is(ul, ol) {
    margin: 0;
    padding-left: 22px;
}

.analysis-card ul {
    list-style: disc;
}

.analysis-card ol {
    list-style: decimal;
}

.analysis-card li {
    margin: 6px 0;
}

.analysis-card-prediction {
    padding: 12px;
    border-radius: 6px;
    background: #e0f1dc;
    font-weight: 700;
}

.sports-analysis [data-analysis-result] {
    margin: 24px 0;
    padding: 16px;
    border: 1px solid #d6e2d8;
    border-radius: 8px;
}

@media (max-width: 620px) {
    .sports-analysis {
        padding: 14px;
    }

    .sports-analysis h1 {
        font-size: 21px;
    }

    .sports-analysis h2 {
        font-size: 19px;
    }

    .analysis-card {
        padding: 14px;
    }

    .analysis-card-teams {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }
}

.analysis-card-markets {
    min-width: 0;
    overflow-wrap: anywhere;
}

.analysis-card-box {
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid #d9e5da;
    border-radius: 8px;
    background: #fff;
}

.analysis-card-box h3,
.analysis-card-box p {
    margin: 0;
}

.analysis-card-box h3 {
    margin-bottom: 6px;
    color: #166534;
}

.analysis-card .analysis-market-predictions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.analysis-market-predictions li {
    padding: 10px;
    border-radius: 6px;
    background: #edf7ed;
    font-weight: 700;
    overflow-wrap: anywhere;
}

@media (max-width: 640px) {
    .analysis-card .analysis-market-predictions {
        grid-template-columns: 1fr;
    }
}

/* Public analysis board; article cards keep their detail layout above. */
.analysis-board {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    color: #666;
    font-size: 14px;
}

.analysis-board th,
.analysis-board td {
    padding: 17px 10px;
    border-bottom: 1px solid #e5e5e5;
    text-align: center;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.analysis-board th {
    padding-top: 11px;
    padding-bottom: 11px;
    border-top: 1px solid #e5e5e5;
    background: #fafafa;
    font-weight: 400;
}

.analysis-board .analysis-number { width: 56px; }
.analysis-board .analysis-author { width: 100px; }
.analysis-board .analysis-date { width: 100px; }
.analysis-board .analysis-count { width: 58px; }
.analysis-board .analysis-subject { text-align: left; }

.analysis-subject a {
    display: block;
    color: #222;
    font-size: 16px;
    text-decoration: none;
}

.analysis-board tbody tr:hover { background: #fafcf9; }
.analysis-subject a:hover { color: #168c36; text-decoration: underline; }
.analysis-subject a:focus-visible { outline: 2px solid #168c36; outline-offset: 4px; }
.analysis-mobile-label { display: none; }
.analysis-board .analysis-empty { padding: 32px 10px; }

@media (max-width: 640px) {
    .analysis-board,
    .analysis-board tbody { display: block; }
    .analysis-board thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }
    .analysis-board tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 12px;
        padding: 16px 0;
        border-bottom: 1px solid #e5e5e5;
    }
    .analysis-board tbody { border-top: 1px solid #e5e5e5; }
    .analysis-board td {
        width: auto;
        padding: 0;
        border: 0;
        text-align: left;
        font-size: 12px;
    }
    .analysis-board .analysis-number { display: none; }
    .analysis-board .analysis-subject,
    .analysis-board .analysis-empty { grid-column: 1 / -1; }
    .analysis-board .analysis-author,
    .analysis-board .analysis-date,
    .analysis-board .analysis-count { width: auto; }
    .analysis-subject a { font-size: 15px; }
    .analysis-mobile-label { display: inline; }
}

.sports-analysis article > .analysis-summary { display: none; }

/* Match presentation reads the frozen article; original card markup stays intact. */
.sports-analysis {
    --analysis-green: #16832d;
    --analysis-ink: #173024;
    --analysis-muted: #65756b;
    --analysis-line: #e1e8e1;
    color: var(--analysis-ink);
    font-family: inherit;
}

.analysis-page-heading { margin-bottom: 22px; }
.sports-analysis h1.analysis-page-heading { margin: 0 0 22px; font-weight: 700; letter-spacing: -.5px; }
.analysis-match-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.analysis-match-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--analysis-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 12px #17302406;
}

.analysis-match-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 18px 20px 0;
}
.analysis-match-league { min-width: 0; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.analysis-match-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin-left: auto; }
.analysis-ai-badge,
.analysis-match-outcome {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 20px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
}
.analysis-ai-badge { color: #fff; background: var(--analysis-green); }
.analysis-match-outcome { color: var(--analysis-muted); background: #f2f5f2; }
.analysis-match-outcome[data-outcome="hit"] { color: #126b26; background: #eaf5e7; }
.analysis-match-time { padding: 7px 20px 0; color: var(--analysis-muted); font-size: 12px; }
.analysis-match-time span { margin-left: 4px; font-size: 10px; }
.analysis-match-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 22px 16px 20px;
}
.analysis-match-team { display: grid; justify-items: center; gap: 7px; min-width: 0; text-align: center; }
.analysis-team-logo {
    display: grid;
    place-items: center;
    flex: none;
    width: 64px;
    height: 64px;
    padding: 6px;
    border: 1px solid var(--analysis-line);
    border-radius: 50%;
    background: #fff;
    color: var(--analysis-green);
    font-size: 24px;
    font-weight: 700;
}
.analysis-team-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.analysis-match-team > strong { font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.analysis-match-team > small { color: var(--analysis-muted); font-size: 10px; letter-spacing: 1px; }
.analysis-match-score { display: grid; gap: 3px; text-align: center; font-variant-numeric: tabular-nums; }
.analysis-match-score > strong { font-size: 22px; line-height: 1.3; white-space: nowrap; }
.analysis-match-score > .analysis-match-versus { color: #a4afa6; font-size: 18px; }
.analysis-match-score > small { color: var(--analysis-muted); font-size: 10px; }
.analysis-match-probabilities { margin: 0 20px 18px; font-variant-numeric: tabular-nums; }
.sports-analysis .analysis-probability-heading { margin: 0 0 7px; color: var(--analysis-muted); font-size: 11px; }
.analysis-probability-track { display: block; width: 100%; height: 8px; overflow: hidden; border-radius: 4px; }
.analysis-probability-home { fill: #2d8650; }
.analysis-probability-draw { fill: #9aa5b3; }
.analysis-probability-away { fill: #bd7378; }
.analysis-probability-labels { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; }
.analysis-probability-labels span { color: var(--analysis-muted); font-size: 11px; }
.analysis-probability-labels strong { color: var(--analysis-ink); font-size: 12px; }
.sports-analysis .analysis-match-summary {
    margin: 0 20px 18px;
    padding: 13px 14px;
    border-radius: 8px;
    background: #edf6eb;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.7;
}
.analysis-match-picks { margin: 0 20px 20px; }
.sports-analysis .analysis-match-picks h2 { margin: 0 0 10px; font-size: 14px; font-weight: 700; }
.analysis-match-picks ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.analysis-match-picks li {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid var(--analysis-line);
    border-radius: 8px;
    background: #f6faf4;
    font-size: 13px;
}
.analysis-pick-market { color: var(--analysis-muted); font-size: 12px; }
.analysis-match-picks li > strong { min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.analysis-pick-verdict { color: var(--analysis-muted); font-size: 11px; white-space: nowrap; }
.analysis-match-picks [data-verdict="hit"] :is(strong, .analysis-pick-verdict) { color: #126b26; }
.analysis-match-picks [data-verdict="miss"] > strong { color: #87918a; text-decoration: line-through; }
.analysis-match-picks [data-verdict="miss"] .analysis-pick-verdict { color: #87918a; }
.sports-analysis .analysis-match-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    margin-top: auto;
    padding: 12px 20px;
    border-top: 1px solid var(--analysis-line);
    color: var(--analysis-green);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.analysis-match-link:hover { background: #f6faf4; }
.analysis-match-link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: 14px; }
.analysis-match-card:not(.analysis-match-detail):hover { border-color: #b8d6b7; }
.analysis-match-card:focus-within { outline: 2px solid var(--analysis-green); outline-offset: 2px; }
.analysis-match-link:focus-visible,
.analysis-pagination a:focus-visible,
.analysis-breadcrumb a:focus-visible { outline: 2px solid var(--analysis-green); outline-offset: -3px; }
.analysis-breadcrumb { margin-bottom: 16px; font-size: 13px; }
.analysis-breadcrumb a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.analysis-breadcrumb a,
.analysis-pagination a { color: var(--analysis-green); text-decoration: none; }
.analysis-pagination { display: flex; justify-content: center; margin-top: 24px; }
.analysis-pagination a { padding: 10px 18px; border: 1px solid var(--analysis-line); border-radius: 8px; }
.analysis-match-detail .analysis-match-teams { padding: 28px 20px; }
.analysis-match-detail .analysis-team-logo { width: 76px; height: 76px; }
.analysis-match-detail .analysis-match-team > strong { font-size: 20px; }
.analysis-match-detail .analysis-match-score > strong { font-size: 28px; }
.analysis-match-detail .analysis-match-summary { min-height: 0; }
.analysis-article-with-hero > .analysis-card-markets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 0;
    border: 0;
    background: #fff;
}
.analysis-article-with-hero > .analysis-card-markets > :is(p, h2, .analysis-market-predictions),
.analysis-article-with-hero > .analysis-card-markets > :is(.analysis-probabilities, .analysis-summary-picks) {
    display: none;
}
.analysis-article-with-hero > .analysis-card:not(.analysis-card-markets)
    > :is(h2, h2 + p, h3:last-of-type, .analysis-card-prediction) { display: none; }
.analysis-article-with-hero .analysis-card-box {
    min-width: 0;
    margin: 0;
    padding: 22px;
    border-color: var(--analysis-line);
    border-radius: 12px;
}
.analysis-article-with-hero .analysis-card-box h3 {
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dbeed5;
    color: var(--analysis-green);
    font-size: 17px;
}
.analysis-article-with-hero .analysis-card-box p { margin: 12px 0 0; font-size: 14px; line-height: 1.9; }
.analysis-article-with-hero > .analysis-card-markets:not(.analysis-card-rich) > .analysis-card-box:nth-of-type(3),
.analysis-article-with-hero .analysis-card-conclusion { grid-column: 1 / -1; background: #f6faf4; }
.sports-analysis .analysis-empty { padding: 36px 12px; text-align: center; color: var(--analysis-muted); }

@media (max-width: 767px) {
    .analysis-match-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .analysis-match-heading { padding: 16px 16px 0; }
    .analysis-match-time { padding-left: 16px; }
    .analysis-match-teams { gap: 8px; padding: 20px 12px; }
    .analysis-match-team > strong { font-size: 15px; }
    .analysis-match-summary,
    .analysis-match-probabilities,
    .analysis-match-picks { margin-left: 16px; margin-right: 16px; }
    .sports-analysis .analysis-match-summary { margin-left: 16px; margin-right: 16px; }
    .analysis-match-picks li { gap: 6px; font-size: 12px; }
    .analysis-pick-market { font-size: 11px; }
    .analysis-match-detail .analysis-match-teams { padding: 24px 12px; }
    .analysis-match-detail .analysis-match-team > strong { font-size: 16px; }
    .analysis-match-detail .analysis-match-score > strong { font-size: 24px; }
    .analysis-article-with-hero > .analysis-card-markets { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .analysis-article-with-hero .analysis-card-box { padding: 18px; }
}

.analysis-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 10px; }
.analysis-overview > div {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--analysis-line);
    border-radius: 10px;
    background: #fff;
}
.analysis-overview > div:last-child { border-color: #c6e2c2; background: #f2faf0; }
.analysis-overview dt { color: var(--analysis-muted); font-size: 12px; overflow-wrap: anywhere; }
.analysis-overview dd {
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.analysis-overview > div:last-child dd { color: var(--analysis-green); }
.analysis-overview small { margin-left: 2px; font-size: 14px; }
.sports-analysis .analysis-stat-scope { margin: 0 0 20px; color: var(--analysis-muted); font-size: 11px; }
.analysis-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; margin-bottom: 18px; }
.analysis-controls :is(input, button) { color: inherit; font: inherit; }
.analysis-date-control {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 3px;
    border: 1px solid var(--analysis-line);
    border-radius: 9px;
    background: #fff;
}
.analysis-date-control > a,
.analysis-date-unavailable {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    min-height: 40px;
    border-radius: 6px;
    color: var(--analysis-muted);
    font-size: 22px;
    text-decoration: none;
}
.analysis-date-unavailable { opacity: .4; }
.analysis-date-field { display: block; min-width: 0; }
.analysis-date-field input { width: 150px; min-width: 0; border: 0; padding: 6px; background: #fff; font-size: 14px; }
.analysis-search-field { display: flex; min-width: 0; }
.analysis-search-field input {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid var(--analysis-line);
    border-radius: 9px;
    background: #fff;
    font-size: 13px;
}
.analysis-controls .analysis-search-submit {
    min-height: 48px;
    padding: 10px 18px;
    border: 1px solid var(--analysis-green);
    border-radius: 9px;
    background: var(--analysis-green);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.analysis-filter-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.analysis-filter-row nav { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.analysis-sport-filters a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 7px 16px;
    border: 1px solid var(--analysis-line);
    border-radius: 22px;
    color: var(--analysis-ink);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.analysis-sport-filters a[aria-current] {
    border-color: var(--analysis-green);
    background: var(--analysis-green);
    color: #fff;
}
.analysis-status-filters a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 6px 9px;
    border-radius: 6px;
    color: var(--analysis-muted);
    font-size: 12px;
    text-decoration: none;
}
.analysis-status-filters a[aria-current] { color: var(--analysis-green); background: #edf6eb; font-weight: 700; }
.analysis-controls :is(a, input, button):focus-visible,
.analysis-filter-row a:focus-visible { outline: 2px solid var(--analysis-green); outline-offset: 2px; }
.analysis-match-grid { align-items: start; }

@media (max-width: 767px) {
    .analysis-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .analysis-overview > div { padding: 14px; }
    .analysis-overview dd { font-size: 23px; }
    .analysis-controls { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
    .analysis-date-control { grid-column: 1 / -1; justify-content: space-between; }
    .analysis-date-field input { width: 170px; font-size: 16px; }
    .analysis-search-field input { font-size: 16px; }
    .analysis-sport-filters a { padding: 7px 12px; }
}
