.fc-ntd {
    --navy: #08264b;
    --muted: #495e75;
    --line: #cfdce9;
    --blue: #e8f1fb;
    --pale: #f4f8fc;
    container-type: inline-size;
    width: 100%;
    max-width: 1280px;
    margin: 24px auto;
    color: var(--navy);
    font: 16px/1.45 system-ui, sans-serif;
}
.fc-ntd * { box-sizing: border-box; }
.fc-ntd h2, .fc-ntd h3, .fc-ntd p { margin: 0; color: inherit; }
.fc-ntd h2 { font-size: 34px; font-weight: 750; line-height: 1.18; }
.fc-ntd h3 { font-size: 17px; font-weight: 700; line-height: 1.3; }
.fc-ntd .ntd-intro { margin: 6px 0 20px; color: var(--muted); font-size: 14px; }
.fc-ntd .ntd-panel, .fc-ntd .ntd-card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}
.fc-ntd .ntd-panel { overflow: hidden; }
.fc-ntd .ntd-panel > h3 { padding: 14px 15px; }
.fc-ntd .ntd-inputs { position: relative; padding: 14px; }
.fc-ntd .ntd-inputs > h3 { padding: 0 84px 0 0; min-height: 32px; }
.fc-ntd .ntd-fields { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.fc-ntd label { display: block; min-width: 0; font-size: 13px; font-weight: 650; }
.fc-ntd input[data-index] {
    display: block;
    width: 100%;
    min-width: 0;
    height: 42px;
    margin-top: 4px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--pale);
    color: var(--navy);
    font: 650 16px/1.25 system-ui, sans-serif;
}
.fc-ntd input::placeholder { color: var(--muted); font-weight: 400; }
.fc-ntd input[data-index][aria-invalid="true"] { border-color: #9c3434; }
.fc-ntd button {
    cursor: pointer;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--blue);
    color: var(--navy);
    font: 650 14px/1.25 system-ui, sans-serif;
    padding: 10px 14px;
    min-height: 42px;
}
.fc-ntd button:hover { border-color: var(--navy); }
.fc-ntd :focus-visible { outline: 3px solid #356da7; outline-offset: 2px; }
.fc-ntd .ntd-reset { position: absolute; top: 10px; right: 14px; min-height: 34px; padding: 6px 14px; background: #fff; }
.fc-ntd .ntd-input-note, .fc-ntd .ntd-status, .fc-ntd .ntd-note { color: var(--muted); font-size: 13px; }
.fc-ntd .ntd-input-note { margin-top: 12px; }
.fc-ntd .ntd-tabs { display: flex; gap: 6px; margin: 16px 0 8px; }
.fc-ntd .ntd-tabs button { width: 144px; }
.fc-ntd .ntd-tabs [aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.fc-ntd .ntd-status { min-height: 2.9em; padding-bottom: 8px; }
.fc-ntd .ntd-results > h3 { margin-bottom: 9px; }
.fc-ntd .ntd-cards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.fc-ntd .ntd-card { padding: 9px 3px; text-align: center; }
.fc-ntd .ntd-outcome { display: block; font-size: 13px; font-weight: 650; }
.fc-ntd .ntd-odds, .fc-ntd .ntd-probability { display: block; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fc-ntd .ntd-odds { font-weight: 750; font-size: 16px; color: var(--navy); }
.fc-ntd .ntd-card .ntd-odds { font-size: 25px; margin: 2px 0; }
.fc-ntd .ntd-probability { color: var(--muted); font-size: 12px; }
.fc-ntd .ntd-xg { margin: 12px 0; padding: 10px 13px; border-radius: 9px; background: var(--blue); }
.fc-ntd .ntd-xg h3 { font-size: 14px; margin-bottom: 6px; }
.fc-ntd .ntd-xg-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); color: var(--muted); font-size: 13px; }
.fc-ntd .ntd-xg strong { margin-inline-start: 7px; font-size: 17px; color: var(--navy); }
.fc-ntd .ntd-detail { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); grid-template-areas: "scores totals" "scores btts" "scores note" "scores ."; grid-template-rows: auto auto auto 1fr; align-items: start; gap: 12px; }
.fc-ntd .ntd-totals { grid-area: totals; }
.fc-ntd .ntd-scores { grid-area: scores; }
.fc-ntd .ntd-btts { grid-area: btts; }
.fc-ntd .ntd-btts .ntd-cards { padding: 0 12px 12px; }
.fc-ntd .ntd-btts .ntd-card { background: var(--pale); border: 0; }
.fc-ntd .ntd-note { grid-area: note; }
.fc-ntd table { width: 100%; table-layout: fixed; border: 0; border-collapse: collapse; margin: 0; font-size: 13px; }
.fc-ntd th, .fc-ntd td { padding: 6px 10px; border: 0; color: var(--navy); vertical-align: middle; overflow-wrap: anywhere; }
.fc-ntd thead { background: var(--blue); }
.fc-ntd tbody tr:nth-child(odd) { background: var(--pale); }
.fc-ntd th:first-child { text-align: left; }
.fc-ntd .ntd-scores th:first-child { width: 39%; }
.fc-ntd .ntd-scores th:last-child { width: 27%; }
.fc-ntd .ntd-scores th, .fc-ntd .ntd-scores td { text-align: right; }
.fc-ntd .ntd-scores tbody th { font-weight: 500; }
.fc-ntd .ntd-scores .ntd-other th { font-weight: 700; }
.fc-ntd .ntd-scores .ntd-other:not(.ntd-other + .ntd-other) { border-top: 1px solid var(--line); }
.fc-ntd .ntd-totals th, .fc-ntd .ntd-totals td { text-align: center; }
.fc-ntd .ntd-totals th:first-child { width: 26%; }
.fc-ntd [hidden] { display: none !important; }

@container (max-width: 670px) {
    .fc-ntd .ntd-detail { grid-template-columns: minmax(0, 1fr); grid-template-areas: "totals" "btts" "scores" "note"; grid-template-rows: auto; }
    .fc-ntd .ntd-inputs > h3 { padding-right: 0; min-height: auto; margin-bottom: 8px; }
    .fc-ntd .ntd-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fc-ntd .ntd-reset { position: static; align-self: end; min-height: 42px; }
    .fc-ntd .ntd-tabs button { flex: 1; width: auto; }
    .fc-ntd h2 { font-size: 26px; }
}
@container (max-width: 350px) {
    .fc-ntd .ntd-card .ntd-odds { font-size: 21px; }
    .fc-ntd th, .fc-ntd td { padding-inline: 6px; }
    .fc-ntd .ntd-scores th { font-size: 12px; }
    .fc-ntd .ntd-scores .ntd-odds { font-size: 14px; }
    .fc-ntd .ntd-xg strong { margin-inline-start: 4px; }
}
.fc-ntd .ntd-scores th:first-child, .fc-ntd .ntd-totals th:first-child { text-align: left; }
